• Ian Stuart's picture

    Sticky Footer in angular

    Ian Stuart / January 29, 2020
  • There are a plethora of solutions for a sticky footer in web pages - going right back to the days of a full-page table and using rows.

    With the introduction of CSS3, we have flex... and this makes it much easier!

    We enter a small challenge when working with Angular as the component-selector wants to have a hypenated namespace selector (eg app-root) - this means most of the examples of the sticky-ffoter don't work.

    This is how we solved it:

  • Ian Stuart's picture

    Code Monkey? Easy Life mate!

    Ian Stuart / January 21, 2020
  • I've been a code monkey (well, I call myself a code-gorilla: same genus as monkeys, only we don't constantly fiddle with things as much; are generally bigger & slower; and don't get paid peanuts) for most of my adult life, and there are two things that have always struck me:

    1. Outsiders really have no idea what we do, and
    2. Our world is constantly evolving, expanding, and getting way more complex

    The former, I can do nothing about... other than to say "Generally, we make the things you see on The Web, work."

  • Ian Stuart's picture

    Tables with banded rows

    Ian Stuart / October 21, 2019
  • Those of a certain age, or maybe just old-roleplayers, will fondly remember the masses of tables where the rows were banded into sets of three.... mine was from AD&D (3rd edition)

    For those of you who managed to avoid such perils.... see the image below.

    Turns out to be quite easy to do, too:

  • Ian Stuart's picture

    Pip install from git in Docker

    Ian Stuart / March 27, 2019
  • Following on from my article about pip installing development code, I thought I'd also share the various ways of installing from a get server.

    Installing from a GitLab commit-point

    • You may need to have a deploy token, or username & password for the repo
    • You need to have set up the setup code in the repo being installed

    In the Dockerfile, install from the commit SHA code:

  • Ian Stuart's picture

    Adding a text-string as a file to a gzip'd file

    Ian Stuart / March 27, 2019
  • I had reason to add a timestamp file to an archive - a nice simple file, with the time of creating as a single line, so nothing complicated..... but this is python, and there are more solutions out there than I've had hot dinners (well, maybe not - but certainly more than I've had Vindaloo curries.)

    None of them worked for me.

    I don't think that my archive was an in-memory "file"

    This does: