<?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 Zixin Huang on Medium]]></title>
        <description><![CDATA[Stories by Zixin Huang on Medium]]></description>
        <link>https://medium.com/@zixinhuang?source=rss-e0cba1378411------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*uJzmEVVxvg1Qa2Dcf7TZ-g.jpeg</url>
            <title>Stories by Zixin Huang on Medium</title>
            <link>https://medium.com/@zixinhuang?source=rss-e0cba1378411------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 14:01:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zixinhuang/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[aws solution architect associate certificate study notes]]></title>
            <link>https://medium.com/@zixinhuang/aws-solution-architect-associate-certificate-study-notes-687a81f80c66?source=rss-e0cba1378411------2</link>
            <guid isPermaLink="false">https://medium.com/p/687a81f80c66</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[amazon]]></category>
            <dc:creator><![CDATA[Zixin Huang]]></dc:creator>
            <pubDate>Mon, 08 Jun 2020 20:55:58 GMT</pubDate>
            <atom:updated>2020-06-08T20:55:58.281Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the study note for AWS solution architect associate certificate [SSA] where I’ve listed confusing concepts and their explanations in simple words.</p><p>I’ve studied AWS official doc with the help of acloudguru SAA Udemy course and Jon Bonso SSA Practice Test. I found those materials are well structured and informative but too much words, which is not efficient to review and easily overwhelms my brain.</p><p>This notes aims to provide a simple and searchable solution for review purpose. The notes has an index which lists confusing concepts in a few words and each concept has a hyperlink embedded that refers to a relatively more detailed but un-wordy explanation. You can use outline feature of google docs to return back to Index after finishing the explanation of some concepts.</p><p>All explanations are from my own understanding, so accuracy is not guaranteed, so best to take this notes as a supplemental material.</p><p>Here is the note: <a href="http://shorturl.at/kGLS7">shorturl.at/kGLS7</a></p><p>Enjoy your study!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=687a81f80c66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A brief and practical summary of linux command system]]></title>
            <link>https://medium.com/@zixinhuang/a-brief-and-practical-summary-of-linux-command-system-5f1800769304?source=rss-e0cba1378411------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f1800769304</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Zixin Huang]]></dc:creator>
            <pubDate>Fri, 10 Jan 2020 19:02:05 GMT</pubDate>
            <atom:updated>2020-01-10T19:10:31.220Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*b8HM-KIuXkosN2zyQTlhyQ.jpeg" /><figcaption>the cover of the linux command line</figcaption></figure><p>I’ve been experimenting on Linux system by following this great Linux book ‘<a href="http://linuxcommand.org/tlcl.php">The Linux Command Line</a>’, which is beginner-friendly and simple enough to have a deep dive into Linux system.</p><p>It’s a 550 pages book and people may not have time to read through everything. Therefore, I jot down a few things that I found important into a note. For each chapter, I started with common commands and their common usages, then a few blocks of background knowledge behind those common commands.</p><p>Medium is a great place to share knowledge but it doesn’t support complete hierarchal structure writing, so I’ve uploaded my notes on Google docs. Click <a href="https://docs.google.com/document/d/1YU9uz3__jgHWgAYEREru0-IMCi_5bi5rEOghSjjpOdA/edit?usp=sharing">here</a> for the notes. Hope it can help your study on Linux :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f1800769304" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Notes @ ‘Modernizing Amazon.com warehouse device connections with AWS IoT’ presentation]]></title>
            <link>https://medium.com/@zixinhuang/notes-modernizing-amazon-com-warehouse-device-connections-with-aws-iot-presentation-473524d88062?source=rss-e0cba1378411------2</link>
            <guid isPermaLink="false">https://medium.com/p/473524d88062</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[notes]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Zixin Huang]]></dc:creator>
            <pubDate>Sat, 14 Dec 2019 06:43:01 GMT</pubDate>
            <atom:updated>2019-12-14T06:48:33.412Z</atom:updated>
            <content:encoded><![CDATA[<h3>Important features of IoT Core</h3><h4>Identity service</h4><ol><li>Certificates</li></ol><ul><li>AWS or BYOC (bring your own certificates)</li><li>Manual or JITR (just in time registration)</li><li>igV4 &amp; token (authentication method)</li></ul><p>2. IoT policies — control access to IoT service</p><p>3. Amazon Cognito — separate identity service between end user and infrastructure</p><ul><li>Cognito are mainly used for users sign-up/in &amp; access control</li></ul><h4>Device gateway</h4><p>1.Long-lived connections</p><ul><li>MQTT (smaller payload than HTTP), WebSockets and HTTP</li></ul><p>2. TLS 1.2 — transport layer security</p><p>3. Constrained devices</p><ul><li>Allow to provision devices while still connect to gateway</li></ul><h4>Message broker</h4><ol><li>publish/subscribe model</li><li>Topics — Send one message to a topic which has multiple subscribers</li><li>Offline queuing</li></ol><ul><li>Reserved ($aws)</li><li>Custom + wildcards</li></ul><p>4. QoS 0/1 — quality of service</p><ul><li>Def: the guarantee of delivery for a specific message</li><li>0: at most once</li><li>1: at least once</li><li>2: exactly once (not supported)</li></ul><h4>Rules Engine</h4><ul><li>Data transformation (SQL-like)+ action (Services e.x. AWS, Salesforce)</li></ul><h4>Device Shadow</h4><ul><li>State — A json file has ‘reported’ &amp; ‘desired’ fields</li><li>Offline API</li><li>Fan Example</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/0*jff4QcDyaBQSS8Gw" /><figcaption>from aws re:Invent presentation</figcaption></figure><h4>Registry</h4><ul><li>Store metadata of things</li><li>ThingTypes</li><li>Groups — consists of multiple things with different ThingTypes</li><li>Jobs — action</li></ul><h3><strong>AWS IoT Greengrass</strong></h3><p>— extend AWS IoT to the edge</p><h4>Local messages and triggers</h4><p>Thing A — — a message — → Greengrass core — — a message — → thing B</p><h4>Local actions</h4><p>Thing A — — a message — → Greengrass core — — Lambda function — → actor act (bulb turns on)</p><h4>Data and state sync</h4><p>Thing A — — data — → Greengrass core — — data — -&gt; AWS Cloud</p><h3><strong>FreeRTOS — real time operating system</strong></h3><p>— an open source operating system for micro-controllers that makes small, low-power edge devices easy to program, deploy, secure, connect, and manage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/0*C91mms8ElPVzsFVm" /><figcaption>from aws re:Invent presentation</figcaption></figure><h4>Local connectivity libraries</h4><ul><li>Edge, wifi, AWS IoT Greengrass</li><li>BLE — bluetooth low energy</li><li>IOS &amp; Android SDKs</li><li>Wifi management</li><li>No cloud needed</li></ul><h4>Cloud connectivity libraries</h4><ul><li>Connectivity to IoT core</li><li>MQTT Publish/Subscribe</li></ul><h4>Security connectivity libraries</h4><ul><li>Cert-based authentication</li><li>No open ports &amp; TLS</li></ul><h4>Over-the-air updates</h4><ul><li>Updates to groups</li><li>Sign firmware images</li><li>Stream over MQTT</li><li>APIs for install/reboot</li></ul><h4>IoT device defender library</h4><ul><li>Audit &amp; monitor</li><li>Device-side metrics</li><li>Alerts</li><li>Anomaly detection</li></ul><h3><strong>Case: externalized printing using AWS IoT</strong></h3><h4>Types of printing services in Amazon fulfillment technology (AFT)</h4><ol><li>Network printer</li></ol><ul><li>Directly connect to local area network. E.x. WLAN</li></ul><p>2. USB printer</p><ul><li>Directly connect to local computing machine which connects to local area network</li></ul><p>Note: All in fulfillment center network</p><h4>Printing in AFT</h4><p>Two main network — one is fulfillment center network, one is service network (cloud etc)</p><ul><li>Service network: web server → printing service</li><li>Two networks connect through VPN and using local IP</li></ul><h4>Externalized printing</h4><ol><li>Problem: VPN sucks for multiple fulfillment centres because it’s hard for VPN to handle large-scale communications across several fulfillment centers with too many local IP.</li></ol><ul><li>If no VPN, we need to make each network printer’s IP address be public, which is expensive and inefficient</li></ul><p>2. Solution: replace VPN with AWS IoT with one public IP, where each local printer is registered as a Thing in AWS IoT with local IP</p><h4>presentation video <a href="https://www.youtube.com/watch?v=acNDApQl4oU&amp;list=PL2yQDdvlhXf85CDFKMRyrj3ltMAOJENWF&amp;index=1">source</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=473524d88062" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intro to AWS CloudFront]]></title>
            <link>https://medium.com/@zixinhuang/intro-to-aws-cloudfront-cc9a56c3f22c?source=rss-e0cba1378411------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc9a56c3f22c</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[cloudfront]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Zixin Huang]]></dc:creator>
            <pubDate>Mon, 09 Dec 2019 17:50:03 GMT</pubDate>
            <atom:updated>2019-12-09T17:51:20.015Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Index</strong></p><ul><li><em>Configuration</em></li><li><em>Use case</em></li><li><em>Content delivery mechanism</em></li><li><em>Pricing</em></li></ul><h3><em>Configuration</em></h3><h4>Steps</h4><ul><li>Specify origin servers that have objects inside → create a CloudFront distribution → CloudFront assigns and returns a domain name to your new distribution → CloudFront sends your distribution’s config to all of your distribution’s edge locations/Points of presences [POPs]</li></ul><h4>Origin server URL vs CloudFront-returned URL</h4><ul><li>All content in origin server is served in the new distribution with CloudFront-returned domain name as its URL.</li></ul><h4>Configure the duration of a file to stay in the cache @edge location</h4><ul><li>Configure origin server to add headers to the files, which indicates how long it stays at edge location before it expires.</li><li>By default, each file stays in an edge location for 24 hours</li><li>The minimum expiration time is 0 sec &amp; no maximum expiration limit</li></ul><h3><em>Use case</em></h3><h4>Live stream</h4><ul><li>Cache media fragments at the edge, so multiple requests for the live stream can be directly delivered from the edge, which reduces the load on the origin server.</li></ul><h4>Independent customization from origin server</h4><ul><li>Users can customize edge end with CloudFront without influence from origin server</li><li>E.x. return a custom error message when origin server is down for maintenance</li></ul><h3><em>Content delivery mechanism</em></h3><h4>Pipeline</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/0*_hPuYOiNaDFmJjF9" /></figure><ul><li>Two pathways</li></ul><p>1 → 2 → 3 [requested file is in cache]</p><ol><li>User makes a request for a file</li><li>2. DNS routes the request to CloudFront Edge</li></ol><p>3. CloudFront checks its cache. If the file is in the cache, CloudFront returns it to the user.</p><p>1 → 2 → 3a → 3b → 3c[requested file is not in cache]</p><ul><li>1.2. Same as above</li><li>3a: forwards the request to the origin server</li><li>3b: the origin server sends the file back to the edge location</li><li>3c: CloudFront forward the file to the user and add the file to the cache</li></ul><h4>Regional cache vs Edge cache</h4><ul><li>Main difference</li></ul><ol><li>Edge cache is at edge location &amp; Regional cache is located between the origin server and edge location</li><li>Edge cache is for popular content &amp; Regional cache for less popular content, e.x. New instagram post — — less popular over time.</li><li>Regional cache is bigger than Edge cache, and objects remain at Regional cache longer than at Edge cache.</li></ol><ul><li>Regional cache mechanism</li></ul><p>Client ←→ Edge ← → Regional Cache ← → Origin Server</p><ol><li>Cases</li></ol><p>Case 1. Requested file at regional cache</p><p>Clients sends a request for a file F → Edge cache check, not found, send the request to Regional cache → Regional cache check, found → forward F back to Edge and <strong>add F to Edge cache → </strong>forward F to client</p><p>Case 2. Requested file not at Edge cache &amp; Regional cache</p><p>Clients sends a request for a file F → Edge cache check, not found, send the request to Regional cache → Regional cache check, not found, send the request to the origin server → Origin server check, found → forward F back to Regional cache and <strong>add F to regional cache → </strong>forward F to Edge location and<strong> add F to POP cache</strong></p><p>Notes: Why add F to regional cache?</p><p>Because regional cache is a local cache shared by multiple Edge caches. If one Edge cache requests a file, another Edge cache does not need to fetch the file from origin server.</p><p>IMPORTANT: Proxy method PUT/POST/PATCH/OPTIONS/DELETE go directly to the origin from Edge, without passing Regional cache.</p><h4>Advantages of Regional cache</h4><ul><li>Reduce the need for CloudFront to go back to the origin server for less popular content</li><li>Keep rooms at Edge cache for popular contents</li></ul><h3><em>Pricing</em></h3><ul><li>[server → client] Charges that include data transfer for WebSocket data from server to client, e.x. Edge to client’s browser</li><li>[client → server] Charges include data transfer for WebSocket data from client to server, e.x. Edge to origin server</li><li>+ fees with additional service, e.x. Encryption.</li></ul><p>source: <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html">AWS CloudFront Documentation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc9a56c3f22c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[S3 Replication in AWS]]></title>
            <link>https://medium.com/@zixinhuang/s3-replication-in-aws-df7d0f8c481b?source=rss-e0cba1378411------2</link>
            <guid isPermaLink="false">https://medium.com/p/df7d0f8c481b</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[replication]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Zixin Huang]]></dc:creator>
            <pubDate>Thu, 21 Nov 2019 18:12:21 GMT</pubDate>
            <atom:updated>2019-11-21T18:12:21.466Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Li9Q3sg_Gg-iXSNFDvGIbA.png" /></figure><h4><em>e.x. replication use case</em></h4><p>a company provides a service that constantly monitors objects in client’s bucket and notify clients if there is a problem with their bucket. To achieve this service, the company needs to continuously access up-to-dated versions of objects in client’s bucket. Client cannot directly give full access of its bucket to the company since client should not allow the company to manipulate[delete, update objects, grant permission to competitors etc.] objects, which is a security risk.</p><p>One solution is to <strong>replicate</strong> objects in client’s bucket to another bucket operated by the servicing company, without replicating the permission &amp; management part of the client’s bucket. In such way, the company can access the desired objects as soon as there are updates in client’s bucket, without the rights to manage client’s buckets.</p><h4>how?</h4><p>@S3 → Your bucket → management →replication → get started → window as below → set source</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETAxwaDCA4tzvAHvfbNvfA.jpeg" /></figure><p>set the source bucket, which is your current bucket and click next</p><p>replication also supports encryption using KMS. Tick the encryption box if the user need to use encryption</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cmdX8W-q_gJtMVJCREduig.jpeg" /></figure><p>set the destination bucket → click next</p><p>user can set destination bucket in the same account. Select ‘Buckets in another account’ if user wants to replicate to buckets from another AWS account.</p><h4><em>what is S3 replication?</em></h4><p>S3 replication enables automatic copying of objects across AWS S3 buckets. What it means is that after replication connection is established between source bucket and destination bucket, every changes of objects in source bucket would be available in destination bucket.</p><h4><em>2 features of S3 replication</em></h4><ul><li>region independent. source and destination buckets do not need to be in the same region. S3 supports both same region replication and cross region replication.</li><li>ownership independent. source and destination buckets do not need to be with the same owner. User can replicate its own bucket to a bucket under different ownership.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df7d0f8c481b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[S3 Lifecycle Management in AWS]]></title>
            <link>https://medium.com/@zixinhuang/s3-lifecycle-management-in-aws-8889085be66b?source=rss-e0cba1378411------2</link>
            <guid isPermaLink="false">https://medium.com/p/8889085be66b</guid>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[lifecycle-management]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Zixin Huang]]></dc:creator>
            <pubDate>Wed, 20 Nov 2019 03:41:27 GMT</pubDate>
            <atom:updated>2019-11-20T03:41:27.828Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*XqEL6riVOhmmxo9N-S_A_Q.jpeg" /></figure><h4><em>e.x. lifecycle use case</em></h4><p>A company runs a monthly analysis on logs users uploaded across current month. After the analysis is finished, those logs may not be accessed frequently in the following 3 months. After 3 months, those logs are not useful anymore and most likely users would not access them. However, just in case in emergency, users need to check those logs, company still has the responsibility to store them.</p><p>In such scenario, there are 2 problems, the first one is if we always keep those logs in the standard tier, it’s unnecessarily costly to store old unlikely-to-be-accessed logs in a standard-tier fare. The second problem is if the company wants to change those objects to different storage tiers manually, the company needs to hire professionals and pay for the expensive labour cost. Lifecycle management can solve those two problems.</p><h4>how?</h4><p>@S3 → Your bucket → management →lifecycle → add lifecycle rules →enter customized rule’s name → window as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vzVl3AP96vwYIg7ES9DbVg.jpeg" /></figure><p>In the lifecycle window, we can configure the bucket and set different storage tiers in a temporal manner to suit user’s business requirement. To solve the problem as above, first, after 30 days when the monthly analysis is finished, we can change storage tiers of logs to Standard-IA[infrequently accessed], then after 3 months, we change change the storage tiers to Glacier, which cost way less than standard tier. So overall, the company doesn’t need to pay for the standard tier fee for barely accessed data and doesn’t need to hire professionals to manually change storage tiers.</p><p>users can also set up lifecycle rules for previous versioned objects. How? tick Previous versions → add transition rules</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SU6EUdH2Zp3YUAnUYu-7ZQ.jpeg" /></figure><h4><em>what is lifecycle management?</em></h4><p>lifecycle management helps users to store data in a cost effective way by using two actions:</p><ul><li>storage transition: define when objects transition to another storage tier.</li><li>expiration: define when objects to be deleted.</li></ul><h4><em>lifecycle rules for versioned objects</em></h4><p>users can configure rules to transition storage tiers for previously versioned objects, which is very helpful since users usually accessed the current version objects and infrequently accessed objects with previous versions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8889085be66b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[S3 Encryption in AWS]]></title>
            <link>https://medium.com/@zixinhuang/s3-encryption-in-aws-b76348d8cc9e?source=rss-e0cba1378411------2</link>
            <guid isPermaLink="false">https://medium.com/p/b76348d8cc9e</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Zixin Huang]]></dc:creator>
            <pubDate>Wed, 20 Nov 2019 03:37:40 GMT</pubDate>
            <atom:updated>2019-11-20T03:37:40.432Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yGoVdWNi-xxxTKEywGq8Vg.png" /><figcaption>a S3 cheatsheet from Linux Academy</figcaption></figure><p>S3 encryption means a user cannot access the data unless the user has the key to decrypt the data.</p><h3><em>two main types of encryption</em></h3><h4><strong><em>in transit</em></strong></h4><p>— data is encrypted during transition between client and server.</p><p>e.x. SSL[secure socket layer]/TLS[transport layer security]</p><h4><strong><em>at rest</em></strong></h4><p>— data is encrypted either in client side or server side.</p><p><strong><em>two main types of at rest encryption</em></strong></p><ul><li>client side encryption[CSE]</li></ul><p>CSE encrypts data at client side and transfer encrypted data to server.</p><ul><li>server side encryption[SSE]</li></ul><p>SSE encrypts data at server side and clients needs encrypt key to access encrypted data.</p><p><em>three main SSE available at AWS</em></p><ul><li>SSE-S3. AWS manages encryption keys</li><li>SSE-KMS. AWS and user manage encryption keys together using AWS Key Management Service [KMS]</li><li>SSE-C. user manages encryption keys</li></ul><p>difference among those three types of SSE is that with SSE-S3, keys are stored and managed by AWS, not by user; with SSE-KMS, keys are stored in AWS and user can create/delete/change/grant permissions to keys; and with SSE-C, users store and manage keys, without any relation to AWS.</p><h4><em>how to use SSE?</em></h4><p>@S3 → Your bucket → properties →default encryption</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zYThQ9ulpV1jpyBieoxYbw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b76348d8cc9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multi Factor Authentication[MFA] in AWS]]></title>
            <link>https://medium.com/@zixinhuang/multi-factor-authentication-mfa-in-aws-fa43409f72cf?source=rss-e0cba1378411------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa43409f72cf</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Zixin Huang]]></dc:creator>
            <pubDate>Wed, 20 Nov 2019 03:29:07 GMT</pubDate>
            <atom:updated>2019-11-20T03:38:39.829Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ll introduce this concept by first giving an example, then dive into technical details.</p><h4><em>e.x. MFA setup</em></h4><ul><li>Services → security, identity &amp; compliance → IAM → security status → MFA row → Click ‘Manage MFA’ → ‘Your Security Credential’ page → MFA row → Click ‘Activate MFA’ → Select the type of MFA device, for this example, I’ll go for the ‘virtual MFA device’ since it’s the most convenient one. → You’ll see the window as below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjZzKE-Lm2GniD0-pC22Bg.jpeg" /></figure><ul><li>download an authenticator app in your phone, such as <a href="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&amp;hl=en_CA">Google authenticator</a>. → scan the QR code in AWS console → your phone window should be like as below → six-digit code should change every 30 seconds → type in two consecutive code and click assign MFA → setup finished</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SxLTryURpAPedngy6EGI_Q.png" /></figure><h4><em>e.x. how to use MFA</em></h4><p>During logging in, after password, AWS requires you to enter the 6 digit code on your MFA device [e.x. your phone and authenticator app] as the final authentication step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*0ek_KTj-Ga2mcGEMKNml1w.jpeg" /></figure><h4><em>what is MFA?</em></h4><ul><li>MFA is an authentication method that requires multiple evidences to grant an access to a user. The most common evidence is the password.</li><li>What AWS MFA essentially do is to make your device [e.x. your phone] as another evidence, so every time a user log in, except the password, the user need to include the code from your MFA physical device.</li></ul><h4><em>Why is it secure?</em></h4><ul><li>if a cyber theft acquire a user’s password, then the theft can still not access your AWS console if they don’t have your physical MFA device. The only way a theft can access your MFA-protected console is to have both your password and the MFA code generated by MFA device.</li><li>AWS change MFA code every 30 seconds. Why? if it doesn’t change, it’s basically a second password, which does not decrease the security risk much. Because MFA code changes every 30 seconds, only way to verify such changing code consistently is to have the MFA device, which is hard for theft to acquire. Even if the theft successfully acquire one MFA code and log in to the console, since other important actions, such as delete some features, also require MFA authentication with different MFA code. Therefore, the theft has limited time to do any significant damage if they only have temporary MFA code.</li><li>an approach to step up security level, especially when the MFA device is stolen, is to add security measure in MFA device, such as add face id/fingerprint/security questions to the authenticator app. Therefore, even if theft acquire your MFA device, the theft still needs other information to access MFA code.</li></ul><p>Hope you find my notes helpful!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa43409f72cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[full stack app setup guideline]]></title>
            <link>https://medium.com/@zixinhuang/full-stack-app-setup-guideline-739256c812e7?source=rss-e0cba1378411------2</link>
            <guid isPermaLink="false">https://medium.com/p/739256c812e7</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Zixin Huang]]></dc:creator>
            <pubDate>Wed, 24 Jul 2019 17:58:06 GMT</pubDate>
            <atom:updated>2019-11-11T16:48:24.480Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>MERN stack web app setup guideline</strong></h3><p>a general template to set up a MERN stack based web application development environment</p><p><strong>backend.</strong></p><ol><li>npm init</li></ol><ul><li><em>initialize npm</em></li><li>change entry point to server.js</li></ul><p>2. add regular dependencies</p><ul><li><em>npm i express express-validator mongoose bcryptjs jsonwebtoken config</em></li></ul><p>3. add dev dependencies</p><ul><li><em>npm i -D nodemon concurrentlya</em></li></ul><p>4. add scripts in package.json</p><ul><li>“start”: “node server.js”,</li><li>“server”: “nodemon server.js</li></ul><p>5. create server.js file @ root folder</p><p>6. implement express server</p><p>@ ./server.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WESc8sXxopEZVkZVgqCIqA.jpeg" /></figure><p>7. run server</p><ul><li><em>npm run server</em></li></ul><p>8. add routers folder -&gt; implement general routes (CRUD)</p><ul><li>a template</li></ul><p>@ ./routers/users.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*qsB0ApLk5npgoMhEn6GI3Q.jpeg" /></figure><p>@ ./server.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*RCuu0Nf5yB41IOSf3T3iOA.jpeg" /></figure><p>9. mongoDB setup</p><p>@ mongodb cloud platform</p><ul><li>create a cluster → add IP address → add users → get connection string @ clusters/connect</li></ul><p>@ root folder</p><ul><li>create config folder → add default.json file (used for storing global variables) → add “mongoURI”: “connection string” → add db.json → add following template(connect server with mongoDB) → add db to server.js</li></ul><p>@ ./config/db.json</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*XORxW6gN9n1i7MomUmjTiQ.jpeg" /></figure><p>@ root folder</p><ul><li>create models folder → add model for each collection → add model to each corresponding route</li></ul><p>template:</p><p>@ ./models/user.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TeVk2Cq-qUuPhOQRlOsqlA.jpeg" /></figure><p>10. add middleware</p><ul><li>add bodyparser (parse incoming request body)</li></ul><p>@./server.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*XCT7lJUDvqaU7PjG_bGUow.jpeg" /></figure><ul><li>add express-validator (check incoming request body’s formats and types)</li></ul><p>example:</p><p>@ ./routes/users.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mHPRdzNuIuQ42MDbM7e9CA.jpeg" /></figure><h4><strong>frontend.</strong></h4><ol><li>setup react</li></ol><ul><li><em>npx create-react-app client</em> (save setup files to client folder)</li></ul><p>2. add helpful dev script @ ./package.json</p><ul><li>“client”: “npm start — prefix client”,</li><li>“clientinstall”: “npm install — prefix client”,</li><li>“dev”: “concurrently \”npm run server\” \”npm run client\”” (run endpoint server and client server simultaneously in the same terminal)</li></ul><p>3. add proxy @ ./client/package.json</p><ul><li>“proxy”: “http://localhost:5000&quot;</li><li>purpose: when making http request, we can refer ‘/api/posts’ to replace “http://localhost:5000/api/posts&quot;</li></ul><p>4. cleanup react default files</p><ul><li>delete ./client/.gitignore (.gitignore@root covers client folder)</li><li>rm -rf ./client/.git (.git@root covers client folder)</li></ul><p>5. install useful packages</p><ul><li><em>npm i axios react-router-dom react-transition-group</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=739256c812e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[what is a hackathon like?]]></title>
            <link>https://medium.com/@zixinhuang/what-is-a-hackathon-like-cad7feda0224?source=rss-e0cba1378411------2</link>
            <guid isPermaLink="false">https://medium.com/p/cad7feda0224</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[Zixin Huang]]></dc:creator>
            <pubDate>Fri, 05 Jul 2019 04:32:35 GMT</pubDate>
            <atom:updated>2019-07-24T17:59:09.950Z</atom:updated>
            <content:encoded><![CDATA[<h3>My first hackathon experience</h3><p>TOHacks is the first hackathon I ever attended to. It was overall a very interesting experience. So for people who is not familiar with what usually happens in a hackathon. The following is the basic <strong>structure </strong>of a typical hackathon and for each step, I included what happened at TOHacks to make you understand better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AXF8IYKqC3Y7JxYRaUrCPQ.png" /></figure><p><strong>apply.</strong></p><p>I saw the TOHacks event post on facebook in April and I immediately applied it. The application was pretty straightforward. They asked your basic information and some short answer questions, plus resume. And I got accepted in mid-May.</p><p><strong>prepare</strong>.</p><ul><li><em>team formation.</em></li></ul><p>One week before the hackathon starts, the organizers sent us some necessary information and asked me to join a very important platform called <a href="https://slack.com/intl/en-ca/"><strong><em>slack</em></strong></a>, which is the place you can communicate with everyone (teammates, peers, organizers, mentors, sponsors etc.) and that’s also where all the notifications before and during hackathons happen. There was a channel called team-formation, where you can meet with peers who are also trying to find a team and it’s also a great place to introduce yourself to everyone. I luckily found a team on that channel very quickly.<em> </em>I definitely recommend you to include 1–2 teammates who have strong business background and good UI/UX design skills, since at the end of day, to win the hackathon needs a great pitch and an attractive user interface to connect with judges.</p><ul><li><em>sponsor challenges and brainstorming.</em></li></ul><p>Sponsor challenges are a set of challenges provided by sponsors so that if your team has the best project that tackles the challenge, then your team will win some prizes provided by sponsors. Sponsor challenges usually are handed out several days before the hackathon starts so your teammates can have enough time to do research and brainstorming.</p><p>For TOHacks19, we have 3 challenges. First one is to develop a project based on Microsoft’s Azure service, second is to use data to advance a social challenge, and the last one is to create a project to tackle a social issue which hasn’t been talked about. So after the sponsor challenges was out, we decided to meet in person the night before the hackathon. We gathered some ideas and did some research. BTW, if your team doesn’t know what to do, try to find inspirations in <a href="https://devpost.com/"><em>devPost</em></a><em>, </em>which has tons of projects done in other major hackathons. Also, my teammate Erwang introduced us another great resource called <a href="https://houston.substack.com/"><em>houston newsletter</em></a>, which has weekly updated interesting and original real-life problems that maybe suits the sponsor challenge.</p><p>After a short period of brainstorming, we decided to do both challenge 1 and 3, and we think we came up with a relevant and decent idea. (also bear in mind that if there are multiple sponsor challenges, you better ask the organizers before you try to integrate multiple challenges into one project because organizers may only allow you to attend one challenge.)</p><p>Here is our idea. We have a serious <a href="http://tfpc.to/food-waste-landing/food-waste-theissue">food waste problem</a>, where a huge amount of edible food are disposed uselessly. However lots of homeless people are still struggling to fight hunger, then instead of wasting the food, why not give those food to homeless people? So we plan to develop a hotline, powered by Azure cognitive service, that when a homeless person is hungry, he can come to a local payphone/cellphone and call a specified hotline number, then the caller would provide his own address, and the service would give the homeless person the location of the closet available food based on caller’s address. For restaurants or families who provide the food, we also develop an interface that if they have food leftovers, they can fill in the descriptions of food and locations and submit the form to the food database, and then the hotline service would know where would be a better place for homeless person to pick up their food.</p><p>How does our idea satisfy challenge 1 and 3? First, we use Azure Cognitive Service to transfer caller’s speech to text (address), and then we use Azure Maps service to convert address to geo-locations (including values as longitude &amp; latitude), then we can use a simple mathematical formula to calculate the closet food-available place based on caller’s geo-locations and foods’ geo-locations; after we have the geo-locations of closet food, we can get its real address either by accessing our database based on the provider of the food or we access Azure Maps service again to get address based on food’s geo-location. At the end, we’ll convert text (address) to speech using Azure Cognitive Service. At last, we can use Azure service to deploy the web app. So Azure service is penetrating to everywhere in our project. Challenge 1 satisfied. For challenge 3, since food waste problem and the health conditions of homeless people are social issues, and food waste problem is not widely discussed, so challenge 3 is obviously satisfied.</p><p>Okay. The idea was confirmed. The next steps are super important, which are the job assignments, timeline setup and app architecture. Job assignments are basically assigning jobs (front-end/back-end/UI design/powerpoint etc.) to teammates. Timeline setup means a detailed plan for tasks that each teammates have to finish before certain time so that the project can be finished within 24 hours. App architecture is a blueprint for how to develop this app. Developers will implement their coding based on this architecture so that their works can be compatible with other developers. These three steps are the preparation for project implementation. Although the reality is full of unexpected surprises that always show up during hackathon, a good planning ahead can still help decrease the unexpectations a team going to face.</p><p><strong>on the day of hackathon.</strong></p><p>As long as a team have a decent preparation and knows what to do, the whole day is just coding and solving bugs. Not much to say, drink some red bull, get ready for an all-nighter and good luck.</p><p>Regarding whether one has to go for an all-nighter, I think it really depends on the person. From my first time experience, I gotta have a few hours of sleep. My original plan was to stay up the whole night, and I thought I could do it, until around 4am, a sudden tiredness just struck me and I couldn’t focused anymore, but I still kept it going for like half an hour, and that half hour I literally made zero progress. It’s just more efficient to get some sleep and be more productive, at least for me.</p><p>If the team finishes development and the project is well-tested, then the team can deploy the project to a cloud service(azure, <a href="https://www.heroku.com/">heroku</a> etc.). After the deployment, prepare your demo to impress judges!</p><p><strong>In general.</strong></p><p>apply → prepare → code → pitch</p><p>Except coding, TOHacks19 also provided some other activities, such as workshops and career fair. So it’s also a good opportunity to mingle with people in tech companies and leave them a good impression, which may help you in the future career.</p><h3><strong>things i learnt.</strong></h3><ol><li>we didn’t finish our app on time. A good thing is that we discussed why. one big problem we agreed upon is that we should try to make our MVP(Minimum Viable Product) simpler and increase the independence of each features so that if one feature faces seriously setbacks, other features can still be treated as a functioning product. However, for our project, all features are interdependent on each other. If one feature cannot be implemented, the whole app lost its purpose and meaning. For example, if azure speech-to-text service is not working, then the whole app is useless since every other features depends on data produced by azure speech-to-text service. What I would do next time is to component-alize more features and during the preparation phase, we need to come up with other potential MVPs using basic components so that if one component doesn’t work, other components can still combine together to be used as a complete product.</li><li>config and init all tools before hackathon, so you can build project-related stuff during precious 24 hours. For example, our team used to be on google cloud service camp. So we are familiar with google services (geo-coding, speech-to-text etc.) but not with Azure. If the challenge requires you to change to another service platform, remember to do homework on how to set them up beforeahead since each platforms work in a quite different way. We spent so many unnecessary time to configure azure service, if we could prepare setup stuff before hackathon starts, maybe we could finish them on time.</li><li>try to get more sleep in my next hackathon. Sleep is power!</li><li>this experience reminded me how little I know about software development. I’ve seen some new and cutting-edge softwares (twilio, azure cognitive service, azure maps etc.) during this hackathon. And I was impressed by how professional my teammates executed project workflow. I learnt a lot. Be humble and keep learning.</li><li>try to make great connections with peers and mentors. They are useful resources in your career.</li></ol><p>At last a big thanks ❤️ to TOHacks team for making such a great event, good job!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cad7feda0224" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>