/index.xml

the aftermath of the accident

during the accident mentioned in the previous post, the laptop was in the trunk on the far left side (the place that took the impact from the truck hitting it).  when i returned home, i found that my macbook had become officially paralized (the screen was cracked, so light would come out from the screen, but you couldn’t see anything.  also, the laptop can no longer sit properly and the casing was deformed).  miraculously, al7amdulillah, it did not die.  it still had full cognitive abilities (with much trouble, i was able to finally get ssh and vnc access to the machine to get my data off of it).

a near death experience

on monday, june 7th, myself and two brothers needed to go to the smart village in the morning and come back to alexandria in the afternoon.  we rented a “limo,” (which is just a normal rental car with a driver) to take us, wait for us, and bring us back.  we left early in the morning, finished our work, and left cairo to go home a few minutes after maghrib.

the road that connects cairo to alexandria is called “taree2 (masr eskenderia) al sa7rawy,” or “cairo-alexandria desert road” as google maps translates it.  the distance is about 200km (~120 miles).  the way people in egypt drive, combined with the high speeds, bad lighting, and bad conditions of the road make this road a dangerous place, especially at night.

anyhow, along the way, after traveling about 46km from cairo, the driver smelled something and said, “i smell something, let me check on the tires” - he parked on the side of the road and found a tire had gone flat, so he put on the hazard lights and said he would replace it.  we looked and found a masjid right next to us and decided to go and pray maghrib and isha there while he finished repairing the tire.

the masjid was at a lower elevation than the road (10-20ft), so we went down (on quite a sandy area) to the masjid which was very small, old, etc.  we prayed, and started walking up to get to the car.  we saw the driver was done and started backing up the car a little bit.  we finally got to the top (to the shoulder of the highway).  we approached the car, and when we were one step away and i was about to open the door, i saw a medium sized going at full speed crash straight in the car, leaving a track of dust, glass, debris, and making the car fly into the ditch into the lower elevation of the area where the masjid is.  for a few seconds, we saw fire, and then it stopped.

when the dust had settled, we were really shocked and worried about the driver - miraculously, al7amdulillah, nothing happened to either driver - both were okay.

needless to say, we were very thankful - if there hadn’t been a masjid there, and if we hadn’t gone to pray, i would have been on the left passenger side of the car, the area of the car which took the majority of the impact.  if we had been just 3 seconds later, i would have been opening the car door and/or have gotten into the car, and in this case, i may have been seriously hurt.

so al7amdulillah that i am alive - as Allah (swt) says in:

“And He is the subjugator over His servants, and He sends over you guardian-angels until, when death comes to one of you, Our messengers take him, and they do not fail [in their duties].” 6:61

sub7anAllah.  so anyhow, it appears as though the driver of the truck had fallen asleep or something and thus hit the car, even though it was clear that it was on the shoulder (well inside), the blinkers on, etc.

after the accident, the car was in the hill between the higher and lower grounds - on it’s right side was a huge concrete block that the car could have hit.  the driver later told us that he felt something telling him to reverse the car - had he not, he would have hit one of many metal poles hanging out from the ground on his way down.

but get this - the truck stopped - in the middle lane of the highway, and that’s where it stayed for about an hour until a big truck was able to come.  people stopped the traffic manually (with nothing but one of those red-lit sticks) and had a big truck (literally) drag (with a rope) the medium sized truck to the side of the road.

[gallery exclude=“19” link=“file” columns=“2” orderby=“ID”]

anyhow - some interesting points were that 1.  the people that reside in the area where we stopped got out and left what they were doing to help us, offered water, support, and helped moving the cars to safety.  2.  people in egypt are really afraid of police, especially in high speed accidents.  3.  the man decided not to press charges when the police came (one possible reasoning is that the company he works for has brought the car into the country on a “diplomatic visa” so that they don’t pay taxes for it, and yet aren’t using it for “diplomatic purposes,” and so they could get in trouble).  3.  people in egypt drive at insane speeds on that road and corresponding small roads.

the driver had someone else working at the company come from alexandria to pick us up and drop us back.  it was hard to sleep on the way back - the new driver was a very aggressive one, and along the way, we encountered fire fighters putting out a car on fire from a different accident, a car going the opposite direction on the highway, and cars going extremely slowly in the left most lane of the highway, thereby almost causing accidents.

i’ll write about the aftermath in another post insha’Allah.

introduction

بسم الله الرحمن الرحيم،

there are fobs and there are abcXs… being born in cairo and raised in the us, i happen to be neither and both at the same time.

this blog is entitled “عسل و طحينه” - the name was inspired by “عسل اسود” (molasses), a new movie (which i still haven’t seen) for ahmad helmy documenting an egyptian american’s attempt to move back to egypt after living in the us for years. “عسل و طحينه” is an (awesome) egyptian dish in which you put tahina on top of molasses and eat it with bread. the word tahina itself also means “hard, strenuous work or effort,” which i figured may add to the meaning as well.

since moving back to egypt almost a month ago, i often found myself thinking, “this situation would make a good blog post,” so i decided to start this blog to document my experiences here.

desktop screenshot for february 2010

full size

here’s a screenshot of my linux box taken on february 25th, 2010. click the image above for the full sized view. linux desktop running openbox, a bunch of transparent urxvt terminals, cairo clock, and trayer (with banshee, pidgin, transmission, pino, dropbox, guake, and tomboy running).

i recently finished watching the old star trek movies, hence the star trek influenced desktop. and, of course, here’s the problem with teleportation.

google buzz - friend or follow

i like the site for twitter, ‘friendorfollow,’ which tells me who i am following and isn’t following me back, who are following me and i am not following back, and so on. given that i got access to google buzz today, i decided to write a little script to help me determine the breakdown of my friends (specifically, who i am following and isn’t following me back, since the rest of the information is easy to read off of the website anyway).

this script will tell you who your friends are (lol, i wish), who your fans are, and who you are following but isn’t following you back. unfortunately, there’s a manual step involved (getting the server response with your friends and followers). there’s really no point in trying to automate this right now, because soon enough, i expect that one of the google apis will expose this functionality.

(removed download since this probably doesn’t work anymore).

so sick of farmville...

wanted to take a short break, so i decided to take out 20 minutes and write a silly song about farmville (it’s a rip off of ne yo’s “so sick” song). note that the lyrics (and thus the mp3) are in pre-alpha (and are not likely to see any future revisions).

audio version

lyrics:

gotta change the favorites i have, for the new design in store, cuz right now i really can’t, take it any more, and i know it makes no sense, cuz my farm is nice fo’ sure, but i can’t wait for gas anymore.

it’s ridiculous… it’s been weeks, i’ve been playing and i can’t get over it, and my time’s worth more than this, enough is enough, no more sitting around, clicking around, i am so tired of farmin’ up, to get ahead of you,

and i am so sick of farmville, hear me loud and clear, so done with planting, flowers and corn ears, and i am so sick of farmville, and the much clickin’ fo sho' so why won’t this game leave me alone?

got nice equipment on board, a tractor and seeder, too bad they’re as useless as, a plastic weed eater, i am so sick of running out of gas, and clicking every square, and how every click must be multiplied by three…

that’s the reason that i am so sick of farmville, hear me loud and clear, so done with planting, flowers and corn ears, and i am so sick of farmville, and the much clickin’ fo sho' so why won’t this game leave me alone?

said i am so sick of farmville, hear me loud and clear, so done with playing a game, makes me bored to tears, and i am so sick of farmville, unless i find a bot, so why won’t this game leave me alone? why won’t this game leave me alone…

salam, android!

after the nexus one came out, i became a little more interested in android. while i had written a simple ‘salam world’ app some time ago, i figure it would be nice to delve a little deeper and try to write something remotely useful.

so without further adieu, introducing a (very simple) quran for android:

source code on github

for the most part, android is fairly fun and easy to develop for. however, one of the most frustrating parts is the extremely limited memory for apps. since apps can’t be on the sd card (due to some security issues), you are limited to the very small amount of memory on the device. consequently, in order to display the images for the quran in this app, the app must download the data to the user’s sd card.

note - try it at your own risk, i only tested it on the emulator…

so long, yahoo!

on july 19th, 2006, i posted my first blog post from california. i moved there to start a new job at yahoo! ~3.5 years later, it was time to go, and so at this point, i am officially a non-Yahoo!

what’s next? i don’t know yet, but i am both excited and optimistic about the future. insha’Allah khair. maybe it’s not a bad time to give a startup a shot…

a little rhyme about makkah

mok and i were chatting about makkah on im and we brought back a very old habit of ours from the days of highschool and college - rhyming about any and everything. so without further adieu, here’s a snippet from our im conversation:

omer: makkah makkah, i love u like i love my motha you are a city like which there is no otha above u the angels do hover

me: in you i am a little more pious i drop my prejudice and all my bias the times of salah set my pace, before the adhan to the haram i’d race

omer: as i see the nur coming off them hujjaj’s face

me: first floor, second floor, or even third watching the tawaf made by humans and birds

omer and i: seein people doing tawaf around the clock all types of people - doctors, engineers, nerds and jocks

omer: and as the clock, goes tick and the tock u listening to the rhyme by mok and ak

by the way, you can see a few of the pictures i took at the haram here.

quran jetpack script

so i had a little bit of time before i depart on my journey for hajj, so i wanted to play around with the firefox jetpack extension a little bit. so without further adieu, this post is here to introduce a simple quran plugin for jetpack :)

what is it this is a quran script for jetpack, a plugin for firefox which allows customizing the browser just through javascript.

when you are typing in a textarea (in wordpress, gmail, google talk, etc), if you highlight any text in the format of sura:ayah (ex 1:1) and right click on it, you will be given a menu that allows you to replace that with the actual verse (in arabic, transliteration, or translation).

this is very nifty for taking notes, chatting, sending emails, etc.

how does it look like? here is a screenshot: quran jetpack script screenshot

known issues

  • sometimes, the server appears to take long to reply so it doesn’t return and you are forced to try again.
  • the plugin doesn’t work on google docs and other sites that overwrite right click functionality.
  • the plugin also doesn’t seem to be working on gmail when rich formatting is on.

how to install it

  • install jetpack for firefox.
  • go to this page. on the top right corner of the webpage, you will find a button that says, “Install…”. click it.
  • scroll to the very bottom, click the “auto-update this feature” checkbox, and then click on “i know what i am doing, install it!”

source code the source is also available as on github in this gist.

changelog november 16th, 2009

  • fixed a bug in which the appended (sura:ayah) to the text was put at the end of the textarea rather than right after the ayah.
  • added a little favicon for the menu.

quran jetpack script screenshot