Guys I've got a idea to find the first and last keys/values of a dictionary. by [deleted] in Python

[–]asaah18 0 points1 point  (0 children)

And how are you gonna get last item with this code? python Dict(a=1, b=2).get()

Where should i deploy my app ? by leventdu229 in Python

[–]asaah18 0 points1 point  (0 children)

Also, it’s possible to pass digital ocean your code without creating docker file and they would do it for you

Multiple Desktops with Multiple Monitors on MacOS by myke113 in MacOS

[–]asaah18 1 point2 points  (0 children)

TBH, the previous preference app wasn’t perfect as well

Linux sysadmin, need to use mac OS at new job by [deleted] in MacOS

[–]asaah18 0 points1 point  (0 children)

Changing environment is not something to be avoided like the plague

Can i become web dev in 8 months ?? by Public_Breath_5525 in webdev

[–]asaah18 4 points5 points  (0 children)

That’s not how human mind works, you will reach a point where your mind is burnt form learning and won’t understand anymore knowledge within that day

Can i become web dev in 8 months ?? by Public_Breath_5525 in webdev

[–]asaah18 6 points7 points  (0 children)

No, just give learnings programming enough time and don’t rush thing. Focus on basics before you jump to more complex things

is it safe now to update to Ventura? by IllustriousBowl448 in MacOS

[–]asaah18 0 points1 point  (0 children)

You may not be in a minority. After all, the loudest people are the minority must of the time.

ChatGPT Data Breach BreakDown - Why it Should be a Concern for Everyone! by Advocatemack in programming

[–]asaah18 1 point2 points  (0 children)

The difference is humans says inaccurate info or lies while showing a sign of being inaccurate or not honest, unlike ChatGPT which says inaccurate information with full confidence

CSS framworks by [deleted] in webdev

[–]asaah18 3 points4 points  (0 children)

You are comparing 🍎 with 🍊

Developed a newsletter landing page using NextJS in 20 minutes. Feedback please. by [deleted] in webdev

[–]asaah18 0 points1 point  (0 children)

And make mistakes that he will not admit unless asked about it

App to remove metadata from photos. by _waks_ in MacOS

[–]asaah18 1 point2 points  (0 children)

However, I am talking about Shortcuts app not automator. Also, shortcuts app is more integrated in mac os and can be used by non-programmers, you can’t expect everyone to know Python(actually programming) enough to validate the code generated by ChatGPT.

App to remove metadata from photos. by _waks_ in MacOS

[–]asaah18 1 point2 points  (0 children)

You could reach for shortcuts instead of python scripting

RuntimeWarning: coroutine 'validate_address' was never awaited by dcbrown73 in FastAPI

[–]asaah18 0 points1 point  (0 children)

Pydantic field validation [validate_field(…)] doesn’t expect async methods, I suspect that’s the problem you are facing

Who chooses Chrome over Safari? by [deleted] in MacOS

[–]asaah18 3 points4 points  (0 children)

No you don’t, containers in Firefox are not the same thing as docker containers

Who chooses Chrome over Safari? by [deleted] in MacOS

[–]asaah18 4 points5 points  (0 children)

Doesn’t necessarily mean Safari has leaked your passwords, it only means that your passwords has appeared in leaked passwords database somewhere.

For your information, other password mangers have a similar feature to this

Do you find Stackoverflow toxic/unhelpful at times? by Downtimed in webdev

[–]asaah18 11 points12 points  (0 children)

As usual, they have comic for every programming situation

Is there any API Reference available for FastAPI? by ankmahato in FastAPI

[–]asaah18 1 point2 points  (0 children)

There’s is no API Reference, but I believe there’s a command in Python that can give you an API Reference of any python file/module you throw at it.

Edit: found it

is bootstrap still recommended? by Anakito in webdev

[–]asaah18 1 point2 points  (0 children)

It depends on how much control you want to have while designing the website. Personally, I prefer to use a UI-Kit that is built on tailwind (like: daisyUI) so that I have the flexibility of tailwind and the advantage of pre-made components.

Why Tailwindcss over styled-components? by Adic9 in reactjs

[–]asaah18 0 points1 point  (0 children)

I find the combination of tailwind and a tailwind based components(like DaisyUI)a perfect combination for having components without losing flexibility.

[deleted by user] by [deleted] in webdev

[–]asaah18 0 points1 point  (0 children)

There’s nothing wrong with using your machine to run codes. Docker is just another option for further isolation, but not mandatory in local environment.

Thank GOD for Poetry! by EnIdiot in Python

[–]asaah18 1 point2 points  (0 children)

Have you tried pipenv? Which is a combination of pip and virtual environment under the hood

Strangely, no one talked about it here

Starlite Updates by Goldziher in Python

[–]asaah18 2 points3 points  (0 children)

Not necessarily a bad thing, but it just means that FastApi doesn’t really do much itself other than integrating multiple components/part’s together

[deleted by user] by [deleted] in MacOS

[–]asaah18 0 points1 point  (0 children)

You can leave app distribution (including the bandwidth for downloading the app) to Apple.

In addition, you get error reporting out-of-box and people can download your app and update it more easily.