قُلْ إِنَّ صَلَاتِي وَنُسُكِي وَمَحْيَايَ وَمَمَاتِي لِلَّـهِ رَبِّ الْعَالَمِينَ - الأنعام: ١٦٢

Tuesday, January 19, 2010

Thank You Allah

السلام عليكم و رحمة الله و بركاته
what are you most grateful for?
Let's share things we thank Allah for...

Remember...not All people remember to Thank ALLAH
o ولكن أكثر الناس لا يشكرون (يوسف38)
but most men thank not
o ولكن أكثرهم لا يشكرون (النمل73)
yet most of them do not give thanks
o وقليلاً من عبادي الشكور (سبأ13)
But few of My slaves are grateful
o قليلاً ما تشكرون (الملك23)
Little thanks you give
o اذْكُرُوني أَذْكُرْكُم، واشكُرُوا لي ولا تَكْفُرُون (البقرة152)
Therefore remember Me (by praying, glorifying), I will remember you, and be grateful to Me (for My countless Favours on you) and never be ungrateful to Me.


And those who thank ALLAH are rewarded
وَإِذْ تَأَذَّنَ رَبُّكُمْ لَئِن شَكَرْتُمْ لأَزِيدَنَّكُمْ وَلَئِن كَفَرْتُمْ إِنَّ عَذَابِي لَشَدِيدٌ (إبراهيم7)
And (remember) when your Lord proclaimed: "If you give thanks (by accepting Faith and worshipping none but Allah), I will give you more (of My Blessings); but if you are thankless (i.e. disbelievers), verily My punishment is indeed severe."



[Idea copied from my sis (a)]

Thursday, January 14, 2010

My Visualization Package

Al Salam 3alikom w ra7mat Allah w barakatoh :)

yesterday we had our visualization practical exam. I really enjoyed the package we did in that subject. I learned a lot & had fun debugging the colors :D

Here it is...


Visualizing scalar data using the following techniques
-Edge coding
-Face coding
-Line contouring
-Flooded contouring
-Iso surface [marching cubes]

How to Use it?
Getting Started
Open a file [included with the setup file]
File->Open->browse for a file

Apply any of the algorithms
File->Apply->select an algorithm

Select a variable to visualize (if there exist multi variables in the file)
Properties->Visualized Data->select from the combo-box (if there exist other variables for the file)

Mesh visibility
you can choose whether the original mesh is visible or not
Properties->Mesh visibility->Show/Hide

Choose a coloring style
Properties->Color map style->LUT/TF

Mouse Interaction

There is also some friendly interaction with the mesh using the mouse

Zooming
press 'z' to enable/disable zooming
zoom in: double click
zoom out: right click



Translation
press 't' to enable/disable translation
now drag & drop the mesh (it doesn't move while dragging)

Rotation
press 'r' to enable/disable rotation
just like in translation u'll act as if you are dragging the mesh in order to rotate it...also doesn't rotate except when you release the mouse hold.

Here is a sample output
This project is built using C# & OpenGL

Find the project & some sample data files in my shared files =)


Marching Cubes works on some special meshes (3D)
use order1.dat





Despite all the negative energy I had this term :D
This project, this subject & this doctor...really made SC Rocks :D

Related Links:
color map editor: The basic idea of the whole thing
Contouring: I remember when I wrote this post, wasn't actually understanding what I was trying to do :D

Thursday, January 7, 2010

Seek Refuge with ALLAH from Satan


السلام عليكم و رحمة الله و بركاته

From things I've learned in life, that Satan "الشيطان" doesn't try to tempt those who are already doing sins. They aren't his target. They're already into sins, so why bother?!
He'd rather stay at the mosque's door trying to do anything with those who have just finished their prayers.

This is not good, however we've learned from Qur'an that Satan is weak! and he can't control us!
( إن عبادي ليس لك عليهم سلطان إلا من إتبعك من الغاوين ) [الحجر 43]
(إِنَّ كَيْدَ الشَّيْطَانِ كَانَ ضَعِيفاً) [النساء:76]

Old info...I know...
So why am I saying this??
It's because in every good thing we do....in every happy moment...in every peaceful moment
Satan tries to ruin it...and we -MUSLIMS- shouldn't allow him to!

We know from our prophet's sayings (peace be upon him) that those who love each other for Allah will be in HIS Shadow in the Day of Resurrection.
رجلان تحابا في الله اجتمعا عليه و تفرقا عليه
This is one good thing that we try to do and Satan tries to ruin it for us.
He doesn't want us to be Happy...and he doesn't want us to enter The Heaven.

There are two messages here:
  1. Whenever you're doing something good/happy.... start with seeking refuge with Allah from Satan. (أعوذ بالله من الشيطان الرجيم)
  2. If things went wrong...and you became angry...Remember our prophet's advice (peace be upon him). Perform the ritual ablution (توضأ)
إن الغضب من الشيطان وإن الشيطان خلق من النار وإنما تطفأ النار بالماء فإذا غضب فليتوضأ
خلاصة حكم المحدث: [لا ينزل عن درجة الحسن وقد يكون على شرط الصحيحين أو أحدهما]

(فإذا قرأت القرآن فاستعذ بالله من الشيطان الرجيم) سورة النحل 98

Allah taught us to seek refuge when reading qur'an...so What about all the other things we do in life??

Sunday, January 3, 2010

It couldn't be done!

It couldn't be done
Edgar Guest


Somebody said that it couldn't be done,
But, he with a chuckle replied
That "maybe it couldn't" but he would be one
Who wouldn't say so till he'd tried.

So he buckled right in with the trace of a grin
On his face. If he worried he hid it.
He started to sing as he tackled the thing
That couldn't be done, as he did it.

Somebody scoffed: "Oh, you'll never do that;
At least no one we know has done it";
But he took off his coat and he took off his hat,
And the first thing we knew he'd begun it.

With a lift of his chin and a bit of a grin,
Without any doubting or quiddit,
He started to sing as he tackled the thing
That couldn't be done, and he did it.

There are thousands to tell you it cannot be done,
There are thousands to prophesy failure;
There are thousands to point out to you, one by one,
The dangers that wait to assail you.

But just buckle right in with a bit of a grin,
Just take off your coat and go to it;
Just start to sing as you tackle the thing
That cannot be done, and you'll do it


was about to say "I give up"...but remembered
He started to sing as he tackled the thing
That couldn't be done, and he did it.
el7amdulellah :) [5/6]