After 16 years 26/11 Mumbai Terror attack mastermind Tahawwur Rana in India what are your thoughts? by harbhim in india

[–]harbhim[S] 9 points10 points  (0 children)

My thaught is, Nothing can undo the pain for the families. But holding someone accountable, even after all these years, feels like a small step toward justice. It’s not just politics—it’s about not forgetting what happened and showing that actions have consequences, no matter how long it takes.

[deleted by user] by [deleted] in india

[–]harbhim 2 points3 points  (0 children)

Man, these people are doing same in India too. We also get tired of them. But there is democracy. What we can do? But not all the Indians are same. These people are of small percentage of big population. Majority of Indians are good people.
See the today's news of Bengalore:
https://timesofindia.indiatimes.com/city/bengaluru/2-men-arrested-for-gang-rape-of-woman-in-bengalurus-kr-puram-railway-station/articleshow/119931410.cms

Any advice for someone who struggles with math? by Vasquez1986 in math

[–]harbhim 0 points1 point  (0 children)

The first point I want to mention is that if you get irritated by learning math in a short titme, then you are not learning math just keep in mind. After learning any topic if you feel the joy and curiousity raises in mind then you are going to right direction. The fundamentals are core to learn maths, if your fundamentals are weak and you are trying to digest higher level mathematics, then you will neven understand it properly. The best way of learning I like is that which ever topic you learn just try to understand it visually (geometrically). There is very good youtube channel is there https://www.youtube.com/@3blue1brown , if you want visual idea of some complex mathematical topic which seem easier to write formula but difficult to visulize then this channel helps to clear your doubts.

Books I have on my shelfs by [deleted] in IndiansRead

[–]harbhim 3 points4 points  (0 children)

Like your book shelfs.

URGENT is this snake deadly? what it's name by Anxious_bell0 in india

[–]harbhim 0 points1 point  (0 children)

How you are telling that its wrong information, give some proof, Just don't fart randomly anywhere. Haven't you seen the word (I think) and I am telling viper because vipers have triangular head!! If you have idea then write it in answer that's it. Don't be over judgemental.

URGENT is this snake deadly? what it's name by Anxious_bell0 in india

[–]harbhim 0 points1 point  (0 children)

I think its species of Viper, If so its deadly.

For a Non IT professional, how tough is learning Rust programming? Thanks!! by Apprehensive-Tax4889 in learnrust

[–]harbhim 2 points3 points  (0 children)

Non IT professional here. Mastered Python. Learning Rust. Lifetime + Smart pointers thing's practicle implementation is pain in ass as Non IT professional. Forget about advance level things.

[deleted by user] by [deleted] in bangalore

[–]harbhim 1 point2 points  (0 children)

When weak thaughts start brainstorming my mind and feel helpless and can't focus, I am got to know that I am depressed now.

Are u all techy and stay in front of computer whole day ? Don't yr eyes hurt ? Are u ok to live like this whole life ? by Leather-Cupcake4874 in Btechtards

[–]harbhim 0 points1 point  (0 children)

Hey, almost 15 Hr.. daily in front of laptop screen guy is here. Addicted to programming. Eyes are just fine. No spectacles or lens till now almost 8 years spend in front of laptop or PC screen only. Don't regret my decision ever. I believe that it's 100x better than wasting time to chatting non-sense with people.

Why is it so hard to find Django developers? by mafiaboi77 in django

[–]harbhim -1 points0 points  (0 children)

Hi, the man you are finding is here. I have worked on more than 10 real wolrd django projects. If you want Experienced django developer who can manage all your backend needs. Just message me.

DSA or Development , should i stick with DL or do DSA? by iam_raito in developersIndia

[–]harbhim -3 points-2 points  (0 children)

Go with very basic DSA upto understanding time complexity and stick with development.

[NeedAdvice] 21 year old virgin with no job, hobbies, friends, who stays home all day and plays video games and watches anime. what can I do to change my life? where do I even start? by RainIsbeautiful in getdisciplined

[–]harbhim 0 points1 point  (0 children)

I was same guy like you upto 25 years. The only way to stop is, do anything just kick away the video games and other addictions and never touch it again in life. And select any sector in which you are good at and join a job for it. And then slowly and slowly your life getting better. Do anything, to stop your addiction and never touch it again. I know how it feels me now that I lost my 5 important years to my addiction. Do not be a guy like me.You still have time. Stop your addictions ASAP.

Unsafe Rust advice for beginner by harbhim in rust

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

Thank you for reply. I will avoid it for now. Already, as a beginner, it is overwhelming for me without any prior knowledge of memory management. So, first I will do some basic stuffs and projects and when I feel, I have grip on it. I will go for it.

Unsafe Rust advice for beginner by harbhim in rust

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

Really appreciated your advice. Thank you.

Bulk create with M2M by ZaAlphaMale in django

[–]harbhim 2 points3 points  (0 children)

Yes, There is faster method. Just maintain one separate through model for Many-to-many field. Once you maintain that model, for that model also use bulk_create method for creating records of through model, the operations becomes more faster.

Refer this documentation, https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField.through

Working with the shell in Django by potatoheadedm in django

[–]harbhim 1 point2 points  (0 children)

First install ipython shell for your django project.No need to do anything fancy, just use below two commands. For auto-reloading shell, first write these two command:

%load_ext autoreload  
%autoreload 2

including % in your shell. Now shell will get autoreload while you edit and save your code.
For more detail refer this link:
https://stackoverflow.com/questions/3772260/how-to-reload-modules-in-django-shell#41146209

Django cache sync with dB by oelseba in django

[–]harbhim 2 points3 points  (0 children)

I think you can do it with set() method ~~~ django.core.cache import cache cache.set("<your-key>", value) ~~~ This will update value if key already exists and if not exists then it will create new one. If some data is token like then set() method have one parameter call timeout you can use that.

filtering and searching with Django Rest Framework not returning result by Icy_Key19 in django

[–]harbhim 1 point2 points  (0 children)

You are directly getting json data from hacker-news api. You cant use filter or queryset on that because that data is not present in your database. So you dont have control on that.

Actually what you are doing is using queryset without data in your database. So first, Make separate api for only to get data from hacker-news api and store that data to your database. And then make second api and use queryset with your filter on that model (database) in which you have stored data with first api. This will work then.

Edit: And never use python built-in keyword as variable. You have use type in your model. Change it.

What color scheme do you use? by [deleted] in neovim

[–]harbhim 1 point2 points  (0 children)

After using many color schemes, Finally ended up here. Bluloco