How to set JAVA_HOME on OSX
Answer:
To set the JAVA_HOME environment variable on OSX, add the following line in your ~/.bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
That's all.
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to set JAVA_HOME on OSX
Answer:
To set the JAVA_HOME environment variable on OSX, add the following line in your ~/.bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
That's all.
How to install homebrew for Mac?
Answer:
Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn't include with OS X. To install under Mac's terminal, type
# /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
That's it.
How to print screen in Mac OS X
Answer:
1. To print the whole screen in Mac OS X, try
Press down Apple key ⌘ + Shift + 3 at the same time
2. To print an active window
Press down Apple key ⌘ + Shift + 4 at the same time
When you see the mouse changed to +, press the space key in your keyboard.
3. To print a portion of your screen
Press down Apple key ⌘ + Shift + 4 at the same time
When you see the mouse changed to +, move your mouse to select the portion .
How to make desktop icons snap to grid on Mac OSX
Answer:
To make desktop icons on Mac OSX snap to grid, follow the steps below:
1. Click anywhere on the desktop
2. Select "Show View Options"
3. At the row "Arrange By", select "Snap to Grid"
That's all what you need.
Suggested Mercurial .hgignore settings for XCode projects
Answer:
Save the following lines as .hgignore and put it under the root of your project root directory, Mercurial will ignore them automatically.
^build/*
\.mode1v3
\.pbxuser
\.DS_Store
^\.*