<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sara Ounissi</title>
    <description>The latest articles on DEV Community by Sara Ounissi (@thetrendycoder).</description>
    <link>https://dev.to/thetrendycoder</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F747088%2F0aed154f-00cd-4075-9c70-ef52dd419456.png</url>
      <title>DEV Community: Sara Ounissi</title>
      <link>https://dev.to/thetrendycoder</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thetrendycoder"/>
    <language>en</language>
    <item>
      <title>Share your experience in STEM as a women</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Mon, 22 Nov 2021 07:20:18 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/share-your-experience-in-stem-as-a-women-4n2n</link>
      <guid>https://dev.to/thetrendycoder/share-your-experience-in-stem-as-a-women-4n2n</guid>
      <description>&lt;h2&gt;
  
  
  Hello you all!
&lt;/h2&gt;

&lt;p&gt;Hope you are doing great!&lt;/p&gt;

&lt;p&gt;I started a series of interviews called &lt;strong&gt;Women Experience in STEM&lt;/strong&gt; and I was wondering if you would like to share your experience as well. That would mean the world to me if you could do that and maybe share it with women in STEM you know.&lt;br&gt;
Here is the link of the form to share your experience: &lt;a href="https://docs.google.com/forms/d/e/1FAIpQLSe4azsrIroWYnfrt6mKDpBtL_s_M0x6xi37rvmkuCdo8kZkrw/viewform?usp=sf_link"&gt;Interview form&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also, if you want to have a look at the first two interviews published here it is: &lt;a href="https://thetrendycoder.com/women-in-tech/"&gt;interviews&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have any feedback, I'll be happy to listen so I can improve.&lt;br&gt;
Have an amazing day,&lt;br&gt;
Sara - thetrendycoder&lt;/p&gt;

</description>
      <category>womenintech</category>
      <category>career</category>
      <category>experienceintech</category>
    </item>
    <item>
      <title>CSS property vertical-align doesn’t work</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Sat, 20 Nov 2021 23:04:44 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/css-property-vertical-align-doesnt-work-e78</link>
      <guid>https://dev.to/thetrendycoder/css-property-vertical-align-doesnt-work-e78</guid>
      <description>&lt;p&gt;I was trying to apply the CSS property &lt;strong&gt;vertical-align: middle&lt;/strong&gt; on an element but no luck, it was not working as expected.&lt;/p&gt;

&lt;p&gt;Here is an example of non-functioning code :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  background-color: red;
  height: 50px;
  width: 100px;
}

.text {
  vertical-align: middle;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first option would be to set a &lt;strong&gt;line-height&lt;/strong&gt; on the element you want to center vertically :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  background-color: red;
  height: 50px;
  width: 100px;
}

