Allowing Popups in FireFox from Locally Sourced Files

If you want to allow a popup from a file accessed via file:///home/rchapin/some_dir/somefile.html, open FireFox’s Preferences, click on the Content tab, and click on the ‘Exceptions’ button adjacent to the ‘Block pop-up windows’ check box.

Then enter ‘<file>’ in the ‘Address of website:’ field and click the ‘Allow’ button.

How to Add an Application to the Mac Approved Software List

I am installing Eclipse on Mac OS X Mountain Lion.  Unpacking the
.tar.gz was no problem, however, when I went to run it for the first
time I got the following error message:

Your security preferences allow installation of only apps from the Mac App Store and identified developers

To add Eclipse to the list of ‘approved’ applications run the following command in a terminal:

xattr -d com.apple.quarantine /path/to/Eclipse.app

Changing the VMWare vmnet IP Range when it Conflicts with a VPN on Mac OS X

If you are running both VMWare (in my case VMWare Fusion 5) and a VPN that uses the 192.168.203.0 subnet you will may need to update the ip range that is used for the vmnet.

In my case, vmnet8 was configured to use 192.168.203.0 and so was a VPN connection that I was using.

As a result, if I fired up VMWare first and then attempt to make a connection to the VPN, I could not route to any of the 192.168.203.0 hosts.

Following is what you need to do on a Mac running OS X:

        . Shutdown VMWare Fusion (simply quit the program.  It must stop the vmware_* services)

        . edited: /Preferences/VMware Fusion/networking
                . Updated answer VNET_8_HOSTONLY_SUBNET 192.168.203.0 -> answer VNET_8_HOSTONLY_SUBNET 192.168.247.0
                . /Preferences/VMware Fusion/vmnet8/dhcpd.conf and /Preferences/VMware Fusion/vmnet8/nat.conf will be automatically updated by VMWare with the config change

        . Fire up VMWare Fusion:

# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags        Refs      Use   Netif Expire
default            10.1.10.1          UGSc           27        0     en0

172.16.19/24       link#8             UC              1        0  vmnet1
192.168.247        link#9             UC              1        0  vmnet8

        . Connect to VPN:

# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags        Refs      Use   Netif Expire

172.16.19/24       link#8             UC              1        0  vmnet1
192.168.12.156     192.168.12.156     UH              5        0   utun0
192.168.200.120/32 192.168.12.156     UGSc            1        0   utun0
192.168.201        192.168.12.156     UGSc            0       11   utun0
192.168.202        192.168.12.156     UGSc            0        0   utun0
192.168.203        192.168.12.156     UGSc            0        0   utun0
192.168.247        link#9             UC              1        0  vmnet8

Exploring Java Build Systems

Recently I have started working on some projects where the use of Maven has been mandated.  However, since these projects are in the early stages it has got me doing some searches for alternative Java build systems.

I found a interesting article on the topic written by Jess Johnson entitled ‘Java Build Systems: A Sad State of Affairs’.  From there I found some other links to Java build systems and some other articles written on the topic.

I’ll come back to this article and update it as I do some more research and try out some of the other projects listed below.

A Quick and Easy Way to Lock Your Screen Under Mac OSX

If you want a quick way to lock your screen on your Mac do the following:

  • Go to System Preferences/Security & Privacy
  • Click on the checkbox next to “Require password … after sleep or screen save begins”
  • Select “immediately” in the dropdown within the aforementioned selection.

You will be asked to authenticate to make the change

Now you will be able to immediately lock your machine by pressing Control-Shift-Eject.

Very Cool Free Mac OSX Font for Terminal Windows and Programming

I have just recently started working on a Mac again and am in the process of getting it set up to do some development.

First thing was to tweak my Terminal preferences and I found a really good article about Mac fonts for programming (Top 10 Programming Fonts).  I agreed with the author of that post and went with Inconsolata.