Friday, November 16, 2012

How to Workaround Mac OS X Lion VNC Password Issue

You may be having trouble typing your username or password when VNC'ing to your Mac OS X Lion machine from a Windows machine.  Try the following:

1) Type the password really slowly, around 1 character per second

2) If that doesn't work, you may have a process taking a lot of CPU cycles.  If that's the case, ssh into your Mac OS X Lion machine, run "top", and see what process is taking a lot of CPU cycles.  Kill the process.  Then try to VNC in.

Monitor Network Traffic on iOS Simulator

1) Install WireShark: http://www.wireshark.org/download.html

2) Add Wireshark bin directory to your path.  If you are using tcsh, edit your ~/.cshrc file and add in the following:

set path=(/Applications/Wireshark.app/Contents/Resources/bin $path)

3) In Terminal, run the following:

tshark 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'

4) Run the iOS Simulator, and browse to something.  You'll see the HTTP connections made in Terminal.