Readit News logoReadit News
krick commented on Static sites with Python, uv, Caddy, and Docker   nkantar.com/blog/2025/08/... · Posted by u/indigodaddy
simonw · a day ago
Being able to run "just build" in a container-free local development environment and have the same build process run as the one in your production setup is a productivity boost worth having.

Same as how it's good to be able to easily run the exact same test suite in both dev and CI.

krick · a day ago
But wouldn't you run whatever you are writing in Docker container on dev anyway? I always did just that, as long as I use Docker as a deployment tool for a project at all. And, in fact, even sometimes when I didn't, since it's much easier and cleaner to keep, say, multiple php or redis versions in containers, than on your PC. And it's only maybe a year since it became actually effortless to maintain all this version-zoo locally for Python, thanks to uv. In fact, even when it's something like Go, so the deployable is a compiled binary, I'd usually wrap the build process into a Docker container for dev anyway.
krick commented on Static sites with Python, uv, Caddy, and Docker   nkantar.com/blog/2025/08/... · Posted by u/indigodaddy
justinsaccount · a day ago
I don't really have an opinion on using caddy in a container to serve a static site. That's fine, really.. However, the way the container is built is done in the worst possible way:

  # copy all files
  COPY . .

  # install Python with uv
  RUN uv python install 3.13

  # run build process
  RUN uv run --no-dev sus
This adds the entire repository to the first layer, then installs python, then runs the build which I assume will only then install the dependencies. This means that changing any file in the repository invalidates the first layer, triggering uv reinstalling python and all the dependencies again. The correct Dockerfile would be something like

  # install Python with uv
  RUN uv python install 3.13

  # copy info for dependencies
  COPY pyproject.toml uv.lock .

  # Install dependencies
  RUN uv whatever

  # Copy over everything else
  COPY . .

  # run build process
  RUN uv run --no-dev sus

krick · a day ago
Exactly. I wanted to also point this out in the relation of the author's desire to put all build commands in `just` configuration file. It sounds to me like a desire to use some another "slick and shiny tool" (which `just` is when compared to `make`), but what's the point exactly? The build-process will still be container-dependent and may or may not work outside of the container, and you don't get the benefit of Docker caching anymore.
krick commented on OpenAI's new open-source model is basically Phi-5   seangoedecke.com/gpt-oss-... · Posted by u/emschwartz
bobsmooth · 16 days ago
After running Dolphin Mistral on my own machine I won't trust censored models ever again.
krick · 16 days ago
Recently I somehow wasn't using LLMs locally and relied mostly on ChatGPT for casual tasks. I think it was a little less than a year since I played with ollama, and I remember that my impression was that all recent popular models definitely aren't "uncensored" in a sense that some older modification of llama2 I used was, and all suck for prose-related tasks anyway. In fact, nothing but ChatGPT models seemed good enough for writing, but, of course, they refuse to talk about pretty much anything. Even DeepSeek is not great at writing, and it it much bigger than anything I ever ran locally.

So, are there even good uncensored models now? Are they, like, really uncensored?

krick commented on OpenAI's new open-source model is basically Phi-5   seangoedecke.com/gpt-oss-... · Posted by u/emschwartz
Foobar8568 · 16 days ago
Well if the model can't accept it got an information wrong, how can he help to tweak anything? or give something accurate?
krick · 16 days ago
A model changing its opinion on the first request may sound more flattering to you, but is much less trustworthy for anybody sane. With a more stubborn model I at I have to worry less that I give off what I think about a subject via subtle phrasing. Other than that, it's hard to say anything about your scenario without more information. Maybe it gave you the right information and you failed to understand it, maybe it was wrong and then it's no big news, because LLMs are not this magic thing that always gives you right answers, you know.
krick commented on 3-JSON   rgbcu.be/blog/3-json/... · Posted by u/RGBCube
krick · a month ago
Can somebody explain what's going on here? It seems I'm missing some important piece of background info. Why don't they just add -J flag for everyone who wants to output JSON? Oh, wait, tree already has -J flag to output JSON. So WTF are they doing here?

I am especially confused by this:

> Surely, nothing will happen if I just assume that the existence of a specific file descriptor implies something, as nobody is crazy or stupid enough to hardcode such a thing?

Wait, what? But "you" (tree authors) just hardcoded such a thing. Do "you" have some special permission to do this nonsense?

krick commented on I watched Gemini CLI hallucinate and delete my files   anuraag2601.github.io/gem... · Posted by u/anuraag2601
wrs · a month ago
Claude Sonnet 4 is ridiculously chirpy -- no matter what happens, it likes to start with "Perfect!" or "You're absolutely right!" and everything! seems to end! with an exclamation point!

Gemini Pro 2.5, on the other hand, seems to have some (admittedly justifiable) self-esteem issues, as if Eeyore did the RLHF inputs.

"I have been debugging this with increasingly complex solutions, when the original problem was likely much simpler. I have wasted your time."

"I am going to stop trying to fix this myself. I have failed to do so multiple times. It is clear that my contributions have only made things worse."

