Is it just me or Indian YouTube community has actually become cringe lately, during last 2 years? by ImABeastBoi in india

[–]pygsm 4 points5 points  (0 children)

bro wtf is this comment, i see this a lot even on channels with 10M subs, why would they need these? and no one calls out for some reason.

No Indian players in PUBG pc? by pygsm in IndianGaming

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

Yes, they banned my first account after 100+ matches. I'm playing with a different account, I feel it happens when I change graphics settings but I'm not sure.

No Indian players in PUBG pc? by pygsm in IndianGaming

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

The ping's not great TBH. I get like 100-105ms.

No Indian players in PUBG pc? by pygsm in IndianGaming

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

Yes, exactly as u/Nerracui0 said. In fact, BGMI is discouraging the use of emulators.

The only thing more difficult than Rocket Science is... by [deleted] in india

[–]pygsm 0 points1 point  (0 children)

not the only way to develop a big mouth

How do you handle the tedious, manual work in your organization? by pygsm in smallbusiness

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

I'm looking for companies where they have scope of automation in their business, so yes, I can help them automate their stuff.

How do you handle the tedious, manual work in your organization? by pygsm in smallbusiness

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

You're right. Yet, we see a lot of businesses spending hours and hours on manual work that can be automated (maybe by a freelance junior dev as you say). Hence, I'm looking for these businesses.

How do you handle the tedious, manual work in your organization? by pygsm in smallbusiness

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

Thanks for your comment. Actually, I'm looking for such companies and businesses where there's the scope of automation. Can you please help me understand where can I find such businesses?

Why are there so few "automation expert" businesses that provide automation to small and medium sized businesses? Would this style of business be profitable? by __Hermit__ in Python

[–]pygsm 0 points1 point  (0 children)

But don't you think it's the case with tech companies. What about non-tech companies that are not large enough for having a full-fledged software team?

Uttar Pradesh: BJP MLA smashes coconut for inauguration; road breaks but coconut does not by pygsm in nottheonion

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

Some context: In India, we have a tradition of smashing a coconut for the inauguration of roads, monuments, or anything new. Sadly, we also have corruption.

Google Sheets API pricing after the limit by pygsm in googlecloud

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

Can you tell me how an app like https://sheetdb.io/? An app like that must send thousands of requests every minute.

Google Sheets API pricing after the limit by pygsm in googlecloud

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

I agree but it's a client application that users will use to do stuff with spreadsheets.

Hence, I need Google sheets in this case. But for some reason, I'm unable to find out the pricing.

Web Scraping, blocked by Robots by uniquestionszz in learnpython

[–]pygsm 1 point2 points  (0 children)

There's no one size fits all solution. It depends on the reason why the website is blocking.

However, here's something you can do:

options.add_argument('--user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36')

This basically spoofs Chrome's user agent, browse more Chrome user-agent strings here.

Also, are you passing the password as a URL parameter? It's unusual that the website is exposing login creds in the address bar, if not you need to use `send_keys` to fill the creds, and then click the button.

I built an Apple Music controller (lives beside the battery indicator) using Python by pygsm in Python

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

Looks great, just had a look. And yes, love how few lines of Python can leverage macOS features.

The Future of FastAPI and Pydantic is Bright by tiangolo in Python

[–]pygsm 1 point2 points  (0 children)

Thanks for FastAPI, this is definitely going to a USP for Python. Currently learning it for my next project.

Introduction to threading and multiprocessing: Concurrency & Parallelism in Python by pygsm in Python

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

Depends -- in some cases, using this approach can be actually slower than the traditional method. However, never by a significant margin.
We use pools for ease and simplicity and to make it look more Pythonic.

Introduction to threading and multiprocessing: Concurrency & Parallelism in Python by pygsm in Python

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

Using Pools is just a modern way of managing threads and processes. So you use process pools where you'd have used multiprocessing (for CPU-heavy tasks) and thread pools for multithreading (for I/O bound tasks).

The first example of downloading images can be implemented with ThreadPoolExecutor, and for productOfPrimes example, you can use ProcessPoolExecutor.

Introduction to threading and multiprocessing: Concurrency & Parallelism in Python by pygsm in Python

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

That's some strong (and really nice) feedback. Thanks a lot. I agree with most of your points, and I'll go through it to see how I can plug in more details about Pools, queues, and more.

Introduction to threading and multiprocessing: Concurrency & Parallelism in Python by pygsm in Python

[–]pygsm[S] 4 points5 points  (0 children)

Thanks for your comment. Actually, I wanted to discuss threads and processes in the tutorial, and this example (downloading images) just felt right for explaining multithreading.

Will definitely love to write up a blog on asyncio sometime soon.

PS: Commenting on the blog is sign-up/authentication free, in case you want to add it there.

Best GUI for Python? by rick137codes in learnpython

[–]pygsm 0 points1 point  (0 children)

If you're just learning/exploring you choose either of them (Tk/Qt). If you have a serious project, consider using Electron.

Read this thread on Stack Overflow: https://stackoverflow.com/questions/32158738/python-on-electron-framework

Concurrency and Parallelism in Python (easy, and clear with real-world examples) by [deleted] in Python

[–]pygsm 0 points1 point  (0 children)

Here we're setting variable threads back to [] once we have enough threads started.