A new Episode from Arab Dev talk, this time with two guests

As most of you know, me and my friend Omar Qadan hosts a technical talk were we just talk about any technical topic we find interesting, now this time we got two guests from Gaza Palestine, Mohammad and Waseem, and we interviewed them to know more about the obstacles they are facing in Gaza and how they are able to overcome them, and we also talked about the technical community there and how they are trying to work/operate under the bad conditions there.

To know more, you can head to and listen to the talk.

Filed under: Arabic, Business, Personal

[snippet] Running Traefik with Docker Swarm

The other day, I wanted to try using Traefik in real world scenario where I’ll have a docker instance running and Traefik will do the routing/proxying based on the domain name that I will provide, sadly this was not so easy, so after few hours of searching I found the solution.

You may ask, why it didnt work, it should work with no problem, and I agree so am going to list the problem I faced and the solution I found. To work with swarm, I created three servers and joined them in one swarm network, where I had one manager and two workers, then I used this simple docker-compose.yml file to create the app

Continue reading

Filed under: Code, docker, Linux

2018 Plan, and more I guess

So now its nearly 2018 and still, we are still alive but as people say we are standing on a new phase where WW3 might come at any time. And since I do like to plan ahead for each step, I thought that I should put some plans for 2018, the list may change over the time, but at least I should have something to start with.

  1. I should stop buying courses/books/materials that I would not be able nor have the time to use.
  2. I should focus on getting back on the track with Laravel, JavaScript and Web technologies in general.
  3. Reading about ionic or any other mobile development language.
  4. Make sure that I use Docker in production :D, yes I read a lot, and talk a lot, but never had Docker in production (yet).
  5. The more important point is to work on enhancing my English (A lot).

These may seem few, but for me, they will need a lot of energy and hope to do them correctly (esp point 1 & 5).


Anyway, let’s see what 2018 will hold for us, at the end we all thought that 2017 will be less bad than 2016 and we were wrong.

Filed under: Personal

Run crontab within Alpinelinux Docker image

This post will explain how we can run cronjobs within Docker image based on Alpine Linux distribution, so am going to use my newest PHP 7.2 docker image, which you can find at zaherg/php-7.2-xdebug-alpine .

First, we will have to pull the docker image using the command:

Now that we have downloaded the image, we will have to familiarize our self with the structure for the periodic directory which we can find under /etc/periodic, this directory should contain the following folders:

  1. 15min
  2. hourly
  3. daily
  4. weekly
  5. monthly

Continue reading

Filed under: Code, docker, Linux

Why and When you leave your job

A few days ago, I read this article “ Why I leave a job ” and it has mentioned a few points that the author find a really important points, and I can’t argue that those points are not important, especially that the Good leaders point, as the end as the link to the article he mentioned titled “Employees leave managers, not companies“.

Am not going to get some quotes from both articles and send you to read them and use them as link beat to get traffics, which some people are doing nowadays even though they have a good reputation in the developers’ world, but am going to talk about what I’ve been seeing around me in the past few years.

Last month we all read the article “We fired our top talent. Best decision we ever made.” which was published at FreeCodeCamp account, as the author explained the situations that lead them to fire their talented person, he never at once acknowledge what they have been doing wrong at all, it was the top talented person mistakes. Now if you scroll down, you will read a lot of comments about the topic, and even the author responded to a lot of the comments there. I may not be part of the company or even part of the people involved, but if you read it you will notice how the company and the management were depending on him to deliver, help and solve big problems. Am not sure that I’ll be able to explain my points better than this article “You fired your top talent. I hope you’re happy.“.

Most (not all) of the managers nowadays do not care that much about the developers, or what is going on with the developer, is he in a good situation or not, did we burned him out or not, they all care about one thing and one thing only the company, for them everything else is replaceable. It is a good thing that they care about the company, but they need also to care about the things that keep the company running, The team.

In management, we have studied about the ethics that the managers and the management should follow, and you can read all about that all over the internet, but for me, I started to feel that those are just words we study to pass the exams, then it would be hardly found in the real life, everyone cares about the money, how they can take advantage of everyone else around them, how they can cut the costs.

Maybe it’s just me, but am started to wonder why this is happening, is it because of the entrepreneurs who suddenly wants to be the next Steve Jobs, so he is going to act like him? or because while he was preparing for his startup, he skipped the management courses and thought that anything is acceptable as long as you can get money and keep the company alive? or those are old topics which everyone used to do, but we didnt hear about them before because there was no internet, and everything they have tought us in management is a big lie.

I really wish I can have an answer to my own questions, why and when you leave, but I know that once I stopped enjoying my work I’ll leave with a smile on my face.

Filed under: Other