home.social

Search

1000 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. jq: parse error: Invalid numeric literal at line 1, column 10
    jq: parse error: Invalid numeric literal at line 1, column 10
    BCH Price: $0.00
    BCH Market Cap: $0.00
    #bch #bitcoincash #bitcoin #BitcoinIsCash

  3. Gave my devs the tasks of replacing #jQuery syntax with vanilla #javascript. Rather than a one to one conversion, they handed the entire file to #Claude, and it rewrote absolutely everything.

    Since I don't have the capacity to review every line of code that has been change in the next 24 hours, we have to decide between pulling the changes from this release or putting out a bunch of #AI slop.

    I hate the world right now.

  4. In meiner swaybar (die Leiste, die #sway haben kann), habe ich ein Scratchpad, das isr der Bereich, in den ich alle Fenster werfen kann, die ich momentan nicht sehen will.
    Die Bar wird von einem Shellskript gebastelt, das für das Scratchpad diese Funktion hat:

    get_scratchpad() {
        windows=$(swaymsg -t get_tree | jq -r '
            .. | objects
            | select(.name? == "__i3_scratch")
            | .floating_nodes[]
            | (.app_id // .window_properties.class // .name)
            | if test("^\\..*\\.bin$")
              then sub("^\\."; "") | sub("\\.bin$"; "")
              else .
              end
        ')
    
        if [ -z "$windows" ]; then
            echo "Scratchpad: empty"
        else
            echo "Scratchpad: $(echo "$windows" | paste -sd " ") |"
        fi
    }

    Ergibt momentan:

    Ohne #ChatGPT hätte ich das im Leben nicht hinbekommen, #jq ist zwar mächtig, aber auch hart.

  5. @jqueralt vens pel #Candlelight suposo! Que gaudeixis. Algun dels companys rondarà per la casa. Ha de ser bonic.

  6. I published my notes on using #jq to add an element to an array while ensuring you don't create a duplicate in the array.

    This comes up when I'm writing a jq transformation I want to be able to run multiple times without adding a new entry each time (i.e. make it idempotent).

    salferrarello.com/add-element-

    #jq
  7. I published my notes on using #jq to add an element to an array while ensuring you don't create a duplicate in the array.

    This comes up when I'm writing a jq transformation I want to be able to run multiple times without adding a new entry each time (i.e. make it idempotent).

    salferrarello.com/add-element-

    #jq
  8. I published my notes on using #jq to add an element to an array while ensuring you don't create a duplicate in the array.

    This comes up when I'm writing a jq transformation I want to be able to run multiple times without adding a new entry each time (i.e. make it idempotent).

    salferrarello.com/add-element-

    #jq
  9. I published my notes on using #jq to add an element to an array while ensuring you don't create a duplicate in the array.

    This comes up when I'm writing a jq transformation I want to be able to run multiple times without adding a new entry each time (i.e. make it idempotent).

    salferrarello.com/add-element-

    #jq
  10. I published my notes on using #jq to add an element to an array while ensuring you don't create a duplicate in the array.

    This comes up when I'm writing a jq transformation I want to be able to run multiple times without adding a new entry each time (i.e. make it idempotent).

    salferrarello.com/add-element-

    #jq
  11. Newly noticed large circular zanja,
    partially hidden by forest,
    partially cleared recently.
    #GoogleEarth #Archaeology
    #Beni #Bolivia
    Hundreds of Geoglyphs Discovered in the Amazon
    jqjacobs.net/archaeology/geogl

  12. Rudimentary TDD in #jq/#jaq:

    1. Choose an input; make a text file for it.
    2. Figure out the expected output; make a text file for it.
    3. `diff expected.txt =(cat input.txt | jaq -L "lib" 'main_filter')`

    It seems like real work to run multiple tests together, but this is a start.

    #jq
  13. Rudimentary TDD in #jq/#jaq:

    1. Choose an input; make a text file for it.
    2. Figure out the expected output; make a text file for it.
    3. `diff expected.txt =(cat input.txt | jaq -L "lib" 'main_filter')`

    It seems like real work to run multiple tests together, but this is a start.

    #jq