Java Ninja Chronicles By Norris Shelton

Things I learned in the pursuit of code

Intellij IDEA doesn’t show hidden files in the file chooser dialog on Mac OS/X. This can be frustrating when you are trying to find files that are always in a hidden directory, such as Maven files. There are two ways around this.

This will enable it for the current window

ctrl + shift + .

There is another solution, but it involves editing the registry. Hit the following keys to access the Find Action menu.

cmd + shift + a

Once there, scroll down to ide.mac.file.chooser.show.hidden.files. Check the checkbox and select Close and away you go.

July 28th, 2015

Posted In: IntelliJ, java ninja, Javaninja, Mac, OS/X

Tags: , , ,

One Comment

I had to switch to Homebrew when we got Mavericks OSX 10.9

Update Homebrew

brew update

Upgrade outdated formulas

brew upgrade

To see what old versions of a formula would be removed

brew cleanup -n

To remove old versions of a formula

brew cleanup

July 1st, 2014

Posted In: Mac

Tags: , , , , , ,

Leave a Comment

I couldn’t find the hosts file on my mac. I was used to finding the hosts file on a Linux system at /etc/hosts. They are in another location on a Mac 10.9.

/private/etc/hosts

December 20th, 2013

Posted In: Mac, OS/X

Tags: , , , , ,

2 Comments

When my OS was upgraded, I had to start typing the FQDN for all of the servers I used for work. I knew it had something to do with /etc/hosts on other Linux machines.

The file that needs to be changed for OSX is /etc/resolv.conf. there is a line that begins with search. Add the domain names that you want appended and it will append them in order until if finds the host.

February 8th, 2013

Posted In: Mac, OS/X

Tags: , , ,

Leave a Comment

Something like this normally works on Linux:

find . -type D -name .svn | rm -r

Not on Mac. You have to remember to add xargs

find . -type D -name .svn | xargs rm -r

Without the xargs, it is like calling rm without a target.

December 5th, 2011

Posted In: Mac, OS/X

Tags: , ,

Leave a Comment

LinkedIn Auto Publish Powered By : XYZScripts.com