Using Docker With Homebrew and VMware Fusion on Mac

Install Docker with Homebrew brew install docker brew install docker-machine Create Default Machine with VMware Fusion Driver docker-machine create –driver vmwarefusion default Eval Env and Manage eval $(docker-machine env default) docker info Config Network Get the HWaddr of VM and stop VM docker-machine ssh default ifconfig -a | grep eth0 docker-machine stop default Edit the VMware NAT network adapter sudo vi "/Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf" Added the following line host default { hardware ethernet 00:0C:29:E6:F9:AC; fixed-address 192.
Read more →

Increase TCP max connections on Mac OS X

Reason I was trying to benchmark a TCP based file server on Mac OS X. The server is running latest Node.js (0.8.2), while the client to push the server is written in go. ‘Go’ can start thousands of concurrent goroutines easily. I got error when there are hundreds of concurrent clients. Steps increate max open files kern.maxfiles and kern.maxfilesperproc were small numbers, they need to be increased: after this, you can increase your account’s limit by ulimit -n:
Read more →

Start to Use Safari as My Daily Web Browser

Safari is fast to start. Firefox is too slow, Chrome still has no extensions support on Mac.
Read more →

VMware Fusion 3 Network Configuration

In this post, I summarized how to config VMware Fusion 2’s network. For the new VMware Fusion 3, it’s much easier. VMware Fusion 3 has a separate configuration file for networking only. The file is: /Library/Application Support/VMware Fusion/networking A sample file as following: VERSION=1,0 answer VNET_1_DHCP no answer VNET_1_HOSTONLY_NETMASK 255.255.255.0 answer VNET_1_HOSTONLY_SUBNET 172.16.125.0 answer VNET_1_VIRTUAL_ADAPTER no answer VNET_1_VIRTUAL_ADAPTER_ADDR 172.16.125.1 answer VNET_8_DHCP no answer VNET_8_DHCP_CFG_HASH E7EBB6E40048285A05D25835904AFD8BEC1CD2B2 answer VNET_8_HOSTONLY_NETMASK 255.255.255.0 answer VNET_8_HOSTONLY_SUBNET 192.
Read more →

In Apple Mail, Always Insert Attachments at The End of Message

When composing an email in Apple Mail. Unless the receivers are all use Apple Mail, then please make sure you put all the attachments at the end of message. Apple Mail display certain types of attachments inline. So when you compose an email as <some text> + <attachments> + <more text>, Apple Mail will encode the whole message as:<some text> + <encoded attachments> + <encoded text attachment of the more text>
Read more →