<?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 Madez on Medium]]></title>
        <description><![CDATA[Stories by Madez on Medium]]></description>
        <link>https://medium.com/@mafe.mendez.m?source=rss-d0827098f536------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BtZ73IzXnVH0TM3SrbOGmw.jpeg</url>
            <title>Stories by Madez on Medium</title>
            <link>https://medium.com/@mafe.mendez.m?source=rss-d0827098f536------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:19:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mafe.mendez.m/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[UX — Designer language — research]]></title>
            <link>https://medium.com/@mafe.mendez.m/ux-designer-language-research-b439bab4487f?source=rss-d0827098f536------2</link>
            <guid isPermaLink="false">https://medium.com/p/b439bab4487f</guid>
            <category><![CDATA[ux-research]]></category>
            <category><![CDATA[ux-design]]></category>
            <dc:creator><![CDATA[Madez]]></dc:creator>
            <pubDate>Mon, 07 Sep 2020 04:25:10 GMT</pubDate>
            <atom:updated>2020-09-24T17:13:39.828Z</atom:updated>
            <content:encoded><![CDATA[<h3>UX — Designer language — research</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*48o7pkQIW04-dtxJ1E4LVg.jpeg" /></figure><h3><strong>User Experience — (UX)</strong></h3><p>One of the most important processes for improvement, satisfaction, usability, accessibility and user interaction.</p><p>This process gives us as a result a positive or negative perception of said service, product or device and of course this depends largely on the aspects related to emotions, feelings, construction and transmission of the brand, brand trustworthiness.</p><h3>UX Regina’s case, possible solutions for an excellent user experience.</h3><p>Today we find a specific case which we will analyze and give a possible solution to this.</p><h3><strong><em>User:</em></strong></h3><ul><li>Regina</li><li>68 yo,</li><li>Fort Myers,</li><li>FLMusic expertise:​ ​3​/3Software expertise:​ ​1​/3</li><li>Current occupation:Retired truck driver</li><li>Education:Bachelor of Music</li></ul><h3><strong><em>User History:</em></strong></h3><ul><li>After studying music to become an Opera singer, Regina quickly realized that she wouldn’t make a living out of it. Since she also particularly enjoyed road-trips, she reinvented herself by driving cargo trucks that let her endlessly sing her heart out, while crossing the country.Besides her passion for classical music, she likes jazz, blues, and soul music.Regina is not so comfortable with new technologies, but her grandson thought it would be a good idea to introduce her to Spotify. After all, it’s easier than switching CDs since she listens to music all day long.</li></ul><h3><strong>Case:</strong></h3><ul><li>“Improve how Spotify users find music to listen to.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/0*Ot_4wFrKOkoseI93" /><figcaption><strong>USER MAP</strong></figcaption></figure><p>Our user is Regina who makes daily use of the Spotify platform:</p><ul><li>In the first problem for her to have an excellent user experience, we can find that Regina’s user experience is not the most efficient when it comes to listening to a song from her favorite song library, which is a very tedious process. that she has to scroll incessantly when searching or if she wants to filter a song when the list is already too long.</li><li>Another problem to consider so that Regina does not have a pleasant user experience is that once she finds the song, then she plays it and then the song Ends then follows another of the songs that she has on her list, this is something that bothers her to her since she abruptly changes gender even if she wanted to listen to only classical music that day. , since these songs when you mark it as a favorite are saved in the library together with all the genres.</li><li>She thinks about a possibility of having her music grouped by genre in her favorites library.</li><li>One of the possible solutions that we will propose for a better user experience is:</li></ul><p>We know that every time some user looks for something interesting about music, regardless of the state of mind that he is on that day, in a music software such as the music platform Spotify keeps each search for each user and based on this he does certain recommendations to each user.</p><p>I return to the case of Regina we know in her story that she loves genres:</p><ul><li>Classical music</li><li>Jazz</li><li>Blues</li><li>Soul</li></ul><p>Based on the genres and the music that she listens to the most, the user experience will improve when entering the favorite music library. You can see in the diagrams below:</p><ul><li>Before: when accessing directly to the list of favorite songs she found that they contained all the genres together.</li><li>Now in this case:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NixskzogUYxcvAsT" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q_joXwoaM7FXFOiJ" /></figure><p>You will access the library and open a playlist created by genre, it will not be the one who creates these playlist, the same software will do this, it will organize the music within each folder corresponding to its genre.</p><p>When she clicks like to a general song, it will automatically be placed in her previously created genre folder.</p><p>When she filters a song from the favorites library, it will take it to its respective genre playlist so that it does not have to change the music genre abruptly at the end of a song.</p><p>In the same genre playlist, she can filter the songs that she wants without having to scroll incessantly and with more ease of finding it since each song belongs to the same genre.</p><h3><strong>Another possible solution that we can give is:</strong></h3><ul><li>From the beginning there are certain difficulties for the user to have a great experience with the app, according to the Regina’s case, the first problem is related to the lack of experience using the platform, so as a first step to take is important to considering the creation of a “beginner” route, that help the user to locate the basics functions in Spotify.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DCYbtmI9AQNBtaLw" /></figure><h3><strong>Prototype</strong></h3><blockquote>Sketch :</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6yiM_dh-HF--SLunxebDBA.jpeg" /></figure><blockquote>Mockups:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*415hX1NLETt3j1gAwHsgSg.png" /><figcaption>Select Liked songs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6lvCzq1KUfw5-jfX1zpK5w.png" /><figcaption>Select button Genres</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PDp-C58BOegkvUcDB623Rw.png" /><figcaption>Write in the search engine</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ri4u6mV2rgwJ4ef21lnpJA.png" /><figcaption>Filter by Genres</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ssI7S79vRLrDjJFwoD8OUA.png" /><figcaption>Open albums only classical music</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_tvRPeARgC5yyxbNENc83Q.png" /><figcaption>Select song</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G9eJJxHsUQH1zlGPBEe1xA.png" /><figcaption>Add to favorite</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKLpxw-OlnoZnuNc_W-B8w.png" /><figcaption>Open list liked songs by Genres</figcaption></figure><blockquote><strong>User Experience:</strong></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FpF3PY0ug6Vwahr5alX%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FpF3PY0ug6Vwahr5alX%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FpF3PY0ug6Vwahr5alX%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="206" frameborder="0" scrolling="no"><a href="https://medium.com/media/7ea92936a905a1d1cd395680d7cd650d/href">https://medium.com/media/7ea92936a905a1d1cd395680d7cd650d/href</a></iframe><blockquote>Link to Figma design Prototype :</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.figma.com%2Fembed%3Fembed_host%3Doembed%26url%3Dhttps%3A%2F%2Fwww.figma.com%2Ffile%2FFzVvNAAR2AnTtGShceLKMq%2FSpotify-Regina-%25CC%2581s-UX-Case-Solution%3Fnode-id%3D0%253A1&amp;display_name=Figma&amp;url=https%3A%2F%2Fwww.figma.com%2Ffile%2FFzVvNAAR2AnTtGShceLKMq%2FSpotify-Regina-%25CC%2581s-UX-Case-Solution%3Fnode-id%3D0%253A1&amp;image=https%3A%2F%2Fapi-cdn.figma.com%2Fresize%2Fthumbnails%2F7b6f7a4f-fa46-4f35-a955-a10a2831e01e%3Fheight%3D430%26bucket%3Dfigma-alpha&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=figma" width="800" height="450" frameborder="0" scrolling="no"><a href="https://medium.com/media/317062688dfaa944927c78ec4788210b/href">https://medium.com/media/317062688dfaa944927c78ec4788210b/href</a></iframe><blockquote>Resources:</blockquote><p><a href="https://uxplanet.org/what-is-ui-vs-ux-design-and-the-difference-d9113f6612de">What is UI vs. UX design? What’s the difference?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b439bab4487f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recursion Because A Picture is Worth 1,500 Words]]></title>
            <link>https://medium.com/@mafe.mendez.m/recursion-because-a-picture-is-worth-1-500-words-a90fcdfe199b?source=rss-d0827098f536------2</link>
            <guid isPermaLink="false">https://medium.com/p/a90fcdfe199b</guid>
            <category><![CDATA[ideas]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[recursion]]></category>
            <dc:creator><![CDATA[Madez]]></dc:creator>
            <pubDate>Thu, 29 Aug 2019 17:03:14 GMT</pubDate>
            <atom:updated>2019-08-29T17:03:14.347Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w6PohDXcMoXZTPOq1NumNA.jpeg" /><figcaption><strong>How recursion works in an image</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a90fcdfe199b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Have you ever wondered what happens when you type a URL in your browser and press enter?]]></title>
            <link>https://medium.com/@mafe.mendez.m/have-you-ever-wondered-what-happens-when-you-type-a-url-in-your-browser-and-press-enter-99034a06f185?source=rss-d0827098f536------2</link>
            <guid isPermaLink="false">https://medium.com/p/99034a06f185</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[sslsecurity]]></category>
            <category><![CDATA[tcp-ip]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Madez]]></dc:creator>
            <pubDate>Wed, 28 Aug 2019 02:13:55 GMT</pubDate>
            <atom:updated>2019-08-28T02:21:09.265Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*5cJu4Id6T7ITiPyunodvWA.png" /></figure><p>To start this post, I have to confess that, I had never asked myself that question before, that was what happened internally when I wrote something in the browser browser, but I started to understand how the web infrastructure was a few days ago, how the Internet worked, how the client exchanged data from the server through the network, I began to understand about protocols, security among many other things that I will tell you about this post, so that from now on every time look for something and press enter in your browser you can imagine a magical and abstract world of the internet.</p><p>Let’s continue…<br>Most of us know that the computer always interprets in a binary system so human beings have created different tools over time to facilitate that communication, something like this is what happens when you go and ask your browser to bring you some information for example: <a href="https://www.holbertonschool.com/">https://www.holbertonschool.com</a>, immediately and in a matter of microseconds this URL is translated to an IP to be more Easy to find access to information and receive an answer to your search, which in this case is a website.</p><p>Then we will talk about DNS in-depth:</p><blockquote><strong>DNS (Domain Name System)</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SLtaFJBqSYwlSeT2hBhwQw.png" /><figcaption><strong>DNS (Domain Name System)</strong></figcaption></figure><p>It is a technology-based on a database that serves to resolve names in networks, that is, they are the ones who allow us to know the IP address of the machine where the domain we want to access is stored.</p><p>When a computer is connected to a network, it has an IP address assigned. If we are in a network with few computers, it is easy to have the IP addresses of each of the computers stored and thus access them but what happens if there are billions of devices and each one has a different IP? Well, it would be impossible, so there are domains and DNS to translate them.</p><p>Therefore, DNS is a system used to translate names on the network and is composed of three parts with well-differentiated functions.</p><ul><li><strong>DNS Client — DNS server — Zones of authority</strong></li></ul><blockquote><strong>How DNS works:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*XUUM0RvBJf6L0uAhQRD7Ng.gif" /></figure><ul><li>We type in our browser https://www.holbertonschool.com<br>Our Operating System checks the request and sees if it has not been previously saved in its cache memory if it does not have it, then it makes the request to the DNS server configured manually or through DHCP.</li><li>The DNS server that we have configured also does not have the IP address of that domain stored, so it makes a request to the server in charge of the .com authority zone.</li><li>The server in charge of the .com authority zone has a data table in which the IP addresses of the machines and their domains are stored. It searches for it and responds to the DNS server that is stored on the machine with an x ​​address (xx.xx.xx.xxx).</li><li>That is when the DNS server we have configured makes a request to xx.xx.xx.xxx to find out where on your machine it is <a href="https://www.holbertonschool.com/">https://www.holbertonschool.com</a>.</li><li>The server where the page is hosted looks in its correspondence table and responds by saying that it is at IP address 179.246.0.233.</li><li>That is when 179.246.0.233 returns the query to our application (browser this time) and they begin to exchange packages to process the process.</li></ul><blockquote><strong>TCP/IP</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sThDFMHAZfTBr304oAoj9A.jpeg" /></figure><p>At the same time, we make the request of the URL comes into play a very important role which is the Transmission Control Protocol (TCP), which allows us to establish a connection and exchange data.<br>TCP guarantees us the delivery of data, that is, that the data is not lost during transmission and also guarantees that the packets are delivered in the same order in which they were sent.</p><blockquote><strong>FIRE-WALL</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5eFSxTWfrZHj9KLOnluvag.gif" /></figure><p>Since our computer is connected to the Internet all the time, this threat is even more constant and makes it quite vulnerable to suffer an attack by a hacker.</p><p>But that is why there are firewalls which is a system that gives us the protection of a computer or a computer network from the intrusions that come from a third network, what it really does is to filter the packets at least, the traffic between the internal and external network.</p><p><strong>How does this work?</strong></p><ul><li>Authorize a connection (Allow)</li><li>Block a connection (Deny)</li><li>Redirect a connection request without notifying the sender (Drop).</li></ul><p>Only allow explicitly authorized communications: “Everything that is not explicitly authorized is prohibited.”</p><p>Prevent any communication that was explicitly prohibited.</p><blockquote><strong>HTTPS / SSL</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C0FoCiliuQUCSlMgNyJvVw.jpeg" /></figure><p>Once we send the request we redirect it to HTTPS which is a secure extension, the websites that install and configure an SSL (Secure Sockets Layer) / TLS (Transport Layer Security) certificate can use this protocol to establish a secure connection with the server.</p><ul><li>Its main objectives are to make it safe to transmit confidential information, including personal data, or payment or login information.</li><li>It is an alternative to the transfer of simple text data in which your connection to a server is not encrypted, and makes it harder for criminals and hackers to track the connection and steal your data.</li><li>Most people are familiar with SSL / TLS certificates, which are used by webmasters to ensure the security of their websites and to offer a secure way for people to make transactions.</li><li>You can know if a website is using a certificate because you will see a small lock icon next to the URL in the address bar.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*a68r-vaMUwOQ4CaKzdC01Q.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*wS87wX-VEvevwcc_A9oB1w.png" /><figcaption><strong>HTTPS/SSL</strong></figcaption></figure><blockquote><strong>LOAD-BALANCER</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*dmSuMdAloyFGV4j1ELt95Q.png" /></figure><p>One of the main problems of the biggest requests for websites on the Internet is how to manage the requests of a large number of users who make a request every day. This is a scalability problem that arises with the continued growth in the number of active users in the system.</p><p>This service can be provided with both a router and a computer with two network cards and specific software.</p><p>There are round-robin type load balancers (one by one) and weights (which are able to know which of the nodes is more free and send the request). The best known is LVS, however there are others, such as the Red Hat Piranha.</p><p>And in the platform for Windows Server you have the ISA Server (Microsoft Internet Security and Acceleration Server).</p><p>There are softwares for load balancing, such as “Wingate” where you can add two networks….</p><blockquote><strong><em>W</em>EB SERVER</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*foV8DW5LPkGn4KSOTwj0bA.gif" /></figure><p>“Web server” we can refer to hardware or software, or both working together.</p><p>As for hardware, a web server is a computer that stores the files that make up a website (eg HTML documents, images, CSS style sheets and JavaScript file) and delivers them to the end-user device. It is connected to the internet and is accessible through a domain name such as <a href="https://www.holbertonschool.com/">https://www.holbertonschool.com</a>.</p><p>As for software, a web server has many parts responsible for controlling how users have access to files, at least one HTTP server. An HTTP server is a piece of software that includes URLs (web addresses) and HTTP (the protocol your browser uses to view web pages).</p><p>At the most basic level, whenever a browser needs a file stored on a web server, the browser requests it via HTTP. When the request arrives at the correct web server (hardware), the HTTP server (software) sends the previously requested file, also via HTTP.</p><p>what does an application server actually do?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1M5_n6epDm6WKpbkYURjUg.png" /></figure><p>It can often be a complex stack of different computational elements running specific tasks that need to work as one to power multiple clouds and web-based software and application.</p><p>Server tier and the back-end tier of a database server, the application server is essentially a go-between for the database server and the users of the business or consumer apps it supports through putting various protocols and application programming interfaces (APIs) to use.</p><p>An application server is designed to install, operate and host applications and associated services for end users, IT services and organizations and facilitates the hosting and delivery of high-end.</p><p>It’s commonly paired with a web server or contains a web server, which means the two can be converged and named a web application server. It is also versatile enough to be used with other application servers simultaneously.</p><blockquote><strong><em>DATA BASES</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rUPBUqgcNuzwq_mXV9wRTg.jpeg" /></figure><p><strong>Database</strong>, also called <strong>electronic database</strong>, any collection of data, or <a href="https://www.britannica.com/science/information-science">information</a>, that is specially organized for rapid search and retrieval by a <a href="https://www.britannica.com/technology/computer">computer</a>. Databases are structured to <a href="https://www.merriam-webster.com/dictionary/facilitate">facilitate</a> the storage, retrieval, modification, and deletion of data in conjunction with various data-processing operations. A <a href="https://www.britannica.com/technology/database-management-system">database management system</a> (DBMS) extracts information from the database in response to queries.</p><blockquote>To conclude this post is a sample of all the steps that happen in matters of microseconds one by one so that you can surf the internet, it is quite interesting that with just one enter a whole world of wonder unfolds but not difficult to imagine.</blockquote><blockquote><strong>Resources:</strong></blockquote><blockquote>Photographs and gif were taken and belong to google, for informational means of this blog.</blockquote><ul><li><a href="https://tecnologia-informatica.com/que-es-firewall-como-funciona-tipos-firewall/">Que es un Firewall y como funciona. Tipos de firewall - Tecnología + Informática</a></li><li><a href="https://www.geeksforgeeks.org/tcp-ip-model/">TCP/IP Model - GeeksforGeeks</a></li><li><a href="https://www.xatakamovil.com/conectividad/como-funciona-internet-dns">Cómo funciona Internet: ¿Qué son y para qué sirven las DNS?</a></li><li><a href="https://www.hostinger.co/tutoriales/ssl-tls-https/">¿Qué Es SSL/TLS Y HTTPS?</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99034a06f185" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning Returning to the past to understand its evolution …]]></title>
            <link>https://medium.com/@mafe.mendez.m/machine-learning-returning-to-the-past-to-understand-its-evolution-62a9177c783b?source=rss-d0827098f536------2</link>
            <guid isPermaLink="false">https://medium.com/p/62a9177c783b</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Madez]]></dc:creator>
            <pubDate>Tue, 25 Jun 2019 05:58:59 GMT</pubDate>
            <atom:updated>2019-06-26T05:28:34.755Z</atom:updated>
            <content:encoded><![CDATA[<h3>Machine Learning Returning to the past to understand its evolution …</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xBq0fMJ8YH68Sw5_NOEOHQ.jpeg" /></figure><p>This post is specially focused for our grandparents and all those who have had to live and be part of this new technological era. Even though some years ago it was totally different, and this echoes that they also adapt but costing them much more.</p><p>Maybe at some point, they have named, and you have heard terms like machine learning or perhaps artificial intelligence or maybe they feel that they use jargon that they usually do not know and you associate this with a language totally different from the one around them.</p><p>I do not want you, dear readers, to be excluded, but on the contrary that like those who already have something more knowledge in the subject to help them to understand in a more simple and friendly way, about all these new technologies, today I want to talk about what is machine learning, as time passes and even if we return to the ’50s, humans chose to teach many things and behaviors from us humans to a machine. It sounds quite interesting indeed! and later I will explain in detail everything about the beginnings, how and at what moment the machines began to come to life, being able to think for themselves. Is not this crazy enough?</p><blockquote><strong>Machine learning?</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*eKcQ7XgKcyT2sosEPG3ONg.jpeg" /></figure><p>Machine learning was born as an ambitious idea of ​​AI in the 60s. To be more exact, it was a subdiscipline of AI, a product of computer science and neurosciences.<br>What this branch sought to focus on was studying pattern recognition and computer learning. At the dawn of artificial intelligence, researchers were eager to find a way for computers to learn on the basis of data alone.<br>As time passed, machine learning began to take other courses to focus on different topics, such as probabilistic reasoning, statistics-based research, information retrieval and continued to deepen more and more in the recognition of patterns.<br>This caused that in the 90 it separated of the AI ​​to become a discipline by itself, although many purists still consider it like part of the Artificial Intelligence. Now, the main objective of machine learning is to address and solve practical problems in which any of the numerical disciplines mentioned above apply.<br>One of the keys to advanced artificial intelligence is learning. It is increasingly common for us to ask machines to learn by themselves. We can not afford to preprogram rules with infinite combinations of input data and situations that appear in the real world.</p><p>Instead of doing that, we need machines to be able to self-program, in other words, we want machines that learn from their own experience. The discipline of Machine Learning deals with this challenge and thanks to the perfect storm in which we have just entered all the Internet giants have entered fully into the world of machine learning, offering services in the cloud to build applications that learn from the data they ingest.</p><p>Machine Learning in its most basic form is the practice of using algorithms to analyze data, learn from them and then make a determination or prediction about something in the world. Therefore, instead of manual coding software routines with a specific set of instructions to perform a particular task, the machine is “trained” using large amounts of data and algorithms that give it the ability to learn to perform the task .</p><p>Understanding learning algorithms is easy if you look at how we learn from children. Reinforcement learning encompasses a group of machine learning techniques that we often use in artificial systems. In these systems, as in children, the behaviors that are rewarded tend to increase their probability of occurrence, while the behaviors that are punished tend to disappear.</p><p>This type of approach is called supervised learning since it requires the intervention of humans to indicate what is good and what is wrong (that is, to provide the reinforcement). In many other applications of cognitive computing humans, apart from reinforcement, also provide part of the semantics necessary for algorithms to learn. For example, in the case of software that must learn to differentiate the different types of documents that an office receives, it is humans who initially have to label a significant set of examples so that the machine can later learn.</p><p>That is to say, humans are what they initially really know if a document is a complaint, an instance, a claim, a request for registration, a request for change, etc. Once the algorithms have a training set provided by humans, then they are able to generalize and start sorting documents automatically without human intervention.</p><p>These restrictions or training limitations of the algorithms are currently the ones that largely limit their power since good training data sets are required (often manually labeled by humans) for the algorithms to learn effectively. In the field of artificial vision, for algorithms to learn to detect objects in images automatically have to be previously trained with a good set of tagged images.</p><p>However, technology advances Possibly the future of machine learning goes through a shift towards unsupervised learning. In this paradigm the algorithms are able to learn without previous human intervention, taking them out of the same questions about the semantics embedded in the data.</p><p>Not beyond the advances and improvements of the more traditional algorithms, from the sets of classifiers (joint learning) to the deep learning, which is very fashionable nowadays due to its ability to approach more and more the human perceptive power.</p><blockquote>Fields of application of Machine Learning:</blockquote><p>Many activities are currently taking advantage of Machine Learning. Sectors such as online shopping — have you ever wondered how the recommended products are instantly decided for each customer at the end of a purchase process? -, the online advertising — where to put an advertisement so that it has more visibility depending on the user who visits the web — or the anti-spam filters take time taking advantage of these technologies.</p><p>The field of practical application depends on the imagination and the data that are available in the company. These are some more examples:</p><ul><li>Detect fraud in transactions.</li><li>Predict failures in technological equipment.</li><li>Predict which employees will be more profitable next year (the Human Resources sector is betting seriously on Machine Learning).</li><li>Select potential clients based on behaviors in social networks, interactions on the web …</li><li>Predict urban traffic.</li><li>Knowing the best time to post tweets, Facebook updates or send the newsletter.</li><li>Do medical pre-diagnoses based on patient’s symptoms.</li><li>Change the behavior of a mobile app to adapt to the customs and needs of each user.</li><li>Detect intrusions in a data communications network.</li><li>Decide what is the best time to call a customer.</li></ul><blockquote><strong>Artificial intelligence?</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*ThnGnjnLORWlzJq7FPc5rQ.jpeg" /></figure><p>Artificial Intelligence (AI) is the combination of algorithms proposed with the purpose of creating machines that have the same capabilities as human beings. A technology that is still far away and mysterious, but that for a few years is present in our day to day at all times.</p><blockquote>TYPES OF ARTIFICIAL INTELLIGENCE</blockquote><p>Computer science experts Stuart Russell and Peter Norvig differentiate several types of artificial intelligence:</p><ul><li>Systems that think like humans: automate activities such as decision making, problem-solving and learning. An example is artificial neural networks.</li><li>Systems that act like humans: these are computers that perform tasks in a similar way to how people do. It is the case of robots.</li><li>Systems that think rationally: they try to emulate the rational logical thinking of humans, that is, they investigate how to achieve that machines can perceive, reason and act accordingly. The expert systems are included in this group.</li><li>Systems that act rationally: ideally, they are those that try to rationally imitate human behavior, like intelligent agents.</li></ul><blockquote><strong>Decision trees but how did this work?</strong><br>You start with a premise, for example:</blockquote><p>I’m hungry?<br>Yes or no</p><p>if the answer is (No):<br> — — — Then go to sleep</p><p>if the answer is yes):<br> — — — Then you wonder if you have enough money $ 25?<br> — — — — — -if the answer is yes):<br> — — — — — — —means you can go to a restaurant<br> — — — — —if the answer is (No):<br> — — — — — — —shopping goes economic like a hamburger.</p><p>In this way, we can make decisions depending on our circumstances.<br>Next, we will see an example that there are certain games that are expressible in a mathematical way and that we in some computer could mount a tree of decisions of all the possible ways, predicting each of the possible movements for this game “triqui”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*VUWaT5fgFi39dF9g5T4hdg.png" /></figure><p>Taking these examples of decision trees into real life in our daily lives internally we are always creating these trees in our brain. We search thousands of possibilities before taking a decision, for example, IF we want to cross a traffic light we look at the thousands of probabilities that can happen before this happens.</p><p>However, decimation trees are not the best way to create artificial intelligence nowadays processes are much more optimized.</p><p>To conclude the topic we will name some great characters in the story who contributed for a long time and in its beginnings of artificial intelligence. Arthur Samuel, a pioneer in the field of computer games and artificial intelligence, wrote the first computer learning program. The program that Samuel proposed was the “ladies” game, which contributed to the computer improving in the game as it played more, this was possible by studying which movements composed winning strategies and incorporating them into its program.</p><p>On the other hand, great personages as it was, Frank Rosenblatt, in the same decade, invented the Perceptron, a technology that resembles the human brain, since it was a type of neural network. In its principles, Perceptron connected a network of points where simple decisions are made that join the larger program to solve complex problems.</p><p>Never in the actuality, you have gotten to ask you if with whom you cross really human or are machines ?.</p><blockquote>RESOURCES:</blockquote><p><a href="https://empresas.blogthinkbig.com/una-breve-historia-del-machine-learning/">https://empresas.blogthinkbig.com/una-breve-historia-del-machine-learning/</a></p><p><a href="https://www.recluit.com/historia-y-evolucion-del-machine-learning/#.XQr_NFUzZhE">https://www.recluit.com/historia-y-evolucion-del-machine-learning/#.XQr_NFUzZhE</a></p><p><a href="https://www.youtube.com/watch?v=g0S5yNR1q8I&amp;t=5s">https://www.youtube.com/watch?v=g0S5yNR1q8I&amp;t=5s</a></p><p><a href="https://blog.adext.com/machine-learning-guia-completa/">https://blog.adext.com/machine-learning-guia-completa/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62a9177c783b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything is a object?]]></title>
            <link>https://medium.com/@mafe.mendez.m/everything-is-a-object-4827ec7d6e98?source=rss-d0827098f536------2</link>
            <guid isPermaLink="false">https://medium.com/p/4827ec7d6e98</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Madez]]></dc:creator>
            <pubDate>Wed, 29 May 2019 04:43:20 GMT</pubDate>
            <atom:updated>2019-05-30T06:43:19.712Z</atom:updated>
            <content:encoded><![CDATA[<h3>Everything is an object?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GS8dvdGqihPtHb5T2YYdlQ.png" /></figure><p>In this blog, we will talk about the objects and how in python everything behaves in this way and in turn we will talk about their behavior. For this, we will name several python functions and how to apply them. We will start talking about what is an id and the type function, later we will talk about other definitions where I will show you some examples so that you can understand it better</p><h3><strong>id() Function in Python:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*SZjbQfmCKOw3Mfl3HNyWpw.png" /><figcaption>Example Function id()</figcaption></figure><p>The id () function of Python is important to know that it returns the “identity” of the object. The identity of an object is an integer, which is guaranteed to be unique and constant for this object during its useful life.</p><p>Two objects with non-superimposed lifetime can have the same value id (). In the implementation of CPython, this is the address of the object in memory.</p><ul><li>We define an object that contains a list. in this example, we use the id of the function () to print the address of the object to occupy in memory</li></ul><p>Python caches the id () value of the most used data types, such as strings, integers, tuples, etc. Therefore, it is possible that several variables refer to the same object and have the same value of id () if their values ​​are equal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*ftF_vHAGmWAWZu7fGgVX4w.png" /><figcaption>Notice that id() value of ‘a’ and ‘b’ are same, they have the same integer value.</figcaption></figure><h3>Type():</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*ZW6k-5EyfegHMKMhpC-8sg.png" /><figcaption>Example of type() with different objects</figcaption></figure><p>Python has a built-in method called a type, which is generally useful for determining the type of the variable used in the program at runtime.</p><p>If a single argument (object) is passed to built-in type (), it returns the type of the given object. If three arguments are passed (name, bases, and dict), it returns to a new object type.<br>Syntax:</p><h3><strong>Mutability or Inmutabilidad:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*9kiAZD84Si42iszuGZ8A-Q.png" /></figure><p>Everything in Python is an <strong>object.</strong> You have to understand that <strong>Python</strong> represents all its data as objects. An object’s mutability is determined by its type. Some of these objects like lists and dictionaries are <strong>mutable,</strong> meaning you can change their content without changing their identity. Other objects like integers, floats, strings, and tuples are objects that can not be changed.</p><p>Variables in python hold an instance of an object. There are two types of objects in python i.e. <strong>Mutable </strong>and <strong>Immutable objects</strong>. Whenever an object is instantiated, it is assigned a unique object id. The type of the object is defined at the runtime and it can’t be changed afterward. However, it’s state can be changed if it is a mutable object.</p><p>To summarise the difference, mutable objects can change their state or contents and immutable objects can’t change their state or content.</p><blockquote><strong>Immutable Objects :</strong> These are of in-built types like <strong>int, float, bool, string, unicode, tuple</strong>. In simple words, an immutable object can’t be changed after it is created.</blockquote><h3>Strings are Immutable</h3><p>Strings are immutable in Python, which means you cannot change an existing string. The best you can do is create a new string that is a variation on the original.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*TNQd3PYtzY8bcsoMwZqZKQ.png" /><figcaption>Example Tuple object does not support item assignment because are immutable</figcaption></figure><blockquote><strong>Mutable Objects : </strong>These are of type <a href="https://www.geeksforgeeks.org/python-list/"><strong>list</strong></a><strong>,</strong><a href="https://www.geeksforgeeks.org/python-dictionary/"><strong> dict</strong></a><strong>,</strong><a href="https://www.geeksforgeeks.org/sets-in-python/"><strong> set</strong></a><strong> </strong>. Custom classes are generally mutable.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*vXIl_WWDiJNOUhSx2zQejw.png" /><figcaption>Example Mutable list</figcaption></figure><p>Which means a string value <strong>cannot be updated.</strong> Immutability is a clean and efficient solution to concurrent access. Having <strong>immutable variables</strong> means that no matter how many times the method is called with the same variable/value, the output will always be the same. Having <strong>mutable variables</strong> means that calling the same method with the same variables may not guarantee the same output, because the variable can be mutated at any time by another method or perhaps, another thread, and that is where you start to go crazy debugging.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*0Mcd1Vr_0AzTavwFphwiqw.png" /><figcaption>Example Mutable list</figcaption></figure><p>If you want to write the most efficient code, you should be the knowing difference between <strong>mutable</strong> and <strong>immutable</strong> in python. Concatenating string in loops wastes lots of <strong>memory,</strong> because strings are immutable, concatenating two strings together actually creates a third string which is the combination of the previous two. If you are iterating a lot and building a large string, you will waste a lot of memory creating and throwing away objects. Use list compression join technique.</p><p>Python handles mutable and immutable objects differently. <strong>Immutable</strong> is quicker to access than mutable objects. Also, immutable objects are fundamentally expensive to “change”, because doing so involves creating a copy. Changing <strong>mutable</strong> objects is cheap.</p><h3>Passed to Functions Immutable or Mutable Objects:</h3><p>Passing a list as an argument actually passes a reference to the list, not a copy of the list. Since lists are mutable changes made to the parameter change the argument as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u5lDFcbZlqvGltBB8hdHdg.png" /><figcaption>call list1 by a parameter in the function</figcaption></figure><p>In this example, we move to a list as a parameter to a function, which is an object and therefore we observe that we are modifying the same object pointing to itself,.</p><p>When the value is called by the function, only the value of the variable is passed, not the object itself. So the variable referencing the object is not changed</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4827ec7d6e98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Static or Dynamic Libraries ?]]></title>
            <link>https://medium.com/@mafe.mendez.m/static-or-dynamic-libraries-ac561df1a4fd?source=rss-d0827098f536------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac561df1a4fd</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[libraries]]></category>
            <category><![CDATA[spanish]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[c-language]]></category>
            <dc:creator><![CDATA[Madez]]></dc:creator>
            <pubDate>Tue, 07 May 2019 04:47:48 GMT</pubDate>
            <atom:updated>2019-05-07T05:44:42.201Z</atom:updated>
            <content:encoded><![CDATA[<h3>Static or Dynamic Libraries ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*KrScQfz5lrGy75E3MNkEjg.jpeg" /></figure><blockquote>To start this blog we will start with the understanding that libraries are in general:</blockquote><p>Libraries are a simple and versatile way to modularize and reuse code.we see acontinuacion the process of creating both static and dynamic libraries, their possible uses and the minimum resources needed to manage them properly.</p><p>Static libraries are only collections of object files that are linked to the program during the binding phase of the compilation and are not relevant during runtime, object files are also used only during the linking phase and are not required during execution time, only the executable file of the program is needed to execute the program.</p><blockquote><strong>STEPS TO CREATE A STATIC LIBRARIES:</strong></blockquote><p>To create our static libraries as a first step we convert all our files with extension.c to object code .o.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*zP4O8uNj6b8txj54y2Gibw.png" /></figure><p>The basic tool used to create static libraries is a program called ‘ar’, for ‘archiver’. This program can be used to create static libraries (which are actually storage files), and we can use the following command.</p><p>The ‘c’ flag tells ar to create the library if it does not already exist. The ‘r’ flag tells you to replace the oldest object files in the library, with the new object files.</p><p><strong>ar -rc libholbertonschool.a *.o</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*M9hV7VFeJaTz-qQcyurG3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*Dugd3y9rMFoal6DPDTFTJg.png" /></figure><p>After creating or modifying a file, it is necessary to index it. This compiler will later use this index to speed up the search of symbols within the library and to make sure that the order of the symbols in the library will not be important during the compilation, it is the following command that we use:</p><pre><strong>ranlib libholbertonschool.</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*yfE4bnZ0CktsP-PhvBLE6A.png" /></figure><blockquote><strong>USING OUR STATIC BOOKSTORE IN A PROGRAM:</strong></blockquote><p>After we created our archive, we want to use it in a program. This is done by adding the library’s name to the list of object file names given to the linker, using a special flag, normally ‘-l’. Here is an example:</p><p><strong>gcc main.c -L. -lholbertonschool -o alpha</strong></p><p>This will create a program using object file “main.o”, and any symbols it requires from the “util” static library. Note that we omitted the “lib” prefix and the “.a” suffix when mentioning the library on the link command. The linker attaches these parts back to the name of the library to create a name of a file to look for. Note also the usage of the ‘-L’ flag — this flag tells the linker that libraries might be found in the given directory (‘.’, refering to the current directory), in addition to the standard locations where the compiler looks for system libraries.</p><blockquote><strong>DYNAMICS LIBRARIES:</strong></blockquote><p>The use of dynamic objects supposes leaving the connection of said objects pending in the assembly of the application. When the application is running, and only then, the link (dynamic) with the objects contained in the library occurs. The creation of dynamic libraries is the responsibility of the linker or editor (in our case the ld) although it is also possible to indicate to the compiler the necessary options for the assembly and in that way, it will be the one who is responsible for passing them to the editor.</p><blockquote><strong>CREATION OF A DYNAMIC LIBRARY</strong></blockquote><p>When a dynamic object is created, it is necessary that the object code be independent of the position, to obtain this type of code the option -fPIC (Position Independent Code) must be specified to the compiler. Said flag must be indicated both in the compilation and in the assembly of the library. To mount the objects it is also necessary to indicate the -shared option so that the result is a “shareable” object file.</p><p>— — -Syntax- — —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*Qd91atZD-c3lL_DrhkesTg.png" /><figcaption>Position independent Code</figcaption></figure><p>to mount the objects it is necessary to indicate the option -shared, so that the file is a shared object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*sBZTAdhhLp73qoIYbYtkoA.png" /><figcaption>In this case, the library has the extension .so which means shared object</figcaption></figure><blockquote><strong>USE OF A DYNAMIC LIBRARY</strong></blockquote><p>To use this library from a program; it is exactly the same as in the case of the static library. When making use of a library, the compiler first looks for a dynamic version (.so), if it does not find it then it looks for the static version. If you have both versions of a library and you want to use the static version you must indicate the flag -static to the editor. When a program uses dynamic libraries, the system needs to locate them at runtime (unlike static libraries). The places where a program looks for dynamic libraries are the following (in this order):</p><ul><li>In the directories of the variable LD_LIBRARY_PATH.</li><li>In the file ld.so.cache. In the / usr / lib and / lib directories.</li><li>In the directories contained in the ld.so.conf</li></ul><p>Normally, it is best to use the environment variable <strong>LD_LIBRARY_PATH </strong>to indicate which directories to look for:</p><p>— — -Syntax — — -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*Dt0xQIfB1nURAUqqGI-amA.png" /></figure><p>When we have our executable and we are executing it, whenever the code needs something from the library, it will go looking for it. if we erase the library, our program will give an error that can not find it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac561df1a4fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[you asked yourself what happens when you execute the command ls -l ?]]></title>
            <link>https://medium.com/@mafe.mendez.m/you-asked-yourself-what-happens-when-you-execute-the-command-ls-l-a186b8ddabe5?source=rss-d0827098f536------2</link>
            <guid isPermaLink="false">https://medium.com/p/a186b8ddabe5</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[language]]></category>
            <dc:creator><![CDATA[Madez]]></dc:creator>
            <pubDate>Mon, 15 Apr 2019 02:13:41 GMT</pubDate>
            <atom:updated>2019-04-15T02:13:41.764Z</atom:updated>
            <content:encoded><![CDATA[<h3>you asked yourself what happens when you execute the command ls -l ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*20FbtU6DDNJJQBo4n15guw.png" /></figure><p>To begin this blog we will begin by explaining what is and how the command followed by a flag -l, in Linux.</p><h3><strong>ls command:</strong></h3><p>It is a command of the Unix operating system that shows a list with the files and directories of a certain directory.</p><p>The results are shown alphabetically ls is one of the most basic tools of Unix operating systems, so it is part of the GNU Coreutils package, the ls command has options in general to either list hidden files or show files in long formats, etc.</p><p>In the next example we show an example of how the terminal will look before and after executing this command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*1gCPm3sh8IeredJuBvoE8A.png" /><figcaption>the terminal look like this before you execute the ls command.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*VRL-NlA64x2mKPRXfYMY3g.png" /><figcaption>After you execute the command ls.</figcaption></figure><p>Now that you’ve seen what “ls” does, we can move on to the next part. That you are using the ls command together with the -l parameters.</p><p>Now we will try more specific actions and for this we will control the commands a little better. This will allow you more information about the command by using parameters that are simply extra information that refines the command.</p><p>The “ls” command has several parameters to use. The “l” parameter, “long format” means a format that is longer than some other format. There is no general Linux or UNIX concept of “long format”. In this case, it refers to the output format produced by the ls command with the -l option, and <em>only</em> to that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*sq14FNC9EjRMlub_pvK_ng.png" /><figcaption>simple_shell</figcaption></figure><p>Some day you have wondered what happens when you execute a command, what is its behavior and what processes happens to return the expected result. Normally it is difficult to see the process that this entails because the only thing we do is write the command and it already does everything there. But today I’m going to tell you everything you need to know so you can imagine beyond what happens behind the commands as we write at our prompt.</p><p>To begin this explanation the first thing is that our shell is ready to run the commands once this happens there is a flag $ which is waiting to receive some command, this from behind becomes a function (getline) that expects to receive some parameters as input a command line to be processed later, but<br>When you type any command given as an example ls -l, the shell first looks for alias which is a shortcut or a nickname for the command that you entered in the prompt. Therefore, when you write ls -l, start to see if there is an alias if it does not proceed and see if it is integrated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*UNQF-DmGwJZsqLlf9PZdlw.png" /><figcaption>Prompt — Expect to receive some parameters</figcaption></figure><p>It moves to the next process, which is looking for the PATH.<br>and starts looking for the program file called ls, which is where all the executable files are located. the system. The environment contains a PATH variable. This PATH contains a list of directories that the shell searches for each time the user enters a command. Next, PATH is parsed with the delimiter “=: \ n”. Then, once the PATH is found, all the directories are tokenized and analyzed with the delimiter “:”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*GHLeO4XO9U6L9vTfIGZoZA.png" /><figcaption>Enviroment Variables — Founded Path</figcaption></figure><p>Once the PATH has been tokenized and the directory has been found. Then the command ls -l will be ready to execute. But how does this command run well by calling the following system calls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*ZNKFOj4gUJ1IaRnWdkaRvg.png" /><figcaption>Divide each directory with a function.</figcaption></figure><p>fork() execve() wait()<br>System calls are called to the Kernel code to execute the system call.<br>So, how do these system calls work to execute a command? Well, fork () a copy of the parent called child. Then it executes execve () that does three things: it operates the system, it stops the process of duplication of the father, it loads a new program to the entrance of the user and then it starts the new program.</p><p>In our example, the user input is ls -l.</p><p>Meanwhile, the father is still waiting () to track the child. If the executable binary file does not exist, an error will be requested. But if it is executed, the shell executes the command and then releases the memory, exits and asks the user to enter more information..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a186b8ddabe5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Static Libraries?]]></title>
            <link>https://medium.com/@mafe.mendez.m/static-libraries-361c14fe9533?source=rss-d0827098f536------2</link>
            <guid isPermaLink="false">https://medium.com/p/361c14fe9533</guid>
            <category><![CDATA[c]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[language-learning]]></category>
            <category><![CDATA[libraries]]></category>
            <dc:creator><![CDATA[Madez]]></dc:creator>
            <pubDate>Mon, 04 Mar 2019 04:55:00 GMT</pubDate>
            <atom:updated>2019-03-04T04:55:00.410Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8sE_amiX5BIHFIqlEh3hDQ.jpeg" /></figure><p>To begin with this post, we will talk about what they are and what the static libraries are for in c and we will see some examples of how we will implement them.</p><p>The main problem is when the developed programs tend to grow more and more. and this makes the compilation and the linkage much longer. for that reason the libraries are created which are files that contain several object files, which can be used as a single entity in a linking phase of a program. Normally, the library is indexed, so it is easy to find symbols (functions, variables, etc.) in them. For this reason, linking a program whose object files are sorted in libraries is faster than linking a program whose object files are separated on the disk. In addition, when using a library, we have fewer files to search and open, which further speeds up the linking.</p><p>Static libraries are only collections of object files that are linked to the program during the binding phase of the compilation and are not relevant during runtime, object files are also used only during the linking phase and are not required during execution time, only the executable file of the program is needed to execute the program.</p><blockquote><strong>STEPS TO CREATE A STATIC BOOKSTORE:</strong></blockquote><p>To create our static libraries as a first step we convert all our files with extension.c to object code .o.</p><pre><strong>gcc -Wall -pedantic -Werror -Wextra -c *.c</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*zP4O8uNj6b8txj54y2Gibw.png" /></figure><p>The basic tool used to create static libraries is a program called ‘ar’, for ‘archiver’. This program can be used to create static libraries (which are actually storage files), and we can use the following command.</p><p>The ‘c’ flag tells ar to create the library if it does not already exist. The ‘r’ flag tells you to replace the oldest object files in the library, with the new object files.</p><p><strong>ar -rc libholbertonschool.a *.o</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*M9hV7VFeJaTz-qQcyurG3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*Dugd3y9rMFoal6DPDTFTJg.png" /></figure><p>After creating or modifying a file, it is necessary to index it. This compiler will later use this index to speed up the search of symbols within the library and to make sure that the order of the symbols in the library will not be important during the compilation, it is the following command that we use:</p><pre><strong>ranlib libholbertonschool.</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*yfE4bnZ0CktsP-PhvBLE6A.png" /></figure><blockquote><strong>USING OUR STATIC BOOKSTORE IN A PROGRAM:</strong></blockquote><p>After we created our archive, we want to use it in a program. This is done by adding the library’s name to the list of object file names given to the linker, using a special flag, normally ‘-l’. Here is an example:</p><p><strong>gcc main.c -L. -lholbertonschool -o alpha</strong></p><p>This will create a program using object file “main.o”, and any symbols it requires from the “util” static library. Note that we omitted the “lib” prefix and the “.a” suffix when mentioning the library on the link command. The linker attaches these parts back to the name of the library to create a name of a file to look for. Note also the usage of the ‘-L’ flag — this flag tells the linker that libraries might be found in the given directory (‘.’, refering to the current directory), in addition to the standard locations where the compiler looks for system libraries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=361c14fe9533" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hard link and a Symbolic and What is the diference?]]></title>
            <link>https://medium.com/@mafe.mendez.m/hard-link-and-a-symbolic-and-what-is-the-diference-52f1f3d46fdf?source=rss-d0827098f536------2</link>
            <guid isPermaLink="false">https://medium.com/p/52f1f3d46fdf</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[bash]]></category>
            <dc:creator><![CDATA[Madez]]></dc:creator>
            <pubDate>Wed, 06 Feb 2019 04:57:27 GMT</pubDate>
            <atom:updated>2019-02-06T04:57:27.688Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*hkOSspSme2IXHcpM3-C-wA.jpeg" /></figure><p>In this post we will talk a little about the difference between a hard link and a symbolic link, because of who we started on this topic a simple view seems complex of meaning.<br>Beginning with the description of the differentiation.</p><p>Command that you use to create a link: — ln</p><p>The command is used to create both symbolic links and hard links; This is the case as follows:</p><blockquote>To create a hard link: ln [file] [link]<br>To create a symbolic link: ln -s [item] [link]</blockquote><p>* item can be a file or a directory</p><h3><strong>Hard Links</strong></h3><p>The hard links is the original unix form of creating links.<br>By default each file has a hard link which is responsible for assigning a name, when a hard link is created an additional entry directory is created to the file.</p><p>The hard links have two limitations to highlight:</p><p>- A hard link can not refer to a file outside of its own file system, this means that it can not reference a file that is not in the same partition of the disk.<br>- A hard link can not refer to a directory.</p><h3><strong>Symbolic Links</strong></h3><p>The symbolic links were created to overcome the limitations of the hard link.</p><blockquote><strong>The use of the Symbolics link is always recommended</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*0fNY0DL7LeAxF_jZvNN9Rw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52f1f3d46fdf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Shell/bash: ls *.c command. Type in your shell.]]></title>
            <link>https://medium.com/@mafe.mendez.m/linux-shell-bash-ls-c-command-type-in-your-shell-f34652ab0fe?source=rss-d0827098f536------2</link>
            <guid isPermaLink="false">https://medium.com/p/f34652ab0fe</guid>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[shell-script]]></category>
            <dc:creator><![CDATA[Madez]]></dc:creator>
            <pubDate>Wed, 06 Feb 2019 03:59:47 GMT</pubDate>
            <atom:updated>2019-02-06T03:59:47.652Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*LPBegvECU3a8wJuybUELCQ.jpeg" /></figure><p>Most of us believe that before knowing how the shell works it is something weird and tedious; But really what they do not know is that there is behind all this, the multiple options that it offers us in terms of the manipulation of our content through the commands.</p><p><strong>The command ls *.c</strong></p><p>To begin, in the post we will focus on the command ls, one of the most used basic commands. Where its main function is to list the contents of our current directories.</p><p>Your standard synaxis: ls [opcion]… File…</p><p>Taking into account the basis of the standard syntax that is handled with the command ls execute the command using a Wild Card option (“*”) which will list all the files with extension .c</p><p>Below in the example that you can see below, we are located in the directory / Documents; Once there we execute the command ls * .c and we can see that it returns as a result the three files with extension .c</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*55O2MsaJ7cqBB8tPaqdpyw.png" /></figure><blockquote>“Remember to review the manual in your shell, so you know the multiple options that the commands have. (Man ls) <strong>#RTFM (Read The Fucking Manual)”</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f34652ab0fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>