• 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:

    Who Should Bear the Risk in Infrastructure Projects?

    The answer to the question is the public sector, always. It’s okay to have private-sector involvement in construction, but the risk must be borne by the public sector, or else the private sector will just want more money to compensate for the extra risk. …

    via Pedestrian Observations November 30, 2020

    Fireside Friday, November 27, 2020

    Hey folks! Fireside this week. A bit of a change-up in terms of the coming attractions. I had planned to start “Textiles, How Did They Make It?” next, but I want to do a bit more reading on some of the initial stages of textile production (that is, the pr…

    via A Collection of Unmitigated Pedantry November 27, 2020

    Thoughts you mightn't have thunk about remote meetings

    Welcome to this week's edition of "building a startup in 2020," in which all your meetings are suddenly remote, and you probably weren't prepared for it. I know I wasn't. We started a "fully remote" company back in 2019, but …

    via apenwarr November 23, 2020

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact