Troy Thompson

Web Developer

Archive for January, 2008

  1. Link for Borders Coupons

    Published
    Tagged
    Content

    So I was looking at my email, and I get Borders coupons constantly. Instead of wading through my email for coupons, so I figured I might as well make a bookmark to see all available coupons.

    Use the following Google search query to get Borders Coupons:
    http://www.google.com/search?q=inurl:bordersmedia.com/coup/&num=100&as_qdr=m&filter=0

    Enjoy.

  2. Collapsible Nested ULs with jQuery

    Published
    Tagged
    Content

    This is a quick demo showing one how to expand and collapse menus of unlimited depth with jQuery.

    (more...)

  3. Roo, FasterCSV alternative?

    Published
    Tagged
    Content

    I just discovered Roo on RubyForge. Looking at the documentation it looks like a FasterCSV alternative.

    This gem allows you to access the content of

    • Open-office spreadsheets (.ods)
    • Excel spreadsheets (.xls)
    • Google (online) spreadsheets

    I can not see it replacing FasterCSV at the moment, as a lot of the features presented are available through FasterCSV.

    In my mind, the only thing separating this from FasterCSV is the ability to save your spreadsheets to Google Docs. This is cool because one could share a spreadsheet with a customer, and write generated reports to it for automated reporting.

    I happen to store all my hours worked in a Google document, so this would be great for generating excel reports by month to give to my employer.

  4. SSH Keypairs for Easy Login

    Published
    Tagged
    Content

    Tired of entering your password everytime you want to connect to a server? Me too, read this.

    Creating your public Key

    1. On your local machine.
    2. Open Terminal.
    3. ssh-keygen
    4. Hit enter when asked for filename or password

    Creating Server Aliases

    1. Edit ~/.ssh/config file
    2. Add the following:
      Host ALIAS
      HostName HOST.COM
      User USER
    3. Save

    Adding Key to Authorized Keys on Server

    1. scp ~/.ssh/id_rsa.pub ALIAS:
    2. ssh ALIAS
    3. Enter password when prompted.
    4. mkdir .ssh
    5. chmod 700 .ssh
    6. cd .ssh
    7. touch authorized_keys
    8. chmod 600 authorized_keys
    9. cat ~/id_rsa.pub >> authorized_keys

    Now you should be able to do ... ssh ALIAS and instantly login to your server.