megaman

joined 2 years ago
[–] megaman@discuss.tchncs.de 4 points 1 year ago

I learned a lot about pandas (a library built mostly on top of numpy) by going to stackoverflow and trying to answer questions with the tag. Hopefully the questions have a minimal reproducible example and are isolated to one specific question

[–] megaman@discuss.tchncs.de 5 points 1 year ago* (last edited 1 year ago)

Ive got this working with Caddy and Adguard

I use Caddy as my reverse proxy. It is running on the machine in the basement with all the different docker-container-services on different ports. My registrar is set up so that *.my-domain.com goes to my IP.

Caddy is then configured for 'service-a.my-domain.com' to port 1234, and the others going to their ports. This is just completely standard reverse proxy.

For some subdomains (i.e. different services) ive whitelisted only the local network. There is some config for that.

Im pretty sure that I also have to have adguard do a dns rewrite on the local network as well. That is, adguard has a rewrite for '*.my-domain.com' to go to 192.168.0.22 (the local machine with caddy). I think i had to do this to ensure that when the request gets to caddy it is coming from the local whitelisted network rather than my public IP (which changes every couple months, but could be more).

[–] megaman@discuss.tchncs.de 33 points 1 year ago

Your comment is really useless. I support the cause of free speech, but there is absolutely no need for what you said. I think this community is meant for discussions that are meaningful

[–] megaman@discuss.tchncs.de 9 points 1 year ago (4 children)

Everyone who downvoted me didnt read the article, or didnt read what i said, or didnt read op, or something, i dont remember what they didnt read but they cannot be real because the only way to disagree with me is to not have read something or other (or did read it, cant remember which)

[–] megaman@discuss.tchncs.de 12 points 1 year ago (6 children)

I read the fun blogpost that is not an academic paper and ive downvoted you. Does that mean i dont actually exist or that u dont actually exist???

[–] megaman@discuss.tchncs.de 6 points 1 year ago

What in the hell is this cursed bot image?

[–] megaman@discuss.tchncs.de 21 points 1 year ago (1 children)

When i was doing a headless install, i spend a hour or two trying to figure out how to pre setup configs for the debian installer or how to do it over network or what before i finally lugged the new machine to the other room and plugged it into the monitor and keyboard of the main rig, installed it all (and set up ssh so i can later get into from the main rig), and unplugged it.

My point is, even if it isnt trivial to have the keyboard and monitor, it may be much easier to get them than to really do an install without them.

[–] megaman@discuss.tchncs.de 1 points 1 year ago

That dude looks like Hugh Jackman

[–] megaman@discuss.tchncs.de 8 points 1 year ago (1 children)

Inside me there are two wolves, one that thinks "gamer" stuff is stupid, and another that thinks this router looks sweet as hell.

[–] megaman@discuss.tchncs.de 6 points 1 year ago* (last edited 1 year ago) (1 children)

This whole thing is a depressing hoot

But Mr. President, won’t your newly announced tariffs raise the prices on American consumers?

Biden: No, because here's the deal. There's a difference. I made it clear to Putin from the very beginning that—I'm not, we're not engaging in…For example, Trump wants a 10% tariff on everything. That will raise the price of everything in America. [Editor’s note: Biden appeared to mean Xi here, not Putin.]

[–] megaman@discuss.tchncs.de 3 points 1 year ago

Well it is a simple meme that shouldnt be considered a stand in for a complete set of ideas, it does sure seem like it is saying to remove all the zoning restrictions.

[–] megaman@discuss.tchncs.de 2 points 1 year ago (5 children)

Ive got some stuff that i think is similar to what you are trying where i have an excel file template and use python to read from the database and populate cells in excel and then save a pdf.

There are a couple different options for python libraries - openpyxl, xlwings, or pywin32.

It is annoying and goofy, but works. Excel can be very flexible with getting everything sized just right for what your final output/pdf should look like.

view more: ‹ prev next ›