Shared: Mairead

girl walking wall whitespace
Photo by Snapwire on Pexels.com

This is a test post. Trying out the free photo library in WordPress.

Liked on YouTube: Moonlight (Clair de Lune)

This visualization attempts to capture the mood of Claude Debussy’s best-known composition, Clair de Lune (moonlight in French). The piece was published in 1905 as the third of four movements in the composer’s Suite Bergamasque, and unlike the other parts of this work, Clair is quiet, contemplative, and slightly melancholy, evoking the feeling of a solitary walk through a moonlit garden.

The visuals were composed like a nature documentary, with clean cuts and a mostly stationary virtual camera. The viewer follows the Sun throughout a lunar day, seeing sunrises and then sunsets over prominent features on the Moon. The sprawling ray system surrounding Copernicus crater, for example, is revealed beneath receding shadows at sunrise and later slips back into darkness as night encroaches.

The visualization was created to accompany a performance of Clair de Lune by the National Symphony Orchestra Pops, led by conductor Emil de Cou, at the Kennedy Center for the Performing Arts in Washington, DC, on June 1 and 2, 2018, as part of a celebration of NASA’s 60th anniversary.

The visualization uses a digital 3D model of the Moon built from Lunar Reconnaissance Orbiter global elevation maps and image mosaics. The lighting is derived from actual Sun angles during lunar days in 2018.

This video is public domain and along with other supporting visualizations can be downloaded from the Scientific Visualization Studio at: https://svs.gsfc.nasa.gov/cgi-bin/details.cgi?aid=4655

If you liked this video, subscribe to the NASA Goddard YouTube channel: https://www.youtube.com/NASAExplorer

Follow NASA’s Goddard Space Flight Center
· Facebook: https://www.facebook.com/NASA.GSFC
· Twitter https://twitter.com/NASAGoddard
· Flickr https://www.flickr.com/photos/gsfc/
· Instagram https://www.instagram.com/nasagoddard/

Visualization Credits
Ernie Wright (USRA):
Lead Visualizer
Editor

Laurence Schuler (ADNET Systems Inc.):
Technical Support

Ian Jones (ADNET Systems Inc.):
Technical Support

Wade Sisler (NASA/GSFC):
Producer

Noah Petro (NASA/GSFC):
Scientist

via Moonlight (Clair de Lune)

Liked on YouTube: Binging with Babish: Pasta Aglio e Olio from “Chef”

What dish can make any man or woman ache for the touch of Jon Favreau? Pasta Aglio e Olio is the dreamy midnight snack that lives up to its porny portrayal in the foodie-comedy-drama “Chef”. Recipe below!

RECIPE

*Ingredients*

1/2 head garlic, separated and peeled

1 bunch parsley, rinsed

1/2 cup good quality olive oil

1 tsp red pepper flakes

1/2 lb dry linguine

1/2 lemon

*Method*

Heavily salt a large pot of water, and bring to a boil. Cook pasta to al dente while completing the steps below.

Slice the garlic cloves thinly, and set aside. Pick the parsley leaves from their stems, and finely chop. Add olive oil to a large sauté pan, and heat over medium flame until shimmering. Add sliced garlic, stirring constantly, until garlic is barely toasted. Add the red pepper flake and remove from heat.

Add the pasta, drained, with about 1/4 cup reserved pasta cooking water. Add lemon juice and parsley, and toss to combine. Season for salt and pepper, and serve.

Binging With Babish Website: http://bit.ly/BingingBabishWebsite
Basics With Babish Website: http://bit.ly/BasicsWithBabishWebsite
Patreon: http://bit.ly/BingingPatreon
Instagram: http://bit.ly/BabishInstagram
Facebook: http://bit.ly/BabishFacebook
Twitter: http://bit.ly/BabishTwitter

via Binging with Babish: Pasta Aglio e Olio from “Chef”

Requesting access to HealthKit

I’m playing with starting to blog again.

This is the type of thing that I might enjoy posting.

I have a bunch of these, and this might be a good place to save them for posterity.

import HealthKit

 

static var healthStore: HKHealthStore = HKHealthStore()

var healthKitAuthorized = false

 

var dataTypesToWrite = Set<HKSampleType>()

var dataTypesToRead = Set<HKObjectType>()

 

func requestAccessToHealthKit(completion: ((Bool, Error?) -> Void)!) {

    if HKHealthStore.isHealthDataAvailable() {

        healthStore.requestAuthorization(toShare: dataTypesToWrite,

                read: dataTypesToRead) { success, error in

            if !success {

                print(Error: \(error!.localizedDescription.description)”)

            } else {

                healthKitAuthorized = true

            }

            if (completion != nil) {

                completion(success, error)

            }

        }

    } else {

        print(“HealthKit is not available on this device.”)

    }

}

 

func doStuff() {

    dataTypesToWrite = Set([

        HKObjectType.quantityType(forIdentifier:

            HKQuantityTypeIdentifier.height)!,

        HKObjectType.quantityType(forIdentifier:

            HKQuantityTypeIdentifier.bodyMass)!

        ])

    dataTypesToRead = Set([

        HKObjectType.quantityType(forIdentifier:

            HKQuantityTypeIdentifier.height)!,

        HKObjectType.quantityType(forIdentifier:

            HKQuantityTypeIdentifier.bodyMass)!

        ])

    requestAccessToHealthKit { [weak self] (success, error) in

        if success {

            // Go ahead and work with HealthKit height and weight samples…

            DispatchQueue.main.async {

                // You’re in a background queue…

                // …so if you’re going to work with the user interface…

                // …be sure to wrap it in a dispatch to the main queue.

            }

        }

    }

}

 

Customize the messages displayed on the permissions sheet by setting the following keys in your app’s info.plist file. Set the NSHealthShareUsageDescription (Privacy – Health Share Usage Description) key to customize the message for reading data. Set the NSHealthUpdateUsageDescription (Privacy – Health Update Usage Description) key to customize the message for writing data.