<?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 Trisha Pan on Medium]]></title>
        <description><![CDATA[Stories by Trisha Pan on Medium]]></description>
        <link>https://medium.com/@trishapan?source=rss-243b45587f32------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*J8mjsq9XYMh6e_yChUR4Gg.jpeg</url>
            <title>Stories by Trisha Pan on Medium</title>
            <link>https://medium.com/@trishapan?source=rss-243b45587f32------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 16:26:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@trishapan/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[Carbonic Acid as a Mechanism for Modulating Breathe]]></title>
            <link>https://trishapan.medium.com/carbonic-acid-as-a-mechanism-for-modulating-breathe-46455dae2672?source=rss-243b45587f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/46455dae2672</guid>
            <category><![CDATA[chemistry]]></category>
            <category><![CDATA[how-the-world-works]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[biology]]></category>
            <category><![CDATA[physiology]]></category>
            <dc:creator><![CDATA[Trisha Pan]]></dc:creator>
            <pubDate>Sun, 28 Jul 2024 20:49:19 GMT</pubDate>
            <atom:updated>2024-07-28T20:49:19.797Z</atom:updated>
            <content:encoded><![CDATA[<p>The reason why we breath, or respire, is because our bodies need oxygen. More importantly than this, however, is our need to exhale carbon dioxide, and in this article I share examples that help to reinforce this intuition.</p><h3><strong>Why We Breathe</strong></h3><p>We need oxygen so that our mitochondria can create ATP, the energy currency our body uses at a cellular level to survive. We also need to expel carbon dioxide so that our blood’s pH levels don’t become too low; carbon dioxide is the <a href="https://www.britannica.com/science/carbonic-acid">anhydride</a> that dissociates into carbonic acid, which increases the acidity and lowers the pH of blood. If our systemic pH is out of equilibrium, then the biochemical reactions that support homeostasis are thrown out of whack.</p><p>Interestingly enough, our bodies have evolved to use carbon dioxide levels, rather than oxygen levels, as the main mechanism and impulse for breathing. Our bodies still respond to low oxygen levels, albeit at more extreme and therefore peripheral thresholds.</p><h3>Low Oxygen, High Carbon Dioxide</h3><p>When you hold your breath underwater, your body experiences a build-up of carbon dioxide. Even if you keep blowing underwater bubbles, eventually you have no more air in your lungs to use as a medium to exhale your CO2. But how do we know that the discomfort of holding your breath — and the relief when you gulp in air — is primarily the result of an instinct to exhale carbon dioxide, and not to inhale oxygen?</p><p>We look to carbon monoxide poisoning.</p><h3>Low Oxygen, Regular Carbon Dioxide</h3><p>Carbon monoxide poisoning is the result of how carbon monoxide has a higher binding affinity than oxygen to the hemoglobin in your red blood cells. When oxygen can’t bond to your blood cells because the hemoglobin is already “occupied,” that oxygen can’t be carried to the rest of your body.</p><p>You’re still taking breathes at a normal rate and exhaling carbon dioxide at a normal rate, but the oxygen you’re breathing in isn’t reaching your body.</p><p>There’s an infamous <a href="https://www.reddit.com/r/legaladvice/comments/34l7vo/ma_postit_notes_left_in_apartment/">Reddit post</a> where the original poster (OP) thought his landlord was stalking him for <em>weeks</em>, but in his follow-up he reveals that <a href="https://www.reddit.com/r/legaladvice/comments/34m92h/update_ma_postit_notes_left_in_apartment/">he was a victim of carbon monoxide poisoning</a>.</p><p>Despite the OP’s low blood and brain oxygen levels, his impulse wasn’t to seek more oxygen because they were at sufficient levels for survival, and because his carbon dioxide levels were fine.</p><h3>High Oxygen, Regular Carbon Dioxide</h3><p>Oxygen toxicity, or hyperoxia, is when the body has too much oxygen and tissues and organs get oxidized. This can happen without your body noticing, until you start experiencing symptoms such as seizures or coughing.</p><p>The rate of exhaling carbon dioxide is normal, so the body doesn’t have an instinct to breath more or do anything to mitigate the hyperoxia.</p><h3>Regular/Low Oxygen, High Carbon Dioxide</h3><p>The only example of high levels of carbon dioxide I could find was hypercapnia, which typically happens with hypoxia (low oxygen levels). That means there’s an overall breathing problem that is affecting both oxygen and carbon dioxide levels. Hypercapnia typically tends to resolve itself because “the body can often balance carbon dioxide levels in the bloodstream and correct the symptoms by itself.” (<a href="https://www.medicalnewstoday.com/articles/320501#symptoms">source</a>)</p><h3>Conclusion</h3><p>I hope these examples help “intuit” using carbon dioxide over oxygen as the main mechanism for regulating breathing, despite how counterintuitive it may seem!</p><p>The takeaway is that as long as you can keep exhaling, you can prolong your survival instinct to breathe.</p><h3>Great Explanations from Other Places</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ct5vAzkHOL_gng7Z4Qd74A.png" /><figcaption>Response from <a href="https://qr.ae/p21KIj">Quora</a> to the question “<strong>I heard that your body doesn’t detect low oxygen levels, just high carbon dioxide levels. How does it react when it detects high carbon dioxide levels?”</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0WYh9yqXeWQhPCZgtCw7Q.png" /><figcaption>This great <a href="https://open.oregonstate.education/aandp/chapter/26-4-acid-base-balance/">article</a> from Oregon State talks about different acid/base regulatory systems in the body</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFGNRKfZF9c_wj2JicKAdg.png" /><figcaption><a href="https://www.unm.edu/~lkravitz/Article%20folder/Breathing.html">Source</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*DOBhcIn7tuPCOfO3WQLYuA.jpeg" /><figcaption>Original <a href="https://cbm.msoe.edu/images/contentImages/smartTeams/alumni/2008-09/WauwatosaWest.pdf">source</a> no longer available; Wayback Machine <a href="https://web.archive.org/web/20220120185913/https://cbm.msoe.edu/images/contentImages/smartTeams/alumni/2008-09/WauwatosaWest.pdf">archive</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WB4LL6_OEPMFTehPBnXO0A.png" /><figcaption>This <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3038919/#:~:text=Oxygen%20and%20carbon%20dioxide%20levels,direct%20a%20variety%20of%20behaviors.">paper</a> goes into molecular mechanisms for sensing oxygen and carbon dioxide in external environments for a variety of species</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46455dae2672" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Open a Folder in VSCode from Command Line Interface (CLI)]]></title>
            <link>https://trishapan.medium.com/how-to-open-a-folder-in-vscode-from-command-line-interface-cli-246d7052ec63?source=rss-243b45587f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/246d7052ec63</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Trisha Pan]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 23:17:26 GMT</pubDate>
            <atom:updated>2023-11-27T23:17:26.130Z</atom:updated>
            <content:encoded><![CDATA[<p>Did you know that you can navigate to within your folder with Terminal (what the CLI is called for Mac users), and type code . to open that folder in VSCode?</p><p>Every time I want to do this again, I struggle to find the right search terms for it. So I’ve decided to add the link to the instructions here:</p><p><a href="https://code.visualstudio.com/docs/setup/mac">Running Visual Studio Code on macOS</a></p><p>Summary:</p><ol><li>Cmd+Shift+P: “Shell command: Install ‘code’ command…”</li></ol><p>2. Close VSCode</p><p>3. Open Terminal, ls and cd into the folder you want to open</p><p>3. code . to open the entire folder in VSCode and voila!</p><p>Note: Can also type code nameOfFolder from parent directory.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=246d7052ec63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fun Poker Phrases]]></title>
            <link>https://trishapan.medium.com/fun-poker-phrases-66073441f5d6?source=rss-243b45587f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/66073441f5d6</guid>
            <category><![CDATA[fun]]></category>
            <category><![CDATA[terminology]]></category>
            <category><![CDATA[jargon]]></category>
            <category><![CDATA[poker]]></category>
            <dc:creator><![CDATA[Trisha Pan]]></dc:creator>
            <pubDate>Thu, 09 Feb 2023 01:36:01 GMT</pubDate>
            <atom:updated>2024-03-10T06:51:41.380Z</atom:updated>
            <content:encoded><![CDATA[<p>If you can’t shuffle chips with one hand, then use as much jargon as possible to intimidate your opponents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fQmoKQz33jeu1MkS.jpg" /><figcaption><a href="https://www.mypokercoaching.com/poker-chip-tricks/">Source</a></figcaption></figure><p>Chop — To split the pot during a tie. It’s usually a two-way chop but three-way chops and beyond are possible.</p><p>Kicker —The tie breaker when two people both have the same type of hand (for example both people have a pair of aces), but poker is won with the best 5 cards so you go down until you have a tie breaker.</p><p>Side pot — The max that someone can win when they go all in but other players bet further.</p><p>Wet board — When the community cards (the board) are interesting and could give people really good hands, for example if there’s a lot of one suit and someone might have hit a flush.</p><p>Dry board — When the community cards (the board) are pretty disconnected and don’t seem to help form a hand that’s more complex than a pair.</p><p>Backdoor [flush / straight / etc] — A [flush] that is completed with both the turn and the river cards.</p><p>Runner runner — Catching two required cards, one after the other, to complete a strong holding.</p><p>Gutshot straight draw — A drawing hand that needs a specific card in the middle of a straight to hit the straight.</p><p>Open-ended straight draw — A drawing hand that needs one of two cards to complete the edges of their straight.</p><p>Pocket rockets — Pocket pair of aces.</p><p>Jiggies — Pocket pair of jacks.</p><p>Two seven off-suite rule — A two and a seven that are different suits is the worst starting hand in Texas Hold’Em. Some house games have a rule where if you get to the flop and win with a two seven off-suite (even if everyone folds), everyone at the table has to pay you a dollar (or a small blind or big blind, whatever is chosen in advance). This rule can be customized.</p><p>Double board bomb pot rule — Every time the flop is all the same color, the next hand is a double board bomb pot, weee. This rule can instead be customized to happen on every hour.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66073441f5d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Air is Drier at Higher Elevations]]></title>
            <link>https://trishapan.medium.com/why-air-is-drier-at-higher-elevations-45fd068aa7de?source=rss-243b45587f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/45fd068aa7de</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Trisha Pan]]></dc:creator>
            <pubDate>Thu, 26 Jan 2023 01:10:37 GMT</pubDate>
            <atom:updated>2024-06-16T02:48:23.546Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is for you if you’re interested in understanding the science behind natural phenomena.</p><p>First, I’ll discuss how higher elevations result in lower atmospheric air pressure, and how lower air pressure means less moisture, or water vapor, in the air.</p><p><strong>1a. Higher Elevations = Lower Air Pressure</strong></p><p><strong>1b. Less Air Pressure = Less Water Vapor</strong></p><p>Then, I’ll talk about how higher elevations also results in lower temperature, which further discourages moisture in the air.</p><p><strong>2a. Higher Elevations = Lower Temperature</strong></p><p><strong>2b. Lower Temperature = Less Water Vapor</strong></p><h3>1a. Higher Elevations = Less Air Pressure</h3><p>If you’ve ever been driven up a really tall mountain for a ski trip, you might have noticed your bag of chips or your disposable water bottle bulging, and that sometimes pasta has separate cooking instructions for at higher elevations.</p><p>Well, the reason for this is reduced altitude pressure at higher elevations.</p><p>Pressure is the result of force divided by area, so for example one Pascal (a measurement of pressure) is by definition 1 Newton (a measure of force) applied over one square meter (a measure of surface area).</p><p>Atmospheric pressure is the result of air particles pushing down on you due to gravity.</p><p>At higher elevations, you have less air above you. Less air means less pressure pushing down on your meter by meter square, and as a result less overall air pressure at higher altitudes.</p><p>Meanwhile, as you ascend, the amount of air inside your non-rigid closed containers is the same, but because the pressure it exerts inside is now exceeding the pressure being exerted by the outside atmosphere, it bulges outward.</p><p>On a related note, water will boil at lower temperatures at higher elevations because the amount of heat energy needed for liquid water molecules to overcome the reduced atmospheric pressure pushing down on it has also been decreased. That’s why cooking times at higher elevations tend to be longer, because if “boiling water” is the indicator for a hot enough temperature (100C or 212F at sea level), the water will be at a lower cooking temperature when it boils sooner.</p><p>For comparison, water boils at a lower temperature of around 94.4C or 202F in Denver, Colorado, which is famously known as the mile high city for having an elevation of 5280 feet above sea level. (1 mile = 5280 feet, for those of us lacking in both a science education as well as the literary one necessary to deduce information from context clues).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yyAc0v4ece5Qsym80KAJ6Q.png" /><figcaption><a href="http://hyperphysics.phy-astr.gsu.edu/hbase/Kinetic/vappre.html">Source</a></figcaption></figure><h3>1b. Less Air Pressure = Less Water Vapor</h3><p>When on an alpine trip, you also might have noticed that your eyes feel dry, your hands get cut more easily, and that you’re more susceptible to bloody noses. The reason for this is because there is less vaporized water, or moisture, in the air.</p><p>But why exactly is there less moisture at higher elevations?</p><p>The composition of air is the <a href="https://www.rnceus.com/altitude/intro.html#:~:text=Even%20though%20the%20atmosphere%20becomes,molecules%20are%20just%20farther%20apart.">same</a> from sea level to 25 kilometers (or 15.5 miles) up, which means that even if the pressure changes, the proportion of water vapor remains constant — so long as the pressure isn’t so high that the water vapor condenses into liquid water.</p><p>Note: Past our atmosphere, there are basically no more air particles (nitrogen, oxygen, carbon dioxide etc. molecules) being suspended by Earth’s gravity: outer space is a near nothingness that is almost a perfect vacuum.</p><p>For those of you who learned the ideal gas law, you can see and also intuit that less pressure (<em>P</em>) also means less air (<em>n</em>) if everything else is constant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5BAwJXiH7X5freUtKxbifg.png" /><figcaption><a href="https://chem.libretexts.org/Bookshelves/General_Chemistry/Book%3A_ChemPRIME_(Moore_et_al.)/09%3A_Gases/9.12%3A_Dalton&#39;s_Law_of_Partial_Pressures">Source</a>. P = pressure, <em>n </em>= number of molecules in moles, R = gas constant, T = temperature, V = volume. Moles is a unit of measurement equal to Avogadro’s number, 6.022x10²³, and is similar to how a “dozen” is a unit of measurement equal to “12&quot;.</figcaption></figure><p>If there’s less air, there must be less of everything that it consists of, including moisture and even oxygen.</p><p>That’s also why air at higher elevations is described as “thin” and difficult to breath in. You can get altitude sickness in a place like Cusco, Peru (above 11,000 feet) if you don’t give yourself time to acclimate and exert yourself — your body isn’t able to inspire enough oxygen to fuel yourself since the air is less dense.</p><h3>2a. Higher Elevation = Lower Temperature</h3><p>As you go farther from the Earth’s surface into space, you have more and more volumetric “space.” For example, if you took a slice of earth, you would have more volume the further you are from the center because as your radius increases linearly, your volume increases cubically. (V = 4/3 * pi * r³)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*jxBmmJtgvSQp14-R.jpg" /><figcaption><a href="https://stock.adobe.com/images/earth-layers-structure-world-layers-slice-composition-annotated-globe-cross-section-solid-crust-mantle-outer-core-inner-core-with-atmosphere-thermosphere-stratosphere-troposphere-vector/285830636?prev_url=detail">Source</a></figcaption></figure><p>Even though heat rises, <a href="https://www.scientificamerican.com/article/if-heat-rises-why-does-th/">as air rises, it expands</a>. And as air expands, it cools down, which you can observe via the Joule-Thompson effect whenever you spray an aerosol and notice that the gas being rapidly expelled from high to lower pressure feels cold, and the same when you stick your finger on the valve of a car tire and let some air escape.</p><p>This expansive cooling is shown via our ideal gas law <em>PV=nRT</em>:</p><p>As Pressure dramatically decreases and so does Volume as gas is rapidly released to the outside, but n (# of molecules) and R (universal gas constant) are constant, then T also dramatically decreases.</p><h3>2b. Lower Temperature = Less Water Vapor</h3><p>If your room is ever dry, you can boil some water and increase the temperature of the air as well as the amount of water vapor in the air. Boiling water tends to be more effective than using an electric humidifier — where you might see the moisture condense on the floor below it.</p><p>Higher temperatures are able to hold more water vapor in the air because temperature is the measurement of the average kinetic energy of atoms or molecules in a parcel. If each water molecule has enough energy to free itself from the other water molecules really close by that are threatening to entrap it into liquid form with its hydrogen bonds, then it vaporizes into vapor.</p><p>On the converse, lower temperatures are able to hold a lower level of moisture content, and as a result the air will be less dry at the same pressure but at lower temperatures.</p><h3>Combining Everything Together</h3><h4>Less Air Pressure (1a) + Lower Temperature (2a) = Less Water Vapor (1b, 2b)</h4><p>If both scenarios result in less moisture in the air, and higher elevations result in both reduced air pressure as well as cooler climates, then it makes sense that the air is so dry in alpine biomes!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45fd068aa7de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linked List Cycle II: Understanding the math behind finding the start of a linked list loop]]></title>
            <link>https://trishapan.medium.com/linked-list-cycle-ii-understanding-the-math-behind-it-c047f420e09a?source=rss-243b45587f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/c047f420e09a</guid>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[math]]></category>
            <dc:creator><![CDATA[Trisha Pan]]></dc:creator>
            <pubDate>Mon, 18 Jul 2022 05:30:28 GMT</pubDate>
            <atom:updated>2022-08-09T16:10:45.784Z</atom:updated>
            <content:encoded><![CDATA[<p>The discussion and video solutions I found for <a href="https://leetcode.com/problems/linked-list-cycle-ii/">Leetcode Linked List Cycle II</a> either glossed over the math that explained why the solution worked, or had a bunch of equations that didn’t make intuitive sense to me.</p><p>So I asked my friend <a href="https://twitter.com/carlesgelada">Carles</a>, an AI scientist who enjoys working on math problems, for help. This article is a synthesis of our one-hour virtual white-boarding session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P58TDRJyyAiRaXyDjmkB7A.png" /><figcaption>White-boarding session results. x refers to node, i refers to number of steps, k is any constant, mu is the length of the straight part, and gamma is the length of the loop.</figcaption></figure><h3>Floyd’s Tortoise and Hare Algorithm</h3><p>We know that in order to tell <a href="https://leetcode.com/problems/linked-list-cycle/">whether a linked list has a cycle in it</a>, we use Floyd’s tortoise and hare algorithm: past the first node, if the “hare” pointer moving 2 nodes forward at a time eventually reconvenes with the “tortoise” pointer moving one node at a time, we have irreconcilable proof that our hare has lapped up to our tortoise (usually a few times by then to be honest), where the only way for that to happen past the starting point is in a loop.</p><p><em>[ insert image of a regular linked list, and one with a loop ]</em></p><p>As a result, if the hare ever lands on the same node as the tortoise, then it proves that our linked list has a loop.</p><p>Otherwise, if there wasn’t a loop, then the hare would hit the end of the list and run out of nodes to step through, making it impossible for the tortoise to ever catch up to the same node.</p><p>Now, this information is important. For the rest of this article, assume that we’re always working with a linked list with a loop in it, because now we want to prove how to calculate where the start of the loop is.</p><h3>Part 1: How Far Ahead The Hare Is From the Tortoise</h3><p>let <em>i</em> = number of steps the tortoise has stepped through after any number of iterations. <em>i </em>represents the index of a node.</p><p>In comparison to the the tortoise, the hare steps through nodes at a 2*<em>i</em> rate.</p><p>What this means is that at any given point, the hare is always <em>i</em> steps ahead of the tortoise, where <em>i</em> is the number of steps the tortoise has taken and 2*<em>i </em>is the number of steps the hare has taken. (2*<em>i - i = i)</em></p><p>At any given point also includes the point when the hare overlaps the tortoise: when they are at the same node even though the rabbit is always <em>i </em>steps ahead of the turtle.</p><p><em>[ insert video of tortoise and hare node in linked list ]</em></p><h3>Part 2: Older Brother And Younger Brother: Loopity Loops</h3><p>Now let’s think about the the length of the loop.</p><p>let <em>o</em> = length of the loop, or how many steps it takes to start at the beginning of the loop and end at the same point, the beginning of the loop.</p><p>We have an older brother and a younger brother. They both go through life at the same rate; they each step through one node, one step at a time, but older brother has a head start because he was born however many years earlier (including 0, in the case of twins).</p><p>We can think of the loop as adulthood because adult responsibilities never end.</p><p>For now, let’s ignore the straight part of the list and focus on just the loop. Say that we’re at the start of our loop, and we mark it as such. Younger brother hasn’t been born yet. Older brother takes a few steps from the beginning of the loop. Then, little brother enters the start of the loop.</p><p>S<strong>ince they’re both walking at a rate of one step per iteration, the ONLY way they’d be able to ever meet, ever, is inside the loop. </strong>Choose any point inside the loop for them to meet, and in order for that to happen, that must mean that older brother and younger brother must have matched nodes for the first time at the start of the loop. Maybe they have a child in the same year, but it’s older brother’s third child and younger brother’s firstborn.</p><p>[ <em>insert video of iterating thru just loop, or gif with START and END placards</em> ]</p><p>That means maybe the older brother has done 1 complete lap of the loop (<em>o</em>) by the time younger brother starts in the loop. Or 2 complete laps of the loop (2*<em>o</em>) by the time younger brother starts in the loop. Or 3 complete laps of the loop (3*o), etc. by the time younger brother starts in the loop.</p><p>And… this also works when we reintroduce the straight part of the list back into the picture.</p><p>[ <em>insert video of iterating thru loop incl straight part</em> ]</p><p>If we start younger brother on any part of the straight part of the list, and start older brother <em>o</em> or any multiple of <em>o</em> ahead of him, they meet…<strong>at the entrance of the loop!</strong></p><p>[ <em>insert video of iterating thru loop anywhere</em> ]</p><p>No matter how many factors of <em>o </em>the older brother’s head start is, the two brothers always meet anytime they’re both inside the loop: the loop is limitless and enduring, and as the limit of the number of iterations approaches infinity, the brothers convene so long as the older brother had a head start that was some multiple of <em>o.</em></p><h3>Part 3: Putting it All Together</h3><p>Always true:</p><p>At any given iteration, the tortoise is <em>i </em>steps in, the hare is always 2*<em>i</em> steps in, and consequently the hare is always <em>i</em> steps ahead of the tortoise.</p><p>Now, let 2*<em>I</em> be the specific number of steps the hare has made by the time it meets the tortoise on the same node in the loop, and <em>I </em>the specific number of steps the tortoise has made by the time they convene.</p><p>Instead of thinking of the hare as moving twice as fast as the tortoise to reach the convening node, we can also think of the hare as getting a ‘head start’ of <em>I</em> steps relative to the start of the list, and thenceforth moving at an amortized rate of one node at a time. You can also think of it as taking the integral of its speed advantage.</p><p>For it to be possible for them to meet within the loop, <strong>this must mean that the head start of <em>I</em> is some multiple of <em>o</em>.</strong></p><p>Well, <em>I</em> steps in is also where the tortoise ends up when the hare catches up to it.</p><p>The result?</p><p>So, we take the node location where the hare and tortoise convene. The tortoise’s location at the node <em>I </em>steps in now becomes big brother’s location.</p><p>And then… little brother starts from the beginning of the list, older brother starts from where the hare met the tortoise… and THEY MEET AT THE BEGINNING OF THE LOOP!!!!!</p><p>[ <em>insert video of example</em> ]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c047f420e09a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[20/20 in 2020: My LASIK Experience]]></title>
            <link>https://trishapan.medium.com/20-20-in-2020-my-lasik-experience-ebab2138455d?source=rss-243b45587f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebab2138455d</guid>
            <category><![CDATA[lasik-eye-surgery]]></category>
            <category><![CDATA[lasik-surgery]]></category>
            <category><![CDATA[medical-procedure]]></category>
            <category><![CDATA[vision]]></category>
            <category><![CDATA[lasik]]></category>
            <dc:creator><![CDATA[Trisha Pan]]></dc:creator>
            <pubDate>Wed, 13 Jul 2022 16:50:01 GMT</pubDate>
            <atom:updated>2022-07-13T16:50:01.365Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally posted on </em><a href="https://panemera.wordpress.com/2020/02/01/my-lasik-experience/"><em>February 1st, 2020</em></a><em>.</em></p><h3>MY LASIK EXPERIENCE</h3><p>I wrote this article for people who are seriously considering LASIK, which I highly recommend, and want to know exactly what to expect. As a result, this is a detailed account of my experience, including my rationale for going through with it. Jump to “Procedure Itself” if you want to read about the actual surgery.</p><p>My LASIK procedure was a lot easier than I ever could have expected, and it wasn’t terrifying all. I got mine done in January 2020, at the NVISION Eye Center in Torrance (Los Angeles), CA. Amanda — whom I met during my free consultation — is the reason why I chose to go with NVISION, and Dr. Lusby did an awesome job with the procedure. The hopes of this article is to alleviate any concerns or fears of friends and family who are considering it. *Casts spell: “Dispel Fear of the Unknown”*</p><p>Disclaimer: Individual results may vary. The information herein is not professional medical advice, and merely a recount of my own personal experiences, which happen to be very positive. It is also not meant to be prescriptive nor comprehensive — for example, I don’t mention how you shouldn’t squeeze your eyes the day of your surgery since it might dislodge the flap, etc. — so be sure to read and follow all instructions provided by your medical professional + medicine bottles.</p><h3>WHY I WANTED LASIK: PAIN POINTS</h3><ul><li>When I travel, I usually stay at hostels or Airbnbs due to cost. This means there might not be enough countertop space for my toiletries, and it’s usually a hassle ensuring a sanitary environment for putting in and removing my monthly contacts.</li><li>Having to bring glasses, prescription sunnies, contacts, contact case + solution, and a backup pair of contacts…takes up a lot of space. Some of you know I love shopping, and as a result own TOO MANY THINGS!!</li><li>When I go backpacking or camping, I usually don’t have a reliable place to wash my hands. This means I have to bring both my glasses and swap between the two: if it’s shaded, it’s too dark to see with my prescription sunnies, and without my regular glasses, I can’t appreciate the views.</li><li>I prefer wearing glasses over contacts since glasses don’t make my eyes as dry. But when I go skiing, I wear contacts so I can wear snow goggles…except, at higher altitudes, and with indoor heating, the air is dryer.</li><li>My glasses have smears and are always falling down, because my face is oily and I have an Asian nose bridge.</li></ul><p>Every time I got nervous about my upcoming LASIK procedure, I would reattribute my nervousness to excitement; I would mentally go over and envision the future state for each of my paint points above, to reaffirm my excitement.</p><p>I had scheduled my procedure in December 2019, for January of 2020 — so around 1.5 months in advance, because I wanted to use my 2020 FSA toward it. <em>Flexible Spending Account = non-taxable money that you can reimburse yourself with toward medical expenses.</em></p><p>During these 1.5 months until my surgery, every time someone asked if I was nervous, it triggered me to think of my future state. Eventually, that excitement (formerly nervousness) made me resolved — I couldn’t wait to not need glasses nor contacts!!</p><h3>IMPETUS FOR LASIK</h3><p>I have 2 close friends, and I knew a third person — a coworker — who had gotten LASIK done. All were around 20–25 when they got LASIK. Knowing it was possible for people my age to get LASIK, and hearing them answer all my questions about it, made it feel psychologically attainable for myself.</p><p>However, it wasn’t until the end of 2019, a year after talking to my third friend, when I finally decided to schedule my free LASIK consultation. The real reason why I was seriously considering it? I was on my last pair of contacts.</p><p>I was using the hydrogen peroxide cleaning solution for my soft hydrogel contacts so that I could wear each of my monthly contacts for 2 months, instead of 1 month. Ordering contacts in the USA requires an active prescription (&lt;1 year ago)……..and having a SoCal based Kaiser Permanente membership but living in NorCal meant that I had to USE THE PHONE, and not the kp.org website, to schedule all my NorCal appointments. (My mom works for Kaiser, I’m still under 26/can be considered a dependent, and she lives in SoCal: hence, the SoCal based membership).</p><p>So it was literally easier for me to consider LASIK than it was to try to schedule an eye doctor appointment, after 2 years of not having one. By the way, you’re supposed to get your eyes checked once a year. <em>Note to Kaiser Permanente: Please make it easier to schedule phone appointments. Also, every time I call, my MRN doesn’t get recognized, so I have to hear the error message thrice in order to be rerouted to a live operator.</em></p><p>Fortunately, I knew that my eyeglasses prescription between 2015 and 2017 hadn’t changed, at least in terms of SPH and CYL, and that even in 2019 my eyeglasses still worked fine. My Axis did change a little, which indicated that the extent of my astigmatism had changed.</p><p>I had received a coupon from the LASIK Vision Institute in May of 2019, so I scheduled a free consultation with them in December of 2019. To be honest, I didn’t have a good experience at their Oakland location. So I texted my high school friend and asked where she had gotten hers done, looked at the Yelp reviews for NVISION Torrance (fortunately very reassuring), and scheduled my free consultation for over winter break, when I would be back in Los Angeles with my parents.</p><h3>CONSULTATION AT NVISION EYE CENTER, TORRANCE</h3><p>Whew, no eye puffs at all. At NVISION Torrance, I was with Amanda the entire time for my free consultation. She measured my eyes, and since I was wearing eyeglasses, she also measured my eyeglasses. NVISION Torrance (aka Amanda) had way better bedside manners than LASIK Institute Center Oakland, which is why that, the Yelp reviews, and no pressure to make a commitment then and there made it such an easy decision to go with NVISION. Since I had developed a rapport with and had trust in Amanda, I chose to have my surgery scheduled at the Torrance location and not at the San Francisco center, even though I live in San Francisco.</p><p>I was eligible for LASIK because my cornea was thick enough for how much they needed to correct it by. My contacts prescription for my left eye is -2.75, my right eye -4.75, and both have astigmatism. When I asked what the correctable range was, it was surprisingly high to the point that when I got home, I googled how bad the eyesight of someone who’s legally blind is. I forget what the eligibility limits are but you’ll have to go to a consultation and see if your eye shape in general is eligible — don’t let an eyesight of -16 deter you from the free consultation part, at least.</p><h3>PRE-OPERATION CHECKLIST</h3><h3>MEASURING THE EYES</h3><p>After the free consultation to determine eligibility, and before the surgery itself, I needed to go in for a dilation and for my eyes to be measured again, so that those measurements could be used for the LASIK corrective surgery. I will henceforth refer to this appointment as my ‘dilation.’</p><p>Since contacts affect the shape of your eyes, and I have soft contacts, I couldn’t wear them starting 2 weeks prior to my dilation. If you wear rigid contacts, you might have to avoid wearing them for longer than 2 weeks. Reminder that this is not professional advice.</p><p>I scheduled my dilation for Thursday Jan 30, the day before my LASIK surgery on Friday Jan 31, 2020, so that my measurements could be as accurate and up-to-date as possible.</p><p>I did more measurements, similar to during the consultation; again, no eye puffs. My eyes continued to be dilated for around 6 hours before they went back to normal.</p><p>Leaving the dilation, when I put on my prescription sunglasses, I couldn’t read anything on my phone…EVERYTHING WAS BLURRY!!! At first I started freaking out, because I needed to drive to Cycle Gear before they closed, and I didn’t know how to get there. But don’t worry — at least for me, removing my prescription sunnies allowed me to better read the text and Google Maps on my phone just fine. I think it had something to do with how they said that dilating your eyes also relaxes some of your eye muscles.</p><p>Far-sighted viewing during the day was no issue with my prescription sunglasses while dilated. I had skiied without glasses the weekend before (so that I could wear my ski goggles), and realized as long as I knew where objects larger than a basketball were, and could read traffic and street signs, I could safely navigate.</p><h3>CONTURA ELIGIBILITY</h3><p>During my dilation, I also asked to test if I would be eligible for Contura. I wasn’t.</p><p>Contura is proprietary software that better/more precisely measures the contours of your cornea, and is optional. Because it’s proprietary, it’s an additional $600 to use it during the surgery. Since my eyesight was decently bad, and because I wanted to increase my chances of getting 20/15 instead of 20/20 vision, I went into my dilation hoping that I would be eligible.</p><p>Unfortunately, my eyes were too dry and I couldn’t open them wide enough (not sure if being Asian is related) to capture good enough images to use as data points, so I wasn’t eligible.</p><p>Fortunately, I saved myself $600. It turns out a decent number of patients at NVISION Torrance get 20/15 vision anyway, without Contura. Ultimately, I’m glad I didn’t spend the additional $600.</p><h3>OTHER PREPARATIONS PRIOR TO SURGERY</h3><p>Starting a week before the surgery, I needed to put preservative-free eye drops in each operating eye, around 4 times a day. Amanda gave me really good advice that I would not have figured out myself:</p><p>You can re-cap each eye drop capsule!!!!! No need to throw them away after one use. I got around 5–7 uses out of each.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*1LnR-PbMKEsLQuE7" /></figure><p>It might take some effort forcing the lid back on the first time, but once the hole has been stretched out, or if you reuse a cap from a previous capsule, recapping it is no problemo.</p><p>Starting a week before the surgery, I also needed to consume 2000 mg of fish oil a day. I was taking 1 pill a day until I realized that each pill is only 1000 mg…so make sure to read the instructions for your pills and to double check your dosage.</p><p>Starting a day before the procedure, I needed to incorporate the anti-inflammatory and the antibiotic drops, also 4x a day. Since ensuring I did this was pretty important, I sent alarms for myself. For these alarms, I used the ‘Harp’ ringtone, which was gentler and different from my wake up ringtone, ‘Playtime.’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/0*hBHcu6rrkO4-lCjb" /></figure><p>Because Kaiser Permanente is my healthcare provider and they’re weird about accepting prescriptions outside of the Kaiser Permanente network, I purchased my pre+post-op kit from NVISION. I did this the day of my free consultation (Dec 13, 2019), which was also the day I scheduled my LASIK surgery. The kit included all 3 drops and the fish oils, and it was $135. I received an itemized invoice for it so I could submit it to my FSA.</p><h3>DAY OF LASIK PROCEDURE</h3><p>Three main reasons why the procedure was so chill for me:</p><ul><li>I was more excited than I was nervous</li><li>Having a list of things to look forward to, and scheduling so far in advance helped a bit with that</li><li>I have no issues swallowing pills the size of a fish oil capsule</li><li>Btw: NVISION Torrance gives you Xanax and Ibuprofen to ingest right before the procedure. Both were smaller than my fish oil capsules</li><li>I have no issues with eye drops; I don’t flinch when self-administering eye drops without a mirror, nor when others put them in my eye</li></ul><p>If any of the above is not true for you, I highly recommend PRACTICING MAKES PROGRESS so that day of the surgery, you have one fewer thing for your nerves to get jumbled about.</p><p>During my free consultation, I was able to watch Amanda’s own LASIK video and hear her narration, so I didn’t have to ask about what to expect leading up to the surgery. I also asked a lot of questions about the procedure (how the laser tracked my eye movement and how it would shut off if for some reason I looked away), had faith in NVISION (and also that they would have thought of edge cases such as power outages or earthquakes), and my friend plus her father had gotten LASIK at NVISION Torrance.</p><p>After checking into the reception at 9:30am, I…:</p><ul><li>Waited around half an hour</li><li>Had my name called to go inside</li><li>Paid the $4,600 for my procedure with credit card</li><li>Set an alarm for 8:10am the next day, for my 1-day follow-up at 9:30am</li><li>Watched a video of Dr [redacted] explaining what to expect</li><li>Had anti-inflammatory and antibiotic drops administered to my eyes by someone else</li><li>Swallowed 1 Xanax and 2 Ibuprofens</li><li>Had numbing drops administered to my eyes by someone else</li><li>Met Dr. [redacted] in-person, who answered some of my questions and described the procedure to me, which I will describe in a bit</li><li>10:45am, Got moved to a comfier waiting room, where they put a blue disposable medical cap on my head (my hair was already in a ponytail)</li><li>Here I passed out for 30 minutes. I was super tired as a result of not being a morning person + the Xanax</li><li>Got called into the operating room, where I lied down</li><li>Was reminded of important instructions: Keep your eye on the green dot, and open both eyes when told to open; close both eyes when told to close</li><li>Had cotton pads placed above my ears to prevent drops from getting into my ears</li><li>By noon, I was back in the car! My mom drove me to and from the surgery</li></ul><p>During my free consultation, Amanda had shown me a video of her procedure and described what was going on, so being able to match that with the things I was seeing above my eyeball in the operating room did a lot to placate my desire to understand what was going on. Feel free to ask for a narrated video of the process during your free consultation if they have one available.</p><p>They operate on your right eye first, then left. This was fortunate for me because I’m right eye dominant, and it’s easier for my right eye to focus on things. The other eye is covered with something so that you’re only seeing out of one eye at a time during the procedure.</p><p>During the entire time, the doctor also lubricates your eyes not with eye drops, but instead by touching it with a little tool that has eye drop solution on of it.</p><h3>PROCEDURE ITSELF: CREATING THE FLAP</h3><p>To start, they press a device on top of your operating eye that perforates your cornea with little air bubbles, using a laser. The perforation is to allow the doctor to lift the corneal flap out of the way. At this time, your operative eye sees black and some twinkly blue lights.</p><p>All you feel is pressure because your eyes have been numbed, and because the device creates a vacuum suction seal around your eye to prevent it from moving. You still try to look as straight as possible, which was difficult for me since I had no visual reference point for my eye to focus on.</p><p>Good news is that because of the suction, your eyeball is pretty much stuck to the device.</p><h3>PROCEDURE ITSELF: RESHAPING THE CORNEAL TISSUE</h3><p>I had to focus on the center of the green dot, which also tracks your eye movements. Sometimes it gets fuzzy and larger, other times it’s crisp and smaller. This is when the excimer laser resurfaces your corneal tissue.</p><p>If for some reason you were to look away, the machine would shut off and everything would have to be restarted.</p><p>There’s also a weird smell when your corneal tissue is being resurfaced. The second time it happened, i.e. with my left eye, it reminded me of crispy fried chicken. I really didn’t want to find the smell of my burning cornea appetizing, because…GROSS, so I forced myself to think of something else.</p><h3>PROCEDURE ITSELF: EYES WIDE OPEN</h3><p>Each eye only takes around 3–5 minutes. It was quicker than I thought, and I had no issues with not blinking — there are forceps that prevent your eyes from blinking, so all you have to do is relax. The Xanax, lying down, and looking at the green dot in the distance helped.</p><p>The only time I twitched was with my left eye, and I think it’s because I focused on what was right in front of my eyeball instead of looking into the distance, at the green light yonder. *insert Gatsby reference here.*</p><h3>DAY OF: RIGHT AFTER THE SURGERY</h3><p>They added eye shields to my face, and I got a photo with Dr. [redacted] which I’ll receive later. On top of the eye shields, they put on the curved sunglasses they had given me that day, and I also received 2 sleeping pills. I offered me another Xanax because I was able to walk in a straight line after the first one, and I took it. After my second Xanax, I needed my mom’s help to maintain my walking balance.</p><p>My eyes had generated mucus so when I opened my eyes, my eyelashes were stuck to my face, meaning I couldn’t open my eyes all the way, and I also couldn’t smile that much since I didn’t want my cheek movement to tear my eyelashes off. Until the next day, I didn’t realize the stuck eyelashes was a result of my own eye mucus, and not something they had administered for my own healing process.</p><p>They told me not to squeeze my eyes shut, to keep my eyes closed for at least 5 hours since my eyelids would act as bandaids, and to avoid reading or looking at things close up. I also couldn’t shower. But I was able to eat lunch and watch a bit of TV, and all of that day, I didn’t respond to anyone on my phone and only made video (as opposed to text) updates for my Close Friends on Instagram.</p><p>After my mom drove us home, I wolfed down my lunch, then fell asleep for 5–6 hours. Every now and then, my eyes felt like they were burning so my eyes would tear up, and the tears would make things a little better. Then I woke up to the smell of food, ate dinner (moreso out of boredom rather than hunger), and then took a sleeping pill to help me fall asleep.</p><h3>1 DAY AFTER THE SURGERY</h3><p>Since the clinic couldn’t be sure whether my vision would be fit for driving, my mom drove us to and from my 1-day follow-up on Saturday, Feb 1, 2020 at 9:30am. I recognized some of the patients there from the previous day. Only my left eye felt like it was burning every now and then, at which point it would tear up and things would feel better (an improvement from the night before, when both eyes were tearing up).</p><p>They took off my eye shields, wiped the mucus off my eyelashes and told me that it was my body that had generated it, and administered eye drops.</p><p>They checked my eyes: my eyesight will fluctuate for around 3–6 months, but at the time I was almost 20/20 in each eye, and almost 20/15 with both eyes. They told me I could now shower, and then sent me home, reminding me to wear sunglasses.</p><p>At this point my left eye had improved, so with the eye shields gone, I was able to preemptively add lubricating eye drops whenever I felt that my left eye was going to feel like it was burning.</p><p>For the next 7 days, I have to add eye drops 4 times a day (antibiotic, anti-inflammatory), the lubricating ones as needed (I’m noticing it’s around once every hour), and continue consuming the fish oil capsules until I’m done with the bottle. At my 1-week post-op they’ll determine whether I still need to take the antibiotic or anti-inflammatory drops.</p><p>During the 1-week, I’ll also be sure to remind them how my 1-month follow up is currently scheduled for in San Francisco, because almost everyone at NVISION Torrance has expressed concerns that the SF location is either already closed, or might possibly close lol.</p><h3>1 WEEK AFTER THE SURGERY</h3><p>Day 2: Eyes aren’t that dry! I’ve only had to lubricate once every 2 hours, as opposed to once an hour.</p><p><em>It’s still the day after the surgery, so I’ll update this as needed. But the scary part is over — knowing what to expect during the surgery itself!!</em></p><p><em>If you’re considering LASIK, I recommend writing down my name as a referrer since when I wrote down my friend’s name, I (as the new patient) got a discount for having been referred by her.</em></p><h3>9 MONTHS AFTER THE SURGERY</h3><p>I haven’t updated this in a while, but I am so so glad I got LASIK!! I thought the biggest benefits would be when I was traveling. But actually, the biggest benefits have been the daily convenience of not having to deal with glasses or contacts. I’ve really loved not having to remove my contacts when I’m tired at night, nor keep track of where I put my glasses. It’s been amazing not having to deal with slippery glasses that I have to wipe with a lens wipe every few hours because my face is so oily. I also don’t have to plan out when I wear contacts based on the activities I’ll be doing or how many photos I’ll be taking or how many times I’ll be changing my clothes.</p><p>In terms of dryness, my eyes stopped being dry after a few months. Now, the only time they’re dry is when I wake up (and I haven’t been blinking aka lubricating my eyes in a while), or when the air is really dry!</p><h3>2 YEARS AFTER THE SURGERY</h3><p>I don’t notice any dryness anymore! Not even right after waking up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebab2138455d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React: How to format text within a string with ‘dangerouslySetInnerHTML’]]></title>
            <link>https://trishapan.medium.com/react-how-to-format-text-within-a-string-with-dangerouslysetinnerhtml-9bafcfeb2487?source=rss-243b45587f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bafcfeb2487</guid>
            <category><![CDATA[styling]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Trisha Pan]]></dc:creator>
            <pubDate>Tue, 27 Jul 2021 01:24:13 GMT</pubDate>
            <atom:updated>2022-08-09T16:10:11.453Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is for if you want to be able to pass in the string value “Hello, &lt;em&gt;world&lt;/em&gt;!” in React, and have the styling tags convert into actual styling, instead of showing up as text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*x364kve41UlmQm4y" /><figcaption>Customize your text, like in a build-a-bear workshop. Except more dangerous. Photo by <a href="https://unsplash.com/@marcosecchi?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Marco Secchi</a>.</figcaption></figure><p>Here’s a sample use case:</p><p>You have an ‘About the Team’ page and a modular component for displaying each of your 3 or 20 team members’ profiles, so that if you wanted to update the universal formatting, you’d only have to update it once. However, within the description for each person, you want to add line breaks or any other type of in-line styling, but not everyone’s description will have styling in the same places.</p><p>Below is a simplified vignette of what your code might look like. Below is 1. what your ‘profiles’ object might look like (where you update the information for each person), followed by 2. what your embedded React component might look like, followed by 3. what your render section might look like.</p><ol><li>‘Profiles’ object where you would update any information about each person:</li></ol><pre>const profiles = [</pre><pre>   {</pre><pre>      name: &#39;Elyssa&#39;,</pre><pre>      bio: &#39;Elyssa is a developer, writer, artist, and terrible picture-taker. She likes to draw, cook, and code. <strong>&lt;br&gt;&lt;br&gt;</strong>She would like to thank her cat Cricket, for emotional support, and DnD, for just generally existing.&#39;</pre><pre>   },</pre><pre>   {</pre><pre>      name: &#39;Trisha Pan&#39;,</pre><pre>      bio: &#39;Trisha is a software engineer with a background in management consulting, as well as chemical and biomedical engineering.<strong>&lt;br&gt;&lt;br&gt;</strong>In her free time, she enjoys painting, backpacking, and doing improv.&#39;</pre><pre>   },</pre><pre>   {</pre><pre>      name: &#39;Yasaman&#39;,</pre><pre>      bio: &#39;Yasaman is a software engineer in Los Angeles, CA with a passion for computer science and backend development. In her spare time, Yasaman enjoys reading books, listening to podcasts, and playing guitar&#39;</pre><pre>   }</pre><pre>]</pre><p>2. Embedded React component for displaying each profile:</p><pre>const profileCards = profiles.map((person, i) =&gt; (</pre><pre>   &lt;div&gt;</pre><pre>      &lt;h3&gt;{person.name}&lt;/h3&gt;</pre><pre>      {<em>/* Below allows us to escape HTML tags. */</em>}</pre><pre>      &lt;p <em>dangerouslySetInnerHTML</em>={{ __html: person.bio }} /&gt;</pre><pre>&lt;/div&gt;</pre><pre>))</pre><p>3. Rendering your profiles:</p><pre>return(<br>   &lt;div&gt;<br>      {profileCards}<br>   &lt;/div&gt;<br>)</pre><p>To see what the above code might look like with styling and additional information, check out <a href="https://github.com/trisha/sun-voyage-client/blob/main/src/components/About.js">this Github page</a> for the rest of our code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bafcfeb2487" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I got my Github handle, ‘trisha’]]></title>
            <link>https://trishapan.medium.com/how-i-got-my-github-handle-trisha-41c65bf9d47d?source=rss-243b45587f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/41c65bf9d47d</guid>
            <category><![CDATA[support]]></category>
            <category><![CDATA[naming]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Trisha Pan]]></dc:creator>
            <pubDate>Wed, 23 Jun 2021 18:24:56 GMT</pubDate>
            <atom:updated>2021-06-23T19:56:34.768Z</atom:updated>
            <content:encoded><![CDATA[<p>Github has a <a href="https://docs.github.com/en/github/site-policy/github-username-policy">name squatter policy</a>, which basically means that you’re not allowed to sit on a username without plans to actually use your account.</p><p>My friend <a href="https://twitter.com/yefim">Yefim</a> (pronounced yehfeem) was the one who told me about this, as well as directed me to this article by Lucis that was really helpful: “<a href="https://dev.to/lucis/how-i-got-the-github-username-of-my-dreams-5db5">How I got the Github Username of my Dreams</a>.”</p><p>That means that if you see an account with no public activity, there’s a chance it doesn’t have any private activity either, and it might be worth asking if that name can be freed up for you.</p><p>So, I filled out a support ticket:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A1iyzHUe_dysxAuVdRETQw.png" /></figure><p>18 days later, I got this response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jWKWzCg8emcrYlzxVsjHTw.png" /></figure><p>Afterward, I let Support know that I had deleted my additional account in question (turns out I only had one other), and sent the below response right afterward:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QNkswMY-0nltqiFKei3sbA.png" /></figure><p>5 days later, I got this response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jmBr-Y5dwcMakfQlNgOPjQ.png" /></figure><p>By that time, I had opened my ticket when I was in Los Angeles, was flown out to Philadelphia for an on-site, and was in Nashville for a layover on my flight back to Los Angeles. In each location, I had checked the <a href="https://github.com/trisha">https://github.com/trisha</a> URL at least once, for a total of maybe 5 times overall, just in case it got released before I was aware. However, I’m not sure if my traffic was the only contributor toward ‘a lot of activity around that username’ but it was still really cool that Github Support had that insight.</p><p>Otherwise, the only person who knew that I was going after ‘trisha’ was Yefim, and only one other friend knew that I was trying to change my Github handle from ‘trishapan’ to ‘something else’.</p><p>Comment below if you end up getting the name that you want, and good luck!</p><p>P.S. Expect Support delays during the below 2021 <a href="https://support.github.com/company-holiday-faq">dates</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iEhIW9sbBR_C2m6YxTLNYA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41c65bf9d47d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to host a personal site]]></title>
            <link>https://trishapan.medium.com/how-to-host-a-personal-site-github-pages-dce9b10316c1?source=rss-243b45587f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/dce9b10316c1</guid>
            <category><![CDATA[personal-site]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[website]]></category>
            <dc:creator><![CDATA[Trisha Pan]]></dc:creator>
            <pubDate>Thu, 17 Jun 2021 19:54:46 GMT</pubDate>
            <atom:updated>2024-06-16T01:27:59.993Z</atom:updated>
            <content:encoded><![CDATA[<p>Back before I had a personal website, I was overwhelmed with where to start. There were so many terms I didn’t understand, and so many services to choose from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4TLlisFk7XvtREAsS7C7Q.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@cgower?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Christopher Gower</a> on <a href="https://unsplash.com/@cgower?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The purpose of this article is to share how I set up my <a href="https://trishapan.com/">personal site</a> as well as the tech stack I used to do so. I hosted my site on Github Pages (part 1), added React.js to my site (part 2), and connected my Github Pages personal site to the custom domain name I bought on NameCheap (part 3). This article assumes that you know how to build a basic page in HTML — <em>index.html is all you need! </em>— and also how to use Github. If you don’t know what Github even is, feel free to check out this beginner-friendly <a href="https://trishapan.medium.com/intro-to-github-101-what-is-github-384b598c69a9">article</a> I wrote.</p><h3>Part 1: Github Pages</h3><p>If you’re familiar with Github, Github offers Github Pages. For every public repository you have, you have the option to display your browser-based site on Github Pages. This works out of the box if your code uses basic HTML, CSS, and JavaScript. All you have to do is go to the settings for your repository and turn it on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MMDEX7lVAda-a2Oh2qghGg.png" /><figcaption>Screenshot of the ‘Github Pages’ setting for a Github repository.</figcaption></figure><p>Example repository for a basic website: <a href="https://github.com/trishapan/fetch-dad-jokes-lab">https://github.com/trishapan/fetch-dad-jokes-lab</a></p><p>Corresponding Github Pages for that repo: <a href="https://trishapan.com/fetch-dad-jokes-lab/">https://trishapan.github.io/fetch-dad-jokes/</a> (Note: The reason why this redirects to trishapan.com/fetch-dad-jokes because of how I linked my Github Pages to a custom domain)</p><p>It takes the name of your repository, and adds it to the end of your username.github.io/ URL. But how do you modify what just ‘username.github.io’ looks like?</p><p>The answer: Create a repository titled ‘username.github.io,’ and then enable Github Pages for it! Here’s what my personal Github Pages <a href="https://github.com/trishapan/trishapan.github.io">repository</a> looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUTtKeQrU6IEFRmiiKhYkw.png" /><figcaption>Screenshot of <a href="https://github.com/trishapan/trishapan.github.io">https://github.com/trishapan/trishapan.github.io</a></figcaption></figure><p>To clarify: If you were to create a repository with a name that’s just your username, the Github Pages URL for that repository would be username.github.io/username. Your personal Readme would still show up on your profile page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A-o6xU6xdCfP1CqqD3w5wQ.png" /></figure><p>At this point, you should have a live Github Pages! Congratulations!</p><h3>Part 2: Adding React.js to your Github Pages</h3><p>This is only relevant if you want to be able to use React.js, a framework for building websites, to your Github Pages-hosted site.</p><p>Github Pages out of the box is unable to host applications built with React.</p><p>So I followed this tutorial in order to do so, which goes through how to download and configure the npm module gh-pages: <a href="https://dev.to/yuribenjamin/how-to-deploy-react-app-in-github-pages-2a1f">https://dev.to/yuribenjamin/how-to-deploy-react-app-in-github-pages-2a1f</a></p><p>Some additional notes that weren’t clear to me from the tutorial:</p><ul><li>In your Github Pages settings, make sure it points to gh-pages.</li><li>If you would like to make updates, commit your updates in your ‘main’ (or ‘master’) branch, then run npm run deploy to update your changes to your live site. If you have a custom domain name linked, you might have to re-enter it in your Github Pages settings for your repo.</li></ul><h3>Part 3: Adding a custom domain name to your Github Pages site</h3><p>I used NameCheap to purchase the domain name ‘trishapan.com’</p><p>I followed these instructions until step 4 for Github Pages: <a href="https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site">https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site</a></p><p>After completing step 4, I followed these instructions for NameCheap: <a href="https://www.namecheap.com/support/knowledgebase/article.aspx/9645/2208/how-do-i-link-my-domain-to-github-pages/">https://www.namecheap.com/support/knowledgebase/article.aspx/9645/2208/how-do-i-link-my-domain-to-github-pages/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XElwulJfaemO-3EL.png" /></figure><p>Some things I had to play around with were the domain name in my Github Pages settings. <a href="http://www.trishapan.com/">www.trishapan.com</a> didn’t work, but trishapan.com did:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O9celOOMKT4z1daX.png" /></figure><p>Another weird thing was how I had to ‘enforce HTTPS’ for my website to be linked to my domain name, but I’m not sure if that actually fixed anything, or if it was because my website was taking a long time to load. The Github Pages tutorial did say that it might take up to 24 hours for the initial connection.</p><p>I hope my notes are helpful to anyone else who’s having trouble connecting their React Github Pages to NameCheap; I definitely had to do a lot of Googling to figure out what sort of things were worth tweaking, as well as a lot of waiting between each change.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dce9b10316c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Motorcyclist Training Course (MTC) Experience]]></title>
            <link>https://trishapan.medium.com/my-motorcyclist-training-course-mtc-experience-3ffdb2259ab8?source=rss-243b45587f32------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ffdb2259ab8</guid>
            <category><![CDATA[mtc]]></category>
            <category><![CDATA[motorcycle]]></category>
            <category><![CDATA[dmv]]></category>
            <category><![CDATA[license]]></category>
            <dc:creator><![CDATA[Trisha Pan]]></dc:creator>
            <pubDate>Wed, 31 Mar 2021 22:29:21 GMT</pubDate>
            <atom:updated>2022-08-09T16:09:36.171Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally posted on </em><a href="https://panemera.wordpress.com/2020/02/12/my-ca-mtc-experience/"><em>Wordpress</em></a><em> on February 12, 2020.</em></p><p>This article is for anyone interesting in learning how to ride a motorcycle, or in using the Motorcyclist Training Course (MTC) toward the driving portion of their California motorcycle license test.</p><p>-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IcXKiplmcQC_DFASOy7K4w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jeremybishop?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jeremy Bishop</a> on <a href="https://unsplash.com/s/photos/motorcycle?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>On February 8th, a week after <a href="https://panemera.wordpress.com/2020/02/01/my-lasik-experience/">my LASIK surgery</a>, I took an MTC in Norwalk, CA. It was a 2-day course for $350, and they provide learner bikes. If you don’t have your own motorcycle helmets, they provide those as well. If you pass both the written and driving portions of the MTC, it waives the driving portion of the motorcycle license test, meaning that all you have to do is pass the DMV written test within a year of your MTC certificate.</p><h3>Day 1</h3><p>Saturday’s session was from 8am-4:30pm. Class started promptly at 8am, so I recommend arriving 15 minutes early the first day to fill out a few forms. Each day you have a classroom session, followed by a session out on the range. The range is where you ride: it’s a sectioned off portion of the parking lot that has paint markings on the ground specifically for MTC.</p><p>In the classroom, I highly recommend participating and asking questions. Yes, I’m that person; no, I’m not annoying about it — a few people from class ended up approaching me since they knew who I was as a result of my participation. Asking questions will also keep you from falling asleep, if you’re not a morning person like me. Also pay attention to statistics or write them down, since some of them will be on the written test.</p><p>What I wore or brought to MTC:</p><ul><li>Snacks</li><li>Full bottle of water (it can get hot out on the range)</li><li>Pens (although they have some in the classroom)</li><li>Leather motorcycle gloves (they have extra if you forgot yours. I recommend Cycle Gear for affordable riding gear)</li><li>Long sleeve top or jacket (I recommend your top be long-sleeve if it’ll be hot outside. Definitely layer)</li><li>Long jeans</li><li>Sturdy shoes that covered my ankles</li><li>Bag lunch — you have only 30 minutes for lunch (I brought a salad from Trader Joe’s, plus a fork)</li><li>Cash, since parking was $2 if cash, $2.25 if you paid with a credit card</li></ul><p>Our class was pretty much half fresh babies who had never ridden before, half experienced riders. Experienced riders included people who were practicing with their permit, who were riding dirty (aka without a license), or who hadn’t ridden in a while and wanted to get their motorcycle license again. Some of the experienced riders hadn’t passed the riding portion of the DMV motorcycle test, and didn’t want to risk not passing again since that would mean a longer wait for subsequent attempts.</p><p>There were 24 people in the classroom, and once we got out to the range, we were split into two groups of 12 each, 2 instructors per group. In some exercises, all 12 of us would be riding; in others, we were split into groups of 6 and 6, where 6 people would ride in our half of the parking lot, and the remaining 6 would line up and observe the active 6.</p><h3>Day 2</h3><p>Sunday’s session was from 8am-4:50pm. This 2nd day is when you take your written and driving exams in order to pass MTC, after which you receive a completion card that day that you can use at Cycle Gear for 15% off an entire purchase and which you can use at Harley Davidson to have the cost of your class reimbursed if you purchase a bike there.</p><p>But the real piece of paper that matters — if you pass — is the one they mail to you, which is what will allow you to get your California motorcycle license in conjunction with passing the DMV written exam. It basically replaces the riding portion of the motorcycle test.</p><p><strong>For the MTC written exam</strong>, you need 80% to pass. There were 50 questions, so you can miss 10. I marked which questions I was unsure of so I could go back to them later if I wanted to, and fortunately I only had 3, but I still deliberated on them since we still had a lot of time. Turns out my instinct was correct, and I’m glad I ultimately went with my initial responses. I was the first to turn in my exam and I got 100% correct, and apparently a perfect score is rare. My younger brother also got a perfect score (but I turned in my exam before he did, hah!!).</p><p>Someone who left the classroom toward the end told me that the people who didn’t pass the written test, they had the chance to change/update their answers for the ones they got wrong in order to pass. Looks like the MTC is fairly lenient on the books smart.</p><p><strong>For the MTC driving test</strong>, everything that they taught you on the range on day 2 is what they test you on. You can miss at most 20 points. I missed 13 points, my younger brother missed 12 points. He lost 6 points since he hit a few cones during the very first test, the weaving one, which was honestly a total fluke.</p><ul><li>I lost points for stopping past 8 feet from the cone, during the sudden stop test</li><li>I lost 5 points for not going fast enough during the cornering test. We were told to go as fast as safely possible, and for this test we had a practice corner right before our test corner. We weren’t told that we could get docked points for not going fast enough</li><li>I forget if I lost points in other parts/which other parts I missed points on, but you will lose points if you hit cones — so try to avoid that!!</li></ul><p>You automatically fail if you drop your bike during one of the tests, which from what I deduced, should mean that you’re ok if you drop your bike while waiting/in between them. (I totally dropped my bike the previous day when my engine stalled, because my clutch was out (not pressed in) when we were moving slowly in line.)</p><p>Out of the 12 people in my group, everyone passed except for 3 people. There was also a guy from a previous class who was retaking the riding test, and they let him practice on a motorcycle prior to his test, since we got to warm up on the bikes via our riding classes. Since you’re paying $350 for the class, everyone has the option to retake the riding portion another day, if they don’t pass that day.</p><h3>MTC Notes</h3><p>For my own documentation, some of my notes are below. 99% of the range notes we learned while in the classroom, but I included them in the range notes for if it was applicable to the training exercises we did in our &lt;20mph range conditions. Hot tip, a lot of the below information showed up on our MTC written quiz.</p><h3>Classroom Notes</h3><p><em>Medium doesn’t allow nested bullet points, which affects the logic and readability. So dumb. PLEASE FIX. As a result, please see ‘MTC Notes’ in my original blog post for classroom notes, as well as range notes, including a description of what countersteering is:</em></p><p><a href="https://panemera.wordpress.com/2020/02/12/my-ca-mtc-experience/">My California MTC Experience</a></p><h3>Taking the DMV Written Test for my Motorcycle License</h3><p>I was hoping to renew my driver’s license, get Real ID, and get my motorcycle license all in one trip to the DMV. However, because it was February and my Driver’s License was expiring in September that year, I couldn’t renew the expiration date —it was too early for an actual renewal, and the most I could do was get a new driver’s license (with Real ID) issued from the DMV with the same September 2020 expiration date, which was in 7 months.</p><p>But then…COVID shut everything down in March, I ended up renewing my driver’s license in the mail for I think it was $60, and then finally got Real ID and my motorcycle license a year later, in February of 2021. It’s the end of March now, so it’s been 2 months and it might be time to call the DMV to follow-up on my (missing?) licenses.</p><p>For the motorcycle written exam, I recommend studying the official handbook/pamphlet. I studied a lot via practice exams, but I would say the questions were fairly irrelevant. I still learned from them, so it wasn’t a waste of time, but the actual exam questions were word for word lifted from the official handbook. As a result, I failed my first two attempts and finally passed the written exam on my 3rd attempt.</p><p>Because I was also applying for a REAL ID, which counted as a driver’s license renewal, I had to take the written exam for my driver’s license as well. LOL I had no idea I had to do that, but fortunately I still ended up passing on my 2nd attempt, despite not knowing that I had to study for it as well. It was overall easier than my motorcycle written exam.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ffdb2259ab8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>