Saturday, April 27, 2013

Mac - Beginners' OSX shortcuts... in mountain lion

a short list that I found worth memorizing to begin OSX with...

Most of the time, 'cmd' button in Mac is like 'ctrl' in windows... for {n, o, w; c, v, x; a; z, y}
The other time...

Basic application commands

      cmd-h  # hide the appl
opt-cmd-h  # ~hide ALL other app

      cmd-m  # minimize window
opt-cmd-m  # ~minimize ALL window

      cmd-s  # save document
      cmd-S  # Save as...

      cmd-p  # print
      cmd-P  # Page setup

      cmd-(,)  # preference

      cmd-q  # quit appl
opt-cmd-esc  # force quit


      cmd-n  # new document
      cmd-o  # open document
      cmd-w  # close document

      cmd-f  # find
      cmd-g # find next
      cmd-G  # find prev

Some Hidden Keys

      cmd-up  # home
      cmd-dn  # end
              ctrl-up  # page up
              ctrl-dn  # page down
      cmd-[  # backward
      cmd-]  # foreward
   
      cmd-left  # go to start of line
      cmd-right # go to end of line
opt-       left  # go to starts of word
opt-       right # go to ends of word
      # ... and adding a shift will be...
shift-cmd-left  # select to start of line
shift-cmd-right  # select to end of line
shift-       ctrl-left  # select to starts of word
shift-       ctrl-right  # select to ends of word
      # ... SuRprIsEs ...
               ctrl-up/left/right  # three finger swipe
               ctrl-down  # open recent files, eg. textedit

Some Mixed Moves

            ctrl-click-        # right click
opt-click-"GO" menu item    # show hidden folder "Library"


Labels: ,

Monday, April 08, 2013

Mac - Fix virtualbox disk image in OS X

I installed the latest virtual box on a mac book.  Since i want my virtual machines to be runnable from multiple machines, I have the disk images installed in an external hard drive.

Here the problem comes, mac can read-only a ntfs drive, but cannot write to it.  So i reformatted the drive to win32.  I didn't want ext64 coz it's still new and maybe unstable.

when i created the disk, i used the default disk type:  VDI, which grew when i installed ubuntu into it.  Once it reached 4GB, the OS hanged, because the VDI didn't split into chunks for win32.

little googling told me that VMDK does.

i don't want to reinstall linux on a new VMDK drive.  searched again on the net and found someone sharing the disk type conversion method:

VBoxManage clonehd "***.vdi" "***.vmdk" --format VMDK --variant Split2G

"tada!"  and it works like a charm

Labels: ,