Hot answers tagged

10

You can use the sips command to pad any JPEG or BMP image to a specified size, with a specified colour. In your case, the command would look something like: sips photo-500x640.jpg --padToHeightWidth 640 640 --padColor 000000 --out photo-640x640.jpg obviously with the input and output filenames of your choice. For white instead of black borders, change ...


8

When using OS X, it's usually more advisable to use diskutil for disk-related activities. TL;DR: To mount a volume/disk by identifier: diskutil mount /dev/diskXsY # mounts just that volume diskutil mountDisk /dev/diskX # mounts the whole disk To mount a volume by UUID: diskutil mount [Volume/Partition UUID] To mount a volume by label: ...


7

youtube-dl Config File To set a default download location, create a youtube-dl configuration file at: ~/.config/youtube-dl/config Within this file enter the line: -o ~/Downloads/%(title)s-%(id)s.%(ext)s You can create this file using the following two commands: mkdir -p ~/.config/youtube-dl/ echo "-o ~/Downloads/%(title)s-%(id)s.%(ext)s" > ...


6

Yes, the built-in Calendar app lets you add them. For your Mac: On your computer, open Calendar In the top left corner of your screen, click Calendar > Preferences. Click the Accounts tab. On the left side of the Accounts tab, click +. Select Google > Continue. Enter your Gmail address, password, and verification code (if you have one). Click Accept. On ...


5

