<?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 Abdel-Khafid ATOKOU on Medium]]></title>
        <description><![CDATA[Stories by Abdel-Khafid ATOKOU on Medium]]></description>
        <link>https://medium.com/@abdelkhafid?source=rss-875798618177------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*K3hxrgiYxmjhSUs10ra5kA.jpeg</url>
            <title>Stories by Abdel-Khafid ATOKOU on Medium</title>
            <link>https://medium.com/@abdelkhafid?source=rss-875798618177------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:13:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abdelkhafid/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[Apply Functional Programming to Convert Strings to URL Slugs]]></title>
            <link>https://abdelkhafid.medium.com/apply-functional-programming-to-convert-strings-to-url-slugs-dcd84fcee172?source=rss-875798618177------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcd84fcee172</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Abdel-Khafid ATOKOU]]></dc:creator>
            <pubDate>Tue, 15 Nov 2022 19:13:23 GMT</pubDate>
            <atom:updated>2022-11-15T19:15:26.530Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TKXSmO_vghw2G5aDRcf2Ww.png" /></figure><p>This is a FreeCodeCamp problem from <a href="https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/functional-programming/apply-functional-programming-to-convert-strings-to-url-slugs">Javascript Algorithms And Data Structures.</a> And here is one of solution to the problem.</p><h3>Problem :</h3><blockquote>Many content management sites (CMS) have the titles of a post added to part of the URL for simple bookmarking purposes. For example, if you write a Medium post titled Stop Using Reduce, it&#39;s likely the URL would have some form of the title string in it (.../stop-using-reduce). You may have already noticed this on the freeCodeCamp site.</blockquote><blockquote>Fill in the urlSlug function so it converts a string title and returns the hyphenated version for the URL. You can use any of the methods covered in this section, and don&#39;t use replace. Here are the requirements:</blockquote><blockquote>The input is a string with spaces and title-cased words.</blockquote><blockquote>The output is a string with the spaces between words replaced by a hyphen (-).</blockquote><blockquote>The output should be all lower-cased letters.</blockquote><blockquote>The output should not have any spaces.</blockquote><h3>My Solution</h3><p>This is my solution to the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8VZp5JrMQ-CVm3dc1rbjZA.png" /><figcaption>Apply Functional Programming to Convert Strings to URL Slugs</figcaption></figure><h3>Explanation</h3><p>The trim() method deletes whitespaces at the begin and end of string.</p><p>The toLowercase() method converts string into lowercase.</p><p>The split() method breaks the string into an array of words.</p><p>The filter() method in this case helps remove all whitespaces in-between a the given string.</p><p>The reduce() methods helps compose a new String according to the needed format and returns it. You must know that filter() method is a particular form of reduce() method. So we could deal without it.</p><blockquote><strong>Share your solutions with me in the comments.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcd84fcee172" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Replicate Data Between Differents Databases using ReplicaDB]]></title>
            <link>https://abdelkhafid.medium.com/replicate-data-between-differents-databases-using-replicadb-c7195143775d?source=rss-875798618177------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7195143775d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[replication]]></category>
            <dc:creator><![CDATA[Abdel-Khafid ATOKOU]]></dc:creator>
            <pubDate>Sun, 30 Oct 2022 18:37:53 GMT</pubDate>
            <atom:updated>2022-10-30T19:00:58.655Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Il_PEYpkR6l1ZtzfezYjvQ.jpeg" /><figcaption>Image source from replicadb repository</figcaption></figure><p>I am currently working as a Consultant for a startup in e-commerce domain. And one of my relevants duties is to make realtime data synchronization between differents databases.</p><h3><strong>The problem</strong></h3><p>The startup has two platforms. One is a web based app using mysql database and the second one is the mobile version of the first using Postgresql.</p><p>The matter was to automatically make data like users preferences available whatever the app they are connected to.</p><blockquote>As a disclaimer, what I am going to share is just a part of the synchronization strategy that i suggested to the startup and that i found will be very useful to the tech community.</blockquote><blockquote><strong>If you are not a fan of history, jump immediately into step 3.</strong></blockquote><h3><strong>Step 1 : SymmetricDS Pro is really pro</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*eN578_orX9fC2960YFdTWg.png" /><figcaption>SymmetricDS logo from jumpmind website</figcaption></figure><p>Before ReplicaDB, I made some researches over youtube and I found out <a href="https://www.symmetricds.org/">SymmetricDS</a>.</p><p>SymmetricDS is open source database replication software that focuses on features and cross platform compatibility.</p><p>SymmetricDS is a very powerful tool because It can be used with a wide variety of databases and It works like a <a href="https://www.qlik.com/us/change-data-capture/cdc-change-data-capture">CDC (Change data capture) which is the process of identifying and capturing changes made to data in a database and then delivering those changes in real-time to a downstream process or system</a>. SymmetricDs is a trigger based tool.</p><p>It has two versions : an open source version which allows anyone to performs customs jobs and the Pro or Commercial version which is more like the graphic version of the open source one. The Pro version needs a license key to be functional and that was where I stucked into cause I told my client that the data synchronization tool will be free of charges. (I know : Mistake !!)</p><h3>Step 2 : One step to ReplicaDB</h3><p>I could have simply told the client to pursue the pro version of SymmetricDS but I wished the tool could be really free of charge and I also desired to do everything by myself (not just clicking next button,lol).</p><p>Then I started implementing the synchronization logic but I stopped after two weeks of part-time work for two reasons : I was running out of allowed time and frankly It was difficult to me to understand SymmetricDS documentation (Maybe it was the pressure due to the lack of time. You can share your experience if you did it).</p><h3>Step 3 : ReplicaDB Replication</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*0uKScfDP46UAhlr2L1dzyg.png" /><figcaption>Replicadb logo from replicadb repository</figcaption></figure><p>While looking for alternatives to <a href="https://www.symmetricds.org/">SymmetricDS</a>, i came up on <a href="https://hevodata.com/learn/5-best-open-source-data-replication-tools/">this article</a> which led me to <a href="https://github.com/osalvador/ReplicaDB">ReplicaDB’s repository</a>.</p><p>ReplicaDB is a data replication tool developed in Java. ReplicaDB is a very light and easy-to-use tool that can be installed on Linux or Windows unlike SymmetricDs which needs some maintenance of databases.</p><blockquote>And most important is that ReplicaDB can make replication between SQL, NoSQL database engines, or other persistent stores like CSV, Amazon S3, or Kafka.</blockquote><p>You can <a href="https://github.com/osalvador/ReplicaDB/releases">download its .tar.gz, .zip or source version here</a>.</p><p>Go to <a href="https://github.com/osalvador/ReplicaDB">the repository link of ReplicaDB</a> to follow installation procedure and get all informations about it.</p><p>After installed, the most important thing to do is setting up the configuration file for your data replication.</p><p>For that you actually need to state :</p><ol><li>Database drivers to use for both source and destination databases.</li><li>Names of the databases users and its passwords.</li><li>Names of concerned tables in both parts (source and destination).</li><li>Names of concerned columns for source and destination tables.</li></ol><h3>Step 4 : ReplicaDB in Pictures</h3><p>Let’s synchronize two tables, source on Mysql and sink on Postgresql. <strong>Sink here means Destination table.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r6eiq_n1Pd93cAau9G-CRA.png" /><figcaption>A ReplicaDB configuration file</figcaption></figure><p>The first line is for the replication mode. ReplicaDB has three types of replication modes that reveal differents scenarios. You can read more about on <a href="https://osalvador.github.io/ReplicaDB/docs/docs.html">the documentation page</a>.</p><p>This is an example configuration file of ReplicaDB. You can also generate a config file <a href="https://osalvador.github.io/ReplicaDB/wizard/index.html">here</a>.</p><p>After being sure to have your informations well set in the config file, open a terminal or command shell and type the following command to execute you configuration file.</p><pre>$ replicadb --options-file replicadb.conf </pre><p>“replicadb.conf” is the name of the config file.</p><p>When execution succeed, you must get something similar to this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wbVEzhC_-AEQbJ_tO4clOA.png" /><figcaption>execution logs</figcaption></figure><h3>Step 5 : Automating the process.</h3><p>At the time I am writing this article i did not yet automate the process but I strongly believe that there is various ways possible of doing that.</p><blockquote>Just share your experiences with ReplicaDB or another replication tool with me.</blockquote><p>Subscribe to me to be aware of future insights. Thanks !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7195143775d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Test using Selenium WebDriver — Part 1]]></title>
            <link>https://abdelkhafid.medium.com/automated-test-using-selenium-webdriver-part-1-255643aadfd1?source=rss-875798618177------2</link>
            <guid isPermaLink="false">https://medium.com/p/255643aadfd1</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Abdel-Khafid ATOKOU]]></dc:creator>
            <pubDate>Wed, 28 Sep 2022 20:45:32 GMT</pubDate>
            <atom:updated>2022-09-28T20:45:32.419Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automated Test using Selenium WebDriver — Part 1</h3><figure><img alt="Automated Test using Selenium WebDriver" src="https://cdn-images-1.medium.com/max/1024/1*t5pAeqln4VFoPMlgV0x60A.jpeg" /><figcaption>Automated Test using Selenium WebDriver</figcaption></figure><p>Many Platforms or Companies in Tech always look for a way to speed up their working process. By the way automating tasks is such a good deal to effectively improve productivity on a specific product. Specifically for applications, Tests are in fact one of most important parts that are taken seriously for this matter.<br>In this article, I will take you through the necessary tools to set up in order to build your first automated test project.</p><p>First and foremost, keep in mind that Tests can be made using differents programming languages whether in Python, Java, JavaScript, etc. But for our case, we will go for JavaScript.</p><h3><strong>JavaScript is a must</strong></h3><p>JavaScript is a high-level programming language that forms a whole of World Wide Web with Html and Css. It is also one of most popular programming languages used in various domains such as Mobile App Devlopment, Desktop App Devlopment, Artificial Intelligence, Machine Learning and on.</p><p>Above all, JavaScript becomes devs favorite programming language due the rise of SPAs (Single Page Applications) and the rich set of frameworks based on it.</p><p>if you already have some experience with it then you are good to go otherwise learn more about it <a href="https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/">here</a>.</p><h3><strong>Selenium, the automating tool</strong></h3><p>As states on <a href="https://www.selenium.dev/">Selenium homepage</a> : “Selenium automates browsers”. <br>Among all benefits that offers Selenium, automating web applications for testing purposes remains its primary function.<br>Selenium is composed of three differents solutions :</p><ul><li><a href="https://www.selenium.dev/documentation/webdriver/">Selenium Webdriver</a></li><li><a href="https://www.selenium.dev/documentation/grid/">Selenium Grid</a></li><li><a href="https://www.selenium.dev/selenium-ide/">Selenium IDE</a></li></ul><p>But we will focus here on using Selenium WebDriver.</p><h3><strong>Installing Node.js and NPM</strong></h3><p>Node.js is a Javascript engine. You can download it based on operating system <a href="https://nodejs.org/en/">here</a>. On their site, you will find out two versions : the current one and the LTS. I advice opting for the LTS as it is the latest stable version.<br>At the time, this article is written Node.js is at 16.17.1 for its LTS version.</p><p>NPM is an open source package manager of Node.js execution environment. It is often installed during a Node.js installation. But you can still download on its <a href="https://www.npmjs.com/">official site</a>. NPM hosts and allows installation of millions of packages.</p><h3><strong>Create the project</strong></h3><p>To create a Node.js project, you must use the following command in any terminal :</p><p><strong>npm init</strong> // initializing new Node project</p><p>You can press Enter button to accept defaults values for all steps during creation.<br>When installation is finished you can open it your project inside any Code Editor. You must have a node_modules directory and a packages.json file created.</p><h3><strong>Add Selenium Webdriver package to your project</strong></h3><p>Go search for Selenium Webdriver on NPM’s Website and you will get more information about this package. <br>Once in your terminal, be sure to be at your project root and type the following command :</p><p><strong>npm install selenium-webdriver</strong></p><p>When package installed, you can verify that by opening the packages.jsonfile in the code editor or by doing cat packages.json in the terminal.</p><h3><strong>Setting up drivers for Selenium Webdriver</strong></h3><p>The coming steps are compulsory to get our project ready for testing.<br>Go to <a href="https://www.npmjs.com/package/selenium-webdriver">Selenium Wedriver NPM page</a>, you will a list of all relevant drivers.<br>As Selenium is for web app automating, there is almost a driver for all major browsers.</p><p>Drivers help creating a bridge between your application and Selenium Webdriver package.</p><ol><li><strong>Then choose one </strong><a href="https://www.npmjs.com/package/selenium-webdriver"><strong>out of the list</strong></a><strong> based on the browser which you want to use for testing.</strong></li><li>When dowloaded, place the driver inside a directory on your system.</li><li>Set that directory path into your system Path.<br>If you are using Windows, search for “Environment variables” and change PATH by adding path to your driver directory.<br>If you are on a Unix system, type <strong>sudo nano /etc/paths</strong> and add the directory path to the existing list.</li></ol><p>This is your first step towards creation of your automated test project using Selenium Webdriver.</p><h3><strong>Follow me or Subscribe to my Newsletter to be aware of next parts and more…</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=255643aadfd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FreeCodeCamp : Title Case a Sentence]]></title>
            <link>https://abdelkhafid.medium.com/freecodecamp-title-case-a-sentence-26a4ed8c33fc?source=rss-875798618177------2</link>
            <guid isPermaLink="false">https://medium.com/p/26a4ed8c33fc</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Abdel-Khafid ATOKOU]]></dc:creator>
            <pubDate>Sun, 18 Sep 2022 17:06:05 GMT</pubDate>
            <atom:updated>2022-09-20T16:24:38.643Z</atom:updated>
            <content:encoded><![CDATA[<h3>Title Case a Sentence in JavaScript</h3><p>from the <a href="https://medium.com/@abdelkhafid/list/basic-algorithm-scripts-in-javascript-8537b8219319">Basic Algorithm Scripts in JavaScript</a> list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TKXSmO_vghw2G5aDRcf2Ww.png" /><figcaption>freecodecamp — logo</figcaption></figure><p>In this article, I want to share my solution to <a href="https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-algorithm-scripting/title-case-a-sentence">FreeCodeCamp problem “Tile Case a Sentence”</a> from “JavaScript Algorithms and Data Structures” curriculum.</p><h3><strong>Problem</strong></h3><blockquote>Return the provided string with the first letter of each word capitalized. Make sure the rest of the word is in lower case.</blockquote><blockquote>For the purpose of this exercise, you should also capitalize connecting words like the and of.</blockquote><h3><strong>My Solution</strong></h3><figure><img alt="Solution to FreeCodeCamp problem : Title Case a Sentence" src="https://cdn-images-1.medium.com/max/1024/1*laJtdzmEixRq5lIHjwiBMw.png" /><figcaption>Solution to FreeCodeCamp problem : Title Case a Sentence</figcaption></figure><h3><strong>Explanation</strong></h3><p>According to the problem statement, each word from a given string must have its first letter capitalized and its other letters must be kept into lowercase.</p><p>Then to easily manage words, I first split the given string to get an array of words that compose the string.</p><pre>let arr = str.split(&quot; &quot;); <br>//space (&quot; &quot;) is used as breakpoint inside the word </pre><p>After that I go through the array.<br>For each word, we must first lowercase its entire structure :</p><pre>b = element.toLowerCase();</pre><p>From the obtained result, I make concatenation of its first letter uppercase and the rest of letters.</p><p>To finish I join the final form of each word to the result string with a space after each word.</p><pre>c = b.charAt(0).toUpperCase() + b.slice(1);<br>    result = result + c + &quot; &quot;;</pre><p>Before return the final result, we must trim it at the end otherwise tests won’t pass.</p><pre>return result.trimEnd();</pre><p>That is all !</p><p><strong>You can check out my </strong><a href="https://medium.com/@abdelkhafid/list/basic-algorithm-scripts-in-javascript-8537b8219319"><strong>Basic Algorithm Scripts in JavaScript</strong></a><strong> list.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26a4ed8c33fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 ways to check a string ending in Javascript]]></title>
            <link>https://abdelkhafid.medium.com/4-ways-to-check-a-string-ending-in-javascript-7614bbf63852?source=rss-875798618177------2</link>
            <guid isPermaLink="false">https://medium.com/p/7614bbf63852</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Abdel-Khafid ATOKOU]]></dc:creator>
            <pubDate>Sat, 17 Sep 2022 16:42:39 GMT</pubDate>
            <atom:updated>2022-09-18T16:55:15.229Z</atom:updated>
            <content:encoded><![CDATA[<p>from the <a href="https://medium.com/@abdelkhafid/list/basic-algorithm-scripts-in-javascript-8537b8219319">Basic Algorithm Scripts in JavaScript</a> list</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TKXSmO_vghw2G5aDRcf2Ww.png" /><figcaption><a href="http://freecodecamp.org/">freecodecamp logo</a></figcaption></figure><p>In this article, we will discuss about possible solutions to <a href="https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-algorithm-scripting/confirm-the-ending">Freecodecamp “Confirm Ending” problem</a> which is available in the “JavaScript Algorithms and Data Structures” curriculum.</p><h3>Problem : Check if a string ends with a given target string in Javascript.</h3><h3><strong>1- Solution using endsWith() method</strong></h3><p>Of course, there is a one-line solution to the problem using <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith">.endsWith method</a>. Using it, the solution should be like the one below :</p><figure><img alt="Check a string ending with endsWith Method." src="https://cdn-images-1.medium.com/max/1024/1*REKtIJsVWOxhdbTnDoFpQQ.png" /><figcaption>Check a string ending with endsWith Method</figcaption></figure><p>I use the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator">Conditional (ternary) operator</a> to ease understanding. The code returns a boolean whether <strong><em>str ends with target</em></strong> or not.</p><blockquote>But as mentioned in <a href="https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-algorithm-scripting/confirm-the-ending"><strong>the original problem</strong></a> statement, <strong>we must not use the endsWith method</strong> to resolve it.<br>Let’s then go through all other possible solutions that I found out.</blockquote><h3>2- Solution using slice() method</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oup5keAqEDmcs3pqNsjmqQ.png" /><figcaption>Check a string ending using slice method</figcaption></figure><p>What this actually does is :</p><p>- First getting the length of the target string <strong><em>“target” ;</em></strong><br>- Extracting a substring using <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice">the slice method</a> from the main given string <strong><em>“str”</em></strong>. The parameter in slice’s brackets indicates the starting position from where the extracted string is got ;<br>- Finally checking if the extracted string is equals to the target string.</p><p>If all these are in order then it returns true otherwise false as result.</p><h3><strong>3- Solution using substring() method</strong></h3><figure><img alt="Check a string ending using substring method" src="https://cdn-images-1.medium.com/max/1024/1*xFhkcRro8ODv0URjE3HI_g.png" /><figcaption>Check a string ending using substring method</figcaption></figure><p>This solution is practically the same as the previous. Because substring and slice methods are both used to extract strings.</p><h3><strong>4- Solution using RegExp()</strong></h3><p>Regular expressions are patterns used to match character combinations in strings. <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp">RegExp()</a> is the constructor function used to create them.</p><figure><img alt="check a string ending with regexes." src="https://cdn-images-1.medium.com/max/1024/1*fQzQJ1dfNVbzfkQgWqqxrA.png" /><figcaption>check a string ending with regexes.</figcaption></figure><p>Let me break it down to ease understanding !</p><pre>let myRegex = RegExp(`${target}$`,&#39;g&#39;);</pre><p>This first line of code means that we are creating a new regex. RegExp takes as first parameter the pattern. The first dollar sign$ and the curly brackets{} help accept target as a variable inside the pattern. The second dollar sign$ indicates that target variable should be looked up at the end of the string.</p><pre>let ret = myRegex.test(str);</pre><p>The test() method is useful to check if a string contains a regex or not. It returns true if it does otherwise false.</p><h3>These are my solutions to the problem. I Really appreciate yours in comments.</h3><p><strong>You can check out my </strong><a href="https://medium.com/@abdelkhafid/list/basic-algorithm-scripts-in-javascript-8537b8219319"><strong>Basic Algorithm Scripts in JavaScript</strong></a><strong> list.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7614bbf63852" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Return Largest Numbers in Arrays]]></title>
            <link>https://abdelkhafid.medium.com/return-largest-numbers-in-arrays-17be457bdd5e?source=rss-875798618177------2</link>
            <guid isPermaLink="false">https://medium.com/p/17be457bdd5e</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Abdel-Khafid ATOKOU]]></dc:creator>
            <pubDate>Wed, 14 Sep 2022 20:17:14 GMT</pubDate>
            <atom:updated>2022-10-03T09:42:02.820Z</atom:updated>
            <content:encoded><![CDATA[<p>from the <a href="https://medium.com/@abdelkhafid/list/basic-algorithm-scripts-in-javascript-8537b8219319">Basic Algorithm Scripts in JavaScript</a> list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TKXSmO_vghw2G5aDRcf2Ww.png" /></figure><p>In this article, We will give one of solutions to <a href="https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-algorithm-scripting/return-largest-numbers-in-arrays">FreeCodeCamp fifth basic script algorithm</a> from “JavaScript Algorithms and Data Structures” curriculum.</p><h3><strong>Problem :</strong></h3><blockquote>Return an array consisting of the largest number from each provided sub-array. For simplicity, the provided array will contain exactly 4 sub-arrays.Remember, you can iterate through an array with a simple for loop, and access each member with array syntax arr[i].</blockquote><p><strong>My Solution :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vXM_Z7kZy758v-qjaA_Yrw.png" /><figcaption>solution to return largest numbers in arrays problem</figcaption></figure><ol><li>For the given array, you must first go through all elements with a loop.</li><li>The most important thing to notice is the sort method. <a href="https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Array/sort">Sort() method in JavaScript is an in-built method that helps sorting arrays’ elements.</a> The Sort method can be used on both String and Numbers typed array.</li></ol><h3><strong>This is my solution to the problem. You can definitely share yours in comments and I will be glad to update the article.</strong></h3><p><strong>You can check out my </strong><a href="https://medium.com/@abdelkhafid/list/basic-algorithm-scripts-in-javascript-8537b8219319"><strong>Basic Algorithm Scripts in JavaScript</strong></a><strong> list.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17be457bdd5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set up a private Git server on Windows 10.]]></title>
            <link>https://abdelkhafid.medium.com/how-to-set-up-a-private-git-server-on-windows-10-89f915f77670?source=rss-875798618177------2</link>
            <guid isPermaLink="false">https://medium.com/p/89f915f77670</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[gitlab]]></category>
            <dc:creator><![CDATA[Abdel-Khafid ATOKOU]]></dc:creator>
            <pubDate>Fri, 02 Sep 2022 21:56:29 GMT</pubDate>
            <atom:updated>2022-09-15T10:26:33.840Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lfQXZeyuf-Z_rHh8j8mCZw.jpeg" /><figcaption>Set up a private Git server on Windows 10.</figcaption></figure><blockquote><strong>Git</strong> is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.</blockquote><p>If you are a regular user of git, you must know that everything is about repositories and operations on these. <strong>Repositories </strong>are first and foremost directories which main purpose is to contain data or files that will be shared between many people.<br>Understanding so, <strong>you can set up your own server without using Github or Gitlab</strong>. For this tutorial, we are going to do it on <strong>windows 10</strong>.<br><strong>Let’s jump in !</strong></p><ol><li>Go to <a href="https://git-scm.com/download/win">Git — Downloading Package (git-scm.com)</a> to download the current version of Git. Install it normally on your Windows 10 machine.</li><li>After geeting Git installed, create a new directory anywhere on your computer.<br>Let’s call the new directory <strong><em>git-server</em></strong>. Open it then in a powershell or Windows command prompt.<br>Tap the following to initialize a new repository in it : <br><br> <strong><em>git init myRepoName — bare<br></em></strong>This command means that we create a new repository named “myReponame”.</li><li>Come back to file explorer and make a right click on <strong><em>git-server, </em></strong>select<strong><em> Properties → Sharing → Share Button.</em></strong> <br>A modal will then appear, click on the dropdown annd choose <strong><em>EveryOne</em></strong> and click on <strong><em>Add </em></strong>button at the right. After doing so, change this group rights on his right side by selecting <strong><em>Read/Write</em></strong> and Click on <strong><em>Share</em></strong>.<br>You will get a following screen with a similar information to this.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*OE3KsrVc74WbeeNdJJOY3A.png" /></figure><p>Notice that DESKTOP-IV3TUO8 is my name Computer name. SO you’ll get yours accordingly.</p><p>4. Create another directory <strong><em>git-client</em></strong> to make operation on the previous repository. <br>Step into <strong><em>git-client</em></strong> directory and clone <strong><em>myRepoName </em></strong>from <strong><em>git-server</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*D54E9A2FY2LCXI0dq4-eDg.png" /></figure><p>As you can see the clone operation was successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*o2EYWx2D5K2XGtB5CoGLZg.png" /></figure><p>5. Now let’s create a text file into our <strong><em>git-client</em></strong> and push changes to <strong><em>git-server</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*Z4Qoc6NOe6snRjpgy-HGKA.png" /></figure><p><strong>In order, this is what I have done :<br>- I create a new text file <br>- I add the text file to git for commit<br>- I do the commit<br>- Finally I make the push.</strong></p><p>This is all for creating your private git server !!<br>Hope that It will help doing the same.</p><p><strong>Reach me out if getting any isssue !</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89f915f77670" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build your first flow with Power Automate]]></title>
            <link>https://abdelkhafid.medium.com/create-your-first-flow-with-power-automate-4c8216f362f0?source=rss-875798618177------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c8216f362f0</guid>
            <category><![CDATA[power-automate]]></category>
            <category><![CDATA[powerapps]]></category>
            <category><![CDATA[microsoft]]></category>
            <dc:creator><![CDATA[Abdel-Khafid ATOKOU]]></dc:creator>
            <pubDate>Mon, 29 Aug 2022 14:47:24 GMT</pubDate>
            <atom:updated>2022-09-02T17:18:40.658Z</atom:updated>
            <content:encoded><![CDATA[<p>Microsoft Platform comes with a bunch of low-code applications that are all different by their uniqueness as Power Apps, Power BI, Power Automate and on.<br>In this article, we will put our interest on Power Automate.</p><h3>What is Power Automate ?</h3><p>As its name states, Power Automate is a service that you can use to automate repetitive tasks. For example, it allows automating business processes in cloud or local, sending automatic reminders, easing business data management between systems.</p><h3><strong>Who is Power Automate for ?</strong></h3><p>You don’t necessary needs some specific skills before using Power Automate. Anyone can create automated processes using Power Automate’s no-code/low-code platform.</p><h3><strong>Make your first flow</strong></h3><p>1. Power Automate offers built-in templates that help quickly create flows. For this tutorial, we will select “<strong><em>Send an email when a new message is added in Microsoft Teams”</em></strong> inside Templates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hi4dF9shJzs_uNQaMzhMJQ.png" /><figcaption>choosing template</figcaption></figure><p>2. By selecting the template, you will get to connectors’ screen. There you must correctly connect your Microsoft Teams and Outlook accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*voWSvotHLBBddhjLolY-cg.png" /><figcaption>Seeting up connectors</figcaption></figure><p>3. After linking yours accounts to your flow, you must first <strong>choose a Team and a chanel from which your flow must listen messages</strong>. Secundo, you must <strong>put list of emails that will be notified</strong> of new messages in your Teams’ chanel. And you click<strong> save button</strong> to publish your flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gj883oQZLse_VSGe-8piOQ.png" /><figcaption>Publishing the flow</figcaption></figure><p><em>Congratulations !!! <br>You have now created your very first flow using Power Automate platform.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c8216f362f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>