.text {
  vertical-align: middle;
  line-height: 50px;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The second option would be to use &lt;strong&gt;display table&lt;/strong&gt; on the parent .container, and display &lt;strong&gt;table-cell&lt;/strong&gt; on the element you want to center vertically :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.container {
  background-color: pink;
  height: 50px;
  width: 100px;
  display: table;
}

.text {
  vertical-align: middle;
  display: table-cell;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>css</category>
      <category>bug</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Custom checkbox not working</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Sat, 20 Nov 2021 22:58:29 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/custom-checkbox-not-working-3odh</link>
      <guid>https://dev.to/thetrendycoder/custom-checkbox-not-working-3odh</guid>
      <description>&lt;p&gt;Customizing checkboxes is a little tricky, it requires a lot of additional CSS to make it look nice. One important thing to remember while doing that is to make sure the &lt;strong&gt;id&lt;/strong&gt; you use on the &lt;strong&gt;input&lt;/strong&gt; is the same as the &lt;strong&gt;for&lt;/strong&gt; on the &lt;strong&gt;label&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Example :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;Choose your favorite fruit:&amp;lt;/p&amp;gt;

&amp;lt;div&amp;gt;
  &amp;lt;input type="checkbox" id="apple" name="apple"
         checked&amp;gt;
  &amp;lt;label for="apple"&amp;gt;Apple&amp;lt;/label&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;div&amp;gt;
  &amp;lt;input type="checkbox" id="orange" name="orange"&amp;gt;
  &amp;lt;label for="orange"&amp;gt;Orange&amp;lt;/label&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>CSS property z-index not working</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Sat, 20 Nov 2021 22:52:43 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/css-property-z-index-not-working-492i</link>
      <guid>https://dev.to/thetrendycoder/css-property-z-index-not-working-492i</guid>
      <description>&lt;p&gt;It is never easy for me to use z-index especially when you are adding code to an existing project, and you don’t know the whole structure. I was stuck with that for a while, adding z-index on every level of div, but nothing was working.&lt;/p&gt;

&lt;p&gt;Thanks to &lt;strong&gt;StackOverflow&lt;/strong&gt;, I was able to understand the problem:&lt;br&gt;
The z-index property only works on elements with a position value other than static (e.g. position: absolute;, position: relative;, or position: fixed;). There is also position: sticky; that is supported in Firefox, is prefixed in Safari, worked for a time in older versions of Chrome under a custom flag, and is under consideration by Microsoft to add to their Edge browser.&lt;br&gt;
Source &lt;a href="https://stackoverflow.com/questions/9191803/why-does-z-index-not-work"&gt;Stackoverflow&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;However, there is something else you need to know: when an element has an opacity value less than 1, even with a z-index of a million it won’t work. So if your z-index is not working, check the opacity of your element. You can read a detailed article about that following this &lt;a href="https://philipwalton.com/articles/what-no-one-told-you-about-z-index/"&gt;link&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>css</category>
      <category>bug</category>
      <category>zindex</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Character not returning on keydown event</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Sat, 20 Nov 2021 22:40:11 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/character-not-returning-on-keydown-event-4o6m</link>
      <guid>https://dev.to/thetrendycoder/character-not-returning-on-keydown-event-4o6m</guid>
      <description>&lt;p&gt;To develop a feature in JavaScript, I started by looking into the events related to the keyboard. I found three events : &lt;strong&gt;keypress, keydown, keyup&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;keypress&lt;/strong&gt; was only happening when the user pressed a char key, and I also needed to get the event when the user uses the supr button. So I thought I would use keydown instead.&lt;/p&gt;

&lt;p&gt;The event was fired when I pressed any key, however, the problem I faced is that when I pressed down on char key I needed to get that char and save it in a variable. I noticed that the first char was only saved at the second time the event was fired, the second char at the third event and so on. I couldn’t understand this gap.&lt;/p&gt;

&lt;p&gt;After some debugging and talking about that with a colleague, I understood that the event &lt;strong&gt;keydown&lt;/strong&gt; was happening too early, it was fired before the char get saved in my variable. So instead of using &lt;strong&gt;keydown&lt;/strong&gt; I used &lt;strong&gt;keyup&lt;/strong&gt;, and it worked perfectly fine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;- keypress&lt;/strong&gt; : The keypress event is fired when a key that produces a character value is pressed down &lt;strong&gt;(Deprecated)&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;- keydown&lt;/strong&gt; : The keydown event is fired when any key is pressed down, the event occur very soon.&lt;br&gt;
&lt;strong&gt;- keyup&lt;/strong&gt; : The keyup event is fired when any key is pressed up, the event occur after keydown.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>bug</category>
      <category>beginners</category>
      <category>keyevent</category>
    </item>
    <item>
      <title>Add git blame on Visual Studio Code</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Sat, 20 Nov 2021 22:21:31 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/add-git-blame-on-visual-studio-code-23p4</link>
      <guid>https://dev.to/thetrendycoder/add-git-blame-on-visual-studio-code-23p4</guid>
      <description>&lt;p&gt;When you are working on a project, it is very useful to know the history of the modifications using git. If you are coding on Visual Studio Code like me, you should activate git blame by following these steps :&lt;br&gt;
&lt;strong&gt;- Open Visual Studio Code&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;- Press Ctrl+Shift+X (windows) or ⇧⌘X (Mac)&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;- Type blame&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;- Click install on Git Blame&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, you can see at the bottom of the vs code window who is responsible for the line of code you have your cursor on, as you can see on the image below: line 37 Sara Ounissi (that would be me), pushed this code 1 day ago.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsanoaph9vo9028xm612q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsanoaph9vo9028xm612q.png" alt="screen shot vs code"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;However, the aim of this option is not just to see who wrote the code, but why and when. You can click on the name of the person, this will open a pop-in, the button View will then redirect you to the git repository where you will see the whole modification, the name of the commit, etc… Hopefully, that will help you get more context.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs641ajyx4z648k4taojv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs641ajyx4z648k4taojv.png" alt="git blame vs code"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>visualstudiocode</category>
      <category>tutorial</category>
      <category>vscode</category>
    </item>
    <item>
      <title>How to add a placeholder on a select</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Sat, 20 Nov 2021 22:10:03 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/how-to-add-a-placeholder-on-a-select-14ak</link>
      <guid>https://dev.to/thetrendycoder/how-to-add-a-placeholder-on-a-select-14ak</guid>
      <description>&lt;p&gt;It is quite easy to add a placeholder on a select in HTML, you just need to add an option with the text you need as a placeholder. The only thing to look for is to empty the value, add the two properties selected and disabled.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;select&amp;gt; 
    &amp;lt;option value="" disabled selected&amp;gt;Select your option&amp;lt;/option&amp;gt;
    &amp;lt;option value="test"&amp;gt;Test&amp;lt;/option&amp;gt;
&amp;lt;/select&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>tutorial</category>
      <category>html</category>
      <category>beginners</category>
      <category>frontend</category>
    </item>
    <item>
      <title>How to handle a daily stand-up</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Thu, 18 Nov 2021 15:42:21 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/how-to-handle-a-daily-stand-up-e8k</link>
      <guid>https://dev.to/thetrendycoder/how-to-handle-a-daily-stand-up-e8k</guid>
      <description>&lt;p&gt;Ah! The famous stand-ups! The daily meetings you have with your team to talk about what you did the day before and what you are planning to do today. An important step if your team is following the Agile methodology.&lt;br&gt;
The issue that can happen when you have to talk during a stand-up is either you have nothing to say, and you could look like you didn’t do any work. Or you could talk too much when it’s not the purpose of a stand-up. I have a few years of experience with stand-ups. I’ll give you some tips to help you be efficient and not look like a fool.&lt;/p&gt;

&lt;h2&gt;
  
  
  Surprisingly I like stand-ups
&lt;/h2&gt;

&lt;p&gt;I used to be very shy during my childhood. Even though I got very confident, I am still the kind of person not crazy about talking in front of a lot of people. If I have to do it, I will of course. However, if it’s not mandatory I will not take my chance.&lt;br&gt;
Nevertheless, I never had any problems talking with my team during our daily stand-ups. I will even say, I like this moment with the team. I even don’t feel good when the stand-up is canceled. I feel that something in my day is missing. As if I didn’t share this important moment with the team, I couldn’t share with them my achievements or struggles. It’s like when you are used to journaling on a daily basis, if you miss a day, you don’t feel good.&lt;/p&gt;

&lt;h2&gt;
  
  
  Most importantly : Get prepared
&lt;/h2&gt;

&lt;p&gt;The easiest thing is to prepare a small sticky note with bullet points, so you don’t forget any of the things you did. It basically takes only about a minute to go through the things you did and write them down. You don’t need to tell in detail what you did, just mention the things you worked on, and the status: are you done with the task, or still working on it. You can mention if you encountered any problems or if you need any help from the team. Then talk about what you are going to work on later on today. If you don’t have any idea about that, ask the team if they need any help. And most of all, RELAX! You are just talking to your team, you don’t have to be stressed or under pressure. Be yourself and chill out.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do if you’re not ready
&lt;/h2&gt;

&lt;p&gt;If you didn’t prepare for the meeting, no worries, it happens. Try to remember what you did, if you don’t have a lot to say, try to ask questions about problems you encountered. Explain the problem, how you tried to solve it and ask for advice. Usually, developers are really supportive, they will do their best to help. You need to show that you are involved, it might not be your day, you have a lot on your plate and couldn’t get prepared. Nevertheless, you are still a good element of the team. Above all, be honest, you can tell them it’s not your day, you didn’t do much because you got stuck on this and that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Careful! Things not to do
&lt;/h2&gt;

&lt;p&gt;One very important piece of advice: don’t lie! It won’t help you on the job to use lies to show that you are a hard worker. More so if it is based on lies. Also, don’t overestimate what you could do.&lt;br&gt;
When you talk about what you are going to do next in the day don’t say I’m going to “try” doing this. We don’t try. We do. So if you think you’re not going to make it, lower your objective into something you are sure you can do. Or specify that you are going to start working on this task, and you may need the help of a colleague because it’s not a topic you are comfortable with.&lt;/p&gt;

&lt;p&gt;I will summarize below the Do and Don’t, hoping this could benefit you.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;DO&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Prepare a sticky note with bullet points&lt;/li&gt;
&lt;li&gt;List the tasks you worked on and their status (Done, WIP, Paused…)&lt;/li&gt;
&lt;li&gt;Explain your issues and ask for advice/help&lt;/li&gt;
&lt;li&gt;Tell what you are planning to do next&lt;/li&gt;
&lt;li&gt;Set clear and reachable goals&lt;/li&gt;
&lt;li&gt;Offer your help if you are free&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;DON'T&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Give too many details about what you did&lt;/li&gt;
&lt;li&gt;Lie&lt;/li&gt;
&lt;li&gt;Overestimate your capacities&lt;/li&gt;
&lt;li&gt;Say “I’m going to try doing this”&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now you have some keys to help you handle a daily stand-up. Follow these steps and don’t forget to have fun!&lt;/p&gt;

</description>
      <category>agile</category>
      <category>standup</category>
      <category>tutorial</category>
      <category>career</category>
    </item>
    <item>
      <title>Install PHP on Mac</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Thu, 18 Nov 2021 15:28:35 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/install-php-on-mac-4i33</link>
      <guid>https://dev.to/thetrendycoder/install-php-on-mac-4i33</guid>
      <description>&lt;p&gt;Using a Mac for the first time, I faced a problem installing PHP. I would install it over and over, and every time the terminal would tell me that I don’t have PHP on my laptop. Here are the steps I had to follow to be able to install multiple versions of PHP.&lt;/p&gt;

&lt;h2&gt;
  
  
  Uninstall PHP
&lt;/h2&gt;

&lt;p&gt;The first step is to update brew before using it to install PHP&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew update
brew upgrade
brew cleanup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you need to check the current PHP installed&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew list | grep php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then uninstall all the PHP that the grep return, here is an example :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew uninstall --force php71 php71-apcu php71-opcache php71-xdebug php71-yaml
brew uninstall --force php72 php72-apcu php72-opcache php72-xdebug php72-yaml
brew cleanup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check again with a grep if you have anything related to PHP left :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew list | grep php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If it returns nothing, then you are all good. Otherwise, try to uninstall what is left.&lt;/p&gt;

&lt;p&gt;Then we want to remove the old PHP configuration :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rm -Rf /usr/local/etc/php/*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once everything is clean, you can jump into the PHP installation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install PHP
&lt;/h2&gt;

&lt;p&gt;We start by installing the tap that will&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew tap shivammathur/php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then you can install the different versions of PHP you want. I need versions 7.1, 7.2 and 7.3:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install shivammathur/php/php@7.1
brew install shivammathur/php/php@7.2
brew install shivammathur/php/php@7.3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can go in the php.ini of every version and change the options you need like the memory settings, the date.timezone etc… You can find the files of each version here:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/usr/local/etc/php/7.1/php.ini
/usr/local/etc/php/7.2/php.ini
/usr/local/etc/php/7.3/php.ini
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We have installed but not linked these PHP versions. To switch to PHP 5.6 for example, we can type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew unlink php &amp;amp;&amp;amp; brew link --overwrite --force php@7.3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can test if you are in the correct version using :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to switch versions, use this command :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew unlink php &amp;amp;&amp;amp; brew link --overwrite --force php@7.2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Don’t forget to check if the version correctly changed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Sources :
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://getgrav.org/blog/macos-monterey-apache-upgrade-homebrew"&gt;uninstall PHP&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://getgrav.org/blog/macos-monterey-apache-multiple-php-versions"&gt;install PHP&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tutorial</category>
      <category>mac</category>
      <category>php</category>
      <category>install</category>
    </item>
    <item>
      <title>Amend a specific commit</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Thu, 18 Nov 2021 15:15:45 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/amend-a-specific-commit-2cmj</link>
      <guid>https://dev.to/thetrendycoder/amend-a-specific-commit-2cmj</guid>
      <description>&lt;p&gt;Here is my situation: I had to do a dev that I cut into two different commits. I asked for a review from my team and got feedback on the first commit. I realized I didn’t know how to amend a commit that wasn’t the last one in the git history. I really didn’t want to create a specific commit for this fix, it wouldn’t be clean. I wanted to amend the first commit to have a clean git history. Here is the process I followed to be able to do that successfully :&lt;/p&gt;

&lt;p&gt;Select the number of your commit, here we want to modify the commit bac653ad. So I had to run :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git rebase --interactive 'bbc643cd^'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the default editor, you will have this kind of view :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pick bac653ad fix: first commit 
pick ac39035 feat: second commit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change the name of the commit if you want, or keep it how it is and save. Then run :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git rebase --continue
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can push force :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push --force
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your changes should have been added to the specific commit you wanted.&lt;/p&gt;

&lt;p&gt;Shut out to &lt;a href="https://stackoverflow.com/questions/1186535/how-to-modify-a-specified-commit"&gt;StackOverflow&lt;/a&gt; for helping me solve this problem!&lt;/p&gt;

</description>
      <category>github</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>commandline</category>
    </item>
    <item>
      <title>Truncate text using CSS ellipsis</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Thu, 18 Nov 2021 14:53:47 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/truncate-text-using-css-ellipsis-14ad</link>
      <guid>https://dev.to/thetrendycoder/truncate-text-using-css-ellipsis-14ad</guid>
      <description>&lt;p&gt;You might want to truncate a string of text, and you struggle with how to use the property ellipsis.&lt;br&gt;
Here is an example of how you should use it. Note that all the following are mandatory. Your string has to be a straight line (that explains the white-space: nowrap). Its width has to be fixed and the overflow hidden.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.ellipsis {
  width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;More details about this property on this article from &lt;a href="https://css-tricks.com/snippets/css/truncate-string-with-ellipsis/"&gt;CSS-Tricks&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>css</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>How to squash commits</title>
      <dc:creator>Sara Ounissi</dc:creator>
      <pubDate>Thu, 18 Nov 2021 14:45:00 +0000</pubDate>
      <link>https://dev.to/thetrendycoder/how-to-squash-commits-536j</link>
      <guid>https://dev.to/thetrendycoder/how-to-squash-commits-536j</guid>
      <description>&lt;p&gt;It happens to me very often that someone help me out on a branch and pushes their code on a fix up commit. Every time it happens, I panic because I want to squash this commit into my previous commit so the git history looks clean. I used to be very bad at git, my tree will have unexpected merges and all. However, I decided to learn and focus on this point this last year to avoid these silly mistakes and get better at it. Here is how I managed to squash my commits using the command line. Note that you might use a graphical git manager, this could make this process easier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start an interactive rebase
&lt;/h2&gt;

&lt;p&gt;Squashing commits means that you have to start an interactive rebase. Choose the starting commit, for me it’s 2 because I just want to squash a fix up commit in my previous commit.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git rebase -i HEAD~2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At this point your editor of choice will pop up, This is the file that will open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pick 571afa fixup commit
pick 652fec feature: commit message specific to the feature
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the pick by squash, or s for brevity, in front of the commit you want to squash. Then save the file and close it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;squash 571afa fixup commit
pick 652fec feature: commit message specific to the feature
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A new window will open with the 2 messages of the commits you want to squash together, change the name of the commit if you want one clean commit message and save. Then run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push -f
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can check the outcome on your git repository, only one commit gathering the modifications you did on your two old commits should be in the git history. Easy right?!&lt;/p&gt;

</description>
      <category>github</category>
      <category>commandline</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
