Categories
Uncategorized

2016 Holiday Letter

I kept putting off writing the year end newsletter. I couldn’t think of anything to write about. Once I got started, I couldn’t believe how long it had become. Anyway, 2016, that was the year that was.

Milestones

Last summer, niece  Alison Kiehl and Sarah married. This summer, they came to the beach to celebrate their union with Alison’s Virginia Beach friends and family. They rented a nice beach house, held a reenactment of their wedding ceremony, and held a reception for family and friends.

2016_Alison_Sarah_Union_Anaversary.jpg
Alison and Sarah

Sadly, three friends since high school days, Dar, Elmer, and Fred Kiehl passed away. Fred was a high school classmate overcome by advanced lung cancer. Fred’s parents, Dar and Elmer lived to 88 and 90 respectively. Both were good friends and gracious hosts for summer holiday when I lived up north and were the center of Kiehl extended family life, as much a result of their charm, wit, and patience with offspring as their oceanfront address in Virginia Beach.

We live in interesting times

My countrymen surprised me by electing Donald Trump president. I’m hoping for the best but fearing the worst.

Donald Trump, in his election eve speech, said some hopeful things but I fear his darker nature will keep them from happening.

In my old age, I’m a pragmatist desiring a competent government that works to create a future worth living rather than struggling to prevent futures we fear. In my life, I’ve watched our fear-motivated policies squander so many opportunities to make a better world for all to enjoy.

Around Home

This year’s home projects were all small potatoes. A local contractor replaced the carport columns and front porch rails and my fencing contractor installed the bits I deferred until the carport was repaired. The perimeter fence and carport fence make a nice playground for my greyhounds.

As part of last year’s renovation, a landscaper sodded the side yard, installed paver walks for carport access and wheelie bin storage, and constructed a small bed with flowering shrubs and ground cover at the new porch. This year’s strange weather resulted in a wet fall and spring that caused significant fungus loss in the new sod and the jasmine developed root rot and croaked. I also lost one of the two spreading rosemary plants in that bed. Feeling brave, I planted Encore Azaleas to replace the jasmine that I lost. I’m watching them nervously. A dry October and November followed a hellishly wet August and September. Mild weather is keeping shrubs active longer than normal.

The Dogs

2016_Nick_Missy.jpg
Nick and Missy

Oh no, Mr. Nick!

This was Nick’s year for minor injuries. First, he skinned up his forelegs belly flopping in the hurricane Matthew flooded street. Just recovered from the street encounter, he cut a pad hooning in the garden. Probably while trolling passers-by at the fence with Missy.

Krash Boards

krash-greyhound-1-of-1
Guest Dog Krash

Life with 3 is interesting. Krash is a perfect gentlemen, about 5 years of age and a year off the track. Krash visited while his mum toured the Biltmore Estate for 2 days. So I had to figure out how to do routine with 3. Three dinners. Walks for 3. Play for 3. The dynamic was interesting. The youngsters played while Nick chaperoned. Every time Missy and Krash began to hoon, Nick would break things up. Finally, I kept Nick in and let the 2 young ones have a go. They played some serious chase tossing a prey stuffy back and forth. After 2 minutes they were spent and settled for the evening.

Krash liked his ration wet with canned food. So I fixed his wet and the resident’s rations dry. Mine turned their noses. up at their dry rations. Finally, I had to feed them all wet and share the canned food for three. I continued feeding my two wet food which completely fixed their fussy eating. A few ounces of warm water and the ration goes down immediately. No picking at it. And Nick cleans his plate. No more food thieving, Missy.

It was really funny watching him the first evening. Judy slipped out to join her trip mates without a visit so Krash was a bit unsettled. He looked for Judy for a while and paced for a while more. After 2 hours of this, he settled until bed time. Come bed time, he had no idea what to do. Who sleeps where? Where do I sleep? Nick took a bed in my bedroom. Missy took a bed in my study. Krash finally settled on the second bed in my room. All made it through the night without issue. Nobody stepped on. Nobody chomped. The second day, you’d think he’d always been here.

Technology Tinkering

Each year stuff wears out and needs change so I keep tinkering with the household technology. This year, I changed the video stuff around to add a Roku set top box, nVidia Shield Android TV, and a Google Chromecast Audio gadget. I also figured out how to get Adobe Lightroom CC to earn its keep.

Roku Premier

Clarkson, Hammond, and May move to Amazon Video after Jeremy slugged one of his assistant producers. Being a fan of the show, I had to change things up to see the new program. Apple and Amazon are competitors as music and book distributors so Amazon keeps its original programs away. No Amazon Video for Apple TV. But Amazon Video is on Android TV (Amazon Fire) and Roku. I bought a Roku box because all the distributors play with Roku. It works decently well but doesn’t have that nice Apple look and feel.

nVidia Shield

I’ve been wanting to move the music serving chores off my Mac Mini so I could log it out when not needed. It looks like I can actually do this. I added MacOS Server to MacOS. This program sets up and administers file sharing and other services present in MacOS. I was able to export my iTunes library and should be able to mount it on an nVidia Shield (coming). nVidia Shield includes a PLEX player and PLEX server as part of the standard software load out. I can also add Kobi to it making it a flexible media player. More on this when it happens in a week or so.

Chromecast

I also have a Google Chromecast Audio device. I use it as an alternative destination for PLEX which has chrome cast built in. Although Google doesn’t make a big deal of it and most reviewers fail to mention it, Chromecast Audio has a TOSlink optical interface built in to the 3.5 MM connector in addition to the normal stereo TRS socket. This lets me pass the pristine bit stream on to my Parasound Halo P5 preamp. It’s a bit fussier to get going than AirPlay but once going, you can’t tell the difference. And the Chromecast puck is all of $35.

Photography

Apple’s tinkering with Photos has pretty much abandoned the hobby photographer. Photos is fine if you take snapshot and want them automatically organized. It is lacking if you want to render them. So, about a year ago, I subscribed to Adobe Lightroom CC which includes Camera Raw and Photoshop CC. This summer, I downloaded Lightroom Mobile and figured out how to set it up. I now have it rigged to post photos from my iPhone and iPad to CC and from there to Lightroom CC. Apple convenient but with Adobe rendering muscle. The images appearing here are all original images

Institute for Learning in Retirement

‘m Communications and Technology committee chair for Institute for Learning in Retirement, a local seniors club. ILR is a life long learning institute affiliated with the Road Scholar network. Other Institute is a similar organization. Both promote senior’s life long learning by running local institutes and Road Scholar offers senior’s “adventure” travel overseas. Outdoor Adventure Travel offers similar programs. Both organizations aim for local culture immersion rather than a posh travel experience.

Back office automation

Last year, the board tasked CTC  to find a replacement for our home brew registration system using MS Access and MS Excel. The system was single user and amateur developed (lacking input validation, etc). Our registration workload had grown too large for a single operator to process it in the time available. After a market search, we settled on ProClass, a software as service operation with 1500 clients that included many life long learning clubs like ILR. We’re part way through the transition with both systems operating in parallel. We expect to shift to the new system in 2017 and hope to offer on-line registration later that year.

ILR Website Rebuild

I’m also our webmaster. Our current website is an Open Academy Drupal 7 based site that replaced a legacy MS FrontPage site that was becoming seriously out of date. Our new site uses the Drupal 7 content management system that separates editorial content from presentation much like WordPress does for this blog. The site is relatively easy to maintain  with a built-in menu system and document rendering that is responsive to screen size and shape. It automatically does layout for phones, tablets, and desktop displays.

Drupal 8 is replacing Drupal 7. Our Open Academy environment is last in a sequence of open source projects that must be revised for Drupal 8 which picked up many of the capabilities of the middleware packages in Open Academy as built in Drupal 8 capabilities including the page by page paned layout engine. But Drupal 8 does things differently. So it is not a matter of removing the redundant package. The client bits must be rewritten to use the new Drupal 8 native implementations of the capabilities added to the core. This is not happening quickly, and given that small consultancies wrote these modules for their own purposes, it may not happen if the shop’s business has taken a different direction.

For this reason and to expand our volunteer author and editor pools to a size greater than one (me), we’re moving the site to WordPress at our current host later this year. We need a custom hosting service (Pantheon) because the ILR site requires an added module or 2 for things we want to do. WordPress hosting restricts us to pre-packaged versions of WordPress and curated fixed plug-ins. To add an event manager, we need custom hosting. To restrict content by user roles, we need a custom host. So ILR will be staying with Pantheon.

I’m an ILR Presenter

This winter, I gave my first ILR presentation on electric power with an emphasis on the history of electric power, understanding of the utility business characteristics influencing utility decisions, and the challenges posed by renewable generation. It was a bit too much material for 2 hours but nobody threw produce.

And, ILR invited me back. This spring, I’m planning a new presentation on nuclear power. This presentation will focus on the early history of reactors, Alvin Weinberg, and the emerging molten salt reactors with emphasis on their safety and operational advantages over the expedient light water reactor technology in use today.

 

 

Categories
Personal Computing Photography

Adobe CC Lightroom with iTHings

Intro

Those of you who follow me on Facebook and Twitter know that I take a lot of snapshots with my iPhone or iPad and that some of them actually look good. The tools I use with my phone are Apple Photos for quick hacks and Adobe Lightroom CC for more thoughtful work. One problem with this arrangement was that I had to manually manage two photo archives, one in Photos and one in Lightroom. Recently, I learned how to get my Lightroom environment to behave like an Apple Photos environment. That’s what this article is about.

References

This article is summarizes information from two references that I used to get my environment initialized. Reference 1 gives much more detailed descriptions of the process than this CLiff’s Note does.

  1. https://tidbits.com/article/15640, Photos Everywhere with Lightroom CC and Apple Photos, retrieved 10/25/2016.
  2. https://helpx.adobe.com/lightroom/how-to/lightroom-mobile.html, How to get started with Lightroom Mobile, retrieved 10/25/2016.
  3. https://helpx.adobe.com/lightroom/how-to/edit-organize-photos-mobile-to-desktop.html, How to Edit and Organize Photos Mobile to Desktop, retrieved 10/25/2016.

What you need

In writing this article, I have the following kit. Other phones and cameras capable of running Lightroom Mobile work equally well.

  • An Adobe Creative Cloud photography subscription for $10/month
  • An Apple iPhone 6+
  • An Apple iPad Pro 13 inch
  • Adobe Lightroom mobile on both.

It is also a good idea to install Camera Raw, especially if you have a real camera (one you look through to compose images). And now for iPhone and iPad which make Apple raw format available.

The next two sections describe some configuration preliminaries in Lightroom and Lightroom Mobile. The secret sauce is to subscribe to Creative Cloud and log the devices in. Then create a CC collection for each device that will automatically receive new photos taken by the device’s camera. This happens in the camera itself and is independent of the GUI used to operate the camera. Photos taken with either the Apple Camera UI and the Lightroom Mobile camera UI will be queued and saved to Creative Cloud.

Setting up Lightroom Creative Cloud

I have a monthly subscription to Photoshop Creative Cloud. This subscription allows me to use Photoshop and Photoshop Lightroom, and Creative Cloud. Creative Cloud is Adobe’s network storage environment that allows devices to share a library of image assets across hardware platforms. The basic subscription includes enough storage to get started. As your collection grows, you can add more storage.

Once you have purchased your subscription, follow Adobe’s instructions for installing Photoshop Lightroom. Go to the preferences menu and enable Lightroom Mobile.

Setting up Lightroom Mobile

Install Lightroom Mobile on your phone or table using the platform preferred source: for Apple iThings, the App Store and for Android things, the Google Play store. Android people, remember that it is a dangerous world out there, Play Store only.

Once through the initial screens you will enable creative cloud.

  1. Tap the LR logo to bring up the dialog
  2. Set Sync only over WiFi as you desire (recommended)
  3. Set Auto Add Photos to on
  4. Set Auto Add Videos to on
  5. Set Collect Usage Data as you desire

Once these settings have been made, create an auto add collection for the device.

  1. Open the organize view
  2. Tap + to open the Create Collection dialog
  3. Create and name a collection.
  4. Once the collection is present, tap the collection’s … icon to open its settings form
  5. Enable auto add

Work Flow

