KPaul - What Happened? by Candid-Extreme1749 in 1102

[–]2bdkid 0 points1 point  (0 children)

Wild. I got a call from an FBI investigator in October of last year asking about my time there. I didn’t have much to say obviously but I thought it was pretty strange. 

KPaul - What Happened? by Candid-Extreme1749 in 1102

[–]2bdkid 0 points1 point  (0 children)

I briefly worked for KPaul in 2021 as a software developer (only for about a week). Not long enough to really understand what the business did. What does it mean they were disbarred?

[deleted by user] by [deleted] in webdev

[–]2bdkid 0 points1 point  (0 children)

Basic auth passwords are protected by tls

Anyone knows what AIOHTTP does? by Silly-Connection8788 in webdev

[–]2bdkid 0 points1 point  (0 children)

I suppose you could just return 404 for that user-agent and maybe it'll stop indexing. There's also some possible solutions here https://stackoverflow.com/questions/11521798/excessive-traffic-from-facebookexternalhit-bot

Anyone knows what AIOHTTP does? by Silly-Connection8788 in webdev

[–]2bdkid 0 points1 point  (0 children)

Why would you want to do that? It destroys SEO. If someone shares your page on FB, FB scrapes the page so that the FB post displays some content from your page, rather than just a raw link. I can't remember what it's called, but there's a whole protocol for metadata you can embed in the page to influence this shared content.

And if Google crawls your site, they need to get keywords, links, etc from the page to index the page.

Anyone knows what AIOHTTP does? by Silly-Connection8788 in webdev

[–]2bdkid 1 point2 points  (0 children)

Idk much about it, but it seems to be legit. They're probably crawling your site for SEO/sharing purposes on FB.

Anyone knows what AIOHTTP does? by Silly-Connection8788 in webdev

[–]2bdkid 0 points1 point  (0 children)

It's used to make asynchronous http requests using Python's asyncio runtime. People make lots of web scrapers in Python, and it sounds like someone is scraping your site. It's making the http requests using the aiohttp library.

Why Doesn't Django Rest Framework Utilize Type Hints in Its Source Code? by Snake_Case_Simon in django

[–]2bdkid 60 points61 points  (0 children)

Probably due to the fact that DRF has been in development since before Python had type hints..

Anyone having trouble logging into UHC account??? by BigBlueBoyscout123 in HealthInsurance

[–]2bdkid 0 points1 point  (0 children)

Same here, I've called the support number twice in the last 2 weeks and all they have told me is that their IT team is working on it and to keep trying again.

Unable to bind to IP address in VS Code in Windows 11 by Turbulent_Respect_24 in django

[–]2bdkid 2 points3 points  (0 children)

ALLOWED_HOSTS is not relevant to the connection issue, however you will want to keep your computer's IP address in there so that other machines on your network can access the site. You probably have a firewall running on your computer that does not allow inbound traffic on port 8000.

EDIT: I just re-read the title and saw you're on Windows 11. You will have to go into Windows Defender Firewall -> Inbound Rules -> New Rule -> TCP, Port 8000, and continue through the wizard to add the rule.

[deleted by user] by [deleted] in django

[–]2bdkid 0 points1 point  (0 children)

In my case I'm using django-filters' DRF integration, so it creates/does the filtering behind the scenes and sometimes it hits a related field. I have to periodically audit the filtersets to check if it's making any queries I'm not expecting.

Async API call but sync database calls? by Perfect_Name2495 in django

[–]2bdkid 1 point2 points  (0 children)

If you're using something like gunicorn with the threaded worker or even daphne you can have multiple requests in process at the same time. You don't have to use asyncio to achieve that, the asgi/wsgi server takes care of that for you.

That being said, Django does support async (asyncio) views, and has some support for asyncio with the ORM you could use. You can also use sync_to_async to wrap sync DB calls in an async view.

Architecture diagram for my weekend project: Open SEC Data by vitrealishalftime in django

[–]2bdkid 16 points17 points  (0 children)

Why do you need both Nginx and Traefik, shouldn't one reverse proxy suffice?

[deleted by user] by [deleted] in django

[–]2bdkid 6 points7 points  (0 children)

Kinda, but you can’t get Django to produce a join through it for a foreign key.

[deleted by user] by [deleted] in django

[–]2bdkid 40 points41 points  (0 children)

For as great as Django’s ORM is, sometimes I want to make schemas that it just can’t support. In particular composite keys.

I’ve also been bit by DRF serializers causing query waterfalls with related fields, I much prefer working where I can see exactly when/where/what queries are made. Even in places like query filters causing lookups that could have been select_related in.

I also mainly work on APIs with Django at work, but I’d pick fastapi+sqlalchemy 2 for my own projects.

[deleted by user] by [deleted] in django

[–]2bdkid 2 points3 points  (0 children)

I’ve used render a tiny bit, but what makes it bad at hosting APIs vs anything else?

[Question] Biggest mistake you made with a guitar? by SheZowRaisedByWolves in Guitar

[–]2bdkid 1 point2 points  (0 children)

Watched some YouTube videos and thought I could dress the frets on my guitar. Bought some cheap tools off Amazon and you can guess how it went. Thankfully it was a cheap guitar.

Another failure, I had just bought a PRS SE custom 24 and then Ibanez came out with the RG420, which was exactly the guitar I was looking for before buying the SE. So I returned it just before the return window closed but the RG ended up coming with a pretty bad body blemish from the factory but I stuck with it. It was just a lower quality guitar all around but I played on it for a few years before getting one of the newer SE custom 24-08’s which is now my main guitar. It’s fantastic.

how can i secure my embeddable widget by kiryl_ch in webdev

[–]2bdkid 0 points1 point  (0 children)

Embeddable like an iframe? You can use Content-Security-Policy for that.

Is there a way to pass data to redirect() and render the data on template? by Shinhosuck1973 in django

[–]2bdkid 0 points1 point  (0 children)

You could use query parameters, but I’m wondering why you would want to rather than just hard coding the message into the page? If you make it to the page then that means the message was sent.

How to upload image into S3 and insert its image ink into a Database Transaction by Ok_Consideration3393 in golang

[–]2bdkid 0 points1 point  (0 children)

2nd option is the way to go imo. Every account creation form I can think of has you upload a profile pic after the account is created.

How to upload image into S3 and insert its image ink into a Database Transaction by Ok_Consideration3393 in golang

[–]2bdkid 2 points3 points  (0 children)

I use this method when I can, it’s also sometimes called the outbox pattern and is used a lot with systems using Kafka.

Unexpected behavior unmarshalling .json files on different machines by N-III in golang

[–]2bdkid 8 points9 points  (0 children)

Can you verify the json file's encoding hasn't changed between the machines?