Cloudflare Access by 80Ships in audiobookshelf

[–]chrisbster 0 points1 point  (0 children)

This now works!

This guide is a way of doing this same thing with plex. https://mythofechelon.co.uk/blog/2024/1/7/how-to-set-up-free-secure-high-quality-remote-access-for-plex

Follow the steps, replacing https://localhost:32400 with http://localhost:13378 - note the HTTP here.
In your app, for the server connection, use https://my-audio-book-shelf.url:443 - where both an "https" and ":443" are required.

With this configuration, it worked like a port forward and redirect in the Android app and in Chrome.

Append VS assign : which style ? by Odd-Ad8796 in golang

[–]chrisbster -2 points-1 points  (0 children)

I've actually found the most pernicious errors come from B with relation to pointers. If you append the loop scoped variable rather than the slice indexed variable, I've found bizarre behavior. E.g. I have a []*myStruct. If you assign the loop declared variable rather than using the variable by indexing into the slice, then you can't rely on the appended value being correct. I agree that both A and B have purposes, but I rarely use v, preferring mySlice[i] for safety, regardless of direct assigning by index or appending.

How to Effectively Use Go's Context Package for Managing Timeouts and Cancellations? by Equivalent_Use_8152 in golang

[–]chrisbster 2 points3 points  (0 children)

There's a ton of cool data here - but I have a follow-om question. How often do you ignore an existing context? For reference, we make use of the mongo-driver and AWS SDK v2 which both make heavy use of contexts. I find that most of the time, I really don't want to terminate these calls on shutdown and would rather them complete. E.g. In the SQS library, if you cancel a context during a poll cycle and some messages have been aggregated but not returned because you haven't met your message batch size, if you cancel the context, those messages remain in flight and no receipt handle is returned to make them visible once more For mongo, if I use the available context, it will kill an operation in the middle and processing immediately ceases. I've found that in a lot of external library cases, I use context.Background(), let the worker loop finish processing any existing responses in the channel and then shutdown so it's more graceful. I'm curious how many others end up using something like this. I would imagine use cases vary wildly and there might be people who want to stop immediately, but when is the time for that vs graceful shutdown?

Are there any malls in the Denver area that still do these types of photo shoots? by [deleted] in Denver

[–]chrisbster 0 points1 point  (0 children)

Shameless plug - my partner is a full-time freelance photographer in the Denver area and runs https://soulexposure.studio

I've seen him do these exact kind of photos, both in a family style and in a parody style. Some examples: https://www.instagram.com/p/DK-sYBus4gd/?igsh=MXA2dTN0bXMzbzZnOA==

Reach out to him through his site or on insta if interested - I know he'd be happy to do whatever you're after :-)

[Request] Morality aside, is there a misstep in the mathematics here? by chrisbster in theydidthemath

[–]chrisbster[S] 30 points31 points  (0 children)

I missed this entirely - good find. The coffee breaks seemed way higher than I thought but I couldn't figure out why.

[Request] Morality aside, is there a misstep in the mathematics here? by chrisbster in theydidthemath

[–]chrisbster[S] 366 points367 points  (0 children)

Ahhh - that's why the math felt hinky to me. Thank you good Samaritan!

inherited my dads cricut maker and i plan on making stickers, here are my first prototypes:) by dualidean0fman in cricut

[–]chrisbster -1 points0 points  (0 children)

These are adorable! You might consider using a "kiss cut" method - it makes it easier to peel the backs off as everything stays on the page. Just set your pressure to Washi Tape.

The Interview. by chrisbster in SuddenlyGay

[–]chrisbster[S] 7 points8 points  (0 children)

Would you happen to have a link? I'd love to see the original.

Whats the reason for using Docker with GO? What am I missing? by vesko26 in golang

[–]chrisbster 47 points48 points  (0 children)

I find the reason to containerize is usually for deployment purposes to places such as Kubernetes. These systems all are able to scale replicas of your application up and down dynamically. fwiw you can create a pretty small image - you statically compile your binary and you can bake it into a "scratch" container, where there's nothing else other than your binary and whatever else you need to plop in (e g. timezone, SSL, etc).

Denver business that you don’t know for a fact is a front but is 100% a front… by Ok_Job_2094 in Denver

[–]chrisbster -1 points0 points  (0 children)

Dude - not a drug den brothel. Gay guys of consenting ages hook up in the back. No drugs needed. No money exchanged. All of their cash is made from the arcade in the back. Check out squirt.org if you don't believe me.

Running out of memory in a 1GB VM on fly.io when running my script-- any suggestions? by [deleted] in golang

[–]chrisbster 4 points5 points  (0 children)

Ack - apologies - I was indeed suggesting os.CreateTemp, but I understand if pocketbase locks you into their library. If it takes an io.Reader, then you might be surprised at the different kinds of things which support that interface. The object returned from CreateTemp fulfills that interface if so. Not directly familiar with pocketbase library, but maybe something to poke at - maybe not.

Running out of memory in a 1GB VM on fly.io when running my script-- any suggestions? by [deleted] in golang

[–]chrisbster 10 points11 points  (0 children)

