• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • Website wrangling scripts

    August 20th, 2010
    ical, python, tech, webscripts  [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:

    Best Practices Civil Service

    I propose that transportation agencies hire people whose job is to keep abreast of global developments in the field and report on best practices. Which agencies should do it? Ideally, all urban ones. Very small ones should piggyback on large ones, or part…

    via Pedestrian Observations June 14, 2021

    Collections: The Queen’s Latin or Who Were the Romans? Part I: Beginnings and Legends

    Who were the Romans? How did they understand themselves as a people and ‘Roman’ as an identity? And what were the implications of that understanding – and perhaps more importantly the underlying reality – for Roman society and the success of the Roman Emp…

    via A Collection of Unmitigated Pedantry June 11, 2021

    It's ok to feed stray cats

    Before we had kids, Jeff and I fostered a couple of cats. One had feline AIDS and was very skinny. Despite our frugal grocery budget of the time, I put olive oil on her food, determined to get her healthier. I knew that stray cats were not a top global pr…

    via Giving Gladly May 15, 2021

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact