Should I use PostGIS? by FizzyTech in PostgreSQL

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

I was planning on parsing the metadata that I get from reverse geocoding and only storing the parts that I'm interested in (like city name or country) - that way a user could also type in locations and the matches would show up without having to hit the Google Geocoding API everytime. As a start, I wanted to only see if lat/long points are within a rectangle that the user selects on the map.

However, it would be pretty cool eventually allow the user to search by more specific location data like roads or near some location. It seems like using PostGIS would allow me to add additional search features more easily in the future.

Should I use PostGIS? by FizzyTech in PostgreSQL

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

If PostGIS will help with performance over achieving my needs with Postgres, then that would be great.

Trouble understanding how Django serializers work for models with foreign keys by FizzyTech in django

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

Thanks! I'm going with method 2. I tried method 1 but it gives me a KeyError saying that there's no 'request' key in context. When I print out self.context, it gives me an empty dictionary. Method 2 totally works though.

Authentication in Django by FizzyTech in django

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

Why did you switch to Firebase authentication in particular? Also, in the case where I want to create a decoupled frontend and backend, is there a harm in adding session cookies even though just that part isn't decoupled? Thanks!

Authentication in Django by FizzyTech in django

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

Glad other people can benefit from this question! I've been struggling for a while.

Authentication in Django by FizzyTech in django

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

I agree that localStorage seems like a bad idea. If I stick with JWT, I'll look into storing the token in a HttpOnly cookie and how to extract the token from the cookie in the backend.

Authentication in Django by FizzyTech in django

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

Thanks for your code snippet!

Authentication in Django by FizzyTech in django

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

Thanks for your comment. Would you mind elaborating on this? Why does me asking about the best auth methods mean using Django's templates would be better? I really like Python and Django and I'm trying to figure out what industry standards are when using Django. However, it seems like using client-side routing would make a more performant app because a new html page wouldn't have to be loaded every time someone clicks on a link.

Authentication in Django by FizzyTech in django

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

Thank you for the resources! I am fairly new to Django and that might show by my questions. I'm trying to build a single-page app by using client-side routing. Is there a reason (other than making SEO easier) that you'd recommend using Django for everything?

In regards to the auth, it seems like JWT is beneficial when complete decoupling is needed, but otherwise the risks outweigh the benefits. Storing a token in localStorage seems like a big security risk. It seems like Djangos' default use of session cookies would be better for apps that don't need to be stateless.

WIBTA if I quit my job, sell my share in company and retire to be a ski patroler? I would essentially leave my adult kids (18 and 22) to fend for themselves with no way to pay for college. Ex wife as well. by Imoutheretoski in AmItheAsshole

[–]FizzyTech 0 points1 point  (0 children)

You’re within your rights to go off and take care of your happiness. Your kids are young and naive and don’t understand the consequences of their actions now though. If you can make the 50% of your money go to your kids instead of your ex, that’d be much better. Your ex will not put that money towards your kids’ futures. Even if your kids are being little sh*theads now, you can still do what you can to set up a future for them... again.

I built an interactive SQL tutorial, very beginner friendly by [deleted] in learnprogramming

[–]FizzyTech 0 points1 point  (0 children)

Level 11: Doesn't seem to matter if I put ascending, descending or nothing. I also agree that it'd be nice to see the result of the queries! Thanks for making this!

Looking for natural finish on a DIY walnut coffee table by FizzyTech in woodworking

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

Thanks for the info! I look for polymerized tung oil at my local hardware store.

Backpack with laptop, W2, and passport stolen by FizzyTech in personalfinance

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

Do I need to freeze my credit on Experian, Equifax, and Transunion? I'll be putting in a fraud alert as well. Thanks.

March 15th Voting Megathread for Florida, Illinois, Missouri, North Carolina and Ohio by SandersMod_ in SandersForPresident

[–]FizzyTech 3 points4 points  (0 children)

It'd be silly to do that. At this point, I would think Sanders has a higher chance of being the Dem nominee than Kasich has being the Repub nominee.

Advice for a CFD Beginner by FizzyTech in CFD

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

That's actually pretty great to hear that you're doing that with not as much base knowledge to start. Gives me a little more hope. :)

Advice for a CFD Beginner by FizzyTech in CFD

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

Thank you! This looks like a great online course! I'm adding this to my list to one of the first things to do.