@docteurklein@mastodon.social avatar

docteurklein

@docteurklein@mastodon.social

mostly sharing tech stuff #postgres #nixos

This profile is from a federated server and may be incomplete. Browse more on the original instance.

fasterthanlime, (edited ) to random
@fasterthanlime@hachyderm.io avatar

question: I have traefik and some app set up as daemonsets. requests get routed randomly across endpoints. setting internalTrafficPolicy doesn't change anything. topology hints don't get set b/c overload threshold isn't met

without https://github.com/kubernetes/kubernetes/pull/121060 I'm out of luck, right?

edit: so the mystery is solved: traefik has a 'nativeLB' field that defaults to false, and so it did its own load balancing (round robin)!

docteurklein,
@docteurklein@mastodon.social avatar

@fasterthanlime any good reason for an app to be deployed as a daemonset instead of a deployment?

docteurklein,
@docteurklein@mastodon.social avatar

@fasterthanlime what about playing with nodeAffinities

docteurklein,
@docteurklein@mastodon.social avatar

@fasterthanlime or putting traefik in the same pod as the app maybe?

fribbledom, to random
@fribbledom@mastodon.social avatar

I can't wait until we have working 3D scanners. If I were to speculate, though, it seems more likely that we will witness the emergence of 3D models crafted by artificial intelligence using photographic data, prior to the widespread availability of 3D scanners as consumer hardware.

docteurklein,
@docteurklein@mastodon.social avatar

@fribbledom what's a 3d scanner if not a rotating camera backed by software?

dennisfaucher, to NixOS

I know and have lots of fans, but every time I try to use them again I want to drive nails into my forehead. I think I like my immutable with Snap or Flatpak.

docteurklein,
@docteurklein@mastodon.social avatar

@AngryAnt @dennisfaucher there is a flake out there to deal with flatpak apps declaratively

hermod, to Astronomy French
@hermod@piaille.fr avatar

Mastodon est magique, j'en suis sûr.
Mon fils de 8 ans est passionné d'astronomie.
Nous lui avons promis un super livre sur ce sujet.
Nous sommes donc à la recherche du meilleur livre possible.
Parmi les astronomes amateurs et professionnel de mastodon, quel livre conseillez vous ?
Le retoot vous décroche la lune.

docteurklein,
@docteurklein@mastodon.social avatar
wyri, to Kubernetes
@wyri@haxim.us avatar

YOLO: kubectl delete pod --all --all-namespaces

Or how to restart all pods in a cluster

docteurklein,
@docteurklein@mastodon.social avatar

@wyri technically how to delete them, in the hope they are backed by deployment or statefulsets or the like

jpmens, to Ansible
@jpmens@mastodon.social avatar

deleted_by_author

  • Loading...
  • docteurklein,
    @docteurklein@mastodon.social avatar

    @jpmens I stopped at Yaml dialect + handlebars templating

    denzilferreira, to haskell
    @denzilferreira@techhub.social avatar

    Been learning Haskell, and I’m starting to see how inefficient OOP is. For example, taken from “Programming with Haskell” from Graham Hutton with Quick Sort. Something like this in many languages requires way more lines of code. I hear Rust follows same approach to things, so that’s next.

    #haskell #functionalProgramming #programming

    docteurklein,
    @docteurklein@mastodon.social avatar

    @denzilferreira rust is haskell without the referential transparency

    BlackAzizAnansi, to random
    @BlackAzizAnansi@mas.to avatar

    This is America.

    docteurklein,
    @docteurklein@mastodon.social avatar

    @BlackAzizAnansi land of the free hair cut

    joe, to SQLServer
    @joe@toot.works avatar

    I'm using the spatial data type in SQL Server to get "closest neighbor" results. I really want to remove from the stack if I can though. Anybody try for ? Opinions? Suggestions?

    http://www.refractions.net/products/postgis/

    docteurklein,
    @docteurklein@mastodon.social avatar

    @joe you don't need to go full postGIS to get geo distance: the cube extension and point data type could be enough https://www.postgresql.org/docs/current/earthdistance.html

    AstraKernel, to rust

    🪲 HTTP/2 DDOS Bug - How Rust's Hyper already fixed the issue before others!

    👉 Attack:
    Send an HEADERS frame to open the stream, followed by an RST_STREAM frame to request cancellation of the stream.

    https://seanmonstar.com/post/730794151136935936/hyper-http2-rapid-reset-unaffected

    https://github.com/hyperium/hyper/issues/2877

    ✨ CVE-2023-44487:

    👉 By rapidly sending similar requests from a few thousands of computers, attackers can cause DDOS

    More details on the attack:
    https://blog.cloudflare.com/zero-day-rapid-reset-http2-record-breaking-ddos-attack/

    https://cloud.google.com/blog/products/identity-security/how-it-works-the-novel-http2-rapid-reset-ddos-attack

    docteurklein,
    @docteurklein@mastodon.social avatar
    alper, to random
    @alper@rls.social avatar

    turns out to be not so great for exploratory programming. I'm in 3-4 different projects/languages on a normal day and its all continuous misery.

    Today: Can't add mysql80 to a flake.nix and have it run easily (because which person developing a project would ever need a database server).

    It's absurd how much of a non-problem this is with Homebrew.

    docteurklein,
    @docteurklein@mastodon.social avatar

    @alper how does homebrew solve it?

    docteurklein,
    @docteurklein@mastodon.social avatar

    @alper agreed, that's great, but it's still not as reproducible as with nix.
    IF you run nixos however, it's super easy (https://nixos.wiki/wiki/NixOS_Containers for example)

    But it's easy to say "IF", so I agree nix is beaten by brew for now :)

    docteurklein,
    @docteurklein@mastodon.social avatar

    @alper that's the whole tradeoff, yes. You can't have your cake and eat it too

    fasterthanlime, to random
    @fasterthanlime@hachyderm.io avatar

    ✨ pro-tip: the APT command to install neovim 0.9.x on Debian bookworm is:

    nix profile install nixpkgs#neovim

    docteurklein,
    @docteurklein@mastodon.social avatar

    @fasterthanlime got bit by profiles taking over flakes, you rebel :)

    anderseknert, to github
    @anderseknert@hachyderm.io avatar

    Unpopular opinion: actions “jobs” should only ever run the same (insert your build system here) tasks or scripts that you run on your own machine. Using actions from the “marketplace” that do anything more than to fetch dependencies means you can’t easily reproduce what happens in those actions. And there is nothing* as repugnant in this field as pushing fake commits to GH in order to debug a failing action.

    • OK, about 500 other things
    docteurklein,
    @docteurklein@mastodon.social avatar

    @anderseknert @parcifal I also like for that because it allows you to replace like 90% of yaml glue, while still reproducing the problematic stuff 100% locally

    jntrnr, to random

    Something I'm noticing in comments to my recent blog post on is that a lot of folks have a strict separation between interactive shell and scripting.

    When I point out in the post that Nushell is really meant to scale smoothly between the two, some folks say things like "so you're saying it's really a scripting language not a shell"

    I want to help folks see they don't have to choose. They can scale ideas all the way up in one language without rewriting.

    docteurklein,
    @docteurklein@mastodon.social avatar

    @boarders @jntrnr there is turtle in haskell that embeds a shell-like DSL

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • normalnudes
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • osvaldo12
  • ngwrru68w68
  • ethstaker
  • JUstTest
  • everett
  • Durango
  • Leos
  • cubers
  • mdbf
  • khanakhh
  • tester
  • modclub
  • cisconetworking
  • anitta
  • tacticalgear
  • provamag3
  • lostlight
  • All magazines