<?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 Eileen Chu on Medium]]></title>
        <description><![CDATA[Stories by Eileen Chu on Medium]]></description>
        <link>https://medium.com/@eileenchu?source=rss-be2f77f468d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*OWGxn1kxb_ij_xxbkrcDrw.jpeg</url>
            <title>Stories by Eileen Chu on Medium</title>
            <link>https://medium.com/@eileenchu?source=rss-be2f77f468d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 08:36:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eileenchu/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[Vagrant]]></title>
            <link>https://medium.com/@eileenchu/vagrant-9a1cb1288a3d?source=rss-be2f77f468d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a1cb1288a3d</guid>
            <category><![CDATA[vagrant]]></category>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[open-source-software]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <dc:creator><![CDATA[Eileen Chu]]></dc:creator>
            <pubDate>Wed, 10 Aug 2022 08:57:54 GMT</pubDate>
            <atom:updated>2022-08-10T08:57:54.623Z</atom:updated>
            <content:encoded><![CDATA[<p>During the stage of deploying software services, developers often use virtual hosts to simulate and configure the development environment. Vagrant is a service based on such a demand.</p><h3>What you will learn?</h3><ul><li>What is Vagrant?</li><li>Why Vagrant?</li><li>Providers &amp; Provisioners</li></ul><h3>What is Vagrant?</h3><p>Vagrant is a tool for building and managing <em>virtual machine environments</em> in a single workflow. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases production parity, and makes the “works on my machine” excuse a relic of the past.</p><p>Different from the traditional use of VirtualBox to operate the virtual host through the Graphical User Interface (GUI), <strong>Vagrant mainly uses the command-line interface (CLI) to communicate with the virtual host.</strong></p><h3>Why Vagrant?</h3><p>Vagrant provides reproducible, easy-to-configure, and portable work environments built on top of industry-standard technology and controlled by a single consistent workflow to help maximize the productivity and flexibility of you and your team.</p><p>To set up all the components automatically, Vagrant provides us the feature of using one configuration file called Vagrantfile, where all the required software components and their configuration information are specified. Hence while this same config file is executed in multiple machines, Vagrant creates the Virtual Machine on top of each physical machine, installs and setups all the mentioned components automatically, and provides a ready start-to-work Virtual Machine. Because of the Virtual Machine, there is no need to bother about whether one software component could be able to run on different operating systems and what should be their configuration. Also, in spite of separate machines that developers and QAs working on, both of their machines should have a completely identical setup.</p><p>Prior to Vagrant, you need to manually set up all components. While setting up, you might encounter lots of issues.</p><ul><li>In every machine, the setup needs to be done separately, which is time-consuming.</li><li>The manual configuration might be erroneous, which needs to be debugged and fixed every time.</li><li>The development, testing, and production environment should be identical. However, there might be a slight difference because of this manual installation and setup of the components.</li></ul><h3>Providers &amp; Provisioners</h3><h4>Providers</h4><p>Providers are the service that Vagrant uses to set up and create virtual environments.</p><h4>Provisioners</h4><p>Provisioners are tools allowing users to customize the configuration of virtual environments. That is, users can automatically install software, alter configurations, and provision a guest machine according to their Vagrantfile.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a1cb1288a3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jenkins]]></title>
            <link>https://medium.com/@eileenchu/jenkins-630281e933eb?source=rss-be2f77f468d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/630281e933eb</guid>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[cicd-tools]]></category>
            <category><![CDATA[jenkins-pipeline]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[continous-integration]]></category>
            <dc:creator><![CDATA[Eileen Chu]]></dc:creator>
            <pubDate>Tue, 09 Aug 2022 12:22:25 GMT</pubDate>
            <atom:updated>2022-08-10T06:29:54.065Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*cxDSAkuqXoyw4kcOUin2Vw.png" /></figure><p>Software integration may not be necessary for stable projects, but it is essential for projects with <strong>frequent changes</strong>. After all, waiting to integrate often results in integration conflicts and can take too much time to resolve, leading to project delays.</p><p>To keep your current customers happy, Jenkins creates a fast and effective process of getting your product to market before your competition as well as releasing new features and bug fixes.</p><h3>What you will learn?</h3><ul><li>What is Jenkins?</li><li>What is CI/CD?</li><li>Why Jenkins — Features of Jenkins</li><li>Jenkins Pipeline</li><li>Jenkins Architecture</li></ul><h3>What is Jenkins?</h3><p>Jenkins is an open-source automation server helping automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery. Specifically, Jenkins is used to build and test your product continuously, so developers can continuously integrate changes into the build.</p><h3>What is CI/CD?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*xyJW--cfsNc-zb_BjYfheQ.png" /></figure><p><strong>Continuous integration (CI)</strong> helps ensure that software components work together, allowing you to continuously integrate code into a single shared and access repository easily. Integration should be completed frequently.</p><p><strong>Continuous delivery (CD)</strong> picks up where continuous integration ends. While CI is the process to build and test automatically, CD deploys all code changes in a build to the testing or staging environment, letting you take the code stored in the repository and continuously deliver it to production.</p><h3>Why Jenkins — Features of Jenkins</h3><p>Jenkins helps developers ensure that their code changes in parallel can be integrated without errors. Without Jenkins, manual integration testing would happen infrequently and would be time-consuming. Also, Jenkins provides a standardized build and test environment for developers. Let’s have a look at what features Jenkins has.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*9b1F94oS52rQihpssAx6Lw.png" /></figure><h4><strong>Easy Installation</strong></h4><p>The installation requires Java commands on the earlier version of Jenkins — Hudson. However, nowadays Jenkins is ready to run with packages for Windows, Mac OS X, and Unix-like OS, which means that it’s installation-friendly for those who do not know how to use the command line.</p><h4><strong>Easy Configuration</strong></h4><p>Jenkins can be easily set up and configured via its web interface which includes error checks and built-in help.</p><h4><strong>Plugins</strong></h4><p>It has hundreds of plugins in the Update Center and integrates with every tool in the CI and CD toolchain. In addition, it is super flexible for you to create your own plugins if needed.</p><p>Some useful functions as the following:</p><ul><li><strong>RSS/Email integration notification </strong>→ Jenkins provides the function of RSS subscription or Email notification. We can notify users when a problem occurs during the construction process. Moreover, to maintain the high availability of code in version control systems, this function indirectly prevents users from accidentally checking in unfinished code or programs that fail to pass the test.</li><li><strong>Reports generation</strong> → Jenkins supports the presentation of test results, test coverage, or various static analysis data through reports. It is also convenient for users to view various facets of the project, for example, confirming whether all tests have been completed, or making sure whether following the company’s coding style. Consequently, this will invisibly improve the quality of the software and increase developers’ sense of achievement.</li></ul><h4><strong>Extensible</strong></h4><p>Jenkins can be extended via its plugin architecture and provides nearly infinite possibilities for what it can do.</p><h4><strong>Distributed</strong></h4><p>Jenkins can easily distribute work across multiple machines, helping in faster builds, tests, and deployments across multiple platforms.</p><h3>Jenkins Pipeline</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*fpRgGY_16rMLWigjfgojMw.png" /></figure><p>We can say a Jenkins pipeline is a path for delivering a unit of change starting from development to production. Particularly, it will help the software move efficiently from the development phase to the production phase by using automation tools. It is used to incorporate continuous delivery in our software development workflow.</p><h3>Jenkins Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*6czLKyFEfiVcgY7N4HxSlg.png" /></figure><ol><li>Developers commit changes to the source code.</li><li><strong>CI server</strong> → Jenkins server checks the repository at regular intervals and pulls any newly available code.</li><li><strong>Build server</strong> → Build server builds the code into an executable file. Developers would receive feedback from the build server if the build fails.</li><li><strong>Test Server</strong> → For testing, Jenkins then deploys the build application on to the test server. If the test fails, feedback is immediately sent back to the developers.</li><li><strong>Production server</strong> → If there are no errors, the tested application is then deployed onto the production server.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=630281e933eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PCBA Process]]></title>
            <link>https://medium.com/@eileenchu/pcba-process-8e24149ade53?source=rss-be2f77f468d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e24149ade53</guid>
            <category><![CDATA[fct]]></category>
            <category><![CDATA[ict]]></category>
            <category><![CDATA[aoi]]></category>
            <category><![CDATA[fvt]]></category>
            <category><![CDATA[smt]]></category>
            <dc:creator><![CDATA[Eileen Chu]]></dc:creator>
            <pubDate>Mon, 20 Dec 2021 11:07:19 GMT</pubDate>
            <atom:updated>2021-12-20T11:07:19.260Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDiH4WwclJdwzm60x3R8Fw.png" /></figure><p>Nowadays, PCB, short for Printed Circuit Board, has played a significant role since technology has kept growing and has been everywhere in our daily life. PCBs are used in almost every electronic device to help us lead a better life.</p><p>We can divide the PCB Assembly process into the steps below.</p><ol><li><strong>Bare Boards &amp; Laser Markings</strong>: Mark a unique serial number on each board.</li><li><strong>Screen Printing</strong>: Apply solder paste onto PCBs through the stencil.</li><li><strong>Solder Paste Inspection, SPI</strong>: Ensure the solder paste be applied well.</li><li><strong>Pick &amp; Place</strong>: Pick &amp; place PCB components on the board.</li><li><strong>Visual Inspection</strong>: Validate correct components placement.</li><li><strong>Reflow Oven</strong>: Attach SMC, which stands for surface mount components, to PCBs. It will divide into various chambers such as preheat zone, thermal soak zone, reflow zone, &amp; cooling zone.</li><li><strong>Automated Optical Inspection, AOI</strong>: Validate placement &amp; correct soldering of all components.</li><li><strong>Through Hole &amp; Manual Assembly</strong>: Place additional components &amp; solder to the board</li><li><strong>Electrical Testing — Bed of Nails Test</strong>: For electrical function. It also called ICT (In-Circuit Test), is a non-Standard Test to test the online components to check PCB manufacturing defects and bad components using the electrical properties of the auxiliary fixtures.</li><li><strong>Electrical Testing — Flying Probe Test</strong>: Validate electrical function.</li><li><strong>X-Ray</strong>: Make sure soldering status.</li><li><strong>PCB Cleaning</strong>: Eliminate the erosive/toxic substances to guarantee the reliability and electrical functions of electronic products.</li><li><strong>Functional Test, FCT/FVT</strong>: Verify the function on PCBs.</li><li><strong>Final Manual Assembly</strong></li><li><strong>Packaging &amp; Delivery</strong></li></ol><h3>SMT, Surface Mount Technology</h3><p>Actually, step 1 — step 6 can be regarded as SMT. SMT is a technology to assemble SMC (Surface Mount Component) onto PCBs by using SME (Surface Mount Equipment). You might get confused by those abbreviations. No worry! The picture below has clearly explained what are they and what is the relationship between them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1PPU2lt4pgP_iHL6YuINGw.png" /></figure><h3>AOI, Automated Optical Inspection</h3><p>AOI is an automated visual inspection methodology used primarily to test for defects in printed circuit board assemblies (PCBAs). AOI autonomously scans PCBAs with cameras and detects two types of failures:</p><ol><li>Catastrophic failures, such as missing components</li><li>Quality failures, such as misshapen fillets or components that are skewed</li></ol><h3>ICT, In-Circuit Test/ MDA, Manufacturing Defects Analyzer</h3><p>Manufacturing Defect Analyzers (MDA) and In-Circuit Testers (ICT) are two popular electrical testing technologies for PCB manufacturers. Both use a <strong>Bed-of-Nails</strong> type test fixture facilitating connections between the nets of the PCB and the test system instrumentation. While similar in design, they differ greatly in terms of costs, capabilities, and test coverage.</p><p>The main difference between MDA Testing and ICT is that MDA Testing only tests for connectivity on the board, while ICT checks specific voltage and current levels throughout the PCB.</p><h3>FCT/FVT, Function Verification Test</h3><p>FCT/FVT is a testing method to ensure that all functions of PCBA are acting in accordance with pre-determined requirements. It is the quality control test at the final stage of the production line before shipping the PCBA to the customers.</p><p>Know more about <a href="https://medium.com/@eileenchu/new-product-introduction-npi-process-53eb2a230523">FCT in NPI Process</a>.</p><h3>Packing</h3><p>Finally, finished products are packaged to protect them during shipment and handling before use at the packing stage.</p><pre>Thanks for reading! 😊</pre><pre>If you enjoyed it, let&#39;s do finger cardio! Try how many times can you hit 👏 in 5 seconds. This will help more people see this story.</pre><h3>Reference</h3><ul><li><a href="https://www.surfacemountprocess.com/">https://www.surfacemountprocess.com/</a></li><li><a href="https://www.pcbcart.com/article/content/clean-pcbs-after-surface-mount-soldering.html">https://www.pcbcart.com/article/content/clean-pcbs-after-surface-mount-soldering.html</a></li><li><a href="https://instrumental.com/resources/quality/an-overview-of-automated-optical-inspection-aoi/">https://instrumental.com/resources/quality/an-overview-of-automated-optical-inspection-aoi/</a></li><li><a href="https://en.wikipedia.org/wiki/In-circuit_test">https://en.wikipedia.org/wiki/In-circuit_test</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e24149ade53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Encoding Sceheme Affects USB Data Communication Efficiency]]></title>
            <link>https://medium.com/@eileenchu/how-encoding-sceheme-affects-usb-data-communication-efficiency-ba541bde2c15?source=rss-be2f77f468d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba541bde2c15</guid>
            <category><![CDATA[usb-generation]]></category>
            <category><![CDATA[usb-encoding-scheme]]></category>
            <category><![CDATA[encoding]]></category>
            <category><![CDATA[usb32]]></category>
            <category><![CDATA[usb-speed]]></category>
            <dc:creator><![CDATA[Eileen Chu]]></dc:creator>
            <pubDate>Fri, 19 Nov 2021 04:24:41 GMT</pubDate>
            <atom:updated>2021-11-19T04:24:41.688Z</atom:updated>
            <content:encoded><![CDATA[<p>To reduce <a href="https://en.wikipedia.org/wiki/Electromagnetic_interference">electromagnetic interference</a> while transferring the data, the data will be processed via encoding before the transmission in each generation of USB specifications. Different USB generations will have different encoding methods. Using different approaches of encoding data for transmission will bring on different data communication efficiency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dl0F36mQqB_LNtA_dKd3ug.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Markus Spiske</a> on <a href="https://unsplash.com/s/photos/coding?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In this article, we will focus on four types of USB 3.2 and you can understand how different encoding influences the different types of USB 3.2.</p><h3><strong>Data Encoding Scheme</strong></h3><h4>USB 3.2 Gen1<strong><em>x1</em></strong> (new name of USB 3.0/ USB 3.1 Gen1)</h4><ul><li><strong><em>x1</em></strong> (Pronounced “by one”, referring only one-way data communication capability)</li><li>Data transmission rate: <strong>5 Gbps</strong></li><li><strong>8b/10b</strong> encoding: <a href="https://en.wikipedia.org/wiki/8b/10b_encoding">8b/10b</a> is a <a href="https://en.wikipedia.org/wiki/Line_code">line code</a> that maps 8-bit words to 10-bit symbols via <a href="https://en.wikipedia.org/wiki/Scrambler">scrambling </a>to achieve DC-balance and bounded disparity. In order to prevent electromagnetic interference, the <a href="https://en.wikipedia.org/wiki/Spread_spectrum">Spread Spectrum</a> technology will be used to transmit the encoded data. After receiving the signal, the receiving end can restore the 10-bit symbols to 8-bit data through the decoding process.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*fY8v4S4vlB4oEnIi" /></figure><h4>USB 3.2 Gen2x1 (new name ofUSB 3.1 Gen2)</h4><ul><li><strong><em>x1</em></strong> (Pronounced “by one”, referring only one-way data communication capability)</li><li>Data transmission rate: <strong>10 Gbps</strong></li><li><strong>128b/132b</strong> encoding: 128b/132b that is extended from <a href="https://en.wikipedia.org/wiki/64b/66b_encoding">64b/66b</a> will frame a 4-bit identifier in the head and a 16-set of 8-bit data, which is 132 bits in total. Spread Spectrum technique will be used while transferring the data to avoid electromagnetic noise. However, it can depend on the situation to determine whether to scramble the 8-bit data. The 132-bit frame will be restored to 128-bit data after the receiving side obtains the data signals.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*LAlfqW4R1EXHiFn-" /></figure><h4>USB 3.2 Gen*x2</h4><ul><li>Using <strong><em>2</em></strong> USB 3.2 Gen1/Gen2 data lanes for dual-channel transmission</li><li><strong><em>x2</em></strong> (Pronounced “by two”, allowing two-way data communication capabilities)</li><li>USB 3.2 Gen1<strong><em>x2</em></strong>: Using <strong><em>2 </em></strong>USB 3.2 Gen1 data lanes at once</li><li>USB 3.2 Gen2<strong><em>x2</em></strong>: Using <strong><em>2 </em></strong>USB 3.2 Gen2 data lanes at once</li></ul><h3><strong>Data Loss Rate</strong></h3><h4>USB 3.2 Gen1x1 (new name of USB 3.0/ USB 3.1 Gen1)</h4><p><strong>5Gbps</strong> (data transmission rate) x <strong>8b/10b</strong> (data loss rate) = 4,000Mbps (theoretical data transmission speed) = 500MB/s</p><h4>USB 3.2 Gen2x1 (new name of USB 3.1 Gen2)</h4><p><strong>10Gbps</strong> (data transmission rate) x <strong>128b/132b</strong> (data loss rate) = 9,696Mbps (theoretical data transmission speed) = 1,212MB/s</p><p>Due to the different encoding between Gen1 and Gen2, the performance of Gen2 is way better.</p><ul><li>USB 3.2 Gen1: There will be only 8-bit real data in 10-bit characters, resulting in <strong>20%</strong> data loss.</li><li>USB 3.2 Gen2: In 132-bit data, 128 bits will be real, that is, it reaches only a <strong>3%</strong> data loss rate.</li></ul><h4>USB 3.2 Gen*x2</h4><p>You can just double the data loss rate of USB 3.2 Gen*<strong><em>x2</em></strong> since USB 3.2 Gen*<strong><em>x2</em></strong> is using 2 lanes of USB 3.2 Gen1/Gen2.</p><ul><li>USB 3.2 Gen1<strong><em>x2</em></strong>: 500MB/s x 2 = 1,000MB/s</li><li>USB 3.2 Gen2<strong><em>x2</em></strong>: 1,212MB/s x 2 = 2,424MB/s</li></ul><pre>Thanks for reading! 😊</pre><pre>If you enjoyed it, let&#39;s do finger cardio! Try how many times can you hit 👏 in 5 seconds. This will help more people see this story.</pre><h3>Reference</h3><ul><li><a href="https://en.wikipedia.org/wiki/Electromagnetic_interference">https://en.wikipedia.org/wiki/Electromagnetic_interference</a></li><li><a href="https://en.wikipedia.org/wiki/8b/10b_encoding">https://en.wikipedia.org/wiki/8b/10b_encoding</a></li><li><a href="https://en.wikipedia.org/wiki/Line_code">https://en.wikipedia.org/wiki/Line_code</a></li><li><a href="https://en.wikipedia.org/wiki/Scrambler">https://en.wikipedia.org/wiki/Scrambler</a></li><li><a href="https://en.wikipedia.org/wiki/Spread_spectrum">https://en.wikipedia.org/wiki/Spread_spectrum</a></li><li><a href="https://en.wikipedia.org/wiki/64b/66b_encoding">https://en.wikipedia.org/wiki/64b/66b_encoding</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba541bde2c15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[USBs & Thunderbolts]]></title>
            <link>https://medium.com/@eileenchu/usb-generations-d2863cdaea6c?source=rss-be2f77f468d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2863cdaea6c</guid>
            <category><![CDATA[typec]]></category>
            <category><![CDATA[type-a]]></category>
            <category><![CDATA[thunderbolt]]></category>
            <category><![CDATA[usb-drives]]></category>
            <category><![CDATA[usb]]></category>
            <dc:creator><![CDATA[Eileen Chu]]></dc:creator>
            <pubDate>Sun, 14 Nov 2021 14:05:59 GMT</pubDate>
            <atom:updated>2021-11-19T04:24:59.362Z</atom:updated>
            <content:encoded><![CDATA[<p>Since the rapid growth of technology, USB drives have become essential in our daily life and have even been the industry-standard connector for storage, power, peripherals, and data transfer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOcYmB0DeMoWtM9JWWs1Ew.png" /></figure><p>In this article, you can find what’s the difference between the three USB port types and the change of different USB generations.</p><h3>USB Connectors — Shapes</h3><p>Specifically, there are <a href="https://en.wikipedia.org/wiki/USB">fourteen different USB connectors</a>. However, we can simply divide the USB port types into three including Type B, Type A, and Type C as below:</p><h4>Type B</h4><p>These square-shaped connectors are primarily used to connect appliances such as printers, monitors, or scanners to computers or other devices.</p><h4>Type A</h4><p>In comparison to the Type-B USB, a rectangle-shaped Type-A USB is generally designed to connect as a host to other USB devices and a Type-B USB is generally there to control peripheral devices. For instance, you can see how a desktop computer is connected with an Android mobile phone. The side connecting to the computer would be Type-A while the other end connecting to the mobile phone is Micro Type-B.</p><h4>Type C</h4><p>The USB-C connector was invented with the aim of standardizing ports. Here are some benefits of using this type:</p><ul><li>Having reverse insertion because of its symmetric flattened-oval shape, so you can insert into the devices either way</li><li>Transmitting audio and video signals at a higher rate</li><li>Supporting relatively larger charging currents ranging from 3 A to 5 A, and allowing reverse charging</li><li>Being more refined in structure and much safer in use</li></ul><h4>Mini USBs vs Micro USBs</h4><p>Moreover, due to the mechanical design reason of the hardware devices, the Mini USB and the Micro USB were introduced in 2005 and 2007 respectively.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsheetsu.com%2Ftables%2F34db953755&amp;dntp=1&amp;display_name=Sheetsu&amp;url=https%3A%2F%2Fsheetsu.com%2Ftables%2F34db953755&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=sheetsu" width="700" height="361" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb07f4932206ecc93440f895031582d8/href">https://medium.com/media/fb07f4932206ecc93440f895031582d8/href</a></iframe><h3>USB Generations — Speeds</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aIOmoLn67YlgMDPtC2PsCA.png" /></figure><h4><strong>USB 1.0</strong></h4><ul><li>Released in January 1996</li><li>1.5 Mbit/s (<em>Low Speed</em>) &amp; 12 Mbit/s (<em>Full Speed</em>)</li></ul><h4><strong>USB 2.0</strong></h4><ul><li>Released in April 2000</li><li>1.5 Mbit/s (<em>Low Speed</em>), 12 Mbit/s (<em>Full Speed</em>), &amp; 480 Mbit/s (<em>High Speed</em>)</li></ul><h4><strong>USB 3.0</strong></h4><ul><li>Released in November 2008</li><li>5 Gbit/s (<em>SuperSpeed</em>)</li><li>The old name of USB 3.2 Gen1x1</li></ul><h4><strong>USB 3.1</strong></h4><ul><li>Released in July 2013</li><li>USB 3.1 Gen1 preserves data transfer rates of 5 Gbit/s (<em>SuperSpeed</em>)</li><li>USB 3.1 Gen2 doubles the data signaling rate to 10 Gbit/s (<em>SuperSpeed+</em>)</li><li>The old name of USB 3.2 Gen1x1 &amp; USB 3.2 Gen2x1</li></ul><h4><strong>USB 3.2</strong></h4><ul><li>Released in September 2017</li><li>Preserving both USB 3.1 <em>SuperSpeed </em>and <em>SuperSpeed+</em></li><li>Introducing two new <em>SuperSpeed+</em> transfer modes over the USB-C connector with data rates of 10 and 20 Gbit/s (1.25 and 2.5 GB/s)</li></ul><h4><strong>USB 4.0</strong></h4><ul><li>Released in August 2019</li><li>Supporting 40 Gbit/s throughputs (<em>SuperSpeed+</em>), compatible with Thunderbolt 3, and backward compatible with USB 3.2 and USB 2.0</li></ul><h3>Thunderbolts</h3><p>Thunderbolt is the brand name of a hardware interface for the connection of external peripherals to a computer. It has been developed by Intel, in collaboration with Apple.</p><ul><li>Thunderbolt 1: Mini DisplayPort (MDP), cap speeds up to 10 Gbps</li><li>Thunderbolt 2: Mini DisplayPort (MDP), cap speeds up to 20 Gbps</li><li>Thunderbolt 3: USB-C ports, cap speeds up to 40 Gbps</li><li>Thunderbolt 4: USB-C ports, cap speeds up to 40 Gbps</li></ul><p>Learn more about <a href="https://medium.com/@eileenchu/how-encoding-sceheme-affects-usb-data-communication-efficiency-ba541bde2c15">How Encoding Sceheme Affects USB Data Communication Efficiency</a>.</p><pre>Thanks for reading! 😊</pre><pre>If you enjoyed it, let&#39;s do finger cardio! Try how many times can you hit 👏 in 5 seconds. This will help more people see this story.</pre><h3>Reference</h3><ul><li><a href="https://en.wikipedia.org/wiki/USB">https://en.wikipedia.org/wiki/USB</a></li><li><a href="https://www.akyga.com/news-list/60-changing-the-naming-of-usb-standards-over-the-years.html">https://www.akyga.com/news-list/60-changing-the-naming-of-usb-standards-over-the-years.html</a></li><li><a href="https://www.onlogic.com/company/io-hub/whats-the-difference-between-usb-generations/">https://www.onlogic.com/company/io-hub/whats-the-difference-between-usb-generations/</a></li><li><a href="https://en.wikipedia.org/wiki/Thunderbolt_(interface)">https://en.wikipedia.org/wiki/Thunderbolt_(interface)</a></li><li><a href="https://www.intel.com.tw/content/www/tw/zh/products/docs/io/thunderbolt/thunderbolt-technology-general.html">https://www.intel.com.tw/content/www/tw/zh/products/docs/io/thunderbolt/thunderbolt-technology-general.html</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2863cdaea6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New Product Introduction (NPI) Process]]></title>
            <link>https://medium.com/@eileenchu/new-product-introduction-npi-process-53eb2a230523?source=rss-be2f77f468d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/53eb2a230523</guid>
            <category><![CDATA[evt-dvt-pvt]]></category>
            <category><![CDATA[manufacturing-processes]]></category>
            <category><![CDATA[new-product-introduction]]></category>
            <category><![CDATA[npi]]></category>
            <category><![CDATA[manufacturing]]></category>
            <dc:creator><![CDATA[Eileen Chu]]></dc:creator>
            <pubDate>Wed, 20 Oct 2021 16:21:04 GMT</pubDate>
            <atom:updated>2021-12-20T10:32:08.068Z</atom:updated>
            <content:encoded><![CDATA[<p>The NPI process is a complete blueprint that takes an initial idea through various structured phases and that gives rise to a finished product being launched into the marketplace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gsxihIq5ZnavTIGUehkDkg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/vE6WEdZA6Vg">Vishnu Mohanan</a> on <a href="https://unsplash.com/s/photos/production-line?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>What Is The NPI Process?</h3><p>The steps involved in the NPI process vary from project to project, but the purpose will be the same: cost down, miscommunication prevention, waste reduction, and more efficient production. Having a proper NPI plan and working with proficient engineers or well-versed contract manufacturers in NPI can result in a successful project.</p><p>This process is driven and managed by a cross-functional team that keeps a check on every aspect of the project. The different phases are controlled by approval gates which ensure the project has met specific criteria before moving onto the next phase in the process.</p><p>The phases of the NPI process can differ in companies, but they typically follow this outline:</p><ol><li>Product Idea/Definition</li><li>Feasibility Study — <strong>Engineering Verification Test (EVT)</strong></li><li>Design and Development — <strong>Design Verification Test (DVT)</strong></li><li>Pre-production — <strong>Production Verification Test (PVT)</strong></li><li>Manufacturing</li><li>Mass Production (MP)</li><li>Evaluation and Improvement</li></ol><p>In each verification test including EVT, DVT, and PVT, there will include IQC, Functional Test, OQC, QTC, and QTR. You might get confused about all these acronyms. Generally, here is the sequence in each verification stage:</p><ul><li>IQC (Incoming Quality Control — components randomly testing)</li><li>PCBA &amp; System Function Test/ Aging</li><li>OQC (Outgoing Quality Control — complete device randomly testing)</li><li>QTC (Quality Test for Compatibility) &amp; QTR (Quality Test for Reliability)</li></ul><p>Before the PCBA &amp; System testing, the components of the product will be randomly tested in <strong>IQC (Incoming Quality Control)</strong>. However, during EVT and DVT, all components may be tested because the quantity is not that much at the moment.</p><p>Now we come to <strong>the functional testing stage</strong>. To ensure the PCBA and the complete system meet the product quality and client’s requirements, the manufacturer will implement a sufficient verification in this phase.</p><p>After the testing of the PCBA &amp; System, the assembly complete device will be tested randomly (e.g. 5%) in the <strong>OQC (Outgoing Quality Control) </strong>phase.</p><p>Finally, to make sure the software and hardware compatibility and reliability, the assembly complete device will be sent to <strong>QTC </strong>(Quality Test for Compatibility) and <strong>QTR </strong>(Quality Test for Reliability) departments after each verification.</p><h3>Why Is NPI Important As Your First Step In The Development?</h3><p>The NPI process benefits the constant effective communication to ensure everyone is on the same page and makes sure all members are hitting the deadlines. Moreover, using NPI can bring other significant advantages as the following:</p><ul><li><strong>Fast time to market</strong>: You will move from one development step to the next seamlessly, without hesitating to make sure the team is ready to move on.</li><li><strong>Lower costs</strong>: Your team will just utilize valuable resources on necessary prototypes. Preventing redesigns will help you save more budgets for sure.</li><li><strong>Higher quality products</strong>: The issues or bugs will be likely found by various departments across the whole NPI team, which will ensure that the product meets the client’s specifications as completely as it can.</li><li><strong>Manufacturing Optimization: </strong>Since the manufacturer has participated in the project from the beginning, guiding on how to build a product on a small or even a bigger scale, which will result in much smoother manufacturing.</li></ul><p>Undoubtedly, NPI will be an ideal approach to get your initial concept of a product to market because you will have the professionals to correct you on how to create a product at each stage.</p><pre>Thanks for reading! 😊</pre><pre>If you enjoyed it, let&#39;s do finger cardio! Try how many times can you hit 👏 in 5 seconds. This will help more people see this story.</pre><h3>Reference</h3><ul><li><a href="https://www.sofeast.com/glossary/npi-process/">https://www.sofeast.com/glossary/npi-process/</a></li><li><a href="https://quality-one.com/npi/">https://quality-one.com/npi/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53eb2a230523" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MAC Address vs IP Address]]></title>
            <link>https://medium.com/@eileenchu/mac-address-vs-ip-address-77915046c9a6?source=rss-be2f77f468d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/77915046c9a6</guid>
            <category><![CDATA[network]]></category>
            <category><![CDATA[ip-address]]></category>
            <category><![CDATA[mac-address]]></category>
            <category><![CDATA[mac-ip-address]]></category>
            <category><![CDATA[network-devices]]></category>
            <dc:creator><![CDATA[Eileen Chu]]></dc:creator>
            <pubDate>Thu, 14 Oct 2021 12:58:19 GMT</pubDate>
            <atom:updated>2021-10-14T12:58:19.475Z</atom:updated>
            <content:encoded><![CDATA[<p>Both MAC Address (Media Access Control Address) and IP Address (Internet Protocol Address) are used to uniquely define a network device. The main difference between the two is that the IP Address identifies a device in a network, however, to reach and deliver data to the device, we will need a MAC address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*_2_zsHToQNmrZSMO0-VrPw.png" /><figcaption>Icon from <a href="https://www.flaticon.com/authors/ultimatearm">untimatearm</a></figcaption></figure><p>Now, let’s take an example of the relationship between the IP address and the MAC address. The IP address and the MAC address are just like your name and your ID number respectively.</p><p>You can change your name but you cannot change your ID number. Since the ISP (Internet Service Provider) will be in charge of assigning an IP address with DHCP (Dynamic Host Configuration Protocol). When a device connects to a different network, it receives a different IP address as a result of a change in ISP. However, the MAC address, which is unable to be altered, is embedded into NIC (Network Interface Card) and will be provided by the NIC manufacturer.</p><p>Accordingly, the MAC address is referred to as a physical address because it never changes when a device is attached to any network. In contrast, the IP is a logical address. The IP address is not directly linked to any devices. Also, the device might have a different IP address since it will acquire different addresses from the pool with the help of DHCP while wanting to connect to the internet.</p><p>Also, think about your name and your ID number. Everyone in the world can know you through your name. But your ID number is usually used/ admitted in your country only. Correspondingly, the IP address is for global identification whereas the MAC address is for local identification.</p><h3>MAC Address v.s. IP Address</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsheetsu.com%2Ftables%2F4ce3687020&amp;dntp=1&amp;display_name=Sheetsu&amp;url=https%3A%2F%2Fsheetsu.com%2Ftables%2F4ce3687020&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=sheetsu" width="700" height="842" frameborder="0" scrolling="no"><a href="https://medium.com/media/47e0ddd9767ecba8d2dd99a6f3e660fe/href">https://medium.com/media/47e0ddd9767ecba8d2dd99a6f3e660fe/href</a></iframe><pre>Thanks for reading! 😊</pre><pre>If you enjoyed it, let&#39;s do finger cardio! Try how many times can you hit 👏 in 5 seconds. This will help more people see this story.</pre><h4>Reference</h4><ul><li><a href="https://www.geeksforgeeks.org/ip-address-as-logical-address-and-mac-address-as-physical-address/?ref=rp">https://www.geeksforgeeks.org/ip-address-as-logical-address-and-mac-address-as-physical-address/?ref=rp</a></li><li><a href="https://www.whatismyip.com/what-is-dhcp/">https://www.whatismyip.com/what-is-dhcp/</a></li><li><a href="https://www.fortinet.com/resources/cyberglossary/what-is-arp">https://www.fortinet.com/resources/cyberglossary/what-is-arp</a></li><li><a href="https://techdifferences.com/difference-between-arp-and-rarp.html">https://techdifferences.com/difference-between-arp-and-rarp.html</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77915046c9a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Power & Sleeping States]]></title>
            <link>https://medium.com/@eileenchu/system-power-sleeping-states-bf90b4c1b04f?source=rss-be2f77f468d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf90b4c1b04f</guid>
            <category><![CDATA[system-status]]></category>
            <category><![CDATA[s3-vs-s4]]></category>
            <category><![CDATA[system-sleeping-state]]></category>
            <category><![CDATA[state-system]]></category>
            <category><![CDATA[power-system-state]]></category>
            <dc:creator><![CDATA[Eileen Chu]]></dc:creator>
            <pubDate>Mon, 11 Oct 2021 07:43:11 GMT</pubDate>
            <atom:updated>2021-10-11T07:43:11.171Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you as curious about the power and sleeping state of a system as me? Have a look at how a system manipulates its power!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ax0CXpmKtDYzoC-mhOitsQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/vXInUOv1n84">Roman Synkevych</a></figcaption></figure><p>To a user, the system appears to be either on or off. However, the system supports multiple power states corresponding to the power states defined in the <a href="https://uefi.org/acpi/specs"><strong>Advanced Configuration and Power Interface (ACPI) specification</strong></a>.</p><p>System power states describe the power consumption of the system. The operating system supports 6 system power states, referred to as S0 (fully on and operational) through S5 (power off). To easily discern each state, see the diagram below. State S0 is the working state. States S1 to S4 are sleeping states. State S5 is the shutdown or off state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vtkf1pMDhmsWVNDUTiSl8w.png" /></figure><ul><li><strong>S0</strong>: Normal Powered-On state.</li><li><strong>S1 — CPU is not working but retains system data</strong>: This state is a high-power-consuming sleeping state, which has the shortest wake-up latency. In this state, no system context is lost (CPU or chipset) and hardware maintains all system contexts.</li><li><strong>S2 — CPU is off</strong>: Similar to S1 except that the CPU context and contents of the system cache are lost because the processor loses power.</li><li><strong>S3 — Sleep (Suspend to Ram)</strong>: Less consumption than in state S2 and is a low wake latency sleeping state. The CPU is off and some chips on the motherboard also might be off. Only system memory is retained. CPU context, cache contents, and chipset context are lost. If there is a blackout, all data will disappear.</li><li><strong>S4 — Hibernate (Suspend to Disk)</strong>: The S4 state is the lowest power, longest wake latency sleeping state. In order to reduce power to a minimum, it is assumed that the hardware platform has powered off all devices. Platform context is maintained. Comparing to S3, if your system is powered off, your data will be still safe in your disk.</li><li><strong>S5 — Shutdown, Soft Off</strong>: Similar to S1-S4, a system in S5 is NOT performing any computational tasks and appears to be off. However, unlike S1-S4, a system in S5 does not retain a memory state, leading to restarting from state S5 requires rebooting the system whereas, in state S4, the computer can restart from the hibernate file.</li></ul><pre>Thanks for reading! 😊</pre><pre>If you enjoyed it, let&#39;s do finger cardio! Try how many times can you hit 👏 in 5 seconds. This will help more people see this story.</pre><h4>Reference</h4><ul><li><a href="https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/system-working-state-s0">https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/system-working-state-s0</a></li><li><a href="https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/system-sleeping-states">https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/system-sleeping-states</a></li><li><a href="https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/system-shutdown-state-s5">https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/system-shutdown-state-s5</a></li><li><a href="https://onlinehelp.ncr.com/Retail/Workstations/7613/HTML/Topics/UserGuide/5.%20Power%20Management/3-ACPI%20Sleep%20States%20(S0%20-%20S5).htm">https://onlinehelp.ncr.com/Retail/Workstations/7613/HTML/Topics/UserGuide/5.%20Power%20Management/3-ACPI%20Sleep%20States%20(S0%20-%20S5).htm</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf90b4c1b04f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ROM vs RAM]]></title>
            <link>https://medium.com/@eileenchu/rom-vs-ram-6f8b2a96765?source=rss-be2f77f468d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f8b2a96765</guid>
            <category><![CDATA[random-access-memories]]></category>
            <category><![CDATA[ram-and-rom]]></category>
            <category><![CDATA[read-only-memories]]></category>
            <category><![CDATA[primary-memory]]></category>
            <category><![CDATA[memories]]></category>
            <dc:creator><![CDATA[Eileen Chu]]></dc:creator>
            <pubDate>Fri, 01 Oct 2021 08:00:21 GMT</pubDate>
            <atom:updated>2021-10-01T08:00:21.245Z</atom:updated>
            <content:encoded><![CDATA[<p>Memory is the most essential component of a computing system because computers operate on the concept of stored programs. Without memory, your computer cannot perform anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eM5_5bveADLFArAsEM2GeQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@lazycreekimages">Michael Dziedzic</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There are two basics of computer memory — Primary memory (ROM &amp; RAM) and Secondary memory (SSD, DVDs, etc). Read-Only Memory (ROM) is primary-non-volatile memory and Random Access Memory (RAM) is primary-volatile memory. Today we are going to dive into Primary Memory. Let’s roll!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p05VihjxdRIiSaDnHiI8zQ.png" /><figcaption>Classification of computer memory by <a href="https://medium.com/@eileenchu">Eileen Chu</a></figcaption></figure><h3>Types of ROM, Read-Only Memory</h3><p>1. <strong>PROM, Programmable Read-Only Memory </strong>— It can be programmed by the user, typically low-level programs such as firmware or microcode. Once programmed, the data in it cannot be altered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8sdSrOF3wPpYlVaTz--hVQ.png" /></figure><p>2. <strong>EPROM, Erasable Programmable Read-Only Memory</strong> — EPROM can be reprogrammed. The content in it can be erased by exposing it to strong UV light, typically more than 10 minutes. To reprogram it, erase all the previous data.</p><p>3. <strong>EEPROM, Electrically Erasable Programmable Read-Only Memory </strong>— The data of EEPROM can be erased by using the electric signal. We can erase only a portion of the chip.</p><h3>Types of RAM, Random Access Memory</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsheetsu.com%2Ftables%2F516d5bc076&amp;dntp=1&amp;display_name=Sheetsu&amp;url=https%3A%2F%2Fsheetsu.com%2Ftables%2F516d5bc076&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=sheetsu" width="700" height="470" frameborder="0" scrolling="no"><a href="https://medium.com/media/95d194ee03e7888763de2f0c6714e8d7/href">https://medium.com/media/95d194ee03e7888763de2f0c6714e8d7/href</a></iframe><p>Let’s check out the relative difference between ROM and RAM more clearly!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsheetsu.com%2Ftables%2F207ec96442&amp;dntp=1&amp;display_name=Sheetsu&amp;url=https%3A%2F%2Fsheetsu.com%2Ftables%2F207ec96442&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=sheetsu" width="700" height="931" frameborder="0" scrolling="no"><a href="https://medium.com/media/91012f7b64f26dfeb0e71eaae4df3a86/href">https://medium.com/media/91012f7b64f26dfeb0e71eaae4df3a86/href</a></iframe><pre>Thanks for reading! 😊</pre><pre>If you enjoyed it, let&#39;s do finger cardio! Try how many times can you hit 👏 in 5 seconds. This will help more people see this story.</pre><h4>Reference</h4><ul><li><a href="https://www.scienceabc.com/innovation/difference-between-ram-rom-speed-volatile-read-only-random-access-size.html">https://www.scienceabc.com/innovation/difference-between-ram-rom-speed-volatile-read-only-random-access-size.html</a></li><li><a href="https://techdifferences.com/difference-between-sram-and-dram.html">https://techdifferences.com/difference-between-sram-and-dram.html</a></li><li><a href="https://www.guru99.com/sram-vs-dram-difference.html#6">https://www.guru99.com/sram-vs-dram-difference.html#6</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f8b2a96765" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Practice 5] Password Protect for the website in EC2 — THE END]]></title>
            <link>https://medium.com/@eileenchu/practice-5-password-protect-for-the-website-in-ec2-the-end-fd32aee6b21d?source=rss-be2f77f468d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd32aee6b21d</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[htaccess]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Eileen Chu]]></dc:creator>
            <pubDate>Sun, 27 Sep 2020 06:52:14 GMT</pubDate>
            <atom:updated>2020-09-27T06:54:12.476Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Practice 5] Password Protect for the website in EC2 — THE END</h3><h4>Co-author: <a href="https://medium.com/@allie.chiayu.hsu">Allie Hsu</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*J8WySfdiJDlik1T_" /></figure><p>For the purpose of strengthening the security of the website, we can use .htaccess for password protection. All visitors will see a pop-up window prompting you to enter your username and password, and those who don’t know this information will be denied access to the website.</p><p>To set up .htaccess for a website in EC2, login to your EC2 then follow these steps:</p><ul><li>Create a .htpasswd file in a new directory</li><li>Create a .htaccess file in the directory ‘/var/www/html’</li><li>Configure the file httpd.conf in the EC2</li></ul><h3>Create a .htpasswd file in a new directory</h3><p>Firstly, we are going to create a new file named .htpasswd. The .htpasswd file aims to store the .htaccess username and password. In order to prevent unknown users from easily obtaining the password authentication of the website, we need to create a new, inaccessible directory to save the .htpasswd file, and it must not under the directory ‘/var/www/html’.</p><p>In this case, we named the new directory ‘private’ under the ‘/var/www’ to save the .htpasswd file:</p><pre>cd /var/www<br>mkdir private<br>cd private<br>vim .htpasswd</pre><p>Use a <a href="https://shop.alterlinks.com/htpasswd/htpasswd.php">Password Encryption Program</a> to create your passwords. Input your desire username and password, it will generate a crypt password line:</p><p>&lt;username&gt;:&lt;encrypted password&gt;<br>alpey:fJEcziXdnDx2I</p><p>Copy this line into your .htpasswd file then save the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/0*MKnSzSJuPVFw7_aT" /></figure><h3>Create a .htaccess file in the directory ‘/var/www/html’</h3><p>The .htaccess file should be saved in the directory you want to protect, which means your directory ‘html’ in EC2.</p><pre>cd /var/www/html<br>vim .htaccess</pre><p>The .htaccess file content will include</p><ol><li>AuthUserFile: the route for your password file</li><li>AuthName: can be changed into your own preference</li><li>AuthType as Basic</li><li>Require as valid-user, then save the file</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/0*6ugz6AmnLdr6PB8U" /></figure><p>When a user visits the website, the server will activate the .htpasswd file and ask for entering username and password. The system will validate the input by the crypt password line tracking through the AuthUserFile direction.</p><h3>Configure the file httpd.conf in the EC2</h3><p>But it won’t work for EC2 yet, you need to edit the related setting in the ‘httpd.config’ file.</p><pre>cd /etc/httpd/conf/<br>vim /etc/httpd/conf/httpd.conf</pre><p>Find the part which mentions &lt;Directory ‘/var/www/html’&gt; and set AllowOverride None into AllowOverride All. Save the file after changing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*7Gw7uq_EA3GCN6vA" /></figure><p>Restart the http server to update the change:</p><pre>service httpd restart</pre><p>It should show ‘OK’ after restarting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*P2-HYIZ0HyuMDIBG" /></figure><p>Once the server displays ‘OK’, the password protection setting via .htaccess is done.</p><p>When you open the browser and visit your website, a password protected window will pop up on the website. Enter the correct password for authentication to access the website.</p><h3>Issue</h3><p>In the last step, if it ‘FAILED’ after restarting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*275Ssmt48yFEvUA8" /></figure><p>It may be because other services are using the same port.</p><p>Use the command below to find out which service is using TCP port number 80 (the default webserver port):</p><pre>sudo netstat -ltnp | grep &#39;:80&#39;</pre><p>It would show the result as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*k3lL_JEBcMhGnCP4" /></figure><p><em>Note:<br>0 :: :80 — Source IP: Port<br>11515/httpd — PID/Process name</em></p><p>Kill all connections that we are not using:</p><pre>sudo kill -9 tcp *:httpd<br>sudo killall apache<br>sudo killall httpd<br>ps aux | grep apache</pre><p>The process would look like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*lXEvBkz9IlRasByS" /></figure><p>After killing all apache and httpd, the command netstat -tulpn | grep :80 will show nothing, which means there is no service using port 80. You can also check the httpd status by using the command:</p><pre>service httpd status</pre><p>The status shows httpd dead but pid file exists, then you can start the httpd server again:</p><pre>service httpd start</pre><p>After these steps, you will see the server shows ‘OK’. Congratulations on the successful troubleshooting. Now you can visit your website and see the password protection window shown on the website.</p><p>We hope that after these exercises, you will boost self-confidence in your abilities and understanding of these concepts. Wishing you all the best in your future endeavors.</p><p><strong>Previous:</strong> <a href="https://medium.com/@eileenchu/practice-4-host-a-php-dynamic-website-on-amazon-ec2-ed08f5af2089">[Practice 4] Host a PHP Dynamic Website on Amazon EC2</a></p><pre>Thanks for reading! 😊</pre><pre>If you enjoyed it, let&#39;s do finger cardio! Try how many times can you hit 👏 in 5 seconds. This will help more people see this story.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd32aee6b21d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>