<?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 Bryant Le on Medium]]></title>
        <description><![CDATA[Stories by Bryant Le on Medium]]></description>
        <link>https://medium.com/@bryantl-74329?source=rss-62c468a48a0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1RY87EYZ5UPzws6qDjfkdw.jpeg</url>
            <title>Stories by Bryant Le on Medium</title>
            <link>https://medium.com/@bryantl-74329?source=rss-62c468a48a0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:05:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bryantl-74329/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[K-Means Algorithm in]]></title>
            <link>https://medium.com/analytics-vidhya/k-means-algorithm-in-f09045c87be9?source=rss-62c468a48a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f09045c87be9</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[among-us]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Bryant Le]]></dc:creator>
            <pubDate>Wed, 27 Jan 2021 01:41:43 GMT</pubDate>
            <atom:updated>2021-02-01T16:04:34.851Z</atom:updated>
            <content:encoded><![CDATA[<h3>K-Means in Among Us</h3><p>Solving the prime shields task using the k-means algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gTR5WUbzOUF8TTvR.jpeg" /></figure><p>Working through the wire tasks in electrical and shield tasks in the shield room, I realized how easily the tasks in the game, Among Us, could be automated. Among us is a multiplayer game of teamwork and betrayal in which crewmates must complete tasks before being slaughtered by the imposter. Tasks can take from seconds to over a minute to complete. I deemed these tasks a challenge to automate.</p><p>But not all tasks were a simple click.</p><p>Some tasks, such as downloading or uploading files, require a simple click of the download button, which is not programmatically challenging. Other tasks such as clearing the chute or doing the wires may require image processing and mouse action automation. But the most challenging tasks to automate required data science.</p><p>Data science is the being able to draw conclusions from data.</p><p>There is a task called “prime shields,” in which the crewmate must fix the shields that are highlighted in red. But how do we know which shields are compromised and which ones are perfectly fine. Clicking on a shield that is currently not red will turn it red, so we would want to avoid clicking on the wrong shield. However, this problem is not as simple as the color of each shield to white or red because these shields are transparent and the background behind the shields are not uniform.</p><p>To resolve this issue, we will use the k-means clustering algorithm.</p><p>K-means clustering is a method of grouping different points. More precisely, k-means clustering is a method of vector quantization that aims to partition n observations into k clusters in which each observation belongs to the cluster with the nearest mean or centroid. In this scenario, we would want to group our 7 shields into two groups based on pixel color.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/45/0*kdNTbYisTttZregs" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/0*D6A1mtipIsO95UpD.png" /></figure><p>The k-means clustering algorithm will naturally group the shields into two groups, and the group with the darker pixeled centroid will contain the compromised shields.</p><p>In addition to using to the k-means clustering algorithm, we also used PIL for processing the image and color of the pixels and pyautogui to automate the movement of the mouse. We saved the location of each of the seven shields to know which shield is which after using our k-means algorithm so that we could click on the compromised shields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/45/0*rex6TaiR18mhePaR" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pZCTORvuJ8WJte32.png" /></figure><p>The Python code for the prime shields task.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*jEjulRKHqlxZzhWK.gif" /></figure><p>The GIF for the execution of the Python code.</p><p>Thanks for reading! Let me know if you have any questions or requests.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f09045c87be9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/k-means-algorithm-in-f09045c87be9">K-Means Algorithm in</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forcing Myself to Walk Using Python]]></title>
            <link>https://bryantl-74329.medium.com/forcing-myself-to-walk-using-python-596eab49facc?source=rss-62c468a48a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/596eab49facc</guid>
            <category><![CDATA[exercise]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[health]]></category>
            <dc:creator><![CDATA[Bryant Le]]></dc:creator>
            <pubDate>Wed, 27 Jan 2021 01:39:52 GMT</pubDate>
            <atom:updated>2021-02-04T00:41:16.825Z</atom:updated>
            <content:encoded><![CDATA[<p>Using Shortcuts and Pythonista3 to force myself to walk 10,000 steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*wF5t28lxY5SlbctUtgRwHw.jpeg" /></figure><p>We all know that we should walk 10,000 steps a day. But unless you are a student with courses across campus, you probably don’t walk the 10,000 steps a day without putting your own time to walking the steps.</p><p>Studies show that walking 10,000 steps a day can :</p><ul><li>boost your energy</li><li>aid relaxation and clear your mind.</li><li>provide a sense of achievement and satisfaction.</li><li>improve confidence and mood.</li><li>help manage your weight.</li><li>promote healthier blood cholesterol and blood pressure.</li><li>build stronger bones and muscles.</li><li>reduce your risk of heart attack.</li></ul><h3>Shortcuts Design</h3><p>I wanted to shortcut to run automatically, to check whether the user has walked their 10,000 steps for the day at about 11 PM. If the user has walked their 10,000 steps, then all is well. However, if the user has not walked their 10,000 steps, the automation will set alarms that will go off every 5 minutes until the user has reached 10,000 steps.</p><p>The iPhone has an app called Shortcuts that allows the user to create scripts to do a series of actions. I set this automation to go off at 11 PM. I would then repeat for some large number of times, first getting the current number of steps and checking whether that number is greater than 10,000.</p><p>To get the current number of steps, I used Health Sampling, which allows us to query for health data in a similar fashion to using SQL from a relational database. Once I got the health data, I would need to parse through this data. I used the Pythonista3 app, which allows us to do Python directly on our phone, to parse and compute this. (I will go into more details later.) The Python code will let me know whether my steps are greater than 10000 or not. We will use the clipboard to keep track of the global variable “steps is greater than 10000.” And if this variable is false, then we will start our alarm. And we will continue looping through this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*71Y9a7uieJAt8X1RtGJ4oQ.png" /></figure><h3>Pythonista Code</h3><p>There are three parts to the code below: parsing the health data, deciding whether or not the number of steps is at least 10000, and pushing this result downstream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*-4WMTkkM9mMObbIMNfrJjw.png" /></figure><p>Thanks for reading! Let me know if you have any questions in the comments down below and don’t forget to check out my YouTube video.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=596eab49facc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Start Coding for Good]]></title>
            <link>https://bryantl-74329.medium.com/how-to-start-coding-for-good-9e294fc6a7a1?source=rss-62c468a48a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e294fc6a7a1</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[volunteering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[climate-change]]></category>
            <dc:creator><![CDATA[Bryant Le]]></dc:creator>
            <pubDate>Wed, 27 Jan 2021 01:38:14 GMT</pubDate>
            <atom:updated>2021-01-27T01:38:14.242Z</atom:updated>
            <content:encoded><![CDATA[<p>Open Source, Hackathons, Volunteering, and Groups</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKd5quVyla1NKq2_nWQRgg.jpeg" /></figure><p>Since freshman year of college, I have been programming. I started college as a pre-medicine student, but one reading by Atul Gawande that changed my mind about what I wanted to do for the rest of my life. Many other pre-medical students share the same dream to someday miraculously save someone’s life through surgery. This feat would gory, stressful, and heroic.</p><p>But is this really the right way to save people?</p><p>In Gawande’s anecdote, he highlighted the importance of incremental care as opposed to surgical care, and he compared healthcare to a bridge. Would you have a bridge collapse from lack of care before fixing it, or would you rather incrementally care for the bridge? This revelation in combination to the computer science courses I tried made me realize that I could incrementally care for people through programming and data science at a massive scale.</p><p>You can build web applications from frontend to backend to catalyze non-profits. You could build apps that track people’s health or give suggestions for an improved lifestyle. You could use data science to predict whether someone has some disease or not. And we are starting to see many discoveries in these areas.</p><p>Although, it was hard getting started.</p><h3>Hackathons</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*2xqeWnn_-TY5DLXlGfNikQ.jpeg" /></figure><p>Most hackathons have a theme that address deeply impactful problems and encourage developers to build creative and unique solutions. Some of these themes can include healthcare, climate change, social awareness, etc. Hackathons are a great place to get started with building something for good and for meeting like-minded people.</p><p>I first discovered the power of programming for good at my first Hackathon on energy resources. I went to the Hackathon not knowing anything and joined a group of beginners as well! We decided on building a doomsday clock for some location would be under sea level. It was a ridiculous project, but I still look back on how fun it was to build this project with absolutely no knowledge on coding. It was mostly just copying and pasting different features into the code, but, as I discover soon, it is what I still do. I walked out learning HTML, CSS, and JavaScript. And not only did this Hackathon experience help me build a cool project for the climate and help me discover my excitement for technology, but it was also a steppingstone towards my next project.</p><h3>Volunteering for Non-Profits</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J1kRYSUSSe1sPVhzeALdaA.jpeg" /></figure><p>After that Hackathon and several hours of project building, I had enough experience to build software for some non-profits. And I spend the next four years volunteering for non-profits and learning an incredible amount from practical experience and from others in the group. Some of the non-profits that look for software application developers include the American Red Cross and UNICEF. Although I was not paid, I learned how to use Git, build scalable backend systems that leveraged cloud solutions, full-stack development, and data engineering, none of which were taught at UC Berkeley.</p><h3>Organizations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mfIimmpyYGi419dSIJ_HQ.jpeg" /></figure><p>If you are still a student, I would recommend that you join a student organization that builds software for others. And ideally, the software would be towards a good cause. This is my first recommendation because it is the most convenient and it is the most beginner friendly compared to the other methods that I will share.</p><p>My experience with student organizations has not been the best. I was still taking introductory courses for computer science, and many of the student organizations on campus were very selective. And the most selective organization was the one student organization that built web applications for non-profits.</p><p>There are other options if you are not a student. Code of America gives developers the opportunity to develop software for their local community. I was able to explore the Code of America groups in San Jose, Oakland, and San Francisco, and there were hundreds of projects that need volunteers. And there is a need for UI/UX design, frontend/backend development, database development, project management, etc. There is a role for everyone as long as you are willing to volunteer!</p><h3>Contributing to Open Source Projects</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*tyaDQyQNXZj3CBLI1wl8mg.jpeg" /></figure><p>There are many open source projects that do good for the world but need contributors. And these projects can be anything from creating social good to building technology to fight climate change. It is quite easy to contribute to the project if you can use some of the basic git commands to pull, merge, and push the project. I would recommend watching a tutorial on YouTube on contributing to open source projects. Personally, I used “opensustain.tech” to find open source projects that sustain stable climate, energy supply, and vital natural resources.</p><p>Doing good and creating an impact does not have to be in person. And programming makes this possible. I highly recommend that you learn to code and check out some of the resources that I recommended. Thanks for reading and let me know if you have any questions!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e294fc6a7a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 2 Week Process to learning AWS and System Design.]]></title>
            <link>https://bryantl-74329.medium.com/the-2-week-process-to-learning-aws-and-system-design-8d3f77032dc2?source=rss-62c468a48a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d3f77032dc2</guid>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[grokking]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[scale]]></category>
            <dc:creator><![CDATA[Bryant Le]]></dc:creator>
            <pubDate>Sun, 25 Oct 2020 02:23:01 GMT</pubDate>
            <atom:updated>2020-10-25T19:45:35.820Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learning AWS and System Design in 2 Weeks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*zMKT_FCfH7G06gANvGsFjQ.png" /></figure><p>I took the challenge! Build a full stack volunteer platform in ASAP? You got it! The one problem was that I was on my own with some frontend and backend knowledge that was learned separately. It was a combination of fear, excitement, and curiosity, but I started studying up on how the backend system for this platform should scale and how AWS works so that I could easily integrate my project with what is currently available.</p><p>It was the responsibility and ownership that drove me to diving deep into how everything works instead of simply using sqllite, developing everything locally, and pushing the complicated stuff to the tech lead such as deploying it on EC2, monitoring it, and configuring it. By the end of the first week, I finished experimenting with the different services on AWS and learning about the services and how to scale such systems.</p><p>Here were some of the best resources for learning these:</p><h3><strong>LinkedIn Learning Courses</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WC6e45H-SitT1KGGf546_Q.png" /></figure><p>AWS Certified Solutions Architect (Skim series) helped me grasp the different services available on AWS. This is 9 course series and it goes over more than you need to know, so I would highly recommend skimming through the course to get an overview of the different services available. Although this gives a good overview of Amazon Web Services (AWS), I would also recommend signing up for AWS and trying out the different services yourself. One of the biggest fears I had was being charged an insane amount for trying something out, but that unlikely would happen if you are just starting.</p><p>Architecting Big Data Applications is a two part series that helped me learn the different databases, batch processing services, and streaming services available as well as their pros in cons in different scenarios. I really liked that the course was entirely examples and how one would approach data engineering in different scenarios. I would highly recommend the course if you are considering data engineering.</p><h3>Designing Data Intensive Applications</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8NHuRzd_cmzFJwZBkqYxZg.jpeg" /></figure><p>(Extra) Grokking the System Design interview is a good introduction to system design for interviews. I don’t think that it is enough to pass interviews, but it gives a good outline of how interviews should go. I used this course for my interview with Robinhood.</p><p>Although Grokking the System Design interview was a good introduction to system design, it did not contain the level of intricacy to pass system design interviews. I think that the Designing Data Intensive Applications was great in terms of covering these details. The book went over not only how databases work, but also the different kinds of databases, details on replication and sharding, streaming and batch processing, tolerating failure, and more! I would highly recommend reading this book more than once if you have the time.</p><h3>Trying Out AWS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*LDpr6YiqvT_OHjkpgW6Tiw.jpeg" /></figure><p>As I mentioned earlier, I initially thought AWS was intimidating. Not only did the technology seem abstract and complicated at the same time, but also it felt risky to try out AWS with the risk that you might be charged for trying something without knowing the consequences.</p><p>But to learn something, you have to try it out. And even if you do make a mistake, you know that you will never make that same mistake again. I would also say that most of the services you will be using will probably not charge an insane amount of money. In fact, Amazon makes it incredibly easy for new users to use AWS without paying anything. If you are new to AWS, you get to use it for an entire year without having to pay a subscription fee. Although if you do use any complex services, you may be charged for them. But it is unlikely that a new user would use complicated services, and they would probably stick with using S3, DynamoDB, and Lambdas, and these three services are free if not incredibly cheap.</p><p>There’s no better way to learn AWS than simply trying it out or learning from developed examples. There is of course still a lot for me to learn about system design and using AWS, and I will update this article as I continue learning.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d3f77032dc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>