Sunday, October 6, 2013

Seattle

This is a Learning Journal of the Seattle in CS program in New York University.

1) Local Test Mechanism
python repy.py restrictions.test <Your repy files> 
2) Login to the Seattle
  1. python seash.py
  2. !> loadkeys <username> # load the the key information of the user
  3. !> as <username> # login as the user
  4. <username>@ !>
3) Useful Instruction in Seattle
    a) browse 
        # Browse the available resources in the Seattle.
    b) on browsegood 
        # Use the resources which are working in good condition
    c) run <Your repy files in your local path>
        # Run the program
    d) show log
        # Show the result of what the program have executed
    e) list
        # List the information of the vessel that you own or control
4) Specific Functions & Variables in Seattle
   You can refer to the webpage:
        https://seattle.poly.edu/wiki/RepyApi#waitforconnlocaliplocalportfunction
    mycontext: It is a dictionary type provided for the global variables
        eg: mycontext['global_variables'] = 'This is a global varible'
    settimer(waittime, function, arg): Set a timer that when it expires will start a new thread to call a function with a set of arguments. The thread is charged to your problem when you set the timer instead of when the timer fires. This function returns a timer handle that may be used to cancel the timer before the thread is started.