Tuesday, November 1, 2016

Gaa ke bata, gaa ke bata, gaa ke bata


Tuesday, September 20, 2016

People waiting for Iphone 7

Picture taken with a Samsung.

Thursday, September 1, 2016

Energy consumption measurement calibration is a pain

Fig. 1.  Using the Agilent AC Power Source Analyzer to calibrate my own hardware

Last year, a lot of time was spent in calibration.

Remind me to outsource the calibration part somewhere on my next project.

Remind me that the Power Factor in any circuit cannot exceed 1.

Remind me that the cables used in my setup can only take few Amperes of current.

Remind me not to play with AC electricity anymore.

Fig. 2.  My measurements on the serial port. Nice.

Fig. 3.  There is AC 240V going in this. Not an ordinary hardware.


Tuesday, April 12, 2016

Reverse Engineering your broadband router

As a device designer, I am really aware of the fact that there is always an option of a serial connection to the firmware unless it is secured using fire and ice.

Thus, to reverse engineer any device the first step would be to try to find a serial port that the engineers who designed the device left in the board. Usually, this port is left for debugging and, in my case, updating the firmware in a hard way.

As an example, these guys found the serial port on a Huawei Router.

Second step is to get it connnected to your laptop, and guess the baud rate. There are also more complicated ways to find the baud rate, such as by connecting to an oscilloscope etc. but who got time for that.

Connect it to a serial monitor such as Putty and Linux your way around.

Don't try to do it with your UNIFI or STREAMX though, as you void your device warranty.


Sunday, April 10, 2016

TOPSIS method for decision making.

TOPSIS is a multi-criteria decision analysis method. It can be used in any scenario where a set of alternatives exist and the best alternative has to be chosen based on multiple criteria. In this paper, I use TOPSIS to find the best set of IoT devices which fulfill certain service level criteria.

Time permitting, I will try to extend this work further for other use-cases.

Recent research on Internet of Things (IoT) has focused on the adaptation of the autonomic computing paradigm to make IoT self-sufficient. Service arbitration is one aspect which can greatly benefit from the adoption of the autonomic theory. Instead of allowing all deployed devices to be active, only a selected set of devices can be utilized to provide a particular service. This paper proposes a dynamic service arbitration scheme for this purpose. The approach for the service arbitration scheme is based on TOPSIS algorithm. This method supplements existing autonomic frameworks with the aim to minimize user intervention as well as imparting self-configuration in the system. The analysis through TOPSIS can be extended to any number of permutations and combinations of alternatives and system policies.

TOPSIS-based Service Arbitration for Autonomic Internet of Things



Wednesday, March 2, 2016

Creatine, coffee, calories and cardio.

Figure 1: My current calorie consumption

Recent research suggests the observation that chronic obstructive pulmonary disease (COPD) patients are often malnourished and have less exercise capacity [1]. Furthermore, patients with low body mass index (BMI) should be considered at a greater risk of mortality. It is not clear whether poor lung function is a cause of poor nutritional status or if poor nutritional status precipitates a decline in lung function results.

An observation study constituting 1 patient who thinks he suffers from COPD and is definitely malnourished.The patient is aged between 25-30 years. Figure 1 shows his calorie intake for one day. patient is supposed to add another meal and some snacks to his daily schedule to hit 3000 Kcal daily. Patient is also mixing few grams of creatine to his daily morning coffee to help him be energetic enough to go to the gym and workout. Patient has increased his water intake by an amount that fits his new water bottle.

Creatine intake has helped to be more motivated and less brain-dead for gym activity. The amount of time spent in the toilet has increased. Weight seems to be increasing as well, but a longer study of weight gain is advised. The time spent in cardio exercise is increasing. It is getting harder to wake up in the morning, and assistance from shouting spouse is needed more frequent than earlier. The increased gym activity and cardio exercise seems to be helping with the breathing. Since lung function wasn't tested quantitatively in this study, therefore, a quantitative study is advised. Qualitatively, the patient thinks he is making progress and felt the need to blog about it.

[1] Ezzell, Lisa and Jensen Gordon. Malnutrition in chronic obstructive pulmonary disease, Am J Clin Nutr;72(6):1415-1416.

Tuesday, December 29, 2015

2015 in a nutshell

Figure 1: The author in front of the famous Colosseum at Rome. A very long neck scarf can also be seen.

The year is about to end and I realized I haven't blogged much in 2015, or spent much time on social networking sites. Many things on my mind, and a lot of travelling this year Alhamdulillah. I managed to sniff some air molecules that gladiators had sniffed as well.

Figure 2: The author in front of Jackie Chan's house in Hong Kong. There be sharks in that water behind.

Jackie has been one of my favorite entertainers, and I was really excited to see his house.

Figure 3: The author in front of St. Peters Cathedral at Vatican City. There be pope in that building behind.

Figure 4: The author in Korea trying to be Korean.

Figure 5: The author trying to pretend he is a millionare in Indonesia.

Figure 6: The author's small family <3 p="">


Friday, September 11, 2015

Dirty Politics

On one hand, BJP top officials communalize a political matter:

“It is unfortunate that a simple administrative decision has been given religious color and is being politicized” 

On the other hand, they ban beef. 

Divide and Rule 2015.

India is not going to survive for long like this.

Tuesday, May 26, 2015

Bright colorful graphs or dull black/white?

I do not want to say what this graph is pointing out.

Fed up of the monochrome graphs, they make life as a researcher very mono-chromic.

Don't bright colors brighten up science?

Some people may disagree how I have chosen to represent this particular set of data. Well, I disagree.


Tuesday, April 14, 2015


Password: 123



Relax, and let it goooo!!


Password will be 123.

Link is here.


Go ahead.

If you have downloaded/used this, do comment :)

Sample Template for Seminar II

Here is the pretty link for you:


Copy paste it into your browser, and you are good to go.

The password is 123.


Sample Template for ECE Engineering Lab III

Welcome to the right place.

Have fun copy pasting the text:


The password should be 123.

Oh! Don't forget!! You lecturer knows about this report, and might have a copy of this on his table (for reference purposes while grading ;) ;) )


ARCHIVE | Sample Project Reports for Engineering Students in IIUM

Dear folks at IIUM,

Ever felt like you know what is to be done, but don't know where to start?

Ever felt like you know nothing, but then a project report is due soon?

Thanks to the thousands of messages I have received till date, concerning my old books, assignments and reports, I have decided to put all of it on-line (Not all of it..)

I have made it harder for you (I wish!) to copy paste the contents, thanks to PDF technology. Also, please don't forget that you lecturer already has these on his table (to see if you were so lazy that you just printed these out for submission). Regardless, your lecturer will have a good reference to check for plagiarism.

The files are password protected, and the password is unique for each file (Sorry about that, I need a reason for you guys to be coming over each time, muhahahah). If they are not password protected, consider it to be your lucky day.

Here is the list of currently shared files. These are not the final ones I have submitted, but some drafts for you to just get an idea. You should try to make a report with a quality better than these (IIUM, together we shall strive for quality, remember!).

Mostly I have ones related to ECE (duh!!):


Do you need more? Do you disagree with my style and have a better report to share? From other department/Kulliyah? Drop a comment below..

Wednesday, February 11, 2015

Wednesday, December 31, 2014

Happy New Year. Not so happy #QZ8501

Nothing to be happy for, except for a compulsory holiday.

Condolences for #QZ8501, #MH370, #MH17.

#MalaysianFlood, #KashmirFlood


List goes on.

Wednesday, September 24, 2014

Archive of pictures from #KashmirFloods

Pictures: https://www.facebook.com/ijtabashafi

Caption: Alex Smart http://qazimamoon.com

 Should we still vacate the house? How worse can it get? The water won't even enter the cars. But the water sure is dirty

 We can't even go buy anything now. The water is at the hip level. The cars cannot move at all because of the water. But I think this is the maximum. The rain stopped falling yesterday, and the sky is starting to clear up. How worse can it get?

 Geee. My white car has disappeared. So has the car of my neighbor at the top-left of this picture. You can clearly see the clouds now, it's back to sunny days. I have no idea how the battery in my cell phone is being charged. Better wait for the water to recede now.

 My house just became re-located inside a lake. My cars are officially under water, just like the Titanic. The water is just one floor though. I regret buying the new air freshener for my cars.

(Not in actual sequence. Exaggerated for effect. Source)

Good time to go through this: http://quran.com/71


Wednesday, April 23, 2014

They call me OP and they thank me. You are welcome!

I am the actual OP. The actual original poster of the solution. As in the one who first posted it and then this website posted it to its users. I am not angry, I am flattered. Thanks for the reference though.

The comments in the web page have a lot of references to OP (again.. Original Poster). For them, they want the opinion of the person who posted there. For me, I am "THE OP". The android champ. The android itself.

So I will be replying to them here:


Thank you stranger olu4life. Atleast you knew I am a bro! I know I solved a huge problem.


Silence is gold. I don't want to say anything. Plus what does your username LCDD even mean?


Herald9 has spoken. The method is definitely worth trying.


Nice job Abdul. Are you my cousin Abdul?

Well, fame is short lived. There was a time when my post used to come at the top of Google when users searched for "Storage Space Running Out Android". Now its somewhere near the bottom. SEO needs to be done.


Friday, April 18, 2014

Insufficient phone space on Android? Help is here.

Most common (read popular) solution:


Specifically related to wifi issues:


Basically the methodology is same. You need to delete the log files which keep building up in Android based phones over time. I don't hate Android, I just love it because I get to understand how much phone works, and I have a high level of control on what I am doing.