Monday, 29 November 2010
If you have nat networking on vmware fusion 3 and want to enable port forwarding you need to edit /Library/Application Support/VMware Fusion/vmnet8/nat.conf at the bottom you'll see two sections [incomingudp] and [incomingtcp]
To add a port forwarding under whichever section you require add
<remoteport> = <vm ip address>:<vm port>
i.e. 8888 = 192.168.78.134:80 will redirect all traffic from 8888 to the vm with ip 192.168.78.134 to port 80
Then restart vmware fusion networking by running /Library/Application\ Support/VMware\ Fusion/boot.sh --restart
Posted by Rowan at 02:38
If you have an apple airport under the airport utitlity advanced pane you'll see a Logging and Statistics tab, there contains a Syslog Destination Address, which basically logs info about your airport to the machine specified by the ip address so you can view it in the console.
However! By default syslogd on a mac isn't listening to enable it you need to edit /System/Library/LaunchDaemons/com.apple.syslogd.plist at the bottom you'll see "Un-comment the following lines to enable the network syslog protocol listener." so do what it says, then either reboot or run
That'll enable the remote syslog feature and you'll get messages like
28/11/2010 18:29:26 <AIRPORTIP> <AIRPORTNAME> natpmp[-1] Debug Public address reported as <YOURIP> to <CLIENT>:5353
Posted by Rowan at 02:34
Tuesday, 23 November 2010
If you are converting all php errors to exceptions or dealing with other exceptions via a try catch statement you must put the path to the namespace in the exception.
//some code that causes an exception
catch (\Exception $e)
If you don't add the \ it won't be caught.
Thanks to this blog for pointing it out http://onehackoranother.com/logfile/2009/01/php-5-3-exception-gotcha
Posted by Rowan at 20:10