Dr Fragen in the operating room
  • Squib rendering, part 2

    In the `homepage_controller.rb` there is a private definition `publish_changes` that contains the pages that are rendered if the entry is newly posted or updated. The part relating to rendering archive pages is as follows. publish( “archive_page”, { :year => entry.when_published.year, :month => entry.when_published.month, :day => entry.when_published.day } ) Because it passes all three parameters to…

  • Converting the Clipboard

    [Steve][1] talks about un-styling of the text on the clipboard for pasting into other apps. As he rightly points out some apps support this natively. For the rest, here’s a simple shell script that I’ve saved as a background app via [Platypus][2]. #!/bin/sh pbpaste | pbcopy After copying text I just run this background app…

  • Squib rendering

    [Squib][1] renders several different types of pages. 1. Home page 2. Archive page 3. All Posts page listing of all posts by title 4. All Archives page (Monthly Archives) listing of all months with posts and number of posts per month 5. Date based archives * day lists all posts for that day * month…

  • Atom Syndication

    [Steve’s][1] got a valid Atom 1.0 feed working for [Squib][2]. A couple of minor changes to the templates and now I have a Atom Autodiscovery link and a sidebar link. Cool. [1]:http://houseofwarwick.com [2]:http://squib.rubyforge.org/

  • X chromosomes

    Why is it that when too many X chromosomes congregate they have difficulty arranging themselves in a non-destructive pattern?

  • Publisher v2

    [Matt’s][1] been hard at work, or really after work, to update [Squib’s][2] publishing code. He’s done a fantastic job. While it’s not bug-free; it’s certainly a big improvement. Additionally, he’s forked the 0.4 branch. Ever forward. [1]:http://matt.blogs.it [2]:http://squib.rubyforge.org/