Friday, February 4, 2011

Undo - Redo library for .NET

Recently I was working for a client who required a Undo - Redo functionality implemented for a listview on his C# based application. I did a search on the internet which introduced me to a design pattern called "Memento Pattern" which indeed is designed solely for the use of managing memory stacks. There were some good articles on CodeProject on implementing this, yet it was a bit time consuming for me to grasp the idea quickly. Luckily I came across this free library from Software Productions which gave a boost to my thoughts. Actually it uses a circular array for the memory stack and was quite generic too. I hope it helps others too.

Tuesday, February 1, 2011

Permissibility of Music in Islam

I was recently very much inspired by the emergence of music artistes such as Sami Yusuf and Maher Zain who I felt are doing a great job in spreading the message of Islam with modern music culture. Then again a long lasting anonymousness was striking my head, of whether music is permissible in Islam. From my childhood I have heard of repeated sayings from different scholars that music is haraam (not permissible) without a second thought. I have been trying to keep myself attached to those teachings, yet on many occasions human nature or Satan leads me to listen some sort of music. But after listening to their songs and their personal intentions I felt there must be some sort of permission and limit in Islam in terms of music. Alhamdulillah I came across this nice explanation which I believe will try to adhere to: