I recently had to carry around a small notebook that ran an Intel Atom Processor and couldn't handle IntelliJ Idea Ultimte that I normally use for TypeScript related projects. I knew a little bit of VIM and also had something in my head about being able to install plugins to extend its functionality. VIM of course would not require too many resources, as you can probably tell, so I went a head and started looking for my options. After reading multiple pages and watching a couple of videos, this is the setup I ended up with:

So to same some time for my fellow developers, I simply put my ~/.vimrc and to the point instructions to get what you see on the screen.

Simply head over to my github repository called VIMCode and follow the instructions: https://github.com/ibnYusrat/vimcode

If you have questions, feel free to leave a comment below.

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

let p = [{
 id: '0923482304',
 someOther:'detail'
 name: 'Some super nasheed'
 },
 {  id: '0923482304',
 someOther:'which'
 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