Sunday, January 14, 2018
Tuesday, January 2, 2018
Tuesday, December 26, 2017
Roastedchicken
Never underestimate a hungry man away from home with no good #mughlai
restaurants nearby. 🍗
#roastedchicken
https://www.instagram.com/p/BdJzJNhj-6N/
restaurants nearby. 🍗
#roastedchicken
https://www.instagram.com/p/BdJzJNhj-6N/
Saturday, April 1, 2017
How I built My Smart Mirror from scratch
It all started while learning JavaScript. I was looking for some practice projects. I wanted to build something which not just helps me in learning JS but is also interesting enough to keep me motivated. While reading a blog I learnt about the idea of a Smart Mirror. I found it very interesting so I instantly knew I am going to build one.
My smart mirror looks like this:

It displays current temperature, weather summary and humidity at top left. Time, day and date at top right and Namaz timings below it.
Main components:
A two-way mirror:
I couldn’t find any online options for buying a two-way mirror in Delhi. I went to a local hardware store on Vikas Marg and obviously they never heard of anything called “two-way mirror”. Then I explained them my requirements which they understood. They call it something else in India but it is readily available at hardware stores. I bought a 15X10 inches mirror and got holes drilled on all its corners.
An Android based tablet:
Many people have used an old monitor for building a smart mirror. However, I realized that using a monitor makes whole process a bit complex. If you are using a monitor, you need one more device where you will run your app and both of them need to be connected. I simply bought a 7 inches tablet and installed my app on it. It has a limitation that you only get 7 inches space to display content. Anyway, I do not wanted to display a lot of information because it may not leave any space for a user to view his image and it also defeats the purpose of a mirror. I found 7 inches space enough to display all I needed on my mirror.
An android app:
Developing a new app for my requirements was the most technical and time consuming thing. I used JavaScript for all the back-end processing. And later built an Android app using Phonegap framework. I used Openweathermap API for weather updates and PrayerTime API from aladhan.com for Namaz updates.
When the app is ready you simply need to deploy it on the Android tablet and fix your tablet at the back of the mirror. Also cover the unoccupied space with a black chart paper or paint.
Issues I Faced:
I faced issues with my application’s background not matching with that of my mirror. Adjusting background color and brightness fixed it.
One issue was about installing and configuring my application on the tablet. You can connect a mouse with your tablet using OTG cable for interacting with it.
Also make sure the room/place where you install the mirror is brightly lit. Another drawback of using a display smaller than the size of mirror is that the display will be distinctly visible in darkness. One reason is that I configured it with lights on. You can try auto brightness feature of Android if it works for you.
What’s next:
I have a plan to add news headlines, calendar and traffic updates to my mirror.
Overall it was a great learning experience for me.
Sunday, January 31, 2016
No Cure For Common Cold
I again became a victim of 'common cold'. And like always I got irritated, Mummy asked me to visit a doctor and take some medicine. However, there are more well-wishers in my life now. Like my mother this new well-wisher I am talking about has a big say in my issues now. She is my wife.
Antibiotics have no effect against viral infections or against the viruses that cause the common cold.[67] Due to their side effects, antibiotics cause overall harm but are still frequently prescribed.[67][68] Some of the reasons that antibiotics are so commonly prescribed include people's expectations for them, physicians' desire to help, and the difficulty in excluding complications that may be amenable to antibiotics.[69] There are no effective antiviral drugs for the common cold even though some preliminary research has shown benefits.
:Wikipedia (https://en.wikipedia.org/wiki/Common_cold)
Sana, who herself avoids medicine especially antibiotics, advised me to consume home remedy instead of antibiotics. I used to take 'a citrizine' whenever I had cold. I must admit that I am vulnerable to it, I suffer from cold every two months. This time I also decided to avoid medicine. As a result I am sneezing for last two days. But I am sticking to masala tea, coffee and Unanai medicine.
I decided to Google and what I found not only validated Sana's insistence on avoiding antibiotics but also revealed that there is actually no cure for 'common cold':
Antibiotics have no effect against viral infections or against the viruses that cause the common cold.[67] Due to their side effects, antibiotics cause overall harm but are still frequently prescribed.[67][68] Some of the reasons that antibiotics are so commonly prescribed include people's expectations for them, physicians' desire to help, and the difficulty in excluding complications that may be amenable to antibiotics.[69] There are no effective antiviral drugs for the common cold even though some preliminary research has shown benefits.
:Wikipedia (https://en.wikipedia.org/wiki/Common_cold)
Saturday, January 16, 2016
Mulaqaat Ki Tamanna
![]() |
| Image Credit |
Din me mulaqaat ki tamanna ne,
Raat ka sona kyu dushwaar kiya.
Dene waley bhool gaye apni hi naseehat,
Mohabbaton ne un per jab vaar kiya.
Ishq me zakhm khane ka maza vo kya jaane,
Jisne neend gavaayi na koi teer dil ke paar kiya.
Raat bhar jo socha tha unse kahenge,
Sab bhool gaye unka jo deedar kiya.
Zamaane ne samjha meri qayfyat ka sabab,
Unhone samajhne se magar inkaar kiya,
Doosro ke aasuon ko fizool kehne waley,
Us din bhut roye jab ishq ne beemar kiya.
Jawaab me vo bas ek aansu baha gaye,
Ek roz khayalat ka jab izhaar kiya.
Us khudgarz ko ishq ne sikhaya jab saleeqa,
Apni khwahishaat ko usne darkinaar kiya.
Vo raat muqammal ibaadat me guzri,
Khuda se bas ek hi sawaal baar baar kiya.
Ye ek mojza nahi to aur kya hai,
Unhone agle din sharma kar iqraar kiya.
دن مےملاقات کی تمنا نے
رات کا سونا کیوں دشوار کیا
دینے والے بھول گۓ اپنی ہی نصیحت
محبتوں نے جب انپر وار کیا
عسق مے زخم کھا نے کا مزہ وہ کیا جانے
جسنے نیند گوای نا کوی تیر دل کے پارکیا
رات بھر جو سوچا تھا انسے کہینگے
سب بھول گعے انکا جو دیدار کیا
زمانے نے سمجھا میری قیفیت کا سبب
انحونے مگرسمجھننے سے انکار کیا
دوسروں کے آسوں کو فزول کہنے والے
اس دن بہت رعے جب عشق نے بیمار کیا
جواب مے وہ بس اک آنسو بہا گعے
اک روز خیالات کا جب عزہار کیا
اس خدگرز کو عشق نے سکھایا جب سلیقہ
اپنی خواہشات کو اسنے درکنار کیا
وہ رات مقمل عبادت مے گزری
خدا سے بس ایک حی سوال بار بار کیا
یہ ایک معجزہ نہیں طو اور کیا ہے
انہونے اگلے ہی دن شرما کر اقرار کیا
Sunday, January 10, 2016
Why have a family and friends?
A video describing what addiction actually means. Also describes why it is necessary to have family and friends:
Subscribe to:
Posts (Atom)






