Difference between autopoweroff and standby in pmset I just got a new Retina MacBook Pro 15". After getting some downloads interrupted due to the computer going to sleep (even on AC power), I started looking at the man page for the pmset command. I did solve my original problem with sleeping but a few options piqued my interest. In particular, here's the description for the autopoweroff setting from the man page:

autopoweroff - Where supported, enabled per default as an implementation of Lot 6 to the European Energy-related Products Directive. After sleeping for autopoweroffdelay minutes, the system will write a hibernation image and go into a lower power chipset sleep. Wakeups from this state will take longer than wakeups from regular sleep. The system will not auto power off if any external devices are connected, if the system is on battery power, or if the system is bound to a network and wake for network access is enabled.

And then there's the standby mode:

standby causes kernel power management to automatically hibernate a machine after it has slept for a specified time period. This saves power while asleep. This setting defaults to ON for supported hardware. The setting standby will be visible in pmset -g if the feature is supported on this machine.
standby only works if hibernation is turned on to hibernatemode 3 or 25.
standbydelay specifies the delay, in seconds, before writing the hibernation image to disk and powering off memory for Standby.

Now maybe I'm just being thick, but both options seem like they do essentially the same thing. The main difference I see is that standby requires a specific hibernatemode.
Concretely, the way I'd like to configure my computer is for it to do a RAM-only sleep (exactly like hibernatemode 0 does) when first closing the lid, so that it quickly goes to sleep, without writing the RAM contents to disk immediately. However, if I leave the computer sleeping with the lid closed for a certain number of hours (say 4 hours), I'd like it to only then write the RAM contents to disk and power off the computer, so as to save battery in case of an extended sleep. Ideally, I'd also like the second part (writing RAM to disk and power off) to happen only if the computer is running on battery power.
The reasoning here is that, for me, the common use case for sleeping is taking the computer from home to work and back, and there's no point in slowing down the sleep process and wasting SSD write cycles (as well as slowing down the wake-up process, if it does hibernate) if I'm just going to wake it up again in less than an hour; also, since the time it spends sleeping is so short, not much battery would be saved by shutting the computer down for such a short period.
How should I configure the hibernatemode, autopoweroff, autopoweroffdelay, standby and standbydelay options to achieve this behavior?

I tried to summarize all the settings in a picture.
For OS X 10.9 (it would be a little different with newer OS)
source
I would say there are just two "modes": Sleep and Hibernation

Sleep: data will be kept in memory.
Hibernation: (or Standby? SafeSleep? DeepSleep?) data will kept in hard disk and requires significantly less power consumption.

Here are summaries of my understanding..

if [sleep == 0], the computer will not sleep or hibernate any more.

For notebooks, the effective setting automatically changes whenever the charger is plugged in

Normally, sleep minutes are simply equal to displaysleep minutes, which you can set in System Preferences > Energy Saver
But under the Power Adapter tab, checking "Prevent computer from sleeping automatically when the display is off" will override sleep minutes to 0

if [standby == 1] and [hibernatemode == 3], the computer will wait another [standbydelay] seconds before really entering hibernation.
[autopoweroff] is just an extra implementation to fulfill regulatory requirement and has the same impact equivalent to 2)
either 2) or 3) takes effect if one of them is reached at first.
if [standby == 1] and [hibernatemode == 25], the computer will enter hibernation immediately after [sleep] minutes.

Note:  in MacOS 10.13 autopoweroffdelay specifies the delay, in seconds, before entering autopoweroff mode.
Can someone review and confirm the interpretation?? thanks


Is there a Retina Enabled IDE to do some programming on the new MacBook Pro? From the answers to this question: How does Eclipse work on new Retina MacBook Pros?

It seems that Eclipse on the new Retina a display appears pretty bad. Is there an IDE that currently works well on it?

I'd like to do Javascript / jQuery / PHP on it.

To enable a retina eclipse

From: https://bugs.eclipse.org/bugs/show_bug.cgi?id=382972

Here's the workaround:

Do "Show package contents" on the Eclipse.app.  Edit Contents/Info.plist.  Just
above

</dict>
</plist>

Place this:

<key>NSHighResolutionCapable</key>
<true/>

Then, log out or make a copy of the app so that OS X will notice the change.
Now, the info window will not show "Open in Low Resolution" as checked.  Launch
Eclipse and enjoy your new retina awesomeness.


How to export Calibre books into Apple's Books.app? How can I export Calibre books into the macOS Books.app?

I mainly care about PDFs at this point, but of course it would be nice if other formats could also be exported into Books.app.

I like that Books.app is automatically syncing to iOS.

I've been playing with CalibreCompanion but it's a bit tedious to have to "share" documents with other applications from there. (And the CalibreCompanion directory functionality seems broken.)

update: Ideally I'd like to synchronize with Books.app just like I can sync with a Kindle or any other ebook reader. I can open the paths from Calibre and drop files into Books but this is very tedious when handling many books.

I just drop the files, pdf or epub,  onto the open iBooks window on a mac. The "Add to Library..." menu item in the Files menu also should work. This is on 10.13.4, but earlier systems behaved the same. So if you can export your books as pdf or epub documents, they should easily transfer.


How to completely silence the other party in a call on iOS Is there a way to completely silence the person on the other end of the call in iOS?

It appears that lowering the volume while a call is in progress doesn't silence the speaker completely, unlike when a call is not in progress.

Is there a way to silence the other party completely in the call?

One to completely silence the other caller is to plug in a headphone auxiliary audio cable. You may need one with an inline mic such as this one. This tricks iOS into thinking that there is an external output device and reroutes the output audio virtually into nothingness. The microphone is also switched to use the external microphone.


How to disable growl on iterm2 with mac os 10.8.x? How to disable growl on iterm2 with mac os 10.8.x ? I don't want notifications everytime a tmux session becomes idle...

Preferences > Profiles > Terminal > Notifications > uncheck 'Enable Growl Notifications'


HTTP Watchdog iOS Application Is there some application for iOS that alerts me if a HTTP server is down?

I am looking for a simple app that sends an HTTP GET request to a URL of my choice several times a day. It can e.g. show a notification if no response is returned or if the HTTP status of the response is out of 2xx range.

Search for watchdog or http watchdog in App Store gave me no relevant result.

I believe nohillside and fsb are indeed correct.

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

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


Upgrade JRE in Mavericks Am trying to run eclipse in maverick but a dialog box says that version 1.7.0 or later is needed to run Google plugin for Eclipse. My mac has version 1.6.0 when I run java -version from the command line.

I downloaded the latest Java https://www.java.com/en/download/mac_download.jsp , installed it but still the JRE is 1.6.0. What could be the solution?

Have you tried installing the latest JDK instead? You mentioned Eclipse and I am pretty sure Eclipse uses the JDK for a lot of things.

You can find the JDK here: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html


Time machine for hd upgrade Does time machine work well for hd upgrades? Looking to go to ssd but don't want to lose things like custom plist settings, init.d items, .profile items and all my brew installed items. Is times machine going to help me here or do I need something like superduper?

Carbon Copy Cloner is my recommended way to migrate a hard drive. It's like SuperDuper, but free. Does enough to get the job done.

I wouldn't rely on Time Machine. There's quite a bit of stuff that's excluded from Time Machine by default. And it doesn't always follow symlinks around your file system properly when backing up. For example, I had trouble with it backing up duplicates of a few files installed by Homebrew instead of the symlinks that they were. It de-linked them. That could wreak havoc on your Homebrew install if you were to restore from it.


How do I stop NSURLSessionD from starting every time I restart my Mac? I have to use the following script to terminate it every time I restart my Macbook:

#!/bin/sh
launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist
launchctl unload /System/Library/LaunchAgents/com.apple.nsurlsessiond.plist
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlsessiond.plist
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist

Is there a way to permanently prevent it from starting?

To permanently unload an agent or a daemon simply add a -w.

Example:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist

However, the long term solution would be to identify what application is requesting downloads and controlling it. As an analogy, you can shut down a road temporarily to stop traffic, but long term, you want to control access to the road itself and not stop all traffic because some users are abusing or overloading the roadway.


Computer should be restarted to connect internet (Mountain Lion on VMware 8) I have Mountain Lion 10.8 on VMware 8.
I am using auto-bridging (vmnet0) for internet service.
The internet works find until I pause or turn off the virtual machine. When I resume or restart it, the internet connection does not work. I pinged localhost, but there was no response.

When I restart the host (Windows 7), then the internet connection inside guest OS (Mac) works fine again.

My laptop is connected to a switch, which is further connected to a router via ethernet. How do I solve this problem?

Mac OS X is only supported as guest OS when the host OS is OS X - and then it only OS X Server that VMware allow the install of.

Therefore I think you are missing some necessary driveres.


Image border in Preview app Whenever I have a sprite frame, and I open it in Preview app, I can't see the exact edges of the image because the background of an image is transparent. Therefore, I can't see if there is any padding around it. Is it possible to turn on image borders in Preview app?

You can toggle "Show Image Background" in "View" menu (⌥ alt+⌘ cmd+B). This will produce "chess" pattern instead of the clear color. Example (I've set white color around this rectangle to be transparent):


How to clean up camera roll/All Photos on devices with shared iCloud account? I have quite a few iOS devices on the same iCloud account and the "All Photos" (camera roll?) keeps propagating >9000 images/videos between all devices.  I would like to get to "Camera Roll Zero" and reclaim all space being used by Photos at present.

Each time I connect a different device to my primary Mac, it appears that all photos appear again in apps like Image Capture.app, while Photos.app continues to show the old photos at the top in the import pane.

I've discovered a handy little app called PhotoSync.app for iOS and a helper app on macOS that seems as though it will do a "proper" syncing vs the junk that Apple does, but the program is gagging with having such a HUGE camera roll.  Whenever I run it, it starts downloading images from iCloud during the transfer process.

So I'm hoping to figure out how to sanitize all of my iOS devices so that I don't have this enormous collection that still uses several gigabytes on my iOS devices even when I supposedly don't have any photos/videos on the device and my "Recently Deleted" album is at 0.

Make sure you have a backup of your images before trying this.

In iCloud settings, turn off iCloud Photo Library and My Photo Stream for all your iOS devices, including your Mac. Also make sure photo syncing is disabled in iTunes, just in case. Now connect each device to your mac and launch Image Capture. Select all the images you don't want, right click and select "Delete x Items". Do this on all devices before turning iCloud Photo Library and My Photo Stream back on. This should force iCloud to reset your My Photo Stream and iCloud Photo Library.


iPhone keeps restarting: How to identify the (probable) offending app? So my iPhone keeps rebooting after working seemingly normally for some time, albeit quite a short one - I'd say around 10 minutes, seems to be quite shorter if I'm using it, no matter the app.

It started doing it today, apparently out of nowhere. I tried scrolling the Privacy → Analytics section under the Settings app, but didn't find anything obvious. I noticed some (many) panic-full-<datetime>.ips files with what seems to be a memory and diagnostic dump from the incidents, but again they don't seem to show anything obvious.

Is there any way of identifying the offending piece of software?

It's an iPhone XS, and it has been on the latest iOS (12.2 I think) since its release, so it's been a while now.

A phone does not and should not reboot just because of some misbehaving app. The problem you have occurs due to issues on a lower level, such as battery or memory fault.

You don't have any means to determine and fix those issues, so just hand it over to a repair shop.


Putting iBank on Dropbox I'm wondering if anyone has put an iBank file on dropbox and accessed it from different machines. Are there any gotcha's or will it work just as if it was residing locally but with the benefit of accessing one file from multiple machines ?

Dropbox works for me using multiple computers with a single iBank file.  It's good to set iBank to automatically backup its files onto Dropbox also.  The only caveat is if you open your iBank on a second machine before the Dropbox has updated with the file from the previous machine.  In that case you'll have two competing iBank files trying to update on Dropbox.

The fix is to disable backup/sync temporarily, delete the iBank.ibank file from Dropbox, and restore the iBank.ibank file from the backup.  Then enable the normal backup/sync procedure.

I rarely have to go through that procedure, though.  Just keep an eye on your Dropbox folder when using a new machine, and wait til it's updated before using iBank.


Why doesn't iOS 4 have any apps to match Locale on Android? Locale seems to be one of the coolest apps on the Android devices.  Lets you reconfigure multiple aspects of your phone depending on location.  I for example would like to change my default calendar depending on if I'm at work or not.

I've done a lot of digging to see if iPhone has a similar app.  And all I can find are old articles saying that since iOS doesn't support background tasks (Which it does now), that this feature isn't even possible.  Now that we have background tasks, I can't see whats holding this back, especially in the jailbreak community.

I'm posting this to see if anybody out there has an app in progress, or has anymore information that I haven't been able to dig up.

Thanks

While iOS doesn't support generic background tasks (i.e. doing whatever you want in the background), it does support taking some action when a user enters certain geographical bounds, so it seems like this could technically be possible when moving from work to home or elsewhere.

My guess is that it is because iOS is very restrictive about what an app can change about the phone interface. You mention changing the default calendar configuration, which an application cannot do currently with public APIs. Apps are mostly restricted to changing their own settings or firing their own events rather than having access to other apps on the phone.

Could this change in the future? Sure, if Apple adds more public APIs to change various system or app options. But it seems unlikely considering their interest in a consistent user experience.


Change Login screen background Is there a way to change the login screen in Snow Leopard?  I do not like the way the purple 'time machine' background looks and can't seem to find anyplace to change this.

Tis easy: If you don't mind usig an app skip to the bottom. If you want to do it manually and distrust apps that tinker with your system, continue reading.

There are actually two ways:

1) the way I don't prefer since you may accidentally lose your original background image if you don't back it up

a) change /System/Library/CoreServices/DefaultDesktop.jpg
 - it's that simple!

2) the way I prefer since it's easy to revert to default: it may look complicated, but all it does is tell the OS to look in a different folder for the desktop picture

A “settings” file will be changed. Navigate to “/Library/Preferences/” on the hard drive where OS X is installed. There should be a file named “com.apple.loginwindow .plist”. Make a copy of the file in the same folder, and name it whatever you want: it is a backup just in case something goes wrong. Once again, administrative rights are required. After that, double-click the original file to open it.
The file should open in either a property list editor or in a text editor. If it opens in a plist editor, select “root” and click “Add Child” (or the equivalent, depending on what plist editor). Name the new child “DesktopPicture”, make it type “String”, and set its value to “/Users/Shared/Pictures/LoginBackground/DefaultDesktop.jpg”. Unless you know how to edit plist files using a text editor , I recommend downloading a property list editor (at http://www.apple.com/downloads/macosx/development_tools/plisteditpro.html)  if you don’t have one, since it makes alot of business alot easier sometimes. Don’t close the application yet.
The value of the key you just entered above is the path to where your background file will be stored. Change if you would like. Make sure the system can access the folder (meaning that it can’t be a user folder, only shared folder or some other system location). Now, save the plist file. This may require saving onto the desktop and then dragging it into the destination folder, replacing the original. Hopefully you didn’t delete your backup.
Navigate to the path/value you entered. If the folders don’t exist, create them.
Now, just move a picture into the folder with the name you specified in the path (in my case/example, it is called “DefaultDesktop.jpg”) and you’re done!
If OS X can’t use the picture, it will display a generic blue screen. If this happens, make sure the picture is named right, and that permissions (right click -> get info) are set so that “everyone” has “read & write” permission. If it still doesn’t work, and you want to switch back to default, just replace your edited com.apple.loginwindow.plist with your backup which you hopefully still have. If you deleted your backup, just ask me for the original.

Of course, to do this non-manaully in Terminal:

sudo -i
defaults write /Library/Preferences/com.apple.loginwindow \
DesktopPicture '/path/to/replacement/image/file.jpg

There are also multiple free apps out there on the web that let you do this even quicker, including Loginox, NanoCustomizer, etc. etc.

As a side note, if you're not administrator, you may be kind of out of luck.


iPhone Gmail app push notifications not working Push notifications in Gmail app on my iPhone are not working properly anymore. I have the Primary only selected for my push notifications. For some reason I am getting notifications for the emails I don't care about in my primary inbox, and all of the email I actually care about in my primary inbox I am not getting notifications. Can I please get some ideas on how to fix this?

Are there any other good apps for getting push notifications for Gmail?

From inside the app, go to settings and turn off notifications, save, turn them back on, save. This seems to fix the problem until it happens again. It seems to happen about once a month, but that's sketchy memory reporting the frequency.


OS X Dock+ Window/App management I'm working on my Mac for video editing from time to time and normaly use Windows and Linux. Thinking about to switch completely but there is one thing I'm so darn used to which held me back for years now.

On Windows or Linux taskbar (e.g. Avant Window Navigator) you click the app icon and the app and it's windows come to front. Now comes the important part!! IF you click a second time on the app icon the app (window) goes back to the taskbar, minimizes itself....

Is there any dock tweak or app which can do this??? I desperately need this as I'm used to this way for decades.

Thanks :)

You could try to use a keyboard shortcut instead. Either ⌘ + M to minimize the window or ⌘ + H to hide the application altogether.

Otherwise, you may want to try HyperDock (free beta for now), I believe you could do what you want to do with its custom shortcuts.


$PATH looks corrupted, is my hunch about the fix right? I'm looking at my $PATH

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin:/usr/local/mysql/bin:/Users/gpiuser/Library/Android/sdk/platform-tools:/Users/gpiuser/Library/Android/sdk/toolsHOME/.npm/bin

And noting that last directory is not a directory. I'm guessing it should look like

      tools:Users/gpiuser/.npm/bin

instead of

       toolsHOME/.npm/bin

and that something went wrong with a node.js installation at some point.

So I look at my .bash_profile:

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin:/usr/local/mysql/bin

export
PATH=${PATH}:/Users/gpiuser/Library/Android/sdk/platform-tools:/Users/gpiuser/Library/Android/sdk/toolsHOME/.npm/bin
export
NODE_PATH=$HOME/.npm/lib/node_modules

and I THINK I should correct the file to reflect the above change and run source ~.bash_profile

Am I right?

Your fix is missing a forward slash before Users, therefore …tools:/Users/gpiuser/.npm/bin.

It seems …tools:$HOME/.npm/bin was what was intended, but stating the literal path works too.


Why would a large transfer to a USB drive take longer than expected? I am backing up 225 GB to a Western Digital USB 2.0 hard drive but this seems really slow. Any ideas on what I could do to make this transfer faster? It's saying it will take seven hours and it is a USB 2.0-only drive.

I would run a terminal command like iostat 5 and also run Activity Monitor to see if other processes are taking precedence to the copy and also inspect the volume of IO operations as well as the aggregate read/write bandwidth.

You could have a bottleneck on the drive that is sending the data, the CPU that is doing the copy or the drive that is receiving the data in addition to the raw bandwidth of the external drive's connection.

Also, check in system profiler under the USB tree to inspect that the device is actually negotiated a USB 2.0 connection.

Spinning HDD typically have a few hundred iops limit due to seek time even if there is perfect alignment of the data on the spindle so that the next block to be read is always directly under the read head when the drive schedules the next read. Other drive access, file fragmentation and other effects can often slow down a write to 50 iops or less which would clearly limit the transfer speed to 10 Mbps or less given typical block sizes for HFS+ filesystems.

In short, it might be a slow transfer due to the Mac or the drive sending the data and not a full or fragmented drive on the receiving end.


fn key + top row of function keys unresponsive I have one of the new Apple Magic Keyboards. Magically, none of the function keys on the top of the keyboard, nor the fn key on the lower-left of the keyboard are responding when it's paired with my MacBook Pro (2012), running El Capitan. It works when paired with a different MacBook Pro, though.

Also, I had an older Apple wireless keyboard that suddenly started exhibiting the same behavior, which is what prompted me to buy this new one in the first place. So it looks like a software thing on this particular Mac. Any suggestions? I'm guessing I need to trash some keyboard prefs, but I'm not seeing anything that looks obvious in my ~/Library folder.

EDIT: Just adding that I tried in the Guest User account, and had the same issues. I then tried restarting in Safe Mode, and the keyboard worked fine, once I plugged it in via the Lightning Cable and paired it with the computer. So it's something borked on the system level, but again, I'm not sure what preference file to zap. Will keep looking!

Have you tried toggling the "Use function keys as standard F1, F2, F3 keys" option in the keyboard pane of System Preferences?
Or try the Windows route and restart...


Does Safari cache old pages? I have been having this problem probably ever since I bought my iMac. The Safari browser exhibits weird behaviour when I often navigate to a certain webpage. I do a lot of website development so naturally I have to test my sites. However, Safari seems to be keeping the old copy of the website in memory and keeps loading it! The only option is clearing the browsing data but that leads also to me getting logged out of all sites on the device so it's a pain.

An example of what happened today: I had a website that had a <meta> tag redirecting to www.anotherpage.com. I removed that tag and uploaded the file on FTP. However, Safari would still keep redirecting me to that page. When I accessed the same URL from mobile Safari version, everything worked as expected, no redirect. Heck, even Mozilla or Chrome on desktop showed the new site.

Should I just disable caching or am I missing something? Has anyone experienced similar problem? Or is it only one of the reasons why Safari is becoming the new IE?

Safari aggressively caches redirects and force refresh will only force refresh the page you are redirected to, not the redirect itself. You can clear the cache without clearing your browsing data (cookies) by choosing Develop → Empty Caches (⌥⌘E).


Do location-aware apps work on the iPod touch? A lot of iPhone apps use GPS positioning to provide services. However, the iPod touch does not have GPS capabilities, although it does have WiFi-based location services, if I'm not mistaken. Do location-aware apps work on the iPod touch? If so, how well? I'm not interested in the iPhone right now, but since I live in a city, it would be cool to have a device that would allow me to call up maps and such when I'm walking around.

Yes. The "location services" work the same way on all iOS devices, while the specifics of how that data is obtained are hidden from the application.

This Apple support article might be helpful to you:

iPhone and iPod touch: Understanding Location Services


Can i use 'Pages' default images/background styles for my website or mobile app There are a couple of background images and styles in Apple's 'Pages' and 'Keynote' softwares, that I was planning to include for my website and mobile app. Would this be intellectual property infringement? I was not able to find this answer in the license agreement of Pages, and Keynote, or may be i missed it since i am not a lawyer. Are these default content opensource?

Almost certainly not.

What pages license are you looking at? Section D starts on page 1: You may not and you agree not to ... create derivative works of the Apple Software or any services provided by the Apple Software.

I would recommend you focus on finding images that are unequivocally granted under creative commons license and perhaps getting a lawyer or at least pay someone to guide you on keeping records of how you source your app and web images.

Just like taxes and accounting - we aren't all accountants, but we need to know when to employ them and the same goes with lawyers.


Cannot rename bluetooth device on my mac I have MBP 2015. I am running Mac OSX Sierra.

I go to my bluetooth preferences and right click and rename a device.

The window for rename comes up. I enter the new text and press rename.

And nothing happens the name of the device just does not change.

No errors ... no warnings.

And the final result (no name change)

It looks like this is bug that show only up for few users.
There is no current solution, I event tried manually changing alias name in plist file but it is short term(until you connect next time).

There is more and more people that are having this issue.

In my company we use Macs mostly and I am the only one having this issue.
There are already some support questions opened on apples forum:
https://discussions.apple.com/thread/7904717
https://discussions.apple.com/thread/7927709

I have even spent 2 hours on phone with apple and they are saying it is not a bug XD


Unable to conform activation I am trying to get our home devices supervised, starting with an iPhone 3GS running 6.1.3.

I'm using a Mac OS X Server (iMac - OS X 10.9 and Server v3) and Apple Configurator 1.4.2.

First step, Prepare. I turn on the supervision flag, accept the rest of the defaults and click go.

6.1.3 is reinstalled on the iPhone fine, then AC errors out with, 'Cannot Conform Activation'.

I tried multiple times, all with the same result. I do see a dialog on the iTunes-like window that appears about a Carrier upgrade, but AC has failed before I see that.

What am I doing wrong?

Turns out it was just something on Apple's side and the activation went through today!


iMac won’t boot up from internal drive but can boot from external drive, but internal drive can boot other Macs I am seeking suggestions on what may be going in with an iMac I am currently troubleshooting, as it’s displaying behaviour I do not recall seeing before.

Short story

This iMac refuses to boot up. It gets the Apple logo, gets past the progress bar, and then gets stuck on the grey screen for about two minutes before rebooting itself. However, what makes this odd is that I can:

Start the iMac in Target Disk Mode and use it to successfully boot up other Macs. In doing so everything seems to work perfectly fine.
Successfully boot the iMac from an external drive and everything seems to work perfectly fine.

Long story

I was presented this iMac about 2 weeks ago as it refused to bootup. That is, it would commence booting up and cycle through the Apple logo and progress bar, but after the progress bar completed it would remain on the grey screen for a couple of minutes before rebooting itself and doing the same thing all over again.

To address this I undertook the following troubleshooting steps:

Resetting SMC - failed
Resetting NVRAM - failed
Starting up in Safe Mode - failed
Starting up in OS X Recovery Mode – failed
Starting up in OS X Recovery Mode via the internet – failed
Undertook an extensive hardware test using Apple Hardware Test (AHT 3A213) - passed
Started iMac in Target Disk Mode and retested hard drive using Scannerz on another iMac - passed
Started iMac in Target Disk Mode and reformatted the hard drive and did a clean install of Mac OS X El Capitan 10.11.6 - successful
Migrated data from a Time Machine backup - successful

After these steps I tested the iMac for four days with no issues in terms of booting up and using the computer. On the fifth day I needed to manually import seven Apple Mail mailboxes. I did these one by one and six of them imported within minutes.

The last mailbox was showing as being 270 GB in size. I knew this was inaccurate, but I decided to import the mailbox so I could do a mailbox rebuild to correct whatever corruption had taken place. This import took over 12hrs to do but seemed to work fine and Mail was displaying the emails.

I then tested the iMac on and off for another day to ensure it had no problems booting up. This was successful.

I then decided to initiate the mailbox rebuild, but as soon as I did the screen went black and stayed that way regardless of any keyboard shortcuts I tried using. I waited an hour, forced a reboot, and ever since the iMac has returned to its original behaviour of not booting up – it would get past the progress bar and stay on the grey screen for a while before rebooting itself and starting the whole vicious cycle again.

I have again retested the hard drive, processor, RAM and Video Ram by starting the iMac from an external hard drive and using a combination of the following packages:

Apple Hardware Test (AHT 3A213)
Scannerz
TechTool Pro
Memtester (under the Homebrew subsystem)

And now I have a situation where I can boot the iMac from external hard drives, and also use it in target disk mode to boot up other Macs, but cannot use it to boot from its own internal drive.

At present I have isolated the internal hard drive and am running a scan to check for any malware.

In the meantime, I am wondering:

Has anyone come across a similar scenario and, if so, what was the cause?
Assuming I find no malware, do I go through the reformat/clean install/migration process again, but this time not import the last
mailbox and see whether the iMac works fine?
Any other suggestions?

iMac specs are as follows:

iMac (27”, mid 2011)
3.1 GHz Intel Core i5
8 GB RAM
AMD Radeon HD 6970M 1024 MB
1 TB 3.5” SATA HD
Mac OS X El Capitan 10.11.6

I'm answering my own question in the unlikely event it helps someone else, although I suspect this odd behaviour could result from a number of possible hardware issues or a sensor error.

I started to suspect something wasn't quite right with the display so I connected the iMac to an external display and for the first time in about five days the computer booted up from the internal hard drive. Oddly enough both the internal screen and external screen worked fine while using the computer.

I then disconnected the external screen and the problem returned - the iMac would not boot from the internal drive. Reconnecting the external screen results in everything working fine. I went through this disconnect/reconnect process five times and the results were repeatable.

While connected to the external screen I was able to import and rebuild the corrupt mailbox with the end result being a 258 Gb reduction in the mailbox size!

As far as I can tell, both the LCD panel and the internal DisplayPort cable are fine, so I'm recommending to my friend that she run it connected to an external display for a while to determine if any other problems present themselves. While I could inspect and reseat internal DisplayPort cable, this is not something I intend to do unless she reports back that the internal display stops working.

I will update this answer if/when I have anything else useful to share.

[Update]

Eventually the iMac stopped booting altogether - only getting part of the way before restarting itself in an endless loop. Also the display would show vertical lines etc, so the owner bought another 27" model and gave me this to use for parts.

After having it in my office for a few months and not needing any of the parts, I decided to disassemble it to see if I could find any obvious fault. Nothing stood out at me so I decided that since I had gone to all this trouble, I may as well remove the GPU (an AMD Radeon HD 6970M 1024 MB) and bake it in the oven to try and re-flow the solder and heat the Bumps under the surface-mount chip. (Basically I had decided a while back that the GPU was the most likely culprit).

After doing this and reassembling everything the iMac booted up normally. It was the first time this year it had booted successfully! I've since rebooted it 30+ times, run Apple Hardware Test, and so on. Not sure how long this will last (the baking a GPU in the oven trick is often described as a temporary fix, but Ive heard of GPUs still working normally six months later.

For anyone who is interested, below is a brief summary of what I did:

Disassemble the iMac enough to remove the GPU
Set oven to 205℃ (400℉)
Place a sheet of baking paper on an oven tray and place the GPU (only the GPU itself) on the oven tray
Place it in the oven for 8 minutes
Remove the tray and let it cool
Remove any old heatsink compound from the chips and replace with new compound
Reassemble everything

This process took me approximately 4.5hrs (including various interruptions along the way).

Obviously the steps above do not go into detail, so anyone reading this who feels confident enough to give it a go can post a comment below or in chat and I'd be happy to walk them through the process in greater detail.

Remember though, I've disassembled countless computers over the years, so if you haven't and still want to give this a go, please be patient and allow more time. Also, you will require some tools that you most likely won't have (but can easily purchase online).


What setup allows a Windows 7 client to use OS X 10.6.7 server VPN with L2TP? I'm trying to get my Windows 7 laptop to connect to my OSX server VPN via L2TP. I understand that Windows 7 has some issues with NAT-T and I was wondering if anyone has a fix for this. Or has gotten this combo to work.

Kind of annoying but fairly painless to resolve with a small edit to the registry on windows 7: http://support.microsoft.com/kb/926179/


App Store sometimes can't install, iCloud icon instead of INSTALL icon App Store sometimes can't install apps, iCloud icon appearing instead of INSTALL icon, as in the attached screenshot.

Please tell me how to make the INSTALL icon appear again for these apps, instead of the iCloud icon? It usually appears for some apps that I've uninstalled before and I want to install again.

Nb. I have forgotten my iCloud password, but i can use the iPhone that do not use iCloud normally.

The cloud symbol means that the app is associated with your account and has been previously installed using your Apple ID (on any of your devices). If you tap on it the app should start to download to your phone.

You may be prompted for your Apple ID password though. If so, without the password you'd be unable to install apps whether they are associated your account already or not.

If so you can go to the link below to try to recover your Apple ID password.

http://iforgot.apple.com


Time Capsule still provides Wi-Fi but is not discovered by AirPort Utility I connect to the Internet with my Time Capsule's Wi-Fi, and it works perfectly. I also have been backing up to the same Time Capsule with Time Machine. But now, after about 18 months, Time Machine complains that it can not find the backup drive. I checked AirPort Utility, and there I just see the "Internet" sphere and the green dot letting me know I'm connected successfully. The Time Capsule neither shows up nor can it be discovered.

I rebooted the Time Capsule several times. LED is first yellow and then green, like I'd expect as normal.

What could be wrong? How can I troubleshoot?

Follow these steps and it should be OK:

Press the reset button on the Time Capsule.
Forget the old time capsule in Airport Utility.
Re-add the reset Time Capsule.
Update the Time Capsule's firmware.

The Back to My Mac function caused it to be not seen by the Airport Utility despite it working fine otherwise.


OS X Server 10.6 and Fully Qualified Domain Names From the Advanced Server Admin for OS X Server v.10.6:

  You must have a fully qualified domain
  name for each server’s IP addess in
  the DNS system. The DNS zone must have
  the reverse-lookup record for the name
  and address pair. Not having a stable,
  functioning DNS system with reverse
  lookup leads to service failures and
  unexpected behaviors.

I was recently bit by this requirement as my internal network doesn't have an internal DNS server. As a result, various applications and services (User Management in particular),  hosted on my XServe have experienced degraded performance. My question is, besides deploying my own DNS server (dnsmasq or bind9) is there any other way to provide a FQDN (Fully Qualified Domain Name) for my X Serve?

UPDATE

Used the X Serve as its own DNS host, worked like a charm with very little configuration.

No, the only way to get a FQDN is by using a DNS server, either external to your Xserve or run on the Xserve itself. It's recommended with setting up Mac OS X to set up DNS first before anything else.


Can I use Clover on a real Mac Pro for device spoofing an unsupported AMD GPU? I have a MacPro3,1 and a PowerColor R9 270 GPU that I would like to use together. Unfortunately, this card does not work out of the box unlike my previous Radeon 6870; I never flashed it, but I never had a problem waiting for the login screen for the display to come to life.

According to hackintosh documentation, this GPU should be usable on the Mac by spoofing the device ID using Clover. However, from what I've seen so far it looks like Clover is a replacement for the Mac's EFI, or at least a modification to it which I'm uneasy about.

Is it advisable to follow this path and use Clover on a real MacPro3,1? If this was a Hackintosh, I wouldn't think much about it, but I do want to keep this machine somewhat pure to avoid any compatibility issues. If I have to sell this GPU and pick up something else, so be it.. but I'd like to think that it isn't that far off to get the R9 270 to work on this machine since it is so close to other devices that are supported officially by Apple.

(BTW: the card does work in the machine as it functions under Windows 7 / BootCamp)

I think you are going about this the wrong way. I think turning your Mac Pro into a hackintosh will create far more problems than it will solve. Updates will be difficult, and clover is a pain to work with. There is a reason hackintoshes are specifically NOT recommended for people who rely on their computers to do important things (such as work).

There is a way to get the GPU to work without going through this complicated mess.

First, do you need to see your boot screen on every boot? If so, this becomes more complicated. You'll probably want to jump on the Nvidia train and get a flashed card (the only ones I know of are sold by MacVidCards). The only other option would be to use the new card in tandem with the old one, and have a monitor for the boot screen plugged into the old card. If you don't care about the boot screen most of the time, keep your original card handy, because you will want to be able to access it every now and then (for recovery mode, etc).

Now assuming you don't need to see the boot screen, you do need the GPU to work. Because you have an AMD GPU, not Nvidia, the drivers are built-in to MacOS. This means that if right now you removed the old GPU you have and put the new GPU in, once you get through the boot sequence, you should see the screen fine.

Please let me know if any of this was confusing or did not work.


OS X Finder customize default folder display There are several ways to display folders in the OS X finder:

Folders as icons you can arrange
List of items you can expand (collapsable triangles)
Graphical "flip" display
A column mode where you can arrow left and right

The default view is "Folders as icons you can arrange". I however really, really like the "column mode where you can arrow left and right". Is there a way to set the default finder display kind?

You can do it on a per folder basis. From the folders you care about - I would imagine this is just your users and root harddrive on your desktop. That'll cover most cases.

Open them, and hit either command-J, or View -> Show View Options.

If you're in Column mode, you'll see a check box to then alway show the folder in that mode.

If you always start finder from a couple of pre-defined places, eg. your desktop double-clicking your drive, this ought to cover your most frequent usage.


Apple Push Notification reliablity I have one app supported on both Android and iOS. The app needs a background service which hits a remote server every minute. The job is simple for Android app but since background tasking is not supported in iOS I need to employ push notifications for iOS app. Apple says that the delivery of push notification is never acknowledged. I cannot afford push notification failure since I need to send a very crucial message through notification. My questions are:

1) What is the failure rate of push notifications?

2) Are push notifications always reliable to send important messages?

3) Assume that the server which is supposed to send push notifications sends a large number of push notifications every minute. What are the chances of push notification failure in such a case?

4) Which circumstances cause push notification delivery to fail?

If you have any useful resources please provide the same. Thanks.

The notifications come through 99.9%, I think the 0.01% is when your phone doesn't have network. That is the only reason it won't go through, unless you have a poor server with 10000 requests per second then yes that will fail.

So for best results just get a good server. I don't think you can help people with cellular coverage. Even if you did run in background they won't be able to pull data from internet if they don't have cellular network.

Apple just wants you to not rely on it 100%, so make a backup plan for it, let the user know the app can't connect to the server if there's no network. I'll say do push notifications, then if that fails try get from server manually and make local notifications, if the app can't make connection to the server fire up a local notification that says it couldn't connect to your server.

Hope this helps?


brew doctor get warning on opencv i'm new to mac os x. i read that homebrew is a good packet manager and i have tried it.

i have also read that to install opencv 2.4 i have to follow those steps:

install cmake via homebrew
download opencv
cmake, sudo make

and i have done it. now i have fully python wrapper in my mac os x. but now if i write brew doctor i have those warnings:

brew doctor
Warning: /usr/local/lib/pkgconfig isn't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew.

If a brew tries to write a .pc file to this directory, the install will
fail during the link step.

You should probably `chown` /usr/local/lib/pkgconfig
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libopencv_calib3d.2.4.2.dylib
    /usr/local/lib/libopencv_contrib.2.4.2.dylib
    /usr/local/lib/libopencv_core.2.4.2.dylib
    /usr/local/lib/libopencv_features2d.2.4.2.dylib
    /usr/local/lib/libopencv_flann.2.4.2.dylib
    /usr/local/lib/libopencv_gpu.2.4.2.dylib
    /usr/local/lib/libopencv_highgui.2.4.2.dylib
    /usr/local/lib/libopencv_imgproc.2.4.2.dylib
    /usr/local/lib/libopencv_legacy.2.4.2.dylib
    /usr/local/lib/libopencv_ml.2.4.2.dylib
    /usr/local/lib/libopencv_nonfree.2.4.2.dylib
    /usr/local/lib/libopencv_objdetect.2.4.2.dylib
    /usr/local/lib/libopencv_photo.2.4.2.dylib
    /usr/local/lib/libopencv_stitching.2.4.2.dylib
    /usr/local/lib/libopencv_ts.2.4.2.dylib
    /usr/local/lib/libopencv_video.2.4.2.dylib
    /usr/local/lib/libopencv_videostab.2.4.2.dylib
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
    /usr/local/lib

/pkgconfig/opencv.pc
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:

    git

why?? what's wrong? what to do?

Homebrew's doctor command is very helpful. Since you installed OpenCV from source into the same directories that Homebrew is using, it's complaining about the unexpected files.

To solve the problem, just follow the instructions carefully. Homebrew tells you exactly what you need to do:

Make the /usr/local/lib/pkgconfig directory writable.
Delete the offending .dylib (/usr/local/lib/libopencv_*.dylib) and .pc files (/usr/local/lib/pkgconfig/opencv.pc).
Run brew link git. (Not directly related to OpenCV.)


Configuring the Dock to be Spaces-centric I use multiple displays, and the available options for Spaces that I am aware of allow surprise Space-switching, even when working in a completely different space.

Ideally, interacting with the Dock will only affect the same Space on the same display on which I used the Dock. This means:

If app clicked in Dock, and no copy of app is running on any space, then start the app and confine it to the current Space.
If app clicked in Dock, and the program is already running in another Space, then either 1) open a new window if the program allows this, or 2) silently move the app to the current Space without disturbing or changing any other Space or display.
If app clicked in Dock, and the program is already running in the current Space, then change focus to the app.

Specifically:
- Clicking an icon in the Dock should rarely affect any other Space.
- Clicking an icon in the Dock must never affect which Space is displayed on which display

OS X Yosemite 10.10.2, MacBook Pro 2012. (Dock set to auto-hide, and pops up at the bottom of any screen when I put the mouse there.)

3 questions in one, so I numbered your points to make answering easier…

Set the app's space compliance to None [right click the app in the Dock]

1) Mac apps don't do that, no new instance will be created unless none exists.
2) Can only be done if the compliance is set to All Desktops - but that means it will always follow you around; probably not what you want.
Focus will switch to that app, whatever Space it is running in. There is no way to change that behaviour.

Pro Tips…

Click/hold the title bar of any app & use a key command to switch Space
 - by default  Ctrl ⌃   num  will bring the app with you to that requested Space

Personally, I find separate Spaces per display untenable, so have it switched off. My monitors switch in pairs…


Pause podcast on iPhone via Bluetooth with keyboard shortcut on Macbook Pro Maybe a long shot but this seems instinctively possible.

I listen to podcasts on my iPhone 6S via headphones that don't have a pause button on the cord. When people start speaking to me in the office I need to find the phone, push the home button and click pause.

Is it possible to connect the phone with my Macbook Pro via Bluetooth and then pause the podcast via a click/keyboard shortcut on my laptop? This would save me approximately 2 seconds per pause - these seconds add up over time(!)

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

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

Airfoil
AirPhones

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

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


Finder doesn't show thumbnail previews for RAW files Since I upgraded to Lion (10.7.5), Finder doesn't display thumbnail previews of ARW files. ARW is a Sony RAW image format (in my case files were produced by Sony NEX-5 camera). Finder used to display the thumbnails under Snow Leopard (10.6.8), but not anymore. ARW files are opened as usual by the Preview app, their previews are shown in the Finder preview column and by Quick Look. Only the thumbnails are not shown.

I've googled and found this is a well-known issue but unfortunately there is no reliable solution. Somebody fixed it by removing Finder preferences files (~/Library/Preferences/com.apple.finder.*), somebody by installing latest versions of iPhoto and "RAW Compatibility Update" and somebody reported it was only fixed for him in ML 10.8.2 update.

So far I have:

Fixed the permissions on system drive
Removed Finder preferences files and restarted the Finder
Installed updates for iPhoto (9.4.3) and RAW Compatibility Update (4.05)
Danced with a shaman's tambourine

But still no luck. Any thoughts? Is upgrade to Moutain Lion my only choice? And will it indeed help?

Raw support for cameras is something that changes with almost every OS update. Specifically, Lion 10.7.0 only supports some cameras, and 10.7.1 adds more, and so on. Also, according to this KB article on what cameras Apple supports - it is similarly vague that you need specific versions of Aperture or iPhoto to even see whether your machine needs a RAW camera support update.

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

So, it looks like Apple is adding raw support to the OS in combination with you having a new enough version of either iPhoto or Aperture. I would say, you might want so jump to 10.8.3 and install the latest iPhoto from the Mac App store since my feeling is Lion intentionally changed RAW processing to exclude anything it wasn't sure it supported instead of 10.6's we'll try to draw anything and if it crashes, so be it attitude.

However, if you don't want to spend $40 on this, delay the upgrade to Mountain Lion and just buy the latest iPhoto (if needed). At that point you can call Apple support since you recently purchased iPhoto (or possible recently purchased Lion) and ask AppleCare to verify your camera model is compatible with your software versions. You get 90 days of complimentary software support anytime you purchase Apple hardware or software since they want you to get up and running with your new purchase.


How can you send the same text to multiple people without it being a group message? I want to send "Happy Thanksgiving!" to 35 different people, but I do not want it to be treated as a group message. How can this be accomplished on the iPhone 4S (with or without jailbreak applications, such as biteSMS) with iOS 5.1.1?

The reasons that I would not want it treated as a group message are:

I do not want the recipients to see the numbers of other recipients
I do not want the recipients' replies to go to multiple people
I do not want the recipients' replies to be grouped in a group message, but to instead be part of each individual thread
depending on the message, I may specifically not want a given recipient to know that other recipients received the same message.

Optimally, the solution would also allow pictures to be attached and would automatically send iMessages instead of text messages to iOS users - but those parts are less important than being able to send plain text messages.

The option you're looking for is located at Settings > Messages > Group Messaging. Turning this off will send all messages individually to their recipients.

Note: Disabling MMS Messaging will remove the Group Messaging toggle from the list.

Note: Some cellular service providers do not support Group Messaging, so if you have MMS enabled, and you still don't see Group Messaging, then it's likely that your provider does not support it. From Apple: If you don't see an option to turn on MMS Messaging or Group Messaging on your iPhone, contact your carrier.


Connect 2 external monitors to a MacBook Air (Mid 2012) I need 2 external monitors but I am having difficulties to do it on my MacBook Air mid 2012. My monitors are 2 Ausus VG278Q.

I tried different docks. Latest one (which I believee was my best shot) is a Belkin Thunderbolt 2 Expresss Dock HD.

Later I found out that the Mid 2012 don't support more than 1 external monitor at all.
Is there any solution to that problem ?

I've seen this other question: Will the Macbook Air (Mid 2012) support dual monitors?

My understanding is that your monitors need to be have a thunderbolt 2 entry, so you can daisy chain then. Is my understanding correct? If that is the case mini DP entries are enough or it needs to be really Thunderbolt 2 ? This is already old technology and having to buy monitors to fit this requisite is quite limiting and very likely not future proof.

Any other solutions?

The only monitor that can daisy-chain the display connection is the Apple Thunderbolt Display. Your Asus monitors don't have Thunderbolt hubs or 'pass-through' connectivity.

However, I'm surprised that the Belkin Dock didn't work: assuming that it had a HDMI port and a TB2 pass-through, then that's exactly what it's for.

There are TB2 to dual HDMI adaptors, which might work, if you can find one.
https://www.techpowerup.com/149981/zotac-announces-dual-hdmi-output-adaptors

If you really want to invest in 'future-proofing', you might be better served updating your Mac.


Full privileges on .command file, but it says I don't have appropriate privileges I have a command that I regularly need to run in the Terminal (for application code signing). Normally I launch the Terminal, press the up arrow until I reach the command I want, and then hit enter.
I've decided that a more sustainable solution might be to create a file I can just double-click to run the Terminal command. In my searches, I discovered that I could create a text file with the .command extension which contains the command that I want to run.
However, when I double-click on this file, the Terminal opens and I get the following error:

The file “Sign Code.command” could not be executed because you do not
have appropriate access privileges.
To view or change access
privileges, select the file in the Finder and choose File > Get Info.

The problem is that when I go to the Get Info wind as directed and look at my Permissions, it says that my user has read-write access (the only other option is read). So in other words, I have the highest permissions, but still can't open this file.
What can I do to solve this?

You need to set 'execute' on the file for it to allow you to run it:

chmod u+x /path/to/file.command

u is the owner of the file, +x adds 'execute', so u+x gives the owner of the file the ability to execute it

…then you can run it in the future by double-clicking it.


Option for Second Alert on Calendar Events Disappeared After Mojave 10.14.6 Update I just updated my Macbook Pro to Mojave 10.14.6 and noticed that I can no longer set a second alert on events I add to my Calendar. I'm not using any external calendars or accounts, just my iCloud. I can still set second alerts on my iPhone, just not my computer.

Depends what is your default calendar settings. If you select iCloud Calendar then you will have plus sign option next to the alert.


How do I prevent TGZ archives from being automatically un-gzipped upon download? I use Safari on Mac OS Lion, and one behavior I find rather annoying is that it insists on automatically un-gzipping TGZ archives when I download them. It doesn't untar them; it just uncompresses them, which is virtually useless. Ideally, it wouldn't uncompress them at all, but if it would uncompress and untar them I could live with that.

I'm aware that I can uncheck the "Open 'safe' files after downloading" option in Safari to false, but that also means giving up such niceties as PDFs automatically opening when I download them. Is there a more tailored solution?

Uncheck the, "Open "safe" files after downloading" checkbox in Safari's General preferences.


I started typing in finder the wrong letter now I can't navigate to a file. How to start from beginning? The finder jumps to file starting which the letter I typed. I typed Z, now I want to see files start with Y. If I type Y it will search for ZY but I want to start from the beginning.

How does the system reset search?

As nohillside said, you can just wait a couple seconds for the buffer to reset, but you can also hit escape to clear it.


Mobile Safari Browser and HTML5 I'm clicking through the internet and start being confused a little bit about if the mobile Safari Brwoser is HTML5-capable now or not. I wanted to open the webqr-Site on my safari Browser on iPod Touch 3rd Gen with the newest iOS and they say, I have to open this site with a browser being capable of HTML5. But actually the mobile safari browser should support HTML5, (Link1, Link2). I'm not into HTML5, that's why I get confused. Does that mean, that the mobile Safari browser started being compatible to some Tags of HTML5, but still not supports the whole functionality? Is there any reliable source for that? I need this information for my thesis.

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

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

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


