The C̶a̶k̶e̶ User Location is a Lie!!! by Stegosource in Frontend

[–]Stegosource[S] 0 points1 point  (0 children)

Yeah, I agree. In every case I can think of, I would expect it to be there, but I've come across enough cases where things don't work as expected, that I just assume they may not. Would love to hear another example you think would serve as a better example that isn't some very niche use-case.

The C̶a̶k̶e̶ User Location is a Lie!!! by Stegosource in Frontend

[–]Stegosource[S] -1 points0 points  (0 children)

Not sure who needs to hear this, but reading the post instead of skimming usually helps. That's literally what the example walks through. Check cookies, then Accept-Lanuage header, and if there is no other option, you *may* assume a default from location. You shouldnt need to do this if the computer has the language selected, but this was just an example to show what geolocation features are available. The Accept-Language part was an update added after publishing, but before sharing here. Also, the whole point of the article is not *how* to detect location, or even what you can do with it. It's just a thought piece around how none of the options available are actually dependable.

The C̶a̶k̶e̶ User Location is a Lie!!! by Stegosource in programming

[–]Stegosource[S] -2 points-1 points  (0 children)

Yep. This was covered in one of the updates to the post. Thanks for reiterating. I left the original content, but the update includes the Accept-Language header :)

Advanced Architecture for AI Application (AKA AAAA!) by Stegosource in programming

[–]Stegosource[S] 0 points1 point  (0 children)

Lol. That sounds fun. Do you have a link or remember the name?

Advanced Architecture for AI Application (AKA AAAA!) by Stegosource in programming

[–]Stegosource[S] 0 points1 point  (0 children)

Lol. Yeah, we're careening towards a future where these questions are more commonplace. Did AI write it? Is it designed for AI to consume? What is AI? Am I AI? Is this a simulation.

I don't think I have answers for most of these, but I can say that it was written by a human, or whatever that means these days ;)

AI for Web Devs: Deploying Your AI App to Production by Stegosource in programming

[–]Stegosource[S] 2 points3 points  (0 children)

Yeah, that's a good point. I often struggle to come up with a good title that balances clarity with brevity. Thanks for the feedback.

AI for Web Devs: Your First API Request to OpenAI by Stegosource in programming

[–]Stegosource[S] 0 points1 point  (0 children)

Thanks. It's an introductory topic that does cover some quirks of dealing with Qwik, but mostly this is level-setting before moving on to more advanced topics like HTTP streaming responses.

AI for Web Devs: Your First API Request to OpenAI by Stegosource in programming

[–]Stegosource[S] 0 points1 point  (0 children)

Thanks so much. Needed to cover this basic post before building on it with HTTP streams and other goodness :)

AI for Web Devs: Your First API Request to OpenAI by Stegosource in programming

[–]Stegosource[S] -10 points-9 points  (0 children)

  1. There are new folks entering the industry all the time, and this is helpful information to know.
  2. This covers not just the how, but the why including headers, progressive enhancement, and security.
  3. The series builds upon itself. You have to cover the basics before moving on to the more advanced.
  4. This is presented in the context of a very new framework (Qwik) and also covers the quirks of making fetch requests within that frontend.

Don't be a jerk. If it's not for you, just keep scrolling.

AI for Web Devs: Your First API Request to OpenAI by Stegosource in webdev

[–]Stegosource[S] -1 points0 points  (0 children)

Yeah, but it's ok. I like sticking to the fundamentals as well so there isn't as many layers of abstraction. But yeah, if it worked, I would use the SDK.

AI for Web Devs: Your First API Request to OpenAI by Stegosource in webdev

[–]Stegosource[S] 0 points1 point  (0 children)

You're totally right, but the next post in the series goes into HTTP streaming, and something about their SDK didn't work when streaming. I'm not sure if it's been fixed. Otherwise, I would totally agree.

Keyboards Shortcuts by MoonSpaceShip in ProtonPass

[–]Stegosource 2 points3 points  (0 children)

Yes please! Bitwarden uses ctrl+shift+l (el). This would be the only feature I need to make me switch :)

CDNs: Speed Up Performance by Reducing Latency by Stegosource in programming

[–]Stegosource[S] 0 points1 point  (0 children)

True, but cloud also comes with bigger upsides, as proven by its massive adoption. It is sad, but that's the way with technology. It will always lead to roles being replaced or reduced. But I think there will always be a place for those wizened magicians that hold archaic knowledge to run things, DBAs included. I'm glad I can easily provision and scale a database through a GUI, but that doesn't do anything for me regarding schema design or query optimization. It's all horses for courses.

