• 0 Posts
  • 28 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle
  • I really like how nushell can parse output into it’s native structures called tables using the detect command.

    Unlike string outputs, tables allow for easy data manipulation through pipes like select foo will select foo key and you can filter and even reshape the datasets.

    This is great if you need to work with large data pipes like kuberneters so you can do something like:

    kubectl get pods --all-namespaces | detect columns | where $it.STATUS !~ "Running|Completed" | par-each { |it| kubectl -n $it.NAMESPACE delete pod $it.NAME }
    

    This looks complex but it parses kubectl table string to table object -> filters rows only where status is not running or completed -> executes pod delete task for each row in parallel.

    Nushell take a while to learn but having real data objects in your terminal pipes is incredible! Especially with the detect command.

    There’s are few more shells that do that though nu is the most mature one I’ve seen so far.


  • It’s incredible how little people spend on free software :(

    I used to have a dream of developing free software and launched a couple of big projects (thousands of github stars, millions of downloads) and no one fucking pays for anything no matter how easy you make it and how critical your software is to them.

    To give some perspective - some Youtubers earn same amount annually from Patreon than both Gnome and KDE yearly budgets combined (which is ~3M usd).

    I realized that the only way to fund something is to make people pay either through early releases, insider programs or something that forces the credit card form on them. That’s the only way.


  • I’ve updated some legacy nodejs to Deno recently and it’s actually not bad! If you’re using serverless Denoflare is super convenient and DTN is a tool for building Deno to NPM (both esm and commonjs) so you can have easy backwards compatibility if needed, it even shims all of the Deno standard lib.

    It’s really impressive what Deno and Bun people have done - for the first time I actually somewhat enjoy server side JS!








  • Dr. Moose@lemmy.worldtoScience Memes@mander.xyzarthropods
    link
    fedilink
    English
    arrow-up
    18
    ·
    5 months ago

    I really like that theory too. It further expands that vision is what granted us intelligence as creatures coming on land could see significantly further and thus start planning and reacting to distant changes giving birth to modern intelligence. To add, whales developed this intelligence and went back to the ocean to absolutely dominate it.



  • Dr. Moose@lemmy.worldtoAsklemmy@lemmy.mlWho's winning the war in Ukraine?
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    14
    ·
    edit-2
    10 months ago

    I don’t think Russia has any chance of winning. The only reason Russians are still in Ukraine is because the west is too pussy to ship the real guns.

    This makes you wonder whether people benefit from this or its trully a valid strategy not to bug squash the bully cause they might go mental.

    Either way, the war doesn’t have to end through military or peace agreements. Russian economy seems to be ending first. As grim as that sounds but maybe that’ll get Russians caring.