Tag Info

Hot answers tagged

22

On windows, the Cygwin is a Unix-like environment and OS X is full on UNIX, so there is no need for any additions to get unix tools. Open Terminal.app and start with manual pages. The more and tail -f commands are typical unix commands to page, search, and watch a log file. For your example, the tail command to watch your log file is: tail -f ...


10

Xcode 6 currently requires an active iOS or Mac Developer Program membership, available from developer.apple.com/programs, as Xcode 6 and Swift is not publicly available yet. Once Xcode 6 is out of beta / prerelease anyone should be able to download it from the MAS, but that is speculation based on past experience and not something Apple has announced.


7

The GNU version of split is different to the OS X version of split. OS X is based on BSD Unix, and Linux (often referred to as GNU/Linux) uses the GNU toolset. The GNU version of split is part of the coreutils, and the good news is that these are available in MacPorts. If you have MacPorts installed, you can install the coreutils port using the command: ...


6

I may be misunderstanding, but to remove items from Finder's menu bar is quite simple: Hold down Command and drag the icon from the menu bar. Poof! It's gone. This works for all Apple based menu bar items, and some third party items. Usually, when it doesn't work for a third party application, there is an option within the app itself to remove its icon ...


5

Using the esc key to close a modal dialog is usually the same as pressing the Cancel button for the dialog. This is similar to how pressing the Return or Enter keys confirms the action for the button that is highlighted. This has been in Apple's Human Interface Guidelines for Macintosh since the very beginning and is not new to OS X. The guideline can be ...


5

What you're seeing, namely, the behavior where the Escape key closes the window, is automatically built in to the NSPanel class, which is a subclass of NSWindow. From Window Programming Guide > How Panels Work: A panel is a special kind of window, typically serving an auxiliary function in an application. The NSPanel subclass of NSWindow adds a ...


4

dot_clean dot_clean(1) Mac OS X Manual Page Apple's description: For each dir, dot_clean recursively merges all ._* files with their corresponding native files according to the rules specified with the given arguments. By default, if there is an attribute on the native file that is also present in the ._ file, the most recent attribute will ...


4

Yes, this file doesn't exist by default. The difference between bash_profile or .bashrc versus .profile is that the latter will be read by shells other than bash. For your purposes, you can simply name it .bashrc. Open up Terminal and enter the following command: cd ~/; touch .bashrc; open -a TextEdit .bashrc Now you have a created a profile, which the ...


4

In most apps you can Command-Click or Right-Click on the document's icon in the title bar of the app and it will display a drop down menu with the full path. You can select a folder from the drop down to open it in the Finder.


4

Instead of .bat, save it as .command. A .command file will run the contents of the file in Terminal upon double-click, just like a .bat would do on Windows. If you can't run the file because you don't have permission to execute the command file, you need to set 'execute' on the file for it to allow you to run it: chmod u+x /path/to/file.command u is the ...


4

Try Bartender. This lets you hide (as well as re-arrange) menu bar items, as well as providing a secondary menu bar so that you can hide icons from the main bar but still have access to them on a keyboard shortcut or menu bar item.


4

Run the following, then log out and back in defaults write com.apple.CrashReporter DialogType none


4