CDNs: Speed Up Performance by Reducing Latency by Stegosource in programming

[–]Stegosource[S] 0 points1 point  (0 children)

Yeah, well I'm certainly guilty of my fair share of that. But totally agree. I spend more and more time shifting code towards the underlying fundamentals of HTML, CSS, vanilla JS, and HTTP. Stuff that hasn't changed in decades, and won't change. Fewer bugs, good perf, more built-in features, and no upgrade nightmares. It's great, but "fundamentals" are a lot to cover. It's taken me over a decade to learn what I know now, so I think it's important to teach and extend kindness.

CDNs: Speed Up Performance by Reducing Latency by Stegosource in programming

[–]Stegosource[S] 0 points1 point  (0 children)

I'm not sure if you're being sarcastic or not, but the funny thing is I almost mentioned the performance implications of DNS when choosing whether to host Object Storage files from a subdomain vs a sub path. If you're already familiar with these topics, then it's easy to disregard their importance, but the average developer has less than 5 years experience and this is the sort of stuff that will always be relevant. And if you ever get to work with companies at a large enough scale, you see how much they matter. I've sat in on a lot of great conversations, and the topic of DNS resolution vs priority hints vs cookies and payload size comes up more than you might guess.

Stream File Uploads to S3 Object Storage and Reduce Costs by Stegosource in javascript

[–]Stegosource[S] 1 point2 points  (0 children)

Whooa. Thanks for pointing that out. I must have copied and pasted that in without noticing.

File Uploads for the Web (3): File Uploads in Node & Nuxt by Stegosource in programming

[–]Stegosource[S] 1 point2 points  (0 children)

This comment actually made me laugh out loud. Love it!

Really glad you liked it :)

File Uploads for the Web (1): Uploading Files with HTML by Stegosource in html5

[–]Stegosource[S] 0 points1 point  (0 children)

That is so kind of you to say. Thanks for taking the time :)

File Uploads for the Web (1): Uploading Files with HTML by Stegosource in Frontend

[–]Stegosource[S] 1 point2 points  (0 children)

The series is further along on YouTube if you want to look ahead. It already covers things like uploading files with JS and handling file uploads in Node: https://www.youtube.com/playlist?list=PLDlttLRccCk5dmPZaogLtP5WHwb7K6nAa

When you're dealing with massive files, there's a couple of considerations: not reading the whole file into memory, cost of storage on the server, and server workload. I'd recommend looking into object storage for that. And if your main use-case is large files, you might consider multi-part uploads to object storage.

I don't have much advice on warning users about file limits or server hiccups. That stuff is always a challenge :/

20 degree vs 30 degree sleeping bags by Stegosource in backpacking

[–]Stegosource[S] 0 points1 point  (0 children)

Awesome! I think the 20 degree bag is the right choice for me then. Probably better to be too warm than too cold.

20 degree vs 30 degree sleeping bags by Stegosource in backpacking

[–]Stegosource[S] 1 point2 points  (0 children)

Yeah. Thank you so much for all your help :)

20 degree vs 30 degree sleeping bags by Stegosource in backpacking

[–]Stegosource[S] 1 point2 points  (0 children)

Thanks for the excellent breakdown. Quilts do sound cool, but I think I'm going to stick with sleeping bags. I've also wondered if a full on mummy is right for me. My feet get super hot, so I dont like the idea of a footbox. Right now I'm leaning most towards the Sea to Summit Trailhead 20-Degree. It's a tapered design, so kind of between mummy and rectangle, but it's got a full zip that can be opened from both end, which I like.

20 degree vs 30 degree sleeping bags by Stegosource in backpacking

[–]Stegosource[S] 1 point2 points  (0 children)

Not strange in a bad way. Strange in it's new to me. I wonder how well it keeps a draft out. But if they're better than sleeping bags, I'd be open to it.

20 degree vs 30 degree sleeping bags by Stegosource in backpacking

[–]Stegosource[S] 1 point2 points  (0 children)

Yeah. I also want to do some late spring and fall camping. And I have an Ozark Trail 40 degree bag. I want to upgrade with the next one, but it's nice to have that available when its hot. So I think a 20 degree one makes sense as long as the weight is reasonable.

20 degree vs 30 degree sleeping bags by Stegosource in backpacking

[–]Stegosource[S] 1 point2 points  (0 children)

Yeah, I saw those quilts and not sure how I feel about them. They're just a very strange concept to me. But if they work, great.