krick · a month ago
I haven't used Gemini Pro, but what you've pasted here is the most honest and sensible self-evaluation I've seen from an LLM. Looks great.
krick commented on Valve confirms credit card companies pressured it to delist certain adult games   pcgamer.com/software/plat... · Posted by u/freedomben
wat10000 · a month ago
I don’t think it should be made illegal, it should be made impractical.

One way would be to ensure proper competition in the payments space. If there were dozens of options then some of them would decide that it’s a competitive advantage to ignore the busybodies and cater to people who want to buy this stuff. We see this at work with hosting. There’s a multitude of options and it doesn’t seem like adult sites have much trouble finding a host that will allow them, even if others might reject them.

Another would be to regulate payment processors like common carriers and require them to serve everyone equally regardless. We see this model with the Post Office. As long as you’re not sending something that will compromise the safety of the workers, they’ll ship it.

krick · a month ago
It would be great if it was impractical, but I still think it has to be made illegal. I think it is not only "bad" because it's bad for Valve of whoever wants to sell or buy these games, this is "bad" on its own, because it is simply another elaborate form of blackmail. It is as close as it gets to violence without actually beating one up: you are forced to do something not because you are required by law or by nature, but because I want you do that, and I have power over you. This isn't a unique situation in that sense, of course, this pattern appears a lot in life. This one is unique only in that sense that it targets a very narrow bottleneck. If you have power to influence a payment system, and it has legal right to choose to write regulations like that, then you have power over virtually anyone and everyone. Lobbying a policy clause for Mastercard is basically as good (or maybe even better) than lobbying a law. Which, yes, is a problem on its own, but this problem is rather "an unfortunate situation" than a malicious act.

Also, on the matter of the latter problem — fixing that is much easier said than done. Cryptocurrencies in a way were an attempt to fix that, but governments around the world do not want this problem to be fixed. And of course they don't. The field is highly regulated, because, as I've said, having control over the payment network is not that very much different from having a physical army to physically beat you up.

As an aside, I was especially surprised by:

> We see this at work with hosting.

Do we, though? It's another topic of course, but I actually share the sentiment that the current trend is the opposite one: good old days of the Free Web are gone, and the reality is that in the days of Gmail (and other major mail providers), Cloudflare (and other major CDNs) the Internet is inherently not a decentralized structure anymore. It takes a few powerful friends to reach an agreement with each other, and everyone else has to follow.

So, anyway, what I had in mind was exactly that:

> to regulate payment processors like common carriers and require them to serve everyone equally regardless

But, as I've said, I don't quite see how to draw the line here. After all, it would be somewhat unfair to payment networks to trip them from making any choices. Both because formally they are just a business, not a commodity (which may actually be the root of the problem, I think), and they should have some right to choose how they want to operate; and also because different customers and products objectively carry different risks. So they have to be able to produce some policies, these policies just have to… to be restricted to what's necessary somehow.

krick commented on Valve confirms credit card companies pressured it to delist certain adult games   pcgamer.com/software/plat... · Posted by u/freedomben
ijk · a month ago
One factor is the ongoing campaigns from number of moral crusading groups who lobby them to cut off payment processing for things they don't approve of. NCOSE has been working for decades on the project, and targeting credit card companies has been a successful tactic for them for a decade or so.

[1] https://www.eff.org/deeplinks/2020/12/visa-and-mastercard-ar...

[2] https://www.newsweek.com/why-visa-mastercard-being-blamed-on...

[3] https://scholarworks.iu.edu/dspace/bitstreams/761eb6c3-9377-...

krick · a month ago
I wonder how this type of pressuring can be made illegal. To be clear: I certainly think this has to be made illegal, and even attempt to coerce a payment network to force a business to do something should be a serious crime. If the product is not illegal, you can sell it, either on your platform, or on a third party platform (Steam), if the platfrom is ok with selling your product. It's arguable, but perfectly reasonable to say that Steam can also choose to not sell it if it doesn't want to. But then, of course, it doesn't seem like a huge leap to say that a payment network can choose to not handle transactions for some type of business if it doesn't want to. Sure, you can appeal to it being a de-facto monopoly, but isn't Steam a de-facto monopoly as well? I mean, I have some trouble formally drawing a line here, yet it clearly seems not right to me, that a payment network can choose at all if they want to handle this or not.

And, as I said, attempt to apply pressure on a payment network, in order to apply pressure on its customer, in order to apply pressure on their customers... well, I think it's pretty obvious why this is a problem, and that things are not supposed to work this way.

krick commented on LookingGlass: Generative Anamorphoses via Laplacian Pyramid Warping   studios.disneyresearch.co... · Posted by u/jw1224
krick · 2 months ago
Oh great. Now I suddenly feel the urge to acquire a physical oddly shaped lens or mirror.
krick commented on LibRedirect – Redirects popular sites to alternative privacy-friendly frontends   libredirect.github.io... · Posted by u/riffraff
jamesponddotco · 2 months ago
Seems related, so I’ll share here. I wrote an “awesome” list of privacy-focused front-ends[1] for a variety of services. Haven’t been updated in a while, but I figured it’s still valid.

[1]: https://sr.ht/~jamesponddotco/awesome-privacy-front-ends/

krick · 2 months ago
Instagram doesn't actually work, right? All frontends are down, and it doesn't seem to work locally either.

u/krick

KarmaCake day5262December 15, 2013View Original