According to your log you have a Razer mouse! Kernel Extensions in backtrace: com.razer.common.razerhid(9.35)[0A917EFD-D323-36E1-AE4A-288047813989]@0xffffff7f8aecd000->0xffffff7f8aee5fff It looks like your Razer mouse and/or its driver caused that panic. That causes the BSD process name corresponding to current thread: WindowServer (the app that ...


4

The button in the top right of each window is not for minimizing and maximizing the window, but for putting it in and out of fullscreen mode (which is why it covers the menu bar, as you said). The keyboard shortcut to toggle fullscreen depends on the application. Most applications that I use on a daily basis (such as Google Chrome, Terminal, Mail, and ...


4

How to do this with the tools to hand: Preview .app and Screen Capture. Open up any Application that lets you have a clean neat white background. Not strictly necessary but makes life easier. Make a screensnap: command shift 4 > drag out an area 640 x428 pixel (the cursor shows the dimensions). This will be saved as a .png to your Desktop *. Double ...


4

If other people use only the guest account, then they have no privileges to install anything. I have added another account (beside the admin and guest account) which I use for daily work. The reason: sometimes someone ask me if he can use my computer for a short moment, and this way I do not have to switch to the guest account. And because this third ...


3

Assuming it's the same as on Linux, you could also use: less /Applications/MAMP/htdocs/BO_V2/data/logs/log-2014-07-10.php Then press Shift+F to have it tail automatically, or just Shift+G to go to the end of file.


3

You can achieve it with dd command. Here's an example: $ hexdump StringComparison | head -1 0000000 cf fa ed fe 07 00 00 01 03 00 00 80 02 00 00 00 $ printf '\x11\x11\x11' | dd of=StringComparison bs=1 seek=4 count=3 conv=notrunc 3+0 records in 3+0 records out 3 bytes transferred in 0.000293 secs (10238 bytes/sec) $ hexdump StringComparison | head -1 ...


3

Do other parts of the world have the option of other built-in dictionaries? Does Great Britain have the option of the OED instead of NOAD, for instance? All parts of the world have options of other dictionaries. To add (or remove) alternate dictionaries, launch the built-in dictionary application and open the app's preferences. From there you can add or ...


3

These values come from the Spotlight index. So you could try rebuilding the Spotlight index to fix these values. There are simple instructions from Apple here on how to rebuild the Spotlight index. You can also do it from the command line using the mdutil command. You'll be prompted for your password to run this command. sudo mdutil -E / Please note, ...


3

Yes it is. If you quit the installer when it starts, it will shut down the computer, and next time it starts up it will run the installer from the start again.


3

A few searches tell me that there isn't good SSD support for power pc macs. This seems to be mostly a SATA III compatibility issue. TRIM support seems to have been introduced in 10.6.8 but only for Apple-supplied drives. Since Apple was producing Intel-based systems by that point, that is where they focused the support. There are blog posts where people ...


3

Yes, OS X does not come with anything in /opt or even the directory itself. I presume you're looking for MacPorts, which is a 3rd-party package manager that installs port. MacPorts has to be installed separately. Various other apps can place files in /opt though. For example, even though I've never had MacPorts, I have the /opt directory and it contains the ...


3

The Eject menu is part of the Menu Extras that are of the standard core service items for the Mac. It is not normally enabled. But one way of enabling it is to double click on the /System/Library/CoreServices/Menu Extras/Eject.menu file. The Eject menu is normally for your built in disc drive if you have one. It may or may not work on external disc ...


3

You are at the same location, namely your root: "Mac1 Sys". You only expanded the folder contents, you did not move into that folder. It is annoying to others as well ;) I solve this by cmdmouse-dbl click on the folder and move to icon view (cmd1) In my opinion Finder is old and needs some updating...


3

Simply drag the folder to the desired position in the sidebar. This adds the folder to the sidebar in every current and future Finder window, as well as Finder Open/Save windows/sheets. Removal is done by dragging the folder from the sidebar out to the side.


3

Rebuilding Launch Service Database did the trick: /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user More details here: http://www.maclife.com/article/howtos/how_rebuild_launchservices_remove_duplicates_open_menu


3

Thunderbolt and USB are quite different protocols, so you can't just use a cable -- it would need to have active electronics in it to convert between the protocols. And that means it would cost a lot more than a cheap commodity USB hub and so no one would buy it -- they'd just get a hub instead. If you're concerned about the power drain, get a powered USB ...


2

Dterm You might want to take a look at Dterm. This is a dialog under commandshiftreturn and does exactly what you are looking for and it does even more than that. As it says on the site: "DTerm provides a context-sensitive command line that makes it fast and easy to run commands on the files you're working with and then use the results of those ...


2

I've checked my suggestion and it worked: if you try to open a file in Finder, this file will be opened with default Application, assigned to its extension. So, if you change default App for this file, you'll get it while opening file from Terminal by click.



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