President Obama was just commenting on what happened in Egypt!
For us we see him just repeating what we have been already hearing from our media and actually seeing with our eyes. But we can see him felt the responsibility to show the world that we are a civilized and peaceful nation.
I could say that international media was transferring other pictures from Egypt despite Pyramids, temples, monuments, Camels and Sharm el-sheikh. We are a country that dates back to 6 thousand year but we aren't old.
I invite you to be here in Egypt not right now, but in a couple of months to see Egypt. Not just to see the pyramids, but also to see our civilization and hospitality. You will be safe and even safer, will you come?
Saturday, February 12, 2011
President Obama speek 11-February-2011
Posted by
Mohamed Mohab
at
2:18 PM
1 comments
Labels: obama speech
Friday, October 29, 2010
bibalex new DAR site
I have been working for a while in Bibalex digital book new site, here is a sample embedded book from the new site.
The book site provides users with online access to bibalex out of copyright books as well as a limited preview of copyrighted books.
You can sign up and enjoy new features like annotation tools which includes highlighting text, underlining text and adding stick notes in a certain position in a book.
the release version of the site is http://dar.bibalex.org/
Posted by
Mohamed Mohab
at
11:32 PM
0
comments
Tuesday, September 30, 2008
Computer aided poetry
Computer aided poetry
For many years computers have been used to perform complex computations and make visual simulations and even think in an intelligent way. Can computers write text and poetry like humans?
The approach to let software produce text is either by synthesizing text or poetry from pre-existing text. Other approach is by using dictionaries and rules for sentence construction.. Either way, the use of the computer to generate texts challenges the very nature of the text and the role of the author. But the texts in themselves can also be beautiful.
A program called MarkV can produce text from a collection of some poetry fragments, here is some output:
He was a light, slow, and there is a small Saturn -- away from a high flame lying in the life within it, a new dune, we are formations of caterpillars, we are formations of craziness to innocent, and as it moves it is complete different than the rising face, the cold water, even we can't see infinity is an ocean of downy treasure the welldeep pleasure of caterpillars, we are formations of the world, and what it with the ecstasy of the day is an iceberg we find ourselves on a caress mingled with sleep kill me its lights bands of subjective experience, and wonder why I had dirt a star-crystal-flower plants, made the dragon. Its neck was a novel entitled "Kaleidoscope Vision," which is hat crinkle were like fresh glass domain key - you become someone mentioned them and build in. We see the white my own rising and thunder clapping in the singularity of it, evaporating into a tree, like a long before shade. electricity continues all languages are swept in spirals, in the coming moment
jpoetry poetry generator
http://www-cs-students.stanford.edu/~esincoff/poetry/jpoetry.html
Heretical Rhyme Generator
http://www.pangloss.com/seidel/Poem/
Posted by
Mohamed Mohab
at
7:12 PM
1 comments
Wednesday, January 23, 2008
Calculating Muslims' Prayers Times
I thought how to mathematically compute prayer times? Then I found that calculations of prayers times are more complex than I imagined.
Do you think that Douhr at 1 JAN 2005 is at the same time of 1 JAN 2008 for the same location?
Do you think that prayer times are the same for locations of the same longitude for the same date?
Are there any parameters other than date and location that could be taken into account when calculating prayers times?
What about prayers times for locations near poles where day can be as long as months?
Let's start by Douhr:
Douhr starts after midday. Computation of Douhr time depends on the location and the date:
EQT is equation of time.
Z is Douhr time in hours.
Since Time zone and L are constant over time i.e. depends only on location, the only time varying element is EQT equation of time which is defined as the difference between Local Apparent Time and Mean Solar Time in minutes. Time measured from sundial is the Local Apparent time while Mean Solar time is that of a clock. This difference arose from the fact that the earth's orbit around sun isn't a circle, but an ellipse. Other reason is the angle of obliquity which is the angle between that the plane of the Equator and the plane of the Earth's orbit around the sun.
You can notice that there are 4 days of zero EQT Apr 15, Jun 14, Sep 2 and Dec 25.
Accurate calculation of EQT depends on the Julian day which a count of days since Jan 1 4713 BC. Some EQT graphs are inverted, simply add EQT to equation of Z instead of subtraction.
A good approximation of Equation of time:
EQT = 229.18*(0.000075+0.001868*cos(rads) - 0.032077*sin(rads) - 0.014615*cos(2*rads) - 0.040849*sin(2*rads))
Fajr and Isha:
Fajr and Isha depend on Duhr as follows:
Fajr = Duhr – Tw(Ө)
Isha = Duhr + Tw(Ө)
Tw(Ө) is the period from noon till a twilight angle Ө.
Twilight: earth's atmosphere scatters sun light. In the absence of atmosphere on earth there would be no sunlight after sunset and before sunrise. So, Twilight causes gradual decrease of sunlight.
Twilight angle is the angle between line reaching sun's center and the horizon. Sun's center must be below it.
Greater twilight angle leads to earlier Fajr and later Isha.
This table represents conventions used to choose twilight angle
| Convention | Fajr Angle | Isha Angle |
| Leva Research Institute, Qom, Iran | 16 | 14 |
| University of Islamic Sciences, Karachi | 18 | 18 |
| Islamic Society of North America (ISNA), USA | 15 | 15 |
| Muslim World League (MWL) | 18 | 17 |
| Umm al-Qura, Makkah, Saudi Arabia | 19 | 90 mins after Maghrib |
| Egyptian General Authority of Survey | 19.5 | 17.5 |
To imagine twilight go to seaside at sunset and observe the sun gradually disappears , when you see the center of the sun at the horizon level , then the twilight angle is just near 0. Now the sun disappears and still sunlight is observable, that's twilight. Twilight ends when no sunlight is seen. The same can be done at sunrise.
Tw(Ө) is the period from noon till a twilight angle Ө:
D is declination angle.
Calculation of D depends on location and Julian date.
Other approximation for Declination angle is:
D = 0.006918 - 0.399912*cos(rads) + 0.070257*sin(rads) - 0.006758*cos(2*rads) + 0.000907*sin(2*rads) - 0.002697*cos(3*rads) + 0.00148*sin(3*rads)
Sunrise (Shrook) and Sunset (Maghrib):
Similar to Fajr and Isha but with twilight angle of 0.8333.
Sunrise = Duhr – Tw(0.8333)
Sunset = Duhr + Tw(0.8333)
Sometimes more accurate measures can be obtained by taking into account height above sea level.
Asr:
According to Shafii, Hanbaly and Maliky mathab Asr starts when the length of an object's shadow equals the its length plus the length of its shadow at noon. While to Hanafi mathab Asr starts when the length of an object's shadow equals twice its length plus the length of its shadow at noon.
So ,
Asr = Z + offset
Summary:
To compute prayer times we need:
- Know the location (latitude - longitude), time zone and date.
- Compute Julian day, equation of time and declination angle.
- Start by Douhr.
- Then, compute Maghrib and sunrise.
- After that, compute Fajr and Isha using appropriate convention.
- Finally, compute Asr according to desired mathab.

References:
Some astronomical facts:
http://www.astronomicalfacts.com/article.html
The real helpful and correct source about prayer times.
http://www.ummah.net/astronomy/saltime/
Julian day and Equation of time calculator Javascript! Get its source to know method of calculation!
http://www.go.ednet.ns.ca/~larry/orbits/jsjdetst.html
Declination angle, sunrise, sunset PHP calculations step by step!
http://users.electromagnetic.net/bu/astro/iyf-calc.php
Posted by
Mohamed Mohab
at
2:08 PM
3
comments
Labels: Islamic Prayers, Prayers Times, Salat timer











