Friday 26 July 2013

Emacs Mark Region and Scrolling Problem


The problem looks like this in emacs when I set the mark:
  1. C+SPC set the mark at the beginning of the paragraph
  1. Move to the end to paragraph.
  1. If I need to scroll the page in step 2, the cursor will move to the current view of the emacs
  1. Then I use left click to select the region between the start mark and current cursor. But I only get part of the region that in the current view.

After making me depressed a long time, I realized that the reason is due to the failing of set mark in step 1. C+SPC is not captured by Emacs, but by my Input Method.

Tuesday 9 July 2013

Synchronize the folder to the server in the Rstudio



  1. Install the WinSCP
  1. Set WinSCP installation path to the WIN7 Environment Variable in $PATH
  1. Write the code:
    1. Winscp_sync.txt:
                  open stored_session_name_in_WinSCP
                  synchronize both E:\Projects\R\data\server /homed/home/shi/anthony/tfbs_pwm/rsnp
                  exit
  1. Winscp_sync.bat:
                WinSCP.exe /console /script=winscp_sync.txt
  1. In Rstudio
               Call: system('./winscp_sync.bat')#Path needed