Has anyone got a list of questions I can ask a potential fitness trainer to ascertain whether or not they are likely to be in one of the more science-based fitness camps?
Every time I try to read a book on fitness, it's all, "The one simple trick to get ripped abs with zero effort!" I want a fitness coach with a pragmatic, skeptical point of view.
@ashwinvis I can heartily recommend staying far away from any packaging discussions.
as an asian, i can’t see anything wrong with this, @pganssle
new #covid #covid19 blog post https://www.harihareswara.net/sumana/2021/08/25/0 The Delta Variant, Better Masks, and Free Testing
I am concerned about COVID-19 trends; particularly if you are in the US you should be aware and make/modify plans accordingly. Some of this post is New York City-specific.
Ooh, nifty:
Saving memory with Pandas 1.3's new string dtype
https://pythonspeed.com/articles/pandas-string-dtype-memory/
ffmpeg programming, call for help
if anyone knows how to mux a raw h264 stream (I get a callback each frame with ptr/len/IDR) into any format, preferably something like mpegts though, with a recent version of libavformat, please let me know
it feels like it should be pretty straightforward but I can't even get past the initialization code
Bryan Caplan makes a very compelling point that if you think first-hand accounts are not credible, you should find the news even *less* credible: https://www.econlib.org/first-hand-experience-is-less-biased-than-news/
I think the second two points are doing most of the work there.
I tend to agree with his assessment, but I think he's discounting (or missing) several things working in the other direction:
1. Institutional and reputational forces. If news consumers care about truth or if the culture among journalists is to value truth, news organizations have incentives to work against these biases.
2. "Reliable" is ill-defined here. If most people's threat model is "someone might lie to me, have been deceived or be wrong", in theory news organizations may be more trustworthy - they are much more likely to simply be wrong than to lie, and they can and often do hire fact checkers to follow up more deeply into a story than any random person would.
3. People may be aware that "shows up frequently in the news" is only weakly correlated with "happens a lot", and may already strongly discount this factor. Reading an accurate account of a very unlikely thing is not really *wrong*, and it's unclear how it compares to a dubious account of a relatively common thing in terms of pragmatic value.
@freemo Nice, thanks!
For anyone who missed the reply chain, I figured this out: https://qoto.org/@pganssle/106794915957856274
@edsu Interesting. I sorted it out by adding `daemon off` to the config: https://qoto.org/@pganssle/106794915957856274
@freemo That said I am 100% on board to take what you've got and run with it. Is there a link to what you've got somewhere?
@freemo Ooh, I got it working!
Changed:
```
command: "nginx"
```
to
```
command: ["nginx", "-g", "daemon off;"]
```
I can now curl `localhost` from outside the container just fine.
@freemo What do you mean by "bind to all IPs"?
The long-term goal of this particular container is as a reverse proxy — my idea was that I'll have one nginx container sit on top of all my other containers, all of which will expose ports only on the container network or whatever it's called, and nginx would redirect various subdomains to the relevant container.
So at the end of the day, this container needs to be exposed to the internet (and preferably the LAN and local machine as well, for easy testing).
@edsu It's supposed to be config/nginx/nginx.conf, gist doesn't support directories.
@freemo How do I know what the exposed IP is? I've tried curling the IP of this machine from another machine and I get the same thing.
Anyone have an idea what I'm doing wrong here?
https://gist.github.com/pganssle/31a899ea34d2ecff77034b25e077b600
I can't seem to get a minimal docker-compose configuration to expose nginx outside of the container.
(Note, replace _ with / in the file names of the gist).
Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.