Friday, January 21, 2011

pidof script of mac OSX

Found at http://hints.macworld.com/article.php?story=20030618114543169

#!/bin/sh
ps axc|awk "{if (\$5==\"$1\") print \$1}";

Saturday, January 15, 2011

Interface builder

Can't connect outlet from rounded button to file's owner.

Found same issues :
http://stackoverflow.com/questions/1746281/cant-connect-iboutlet-in-interface-builder


Solved by read class file again, wired !

Friday, January 14, 2011

SSH Over USB

From iPhone Development Wiki

SSH over USB using usbmuxd Tested on OS X. Works on Windows too, according to the README
  • Get usbmuxd source package and unpack
  • Go into folder python-client
  • chmod +x tcprelay.py
  • Run ./tcprelay.py -t 22:2222
Now you can log into your device via ssh root@localhost -p 2222
The -t switch tells tcprelay to run threaded and allow more than one ssh over the same port.
See ./tcprelay.py --help for further options.

Log from : http://iphonedevwiki.net/index.php/SSH_Over_USB