Posts Mentioning RSS Toggle Comment Threads | Keyboard Shortcuts

  • kusno mudiarto 5:37 pm on March 31, 2008 Permalink | Reply  

    Do NOT share mercurial repository between VM :( 

    This bug has bitten me once .. I share my mercurial repo between my mac & my linux (running on vmware fusion) using vmware shared disk. Because mercurial is using hardlink and copy-on-write technique, somehow my repository get messed up when I modify it on one platform, and commit it on different platform. NOTE TO SELF: Don’t ever do that again !!!. I’m removing svn & hg from my linux vm, just to be safe..

     
  • 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 5:22 pm on March 20, 2008 Permalink | Reply  

    hash key downcase 

    from ruby facets:

    
    class Hash
    
      def update_keys #:yield:
        if block_given?
          each{ |k,v| delete(k) ; store(yield(k), v) }
        else
          to_enum(:update_keys)
        end
      end
    
      def key_downcase!
        self.update_keys{|k| k.to_s.downcase}
      end
    
    end
    
     
  • kusno mudiarto 3:09 pm on March 20, 2008 Permalink | Reply  

    Ruby QuickRef

     
  • 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
    
     
  • kusno mudiarto 2:01 pm on March 17, 2008 Permalink | Reply  

    running ruby script as batch file in windows 

    a little snippet to be put on top of your ruby file so it can run as batch file.

    @rem => batch
    @ruby %~f0 %*
    @goto :eof
    batch
    # your ruby script here
    

    Blogged with Flock

    Tags:

     
  • kusno mudiarto 1:46 pm on March 17, 2008 Permalink | Reply  

    Rake db:migrate to previous version 

    Migrate to previous version:

    rake db:migrate VERSION=xx

    Tags:

     
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