Kontakt

Portfolio: Ostryweb @ Instagram.

středa 20. března 2019

Loop app with Freestyle Libre + MiaoMiao via Spike



  1. Download Loop app - Spike branch and follow building and installing instructions:
    https://loopkit.github.io/loopdocs/build/overview/
    All errors should be covered here: https://loopkit.github.io/loopdocs/build/build_errors/
  2. Turn on RileyLink
  3. Install and setup Spike app (contains setup wizard - connect to MiaoMiao and link to Loop)
  4. Setup Loop app (connect to pump and set Spike as data source for glucose monitor)


related videos:



úterý 12. února 2019

Force refreshing of style changes in Wordpress template (style version as css file attribute)

What we want to achieve is to "force" refreshing of style.css of our template after changes.

Usually this is made by adding template version number as a parameter of the stylesheet, so in the HEAD section the output looks something like this:



If we change 1.0.1 to 1.0.2 browsers should download the new version. Now we want to make it simple, and there is a version parameter already present in any Wordpress theme's style.css in its header part, so why not use that? Logically if we make changes in the stylesheet, we should also increment its version number.

To get the stylesheet HTML output as mentioned above, modify enqueuing of the stylesheet in functions.php like this:



Be aware that you shouldn't have style.css inserted into Wordpress output in any other way. Sometimes it can be "hardcoded" in head.php or other template files.. Check the output HTML if it contains only one line of style.css link tag and that it is the one with the version number...