Trace32 script to print stack frame to a file

March 26, 2009

A very simple scripts, but took me a while to found it. Basically in Trace32, I need to capture stack trace whenever a certain memory location is being written. I got tired of doing it manually, and have to copy & paste the stack trace everytime. Searching it in Google didn’t give me a clue, […]

Adding Custom Compilation Flags in XCode

March 24, 2009

I just found out how to add additional compilation Flags in XCode. It may looks stupid, but I couldn’t find it anywhere couple days ago :(. Basically just do “Get Info” on a project / target, and add user defined settings with this value : OTHER_CFLAGS and set the additional compilation flags : -DTARGET_OS_X -DMUDI_DEBUG […]

Removing NGINX problem in ubuntu ( or debian )

April 1, 2008

I got some problem removing NGINX in my computer running ubuntu. It gave me this error : Removing nginx … Stopping nginx: invoke-rc.d: initscript nginx, action “stop” failed. dpkg: error processing nginx (–remove): subprocess pre-removal script returned error exit status 1 Starting nginx: invoke-rc.d: initscript nginx, action “start” failed. dpkg: error while cleaning up: subprocess […]

vmware fusion network problem

March 24, 2008

Today, suddenly after rebooting my macbook, I couldn’t connect to my guest machine on the VMWare Fusion. I tried disabling / enabling network to no avail. Luckily I found this blog post which showed me the steps to restart vm. It fixed my problem immediately. sudo /Library/Application\\ Support/VMware\\ Fusion/boot.sh \-\-restart Tags: vmwareproblem

chmod directory recursively but not the file

March 18, 2008

sudo find /path -type d -exec chmod 777 “{}” \;

Additional path for vim files

March 17, 2008

Vim will try to load more configuration / color files from its runtime path. This is the list of runtime path in my mac : :set runtimepath runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim70,/usr/share/vim/vimfiles/after,~/.vim/after