I'm going to post this as an answer, even though it's not the one you probably wanted... Your issue is that you have one app spread to two Spaces. There is no fix for this at present, short of duplicating the app & re-defining it at OS-level to be recognised by the System as an independent app [which, as I understand, must be done at compile. I'm not ...


5

You can stop the ssh service by typing the following: $ sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist To start it again, use this: $ sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist


5

I get the key symbol when running read -s in Terminal. As this seems to work the same for read -s as for sudo, I assume this is a feature of Terminal (to display a key symbol whenever input is requested in silent/hidden mode).


5

You are trying to install in /usr which is protected by SIP (System Integrity Protection), a feature introduced with 10.10 (see What is the "rootless" feature in El Capitan, really? for details). Use /usr/local instead, which is the location intended for user-side installations.


5

Let's debug it. Change shells and try again. (Credit to @Kent) In terminal: $(which zsh) Comment out all lines in .bash_profile, .bashrc, etc. and open a new terminal tab/window. If this resolves the issue, something being loaded into the shell environment is consuming the letter e for reasons that science may never be able to explain. Try cating a ...


5

Well, when they say "all your data will get deleted" that means apps too. You can go to the Mac App Store, click on the Purchases tab, and re-install your apps.


4

Try using Helium. It uses a 'customizable translucency' to keep a window on top of other windows. Plus, it won't intercept mouse clicks on top of it unless you want it to. As of now, it only supports a browser window but the question doesn't indicate if that's a requirement of the OP or not.


4

on run {input, parameters} is AppleScript syntax, not a valid shell command. If you want to execute AppleScript in the service, use the Run AppleScript action instead of Run Shell Script.


4

The Google Multitask Mode is one of Google's fantastic April Fools jokes. Although technically possible to connect multiple pointing devices (USB mouses, Bluetooth mouses, trackpads, rollerballs, etc.) so far as I can tell, OS X presents only one cursor for all connected devices. This posting at SuperUser discusses this question, and one answer points to ...


4

Note the original question asked why Apple shipped an old version of bash and then asked how to upgrade. This is an answer to the original. If the question is just the latter then it is a duplicate You would have to ask Apple as to why. However I would note that bash is now licensed under GPLv3 and 3.2.57 is the last version released under GPL2. As bash ...


3

This is a Finder Sync extension. In OS X, the Finder Sync extension point lets you cleanly and safely modify the Finder’s user interface to express file synchronization status and control. Unlike most extension points, Finder Sync does not add features to a host app. Instead, it lets you modify the behavior of the Finder itself. Extensions are parts of ...


3

exFAT is the only format which will work for you as it will allow files greater than 4GB and work on Windows. Disk Utility can format using exFAT.


3

Try this, if it works I can add it to the answer for others to see. Go to System Preferences --> Spotlight --> Privacy. While that's open, go to Finder --> Applications and drag Matlab from Applications into Privacy. Close out System Preferences then reopen it and remove Matlab from the same place. This will force a reindex for Spotlight. I've ...


3

The security command is working as expected, and is following the same keychain access policies that any other program would follow. Accessing a user's keychain is not an admin function -- the user's keychain belongs to them, so admin access is irrelevant. On the other hand, the System keychain (/Library/Keychains//System.keychain) is "owned by" the ...


3

To have a portion of the string returned, the format would be: set StringVariable2 to (characters n through n of StringVariable1) as string n is the character number of the string starting at 1 as string is important or otherwise you get a list of single characters returned In your example of removing the last character, it would be: set StringVariable2 ...


3

Try Dash. Dash is an API Documentation Browser and Code Snippet Manager. Dash stores snippets of code and instantly searches offline documentation sets for 150+ APIs ... You can even generate your own docsets or request docsets to be included.


3

You need to copy the .icns file to the root folder of the volume. The new file needs to be named .VolumeIcon.icns. For example, if you are using a Bash shell, have the file vol_external.icns and destination /Volumes/MyStick, then below would be the command. cp vol_external.icns /Volumes/MyStick/.VolumeIcon.icns A word of warning: Once you assign an ...


3

You likely have a shell quoting problem. The command works just fine for me in 10.11.4: > which openssl /usr/bin/openssl > openssl version OpenSSL 0.9.8zh 14 Jan 2016 > openssl enc -aes-256-cbc -salt -in file.zip -out file.zip.enc; echo $? enter aes-256-cbc encryption password: Verifying - enter aes-256-cbc encryption password: 0 > openssl ...


3

If you are using Magic Mouse - there's BetterTouchTool where you can set custom gestures. For example you can assign ⌘+w to three fingers click globally. Here's how this looks like: You can also assign actions to "Normal Mice" if it has additional keys.


3

If your friend have something like family documents which can prove the relationship between him and his passed one, then try to contact Apple for solution. They do solve sort of situations like this :)


3

Instruments is a tool that comes with Xcode. This tool was designed to help developers get a lot of detail about what was happening on a computer when their software is run. One of the things it can do is watch all file I/O. If you run the program and add the File I/O instrument, you can attach it to safari and see what happens. You can also filter and ...


3

Damnit. I searched for a while but without using the keywords "airplane mode osx" which only came to me when I edited my question here. Research using these words led to a very useful answer available here : http://hints.macworld.com/article.php?story=20130325002258846 If you go to the Network pane of System Preferences, you'll see a Location popup ...


2

Go to Mission Control preferences (click Apple icon in upper left of screen, then "System Preferences" then "Mission Control). Then check "Displays have separate spaces." See image below. Note: if you use multiple Spaces, checking this box will change how they behave. Switching Spaces will now only switch Spaces on the monitor that is currently active, ...


2

It seems that this is a server issue. And one can't solve the issue by changing safari settings. The answers to the same question I found are in the below. iMeowbot user in macrumors says that: "This filename modification stuff isn't something that Apple made up, it comes straight out of RFC 2183 (see "2.3 The Filename Parameter" and "5. Security ...


2

if you have already installed gcc... sudo chown -R (username):admin /usr/local/lib/gcc/ and brew install octave after this, you make cross fingers...


2

The Keychain Access App is located in the Utilities subfolder of the Applications folder. In the Keychain Access App, open Preferences and under the General tab you can tick the box Show Keychain status in menu bar. It'll put a padlock symbol that's resident in your menu bar that when clicked will provide you with a menu, the first menu item is Lock Screen. ...



Only top voted, non community-wiki answers of a minimum length are eligible