<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Henrique Deodato on Medium]]></title>
        <description><![CDATA[Stories by Henrique Deodato on Medium]]></description>
        <link>https://medium.com/@hdeodato?source=rss-e1fb1dc81ed6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_yFlIUn848VSc_jXgrrAVA.jpeg</url>
            <title>Stories by Henrique Deodato on Medium</title>
            <link>https://medium.com/@hdeodato?source=rss-e1fb1dc81ed6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:52:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hdeodato/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[chmod Linux Command]]></title>
            <link>https://medium.com/@hdeodato/chmod-linux-command-fa90f217586f?source=rss-e1fb1dc81ed6------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa90f217586f</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[command-line]]></category>
            <dc:creator><![CDATA[Henrique Deodato]]></dc:creator>
            <pubDate>Fri, 17 Feb 2023 20:42:10 GMT</pubDate>
            <atom:updated>2023-02-17T20:42:10.904Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="chmod linux command" src="https://cdn-images-1.medium.com/max/1024/0*6AUU5VYSqdhnt8tz" /><figcaption>Photo by <a href="https://unsplash.com/@6heinz3r?utm_source=medium&amp;utm_medium=referral">Gabriel Heinzer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>chmod stands for &quot;change mode&quot; and is a command used in Unix-like operating systems to change the permissions of files and directories. It is a powerful and flexible command that allows users to control the level of access to their files and directories, determining who can read, write, or execute them. In this tutorial, we will discuss the basics of chmod and how to use it to change file permissions.</p><h3>File Permissions in Unix-Like Operating Systems</h3><p>Before we dive into chmod, we need to understand how file permissions work in Unix-like operating systems. Each file in the file system has three sets of permissions: owner, group, and others. The owner of a file is the user who created it, the group is a collection of users, and others refer to anyone who is not the owner or a member of the group.</p><p>There are three basic types of permissions that can be assigned to each of these sets: read, write, and execute. The read permission allows users to view the contents of a file or directory, the write permission allows them to modify or delete it, and the execute permission allows them to execute it if it is a script or program. The permissions are represented by a series of letters and numbers, as we will see shortly.</p><h3>Understanding chmod Command Syntax</h3><p>The chmod command follows a specific syntax. Here is the basic format:</p><pre>chmod [options] mode file(s)</pre><p>The options are optional arguments that modify the behavior of the chmod command. The mode is the desired permission setting, and the file(s) are the files or directories to which the permission should be applied.</p><p>There are several ways to specify the mode, but the most common one is using a three-digit octal code. Each digit in the code represents one of the three sets of permissions: owner, group, and others. The digits are calculated by adding up the values of the desired permissions: read=4, write=2, execute=1. For example, if we want to give the owner read and write permissions, we add 4+2=6. If we want to give everyone full access, we add 4+2+1=7. We then combine the three digits to form a three-digit octal code. For example, 640 would give the owner read and write permissions, and the group read permissions, while others have no permissions.</p><p>Let’s look at a few examples to see how this works:</p><pre>chmod 644 file.txt</pre><p>This command sets the file permissions of file.txt to read and write for the owner and read-only for the group and others.</p><pre>chmod 755 script.sh</pre><p>This command sets the file permissions of script.sh to read, write, and execute for the owner, and read and execute for the group and others.</p><pre>chmod 600 secret.txt</pre><p>This command sets the file permissions of secret.txt to read and write for the owner and no permissions for the group and others.</p><p>In addition to using octal codes, chmod also allows us to specify the mode using symbolic notation. This is a more flexible way to set permissions since it allows us to add or remove individual permissions without changing the entire mode. Here are the symbols used in symbolic notation:</p><ul><li>u for the owner</li><li>g for the group</li><li>o for others</li><li>a for all (owner, group, and others)</li><li>+ to add permissions</li><li>- to remove permissions</li><li>= to set permissions explicitly</li></ul><p>Here are a few examples of using symbolic notation:</p><pre>chmod u+x script.sh</pre><p>This command adds the execute permission to the owner of script.sh.</p><pre>chmod g-w file.txt</pre><p>This command removes the write permission from the group of file.txt.</p><pre>chmod a=rw file.txt</pre><p>This command sets the file permissions of file.txt to read and write for all users.</p><h3>Using chmod with Directories</h3><p>In addition to files, we can also use chmod to change the permissions of directories. When we set permissions on a directory, we are controlling who can access the contents of that directory, but not the contents themselves. Here is an example:</p><pre>chmod 755 directory</pre><p>This command sets the permissions of directory to read, write, and execute for the owner, and read and execute for the group and others. This allows users to enter the directory and list its contents, but not modify them unless they have write permission on the individual files or directories within.</p><h3>Using chmod with Recursive Option</h3><p>One of the most powerful features of chmod is its ability to apply the same permissions to all files and directories within a given directory. We can use the -R option to apply the permissions recursively. Here is an example:</p><pre>chmod -R 644 directory</pre><p>This command sets the file permissions of all files and directories within directory to read and write for the owner and read-only for the group and others.</p><h3>Conclusion</h3><p>In this tutorial, we have covered the basics of the chmod command, including file permissions in Unix-like operating systems, the chmod command syntax, and several examples of using the command to change file and directory permissions. chmod is a powerful tool that allows users to control who can access their files and directories. Understanding how to use it effectively is an essential skill for anyone who works with Unix-like operating systems.</p><p>Powered ChatGPT, a language model trained by <a href="https://openai.com/">OpenAI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa90f217586f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Linux Instructor]]></title>
            <link>https://medium.com/@hdeodato/best-linux-instructor-faf4368a3fa8?source=rss-e1fb1dc81ed6------2</link>
            <guid isPermaLink="false">https://medium.com/p/faf4368a3fa8</guid>
            <dc:creator><![CDATA[Henrique Deodato]]></dc:creator>
            <pubDate>Tue, 14 Feb 2023 18:16:28 GMT</pubDate>
            <atom:updated>2023-02-14T18:16:28.318Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*skS0UBqnen9GWH0p" /><figcaption>Photo by <a href="https://unsplash.com/@6heinz3r?utm_source=medium&amp;utm_medium=referral">Gabriel Heinzer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I will try to get the Linux Essentials certifications in the following weeks, so I started to prepare my self with a book focused in the content of the certification.</p><p>Sometimes I have some doubts regarding the commands, options and outputs, and other times I am just curious about some aspects and history of the system.</p><p>For instance: “Is the <strong>chmod</strong> command equal in all linux distributions?”</p><p>For the experts its obvious, but I need to ask, so i did… to Chat GPT…</p><p>The answer is here:</p><blockquote>The chmod command works the same way across all Linux distributions, as it is part of the standard Unix toolkit that is common to all Linux systems. The basic syntax and behavior of the chmod command is standardized and should be the same on any Linux system, regardless of the distribution.</blockquote><blockquote>However, some distributions may have different default permissions for files and directories, or different tools for managing permissions, which can affect the way chmod is used in practice. Additionally, some distributions may include custom modifications or extensions to the chmod command, although this is relatively rare.</blockquote><blockquote>In general, you can expect the chmod command to behave the same way on all Linux distributions, with any differences being minor and easily accounted for.</blockquote><p>Now I know that there is a standard Unix toolkit and will hard to see a linux distribution with a different behaviour for <strong>chmod command.</strong></p><p>Then I went a step back and asked: “ Can you teach me all about the CHMOD linux command?”</p><p>Here is the asnwer</p><blockquote>The chmod command in Linux is used to change the permissions of a file or directory.</blockquote><blockquote>The permissions for a file or directory are represented as a three-digit number, each digit representing the permissions for a different category of users: owner, group, and others. Each digit is calculated based on a binary representation of the permissions:</blockquote><blockquote>7 = read, write, and execute</blockquote><blockquote>6 = read and write</blockquote><blockquote>5 = read and execute</blockquote><blockquote>4 = read only</blockquote><blockquote>3 = write and execute</blockquote><blockquote>2 = write only</blockquote><blockquote>1 = execute only</blockquote><blockquote>0 = no permission</blockquote><blockquote>For example, 755 means the owner has full permissions (read, write, and execute), while the group and others have read and execute permissions only.</blockquote><blockquote>To use chmod, you specify the target file or directory, followed by the permissions you want to set, using either an octal (numeric) representation or a symbolic representation:</blockquote><blockquote>Numeric: chmod 755 filename</blockquote><blockquote>Symbolic: chmod u+rwx,g+r,o+r filename</blockquote><blockquote>In the symbolic representation, u stands for user (owner), g for group, and o for others. The + symbol means to add permissions, while the - symbol means to remove permissions.</blockquote><p>That is pretty good and help me a lot, all the points are covered and now I have a resume to check.</p><p>If you’re studying something that is well established and predates 2021 (Like the majority of Linux concepts), ChatGPT can greatly assist you in the process (not kidding =) ).</p><p>Lets talk about Linux and Web Development, please ping in <a href="https://twitter.com/hdeodato">Twitter</a> =)</p><p>The book I’m reading is this <a href="https://amzn.to/3YsoiVD">one</a>, from Uriá Ribeiro (a Brazilian Linux Expert), and its free for kindle unlimited users, and if you need a virtual machine to use as a lab for you preparation, consider use the <a href="https://m.do.co/c/b5d0121ec1cb">Digital Ocean</a>.</p><p>Hope it helps you to study better =)</p><p>See you… =)</p><p>Powered by <a href="https://openai.com/">OpenAI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faf4368a3fa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Arrow functions, a guide for Elves]]></title>
            <link>https://medium.com/@hdeodato/arrow-functions-a-guide-for-elves-d11435dd3ba1?source=rss-e1fb1dc81ed6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d11435dd3ba1</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ecmascript]]></category>
            <dc:creator><![CDATA[Henrique Deodato]]></dc:creator>
            <pubDate>Tue, 07 Feb 2023 15:19:45 GMT</pubDate>
            <atom:updated>2023-02-14T17:42:55.653Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pSbuQImb1Ksy4XyTZ3GdWw.jpeg" /></figure><p>ECMA 6 is amazing (and every time I think to write something about it, this is the first sentence in my mind) and Arrow function has a special place to keep this statement.</p><p><em>!IMPORTANT! This text is an experiment, I have created with the help of Chat GPT from OpenAI, please let me know what are your thoughts about it =)</em></p><h3>Structure</h3><p>This concept is not new and already exists in other languages such as Python or Closure, but in the JavaScript world, it came together with the release of ECMA 6.</p><p>Let&#39;s compare both methods, first the traditional way:</p><pre>function sumTwoNumbers(a, b){<br>  return a + b;<br>}<br><br>// or <br><br>const sumTwoNumbers = function(a, b){<br>  return a + b;<br>}</pre><p>and now the Arrow way:</p><pre>// Arrow function<br>const sumTwoNumbers = (a, b) =&gt; a + b;</pre><p>You must to keep in mind that Arrow functions has 3 important points for the developers:</p><ul><li><strong><em>Shorter syntax</em></strong>: Arrow functions are shorter than traditional function expressions and can help reduce the amount of code you have to write.</li><li><strong>Implicit<em> this </em>binding</strong>: Arrow functions automatically bind the value of this to the context in which they were defined, rather than the context in which they are executed. This can make working with this much easier and less error-prone.</li><li><strong>No</strong> <strong><em>arguments</em></strong> <strong>object</strong>: Arrow functions do not have an arguments object, so you cannot access the arguments passed to an arrow function in the same way you can with a traditional function, but you can use parameters, nothing changes there.</li></ul><h3><strong><em>Prototype</em></strong> property and <strong><em>new operator</em></strong></h3><p>Arrow functions do not have a <strong><em>prototype</em></strong> property because they are not constructor functions.</p><p>In JavaScript, functions have a <strong><em>prototype</em></strong> property that is used to set or retrieve the prototype object of instances created using that function as a constructor. However, because arrow functions are not meant to be used as constructors, they do not have a prototype property.</p><pre>// working usage of new operator<br>const Car = (model) =&gt; {<br>  this.model = model;<br>};<br><br>const myCar= new Car(&#39;Tesla&#39;);<br>console.log(myCar.model) // outputs &quot;Tesla&quot;</pre><p>This means that you cannot use <strong><em>new</em></strong> with an arrow function, and you cannot create instances of an object using an arrow function. Additionally, you cannot add methods to an arrow function using the <strong><em>prototype</em></strong> property, as this property does not exist.</p><pre>const Car = () =&gt; {<br>  // no prototype.. no way to define the model...<br>}<br><br>const myCar = new Car();<br><br>// ERROR -&gt; TypeError: Car is not a constructor</pre><p>The lack of a <strong>prototype</strong> property is a deliberate design choice in arrow functions, as they are meant to be used for simpler tasks such as returning values or performing operations, rather than serving as constructors.</p><h3>Strict Mode</h3><p>Strict mode is a way to opt-in to a restricted variant of JavaScript, which provides a safer and more secure environment for coding. When you use strict mode, the behavior of certain features of JavaScript changes, with the aim of reducing errors and promoting best practices.</p><p>One of the ways in which strict mode affects JavaScript is by changing the value of this inside functions. In strict mode, <strong><em>this</em></strong> inside a regular function is undefined unless the function is called as a method or with call() or apply().</p><p>However, the value of <strong><em>this</em></strong> inside an arrow function is not affected by strict mode. This means that inside an arrow function, this always refers to the surrounding context, <strong>regardless of whether strict mode is enabled or not</strong>.</p><p>It’s important to notice that while arrow functions can be a convenient way to write anonymous functions, they are not always the best choice. For example, they should not be used as methods in objects, as their <strong><em>this</em></strong> binding can make them difficult to use in this context.</p><p>And that&#39;s it =)</p><p>If you want to start a healthy discussion about Arrow functions and why this is so cool, let us know in the comments section.</p><h4>References</h4><ul><li><a href="https://262.ecma-international.org/6.0/#sec-arrow-function-definitions">ECMAScript 2015 Language Specification - ECMA-262 6th Edition</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions">Arrow function expressions - JavaScript | MDN</a></li></ul><p>Powered by <a href="https://openai.com/">OpenAI</a></p><p>Ping me on <a href="https://twitter.com/hdeodato">Twitter</a></p><p>Photo by <a href="https://unsplash.com/photos/AXl9aIk7ydg?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Annie Spratt</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d11435dd3ba1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automatic REST JSON API test using Node.js + Mocha + Chai]]></title>
            <link>https://medium.com/@hdeodato/automatic-rest-json-api-test-using-node-js-mocha-chai-edc810a5b752?source=rss-e1fb1dc81ed6------2</link>
            <guid isPermaLink="false">https://medium.com/p/edc810a5b752</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[chai]]></category>
            <category><![CDATA[mocha]]></category>
            <category><![CDATA[automatic-test]]></category>
            <category><![CDATA[test-automation]]></category>
            <dc:creator><![CDATA[Henrique Deodato]]></dc:creator>
            <pubDate>Sun, 05 Jul 2020 02:28:21 GMT</pubDate>
            <atom:updated>2021-09-18T04:36:53.998Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N1KcSnszx8UlukT3AR4Pvg.jpeg" /></figure><p><em>This text was originally posted in Brazilian Portuguese </em><a href="https://medium.com/@hdeodato/teste-autom%C3%A1tico-de-api-rest-usando-com-node-js-mocha-chai-6aec4613d100"><em>here</em></a><em>.</em></p><p>REST API is present in the majority of the projects that we work nowadays, and achieve a good sleeping night knowing that all endpoints are ok is part of the job. To reach this goal, automation is crucial.</p><p>In this article I will list the steps I made to create my first automated test using Node.js, the test framework <a href="https://mochajs.org/">Mocha</a> and <a href="http://chaijs.com/">Chai</a>, the lib that help us to write the test cases.</p><h4>Installation</h4><p>All the steps bellow were executed using a PC running Windows 10 and <a href="http://www.mingw.org/">MinGW</a>, but since these tools are cross platform, it shouldn&#39;t be so different in other systems.</p><p>First of all, install Node.js, you can download it in the <a href="https://nodejs.org/en/">oficial web site</a>, an after that, open your terminal and run the following command to check the version (your version may vary, this was the version I got)</p><pre>$ node -v<br>$ v9.5.0</pre><p>next, you need to create a new folder to your project</p><pre>mkdir api_test<br>cd api_test</pre><p>Once in the folder, initialise the project</p><pre>npm init</pre><p>It&#39;s possible to provide the information about the project, but I will let all the default information, in the end type <em>yes</em> to conclude the process and create the package.json file.</p><p>The package.json content should be something like this</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4df95e22691a23b206329d0cccbb9b00/href">https://medium.com/media/4df95e22691a23b206329d0cccbb9b00/href</a></iframe><p>If you are not familiar with package.json , this file holds all dependency references used by our software, helping other developers to install and run it in an &quot;automagic way&quot;.</p><p>Now its time to install the items we need to proceed with the tests</p><pre>npm install mocha -g --save-dev<br>npm install chai --save-dev<br>npm install should --save-dev<br>npm install request --save-dev</pre><p>The installed packages are:</p><ul><li>Mocha — Test Framework</li><li>Chai — Test Framework</li><li>Should — Library to extend the tests</li><li>Request — To execute API calls</li></ul><p>At this moment, all dependencies are stored inside package.json and a new folder called node_modules was created.</p><h4>Project folder structure</h4><p>Mocha runs the tests automatically since the files are inside the folder test, so lets create it</p><pre>mkdir test</pre><h4>What are we going to test?</h4><p>We are going to use an API that returns info about the card game <a href="https://magicthegathering.io/">Magic the Gathering</a> (which I like a lot).</p><p>That is a REST FULL API, so we will be able to test a various test scenarios, which is great to learn the concepts (but just to be aligned, this tutorial is just an entry point, the limits are up to you)</p><h4>Writing the test case</h4><p>Using your favorite text editor (mine is <a href="https://code.visualstudio.com/">VS Code</a>), let&#39;s create our first test case.</p><p>As I said earlier, mocha runs any file inside the folder test, so, let&#39;s create our first test case, to do that, we need to create a file called card.spec.js, with the following structure.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/04c35c63007dace93b551345e132b71b/href">https://medium.com/media/04c35c63007dace93b551345e132b71b/href</a></iframe><h4>Running</h4><p>To run the tests, we just need to execute the following command in the project&#39;s root folder:</p><pre>mocha</pre><p>The test result will be like bellow (success case)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/19165cf833a0f08e108778a8a3a2e466/href">https://medium.com/media/19165cf833a0f08e108778a8a3a2e466/href</a></iframe><p>Simulating an error (compares 400 with 200 in the test result) we will get the error:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/09eff822df13e6275c6a5a1fb6322eaf/href">https://medium.com/media/09eff822df13e6275c6a5a1fb6322eaf/href</a></iframe><h4>Finalising</h4><p>For sure there a lot of other functions details of Chai, but this post is just to get the basic needed structure to create your tests</p><p>Take a look in the code comments, they will help you and also the Chai&#39;s documentation is really good</p><p>The project can be downloaded on GITHUB.</p><p><a href="https://github.com/h3nr1ke/teste_api">h3nr1ke/teste_api</a></p><p>If you want to talk to me regarding Node or Magic, send me a message on <a href="https://twitter.com/hdeodato">twitter</a>, and if you are looking a good place to host your apps, click <a href="https://m.do.co/c/b5d0121ec1cb">here</a> and get <strong>USD100</strong> to test =).</p><p>Photo by <a href="https://unsplash.com/photos/RLw-UC03Gwc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Glenn Carstens-Peters</a> on <a href="https://unsplash.com/search/photos/check?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edc810a5b752" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seletores no jQuery]]></title>
            <link>https://medium.com/@hdeodato/seletores-no-jquery-6ad525c4c304?source=rss-e1fb1dc81ed6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ad525c4c304</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[jquery]]></category>
            <dc:creator><![CDATA[Henrique Deodato]]></dc:creator>
            <pubDate>Thu, 14 Mar 2019 21:10:44 GMT</pubDate>
            <atom:updated>2019-03-14T21:10:44.445Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uw9eaOYvXACAtJVh5D2I2Q.jpeg" /></figure><p>…classes, IDs e um pouco além</p><h3>O que é o jQuery?</h3><p>Parafraseando o próprio site do <a href="https://jquery.com/">jQuery</a></p><blockquote>jQuery é uma biblioteca JavaScript rápida, pequena e cheia de bagulhinhos legais. (em tradução livre)</blockquote><p>Com ela, realizamos tarefas de forma mais fácil do que apenas usando JavaScript puro. Para saber mais acesse o site acima. Um dos fatos que a tornou muito popular foram os seus…</p><h3>Seletores</h3><p>… que basicamente são os mesmos do CSS, o que torna a curva de aprendizado bem mais fácil.</p><p>Seletores são o tema principal deste artigo, vamos analisar uma variedade de aplicações diferentes do que apenas os utilizados normalmente.</p><p>Como base, usaremos os próprios <a href="https://api.jquery.com/category/selectors/">exemplos do site oficial</a>. Existem diversos tipo de seletores, vou listar alguns bem práticos e usuais no dia a dia, sendo os mais óbvios…</p><h4>Por IDs e classes</h4><p>…a forma mais simples de seletores é expressa da seguinte forma</p><pre>jQuery(&quot;#ID ou .classe ou HTML_TAG&quot;)</pre><p>Repare que:</p><ul><li>“<strong>#</strong>” indica a seleção utilizando o id do elemento</li><li>“<strong>.</strong>” indica a selecção utilizando uma ou mais classes do elemento</li><li>HTML_TAG indica a própria tag. Podemos usar a, div, span e assim por diante.</li></ul><p>Por exemplo:</p><p>— ID do elemento (lembrando que se é um ID deve ter apenas 1 na árvore)</p><pre>//substitua ID pelo id do elemento<br>jQuery(“div#ID”).on(“click”,function(){<br>  alert(“click em uma div com id igual a &#39;ID&#39;”);<br>});</pre><p>— Classes</p><pre>//substitua &#39;classe&#39; pela classe desejada<br>jQuery(“div.classe”).on(“click”,function(){<br>  alert(“click em uma div com a classe &#39;classe&#39; ”);<br>});</pre><pre>// ou assim onde todos os elementos com a classe serão selecionados</pre><pre>jQuery(“.classe”).on(“click”,function(){<br>  alert(“click em um elemento com a classe &#39;classe&#39;”);<br>});</pre><pre>// podemos ainda usar mais de um classe para realizar a seleção<br>jQuery(“.classe.classe2.classe3”).on(“click”,function(){<br>  alert(“click em um elemento com as classes &#39;classe e classe2 e classe3&#39;”);<br>});</pre><pre>//OBS! - não rola com mais de um ID, porque isso está errado, lembre-se que um elemento só pode ter um id e ele deve ser único na árvore.</pre><p>— TAGs HTML</p><pre>//div, a, p table, span e etc.<br>jQuery(“div”).on(“click”,function(){<br>  alert(“click em um div”);<br>});</pre><p>— Elemento dentro de um elemento</p><pre>&lt;!-- HTML --&gt;<br>&lt;div&gt;<br>  &lt;span&gt;<br>    &lt;img /&gt;<br>  &lt;/span&gt;<br>&lt;/div&gt;</pre><pre>jQuery(“div span img”).on(“click”,function(){<br>  alert(“click na imagem dentro do span que esta dentro de uma div”);<br>});</pre><p>sabendo do básico, podemos pular para um segundo nível selecionando por…</p><h4>Por atributos</h4><p>…imagine que você quer selecionar todo o conteúdo de um link que tenha o atributo rel com o valor fotos</p><pre>jQuery(“a[rel=&#39;fotos&#39;]”).on(“click”,function(e){<br>  alert(“click em elemento a com o atributo rel com o valor igual a &#39;fotos&#39;”);<br>});</pre><p>Ponto muito importante, o valor deve estar em aspas simples &#39; e não em aspas duplas &quot; , uma vez que usamos &quot; no pra nosso seletor completo. Se inverter segue a vida =) .</p><p>Dentro dos atributos podemos ainda utilizar as seguintes variações:</p><p><strong>Atributo que tenha a palavra foto ou foto-<br></strong>jQuery(&quot;[rel|=&#39;foto&#39;]&quot;)<br> seleciona rel=”fotos” ou rel=”fotos-gatos”, mas não rel=”fotosgatos”</p><p><strong>Atributo que contenha a palavra<br></strong>jQuery(&quot;[rel*=&#39;foto&#39;]&quot;)<br> seleciona rel=”fotos”, rel=”fotos-gatos”, rel=”fotosgatos” ou rel=”maisfotosgatos”</p><p><strong>Atributo que tenham a </strong>foto<strong> limitada por espaços<br></strong>jQuery(&quot;[rel~=&#39;foto&#39;]&quot;)<br> seleciona rel=”fotos gatos”, rel=”gato fotos” mas não rel=”fotos-gato”</p><p><strong>Atributos que terminem com </strong>foto<strong><br></strong>jQuery(&quot;[rel$=&#39;foto&#39;]&quot;) <br>seleciona rel=”mais-fotos” mas não rel=”fotos-extras”</p><p><strong>Atributos que o valor seja diferente de </strong>foto<strong><br></strong>jQuery(&quot;[rel!=&#39;foto&#39;]&quot;)<br> seleciona rel=”gatos” mas não rel=”fotos”</p><p><strong>Atributos que comecem com </strong>foto<strong> <br></strong>jQuery(&quot;[rel^=&#39;foto&#39;]&quot;)<br>seleciona rel=&quot;fotos-extras&quot; mas não rel=&quot;mais-fotos&quot;</p><p>com isso ganhamos bastante flexibilidade, mas ainda podemos ir um pouco além e utilizar…</p><h4><strong>Pseudo Seletores</strong></h4><p>…que indicam um seleção baseado no estado do item, como por exemplo :visible que retorna se o elemento está, digamos, visível =).</p><pre>jQuery(“a.fotos:visible”).on(“click”,function(e){<br>  alert(“click em um elemento visível na tela”);<br>});</pre><p>Outros pseudo seletores são (mas não limitados a estes):</p><p>:first-child : Seleciona apenas o primeiro elemento que atender a query</p><p>:last-child : Seleciona apenas o último elemento que atender a query</p><p>:checked : Seleciona os elementos do tipo checkbox</p><p>:empty : Seleciona todos os elementos que não tenham conteúdo, por exemplo &lt;a&gt;&lt;/a&gt;, mas não &lt;a&gt;Teste&lt;/a&gt;</p><p>:odd : Seleciona todos os itens com índices pares começando com 0</p><p>:even : Seleciona todos os itens com índices ímpares começando com 0</p><p>E para um guia simples, está bom :)</p><p>Para uma lista completa, não esqueça de acessar o <a href="https://api.jquery.com/category/selectors/">site oficial</a> .</p><p>Qualquer coisa me chama no <a href="https://twitter.com/hdeodato">twitter</a>.</p><p>Photo by <a href="https://unsplash.com/photos/l090uFWoPaI?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">John Barkiple</a> on <a href="https://unsplash.com/search/photos/connection?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ad525c4c304" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[var, let, const and the hoisting thing]]></title>
            <link>https://medium.com/@hdeodato/var-let-const-and-the-hoisting-thing-e32a5b11b491?source=rss-e1fb1dc81ed6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e32a5b11b491</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ecmascript-6]]></category>
            <category><![CDATA[ecma-6]]></category>
            <dc:creator><![CDATA[Henrique Deodato]]></dc:creator>
            <pubDate>Tue, 18 Dec 2018 21:34:43 GMT</pubDate>
            <atom:updated>2021-09-18T04:41:37.704Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c__lDNn40KGajgcT59lp1g.jpeg" /></figure><p>Using ECMA6 we can declare variables using <strong>var</strong> , <strong>let</strong> and <strong>const</strong>.<br>Each one has as specific function and we need to be aware of some language behaviors while using them.</p><h3>var</h3><p><strong>var</strong> is the most common and well know type of declaration inside ECMA.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6dd935645407fe9f54990d8a8a9a1400/href">https://medium.com/media/6dd935645407fe9f54990d8a8a9a1400/href</a></iframe><p>This will result in the following output:</p><p><em>Banana<br>_myVar -&gt; Apple<br>Apple</em></p><p>As you can see, the variable is available in any scope and its value can be changed as well.</p><p>But, what happens if we declare a variable after we used it?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/684cdc0aaad367f0e4d81f23c6340dae/href">https://medium.com/media/684cdc0aaad367f0e4d81f23c6340dae/href</a></iframe><p>This will print the output below (thanks <a href="https://medium.com/u/3ca09e48e921">Michael Goncharov</a> to point the correction in this example):</p><p><em>Banana<br>_myVar -&gt; Apple<br>Apple</em></p><p>It WORKED without any restriction O.O, and there is a reason, and this reason is called <strong>HOISTING</strong>.</p><p>Hoisting means that any variable declared using <strong>var</strong> will be hoisted (can you see the connection??) to the top of the execution and will be available to the scope.</p><p>So we can confirm that a variable declared using <strong>var</strong> can be used in any place, those variables has no BLOCK SCOPE.</p><h3>let</h3><p>this is new and we can use it to declare BLOCK SCOPED variables, for instance:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1d9478978eb98b47eb5abaa8a479dfc5/href">https://medium.com/media/1d9478978eb98b47eb5abaa8a479dfc5/href</a></iframe><p>And now we got some different outputs:</p><p><em>_myVar -&gt; Apple<br>_mySecondVar -&gt; Avocado<br>Apple<br>Uncaught ReferenceError: _mySecondVar is not defined</em></p><p>And now, we can see that _mySecondVar does not exists outside the function, which help us to prevent errors of variable manipulation in the wrong moments.</p><h3>const</h3><p>Constants are part of the job, everyone need to declare some constants here or there, but it arrives only in ECMA6.</p><p>The first usage is to define simple variables that can&#39;t be changed during the execution</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/37aa41da959ae572dbc24747be08d69e/href">https://medium.com/media/37aa41da959ae572dbc24747be08d69e/href</a></iframe><p>this will return</p><p><em>Uncaught SyntaxError: Identifier ‘DELAY’ has already been declared</em></p><p>But as explained by our new friend <a href="https://medium.com/u/d5588e8616d8">Scott Molinari</a>, the values inside a constant in ECMA 6 can be changed O.O if you are using it as an object or array, for instance:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ff4930f9d450d4b2ff7a3d52217688ff/href">https://medium.com/media/ff4930f9d450d4b2ff7a3d52217688ff/href</a></iframe><p>in the line that we try to change the structure, the error will be displayed</p><p><em>Uncaught TypeError: Assignment to constant variable.</em></p><p>Same situation for a constant array</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/109c465ec3cb5d9558be6352ad7ebabd/href">https://medium.com/media/109c465ec3cb5d9558be6352ad7ebabd/href</a></iframe><p>And now we have a constant that cant be change during the execution =)</p><p><strong>BUT…</strong> (in uppercase to create a tension)</p><p>If you really want to prevent changes in a object, you can use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze">Object.freeze</a> (thanks <a href="https://medium.com/u/1df51491284f">Marek Szkudelski</a>) , as in the example below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/06fd58216c2d58dc15caf5c9080d20f8/href">https://medium.com/media/06fd58216c2d58dc15caf5c9080d20f8/href</a></iframe><p>The error now is silent, so, if you try to change the property value, nothing will happen and the object stay in the same state.</p><p>It only works for the immediate properties of the object, if something is nested, you need to implement a function to deep freeze your object, there is a good example in the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze#What_is_shallow_freeze">Mozila&#39;s link</a> referenced before.</p><h3>Conclusion</h3><p><strong>var</strong> = global var and hoisting</p><p><strong>let</strong> = block scope variables</p><p><strong>const</strong> = Constants, but if you use as an object, the properties can be changed unless you use Object.freeze</p><p>and that is it =)</p><p>Let us know your thoughts about it ^^V, and if you are looking a good place to host your apps, click <a href="https://m.do.co/c/b5d0121ec1cb">here</a> and get <strong>USD100</strong> to test =).</p><p>Photo by Lorenzo Cafaro from Pexels</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e32a5b11b491" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Utilizar Postgres com PHP]]></title>
            <link>https://medium.com/@hdeodato/utilizar-postgres-com-php-212eb4644dce?source=rss-e1fb1dc81ed6------2</link>
            <guid isPermaLink="false">https://medium.com/p/212eb4644dce</guid>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Henrique Deodato]]></dc:creator>
            <pubDate>Thu, 27 Sep 2018 17:09:43 GMT</pubDate>
            <atom:updated>2018-09-27T17:09:43.942Z</atom:updated>
            <content:encoded><![CDATA[<p>Considero que você já tenha o ambiente configurado, rodando o Apache2 e o PHP =) (se não tiver me avise que monto um passo a passo)</p><p>O exemplo dado foi executado em um Ubuntu Server 18.04.1.</p><p>Para acessar uma base de dados Postgres utilizando PHP é necessário instalar o driver de conexão, para isso:</p><pre>sudo apt install php-pgsql</pre><p>dependendo da sua versão do Ubuntu, essa lib pode mudar, então fique atento ou atenta.</p><p>editar o arquivo</p><pre>nano /etc/php/7.2/apache2/php.ini</pre><p>procurar por (no nano o comando para buscar é control+w )</p><pre>#extension=pdo_pgsql</pre><p>remover o #</p><pre>extension=pdo_pgsql</pre><p>salve o arquivo (no nano o comando é control+x e em seguida y )</p><p>agora reinicie o apache</p><pre>service apache2 restart</pre><p>teste sua conexão =)</p><p>qualquer problema grite ou chame no Twitter =)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=212eb4644dce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Teste automático de API REST com Node.js + Mocha + Chai]]></title>
            <link>https://medium.com/@hdeodato/teste-autom%C3%A1tico-de-api-rest-usando-com-node-js-mocha-chai-6aec4613d100?source=rss-e1fb1dc81ed6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aec4613d100</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[chai]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[mocha]]></category>
            <dc:creator><![CDATA[Henrique Deodato]]></dc:creator>
            <pubDate>Thu, 15 Feb 2018 12:47:40 GMT</pubDate>
            <atom:updated>2018-04-06T17:42:43.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTtnfDlX1rWA7V2Fh5jXgw.jpeg" /></figure><p>API REST já é parte obrigatória da maioria dos projetos que fazemos hoje em dia, e poder dormir tranquilo sabendo que nossos endpoints estão funcionando corretamente é parte do trabalho.</p><p>Para isso, automatizar os testes é crucial.</p><p>Neste artigo listarei os passos que realizei para criar meu primeiro teste automatizado utilizando Node.js, o test framework <a href="https://mochajs.org/">Mocha</a> e o <a href="http://chaijs.com/">Chai</a>, que é a lib que nos ajuda a escrever os testes.</p><h4>Instalação</h4><p>Todos os passos descritos abaixo foram realizados em um PC rodando Windows 10 e <a href="http://www.mingw.org/">MinGW</a>, mas tirando proveito da portabilidade das ferramentas, não deve ser muito diferente nas outras plataformas.</p><p>Primeiro de tudo, instale o Node.js, você pode baixar no <a href="https://nodejs.org/en/">site oficial</a>, e após instalação, abra o terminal e execute o comando para verificar a versão.</p><pre>$ node -v<br>$ v9.5.0</pre><p>próximo passo, criar a pasta onde nosso código será armazenado</p><pre>mkdir teste_api<br>cd teste_api</pre><p>Uma vez dentro da pasta, vamos iniciar o processo de criação do projeto</p><pre>npm init</pre><p>É possível já informar informações sobre o projeto, mas eu deixarei tudo padrão, no final digite <em>yes</em> para finalizar o processo e criar o arquivo package.json em sua pasta.</p><p>O conteúdo do arquivo package.json será algo como este</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4df95e22691a23b206329d0cccbb9b00/href">https://medium.com/media/4df95e22691a23b206329d0cccbb9b00/href</a></iframe><p>Para aqueles que não conhecem, este arquivo guarda todas as referências as dependências que utilizarmos, assim, um outro desenvolvedor pode baixar o projeto e instalar tudo o que for necessário de forma automática.</p><p>Agora vamos instalar os itens que precisamos para realizar os testes</p><pre>npm install mocha -g --save-dev<br>npm install chai --save-dev<br>npm install should --save-dev<br>npm install request --save-dev</pre><p>Os pacotes instalados são:</p><ul><li>Mocha — Test Framework</li><li>Chai — Teste Framework</li><li>Should — Biblioteca para extender os testes</li><li>Request — Para realizar as chamadas na API</li></ul><p>Neste Momento todas as dependências estarão armazenadas no package.json e uma nova pasta chamada node_modules foi criada e armazena todos os pacotes e dependências do projeto.</p><h4>Criando a estrutura do projeto.</h4><p>Mocha roda automaticamente os testes que obviamente estão dentro da pasta p̶a̶d̶a̶r̶i̶a test, então vamos criar esta pasta</p><pre>mkdir test</pre><h4>O que vamos testar?</h4><p>Para realizar os testes eu vou utilizar a api que retorna informações sobre cartas de <a href="https://magicthegathering.io/">Magic the Gathering</a> (que eu gosto muito diga-se de passagem).</p><p>Esta api é REST FULL então podemos testar vários diferentes cenários, o que é bem legal para aprenderemos os conceitos (mas nesse tutorial, darei apenas a introdução, o resto é com você).</p><h4>Escrevendo o teste</h4><p>Agora utilizando seu editor de texto favorito (o meu é o <a href="https://www.sublimetext.com/">Sublime</a>) vamos criar nosso primeiro teste.</p><p>Como eu disse antes, o mocha roda todos os arquivos que estão na pasta test, então vamos criar nosso primeiro teste, para isso vamos criar o arquivo card.spec.js que terá a seguinte estrutura.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0e64b69d17db75d04904678b92da2957/href">https://medium.com/media/0e64b69d17db75d04904678b92da2957/href</a></iframe><h4>Executando</h4><p>Para rodar os testes, basta digitar mocha na pasta raiz do projeto</p><pre>mocha</pre><p>O resultado do teste será como o abaixo (em caso de sucesso)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7f1f85e355373fb972a2548a809820a3/href">https://medium.com/media/7f1f85e355373fb972a2548a809820a3/href</a></iframe><p>Simulando um erro (comparando 400 com 200 no resultado do primeiro teste) teremos</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e15639c5d4c1986737690d51668ec9ca/href">https://medium.com/media/e15639c5d4c1986737690d51668ec9ca/href</a></iframe><h4>Finalizando</h4><p>Claro que não entrei nos detalhes das funçõe do Chai, mas este post é para dar uma idéia da estrutura e do que é necessário para o teste.</p><p>Veja que os comentários no código ajudam no entendimento e a documentação do Chai é bem rica.</p><p>O projeto pode ser baixado no github.</p><p><a href="https://github.com/h3nr1ke/teste_api">h3nr1ke/teste_api</a></p><p>Qualquer coisa me chama no <a href="https://twitter.com/hdeodato">twitter</a></p><p>Photo by <a href="https://unsplash.com/photos/AvV5rJl1vcU?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">ShareGrid</a> on <a href="https://unsplash.com/search/photos/tests?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aec4613d100" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WooCommerce não envia e-mails utilizando SMTP]]></title>
            <link>https://medium.com/@hdeodato/woocommerce-n%C3%A3o-envia-e-mails-utilizando-smtp-46e5bb461756?source=rss-e1fb1dc81ed6------2</link>
            <guid isPermaLink="false">https://medium.com/p/46e5bb461756</guid>
            <category><![CDATA[woocomerce]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[smtp]]></category>
            <dc:creator><![CDATA[Henrique Deodato]]></dc:creator>
            <pubDate>Fri, 01 Sep 2017 02:50:12 GMT</pubDate>
            <atom:updated>2017-09-01T02:50:12.855Z</atom:updated>
            <content:encoded><![CDATA[<p>Utilizar SMTP em sites Wordpress geralmente é a melhor saída para evitar que os e-mails não sejam pegos pelos controle de spam.</p><p>O problema é que um pequeno detalhe pode deixar você procurando por erros por bastante tempo.</p><p>Então, se você está usando SMTP, com este <a href="https://wordpress.org/plugins/wp-mail-smtp/">plugin</a> por exemplo, e WooCommerce, confira sempre dois pontos:</p><p>1 — As configurações do SMTP estão corretas (pra confirmar mesmo né… vai que…)</p><p>2 — Que o e-mail do WooCommerce em Woocommerce -&gt; Configuraçõe -&gt; Aba Email (link no link : wp-admin/admin.php?page=wc-settings&amp;tab=email ) é o mesmo do que está configurado no SMTP como usuário de autenticação.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*-17pyi3pbQEy3ta70fqkpg.png" /></figure><p>Se o e-mail for diferente, o WooCommerce não enviará nenhum e-mail.</p><p>Qualquer dúvida me ping-me no <a href="https://twitter.com/hdeodato">Twitter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46e5bb461756" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configurar ZOHO utilizando Registro.br]]></title>
            <link>https://medium.com/@hdeodato/configurando-zoho-utilizando-registro-br-b5cd7bb3da33?source=rss-e1fb1dc81ed6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5cd7bb3da33</guid>
            <category><![CDATA[email]]></category>
            <category><![CDATA[zoho]]></category>
            <category><![CDATA[configuração]]></category>
            <category><![CDATA[registrobr]]></category>
            <dc:creator><![CDATA[Henrique Deodato]]></dc:creator>
            <pubDate>Fri, 01 Sep 2017 02:32:29 GMT</pubDate>
            <atom:updated>2018-02-18T03:31:21.110Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://zm4.bz/2XpLErXA">Zoho</a> é um serviço muito parecido com o Gsuit do Google, que oferece algumas ferramentas para uso comercial, como o Zoho Mail, que possibilita a utilização de um domínio personalizado para emails de forma GRATUITA.</p><p>Para isso, é necessário que sejam configurados alguns registro em seu domínio, o que pode ser feito em seu provedor de hospedagem.</p><p>Mas também é possível realizar este procedimento apenas utilizando as opções do <a href="https://registro.br/">registro.br</a>.</p><p>Para isso, devem ser realizados os seguintes passos (passos de criação de conta foram pulados)</p><p><strong>1 — Criar uma conta no </strong><a href="https://zm4.bz/2XpLErXA"><strong>Zoho</strong></a></p><p><strong>2 — Realizar o registro do domínio no </strong><a href="https://registro.br/"><strong>registro.br</strong></a></p><p><strong>3 — No registro.br acesse seu dominio</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BYmVz__qXP2nJ4BJJZwGlg.png" /><figcaption>Acessando o domínio</figcaption></figure><p><strong>4 — Acesse a opção “Editar Zona”, lembre-se que não precisaremos alterar o DNS</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OyPs1V7rYpY5j-eF59JqwQ.png" /><figcaption>Acessando o editar de Zona ( sem trocadilhos hein ^^V )</figcaption></figure><h4>5 — Crie as seguintes entradas (se sua tela for diferente, clique em na opção “Avançada”)</h4><p>MX — Prioridade: 10, Valor: mx.zoho.com</p><p>MX — Prioridade: 20, Valor: mx2.zoho.com</p><p>TXT — Valor: v=spf1 include:zoho.com ~all</p><p>TXT — Host: <a href="https://www.zoho.com/campaigns/help/setup-spf-dkim.html">DADO_DO_DKIM</a>, Valor: &lt;CHAVE_DO_DKIM&gt;</p><p>CNAME — Com o valor indicado pela conta do ZOHO para a validação</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Q_7QFRw__R_2FPp1S7MBw.png" /><figcaption>Registros já inseridos</figcaption></figure><p>Lembre-se que são necessários os registros de SPF e DKIM para terminar a configuração, veja mais infos sobre eles <a href="https://www.zoho.com/campaigns/help/setup-spf-dkim.html">aqui</a>.</p><p><strong>6 — Salve as alterações.</strong></p><p>Espere propagar as informações e pronto, seu email está personalizado com o domínio indicado.</p><p>Qualquer dúvida me manda um <a href="https://twitter.com/hdeodato">tweet</a> ^^V</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5cd7bb3da33" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>