My new app AfsaneDB (Beta) is now in PlayStore!

Those who love reading classic literature can now enjoy literary masterpieces in this beautifully designed app.

Thursday, 30 January 2020

#LearnedToday 1 to 10


I learn a lot of things every day, about diverse topics. Will write these things daily, even if it's obvious-to-the-level-of-dumb for the world. 
— Shakeeb Ahmad, from My New Year Resolution

LearnedToday #1

An operation as simple as copying the data to user's clipboard is not that straightforward. It requires a secure origin — either HTTPS or localhost (or disabled by running Chrome with a flag). [SO]

Packages are available for most frameworks out there, which handle clipboard operations (copy to and paste from). Can be used to exploit though. [Wiki]

Terms: Clipboard hijacking, Pastejacking
tags: Computer Science, Cyber Security

LearnedToday #2


  • Nothing matters until you finish some actual projects in a field. What you can mention on your resume (and to the world) is NOT a load of languages, frameworks and skills you only know the basics of; but the completed projects using them. 
  • Switch to other stuff after fulfilling basic functionalities. Fine-tuning can be done in updates.
  • Do your best before jumping to Stack Overflow.


Ref: https://youtu.be/YX9T4V22j-Y and its comments.
tags: Self Help, Computer Science

LearnedToday #3

حالیہ جاری احتجاجی مظاہروں میں فیض کی نظم”ہم دیکھیں گے “ کافی مشہور ہوئی ہے۔ درست موقف کی بحث ایک طرف، سر پیٹنے والی بات یہ ہے کہ کچھ بے ذوق لوگوں کی طرف سے مذکورہ نظم کو ”فرقہ وارانہ “ قرار دیا گیا ہے۔ 
لگتا یوں ہے کہ صنائع و بدائع، کنایے، محاوروں، ضرب الامثال اور استعاروں سے مزین میر اور غالب کی شاعری پر سر دھننے والی یہ ”جینیس جنریشن“ دراصل ڈھونگی ہے اور ان اساتذہ کو محض ”کول“ لگنے کے لیے پڑھتی اور سنتی ہے۔
بحیثیت ایک ادنیٰ شاعر اور ادب کے طالب علم کے، میں غور کرنے پر مجبور ہوں کہ شاعری کا اتنا سطحی مطالعہ کرنے والوں کے لیے کیا سزا تجویز کی جائے؟

हालिया जारी एहितजाजी मुज़ाहिरों में फ़ैज़ की नज़म"हम देखेंगे" काफ़ी मशहूर हुई है। दरुस्त मौक़िफ़ की बेहस एक तरफ़, सर पीटने वाली बात ये है कि कुछ बेज़ौक़ लोगों की तरफ़ से मज़कूरा नज़म को फ़िर्कावाराना क़रार दिया गया है.
लगता यूं है कह सनाए-ओ-बदाए, कनाए, मुहावरों, ज़रबुल अमसाल और इस्तिआरों से मुज़य्यन मीर और ग़ालिब की शायरी पर सर धुनने वाली ये "जीनीयस जनरेशन" दरअसल ढोंगी है और उन असातिज़ा को महिज़ "कूल" लगने के लिए पढ़ती और सुनती है.
बहैसीयत एक अदना शायर और अदब के तालिब-इल्म के, में ग़ौर करने पर मजबूर हूँ कि शायरी का इतना सतही मुताला करने वालों के लिए किया सज़ा तजवीज़ की जाये!


Ref: Javed Akhtar, Munawwar Rana etc. on IIT's case
tags: Politics, Thoughts

LearnedToday #4

Learning regex is a better option to go for, rather than mastering language-specific methods for simple string manipulation.

Also, on a more general note: Instead of forcibly modifying every problem to meet your knowledge-level, you should try to learn available methods (i.e. functions) and data types in a language.

tags: Computer Science, Programming

LearnedToday #5

YouTube is sucking a lot of our time right now. Like a lot a lot. Even if it is for the sake of entertainment, we're using it no less than 4 hours. Physical entertainment seems a thing of the past now. Even when we meet friends, the conversation revolves around the same. Sad!

Told this to Muzammil and Mubashir many times, that we scroll through useless feeds all day. If we start reading books instead, we'd have a sense of accomplishment. A feeling of enlightenment, a wow moment... it can be anything, but would benefit us someday. After all, we all want to do something we could be remembered for. At least I do.

tags: Self Help, Philosophy, Thoughts

LearnedToday #6

Averse vs. Adverse
”Adverse” is used to refer to unfavourable while ”Averse” refers to the state of being reluctant.

Example:
The adverse effects of alcohol.
A good number of people are averse to sleep at work.

tag: English Language

LearnedToday #7

My guess about hyperinflation was correct. We don't always face the inflation problem if we (the government) just print money and get rich. In fact, if USA as a developed economy wants to purchase oil, it CAN just print money and do that without the fear of hyperinflation. 
Reason? USD is the standard currency using which most of the world trade today.

The government has tricked us to believe that more money means more income. On an abstract level, that is true, but in reality, the vegetable plant your mother has grown in the backyard is the actual wealth.

Ref: Economics StackExchange, Reddit, Wikipedia, Quora
tag: Economics


LearnedToday #8

Stupidly obvious. In order to properly use a hand dryer, you have to rub your hands. Don't just put your hands under it. 😁

The goal is to spread the water out as much as possible to increase its surface area and thus the evaporation rate.

Ref: Reddit
tags: Life Hack

LearnedToday #9

Remember Dijkstra algorithm?

In English, the Dutch name Dijkstra is normally pronounced DYKE-struh, in IPA /ˈdɑɪkstɹə/. It is a Dutch name, where the 'j' is always silent or pronounced like a 'y'. So the name should be 'dyk(bike, hike in English) -stra'.

tags: Computer Science, English Language

LearnedToday #10

People don't care about your struggles. They're just going to judge you by the results. Why should we exhaust ourselves if an easier alternative is present there already?

Be it a small routine task, a project or the life as a whole, the final outcome would be the only thing you'll be judged by. The route to that destination is usually not smooth, but who cares? That struggle story would only be inspiring if you reach the success.

tags: Philosophy, Thoughts
Shakeeb Ahmad Maharashtra, India

Shakeeb Ahmad is a blogger, poet, enthusiast programmer, student of comparative religion and psychology, public speaker, singer and Vedic Maths expert. He loves playing with the numbers and invented a shortcut method to square the numbers at the age of 16. In sports, football is root to his happiness. He lives it.