<?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 Marcela Sanchez Moreno on Medium]]></title>
        <description><![CDATA[Stories by Marcela Sanchez Moreno on Medium]]></description>
        <link>https://medium.com/@970?source=rss-991cb99d0651------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fxkRyfJROmxsIcc858qYNg.jpeg</url>
            <title>Stories by Marcela Sanchez Moreno on Medium</title>
            <link>https://medium.com/@970?source=rss-991cb99d0651------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:44:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@970/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[A deep dive into Spotify’s user behaviors]]></title>
            <link>https://medium.com/design-bootcamp/spotifys-design-case-study-research-e1ace5f91895?source=rss-991cb99d0651------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1ace5f91895</guid>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[spotify]]></category>
            <category><![CDATA[ux-research]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Marcela Sanchez Moreno]]></dc:creator>
            <pubDate>Mon, 07 Sep 2020 19:34:44 GMT</pubDate>
            <atom:updated>2020-09-11T00:31:13.803Z</atom:updated>
            <content:encoded><![CDATA[<h4>A UX research case study.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2GUmlgEwPueu_uN-7erJGw.jpeg" /><figcaption>Spotify’s logo</figcaption></figure><p><em>Putting ourselves in the designer’s shoes, we have done this two-week research in which we tried to solve common problems among users less experienced with technology and the popular streaming application: </em><strong><em>Spotify</em></strong>.</p><blockquote>First of all, we will explore a little bit about what Spotify means.</blockquote><p>Spotify is a digital music, podcast, and video streaming service of Swedish origin that gives access to millions of songs and other content from artists around the world. This platform in its user interface does not have great differences when used on different devices or operating systems such as Windows, Mac, Linux, Android, and iPhone.</p><p>Founded in 2006, it is operated by Spotify AB, which has been listed on the New York Stock Exchange since 2018 through Luxembourg-based holding company Spotify Technology SA, which is also part of the Russell 1000 index.</p><p><a href="https://newsroom.spotify.com/company-info/">Its mission is to unleash the potential of human creativity, giving one million creative artists the opportunity to live from their art and billions of fans the chance to enjoy and be inspired by it.</a></p><p>Transforming the way we listen to music forever since its launch in 2008, it is the world’s most popular streaming audio subscription service with over 200 million users in 92 markets.</p><p>One of the main features of Spotify is the ability to share music with others. Spotify users can send and share music via social media platforms or email, although some types of music sharing require the recipient to be a member of Spotify.</p><p>Spotify also addresses the limitations of lack of access to Wi-Fi services through its offline mode provision. Depending on the user’s account type and other factors, Spotify can sync certain amounts of music, in playlists, to a device so that even when the user is offline or offline, they will be able to listen to those selected tracks. This and other unique features make Spotify unique in the new field of digital music hosting by subscription.</p><p>It allows the user to discover, manage and share over 60 million tracks, including over 1.5 million podcast titles, for free, or upgrade to Spotify Premium for access to exclusive music features, including improved sound quality and an -on-demand, offline, ad-free listening experience.</p><h3>Problem Statement</h3><p>The problem is the user experience when using the Spotify service. We interviewed some people who had problems using the platform and discovered the positive and negative aspects of the user interface.</p><p>The purpose is to make an analysis and research of these deficiencies in the product and for the user to interact with the service or product successfully, to make it an attractive product for users, and to make it enjoyable with respect to its functionalities. With this research, we want to take into account the user’s opinion and experience with the product to evaluate it with the data and suggestions collected for possible implementations in the real application.</p><h3><strong><em>User &amp; Audience</em></strong></h3><p>This is one of the people who wanted to put in our hands to solve a fairly common problem in users of this streaming platform, Michelle is a nurse and mother who enjoys relaxed music and pop and in Spotify would like to find a space of their own to enjoy music, because their children also use their account and in the end, she always ends up listening to their musical tastes and those of their children.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*A8U-bGAMnMleeNXU2U_sGw.png" /><figcaption>How to improve the way Spotify users find music to listen</figcaption></figure><p>Through this research, we want to achieve objectives according to the needs and fears that the user has regarding the application of streaming Spotify as reflected in the table above.</p><p>Michelle wants to discover new music, new musical tastes, and find a way to do it without paying an additional bill, besides being able to have her own space where she can separate her musical tastes from those of her children. She has an average experience in handling this type of platform and wants through Spotify to know about other musical genres different from the ones she is used to listening to.</p><p>Below we can see Michelle’s <strong>User Journey Map</strong> as she tries to log in to Spotify and try to discover new music:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IYikvGYUCqLiDMeYWZ-mfg.png" /></figure><h3>Roles &amp; Responsibilities</h3><p>The team that carried out this research is made up of two full-stack web developers:<a href="https://www.linkedin.com/in/lady-marcela-s%C3%A1nchez-moreno-277922184/"> Lady Marcela Sánchez</a> and <a href="https://www.linkedin.com/in/juan-lopez-dev/">Juan Carlos López</a>, in which we took on the role of UI/UX Designer in order to play with it and know how this type of observation is carried out.</p><p>Between the two of us, we worked on the analysis and research of the user experience, identifying each of the problems and solving them in the best possible way, through our point of view on the cohesion and viability of the user interface.</p><p>Discovering weaknesses in user interaction according to research<br>In the process phases, the challenges that we must face, know well the product or service in order to make a good investigation, look at the challenges or problems, draw (sketches) sketches, prototypes, information architecture, wireframes, and the solution obtained.</p><h3>Scope &amp; Constraints</h3><p>Through the experience of a user using the Spotify platform we have his objectives, his needs, what he wants, his fears, and his journey map, we analyze this case for 2 weeks establishing a schedule for each phase of the investigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*5ZJtsDmm96XslNDUYRLMng.png" /></figure><p><strong>Process &amp; What You Did</strong></p><blockquote>Continuing with the connecting thread of this research, we will review step by step what was done and why it was done to obtain the final conclusions that we will address later in this blog.</blockquote><h3>The challenge / the problem</h3><p><strong>A)</strong> <em>More than 1 profile per premium account.</em></p><ul><li>A problem that Michelle has is her bad experience at the time of listening to a playlist because she has the habit of listening to relaxing music after work but also share the music with their children, only appears recommendations that listen to their children and has no recommendations of the tastes of her, then she feels frustrated with this situation.</li></ul><p><strong>B)</strong> <em>Saves the song, playlist, and radio function</em></p><ul><li>One drawback that Michelle has is when she saves a playlist because when she looks for a way to save it, she doesn’t really understand the options and doesn’t know how to do it, which frustrates her because Spotify is not very intuitive, and it doesn’t allow her to save the radio feature, because it literally works like a radio by randomly placing the songs without any time limit on playback.</li></ul><p><strong>C) </strong><em>Quick start</em></p><ul><li>Due to Michelle’s difficulty in saving songs and playlists, improving her search, and making correct use of each of the options offered by the platform, an initial tutorial for people with little experience in using Spotify would be essential.</li></ul><p><strong>D) </strong>Improve the appearance of the app and recommendations</p><ul><li>One of Michelle’s drawbacks is the diversity of options in the app, she feels overwhelmed by the amount of content present on the platform and doesn’t know where to start.</li></ul><p><strong>E) </strong>Nav Bar</p><ul><li>One drawback for Michelle is the searches, the search bar in the Spotify application is very minimalist and not very easy to use. It is located at the top right and the font size of the bar is very small.<br>The user profile is very simple, the user does not feel part of the application, ie Spotify is just a tool for playing music leaving the user aside, although we know that the priority is the music, we consider that it should be a little more user friendly.</li></ul><p><strong>F) </strong>Accessibility</p><ul><li>The accessibility of the Spotify application is very poor, due to problems with user interaction, problems with the background colors of the Spotify application as it is dark which tend to confuse the user, or has no preference for the dark color, the font is small for many visually impaired users, and the color contrasts can be confusing and frustrating for the user when looking for something they cannot find.</li></ul><p><strong>G) </strong>Design flexibility</p><ul><li>the design flexibility of the Spotify application is not nice, we suggest improving the navigation menu, the Spotify logo is green but in the application, this color is rarely visible, nowhere inside the application is the Spotify logo</li></ul><h3>Research &amp; discoveries notes</h3><p><strong>A)</strong> Michelle’s account is a basic plan, but it is suggested that a basic account can have at least two profiles. So that Michelle and her children’s musical tastes are in each profile and do not get mixed up in the playlist improving the experience and being able to have musical recommendations according to each profile separately.</p><p><strong>B) </strong>Improve the way to save the playlist by some icon that alludes to the action save, at the time of research is very confusing to the user, because there is an icon in the form of a heart, but does not indicate that it is to save the song or playlist, some users believe that this option only indicates that they like the song or playlist, it is not obvious to the user that this option is to save.</p><p><strong>C) </strong>When an account or a new profile is created, a quick start is made as a 5-minute tutorial to give the user a tour of interactive Spotify, to give them knowledge or tips on how to navigate the application.</p><p><strong>D) </strong>According to the research, we saw that the platform is not very optimized for the user, since, in the Home page, there is music suggested by Spotify to discover the music of an artist that the user likes but not the music that the user usually listens to, which suggests that the user’s usual musical taste is a priority, also simplify the menu options that are more pleasing to the user visually so that they feel more familiar with the application and have less text to avoid confusion and the user feeling overwhelmed with so much information, playlists and many other items are not very ordered and can be confusing to the user so it is also suggested that there are drop-down folders to have an organization in the music preferences and other items that save the user’s favorite songs.</p><p><strong>E) </strong>The navigation bar is not very pleasing to the user experience when the user goes to search for music, the navigation bar is expected to take up more space on the main screen and have a message indicating and inviting the user to listen to their favorite music with Spotify.<br>The idea is to improve the profile design, give the user a sense of belonging to the application, give the user the ability to customize their application through themes, colors, and whether or not they want a more simplified design.</p><p><strong>F) </strong>Customize the page with user preferences should not be a limitation by Spotify, the user could opt for another application, improve the design interface, improve the type of font, improve color contrasts especially thinking about a person with a lack of vision.</p><p><strong>G) </strong>Having navigation tabs at the top for easy user location, highlights the Spotify application with the green color, when it is on the current menu, or when hovering over the menu or options.</p><h3>Sketches</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9kSKUY01HXSgGXCx0Svlw.jpeg" /><figcaption>Sketch on the Spotify homepage</figcaption></figure><p>According to the problems and solutions presented, we have created a simple, easy, and small sketch over the main view of Spotify, later in this blog, we will see a wireframe about the possible changes in the platform regarding the user experience.</p><h3>Information Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3lljZpWTqEIVKg-gTUd0Ww.png" /><figcaption>Spotify’s sitemap</figcaption></figure><h3>Wireframes</h3><p>This visual guide represents the skeleton frame of what Spotify is as an application. The wireframes are created with the purpose of organizing elements to better achieve a particular purpose, as in this case to give a visual point of view about the improvements that could be made in the platform taking into account the results of the research.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*Pflw_ksY5BEL9rK6HMY0-Q.png" /><figcaption>Home page with the navigation bar as suggested in the previous points.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*1nXq9whuji1SiekTdO-0_Q.png" /><figcaption>Quick tutorial for people with little platform expertise.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*c0B82SURUzipidjz8LGc9A.png" /><figcaption>This is the view of a playlist with the “save” icon and with the detail of the heart icon to make it obvious that this is the way to save a song or a playlist.</figcaption></figure><h3>Conclusions</h3><p>After doing some research and analysis of the Spotify product we have concluded and suggested 5 ideas in order to improve Michelle’s experience on the Spotify App, the most important being accessibility, better design on the platform, and is more enjoyable for any type of user would help more people enjoy the app.</p><p>This process was done in several phases, first, it must be understood for what type of user is going to design, in which we have analyzed their objectives, their needs, what the user wants and their fears, after collecting this information, it is analyzed to make their experience more enjoyable.</p><p>Additionally, we concluded that the application should not be limited to certain types of people, since it is not very intuitive for people who are inexperienced in the use of software or have visual or even auditory limitations. These types of people should be involved in order to make a better reach on the platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1ace5f91895" width="1" height="1" alt=""><hr><p><a href="https://medium.com/design-bootcamp/spotifys-design-case-study-research-e1ace5f91895">A deep dive into Spotify’s user behaviors</a> was originally published in <a href="https://medium.com/design-bootcamp">Bootcamp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you type https://www.holbertonschool.com in your browser?]]></title>
            <link>https://medium.com/@970/what-happens-when-you-type-https-www-holbertonschool-com-in-your-browser-c4e64a381036?source=rss-991cb99d0651------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4e64a381036</guid>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[web-infrastructure]]></category>
            <category><![CDATA[holberton-school]]></category>
            <category><![CDATA[www]]></category>
            <dc:creator><![CDATA[Marcela Sanchez Moreno]]></dc:creator>
            <pubDate>Thu, 09 Apr 2020 07:48:20 GMT</pubDate>
            <atom:updated>2020-04-13T01:57:44.196Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6o9q9M3mTatigGbiKwwsLg.jpeg" /></figure><p>In the era of immediacy where we are used to getting everything almost in real-time, surfing the internet is not the exception, we do it all the time and it is part of our lives, many of us find in the internet tools that help us in anything we do daily and being something so common, We do it basically because it is inherent to us and we never question what happens behind the simple act of typing in the search bar what we commonly know as “the address of a web page”, “the link”, “the name” of this one or what is really the URL (uniform resource locator) and then press enter. <br>This and other concepts will be explained a little later in detail in this article to really understand some of the magic behind it.</p><p><strong><em>How does the web stack work on top of the internet?</em></strong></p><p>By typing in our search bar the URL <a href="https://www.holbertonschool.com/"><strong>https://www.holbertonschool.com</strong></a>, what our browser does is send a request to the servers that are linked to this website and display the content that is hosted on them, many of you will be wondering what a server is.<br>A <strong><em>server</em></strong> as its name suggests, in technology, is a software or a device that “<strong><em>serves”</em></strong> another device, software or in this case the browser that would be the <strong><em>client</em></strong> and this process by which <strong><em>client-server</em></strong><em> “communicate”</em> is called <strong><em>service</em></strong>, this service provides storage and management of data required and requested by the client, There can be many servers for a client and many clients for a server, depending on the case because there are different types of servers (database servers, files, mail, web, games, etc), these servers are also physical machines in which you can run specific software, the latter are gathered in sites called server farms or data centers. <br>Each of these servers is associated with a particular URL, this IP address is of great importance because it is the identification of where the server is, which allows you to interact with the browser and thus the browser <em>“understands”</em> the location of this to meet customer requests and does so through the request <strong><em>DNS (Domain Name System)</em></strong>, this URL is an alias, easy to remember and read for the user to do their searches on the Internet in a simple way, but your computer does not understand this URL, so the DNS comes into action, because it translates the URL to the associated IP address to find the server that contains the data being requested, if not found is when we redirect the famous page<em> “404 not found”</em>, which is a standard response protocol that indicates that there was no communication with the server that is requesting the data, this DNS system helps us not have to memorize the IP address of each web page you want to visit, only knowing the URL of the page can do.</p><p>The URL has a syntax, its elements perform a specific action to show us what we finally see as the content of a web page:</p><ol><li><strong>Internet Protocol</strong></li><li><strong>Domain name</strong></li><li><strong>Last file path</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*EDFIdgpXgPEBTYjuWuDcVQ.jpeg" /></figure><ul><li><strong>Internet Protocol</strong></li></ul><p>These are some rules to be able to access any website, without it you could not access the data through the internet, as I mentioned before, when appearing in our search a 404 page, this is done through the internet protocols, For example, there is the <strong><em>Hypertext Transfer Protocol (HTTP)</em></strong> and its encrypted variant <em>HTTPS</em>, a secure hypertext transfer protocol, by which data from a web page is transferred from the server to our browser, as we have explained in this article, this is the basis of the Internet or the WWW.</p><p>Although these protocols are similar, they both define two different procedures for sending and retrieving data from a server. HTTP sends and receives data in plain text, which is not safe because it has no security to prevent the theft of any data, but <strong><em>HTTPS (HyperText Transfer Protocol Secured)</em></strong> if you have security, with this protocol we have the guarantee of having our data secured because they are protected with encryption algorithms, also has certificates that ensure that the communication that is established is the correct user and prevent any impostor intercept any type of transaction (eg commercial transactions).</p><ul><li><strong>The domain name or Hostname</strong></li></ul><p>The hostname or domain identifies the host where the resource is located (IP), is assigned to a host computer, this comes from the combination of the local name of the host on its main domain name, in this case:</p><pre><a href="http://www.holbertonschool.com/"><strong>www.holbertonschool.com</strong></a><strong> is the name of the host “www” </strong></pre><p>and</p><pre><strong>holbertonschool.com corresponds to the domain.</strong></pre><p>Domain names are used in various network contexts and for application-specific naming and addressing purposes, as we know they are formed by the rules of the domain name system (DNS) and as the Internet is based on IP addresses and not domain names, this requires that each web server has its own DNS to correctly translate domain names to IP addresses, <a href="https://en.wikipedia.org/wiki/Domain_name">“Any name registered in the DNS is a domain name. Domain names are organized on subordinate levels (subdomains) of the DNS root domain, which has no name. The set of top-level domain names are top-level domains (TLDs), including generic top-level domains (gTLDs), such as the prominent domains <strong><em>.com, .info, .net, .edu</em></strong> and <strong><em>.org</em></strong>, and the country code top-level domains (ccTLDs). Below these top-level domains in the DNS hierarchy are the second- and third-level domain names that are generally open for reservation by end-users who wish to connect local area networks to the Internet, create other publicly accessible Internet resources, or run websites.”</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*_KPcQ6b7mbDgJjIRGmLjMw.png" /></figure><ul><li><strong>Path of the file</strong></li></ul><p>The file path refers to the exact location of a resource within the web page we are requesting.<br>Often analogous to the underlying file structure of the web page, this path is found after the hostname, separated by a slash <em>“/”</em>, it may also have one of the existing file extensions (<em>.pdf, .jpg, .gif, .png</em>, etc.), although in the present day to give a more uniform and elegant image to web pages these file paths may be configured not to appear directly on the page you are requesting.</p><p>Already knowing all this, when entering a URL in our search bar, the URL is redirected to a router, which makes the search for the IP address that corresponds to the web page we want to see, this requires a configuration of the DNS server to use, and from the router or operating system can be done, Although the Internet provider that we have in our house or company has a standard configuration for this task, for the DNS to work properly, it requires time because these IP addresses that we have already visited before are stored in the DNS cache of the operating system, with all this the DNS traffic is much faster, we can easily and fast access the pages that we have already visited before. The router is the intermediary between the local network and the Internet, it requests the data from the Internet and distributes it through the devices that are in the local network (computers, cell phones, etc.), it is necessary to mention the function of the router because it is important to know that although each device connected to the network has communication with all the devices around it through the local IP, they share the public IP address of the router, in modern connections like ipv46 each device in the local network has a public IP address.</p><p>The router also intervenes in the process of requesting data to display our website, because when it finds the IP address we want to see, requests data and through HTTP protocol explained above, delivers the requested data and additionally the router communicates its own IP address and provides all the information it contains itself to display the website, the webserver evaluates all this and issues a positive or negative response, that is, displays the website, redirects it or simply displays the page 404 of which we have already spoken. <br>After this process of requesting data through the router and the URL, we notice that the protocol of that URL begins with HTTPS instead of HTTP, this means as previously mentioned that this browser has a secure scheme to protect our data on the Internet, this protocol is known as <strong><em>SSL (Secure Sockets Layer)</em></strong>, is a type of technology that allows maintaining safe the connection to the Internet, protects the data transferred in the communication “client-server” for example, to avoid that they are stolen by computer criminals, making them impossible to read, using encrypted algorithms that encode these data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F7h-8Nc_HI2LsMHNW5UQrw.png" /></figure><p>This technology is obsolete and was completely replaced by the <strong><em>TLS protocol (transport layer security)</em></strong> that does exactly the same, is an updated version of SSL and much more secure, you can identify in our browser because there is a small icon of a padlock next to the URL, where you can see the SSL certificate when you click, (although many are familiar with SSL, the right thing would be to use the term TLS).<br>Currently, these certificates can be purchased, they are the credentials of the owner of the website and allow a secure connection, they can find the following information:</p><ul><li>The name of the owner of the certificate</li><li>The serial number of the certificate and the expiry date</li><li>A copy of the certificate holder’s public key</li><li>The digital signature of the authority issuing the certificate</li></ul><p>There are three special cases where SSL/TLS becomes important: when you need to authenticate the identity of the server to verify that you are who you say you are, to give reliability to many online transactions and when you need to comply with industry standards, such as in the financial sector because they need a certain degree of security for their transactions and one of the requirements they ask for is to have the SSL/TLS certificate. These protocols are very useful and can be used in almost any device, it is a very versatile option of computer security, in addition to using these certificates to save much time and investment that is required to configure them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*Ar4QAm2M3-wMcnisHpkU_Q.png" /><figcaption>SSL/TLC Certification example</figcaption></figure><p>In order for all the magic behind writing a URL in our browser to work, as we have already seen, it works through certain protocols, among which it is important to also add the <strong><em>TCP/IP protocols.</em></strong></p><p><a href="https://en.wikipedia.org/wiki/Internet_protocol_suite">The Internet Protocol Suite is the conceptual model and set of communications protocols used on the Internet and similar computer networks. It is commonly referred to as TCP/IP because the fundamental protocols of the suite are the Transmission Control Protocol (TCP) and the Internet Protocol (IP)</a></p><p>In short, besides being many of the protocols used by the Internet, the <strong><em>TCP/IP (Transmission Control Protocol/Internet Protocol)</em></strong> allows the establishment of a connection and data exchange between the “client-server” relationship, provides reliable transport of data and takes the data to other machines on the network, this protocol defines the process from the time data is sent through packets until they are received, this is known as layers that work hierarchically and communicate between if in the same way, are 4:<br>Link level or network access, Network or Internet level, Transport level, Application level, these layers and the TCP/IP protocol are very important because they allow the sent data to reach its destination without modifications that can alter any process of the protocol.</p><p>This protocol has several uses such as being able to remotely log in through the network, to transfer files, send emails and access files on a host server.<br>It should be noted that the main version of IP used on the Internet is version 4 of the Internet Protocol (IPv4), but this has some restrictions on the number of addresses possible, so it has developed a newer and more modern model that is the IPv6 that has at its disposal more addresses available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*SHuKwAQKlX5GxZc_C8SQCQ.jpeg" /></figure><p>One of the most important components in this process are the <strong><em>web servers</em></strong>, they are a server software or hardware that executes this software to attend the requests (store, process, deliver) of the clients in the <em>WWW (Web Wide Web)</em>, this can contain one or more web sites, it processes the requests that enter through the different protocols already mentioned before, these web pages contain documents in HTML that include text, images, videos, style sheets, and scripts, they can be static or dimanic, the first ones send to the server their files the way they are hosted in the browser, they are very flat and the second ones respectively are based on the first ones with additional elements like an application server and a database, it is dynamic because their data is updated before sending it to the browser according to the interaction that the web page has had, for example, so that we can see the final content an HTML template is basically filled together with the content of the databases, this makes them more efficient, interactive and easy to deliver and manage their content.</p><p>Some of the most popular web servers are <strong><em>nginx </em></strong>and<strong><em> apache</em></strong>.</p><p>Another component that complements the web servers are the<strong><em> application servers</em></strong>, these are the base of any dynamic web server, with this it is possible to interact with the site, manage the information that is uploaded to it and create any component that interacts between the user and the web page, basically, it manages the code behind to give functionality to our web site, in order to run the programs with which they are made, their purpose requires hardware specifications such as CPU and RAM (to run these applications in real-time) and in the software the operating system with which the server can run depending on the capacity of all the elements that make up our website and compatibility between them. <br>Therefore the application server can process and analyze the data and then return the result of this process to the web server that generates what we see in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*OX9YPKtiwUph4kRyrM_pNg.png" /></figure><p>Another complement is the<strong><em> databases</em></strong>, which are an organized, structured and efficient set to store data on a computer and in this case all the data we store for use on our website as the information received from the user, with this you can access, update, delete and add information in an easy and effective.<br>A database is controlled by the <strong><em>DBMS (DataBase Management System)</em></strong>, the data and the DMBS with the other components that are associated with them as in this case the application server and the web service, are a database in total. These are organized by rows and columns for efficient processing and querying, most databases are used with structured query languages (SQL) to interact with their information, their configuration can be something called <em>“master-slave”</em>, this means that the master is responsible for informing the slave devices about updates in their records so they are all synchronized.<br>Databases have several types and the main ones are <strong><em>relational and non-relational.</em></strong></p><ul><li>Relational databases can be seen as a series of organized tables that show the information by rows and columns, MySQL is a very popular relational database.</li><li>Non-relational databases can display information without a structured schema unlike relational databases, they are known as NoSQL databases.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*H2rNvDIqTsCWBIYtx3GgEA.jpeg" /></figure><p>For the efficiency of all these processes, there is something elemental that we must take into account and it is the <strong><em>load balancer</em></strong>, because it distributes the workload, in this case, the requests from the cluster to multiple servers, it divides between several servers this load, which can be configured by means of some algorithms that determine how this workload is going to be balanced, This makes the traffic of requests much more efficient and increases the speed of the web page, depending on the width of the Internet and the hardware of the client computer, also in case one of the servers fails, the load balancer has the capacity to direct the requests to the other servers that support this task, allowing that the communication between the client and the server is not affected, these failures are imperceptible to the client. No matter what configuration the load balancer has, it is important to always keep the servers updated so that no data will be lost in the process.</p><p>There are different algorithms that support the load balancer for multiple benefits, these can be chosen at the convenience of the needs that have and also can be combined to enhance their capacity to what is needed and these are some:</p><ul><li><strong><em>Round Robin:</em></strong> the requests are distributed in the group of servers sequentially.</li><li><strong><em>Least Connections:</em></strong> a new request is sent to the server according to the number of current client connections. The capacity of each server is taken into account to determine the number of connections.</li><li><strong><em>IP Hash:</em></strong> The client’s IP address is used to determine which server receives the request.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*nGVz2te976_8aDLMCRj0pg.png" /><figcaption><a href="https://blogs.vmware.com/networkvirtualization/2017/04/getting-started-nsx-load-balancing.html/">https://blogs.vmware.com/networkvirtualization/2017/04/getting-started-nsx-load-balancing.html/</a></figcaption></figure><p>And as the last link in this web configuration, we will talk about the <strong><em>firewall</em></strong>, it is a software or hardware device that is designed to prevent unauthorized users from accessing the private networks connected to the Internet, it is located between the networks and in it a selection of rules are configured that allow network traffic to allow, limit, encrypt or decrypt this, it is also a monitoring and filtering tool to access the data that your server collects, because if it is well configured it adds protection to the network, although it is never enough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*KP1m2Tz29SSpzt7Ni8P6Tw.png" /><figcaption>Firewall</figcaption></figure><p>Its main function is to protect individual computers and those that are connected to a network against intruders who may steal your information, to avoid losing valuable data and even damage to the services of our network.<br>The firewall is characterized by preserving our security and privacy, protects our network, keeps safe information that is stored on our network and servers, prevents the possible entry of computer criminals to our network and prevents attacks on the denial of service.</p><p><a href="https://softwarelab.org/es/que-es-un-firewall/">“The firewall is located at the point of connection between the Internet and a computer or network of computers. Its operation is based on controlling all the information and traffic that, through the router, is transmitted from one network to another. If, when performing a quick analysis, the firewall considers that these data comply with security and protocol rules, they can enter the private network; but, if they do not, if they do not comply with the rules, the firewall is in charge of blocking the access of that user or unreliable information”</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4e64a381036" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IoT for newbies]]></title>
            <link>https://medium.com/@970/iot-for-newbies-51b7ec2d855a?source=rss-991cb99d0651------2</link>
            <guid isPermaLink="false">https://medium.com/p/51b7ec2d855a</guid>
            <dc:creator><![CDATA[Marcela Sanchez Moreno]]></dc:creator>
            <pubDate>Tue, 03 Mar 2020 05:25:27 GMT</pubDate>
            <atom:updated>2020-03-24T04:33:03.054Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QdgYeVIMsv8snR2_wYYEmQ.jpeg" /></figure><p>The <strong><em>internet of things</em></strong>, for many it may be a somewhat new and rare concept, throughout this blog we will talk about its concept, the way it works, a bit of its history that dates back a long time (although it is incredible) and how it influences and relates to many technological concepts that perhaps we think would have nothing to do with this topic.</p><p><strong><em>What is the internet?</em></strong></p><p>To put us a little in context, we will talk about the <strong><em>internet</em></strong>, as many of us know, it revolutionized the world and how we see it, in 1962 thanks to J.C.R. Licklider who conceived the idea of ​​the internet (Interconnected Networks) and is one of the forerunners of computer science, at that time worked at MIT (Massachusetts Institute of Technology) and it was when he thought and created what would be a “Galactic network” that would connect a group of computers to share data regardless of the physical location of any of them, (this is how the internet is described as a network of computers that are connected globally), after 3 years, successfully connected two Computers located in California and Massachusetts respectively through a telephone line Years later, the military project ARPANET was created, which aimed to connect more and more connection networks.<br>The internet over time grew and so did its infrastructure to successfully support and guarantee its operation to connect millions in the world, as it does today, for that reason, they created what we know as DNS or Domain Name System.</p><p>In the 90s its expansion was such that it went from being a tool for research, to be for everyone’s use, thus many customs changed thanks to the arrival of the internet in our homes, at that time, telephone lines were used to achieve a connection to the internet.</p><p>Since then, technology has grown rapidly, which has split history in two, because thanks to connectivity and access to information, our way of communicating with the world and what is around it has evolved, because now we count With new customs to learn, communicate, express ourselves, socialize, among others, we have also discovered intelligent devices, artificial intelligence and many advances that mark our daily lives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iuFLQUpz8sZLWXaJQWhehg.jpeg" /></figure><p><strong><em>What is the internet of things?</em></strong></p><p><strong><em>Sources:</em></strong></p><p>[1]: Matt Burgess. (February 16, 2018). What is the Internet of Things? WIRED explains <a href="https://www.wired.co.uk/article/internet-of-things-what-is-explained-iot">https://www.wired.co.uk/article/internet-of-things-what-is-explained-iot</a></p><p>[2]: Jacob Morgan. (May 13, 2014). A Simple Explanation Of ‘The Internet Of Things’ <a href="https://www.forbes.com/sites/jacobmorgan/2014/05/13/simple-explanation-internet-things-that-anyone-can-understand/#631c955f1d09">https://www.forbes.com/sites/jacobmorgan/2014/05/13/simple-explanation-internet-things-that-anyone-can-understand/#631c955f1d09</a></p><p>[3]: Insider Intelligence. (January 6, 2020). The security and privacy issues that come with the Internet of Things <a href="https://www.businessinsider.com/iot-security-privacy">https://www.businessinsider.com/iot-security-privacy</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51b7ec2d855a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A short introduction to machine learning for beginners]]></title>
            <link>https://medium.com/@970/a-short-introduction-to-machine-learning-for-beginners-3298d405a842?source=rss-991cb99d0651------2</link>
            <guid isPermaLink="false">https://medium.com/p/3298d405a842</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Marcela Sanchez Moreno]]></dc:creator>
            <pubDate>Tue, 28 Jan 2020 02:21:34 GMT</pubDate>
            <atom:updated>2020-01-28T02:21:34.632Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*XOOXIhOg8TjR5Yw7P7EsuA.jpeg" /></figure><p><em>Machine learning is a branch of artificial intelligence, a product of computer science and neuroscience, which is responsible for developing and creating systems or techniques that enable a computer or machine to have the ability to learn.</em></p><p>The machine or computer, together with an algorithm designed for learning, learns without being explicitly programmed, as explained by <a href="https://history.computer.org/pioneers/samuel.html"><em>Arthur L. Samuel in 1959</em></a>, who was a pioneer in demonstrating the concept of artificial intelligence in its early days.</p><p>To be a little clearer with this definition, through algorithms that are a sequence of instructions that lead to the solution of a problem, the machine or computer can make relevant discoveries about a group of millions of data that reviews by identifying and analyzing complicated patterns and with them can predict behavior after this action, as acceptable output values within a range that is given by the algorithm (general and specific tasks) being able to learn as a human would, leaving aside the need to depend on precisely a human to do by code or instructions by the machine. This implies that in the future the machine will also be able to improve autonomously without human intervention in its learning, this could be seen as if the machine develops “<strong><em>intelligence</em></strong>” in a certain way.</p><p>Going a little deeper, <strong><em>what are the algorithms of machine learning?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AOh7p7f0MYj-fkHSrrNdGg.png" /></figure><p>There are three types of algorithms that help in machine learning: <strong><em>supervised, unsupervised and reinforcement.</em></strong></p><p>The main ingredient for machine learning to work is data. -We will talk about the functionality of machine learning in the real world later on.</p><p><strong><em>How does machine learning work?</em></strong></p><p>In the past, the only way for a machine to do anything was to send it a series of instructions specific to each action. Today the algorithms used for the development of machine learning, these are mostly automatic, because when collecting the data, the machine makes its own calculations and the more data, the results can be a little more accurate and better, all new data becomes an algorithm and this intervenes in the complexity and effectiveness of the machine and how it works.</p><p>An interesting thing about how the machine learns is that there is a kind of data <strong>(structured and unstructured)</strong> that you have to understand before you can understand it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DfzqhkIH-Tok_TFuU0yKbA.png" /></figure><p><strong>Structured data:</strong> This data is used by companies, usually in databases, and is organized in a systematic way, so it can be easily processed. For example an excel or access file, where you can find the information of the clients that manage in a company, with all their data, something like a virtual file.</p><p><strong>Unstructured data:</strong> These are binary data that, since they are not organized, can be difficult to identify at first and without structure, until they are processed, they have no use and could not be stored in an original way. For example, the e-mails, when these have been filtered, can be located easily and can have a classification to be able to obtain information about them, in this case, this information in mass would be processed word by word, for its comparison and classification according to the patterns that are looking for.</p><p>At this point, it is necessary to be extremely careful with how the data is extracted and processed, which, together with machine learning, organizes the data for its proper handling, especially the unstructured data.</p><p>Knowing this, let’s talk in a little more detail about the algorithms used for machine learning.</p><p><strong>1. Supervised learning:</strong></p><p>In this type of learning, the machine is trained where it is provided with a quantity of data that is defined with detailed labels. Once it is provided with a sufficient amount of data, new data could be introduced without the need to label anything, since the machine will be able to identify the different patterns that in its training register, this is known as classification.<br>Another method consists of predicting a continuous value, using different parameters that when combined in the introduction of new data, lead to the prediction of a certain result, this is known as regression.<br>In this type of learning, different examples are used from which new cases of data analysis can be generated.</p><p><strong>2. Unsupervised learning:</strong></p><p>In this type of learning, no labels are used as in supervised learning. Here the purpose is to abstract patterns of information directly and for the machine to be able to understand them, this is known as data clutter, this training is very similar to the way humans process information. <br>With this method, loss of information is avoided and the data is visualized for better understanding.</p><p><strong>3. Learning by reinforcement:</strong></p><p>In this type of learning, the machine learns through experience, reinforcement. It is based on trial and error and the method of reward that reinforces optimizes and makes effective the way the machine performs its tasks and how it behaves.<br>It is one of the most interesting ways of learning machine learning because large amounts of information are not introduced.<br>In this case, the machine knows what the result will be from the beginning, but not knowing what decision to take to get those results, the algorithm evolves and associates the patterns with which it achieves success, repeats them, perfects them to make them effective.<br>Like the previous method, it is very similar to how humans learn, over time the machine will improve and make mistakes until it finds the best way to solve the situation it faces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*KmskGqnGbChDPviabfzUfA.jpeg" /></figure><p>explaining a little about how machine learning works and its different types, we can specify some of the algorithms that help in this task.<br>There are 8 different machine learning algorithms, in this case, I talk about the 4 algorithms he considers most important and relevant:</p><p><strong>1. Linear Regression: </strong><br>Linear regression is a supervised learning algorithm used in Machine Learning, statistics, prediction and data forecasting. This program must evaluate and understand the relationship between the variables, what basically is done to exemplify this is to draw a line that shows us how the variables mentioned above are related (x and y, perhaps on a Cartesian plane), the analysis of this regression focuses on how changeable the variables can be.</p><p><strong>2. Logistic Regression: </strong><br>Logistic Regression is a supervised algorithm used to classify two classes or variables. With it you can calculate the possibility of something happening, its implementation is easy and simple, it is the basis of any binary classification problem.<br>There are types of logistic regression such as binary logistic regression, this has two possible results, multinomial logistic regression, which predicts between three or more categories, and ordinal logistic regression, which has the ability to classify between several multivariate elements.<br>The results of logistic regression are discrete and to say the least, like yes or no.</p><p><strong>3. Decision Trees:</strong><br>A decision tree is a supervised learning method that combines regression and classification. It is one of the most used methods in machine learning, it is simple and powerful at the same time. It works like when we make any decision in our daily life.<br>These graphical representations have a node called “root” and then they are detached from the rest of the attributes in two branches that can have a true or false possibility, depending on the decision that the machine takes in its learning process, everything forks two by two until arriving at the final nodes, that are equivalent to the answer, yes or no, true or false.<br>During all this process the algorithm usually measures somehow the predictions it made, evaluates them and compares them to obtain, as previously mentioned, the best decision.</p><p><strong>4. Support Vector Machines:</strong><br>Vector Support Machines (SVM) is a supervised learning algorithm that creates a line between different categories of data.<br>This vector is calculated, using as reference the dividing line to see which group of data is closer or further away from it. It is discriminatory because it defines the limits of the decision to be made, in this process is also made a mapping of the data for its organization and classification (binary or regressive).<br>The training of the vector machine consists of two phases: the first one transforms the input data into a dimensional feature space, it is called kernel trick.<br>The support vector machines belong to a class of Machine Learning algorithms called kernel methods and are also known as kernel machines, then classifies these characteristics into two classes, this numbering depends on the number of support vectors and finally builds the support vector space.<br>Solve a quadratic optimization problem that fits an optimal hyperplane to classify the transformed characteristics into two classes. The number of transformed characteristics is determined by the number of support vectors.<br>Only the support vectors selected from the training data are required to build the decision surface. Once trained, all other training data are irrelevant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*y6UP0_7FcLXV8uK6Mqhqvw.jpeg" /></figure><p>Machine learning is a tool that gives us the possibility of developing a better and innovative future, giving you the possibility of having technology with “intelligence” that can be useful in your daily life, it is also a discipline that has become indispensable for programmers and software engineers who want to create the future through technology.<br>Although many people thought that it would never be possible for a machine to think similarly to the human, this would not be possible with technological advances, we are much closer to this utopia, because now we see the ability of machines to interact with the world to an accelerated pace, as well as your learning will, with the rapid growth of the data we produce and the passage of new technologies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3298d405a842" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python3: Mutable, Immutable… everything is an object!]]></title>
            <link>https://medium.com/@970/python3-mutable-immutable-everything-is-an-object-81785df355d8?source=rss-991cb99d0651------2</link>
            <guid isPermaLink="false">https://medium.com/p/81785df355d8</guid>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[object-oriented]]></category>
            <dc:creator><![CDATA[Marcela Sanchez Moreno]]></dc:creator>
            <pubDate>Thu, 16 Jan 2020 04:21:17 GMT</pubDate>
            <atom:updated>2020-01-16T05:40:15.949Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rnIGN3oCoT7SUk8fEU1chg.png" /><figcaption><a href="https://realpython.com/">https://realpython.com/</a></figcaption></figure><blockquote>First of all, let’s give a little review of some basic concepts that are needed to understand why everything is an object in Python, such as object-oriented programming.</blockquote><p><strong><em>What is object-oriented programming?</em></strong></p><p>Object-Oriented Programming (OOP) is a programming paradigm (set of theories, standards, models and methods that allow organizing knowledge) that uses objects and their interactions to design applications and computer programs. It is a particular way of programming because it uses the analogy of how things behave in real life, the main element to explain this are the objects, because it is a unit that contains the characteristics, attributes and behaviors in itself, which makes it independent, but by relating to objects of the same class, you can define and visualize problems and implement their solution through the programming language, in this case, Python 3.</p><p>Knowing this, <strong><em>what is an object?</em></strong></p><p>An instance of a class. It is a set of properties or attributes (data) and behavior or functionality (methods), which consequently react to events. They correspond with the real objects of the world around us, or with internal objects of the system (of the program). It is an instance of a class.</p><p>These previous concepts are very important to understand this programming language, and more so for a person new to this field.</p><blockquote>Now let’s go a little deeper into this.</blockquote><p>In Python all objects can be <strong>mutable</strong> or <strong>immutable</strong>, some of the mutable objects in Python are: lists and dictionaries and some of the immutable objects are: int, float, tuples, and strings.</p><p>These objects are something you can refer to in the code, as we’ll see in the following examples, but before this, as we really know if an object is mutable or immutable, what tools does Python offer us to find out: through the functions <strong>“id”</strong> and <strong>“type”</strong></p><ul><li><strong>“id” function:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*qtIZLpgvEjbsSVOv2EqUzw.png" /><figcaption>Python 3 interactive mode</figcaption></figure><p>“id” is a built-in function in Python.<br><em>Syntax: id(object)</em><br>This function accepts a parameter and is used to return the identity of an object. This identity is unique and constant for the object that passes through the function, as in other programming languages (such as C) this can only be the memory address of the object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*f9F9YOZDx2r0WWsQDmN9Yg.png" /></figure><p>When in python’s interactive mode we put “a is b”, we want to check if the variables refer to the same object.</p><ul><li><strong>“type” function:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*2dzou-_NWWBNRFPrfoIRuA.png" /><figcaption>Python 3 interactive mode</figcaption></figure><p>“type” is a method that returns the class type of an object (argument) passed as a parameter, this means that it returns the type of argument within the function. <br><em>Syntax :<br>type(object)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/199/1*NvO6bUr1VyaltYbVd8W0Fg.png" /></figure><p>In the previous image, you can see how the type of the variable “a” returns, which is an integer.</p><p>Up to this point, we have seen how we can compare two variables to find out through the functions “type” and “id”, their corresponding identification and type. With these, we can see how the variables are associated with the different types of objects and how in a hypothetical case, these could be changed by different values.</p><p>A mutable object can change its state or content since it is created and immutable objects cannot do so, they stay with the value they are initially assigned.</p><ol><li>.<strong>Mutable objects:</strong></li><li><strong>Immutable objects:</strong></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81785df355d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the difference between static and dynamic libraries?]]></title>
            <link>https://medium.com/@970/what-is-the-difference-between-static-and-dynamic-libraries-90a10c950381?source=rss-991cb99d0651------2</link>
            <guid isPermaLink="false">https://medium.com/p/90a10c950381</guid>
            <category><![CDATA[static-library]]></category>
            <category><![CDATA[c-programming-language]]></category>
            <category><![CDATA[dynamic-library]]></category>
            <dc:creator><![CDATA[Marcela Sanchez Moreno]]></dc:creator>
            <pubDate>Tue, 17 Dec 2019 04:55:05 GMT</pubDate>
            <atom:updated>2019-12-17T08:53:28.660Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>In this blog we will talk about the differences between static and dynamic libraries, how they work, why they are used, how they are created and used, their advantages and disadvantages. Now let’s go a little deeper into this…</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*PLgLY2_7MxkiF9PhM1s8Kw.jpeg" /></figure><p><em>Let’s start from the deepest:</em></p><p><strong>What’s a library?</strong></p><p>It is a compilation of the prototypes of functions that we use in our programs, the functions in programming language C, are declared and stored in a library, to be used at the time we need them, without the need to be copying the code every time this happens. This saves a lot of time when executing a program according to its complexity, accelerating the compilation process, additionally when working in teams this allows easiness in the tasks that are developed, easy reading and better management of the code, here the importance of libraries is evident.</p><p>A library in programming language C can be of two types:</p><ul><li>Shared or dynamic library</li><li>Static Library</li></ul><p><strong>How do libraries work?</strong></p><p>Static libraries, unlike dynamics, gather object files into one, while dynamics exist as separate files outside the executable, which means that static libraries add those files as they link, before it becomes an executable binary and dynamic libraries also have object files but are not added during compilation, they are kept separate from the executable binary, they are added to memory so that during execution these object files we need are kept available (linking process, final step of compilation).<br>The static libraries do not change while until we edit the functions contained in it, the dynamic libraries can at the time of compilation add functions during execution and this will not affect its operation, as previously mentioned, there is no need to compile again and again the program with the dynamic libraries.</p><p>In this blog we will explain step by step how dynamic libraries work, in my article “<a href="https://medium.com/@970/what-about-static-libraries-in-c-aa1682cc3597">What about static libraries in C?</a>” there is more information about static libraries that can be used to complement the current blog.</p><p><strong>How to create and use libraries?</strong></p><p>To create static or dynamic libraries, we start from the same point, we have to compile all our <strong>“.c”</strong> files this way:</p><pre>gcc -c * .c</pre><p>For the dynamic libraries, we add the flag: <strong>“-fPIC”</strong>:</p><pre>gcc -c -fpic * .c</pre><p>With the previous steps we will create the object files for both static and dynamic libraries.<br>The <strong>“-fPIC”</strong> flag that we add to the compilation for the creation of dynamic libraries gives the compiler the command that the object code is independent of the position.</p><p>The next step is the <strong>creation of the library</strong>.</p><blockquote>For now we will focus on dynamic libraries, for more information on static libraries, read my blog <a href="https://medium.com/@970/what-about-static-libraries-in-c-aa1682cc3597">“What about static libraries in C?”</a>.</blockquote><p>To create the dynamic library we must use the following command:</p><pre>gcc -shared -o name_library.so file_object.o</pre><p>The <strong>“-shared”</strong> flag gives the command to the compiler to convert the <strong>“.o”</strong> files into a dynamic library, by doing the above our object file can be linked to other objects to form an executable.<br>The <strong>“-o”</strong> flag places the output in a file.<br>If we follow the previous steps well, then we should have created a file with the extension <strong>“.so”</strong>, which means <strong>shared object</strong>.</p><p><strong>How to use them?</strong></p><p>One difference between dynamic and static libraries is that the former refer to the library that is placed in your program and the latter, on the contrary, copy the entire library.<br>Here we will link our functions in the code once the dynamic library is created:</p><pre>gcc -Wall -pedantic -Werror -Wextra -L. main.c  l’name_library‘ -o</pre><p>The <strong>“-L”</strong> flag commands the compiler to take the function it needs from the <strong>“.c”</strong> file, then places the library name with the <strong>“-l”</strong> indicator without the <strong>“.so”</strong> extension, at the time of linking it is not important to point out these endings because the compiler assumes it automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*g5xuUTE9Xvoles251Hi_4g.png" /></figure><p>Then we need to verify that the library is installed in its standard location (<strong>/ lib: usr / lib: usr / local / lib</strong>). To do this, we use the environment variable <strong>LD_LIBRARY_PATH</strong>. In this variable we search first in a group of directories where we could find the shared libraries:</p><ul><li>/ lib</li><li>/ usr / lib</li><li>usr / local / lib</li></ul><p>Then we add the route of the library with the following command:</p><pre>export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH</pre><p>At the end, if you want to verify that the above process has been done well, you can use the <strong>“nm”</strong> command (this command lists symbols of the object files) along with the name of your library and you will see a “list” of the functions within the library.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*bcPKBSam6gg5yMfq24BLcw.png" /></figure><p>And finally this is the whole rough process that is used to create and use a dynamic library.</p><p>Additionally during reading you will find important and marked differences between dynamic and static libraries.</p><p><strong>What are the advantages and drawbacks of each of them?</strong></p><ol><li><strong>Advantages:</strong></li></ol><ul><li><strong>Static libraries:</strong></li></ul><p>- Library previously loaded in an executable file.<br>- Not required at runtime or included when running.<br>- Faster compiling time and speed than linking to individual files and increasing binary code size.<br>- As the object code is included in the executable, multiple function calls are handled.</p><ul><li><strong>Dynamic libraries:</strong></li></ul><p>-The programs that use them don’t need to be compiled in case something in the code is edited.<br>-At runtime, a copy of the files is created so they are outside the executable file.<br>-Memory saving when running multiple library files.<br>-It doesn’t need to be compiled over and over again in case you have any editions after this process.</p><p><strong>2. Drawbacks:</strong></p><ul><li><strong>Static libraries:</strong></li></ul><p>- Each time you want to add more functions to the library, it must be compiled.<br>- When you have a copy of the executable, it may become too large a file.</p><ul><li><strong>Dynamic libraries:</strong></li></ul><p>- Long loading times and performance in terms of execution and binding<br>- Compatibility problems, if you change the library, the program that uses that library may not work and adjustments may need to be made.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90a10c950381" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you type ls -l in the shell]]></title>
            <link>https://medium.com/@970/what-happens-when-you-type-ls-l-in-the-shell-bf4bf1db0e57?source=rss-991cb99d0651------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf4bf1db0e57</guid>
            <category><![CDATA[c-programming-language]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[shell]]></category>
            <dc:creator><![CDATA[Marcela Sanchez Moreno]]></dc:creator>
            <pubDate>Thu, 28 Nov 2019 04:40:44 GMT</pubDate>
            <atom:updated>2019-11-28T04:46:23.182Z</atom:updated>
            <content:encoded><![CDATA[<p>This blog describes deeply the step by step of what happens when you type”ls -l” in your shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*lCVrhg8CdHGTy2ZDDk27QQ.png" /><figcaption>A Unix Shell poster from 1983</figcaption></figure><p><em>First of all, we’ll understand a little of what a shell is, you might wonder why: is the command line where the command ls -l will be executed, (also later we’ll look deeper into this command and how it works and how the shell influence in that).</em></p><p><strong><em>What is a shell? (in a few words)</em></strong></p><p>The shell is a command line interpreter (CLI) that is based on the user interface between the end user who accesses the services of the operating system (Kernel), to be able to easily run computer programs, there are graphics and text, the latter refers for example to the shell based on Unix (the first was created by Ken Thompson in 1971).<br>It is also a command language that through shell scripts controls the execution of the system.<br>This shell is formed by the promtp, which is the character or set of characters that is displayed on a command line to indicate that you are waiting for commands (in your terminal appears something like: “$” when you type the command “sh”).<br>To understand this in simpler words we will explain it this way: a person is used to what we know as GUI: <a href="http://www.linfo.org/gui.html">graphical user interface (GUI) is a human-computer interface (i.e., a way for humans to interact with computers) that uses windows, icons and menus and which can be manipulated by a mouse (and often to a limited extent by a keyboard as well)</a>.</p><p>Instead, as we explained earlier a shell is a command line interface (CLI)<br>where to use it is done through the keyboard and commands like “ls” to control and give instructions to the computer (Here in this part, programmers must learn the infinity of commands that exist to give them use, know what to do with them and how they work).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*JOxTaeI3Wj_Lti06XRarBw.png" /><figcaption>dash — command interpreter (shell)</figcaption></figure><p><strong><em>How shell actually works</em></strong></p><p>In that order of ideas it receives the commands, interprets them, the kernel “reads” them and this is its communication with the hardware. These commands consist of words, separated by spaces, the first word corresponds to the command and what follows are the arguments that accompany the command and has certain characteristics that help the command for its execution, there are two types of built-in and external commands, the first are the commands that belong to the shell and can be executed at any time and the second are commands that are executed when the user requests them.</p><p><em>Now we go deeply…</em><br><strong><em>What is ls?</em></strong></p><p>The command ls is the standard command in the Unix OS, with this command basically you can list the content of the actual directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*-7k0h1MpHv86jl-HVuIYAA.png" /><figcaption>ls command</figcaption></figure><p>By default ls only show you the names of the files or the directories like the previous image, if you want list in more detail you can use the -l (long) parameter.<br>This parameter shows you:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*O4HZLCvAVzjSBMVvbi7e2g.png" /><figcaption>ls -l (command + arguments)</figcaption></figure><ul><li>“-” for File, “d” for directory, “l” for Link.</li><li>Permissions (read, write and execute) Here are three different fields that belong to the owner, the group and all other users, in that order the permissions are designated depending on what you want to do.</li><li>The number of links or directories inside this directory.</li><li>The user that owns the file, or directory.</li><li>Permissions, the group that file belongs to.</li><li>The size in bytes (you can modify this using other parameters like “-h”).</li><li>The date of last modification.</li><li>The name of the file.</li></ul><p><strong><em>How works basically?</em></strong><br>When you write a command in this case ls (list) this is interpreted by the shell reading the complete line. Later this line in splited to find the exactly command and syscalls necessaries to show in the standard output (the keyboard).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*No7R5798e3UCiLFzAl3IMA.png" /><figcaption>How the shell works with the ls -l command</figcaption></figure><p>In the internal process of creating our own shell, there is an infinite loop that waits for a command to be typed, when it is typed, our shell executes it and starts again, so that the command finally shows the instruction we have given it -this will not end until the user gives the command to exit command or by entering Ctrl + c or Ctrl + D- , there is a whole complex process that we will show step by step below.</p><p><strong><em>The process of the Shell</em></strong></p><p><em>1.Display the prompt</em></p><p><em>2. Obtain the instruction from the user (the shell read the input commands)</em></p><p><em>3. Divide input commands in tokens</em></p><p><em>4. Check input commands deeply (Aliases, Built-in and external commands, the PATH)</em></p><p><em>5. Execute the process</em></p><p><em>6. Return to the beginning</em></p><p>The shell maintains a process all the time in order being in this way in a kind of listening mode, so that when a user enters a command or a word, the shell process remains active. Once the user enters a character set, the shell must analyze whether this set corresponds to a command or if this is garbage that does not provide information. To do this, the shell must break the set of words if they exist and compare each of them with the set of commands hosted in the system environment. If this is true, the shell have to execute the action corresponding to that command, and then liberate memory. Therefore, functions such as getline are used to obtain user input, the strtok to split this entry by words, which enters a subthread to create the execution of the command if it exists.Taking into account carefully the release of memory after a subsequent use of a certain variable is no longer required and the fact that subthreads must die after they are not needed.</p><p><strong><em>What is a system call?</em></strong></p><p>A system call basically it’s the way to communicate directly with the kernel operative system functions, this functions can be accessed with an API -application programming interface- and permit you some advanced operations, for example if you need to create files an system call that you can use is the open system call, if you need create a process you can use the fork system call, talking a little about the shell, when you execute a command this specific execution is doing executing in a sub-process created by the syscall.</p><p>This command not only show you the last commands only to execute more.<br>At the end when you type “ls -l”, the shell does all the process previously explained in this blog, frees the memory that it used for such a process, exits of the process and the prompt wait again for the commands that the users input.</p><p><em>Written by:</em></p><p><em>Marcela Sánchez:</em></p><blockquote><a href="https://medium.com/@970">https://medium.com/@970</a></blockquote><blockquote><a href="https://twitter.com/MarceWp15"><em>https://twitter.com/MarceWp15</em></a></blockquote><p><em>Pilar Pinto:</em></p><blockquote><a href="https://medium.com/@pilypint95">https://medium.com/@pilypint95</a></blockquote><blockquote><a href="https://twitter.com/Pilyandree"><em>https://twitter.com/Pilyandree</em></a></blockquote><p><em>Students of Software Engineer at Holberton School Colombia</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf4bf1db0e57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What about static libraries in C?]]></title>
            <link>https://medium.com/@970/what-about-static-libraries-in-c-aa1682cc3597?source=rss-991cb99d0651------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa1682cc3597</guid>
            <category><![CDATA[c-programming-language]]></category>
            <category><![CDATA[static-library]]></category>
            <dc:creator><![CDATA[Marcela Sanchez Moreno]]></dc:creator>
            <pubDate>Mon, 14 Oct 2019 03:02:46 GMT</pubDate>
            <atom:updated>2019-10-14T04:51:27.972Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Y5KcAZor78llPwBWgSU1pA.jpeg" /></figure><blockquote><em>In this blog we will talk a bit about why we should use libraries, how they work, are created and used. Also later we’ll look deeper into this…</em></blockquote><p><strong>Why should use static libraries?</strong></p><p>Static libraries should be used because they are stored in specific functions, which will be organized in one place to be able to use and call them from a program and thus compile the files in C, also saves a lot of time because they are intended to solve specific problems of our code.</p><p>But ok, this is the purpose of static libraries, but what are they?</p><p><strong>What are static libraries in C?</strong></p><p>When we are carrying out any program in C to try to solve some problem, this usually we divide it by parts, here they enter to play an important role the functions that we use for it, in the blocks of code that we destine to give solution to our problem, for this reason these functions we place them inside a static library, that is <a href="http://docencia.ac.upc.edu/FIB/USO/Bibliografia/unix-c-libraries.html#what_is_a_library">“a file that contains several files of objects, that can be used as an only entity in a phase of link of a program.”</a>, which is indexed and facilitates our work at the time of compilation, since this is a tool offered by compilers, also it is much better to have organized these functions within this file or bliblioteca, because having fewer files, streamlines the process of linking for compilation.<br>During the compilation these objects files are unnecessary because they are only used at the time of the link, because in the end we only use the executable file for the execution of it.<br>Unix systems allow the creation of static and dynamic libraries (we’ll talk about these later).</p><p>Static libraries can give us the ability to customize them to use specific functions in our projects and somehow have a better performance when solving specific tasks.</p><blockquote><em>N</em><strong><em>ow we go deeply…</em></strong></blockquote><p><strong>How to create a static library in C?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*FsrA01AI7GIe2881-8kZrA.png" /></figure><p>To start, we need to use GCC (GNU Compiler Collection) to compile the functions we have in object mode, the compiler has the option <strong>“-c”</strong> (Compile and assemble, but do not link) for this process.</p><pre>gcc -c * .c</pre><p>When compiling, it will convert the “.c” files into “.o” (object) files.</p><p>After this, we will use the GNU program: <strong>“ar” (archiver)</strong>, to create our library (file files).</p><pre>ar -rc libholberton.a * .o</pre><p>The options used next to <strong>“ar”</strong>, which are <strong>“-rc”</strong>, cause you to create a file (option “c”) and replace older files where necessary. (option “r”).</p><p>If you want to see the content of the library, just add <strong>“-t”</strong> option.</p><pre>ar -t libholberton.a</pre><p>After creating or modifying a file, it is necessary to index it. The command used to create or update the index is called <strong>“ranlib”</strong>, which helps the compiler to quickly reference symbols within a large library to speed up its search.</p><pre>ranlib libholberton.a</pre><p>Following all these steps, we have already created our static library called <strong>“libholberton.a”</strong>, now we can use the library invoking it as part of the compiling and linking process when creating the executable program (when compiling).<br>With our <strong>“gcc”</strong> compiler, these options are used for the creation of the static library:<br><strong>-l: </strong>library name without prefix and lib extension (libholberton.a = holberton).<br><strong>-L:</strong> specifies the path to the library.<br>We can use <strong>“-L.”</strong> to point to the current directory and <strong>“-L/home/tmp”</strong> to point to the directory <strong>“/home/tmp”</strong>.</p><pre>gcc main.c -L. -lholberton -o main</pre><p>Now you can run your executable program called<strong> “main”.</strong></p><p>Each time you want to make any changes to your functions within your library in the C files, you must perform each of the steps listed to correctly use the static library.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa1682cc3597" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you type gcc main.c]]></title>
            <link>https://medium.com/@970/what-happens-when-you-type-gcc-main-c-7d39d32eda96?source=rss-991cb99d0651------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d39d32eda96</guid>
            <dc:creator><![CDATA[Marcela Sanchez Moreno]]></dc:creator>
            <pubDate>Thu, 20 Jun 2019 00:36:35 GMT</pubDate>
            <atom:updated>2019-06-20T00:36:35.937Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d39d32eda96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the difference between a hard link and a symbolic link?]]></title>
            <link>https://medium.com/@970/what-is-the-difference-between-a-hard-link-and-a-symbolic-link-e96380d323db?source=rss-991cb99d0651------2</link>
            <guid isPermaLink="false">https://medium.com/p/e96380d323db</guid>
            <dc:creator><![CDATA[Marcela Sanchez Moreno]]></dc:creator>
            <pubDate>Tue, 18 Jun 2019 05:02:15 GMT</pubDate>
            <atom:updated>2019-06-18T05:02:15.490Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e96380d323db" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>