Author:

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

Using Minio server for simulate S3 locally

The other day, I was building a small development environment for me to test Laravel and S3, but as usual, I didn’t want to use production credentials nor to use S3 directly, so after a small search I found Minio :

Minio is an open source object storage server with Amazon S3 compatible API. 
Build cloud-native applications portable across all major public and private clouds.

And I was so happy, as I’ll be able to use S3 locally and wont worry about hitting outside my local network, I pulled the docker image, and then I realize that I’ll have to specify the command to run and some environment variables which okay for local development, but it wont work with Bitbucket Pipelines, so my tests wont work.

you can read this tweet and the list of tweets under it

So what I did was to build a new docker image that will have everything up and running, the content of the Dockerfile was

which is simple and nice, but again wont be that much helpful, as I need to have two default buckets created automatically for me, so I altered the file to create a new directories under the /data directory.

Continue reading

Filed under: Code, docker

New fresh start, many things to end

Starting from today, the plan is to catch up with everything I have missed in the past few years, so there will be a lot of reading and a lot of side projects to learn even more.

The main points which I’ll try to cover while searching for a new opportunity are:

  1. Laravel 5: I did missed a lot of the new things that has happened to Laravel in past few years, I was concentrating on using it more than learning the main components individually, this hopefully will change as I’ll have to put some time to read and check the internal Illuminate components, and maybe build some packages while am doing so.
  2. Docker: yes I’ve talked about me trying to learn Docker a lot in the past, and it was a fun and exciting experience, so now its the time to put what I have learned in more production ready state, to deploy and learn more about how we can use it in production.
  3. Microservices: so in the past few months I spend 99% of my time deploying microservices in the company, which they do one thing only, so now its time for me to read more and see how can I group microservices in one big system that can communicate internally with each other, and yes by utilizing what I have learned about Docker.

So maybe they are a lot of things to do, but now that am on a break I might have the time to do that, and finish also most of the courses that I have bought but never found the time to finish.

Also, if you have any idea which you want someone to help you develop, you can communicate with me via the contact form.

Filed under: Business, docker, Laravel, Personal