Let's say you have a JavaScript Array that goes something like:

let p = [{
 id: '0923482304',
 name: 'Some super nasheed'
 {  id: '0923482304',
 name: 'Some super nasheed'},
 {  id: '0923482305',
 someOther:'could be'
 name: 'Another super nasheed'},
 {  id: '0923482305',
 someOther:'different as well.'
 name: 'Another super nasheed'}

And you'd like to remove duplicates from this array, but not looking just for the unique objects as a whole, but unique properties of objects. So for example, you'd like to remove duplicates based on 'id' property of each object in the Array.

So this can be done in many ways, one of the ways I wrote today is rather brief, here is how it goes.

|| Read more

I received a message today about how Corona Virus is not as bad as other causes of death which are far more severe and outnumber death count of Corona by thousands of times. One of those causes were suicide. I was surprised to learn that about 800,000 people commit suicide annually. This means one person commits suicide every 40 seconds. I was reading World Health Organization’s page about suicide around the world (https://www.who.int/mental_health/prevention/suicide/suicideprevent/en/) and a world map of countries by suicide rate caught my eyes.

|| Read more
[Download Full Size]
Your difficult job is the dream of every unemployed, your annoying child is the dream of every infertile. Your small home is the dream of every homeless, your little money is the dream of every debtor. Your health is the dream of every ill, your smile is the dream of every depressed.. and Allah (swt) concealing your sins is the dream of every exposed. So let gratitude and contentment be your methodology of life... *Alhamdulillah*

Assalam o Aaliakum Wr Wb,

I just wanted to take a moment to share this small nifty program that I have running on my Ubuntu 16.04 installation. It very accurately tells me prayer times and shows a small popup 15 minutes before the time for a specific Salah enters.

|| Read more
You don't love her! You're deceived!

ایک گاوں کے امام مسجد نے عیسائیت قبول کرلی.

اور یہ خبر جنگل میں آگ کی طرح پھیل گئی. اس گاوں کے دیگر علماء اور اسلامی شخصیات امام صاحب سے ملنے ان کے گھر گئے کہ اصل وجہ معلوم کی جا سکے، دوران ملاقات امام صاحب جو کے عیسائیت قبول کر چکے تھے کچھ اس طرح اپنا واقعہ بیان کرتے ہیں:

"" ایک دن مجھے صبح کی نماز سے دیر ہو گئ اور مسجد میں اقامت ہو رہی تھی وضو کرتا تو زیادہ دیر ہو جاتی.اور مقتدی لعن طعن کرتے اسلیے سوچا آج بے وضو ہی جماعت کرا دوں... || Read more

Ramadan 2017


A sacred month in which Allah (سبحانه و تعالی) prohibits us from the things which are otherwise completely allowed and Halal in normal days.

This proves that if we can refrain from Halal for Allah (سبحانه و تعالی) why can't we refrain from Haraam acts? Although fasting is medically very beneficial for health but actually its more effective in gaining spirituality and attaining purity!

The time of Suhoor and Iftaar is a blank cheque for the || Read more