How to move from beta to stable releases of OS X I have this VM which is currently on OS X El Capitan Version 10.11.4 Beta

I would like stop downloading beta in future and just use latest stable version

I have unenroll from the beta program

Now when 10.11.4 Stable version becomes available would i be able to upgrade to that one?

What is the best way to unenroll and go to stable releases in future?

Apple Store preferences options disappeared on newer releases and so far the only way to unenroll seems to be via the command line

sudo softwareupdate --clear-catalog


Charge from USB on computer or wall socket? Is it OK if I keep charging my iPad and iPhone using the Mac USB ports? Or is it better to charge them with the supplied chargers?

I understand that charging slowly is better (though I'm not sure why), and I don't think it can get any slower than 1 day for the iPad using the USB port.

Charging more slowly won't make any difference, other than reducing the slight side effect of heat buildup on the iPad.

But it's perfectly OK to use lower powered ports such as those on your computer instead of the main powered chargers.

It's also perfectly OK to do it the other way around; you can charge your iPhone using the more powerful 20W iPad main adapter. It won't actually charge any faster than using the equivalent iPhone adapter, though. People will warn you that you'll damage your iPhone using this method, but that's simply a misunderstanding. 20W is the amount that the charger is capable of delivering, but if the phone doesn't ask for it, it doesn't get it. It's not all or nothing.


Separating podcast mp3 files from music files? I have some mp3 files on the computer of podcasts I want to hear. I can simply sync them to the iPhone (4, iOs 5.x) like any other music file but I wondered if there's a way to treat them differently - I don't want them to appear in my music (for example, when shuffling songs I don't want the podcasts to appear).

Is there a way to separate music from podcasts? In iTunes I see a "podcasts" tab in my iPhone but I don't see how to import files there.

Add the tracks to iTunes as usual, then right click on the track and select "Get info". There will be a tab named "Options" in the window that shows up, click on that and you will see an option named "Media kind". If you set the media kind to "Podcast" the file will show up in the Podcast section of iTunes and your iPhone.


Concatenating AVI files with multiple tracks I have a directory of AVI files that I would like to combine into a single AVI file.  These AVI files come from a dash cam and have two video tracks -- a front camera and a rear camera.

I tried to use the suggestion here to combine the videos.  Specifically:

ffmpeg -f concat -i <(for f in $PWD/*.avi;do echo "file '$f'";done) -c copy output.avi

This works great for the first (front) video track but completely removes the second (rear) video track.

How can I concatenate these files and retain both video tracks?  Alternatively, is there a way I can specify the video track to concatenate?

Basically what you need to do is demultiplex each file, then concatenate the resulting files. There is a way to do this with the concat filter, but it requires re-encoding everything as it goes.

So you need to do two operations. First, demultiplex. (Note this is untested with ffmpeg, as I don't have any video files to test with, but should theoretically work.)

I=0;J=1;for f in $PWD/*.avi;do ffmpeg -i "$f" -map 0:v:0 -codec copy output$I.avi -map 0:v:1 -codec copy output$J.avi && I=$(($I+1)) && J=$(($J+1));done

Then you can use the concat demuxer as usual:

ffmpeg -f concat -i <(for f in $PWD/*.avi;do echo "file '$f'";done) -c copy output.avi


iOS 4.3 Beta for Apple TV I'm wondering if anyone knows what features will be offered in iOS 4.3 for Apple TV?  I'm primarily trying to find out if the Netflix app will be updated to support subtitles.

I'm wondering if anyone knows what features will be offered in iOS 4.3

While in beta, we, Apple Developers with access to the developer portal, are prohibited to say anything regarding the beta iOS.


Can I use Javascript to write a custom function for Numbers? It's always annoyed me that I can't write a custom function for Numbers. It would make the spreadsheet so much more useful to me.  In Google Apps spreadsheets you can do it, using Javascript.

In other words, you write

function myCustomStuff(a, b) { ... }

and a cell can contain:

=myCustomStuff(A1, B2)

Now, in Yosemite, they have Javascript automation. I wonder if it's possible.

No - injecting a function looks to be something that isn't easily scriptable.

A simple macro might be doable and you could start with these two references:

https://developer.apple.com/library/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html

This link is the developer documentation on how to connect the script to the Numbers app.

https://iworkautomation.com/numbers/cell.html

This automation site has for a very long time been the best place I've known to learn and implement AppleScript tools.

If you're new, you could follow the numbers tutorial in AppleScript to make sure  you have a workable task and then re-code it in the new language. Then you'd need to determine the hooks in Numbers and see if your specific task is doable without utilizing the Objective-C bridge which allows lower level integration to apps on OS X.


Time Machine takes way too long Time Machine is taking way too long to back up just 1.5 GB, some times it takes a lot to prepare the back up, and some times it takes a while to back up the information, any pointers on this issue? (I'm running Yosemite).

It depends:

TimeMachine on WiFi

TimeMachine does not backup if heavy traffic is going over the Network, there is something like Quality of Service running in the Background which throttles the upload speed to you TimeCapsule.
Also your WiFi Connection could be bad, as it was in my case. I did not recognise the bad connection with surfing (less upload and general only 8Mbit/s Speed) but 1,5GB to upload over a bad connection >1Mbit/s would take about 3 hours.

TimeMachine on USB

Is your drive full? Disks can operate in a performant way up to 80% of capacity, the they get significant slower.

Is you drive old or defect? Sometimes drives are doing a lot of seeking and old drive have a high seek error rate, this will slowdown writing (especially at a >85% full disk an small files)

Are the files small? Many small Files takes longer to get sorted and processed my the Time Machine.

Are you using USB3? Make sure the drive is away from you Macbook, this helps sometimes with old USB3 Chipsets on external HDD enclosures.

General Suggestions:

Turn on an Off you Mac
Make sure Hardware is okay (HDD test)
Make sure connection to TimeMachine is good
Type in Terminal: killall mdworker
Try Again ;)

Apples Suggestions:

Slow Time Machine

Try these suggestions if Time Machine is slow.
The first time you use Time Machine, set it up in the evening so that the initial backup can be done overnight.

If your backup disk is a Time Capsule, leave your Mac in the same room as the Time Capsule for the initial backup, or use an Ethernet cable to connect your Mac to one of the Ethernet ports on the Time Capsule.

Virus scanning software can make Time Machine backups very slow. If you use Norton AntiVirus or a similar product, try to exclude your backup disk from automatic scanning. Also make sure you are running the latest version of the virus scanning software.
 Exported from Apple Support Site

OS X Yosemite: If Time Machine remains in the “preparing” stage

After the initial backup, Time Machine backs up only files and folders that have changed since your last backup. Time Machine displays a “Preparing...” message while it compares your current files and folders to those in the most recent backup.
The length of preparation time Time Machine requires depends on the amount of information on your Mac, the size of the backup, and the speed of the connection between your Mac and the backup disk.

The preparation stage can also take longer if:
The previous Time Machine backup was interrupted.
The Mac wasn’t shut down properly.
A disk was disconnected from your computer before being ejected.
A software update was recently installed.

You used your Mac for several days without performing a backup. This can happen if the backup disk was disconnected.

Antivirus software can also cause backups to require more time. Make sure your Time Machine backup folder, located on the backup disk and named “Backups.backupdb,” is excluded from virus scanning. Exported from this Apple Support Page

Last but brutal tip:

Reformat the TimeCapsule or the TimeMachine drive and make a new initial Backup over Ethernet or USB. And restart you Macbook, sometimes the mdworker is slowing down.


I was wondering how do you use find my iPhone? I was wondering how to use find my iPhone? I mean like the tracking thing where you can track your device how do you do that?

Log into https://www.icloud.com using the same appleid used for iCloud on the phone. Click the Find my iPhone Button.

You can also use the Find iPhone app on someone else phone.  Just log into that app (it opens to the login screen) using your appleid and password as above.

You can also "play sound" (even if the device is on vibrate only), set lost mode, and remote wipe the device.   FWIW, you don't really want to remote wipe a lost/stolen, just set lost mode so the phone remains trackable, once it's wiped it's no longer trackable.


Safari - menu to show live tabs open in open windows I often have five or six Safari (and Chrome) windows open, each containing several tabs. I often lose track of where a live tab is when I want to return to it.

I can use the Safari window menu option from the main menu to list the names of the active/front tabs in all the open windows, but this doesn’t help me if the tab I’m after is not active/at the front of its window.

Is there an AppleScript or extension that expands on the 'window' menu to list ALL tabs within a window as a child menu item / drop-down?

This would save me minutes of frustration everyday. I’d love a similar solution for Chrome! I've come across https://addons.mozilla.org/en-US/firefox/addon/tree-style-tab/ for Firefox which looks good but I’d prefer that the tree or list is available from the main menu and not within the browser viewport.

If you have Alfred 2, there is a workflow for selecting Safari tabs by typing. It includes tabs from all windows, but it doesn't group them by window.


What is this brown sticky residue in my MacBook Pro charge port? I have just noticed a brown type of sticky residue in my charge port on my MacBook Pro, it wipes off but not completely and to me it smells like battery.

Can anybody tell me if I have a problem here, or if this is normal?

The battery is no where near that part - it's in the hand rest portion of the computer. Also, lithium polymer batteries don't really ooze liquids that would travel that far inside the computer, so it's probably the result of a spill near that area or just corrosion (rust) of the contact once the plastic covering has worn away.

However, any liquid or corrosion by the charging port should get checked out with someone moderately familiar with how electronics work - especially if you leave it plugged in and not on a fireproof table if you could be risking a fire in a house where people sleep or someone might not be aware enough to leave if trouble starts.

The time it would take for a technician to give your Mac the "all clear" would be 5 minutes and the screwdriver needed to pop the top. This is the equivalent of opening the hood and measuring the oil level in a car or truck.

I would clean off the area with a cotton swab and watch. If any more coloration or liquid arrives, take it in for service. Also, if the liquid were inside, you will see some coming out of the thunderbolt port as well. If a bright light and light magnification (or iPhone picture with flash) doesn't show any additional moisture, you might be safe with just some surface rust / a one time wet magsafe connector.


Will migrating an SSD drive to APFS prolong its life? For Apple hardware that ships with SSD only storage, will switching the file system from HFS+ to APFS prolong the life of an SSD drive?

Will switching the file system from HFS+ to APFS prolong the life of
  an SSD drive?

No.  APFS was optimized for flash (NAND) SSDs.  In other words, it was designed to fully utilize the capabilities of an SSD to provide better performance.  It wasn't implemented to prolong the life of an SSD.

In most respects, the life will be shortened. Why?  Increased write operations for

Encryption
Snapshots
Metadata

None of that matters however, because based on the calculated life expectancy of an SSD, you will run out of capacity, long before it dies from usage.  In other words, it's a moot point.

  What other advantages/disadvantages it might bring?

This is entirely opinionated question.  However, one thing to keep in mind is the initial premise of the answer - APFS was designed for SSDs. Meaning it wasn't designed for traditional spinning hard disks.  Quite frankly, I've never upgraded a file system and thought "gee...this new feature is a disadvantage."

So, a better way to look at this is the advantages/disadvantages of running APFS on spinning disks versus SSDs.

For example, APFS on an SSD has encryption at it's core rather than another layer on top of the file system so, it's faster and more secure (advantage).  On a spinning drive, this results in more read/writes on the physical media meaning slower performance, higher overhead, and shorter lifespan (disadvantage).

For an indepth look from a ZFS developers perspective, see this article


Weather information on the notification pull-down is useless For example, it's nearly midnight now.  Look at the information I am provided.

Is there any way I can have it show useful information instead, like perhaps...

the low tonight
the temperature tomorrow morning
will it be rainy tomorrow?
the high tomorrow afternoon

The built-in weather information is pretty lame and has no settings associated with it. That said, you should look into other weather widgets that you can install and display instead of the iOS-supplied info:

http://9to5mac.com/2014/09/26/ios-8-weather-widgets-best/


Inactive menu bar in Yosemite blinks annoyingly I created a little screen recording to show the effect on my mac.

There are no special applications running which would change the menubar (like Google Drive, ownCloud and the like)

During the video I am just surfing with Safari or clicking around in Finder on the other screen. This blinking takes place all the time. Sometimes it is colored, sometimes just bright or dark. It is really distracting when there's a blinking effect in the corner of your eye.

Any idea what triggers this strange behaviour? Or might this just be an annoying bug in Yosemite and I have to wait for an update from Apple?

(In the meantime I downgraded back to Mavericks using a TimeMachine backup, which - much to my surprise - was no hassle at all! I think I'll refrain from installing Yosemite again, until an update will be offered by Apple.)

After checking the option "Reduce tranparency" in "System Preferences" -> "Accessibility" -> "Display", the blinking finally ended. Now the menubar also looks more like in Mavericks, no blurred tranparency effects anymore: neither in the title bar of my windows nor in the menubar.


Make terminal command use both CPU cores This may be a bit of a easy question, but I couldn't find anything about it after googling a bit, sorry!

Is there any way to make a command use both of my CPU cores? I am currently processing some PDF files using GhostScript, but whenever I run the command in the terminal, it uses only around 100% of my CPU. I have to run two instances of it to get it to use 200% of my CPU and thus be twice as fast. Even then, for some reason, 40% of my CPU is "idle," according to Activity Monitor, which may imply that I can run more instances.

Is there a way to make this GhostScript command use all of my CPU to be as fast as possible, without having to manually run multiple instances of the command?

Depending on the number of PDFs you have to process and the nature of the tasks, you may consider installing GNU parallel in brew.

GNU parallel allows you to execute several jobs concurrently. Example:

parallel ::: yes > /dev/null yes > /dev/null

An example script (containing small errors e.g. line 13 should start with find instead of ind!) how to use parallel and ghostscript can be found here: Quick shell script for parallel OCR on PDFs using ghostscript and tesseract

Please also check the extensive man pages of parallel.


Close MacBook when using ext. Screen? I have got a MacBook pro with retina display.

Now I want to use a trackpad and keyboard and an external screen on the MacBook.

Can I close the MacBook now to keep working or does this initiate the standby so I can't use the external devices anymore?

If you have an external display attached with an external mouse/trackpad and keyboard, closing the lid will not put the machine in standby mode. You can keep using the computer with those devices.

Check this Apple link to read the official statement about it.

  Requirements for closed display mode:

  Power adapter
  External keyboard, mouse, or trackpad
  External display


I can't log into my Apple ID account on websites / can't download apps / edit Apple ID settings I changed my sim to another sim because I was on vacation in another country and my "trust number" in the apple id settings was changed to the new temporary sim number.

And now when I came back and I want to change it back to my real sim number (in my country - I already replaced the sim) I can't remove / add / edit
it to my real number it says all the time some "error" like could not connect to iCloud / Could not verify phone number and below it "We cannot process your request, please try again later."

For some reason I have two factor authentication and when I try to log into my Apple ID it says below the login form in yellow box - "We cannot process your request, please try again later." I get 6 digits code to my phone but I have no where to enter the code... Nothing is showing up..

When i try to download apps it says that "App store and apple music cannot process your request at this time" Please I need help I don't know what to do anymore!

Best thing to do in this case is find a working web browser and try signing into iCloud.com or appleid.apple.com to be sure your account isn't locked or you have a password issue.

When that's sorted, go back to the device and try one thing before you move on to the next. Check date/time on the device since most Apple log in are very strictly SSL / HTTPS checked and time being off will block the log in attempt as does network shenanigans like man in the middle type privacy attacks (or "snooping by someone" using http proxy).


In AppleScript when entering password, is a click required I'm writing an AppleScript to toggle on/off a VPN connection for a computer.
I have things more or less working, however, I have to click on the password prompt dialog in order for the script to enter my password.
Here is the code block to put the password in, I added the reopen and activate commands because I thought they would bring the window to focus.
-- Enter the password now!
tell application "System Events"
    tell process "SecurityAgent"
        reopen
        activate
        set value of text field 2 of window 1 to myPass
        click button 2 of window 1
    end tell
end tell

Is there something simple I'm missing?

UPDATE
Ok Update - Actually it looks like it IS entering the password but its after maybe a 6 second delay or something like that.  I'm no sure if that changes the question

Try adding this to your code:

set first responder to text field 2 of window 1

This should bring focus to the text field.

For reference, see this post on MacScripter


Rename .app and using the new name with open -a I want to change the name of Visual Studio Code to vscode for using the command open -a vscode. Any idea how?

You can make a symbolic link:
cd /Applications
ln -s Visual\ Studio\ Code.app vscode

You can then open it with:
open -a /Applications/vscode


Finder doesn’t see files on Android devices from MacBook Pro USB commections I have a Macbook Pro which I am trying to attach an Android device via USB (the Macbook recognizes my iPhone 6S just fine via USB).

The Android device is a Samsung Note 3, and I expected when I plugged it into the Mac it would show up in the Devices section of Finder.  It does not.

I tried a coworkers Android device, and the Mac was not able to see that either.

Both Android devices were getting power from the connection.  But I am not seeing them in Finder.

How can I connect my Android so I can see it in Finder on my Mac?

You need an app for OS X/macOS to transfer files from an Android phone to your Mac.

Try Android File Transfer from Google.

Also, a suggestion from another forum is:

  Try disabling Settings -> Applications -> Development -> USB
  debugging in conjunction with setting Settings -> Applications ->
  USB settings to Mass storage.


Problem with snippets in Zsh I recently changed my shell from bash to zsh. I have lots of snippets (Alfred, Dash...) for terminal use that ends with a line break. With bash that snippets works fine, I meant, paste the command and execute it (as ends with a line break).

The point is that in zsh, doesn't work as I expected. The snippets paste the code and add a line break, but without executing the command. Is there any way of fixing this?

I'm using iTerm.

Adding unset zle_bracketed_paste in ~/.zshrc file ZSH will treat newlines in snippets as ↩.


Develop in-house app for another company signing with own Apple Developer Enterprise account My company has regular/yearly Apple Developer Program membership. At the moment I'm developing an app for another company, to be used only in-house. They are asking me to give them a signed IPA file.

Through the question:

Xcode : Can't Export in-house app .. provisioning profile error

I found out that I need to be enrolled in the Apple Developer Enterprise Program.

Now my query is, if my company takes the Apple Developer Enterprise membership, and we distribute and sign the app for in-house use, can my customer (the other company) use the IPA file with the signing from my Apple Developer Enterprise account for in-house use? Or must the siging be with their Enterprise account?

Apple does not allow you to use company A's Enterprise account for signing apps to be distributed and used amongst employees of company B, unless company B is owned by company A.

A few other exceptions exist, for example for car manufacturers and their dealerships, and for hotel chains and their individual hotels. Also an exception exists if the employees of company B are actually physically located at company A's premises, and company A control the devices (i.e. they own the devices or they can remove these apps again). If your case do not fit these exceptions, you'll need individual approval from Apple for you case. This is normally not possible to get.


How do to hibernate OS X in order to reboot to Windows 10 I have Yosemite and Windows 10 installed on my Macbook Pro 2015.
On Windows 10 I can hibernate. Then press the power button and hold down ALT key to boot from OS X.
However, I can't do the same thing the other way around.
I have to shut down Yosemite or restart, in order for the ALT key to work for booting options.

I tried the pmset hibernationmode 25 thingy with 1 second of standbydelay - when I press the sleep button and after that the power button, holding down ALT key doesn't give OS boot option menu.

Is there a way to achieve with OS X what Windows does?

I am trying to find a working way to do that for a few days now, browsing a bunch of topics here on stackexchange and different articles over the internet - nothing seems to work.
I haven't tried third party paid applications though.
Tried DeepSleep application - it's hibernation feature also doesn't bring up the boot menu when holding down ALT either. I am not even sure if it even hibernates.

Nope. OS X only has sleep, no hibernate mode. If you want to save your work while dual-booting, try a virtual machine, like Parallels or VMWare Fusion.


2 Apple IDs on one device? Can you have multiple Apple ID's on the same iOS device?

My girlfriend and I have both got an iPad and an iPod Classic and may well be getting iPhones at some point, we each have our own apple ID and I was wondering if I could have both Apple IDs logged into one of our iPads to avoid us having to buy Apps twice.

I would have thought that Apple wouldn't allow this, but I just wanted to check as I can do this on my current Android phone (Two Google accounts rather than Apple IDs obviously).

Yes, you can have apps installed from different Apple Id's.  Simply log in with whatever account you both want to use for purchasing.  You can log out and back in with a different App Store account at any time.

I have multiple accounts, and multiple devices sharing applications.

To follow up the other responses, your App Store account can be separate from your iCloud, Messages, and FaceTime accounts.  I use a separate account (Apple ID) for iTunes purchases than my iCloud account.

Some people even split things the opposite way - sharing email, FaceTime and messages but having different store accounts. It's really up to whatever works best for you and your devices.


What is the difference between a iTunes ID and an Apple ID? I have an Apple ID, do I also need an iTunes ID to purchase music?

There is no difference, Apple ID is the more general term and the one more commonly used nowadays.


Using apple watch + nike + running without the phone I have seen this question and there generally very little information  on this topic. In the question linked above the they talk about the activity app. I use nike+ running. Last time I went for a run I ran for some time with my phone in my pocket, then I ran without it and the watch would not pick up the distance or any other info during the run. I started the run from my watch so I thought it should not be problem. Has anyone figure this one out yet?

I think Apple's included Workout app can record activity and heart-rate data without the iPhone, but the Nike+ Running app can't (as of the 17th of November 2015).

Here's the info page from the iPhone Nike+ Running app (Nike+ Running > Settings > Apple Watch)..

Nike state that you need to have your iPhone on you.


How can I write a tab character in Safari? I tried using the tab key with the modifier keys, but I didn't get Safari to write a tab character in a text field shown in an HTML page.

Is it possible to do it? If it is possible, how can I do it?

You can use control-option-tab.

In other applications you can use option-tab, but in Safari tab and option-tab are used to select elements in web views.


Deleting Bookmarks and History in iPad I have deleted all Bookmarks and Cleared History in my iPad.  However, when I'm in the address bar of Safari and type www.p, a Bookmark/History shows up that I cannot delete.  Can you help?

As long as the iPad is not synced with other devices which might be adding those websites in history or website data again, these steps might help.

Tap on the "open-book" type icon in Safari to reveal bookmarks tap edit to remove them.

If you can delete your history, do it!

Go to Settings-> Safari-> Clear History and website data.

Make sure that the item is not in the Reading List either.


Mac-Compatible Sennheiser Lavalier Mic I am doing podcasts and videos, and I am currently looking to upgrade my sound quality. I have my eyes on the Sennheiser MKE-2, linked here:

https://en-us.sennheiser.com/clip-on-lavalier-microphone-live-speech-instrument-mke-2

However, I know nothing about compatibility between the Sennheiser MKE-2 and MacBook Pro. I have a 2015 15" MacBook Pro, and I was wondering the following:

Is the MKE-2 MacBook Compatible
Is there a general adapter solution to external microphone compatibility issues on MacBooks?

Thank you.

A lav mic like the one you linked to is so detached from your Mac that it really doesn't make sense to consider the compatibility between the two devices...

In a way, yes, all microphones can be made to work with your Mac, but if you were wondering if you could use one of the 1/8" terminated replacement model numbers plugged directly into the headphone jack, the answer would be a big no.

A lav usually plugs into the body pack (power feed/radio transmitter) on the wearer, used in situations where mobility is important (theatre, broadcasting, stage, etc.)

In a typical use case, you have lav → pack ⤏ (RF signal) ⤏ receiver → mixer → then the output. It usually comes part of a system comprising at least the first three components in that chain.

Between the mic and your MBP, there would have to be (at the minimum) an audio interface providing 48V phantom power. If you already have a system capable of powering a condenser mic, conceivably you might be able to order it XLR-terminated, but I don't know if Sennheiser would fill such an order.

Actually, your question made me curious and I googled around a bit, and to my surprise, did find this lav mic that looks like it would work directly plugged into the headphone jack on a MBP. It's definitely an oddball, but looks cool, apparently they use some MEMS device to make a proper condenser mic work with the limited current available from the TRRS jacks on iPhones and Macs. Maybe it would fit your requirements better.


Can I use different SSDs with different operating systems on a MacBook Pro? I have an early 2013 Retina MacBook Pro with only a Windows 10 partition. MacOS is not currently installed on the machine. The Windows 10 partition is encrypted with BitLocker and because of the partitions layout, I believe MacOS cannot currently be installed alongside Windows.

Can I temporarily swap the original SSD for a new empty compatible SATA III and perform a clean install of MacOS on the new SDD? I would like to see if any EFI and SMC updates are available for the MacBook.

When I'm done with MacOS, I would like to put the original SDD back in and continue where I left off Windows 10.

The boot volume does not need to be internal for OS X. Use any USB drive, boot while holding cmd+R. You will boot the recovery partition (from the disk of existing or other online, so it might ask you for a network connection).
Then just install on the external drive and boot from that by holding alt/option during startup.


One-click save to Downloads folder in Mail.app When I click on an attachment in Mail.app, the file opens in the mail downloads in my library. I can Ctrl-click on the attachment to save it to my Downloads folder. How can I save the file to the Downloads folder in one click?

I'm using 10.8.

I don't think it is directly possible. However, you can right-click on the attachment and select "Save to Downloads folder".


Automator workflow runs forever I have run into a problem with automator: I have a workflow that does image processing (it converts color images to gray). I am able to invoke the workflow from the terminal and it works fine. The command is:
   automator -i infile.jpg imageconversion.workflow

However, I am facing a problem when I try to integrate this workflow in a webapp, build in Django and deployed with mod_wsgi on Apache. The workflow gets invoked (I can see this from the webapp logs), but it runs forever, and eventually apache will kill the child process after several minutes.

I am running OS X 10.9

Has anybody encountered a similar issue?

Thanks,
Gerald

Limitations of Automator

Your Automator workflow may require access to the WindowServer to work. Automator is designed to be run within an active user session, and not from a shell session.

The Apache user launching your Automator workflow is running without access to the WindowServer and this will likely limit which actions you can use.

ImageMagik

Consider using an image processing tool designed for command line use, such as ImageMagik. Take a look at the -greyscale option for your conversion:

convert in.png -grayscale Rec709Luminance out.png


iPhone 4 taking blurry pictures pictures taken on my iPhone4 recently became blurry. No software updates were performed, and not water damage exists. Even pictures taken with lots of light show some blur and look foggy.

Anyone else had this problem? - What could be the possible reasons/solutions?

Is there any chance some water vapour found its way into the phone / lens assembly?  Were you using it any place where condensation could have occurred inside the phone?  Radical temperate / humidity changes?  I've never seen this, but I guess it could be possible.  I remember folks experiencing this with first generation iPhones.

Are the foggy bits always in the same place in the photo?


How can I clear the JavaScript console in the Safari 6 developer tools? In previous versions of Safari the JavaScript console in the Developer Tools (aka Web Inspector) had a little 'clear' button at the bottom that emptied out console items, which was useful for getting rid of clutter between debug sessions.

As of Safari 6, the new Dev Tools don't seem to have such a button. Manually using clear() and console.clear() doesn't work either. The 'Clear Console' item in the contextual menu doesn't seem to do anything for me.

Short of console.log("\n\n\n\n\n\n\n\n\n"), is there a way to clear the console in Safari 6?

Use Command-K (⌘+K) to clear Safari 6 Web Inspector console.


PDF export from Pages document Here is the dilemma that I'm having with the PDF export on Apple Pages. When I export my Apple Pages document into PDF and open it in any PDF viewer (let's just say Preview) then I don't get the TOC on the Sidebar. Just to clarify we are not talking about the cases when you do include TOC in your document and have it in the text of the final PDF. When I look at the Pages PDF Export I can see Thumbnails, Contact Sheet but in TOC I see just the name of the file.

Does the Apple Pages PDF Export actually have such a feature to customise the final PDF?

Unfortunately Apple's PDF export doesn't create the standard PDF Table of Contents, you'll need to use other software to add one to your existing PDF.

There are a variety of options at a variety of prices:

OpenOffice Writer: A hassle, but it's the only free option I've seen. You'd export your Pages file as Word or rtf and then open it in OpenOffice Writer and then export to PDF; it will generate a PDF table of contents as part of the export.

PDF Outliner: Just $4.99 in the Mac App Store, it's probably the best combination of cheap and easy. It's specifically designed to add a PDF Table of Contents to your document.

PDFpenPro: At $99.95 it's not cheap but it does pretty much everything the full version of Adobe Acrobat does and is much, much cheaper.

Acrobat X Standard: The real thing from Adobe for "just" $449.95. If you only need to do this now and you'll be done creating PDF Tables of Contents within 30 days you can download the free trial. After 30 days, though, you're out of luck.


How to speed up old MacBook Pro15 inch late 2007 with 4GB RAM (2.4 GHz) I am running 10.9.5 (Mavericks) and have about 12GB available on my hard drive with 2.2/2.4 GHz.

I have noted that performance has been getting slow (esp. on startup) and was wondering if there are any obvious ways to improve performance?

I would greatly appreciate your advice! Perhaps this question has been asked before but I could not find it using the search function.

Best,

Hirek

Things to consider - you'd have to check whether any of these are worth the money on such an old machine though.

Larger, faster HD, or even an SSD. You don't say how big the existing drive is but those machines came with 120, 160 or 200. In any case, 12GB spare is really not enough for the machine to 'breathe' properly.
Assuming it's never been done in the life to the machine - defrag, using iDefrag (only good to Mavericks, not Yosemite) or similar - bear in mind this may take more than 24h to complete, especially with so little free space.
Add more RAM - that machine will take 6GB, as a 2GB stick & a 4GB stick. I would always use something like Crucial's configurator app to be sure you're getting the right thing.

Data Source: EveryMac


Is magsafe 2 charger somehow associated with a Macbook by serial? My Magsafe2 charger just broke down. We have 2 Macbook Pros in house, and I can't be sure which is which. If it's my charger, I'll have to buy a new one. If it belongs to the other macbook - it should be still covered with Warranty.

Is there a way to check if a charger belongs to a specific Macbook? Both chargers are model A1424 85W. Both laptops are Macbook Retina Pro, both year 2013 ( one early, the other late ).

No. There is no serialization on chargers. If so, the 350 Mac laptops in many carts all over our campuses wouldn't charge because students (and some faculty) seem unable to read numbered slots and match the numbers on the laptops. Don't worry.


Change delay for auto-hide on menu bar In 10.11 is there a way to change the delay for showing the menu bar when auto-hide is enabled? I know for the dock you could use terminal and defaults write com.apple.dock autohide-delay -int 0

I ran the following Terminal command defaults find Menu Bar and found this:

Found 1 keys in domain 'Apple Global Domain': {
    "_HIHideMenuBar" = 0;
}

The _HIHideMenuBarproperty can be either 0 for Disabled or 1 for Enabled. And that's the same setting found in System Preferences - General - Automatically hide and show the menu bar.

So I guess it isn't possible as of today.


Replacement iMac G3 Chasis? Just purchased an old used iMac G3 but unfortunately the plastic subframe is pretty brittle. I doubt it's something that I could gorilla-glue back together. Does anybody know where I could buy a new subframe or a new chassis altogether?

I know of no vendor that sells the slot loading inner bezel for your imac whether it’s OEM or aftermarket.

You could purchase a machine from ebay (or similar) and hope they pack it properly so as not to destroy the inner bezel in shipping, or you can try and gorrilla glue the original bezel together so you can scan and 3-d print a new one or hire someone to fabricate a replacement.


Thunderbolt to Displayport Connector I'm trying to connect a 27" iMac Thunderbolt Display to a late 2009 21.5" iMac. It's my understanding that the thunderbolt display cord (with little lightning icon on it) will not work in the mini displayport (with little screens icon on it). While the iMac is old, it works great, I'd love to find a solution.

Is there some convertor for this or another way to run the new display from the old hardware?

I believe it should work by getting a Mini DisplayPort cable going from the 2009 to the 27" (into its Thunderbolt jack, which supports Mini DisplayPort cables).

I just did something like what you did recently.  Well, I have a 27" Late 2009 iMac running High Sierra and a 21.5" Late 2012 iMac running Mojave.

There are only a few specific models of older Macs that will support that's called Target Display Mode, which is what I've ustilized here: I got a Mini DisplayPort cable online (3' is all I needed for just over $7 shipped and it came in white!), plugged one end into one of the 2012's two Thunderbolt jacks and the other end into the 2009's lone Mini DisplayPort jack.  The second I did that, the display from the 21.5" immediately extended to the 27".  Audio came with it, too.  In most cases, the keyboard command for target display mode is CMD + F2.

From there, I went into System Preferences > Display > Arrangement tab> then click-and-drag arrange your monitors as you want to use them.  Tip:  See the little thin white bar along the top of one of them? That's your PRIMARY monitor (often your source monitor).  Click and drag just THAT little white bar and move it over to the other monitor if you want all of your default notifications and etc to show up there.

Read up on this.  Great guide: https://support.apple.com/en-us/HT204592


tic doesn't read from STDIN and segfaults when adding terminfo to support italics in tmux I'm trying to follow these instructions to add italics support to tmux.

1) I tried running copying-pasting and running this command

cat <<EOF|tic -x -
    tmux|tmux terminal multiplexer,
        ritm=\E[23m, rmso=\E[27m, sitm=\E[3m, smso=\E[7m, Ms@,
        use=xterm+tmux, use=screen,

    tmux-256color|tmux with 256 colors,
        use=xterm+256setaf, use=tmux,

but that gives me:

tic: Can't open -

I'm guessing this is because OS X's tic doesn't support reading from stdin.

2) I then tried saving the terminfo to a temporary file named tmux.terminfo and ran it using tic -x tmux.terminfo

tmux|tmux terminal multiplexer,
    ritm=\E[23m, rmso=\E[27m, sitm=\E[3m, smso=\E[7m, Ms@,
    use=xterm+tmux, use=screen,

tmux-256color|tmux with 256 colors,
    use=xterm+256setaf, use=tmux,

However, I get this error message

[1]    32091 segmentation fault  tic -x tmux.terminfo

3) I also tried running tic without the -x flag, so that it doesn't treat unknown capabilities as user-defined.

That gives me this:

"tmux.terminfo", line 2, col 62, terminal 'tmux': unknown capability 'Ms'
[1]    35607 segmentation fault  tic tmux.terminfo

I'm on OS X 10.11.6.

So this works for me, notice I edited use like @mtklr suggested:

# A screen-256color based TERMINFO that adds the escape sequences for italic.
# run to add to term db: tic tmux.terminfo
tmux|tmux terminal multiplexer,
  ritm=\E[23m, rmso=\E[27m, sitm=\E[3m, smso=\E[7m, Ms@,
  use=xterm, use=screen,

tmux-256color|tmux with 256 colors,
  use=xterm-256color, use=tmux,

Then tic -x tmux.terminfo

Shouldn't have errors

Then added to .tmux.conf:

set -g default-terminal "tmux-256color"
set -as terminal-overrides ',xterm*:sitm=\E[3m'


Home directory associated with application—how can I undo this? For some weird reason I don't understand my home directory got associated with a program (TextWrangler):

Now every time I try to open my home directory in the Finder, TextWrangler gets started. How can I get the normal behaviour back?

I use Mavericks (10.9).

Try this in Terminal:

SetFile -a B "$HOME"

Original credit to this goes to Tantek Çelik. I just happened to remember finding his post when I was trying to fix a different problem getting VLC to play .dvdmedia files.

Note that if you do not have /usr/bin/SetFile then you may need to install the command line tools for Xcode. If you are not automatically prompted to install that, you should be able to install them by entering this line in Terminal:

xcode-select --install

which will prompt you to install them using a dialog box like this:

Just click 'Install' you don't need "Get Xcode" unless you want the whole thing.

If that doesn't work, the next thing I would try is:

xattr -d com.apple.FinderInfo "$HOME"

which will remove extended attributes from "$HOME" but I am not sure if there are attributes that it would remove which you would be better off keeping, so I hesitate to suggest it. Use as your own risk/YMMV, etc.


Macbook Pro - Faulty keyboard short circuit at video connector I have a 2010 13" Macbook Pro. A few days back, the middle row of the keyboard (i.e. the keys from A-L) stopped working. Since the laptop was not under warranty I thought I would give checking the problem and repairing if possible. I opened the backcase and also opened few of the screws on the motherboard. However, I couldn't open it completely and abandoned the process.

I connected everything back and when I started the laptop, the monitor was flickering. I opened the backcase again and at the point where the video connector connects to Motherboard, I pressed a little hard. The screen stopped flickering. On release, it flickered again and I pressed again. This time however, a small flashoccurred and there was a light fire. Since then, I have not been able to start the laptop. On starting, it gives a sound like starting but stops immediately after that. Attached below is a photo where I pressed and the small burn sign.

I am going to give the laptop to a service center. I wanted to know whether this is a easily solvable problem or will it require motherboard replacement. I am hoping that simply replacing the connector wire will work fine.

A short circuit will often damage other components, in this case, the graphics controller, possibly some power smoothing circuitry, resistors in-line with the shorted component would have most likely been damaged etc. In short, the logic board would need to be replaced, along with the connector/LCD.

It's very, very unlikely that the board would be okay after such an event.


Is there a way to keep a copy of our highlighting in iBooks? (email it or print it) In iBooks, we can see a list of our highlighting and added notes to an ebook, but when we email it, so as to keep a copy for ourselves, only the added notes that we wrote is emailed.  The highlighting is not.

Is there a way to keep a copy of what we highlighted as well?  We can take a snapshot of the iPad screen, but that's a photo instead of text.

There is also a "Print" option, although I don't have any printer linked up for the iPad to use.  Can that Print option print highlighting, or print it as a PDF doc?  Or any other possible way to keep a copy of our highlighting and notes?

Can I print my books and PDFs from iBooks?

  Yes, you can print PDFs and notes you've entered from iBooks, but the
  option to print ePub books is not available.2 You can also email PDFs
  and notes you have written from iBooks.

  Can I highlight text and make notes?

  iBooks includes built-in Highlight and Note features. Highlight any
  word or passage of text within a book. You can also create a Note from
  your highlighted selection. Review your Highlights and Notes by
  tapping the Table of Contents button and then tapping Bookmarks.
  Highlights and Notes appear in their own section under Bookmarks.

source: apple support page
Doesn't seem to be a straight yes/no answer for printing of the highlighted area, but you can turn a highlighted area into a note, which will print/email.


"Ghost text" in terminal, Yosemite + TotalTerminal (formerly Visor) There's "ghostet text" in my terminal (see screenshot), and I'm hoping someone knows how to fix this…

Turning background transpareny off fixes the problem, but it's not a solution which I'm a fan of.

I tried cranking the opacity up to 100 % (thus turning transparency off), ran some commands, and turned the opacity back to 75 %, which made the ghosting appear yet again.

I love working in the terminal, and really hope someone have a suggestion for a fix :)

Specs which might be relevant:

OS X Yosemite 10.10.2
Macbook Pro 8.1 (early 2011)
Integrated graphics
Using TotalTerminal 1.5.4

This one helped me:

  Open your Terminal preferences, go to Profiles > Window > Background (Color & Effects), and set a light blur.

  I use 30% to keep anything in the background from disturbing the readability of thin fonts on an already translucent window, so I never noticed the "burn-in" effect when moving to Yosemite.

Source: http://discuss.binaryage.com/t/text-burn-in-when-using-transparent-backgrounds-since-yosemite/2849

However I set blur to 1% and "ghost" text disappeared.


Paste format/style only? In Google Docs there is a nice Paste Special > Paste Format Only funtion; is there anything like this in Mac OS X?

If not by default, is there a way to get this?

Go to Format → Font → Copy Style (⌥⌘C) to copy the style of the currently highlighted text, then go to Format → Font → Paste Style (⌥⌘C) to paste the style.

Some apps change the position of this feature, such as iWork, to simply Format → Copy Style.


Increase transfer speed from iPhone X to Macbook Pro I've shot several videos in 4k 60 fps from the iPhone X and when I wanted to transfer them to my Macbook Pro using the lightning to USB-A cable, it took multiple hours where the videos were approximately 60 GBs. My Macbook Pro is a mid 2015 model with USB 3 ports. How can I increase the transfer speed?

Use air drop. It's a lot faster than the cable and work perfectly fine.


Exclude all .git or .svn folders from Spotlight index I would like to exclude all the .git and .svn folders on my hardrive from the Spotlight index. I know I can manually add them through the GUI but since they are many of them, and often new ones, it would be difficult.

Is there any way to exclude a folder by name (rather than full path)? Or is there any way to exclude the folders using the command line (in which case, I could automatically find them and exclude them from time to time)?

It is possible to exclude a folder using the command-line.

From there try this:

Open a Terminal window
Type

sudo defaults write /.Spotlight-V100/VolumeConfiguration.plist Exclusions -array-add 'path/to/exclude'

So I guess you can try this using xargs' magic:

sudo locate .git | xargs -I {} defaults write /.Spotlight-V100/VolumeConfiguration.plist Exclusions -array-add  {}

You can check it worked using this:

sudo defaults read /.Spotlight-V100/VolumeConfiguration.plist Exclusions

You can remove all entries (there is no -array-remove option) using this:

sudo defaults write /.Spotlight-V100/VolumeConfiguration.plist Exclusions -array

Be careful with these commands, I don't know if there are side effects.

I could not really check this worked for my .git folders since none of them were displayed by spotlight search before nor after running these commands.


What is "System Events"? I mostly see AppleScript scripts that say something should be called in "System Events". What exactly is System Events now?
What I definitely know is that there is it an app and that is /System/Library/ CoreServices/System\ Events.app.

System Events is a faceless background app provided by Apple that gives AppleScript access to certain system functions and attributes. For example, we can use the app to change the desktop picture, control the user interface of other applications, change the screen saver, navigate the file system hierarchy, and more. Open Script Editor, choose File➔Open Dictionary..., and choose System Events from the list of apps. This will show you the AppleScript commands you can invoke.


I have an iPhone whose screen turns on but doesn't respond to touch. Could this be a software issue? This is my first post on this StackExchange community, so I apologize in advance if my post doesn't meet community standards.
An immediate family member recently started having a bizarre issue with her iPhone: its screen works, displaying the lock screen with no visible signs of damage after pressing the power button, but it doesn't respond to any screen input (touch, swipes, etc.). I've tried to force-restart the phone three times, but the screen is still unresponsive to input. I've also consulted this Apple discussions thread, but I'd like to rule out any software issues before seeking a repair with Apple.
Some specific details about the iPhone and the issue at hand:

The iPhone is a 64 GB iPhone 11 (not Pro).
The iPhone's iOS version (seemingly) can't be determined since I can't unlock the phone and hence access the Settings app or have it be detected by a computer. I'm guessing it's running iOS 13.x or 14.x.
The owner of the iPhone recalls the screen initially working perfectly fine, but ceasing to do so after pulling it out of her pocket.
The screen seems to be intact: no dead pixels, no obvious physical damage, etc.
All the buttons work.

Could this be an issue with the iPhone's software? If so, what are some potential causes, and how can I address them?
P.S: if you'd like more details or context, please don't hesitate to ask in the comments.

The only software "issue" that I can think of is the guided access, which e.g. parents can use to restrict their children while using the iPhone. However, I am quiet sure that it is disabled by default, once you restart the iPhone by forced reset (press lock-button and volume-down-button simultaneously for a couple seconds).
In addition, you could delete everything and make a factory reset with iTunes. But could not help at all, if it is not a software issue.
Furthermore, the guys at the apple store are really helpful and have special tools for diagnosing problems. As far as I know, as long as they just diagnosing the problem, the consulting is free.


Python launching problems OS X I'm trying to install python on mac OS X 10.7.5. I installed it from MacPort and I think before I did, I screwed up $PATH somehow. It seems to install fine but then when I try to run ipython I get

-bash: ipython: command not found.

I thought it had something to do with the path and when I do /bin/echo $PATH I get something that seems really weird to me:

opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

You need to install ipython in addition to python:

$ port search ipython

py-ipython @0.13.2 (python)
An enhanced Interactive Python shell

With

$ sudo port select --set ipython ipython24

you can then select the version you want.

It ill be installed in

$ type ipython
ipython is /opt/local/bin/ipython

Check that your PATH begins with /opt/local/bin and not with opt/local/bin/ (notice the beginning /)


Why can my iMac see my Macbook pro with 2 different icons on the network sharing? (as if it were 2 devices) I recently noticed that my iMac lists my macbook pro with 2 different icons (the normal laptop one and a generic pc one)

I am worried this means i have a server running on the background or some other possible security issue.

I disabled file sharing completely (SMB and AFP) and they both disappeared, but im still worried this might happen at some other time without my knowledge thus being a security issue.

You answered it yourself. You had both AFP and SMB network sharing protocols enabled. Thus your mac was presented as two network devices. Notebook icon is for AFP shares and generic PC one is for SMB.

No need to worry about that since it is normal behaviour.


Is there a way to stop Xcode from switching to split view when running? I'm recording some video tutorials and would really like to disable the split view that Xcode automatically switches to when you build and run. Below is an example of what I'm talking about.

Before clicking build:

After build clicked:

Question

Is there a way to stop Xcode from switching to split view when running the application?

I'm an idiot, it can easily be disabled in the behaviors menu.


Browsing the Web through unlimited SMS plan I recently purchased a plan for an old iPhone 5, which includes unlimited call and text, but no data. I was thinking: would there be a way to browse the Internet through text messages?

I know there used to be something like this in existence for Android, called the Cosmos web browser, but I am looking for an iPhone solution.

What I want is to be able to, for example, send a url through text message to a server (or to my home computer), and get back the html of the requested page, that I could then plug into an HTML viewer. Eventually, I could copy paste a link from that page into another message, and get back the corresponding page.

Another idea: Since I have limited space on my device (only a few gigs), could I set up some sort of service at my home computer to which I could request a movie title through text, and it would send me the corresponding binary or hex of the entire video file through text... Then, I could copy/paste that into a viewer?

I have a Windows computer at home.

Please let me know if some sort of text web browser exists for iPhone, or if this is even feasible.

A week later, I found what I was looking for. After playing around with Google Voice and SMS APIs, I stumbled across an online service that offers exactly what I want, for free.

It's called txtWeb, and consists of just messaging 898-932 with your command, ex. @www YouTube.com returns:

(X)
(Y)Upload
* Home

* (Z)Trending
*
      o (X) Home
      o (Z) Trending
  -----
* Best of YouTube

      o (A) Music
      o (B) Sports
      o (C) Gaming
      o (D) Movies
      o (E) TV Shows
      o (F) News
      o (G) Live
      o (H) Spotlight
      o (I) 360° Video
  -----
*
      o (J) Browse channels
  -----
* Sign in now to see your
channels and recommendations!

  (K)Sign in
  -----
*
      o (L) YouTube Red
 (N) Show ad...

Reply M for more
---

Which is a bit outrageous but fulfills exactly what I needed.

Other commands include @wikipedia [query], or @daak, which offers a rudimentary email checking interface for gmail.

Fun.


How do I duplicate an audio CD on Lion without importing tracks into iTunes? I want to create an exact duplicate of an audio CD on my Mac (Lion). Is there a way that does not involve to import the CD into iTunes? I just don't want to remember that I have to delete the tracks after copying. And I'm not sure if importing and burning again really creates an exact copy. (Track gaps preserved, and so on)

I tried using Finder, Crtl-click the CD, select duplicate. Ctrl-click the resulting Folder and select burn to CD, but that left my with a data CD containing AIFF-Files.

Any ideas, or AppStore suggestions?

Toast ($99)

Lets you capture, copy, convert, share and burn discs

or

Burn (open source)

again does the same but a more basic version which is free.


Any way to automatically lock *Me* out from *My Own* iPhone for a specific amount of time? I am looking for a way to kick me off of My iPhone periodically for set periods of time to avoid getting distracted. Does anyone know of a way to achieve this?

PS: Inspired by http://xkcd.com/862/

Well, I guess you don't want to be distracted by yourself constantly touching you phone right? That's what I need too.

My way to do this is totally not recommended, but that's the only way I have in mind. Get a passcode, do like 11 false attempt, and you can lock yourself out for 15 minutes or more. It's something extremely stupid to do, and I don't recommend doing that or anything similar.

Just in case some emergency happened, and you need to contact someone. You picked up your phone, and, ya. It's up to you.


How to find the process listening to the localhost on OSX? In my Mac(10.11.5), I find a strange php server is listening to my localhost:

$ curl -i localhost

HTTP/1.1 200 OK
Date: Mon, 11 Jul 2016 10:05:11 GMT
Server: Apache/2.4.18 (Unix) PHP/5.6.23
Content-Location: index.html.en
Vary: negotiate
TCN: choice
Last-Modified: Mon, 11 Jun 2007 18:53:14 GMT
ETag: "2d-432a5e4a73a80"
Accept-Ranges: bytes
Content-Length: 45
Content-Type: text/html

It works!

But I can't find any php process:

$ ps -ef | grep php

  501   724   500   0  6:06PM ttys000    0:00.00 grep php

And any suspicious process listening port 80:

$ lsof -i:80

COMMAND   PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
Google    526 Sona  202u  IPv4 0x9de3b88faf523ff9      0t0  TCP sayakiss-mbp.lan:49823->72-165-119-59.dia.static.qwest.net:http (CLOSED)
Google    526 Sona  219u  IPv4 0x9de3b88faf521c19      0t0  TCP sayakiss-mbp.lan:49827->72-165-119-17.dia.static.qwest.net:http (CLOSED)
Google    526 Sona  226u  IPv4 0x9de3b88faf510e09      0t0  TCP sayakiss-mbp.lan:49808->pixel.quantserve.com:http (CLOSED)
Google    526 Sona  236u  IPv4 0x9de3b88faf523701      0t0  TCP sayakiss-mbp.lan:49824->72-165-119-59.dia.static.qwest.net:http (CLOSED)
Google    526 Sona  237u  IPv4 0x9de3b88faf522e09      0t0  TCP sayakiss-mbp.lan:49825->72-165-119-59.dia.static.qwest.net:http (CLOSED)
Google    526 Sona  238u  IPv4 0x9de3b88faf522511      0t0  TCP sayakiss-mbp.lan:49826->72-165-119-59.dia.static.qwest.net:http (CLOSED)
Google    526 Sona  239u  IPv4 0x9de3b88faf53ee09      0t0  TCP sayakiss-mbp.lan:49828->72-165-119-17.dia.static.qwest.net:http (CLOSED)
Google    526 Sona  240u  IPv4 0x9de3b88faf53f701      0t0  TCP sayakiss-mbp.lan:49829->72-165-119-17.dia.static.qwest.net:http (CLOSED)
QQ        640 Sona   11u  IPv4 0x9de3b88f96e3fff9      0t0  TCP sayakiss-mbp.lan:49717->123.151.10.189:http (ESTABLISHED)
QQ        640 Sona   13u  IPv4 0x9de3b88f96e3fff9      0t0  TCP sayakiss-mbp.lan:49717->123.151.10.189:http (ESTABLISHED)

My question:

How to find the process listening to localhost?
How to find the file which returns by php?(As you see, php returns something contains It works!, so there must be a file contains that text...)

Your Mac's built in webserver is turned on.

  To Turn On: sudo apachectl start

  To Turn Off: sudo apachectl stop

The process you are actually looking for is httpd, the Apache server.

$ ps -ef | grep httpd
  0 76078     1   0  3:56am ??         0:00.32 /usr/sbin/httpd -D FOREGROUND
 70 76084 76078   0  3:56am ??         0:00.00 /usr/sbin/httpd -D FOREGROUND
501 76139 76048   0  3:58am ttys000    0:00.00 grep httpd

The file that is being loaded is /Library/WebServer/Documents/index.html.en, because /Library/WebServer/Documents is configured as the DocumentRoot in the default /etc/apache2/httpd.conf file that is included with OS X.


Installing Windows 8 on Sierra '16 MBP Bootcamp does not recognize anything other than Windows 10 on the new MacBook Pro running Sierra. Anyone know how to get around this? Thanks! I am using Boot Crap version 6.1.0

So it turns out I think that you actually do not want to. Because on the new MBPro with Touch bar (great, great, great - way underused device) there is no driver for windows other than for windows 10... Is this correct?...Because the only escape key is on the touchbar, windows 10 is effectively the only option. Any one can confirm my reasoning?


How to copy an Error message from Xcode 8? I have seen this answer, which tells about copying a warning message(Which also does not work), however I always have to type that again in browser, How do i copy it

I've always just right-clicked onto the warning message and selected Copy. This then places it on the clipboard and is available for pasting into other apps.

Below are two examples of how the copied message looks on the clipboard (or when pasted somewhere else):

  /Users/Username/Documents/Projects/Username (Developer)/iPhone
  Apps/Trivia Apps/Draft Versions/Trivia Apps/App name.xcodeproj Update
  to recommended settings

  file:///Users/Username/Documents/Projects/Username%20(Developer)/iPhone%20Apps/Trivia%20Apps/Draft%20Versions/Trivia%20Apps/App%20name.xcodeproj/xcuserdata/Username.xcuserdatad/xcschemes/App%20name.xcscheme:
  warning: Missing file: /Users/Username/Documents/Projects/Username
  (Developer)/iPhone Apps/Trivia Apps/Draft Versions/App
  name.xcodeproj/xcuserdata/Username.xcuserdatad/xcschemes/App
  name.xcscheme is missing from working copy

NOTE: Both of the above were copied from warning messages generated in Xcode 8.2.1, although I have changed the real username and app name.

If I'm misunderstanding your question, please clarify/let me know.


Slow SMB connection Buffalo Linkstation How I can force El Capitan to use SMB3 (I have heard it perform better than this)?

Windows machines connect and list files fast but OS X machines are terribly slow and becoming nonuse because there might be thousands of files and folders to list.

When I run in console:

smbutil statshares -m /Volumes/myShare/

I get the following:

==================================================================================================
SHARE                         ATTRIBUTE TYPE                VALUE
==================================================================================================
myShare
                              SERVER_NAME                   <internal ip>
                              USER_ID                       501
                              SMB_NEGOTIATE                 AUTO_NEGOTIATE
                              SMB_VERSION                   SMB_1
                              SMB_SHARE_TYPE                UNKNOWN
                              EXTENDED_SECURITY_SUPPORTED   TRUE
                              LARGE_FILE_SUPPORTED          TRUE

--------------------------------------------------------------------------------------------------

The problem is caused by Apple's home-made implementation of the smb protocol.  Using smb3 won't make a difference.

Server-Side Fix

If you have control of the smb server (Samba?) then you can fix this issue by enabling the vfs_fruit module.  If you are not using Samba then you'll need to find another way to enable "Alternate Data Streams" (ADS) and intercept OSX's "special" streams: AFP_AfpInfo and AFP_Resource.  I made notes of all the details at the plazko.io blog.
On Samba server you can fix the issue by enabling vfs_fruit in smb.conf like this:

vfs objects = fruit streams_xattr

From the vfs_fruit manpage:

  The module enables alternate data streams (ADS) support for a share,
   intercepts the OS X special streams "AFP_AfpInfo" and "AFP_Resource"
   and handles them in a special way. All other named streams are deferred
   to vfs_streams_xattr which must be loaded together with vfs_fruit.

  Having shares with ADS support enabled for OS X client is worthwhile
   because it resembles the behaviour of Apple's own SMB server
   implementation and it avoids certain severe performance degradations
   caused by Samba's case sensitivity semantics.

Important note for novices: This fix needs to be done on the server side.  If you do not have control of the smb server (presumably Samba) then you will not be able to use this fix.

Client-Side Fix

If you do not have control of the smb server, then your only option is to change the way the OSX client is handling smb.  The only way to do that is to replace Apple's implementation of the smb stack with Samba.  I have never done this, but there is a tutorial here.


When should I register (i.e. pay to be) an apple OS X developer? I'm a "team of one" and likely to remain so. I've been writing small programs for my own use for many years.

For the first time, I have an app which I think might really be useful to others. The prototype has a nice look, and some unique features (as far as I can tell) and I'm reworking the the program to clean up the code and make sure it follows the OS X Human Interface Guidelines.

Given that working alone part time it may take me a while to create the finished app, is there an advantage to going ahead and paying and going through the paper work now? (the $99 isn't a problem.)

This question occurred to me when I was thinking about putting out early beta copies to relatives, and I thought about sandboxing to protect them from any egregious mistakes I might make! I see that I need to register in order to sandbox.

I have a bunch of other questions that may not be appropriate here, like

Do I need a website? Where can I get one inexpensively?
What about a license that protects me? I'm open to permissive license, I'm not worried about trade secrets ... as far as I'm concerned it could be open source. Don't want to hire lawyers.

Where would it be appropriate to ask such questions?

I've looked over the apple documentation on becoming a registered developer and generally understand the process.

You don't need a website, but it's nice for your users to have a place where they can contact you and perhaps see some screenshots about the game/application you develop.

I don't think you need any protection as they are all under Apple's terms and conditions. At our work we've got a developer account and nobody bat an eye.

Just sign up and leak the name here, once your app is available (:

Oh yes, if your app costs money I'd like a coupon ;)


Can I compile .NET C# code on my Mac? I need a way to cross compile a short piece of .NET C# code to a dll, which will then run a client's Windows environment.

I run OS X 10.9.2 on an iMac.

Does anyone know what tools allow this?

I would rather not install Parallels and Windows if I can find a way to cross compile this without needing that heavy of an installation of Microsoft tools.

Check out the Mono Project. It may be what you are looking for.

http://www.mono-project.com/Mono:OSX

MonoDevelop is a cross-platform IDE primarily designed for C# and other .NET languages. MonoDevelop enables developers to quickly write desktop and ASP.NET Web applications on Linux, Windows and Mac OSX. MonoDevelop makes it easy for developers to port .NET applications created with Visual Studio to Linux and Mac OSX maintaining a single code base for all platforms.


Dell U2711 Flat Panel Monitor I have a Dell U2711 Flat Panel Monitor, which I have been using with my Mac, preIntel and Intel. Suddenly I cannot acces to any control, instead a padlock appears on my screen. Any help?

Press and hold the two bottom buttons (4+5) for 15 seconds. The lock symbol will "unlock" after 15 seconds and you should be able to use the OSD menu again.


Who makes the Wifi component on the Macbook Pros? In Apple's Macbook line, who is actually making the Wifi components for them? Intel?

I ask because I've never had any trouble with wireless connections on my Macbook but all the adapters I buy for my PC seem to degrade quickly over time and I'd like to buy something along the lines of what Apple is putting in their machines.

From the SystemProfiler -> Network -> Airport

Card Type:  AirPort Extreme  (0x14E4, 0x8D)
Firmware Version:   Broadcom BCM43xx 1.0 (5.10.131.42.4)

Vendor ID 0x14E4 is for Broadcom http://www.pcidatabase.com/vendor_details.php?id=767


Remove services from context menus (but leave them in the app's Services menu) I created a few services with Automator and it seems OS X automatically adds these to the context menu of files/folders that they apply to. Is it possible to remove the services from the context menu BUT still have them be accessible from the application's Services menu (under App Name > Services)?

Services appear to be stored in ~/Library/Services, and when I remove them from this folder, they're removed from both the context menu and the Services menu.

You may want to try Services Manager.app:

Download the application and put it into your /Applications folder (or any other convenient place). After you started it you can configure each service to appear in the Services menu (by enabling it in the Active column), in the Context Menu (by enabling it in the Context Menu) or in both.


Can the Samsung Gear S2/S3 be charged with Apple Watch magnetic puck charger? As the title states,

Can the Samsung Gear S2/S3 be charged with Apple Watch magnetic puck charger? I do not have the equipment to test this and I have not been able to find if the Apple Watch's magnetic charger abides by the Qi standard.

I know that Samsung's Gear S3 watch receiver abides by Qi standards and can be charged by any wireless transmitter. However based on Apple's record of preferring to only handshake with their own hardware I am curious.

No it won't. I have gear S3 and my wife has apple watch series 4. Apple puck won't charge S3.


Is there something stronger than "Force Quit"? I have an app that won't die: it's gone from the dock, but the window remains (with a beachball, if I mouse over it).  It's using no CPU, but I want it to go away.

Is there something stronger than "Force Quit", to really really kill an app?

If you know the name of the app, you can check in Activity Monitor to see if it's still running there and try its Force Quit. If that doesn't work, take note of the app's process ID (pid). Go to the Terminal and type kill [pid], replacing "[pid]" with the number you noted earlier. If that doesn't work, try kill -3 [pid] and if that doesn't work kill -9 [pid]. If the process is owned by a different user (this is not likely), you may need to replace kill with sudo kill and type your password when prompted.

If the app doesn't show up in Activity Monitor or you couldn't kill it, the window may be a left-over stuck someplace else and the app simply isn't running anymore. In this case, sometimes (not always) it can work to killall SystemUIServer or killall Dock.

If none of this works, you'll have to log out and back in or reboot. The few times I've gotten to this point, the app was so stuck it prevented logging out or shutting down, so I had to hard reboot.


How can I silence the screenshot camera sound? The sound effects for screenshots can be really annoying and loud at certain times.  How can I turn this off?  It makes the noise even when my volume is all the way down?

Update: I want to simply silence the sound effect, without any other side effects.  Turning on the phone's vibration mode means it will make noise when something causes it to vibrate, so this defeats the purpose.

To my knowledge, there technically is not a way to specifically and only disable the camera shutter sound for screenshots, but there are still solutions to stop it from making the sound:

One thing you can do is flip the mute toggle switch on the side of your device to be muted (silent/vibrate). You will see a Ringer Silent icon on the screen and may feel a vibration on an iPhone. After that, there will be no noise from the screenshot (among other things).

On an iPhone, if you don't wan't to get the vibration when turning the phone to silent, or if you want to leave it on silent without getting vibrations, you can go to Settings > Sound and toggle "Vibrate on Silent" off. Then it won't vibrate or make any noise. However, you also won't hear any notification sounds or vibrations at all, so you run the risk of missing some alerts. So in this case what you may want to do is flip the mute toggle to silent right before taking a screenshot (and it won't make any noise from vibration), and then after the screenshot flip it back to normal.

Another alternative, if you don't mind the camera shutter sound but just want it quieter, is that in Settings > Sounds you can slide Ringer and Alerts to minimum. It'll still make sounds, just quietly. But again you run the risk of missing your phone ringing in some situations as it'll be quiet.

Edit: I noticed that on iOS 10.3, when you toggle the mute switch while the camera is open, it does not make any vibration. So you could just toggle it to mute before you take the picture, and then toggle back to normal when you're done.


In what cases iOS stops screen recording on its own? I tried making multiple sessions of screen recording on two devices, each recording its own screen: iPhone X and iPhone 5S. The result was that recordings on 5S were in several cases shorter than on X, but I didn't explicitly stop the recording in 5S's Control Center.

Under which conditions could iOS stop the recording at its own initiative / basing implicitly on what I did?

I found only "tapping status bar" that could stop recording (though it asks for user confirmation); is there anything else?

As far as I know, locking the phone (pressing the power button once shortly) will also stop recording.

Just like anything else, it requires enough free space on your iPhone to save the file. However, that doesn’t sound like the problem in your case.

There might be a chance that your iPhone 5S might not fast enough or have enough memory to record as long as your iPhone X.


How to set "Input Sources" for all users at the same time In Lion OSX, changing the keyboard layout "Input Sources" setting in the "Language & Text" only changes the setting for the current user. Is there a way to populate the setting to all existing, and also all future new users to the same set of language keyboard layouts?

The default input source is set in ~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist (where * is system_profiler | grep 'Hardware UUID').

You could either copy the file to other acccounts: sudo cp ~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist ~/Users/username/Library/Preferences/ByHost/.

Or add it to the User Template directory so that it will be included by default on new accounts: d=/System/Library/User\ Template/English.lproj/Library/Preferences/ByHost; sudo mkdir -p "$d"; sudo cp ~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist "$d".

Note that the UUID will have to be changed if the file is copied to another computer.

You can view or edit the property list in a text editor by converting it from binary to XML: f=~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist; plutil -convert xml1 $f; open $f -a TextEdit.


trying to figure out how to use App Switcher on Lion I recently bought a used Mighty Mouse, the slightly older kind with a little button on top that scrolls. (could anyone tell me what to call this button?)

I set the button to use the App Switcher, which I had never used before.

App Switcher opens okay, no problem there. and I can go left and right between them. but I can't actually open or switch to the app or, for that matter, close them. I can use App Switcher using the keyboard, though, thanks to tutorials. but I can't figure out how to do it with the mouse.

so how I can actually use App Switcher using the mouse? FYI, I use 10.8.4.

Use the Mouse System Preference. There is a setting for each button on the mouse - including the nipple like one on the top. On my iMac I have this set to Off, but there is an option for Application Switcher, which if you chose that it would allow you to switch application by clicking the nipple button. I just tried this and it works, though I might not leave things set this way. If you don't like the idea of a nipple button, it's also called a mini mouse button. Oh, I'm using Mountain Lion too


How to get the amount of 'Compressed Memory', per process (from Terminal)? How can I use ps, or some variation thereof... to get a value that roughly corresponds to the "Compressed Memory" value Apple reports in Activity Monitor.app?

username 52036 100.1 24.1 8026832 3035512 ?? Rs ...com.apple.WebKit.WebContent

Ok, so it appears ps aux tells us...

3035512, aka 2.83 Gb, which corresponds to "Private Memory"
8026832, aka 7.48 Gb which doesn't seem to correspond to anything. (Although it possibly could be ("Memory" 3.89 + "Private Memory" 2.84 +  "Compressed Memory" 1.05)?

Is there any way "normal" way to access this metric, or is it just some "magic" value Apple has come up with?

There's nothing magic about compressed memory. It's something that was added to 10.9 as one last step before the system swaps RAM out to storage. According to John Siracusa, this serves three major functions:

  Memory compression is a triple play for Mavericks. It’s a performance win; compressing and decompressing data in RAM is much faster than reading from and writing to disk, even an SSD. It’s an energy win; the less time spent moving data between RAM and disk, the more time the system can spend in its idle state. And finally, it’s a capability win; Mavericks can handle much more demanding workloads than previous versions of OS X before crying uncle.

As to getting at the details from the command line - that may be elusive. The overall compression numbers are easy with a pair of tools:

memory_pressure
vm_stat

I don't think any invocation of ps will do the trick, but maybe someone can correct that. You can see the implementation details on this thread: vm_compressor_mode (vm.compressor_mode) values for enabled compressed memory in OS X

The best I can get you is to look at all "swapped and/or compressed" memory using the vmmap command. Basically, before swapping, the memory regions marked for swapping are compressed. If that saves enough space to alleviate the swap algorithm, no swap happens. If not, the compressed regions are swapped to storage.

vmmap -swapped [PID]

You'd have to handle the addition of the regions and I'm not sure if the activity monitor reports all swapped and compressed in the column you mentioned but that's something you might be able to figure out by inspection and/or using Instruments from Xcode to correlate what you see from the command line with activity monitor for some processes.


Which credit and debit cards are supported by Apple Pay Which credit and debit cards are currently supported by Apple Pay? Is there an official list?

Check this article for an up-to-date list and more information on which cards are supported: https://support.apple.com/en-us/HT6288.

There is also a list on iGeeksBlog.


How do I find out the MAC address of my iPad? I have a new iPad and MAC address filtering on my home wifi network. How do I figure out the MAC address of my iPad?

On my iPhone, I can find my MAC address by going into Settings, then General, then About. The wifi MAC address is listed under "Wi-Fi Address". It's likely that the MAC address for the iPad is in the same location.


Why is the iPhone label available on some contacts but not others on my iPhone 5S? I have an iPhone 5S running iOS 7.0.4. I want to designate some of my contacts as having an iPhone with the iPhone label vs the generic mobile label. I have edited some contacts and have changed their cell phone number to reflect the iPhone label. However, some contacts the iPhone label is simply not present, nor is the custom option. I can not determine why this behavior is manifesting.

If they are stored locally instead of on iCloud they will not sync.
If you can place them in iCloud they will sync correctly.

Uncheck all accounts to find the wrongly placed contacts, happy hunting! (:


Does the 2018 MacBook Air come with a NVMe SSD? Does the 2018 MacBook Air come with a NVMe SSD?

I believe the MacBook Pro does, since 2017, however I'm finding no information one way or another for MBA 2018.

Yes, the SSD is NVMe.

However note that this does not mean that it can be replaced with any NVMe. The MBA Retina does not have a user-replaceable SSD.

Also note that you cannot directly compare two NVMe SSDs. Their performance and price points may vary wildly.


How can I resize a Mac OS X app window after disconnecting from an external monitor? I'm a MacBook user, and when I'm home I plug into a large external monitor to get additional screen space. When I'm on the go I disconnect and use my laptop's built-in display. For the most part this arrangement works very well; however, I occasionally run into an issue where I'll resize an app on the external, causing it to be too large to fit on the built-in screen when I disconnect.

Most apps don't have a problem decreasing their height automatically or resizing to fit when I click the green orb, but some (like iTunes) don't want to cooperate. How can I resize apps like iTunes without reconnecting to my external?

Here's a screenshot:

Hold down the option key while clicking on the green button.  This should prevent iTunes from changing to the mini-player, and will resize the window as expected.


Three finger drag not working in Safari 10 I've noticed that three finger drag does not work in the latest Safari.

I used to be able to select text or pan in Google Maps easily. Now I have to push finger.

Outside Safari it works as usual.

I use BetterTouchTool if that makes any difference. Old school glass trackpad with click.

Make sure to update to the latest version of BetterTouchTool. Everything >= 1.86 should be compatible with Sierra.


How to import OS X keyboard text shortcuts? On OS X Yosemite and iOS 8, I use keyboard text shortcuts:

I have a large list of text shortcuts I would like to use.

Is it possible to import my shortcuts into the OS X/iOS list of shortcuts?
Where are my keyboard text shortcuts stored on my Mac?

If you sign in with the same primary iCloud account on OS X and iOS, the list of shortcuts is synchronised automatically.

It's currently unknown where the shortcuts are stored. source


How to stop Mail.app filling up with downloaded mail I have started using MS Outlook for mail and calendar management because of its tight integration and ease of handling mail. I have a Gmail account an iCloud account and a POP account with an Australian ISP. I sometimes have to open the old Mail.app to find an older piece of mail and when I do this tons of duplicate emails start rolling into the program. It’s a waste of time going through and deleting them as I have already dealt with them in Outlook. Should I archive all the old mail in Mail.app and then not use that app again or is there a better approach to this?

Why don't you move all your existing e-mails from Mail to Outlook, instead of having to switch between two applications to do it? This article suggests that Outlook might be able to do that directly from your hard drive.

As @Pratika Rana pointed out in the comments, you can also turn off autodownload of e-mails by account: in the Mail preferences (Mail -> Preferences... in the menu bar), select the account you want to modify and select the Advanced tab. The Include when automatically checking for new messages should turn off automatic downloading of new e-mails, while leaving your account active and existing e-mails untouched, while still giving you the option to download new e-mails manually if you go back to using Mail in the future.


How to enable Flash Player plugin for Safari in macOS Catalina? The problem is when I'm watching any video that uses flash player, it is showing abnormal behaviour. I'm confused whether it is using flash player or not.

Any ideas on how to check whether Safari is using flash player or not.

How to enable flash player plugin in Safari ?

I'd start by uninstalling Flash completely - very few web sites use it any more. If you don't have it you will see a clear indication if it's required.

Get the uninstaller from Adobe - Uninstall Flash Player | Mac OS

Warning: Do not fall for any pop up telling you Flash is needed or out of date - they're scams, malware. If Flash is legitimately needed for a video, the placeholder for the video will say that Flash is required; usually quite simply, "plugin missing" or similar, possibly with a 'jigsaw puzzle piece' icon.
It will not offer to go get it for you.

If you ascertain Flash is actually required, make sure to fetch it directly from Adobe, don't click through any links you cannot see clearly.
https://get.adobe.com/flashplayer/

Then to make sure it's enabled in Safari, go to Preferences > Websites. Scroll down the list on the left until you find Adobe Flash; select, then to the right, decide whether you want behaviour on, off or ask by default & for any specific sites.

Full instructions at Adobe: Enable for Safari

Note that Flash is very nearly end-of-life & most browsers are going to start actively blocking it over the next year. If you're not certain whether you currently still need it, work without it.


9,1 iMac GPU upgrade I replaced the NVIDIA 130GT w/ a 4850 AMD Radeon card from a 27" imac, same year (late 2009).  Computer boots, all 4 LEDs go on, computer accessible from remote screensharing on the LAN so is obviously up and running.  No picture on the screen (backlighting working).

I think it's an EFI/firmware problem w/ the new card. Any ideas as to a work-around?  Edit the BIOS in the GPU to match the 24 inch screen or the Logic board ID?  Thoughts?  Thanks!

It starts fine, but no image on the screen. Clearly think it's a GPU-CPU issue, but obviously they are talking or all 4 LED's wouldn't light up....so it must be something written into the EFI that's preventing screen imaging, I'm thinking.


How can I lower the TouchBar brightness level? On the 2016 MacBook Pro, the touchbar has very high luminosity. At day it is very nice, but at night it blinds me.

It's especially vexing because I run f.lux's Darkroom mode to reduce the glare that might wake my wife up, and the main source of light is the Touchbar!

Is there any way to reduce the brightness, if not via a menu, maybe through a Plist somewhere or using the CLI?

There is no way to do this currently. However, I suggest you do as I have and submit feedback to Apple requesting this option.

Hopefully it will be introduced in an upcoming macOS Sierra update.


How to make .command file execute at its location When you execute a .command file it is not at the location where the file resides. You can place a .command file anywhere with the command pwd in it, and it will always print your Users folder.

I need the file to execute at its location because I am trying to run nodemon my/file.js and currently it is looking for Users/(myname)/my/file.js which is wrong.

You can always used the $0 variable to find the directory the command is in and go there first.

#!/bin/bash

# Change directory to be where the command is.
cd "$(cd "$(dirname "$0")" > /dev/null && pwd)"

# Print the working directory for example.
pwd


iOS 9.3.1: Dropbox 6.2 doesn't appear in Activities in Photos From the Photos app in iOS 9.3.1, Dropbox does not appear in the list of places where I can share photos.

I've tried clicking on the three dots at the right of both activities bars, and Dropbox is not an option in either list.  The various guides I Googled all suggested that if I had the latest version of Dropbox installed, it should show up in this list.

I've looked at the settings within the Dropbox app, and I've also looked at the Dropbox settings from the iOS settings app, and in neither place did I see any kind of switch to enable it to appear as an activity.

Any ideas?  This is driving me mad.  Thanks!

Go into Settings > Dropbox and verify photos is turned on. Now go into Photos, select a picture and tap the share icon. There are two rows of icons, you want the lower row (on mine it starts with "Copy.") Scroll the icons to the left side of the screen

If Dropbox is not there tap the "..." "More" button and turn on Dropbox.

That's how it worked on my iPhone 6+ with IOS 9.3.1.


Restore Download icon in Finder Sidebar I'm on macOS Big Sur 11.1, and I wanted to use a different folder for my Safari downloads, so I created another directory and did ln -s ~/Downloads on it (symlinked).
Everything works fine except for a small thing.
In the Finder app, on the sidebar, this folder has a "standard folder" icon, even if it is recognized in the preferences as my Downloads folder (see the attached pictures).
Is there any way to at least make the Finder think that folder as the original Downloads folder?
Or maybe is there a way to manually change its icon?
Please note that I already found some answers to my question on this site, but they seem to not to be compatible with Big Sur.

From what I've understood, this is what I could come up with. As useless as this may sound, have you tried unchecking and re-checking the box that enables Downloads in the sidebar? Also, you can try going to the parent directory of the Downloads folder, right-clicking the Downloads folder, and then clicking "Get Info" to see if the Download icon is there for the Downloads folder. If there isn't then you need to get the icon from somewhere and then drag it onto the existing icon in the "Get Info" window. Hope this helps!