Gender equality, misunderstood

I’m living in a country at the far north-eastern corner of Africa, called Egypt. we are a mix of cultures. we’re Pharaohs, Africans, Arabs, Christians and Muslims; all in one.

One of the hot topics you would see Egyptians talking about a lot recently on Facebook and twitter is sexual harassment.

Like 30 years ago, sexual harassment wasn’t something with any real existence in the Egyptian community. the problem started to develop during the last 30 years for some reason, but since the revolution in the country in 2011, people started to talk openly about this issue. Continue reading

Late new year’s resolution

I’m 2 months late to put a new year’s resolution but the idea hit me couple of hours ago. I was thinking about how to reorganize my life and plan forward for the coming few years, but I remembered that I didn’t even write a new year’s resolution since 2008.

anyway, better late than never. so here’s my list for the coming 10 months:

  • Ballet dancing! (turned to be a bad idea)
  • use Nodejs in a real project
  • reach a satisfying decision about the best way to structure an MV* frontend JavaScript app
  • build a mobile web app
  • build 2 mobile apps for Android with the same features and look. one as a native app, and the other as a hybrid app to compare both methods realistically
  • work on my UI design skills for web and mobile
  • read more about product design and UX research
  • buy a bike to use for daily transportations in Cairo
  • buy a new phone and give my 2 years old phone to my young brother or sister
  • go to gym (a big lie .. but I have to list it anyway)
  • start writing again for PHP Master
  • write a new blog post here each week
  • try to remember parent’s birthdays early enough (mom: Aug 7th & dad: Oct 9) to get them presents. I never did!
  • travel to another country for some days
  • learn to cook healthy food and try to stop eating fast food as much as possible
  • redesign this blog
  • stop caring about what others say or think about me
  • memorize and understand part of Quran
  • start a strict saving plan and pay all my debt

This isn’t everything on my mind, but I think this list is enough to keep me busy till the end of year. hope I will do +90% of all that -isA-.

When Army officers break promises – #ArmyViolations

Egyptians went out to streets on Jan 25, 2011 peacefully trying to bring a regime down and get their freedom and dignity back. after 18 days, Mubarak leaved the presidential palace and moved all his authorities to SCAF (Super Counsel of Armed Forces). more people went out to streets celebrating their victory and SCAF started by talking about how the bad era just ended and how they will start to a new era of respect, freedom and real democracy.

Unfortunately, the dream didn’t continue for so long and things didn’t go like what SCAF promised. we started to see news about how the army forced 18 women protesters to undergo virginity tests. Army started to deal aggressively with citizens like what police used to do before Jan 25. Army started to attack protesters in Tahrir square every night and arrested many citizens and they were trialed infront of military courts.

On the first day of Ramadan (Aug 1, 2011), hundreds of Army soldiers with many police soldiers attacked the protesters camping in Tahrir square and arrested 111 of them who were released after 2 days. there were some videos and blog posts by protesters that show how Army treated protesters violently.

These violent acts were repeated again during the fifth day of Ramadan (Aug 5, 2011). citizens organized a group Iftar which let Muslims and  Christians have a chance to eat together in Tahrir square after fasting all day. army soldiers were ordered to attack these citizens again after moments of finishing eating their Iftar.

This blog post is part of an initiative to blog about Egyptian Army violations. all what we want our Army to remember is that “your mission is to protect me, not to erase me”.

We respect those soldiers and officers who protect our borders and I was one of them before, but this doesn’t give them the right to treat citizens like that.  we are all live in this country and have the same rights and every one deserves to be respected whether if he agrees with the decisions of the SCAF or not.

Remember that you promised to protect this revolution and remember that Army ethics tells you .. never break a promise and never betray your people.


Ramdan - Army soldiers attacking citizen

Developers in open work spaces

Are you working in open work space where all your co-workers are sitting in the same place with no walls between each desk? If your answer is yes, then mostly you know that the majority of people don’t understand how their loud talks can affect the productivity of their colleagues. some jobs require a big amount of concentration, let me just be specific and talk about software developers.

Most companies don’t give each software developer his own office and a door that he can close whenever he wants to concentrate and get isolated of the world. to provide an office to every developer you need a big place and big places are expensive and most software companies are managed by people who don’t get why would these developers need offices; they say that developers are just normal employees, not super stars.

We know that it’s not about being super stars as much as it’s about a fact that developers work on solving problems that contain a lot of little details, and the normal human brain won’t be able to hold those details together for longer than 5 minutes and connecting the little details is another harder task. I don’t imagine that a developer working while surrounded with many talking people will write code with good quality. he won’t be able to focus and won’t notice many logical errors and after some days this will give him more bugs to solve and more time to lose. this will force the company to pay more money and lose more time.

I don’t think that you will get your own office soon; unless you get the chance to work in a company that treats developers as super stars or maybe you will wait longer till you become a manager.

But now, what can you do? I think you can try to talk with your managers about how this noise affects you and your colleagues. and try to come up with some easy to implement ideas like making every 2 or more guys who want to discuss something go out of the work area till they finish their talk or even just stay in the work area and keep it down as much as they can. it won’t be a hard thing if your co-workers respect the value of working in a quiet place. but some times it won’t be that easy, like when you find yourself sharing the same work space with people who talk a lot as their job forces them to. like customer care and marketing guys. and I don’t know a solution for this case.

Another thing that you have to put a solution for is the interruptions done by co-workers. haven’t you ever been working on a very hard to solve problem that needed all your brain power and you were just seconds away from finding the solution and suddenly you find someone tapping on your shoulder to ask you about the name of a function that he doesn’t remember ?! I know that you hate this guy and at that moment maybe you wanted to kick him in the face, but you controlled your anger and just answered his question and left him to leave in peace and tried to go back to what you were doing and you couldn’t remember the last point you arrived to in your thinking, and probably it took you around 15 minutes to get back to your last concentration level.

You have to talk to your colleagues about this problem and tell them that they can send you emails that you will answer later when you are free, or maybe you can use a piece of paper with “No Interruption, please” written on it. you can put this paper on your chair/desk whenever you need to focus on something important, so your co-workers will know that you aren’t ready to talk at the moment.

there are many pros and cons of working in open work spaces, but we can get over the cons by putting effective rules that can control the noise and interruptions, and you won’t succeed in that unless your co-workers are understanding the problem and believe in the solutions.

maybe you want to read more. Joel Spolsky talked about this topic before when he was talking about the design of his company’s new office and it was the 8th rule in the famous Joel Test “Do programmers have quiet working conditions?” . also,  you can make your managers and colleagues read the field guide to developers.

so at last, I have to say that I don’t hate open work spaces but it will be a good work environment if all co-workers understand the new rules that have to be applied to make it a healthy work environment .

Irssi as your IRC client with notification using

After spending the last years trying many IRC clients, I found that all GUI clients suck. so I decided to use a terminal based client and all recommendations pointed me to use Irssi. It took me around 2 hours to get used to how it works, just some commands and installing some of its scripts got me to do what I want. maybe you will love using it too if you are spending your day in front of terminals or if you just believe that GUI clients aren’t your best choice.

Installing it on Ubuntu wasn’t a problem, just like what you always do

sudo aptitude install irssi

now run irssi in your terminal to start it. now you can connect to any IRC server by typing this


Irssi won’t remember any settings and auto start it till you tell it to do so, and I wanted to make Irssi auto-connect to on startup

/SERVER ADD -auto -network freenode

also, I didn’t want to type my password every time I connect to this server

/NETWORK ADD -autosendcmd "/msg nickserv identify mypassword;wait 2000" freenode

this will run the IDENTIFY command with my password after connecting to the freenode server and will wait for 2 seconds before doing any thing else.

now I can join any channel the normal IRC way by typing

/join #channelName

and I can jump between my opened channels using CTRL+n and CTRL+p , or by pressing ALT+ window number . if you are using gnome-terminal with many opened tabs, maybe you will have problems with moving between channels using ALT+number as this shortcut is used by gnome-terminal to jump between tabs.

Also, I found some nice scripts for Irssi like , this script will give each user in your opened channels a separate color. , this one will put a separator (one line) after the last message appeared in every channel before you leave it.

installing these script is easy, you can put these script in ~/.irssi/scripts/ , then in irssi load them using


if you like a script and want to auto-load it on start, just create another directory “~/.irssi/scripts/autorun/” and create links in this directory pointing to your scripts that should be auto-loaded.

I wanted Irssi to notify me when anybody mention my name by showing me a notification bubble. I found here a script “” written be Matthew Weier O’Phinney our Zend Framework warrior. but for my bad luck I didn’t know how to get the mumbles notification server specially as its website is down. so I tried to play with that script to make it show notifications using zenity. you will find the code here, you can create a new file “” in your ~/.irssi/scripts directory and put that code in it. this will show you a notification bubble whenever your nickname or any other word you tell Irssi to highlight using the /hilight yourword command is mentioned.

use strict;
use Irssi;
use Irssi::Irc;
use vars qw($VERSION %IRSSI);

$VERSION = '0.1.0';
%IRSSI = (
 authors     => "Ahmed Shreef",
 contact     => '',
 name        => 'notification bubble for Irssi',
 description => 'This script will show a notificatin bubble near the systray when your nickname is mentioned',
 license     => 'New BSD',
 changed     => "2010-6-9"

sub shnotify {
 my ($dest, $text, $stripped) = @_;

 if (($dest->{level} & (MSGLEVEL_HILIGHT|MSGLEVEL_MSGS)) && ($dest->{level} & MSGLEVEL_NOHILIGHT) == 0)
 if ($dest->{level} & MSGLEVEL_PUBLIC)
 my $message = $dest->{target} .": " . $stripped;
 `echo "message:$message" | zenity --notification --listen --window-icon=null`;

 'print text'    => \&shnotify

tell me if you like it or if you need some help.