• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • Website wrangling scripts

    August 20th, 2010
    webscripts, python, ical, tech  [html]
    I have a strange approach to website management. My website is all static html, but some of it is generated by scripts that read other static html pages. The scripts manage two separate aspects of the website: The proc_schedule script reads in the main page's source and allows automated schedule item addition and ical-format feed generation. The makerss script reads in the huge news page and writes out more manageable news pages, arranged by date, tag, etc under news. It also, as of pretty recently, adds summaries of recent news as links on the main page.

    I have shell aliases that make sure the appropriate publishing command is always run after I make changes:
      ~/.bashrc:
          ...
          alias ne="emacs -nw ~/public_html/news.html && python ~/bin/makerss.py"
          alias sv="python ~/bin/proc_schedule.py view"
          alias sa="python ~/bin/proc_schedule.py add && python ~/bin/proc_schedule.py ical"
          alias se="emacs -nw ~/public_html/index.html && python ~/bin/proc_schedule.py ical"
          ...
      

    Comment via: facebook

    Recent posts on blogs I like:

    Learning Worst Industry Practices

    If I have a bad idea and you have a bad idea and we exchange them, we now have two bad ideas. But more than that. If I have a bad idea and you have a good idea and we exchange them, we should both land on your good idea – but that requires both […]

    via Pedestrian Observations September 20, 2020

    Collections: Iron, How Did They Make It? Part I, Mining

    This week we are starting a four-part look at pre-modern iron and steel production. As with our series on farming, we are going to follow the train of iron production from the mine to a finished object, be that a tool, a piece of armor, a simple nail, a w…

    via A Collection of Unmitigated Pedantry September 18, 2020

    Learning Game

    I came up with this game. In the game one person thinks of something and then gives the other person a clue. And the other person writes a guess down on a blackboard or a piece of paper. Or really anything you have that's laying around that's av…

    via Lily Wise's Blog Posts September 17, 2020

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact