Showing posts with label Science. Show all posts
Showing posts with label Science. Show all posts

Thursday, February 06, 2014

Does Willpower Exist

Almost for the past one month I have been thinking about writing about willpower. The idea may sound trivial to the casual reader. However, it is interestingly not so. Why am I interesting in writing about this curiously has a very cogent reason. That is that while we are not so sure about whether we possess free will or not, how can we assume that possess willpower.

Quite interestingly my curiosity has coincided with the recent publication of Daniel C. Dennetts Reflections on Free Will. Sam Harris recently wrote a book titled Free Will. In response to that Daniel wrote a possible rebuttal to that. I have not been able to read Free Will possibly due to shortage of time and lack of access to a decent library that would host such books. I am sure it must be a very interesting book. On the other hand Daniel's rebuttal also sounds promising. In Sam's own words the rebuttal itself is as long as the book. 

Luckily I have been able to give it an initial eye-ball, something that I could possibly only do given my tough routine over the past few weeks. Daniel has some very interesting reflections on Sam's notions of free will. I could not comprehend everything, but one definitely gets a good deal of an idea even through casual reading. It is interesting to note that both Sam and Daniel hold interestingly opposing positions on existence of free will. While Sam argues that we as humans do not have free will, Daniel proposes the converse. However, the argument is not that simple. It becomes quite obfuscated specially when we involve compatiblist and incompatiblist theories into account. It is true about me at least that I find a lot of things difficult to comprehend. It might not be true for many other readers (or students). However, I presume that a more focused reading may help in alleviating my problem of understanding the whole gamut of "free-will" "no-free-will" theories. 

Assuming this knowledge of free will as a basis one may pose another interesting question: Does willpower exist? Often we hear success stories about ordinary people who dealt with extra-ordinary situations and came out as victorious. We tend to say that so and so person has tremendous willpower simply because he/she struggled very hard against so many unprecedented and unfavorable circumstances and eventually came out as victorious.

Mountaineers climb high mountains. In the due course they fall off high and rocky cliffs. They get emotionally shattered and physically crippled. However, they do not give up on their ambition to climb. Is this determination and audacity an exhibition of willpower?

I stopped blogging almost a month ago due to other important chores that I was supposed to undertake. As I stopped blogging I made a vow to myself that I would think about a few ideas about writing and come back and write with more zeal and passion as soon as I got a new idea. The very fact that I have somehow managed to come back and written off this article, is this suggestive that I possess some level of willpower in some  meaningful sense? 

In order to understand this we would initially have to understand what willpower simply means. In its simplest interpretation willpower can mean the ability to execute one's will. To this end, one should have the ability to have will or to will, irrespective of how a philosopher may believe that it is suitable for us to have it or not. Anyhow, if we agree with Sam Harris that we do not have free will at all, how can we have willpower? 

Creative Commons License
Psyops by PsyopsPrime is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Based on a work at http://www.psyops.tk/.
Permissions beyond the scope of this license may be available at http://www.psyops.tk/.


Wednesday, December 18, 2013

Mind Wandering

Mind Wandering
Consider that you are sitting in a large room around a dining table. In the room there are a handful of happy people. There are also a few familiar faces that you have not seen in a while. They are possibly your friends and relatives. The room is ornate with candles and balloons and the table is adorned with gifts, refreshments and a nice birthday cake. Everyone is happily clapping and singing birthday carols. You are their center of attention. But there is something wrong about the whole event. That is that you are not quite there. 

Numerous situations like this can be recollected. In an important meeting when you are supposed to pay attention to the minutes, you are mentally in your office. While you are bathing in the washroom, you are thinking about the badminton court. And while driving your car, you are cribbing in your mind about that comment your boss punningly made at your attire last week.

If you are suffering from a problem like this that wherever you are present physically, your mind has flown away to somewhere else, then you are suffering from mind wandering. Mind wandering can be a desirable quality on one hand and it can be quite dangerous behavior on the other.

Of course if you can naturally stretch your imagination about matters meriting some significance in times when you had otherwise been sitting idle, you can possibly use those moments to solve some important problems. Consider about the ample time you may have while you are traveling in a bus to get to work. If your mind wanders during the journey to the technical caveats of your work, you may as well find a solution to your professional issues. 

However, mind wandering can cost you a substantial price too. For instance, think about those cribbing thoughts you may have had about the sarcasm of your boss at your dress. Had you extended that thought train a little bit further and developed an argument, it may not only have become a cause for loosing your job, it could have been life threatening too if you had lurched your car on the road as a result of that mental aggression.

Research suggests that the posterior cingulate cortex of our brains is responsible for this type of behavior. Research also suggests that with continued meditation this region of the brain can become rich in gray matter density. An attribute that is responsible for lesser mind wandering. Research also suggests that there is an inverse correlation between mindfulness meditation and mind wandering. Do you wonder where you can find good recipes for developing mindfulness? Consider sufismdhikr and meditation as cures.



Creative Commons License
Psyops by PsyopsPrime is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Based on a work at http://www.psyops.tk/.
Permissions beyond the scope of this license may be available at http://www.psyops.tk/.

Monday, December 09, 2013

Understanding Superposition

quantum superposition
Understanding ordinary Physics can be quite cumbersome at times. This can be true even for the brightest of the students. There can be a lot of concepts in various topics that may demand a lot of curious scrutiny even if you are studying the basic ideas. Moreover, a very important subject such as theoretical physics may not only sound difficult but also quite boring to the whimsical adolescent who is slowly creeping out of the teen years and would be soon going to the university. What adds to the misery of the student is that how the subject matter is made to appear so esoteric to comprehend while it is orchestrated. 

We had a very nice teacher named Professor Dr. Faiz-ul-Hassan. He used to quote one of his own Swedish teachers while he was a post graduate student that any subject in the world can be explained to any student in a way in which appears easy for him/her to understand. Indeed, Dr. Faiz used to teach very well. I still remember that in his class even the most mischievous of us used to sit and listen to the lectures very quietly and attentively. This is quite remarkable given the lack of interest students generally had in any kind of academic activity. He used to teach us difficult subjects and we used to find them interesting and easy.

A couple of days ago I came across a very nice article that discussed quantum mechanics in the context of human consciousness and its survival after death. The article was quite timely for me because I was wondering how quantum mechanics was connected to consciousness. Even though I could say, "I know what you mean" as an expression in a discourse, I really did not nearly have a clear understanding of superposition and its repercussions on the study of consciousness. Consciousness is recently being acknowledged by science and it would be appropriate to think that any serious student of consciousness should try to understand quantum physics to some extent. It is one of the various ways at looking at the survival of consciousness after bodily death.

So the explanation of superposition was given with the help of a cartoon and I found it very useful, informative and funny at the same time. Even though I had read a little bit about superposition before in the context of quantum cryptography, but I had never understood it so well before. The cartoon is as follows:







If you have seen this cartoon you may definitely have understood superposition and I can bet that you must definitely have enjoyed the cartoon. It just takes a little bit of curiosity to appreciate such work. So giving an explanation of superposition now is rather redundant. I also think that I cannot write an explanation of superposition as nicely as it has been explained by the old man in the cartoon. However, I am going to write down my own understanding of superposition only to gain a little bit of self satisfaction. You can skip this article now if you wish or you may keep on reading it if you wish to leave a nice remark at the end of article.


So what superposition tells us that matter can behave in weird ways. Depending on the circumstances it can retain its physical form or it may also convert into energy. It can exhibit a particle like behavior and it may also act like a wave. This view is endorsed with a so called double slit experiment. What the old man does is that he shows us something with the help of a slit placed between a source of white balls of some sort and a black board on the other. When the balls are fired towards the board some of them strike with the sides of the slit and are deflected away, while a few pass through the slit and form a line-like pattern on the board resembling the shape of the slit through which they passed. 

He then replaces the single slit with a plate that has two slits instead and repeats the experiment. As expected what we notice is that two bands are formed on the wall resembling the shapes of the slits. He argues that this is an intuitive result. 

In the next stage of the experiment what he does is that he replaces the source of balls with an electron gun. So in the single slit experiment a single band is formed resembling the slit. However, in the two-slit experiment, multiple bands are formed as opposed to the two that were intuitively expected. He argues that this seemingly counter-intuitive result is also intuitive. He argues that the electrons exhibit wavelike motion while traveling towards the plate. As they pass through the slits, some of them reinforce each other and while others annihilate each other through constructive and destructive interference respectively. The result is multiple bands as can be seen on the board.

In the next stage of the experiment he starts firing single electron at a time from the gun. He does so to figure out if the electrons behave differently when they are fired in isolation. What he figures out is that same sort of multiple bands are formed again. He argues that while some electrons are deflected and while some pass through one slit and while others pass through the others, the over all result is a number of bands. He owes this to the wave like nature of electrons as they travel to the board (which is possibly a fluorescent screen of some kind that illuminates as electrons strike it). 

The last step of the experiment is crucial. In this step what he does is that he fixes some sort of the detector along side the slitted plated. He does so in the hope of observing the behavior of the electrons as they pass through the slits. To much of his surprise, what he finds is that two bands are formed on the board. He finds this surprising and expects us to be surprised also because he concludes that this time the electrons exhibited a particle type behavior. He concludes that under special circumstances electrons can exhibit either a wavelike or a particle-like behavior. Moreover, he concludes that all matter is capable of exhibiting such behavior.

To us such behavior has far reaching consequences viz a viz human consciousness. It means that in a theoretical sense it might be possible that we humans, which are normally observable as physical beings with flesh and bones, might as well be able to exist other than that too. The question that what was that detector made of that made the electrons so shy that they blushed away from acting like waves demands us to brush up our quantum physics a little bit. Teaching difficult subjects with the help of cartoons like the one above is indeed a very remarkable way of teaching.


Creative Commons License 

Psyops by PsyopsPrime is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Based on a work at http://www.psyops.tk/.
Permissions beyond the scope of this license may be available at http://www.psyops.tk/.

Tuesday, November 19, 2013

Understanding Human Consciousness

Human Consciousness
I recently patched up a small research proposal titled Understanding Human Consciousness. It is a five pages long draft in pdf format. I think it is nice and can be improved by the passage of time. My interest in neuroscience grew between 2008 and 2009 while I started reading books about self help. Awaken the Giant Within was the first book that I read on this subject. It is a brilliant book but I believe that there is a lot more to neuroscience than feeling good alone. 

As I progressed further on the way I cam across ideas of Ray Kurzweil about downloading human consciousness on to computers. I also came across the books of Marvin Minsky which I think are very nice. Emotion Machine and Society of the Mind are two of his really nice books that are worth mentioning. Unfortunately I could not finish reading both of them.

The journey did not stop here. In 2011 I had a chance to read Sam Harris. I would again like to mention that he raises very cogent questions in his The End of Faith. It is indeed a very thought provoking book. Specially the questions he raises about why people believe in one religion or the other are rousing. His concern that such beliefs should be explainable by reason is rational. The other question he raises is that whether any afterlife exists or not. Although I would like to assert that he himself is quite judgmental about that question already.

As the reading journey continued I had a chance to read Irfan. Irfan introduced me to Western Spiritualism. From Irfan I came to know about the various contemporaries of Charles Darwin who were spiritualists and believed in an afterlife. Most notable among these are Alfred Russel Wallace and Sir Conan Doyle. It was quite interesting to read from The History of Spiritualism that he attributed much of the world's misery to materialism and advocated for the adoption of some kind of religion by the humanity. It was quite interesting for me to know this as I thought materialists, or so to say atheists, to be a lot more benign people before this.

Anyhow, introduction to spiritualism gave me a chance to read and skim through many academic papers regarding invocation of spirits and souls, and other aspects related to spiritualism. For instance, there are quite a few tracks in spiritualism that study the ectoplasm, a viscous material that possibly comes out of the mouths of the mediums as they communicate with the dead. Similarly, there are also papers that study the minds of mediums to figure out what sort of people are more conducive for becoming mediums. 

I do not remember the source of the papers but I am sure they can be found through the website of Society of Psychical Research. In the meantime I have also been reading papers on neuroscience from the point of view of mental and physical health as well. They are quite numerous. The conclusion they draw is that most of the mental and physical functions of human body and personality are localized in the brain and that there is no evidence for the presence of a non-physical mind i.e. a soul or a spirit. The burden of coming up with a proof is normally left with the reader.

So given this I thought that I should at least write a research proposal that could sum up all the reading I have been doing over the years. I think that it looks nice. It does not have any citations or references at the moment and I hope to be able to add a few citations by the due course of time. Here is the link to the proposal.

Brain nebula by ezhikoff, on Flickr
Creative Commons Attribution-Share Alike 2.0 Generic License  by  ezhikoff 

Friday, October 11, 2013

Digital Image Processing

Learning an intricate subject such as digital image processing can be a quite of a difficult expedition to undertake. The student should have a firm background in mathematics. He/she should have taken a number of different pre-requisite courses in mathematics and signal processing before even being considered eligible to study image processing. Raafael C. Gonzalez, however, makes that task easy for the student. Digital Image Processing by Gonzales is a book written for the maths shy student. It assumes that the student would have little mathematical background. In so many ways this book can be compared favorably with the one written by Richard G. Lyons on digital Signal Processing i.e. Understanding Digital Signal Processing. In a metaphorical sense these books can be considered cousins of each other for two closely related subjects. 

After preparing the student with initial background material in the first two chapters, the authors illustrates a few spatial domain image treatments. In the first two chapter concepts such as linearity, pixel distance measures, spatial versus greyscale resolution, and shrinking and zooming are described. Chapter 3 discusses image enhancement in the spatial domain. Topics such as contrast enhancement, histogram matching, histogram processing, equalization etc. are explained.  

Chapter 4 is about frequency domain transformation and processing. The author explains the 2-D Fourier transform. In my opinion, this is the best part of the book. The explanation of Fourier transform is not only lucid, it gives key insights into how the whole transformation of image from the spatial domain to the frequency domain is realized. This is done in a step by step manner so the reader may fully grasp the inner workings of the otherwise quite enigmatic Fourier transform. Moreover, it is explained how filtering can take place with the Fourier transform. 

The subsequent chapters discuss more advanced topics such as image restoration and color image processing techniques, image compression. Lossy and lossless methods of compression are discussed. 

Overall the book is quite fun to read and it makes the reader enthusiastic about the subject of image processing. Although it is assumed that the reader has some familiarity with calculus and linear algebra, it is still a very good resource for almost any student from any background interested in studying digital image processing.

Articles Writer

Sunday, October 06, 2013

Understanding Consciousness

One of the topics that is quite hyped these days is the study of human consciousness and its possible survival after death. The argument that human beings have souls that depart to a certain afterlife once we are dead is one of the major tenets of almost every religion. The materialist view, that we human beings, along with all the other life forms. are merely flesh and bones defies any such notion that human beings have souls or that they depart to some other world once we die. To this end, they also argue that there is no such divine entity, such as a godhead, that may have created life. The religious doctrines of creation of universe can be explained away with the help of theories of astronomy, cosmology and astronomy. Similarly, the religious doctrines about the creation of life and humanity can be explained away with the help of Charles Darwin's theory of natural selection. 

Rationalists try to understand and study the nature of survival of human consciousness with the help of various ways in which they can try to tap into the afterlife and communicate with the dead. There might be a possibility that some religious people may have the ability to do it already. I heard (or possibly read somewhere) that Jews have been prohibited to do it according to Torah. Given that it is considered the old testament for Christians and a holy book to be revered by the Muslims, it may be supposed that the followers of these two religions are also prohibited from tapping into the so-called unseen world. Particularly, Muslims are advised to follow a set path and believe in the unseen and are advised not to long for miracles. 

Whether or not there is an afterlife, or whether or not people survive bodily death cannot be proven by believing merely in someone's word of mouth. A religious scripture no matter how convincing it may be is not a proof of any of the extraordinary claims it makes. The claims must be proven from sources other than where they have been claimed. Thus, objectivity demands an honest scrutiny.

People who are interested in knowing about human consciousness and its survival of bodily death leverage mostly from the research of near death experiences (NDEs). As the name suggests, in an NDE a person is subjected to a clinical death of sorts in which electrical activity in the brain of the subject stops. Once rehabilitated back to normal life, the subject is asked to describe his/her experience. A keen survey reveals that there are hundreds of thousands of NDE stories. A review of the NDE research also indicates that NDE research has become a mature field of study with considerable adoption of scientific method.

Another discipline that tries to tap into afterlife is spiritualism. Spiritualism is rather old and established itself in the late nineteenth century. In simply world spiritualism entails methods to communicate with demised soul and to tap into the spirit world. A wide variety of literature is available by various contemporary and prolific scholars of the late nineteenth and early twentieth century. Older people include Arthur Conan Doyle, Alfred Russell Wallace and William Crookes, to name but a few. History of spiritualism by Sir Arthur Conan Doyle is probably the best resource on the subject.

If the findings of NDEs and spiritualists are correct that human beings survive bodily death, and that human beings do indeed have souls that depart to another world as we die, it means that materialism and its related theories of evolution etc. have already been explained away. For skeptics it means that they would have one less dimension to think about as regards existence.
    

Sunday, September 22, 2013

Machine Learning

Machine Learning by Tom M. Mitchell is the first text book for students who aspire to learn the subject of machine learning. It presents detailed and easy to understand illustrations of various concepts that are used in the field of machine learning. These include, necessary topics concerning probability and statistics, artificial intelligence, neural networks and evolutionary algorithms. 

The best thing about the book is its illustration of feed-forward, back-propagation, multi-layer perceptron (MLP). The good thing about it is that the underlying mathematical concepts are explained in a layman friendly manner. One learns techniques for computing partial derivatives and the chain rule for differentiation for the first time in high-school calculus without having any apparent and significant practical benefit. Their utility becomes clear when one reads and understands how the MLP works. More precisely, Mitchell explains how partial derivatives are computed with respect to the weight coefficients at every step of the MLP so as to guide the gradient descent algorithm to plunge into some locally or globally optimal solution. Similarly, Mitchell shows the significance of applying the chain rule to derive weight coefficients at every layer and node of the MLP with respect to the input values at its first layer. The whole explanation is quite fascinating and exciting.

Mitchell also introduces and covers the complicated topic of evolutionary algorithms in a very nice way. Initially various concepts surrounding genetic algorithms are introduced in a lucid manner to make the student comfortable with the subject. Mitchell then illustrates genetic programming. Other important and interesting algorithms are also discussed. For instance, coverage of the famous simulated annealing algorithm is quite interesting. The book is an excellent guide for any student who has began to learn machine learning. 

Monday, July 29, 2013

Shaykh-ul-Islam

Shaykh-ul-Islam, Dr. Muhammad Tahir-ul-Qadri, is an Islamic scholar and a political and a social worker from Pakistan. He is the founder and CEO of Minhaj-ul-Quran International (MQI) which is an NGO aimed at promoting religious moderation, quality education, and interfaith dialogue. Dr. Muhammad Tahir-ul-Qadri is a cogent thinker and writer who has written many books on various topics about Islam. Recently he has written a very interesting book titled Fatwa on Suicide Bombings and Terrorism. This is supposed to be a very interesting and inspiring book. In this book, according to Dr. Tahir-ul-Qadri himslef, he has left no stone un-turned in the theology of Islam in order to argue against suicide bombings and terrorism. This means that he has turned every page of Quran and Sunnah and claims to have argued against terrorism in light of that. This is quite interesting and remarkable. Presuming that the writing of this book is motivated by rationality and reason, it could be a great resource for understanding true Islam. The book is being reported to have been translated in other foreign languages too. Furthermore, I have heard that the book has already been translated to Danish language.


I remember having met Dr. Tahir-ul-Qadri when I was an undergraduate student. I suppose it was back in 1,999 or 2,000. Current era of terrorism had not began yet and the world was a peaceful place in some sense. The reason for meeting him was quite interesting. Two of our very dear friends had become atheists. I would not disclose the names for the purpose of confidentiality. Another one of my friends was very concerned about this. He was affiliated with MQI and proposed to us to take both of them for a dialogue with Dr. Qadri. After much efforts we reached MQI center in Lahore. We were a group of around more than 50 people as I remember. Dr. Qadri was somehow not expecting us. He nonetheless greeted us warmly and we had our meeting and dialogue with him. As the meeting progressed, incidentally the two of our dear friends chose to keep quite. This was rather strange because they used to be very vociferous about their atheistic ideas on the campus. After all the idea of taking them to Dr. Qadri ensued due to this. And they had agreed to having an open dialogue with Dr. Qadri prior to going there.


Seeing their silence and the consequent gravity of the situation, I decided to ask all the atheistic questions that I thought could be the most compelling about the existence of God. I found it interesting because I had recently started to learn to speak in English those days. I used to form a sentence in my mind and then utter it. It used to be questions normally. I learnt to become a bit more spontaneous over the years due to my interaction with books, movies, the Internet and various people. Similarly, my knowledge about atheism was also very limited. I remember that the friend of mine who had reverted to atheism used to keep a thick book along side him. I remember that it posed questions about the existence of God. The idea that someone would read something about the existence of God used to appear very weird to me in those days. I think it would be just as if an atheist or a materialist would find it hard to grasp the idea that God somehow existed. But for me, just like many religious people, God simply existed. There was no question about that!


So as the discussion proceeded, I asked many questions and they were answered and the congregation listened. Most of the questions revolved around the existence of God Himself, creation of life and of universe. Dr. Qadri answered each one of them in the light of Quranic verses. There were other questions like if God created the universe and all the life then who created God. Such a question has a basis in philosophy and the cosmological argument addresses it. There were also other typical questions of the sort that why does an onion have so and so number of peels and why not any other number. For instance, a typical question could be that why is God not like this or why is He like that. Or, why cannot God be seen if He exists. Such questions were also answered. But a problem with such questions is that no matter how much one dwells in to their explanations, the answers can never quell the concerns. Latter in my life I took atheism seriously and read it. This gave me a clearer perspective on what atheism was all about.

Meeting Dr. Qadri was otherwise a pleasant experience. He is a simple and a courteous man. I hope his new book on terrorism is read by every Muslim and non-Muslim.

Fractals

One of the possible sources through which one comes across a knowledge about fractals is the study of Internet traffic behavior. Internet traffic can be said to behave in a self-similar manner. Self-similarity means that given a network traffic trace, the pattern of variability of various network metrics, such as end-to-end delay or variance, at various time-scales does not exhibit any change. In other words it means that given a time-series of network statistics, no-matter how much you zoom-in or zoom-out of  that time-series, the pattern you observe is the same.

Internet traffic behaves in such a way due to various reasons. Self-similarity is modeled using heavy-tailed or long-range statistical distributions. A heavy tailed distribution is one which has its hump on one side and it is skewed to another side. Its tail is rather thick and that is probably why it is called heavy. They are normally classified as belonging to some exponential family of statistical distributions. Pareto and Weibull distributions are examples of such statistical distributions. It has a finite mean and an infinite variance. It is the consequence of this infinite variance that anything modeled through it exhibits a self-similar behavior as described above. I presume that if something like a time-series of internet delays has an infinite variance, it will exhibit the same type of variability no-matter what time-scales you choose to look at it. This makes it self-similar.

The simplest way of understanding self-similarity is usually proposed to be the study of fractals or fractal art. A fractal in fractal art is a piece of art that apart from its aesthetic appeal has one additional quality. That quality is that if one zoom's in or out of the picture, one gets to see the same pattern repeating as was seen in the previous step.

Sunday, July 28, 2013

Mesmerism

Tomb of Hazrat Gul baba Bektash in Budapest, Hungary
It may astonish a few, surprise some others and annoy the others to know that mesmerism is also claimed to have a basis in Islamic mysticism. I read about this in the book Irfan. I made a few translations from that book. My reading of Irfan was motivated by my desire to understand the nature of consciousness. I read it after I read atheism, specially The End of Faith by Sam Harris. The chapters I translated include An Account of Invocation of Jinns, Angels and Souls, The Reality of European Spiritualists and Their Misunderstanding and Certainty in Belief is Dependent Upon Seeing.The book is written by Hazrat Faqir Noor Muhammad Sarwari Qadri Kalachwi (RA). This book was first published in 1942. It has two parts. Both parts also  have translations in English. The urdu version of the first volume can be read here and English version can be read here.

Somewhere in Irfan the author suggests that mesmerism also has a basis in Islamic mysticism  According to the narrative in the times in which Franz lived there used to be Hazrat Gulshan baba Bektashi (or probably it was Gul baba) somewhere in the Eastern Europe. I do not remember the country precisely but I think that it was Hungary. Hazrat Gulshan baba used to treat the people about their problems. By the blessings of Allah he could cure the sick. He was also blessed enough by Allah the he could treat the wounded. Thus, it was reported that many wounded soldiers used to come to him and he  used to make dum on them. In hours of desperation he even used to apply his spit to the wounds of the sick and they used to heal by the blessings of Allah. Even Christian soldiers used to come to him and he was quite venerated by them.



In those years Franz Mesmer started visiting his shrine. From there he acquired a few tricks of the trade viz a viz what we now know as mesmerism or its descendant, hypnotism. This is what I read in Irfan, Allah knows the best.

Friday, July 26, 2013

Understanding Digital Signal Processing

Understanding digital signal processing (DSP) can both be intriguing and frightening in the beginning. The mathematics involved in various integral transforms can turn off many teachers. The mysterious domain transformations can fascinate many a novice. For a long time as a graduate student I was amazed by the underlying idea behind transformation of a digital signal from time domain to frequency domain. I simply could not understand how it happened. After going through many lectures and books, I eventually came across Understanding Digital Signal Processing by Richard G Lyons. 

Understanding Digital Signal Processing (DSP) treats the subject in a way no other author or teacher has ever done. The best thing about the book is that elucidates the various and many key concepts of DSP in an extremely layperson friendly manner.  It is quite inspiring to learn with the help of examples on as to what the various transforms and transfer functions do with a digital signal. One has a great eureka moment when one learns that the Fourier transform is basically a cross-correlation function. In order to know the strength of a particular frequency component in a multi-spectral signal, the signal is simply corss-correlated with another signal of that particular frequency. This is a very enlightening way to learn about the Fourier transform.

There are many other cherish-able ideas in the book. For instance, to know that a FIR filter is basically a smoothing function. Similarly, the rationale behind choosing a particular Nyquist's sampling rate is also quite informative. The reasons for having bell-shaped windowing functions and their linkage with spectral leakage is also explained in a very nice manner. Other topics like the Z-transform, or IIR filtering are also covered in a very nice way.

 Understanding digital signal processing can is the best book for anyone who wants to learn DSP from the ground up. It is also quite suitable for anyone who is an expert but wants a revision of concepts. It is specially useful for learning the key concepts of DSP and for developing a transparency in the mind about what actually happens to the signal when it is transformed from one domain to another. Any person who wants to learn DSP should definitely read Understanding Digial Signal Processing by Richard G Lyons. Understanding digital signal processing (DSP) can both be intriguing and frightening in the beginning. The mathematics involved in various integral transforms can turn off many teachers. The mysterious domain transformations can fascinate many a novice. For a long time as a graduate student I was amazed by the underlying idea behind transformation of a digital signal from time domain to frequency domain. I simply could not understand how it happened. After going through many lectures and books, I eventually came across Understanding Digital Signal Processing by Richard G Lyons. 

Understanding Digital Signal Processing (DSP) treats the subject in a way no other author or teacher has ever done. The best thing about the book is that elucidates the various and many key concepts of DSP in an extremely layperson friendly manner.  It is quite inspiring to learn with the help of examples on as to what the various transforms and transfer functions do with a digital signal. One has a great eureka moment when one learns that the Fourier transform is basically a cross-correlation function. In order to know the strength of a particular frequency component in a multi-spectral signal, the signal is simply corss-correlated with another signal of that particular frequency. This is a very enlightening way to learn about the Fourier transform.

There are many other cherish-able ideas in the book. For instance, to know that a FIR filter is basically a smoothing function. Similarly, the rationale behind choosing a particular Nyquist's sampling rate is also quite informative. The reasons for having bell-shaped windowing functions and their linkage with spectral leakage is also explained in a very nice manner. Other topics like the Z-transform, or IIR filtering are also covered in a very nice way.

 Understanding digital signal processing can is the best book for anyone who wants to learn DSP from the ground up. It is also quite suitable for anyone who is an expert but wants a revision of concepts. It is specially useful for learning the key concepts of DSP and for developing a transparency in the mind about what actually happens to the signal when it is transformed from one domain to another. Any person who wants to learn DSP should definitely read Understanding Digial Signal Processing by Richard G Lyons. The book is particularly suitable for the mathematics shy.

Wednesday, July 24, 2013

Gora

The Urdu word "Gora" literally means "white man" in English. Its feminine counterpart "gori" means a white woman. The word is commonly and quite frequently used to refer to an average white person of a Western origin. Particularly, it is used to refer to European and American white men. But it would not be an exaggeration to include people from other racial backgrounds, like the Chinese and the Japanese, to form a generalization. In short, the word gora can be used to refer to a person belonging to any of the advanced countries. In a literal sense it is used to refer to a white man of Caucasian background.  

It is not uncommon to hear mentions of gora in normal everyday discussions in Pakistan. Gora did this, gora did that. Gora is a genius. Gora is creative. Gora has better laws in his country. Gora has better values. Gora is humane. Gora is humble. Gora is funny. Gora is fun. Gora is simple. Gora is honest. Gora is innocent. Gora's science. Gora's research. Gora's technology. Gora's ideas. Gora is not jealous. Gora is not wicked. Gora's this and gora's that. Indeed, gora can sometimes be discussed in Pakistan like  the way shrimps were cherished by Bubba in Forrest Gump.  

It would not be an exaggeration to say that the gora has earned this good reputation and respect among the Muslim societies due to his/her superior character of the personality. Gora can be discussed in many diverse circles and places, ranging from markets to mosques. Indeed, many Muslims believe that should the gora recite the testimony of purity and convert to Islam, he/she would be a better Muslim than them already. Muslims claim to have with them a code of the most supreme morality in the form of Quran and Sunnah. It is a pity that the values of Quran and Sunnah are not practiced by the Muslims as the way they should be. They, nonetheless, find a practical implementation of these values in the life of a gora. Muslims, however, appreciate this strength of character. 

Monday, July 22, 2013

Air Conditioning

I thought about this idea a long time ago when I was a university student. The idea was to air-condition beds, sleeping bags, small tents, or any other similar thing which has a small volume good enough for one person to sleep in. The next thing is to attach a duct and a pipe with the facility and to eventually connect it to a small air conditioner. The air conditioner will keep the facility cold for as long as it will run. The person who would sleep in it would have sweet dreams. 

Such an apparatus would have an additional advantage. Cooling a small volume of space is easier and cheaper to do than to cool a larger volume, such as that of a whole room. Thus, it can be highly cost effective. Similarly, the same air conditioner that may have cooled a single room that may have been hosting a couple of people can be used to supply cold air to a larger number of people sleeping in things like sleeping bags. This can be done by spreading a small pipeline. And such an air conditioning solution can be useful in countries with hot climate. Countries like Pakistan that are suffering from an acute electricity crisis can benefit a lot from such schemes.


Sunday, July 21, 2013

Language and Speech Production

The other day I was thinking about writing a small research proposal around the idea of studying neurological basis for accent and language production. There were a few interrelated reasons for which this came to my mind. First is based on the observation that some people have a natural talent for adapting themselves to various accents. I have personally met some people who can change from a very crude Punjabi accent to a very polite Urdu accent in a fraction of a second. It was also very cool to observe a few people whose native language was Mewaati and they used to change between swinging Mewaati and plain Urdu in a fraction of a second. Same can be said about multilingual people who can speak languages other than Urdu, such as Siraaiki, Potowaari, Punjabi and possibly also English.  Indeed, I have seen people who can copy accents very fast and can have a wide variety. There are people who can mimic a plethora of lingual accents and dialects. Many comedians and actors fall under this category.

The other reason was based on the observation that some people are more prone to speaking in a harsh and impolite manner. Indeed, swearing is very common in Pakistan. I am not sure but I think that the tendency to swear is related to the idea that a person appears to be more masculine and virile if he does so. I am not sure if swearing is considered a crucial positive aspect in grooming and upbringing of an adolescent boy. Moreover, most of this profanity loving psychology is inherited from Bollywood movies too.  Swearing and the use of obscene expression can be very common in Pakistan. When you have a problem, you swear. When you are happy, swearing can sometimes be the best way to express that joy.

On the other hand, I have also had a chance to come across many very soft-spoken people both in Pakistan and abroad. There are languages and dialects that may be considered very euphonious and sweet sounding. Indeed, the way you speak or the way you are addressed can have a great impact on your personality. However, this may not be claimed that people who are more likely to use rough and obscene language are indecent, less effective or less loved in any way. On the contrary, a sweet sounding person can sometimes be considered weak and worthless as opposed to a person who uses whatever words that come to his mouth and somehow manages to achieves his objectives, such as developing a domineering aura around himself.

But I think that it is worthwhile to study the neurological basis for accent and language production. To this end, it can be a good idea to study how people learn to speak from an early age and how they develop one way of speaking or the other. It would also be a nice idea to see the social and psychological factors that affect the speech related affairs of human personality. Along with that it would also be interesting to study the neurological basis for language. It would be interesting to see what parts of the brain play an important role in language production. Similarly, to see how the human ability to speak evolve over the course of his/her life, and whether it is a adaptable trait. It would also be very interesting to study the benefits multilingual people can have over people who speak only one or two languages. And most importantly, I wonder that what are the benefits and pitfalls of speaking in one way or the other.

Monday, July 15, 2013

The Code Book

After having read Simon Singh's Fermat's Last Theorem and Big Bang it is inevitable that one would go on to read The Code Book too. As the name suggests the book is about the history and evolution of the science of encryption. Apart from being a difficult subject, cryptography can come across as boring and lackluster. But Simon Singh knows how to treat his audience well. The Code Book takes its reader on to a roller coaster ride in to the wonderland of cryptography. In the book Mr. Singh chronicles the development of the science of cryptography and crypt-analysis from the times of ancient Romans and Egyptians all the way to our current times and quantum cryptography. During the course he records all the important events and hallmarks in the history of cryptography. The effect cryptography has had on the lives, wars, liberty and the geopolitical landscape of our times is described in a revealing way.

The Code Book begins with the Romans involvement with early forms of cryptography. Julius Caesar's secret military writings are discussed. It distinguishes between cryptography and crypt-analysis. It also elucidates the role of Arabs in the development of crypt-analysis and a few old methods of cipher analysis. It then goes on to discuss the clandestine plot of Mary queen of Scots to assassinate the British Queen Elizabeth. The assassination plot was deciphered by Queen Elizabeth and she had the former beheaded. At its climax, it moves on to the stage of world war 2 and a significant portion of the book is devoted to the developments concerning the deciphering of Germans' enigma codes. The efforts of Allen Turing and his contemporaries, on both sides, are worth reading.

The author then brings right in to our very own era of so-called modern cryptography. Here the author discusses the evolution of various techniques such as RSA, PGP and public-key cryptography. The author also discusses various philosophical, ethical and moral issues concerning personal privacy in our times. In particular, the discussion on the trade-of between the level of personal privacy and the level of information gathering by the law enforcement agencies is discussed from the point of view of security.

The final chapter concludes by speculating about the future of cryptography and discusses and analyses the potential of quantum cryptography. Here again the author has done a commendable effort to elucidate some of the intricate concepts in quantum physics, specially superposition, and to analyse their relevance with quantum computing and cryptography. Simon Singh has a very inspiring style of writing about popular science. All of his books are written with much lucidity and eloquence. The pace of the plot is fast while not compromising the fine details. A person who opens the book once and set's off to reading looses track of his/her diurnal chores, looses track of time and would find it hard to close the book before the last page is reached. Anyone who would read The Code Book would fall in love with cryptography.






Saturday, July 13, 2013

Big Bang

I developed an addiction for popular science after reading Simon Singh's Fermat's Last Theorem. Afterwards I got hold of his Big Bang. This time I didn't borrow it from the library, rather I bought it for my personal collection of nice books.

The book takes a modest start by describing the earlier notions held by the ancient people of Greece, Perisa and Egypt about the nature and origin of the universe. After setting the stage for a keen discussion on the subjects of cosmology and astronomy, the author lands his readers right in to the lives and works of middle and post-middle age scientists. 

Simon Singh has a remarkable storytelling talent. The manner in which he narrates the history and development of any scientific enterprise keeps the reader spellbound till the last page, and for several subsequent days. The story is never less attractive than any bestselling thriller. Actually, the plot moves so swiftly while hopping over people and evolution of ideas that before the reader gets a chance to contemplate over any particular idea, he/she is ridden to a next more exciting one. Yet at the same time the fine details about the crucial concepts are not compromised. Everything is explained in an extremely lucid manner. And the biographies of the people involved make the whole narrative all the more interesting.

Big bang describes the works of notable scientists like Albert Einstein, Johannes Kepler, Copernicus, Galileo, Tycho Brahe and Ptolemy etc. The list goes on. It discusses the times and circumstances in which these people lived. The hardships they had to suffer. The theories which they challenged or developed. Their confrontation with the bureaucracy and the popularly held beliefs. And consequently how the various theories about the existence of universe evolved. The book is also interesting as it educates its reader not only about the nature of cosmology, but also about the intricate interplay between science with other realms of human existence, such as religion. 
Johannes Kepler

I can never forget having read this book for another reason too. I read this book while in various European cities. These include, Limerick, Vienna, Salzburg and Graz. I particularly remember that while I was reading about Johannes Kepler and his work, I was sitting in a garden in Graz. And when I finished reading the chapter concerning him, I noticed that there stood a statue of him in front of me. Similarly, I remember that read about the steady state model and its comparison with the big bang model on a hilltop in Graz on which I had gotten to through a lift. There were many people around me but I was practically oblivious about their existence. I read about the CMB (cosmic microwave background) on my way back to Limerick in a bus. These vivid memories are unforgettable and romantic.

Big bang is a must read for every student of science. Once you will read it, you will fall in love with cosmology. And you would also want to live the rest of your life as a cosmologist or an astronomer.

Fermat's Last Theorem

I read Simon Singh's Fermat's Last Theorem in 2007. It was recommended to me by a dear friend as a cure to boredom. I was reluctant about reading it in the beginning. My shyness with mathematics was the main reason. I nonetheless got it from the library and once I started reading it, I couldn't put it down till the time I reached the last page. And when I finished it, I was expecting more. I was sad to see it end.

Fermat's Last Theorem is a story about many stories. First and foremost, it is a story about a mathematical problem that ensued from the ancient Pythagorean theorem. Fermat's Last theorem is basically a generalized version of the Pythagoras theorem. It suggests that whole numbered solutions for the higher order Pythagorean equation do not exist. The theorem was proposed by a French mathematician Pierre De Fermat who lived between 1601 and 1665.

It has stories about many mathematicians starting from Pythagoras himself and finishing at Andrew Wiles. The latter spent a significant portion of his life is trying to come up with a proof for the enigmatic theorem. He eventually succeeded. The way in which Andrew and a myriad of his predecessors approached to solve the mystery is absolutely epic and is the subject of this book.

Stories of many mathematicians are told not only from the point of view of their works' relevance to the Fermat's theorem, but also about their personal lives. It is very interesting and motivating to read the stories of some of the mathematicians who grew out of humble circumstances and became some of the most renowned people of all times. Some of the notable people among these are Laplace, Fourier, Galois, Yutaka Taniyama and Goro Shimua, to name but a few. 

The book also has lucid and eloquent explanations of various mathematical concepts and how they evolved over time. For instance, the book explains the generalization ability and importance of a mathematical theorem and its proof. Other topics such as group theory and elliptic curves are also introduced in a layperson friendly way.

Reading this book was one of the best experiences of my life. It kindled an interest about reading and knowing more about various disciplines of science and mathematics. After reading this I went on to read other works of Simon Singh, whose thrilling storytelling style vitalizes any narrative he wishes to tell. Any person who would read Fermat's Last Theorem would fall in love with number theory, at least for a while.

Thursday, November 29, 2012

Random Thoughts About Occasionalism and Science

I recently read the article titled Why The Arabic World Turned Away From Science written by Hillel Ofek. I found it very interesting and a stampede of thoughts and ideas rushed through my mind. Following are some random thoughts about it. I hope to organize them in a better way in future.


But there is another vantage point to it. The Greek science was not rubbish at all. Actually, if nothing else, modern days' scientific method has its roots in Greek Science. Consider the necessity of theorem proving, for instance. While contemporary world was also a lot more advanced, such as the engineering acumen of Egyptians, who raised monumental pyramids, only Greeks made the science flourish by necessitating the adoption of some scientific method. Greeks were genuine thinkers.
This is not to say that Muslims were not. Imam Al-Ghazali was a skeptic of sorts for a considerable period of his life. He eventually proposed occasionalism. The latter means that every single thing and action happens in the universe by the direct and immediate will of God (i.e. Allah, in an Islamic context). This means, for instance, that incidents like hurricane Sandy happen by the direct will of God. Western science states that laws of Physics dictate such events. Occasionalism suggests that laws of physics may be suggested as causes effecting such events. But at the core of them direct will of Allah is responsible for them and the laws of Physics are only used as covers to conceal the divine hand. West frowns upon such ideas. Indeed, even in the midst of such events one can hear Western intellect shouting that the idea that a divine will is responsible for all such events is ridiculous. I know Western skeptics say this even while they are dying. Muslims (and also Christians and possibly also Jews), on the other hand, suggest that the reason behind such events is moral decadency, such as homosexuality and lesbianism.
A belief in occasionalism also has a consequence for the Islamic belief system. This becomes evident when natural disasters like floods and earth quakes strike Muslims countries. In wake of such events, the Western intellect ridiculously asks the Muslims that why is this happening to Muslims and claims that there is no God. Surprisingly, the theology of Islam has an answer for this too; moral decadency of the society. And this is where the debate starts lurching into other extreme dimensions.
    The question is whether Muslims should read philosophy or not. Our times suggest that we should do it. Imam Ghazali suggests that we should not do it. The main reason is that it can lead the Muslims away from piety. Indeed, the propensities of philosophers and the nature of the subject is such that it leads the pupil away from firm belief and lead to heresy. For, if a Muslim was not to pose and address the most arch-question of philosophy, "Does God exist?", he could be lured in to addressing the following question, "Does devil exist?". Or there could be other dodgy questions, investigation of which would at least sway the Muslim away from performing diurnal rituals.

    West has a problem with the way religious people think. While the Muslims, for instance, use all the ifs and buts of logic to show the superiority of their theology, the Western intellect uses them to address the most primordial questions about existence of God. This causes a friction of ideologies. While a Muslim (or a Christian for that matter) would be highly inclined to circumscribe and direct his theses and arguments in a way that eventually find that God exists, philosophers and free thinkers have a genuine problem with that predisposed way of thinking which clearly inhibits free inquiry. This is absolutely understandable. 
    Coincidentally there is now much evidence that human consciousness survives bodily death. A lot of evidence about this can be found in Western literature about spiritualism and near death experiments. This is obviously no proof for the existence of God. Stated in other words, the fact that human beings have ever lasting souls is by no means a proof of existence of a God. Human beings could possibly just have souls just like they have bodies. I would not be surprised to hear one day of emergence of a theory concerning evolution of human souls. But if the evidence that suggests that human beings have souls is true does point to the possible truth of religion, which after all is all about afterlife and souls. This again does not point us to the truth of a single religion. All religions have mentions of souls and afterlives within them. And a keen adherence to the spirit of science demands that we stick the necessities of evidence and proofs. Evidence and proof are indeed two strong pillars of science.
    Meet an average European guy, who is possibly also a student of sociology. Ask him about his views on religion and he would say that religion is wrong. This is suggested because of sociological reasons. For one of the things religion is considered important that historically it has been a vital tool in organizing the society. West wants to get rid of this crutch. Western intellect claims that society could be organized by adopting means from other ecological systems. Study apes, for instance, and we can learn to make peaceful and prosperous communities. But organizing the society is and has possibly been one trivial utility of the society. The main speciality of religion is afterlife. It is to meet this end successfully that religion has other arenas pertaining to the worldly social life. And if there is indeed an afterlife, religion becomes all the more significant. Organized religion may as well be wrong, specially if there is no afterlife. But I have a propensity that if any organized religion stands a chance for being right, it has to be Islam as it is the most organized of them all. I make this claim based on empiricism in some sense. Islam has already addressed every thing. This includes Christianity, Judaism, Idolatry, polytheism, atheism and all the philosophical intellect. This has been done in Quran. And Allah invites every human being to convert to Islam. This is done by frightening, by encouraging, by showing great rewards, by showing that He is merciful and extremely punitive at the same time and by showing them signs. Muslims are advised to invite others to Islam and to amend their own ways in the meantime. In the meantime they have been consciously advised not to use force of any sorts. For there is no compulsion in the religion. The greater emphasis is on the Muslims to live according to the tenets of Islam in this ephemeral worldly life. In the mean time they have also been advised to resist any force that tries to sway them away from achieving their otherworldly goals. This is called Jehad. The smaller and the bigger jehad. Which, of course, Muslims have not been doing very well.

    On a separate note, Ubqari is a non profit organization that invites people to the religion of Islam. There are many prayers and Islamic medicines that can be found here. By and large Pakistanis browse the website the most. The second largest number of people who browse the website are from the United States of America, the third largest from from Saudi Arabia and the Fourth Largest from the U.K. There are many healing methods that are taught, such as Islamic sufi meditation. The message of the organization is not that of terrorism at all, but a genuine effort to attract the humanity to the religion of Islam. I would like to assert here that organization does not teach Muslims to hate non-Muslims. I am privy to this as I have heard many lectures of Hazrat Daamat Barkaatam Allama Hakeem Tariq Mehmood Chughtai. I have to force this point because I have read many Western accounts, specially those of Sam Harris, which claim that Islam spreads hatred. This is not true. I have heard Hazrat crying in combined prayers for infidels too. Islam is not a hate based religion. Besides, mostly average Muslims genuinely love the Western people. Indeed, this is because of the general attitude of the Western people which makes them so adorable. Even if you don't like it, Islam is worth reading and understanding.