My two collections are  iPhone photos and iPad photos. Both collections appear in Lightroom Mobile on my iPhone and my iPad and in desktop Lightroom CC. Lightroom CC groups them under Collection From Lr Mobile.

  1. Take photos with the Apple camera
  2. Open Lr Mobile and let it sit. It will import new photos from the camera roll and push them to your CC account.
  3. Open Lr and let it sit. After a bit, it will sync with your CC account.
  4. Edit your new work in the normal Lightroom CC way.
  5. After a bit, your edited images will appear on your devices.

Creative Cloud App

Adobe Creative Cloud also includes a manager program that provides the following services.

  • Checks for and alerts you to updates
  • Shows which programs your subscription allows you to use
  • Lets you monitor your storage usage
  • Lets you maintain your CC credentials.

Adobe has designed CC app to launch at log in and periodically do its checks. It has a status bar widget that lets you wake it from standby to install updates or download additional products from your entitlement when you find a need for them or to try additional Creative Cloud products. The trial collection gives you access to all of the video and still image tools, prepress tools, and web tools.

The Catch

The $10/month plan entitles you to 2 GB of online storage. Reference 1 explains how the 2 GB is used as follows

Adobe’s Creative Cloud includes just 2 GB of storage with the Photography plan for $9.99 per month, but there’s a twist: that 2 GB is dedicated to storing files in Creative Cloud that are shared with other CC applications. Photos you sync via Lightroom mobile do not count against your CC storage allotment, because they’re stored as much smaller DNG files and therefore don’t take up as much space; I’m guessing the amount is negligible to Adobe. However, keep in mind that you need to pay for a Creative Cloud subscription simply to use Lightroom mobile in the first place.

Categories
Eating Exercise

Moocher Makeover Update

Followers may recall that the moocher began dieting and resumed strength training last winter. From time to time, I’ve written about the moocher’s progress or lack there of. There’s bad news and good. I fell off the lifting wagon this summer when yard work, club work, and doctors appointments started cutting into exercise time. The good news is that I’ve kept tinkering with the diet and it is now working.

References

  1. http://www.muscleforlife.com
  2. https://www.youtube.com/user/MattDoesFitness
  3. http://tidd.ly/5226d702 for Matt’s My Protein 15% discount. Link is for the US shop.

Diet Basics

Back in January, I began to track my weight and macros using the Under Armor Fitness Buddy app. Using Muscles for Life as a guide, I picked a calorie target and a protein target and began to actively manage my diet. Since I follow a mostly plant based home cooked diet, I was doing a lot of recipe macros calculations.

For a number of reasons, mostly annoying social network features and continual pestering to make in-app purchases that added no value to me, I chucked the UA app for another, My Macros+ which is considerably less intrusive.

I’m still targeting 1800 calories with 100 grams protein. And about there. I thought I was there back in March but weight was yo-yoing. I discovered that trying to stay plant-based with a little Mitica Parmesan cheese for additional protein, I was way below my protein target of 100 grams per day. I picked this figure above the WHO daily level but below growing-athlete targets of 2 gm per kilo of body weight. I needed to add protein while keeping calories about where they were. This is actually a pretty tight box. Adding something requires removing something less valuable to the macros balance.

Tweaks

It was clearly time to start tweaking the diet to establish weight loss.

My original plant-based diet was leaving me with the munchies. I’d nick some extra cheese or some of the dogs’ pilling peanut butter 2 or 3 times in the evening. This was probably enough to throw the diet into surplus as weight was fluctuating and creeping upward.

Tuna sandwiches for lunch. Tuna is supposedly high in protein but low in fat. Couldn’t get enough additional protein in the diet. I kept missing my macros by about 30 grams of protein. And having mid-afternoon munchies.

Protein shake for lunch. The next change was to start making a protein shake for lunch using vanilla protein powder, frozen mixed berries, and low fat yogurt. The result was tasty, sweet, and filling but weight was creeping up. These turned out to be high calorie with or without yogurt or using plain yogurt. Time for plan C.

Fruit, cheese, vegetable juice, and protein shake for lunch. The shake route was putting me over on calories and macros were better but still low on protein. I basically needed to add more protein and remove some carbohydrates. Sugar was hitch-hiking in the protein products I had been using.

Matt Does Fitness to the Rescue

Matt Morsia, world class 100 kilo power lifter, came to the rescue about 2 months ago. Matt posts twice weekly episodes to his YouTube video log about his training and life as Matt in general. After European Championships (Matt made the podium), Matt began a hypertrophy phase whilst his spouse’s pregnancy came to term. Following the blessed event Matt, Saris, and mini-Matt are going to take a break from training to figure out the Married with Children thing.

Matt is a My Protein endorsing athlete and describes his use of My Protein products in his training. Matt’s Krell furnace metabolism requires careful feeding. Matt has the problem of eating enough to maintain weight and strength, the opposite of my challenge, finding a diet that lets me loose weight and recomp my Jabba the Hut-like physique.

Running low on protein, I decided to give My Protein Whey a try. I ditched the smoothie lunch for fruit, cheese, Whole Foods Vital Vegetable Juice, and a My  Protein whey milk shake. I added a second evening shake as a snack about 1 1/2 hours after meal time.

My Protein Whey, unlike the sugar sweetened products I had been buying in the shops, is sweetened with Sucralose. So the calories in the product are from the whey protein without a similar amount of sugar calories tagging along. This change let me get the protein up to my goal while meeting my calorie target, and slaying the evening munchies.

To my pleasant surprise, my weight started drifting downward about 1/2 kilo a week which was my goal. I’m about 2 kilos below my sticking point and the loss appears sustainable.

Low Sodium Vegetable Juice

Remembering something I’d read in a atherosclerosis self-help book, I began having low sodium vegetable juice as part of lunch. Whole Foods Vital Vegetable is perhaps the best of these. Think Campbell’s V-8 but with an attitude. Whole Foods puts a goodly amount of lemon juice in its vegetable juice. And uses potassium chloride as part of the salt, a common tactic to keep a product salty with  low sodium. Whole Foods doesn’t market its juice as low sodium, it just is. Potassium and sodium work together in the body. A little added potassium helps the body to regulate fluid balance. Adding the Vital Veggie to my diet helps with lower leg fluid retention and water related weight fluctuation.

Magnesium Supplement

