Doing the Dishes as an Act of Mindfullness

I don’t know why, but for me doing the dishes is one the worst aspect of life, especially when you have to do it after one of the best aspects of life, eating. Since I’ve been struggling to wash the dishes as soon as I use them, the result has always been a sink full of dirty and stinky dishes. I have tried many ways to overcome this laziness. One of those ways is to look at it as an act of mindfulness. When I say mindfulness, I mean to be present at the moment and observe my feelings when I’m washing the dishes. You might ask, why don’t you focus on a piece of music and enjoy instead of focusing on the dishes and suffer? The honest answer is I don’t know, and the more complex answer is maybe by observing and being present at the moment, I can find an answer to why it feels painful to do the dishes. ...

July 29, 2021 · 4 min · Saeed

The Obstacle Is the Way by Ryan Holiday - Highlights

you can focus your energy exclusively on solving problems, rather than reacting to them. When you worry, ask yourself, What am I choosing to not see right now? We are A-to-Z thinkers, fretting about A, obsessing over Z, yet forgetting all about B through Y. Think progress, not perfection. Okay, you’ve got to do something very difficult. Don’t focus on that. Instead break it down into pieces. Simply do what you need to do right now. And do it well. And then move on to the next thing. Follow the process and not the prize. The process is about doing the right things, right now. We wrongly assume that moving forward is the only way to progress, the only way we can win. Sometimes, staying put, going sideways, or moving backward is actually the best way to eliminate what blocks or impedes your path. Problems, as Duke Ellington once said, are a chance for us to do our best. Just our best, that’s it. Not the impossible. We must be willing to roll the dice and lose. Prepare, at the end of the day, for none of it to work. We don’t get to choose what happens to us, but we can always choose how we feel about it. Life is a process of breaking through these impediments—a series of fortified lines that we must break through. Each time, you’ll learn something. Each time, you’ll develop strength, wisdom, and perspective. Each time, a little more of the competition falls away. Until all that is left is you: the best version of you. As the Haitian proverb puts it: Behind mountains are more mountains. First, see clearly. Next, act correctly. Finally, endure and accept the world as it is.

February 15, 2021 · 2 min · Saeed

A few ideas for your next Go project

Have you ever been out of idea on what to code for your next open-source or side-project? As a beginner, you can find many resources and tutorials on different beginner-friendly projects out there. But when you pass that level, you just cannot come up with any interesting ideas to work on while you’re learning. You can take any of these ideas for your next project, and dont’ forget the purpose of doing this, is learning. So don’t be discourage if you see better alternatives out there. ...

January 21, 2021 · 4 min · Saeed

Man's Search for Meaning by Victor Frankl - Highlights

Nietzsche: “He who has a Why to live for, can bear almost any How.” Life is not primarily a quest for pleasure, as Freud believed, or a quest for power, as Alfred Adler taught, but a quest for meaning. The greatest task for any person is to find meaning in his or her life. Frankl saw three possible sources for meaning: in work (doing something significant), in love (caring for another person), and in courage during diffcult times. Suffering in and of itself is meaningless; we give our suffering meaning by the way in which we respond to it. Forces beyond your control can take away everything you possess except one thing, your freedom to choose how you will respond to the situation. You cannot control what happens to you in life, but you can always control what you will feel and do about what happens to you. In psychiatry there is a certain condition known as “delusion of reprieve.” The condemned man, immediately before his execution, gets the illusion that he might be reprieved at the very last minute. An abnormal reaction to an abnormal situation is normal behavior. everything can be taken from a man but one thing: the last of the human freedoms—to choose one’s attitude in any given set of circumstances, to choose one’s own way. Dostoevski said once, “There is only one thing that I dread: not to be worthy of my sufferings.” If there is a meaning in life at all, then there must be a meaning in suffering. “Life is like being at the dentist. You always think that the worst is still to come, and yet it is over already.” it did not really matter what we expected from life, but rather what life expected from us. We needed to stop asking about the meaning of life, and instead to think of ourselves as those who were being questioned by life—daily and hourly. Our answer must consist, not in talk and meditation, but in right action and in right conduct. Life ultimately means taking the responsibility to find the right answer to its problems and to fulfill the tasks which it constantly sets for each individual. When a man finds that it is his destiny to suffer, he will have to accept his suffering as his task; his single and unique task. He will have to acknowledge the fact that even in suffering he is unique and alone in the universe. No one can relieve him of his suffering or suffer in his place. His unique opportunity lies in the way in which he bears his burden. But there was no need to be ashamed of tears, for tears bore witness that a man had the greatest of courage, the courage to suffer. Psychologically, what was happening to the liberated prisoners could be called “depersonalization.” Everything appeared unreal, unlikely, as in a dream. We could not believe it was true. How often in the past years had we been deceived by dreams! We dreamt that the day of liberation had come, that we had been set free, had returned home, greeted our friends, embraced our wives, sat down at the table and started to tell of all the things we had gone through—even of how we had often seen the day of liberation in our dreams. And then— a whistle shrilled in our ears, the signal to get up, and our dreams of freedom came to an end. And now the dream had come true. But could we truly believe in it? back to the commonplace truth that no one has the right to do wrong, not even if wrong has been done to them. is not the meaning of life in general but rather the specific meaning of a person’s life at a given moment. “Live as if you were living already for the second time and as if you had acted the first time as wrongly as you are about to act now!” happiness cannot be pursued; it must ensue. One must have a reason to “be happy.” Once the reason is found, however, one becomes happy automatically. As we see, a human being is not one in pursuit of happiness but rather in search of a reason to become happy, last but not least, through actualizing the potential meaning inherent and dormant in a given situation. people have enough to live by but nothing to live for; George A. Sargent was right when he promulgated the concept of “learned meaninglessness.” He himself remembered a therapist who said, “George, you must realize that the world is a joke. There is no justice, everything is random. Only when you realize this will you understand how silly it is to take yourself seriously. There is no grand purpose in the universe. It just is. There’s no particular meaning in what decision you make today about how to act.”

