General Web

Improve Your Eclipse Performance

January 28th, 2013 0 Comments

Eclipse – Performance Improvement

1. Disable validators and startup option
– For validations: on eclipse menu Windows -> Preferences -> Validation, select only validation you need.
– For startup action: on eclipse menu Windows -> Preferences -> General -> Startup, and uncheck the options you don’t need.

2. Modify eclipse.ini
-vmargs
-server
-Dosgi.requiredJavaVersion=1.5
-Xmn128m
-Xms1024m
-Xmx1024m
-Xss2m
-XX:PermSize=128m
-XX:MaxPermSize=128m
-XX:+UseParallelGC

3. Turn off spelling check
– You can switch off the plug-in by going to Window -> Preferences -> General -> Editors -> Text Editors -> Spelling, and unchecking the box title ‘Enable spell checking’.

Add PHPUnit to MAMP 2.x, including PHP 5.4.4 for OSX 10.8

December 3rd, 2012 0 Comments

delete: /Applications/MAMP/bin/php/php5.4.4/conf/pear.conf
(delete or bak)

$ /Applications/MAMP/bin/php/php5.4.4/bin/pear channel-update pear.php.net
$ /Applications/MAMP/bin/php/php5.4.4/bin/pear upgrade pear
$ /Applications/MAMP/bin/php/php5.4.4/bin/pear channel-discover pear.phpunit.de
$ /Applications/MAMP/bin/php/php5.4.4/bin/pear channel-discover pear.symfony-project.com
$ /Applications/MAMP/bin/php/php5.4.4/bin/pear install phpunit/PHPUnit

make available in terminal:
$ mv /Applications/MAMP/bin/php/php5.4.4/bin/phpunit /usr/local/bin/phpunit

test:
type phpunit –version in Terminal
(you will see latest version of PHPUnit).

Note, if you need an older version of PHPUnit, like 3.6.x, you will indicate that when installing phpunit/PHPUnit-3.6.12

Showing Hidden Files and Desktop Icons in OSX 10.8

December 3rd, 2012 0 Comments

OSX is filled with lots of hidden secrets… literally. Reveal those hidden files with the following Terminal commands:


# Show hidden files
defaults write com.apple.Finder AppleShowAllFiles YES; killall -HUP Finder
# Hide hidden files
defaults write com.apple.Finder AppleShowAllFiles NO; killall -HUP Finder