• First Week with a Fitbit

    IMG_8727I have been using a Fitbit Charge 2 over the past week, with the goal being to improve fitness through measurement and digital encouragement. My iPhone already tracks steps walked, though. What else does the Fitbit offer?

    Some Fitbit devices, including the Charge 2, track heart rate. This is useful for recording a measurement of intensity of exercise. And in turn, that is useful for weight management. If you enter your weight, height, and age, and if you honestly record calories eaten, the Fitbit tracks your steps and heart rate, and tells you how many calories you should eat in the day, if you want to gain weight, maintain weight, or lose weight. Rather than having a static number of calories for the day, or even a flexible number based on vague notions of “light exercise” or “moderate exercise”, the Fitbit seems to do a decent job tracking how much exercise you actually get and adjusting remaining calories accordingly.

    The outboard Fitbit software (on iOS or web or whatever) provides opportunities to connect with other Fitbit users for good-natured competition, alerting you that “Oscar has almost caught up with you!” or “Laura has completed her step goal for today!” and so on. Even when not connected with any other users, you get alerts and electronic “badges” for various fitness achievements. Both of these, while happening entirely in the digital realm, are surprisingly motivational.

    When using the iPhone to track my steps, I would make sure to grab it before going on what I knew to be a long-ish walk, but I would routinely leave it charging at the computer when going on shorter excursions. The Fitbit is more conveniently always with me, taking the place of a wristwatch.

    So far, the step counter seems reasonably accurate to me. Extreme arm movements can trigger a false step, but apparently I don’t do much of that when not actually walking (or at least exercising). It does, however, record arm movement when playing the piano as steps; a few days ago, it recorded about 2000 false steps before I took it off and put it in my pocket. Now I know to just take it off before playing the piano.

    Curiously, there is no way to turn it off, and no easy way to get it to pause in recording steps. A simple on-device click for that would be a preferred solution, if I were about to engage in activity for which I knew it would record false steps.

    A week in, I am finding the Fitbit a great tool for tracking and improving fitness. Now I would like a similar tool for tracking and improving at other things too!

  • Inside of a Dog

    19700025I just finished reading Alexandra Horowitz’s book, Inside of a Dog, an easy-going look at what behavioral and cognitive psychology can tell us about how dogs perceive the world. Many questions I had about the behavior of my own dog — including some that I hadn’t bothered to form very precisely because I wasn’t really expecting to ever find out — are answered here as convincingly as I could hope for.

    Do dogs see in color? Despite longstanding myth to the contrary, dogs do see in color, but while humans generally see across a spectrum of red, green, and blue (with colors in between), dogs only see across green and blue. Different shades of red (or orange or yellow or other reddish colors) may appear distinct to them, but not as blatantly distinct as they do to us. Asking your dog to distinguish between an orange ball and a yellow ball could be more challenging than you might expect!

    Can dogs see television? They can, but they probably aren’t very interested in it. While dog vision is in some ways less precise than ours (such as with color spectrum), they can perceive movement at a higher frame rate, if you will. We are convinced of seeing movement on a television or film projector if the pictures are changing at 30 frames per second, or even a little slower. Dogs, though, aren’t fooled, and instead can see the lack of continuous motion. It would take something more like 60 frames per second to look believable to a dog, so they would still be unimpressed even with some recent movies

    But while we tend to be predominantly dependent upon vision to perceive the world around us, dogs predominantly exercise their sense of smell, which is vastly more advanced than our own. Dogs can smell where you’ve been; what you’ve eaten; who you’ve been with. They can perceive the intensity of odors such that if you were in the room five minutes ago, that smells different to them than if you were in the room an hour ago, or are in the room right now.

    With our eyes, we see what is happening right now; with their nose, dogs smell what is happening right now, what has happened in the past, and, to a degree, what is about to happen in the future. When taking your dog on a walk, the author admonishes, don’t presume to drag him away from smelling something irrelevant to you. Those smells communicate knowledge to your dog! [I admit that I have been guilty of doing exactly that, but am lingering to let my dog smell more on walks now.]

    (Their reliance on smelling probably also comes into play if they express disinterest at watching television; no smells are projected on the screen to accompany what they are supposed to believe they are seeing!)

    It is well-known that dogs can hear much higher pitches than we can; thus, the inaudible-to-humans dog whistle. Considering the sonic world from the perspective of a dog requires us to take into account this wide spectrum of high pitches. Some common machines, even common lighting fixtures, make sounds which we are blissfully unaware of, but which dogs are constantly enduring. [I have wondered myself if my dog’s aversion to being photographed has any connection to the ultrasonic focusing mechanism in modern camera lenses?]

    Dogs are believed to be unusually intelligent. The author shows disappointing intelligence test results, but suggests that dogs convey great intelligence in one regard in particular:

    Dogs … see us as fine general-purpose tools, … useful for protection, acquiring food, providing companionship. We solve the puzzles of closed doors and empty water dishes. In the folk psychology of dogs, we humans are brilliant enough to extract hopelessly tangled leashes from around trees; we can magically transport them to higher or lower heights as needed; we can conjure up an endless bounty of foodstuffs and things to chew. How savvy we are in dogs’ eyes! It’s a clever strategy to turn to us after all. The question of the cognitive abilities of dogs is thereby transformed: dogs are terrific at using humans to solve problems, but not as good at solving problems when we’re not around.

    Which is not to say that dogs do not also express aptitude for intelligence on their own, for they do. Even more remarkably, they exhibit, at least in measure, a theory of mind. They look at both humans and at other dogs as individuals with their own minds and their own intentions and behaviors. They express surprise when they witness things which appear to defy their sense of logical expectations. When they play with other dogs, they communicate with them that play is about to commence (and thus any nipping should be taken in fun, not as an attack), and more powerful dogs deliberately handicap themselves when roughhousing with less powerful dogs, so as to level the playing field of their game.

    After reading this book, I see my own dog differently now. I am more conscious of how she must see me, and how she must see other people, and other dogs, and the world around her. The author shows us that dogs are, among all animals, those best suited to be with humans: to live with us, to be companions with us, and that they and us both are better off for it.

  • Apple iOS 10 Voicemail Transcription

    I don’t actually use my phone a whole lot for placing telephone calls. After getting an iPhone 7 about a month ago, this morning I received my first voicemail message on iOS 10. I was surprised to find the voicemail message audio auto-transcribed to text, and transcribed very well at that.

    While an obviously useful technology, I presumed that the voicemail had been processed by Apple remotely at some server farm, as most current hip artificial intelligence applications run on servers rather than on clients or local computers, and that this was yet another affront to individual privacy.

    Happily, I was mistaken. According to an Apple support article on using iOS 10 voicemail transcription, all transcription is done local on the iPhone device itself. If the transcription was done poorly, you can optionally send it to Apple for the purpose of them improving the transcription system, but otherwise, it appears that the transcribed text is in fact private to your phone!

  • The GNU C Reference Manual v0.2.5

    The v0.2.5 release of The GNU C Reference Manual is now available:

    This version incorporates a number of corrections recommended by readers. As always, I welcome corrections and suggestions, sent to me at: tjr@gnu.org

  • Replacing Water Softener Resin Beads

    Having traced unusually low water pressure in the house to the water softener, this weekend we replaced the softener’s resin beads. Things learned:

    • Emptying the old resin beads involves moving around a fairly lightweight water softener made very heavy loaded with water and old resin. It’s probably best done as a two-person job.
    • There may be water pressure built up between the softener and the pipes. Be careful unhooking the unit!
    • The top of the softener unit might be screwed on very tight. A large wrench may be helpful.
    • Spilled resin beads make the floor / driveway surprisingly slippery. Try to avoid spills! Alternately, if you have to move a large, heavy object, sliding it along a trail of resin beads might be a plausible option…

    I couldn’t find any local stores that sold resin beads, so I ordered both the resin beads and filter gravel online. With shipping charges, the total came to $200; a local plumber bid $350 to do the job for me. Not a huge savings, but if you feel up to the task, replacing resin beads can certainly be done yourself.