Posts Mentioning RSS Toggle Comment Threads | Keyboard Shortcuts

  • kusno mudiarto 5:14 pm on March 26, 2009 Permalink | Reply  

    Trace32 script to print stack frame to a file 

    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, so I read through Trace32 manual to find out how to do it.

    Finally, I found the easy way to do it, here is the script / command in its glory:

    # printer.clipboard -> to redirect to clipboard
    # use this to redirect to file
    printer.open "c:/kusno_trace_1.txt"
    
    # command to be run inserted in the  the breakpoint
    wp.var.Frame
    
    # close printer after we're done
    printer.close
    

    The trick here is using printer to print the content of the var.Frame…

    Tags:

     
    • vineet 11:34 pm on September 16, 2009 Permalink

      Thanks… It is really useful…

  • kusno mudiarto 11:43 am on March 24, 2009 Permalink | Reply  

    Adding Custom Compilation Flags in XCode 

    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

    edit:

    another additional flags : GCC_PREFIX_HEADER to specify your precompiled header – useful for static library

    Tags:

     
  • kusno mudiarto 10:32 am on April 1, 2008 Permalink | Reply  

    Removing NGINX problem in ubuntu ( or debian ) 

    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 post-installation script returned error exit status 1
    Errors were encountered while processing:
     nginx
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    

    Fortunately I found the fix to this problem in here : http://www.digitalsanctum.com/2007/11/07/uninstalling-nginx-via-apt-get-stopping-nginx-invoke-rcd-initscript-nginx-action-stop-failed/

    Tags:

     
  • kusno mudiarto 10:36 pm on March 24, 2008 Permalink | Reply  

    vmware fusion network problem 

    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:

     
    • DanHarris 8:41 am on August 28, 2008 Permalink

      Thank you SO MUCH for posting this. I have been having intermittent network failures in my VMs since day 1 of using Fusion. It’s very frustrating but this is better than rebooting my Mac like I used to do to fix it!

  • kusno mudiarto 9:59 am on March 18, 2008 Permalink | Reply  

    chmod directory recursively but not the file 

    sudo find /path -type d -exec chmod 777 "{}" \;
    
     
  • kusno mudiarto 2:32 pm on March 17, 2008 Permalink | Reply  

    Additional path for vim files 

    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
    
     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel