From 7340684e5d5a34214a10f2ccb18fc7452d9158a2 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Wed, 21 Dec 2022 12:49:28 -0500 Subject: Automated commit --- 2022/info/health-after.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to '2022/info/health-after.md') diff --git a/2022/info/health-after.md b/2022/info/health-after.md index 583a3f22..ec02951c 100644 --- a/2022/info/health-after.md +++ b/2022/info/health-after.md @@ -6,8 +6,8 @@ [[!template new="1" text="""Hi, this is Dave O'Toole, and today""" start="00:00:00.000" video="mainVideo-health" id="subtitle"]] [[!template text="""I'll be giving a presentation on tracking health data""" start="00:00:04.000" video="mainVideo-health" id="subtitle"]] -[[!template text="""with Emacs, Org Mode, and gnuplot.""" start="00:00:07.800" video="mainVideo-health" id="subtitle"]] -[[!template text="""So gnuplot is the well-known scientific""" start="00:00:12.760" video="mainVideo-health" id="subtitle"]] +[[!template text="""with Emacs, Org Mode, and Gnuplot.""" start="00:00:07.800" video="mainVideo-health" id="subtitle"]] +[[!template text="""So Gnuplot is the well-known scientific""" start="00:00:12.760" video="mainVideo-health" id="subtitle"]] [[!template text="""and mathematical plotting application.""" start="00:00:16.080" video="mainVideo-health" id="subtitle"]] [[!template text="""You feed it text files full of names, dates, numbers,""" start="00:00:19.040" video="mainVideo-health" id="subtitle"]] [[!template text="""data points, and you get out a nice graph.""" start="00:00:24.640" video="mainVideo-health" id="subtitle"]] @@ -98,11 +98,11 @@ [[!template text="""meaning that you'll be able to spit out,""" start="00:04:26.520" video="mainVideo-health" id="subtitle"]] [[!template text="""given your own specification of health variables,""" start="00:04:28.440" video="mainVideo-health" id="subtitle"]] [[!template text="""you'll be able to have it spit out""" start="00:04:31.840" video="mainVideo-health" id="subtitle"]] -[[!template text="""a custom gnuplot script like this""" start="00:04:33.520" video="mainVideo-health" id="subtitle"]] +[[!template text="""a custom Gnuplot script like this""" start="00:04:33.520" video="mainVideo-health" id="subtitle"]] [[!template text="""that's preset up with the definitions""" start="00:04:38.160" video="mainVideo-health" id="subtitle"]] [[!template text="""for the column view in Org mode.""" start="00:04:41.320" video="mainVideo-health" id="subtitle"]] [[!template text="""I'm assuming a little bit of familiarity""" start="00:04:43.160" video="mainVideo-health" id="subtitle"]] -[[!template text="""with Org mode and gnuplotting,""" start="00:04:45.400" video="mainVideo-health" id="subtitle"]] +[[!template text="""with Org mode and Gnuplotting,""" start="00:04:45.400" video="mainVideo-health" id="subtitle"]] [[!template text="""but I'll try to explain as much as I can as I go along.""" start="00:04:47.200" video="mainVideo-health" id="subtitle"]] [[!template new="1" text="""The journal here is where... okay, okay, one moment.""" start="00:04:51.960" video="mainVideo-health" id="subtitle"]] [[!template text="""So as you can see, there's a sub-entry here""" start="00:04:59.040" video="mainVideo-health" id="subtitle"]] @@ -133,7 +133,7 @@ [[!template text="""Now what this shows is that... I cut and paste it in.""" start="00:06:39.800" video="mainVideo-health" id="subtitle"]] [[!template text="""I've been keeping these entries every day for months,""" start="00:06:46.680" video="mainVideo-health" id="subtitle"]] [[!template text="""and that I cut and pasted in a month of data.""" start="00:06:48.160" video="mainVideo-health" id="subtitle"]] -[[!template new="1" text="""Now I'm going to dig in a little bit to the gnuplot script.""" start="00:06:51.320" video="mainVideo-health" id="subtitle"]] +[[!template new="1" text="""Now I'm going to dig in a little bit to the Gnuplot script.""" start="00:06:51.320" video="mainVideo-health" id="subtitle"]] [[!template text="""This here, all this stuff, is one component of the graph,""" start="00:07:00.800" video="mainVideo-health" id="subtitle"]] [[!template text="""and I'll go over how it works.""" start="00:07:07.760" video="mainVideo-health" id="subtitle"]] [[!template text="""First, the items through this column declaration here,""" start="00:07:11.360" video="mainVideo-health" id="subtitle"]] @@ -145,9 +145,9 @@ [[!template text="""that looks like this: tab-separated values""" start="00:07:53.560" video="mainVideo-health" id="subtitle"]] [[!template text="""with an ISO-style date at the beginning.""" start="00:07:59.841" video="mainVideo-health" id="subtitle"]] [[!template new="1" text="""So what we're going to do is we're going to go through""" start="00:08:03.480" video="mainVideo-health" id="subtitle"]] -[[!template text="""the gnuplot portion of this,""" start="00:08:10.360" video="mainVideo-health" id="subtitle"]] +[[!template text="""the Gnuplot portion of this,""" start="00:08:10.360" video="mainVideo-health" id="subtitle"]] [[!template text="""and I'm going to enlarge the font a little.""" start="00:08:14.480" video="mainVideo-health" id="subtitle"]] -[[!template text="""I'm going to go line by line through the gnuplot portion.""" start="00:08:21.280" video="mainVideo-health" id="subtitle"]] +[[!template text="""I'm going to go line by line through the Gnuplot portion.""" start="00:08:21.280" video="mainVideo-health" id="subtitle"]] [[!template text="""Now, my template generator will give you one like this.""" start="00:08:23.720" video="mainVideo-health" id="subtitle"]] [[!template text="""You don't have to write this from scratch.""" start="00:08:30.640" video="mainVideo-health" id="subtitle"]] [[!template text="""But I'm going to go through it line by line""" start="00:08:33.120" video="mainVideo-health" id="subtitle"]] @@ -156,7 +156,7 @@ [[!template text="""because you're probably going to have to modify it.""" start="00:08:42.200" video="mainVideo-health" id="subtitle"]] [[!template text="""So first, we're going to clear the graphics""" start="00:08:46.680" video="mainVideo-health" id="subtitle"]] [[!template text="""from any previous runs""" start="00:08:49.120" video="mainVideo-health" id="subtitle"]] -[[!template text="""so that if we reuse the same gnuplot process,""" start="00:08:50.200" video="mainVideo-health" id="subtitle"]] +[[!template text="""so that if we reuse the same Gnuplot process,""" start="00:08:50.200" video="mainVideo-health" id="subtitle"]] [[!template text="""we're not overwriting the old--""" start="00:08:53.800" video="mainVideo-health" id="subtitle"]] [[!template text="""that we are completely overwriting the old image.""" start="00:08:57.760" video="mainVideo-health" id="subtitle"]] [[!template text="""So that's the purpose of this line here.""" start="00:09:00.720" video="mainVideo-health" id="subtitle"]] @@ -224,7 +224,7 @@ [[!template text="""If you have a health variable""" start="00:12:31.480" video="mainVideo-health" id="subtitle"]] [[!template text="""that is in a significantly different range,""" start="00:12:35.840" video="mainVideo-health" id="subtitle"]] [[!template text="""you may need to get a slightly more complicated""" start="00:12:38.120" video="mainVideo-health" id="subtitle"]] -[[!template text="""gnuplot script because it is possible to plot""" start="00:12:41.640" video="mainVideo-health" id="subtitle"]] +[[!template text="""Gnuplot script because it is possible to plot""" start="00:12:41.640" video="mainVideo-health" id="subtitle"]] [[!template text="""multiple yranges in one plot""" start="00:12:43.720" video="mainVideo-health" id="subtitle"]] [[!template text="""if you have a variable that uses a different range.""" start="00:12:46.480" video="mainVideo-health" id="subtitle"]] [[!template text="""It's just a little trickier.""" start="00:12:48.720" video="mainVideo-health" id="subtitle"]] @@ -238,7 +238,7 @@ [[!template text="""There are three main sections here.""" start="00:13:13.400" video="mainVideo-health" id="subtitle"]] [[!template text="""One is setting the different line types that are used.""" start="00:13:18.040" video="mainVideo-health" id="subtitle"]] [[!template text="""Setting linetype 1 with line width 2, line color RGB.""" start="00:13:28.720" video="mainVideo-health" id="subtitle"]] -[[!template text="""Unfortunately, gnuplot is a little bit cryptic,""" start="00:13:32.480" video="mainVideo-health" id="subtitle"]] +[[!template text="""Unfortunately, Gnuplot is a little bit cryptic,""" start="00:13:32.480" video="mainVideo-health" id="subtitle"]] [[!template text="""which is why I've made this template generator""" start="00:13:34.960" video="mainVideo-health" id="subtitle"]] [[!template text="""that I'll show you in a moment.""" start="00:13:36.880" video="mainVideo-health" id="subtitle"]] [[!template text="""I pick a color. So this is exercise, forest green.""" start="00:13:38.000" video="mainVideo-health" id="subtitle"]] @@ -298,34 +298,34 @@ [[!template text="""Here we come to the line with nicotine.""" start="00:17:02.280" video="mainVideo-health" id="subtitle"]] [[!template text="""The fourth column is the nicotine number,""" start="00:17:08.800" video="mainVideo-health" id="subtitle"]] [[!template text="""the fourth column from the Org mode file.""" start="00:17:11.560" video="mainVideo-health" id="subtitle"]] -[[!template text="""So here you can see how we're telling gnuplot""" start="00:17:13.200" video="mainVideo-health" id="subtitle"]] +[[!template text="""So here you can see how we're telling Gnuplot""" start="00:17:13.200" video="mainVideo-health" id="subtitle"]] [[!template text="""to take each column of the tab-separated Org mode file""" start="00:17:16.008" video="mainVideo-health" id="subtitle"]] [[!template text="""and put it into the graph.""" start="00:17:19.800" video="mainVideo-health" id="subtitle"]] [[!template text="""The line types are set up here.""" start="00:17:21.120" video="mainVideo-health" id="subtitle"]] [[!template text="""The goal lines are set up here.""" start="00:17:25.960" video="mainVideo-health" id="subtitle"]] [[!template text="""And then the actual plot command is set up here.""" start="00:17:30.800" video="mainVideo-health" id="subtitle"]] [[!template new="1" text="""So now we're going to work further backwards""" start="00:17:35.560" video="mainVideo-health" id="subtitle"]] -[[!template text="""from this gnuplot template""" start="00:17:41.320" video="mainVideo-health" id="subtitle"]] +[[!template text="""from this Gnuplot template""" start="00:17:41.320" video="mainVideo-health" id="subtitle"]] [[!template text="""to the template generator that I used to make it.""" start="00:17:42.960" video="mainVideo-health" id="subtitle"]] [[!template text="""Now I'm not going to go into""" start="00:17:46.560" video="mainVideo-health" id="subtitle"]] [[!template text="""all of the details of the code,""" start="00:18:01.960" video="mainVideo-health" id="subtitle"]] [[!template text="""but what I am going to show you is that""" start="00:18:03.760" video="mainVideo-health" id="subtitle"]] -[[!template text="""there's a variable called `health-factors'.""" start="00:18:06.160" video="mainVideo-health" id="subtitle"]] -[[!template text="""And what this does, this `health-factors-from-list'""" start="00:18:10.680" video="mainVideo-health" id="subtitle"]] +[[!template text="""there's a variable called `health-factors`.""" start="00:18:06.160" video="mainVideo-health" id="subtitle"]] +[[!template text="""And what this does, this `health-factors-from-list`""" start="00:18:10.680" video="mainVideo-health" id="subtitle"]] [[!template text="""lets you specify, with a property list""" start="00:18:15.840" video="mainVideo-health" id="subtitle"]] [[!template text="""of keyword and value pairs""" start="00:18:20.920" video="mainVideo-health" id="subtitle"]] [[!template text="""(here's the keyword name and the value is exercise),""" start="00:18:22.680" video="mainVideo-health" id="subtitle"]] [[!template text="""the goal that I want 20 minutes of exercise,""" start="00:18:24.800" video="mainVideo-health" id="subtitle"]] [[!template text="""that the unit is minutes,""" start="00:18:28.200" video="mainVideo-health" id="subtitle"]] [[!template text="""that the color is forest green, and so on.""" start="00:18:30.200" video="mainVideo-health" id="subtitle"]] -[[!template text="""The aspects of the gnuplot setup""" start="00:18:36.160" video="mainVideo-health" id="subtitle"]] +[[!template text="""The aspects of the Gnuplot setup""" start="00:18:36.160" video="mainVideo-health" id="subtitle"]] [[!template text="""have been abstracted here.""" start="00:18:39.440" video="mainVideo-health" id="subtitle"]] [[!template text="""Eight hours of sleep is the goal here.""" start="00:18:43.560" video="mainVideo-health" id="subtitle"]] [[!template text="""The hours are units. What color,""" start="00:18:49.280" video="mainVideo-health" id="subtitle"]] [[!template text="""what thickness of the line.""" start="00:18:54.040" video="mainVideo-health" id="subtitle"]] [[!template text="""Here we specify the number of points.""" start="00:18:55.120" video="mainVideo-health" id="subtitle"]] [[!template text="""There's references online""" start="00:19:00.080" video="mainVideo-health" id="subtitle"]] -[[!template text="""that show you what point types are what shapes in gnuplot,""" start="00:19:01.280" video="mainVideo-health" id="subtitle"]] +[[!template text="""that show you what point types are what shapes in Gnuplot,""" start="00:19:01.280" video="mainVideo-health" id="subtitle"]] [[!template text="""and so on and so forth.""" start="00:19:05.200" video="mainVideo-health" id="subtitle"]] [[!template new="1" text="""I'll walk through the code a little bit that does this,""" start="00:19:11.480" video="mainVideo-health" id="subtitle"]] [[!template text="""that actually takes these pieces,""" start="00:19:17.400" video="mainVideo-health" id="subtitle"]] @@ -339,8 +339,8 @@ [[!template text="""is defining a class with each of those items,""" start="00:19:51.240" video="mainVideo-health" id="subtitle"]] [[!template text="""those properties that we talked about in that list""" start="00:19:56.200" video="mainVideo-health" id="subtitle"]] [[!template text="""that lets you specify name, what the goal is,""" start="00:19:58.480" video="mainVideo-health" id="subtitle"]] -[[!template text="""what the units are, and the gnuplot things""" start="00:20:01.320" video="mainVideo-health" id="subtitle"]] -[[!template text="""(the gnuplot parameters like thickness,""" start="00:20:04.240" video="mainVideo-health" id="subtitle"]] +[[!template text="""what the units are, and the Gnuplot things""" start="00:20:01.320" video="mainVideo-health" id="subtitle"]] +[[!template text="""(the Gnuplot parameters like thickness,""" start="00:20:04.240" video="mainVideo-health" id="subtitle"]] [[!template text="""plot type, and all that) into a class that will then""" start="00:20:06.560" video="mainVideo-health" id="subtitle"]] [[!template text="""spit out the template once you feed it""" start="00:20:13.240" video="mainVideo-health" id="subtitle"]] [[!template text="""some of these health factor objects. So just a moment.""" start="00:20:16.520" video="mainVideo-health" id="subtitle"]] @@ -356,7 +356,7 @@ [[!template text="""I need to take a piece of data""" start="00:21:13.160" video="mainVideo-health" id="subtitle"]] [[!template text="""like a list of health information,""" start="00:21:19.520" video="mainVideo-health" id="subtitle"]] [[!template text="""a list of health variables, what their units are,""" start="00:21:22.640" video="mainVideo-health" id="subtitle"]] -[[!template text="""and how they're supposed to be formatted in gnuplot,""" start="00:21:25.680" video="mainVideo-health" id="subtitle"]] +[[!template text="""and how they're supposed to be formatted in Gnuplot,""" start="00:21:25.680" video="mainVideo-health" id="subtitle"]] [[!template text="""and go from that to the nice template.""" start="00:21:28.120" video="mainVideo-health" id="subtitle"]] [[!template text="""So that's pretty much the whole thing.""" start="00:21:30.200" video="mainVideo-health" id="subtitle"]] [[!template text="""I want to see if there's anything I missed.""" start="00:21:31.720" video="mainVideo-health" id="subtitle"]] -- cgit v1.2.3