Calcium and magnesium are the other electrolyte pair that needs to be in balance. I’ve started taking a 250 MG magnesium supplement off the self at Target. This supplement contains calcium in ratio. I’ve not seen an observable effect from this change. The afore-mentioned self-help book indicates that it helps with blood vessel function and should reduce blood pressure a bit. This hasn’t really been observable amid the other noise affecting blood pressure tracking.

My Evil Scale

I finally figured out how to get my Chinese scale to tell me a useful weight rather than making a random number.

  • Move the scale to the bathroom tile floor
  • Weigh once. Throw first weight away
  • Weigh again. This one will be about a kilo less than the first
  • Weigh a couple more times to confirm that the feet and frame have settled.
  • Keep the final weight.

More about Matt

At his YouTube channel, Matt chronicles his career as an adult competitive athlete. In his mis-spent youth, Matt was a willowy jumpy thing who competed in the long jump and triple jump during Uni and with his local athletic club. A lower back injury sidelined a restless Matt for several months.

Following his recovery, Matt began lifting seriously and discovered that he was actually good at it. World class good. Matt now competes as a raw with wraps power lifter in UK and European events and most recently took a platform position in the WPC European championships this June. Matt has the right mix of genetics, interest, knowledge and attitude to be a genuinely good power lifter.

Matt’s YouTube channel is more about a day in the life of a “bullet headed anglo-saxon mother’s son” than it is about lifting. Matt, with a mix of British irony, sarcasm, and silliness shows how he balances family, work, and sport. Matt shows the value of experimentation. When training isn’t working, change up routine to find a workable training regime. Keep tinkering with intensity and volume to maintain progress.

The other thing I like about Matt is that, when he has a rubbish day, he shows it and gives a candid assessment of what went wrong and how to fix it. If form is going to rubbish, he’ll describe the problem and take a de-load to recover form and resume progress. And admit that he did.

 

 

Categories
Photography

A kind word for Sony

Last weekend, I attempted to apply a firmware update to my Sony Alpha SLT-65V interchangeable lens camera. I’m not sure why. I saw that there was an update available and thought I’d apply it. In the past I’d had greyhound legs splinch when filming with the Sony so I used the iPhone 6+ to take most of my hound video. My hope was that I could do more every day snapshots and greyhound video with the updated firmware.

One evening, I decided to photo some clouds. A thunderhead to the south was looking menacing as it drove by. I grabbled the Sony, put it in manual, and cranked the exposure down by fiddling with the shutter speed and ISO. This brought out some texture in the clouds. I took the captures in to spool them off. For some reason, I checked Google to see if there were firmware updates outstanding.

There were so I had a go and the go went wrong. The little red activity light came on and stayed on. Bad joss. The firmware updater instructions told me I was now proud owner of a brick.  I took the battery out of the camera and put it on to charge while looking for salvation. A little poking around had tales about older cameras reacting badly to the 64-bit Mac firmware updater. At this point, I believed the camera was destined to remain a paper weight.

But, mid-week, I came back to the Sony USA support portal, hopped on chat, and explained my tale of self-inflicted woe. Sony said not to worry, there was a fair chance they could help me revive the camera. Apparently the camera’s firmware loader is active when the red light was on. Although, there were no instructions for a second go in my camera’s state, the firmware updater was designed to be able to take it from the top if the load was interrupted. The process involved a slightly different sequence of starting the camera, connecting to the firmware updater, letting the two hook up, and retrying the update. This time, the firmware loader ran correctly and my brick turned into a camera.

Thanks Sony.

 

Categories
Personal Computing

A kind word for Microsoft

As you know, I’m a Mac, not a PC but recently, an Ars article about Microsoft Visual Studio Code caught my eye. I dropped by the Visual Studio Code website and downloaded a copy. Much to my amazement, I like it.

My work mates know that Emacs is my idea of an integrated development environment. But Mac Emacs ports are clunky. You either have to bring over all the MacPorts goodness or do with one of several adaptations of Emacs to the Mac Aqua UI toolkit. Making the switch between Linux genuine Emacs and Mac Emacs never worked for me.

Every time I tried to get started with Xcode, it was always too much trouble for some quick scripting or most anything else. Xcode really wanted to make Mac OS or IOS graphical applications in the genuine Mac way. Anything else was just too hard to figure out

So I was pleased to see that there was an alternative IDE that was not heavyweight like Xcode or Eclipse (Java — exploit rich Java). So I downloaded Visual Studio Code to give it a try.

Why would a moocher want VS Code?

I’m ODU Institute for Learning in Retirement (a Tidewater VA senior’s club) communications and technology committee chairman. Steady growth of the club over 25 years has forced us to replace our legacy single user office automation (Access homebrew DB app) with a multi-user online professional service.

In making this switch, we have to import 600+ member records from our legacy system into our objective system. The mechanism for doing this is to transfer the data to a MS Excel workbook that our vendor will subject to some script foo to cause our data to appear in our corner of his system.

The easiest way to do the transfer was to create a view containing the records we needed to move, sort the view to make record addition easy, and export the view to a CSV file that we could open in Excel. The trick was that the new system had accounts with contacts, field names changed, some fields like phone numbers had to be correctly formatted and the area code added, etc. So somebody needed to write a record swabbing script. That somebody was the CTC chair since staff couldn’t do it and I was the only programmer volunteer in the club.

Initial Experiences

VS Code downloaded without fuss and runs without fuss. It appears identical in both Windows 10 and Mac OS X. My time is in Mac OS X since I have the Xcode environment in place, git is there, python 2.7 is there and everything is ready to go.

In the past, IDE’s have been too heavy weight to use in a project of this nature. I’d always made do with Emacs, GDB, and Make. This is the first time I’ve successfully used an IDE for a simple scripting project. It’s also my first Mac Python project but the experience is very much like working with the language n Linux Emacs using PDB in an Emacs shell window. Very comfortable to old moochers.

Getting Started on a New Project

Most reviews, tutorials, etc assume that you will be checking out from an existing repository, making a task branch, making some mods, testing, and merging your task branch back into the sprint branch. I was starting with blank disk space so a little preliminary spell-casting was needed.

  1. Create the project directory
  2. Create a git repository root in the project directory
  3. Start VS code and open the repository root
  4. Add your code file
  5. Add code
  6. Test, edit, test, until you feel you have something worth committing.
  7. Commit.
  8. Resume work.

Language Support

VS Code requires  extensions to become smart about the language (syntax coloring, library functions, compilers and interpreters, running, debuggers and debugging, etc. A built in view makes it easy to locate the modules you need and load them. MS offers a number of contributed Python environments. Each has a peer rating, description, capabilities description etc. It is generally pretty easy to pick the extensions you need. If you are working in a Mac OS compiled environment, you’ll need a debugger interface for either GDB or the LLVM debugger in addition to the language extensions.

Once you’ve loaded all of the needed extensions, restarting VS Code makes them available.

Running Python

So far, I’ve done all my running in the debugger. One oversight of the Python module is that it does not provide a natural way of passing start options to a program. Instead, one creates a running environment by writing some JSON code in a specified format. If you’re not JSON literate, what’s needed is not intuitive. I ended up hard coding the input and output file names in main() to avoid the need to mess with this environment file.

The Visual Debugger

The visual debugger is typical of the breed. It has a code pane, a shell output pane, and to the left, panes for the call stack, watchpoints, active local variables, and function parameters. These last two show the current values of the data passed in the call frame and the locals in the current stack frame. Expanders open structured values to allow inspection of structure members or class attributes.

The code window shows where execution stopped. The left margin has line hot spots used to insert breakpoints. When stopped, mouse hover over a local causes the value to appear in a popup overlay. A button bar at the top of the debugging pane contains a left run button for starting the build/run cycle. A second run button starts execution. Additional buttons step into, step out of, and step to next line. A pause button stops a long running program. A stop button terminates the run. All pretty standard stuff. Button icons are clear but tool tips back up the glyphs on the buttons.

Build Model

I’m not clear on the build model. I believe adding a code file adds it to the build. My only experience so far is with 300 lines of Python in a single file.

Source Code Control

VS Code provides a git view that shows the source directory structure, each file in the directory (as filtered by .gitignore), and the clean/dirty status of the file. A badge shows the number of dirty files in the directory. Controls let you add and remove files from the commit list and make the commit. A text pane provides a place for the check in message. I’ve not had to revert to a prior version so I can’t comment on the tools for doing so. If a file has not been commited, it can easily be reverted to the most recent commit. I’ve yet to have to revert a committed change.

 

Categories
Grass Greyhounds

If you live in a mosquito’s garden by the sea …

It’s summer. It’s mosquito season again, and zika and aedes aegypti are upon us. Aedes aegypti is the aggressive gal with the white stripes on the legs that goes after you in broad daylight. And your pets, and it can spread heart worm in addition to zika, equine encephalitis, Nile fever, and a host of other tropical wonders. Mosquito control is an important first step to prevention of these diseases.

Norfolk City Health Department stopped by to check standing water and conduct homeowner mosquito control training. Just a few days before, I had bought a new paddle pool for the greyhounds so health department’s visit was timely.

References

  1. https://en.wikipedia.org/wiki/Aedes_aegypti
  2. http://midatlanticgardening.com/did-you-know-goldfish-and-rain-barrels/

The gouge

Aedes aegypti can breed in any amount of stagnant water that sits undisturbed for more than 4 days. These beasts will breed indoors so change flower vase water, out of the way dog bools, etc. Some breeding grounds found in suburban environments include the following.

  • The pet’s paddle pool
  • Outdoor pet water buckets
  • Flower vases
  • That rain barrel you’re so proud of (fish are the answer here)
  • Dog poo bin lids
  • Anything concave up that can hold water, pie tins, flower pot saucers, left out dishes, bin lids lying on the ground.
  • Upside down stuff that has troughs that can hold water, for example, a flower pot in storage.
  • Livestock troughs for horses, chickens etc. Even if filled by a float valve. Drain ’em  and refill. Rain barrel fish may work here also. Just as long as Dobbin is not carnivorous. Will  chooks go after mosquito larvae, Cousin Sandy?

To break the breeding cycle, empty each vessel every 4 days, say Sunday after church and Wednesday after work. Just dump and refill if needed. Dump any container seen with standing water in it..

Categories
Greyhounds

Naked Dogs!

Back in the ’60s Russel Baker wrote this great column about SINA, the Society for Indecency to Naked Animals whose mission was to make dogs, cats, horses, etc dress in public. It was a send up of newly created PETA, People for the Ethical Treatment of Animals who were on the warpath in Washington DC at the time.

On a serious note

Naked dogs is a pet peeve of mine, dogs without an ID collar on. I see naked dogs in many Twitter photos and almost every walkabout dog in our neighborhood is naked! Sir Speedy in the mast-head image is naked but he’s not going walkabout.

My dogs always wear their ID collars. You never know when they will get out.

  • You’re distracted at the door and they make a break for freedom
  • Tradesmen leave gates open
  • Gardeners disturb a fence section opening a gap
  • Dave forgets to install the X-Pen across the carport opening
  • Tree widow-maker smashes fence section.
  • Fido learns to scale the chain link
  • Fido leaps tall fences in a single bound

Though you mean to be good, there are just too many ways for the fence to develop a break and hounds will go walkabout if the fence is broken or they know how to defeat the fence. Mine are walkabout 1-2 times a year, usually as a result of a fence malfunction.

Old School Collar and Tags

There is a simple bit of technology, the collar and dog tag that will get your dog back quickly if encountered by a neighbor. If your dog has the sense to approach a human for assistance, a speedy return is a phone message or walk away. Without a tag, pup is off to the impound for identification and return complete with fine and service fee for boarding.

I buy my hounds tags from http://www.boomerangtags.com, a US online seller of engraved tags. Their stainless steel tags may be engraved on both sides giving your phone numbers and street address on one side and alternate contact instructions on the other, a family member, rescue, or your vet. These tags will outlast a greyhound so they are best for those who are more or less permanently settled. I’ve been handing mine down from dog to dog.

And no batteries are required. No smart phone app. No Google search. All needed information is in the clear on the tags. The only problem is that collars do slip off and s-hooks may not be tightly crimped.

To get around the s-hook problem, I use a 2.5 cm key ring to attach tags to collars. I’ve never had a collar come back from a walk missing tags since switching to stainless steel key ring attachment.

Why the UK wants all dogs chipped

The UK animal control folk and the rescues (various Dog Trusts) receive naked dogs. Without chipping, there is no way to ID the dog and determine the owner. So the dog goes from the strays process to the unknown owner process. If you are lucky, you call the correct agency and they associate one of the inmates with your pet’s description. With a chip, they look your pet up in the chip-service’s registry and call you — assuming your registry record is up to date. In some cases, the registry also contacts you.

Greyhound Tattoos

Greyhounds are identified by tattoos while racing. Each dog has a unique designator that identifies the individual dog, usually some combination of birth month and year, litter number, and dog’s place in the tattoo order in the US. In the UK, it appears that each dog is given a unique alphanumeric string.

In questioning US vets, it turns out that they’re not taught about greyhound tattoos.  Or they slept through that part of lecture. US vets are unaware that birth year is encoded in the tattoo. They don’t know that the National Greyhound Association (NGA have their act together) is the US racing greyhound registry. AKC is clueless about greyhounds.

If the US vets don’t know about the NGA registry, it is unlikely that US shelter workers will know. Only the many greyhound rescues track hounds by tattoos but there is no central registry of former racers as their is with racers as few pet owners request title transfer from the racing owner. And we all move around so it is unlikely that the local greyhound rescue will have a record of a random hound.

 

 

Categories
Uncategorized

S’mores: a little fun in the Twitterverse

Remember s’mores, that gooey campfire treat we brought back from Scout camp? Several things have happened.

  • It’s a US delicacy
  • It’s hard to get the makings off-shore
  • S’mores have inspired many gourmet Graham cracker, marshmallow and chocolate creations in the form of bars, pies, and ice cream.

Twitter friend @SamsBellabob’s mum smuggled (Bella would never smuggle) a packet of graham crackers and a packet of marshmallows into the UK while returning from her US hollibob. Sam had heard tell of the mystical s’more but had never prepared them. @SamsBellabob posted a photo of the makings on Twitter and asked the #houndsoftwitter for help. All activity came to a halt as Bella and 10 of her dearest Twitter friends figured out how one might make s’mores in a country where you can’t buy the makings and there is no dry wood for a camp fire.

The rest of the world is s’mores deficient

In the US, s’mores and the makings for s’mores are ubiquitous. In the UK and much of the rest of the world, Graham Crackers and Marshmallows are found in the world food corner of Tesco or mail ordered from Amazon at premium prices if they are available at all. I dare say, we could find Hobnobs and Walker Shortbread Fingers at a lower premium here. So their first handicap is that it is difficult to get the ingredients, hence the need to bring some back in the overhead bin.

The second problem is that few UK/EU folk have prepared this gourmet delicacy so there was a difference of opinion about how one should go about s’mores. Nobody knew that it was campfire food so there was lots of speculation about microwaves, regular ovens, and such. And health and safety weighed in that lava erupted from toasted marshmallows. Apparently, toasted marshmallows are on the list of UK national menaces.

So after much hound role playing silliness, the group agreed to make s’mores this week.

How Mum made em

We almost always had s’mores on a day where the barbie was used to cook supper. We would mount the marshmallows on kabob skewers and toast them over the dying charcoal fire. You could toast them slowly or let them ignite for that activated carbon taste. Once the marshmallow was done to the maker’s specification, a Graham cracker was broken into halves, a square of Hershey’s milk chocolate placed on it, then the gooey marshmallow, and topped with another Graham cracker to make a sandwich. The eater allowed the marshmallow to cool and the chocolate to melt to personal taste before consuming the finished product.

Occasionally, we made them in the kitchen without the barbie. We had an electric hob with Calrod coils. Turned the puppy on high and used the outdoor procedure to toast the marshmallows over the red coils and proceeded as on cookout nights.

They should look like the example in the top of the photo in this article.

As you can see from the remainder of the article, s’mores have inspired all manner of gourmet variations. I do not endorse any of them. Just stick to the basics. Apparently, there is a National s’mores day, complete with Presidential proclamation and Michelle Obama recipes.

2016 Challenge

I thought everybody was being silly about how to make s’mores without a cook fire. Then I realized I had an induction hob and could no longer toast marshmallows over the glowing coils. How would I make them today? How would I make them for a grand-kid’s name day party?

After reflecting on this a bit, I came up with the following untested method.

  • Preheat oven to 350 F or equivalent C degrees
  • Prepare baking sheet with baking parchment
  • Place marshmallows 4 inches on center on parchment as needed to serve the assembled multitudes. They don’t spread but room is needed to remove them with a spatula, hopefully without injury.
  • Place in oven and roast until nicely toasty. I have no idea how long this will take — think 10 minutes like cookies to start. Convection oven will be faster for a given temperature. My oven makes me choose between bake and roast. I have no idea how the two differ having tossed the booklet.
  • While marshmallows are toasting, prepare a tray with Graham cracker squares and thin milk chocolate bar sections to cover and tops handy.
  • When marshmallows are toasted and flames extinguished, transfer still hot marshmallows to the prepared cracker/chocolate bit and top with the second square to make a sandwich. Be advised that lava can erupt at any handling miss-step.
  • Allow hot marshmallow to melt the cool chocolate to personal taste.

When cooled somewhat, consume noting that too hot marshmallow has lava-like properties and can cause pizza-burns inside the mouth if not cooled sufficiently.

Where to get s’mores makings

UK bloggers report that Tesco stocks s’mores makings in the world foods section. At a world foods price. I believe their Graham crackers and marshmallows are free-range raised in the Loire valley near Chateau Margot or Chateau Rothschild and commend an appropriate price. If you happen to have a US military person among your friends, they can be approached to procure the s’mores makings from the post Commissary at US home market prices or better. A bottle of single malt is the appropriate gratuity.

 

Categories
Economics

Thoughts on Power Utilities and Their Planning Process

Introduction

I’ve not come to bury Ceaser, but to praise him. Somebody famous wrote that a while ago. Was it Ben Franklin? Kevin Bacon, some guy who lived in Stratford upon Avon?

Dominion Resources made the news this week by ranking in the bottom 3 in several measures of renewable energy support including amount sold, amount generated, and support for various things like clean power certificates, etc. Meanwhile, other utilities, for example National Grid, UK owned New England utility operator, ranked near the top in these same measures. Utility performance correlated directly with the utility service territory’s energy policies. Utilities in service territories having strong renewable energy policies ranked well while utilities in the Southeast, service territories with slack regulatory goals, fared poorly on these measures.

What I’d like to do in this paper is to explain the utility business a bit and some of the realities that constrain it. This is in no way meant to give Dominion a pass but to help you, dear readers, understand why nothing happens quickly in the business of electric power.

Renewable energy is fast becoming low cost of capital generation, is zero fuel cost generation, and has a definite role in a utility’s fleet subject to the limitations of its variable and relatively uncontrolled nature. Dominion is short sighted in its aversion to renewable sources. These sources have the advantage of being added in small increments of capacity but are subject to interruption by weather and their limited ability to be dispatched.

References

  1. http://bluevirginia.us/2016/06/new-report-dominion-power-one-worst-utilities-america-renewable-energy-energy-efficiency retrieved 6/29.

Power Utility Business Model

Electric power utilities are in the business of turing capital and income into power and more income. Utilities retain some of the profits for reinvestment in the capital plant and distribute some to widows, orphans, and pensioners as dividends.

The most valuable thing the utility has is a well oiled process for making this happen. The second most important thing it has is all that stuff that turns money into power at your home or business.

That stuff includes engineers who plan for the future, design, purchase, and operate the plant, and manage to bill you and collect your payments and pay the suppliers and workers.

The Utility Asset Life Cycle

Utilities have a long planning cycle. In this section, I’ll describe the cycle and why it is the way it is.

  • Dominion is alway planning 15 years ahead
  • It takes Dominion 10 years to purchase and commission new assets
  • Dominion expects assets to last 40 years over which it recovers the cost of the asset and earns money from its operation
  • Dominion borrows money to purchase new assets
  • Dominion cannot include the capital costs of the new asset in its rate calculations until the unit enters commercial operation.

These times deeply permeate Dominion’s management DNA. Dominion is very risk adverse and “do what we know” oriented. Dominion wants to own and control its generation and transmission and doesn’t want to be bothered by the pesky clouds, calm days, and too windy days that interfere with the dispatch of renewable generation.

In fact, engineering models of power system behavior treat renewable generation sited in the retail distribution as negative loads that magically produce power rather than as managed generation that participates in the utility’s control strategy. This is largely a result of the lack of energy storage in renewable devices.

  • Even partial clouding of an array affects output of all of the series connected panels in the array.
  • Wind guesting causes continually changing power output that power electronics can only partially correct.
  • When there is too much wind, wind turbines are feathered to protect the machine from excessive torques.

Addition of batteries to the turbine power electronics can help here. GE has a pedestal storage package that stores sufficient energy to allow the turbines using it to participate in frequency control. Solar installations can benefit from similar addition of a small amount of storage that maintains output as shading fluctuates.

It is only recently that control protocols and design standards have been developed that allow deployment of more than token amounts of properly designed renewable generation in the retail distribution.

Stranded Assets

Utilities have a bias toward controlling generation and distribution assets because they are expensive, have lengthy acquisition cycles, lengthy lifetimes, and gradual but uncertain cost recovery. Any change in the environment that interrupts this orderly process of acquisition, operation, cost recovery, and return on investment is bad for business. When power from a source becomes more expensive than the going rate, the utility looses money on any power that asset produces. When this condition persists, the asset is uneconomical to operate. It has become a stranded asset.

Many older nuclear generating stations require expensive modernizations to replace control systems, worn plant components, etc. With the decline in power prices made possible by combined cycle natural gas plants and plentiful natural gas, the cost of wholesale power has dropped below the level that permits the nuclear station operator to recover costs and make a profit. This phenomena appears to be long term and is forcing retirement of nuclear generating stations commissioned in the ’60s and ’70s.

The Utility Day

A typical utility day begins with low over night power demand. As families and businesses wake up, demand for power increases and peaks toward the end of the work day while businesses are still active but family members are returning home and upping power consumption for heating, cooling, and cooking. As businesses close and homes settle for the night, demand returns to the base level. The over night load is called “base load” because it represents the amount of power that the utility can expect to supply day in, day out, come blizzards, ice storms, hurricanes and thunder.

But electricity has to be produced at the rate it is consumed. There is currently no economical way to make inventory for sale at busy times as is possible in other industries. The utility must produce or import the amount needed right now. No more or no less.

Automatic controls on the generators maintain generation in balance with load. When load increases, the controls of a load-dispatched generator increase the generator’s output. The remaining generators are said to be base loaded and respond only to upsets.

So as the day goes on, the utility is increasing output, bringing generators on line, reducing output, and idling generators to follow the load. The utility operates its lowest cost generators continuously and brings on its most expensive units last and secures them first. This is called economic dispatch. When power is needed, the more costly assets operate. When power is not needed, costly assets snooze.

Interconnection

In the beginnings of Thomas Edison’s DC power, the vision was that each industrial plant would make electricity locally. DC electricity could be transmitted over short distances of a mile or so because it had to be made at the voltage needed by the loads served. And each load type, lighting, small motors, big motors, needed its own voltage to keep current to reasonable values and reduce transmission losses to resistance in the wires. It quickly became apparent that this design would not permit the economies of scale needed.

Nicola Tesla and Westinghouse had a different idea. Make alternating current and use transformers to change the voltage around from a high voltage that allowed low current transmission of bulk power to the voltages that various kinds of customer equipment needed. AC distribution, multiple generators, and organization of the electric system into generation, transmission, and retail distribution tiers quickly developed and became the technical norm.

Stability and Security

Connecting a lot of generators in parallel requires that the load change in an orderly manner and that the generator voltage control and speed control behave in compatible orderly ways. Otherwise, voltage and frequency variations would make utility equipment and customer equipment unhappy. In severe cases, current fluctuations or power fluctuations could cause a circuit breaker to trip resulting in loss of generation or load.

When production and consumption become badly mismatched by failure of a generator, loss of a transmission line or customer transformer, etc minor governor adjustments can’t correct the imbalance and more drastic action occurs. Unit loss of load protection trips the unit to protect it. Reverse power flow from the network into a generator causes it to trip. Transmission lines trip when current flow through them exceeds design limits.

If the amount of load or generation lost is large enough, the sudden imbalance could provoke further instabilities, the disturbance would grow, and the system would collapse. This first happened in a dramatic way in November 1965 with the great east coast blackout.

Utility systems from Washington DC north into New York and New England collapsed. The disturbance began on the US-Canada border. Engineers had changed trip relay set points for four circuits carrying power from Canada into the US. Three of the set points were raised correctly. One was left at its former value. As load grew, system operators allowed the load flow across the boarder to increase toward the new value. The relay that had not been re-calibrated tripped its circuit. The remaining 3 circuits tried to carry the load flow meant for 4 and tripped.

When this happened, Canada had too little load, units oversped and tripped. South of the boarder, there was too little supply so other circuits tried to pick up the slack, overloading them. The protection sensed the  overload and tripped the circuit as part of  a cascading failure sequence lasting 2o minutes or so. The NBC evening news originated from Washington DC with no Huntley, no Brinkley , and the big story was the system collapse of the east coast power grid.

So one of the responsibilities of the utility planning process is to design the system to be stable. In a stable design and operating mode, a single failure leads to a new steady state in which customers affected by the failed component loose power but the system ad a whole returns to a new equilibrium that serves the remaining customers. Any transients are short lived and die out. Such a system satisfies stability and security criteria. If the failure cascades like falling dominoes, the system is unstable and complete collapse can occur.

Planning Process Goals

Utilities, like Dominion, operate sophisticated planning processes that guide the utility’s equipment purchases, station dispatch order, fuel orders, maintenance outage plans, and rate filings. Each year the utility planning process does the following technical activities

  • Estimate the amount and location of load growth
  • Estimate future energy costs
  • Estimate future regulatory requirements
  • Evaluate system structure to ensure that demand can be served
  • Evaluate system stability and security
  • Evaluate the environmental burden of operation, usually as a monetary cost

The utility uses model based design processes to do all of theses things using computer models. The utility models economic growth, population growth, load growth and distribution, future energy prices, and equipment operating history to determine if it has adequate generation, that the generation is economical to operate, and the needed power can be produced within emissions caps, and that power can be delivered to all of the customers in its service territory.

Planning System Products

When the system fails to satisfy operational, economic, or regulatory constrains, the engineers try alternate system structures to find one that can satisfy the utility’s obligations and goals. They propose a new asset, include it in the model, and evaluate the modified model until they find a workable objective system. The utility translates the model study results into a number of products.

  • Rate filings
  • New generating station plans
  • Existing generating station retirements
  • New  transmission lines plans

Proposing New Assets

The utility planning process proposes new asset development  to provide  continuing service to the electric power market believed to exist at the target date. As with any exercise in futurism, these studies are only as good as the assumptions made. Also, specific proposals make assumptions about

  • where facilities may be sited and the right of ways that may be available for transmission lines.
  • A generating station site must be geologically suitable, must provide an adequate ultimate heat sink, must be accessible from transportation networks to permit installation of equipment and delivery of fuel.
  • A viable right of way from the generating station to a transmission substation must exist to allow the power produced to be brought to market.
  • The site must have adequate retail power distribution available to supply the power necessary to start the station.

 

 

 

 

Categories
Video

Tablo TV comes to Apple TV 4

References

  1. https://www.tablotv.com/for-appletv/ retrieved 28 June 2016.
  2. https://www.tablotv.com/tablo-products/ retrieved 28 June 2016.

Introduction

Shortly after I bought my modern television, the digital one, I decided that dark lord Rupert Murdock had received enough of my money. My first try at cord cutting was to move TiVO from the cable to a new TV antenna. Some time later, TiVO’s future was looking uncertain and TiVO’s disk was failing.

I began looking around for alternatives and moved originally to Elgato Eye TV with an HD Home Run tuner. EyeTV required my Mac to be active to record TV so I began looking for an alternative with a lower energy footprint that did not rely upon my Mac Mini for computational and storage resources. At about this time, Tablo was launching so I made the move to Tablo TV using a 2 channel tuner and a WD 0.5 TB USB disk as a program spool volume.

Tablo TV solved the leave the mini running problem. It also solved the TiVO problem of buying a new box when the disk failed. Tablo’s storage is inexpensive and trivially replaced.

Playback in the old days

Tablo TV development was very much a crawl, walk, run thing. The crawling occurred in the lab but once baby was able to walk, Tablo released product. The original product relies upon an iPad app to view content or forward it to an Apple TV to watch on the big screen. I used the AirPlay mode to watch live or recorded programs on my Panasonic plasma TV. This was not entirely satisfactory so I kept looking around for alternative playback means.

This was serviceable but annoying as the iPad was tied up while watching telly. Tablo App and AirPlay worked well but other ill-behaved apps could bring things to a stop. I’m talking about you, Facebook. At wake-up, Facebook sucks up the entire network connection and processor reestablishing situational awareness following hibernation. After a decade, I’m tiring of Facebook (story for another day).

 Plex to the rescue

A couple of enthusiasts built a Plex server plugin that allowed Plex to retrieve the directory and content from Tablo for streaming to the Plex app on an Apple TV. The Plex Apple TV app communicated with the server to show the catalog and play recordings but live watching was still not possible. Plex has a nice interface for recent recordings that shows the most recent shows captured in reverse chronological order in a manner reminiscent of TiVO.

The plugin presented the Tablo recorded material as a Channel in Plex terminology. A channel is a collection of non-native program material that can be retrieved and transcoded for playback by Plex Media Server. Any supported Plex player can control the channel and present the playback stream. Plex playback worked nicely but the channel is unable to support Tablo library management and schedule management. The iPad Tablo app remained the primary means of managing schedules and deleting recordings.

The New Tablo Apple TV App

Tablo completed its Apple TV 4 app shortly before 2016 WWDC and it landed in the App Store the week after WWDC. Tablo sent a press release to all active customers announcing the new app but I saw their Twitter post about a day before the announcement reached my Email. The release ended a year of App Store searches for the new app. It installed without fuss, found my Tablo, and quickly settled down. The App is easy to use for all Tablo TV tasks including

  • Creating and removing schedules
  • Watching live TV
  • Watching recorded shows
  • Removing watched recordings
  • Removing cruft recordings made on speculation but never watched

The only feature I could wish for that is not there is the recent recordings list from the Plex app. This feature may be a subject of TiVO patents but these should be nearing end of life soon.

The new Tablo App is very stable. No segmentation faults so far. Nice work from Tablo.