Thursday 23 November 2017

TIL

from collections import defaultdict
a = defaultdict(int)

a[whatever] += 1 # without ever initializing for any whatever key

Wednesday 15 November 2017

Sunday 5 November 2017

Tech Advice from ./

1. Get away from Gmail. Use a privacy-friendly alternative e-mail service like Startmail or ProtonMail. Yes, you will probably have to pay. You are either paying cash or paying with your data.

2. Break off Google search. Use DuckDuckGo to keep your searches private. If you want Google results, use Startpage instead; it will search Google privately on your behalf, preventing it from monetizing you.

3. Ditch Chrome. If you love the UI, then use the open source Chromium instead. Otherwise use Firefox (which is about to get a LOT better with the new overhaul debuting later this month) or Brave. Use your browser with ad blockers like Disconnect, uBlock Origin, AdBlock Plus and Privacy Badger to stop Google and others from serving you tracking ads.

4. If you use an Android, consider running CopperheadOS on your phone. It is built on Android code, but hardened for security and free of Google data mining.

5. Say no to Google cloud storage services. If you want a high security option, use SpiderOak. Otherwise, you can use Boxcryptor to locally encrypt your files before sending them to the cloud so that they cannot be data mined.

Reply to This

Monday 9 October 2017

Give to a gracious message a host of tongues,
but let ill tidings tell themselves when they be felt.

Tuesday 3 October 2017

"Just because something doesn't do what you planned it to do doesn't mean it's useless." - Thomas Edison

Friday 25 August 2017

Method of Divorce


Reference Talk: https://www.youtube.com/watch?v=lhQpuOAeAUQ


These are the steps one should follow if one thinks divorce is the best solution to one's marriage.

1. One man from the family of the woman, and one man from the family of the man should have a sit down and discuss what the issues are. And who's at fault. And council the one who's fault. Q:"And if they want to resolve an issue, then Allah will put mohabbat in their hearts." This task has to be done by men of the families.

2. Halat e hez main talaq ne di jaye

3. Paki ki halat main shart yeh hai k mubashrat se pehle chore, mubashrat kar li tou is Tuhr main bhi nahin chor sakte

4. Sirf aik talaq per iktifa kia jaye, dusri aur teesri na ki jaye, phir is aik se 3 periods k baad nikah batil hojaye

5. Aur agar wakai bezar hai, tou dosray tuhr ka intezar kare. Phir us main dobara talaq de, phir tesri talaq k liye phir teesray tuhr tak intezar kare. Aur kisi bhi tuhr main ham bistry jaiz nahin.

Thursday 10 August 2017

Imam Ghazali on time management


"Your time should not be without any structure, such that you occupy yourself arbitrarily with whatever comes along.
Rather, you must take account of yourself and order your worship during the day and the night, assigning to each period of time an activity that must not be neglected nor replaced by another activity.
By this ordering of time, the blessing in time will show itself. A person who leaves himself without a plan as animals do, not knowing what he is to do at any given moment, will spend most of his time fruitlessly.
Your time is your life, and your life is your capital: by it you make your trade, and by it you will reach the eternal bounties in the proximity of Allah.
Every single breath of yours is a priceless jewel, because it is irreplaceable; once it is gone, there is no return for it.
So do not be like fools who rejoice each day as their wealth increases while their lives decrease. What good is there in wealth that increases while one’s lifespan decreases?
Do not rejoice except in an increase of knowledge or an increase of good works. Truly they are your two friends who will accompany you in your grave, when your spouse, your wealth, your children, and your friends will remain behind.”
— Imam al-Ghazali