• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • Website wrangling scripts

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

    What should we do about network-effect monopolies?

    Many large companies today are software monopolies that give their product away for free to get monopoly status, then do horrible things. Can we do anything about this?

    via benkuhn.net July 5, 2020

    More on the Deutschlandtakt

    The Deutschlandtakt plans are out now. They cover investment through 2040, but even beforehand, there’s a plan for something like a national integrated timetable by 2030, with trains connecting the major cities every 30 minutes rather than hourly. But the…

    via Pedestrian Observations July 1, 2020

    How do cars fare in crash tests they're not specifically optimized for?

    Any time you have a benchmark that gets taken seriously, some people will start gaming the benchmark. Some famous examples in computing are the CPU benchmark specfp and video game benchmarks. With specfp, Sun managed to increase its score on 179.art (a su…

    via Posts on Dan Luu June 30, 2020

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact