• 0 Posts
  • 19 Comments
Joined 1 year ago
cake
Cake day: July 24th, 2023

help-circle
  • myliltoehurts@lemm.eetoMemes@lemmy.mlI'm helping I promise!
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    1 day ago

    We trim our cats nails because when we don’t they keep getting stuck on things. They also just accept that being stuck is now their life without any complaint so sometimes it takes us hours to figure out one is now stuck to the sofa and just accepted it vs decided to sleep on the sofa.


  • I think coffee shops would be happy with a regular, if you buy something. Otherwise, maybe mix it up, go to different places?

    If the weather permits, park? Either benches or just take a towel to sit on in the grass.

    You can also read in bars, they’re probably pretty quiet during the day, but once again you’d have to buy something.

    Maybe a weird one but churches are often available to the public and they’re quiet, with seating. Might be worth to check with someone there if its OK.

    If they are open to the public, museums or galleries could be a thing.

    Encroaching on homeless behaviour, but if the public transportation tickets in the city are valid as long as you stay on, you could try finding a less used line and just go around in circles on something.


  • I get the convenience part so the staff doesn’t have to go around do it by hand, but it just seems infeasible to do it for the other examples mentioned.

    E.g. you go in, pick up item listed for $10, finish shopping in 20 mins, item now costs $15 at till… probably leave it (so now the staff has to re-shelf it) and start shopping at a place that is not trying to scam you.

    For the other example, if there are a few packs of something expiring and they reduce the price for all the items on the shelf, everyone will just take the ones which have a reasonable shelf life left leaving the expiring ones.

    Both of these just seem stupid.



  • Honestly, even if you don’t terminate SSL right until your very own app server, it’s still based on the assumption that whoever holds the root cert for your certificate is trustworthy.

    The thing that has actually scared me with CF is the way their rules work. I am not even sure what’s the verification step to get to this, but if there is a configured page rule in a different CF account for your domain that points at cloudflare (I.e. the orange cloud), you essentially can’t control your domain as long as it’s pointing at CF (I think this sentence is a bit confusing so an alternative explanation: your domain is pointing DNS at your own CF account, in your CF account you have enabled proxying for your domain, some other CF account has a page rule for your domain, that rule is now in control). The rule in some other account will control it.

    It has happened to us at work and I had to escalate with their support to get them to remove the rule from the other cloudflare account so we can get back control of our domain while using CF. Their standard response is for you to find and ask the other CF account to remove the rule for your domain.

    This is a pretty common issue with gitbook, even the gitbook CEO was surprised CF does this.


  • I wonder if this will also have a reverse tail end effect.

    Company uses AI (with devs) to produce a large amount of code -> code is in prod for a few years with incremental changes -> dev roles rotate or get further reduced over time -> company now needs to modernize and change very large legacy codebase that nobody really understands well enough to even feed it Into the AI -> now hiring more devs than before to figure out how to manage a legacy codebase 5-10x the size of what the team could realistically handle.

    Writing greenfield code is relatively easy, maintaining it over years and keeping it up to date and well understood while twisting it for all new requirements - now that’s hard.





  • I have never seen contributors get anything for open source contributions.

    In larger, more established projects, they explicitly make you sign an agreement that your contributions are theirs for free (in the form of a github bot that tells you this when you open a PR). Sometimes you get as much as being mentioned in a readme or changelog, but that’s pretty much it.

    I’m sure there may be some examples of the opposite, I just… Wouldn’t hold my breath for it in general.


  • I think I misunderstood your problem, I assumed the issue was the volume mounts and after testing it I was indeed wrong - the docker cli now accepts relative paths so your original command does the same as what I suggested. After re-reading your issue I have a different idea of what’s wrong, but would have to see your dockerfile (or for you to confirm) to be sure.

    Do you add 10f.py to the docker image when you build it and do you specify the command/entrypoint in the Dockerfile? There are possibly to issues I can think of with how you do that (although considering the docker compose works it’s probably the 2nd):

    1. You do add it and you add it to /data in the image - when you mount a volume over it would make the script no longer exist in the container.
    2. You do add it and it’s not in /data - in this case the issue with running docker run -v ./:/data -w /workdir tenfigers_10f:v1 10f.py is the last bit - you override the command which makes it try to look for it at /data/10f.py, if you omit it the last part (10f.py) it should run whatever the original command was and assuming you set the cmd/entrypoint correctly in the Dockerfile it should see /data as ./ in python.

    (Also when you run it with the CLI you might want to add -it --rm as well to the docker command otherwise it won’t really behave similarly to a regular command)


  • It works in docker compose because compose handles relative paths for the volumes, the docker CLI doesn’t.

    You can achieve this by doing something like

    docker run -v $(pwd):/data ...
    

    pwd is a command that returns the current path as an absolute path, you can just run it by itself to see this. $() syntax is to execute the inner command separately before the shell runs the rest of it. (Same as backticks, just better practice)

    I imagine that wouldn’t work on windows, but it would on either osx, Linux or wsl.

    Generally speaking, if you need the file system access and your CLI requires some setup, I’d recommend either writing it in a statically compiled language (e.g. golang, rust) or researching how to compile a python script into an executable.

    If you’re just mounting your script in the container - you’re better off adding it directly at build time.





  • Jellyfin is a fork of emby from the time when emby went closed source. They are very similar, emby has a similar thing to Plex pass (emby premiere) to monetize for extra features, but it’s not enshittified (yet, maybe - who knows).

    I’m not sure if it’s available without premiere but it has the intro detection and skip feature, which is one of the main things I miss from jellyfin. I also prefer the app on android TV for some small reasons (over jellyfin). I’m not sure if it’s overall better, especially if you hadn’t already paid for it - I got a lifetime pass on it for cheap once.



  • I understand that, but just because I’m capable of working with a less friendly system doesn’t mean it’s a good thing. If anything I’d still list it as a negative aspect that it requires more knowledge and research.

    If there was a question with an answer like “I’m looking for a challenge” it’d make sense that it’s listed as a positive.