Welcome to my website. I am always posting links to photo albums, art, technology and other creations. Everything that you will see on my numerous personal sites is powered by the formVistaTM Website Management Engine.

icon.linkedin.jpgicon.twitter.jpg

  • Subscribe to this RSS Feed
  • Screen Cheat Sheet
    06/12/2013 8:08AM

    I have recently be introduced to the *nix screen command.  Incredibly powerful tool for managing windows which mulitplexes a physical terminal between one or many processes.  One of the uses it to maintain interactive shells on a remote server between remote connections to the machine.

     It is enormously helpful when executing long running commands on remote servers.  Especially those that timeout your ssh connection and or from machines that you are going to either disconnect from the net or shutdown.

    Basically, it allows you to create a session from which you can detach and then attach from a shell that you will then exit.  It is an alternative for using nohup and provides the added benefit that you can reconnect to the command-line session.

    Following is my current cheat sheet of notes regarding it's usage.  Full details can be found searching the web for tutorials and reading the man page.

    ---------------------------------------
    -- Legend
    --

    . C-a = Control+A
    . C-D = Control+D
    ---------------------------------------
    -- Commands
    --

    . Create a screen:
    $ screen -S [session-name]


    . Detach from screen:
    $ C-a d


    .  Terminate a screen session (from within the screen session):
    $ C-a k


    . List screens (from within a standard shell session):
    $ screen -ls


    . Connect to an existing screen:
    $ screen -r [session-name]

    . If there is only one screen and no session-name is given it will connect to it


    . Re-connect to an 'attached' screen:  This sometimes happen if you kill the window you are in without first detaching from the screen session
    $ screen -d -r [session-name]


    . Split screens:

    . Create two named screen sessions:

    . Enter one of the screens via $ screen -r [session-name]

    . Horizontal split (once in a screen):
    $ C-a S

    . Move to next region:
    $ C-a tab
    . In the new region, (there will be no command prompt in a newly created region)
    . Create a new session (this seems to create a new un-named session):
    . C-a c

    . Return to full-size screen:
    . Switch to the half you want to keep
    . $ C-a Q
  • Quick and Dirty HTTP Server to Transfer Files
    06/06/2013 10:50AM

    If you need to stand up a quick HTTP Server to enable someone on your LAN to transfer some files use the following command in the directory that you want to 'share':

    python -m SimpleHTTPServer

    The default port is 8000, but you can run it as follows to specify a port

    python -m SimpleHTTPServer 8080

  • Making the Switch to a Standing Desk
    05/15/2013 9:31PM

    A few years back I had an office mate who used a standing desk.  He said that he had been using a standing desk for many years and that once he got used to it he liked it much better.  Since then, I have noticed a number of studies that indicate sitting for extended periods of time is just plain bad for you.

    For a while I have been wanting to make the switch, and today I took the plunge.

    I've still got a number of issues to sort out to get things right:

    • I've got to get the height correct for my keyboard and mouse
    • I've got to get another MicroSoft Natural Keyboard Elite (which looks like isn't in production any more but is the best keyboard I've ever used
    • Get a proper set of shoes for standing
    • Depending on the shoes, get a stress matt

    I will post some photos and a follow up once I've got everything sorted out.

    The Proper Shoes

    Links:

    • http://www.bestshoesforstandingallday.com/work-shoes-for-standing-all-day/


  • Associating Eclipse .launch Files with the Eclipse XML Editor
    05/14/2013 1:38PM
    1. Open the Preference dialog and go to General/Editors/File Association.  Add a new file type with the *.launch suffix.  In the 'Associated Editors' box below, click on Add and assign the XML editor to the file type.
    2. In the Preferences dialog go to General/Appearance/Content Types.  Click on the + next to Text.  Click on 'XML' in the tree so that it is highlighted.  Click 'Add' in the box below and add the *.launch suffix
  • Sublime Text Editor
    05/14/2013 1:33PM
Advanced Search

Categories

Archives