Cannot re-install OS X Lion after trying to format Macbook Pro I have been facing an issue regarding a OS X Lion installation in my Macbook Pro 13. I used to have OS X Lion, then I decided to update my O.S to the OS X Mavericks; the update was pretty good, it was successful.

The problem was when I tried to "format" my Mac, during the re-installation of the O.S, a message appeared in my screen saying that the "Recovery partition could not be created", that was weird for me, I am not very good with my Mac yet, so I tried using a OS X Lion installer (which is in a CD), I tried to install from the CD (what many people call a "clean installation") but I got the same result regarding the "partition recovery".

I saw that some of the people mention that it is needed to delete all the partitions created, but in my case, every time I try to delete any of the partitions, it says "cannot unmount disk", and I am not able to perform any deletion over the partitions as mentioned in many tutorials.

So far, I noticed that a yellow alert appears in one of the partitions before pick a drive for the installation:

Additionally, this is what I have when I open disk utility:

I tried deleting the partitions using the disk utility and even using the Terminal commands (with sudo) but I always get the same error: The disk cannot be unmounted.
Please if somebody could help me, I will really appreciate, I've been without my Mac for more than 3 weeks. Thanks in advance.

When you're booted from the CD and looking at Disk Utility, you need to use the Erase tab, not the Partition tab.  The EFI and Recovery partitions are hidden from view, so even if you delete all the partitions on the disk, it still won't delete that one.

If that still doesn't work, then you can open up a terminal window, and issue the following command:

diskutil zeroDisk /dev/disk0

That will zero out your entire hard drive, including all your partition tables.  But it could take 2-3 hours depending how fast your hard drive is.  Once it's done, you can create a new partition and install the OS.

If course, if you're really pedantic like me, you'd remove all media from the optical drive and USB ports, zero the hard drive, power off, zap the PRAM, reset the SMC, and then boot from Internet Recovery to do the OS install.  That's factory fresh right there, my friend.  The only thing it won't have after all that is the new computer smell.


What is the most effective way for a iPhoto user to have all photos synced and stored in the cloud for sharing? If I make the switch in handling my photos on my Mac, from Picasa to iPhoto, then I need to have a way to have all of my photos synced and stored on cloud servers, for photo sharing online. (note, all photos, not just the most recent 1000.)

What is the most effective way for an iPhoto user to have their entire collection synced, stored, and shareable on a cloud server?

Thanks!!!

iPhoto supports sharing of albums (including synchronising of comments, and name/face tagging) with Facebook.

This allows you to select a group of photos, and either put them into a Facebook album or post direct to a wall.  If you synchronise with a Facebook album, then iPhoto will perform a 2 way sync and pull the new pictures down locally for offline storage.

If you are worried about Privacy, you can always create an account just for this and really lock it down.

If even works on photos of girls with seemingly impossible sized teeth:

Other than Facebook, sharing options are more limited.  Apple used to offer the MobileMe gallery service, but that is now not open to new customers and will be turned off in the coming months.

There is limited support for Flickr (believe it was better in '09 than in '11, which is weird), but to get anything close to the Facebook levels of deep integration you will have to get happy with some scripting and automation to (for example) run a script after each import to automatically copy the contents of the last import to Flickr etc.  This article talks of numerous ways to Flickr Sync, but non of them are as self-contained as Facebook sync, and require other tools and software to create a more complicated workflow, but it is possible and if you are a Flickr fan the extra effort may make it worthwhile

As a final option, you can still happily use your Picassa Web Albums, and just not use the local application, this question elsewhere in AskDifferent has an accepted answer on syncing iPhoto to Picassa.


ssh to non-existent .local name never times out If I try to connect to a non-existent .local hostname using most utilities, including ping and telnet, it times out after 5 seconds:

% time telnet host.example.local
host.example.local: nodename nor servname provided, or not known
telnet host.example.local  0.01s user 0.01s system 0% cpu 5.018 total

This matches the timeout for the .local config in scutil --dns.

But when I try to ssh to such a hostname, it never times out. (I just Ctrl-C'd one that was still waiting after 16 minutes.) I can't figure out any existing option in any of the ssh_config files that would seem to affect hostname resolution. The only option I see that seems relevant is "CanonicalizeHostname", and it's not configured in any config file, but I manually set it to "no" with no change in behavior. Adding -v flags to ssh doesn't reveal any additional information about hostname resolution beyond the fact that it's "Connecting to host.example.local port 22", which is the last debug line produced.

I tried capturing the MDNS queries for telnet and ssh. It appears to make an initial query, then wait 1s and ask again, then again 3s later, etc., each retry waiting 3 times longer than the last. telnet gave up after three requests (0s, 1s, and 3s), but ssh got up to the seventh request (0s, 1s, 3s, 9s, 27s, 81s, 243s) before I stopped watching.

I can kind of work around the problem by setting ConnectTimeout 5 in ssh_config (even limiting it to *.local), but that breaks if the name resolution completes but the remote ssh server is slow to respond.

How can I get ssh to timeout name resolution in the same manner as other network tools?

Rather than make a bunch of comments, here’s how I would start to corner this. I can’t reproduce this yes, so I might be totally wrong.

First, does ssh using a known bad local IP address time out fast or understandably / reliably?

Second, does the potential (or any) machine show as advertised?

 dns-sd -B _ssh._tcp local

Third, do you have any apple device that’s proxying bonjour sleep wake?

If not, why even try ssh to something that mdns could dig up later or have bonjour sleep proxy trying to keep waking that device. I could see how this longer time-out is by design to allow WOL via sleep proxy and multiple network segments to have a chance to wake your sleeping beautiful Mac.


El Capitan's Spotlight internet features are not working. e.g. it's not showing weather for my location I have already restarted Mac 5 times and it did not work. My Mac is connected to the internet as I am posting this over the internet. I updated my Mac today and now it's running El Capitan 10.11.5

The first thing I did is to look at the Spotlight feature of El Captian "Weather Search from spotlight" but it did not work (to much disappointment).

I have checked the Spotlight preferences and everything there is checked.

As this Apple Support page states, Spotlight suggestions doesn't seem to be available in your region.

It's pretty surprising since you are using it en English, but I already had the same experience (OS X is in French, but those features aren't available since I am not in the French mainland).


Force mac to show at least two updates using softwareupdate -l Basically I need the command softwareupdate -l to show at least 2 updates. I been downloading older versions of Xcode and Xcode command-line tools and so far I only managed softwareupdate -l to show 1 update required (Xcode command-line tools) and I need at least 2.

MacOS version: 10.15 Beta (19A471t).

Any help would be really appreciated!

I'm pretty sure that softwareupdate is only going to show you the most recent update. It wants to update you from what you have to what's current, and it doesn't show other updates that might have happened in between.

If you want to download past versions of Xcode, you should go to Apple's developer site, where every version of Xcode since version 3.0 in 2007 is available. If you have a developer account, you can get them at http://developer.apple.com/download/more/. If you don't currently have a developer account, you can sign up for free at https://developer.apple.com/programs/


Delete some remembered text from Browser TextBox in Windows you can put the curser on text box (focus on it) and push down arrow key ( down ) and the list of all text that textbox was remembered was shown, then you can move on them by up and sown arrow key and if press Delete on highlighted text it was removed but I can't do the same in my macbook pro. it doesn't have Delete key and this button act as BackSpace and it won't act if you press fn + Delete  . any one have any idea to delete remembered text in macbook-pro(os x).

It's shift + delete on windows.  In Firefox on my MacBook, shift + fn + delete does the trick.

Don't ask me why I know this.  That comment below Josh K's answer was totally hypothetical.


Where are the files for System Information? I'm just curious if anyone knows where I can find the files that feed the data into the System Information Application (ATA, Audio, etc).

I am interested in writing a program that sends an email every time the battery cycle count increases.

Thanks.

I don't know the file per-say, but you can use a simple shell script to get the battery cycle count, as seen here.
system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}'


Will Face ID work in the dark? With the announcement of Face ID, I wonder, will work in the dark? For example, a dark room? Does the screen allow enough light for it to work?

Face ID works in the dark thanks to the flood illuminator. This means Face ID is not dependent on external light sources or purely the light emitted from the display.

Flood Illuminator
Invisible infrared light helps identify your face even when it’s dark.

https://www.apple.com/iphone-x/#face-id


When directly unzipping a file attachment in Apple Mail, where does it go? Whenever I get a zip file as an attachment, I can't figure out where the file is actually stored.  If I click the file, it is quickly unzipped but I can't for the life of me find where the unzipped file was placed.  It's not in Documents, or Mail Downloads, or my Home directory, or anywhere else that I can find.

Does anyone know where attachments are stored, BEFORE they have been saved anywhere else explicitly?  I'm using IMAP.

I believe this is in:

~/Library/Mail/V2/
  IMAP-[address]@[server]/[Mailbox].mbox/
  (various folders)/Attachments/(various folders)

If you look in your Library folder for the Mail folder, then explore that a bit, you can hopefully see what I mean.  To see your Library folder, in the Finder, open the Go menu, hold opt or alt (depending upon how your keys are labelled) and then choose the Library option that appears.

Be careful not to change files in the Library folder unless you understand the consequences and have a good backup...


How to Change Login Pic for Other In Mac OS, when you have your login screen configured to show a list of users (as opposed to a username/password text box combo), each user is accompanied by a large circular image.  This is alternately known as a 'User Picture' or a 'Login Picture'.  All users have such an image even if they are the generic gray silhouette image.

Furthermore, when you enable network users to log into your mac, and have the login screen configured to show a list of users, the User Pic that accompanies the 'Other...' user is a special login picture, which is a gray silhouette of three individuals, like so:

I would like to change this image so that I can have a more fun picture for the students in my school to click on when they want to login with their network account.  I do not know how to do this.

One idea I had, and it was admittedly something of a brute force idea, was to find that image on the hard drive and replace it with a picture of my choice.  The image seems to be this one:

/System/Library/CoreServices/CoreTypes.bundle/Content/Resources/Everyone.icns

However, overwriting that file with a normal image had no effect on the login screen, so I am thinking that either, 1. that isn't really the file being used, or 2. it is the correct file but something else needs to change in addition to over writing it with a different image.

To clarify: I am solid on changing the user picture for normal users and I have a script in place already to do so. I do not need help with that.  It is the 'Everyone' image, or the gray silhouette of three heads, that accompanies the 'Other...' prompt on the login screen that I would like to change.

The "Bounty Goal" is to replace the 'everyone' image on the login screen with one of my choosing.  This is not the same thing as providing a login pic for an individual who has signed in by clicking on the Other link.  Thanks in advance for solving this!!

One possible explanation for the lack of success so far may be that if FileVault is enabled, the system is booting from the EFI partition,(because the main drive has not yet been unlocked).

In previous OS versions, the login screen's resources are obtained from the Recovery partition, though I mounted mine on Mohave and couldn't see anything relevant.

https://superuser.com/questions/362788/how-do-i-change-the-filevault-login-icon-on-osx-lion/364587#364587

As it turns out, replacing the login icon for the 'Other...' prompt on the login screen is as simple as:

Disable SIP.
Overwrite this file with any image of your choosing that is 72x72 pixels /System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/Current/Frameworks/LoginUICore.framework/Resources/OtherUser.png


What is analogous to the Windows registry in Mac OS X? I am new to Mac and was wondering where application/OS settings are saved.

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

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

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

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

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


OS X (El Capitan) Terminal Fn-Up and Fn-Down stop working as Page Up and Page Down I've identified a strange "state" my Terminal program seems to get into.

It doesn't happen on all tabs -- right now, one tap can Page Up/Down properly, and another one can't.  When I open a new one, it works normally.

When I'm SSH-ed into a host, the Fn-{Up,Down} act as if I didn't push Fn at all (it just scrolls through command history).  When I Ctrl-D and come back to my localhost, Fn-{Up,Down} now enters a tilde (~) while making the system alarm sound, \a I guess.

Typing 'env' gives the same output for a working and a non-working xterm.

TERM_PROGRAM=Apple_Terminal
SHELL=/bin/bash
TERM=xterm-256color
TMPDIR=/var/folders/5k/cj6xf05d5_d_m22mx1wswsz40000gn/T/Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.7GeRJow4kg/Render
TERM_PROGRAM_VERSION=361.1
TERM_SESSION_ID=4B6653B9-5A28-4029-AF34-E1CC01832446
USER=[username]
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.qQDRCEL1Qm/Listeners __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
PWD=/Users/[username]
LANG=en_US.UTF-8
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=1
HOME=/Users/[username]
LOGNAME=[username]
_=/usr/bin/env

Also, moving around the program's drop-down menus didn't seem to show any options that I was unaware of.

Direction towards finding the source of this issue?  It happens maybe once a day, not the end of the world, but I wish I knew where it came from.

Not using tmux or screen or anything like that.

I had the same problem.
To solve the problem when it appears: Open an ssh connection and close it again. Then it worked for me.


Conditional shortcuts per application in Keyboard Maestro I'd like the following behavior:

When I press [Cmd+S]:
   IF <Chrome is at the front>:
       Simulate the keystroke [Control] + [Tab]
   ELSE IF < Spotify is at the front>:
       Simulate the keystroke [Cmd] + [Right Arrow]
   ELSE:
       # Send the original keystroke
       Simulate the keystroke [Cmd] + [S]

How do I do this in Keyboard Maestro?

I thought selecting a Control Flow =>  Switch/Case macro would help me do this, but when I try to drag it to use it in an action clause it says "Switch of System Clipboard", and I can't find a way of converting this Switch/Case block into a switch statement based on the application at the front.

I'd suggest posting this on the Keyboard Maestro Forum in the future – they're very responsive there:

There are a few ways I can think of. First, you could set a variable based on the front application and then use that in the switch/case. This involves "set variable to text" %Application%1%(front application name) and then using switch case based on the variable (see below).

Basically, you're getting the front application name and then using switch case based on whatever the front application is named.

Set variable to text:

Switch case:

Second, you could just nest the 'if' statements (below). Thus, you ask the first 'if' statement and then if that isn't true, you go to the 'else' statement, which contains the second 'if' condition.


Bonjour bookmarks not supported? I was trying to get Bonjour bookmarks to show up in Safari on iPad and I came across this post from 2008 - "Safari for iPhone currently doesn't support Bonjour bookmark browsing":
http://lists.apple.com/archives/safari-iphone-web-dev/2008/Aug/msg00008.html

Is this still not implemented 4 years later?

Thanks.

Finally got an answer from Apple:

Is this still not implemented 4 years later?

Yes )-: Please file a bug about this, describing the specific use case you have in mind.
http://developer.apple.com/bugreporter/
Quinn "The Eskimo!" eskimo1@apple.com
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

Update: I raised the issue and got a reply saying it was a duplicate of Bug ID# 5553678, but I can't view this.


Count contents of one column if an adjacent cell matches a query in Numbers I have a spreadsheet maintained in Numbers where I record my practices at the range, which lists type of weapon (pistol, rifle, shotgun), as well as the numbers of shots fired.

I am readily able to calculate the total, but want a more granular overview.

The column recording numbers of shots is called "skudd", while the one recording type of weapon is called type. The formula I've got right now is:

COUNT(Skudd;COUNTIF(Type;"Pistol"))

This should return something over 1500 shots, but currently returns the result 28. The number of times at the range shooting pistol is 18.

Use SUMIF instead of COUNTIF. SUMIF let's you search for a value in one range and accumulate values in another range if a match is found. COUNTIF counts the occurrences of a match, which is why you're getting lower than expected results.

Let's say I have two columns: Type and Count. Here's our sample data:

If I want to SUMIF all the Count values when Type is value A I'd use:

=SUMIF(A2:A7, "A", B2:B7)

Doing this for values A, B and C yields the correct results on our simple data set so we can convince ourselves this is what we actually want:

So, in your case, you'd want to do something like:

=SUMIF(<range where you keep gun type>, "Pistol", <range where you keep shots fired>)

And that would give you the total shots fired any time you recorded the gun type as Pistol.

Note, it's not necessary for the columns to be adjacent, which is nice. But they should have a similar range or odd things can happen.


How can I look inside iOS apps' folders from within iTunes? When looking at an app's documents with iTunes (in the Apps tab of the iDevice), it is possible to view folders of the documents created by the apps. How can I look inside them? Double-clicking does nothing.
Here's a screenshot showing what I mean:

I'd like to avoid saving the folder, viewing it in the Finder, changing it, and re-downloading it to the iPad.

You cannot using iTunes, however products such as PhoneView allow you to browse inside folders under the App and transfer files also, all outside of iTunes.


Is there there an iOS equivalent of Android's "Delete app storage"? For many years Android has had a function which allows one to wipe a certain app's data by going to
Settings -> Apps -> (select app) -> erase app storage.
Most of the time, this will reset any data stored by the app, as if it was freshly downloaded.
Is there an iOS equivalent of Android's "Delete app storage"?

Not really - On iOS, deleting the app only deletes the data in its sandbox. If the developer doesn’t offer this toggle in the settings app (or you don’t trust the developer to actually wipe the data) you might have a problem if you expect all traces to be removed.
The problem is apps store data in a lot of places that aren’t the app sandbox. Look at keychain, cloud and application group stores for places where “data the developer really doesn’t want you to delete” can persist.
In the case where the app uses a group data entitlement, that data will persist and one app can participate in more than one group. A very notable version of this is Microsoft Office suite of iOS apps - they all share one group container so deleting an app doesn’t necessarily delete that data. Licensing and identity is stored in the group area, but individual data (Word / Excel / Outlook) is still stored within the app bundle so deleting Word, deletes the Word-specific data, but not some data relating to Office (licensing and identity and certificates for example).
So, no - sandboxing is different on iOS and there’s not an OS setting to wipe as a direct analog to how Android implements this. You’ll need to consider each app, whether it syncs to iCloud data store, to another data store or a group container to achieve your needs.


Run app that has expired by Apple fiat? My Mac is running out of space and its shutting down VMs on occasion. I purchased a program called Space Gremlin from the App Store a few years ago. When I attempt to run Space Gremlin, I get the following message:

When I purchased the app, there were no restrictions on it, so this behavior is new to me.

I wrote to the authors of Space Gremlin, and they told me it was an Apple message. I no longer have an App Store account, so there's nothing for me to do with Apple.

How do I run the Space Gremlin program?

Your licence to use and run Space Gremlin are effectively bound to the purchasing Apple ID.

From this discussion, it appears you have chosen to abandon the Apple ID associated with this purchase:

  Since they abandoned help with the account, I responded in kind and abandoned it too.

By abandoning the Apple ID account, you have also abandoned any purchases and licences associated with the account. In this case, that includes being able to run Space Gremlin.

Be aware that you never owned or had an absolute right to be able to run the application; I do appreciate this is unlikely what you want to hear. The first paragraph of Apple's USA default Licensed Application End User Licence Agreement reads:

  The Mac App Store Products and App Store Products (collectively, “App Store Product(s)”) made available through the Mac App Store Service and App Store Service (collectively, “App Store Service(s)”) are licensed, not sold, to you.

From a developer's perspective, the Digital Rights Management (DRM) problems you have suffered are a compelling reason to offer non-Mac App Store editions of their software.

Older Version?

As a workaround, you may be able to find an older version of Space Gremlin that did not implement Mac App Store receipt checking – assuming a version once existed.

Alternatives

Have you considered using an alternative tool, such as the open source GrandPerspective?

Other tools and utilities are mentioned in the answers to these questions:

