<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Ornoth</title>
  <link>https://ornoth.dreamwidth.org/</link>
  <description>Ornoth - Dreamwidth Studios</description>
  <lastBuildDate>Mon, 02 Sep 2024 01:46:04 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>ornoth</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/15488720/3886013</url>
    <title>Ornoth</title>
    <link>https://ornoth.dreamwidth.org/</link>
    <width>100</width>
    <height>75</height>
  </image>

<item>
  <guid isPermaLink='true'>https://ornoth.dreamwidth.org/231505.html</guid>
  <pubDate>Mon, 02 Sep 2024 01:46:04 GMT</pubDate>
  <title>Binary Digits</title>
  <link>https://ornoth.dreamwidth.org/231505.html</link>
  <description>&lt;p&gt;Say you were a young college student taking a programming class, and your aging computer science professor’s first assignment was for each student to write a program to &lt;strong&gt;print out their name and telephone number&lt;/strong&gt;. &lt;/p&gt;
&lt;a href=&quot;https://openlibrary.org/works/OL11320532W/Assembler_language_programming&quot; title=&quot;Struble&amp;#39;s Assembler Language Programming&quot; style=&quot;margin-left:10px;margin-bottom:10px;float:right&quot;&gt;&lt;img src=&quot;https://ic.pics.livejournal.com/ornoth/469975/127076/127076_original.jpg&quot; width=&quot;214&quot; height=&quot;320&quot; alt=&quot;Struble&amp;#39;s Assembler Language Programming&quot; /&gt;&lt;/a&gt;
&lt;p&gt;&lt;strong&gt;That wouldn’t be the least bit &lt;a href=&quot;https://www.merriam-webster.com/dictionary/sus&quot;&gt;sus&lt;/a&gt;&lt;/strong&gt;, now would it? &lt;/p&gt;
&lt;p&gt;Apparently, back in 1984 it wasn’t! Lemme tell you a story…&lt;/p&gt;
&lt;p&gt;I was recently bedridden with both a back injury and my first case of Covid. And having already purged many of my old books, I really had to stretch (metaphorically, of course) to find &lt;strong&gt;something to entertain myself with&lt;/strong&gt;. &lt;/p&gt;
&lt;p&gt;One &lt;strong&gt;book that followed me through my migrations&lt;/strong&gt; – from Maine to (five different locations in) Massachusetts, then Pittsburgh, and finally Texas – was a college textbook that was highly cherished by most of the CS majors I knew back then: George Struble’s “&lt;a href=&quot;https://openlibrary.org/works/OL11320532W/Assembler_language_programming&quot;&gt;Assembler Language Programming for the IBM System/370 Family&lt;/a&gt;”.&lt;/p&gt;
&lt;p&gt;Yes, &lt;strong&gt;I was &lt;em&gt;so bored&lt;/em&gt; that I started re-reading a 40 year old textbook&lt;/strong&gt; on one of the driest topics in all of computer science, for a computer that no longer exists! &lt;/p&gt;
&lt;p&gt;Chapter 1 is a snoozer (not unlike the rest of the book). It’s all about how mainframe computers used combinations of ones and zeroes to encode numbers and characters. Like any textbook, the end of Chapter 1 had a dozen &lt;strong&gt;exercises for the student to solve&lt;/strong&gt;, to promote active learning and demonstrate a practical understanding of what’s been taught. &lt;/p&gt;
&lt;p&gt;Here’s the text of &lt;strong&gt;Problem 1.3&lt;/strong&gt;: (emphasis mine) &lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Each byte of storage in the IBM System/370 contains eight bits of information and one parity bit. The parity bit is redundant; it is used only to guarantee that information bits are not lost. The parity bit is set to 1 or 0 so as to make the sum of 1’s represented in the nine bits an odd number. For example, the character / is represented in eight bits (in EBCDIC) by 01100001. The parity bit to go with this character will be 0, because there are three 1’s among the information-carrying bits. The character Q is represented by 11011000, and the parity bit is set to 1, so there will be five 1-bits among the nine. These representations with parity bit (we call this “odd parity”) are also used in magnetic tape and disk storage associated with the IBM System/370. Using the character representation table of Appendix A, &lt;strong&gt;code your name and telephone number&lt;/strong&gt; in eight-bit EBCDIC representations, and add the correct parity bit to each character.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That’s right: on &lt;strong&gt;just the third exercise&lt;/strong&gt; in the entire book, Struble is asking the student to provide their personal contact info, presumably to their instructor. I can only imagine the repercussions if a professor presented this exercise to his or her class today. &lt;/p&gt;
&lt;p&gt;To be fair, when Struble’s book came out (in 1969, then revised in 1974 and again in 1984) such an &lt;strong&gt;assignment simply wouldn’t have set off the red flags&lt;/strong&gt; it does today. The author and his editors probably felt safe in the assumption that women wouldn’t be taking hard-core mainframe assembler classes. And for the odd exception, what harm could possibly come from a young coed revealing her phone number to an upstanding member of the academic community?&lt;/p&gt;
&lt;p&gt;What harm, indeed. &lt;/p&gt;
&lt;p&gt;I’m not one to condemn past generations for not living up to more modern social norms, but still… &lt;strong&gt;Today that exercise just screams of inappropriateness&lt;/strong&gt; and invasion of privacy. For me, reading that was a head-scratching moment of astonishment from an unexpected source, a true blast from my past. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=ornoth&amp;ditemid=231505&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://ornoth.dreamwidth.org/231505.html</comments>
  <category>ethics</category>
  <category>school</category>
  <category>college</category>
  <category>programming</category>
  <category>mainframe</category>
  <category>memorabilia</category>
  <category>privacy</category>
  <category>books</category>
  <category>umaine</category>
  <category>computers</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://ornoth.dreamwidth.org/226464.html</guid>
  <pubDate>Fri, 08 Apr 2022 20:01:39 GMT</pubDate>
  <title>Metrics of Success</title>
  <link>https://ornoth.dreamwidth.org/226464.html</link>
  <description>&lt;p&gt;&lt;strong&gt;Say an alien civilization conquered Earth&lt;/strong&gt; and forced us to use their measurements, outlawing familiar units like the mile, degree, pound, and gallon. Imagine how disruptive that would be!&lt;/p&gt;
&lt;p&gt;Akshually, not very disruptive at all, based on my experience. This year I decided it was finally time to drop those long-outdated “imperial” units and resolved to go &lt;strong&gt;full-time 100% metric only&lt;/strong&gt;. &lt;/p&gt;
&lt;a href=&quot;https://www.gamequarium.com/wp-content/uploads/2020/08/metricsystemgames.jpg&quot; title=&quot;Fun and exciting approaches to study the metric system&quot; style=&quot;margin-left:10px;margin-bottom:10px;float:right&quot;&gt;&lt;img src=&quot;https://www.gamequarium.com/wp-content/uploads/2020/08/metricsystemgames.jpg&quot; width=&quot;320&quot; height=&quot;213&quot; alt=&quot;Fun and exciting approaches to study the metric system&quot; /&gt;&lt;/a&gt;
&lt;p&gt;&lt;strong&gt;Why?&lt;/strong&gt; Well, as an international sport, cycling and bicycles are primarily metric in nature. In any field where measurements matter, metric is used… even in the United States. By law, metric became the preferred measurement system in the U.S. back in 1975, and we’ve had &lt;em&gt;&lt;strong&gt;sixty years&lt;/strong&gt;&lt;/em&gt; to get used to the idea of using modern, standardized, universally-recognized units. Our quaint idiosyncratic measurements have become less and less defensible with each passing year. This is just my way of saying “Really, don’t you retrogrades think it’s about time?”&lt;/p&gt;
&lt;p&gt;I am reminded of a bike ride I did up Gun Hill in Barbados back in June of 2000, when I was a novice first getting back into riding a bicycle. When I rode that hill under the hot tropical midday sun, it seemed way steeper and harder than &lt;strong&gt;the 210-foot ascent&lt;/strong&gt; that my map indicated. Then I realized that Michelin travel map wasn’t demarcated in feet, but in meters. At 700 feet the hill was actually more than three times steeper than I had bargained for! And whose fault was that? It certainly wasn’t Michelin’s… And my legs have never let me forget that lesson.&lt;/p&gt;
&lt;p&gt;It could be worse, tho. Back in 1999, a $125 million &lt;a href=&quot;https://en.wikipedia.org/wiki/Mars_Climate_Orbiter&quot;&gt;Mars Climate Orbiter&lt;/a&gt; crashed during its insertion burn because no one thought to convert numbers from Lockheed Martin’s imperial units into JPL’s metric ones. Awkward!&lt;/p&gt;
&lt;p&gt;Compared to those experiences, &lt;strong&gt;adapting to metric units hasn’t taken much adjustment at all.&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What did I need to change?&lt;/strong&gt; Well, let’s look at things like a cyclist. What matters to a cyclist? Distances, speed, inclines, air temperature, tire pressures, and the weight of his equipment and body. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Distance&lt;/strong&gt; isn’t that hard. A meter is just a slightly longer yard, and a kilometer is a somewhat shorter mile. And many rides are already demarcated in kilometers: a metric century (100 km = 62 miles), a 200k (124 miles), and so on. And like most men I stand a little shy of 2 meters in height.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Speed&lt;/strong&gt; is simply distance divided by time (whose units haven’t changed), so you wind up with km/h as a rough analogue for mph. A familiar 15 mph average speed would equate to about 24 km/h; and a 10 mph headwind would be 16 km/h.&lt;/p&gt;
&lt;p&gt;Similarly, &lt;strong&gt;inclines&lt;/strong&gt; are just vertical distance divided by horizontal distance. So if you’re used to thinking in terms of feet per mile, you need to divide by 5¼ to recalibrate to meters per kilometer. And unlike feet per mile, you can simply divide m/km by 100 to get percent slope! That’s handy!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Air temperature&lt;/strong&gt; really isn’t hard, either. I break it down into ten-degree chunks. Obviously, 0C equals 32F. From there, 10C = 50F, 20C = 68F, and 30C = 86F. There’s nothing complex about that. &lt;/p&gt;
&lt;p&gt;Like the other metric units, &lt;strong&gt;weight&lt;/strong&gt; is another one where routine use creates familiarity. My weight usually runs in the 76 to 78 kg range. &lt;/p&gt;
&lt;p&gt;And &lt;strong&gt;air pressure&lt;/strong&gt;, too. I run my bike tires at 550 kPa, and the car’s at 220 kPa. Those you would just have to remember, if you could find any device that actually reports in kPa instead of PSI (pounds per square inch).&lt;/p&gt;
&lt;p&gt;For me, adapting my thinking has actually been the easiest part of the process. I spent more effort &lt;strong&gt;updating the hardware and software I use&lt;/strong&gt;. That was like a more pervasive and annoying (but thankfully one-time) version of the annual daylight savings clock reset dance. &lt;/p&gt;
&lt;p&gt;Computer changed? Check. Cell phone OS? Check. Home voice assistants? Yeah, okay. Smart bathroom scale? Yup. Bike computer? Yup. All the kitchen measuring cups and spoons? Well… &lt;/p&gt;
&lt;p&gt;There were, of course, &lt;strong&gt;a couple outliers&lt;/strong&gt;. There doesn’t seem to be any way to switch our (reasonably new) kitchen oven away from °F, nor our digital medical thermometer. &lt;/p&gt;
&lt;p&gt;And &lt;strong&gt;websites&lt;/strong&gt;, too. Biking sites like Garmin Connect, Strava, and Elevate? Yup. U.S. National Weather Service? Perhaps surprisingly, you can only change to international units on a couple of their pages, not all of them…&lt;/p&gt;
&lt;p&gt;And then I had to make some updates to &lt;strong&gt;various software that I’ve written&lt;/strong&gt; myself. My cycling database and spreadsheet and charts needed a few tweaks. I had to change the weather menubar widget I wrote to report out in metric. And the same for the program that appends weather and ascent data onto my Strava bike ride logs. And so forth.&lt;/p&gt;
&lt;p&gt;Rather than me, &lt;strong&gt;the biggest inconvenience&lt;/strong&gt; has been to Inna, who now has to explicitly ask our home voice assistant for temperatures in Fahrenheit (aka “little degrees”).&lt;/p&gt;
&lt;p&gt;But for me, aside from a couple hours switching devices and program outputs, &lt;strong&gt;switching to metric was pretty effortless.&lt;/strong&gt; So effortless that it makes the past sixty years of vociferous American hand-wringing seem stubbornly wrong-headed. &lt;/p&gt;
&lt;p&gt;After all, 28.35 grams of prevention is worth 0.45 kilograms of cure…&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=ornoth&amp;ditemid=226464&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://ornoth.dreamwidth.org/226464.html</comments>
  <category>barbados</category>
  <category>america</category>
  <category>metric</category>
  <category>cycling</category>
  <category>programming</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
