home.social

Search

19 results for “jq”

  1. @thomasweibel
    Utilized with eclipses, the Metonic Cycle can also be employed to determine astronomy constants.
    Of course longer periods (it is not a true cycle) offer greater precision.
    "... accurate integer equation of lunar synodic with the apogee-perigee period ensures greater interval constancy of eclipse observations."
    Discussions and EpochCalc applet here:
    jqjacobs.net/astro/aristarchus
    jqjacobs.net/astro/eclipse.html
    #Astronomy #Archaeoastronomy #Meton #Eclipses

  2. @thomasweibel
    Utilized with eclipses, the Metonic Cycle can also be employed to determine astronomy constants.
    Of course longer periods (it is not a true cycle) offer greater precision.
    "... accurate integer equation of lunar synodic with the apogee-perigee period ensures greater interval constancy of eclipse observations."
    Discussions and EpochCalc applet here:
    jqjacobs.net/astro/aristarchus
    jqjacobs.net/astro/eclipse.html
    #Astronomy #Archaeoastronomy #Meton #Eclipses

  3. @thomasweibel
    Utilized with eclipses, the Metonic Cycle can also be employed to determine astronomy constants.
    Of course longer periods (it is not a true cycle) offer greater precision.
    "... accurate integer equation of lunar synodic with the apogee-perigee period ensures greater interval constancy of eclipse observations."
    Discussions and EpochCalc applet here:
    jqjacobs.net/astro/aristarchus
    jqjacobs.net/astro/eclipse.html
    #Astronomy #Archaeoastronomy #Meton #Eclipses

  4. @thomasweibel
    Utilized with eclipses, the Metonic Cycle can also be employed to determine astronomy constants.
    Of course longer periods (it is not a true cycle) offer greater precision.
    "... accurate integer equation of lunar synodic with the apogee-perigee period ensures greater interval constancy of eclipse observations."
    Discussions and EpochCalc applet here:
    jqjacobs.net/astro/aristarchus
    jqjacobs.net/astro/eclipse.html
    #Astronomy #Archaeoastronomy #Meton #Eclipses

  5. @thomasweibel
    Utilized with eclipses, the Metonic Cycle can also be employed to determine astronomy constants.
    Of course longer periods (it is not a true cycle) offer greater precision.
    "... accurate integer equation of lunar synodic with the apogee-perigee period ensures greater interval constancy of eclipse observations."
    Discussions and EpochCalc applet here:
    jqjacobs.net/astro/aristarchus
    jqjacobs.net/astro/eclipse.html
    #Astronomy #Archaeoastronomy #Meton #Eclipses

  6. Found an actually useful use for `gron` (rather than just inspecting JSON) - replacing any URL, at any level in the structure, matching `"https.*?"` with a known string (for `diff` + `git` sanity since these URLs change every time but they're not relevant anyway.)

    Easy with gron: `gron < in.json | sed -Ee 's/ "https:[^"]+";/ "GOAT";/' | gron -u > out.json`

    Probably impossible with `jq`? Especially since not all of the keys are present in all of the files, no idea in advance where a new URL might appear, etc.

    #TIL #gron #jq
  7. Check out this clip from my conversation with James D Boys about how Richard Nixon and Henry Kissinger utilized the Madman Theory in foreign diplomacy then check out the full episode to learn more! #history #POTUS #Nixon youtube.com/shorts/JqSoPjgp14o

  8. VOC-25 is…really weird, and really awesome bit of art, that can be used to create other art.

    VOC-25 is a conceptual vocal synthesizer with 25 sets of plastic teeth, each set representing a unique note on a keyboard, crafted by Love Hulten. I dig these kinds of utilitarian but aesthetically eccentric concepts. https://www.youtube.com/watch?v=nXlkfOD-jQo

    zeruch.wordpress.com/2026/05/2

  9. 1st episode of the #ASDP #Webinar Series 2026, focusing on future of pathology in the era of digital transformation and artificial intelligence. As digital #pathology and AI continue to reshape diagnostic practice, this webinar will explore how innovative workflows and closer clinician - #pathologist collaboration can enhance clinical impact patient care.
    Saturday, 17 January 2026
    Time: 9:00 Istanbul
    Pathology 2026 - Futuristic DP/AI workflows and clinicians engagement
    zoom.us/webinar/register/WN_yx

  10. 1st episode of the Series 2026, focusing on future of pathology in the era of digital transformation and artificial intelligence. As digital and AI continue to reshape diagnostic practice, this webinar will explore how innovative workflows and closer clinician - collaboration can enhance clinical impact patient care.
    Saturday, 17 January 2026
    Time: 9:00 Istanbul
    Pathology 2026 - Futuristic DP/AI workflows and clinicians engagement
    zoom.us/webinar/register/WN_yx

  11. Starting Monday, Leland Long will begin the paid portion of his "React Native Apps with FileMaker JavaScript Training".

    If you have staff that would like to sharpen their FileMaker + JavaScript skills, this is an excellent training course.

    You can review the upcoming paid training course information, purchase access, etc here: fmtraining.tv/javascript-train

    #training #webinar #paidtraining #filemaker #claris #lowcodenocode #lowcodeprocode #javascript #reactnative #jquery

  12. Your Own Private Ephemeris CLI

    We spent some time talking about, well, time, this week; specifically, times of various ephemeris. While each of the sections in Drop #416 had a CLI component, we don’t need to settle for someone else’s vision of how things should work!

    So, today, we’ll use a starter Golang project to engage in a choose-your-own-adventure CLI builder for displaying ephemeris.

    Type your email…

    Subscribe

    Ephemlite

    Photo by Tim Graf on Unsplash

    As noted, I am quite fond of the Go port of astral. So, I threw together a small CLI project that is designed to be super hackable even if Go is not your primary (or tertiary) language. In fact, if you only care about sunrise and sunset, you don’t even need to modify it. Here’s what it does out of the box:

    $ go install codeberg.org/hrbrmstr/ephemlite@latest$ ephemlite emit -- 43.266998932 -70.856996572 55{  "coordinates": {    "Latitude": 43.266998932,    "Longitude": -70.856996572,    "Elevation": 55  },  "sunrise": "2024-02-09T06:48:45.373187092-05:00",  "sunset": "2024-02-09T17:07:02.97010512-05:00"}

    Let’s peek under the covers (there’s only one Go file: main.go):

    package mainimport (    "encoding/json"    "fmt"    "os"    "strconv"    "time"    "github.com/sj14/astral/pkg/astral"    "github.com/spf13/cobra")

    There are only two “foreign” imports, one for astral and the other for cobra a lovely command-line argument parser on steroids (I do appreciate the nostalgic nod to GIJoe, too). Unless you want to go bonkers on your own, you only need to start focusing on or about line 30. This is the main handler for the CLI app and it takes three positional arguments for latitude, longitude, and elevation.

    HACKABLE OPTION #1: modify the app to take in a custom date (it uses today as a default with those time.Now() calls)

    Inside the Run function for that command, we compute two of many ephemeris:

    sunrise, err := astral.Sunrise(observer, time.Now())sunset, err := astral.Sunset(observer, time.Now())

    We store them in a struct:

    type Ephemeris struct {  Coordiantes astral.Observer `json:"coordinates"`  Sunrise     time.Time       `json:"sunrise"`  Sunset      time.Time       `json:"sunset"`}

    so we can emit them as JSON, as you saw, above.

    HACKABLE OPTION #2: add calls to other ephemeris computations and modify the struct accordingly.

    fmt.Println(string(jsonData))

    This is so you can use something like gum — which we used in a previous WPE — with jq to build your own CLI tool with just bash/powershell.

    HACKABLE OPTION #3: Do all the CLI work right in ephemlite, relying on, say, lipgloss or one of the other Charm components.

    FIN

    We’ll turn our eyes to the web in the next WPE.

    Remember, you can follow and interact with the full text of The Daily Drop’s free posts on Mastodon via @[email protected] ☮️

    https://dailydrop.hrbrmstr.dev/2024/02/09/drop-418-2024-02-09-weekend-project-edition/

    #1 #2 #3 #416 #cli #ephemeris #go #golang #sunrise #sunset