How can I figure out what's slowly eating my HD space?
What is consuming HDD space on my MacBook Pro?
How do I quickly find large files and folders on my mac?


MBP w/ OS X 10.8.3 Performing Quite Slowly Lately My MBP (2.66 GHz i7, 4GB RAM, 500GB HDD) is about two or so years old. It's been running like a champ for most of its life. However, within the past few months, I've noticed a considerable degradation in the speed and responsiveness of the computer as a whole.

I figured this might be a disk problem - so I ran the disk utility and it produced no noticeable improvement after a repair. Then I figured it might be a RAM usage problem - and I monitor and purge my RAM as often as I can (although I've not had to do this in the past). I figured it may be a problem with the system files, so I reinstalled OS X.

After all of that, the computer is still pretty slow. When I have only Chrome and iTunes running (with a handful of non-intensive small programs in addition), the computer will still operate at a snail's pace and use up almost all of its 4GB of RAM.

I'm seemingly out of options to attempt to improve the performance of my computer to the level that it was about a year ago. Any help?

One of the first thing Apple technical support will have you do is to create a new user: log out of your current user, log into the new user and see if that helps. Toss a restart in as well.


Old home folder not recognized after upgrade, how to recover? Upon first boot after updating from 10.6.x to 10.8.x my friend started creating a new user account rather than importing the old one.

When I look in ~/Users/.. I see /new_account and /old_account, but when on the login screen I'm only seeing New Account and Guest.

Is there an easy way to get OS X to recognize the Old Account?  I was thinking there was something like blessing the folder, or maybe I need to add a user account with a matching name?

If you create a new account with the same name, it should prompt you to use the existing User folder.


Lion changes the sleep behavior when closing the lid of a MacBook In Snow Leopard, whenever you close the lid of a MacBook, it puts it into sleep mode. Simple as that.

In Lion, it only puts it into sleep mode if it's running on it's battery. If it's plugged in it stays awake.

Does anybody know how I can get MacBook to start sleeping when I close the lid, regardless of charging state again?

Ok guys, I figured it out.

I don't really know what is going on underneath, but it has something to do with having "Internet Sharing" enabled. Just disable it when you're not using it and your MacBook should now go into sleep mode when the lid is closed, even when it's plugged in.


Remove Little Snitch via script I want to be able to uninstall Little Snitch over Apple Remote Desktop. I came across the script below here: http://fromtheadmin.com/kill-and-remove-little-snitch-application-via-ard-script/

However when I run the script locally on a test machine with Little Snitch running, Terminal returns "No matching processes belonging to you were found". I can see the Little Snitch UIAgent and Little Snitch Network Monitor processes in Activity Monitor running under the same account as the script is being executed from.

Any ideas?

#!/bin/sh
NetworkMonitor="Little Snitch Network Monitor"
UIAgent="Little Snitch UIAgent"
File="/Library/LaunchAgents/at.obdev.LittleSnitchNetworkMonitor.plist"

#remove Little Snitch files and User Preferences

if [ -f $File ] ; then

#Kill Little Snitch Processes
killall $NetworkMonitor
killall $UIAgent

rm -R /Library/Application\ Support/Objective\ Development/
rm -R /Library/LaunchAgents/at.obdev.LittleSnitchNetworkMonitor.plist
rm -R /Library/LaunchAgents/at.obdev.LittleSnitchUIAgent.plist
rm -R /Library/LaunchDaemons/at.obdev.littlesnitchd.plist
rm -R /Library/Little\ Snitch/*
rm -R /Library/Logs/LittleSnitchDaemon.log
rm -R /System/Library/Extensions/LittleSnitch.kext
rm -R "/Applications/Little Snitch Configuration.app"

usr/sbin/jamf displayMessage -message "Computer is shutting down"

sleep 10

reboot -q

exit 0

else

exit 0

fi

Thanks.

There are multiple problems with that script:

Bare string variables with embedded whitespace: put "" around
the killall arguments.
Overkill: if you're going to remove the software and reboot, there's
no need to whack processes. There's a risk with LS that you could
shoot your own session (and script) if taking out the LS processes
glitches the network. If you believe you need to kill processes that
act as gatekeepers for network traffic, you should make sure your
script is not subject to normal hangup handling (see the man pages
for nohup and batch for ways to do that)
Underkill: if you're committed to killing the active components of
LS before reboot to be sure (i.e. as if it were self-protective) you
need to also take out the Little Snitch Daemon process and unload
the kernel extension. There are also logs, caches, prefs, and
support files in the user-specific Library trees.
Not running as root: killing Little Snitch Daemon, unloading the
kext, removing most (if not all) of the system-wide components,
removing user-specific support files for multiple users, and
rebooting all require root.
Running reboot -q: Don't do that. It's safer on modern MacOS than it historically has been, but it can still be trouble. Better
to use  shutdown -r +1 "Rebooting for software change" which gives
a minute grace period, posts that message to any interactive shells,
and uses the proper launchd mechanisms to shut everything down. If
you want to be less polite, use "now" and/or no message.


Get URL of opened tab / tabs from terminal I have a tab open in Google Chrome. Is it possible to get or check it's url from terminal? If not, how about automator script?

Will also be satisfied with a title.

To get the URL or Title of a Tab within Google Chrome via the command line, in a Terminal you can use osascript to either execute AppleScript statements or a programfile.

To see what is available in the Google Chrome AppleScript Dictionary, the dictionary can be opened and reviewed in the Script Editor using the File > Open Dictionary... command.

Here's a simple example to get the URL of the first Tab of the frontmost Google Chrome window:

osascript -e 'tell application "Google Chrome" to get URL of tab 1 of window 1'

For the Title under the same conditions:

osascript -e 'tell application "Google Chrome" to get title of tab 1 of window 1'

To get them both at the same time, under the same conditions:

osascript -e 'tell application "Google Chrome" to get {title, URL} of tab 1 of window 1'

Depending on exactly what it is you're trying to accomplish the statements can be more complex and handle multiple Tabs and or Windows, etc.  Although this is where using osascript to call a programfile verses using -e statement will probably be easier.

Here's the output from Terminal when this page is the target Tab:

$ osascript -e 'tell application "Google Chrome" to get URL of tab 1 of window 1'
http://apple.stackexchange.com/questions/232565/get-url-of-opened-tab-tabs-from-terminal
$ osascript -e 'tell application "Google Chrome" to get title of tab 1 of window 1'
osx - Get URL of opened tab / tabs from terminal - Ask Different
$ osascript -e 'tell application "Google Chrome" to get {title, URL} of tab 1 of window 1'
osx - Get URL of opened tab / tabs from terminal - Ask Different, http://apple.stackexchange.com/questions/232565/get-url-of-opened-tab-tabs-from-terminal
$


Keyboard shortcut to open folder with Sublime Text Is there a way to define a keyboard shortcut that would open a whole folder with Sublime Text?

I can (obviously) easily open a file, I managed to define such a shortcut for opening a Terminal window at the folder location through keyboard preferences, but I don't know how to do that for 3rd party apps.

Open System Preferences

Select Keyboard, then the Shortcuts tab

In the left pane, click on Services

In the right pane, scroll to Files and Folders

Select Open in Sublime Text (or Add to Sublime Text) and click add shortcut

Select a shortcut.


iTunes share Library not Loading Correctly I turned on home sharing on my iMac & I want accessing my library from my iPad. The setup went smoothly and I was able to access my Library from my iPad but some of the content isn't showing up correctly. To be more specific some TV shows are listed more than once and some others are not shown at all. How do I fix this.

PS (All my devices are running the latest software)

To solve this problem & set the artist of all shows to the name of the TV show & set all episode IDs in the form of S#E# (season number & episode number)

PS. when setting the episode ID of the first 9 episode write the as "05" not just "5" else they will not be sorted correctly.


I'm trying to create an AppleScript that filter certain files into different folders I have various files / types, usually labelled in this kind of way:

000_160905_Iceman_Rumble_BA.jpg

There will be a variety of jpegs, PSD's, models etc and I need to find an automated way to file them away into various folders by date in some instances, by file types in other instances and by the initial of someone (BA).

Is there a way in AppleScript, where you can select certain characters from a file type (e.g the date in the file above), to automatically sync to another folder of my choice?

If anyone could help me here it would really save me!

Thanks

Here are some scripts that will help you. They are based on having some file selected in the Finder. The first one looks at each file, one at a time, and if the file's extension is jpg or png or gif, the file is moved to the Pictures folder.

tell application "Finder"
    set folder_one to path to desktop
    set folder_two to path to pictures folder
    set the_files to the selection
    repeat with a_file in the_files
        if name extension of a_file is in {"jpg", "png", "gif"} then
            move a_file to folder_two
        end if
    end repeat
end tell

The second script finds the last two characters before the extension, as in your "BA" at the end of your example file's name. Files are moved based on those last two characters. The script is not as tightly written as it could be but I wanted you to be able to read it and understand what is going on.

tell application "Finder"
    set folder_one to path to desktop
    set folder_two to path to pictures folder
    set the_files to the selection
    repeat with a_file in the_files
        set the_name to name of a_file
        set the_extension to name extension of a_file
        set the_extension_length to count of characters of the_extension
        set the_extension_length to the_extension_length + 1 -- for the dot
        set the_short_name_length to (count of characters of the_name) - the_extension_length
        set the_short_name to characters 1 thru the_short_name_length of the_name as string
        -- Now we have "just the name" (no dot, no extension)
        set the_last_two_characters to characters -2 thru -1 of the_short_name as string
        -- do stuff here, based on what those last two characters are
        if the_last_two_characters = "AB" then
            move a_file to folder_one
        end if
        --
        if the_last_two_characters = "XY" then
            move a_file to folder_two
        end if
    end repeat
end tell

Those scripts will get you started. You can use scripts like this with Hazel, as mentioned by tubedogg earlier, to file items as they are added to a folder.