To show all hidden files on MAC OSX, enter the following command into Terminal to change your Finder preferences:
defaults write com.apple.Finder AppleShowAllFiles TRUE
Now restart finder for the changes to take affect:
Hidden files should now be visible in your Finder.
GIT is version control technology created by Linus Torvalds. Getting GIT configured on your system requires a few steps to set up initially. To install and use GIT with a Mac OSX operating system, first download GIT from http://git-scm.com/
Once you have downloaded the files, run the .dmg file to install GIT on your machine.
Now once GIT is installed, it is a good idea to edit your .bash_profile file to enable you to use it more easily. The .bash_profile file is hidden, so first show your hidden files by using the following command in terminal:
defaults write com.apple.Finder AppleShowAllFiles YES
This will set finder to show all files. Now you must restart finder by using the following command in Terminal:
Finder should now restart and hidden files will be displayed. Next navigate to your home directory and enter into Terminal the following command:
If you look in your finder, because hidden files are displayed you should now be able to see the .bash_profile file. Open this file in your favourite text editor, and add the following:
Each directory specified in your .bash_profile file is separated with a colon. Save and close the file and head back into Terminal. You should now be able to run GIT from the Terminal by simply entering git as a command.
Sometimes when using Eclipse it is possible to receive the following error due to the application running out of memory:
Eclipse Out Of Memory Error
This problem can be more frequent when working with projects that use a lot of libraries and a lot of files, or projects that have a large number of graphical assets. The solution is to to edit the eclipse.ini file and permit FlashBuilder access to larger amounts of RAM.
The eclipse.ini file can be found in OS Lion by navigating to the folder that Flash Builder was installed at which is normally the applications directory. Right or Ctrl + Click the Flash Builder application icon and select ‘Show Package Contents‘ from the menu.
Flash Builder Location
Clicking the ‘Show Package Contents‘ button should open a folder. The eclipse.ini file can be found within the following directory: Contents > MacOS
eclipse.ini file location
Open the eclipse.ini file in your favourite text editor. You will need to edit a few of these parameters to enable higher memory. This information from the Adobe website describes the important parameters:
Xms Initial size (bytes) of the memory allocation pool. This value must be a multiple of 1024, greater than 1 MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.
Xmx Maximum size (bytes) of the memory allocation pool. This value must a multiple of 1024, greater than 2 MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.
XX:MaxPermSize Maximum size of Permanent Generation
XX:PermSize Initial size of Permanent Generation
Setting these values to higher amounts should stop the error from occurring. I normally set my arguments to the following, and do not often run into any problems:
This should prevent any more out of memory errors. Experiment with the values, but remember to not set them to a value which your machine can not handle.