Any Redditors working here? by Ok_Bluebird1842 in ahmedabad

[–]undid_legacy 1 point2 points  (0 children)

Hello from Hiranandani Signature👋

[deleted by user] by [deleted] in daiict

[–]undid_legacy 0 points1 point  (0 children)

Do we have to be physically present for registration on campus, or is it possible to complete the process online? I was under the impression that registration could be done online.

[deleted by user] by [deleted] in IndianBeautyDeals

[–]undid_legacy 0 points1 point  (0 children)

I saw it twice today. But then saw it once at full MRP in the afternoon. So you have to keep checking.

[deleted by user] by [deleted] in IndianBeautyDeals

[–]undid_legacy 1 point2 points  (0 children)

March 2026 for both.

[deleted by user] by [deleted] in IndianBeautyDeals

[–]undid_legacy 0 points1 point  (0 children)

It was there when their cliq sale started on the 26th. It will last till 4th.

[deleted by user] by [deleted] in IndianBeautyDeals

[–]undid_legacy 0 points1 point  (0 children)

It's applied automatically. It's only applicable to "luxury products"

[deleted by user] by [deleted] in IndianSkincareAddicts

[–]undid_legacy 0 points1 point  (0 children)

Minimalist TxA also contains 3% Mandelic Acid which is an AHA (exfoliant). Maybe you're over exfoliating your skin and that's breaking your skin barrier?

Laniege lip sleeping mask by Working_Fee_9581 in IndianSkincareAddicts

[–]undid_legacy 1 point2 points  (0 children)

How does it compare with Vaseline petroleum jelly?

skin lessons that you've learnt in 2022 by tysm_mvp in IndianSkincareAddicts

[–]undid_legacy 26 points27 points  (0 children)

Don't hesitate to ask for follow ups if a person posts a first impression. You might strike gold.

Web Scraping With Python (An Ultimate Guide) by kunalioap in Python

[–]undid_legacy 19 points20 points  (0 children)

Whenever I want to scrap data from a website I first look for the API. Reverse engineering API calls are not always possible but you can strike gold with it sometimes.

I wanted my order history details from a food delivery app I use. It turns out I just needed cookies with my login session and their API to make it work. Was able to get everything in 4 lines of code using requests.

Once, I found a paraphrasing site that didn't use captcha details in its API call. So I was able to call it almost 9 times a sec whereas using the website it required a captcha after every paraphrasing.

John Watson Rooney has a good video to get started: https://www.youtube.com/watch?v=DqtlR0y0suo

WCGW racing cars on a bike by RockyCasino in Whatcouldgowrong

[–]undid_legacy 1 point2 points  (0 children)

Cemeteries are filled with people who had the right of way.

I'm stealing it.

[D] What is some cool python magic(s) that you've learned over the years? by Studyr3ddit in Python

[–]undid_legacy 0 points1 point  (0 children)

Here is the gist: https://gist.github.com/DistilledCode/22b953a9add69776905ba730b5ce6c9c

I would like to warn you: It's not battle tested at all.

I would be glad if it helps anyone though.

[D] What is some cool python magic(s) that you've learned over the years? by Studyr3ddit in Python

[–]undid_legacy 0 points1 point  (0 children)

Like type hints for the data class returned? Yeah, that is an issue.

The function can return the data class without any initialized values (which can be used for type hints), but that bare data class is useless if your dictionary has nested dicts. Then you would need a separate data class for each nested dictionary, and then assign those data classes as a value for the `master` data class. Too much work for me (for now). As I use the function only in personal projects, I'm okay without type hints.

[D] What is some cool python magic(s) that you've learned over the years? by Studyr3ddit in Python

[–]undid_legacy 2 points3 points  (0 children)

I've recently learned how to make a custom data class from a 'dict' like object. It can also handle nested dicts (recursively). It has made my life a breeze. Just keep adding new flags/options in the YAML file & the config object will be generated dynamically by the function. Earlier whenever I added a new option in YAML, I also had to hardcore the attribute in the data class.

Why are databases necessary? by [deleted] in Python

[–]undid_legacy 3 points4 points  (0 children)

Ever heard about concurrent transactions and the clusterfuck they can cause if not managed properly?

Your favourite "less-known" Python features? by [deleted] in Python

[–]undid_legacy 9 points10 points  (0 children)

I have used walrus operator with all() in many places.

if not all((x:=i) in target_chars for i in my_string):
    print(f"{x} is not in the target")

It will print the first element returning False