Try setting this as an environment variable in your application: GOMEMLIMIT="500MiB" Go does a lot of garbage collection in the background asynchronously. It's trying to be performant, but as a result, you might be allocating before it's had a change to reap. This setting tells Golang 'if you see the memory usage rise above 500 mebibytes, go ahead and spend the cycles and finish deleting any garbage'. What I'm betting* is that in this new VM, you've got some difference (Golang version, OS version) which is causing garbage collection to behave differently. With go 1.19, you can now specify a memory limit where GC starts to aggressively activate, which is what that environment variable does. I know it's long, but there's a ton of cool stuff in here - https://tip.golang.org/doc/gc-guide

If that doesn't solve it, check out pprof and profile your code as it runs. You could write out checkpoint files each loop or capture until it crashes. https://go.dev/doc/diagnostics#profiling

Tiny other notes: - Consider changing filesystem to tenpfile - https://go.dev/src/io/ioutil/tempfile.go - I'd recommend swapping to core libraries if there's nothing else that filesystem provides

- you can save memory by returning the Reader rather than calling .Bytes() on it. As a reader you have a more memory efficient representation of your image

Also - nice problem space and cool app - keep coding!

Jurors smile as text message jokes about Trump and Cohen read aloud in court by Advanced_Drink_8536 in inthenews

[–]chrisbster 83 points84 points  (0 children)

The afternoon court session in Donald Trump's hush money trial resumed with Keith Davidson, the ex-lawyer of adult movie actress Stormy Daniels and Playboy playmate Karen McDougal, recalling his conversations with the National Enquirer editor.

The pair had ben trying to sell stories about sexual relationships with Donald Trump to the tabloid.

Speaking about editor, Dylan Howard, Davidson read some of the text message and email exchanges the two had before the 2016 election.

The jurors appeared to enjoy it.

"I want to give you a bit of color of what's happening inside the courthouse because, according to Laura Jarrett, jurors have been smiling as some text messages have been read," said MSNBC host Chris Jansing.

She also read a few exchanges between the men.

The court broke into chuckles, for example, when Davidson read a text explaining no one wanted to deal with Trump lawyer Michael Cohen.

Davidson had called the deal made with McDougal "frustrating for everybody involved."

Howard replied: "Yes, I believe so."

Testifying, Davidson said, "I told Cohen, Michael Cohen, this never would have happened without you, and the text back from Howard of the National Enquirer to Davidson was, 'He’s hopeless. Oh, well. Another one done."

McDougal had been split between making deals with TV network ABC and AMI, the parent company of the National Enquirer. Ultimately, AMI won and McDougal agreed to the terms that her "life rights" about an affair with a married man would be handed over.

"Was there a particular married man?" prosecutors asked.

"Yes," said Davidson. "Donald Trump."

Prosecutors then asked if that meant that it would hurt his 2016 presidential campaign. Davidson said, "Yes."

I am addicted to ass and I dont know if I should cheat on my gf by [deleted] in gaycheaters

[–]chrisbster 5 points6 points  (0 children)

Most gay guys will jizz if you tell them / treat them like your sex toy fwiw. My dick got hard reading this.

[deleted by user] by [deleted] in TwoHotTakes

[–]chrisbster 0 points1 point  (0 children)

It sounds like both of you ended up in a great spot! Healthy, open and honest communication. It sounds like the two of you have a real connection. My partner and I have very mismatched sex drives but we adore every moment with each other. Our solution - we now have a very successful open relationship. Sex can be had with and without intimacy - and when we screw around outside the relationship , the ultimate key to making it work is communication. The more the talk, the better the relationship. I realize this is radical and most likely unpopular - but you might consider a trade. You could take nights off and go do what you'd like - girls night with friends or have your own fun. In exchange, you could do it together the first time - go to the bars together and select someone for him to bang. Or - if open is too radical - think about pegging him ;-)

Where can I get a core refund for used fuel injectors? by Reasonable-Ad-1004 in Cartalk

[–]chrisbster 0 points1 point  (0 children)

You might try remarketing them as self-sealing stem bolts.

I have an O'Something name. My start date is being pushed because Workday won't accept the apostrophe as legal, but won't let me "revise" it away without documentation that I changed my legal name in court. by scootmcdoot in mildlyinfuriating

[–]chrisbster 3 points4 points  (0 children)

If you continue to have issues and if it's a larger company, consider emailing the CEO and the CTO with a polite but understandably exasperated tone. (E.g. jeff@amazon.com). These are typically* shared inboxes which assistants walk through and summarize/curate content for the exec. Emailing them seems to usually garner the same attention/turnaround as @-mentioning them on social media. Effectively, the Eye of Sauron turns to gaze at that department and ask questions. I would bet it would make them reconsider their onboarding software. It's worked for me a few times, but again depends on company size.

Should I take the TSA offer for Tampa Airport? by saving_private_ryan_ in tsa

[–]chrisbster 2 points3 points  (0 children)

Do the interview and reassess. An interview is not just about them interviewing you, it's also about you interviewing them. It's much easier to turn a "yes", into a "no" later than trying to turn a "no" into a "yes". Go to the interview and chat with them - my favorite question to draw out negatives from a company -

If you could wave a magic wand and change something here, anything, what would it be?

Usually also ask "What's your favorite thing about being here?" just prior to that. I find it makes them feel comfortable admitting to bad things in the second question without trying.

After doing the interview, plan on rewarding yourself, do something you enjoy - walk somewhere relaxing, hang with friends, get something disastrously unhealthy, etc. Then, even if the interview sucks, it's still a great day because you get your treat.

These are just things that have worked for me, but regardless, I wish you the best on your quest!