• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • Picture Infrastructure

    January 15th, 2015
    blog, pictures, tech  [html]
    Every year I go back over the pictures I have and put up a selection of them under jefftk.com/pictures. For the first eight years or so this was just a simple list of thumbnails linking to larger versions of the images:
      <a href="family_dinner.jpg">
        <img src="family_dinner-tn.jpg"></a>
      <a href="alex_jeff_alice_rick_music.jpg">
        <img src="alex_jeff_alice_rick_music-tn.jpg"></a>
      <a href="davy_alex.jpg">
        <img src="davy_alex-tn.jpg"></a>
    
    Clicking on a picture, viewing it, and clicking back is kind of annoying, so I added a lightbox view last year. This year I wanted a better experience on my phone, so I rewrote the lightbox code to handle phones. [1]

    Over time the thumbnails got bigger and bigger as ideas about acceptable bandwidth have changed:

    year height
    2005 96px
    2006 96px
    2007 96px
    2008 96px
    2009 96px
    2010 128px
    2011 200px
    2012 300px
    2013 300px
    2014 400px
    At this point the 96px thumbnails are awkwardly small, so I've now gone back over all the years to bring thumbnails up to size and add the mobile-suporting changes I had made for 2014. I've also added srcset support for 2x displays:

       sed 's~img src="\([^"]*\)-tn.jpg"~
              img src="\1-tn.jpg"
                  srcset="\1-tn.jpg 1x, \1-2x.jpg 2x"~'
    

    (Historical consistency was very helpful here.)


    [1] Code is on github.

    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