January 17, 2021 · 4 min · Saeed

2020 in a Nutshell

In March 2020, the government announced a lockdown. No one allows to go out except for shopping, and everyone must work from home. First of all, despite of the hard situation for every business, I was lucky that I didn’t get laid off and my salary remained untouched. After a few days of passing time at home, playing video games, and watching movies, I felt guilty that I’m not as productive as I should be and I’m not using my time efficiently. I thought it’s better to take up some new skills to kill the time in a worthwhile way. After having a few beers, I wrote down a list of activities/skills that I’ve always wanted to do but I couldn’t find time to start them. ...

January 14, 2021 · 5 min · Saeed

How to write a PHP Youtube video downloader

PHP is not the best language for writing a download manager, but in this article, we are going to learn how we can download videos from Youtube. Because PHP does not support multithreading, we cannot make a proper download manager that split the file into several chunks and download it concurrently. There are some ways to add multithreading to PHP, but for the sake of this article, we won’t go through those ways and will stick to single threading. ...

April 16, 2020 · 11 min · Saeed

How to Authenticate User in Symfony 5 by Jwt

Introduction Nowadays, when we are talking about web development, regardless of the type of application or the programming language, one of the first things that come to mind is how to authenticate users. There are many types of authentication ways for this purpose such as login form, oAuth, JWT, API token, etc. Reliability, security, easy to use and widely supported in many platform and languages make JWT one of the most popular authentication protocols in the web ecosystem. In this tutorial, we will learn how to implement JWT in Symfony 5 by using the firebase/php-jwt package and AbstractGuardAuthenticator class. There are some bundles or packages already out there like lexik/LexikJWTAuthenticationBundle that we can use but at the end of this tutorial, we will learn how can we implement and use Authentication Guard which in Symfony. ...

April 11, 2020 · 10 min · Saeed

What I Learned in 2018

Today is the last day of 2018. This year, at least for me, was full of exciting events with an abundance of interesting happenings, which I feel makes me a better person going into 2019. Here are some of my experiences in the past year. Loneliness can’t hurt you, if you don’t want Actually, I learned it a couple of years ago, but sometimes you can forget about something important so much that maybe it will not hurt you. Loneliness is one the most daunting challenges I have ever had in my life. From when I was a child until now, I’ve always felt lonely. But a couple of years ago, I asked myself why loneliness has the power to make me sad. Then I realized, if I couldn’t be happy with myself, I would never be happy with someone else. So I started to list all the things that would make me happy and then began to achieve them one by one. I was just curious, what was it like to be alone and happy at the same time. At first, it was hard not think about loneliness, but after a while I understood that I’m happy without even thinking about loneliness. Actually I learned to be my best friend and take care of myself, is would be the best thing I can do for myself because no one is going to do it for me. ...

February 2, 2019 · 4 min · Saeed

Simple auto deployer with PHP

How you deploy your projects? Are you using fancy things like Jenkins with lots of features and configuration that you don’t even know about? For one of my personal projects, I needed to have a deployment tools. I tried to install and configure Jenkins but there was no chance to make it up and running. So I decided to write my own, simple deployer with PHP. Git Hooks For this article we are using Git hooks. Git hooks are a script that Git runs before or after some events are triggered such as: commit, push, merge, creating a branch and so on. Although the equivalent of Git Hooks in web-based Git platforms such as Github, Gitlab or bitbucket are Webhooks, which instead of running a script, call a URL (usually in your server). ...

December 15, 2018 · 3 min · Saeed