• 0 Posts
  • 25 Comments
Joined 2 years ago
cake
Cake day: December 29th, 2023

help-circle
  • Pup Biru@aussie.zonetoSelfhosted@lemmy.worldgoodbye plex
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 days ago

    i’d consider that all a good thing, but i can also see how it’s more work

    they’re supposed to be stateless because it’s easier to manage, upgrade, etc… if you don’t want that, you can just use load/save/commit (or import/export: can’t remember off the top of my head which is which) and ignore volumes: it amounts to the same thing… there’s also buildpack rebase so you can swap out the base container and keep your top level changes for quick version upgrades that are super simple to roll back


  • Pup Biru@aussie.zonetoSelfhosted@lemmy.worldgoodbye plex
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    misconfiguration here i think is a dangerous way to phrase it… it implies that there is a secure way to run jellyfin on its own. jellyfin, by itself, should never be exposed to the www. it is, no matter the configuration, insecure. to run jellyfin on the www you must put a VPN or other reverse proxy with auth over the top of it


  • Pup Biru@aussie.zonetoSelfhosted@lemmy.worldgoodbye plex
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    swiftfin is mostly there but doesn’t support media segments, which is a deal breaker for me

    really unfortunate since jellyfin media segments is a much better implementation of the concept than plex

    i’m watching the swiftfin issue for when it gets added and i’ll be all over compiling and testing it



  • Australia

    • for non-urgent regular things book with my GP in an app (pretty sure that’s the case for most GPs too). usually an appointment within a few days; sometimes he’s booked out for a couple of weeks, but if i don’t feel like waiting i can book anywhere else. when i go to my appointment, tests etc are all free. i go to a private clinic so i pay $75AUD (~$50USD) and the govt reimburses me $45 of that - public clinics are free but i go to a speciality clinic
    • for non-urgent sick things (or anything really - scripts etc too; i just use it when i don’t want to go to my GP) we have home doctor service: you book in an app and a doctor will come to your house the same day - free
    • for specialists the waiting period can depend on what it is, but i have had a 3mo wait for a specialist before :(… usually you go to your GP, get a referral, see a specialist, then perhaps have surgery if necessary. it can be a months long wait for surgeries which is not great, buuuuut it’s also great to go in for day surgery in the morning, and just leave later that day without paying a cent
    • for emergency, unfortunately you can be waiting for a few hours… they triage you so i’m sure if it’s a real issue you wouldn’t keep you waiting but for things like potentially broken bones you can be waiting for up to 3hr… it’s all free
    • for ambulance it differs per state but in my state (victoria) they aren’t - it’s ~$1400 for an emergency trip. you can also buy ambulance membership for $53/y and it’s free

    pretty much anything where i’ve talked about costs or free you give them your medicare (federal health system for everyone - not just low income etc) details and they bill the govt a set amount for time and materials used. GP clinics etc store it on file so sometimes you can just walk out without talking to anyone








  • Math.min isn’t the minimum integer; it’s the minimum of a list (and max visa versa)… the min/max of an undefined list is the same… IDK what it is, but this probably the most reasonable of the “WTFs” they could have put there i think… other languages would throw an exception or not compile (which JS definitely SHOULD do instead of this, buuuuut lots of JS has aversions to errors)

    *edit: okay the curiosity was killing me: Math.min() is Infinity and Math.max() is -Infinity



  • Pup Biru@aussie.zonetoSelfhosted@lemmy.worldWhat is Docker?
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    a chroot is different, but it’s an easy way to get an idea of what docker is:

    it also contains all the libraries and binaries that reference each other, such that if you call commands they use the structure of the chroot

    this is far more relevant to a basic understanding of what docker does than explaining kernel namespaces. once you have the knowledge of “shipping around applications including dependencies”, then you can delve into isolation and other kinds of virtualisation


  • Pup Biru@aussie.zonetoMemes@lemmy.mlSchrödinger’s China
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    5
    ·
    edit-2
    3 months ago

    imminent collapse is a fairly common theme among anything we’ve learned to engineer fairly well… if a bridge isn’t in imminent danger of collapse under its theoretical maximum loading, it used too much material and was thus over-built which means fewer bridges for people

    if an economy isn’t in imminent danger of collapse then it’s resources aren’t being used efficiently and that means fewer luxuries - and bridges - for people



  • Pup Biru@aussie.zonetoProgrammer Humor@programming.devYes, But...
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    4 months ago

    Resource not found Data not found (client error). Data not found (server error)

    they are all the same thing; there is no useful, practical distinction between them

    if we request a list of objects and nothing was found, because we asked for a date when there was no data, its not an error. But i suppose many still just throw around exceptions still instead of handle them properly

    it’s an empty array: not found when requesting something specific is an error… that’s different to here is the complete set of 0 objects… like like if you have an array and request an index that doesn’t exist you get an exception, but that doesn’t mean an empty array is exceptional: it is in fact very valid

    using an error code for a non-error

    well, it is an error though. you have requested a URI for an object that doesn’t exist: it doesn’t matter whether it’s a resource or an individual thing

    remember that HTTP youre asking the server for some object matching a URI: please give me the object matching /users/bananoidandroid and /userssssss/bananoidandroid may both not be found for the exact same reason: the object referenced by that string does not exist

    here’s the spec definition for 404

    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

    when you’re dealing with specs, deciding not to follow them because you feel like they’re wrong is not appropriate… this leads to bugs and issues in compliant tools because they make assumptions about what things mean

    200 means the thing that you asked completed successfully

    here’s the definition of 200:

    The request has succeeded. The information returned with the response is dependent on the method used in the request, for example:

    GET an entity corresponding to the requested resource is sent in the response;

    HEAD the entity-header fields corresponding to the requested resource are sent in the response without any message-body;

    POST an entity describing or containing the result of the action;

    TRACE an entity containing the request message as received by the end server.

    *edit: when talking about compliant, standard tools the classic example is transparent cache: a GET should not transform the resource and thus a GET with response of 200 can be cached… an API that uses a GET to modify a resource may cause transparent proxies (or CDNs) to significantly mishandle the user request… same goes for 200 vs 4xx and 5xx: proxies know that 200 means what it means and may cache based on that, where 5xx should never be cached and 4xx is probably dependant on which specific 4xx


  • Pup Biru@aussie.zonetoProgrammer Humor@programming.devYes, But...
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    4 months ago

    error codes aren’t about who’s at fault… you don’t send a 404 because it’s the users or the servers fault. it’s information… a 404 says something doesn’t exist… it’s nobody’s fault; it just is

    a 4xx says the request, if tried again without changes or external intervention, is unlikely to succeed

    a 5xx says the request might have been fine but some other problem that you can’t control occurred so may be retried without changes at a later time

    these are all standard things that are treated in standard ways by generic HTTP libraries… look at, eg axios: a javascript HTTP library that’s often thinly wrapped to build API clients… a 200 is just passed through as success, where 4xx and 5xx will throw an error: exactly what you’d want if you try to retrieve a non-existent object or submit a malformed payload…

    this is standard behaviour for a lot of HTTP libraries, and helps people accidentally write better code - an explosion is better than silence for unhandled exceptions