<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[A Peculiar Mixture of Chill and Effort]]></title><description><![CDATA[My personal Substack]]></description><link>https://peculiarmixtureofchillandeffort.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!ph1b!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6adacff-a1b0-4d51-8b1e-21c4a4c891e8_1280x1280.png</url><title>A Peculiar Mixture of Chill and Effort</title><link>https://peculiarmixtureofchillandeffort.substack.com</link></image><generator>Substack</generator><lastBuildDate>Sat, 23 May 2026 02:01:38 GMT</lastBuildDate><atom:link href="https://peculiarmixtureofchillandeffort.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[greg]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[peculiarmixtureofchillandeffort@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[peculiarmixtureofchillandeffort@substack.com]]></itunes:email><itunes:name><![CDATA[greg]]></itunes:name></itunes:owner><itunes:author><![CDATA[greg]]></itunes:author><googleplay:owner><![CDATA[peculiarmixtureofchillandeffort@substack.com]]></googleplay:owner><googleplay:email><![CDATA[peculiarmixtureofchillandeffort@substack.com]]></googleplay:email><googleplay:author><![CDATA[greg]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Pardon What's Happening Here]]></title><description><![CDATA[I&#8217;m sorry, still, I&#8217;m not sorry, yeah, I&#8217;m sorry]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/pardon-whats-happening-here</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/pardon-whats-happening-here</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Sat, 16 May 2026 10:33:52 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!SbCu!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Pardon my chattering teeth<br>I&#8217;m tense <br>I have tendencies<br>I&#8217;m kicking it over<br><br>Excuse the stacks of books behind the door<br>I love reading<br>No, I love collecting<br>I&#8217;m selling them<br><br>Sorry for my weird taste<br>I&#8217;m curious about dipping fishcakes into my soft drink<br>That&#8217;s it<br>I&#8217;ll do it quickly</p><div><hr></div><p>Kindly overlook my dog&#8217;s sudden presence<br>He&#8217;s mischievous<br>He&#8217;s restless<br>He&#8217;s finding a way to escape<br>All night, he&#8217;s been smelling a bitch in heat<br>I&#8217;ll put him back in the yard<br><br>Forgive my awkward movement<br>I had a recent surgery<br>Prosthetic hip implant<br>From shaking the sheets<br>And playing the kettlebells with dumb beats<br>I&#8217;m still getting used to it</p><div><hr></div><p><em>I won&#8217;t apologize for the rest</em><br>If the mess or noise bothers you, leave or ignore it<br>I&#8217;m figuring it out regardless</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!SbCu!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!SbCu!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg 424w, https://substackcdn.com/image/fetch/$s_!SbCu!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg 848w, https://substackcdn.com/image/fetch/$s_!SbCu!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!SbCu!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!SbCu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg" width="706" height="988.4" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:896,&quot;width&quot;:640,&quot;resizeWidth&quot;:706,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;r/Nirvana - a drawing of a person with wings&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="r/Nirvana - a drawing of a person with wings" title="r/Nirvana - a drawing of a person with wings" srcset="https://substackcdn.com/image/fetch/$s_!SbCu!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg 424w, https://substackcdn.com/image/fetch/$s_!SbCu!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg 848w, https://substackcdn.com/image/fetch/$s_!SbCu!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!SbCu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F088669cf-2c3a-47bf-96e0-33b533b704eb_640x896.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Art poster made by <a href="https://www.reddit.com/r/Nirvana/comments/o0r4dw/made_an_in_utero_poster_fun_way_to_practice/">mfk_draws</a></figcaption></figure></div><div id="youtube2-862K63LH6hE" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;862K63LH6hE&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/862K63LH6hE?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><h4>Just an author&#8217;s note</h4><blockquote><p style="text-align: justify;">I could say that this <em>poem </em>is influenced by a couple of things, like Nirvana&#8217;s <em>&#8220;All Apologies&#8221;</em> and observing people making polite apologies, though I&#8217;m uncertain. I can&#8217;t really say where the inspiration came from; the ideas just flowed. </p><p style="text-align: justify;">I&#8217;m sorry, I&#8217;m not sure. </p><p>And most apologies are not totally worthless; they&#8217;re mostly <em>unproven</em>. </p></blockquote><div><hr></div><p style="text-align: center;">Thank you for reading<br>Subscribe, comment, and share. It&#8217;s all free.<br>:)</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/pardon-whats-happening-here/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/pardon-whats-happening-here/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/pardon-whats-happening-here?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/pardon-whats-happening-here?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><div><hr></div><p>If that poem did something to you, here&#8217;s another:</p><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;eecfe1fd-d4ce-4941-942b-3777345912ca&quot;,&quot;caption&quot;:&quot;&quot;,&quot;cta&quot;:&quot;Read full story&quot;,&quot;showBylines&quot;:true,&quot;size&quot;:&quot;md&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;Midday Poise&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:433782858,&quot;name&quot;:&quot;greg&quot;,&quot;bio&quot;:&quot;Here to read and write&quot;,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7735f20d-0b31-4d8e-a5c8-63e93a903cb1_476x474.png&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2026-05-01T03:11:20.492Z&quot;,&quot;cover_image&quot;:&quot;https://substackcdn.com/image/fetch/$s_!FKgj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg&quot;,&quot;cover_image_alt&quot;:null,&quot;canonical_url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/midday-poise&quot;,&quot;section_name&quot;:&quot;Peculiaritorium&quot;,&quot;video_upload_id&quot;:null,&quot;id&quot;:195710344,&quot;type&quot;:&quot;newsletter&quot;,&quot;reaction_count&quot;:49,&quot;comment_count&quot;:36,&quot;publication_id&quot;:7541790,&quot;publication_name&quot;:&quot;A Peculiar Mixture of Chill and Effort&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/$s_!ph1b!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6adacff-a1b0-4d51-8b1e-21c4a4c891e8_1280x1280.png&quot;,&quot;belowTheFold&quot;:true,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div><p></p>]]></content:encoded></item><item><title><![CDATA[Sensing the Unspoken Corruption]]></title><description><![CDATA[Maybe a mantra to counter it]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/sensing-the-unspoken-corruption</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/sensing-the-unspoken-corruption</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Fri, 08 May 2026 11:04:53 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!hZFB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p style="text-align: justify;">For real, morning hatred shows up the moment that <em>person </em>enters the place (<em>and everybody could become that person</em>). On the surface, everyone looks fine, happy and having a mix of focus and ease in performing their work. But if you tilt and glimpse underneath, something about it feels rehearsed. Everyone present in the room is either just <em>good at acting</em> or <em>genuinely hypocritical</em>. Yeah, let&#8217;s basically keep it within those two sides.</p><p style="text-align: justify;">For an individual who has enough character or sensitivity to spot that the air is slightly off, that awareness alone makes everything less confusing. That counts as a fair notice. Never ignore it (<em>this is where most people mess up; we tend to get drunk and happy, then become impetuous</em>), as it helps you see the unpleasant mood in the place. </p><p style="text-align: justify;">And if you ever deadass spot the non-comforting actors, the hardcore hypocrites and know the deeper contradictions behind the place&#8217;s darker elements. Tell yourself this with conviction and haste:</p><p style="text-align: justify;"><em>&#8220;Whatever this really is, and no matter what happens, I won&#8217;t become genuinely corrupt.&#8221;</em></p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!hZFB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!hZFB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg 424w, https://substackcdn.com/image/fetch/$s_!hZFB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg 848w, https://substackcdn.com/image/fetch/$s_!hZFB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!hZFB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!hZFB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg" width="1080" height="1445" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1445,&quot;width&quot;:1080,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;CDN media&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="CDN media" title="CDN media" srcset="https://substackcdn.com/image/fetch/$s_!hZFB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg 424w, https://substackcdn.com/image/fetch/$s_!hZFB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg 848w, https://substackcdn.com/image/fetch/$s_!hZFB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!hZFB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9b926d1-ed64-42d7-9854-3c140119febf_1080x1445.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h6>Artwork by <a href="https://www.reddit.com/r/pics/comments/yxkrvl/a_painting_of_mine_hello_there_a_bit_darker_than/">Error404ArtistNFound</a></h6><div class="pullquote"><p>Life is tough either way. <br>Might as well do something about it. <br>Mundane. But undeniable.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p></div><p style="text-align: center;"><strong>The rest unfolds on:</strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/s/peculiaritorium&quot;,&quot;text&quot;:&quot;Peculiaritorium&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://peculiarmixtureofchillandeffort.substack.com/s/peculiaritorium"><span>Peculiaritorium</span></a></p><p style="text-align: center;"><em>Peculiaritorium </em>is about me making sense of reality and discovering its friction points, and if I&#8217;m successful, it outgrows my outdated perspective, and maybe yours too. Yet sometimes, it doesn&#8217;t outgrow my perspective so much as complicate it, stretch it, twist it or refuse to resolve it at all&#8230;and maybe yours too.</p><p style="text-align: center;">:)</p><div><hr></div><p style="text-align: center;">Thanks for reading.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/sensing-the-unspoken-corruption/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/sensing-the-unspoken-corruption/comments"><span>Leave a comment</span></a></p><p style="text-align: center;"></p><p style="text-align: center;"></p><p style="text-align: center;"></p><p style="text-align: center;"></p>]]></content:encoded></item><item><title><![CDATA[Midday Poise]]></title><description><![CDATA[Poise chosen, again]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/midday-poise</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/midday-poise</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Fri, 01 May 2026 03:11:20 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!FKgj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p></p><div class="native-audio-embed" data-component-name="AudioPlaceholder" data-attrs="{&quot;label&quot;:null,&quot;mediaUploadId&quot;:&quot;d30311c1-2a8b-4c44-8139-b1e65e337282&quot;,&quot;duration&quot;:156.70857,&quot;downloadable&quot;:false,&quot;isEditorNode&quot;:true}"></div><p style="text-align: center;">My midday drift with <strong>Title Fight</strong> ^</p><div><hr></div><p>At midday, I hold out for the real thing. <br>Subduing <br>my memories,<br>a focused, <br>steady headspace&#8230;<br><em>Patiently </em>waiting.</p><p>Still, shit in my mind repeats.<br>Yet so I return to face,<br>and erase it. <br>Circling up;<br>drifting high and away.<br>Then again,<br>it weirdly<br>materializes <br>abruptly.</p><p>Strange as it seems, still, I feel real.<br>Painfully <em>alive</em>.<br>Reorienting.<br>It&#8217;s fine.<br>I relish. I love my<em> own time.</em><br>I choose poise.<br>I choose to become unfazed.<br>I choose to become real.</p><p>I&#8217;m being real. You think I cast myself away?<br>Even in red, <br>I find soothe,<br>and style<br>in being by myself.<br>I know I&#8217;m never blue, never gray&#8212;<br>I&#8217;m just drifting my own way.<br><em>Maybe&#8230;</em><br><em>Yeah</em>, I&#8217;m simply holding out for the real thing. </p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!FKgj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!FKgj!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg 424w, https://substackcdn.com/image/fetch/$s_!FKgj!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg 848w, https://substackcdn.com/image/fetch/$s_!FKgj!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!FKgj!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!FKgj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg" width="726" height="904.096875" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:797,&quot;width&quot;:640,&quot;resizeWidth&quot;:726,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;painting&quot;,&quot;title&quot;:&quot;painting&quot;,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="painting" title="painting" srcset="https://substackcdn.com/image/fetch/$s_!FKgj!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg 424w, https://substackcdn.com/image/fetch/$s_!FKgj!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg 848w, https://substackcdn.com/image/fetch/$s_!FKgj!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!FKgj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F087a6076-b822-4b6c-bcff-394d4e54c5a8_640x797.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Art by <a href="https://www.reddit.com/r/painting/comments/ays112/this_is_the_painting_that_never_ends/">hyjfug7nfj</a></figcaption></figure></div><div><hr></div><p style="text-align: center;">Thank you for reading :) <br>And it&#8217;s the usual process :)</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/midday-poise/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/midday-poise/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/midday-poise?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/midday-poise?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p>&#169; A Peculiar Mixture of Chill and Effort, 2026. All rights reserved.</p>]]></content:encoded></item><item><title><![CDATA[The Tempest and the Zombie ]]></title><description><![CDATA[Another fumbling love letter]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/the-tempest-and-the-zombie</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/the-tempest-and-the-zombie</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Sat, 25 Apr 2026 03:11:44 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!keGB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pYlt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F41f2ccd4-faea-40ab-b383-18aec6d952ac_640x896.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pYlt!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F41f2ccd4-faea-40ab-b383-18aec6d952ac_640x896.jpeg 424w, https://substackcdn.com/image/fetch/$s_!pYlt!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F41f2ccd4-faea-40ab-b383-18aec6d952ac_640x896.jpeg 848w, https://substackcdn.com/image/fetch/$s_!pYlt!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F41f2ccd4-faea-40ab-b383-18aec6d952ac_640x896.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!pYlt!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F41f2ccd4-faea-40ab-b383-18aec6d952ac_640x896.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pYlt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F41f2ccd4-faea-40ab-b383-18aec6d952ac_640x896.jpeg" width="725" height="1015" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/41f2ccd4-faea-40ab-b383-18aec6d952ac_640x896.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:896,&quot;width&quot;:640,&quot;resizeWidth&quot;:725,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Art&quot;,&quot;title&quot;:&quot;Art&quot;,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Art" title="Art" srcset="https://substackcdn.com/image/fetch/$s_!pYlt!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F41f2ccd4-faea-40ab-b383-18aec6d952ac_640x896.jpeg 424w, https://substackcdn.com/image/fetch/$s_!pYlt!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F41f2ccd4-faea-40ab-b383-18aec6d952ac_640x896.jpeg 848w, https://substackcdn.com/image/fetch/$s_!pYlt!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F41f2ccd4-faea-40ab-b383-18aec6d952ac_640x896.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!pYlt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F41f2ccd4-faea-40ab-b383-18aec6d952ac_640x896.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Created by <a href="https://www.reddit.com/r/Art/comments/1ixd41y/tempest_ascendingstorm_digital_painting_2025/">ascendingstorm</a></figcaption></figure></div><div><hr></div><p>Dear <em>Girlfriend</em>,</p><p style="text-align: justify;">I&#8217;ve always been finding a way into your head, to hypnotize you, so I can make you feel like you&#8217;re new again. But most of the time (probably every time) I attempt, it feels like a war against a <em>tempest</em>, busting my heart open and pinning me to the ground, leaving me absolutely devastated. Despite being depleted, I still foolishly force myself to drag and lift my flesh and bones, and am still unreasonably drawn to the next meet.</p><p style="text-align: justify;">It&#8217;s hard to make amends, it&#8217;s hard to carry sour hesitation and sweet sincerity at the same time, especially when everything feels shaking, crippling, and the day fades away too fast, like a broken hourglass cheated of its own sand. It makes me wanna say that <em>balance </em>is a scam and that <em>time </em>is indeed an illusion.</p><p style="text-align: justify;">As things pace and shuffle quickly, and as me keeping on trying, me going down hard and crawlingly get up repeatedly, it makes me also think I&#8217;ve already become a <em>zombie.</em> And maybe that&#8217;s what I&#8217;m looking like to you. Probably<em> </em>even zombi<em>er</em>. </p><p style="text-align: justify;">Zombie or just stubborn? Both? <em>Damn, I don&#8217;t fully know&#8230; fully feel?</em> I simply hate this resilient <em>thing </em>in me that won&#8217;t shut down. And at a weird angle, how the fuck does this <em>thing </em>tell me something so wrong and so right? You&#8217;re always saying all the wrong parts and the right reasons. And I&#8217;m saying the right parts for the wrong reasons? How does it become like this? Why the hell are we fond of swapping clarity and confusion?</p><p style="text-align: justify;">Your angry curses, your bitter obscenities, it slashes me deep. Every slash is like receiving the most violent rush of the wind; it goes beyond the flesh, beyond my reasoning, it waves my conscious soul out from my body. </p><p style="text-align: justify;">Am I already dead because of these repeated devastating blows? </p><p style="text-align: justify;">Am I <em>really </em>already a zombie? </p><p style="text-align: justify;"><em>I feel so..? I think so..?</em>  </p><p style="text-align: justify;">Part of me is already <em>dead, immortal. </em></p><p style="text-align: justify;">I long for better warmth. I favor better smiles. Not moans of pain and raspy breathing. <em>But how could I regain a warm body when the coldest wind continually blows, and darkness is persistently shouting?</em></p><p style="text-align: justify;">Crashing and stubborning. Zombifying. </p><p style="text-align: justify;">Still, <em>harsh </em>is an understatement.</p><p style="text-align: justify;">I guess this is what happens when the sweetest turn sour. Or maybe it was never sweet to begin with; it&#8217;s just a front, and sourness is the true taste underneath. Well, a storm seems calm from afar.</p><p style="text-align: justify;">Anyway, it&#8217;s weird to taste the <em>wind </em>like this. I prefer watching dogs stick their heads out of the car window, lick the air and drool freely, as they seem to enjoy it. I don&#8217;t know, perhaps this is just my tiny amount of warm sensation and bouncing zombie thought. Or maybe, it&#8217;s better to be a <em>dog </em>than a zombie&#8230; <em>Yeah. agree.</em></p><p style="text-align: justify;">Ssooouuurrrrghhly sweet,</p><p style="text-align: justify;">the <em>half-zombie boyfriend</em></p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!keGB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!keGB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png 424w, https://substackcdn.com/image/fetch/$s_!keGB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png 848w, https://substackcdn.com/image/fetch/$s_!keGB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png 1272w, https://substackcdn.com/image/fetch/$s_!keGB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!keGB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png" width="1456" height="1491" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1491,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;r/ProCreate - digital art selected for the #.&quot;,&quot;title&quot;:&quot;r/ProCreate - digital art selected for the #.&quot;,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="r/ProCreate - digital art selected for the #." title="r/ProCreate - digital art selected for the #." srcset="https://substackcdn.com/image/fetch/$s_!keGB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png 424w, https://substackcdn.com/image/fetch/$s_!keGB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png 848w, https://substackcdn.com/image/fetch/$s_!keGB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png 1272w, https://substackcdn.com/image/fetch/$s_!keGB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f67ab1d-158b-44d2-b4ac-98c96eb679d8_2929x3000.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Created by <a href="https://www.reddit.com/r/ProCreate/comments/1j3ea63/added_color_to_my_zombie_painting_from_yesterday/">DreamLearnBuildBurn</a></figcaption></figure></div><div><hr></div><p style="text-align: center;"><em>In the next meet, either a zombie or a dog, I&#8217;ll be biting hard. <br>You&#8217;ve been warned. HAHArr. Urrgh, wait, relax, zombie brain glitched.</em></p><p style="text-align: center;"><em>Thank you for reading. </em></p><p style="text-align: center;"><em>Subscribe, or comment, or share, all for free :)</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/the-tempest-and-the-zombie/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/the-tempest-and-the-zombie/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/the-tempest-and-the-zombie?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/the-tempest-and-the-zombie?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p style="text-align: center;"></p>]]></content:encoded></item><item><title><![CDATA[Parsimony is Usually Unbeatable]]></title><description><![CDATA[12 Lessons the day groovingly reminded me]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/parsimony-is-usually-unbeatable</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/parsimony-is-usually-unbeatable</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Tue, 21 Apr 2026 02:13:09 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!uJcN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><strong>Side murmur:</strong> <em> </em></p><p style="text-align: justify;"><em>Synaptic transmission </em>is how neurons send electrical signals to one another using chemical messengers (neurotransmitters) across tiny gaps (synaptic clefts). </p><p style="text-align: justify;">This is the basis of our thinking, memory, emotions, and movement. This process occurs rapidly across billions of neurons for every idea, feeling and action. It isn&#8217;t just happening in the brain, but throughout the entire nervous system.</p><p style="text-align: justify;">This plays an essential role in connecting to<em> The Source.</em></p><div><hr></div><p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!uJcN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!uJcN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg 424w, https://substackcdn.com/image/fetch/$s_!uJcN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg 848w, https://substackcdn.com/image/fetch/$s_!uJcN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!uJcN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!uJcN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg" width="1000" height="1000" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1000,&quot;width&quot;:1000,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;r/painting - Paintings I made inspired in neurons, with metallic acrylics.&quot;,&quot;title&quot;:&quot;r/painting - Paintings I made inspired in neurons, with metallic acrylics.&quot;,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="r/painting - Paintings I made inspired in neurons, with metallic acrylics." title="r/painting - Paintings I made inspired in neurons, with metallic acrylics." srcset="https://substackcdn.com/image/fetch/$s_!uJcN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg 424w, https://substackcdn.com/image/fetch/$s_!uJcN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg 848w, https://substackcdn.com/image/fetch/$s_!uJcN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!uJcN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F976ffec4-e022-4e09-8484-08d29e88d703_1000x1000.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><code>Painted by </code><a href="https://www.reddit.com/r/painting/comments/b6nubs/paintings_i_made_inspired_in_neurons_with/">nydialilian</a></p><div><hr></div><p>I.</p><blockquote><p>Smile at your frustrations. You can do that; realize it is a signal to interpret. This&#8217;ll lead to fighting your problems with less hate. </p></blockquote><p>II. </p><blockquote><p>You don&#8217;t just need silence, you need <em>grooving </em>silence. </p></blockquote><p>III.</p><blockquote><p>Writing makes one feel <em>zen</em>.</p></blockquote><p>IV.</p><blockquote><p>Always get what&#8217;s useful.</p></blockquote><p>V.</p><blockquote><p>Focused symmetry can shape harmony, but direction demands imbalance. </p></blockquote><p>VI.</p><blockquote><p>Keep your comedy sharp, because people who hear it will carry it home, repeat it, analyze it, and will still find themselves alone, smiling and chuckling.</p></blockquote><p>VII.</p><blockquote><p><em>Pray. YHWH.</em></p></blockquote><p>VIII.</p><blockquote><p>Wu wei</p></blockquote><p>IX.</p><blockquote><p>Three cups of coffee. That&#8217;s it &#8212; no more.</p></blockquote><p>X.</p><blockquote><p>Always mind your posture. </p></blockquote><p>XI. </p><blockquote><p>Listen to the Smashing Pumpkins. It&#8217;ll ease the pain, somehow. </p></blockquote><p>XII.</p><blockquote><p>Sufficient unto the day is the evil thereof</p></blockquote><div><hr></div><p style="text-align: center;"><em>Thank you for giving this a read.<br>The rest unfolds on:</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/s/peculiaritorium&quot;,&quot;text&quot;:&quot;Peculiaritorium&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/s/peculiaritorium"><span>Peculiaritorium</span></a></p><p style="text-align: center;">Peculiaritorium is about me making sense of reality and discovering its friction points, and if I&#8217;m successful, it outgrows my outdated perspective, and maybe yours too. Yet sometimes, it doesn&#8217;t outgrow my perspective so much as complicate it, stretch it, twist it or refuse to resolve it at all&#8230;and maybe yours too.<br>:)</p><p style="text-align: center;"><em>And if you&#8217;re into that, feel free to:</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/parsimony-is-usually-unbeatable/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/parsimony-is-usually-unbeatable/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/parsimony-is-usually-unbeatable?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/parsimony-is-usually-unbeatable?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p style="text-align: center;"></p><p></p>]]></content:encoded></item><item><title><![CDATA[Nonsense Travels Across Minds at the Speed of Light]]></title><description><![CDATA[What I&#8217;ve seen and felt from scrolling Substack]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/nonsense-travels-across-minds-at</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/nonsense-travels-across-minds-at</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Sat, 18 Apr 2026 01:51:11 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!2fED!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>There, the tension seems still to be growing. Well, it&#8217;s obvious, everyone sees this, and a lot have already voiced out. <em>Expected</em>.</p><p style="text-align: justify;">I feel there&#8217;s a stronger air of annoyance from people who don&#8217;t use AI toward those who use AI, especially in writing. <em>My take? </em>Artistry matters, always. It&#8217;s worth recognizing the content you&#8217;re putting out. Be mindful enough about it. Well, the role of the artist is to put something out from the unknown into existence. Something shaped by <em>personal </em>perception, imagination, and lived experience. </p><p style="text-align: justify;">When AI is relied upon heavily, there&#8217;s a risk of losing that personal artistic interpretation. Creating and expressing your <em>own </em>creative vision is inherently fulfilling, unlike what AI can easily parse, structure and generate. It&#8217;s something original and deeply personal, built through effort, feelings, and rationalizations. It&#8217;s not just about producing something satisfying in the moment; it&#8217;s about creating something out of your own taste that lasts, something that still feels meaningful when you&#8217;ve decided to put your fingers away from the keyboard (or pen from the paper? Yeah, don&#8217;t underestimate the mighty OG sword). Perhaps the beauty that came out of the struggle.</p><p style="text-align: justify;">Given that, the consequence I see is: <em>heavily AI-reliant writers don&#8217;t fully know or appreciate the message they&#8217;ve put out. The artist&#8217;s connection to the work is less attached, less powerful. It is less directly crafted. It is less read.</em></p><p>Upon deeper reflection, really placing myself in those writers&#8217; shoes (or pen?)&#8230; there&#8217;s this hollow feeling that creeps in and extends into all sorts of directions&#8230; a substance that isn&#8217;t fully formed?&#8230; a backbone that feels incomplete?&#8230; <em>a life half-lived?</em></p><p style="text-align: justify;">Being an artist, whatever niche or form it may be, it&#8217;s your job to stir something inside you, and it&#8217;s your role to reconnect people to what you have seen and experienced &#8212;something heartfelt or thrilling or freeing. And when you convey it in an excellent way that people can remember, then you&#8217;re successful. You&#8217;ve really put it into existence; it now stirs and <em>travels across minds.</em> To achieve this, you need to fully immerse yourself in your art and build a unique relationship with it. </p><p style="text-align: justify;">When the conversation is about AI, I always tell people that it&#8217;s <em>way better</em> to have AI than not to have it in this world. Simply because AI incredibly pushes evolution and innovation. Its efficiency and accuracy in providing information are splendid. Yet, on a human note, as living beings, I firmly believe that our core purpose and desire is to create. <em>To live is to create.</em> And when you create something that is entirely your own, something born fully from you, that&#8217;s indeed special. Pride may be hinted at, but I&#8217;m pointing at the healthy sense of joy and dignity through creation. </p><blockquote><p>&#8220;The desire to create is one of the deepest yearnings of the human soul.&#8221;</p><p> &#8212; Dieter F. Uchtdorf</p></blockquote><p style="text-align: justify;">Cool, rad and <em>legit </em>writers told me, <em>&#8220;Create more than you consume and create something that both you and your audience would go back to and read again and again.&#8221;</em></p><p style="text-align: justify;">Awesome writing tip. So there, hearing it and putting it into my heart, I started <em>courting </em>my sentences (in such a way that<em> I kind of lowkey compete with AI. HAHA. You fool</em>).</p><p style="text-align: justify;">But later, I found out that these legit writers also use AI. They embrace an AI-assisted workflow. They are already pro at writing, but they still adapt to AI. <em>Am I shocked? </em>No. Appreciating that, I&#8217;d say they know how the game really works. It&#8217;s both a matter of scaling their business and of polishing their writing techniques. They benefited from AI through its reliably fast and valid answers; in return, it essentially broadened their way of thinking and strategizing in both their business and writing. </p><p style="text-align: justify;">Well, I&#8217;d say they thoughtfully apply AI to their creative work, wherein their personal artistic imprint is still louder than what the AI has contributed to it. That&#8217;s how it&#8217;s meant to be, always.</p><p style="text-align: justify;">To be clear, this applies not only to writing (or business) but to every artistic form and intellectual work there is. I recently watched <a href="https://www.youtube.com/watch?v=Lb_1d68vx-g&amp;t=1006s">JRE #2479</a> with guests <em>Bob Lazar</em> &amp; <em>Luigi Vendittelli</em> (I&#8217;m late to the party on this episode, though). To give some context, Bob is an engineer and a physicist, and Luigi is a film director and producer. Essentially, Luigi created a film entitled <a href="https://www.youtube.com/watch?v=c3qBNo3PAjU">S4: The Bob Lazar Story</a>. It revolves around Bob&#8217;s pursuit of science, from building jet engines as a teen to working as a physicist at Los Alamos National Labs, where he worked at a classified site near Area 51 known as S4, and used Element 115 to reverse-engineer extraterrestrial technology. Yeah, <em>Bob the physicist </em>fuckin&#8217; rips. </p><p style="text-align: justify;">So, Joe asked, &#8220;<em>What was the technology that you guys used to recreate S4 in the film?&#8221;</em></p><p style="text-align: justify;">Luigi stated, &#8220;<em>The film was made with about 10% AI and 90% handmade CGI (Blender Software)&#8221;. </em></p><p style="text-align: justify;"><em>Boom! See! That&#8217;s an artist! </em>And I trust what Luigi has said. If in doubt, check it (it is in the early minutes of the show; click the embedded link above). </p><p style="text-align: justify;">Now, how do you think Bob reacted to the film when it was first shown to him? </p><p style="text-align: justify;">Slightly reworded just as the dialogue above, but still his voice: <em>&#8220;I was mind-blown</em>. <em>I felt Luigi downloaded the film from my brain</em>. <em>I felt like I was time-traveling back in the late &#8216;80s.</em> <em>It sent chills up my arms, and nostalgic tears welled in my eyes.&#8221;</em></p><p style="text-align: justify;">Yeah, <em>Luigi, the director/producer,</em> was indeed rippingly successful too.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2fED!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2fED!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg 424w, https://substackcdn.com/image/fetch/$s_!2fED!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg 848w, https://substackcdn.com/image/fetch/$s_!2fED!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!2fED!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2fED!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg" width="727" height="583.054" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:401,&quot;width&quot;:500,&quot;resizeWidth&quot;:727,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Pin by K V on Art projects | Bob lazar, Aliens history, Aliens and ufos&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Pin by K V on Art projects | Bob lazar, Aliens history, Aliens and ufos" title="Pin by K V on Art projects | Bob lazar, Aliens history, Aliens and ufos" srcset="https://substackcdn.com/image/fetch/$s_!2fED!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg 424w, https://substackcdn.com/image/fetch/$s_!2fED!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg 848w, https://substackcdn.com/image/fetch/$s_!2fED!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!2fED!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff474bcdf-6aa8-4a38-813a-4b9821767630_500x401.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p style="text-align: justify;"><code>Bob Lazar&#8217;s UFO sketch</code></p><p style="text-align: justify;">So I side-tripped to UFOs. Anyway, what we can appreciate about the artwork (film) is that we don&#8217;t need to rely on AI in a heavy or strict sense. Well, humans got pretty far without it, generation after generation. But we adapt to it as it solves certain problems at a scale we can&#8217;t match on our own. Machines and AIs are developed and configured to become adept at speed, precision and perplexity.</p><p style="text-align: justify;">Another relevant point to appreciate is that there are explicit human intentions and reasons for the existence of such advanced technologies today. Maybe when those inventors felt like they were having a hard time communicating, it was a challenge for them to stand in a line where the majority couldn&#8217;t relate. Or maybe they&#8217;re just having a bad day with people, so they decided to invent something out of that problem. Or just out of necessity.</p><p style="text-align: justify;">And, <em>life is too short to become rigid. </em></p><p style="text-align: justify;">The world itself expresses its own kind of life; it&#8217;s alive, it&#8217;s shaped by its own composition and the interplay of everything within it, both the living and non-living. Earth isn&#8217;t just a <em>rigid, imperfect sphere</em>; it spins, it revolves, it has its <em>own world</em>. So, as a resident, why would you consider being rigid on a planet that is constantly shifting? Isn&#8217;t that a sign of universal disrespect? </p><p style="text-align: justify;">(Do I need to add this? I don&#8217;t know. I got a friend who is. But sorry, flat-earthers. Sorry.) </p><p style="text-align: justify;">Well, anyway, Earth absorbs all our weirdness. The least we can do is to move. Best we can? Create art and save the planet. <em>To live is to create</em>, remember? </p><p style="text-align: justify;">You know what else is weird or maybe tricky?<em> </em>For the sake of the argument, I didn&#8217;t use AI in writing this. That said, it is essential to develop the skills to write first. <em>How do you do that?</em> Live, imagine, read, speak, explore and actually write it down &#8212; compose your own sentences without AI, but with lessons and felt experiences (subtle pun or rhetoric intended. Y&#8217;know, the <em>em dash</em>. I don&#8217;t know what to call this.)</p><p style="text-align: justify;">Afresh, willingly developing your writing skills first, before jumping into anything else, makes an exception. By doing this, you&#8217;re serving your artistic spirit as a writer; you prioritize the art and life of being and becoming naturally expressive. This is an elevated act for an artist. </p><p style="text-align: justify;">Become the kind of artist or writer who has the <em>discipline </em>to keep that <em>distinction </em>in check.</p><p style="text-align: justify;">Before we forget this, let me say: <em>how about also showing your work to others, too?</em> The traditional way. Ask them to critique it for improvements. This has always been ethically accepted with settled agreements. You know, there&#8217;s this thing called light ghostwriting. That came first before AI. </p><p style="text-align: justify;">Okay, again, for the sake of the trick and argument, <em>Nah, I use Grammarly in here. It automatically offered; I didn&#8217;t dismiss it (dismissed some, actually); I accepted. </em></p><p style="text-align: justify;"><em>But what did I really do here? Curious?</em> I&#8217;d say 10% AI, 90% human brainwork. </p><p style="text-align: justify;"><em>If you will, come on, please</em> give me a chance at writing and expressing. The ideas and words primarily came from my own thinking. I&#8217;ve read books, watched movies, listened to podcasts, interacted with people, interacted with my dog and birds and stray cats, experienced hardships and written journal entries nonstop. Damn. Forget that. I respectfully decline your guts. </p><p style="text-align: justify;">Setting jokes aside. Really, 10:90 is an excellent proportion, a good <em>writing</em> bar to set. Or are you already into that? Nonetheless, let&#8217;s flow with the world&#8217;s trajectory and bend without breaking.</p><p style="text-align: justify;">I got nothing to say anymore. I&#8217;m tired of explaining, too. Just re-read the paragraph before this. </p><div><hr></div><p style="text-align: center;"><em>I write things like this :) </em><br>And you&#8217;re invited to either:</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/nonsense-travels-across-minds-at/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/nonsense-travels-across-minds-at/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/nonsense-travels-across-minds-at?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/nonsense-travels-across-minds-at?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[Slow Heat and Patience Create the Crisp]]></title><description><![CDATA[Practices, practices]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/slow-heat-and-patience-create-the</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/slow-heat-and-patience-create-the</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Wed, 15 Apr 2026 02:40:26 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!57Ry!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><strong>i.</strong></p><p style="text-align: justify;">The guy&#8217;s shifty, even with that goofy surface. He averted disaster by turning his whole body 180, twisting his right wrist, and catching the arrow mid-air. That stunt was impressively fast and accurate. Is this really the same person as before? <em>The fat drunk? </em>The one who starts random nonsense to stir up random beef, all while boozing, yet still eyeing the <em>throne</em>? </p><blockquote><p style="text-align: justify;"><strong>Idea:</strong> <em>People fight over a throne. A drunkard stands out. The person who sits on the throne becomes a member of a notorious crew? </em></p></blockquote><p><strong>ii.</strong></p><p style="text-align: justify;">Why does it seem like <em>little</em> genuine compliments are so rare these days? Is it because our attention is fragmented, or have we settled into staying neutral? Maybe our deeper awareness created and demanded explicit reasons? I think it hurts the world and wastes your potential when a day passes without you even smiling or genuinely greeting at least a single person. Come on, just a <em>little</em>, at least one. </p><blockquote><p><strong>Idea</strong><em><strong>:</strong> Everyone&#8217;s playing it safe.</em></p></blockquote><p><strong>iii.</strong></p><p style="text-align: justify;">Everybody&#8217;s suffering, you and I included. So have fun anyway. <br><em>Already dead?</em> I was. I&#8217;ve been dead before because frustration killed me. <br>But realizations kicked in, and so did the humor.<br>I guess I&#8217;m back where I belong, and I&#8217;ve been away too long. </p><blockquote><p><strong>Idea:</strong> <em>Everybody&#8217;s Sufferin&#8217;. Honor is all we know album.</em></p></blockquote><div><hr></div><div class="native-audio-embed" data-component-name="AudioPlaceholder" data-attrs="{&quot;label&quot;:null,&quot;mediaUploadId&quot;:&quot;af71492e-60ca-45c7-9c98-fc2fa0082daa&quot;,&quot;duration&quot;:179.85306,&quot;downloadable&quot;:false,&quot;isEditorNode&quot;:true}"></div><p style="text-align: center;"><em>That&#8217;s <strong>Rancid</strong>. <br>Less suffering when you subscribe</em> :)</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><p><strong>iv.</strong></p><p>I&#8217;m blessed, though I&#8217;m stressed<br>Not dense, just quietly tense<br>Starship drifting in outer space<br>Here I am, carrying a flicker of grace<br><br>Around the moon<br>Not landing upon<br>Myself against the viewport<br>As the eclipse set on<br><br>The ship slows. The moon goes into silhouette. <br>Stoked. Gasped. Steady. Ciggarette?<br>Yeah, aliens all gone.<br>Astronaut footprints, none.</p><blockquote><p><strong>Idea:</strong> <em>Fake moon landing and Artemis II. And what if it&#8217;s my first time going to space?</em></p></blockquote><p style="text-align: justify;"><strong>v.</strong> </p><p style="text-align: justify;">Chatting over a cross joint with your <em>crush </em>levels everything out socially. <em>I&#8217;m</em> not trying to impress. <em>She&#8217;s</em> not being the first to guess. <em>Both </em>not sounding mysterious. <em>We&#8217;re</em> just cool and collected. It feels easy. And it&#8217;s always a good date idea, especially for a first date.</p><blockquote><p style="text-align: justify;"><strong>Idea:</strong> <em>Pineapple Express: The Trifecta, Suburban California.</em></p></blockquote><p><strong>vi.</strong> </p><p><strong>I&#8217;m back alive.</strong></p><p>I went out, drank too much and stumbled home.<br><em>The road back?</em> Forgotten.<br>I don&#8217;t know which path I took. Just sure that I&#8217;m 60 <em>miles </em>away. <br>I felt like I teleported. Being drunk makes everything feel possible, though.</p><p>I woke up to the aftermath. <br><em>My cold room was thick with the smell of my own mistakes.</em><br><em>Hangover hitting. <br></em>And now reality is getting louder, <em>stinging</em>.</p><p><em>That yesternight version of me?</em> Done.<br>No more reckless lapses. Move on, punk.<br>Force discipline. No room for lousy moods. <br>Drink water. Hit the shower. Clean your room. </p><p>Thank God, I&#8217;m back home and alive.</p><blockquote><p><strong>Idea: </strong><em>Some day in 2022. Early journal writing style. </em></p></blockquote><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!57Ry!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!57Ry!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png 424w, https://substackcdn.com/image/fetch/$s_!57Ry!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png 848w, https://substackcdn.com/image/fetch/$s_!57Ry!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png 1272w, https://substackcdn.com/image/fetch/$s_!57Ry!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!57Ry!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png" width="1280" height="874" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:874,&quot;width&quot;:1280,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2149343,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/193044471?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!57Ry!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png 424w, https://substackcdn.com/image/fetch/$s_!57Ry!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png 848w, https://substackcdn.com/image/fetch/$s_!57Ry!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png 1272w, https://substackcdn.com/image/fetch/$s_!57Ry!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21ab2f2d-ee14-4c5f-8ee4-e8f68805facc_1280x874.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p style="text-align: center;">Drinking too much gives you the power to teleport. <br>If you&#8217;ve ever teleported home, too, tell me.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/slow-heat-and-patience-create-the/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://peculiarmixtureofchillandeffort.substack.com/p/slow-heat-and-patience-create-the/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/slow-heat-and-patience-create-the?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://peculiarmixtureofchillandeffort.substack.com/p/slow-heat-and-patience-create-the?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p>]]></content:encoded></item><item><title><![CDATA[Boregasm]]></title><description><![CDATA[I won&#8217;t say it&#8217;s out of inspiration or out of depth; it&#8217;s just out of boredom. I was bored, so I wrote. Really?]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/boregasm</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/boregasm</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Mon, 13 Apr 2026 08:50:01 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!5cud!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3>Reaching Climax</h3><p style="text-align: justify;">Question out of nowhere: What does <em>reaching climax </em>mean to you?</p><p style="text-align: justify;"><em>&#8220;Eargasm&#8221;</em>. That&#8217;s how it registers to someone when reaching a climax.</p><p style="text-align: justify;"><em>&#8220;Almost extremely sensitive?&#8221; </em>That&#8217;s another, more precise way to put it.</p><p style="text-align: justify;"><em>&#8220;Every nerve lit up.&#8221; </em>Another.</p><p style="text-align: justify;"><em>&#8220;Absolute Cinema&#8221;</em>. And that&#8217;s yet another way it registers.</p><p style="text-align: justify;">So different definitions, different mental postures, different expressions. There&#8217;s something I enjoy about asking people a question with no agenda. Yet I also find it interesting how a simple question can start wholesome and innocent, but as people explore it a little further, it gradually turns into something sexually undertoned, or maybe subtly suggestive.</p><p style="text-align: justify;">It&#8217;s funny because I started asking out of innocence and honesty, and now I&#8217;m flirting? HAHA.</p><p style="text-align: justify;">But really, I wonder if that question says more about the words, or about us.</p><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><p style="text-align: center;"><em>Subscribe for free if you&#8217;re into that </em>:)</p><div><hr></div><h3>Fragments Of Others That Became Part Of My Thinking</h3><ul><li><p><em>Life isn&#8217;t a race.</em></p></li><li><p><em>I&#8217;m building wealth for my nieces and nephews, not for myself.</em></p></li><li><p><em>Maybe nothing good is happening in my life because I&#8217;m the good thing happening in everyone else&#8217;s.</em></p></li><li><p>Does blue smell better than the number 12?</p></li><li><p>Which would you choose: becoming a member of the Freemasons or joining a powerful underground hacker collective?</p></li><li><p>Dreams or practicality? <em>Is it a false fight?</em></p></li><li><p>Yesterday&#8217;s notorious assassin is today&#8217;s apple martini&#8211;drinking overlord.</p></li><li><p>Die like a punk song outro. <em>Vibrant, then lifeless, but still vibrant.</em></p></li><li><p>Mug, <em>mug</em>, mug.</p></li></ul><div><hr></div><h3>Bluebird.</h3><p style="text-align: justify;">She wasn&#8217;t just a bluebird; she was my buddy, my good morning friend.</p><p style="text-align: justify;">For four years, we greeted each other every single day. It sounds like a long time, but it never really felt like it. </p><p style="text-align: justify;">Every sunless morning, I&#8217;d sit on the balcony with my cup of <em>oolong </em>tea (sometimes <em>matcha</em>, sometimes <em>ceylon, </em>sometimes <em>turmeric</em>, sometimes <em>chamomile</em>), and there she was, tweeting. I&#8217;d always look over, smile, and nod back, quietly admiring her.</p><p style="text-align: justify;">Then one day, she didn&#8217;t come&#8230; And she never did again.</p><p style="text-align: justify;">Another four years have passed since that morning. Here I am, back on the balcony, just me and the memory of her. My friend is gone. I miss her blue feathers and her gentle chirps.</p><p style="text-align: justify;">The coldest wind blows, one I haven&#8217;t felt in a while, and it makes me think&#8230; </p><p style="text-align: justify;"><em>I would trade every cup of tea I&#8217;ve had since, even the best ones, to sit on the balcony and hear her tweets and chirps again, even just once.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!5cud!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!5cud!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png 424w, https://substackcdn.com/image/fetch/$s_!5cud!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png 848w, https://substackcdn.com/image/fetch/$s_!5cud!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png 1272w, https://substackcdn.com/image/fetch/$s_!5cud!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!5cud!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png" width="485" height="485" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1280,&quot;width&quot;:1280,&quot;resizeWidth&quot;:485,&quot;bytes&quot;:2789656,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/193044471?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!5cud!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png 424w, https://substackcdn.com/image/fetch/$s_!5cud!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png 848w, https://substackcdn.com/image/fetch/$s_!5cud!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png 1272w, https://substackcdn.com/image/fetch/$s_!5cud!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc9eb30d0-1f32-4e16-af7f-596618a35438_1280x1280.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3><em>My 5-year-old nephew.</em></h3><p><strong>Nephew:</strong> <em>How big is your heart?</em><br><strong>Me:</strong> Isn&#8217;t it about the size of our fist?<br><strong>Nephew:</strong> <em>How old is our galaxy?</em><br><strong>Me:</strong> Uh&#8230; billions. 11 billion?<br><strong>Nephew:</strong> <em>13 billion years old.</em><br><strong>Me:</strong> Close enough.<br><strong>Nephew:</strong><em> It is.</em></p><p><em>(Nephew paused, thinking)</em></p><p><strong>Nephew:</strong> <em>You&#8217;re smart.</em><br><strong>Me:</strong> Not as smart as you.<br><strong>Nephew:</strong> <em>You&#8217;re my coolest uncle.</em><br><strong>Me:</strong> Oh yeah? Why?<br><strong>Nephew:</strong> <em>Because&#8230; I feel my other uncles and aunties are dumb.</em></p><div><hr></div><h3><em>Willow State</em></h3><p><em>Dear Girlfriend,</em></p><p><em>There are infinite things I could thank you for. </em></p><p><em>From turning my life from a painful spinal condition into a delightful chaos, to caring about my bulging disc, and somehow answering it through my bulging dick. </em></p><p><em>I&#8217;m grateful to you for being my co-trendsetter, my co-conspirator, my ally in creating new patterns in a world that naturally drifts toward entropy.</em></p><p><em>Love,</em><br>[Write Your Name]</p><div><hr></div><h3>Is knowledge a comfort to me?</h3><blockquote><p><em>Philosophy refines perception, it sharpens nuance and trains discernment.</em></p></blockquote><p style="text-align: justify;">One day, a Philosopher asked me, <em>What is knowledge?</em> </p><p style="text-align: justify;">I answered on the spot,<em> Just what you know, right?</em></p><p style="text-align: justify;">And so, <em>she</em>, the philosopher, went on and on&#8230; (yeah, she babbled, at least, that&#8217;s how it sounded to me).</p><p style="text-align: justify;"><em>Not that simple, my friend. Not in philosophy. </em><br>See that knowledge is a state. It&#8217;s your mind lining up with reality. <br>There&#8217;s<em> knowledge by acquaintance</em>; it&#8217;s about <em>direct experience.</em><br>And <em>propositional knowledge</em>, which essentially involves <em>facts</em>.<br>Facts are statements that can be true or false, and we humans tend to favor facts.</p><p style="text-align: justify;">So I asked, <em>why?</em></p><p style="text-align: justify;"><em>Facts are easy to pass around</em>. Take this, for example:</p><blockquote><p>Simplicity is elegance. But what are you going to do if it isn&#8217;t the truth? Is it still sophistication? It may conceal something. Maybe add some precision? Knowledge?</p></blockquote><p style="text-align: justify;">I processed,<em> so you&#8217;re asking me?</em></p><p style="text-align: justify;">She shook her head. <em>No.</em> I&#8217;m showing you how easily it can be passed around. They can be stated, tested, and judged true or false. That&#8217;s how we make sense of reality together. </p><p style="text-align: justify;">I processed even longer. <em>Uhhhhh. So, when you&#8217;re knowledgeable, you&#8217;re sensible? Uhhh. Wait&#8230;. Can knowledge be falsified?</em> </p><p style="text-align: justify;"><em>Yes, my friend.</em> But once it&#8217;s falsified or false, it&#8217;s no longer knowledge. In philosophy, knowledge usually means <em>true propositions</em>. Only statements that are actually true connect your mind to reality. So, when you reasoned with it and discovered it is false, then it is true. That&#8217;s knowledge, it&#8217;s <em>justified</em> <em>truth.</em></p><p style="text-align: justify;">I processed even longer than the last. <em>Uhhhhhh&#8230; ssshhhiii&#8230; Knowledge isn&#8217;t sinkin&#8217; well. It&#8217;s like my girlfriend&#8217;s text, sometimes true, mostly false, always confusing&#8230;What&#8217;s the other kind?</em></p><p style="text-align: justify;"><em>Knowledge by acquaintance. </em>Experience, on the other hand, doesn&#8217;t work like facts. It can&#8217;t be handed over easily. You can describe it, but it only grows through time and attention.</p><p style="text-align: justify;">I thought about it for a second, nodded slowly, and said, <em>Yes! Alright!</em> <em>Am I a philosopher yet?</em></p><p style="text-align: justify;">She smiled.</p><div><hr></div><p style="text-align: center;"><em>You stayed longer than most. </em><br><em>If you&#8217;ve got a thought, I&#8217;d like to hear it. </em><br><em>Thaks for reading!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/boregasm/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://peculiarmixtureofchillandeffort.substack.com/p/boregasm/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/boregasm?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://peculiarmixtureofchillandeffort.substack.com/p/boregasm?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p>]]></content:encoded></item><item><title><![CDATA[Shoewave? Shoegaze?]]></title><description><![CDATA[Into the wall of sound.]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/shoewave-shoegaze</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/shoewave-shoegaze</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Fri, 10 Apr 2026 05:52:28 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/455583bc-ba8f-4842-9fcc-ce0469e01552_5184x3456.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Are you of that ilk? Are you someone living in the dreamy, hazy soundscapes of music? </em></p><p>If <em>yes</em>, well, you&#8217;re likely to adore heavy use of guitar effects like distortion, reverb, and feedback, creating a dense &#8220;wall of sound&#8221; texture. You may be the kind of audience that is often inclined toward vocals that are subtly soft, obscured, and buried in the mix, adding to the immersive atmosphere. You probably also enjoy going to live venues, watching musicians perform and messing around with their gear in real time. Overall, you&#8217;re into music that doesn&#8217;t just play to you, but pulls you in and surrounds you.</p><p><em>Got any songs in mind from that vibe so far? </em></p><p>Well, I&#8217;m talking about <em>shoegaze</em>. Some might say <em>shoegaze </em>is a branch that belongs to alternative rock, while others consider it a sub-genre of indie rock; either way, its classification often depends upon whatever your gut is vibing with that day. Yeah, we&#8217;re ending the debate right away. Personal interpretation wins.</p><p>Shoegaze or <em>Shoewave </em>(if you prefer) emerged in the UK and Ireland in the late &#8216;80s and kind of faded out by the early &#8216;90s. But it never really died. Decades later, it made a comeback, re-emerging through internet-driven rediscovery, as new bands and audiences pick up the sound, reviving it and making it viral. </p><p><em>Coincidence&#8230; or did the algorithm already know something we didn&#8217;t? kinda sus.</em></p><p>These days, older tracks can suddenly blow up out of nowhere, as if they&#8217;re being pulled back into relevance by the internet itself. It&#8217;s pretty wild. Any genre, any era, any song could randomly take off again in the future.</p><p>Anyway, personally and broadly, modern shoegaze/shoewave is today&#8217;s revival and evolution of the original shoegaze sound from the late &#8217;80s and early &#8217;90s.</p><p><em>Dream pop? </em>Ain&#8217;t having much of that. But I could say enough that they&#8217;re not really the same thing. Shoewave is distinct because the vocals are low in the mix, often hard to make out, and treated more like another instrument than the focus. Dense, layered guitar textures drive the sound. Dream pop, on the other hand, keeps the vocals clearer and more upfront. In shoegaze, lyrics are often blurred or subtly buried; it&#8217;s more about mood and emotional texture than lyrical clarity.</p><div><hr></div><p style="text-align: center;"><em>Subscribe for free and stay in the haze :)</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><p>So, let&#8217;s define shoegaze by diving into a few tracks and letting the sound do the talking:</p><div id="youtube2-Ak43tAU5QuA" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;Ak43tAU5QuA&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/Ak43tAU5QuA?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><div id="youtube2-hcOhXThqh_0" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;hcOhXThqh_0&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/hcOhXThqh_0?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><div id="youtube2-m3DwLT2vaTM" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;m3DwLT2vaTM&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/m3DwLT2vaTM?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><div id="youtube2-Th-AqMvvBzE" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;Th-AqMvvBzE&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/Th-AqMvvBzE?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><div id="youtube2-u8c4yJRWDgs" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;u8c4yJRWDgs&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/u8c4yJRWDgs?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p>So are you the kind of person who&#8217;d add shoegaze to your playlist on purpose&#8230;Or are you the kind of person of that ilk who&#8217;s already been listening to it without even realizing it?</p><p>Haha. Either way, the name&#8217;s rad, the wall of sound&#8217;s radder. Original or modern, let&#8217;s lean in and listen more.</p><div><hr></div><p style="text-align: center;">Thanks for exploring :)</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/shoewave-shoegaze/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/shoewave-shoegaze/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/shoewave-shoegaze?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/shoewave-shoegaze?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p></p>]]></content:encoded></item><item><title><![CDATA[I’d Probably Fumble Love Letters]]></title><description><![CDATA[Love & All the Other Crap]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/id-probably-fumble-love-letters</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/id-probably-fumble-love-letters</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Sat, 04 Apr 2026 06:39:52 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/50756c24-b4c4-4539-adc9-e10558f54eb4_3000x3000.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3><em>We weren&#8217;t meant to last, you and I.</em></h3><p>Our streak was on fire. Our chemistry was intense, the sex was passionate and great, but reality has teeth, and it bit down hard. The timing and circumstances were such that the thieves just weren&#8217;t on our side. We dared each other, pushed edges, laughed too loud and touched in ways that made the world outside fade away. But nothing lasts.</p><p>Will I ever find anyone again who won&#8217;t use time anymore? A soul who doesn&#8217;t let time dictate what we could be? Someone fully here, holding nothing back? It&#8217;s rare. It&#8217;s not easy. And I&#8217;m a badfish too. </p><p>I&#8217;m losing hold of reality. I ain&#8217;t romanticizing the planet. I keep voicing my frustrations, even though I know they are brushed aside. My inner critic has grown too loud, too merciless, drowning out the better parts of me. So I stop questioning and move forward, strange and unsteady as that feels.<em> Is this growing up?</em> It ain&#8217;t feel like a bold choice or a dramatic leap. It&#8217;s merely the flow of life pushing, following a feeling in my heart, surrendering to it. </p><p>Suppose I could get to sleep at all. Rest my mind from the push and pull, find a safe harbor for my inner contradictions. All because I know, I still care. Or maybe, I&#8217;m just blacking out in the middle of a lie.</p><p>I think this is the unglamorous edge of growing up. Yet somehow, I still found myself wanting to take you out for <em>sushi</em>, as if nothing else had changed</p><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><p style="text-align: center;"><em>Subscribe for free if you&#8217;ve felt that.</em></p><div><hr></div><h3>Take Fool Responsibility For Your Own Existence.</h3><p><em>Fearing looking like a fool? </em>Risk it. Stagnation is far worse. Become the fool who moves, not the dignified soul who stays safe. The real fool sits idly by, carrying a pain he can&#8217;t name. There&#8217;s a dull, unidentifiable ache. A life half-lived with no clear reason why. </p><p>It is indeed a pain. But this pain doesn&#8217;t break you loudly. It lingers, quiet and constant, until it becomes part of who you are. You wake up one day, nothing seems wrong, and yet, it feels empty.</p><p><em>The moving fool?</em> He&#8217;s planning a big surprise. Taking bold, imperfect, deliberate acts that pull him into unknown spaces, while the world hesitates.</p><p>It&#8217;s easy to imagine people, but I&#8217;ve lived to see both sides of the coin. Some protect their image. Some build a life. One fears embarrassment; the other lives punk and fully. The level of effort and stokeness differs. Simply, the fool who&#8217;s in motion is aware that the biggest poison in humans is regret.</p><div><hr></div><h3><em>Don&#8217;t Know What Even Love Is.</em></h3><p>Come here, my dog, let&#8217;s hug it out. <br>Send me love, I wanna know about.<br>Wake up, get up. <br>Don&#8217;t just wag your white tail.<br>Make noise, bark out. <br>I got cheese burger, ain&#8217;t you smellin&#8217; it?<br>Come on, let&#8217;s mangle it. <br>Ain&#8217;t this love?</p><div><hr></div><h3>Grinding on a Wednesday.</h3><p>There were plenty of times before when I considered journaling, but I didn&#8217;t follow through enough. Now, I often catch myself wondering why I didn&#8217;t commit to writing sooner. What if I had realized earlier that it would become something I truly enjoy? What if I had taken a writing course instead of spending so much time in tech?</p><p>I&#8217;m viewing the past with the clarity I&#8217;ve only now gained. Back then, I had no way of knowing that journaling would become personally meaningful. I found it through experience, not foresight. And interestingly, time in tech may have influenced how I think, analyze, structure, and observe, which now reflects in my writing.</p><div><hr></div><h3><em>What is Love?</em></h3><p>This question never ends. And its answer always changes. Love is one of those things that&#8217;s easy to sense in your chest, but hard to define.</p><p>In essence, love is a deep attachment and care for someone. Something beyond just attraction or conveniences. It&#8217;s when their happiness matters to you. You choose their feelings over yours, not just when it&#8217;s easy, but even when it&#8217;s not. When it&#8217;s not easy, you realize it isn&#8217;t a fleeting emotion; it&#8217;s a deep commitment. </p><p>Love isn&#8217;t always constant warmth. It dares you to have patience in conflict, understanding in frustration, and presence even when words fail. It&#8217;s a challenge valuing someone else&#8217;s being as much as, or sometimes more than, your own.</p><div><hr></div><h3>Id-driven.</h3><p>When hit with a bad vibe, the automatic choice is to go into <em>fight mode</em>. Suddenly, you&#8217;re delivering comeback lines like you&#8217;ve been training your whole life for this exact moment. Tone gets colder than your ex&#8217;s replies, voices get louder, and now it&#8217;s less a conversation and more of the ending of a verbal WWE promo. </p><p>Next thing you know, everyone&#8217;s said things they definitely won&#8217;t apologize for properly, and the room feels like a microwave with unresolved tension. </p><p>All because someone had a <em>tone</em>.</p><div><hr></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/id-probably-fumble-love-letters/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/id-probably-fumble-love-letters/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/id-probably-fumble-love-letters?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/p/id-probably-fumble-love-letters?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p></p>]]></content:encoded></item><item><title><![CDATA[After Certainty]]></title><description><![CDATA[Thinking in terms of chances, not certainties]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/after-certainty</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/after-certainty</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Fri, 03 Apr 2026 11:14:39 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/8da8161b-f16c-4450-8866-e57ed8391f8d_1280x720.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Probabilistic thinking is when you stop aiming for certainty. Instead of locking into <em>&#8220;this is true&#8221;,</em> you&#8217;re now saying, <em>&#8220;this is true, for now.&#8221; </em>The thing is, we&#8217;re experiencing accelerating change. The world itself signals that the old rules no longer apply; <em>singularity </em>is no longer a distant forecast; it&#8217;s the condition we already inhabit.</p><p>In futurism, tech discourse, and even human affairs, the <em>singularity </em>is often defined as the <em>cusp of rapid acceleration</em>, where the <em>pace of change </em>becomes unpredictable relative to the past. The rate of change keeps climbing until old patterns fail and the past can no longer guide us. When the world moves faster than our beliefs can keep up, clinging to certainty turns conviction into a liability.</p><p>In a stable world, conviction is power; in a rapidly changing one, updating is power.</p><p>Today, we face historically high levels of uncertainty, driven by overlapping economic, technological, environmental, and behavioral crises. This constant flux stems from information gaps, complex systems, and unpredictable events, revealing that our standard predictions can&#8217;t keep up</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><p><em>How, then, do we navigate a world defined by singularity?</em></p><p>Probabilistic thinking offers a way. Practicing this can repeatedly dissolve and reconstitute the mind, releasing fixed expectations and leaning into change as the ever-present force. And perhaps, in doing so, we become a little less dangerously insecure.</p><p></p>]]></content:encoded></item><item><title><![CDATA[Prompted.]]></title><description><![CDATA[Flatlined... then thought-flicked.]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/prompted</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/prompted</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Tue, 31 Mar 2026 09:40:11 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!JD7f!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3>Cut the noise.</h3><p style="text-align: justify;">As you age, making friends gets different. The rules of friendship have shifted from proximity to intentionality. They&#8217;re just not in the same neighborhood or village anymore. You don&#8217;t make friends by accident; more often, you filter and choose them now, regardless of the place. </p><p style="text-align: justify;">You could look at it as an advantage. You&#8217;re not trying to impress everyone, you&#8217;re trying to find your people. At the same time, you&#8217;re not too late to make friends; you&#8217;re just choosing more carefully. </p><p style="text-align: justify;">As we age, we have less time, clearer boundaries, and less patience for shallow connections. But deep down, the desire for true friendship remains. </p><div><hr></div><h3>Late-Night Logic.</h3><p>Him: <em>You crossed my mind today&#8230; and stayed longer than expected.<br></em>Her: &#128527;</p><p>Him: <em>I lowkey miss your presence.<br></em>Her: <em>Lowkey?</em></p><p>Him:<em> Yeah&#8230; you&#8217;ve been on my mind. I&#8217;m not clear on how I feel about that yet.<br></em>Her: <em>That&#8217;s just lowkey lust.</em></p><div><hr></div><h3>Poster Child&#8217;s Orbit.</h3><p>Rick and Morty in a cardboard rocket, dodging traffic cones.<br>Box Car Racer blasting on the stereo with neon clones. <br>Spritzed mango in my hookah, smokin&#8217; like a chong.<br>Wait, that&#8217;s an OG hybrid kush, dawg, carry me home.</p><p>It&#8217;s like&#8230; I wanna be a Warhol, staring at her, naked.<br>And if you ask me for the vibe, it&#8217;s a surreal-like love, pixelated.<br>Now, your beagle dog is on the floor, while you&#8217;re fucking that sexy whore.<br>She&#8217;s arm grippin&#8217;, scratchin&#8217; and sayin&#8217; more!</p><p>Now, someone&#8217;s knockin&#8217; on the door;<br>funky, quirky shadows dance across the floor;<br>It looks like a dinosaur.<br>Everything&#8217;s absurd&#8230; reality implores.</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!JD7f!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!JD7f!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png 424w, https://substackcdn.com/image/fetch/$s_!JD7f!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png 848w, https://substackcdn.com/image/fetch/$s_!JD7f!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png 1272w, https://substackcdn.com/image/fetch/$s_!JD7f!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!JD7f!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png" width="401" height="534.6666666666666" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1280,&quot;width&quot;:960,&quot;resizeWidth&quot;:401,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!JD7f!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png 424w, https://substackcdn.com/image/fetch/$s_!JD7f!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png 848w, https://substackcdn.com/image/fetch/$s_!JD7f!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png 1272w, https://substackcdn.com/image/fetch/$s_!JD7f!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe283e6ae-aa3a-439b-a65a-93018be6ba18_960x1280.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><h3>Blake.</h3><p>A dog&#8217;s loyalty is never absolute. Part of it belongs to its master; part to its own instincts and survival. Even the most obedient pets sometimes resist. They push back to roam, to play, to follow the smell, whims and impulses. Their nature cannot be fully denied. Even when held in your spacious backyard, they cherish freedom.</p><div><hr></div><h3>Chains are for machines.</h3><p>Humans, by contrast, are often asked to offer unwavering loyalty to companies, institutions, or roles. But unquestioning loyalty is brittle. It exhausts and eventually fractures.</p><p>What endures instead is fidelity. Service chosen, not coerced. True dedication comes not from obligation alone, but from intention. </p><p>To serve genuinely is to align conscience with duty, to embrace responsibility with understanding, not submission. It is to love what you do and honor it fully. That is human. Not a machine.</p><div><hr></div><h3>Come on over and do the twist.</h3><p>Working out, challenging your body, is one of the most effective ways to combat any mental degeneration. It is always an absolutely good idea to exercise whenever work, studies, worries, slackness, excitement, or novelty crowd your mind. Moving with intention sets your rhythm, clears mental clutter, and acts as a powerful, accessible therapy for both body and mind.</p><div id="youtube2-HzW8WumSg1U" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;HzW8WumSg1U&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/HzW8WumSg1U?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><div><hr></div><h3>Learn an instrument.</h3><p>Learn how to play at least one musical instrument. It just gives you a different kind of rhythm. Even if your feet don&#8217;t move gracefully, your fingers and ears can carry the music. It&#8217;s kind of a secret power.</p><div><hr></div><h3>Ritual.</h3><p>My ritual is to listen to a podcast while working out. Body moves, mind grows. It&#8217;s like multitasking for self-care. Fitness for your muscles, ideas for your brain.</p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[The Case of Unproductive Days]]></title><description><![CDATA[Productivity in Disguise]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/productivity-in-disguise-the-case</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/productivity-in-disguise-the-case</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Sat, 28 Mar 2026 09:37:41 GMT</pubDate><enclosure url="https://substackcdn.com/image/youtube/w_728,c_limit/eIdM6UTa6MA" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Sometimes, unproductive days are just productivity in disguise. Sure, on days that feel idle, it genuinely seems like nothing gets done. Tasks linger, we beat ourselves up for wasting time, and a sense of incompletion takes hold.</p><p><em>But what if those days aren&#8217;t wasted at all?</em></p><p><em>What if unproductive days can actually become quiet preparation?</em></p><p>Think of those idle days or lethargic moments (admit it) as times when your mind rests, digests reality and connects the dots beneath the surface. Perhaps, these pauses may precede breakthroughs; a space where creativity brews, where clarity forms and priorities settle. <em>Productivity&#8217;s shadow? </em>Reminding us that productivity isn&#8217;t only about action and output; it&#8217;s also reflection, recuperation and recalibration. </p><p>So when a day seems unproductive, perhaps it&#8217;s quietly doing the inner work, readying you for better days ahead. Don&#8217;t rush to fill it with action or punish yourself for idleness. Unproductive days aren&#8217;t empty; they&#8217;re fertile.</p><div id="youtube2-eIdM6UTa6MA" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;eIdM6UTa6MA&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/eIdM6UTa6MA?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><p></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[Python Pit #10 - String Methods Pt. 2]]></title><description><![CDATA[Split, Join, Replace, Modify, and Validate]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/python-pit-10-string-methods-pt-2</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/python-pit-10-string-methods-pt-2</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Wed, 18 Mar 2026 07:07:10 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!LFf5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>And we&#8217;re back in the pit for another part!</p><p>We&#8217;re still dealing with Python&#8217;s String Methods, and it actually matters.</p><p>Why tho?</p><p>It matters because text is everywhere in programming. </p><p>It&#8217;s in logs, user inputs, config files, APIs, security alerts, filenames, emails, and more. </p><p>And if you can&#8217;t wrestle and manipulate strings efficiently, you can&#8217;t control or analyze data properly.</p><p>Here&#8217;s part 1 to appreciate the foundation:</p><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;66638dc2-44d1-4379-8387-0b884eeae4a9&quot;,&quot;caption&quot;:&quot;Hey there! Welcome back to the pit!&quot;,&quot;cta&quot;:&quot;Read full story&quot;,&quot;showBylines&quot;:true,&quot;size&quot;:&quot;sm&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;Python Pit #9 - String Methods Pt. 1&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:433782858,&quot;name&quot;:&quot;greg&quot;,&quot;bio&quot;:&quot;Here to read and write&quot;,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8e9d4fed-e5a3-4fa1-8626-e772cdbf49e9_1022x1024.png&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2026-03-04T02:07:52.424Z&quot;,&quot;cover_image&quot;:&quot;https://substackcdn.com/image/fetch/$s_!LFf5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png&quot;,&quot;cover_image_alt&quot;:null,&quot;canonical_url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/python-pit-9-string-methods-pt-1&quot;,&quot;section_name&quot;:&quot;Python Pit&quot;,&quot;video_upload_id&quot;:null,&quot;id&quot;:189165162,&quot;type&quot;:&quot;newsletter&quot;,&quot;reaction_count&quot;:0,&quot;comment_count&quot;:0,&quot;publication_id&quot;:7541790,&quot;publication_name&quot;:&quot;Peculiar Mixture Of Chill And Effort&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/$s_!ph1b!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6adacff-a1b0-4d51-8b1e-21c4a4c891e8_1280x1280.png&quot;,&quot;belowTheFold&quot;:false,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div><p>So now, we pick up where we left off.</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!LFf5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!LFf5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png 424w, https://substackcdn.com/image/fetch/$s_!LFf5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png 848w, https://substackcdn.com/image/fetch/$s_!LFf5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png 1272w, https://substackcdn.com/image/fetch/$s_!LFf5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!LFf5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png" width="1456" height="978" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:978,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;I redesign the Python logo to make it more modern : r/Python&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="I redesign the Python logo to make it more modern : r/Python" title="I redesign the Python logo to make it more modern : r/Python" srcset="https://substackcdn.com/image/fetch/$s_!LFf5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png 424w, https://substackcdn.com/image/fetch/$s_!LFf5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png 848w, https://substackcdn.com/image/fetch/$s_!LFf5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png 1272w, https://substackcdn.com/image/fetch/$s_!LFf5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11350f17-9cb6-4773-8cf1-dba1750ce2ff_3000x2015.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>10_strings</p><div><hr></div><blockquote><p>In programming, string methods are built-in functions or operations you can perform on strings to manipulate, analyze or transform them.</p><p>String methods are part of the string object in most programming languages.</p><p>Here&#8217;s a logical breakdown:</p></blockquote><ol><li><p>Basic Case Conversion</p></li><li><p>Removing and Cleaning Text</p></li><li><p>Searching and Finding Text</p></li><li><p>Splitting and Joining Strings</p></li><li><p>Replacing and Modifying text</p></li><li><p>Checking String Content (Validation Methods)</p></li><li><p>Alignment and Formatting</p></li><li><p>Advanced SPlitting and Partitioning</p></li><li><p>Formatting Strings</p></li><li><p>Encoding and Tabs</p></li></ol><p>We&#8217;ve finished the first three: Basic Case Conversion, Removing and Cleaning Text, and Searching and Finding Text.</p><p>We&#8217;ll now shift our focus to the next set of string operations.</p><div><hr></div><h2>4. Splitting and Joining Strings</h2><p>Convert between strings and lists</p><blockquote><p>Methods:</p><ul><li><p><code>split()</code></p></li><li><p><code>rsplit()</code></p></li><li><p><code>splitlines()</code></p></li><li><p><code>join()</code></p></li></ul></blockquote><div><hr></div><h3>split()</h3><p>This string method splits a string into a list using a separator.</p><p>Syntax:</p><ul><li><p>string.split(separator, maxsplit)</p><ul><li><p>separator - what to split on (default is whitespace).</p></li><li><p>maxsplit - maximum number of splits (optional).</p></li></ul></li></ul><p>Basic:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;dfc3ad48-ddde-443d-8d55-eef8341f2cce&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "I Wanna Be Adored"

result = text.split()
print(result)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Q9dq!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3916f50a-49c1-4907-a000-65f695639dff_493x469.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Q9dq!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3916f50a-49c1-4907-a000-65f695639dff_493x469.png 424w, https://substackcdn.com/image/fetch/$s_!Q9dq!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3916f50a-49c1-4907-a000-65f695639dff_493x469.png 848w, https://substackcdn.com/image/fetch/$s_!Q9dq!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3916f50a-49c1-4907-a000-65f695639dff_493x469.png 1272w, https://substackcdn.com/image/fetch/$s_!Q9dq!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3916f50a-49c1-4907-a000-65f695639dff_493x469.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Q9dq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3916f50a-49c1-4907-a000-65f695639dff_493x469.png" width="387" height="368.1602434077079" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3916f50a-49c1-4907-a000-65f695639dff_493x469.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:469,&quot;width&quot;:493,&quot;resizeWidth&quot;:387,&quot;bytes&quot;:37743,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3916f50a-49c1-4907-a000-65f695639dff_493x469.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Q9dq!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3916f50a-49c1-4907-a000-65f695639dff_493x469.png 424w, https://substackcdn.com/image/fetch/$s_!Q9dq!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3916f50a-49c1-4907-a000-65f695639dff_493x469.png 848w, https://substackcdn.com/image/fetch/$s_!Q9dq!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3916f50a-49c1-4907-a000-65f695639dff_493x469.png 1272w, https://substackcdn.com/image/fetch/$s_!Q9dq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3916f50a-49c1-4907-a000-65f695639dff_493x469.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><blockquote><p>The default separator when using <code>split()</code> is whitespace.</p></blockquote><p>Split by a specific character:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;8d3c7173-13e5-4806-b7ad-4797080bce57&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "turnstile,social distortion,dead to me"

print(text.split(","))</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!c1OI!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!c1OI!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png 424w, https://substackcdn.com/image/fetch/$s_!c1OI!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png 848w, https://substackcdn.com/image/fetch/$s_!c1OI!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png 1272w, https://substackcdn.com/image/fetch/$s_!c1OI!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!c1OI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png" width="545" height="353.07578008915306" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:436,&quot;width&quot;:673,&quot;resizeWidth&quot;:545,&quot;bytes&quot;:37746,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!c1OI!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png 424w, https://substackcdn.com/image/fetch/$s_!c1OI!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png 848w, https://substackcdn.com/image/fetch/$s_!c1OI!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png 1272w, https://substackcdn.com/image/fetch/$s_!c1OI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f007bdc-4632-4996-a7f5-fea63628e0ef_673x436.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><blockquote><p>On a side note, try listening to Turnstile&#8217;s rendition of &#8220;I Wanna Be Adored.&#8221;</p></blockquote><p>Using maxsplit:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;5ad55e4a-b33c-4372-a892-aea5ada06125&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "one two three four"

print(text.split(" ", 2))</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Ehlo!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa82e0931-9002-4096-be93-749daf270de8_550x435.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Ehlo!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa82e0931-9002-4096-be93-749daf270de8_550x435.png 424w, https://substackcdn.com/image/fetch/$s_!Ehlo!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa82e0931-9002-4096-be93-749daf270de8_550x435.png 848w, https://substackcdn.com/image/fetch/$s_!Ehlo!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa82e0931-9002-4096-be93-749daf270de8_550x435.png 1272w, https://substackcdn.com/image/fetch/$s_!Ehlo!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa82e0931-9002-4096-be93-749daf270de8_550x435.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Ehlo!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa82e0931-9002-4096-be93-749daf270de8_550x435.png" width="492" height="389.1272727272727" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a82e0931-9002-4096-be93-749daf270de8_550x435.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:435,&quot;width&quot;:550,&quot;resizeWidth&quot;:492,&quot;bytes&quot;:36503,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa82e0931-9002-4096-be93-749daf270de8_550x435.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Ehlo!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa82e0931-9002-4096-be93-749daf270de8_550x435.png 424w, https://substackcdn.com/image/fetch/$s_!Ehlo!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa82e0931-9002-4096-be93-749daf270de8_550x435.png 848w, https://substackcdn.com/image/fetch/$s_!Ehlo!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa82e0931-9002-4096-be93-749daf270de8_550x435.png 1272w, https://substackcdn.com/image/fetch/$s_!Ehlo!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa82e0931-9002-4096-be93-749daf270de8_550x435.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><blockquote><p>This only splits twice.</p><p>Again: <code>string.split(separator, maxsplit)</code></p><ul><li><p>separator - what to split on (default is whitespace).</p></li><li><p>maxsplit - maximum number of splits (optional).</p></li></ul></blockquote><p>Real-World Example (Log Parsing):</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;8d93c6ba-7c15-46e4-b6d8-4ea6f04c4f4a&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">log = "ERROR: Failed login from 192.168.1.10"

parts = log.split(" ")
print(parts)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!bwnj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!bwnj!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png 424w, https://substackcdn.com/image/fetch/$s_!bwnj!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png 848w, https://substackcdn.com/image/fetch/$s_!bwnj!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png 1272w, https://substackcdn.com/image/fetch/$s_!bwnj!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!bwnj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png" width="561" height="348.568" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:466,&quot;width&quot;:750,&quot;resizeWidth&quot;:561,&quot;bytes&quot;:45608,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!bwnj!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png 424w, https://substackcdn.com/image/fetch/$s_!bwnj!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png 848w, https://substackcdn.com/image/fetch/$s_!bwnj!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png 1272w, https://substackcdn.com/image/fetch/$s_!bwnj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe7ebd29b-1f1b-4530-bb85-65e590ffa801_750x466.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Now you can extract the IP address:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;8c29a260-506e-4986-a1cf-b77e5388a233&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">log = "ERROR: Failed login from 192.168.1.10"

parts = log.split(" ")
print(parts)

ip = parts[-1]
print(ip)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!08PR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!08PR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png 424w, https://substackcdn.com/image/fetch/$s_!08PR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png 848w, https://substackcdn.com/image/fetch/$s_!08PR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png 1272w, https://substackcdn.com/image/fetch/$s_!08PR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!08PR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png" width="492" height="405.4506089309878" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:609,&quot;width&quot;:739,&quot;resizeWidth&quot;:492,&quot;bytes&quot;:53624,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!08PR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png 424w, https://substackcdn.com/image/fetch/$s_!08PR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png 848w, https://substackcdn.com/image/fetch/$s_!08PR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png 1272w, https://substackcdn.com/image/fetch/$s_!08PR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0cfba08-1a89-4612-8832-3db17a2a9ea6_739x609.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Splitting File Extensions:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;5d87bb89-a684-474d-b30f-1d1f487b56fa&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">filename = "report.pdf"

name, extension = filename.split(".")
print(name)
print(extension)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HmHZ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HmHZ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png 424w, https://substackcdn.com/image/fetch/$s_!HmHZ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png 848w, https://substackcdn.com/image/fetch/$s_!HmHZ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png 1272w, https://substackcdn.com/image/fetch/$s_!HmHZ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!HmHZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png" width="443" height="428.7352415026834" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:541,&quot;width&quot;:559,&quot;resizeWidth&quot;:443,&quot;bytes&quot;:41350,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!HmHZ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png 424w, https://substackcdn.com/image/fetch/$s_!HmHZ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png 848w, https://substackcdn.com/image/fetch/$s_!HmHZ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png 1272w, https://substackcdn.com/image/fetch/$s_!HmHZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F407c6526-f849-4c60-abea-dc2fd4c85db5_559x541.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Note: This works only if there&#8217;s one dot. For safer extraction, <code>rsplit(".", 1)</code> is better.</p><div><hr></div><h3>rsplit()</h3><p><code>rsplit</code>() splits a s string starting from the right side of the string. </p><p>It works like <code>split()</code>, but the splitting begins from the end.</p><p>Syntax:</p><ul><li><p><code>string.rsplit(separator, maxsplit)</code></p><ul><li><p>separator - character/string to split on (optional)</p></li><li><p>maxsplit - maximum number of splits (optional)</p></li></ul></li></ul><p>Return value:</p><ul><li><p>Returns a list of substrings</p></li><li><p>Splits from the right side</p></li></ul><p>Basic Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;cf8726f0-e105-479e-a373-737439609bfe&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "baki,doppo,retsu"

print(text.rsplit(","))</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!dBmb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!dBmb!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png 424w, https://substackcdn.com/image/fetch/$s_!dBmb!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png 848w, https://substackcdn.com/image/fetch/$s_!dBmb!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png 1272w, https://substackcdn.com/image/fetch/$s_!dBmb!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!dBmb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png" width="423" height="365.2039603960396" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:436,&quot;width&quot;:505,&quot;resizeWidth&quot;:423,&quot;bytes&quot;:36080,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!dBmb!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png 424w, https://substackcdn.com/image/fetch/$s_!dBmb!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png 848w, https://substackcdn.com/image/fetch/$s_!dBmb!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png 1272w, https://substackcdn.com/image/fetch/$s_!dBmb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2ce3a805-05cb-4c4f-a57f-1006e865e24b_505x436.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>With no <code>maxsplit</code>, it behaves like <code>split()</code></p><p>With <code>maxsplit</code>:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;26b68e0f-72b7-4b63-a482-296ec62ed0d7&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "one two three four"

print(text.rsplit(" ", 1))</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Mvjx!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11447840-6b12-480e-95b9-50203a1e88ad_562x439.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Mvjx!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11447840-6b12-480e-95b9-50203a1e88ad_562x439.png 424w, https://substackcdn.com/image/fetch/$s_!Mvjx!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11447840-6b12-480e-95b9-50203a1e88ad_562x439.png 848w, https://substackcdn.com/image/fetch/$s_!Mvjx!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11447840-6b12-480e-95b9-50203a1e88ad_562x439.png 1272w, https://substackcdn.com/image/fetch/$s_!Mvjx!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11447840-6b12-480e-95b9-50203a1e88ad_562x439.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Mvjx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11447840-6b12-480e-95b9-50203a1e88ad_562x439.png" width="450" height="351.51245551601426" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/11447840-6b12-480e-95b9-50203a1e88ad_562x439.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:439,&quot;width&quot;:562,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:37387,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11447840-6b12-480e-95b9-50203a1e88ad_562x439.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Mvjx!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11447840-6b12-480e-95b9-50203a1e88ad_562x439.png 424w, https://substackcdn.com/image/fetch/$s_!Mvjx!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11447840-6b12-480e-95b9-50203a1e88ad_562x439.png 848w, https://substackcdn.com/image/fetch/$s_!Mvjx!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11447840-6b12-480e-95b9-50203a1e88ad_562x439.png 1272w, https://substackcdn.com/image/fetch/$s_!Mvjx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11447840-6b12-480e-95b9-50203a1e88ad_562x439.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Only one split, starting from the right.</p><h3>Difference between split() and rsplit()</h3><blockquote><p>The obvious difference is the direction.</p><p><code>split()</code> goes from left to right.</p><p><code>rsplit()</code> goes from right to left.</p></blockquote><p>Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;f132811e-0d77-4c87-a473-77b28a59a063&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "one two three four"

print(text.split(" ", 1))
print(text.rsplit(" ", 1))</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ovX9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ovX9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png 424w, https://substackcdn.com/image/fetch/$s_!ovX9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png 848w, https://substackcdn.com/image/fetch/$s_!ovX9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png 1272w, https://substackcdn.com/image/fetch/$s_!ovX9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ovX9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png" width="485" height="437.0883882149047" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:520,&quot;width&quot;:577,&quot;resizeWidth&quot;:485,&quot;bytes&quot;:48446,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ovX9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png 424w, https://substackcdn.com/image/fetch/$s_!ovX9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png 848w, https://substackcdn.com/image/fetch/$s_!ovX9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png 1272w, https://substackcdn.com/image/fetch/$s_!ovX9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e5ed568-2540-4d1e-b268-c9400b87c939_577x520.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Real Example (File Extension):</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;7aaf4a47-2c79-408f-a2b6-cb868671d2ce&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">filename = "backup.database.sql"

name, extension = filename.rsplit(".", 1)

print(name)
print(extension)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!RfD9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5d05c97-0609-428b-b440-46ede2107d9f_733x580.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!RfD9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5d05c97-0609-428b-b440-46ede2107d9f_733x580.png 424w, https://substackcdn.com/image/fetch/$s_!RfD9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5d05c97-0609-428b-b440-46ede2107d9f_733x580.png 848w, https://substackcdn.com/image/fetch/$s_!RfD9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5d05c97-0609-428b-b440-46ede2107d9f_733x580.png 1272w, https://substackcdn.com/image/fetch/$s_!RfD9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5d05c97-0609-428b-b440-46ede2107d9f_733x580.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!RfD9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5d05c97-0609-428b-b440-46ede2107d9f_733x580.png" width="491" height="388.5129604365621" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a5d05c97-0609-428b-b440-46ede2107d9f_733x580.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:580,&quot;width&quot;:733,&quot;resizeWidth&quot;:491,&quot;bytes&quot;:49259,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5d05c97-0609-428b-b440-46ede2107d9f_733x580.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!RfD9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5d05c97-0609-428b-b440-46ede2107d9f_733x580.png 424w, https://substackcdn.com/image/fetch/$s_!RfD9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5d05c97-0609-428b-b440-46ede2107d9f_733x580.png 848w, https://substackcdn.com/image/fetch/$s_!RfD9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5d05c97-0609-428b-b440-46ede2107d9f_733x580.png 1272w, https://substackcdn.com/image/fetch/$s_!RfD9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5d05c97-0609-428b-b440-46ede2107d9f_733x580.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>This is safer than <code>split() </code>because filenames may contain multiple dots.</p><p>Real Example (Log Parsing):</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;d74a2e37-0874-42a5-996f-37f33631c537&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">log = "INFO User login from 192.168.1.15"

parts = log.rsplit(" ", 1)
print(parts)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!RSf-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!RSf-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png 424w, https://substackcdn.com/image/fetch/$s_!RSf-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png 848w, https://substackcdn.com/image/fetch/$s_!RSf-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png 1272w, https://substackcdn.com/image/fetch/$s_!RSf-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!RSf-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png" width="506" height="402.5777027027027" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:471,&quot;width&quot;:592,&quot;resizeWidth&quot;:506,&quot;bytes&quot;:46522,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!RSf-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png 424w, https://substackcdn.com/image/fetch/$s_!RSf-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png 848w, https://substackcdn.com/image/fetch/$s_!RSf-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png 1272w, https://substackcdn.com/image/fetch/$s_!RSf-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcbe84a76-e6ab-4aba-aad1-b621146e50e8_592x471.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Useful for extracting the last field (IP address).</p><p>Essential Rule:</p><ul><li><p>Use <code>split()</code> when parsing from the start.</p></li><li><p>Use <code>rsplit()</code> when extracting something from the end.</p></li></ul><div><hr></div><h3>splitlines()</h3><blockquote><p>This is used to split a string into a list of lines. </p><p>It separates the text wherever there is a line break.</p></blockquote><p>Syntax:</p><ul><li><p>string.splitlines(keepends)</p><ul><li><p>keepends  - optional</p><ul><li><p>False - removes newline characters (default)</p></li><li><p>True - keeps newline characters</p></li></ul></li></ul></li></ul><p>Return Value:</p><ul><li><p>Returns a list of lines</p></li></ul><p>Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;42561dbb-7d06-48be-84e2-c1b7486b7d83&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "In\nBetween\nDays"

print(text.splitlines())</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!VTWv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!VTWv!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png 424w, https://substackcdn.com/image/fetch/$s_!VTWv!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png 848w, https://substackcdn.com/image/fetch/$s_!VTWv!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png 1272w, https://substackcdn.com/image/fetch/$s_!VTWv!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!VTWv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png" width="384" height="333.87951807228916" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:433,&quot;width&quot;:498,&quot;resizeWidth&quot;:384,&quot;bytes&quot;:36339,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!VTWv!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png 424w, https://substackcdn.com/image/fetch/$s_!VTWv!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png 848w, https://substackcdn.com/image/fetch/$s_!VTWv!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png 1272w, https://substackcdn.com/image/fetch/$s_!VTWv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2917e8c8-094a-420e-88ce-badc39567ab5_498x433.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The<code> \n </code>newline characters are used to split the string. </p><p>With <code>keepends=True</code>:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;acb0179e-44ed-45dd-8c6b-b967aa5f1c3f&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "Hello\nThere\nWorld"

print(text.splitlines(True))</code></pre></div><p>The newline characters are kept.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pu2Z!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pu2Z!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png 424w, https://substackcdn.com/image/fetch/$s_!pu2Z!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png 848w, https://substackcdn.com/image/fetch/$s_!pu2Z!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png 1272w, https://substackcdn.com/image/fetch/$s_!pu2Z!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pu2Z!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png" width="385" height="344.3914807302231" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:441,&quot;width&quot;:493,&quot;resizeWidth&quot;:385,&quot;bytes&quot;:35330,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pu2Z!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png 424w, https://substackcdn.com/image/fetch/$s_!pu2Z!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png 848w, https://substackcdn.com/image/fetch/$s_!pu2Z!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png 1272w, https://substackcdn.com/image/fetch/$s_!pu2Z!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F51fdb45f-e17c-4b37-9a8e-b97030941397_493x441.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>With Multiline Text:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;b416623f-537a-4a84-94cd-c3e575d065e3&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = """Error: login failed
Warning: password attempt
Info: user logged out"""

print(text.splitlines())</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!uKPG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!uKPG!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png 424w, https://substackcdn.com/image/fetch/$s_!uKPG!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png 848w, https://substackcdn.com/image/fetch/$s_!uKPG!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png 1272w, https://substackcdn.com/image/fetch/$s_!uKPG!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!uKPG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png" width="646" height="321.3994053518335" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:502,&quot;width&quot;:1009,&quot;resizeWidth&quot;:646,&quot;bytes&quot;:49427,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!uKPG!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png 424w, https://substackcdn.com/image/fetch/$s_!uKPG!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png 848w, https://substackcdn.com/image/fetch/$s_!uKPG!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png 1272w, https://substackcdn.com/image/fetch/$s_!uKPG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0cf07141-ef88-4d39-9bdd-ef07efb38be8_1009x502.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>Real-world Example (Log Processing):</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;4c18011b-b588-4593-810f-3d01b74f9dfd&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">logs = "ERROR: Login failed\nINFO: User logged in\nWARNING: Retry attempt"

lines = logs.splitlines()

for line in lines:
    print(line)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!NTYk!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!NTYk!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png 424w, https://substackcdn.com/image/fetch/$s_!NTYk!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png 848w, https://substackcdn.com/image/fetch/$s_!NTYk!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png 1272w, https://substackcdn.com/image/fetch/$s_!NTYk!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!NTYk!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png" width="559" height="324.7631578947368" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:574,&quot;width&quot;:988,&quot;resizeWidth&quot;:559,&quot;bytes&quot;:56662,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!NTYk!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png 424w, https://substackcdn.com/image/fetch/$s_!NTYk!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png 848w, https://substackcdn.com/image/fetch/$s_!NTYk!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png 1272w, https://substackcdn.com/image/fetch/$s_!NTYk!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd92b2161-3d74-411a-9456-85e0b4d8930c_988x574.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>This is useful when analyzing logs or reading multiline text.</p><p>Explanation:</p><blockquote><ul><li><p>Splitting the strings into lines</p><ul><li><p>As we already know, the <code>splitlines() </code>method splits the string at every newline (\n) and returns a list of lines.</p></li><li><p>So lines becomes:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;2114e7ec-f3d3-4894-86d5-370d52bd3df1&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">[
"ERROR: Login failed",
"INFO: User logged in",
"WARNING: Retry attempt"
]</code></pre></div></li><li><p>Each Log entry is now a separate element in the list.</p></li></ul></li><li><p>Looping through each line</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;82603a42-ebc1-43b2-9419-0a0858be987e&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">for line in lines:</code></pre></div><ul><li><p>This loops through the list one element at a time.</p></li></ul></li><li><p>Iteration order:</p><ol><li><p>"ERROR: Login failed"</p></li><li><p>"INFO: User logged in"</p></li><li><p>"WARNING: Retry attempt"</p></li></ol></li><li><p>During each loop, the variable line temporarily holds one of those values</p></li></ul></blockquote><h3>Difference between split(), rsplit() and splitlines()</h3><blockquote><p><code>splitlines()</code> splits on many newline types (<code>\n, \r, \r\n</code>)</p><p><code>split("\n")</code> goes from left to right. And it splits only on<code> \n</code></p><p>Now&#8230;</p><p><code>split() - </code>split by separator</p><p><code>rsplit() - </code>split from right</p><p><code>splitlines() -</code> split by line breaks</p></blockquote><div><hr></div><h2>5. Replacing and Modifying Text (Beginner)</h2><p>Modify string content</p><blockquote><ul><li><p>replace()</p></li><li><p>translate()</p></li><li><p>maketrans()</p></li><li><p>removeprefix()</p></li><li><p>removesuffix()</p></li></ul></blockquote><h3>replace()</h3><p>The <code>replace()</code> method is used to replace part of a string with another string.</p><p>Syntax:</p><ul><li><p><code>string.replace(old, new, count)</code></p><ul><li><p>old - the text you want to replace</p></li><li><p>new - the text that will replace it</p></li><li><p>count (optional) - how many occurrences to replace</p></li></ul></li></ul><p>Basic Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;7c2feca0-b6d3-405f-950f-ff549c939fb7&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "me gusta punk"
result = text.replace("punk", "reggae")

print(result)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!IHdg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf968307-3803-4270-9d05-05dd93c1b0fb_711x501.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!IHdg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf968307-3803-4270-9d05-05dd93c1b0fb_711x501.png 424w, https://substackcdn.com/image/fetch/$s_!IHdg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf968307-3803-4270-9d05-05dd93c1b0fb_711x501.png 848w, https://substackcdn.com/image/fetch/$s_!IHdg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf968307-3803-4270-9d05-05dd93c1b0fb_711x501.png 1272w, https://substackcdn.com/image/fetch/$s_!IHdg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf968307-3803-4270-9d05-05dd93c1b0fb_711x501.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!IHdg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf968307-3803-4270-9d05-05dd93c1b0fb_711x501.png" width="481" height="338.9324894514768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/af968307-3803-4270-9d05-05dd93c1b0fb_711x501.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:501,&quot;width&quot;:711,&quot;resizeWidth&quot;:481,&quot;bytes&quot;:42269,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf968307-3803-4270-9d05-05dd93c1b0fb_711x501.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!IHdg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf968307-3803-4270-9d05-05dd93c1b0fb_711x501.png 424w, https://substackcdn.com/image/fetch/$s_!IHdg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf968307-3803-4270-9d05-05dd93c1b0fb_711x501.png 848w, https://substackcdn.com/image/fetch/$s_!IHdg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf968307-3803-4270-9d05-05dd93c1b0fb_711x501.png 1272w, https://substackcdn.com/image/fetch/$s_!IHdg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf968307-3803-4270-9d05-05dd93c1b0fb_711x501.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Replace Multiple Occurrences:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;490b2853-4391-4d87-9256-302178fb238c&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "punk punk punk"
result = text.replace("punk", "reggae")

print(result)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!jTwU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!jTwU!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png 424w, https://substackcdn.com/image/fetch/$s_!jTwU!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png 848w, https://substackcdn.com/image/fetch/$s_!jTwU!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png 1272w, https://substackcdn.com/image/fetch/$s_!jTwU!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!jTwU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png" width="507" height="369.6097201767305" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:495,&quot;width&quot;:679,&quot;resizeWidth&quot;:507,&quot;bytes&quot;:39954,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!jTwU!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png 424w, https://substackcdn.com/image/fetch/$s_!jTwU!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png 848w, https://substackcdn.com/image/fetch/$s_!jTwU!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png 1272w, https://substackcdn.com/image/fetch/$s_!jTwU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42fbfe3-b692-4858-9dbb-a1cdcd1d3e01_679x495.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Replace Only a Specific Number:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;2ec58c41-a9fe-41af-b7b7-6b01b337404e&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "apple apple apple"
result = text.replace("apple", "orange", 2)

print(result)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wPR-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wPR-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png 424w, https://substackcdn.com/image/fetch/$s_!wPR-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png 848w, https://substackcdn.com/image/fetch/$s_!wPR-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png 1272w, https://substackcdn.com/image/fetch/$s_!wPR-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wPR-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png" width="551" height="347.4899497487437" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:502,&quot;width&quot;:796,&quot;resizeWidth&quot;:551,&quot;bytes&quot;:42941,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!wPR-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png 424w, https://substackcdn.com/image/fetch/$s_!wPR-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png 848w, https://substackcdn.com/image/fetch/$s_!wPR-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png 1272w, https://substackcdn.com/image/fetch/$s_!wPR-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8aebb3ee-6410-4562-bba2-85708438cd1c_796x502.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Practical Example (Cleaning Text):</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;08462c75-fae3-445f-852b-64a720ca3e3b&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">message = "Hello_user123"
clean = message.replace("_", " ")

print(clean)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fYAU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fYAU!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png 424w, https://substackcdn.com/image/fetch/$s_!fYAU!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png 848w, https://substackcdn.com/image/fetch/$s_!fYAU!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png 1272w, https://substackcdn.com/image/fetch/$s_!fYAU!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fYAU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png" width="526" height="412.2937293729373" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:475,&quot;width&quot;:606,&quot;resizeWidth&quot;:526,&quot;bytes&quot;:40543,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!fYAU!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png 424w, https://substackcdn.com/image/fetch/$s_!fYAU!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png 848w, https://substackcdn.com/image/fetch/$s_!fYAU!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png 1272w, https://substackcdn.com/image/fetch/$s_!fYAU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd86ede75-014d-41df-88ab-1cb05a3e8506_606x475.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Strings in Python are immutable, meaning <code>replace()</code> does not change the original string; it returns a new string</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;bac493f2-fde4-46fc-9db4-e4eed9a3db72&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "Hello world"
text.replace("world", "Python")

print(text)  # still unchanged</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!sdkT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feddcf8e1-5b22-4164-913f-061f10439005_585x471.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!sdkT!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feddcf8e1-5b22-4164-913f-061f10439005_585x471.png 424w, https://substackcdn.com/image/fetch/$s_!sdkT!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feddcf8e1-5b22-4164-913f-061f10439005_585x471.png 848w, https://substackcdn.com/image/fetch/$s_!sdkT!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feddcf8e1-5b22-4164-913f-061f10439005_585x471.png 1272w, https://substackcdn.com/image/fetch/$s_!sdkT!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feddcf8e1-5b22-4164-913f-061f10439005_585x471.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!sdkT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feddcf8e1-5b22-4164-913f-061f10439005_585x471.png" width="473" height="380.825641025641" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/eddcf8e1-5b22-4164-913f-061f10439005_585x471.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:471,&quot;width&quot;:585,&quot;resizeWidth&quot;:473,&quot;bytes&quot;:42911,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feddcf8e1-5b22-4164-913f-061f10439005_585x471.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!sdkT!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feddcf8e1-5b22-4164-913f-061f10439005_585x471.png 424w, https://substackcdn.com/image/fetch/$s_!sdkT!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feddcf8e1-5b22-4164-913f-061f10439005_585x471.png 848w, https://substackcdn.com/image/fetch/$s_!sdkT!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feddcf8e1-5b22-4164-913f-061f10439005_585x471.png 1272w, https://substackcdn.com/image/fetch/$s_!sdkT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feddcf8e1-5b22-4164-913f-061f10439005_585x471.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>NOTE:</p><blockquote><p><code>replace()</code> = find text; swap it with something else.</p></blockquote><div><hr></div><h3>maketrans() and translate() </h3><p><code>maketrans() </code>is used to create a translation table, which you then use with <code>translate(). </code>It builds the rules.</p><p><code>translate()</code> method is used to replace or remove characters in a string using a translation table. It applies the rules.</p><p>Syntax:</p><ul><li><p><code>str.maketrans(x, y, z)</code></p><ul><li><p>x - characters to replace</p></li><li><p>y - characters to replace them with</p></li><li><p>z - character to remove</p></li></ul></li></ul><ul><li><p><code>string.translate(table)</code></p><ul><li><p>table - a translation table created using <code>str.maketrans()</code></p></li></ul></li></ul><p>Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;5a047ea3-589c-42a9-afd0-68fcda274e3f&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "hey! ho!"
table = str.maketrans("h","y")
result = text.translate(table)

print(result)
</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!PT58!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!PT58!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png 424w, https://substackcdn.com/image/fetch/$s_!PT58!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png 848w, https://substackcdn.com/image/fetch/$s_!PT58!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png 1272w, https://substackcdn.com/image/fetch/$s_!PT58!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!PT58!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png" width="404" height="418.8408163265306" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:508,&quot;width&quot;:490,&quot;resizeWidth&quot;:404,&quot;bytes&quot;:39093,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!PT58!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png 424w, https://substackcdn.com/image/fetch/$s_!PT58!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png 848w, https://substackcdn.com/image/fetch/$s_!PT58!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png 1272w, https://substackcdn.com/image/fetch/$s_!PT58!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14f13ecd-4e99-48d7-98c5-a08c2fada2c4_490x508.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Replacing Multiple Characters:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;5eb3763b-5cd0-484a-a301-cc8f0f5c96d5&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "let's GO"
table = str.maketrans("let","LET")
result = text.translate(table)

print(result)
</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!elHr!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!elHr!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png 424w, https://substackcdn.com/image/fetch/$s_!elHr!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png 848w, https://substackcdn.com/image/fetch/$s_!elHr!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png 1272w, https://substackcdn.com/image/fetch/$s_!elHr!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!elHr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png" width="416" height="402.29457364341084" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:499,&quot;width&quot;:516,&quot;resizeWidth&quot;:416,&quot;bytes&quot;:39751,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!elHr!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png 424w, https://substackcdn.com/image/fetch/$s_!elHr!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png 848w, https://substackcdn.com/image/fetch/$s_!elHr!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png 1272w, https://substackcdn.com/image/fetch/$s_!elHr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2de5db2f-792f-4ce4-945a-00056348ce24_516x499.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Remove Characters:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;12c8b29c-9068-4df7-a691-7faf1f4c3886&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "let's GO"
table = str.maketrans("", "", "let")
result = text.translate(table)

print(result)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!LlLr!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60029d83-3a56-4390-a718-5c301a821530_556x508.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!LlLr!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60029d83-3a56-4390-a718-5c301a821530_556x508.png 424w, https://substackcdn.com/image/fetch/$s_!LlLr!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60029d83-3a56-4390-a718-5c301a821530_556x508.png 848w, https://substackcdn.com/image/fetch/$s_!LlLr!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60029d83-3a56-4390-a718-5c301a821530_556x508.png 1272w, https://substackcdn.com/image/fetch/$s_!LlLr!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60029d83-3a56-4390-a718-5c301a821530_556x508.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!LlLr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60029d83-3a56-4390-a718-5c301a821530_556x508.png" width="464" height="423.9424460431655" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/60029d83-3a56-4390-a718-5c301a821530_556x508.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:508,&quot;width&quot;:556,&quot;resizeWidth&quot;:464,&quot;bytes&quot;:39980,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60029d83-3a56-4390-a718-5c301a821530_556x508.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!LlLr!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60029d83-3a56-4390-a718-5c301a821530_556x508.png 424w, https://substackcdn.com/image/fetch/$s_!LlLr!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60029d83-3a56-4390-a718-5c301a821530_556x508.png 848w, https://substackcdn.com/image/fetch/$s_!LlLr!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60029d83-3a56-4390-a718-5c301a821530_556x508.png 1272w, https://substackcdn.com/image/fetch/$s_!LlLr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60029d83-3a56-4390-a718-5c301a821530_556x508.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Explanation:</p><blockquote><ul><li><p>Original string:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;257379bd-1150-4e46-982f-a7271b1fa5e4&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">text = "let's GO"</code></pre></div></li><li><p>Creating a translation table</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;ad2cbc85-2b40-4967-b965-24d880784216&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">table = str.maketrans("", "", "let")</code></pre></div><ul><li><p>As you may already know, <code>str.maketrans()</code> creates a translation table that translate() use.</p></li><li><p>It has three parameters: <code>str.maketrans(x, y, z)</code></p><ul><li><p>x - characters to replace</p></li><li><p>y - characters to replace them with</p></li><li><p>z - characters to delete</p></li></ul></li><li><p>What we had:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;723a52e1-c684-49ed-9928-29d4b3e4191a&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">x = ""
y = ""
z = "let"</code></pre></div></li><li><p>It says: Delete the characters &#8220;l&#8221;, &#8220;e&#8221;, and &#8220;t&#8221; from the string.</p></li></ul></li><li><p>Applying the translation</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;86e10acf-ae5b-480d-87b7-3b120418a822&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">result = text.translate(table)</code></pre></div><ul><li><p>translate() suses the table to modify the string</p></li></ul></li><li><p>Print result</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;bc675482-cfec-41a5-8178-873ea9d18318&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">'s GO</code></pre></div></li></ul></blockquote><p>Practical Example (Cleaning Text):</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;303a30af-d3f0-4324-9d1d-7cfd5201e545&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "Hello!!! How are you???"

table = str.maketrans("", "", "!?")

clean = text.translate(table)

print(clean)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!XYyd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!XYyd!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png 424w, https://substackcdn.com/image/fetch/$s_!XYyd!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png 848w, https://substackcdn.com/image/fetch/$s_!XYyd!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png 1272w, https://substackcdn.com/image/fetch/$s_!XYyd!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!XYyd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png" width="410" height="423.5164835164835" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:564,&quot;width&quot;:546,&quot;resizeWidth&quot;:410,&quot;bytes&quot;:42952,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!XYyd!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png 424w, https://substackcdn.com/image/fetch/$s_!XYyd!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png 848w, https://substackcdn.com/image/fetch/$s_!XYyd!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png 1272w, https://substackcdn.com/image/fetch/$s_!XYyd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e4f0f63-feba-48ee-be11-3bc7fa9f4010_546x564.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Practical Example (Sanitizing Input):</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;1804c5f8-d95b-4dbf-806c-c0a1dc3143b7&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "User@123!!!"

table = str.maketrans("", "", "!@")

clean = text.translate(table)

print(clean)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CxZn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CxZn!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png 424w, https://substackcdn.com/image/fetch/$s_!CxZn!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png 848w, https://substackcdn.com/image/fetch/$s_!CxZn!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png 1272w, https://substackcdn.com/image/fetch/$s_!CxZn!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!CxZn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png" width="402" height="413.2081784386617" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:553,&quot;width&quot;:538,&quot;resizeWidth&quot;:402,&quot;bytes&quot;:42551,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CxZn!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png 424w, https://substackcdn.com/image/fetch/$s_!CxZn!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png 848w, https://substackcdn.com/image/fetch/$s_!CxZn!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png 1272w, https://substackcdn.com/image/fetch/$s_!CxZn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3763e5ef-a6e4-4e41-8216-9ba2db3fbc33_538x553.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Passing a Dictionary:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;5ac5f7e0-6be0-4728-9dbd-45e7503b1f49&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "hello"

table = str.maketrans({
    "h": "H",
    "e": "3",
    "o": "0"
})

print(text.translate(table))</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Mqeh!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Mqeh!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png 424w, https://substackcdn.com/image/fetch/$s_!Mqeh!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png 848w, https://substackcdn.com/image/fetch/$s_!Mqeh!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png 1272w, https://substackcdn.com/image/fetch/$s_!Mqeh!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Mqeh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png" width="360" height="471.1553784860558" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:657,&quot;width&quot;:502,&quot;resizeWidth&quot;:360,&quot;bytes&quot;:40928,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Mqeh!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png 424w, https://substackcdn.com/image/fetch/$s_!Mqeh!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png 848w, https://substackcdn.com/image/fetch/$s_!Mqeh!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png 1272w, https://substackcdn.com/image/fetch/$s_!Mqeh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c9a375e-5a4b-4234-adff-348c79db3890_502x657.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3>Difference Between replace() and translate()</h3><blockquote><p>These methods are fast ways to remove or replace characters in a string.</p><p><code>replace()</code> is for replacing words or substrings (swap words).</p><p><code>translate()</code> is for efficiently replacing multiple characters (swapping characters using a map).</p></blockquote><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;0cd1f8a1-75a5-4cb7-bc94-469df2f126c1&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text.replace("cat", "dog")     # word replacement
text.translate(table)          # character mapping</code></pre></div><div><hr></div><h3>removeprefix()</h3><p>This is used to remove a specific prefix from the beginning of a string, only if it exists.</p><p>Syntax:</p><ul><li><p><code>string.removeprefix(prefix)</code></p><ul><li><p>prefix - the starting text you want to remove</p></li></ul></li></ul><p>Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;33d41bab-aed1-4e57-8123-894e10117ac1&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "subzero"

result = text.removeprefix("sub")

print(result)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!IiRT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!IiRT!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png 424w, https://substackcdn.com/image/fetch/$s_!IiRT!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png 848w, https://substackcdn.com/image/fetch/$s_!IiRT!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png 1272w, https://substackcdn.com/image/fetch/$s_!IiRT!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!IiRT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png" width="366" height="371.83266932270914" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:510,&quot;width&quot;:502,&quot;resizeWidth&quot;:366,&quot;bytes&quot;:36092,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!IiRT!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png 424w, https://substackcdn.com/image/fetch/$s_!IiRT!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png 848w, https://substackcdn.com/image/fetch/$s_!IiRT!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png 1272w, https://substackcdn.com/image/fetch/$s_!IiRT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa08b0e81-ea6e-47a6-b204-e56ad807c430_502x510.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>If Prefix doesn&#8217;t match:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;089077dc-01d3-4feb-a4be-d87594c43ba8&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "zero"

result = text.removeprefix("sub")

print(result)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!VS7a!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!VS7a!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png 424w, https://substackcdn.com/image/fetch/$s_!VS7a!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png 848w, https://substackcdn.com/image/fetch/$s_!VS7a!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png 1272w, https://substackcdn.com/image/fetch/$s_!VS7a!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!VS7a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png" width="389" height="377.84321223709367" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:508,&quot;width&quot;:523,&quot;resizeWidth&quot;:389,&quot;bytes&quot;:35743,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!VS7a!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png 424w, https://substackcdn.com/image/fetch/$s_!VS7a!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png 848w, https://substackcdn.com/image/fetch/$s_!VS7a!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png 1272w, https://substackcdn.com/image/fetch/$s_!VS7a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F98b47e11-dcd8-4dfe-b586-40466d6e1465_523x508.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Nothing changes if the prefix is not found.</p><p>Practical Example (Logs / Data Cleaning):</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;3da6f348-6c74-4f2f-8553-d171a9ff315d&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">log = "ERROR: User unauthorized - 401"

clean = log.removeprefix("ERROR: ")

print(clean)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!duy3!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!duy3!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png 424w, https://substackcdn.com/image/fetch/$s_!duy3!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png 848w, https://substackcdn.com/image/fetch/$s_!duy3!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png 1272w, https://substackcdn.com/image/fetch/$s_!duy3!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!duy3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png" width="398" height="364.0071174377224" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:514,&quot;width&quot;:562,&quot;resizeWidth&quot;:398,&quot;bytes&quot;:42600,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!duy3!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png 424w, https://substackcdn.com/image/fetch/$s_!duy3!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png 848w, https://substackcdn.com/image/fetch/$s_!duy3!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png 1272w, https://substackcdn.com/image/fetch/$s_!duy3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9cb73f3a-b83d-4084-8037-917af8db9fb6_562x514.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Common Use Case (URLs)</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;c9622205-9dc2-46b0-a436-cedeb0a98d9a&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">url = "https://example.com"

clean = url.removeprefix("https://")

print(clean)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!5rOe!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!5rOe!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png 424w, https://substackcdn.com/image/fetch/$s_!5rOe!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png 848w, https://substackcdn.com/image/fetch/$s_!5rOe!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png 1272w, https://substackcdn.com/image/fetch/$s_!5rOe!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!5rOe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png" width="417" height="402.9700934579439" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:517,&quot;width&quot;:535,&quot;resizeWidth&quot;:417,&quot;bytes&quot;:39767,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!5rOe!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png 424w, https://substackcdn.com/image/fetch/$s_!5rOe!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png 848w, https://substackcdn.com/image/fetch/$s_!5rOe!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png 1272w, https://substackcdn.com/image/fetch/$s_!5rOe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F21d9a875-f4f6-435b-9efc-a5909519caa2_535x517.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>NOTE:</p><blockquote><p>It removes only from the start, not in the middle or at the end. </p><p>It removes exact matches only.</p><p>Also, strings are immutable. Hence, <code>removeprefix() </code>returns a new string.</p></blockquote><div><hr></div><h3>removesuffix()</h3><p><code>removesuffix()</code> is used to remove a specific suffix from the end of a string, only if it exists.</p><p>Syntax:</p><ul><li><p>string.removesuffix(suffix)</p><ul><li><p>suffix - the ending text you want to remove</p></li></ul></li></ul><p>Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;367d7a27-6ebb-4d45-bd4c-16a8f2338fc5&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "filename.txt"

result = text.removesuffix(".txt")

print(result)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!q-9G!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!q-9G!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png 424w, https://substackcdn.com/image/fetch/$s_!q-9G!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png 848w, https://substackcdn.com/image/fetch/$s_!q-9G!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png 1272w, https://substackcdn.com/image/fetch/$s_!q-9G!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!q-9G!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png" width="385" height="377.6386233269599" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:513,&quot;width&quot;:523,&quot;resizeWidth&quot;:385,&quot;bytes&quot;:36723,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!q-9G!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png 424w, https://substackcdn.com/image/fetch/$s_!q-9G!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png 848w, https://substackcdn.com/image/fetch/$s_!q-9G!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png 1272w, https://substackcdn.com/image/fetch/$s_!q-9G!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe2c78bd3-38af-4a7f-bf89-66330d3f71e3_523x513.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>If the suffix doesn&#8217;t match:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;04c1a972-873b-4bfa-807c-d71464bc5385&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "filename.txt"

result = text.removesuffix(".jpg")

print(result)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!mmaf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!mmaf!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png 424w, https://substackcdn.com/image/fetch/$s_!mmaf!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png 848w, https://substackcdn.com/image/fetch/$s_!mmaf!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png 1272w, https://substackcdn.com/image/fetch/$s_!mmaf!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!mmaf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png" width="372" height="362.7" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:507,&quot;width&quot;:520,&quot;resizeWidth&quot;:372,&quot;bytes&quot;:37639,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!mmaf!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png 424w, https://substackcdn.com/image/fetch/$s_!mmaf!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png 848w, https://substackcdn.com/image/fetch/$s_!mmaf!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png 1272w, https://substackcdn.com/image/fetch/$s_!mmaf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1b8dcef0-c510-441f-a5fb-41502e3e8269_520x507.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>No change if the suffix isn&#8217;t found.</p><p>Cleaning Data:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;d65d5b8d-3754-4fbb-b172-42c3bf6b08f1&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">url = "example.com/"

clean = url.removesuffix("/")

print(clean)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CPsb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CPsb!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png 424w, https://substackcdn.com/image/fetch/$s_!CPsb!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png 848w, https://substackcdn.com/image/fetch/$s_!CPsb!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png 1272w, https://substackcdn.com/image/fetch/$s_!CPsb!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!CPsb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png" width="377" height="396.5134575569358" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:508,&quot;width&quot;:483,&quot;resizeWidth&quot;:377,&quot;bytes&quot;:37169,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CPsb!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png 424w, https://substackcdn.com/image/fetch/$s_!CPsb!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png 848w, https://substackcdn.com/image/fetch/$s_!CPsb!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png 1272w, https://substackcdn.com/image/fetch/$s_!CPsb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fab1509fe-a0b1-4775-bac4-e2e6c8fc5688_483x508.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Common Use (File Extensions)</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;3b665953-5d21-44b7-8ee8-2436d3e67b4b&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">file = "report.pdf"

name = file.removesuffix(".pdf")

print(name)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!UCdl!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!UCdl!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png 424w, https://substackcdn.com/image/fetch/$s_!UCdl!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png 848w, https://substackcdn.com/image/fetch/$s_!UCdl!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png 1272w, https://substackcdn.com/image/fetch/$s_!UCdl!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!UCdl!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png" width="392" height="387.42412451361866" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:508,&quot;width&quot;:514,&quot;resizeWidth&quot;:392,&quot;bytes&quot;:36109,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!UCdl!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png 424w, https://substackcdn.com/image/fetch/$s_!UCdl!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png 848w, https://substackcdn.com/image/fetch/$s_!UCdl!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png 1272w, https://substackcdn.com/image/fetch/$s_!UCdl!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7dceba5b-d022-45c5-b192-5c96d35940a2_514x508.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>NOTE:</p><blockquote><p>It works only at the end of the string.</p><p>It requires an exact match.</p><p>It returns a new string (original is unchanged)</p></blockquote><div><hr></div><h2>6. Checking String Content (Validation Methods)</h2><p>These return True or False</p><blockquote><ul><li><p>isalnum()</p></li><li><p>isalpha()</p></li><li><p>iasascii()</p></li><li><p>isdecimal()</p></li><li><p>isdigit()</p></li><li><p>isnumeric()</p></li><li><p>isidentifier()</p></li><li><p>islower()</p></li><li><p>isupper()</p></li><li><p>istitle()</p></li><li><p>isspace()</p></li><li><p>isprintable()</p></li></ul></blockquote><h3>isalnum()</h3><p><code>isalnum() </code>checks if all characters in a string are alphanumeric.</p><p>So, what counts as alphanumeric?</p><ul><li><p>Letters: a-z, A-Z</p></li><li><p>Numbers: 0-9</p></li><li><p>No spaces, symbols, or punctation allowed.</p></li></ul><p>Syntax:</p><ul><li><p>string.isalnum()</p></li></ul><p>Return Values:</p><ul><li><p>Returns True if all characters are letters or numbers.</p></li><li><p>Returns False if there&#8217;s even one space, symbol, or if the string is empty.</p></li></ul><p>Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;6512baba-4d97-4b8a-8b2b-660e33219540&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">print("abc123".isalnum())     # True
print("Hello".isalnum())      # True
print("12345".isalnum())      # True

print("abc 123".isalnum())    # False (space)
print("hello!".isalnum())     # False (!)
print("".isalnum())           # False (empty string)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!mScG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!mScG!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png 424w, https://substackcdn.com/image/fetch/$s_!mScG!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png 848w, https://substackcdn.com/image/fetch/$s_!mScG!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png 1272w, https://substackcdn.com/image/fetch/$s_!mScG!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!mScG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png" width="499" height="499" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/bb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:727,&quot;width&quot;:727,&quot;resizeWidth&quot;:499,&quot;bytes&quot;:74643,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!mScG!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png 424w, https://substackcdn.com/image/fetch/$s_!mScG!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png 848w, https://substackcdn.com/image/fetch/$s_!mScG!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png 1272w, https://substackcdn.com/image/fetch/$s_!mScG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbb53304c-038f-4af3-90f3-573ecc8cbf6b_727x727.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Useful for input validation, like checking usernames:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;0864ff8c-7666-4af7-b55e-1420f8bf0073&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">username = "user123"

if username.isalnum():
    print("Valid username")
else:
    print("Invalid username")</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!LUoc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!LUoc!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png 424w, https://substackcdn.com/image/fetch/$s_!LUoc!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png 848w, https://substackcdn.com/image/fetch/$s_!LUoc!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png 1272w, https://substackcdn.com/image/fetch/$s_!LUoc!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!LUoc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png" width="374" height="398.011673151751" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:547,&quot;width&quot;:514,&quot;resizeWidth&quot;:374,&quot;bytes&quot;:44248,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!LUoc!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png 424w, https://substackcdn.com/image/fetch/$s_!LUoc!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png 848w, https://substackcdn.com/image/fetch/$s_!LUoc!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png 1272w, https://substackcdn.com/image/fetch/$s_!LUoc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fae6cebc8-1cbc-4b99-9706-2c0bc2c3c182_514x547.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3>isalpha()</h3><p>It checks if all characters in a string are alphabetic, meaning letters only.</p><p>What counts?</p><ul><li><p>Only letters allowed (<code>a&#8211;z</code>, <code>A&#8211;Z</code>, and even Unicode letters like <code>&#241;</code>, <code>&#233;</code>)</p></li><li><p>No numbers, spaces, or symbols</p></li><li><p>An empty string returns False.</p></li></ul><p>Syntax:</p><ul><li><p><code>string.isalpha()</code></p></li></ul><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;ff5d7342-7213-41a6-9fe8-d138935e17f2&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">print("hello".isalpha())     # True
print("Python".isalpha())    # True

print("hello123".isalpha())  # False (contains numbers)
print("hello world".isalpha()) # False (space)
print("hello!".isalpha())    # False (!)
print("".isalpha())          # False (empty string)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!7S8u!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84313e96-1755-48af-8958-9b6cc6db108f_760x727.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7S8u!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84313e96-1755-48af-8958-9b6cc6db108f_760x727.png 424w, https://substackcdn.com/image/fetch/$s_!7S8u!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84313e96-1755-48af-8958-9b6cc6db108f_760x727.png 848w, https://substackcdn.com/image/fetch/$s_!7S8u!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84313e96-1755-48af-8958-9b6cc6db108f_760x727.png 1272w, https://substackcdn.com/image/fetch/$s_!7S8u!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84313e96-1755-48af-8958-9b6cc6db108f_760x727.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!7S8u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84313e96-1755-48af-8958-9b6cc6db108f_760x727.png" width="483" height="462.02763157894736" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/84313e96-1755-48af-8958-9b6cc6db108f_760x727.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:727,&quot;width&quot;:760,&quot;resizeWidth&quot;:483,&quot;bytes&quot;:78740,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84313e96-1755-48af-8958-9b6cc6db108f_760x727.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!7S8u!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84313e96-1755-48af-8958-9b6cc6db108f_760x727.png 424w, https://substackcdn.com/image/fetch/$s_!7S8u!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84313e96-1755-48af-8958-9b6cc6db108f_760x727.png 848w, https://substackcdn.com/image/fetch/$s_!7S8u!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84313e96-1755-48af-8958-9b6cc6db108f_760x727.png 1272w, https://substackcdn.com/image/fetch/$s_!7S8u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84313e96-1755-48af-8958-9b6cc6db108f_760x727.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Use case:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;26f96744-18e9-49a9-9407-eb2230f131d9&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">name = "Fat Mike"

if name.isalpha():
    print("Valid name")
else:
    print("Invalid name")</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CibT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CibT!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png 424w, https://substackcdn.com/image/fetch/$s_!CibT!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png 848w, https://substackcdn.com/image/fetch/$s_!CibT!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png 1272w, https://substackcdn.com/image/fetch/$s_!CibT!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!CibT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png" width="327" height="405.76129032258063" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:577,&quot;width&quot;:465,&quot;resizeWidth&quot;:327,&quot;bytes&quot;:40888,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CibT!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png 424w, https://substackcdn.com/image/fetch/$s_!CibT!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png 848w, https://substackcdn.com/image/fetch/$s_!CibT!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png 1272w, https://substackcdn.com/image/fetch/$s_!CibT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4a7e45bb-d013-41ae-9c15-757dbd00f29b_465x577.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>There&#8217;s a space</p><div><hr></div><h3>isascii()</h3><p>It checks whether all characters in a string are ASCII.</p><p>ASCII characters include:</p><ul><li><p>Letters: <code>A&#8211;Z</code>, <code>a&#8211;z</code></p></li><li><p>Numbers: <code>0&#8211;9</code></p></li><li><p>Symbols: <code>! @ # $ %</code>, etc.</p></li><li><p>Control characters (like newline <code>\n</code>)</p></li></ul><p>Return Values:</p><ul><li><p>Returns True if all characters are in the ASCII (0-127 range.</p></li><li><p>Returns False if any non-ASCII character is present</p></li><li><p>Empty string returns True</p></li></ul><p>Syntax:</p><ul><li><p><code>string.isascii()</code></p></li></ul><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;4d79a0e4-f10a-49e2-8c57-6bb8d6ed5b6d&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">print("hello".isascii())        # True
print("123".isascii())          # True
print("hello123!".isascii())    # True

print("&#241;".isascii())            # False
print("&#20320;&#22909;".isascii())         # False
print("hello&#241;".isascii())       # False</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!UeTK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a88475b-6108-4817-9a46-16b9a9485081_601x735.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!UeTK!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a88475b-6108-4817-9a46-16b9a9485081_601x735.png 424w, https://substackcdn.com/image/fetch/$s_!UeTK!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a88475b-6108-4817-9a46-16b9a9485081_601x735.png 848w, https://substackcdn.com/image/fetch/$s_!UeTK!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a88475b-6108-4817-9a46-16b9a9485081_601x735.png 1272w, https://substackcdn.com/image/fetch/$s_!UeTK!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a88475b-6108-4817-9a46-16b9a9485081_601x735.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!UeTK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a88475b-6108-4817-9a46-16b9a9485081_601x735.png" width="375" height="458.6106489184692" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0a88475b-6108-4817-9a46-16b9a9485081_601x735.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:735,&quot;width&quot;:601,&quot;resizeWidth&quot;:375,&quot;bytes&quot;:68159,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a88475b-6108-4817-9a46-16b9a9485081_601x735.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!UeTK!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a88475b-6108-4817-9a46-16b9a9485081_601x735.png 424w, https://substackcdn.com/image/fetch/$s_!UeTK!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a88475b-6108-4817-9a46-16b9a9485081_601x735.png 848w, https://substackcdn.com/image/fetch/$s_!UeTK!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a88475b-6108-4817-9a46-16b9a9485081_601x735.png 1272w, https://substackcdn.com/image/fetch/$s_!UeTK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0a88475b-6108-4817-9a46-16b9a9485081_601x735.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Quick case:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;2a66ad0f-3c54-486d-9afe-67bd8ae462ab&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = input("Enter text: ")

if text.isascii():
    print("Standard ASCII text")
else:
    print("Contains special/unicode characters")</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!uJ3j!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!uJ3j!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png 424w, https://substackcdn.com/image/fetch/$s_!uJ3j!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png 848w, https://substackcdn.com/image/fetch/$s_!uJ3j!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png 1272w, https://substackcdn.com/image/fetch/$s_!uJ3j!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!uJ3j!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png" width="457" height="405.76681614349775" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:594,&quot;width&quot;:669,&quot;resizeWidth&quot;:457,&quot;bytes&quot;:51777,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!uJ3j!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png 424w, https://substackcdn.com/image/fetch/$s_!uJ3j!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png 848w, https://substackcdn.com/image/fetch/$s_!uJ3j!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png 1272w, https://substackcdn.com/image/fetch/$s_!uJ3j!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa48c37aa-fc1f-4854-ab64-c5322fd91e78_669x594.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3>isdecimal()</h3><p><code>isdecimal() </code>checks if all characters in a string are decimal digits. This is stricter than just &#8220;numners&#8221;. It includes only characters that can be used to form base-10 numbers.</p><p>Syntax:</p><ul><li><p><code>string.isdecimal()</code></p></li></ul><p>Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;3707243e-9930-49ac-9412-540c993e8cbb&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">print("12345".isdecimal())      # True
print("&#1632;&#1633;&#1634;&#1635;".isdecimal())       # True (Arabic-Indic digits)
print("123.45".isdecimal())     # False (decimal point is not a digit)
print("123a".isdecimal())       # False (letter)
print("".isdecimal())           # False (empty string)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!LEq8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!LEq8!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png 424w, https://substackcdn.com/image/fetch/$s_!LEq8!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png 848w, https://substackcdn.com/image/fetch/$s_!LEq8!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png 1272w, https://substackcdn.com/image/fetch/$s_!LEq8!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!LEq8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png" width="619" height="415.983922829582" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:627,&quot;width&quot;:933,&quot;resizeWidth&quot;:619,&quot;bytes&quot;:76767,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!LEq8!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png 424w, https://substackcdn.com/image/fetch/$s_!LEq8!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png 848w, https://substackcdn.com/image/fetch/$s_!LEq8!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png 1272w, https://substackcdn.com/image/fetch/$s_!LEq8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1fc9a2d9-a57f-45e2-bc3a-6123007e1a6b_933x627.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>NOTE:</p><ul><li><p>Only decimal digits count (0-9 and other Unicode decimal digits)</p></li><li><p>Symbols, letters, spaces, and punctaiton return False.</p></li><li><p>Empty string returns False</p></li></ul><div><hr></div><h3>isdigit()</h3><p><code>isdigit() </code>is a string method that checks if all characters in a string are digits, including more than just decimal digits. It&#8217;s slightly broader than <code>isdecimal()</code></p><p>Syntax:</p><ul><li><p>string.isdigit()</p></li></ul><p>Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;ac37ec7d-0174-4e47-a08e-8646f4477e92&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">print("12345".isdigit())        # True (regular digits)
print("&#178;&#179;".isdigit())            # True (superscript digits)
print("123.45".isdigit())        # False (decimal point is not a digit)
print("123a".isdigit())          # False (contains letter)
print("".isdigit())              # False (empty string)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!S7Et!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!S7Et!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png 424w, https://substackcdn.com/image/fetch/$s_!S7Et!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png 848w, https://substackcdn.com/image/fetch/$s_!S7Et!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png 1272w, https://substackcdn.com/image/fetch/$s_!S7Et!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!S7Et!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png" width="565" height="377.87007454739086" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:628,&quot;width&quot;:939,&quot;resizeWidth&quot;:565,&quot;bytes&quot;:76365,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!S7Et!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png 424w, https://substackcdn.com/image/fetch/$s_!S7Et!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png 848w, https://substackcdn.com/image/fetch/$s_!S7Et!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png 1272w, https://substackcdn.com/image/fetch/$s_!S7Et!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5fdb01bf-e73a-4939-a03e-6d5b51a53078_939x628.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>NOTES:</p><ul><li><p>Include digits like 0-9 and Unicode digits (superscripts, subscripts, etc.)</p></li><li><p>Returns False if any non-digit character is present (letters, punctuation, spaces)</p></li><li><p>Empty string returns False.</p></li></ul><div><hr></div><h3>isnumeric()</h3><p><code>isnumeric()</code> is a Python string method that checks if all characters in a string are numeric, which is the broadest numeric check among the <code>is*()</code> methods. </p><p>It includes decimal digits, digits from other number systems, and numeric characters like fractions, subscripts, superscripts, and Roman numerals.</p><p>Syntax:</p><ul><li><p><code>string.isnumeric()</code></p></li></ul><p>Examples:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;dd0db0cb-0830-4e11-bf14-2ca1f3443a61&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">print("12345".isnumeric())      # True (regular digits)
print("&#178;&#179;".isnumeric())          # True (superscript digits)
print("&#8533;".isnumeric())           # True (fraction)
print("123.45".isnumeric())      # False (decimal point is not numeric)
print("123a".isnumeric())        # False (contains letter)
print("".isnumeric())            # False (empty string)</code></pre></div><p>NOTE:</p><ul><li><p>Covers all numeric characters in Unicode (decimal, superscripts, fractions, Roman numerals, etc.)</p></li><li><p>Retruns False if any non-numeric character ir psresent</p></li><li><p>Empty string returns False</p></li></ul><div><hr></div><h3>isidentifier()</h3><p>It checks if a string is a valid Python identifier (e.g., a valid vairable, function, or class name).</p><p>Syntax:</p><ul><li><p><code>string.isidentifier()</code></p></li></ul><p>What xmakesampl a valid identifier?</p><ul><li><p>Contains:</p><ul><li><p>Letters(<code>a&#8211;z</code>, <code>A&#8211;Z</code>)</p></li><li><p>Digits (<code>0&#8211;9</code>)</p></li><li><p>Underscores (<code>_</code>)</p></li></ul></li><li><p>Rules:</p><ul><li><p>Must not start with a digit</p></li><li><p>No spaces or special characters (<code>@</code>, <code>#</code>, <code>-</code>, etc.)</p></li><li><p>Cannot be a <strong>Python keyword</strong> (like <code>for</code>, <code>if</code>, <code>class</code>)</p></li></ul></li></ul><p>Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;07f95500-73db-4663-b7f8-40d3feced5f5&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">print("variable1".isidentifier())   # True
print("_name".isidentifier())       # True

print("1variable".isidentifier())   # False (starts with number)
print("my var".isidentifier())      # False (space)
print("user-name".isidentifier())   # False (- not allowed)
print("for".isidentifier())         # True (but it's a keyword!)</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HXTs!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc307dacc-448a-4f88-aaf8-168183bca62d_874x721.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HXTs!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc307dacc-448a-4f88-aaf8-168183bca62d_874x721.png 424w, https://substackcdn.com/image/fetch/$s_!HXTs!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc307dacc-448a-4f88-aaf8-168183bca62d_874x721.png 848w, https://substackcdn.com/image/fetch/$s_!HXTs!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc307dacc-448a-4f88-aaf8-168183bca62d_874x721.png 1272w, https://substackcdn.com/image/fetch/$s_!HXTs!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc307dacc-448a-4f88-aaf8-168183bca62d_874x721.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!HXTs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc307dacc-448a-4f88-aaf8-168183bca62d_874x721.png" width="562" height="463.6178489702517" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c307dacc-448a-4f88-aaf8-168183bca62d_874x721.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:721,&quot;width&quot;:874,&quot;resizeWidth&quot;:562,&quot;bytes&quot;:86232,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc307dacc-448a-4f88-aaf8-168183bca62d_874x721.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!HXTs!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc307dacc-448a-4f88-aaf8-168183bca62d_874x721.png 424w, https://substackcdn.com/image/fetch/$s_!HXTs!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc307dacc-448a-4f88-aaf8-168183bca62d_874x721.png 848w, https://substackcdn.com/image/fetch/$s_!HXTs!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc307dacc-448a-4f88-aaf8-168183bca62d_874x721.png 1272w, https://substackcdn.com/image/fetch/$s_!HXTs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc307dacc-448a-4f88-aaf8-168183bca62d_874x721.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Important Note:</p><p><code>isidentifier() </code>does NOT check for keywords, so:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;a43326cf-a093-4867-9049-162e71142d9a&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">import keyword

print("for".isidentifier())          # True
print(keyword.iskeyword("for"))      # True</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!p3dO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a49fad-01fb-4451-af11-94a026be0857_627x523.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!p3dO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a49fad-01fb-4451-af11-94a026be0857_627x523.png 424w, https://substackcdn.com/image/fetch/$s_!p3dO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a49fad-01fb-4451-af11-94a026be0857_627x523.png 848w, https://substackcdn.com/image/fetch/$s_!p3dO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a49fad-01fb-4451-af11-94a026be0857_627x523.png 1272w, https://substackcdn.com/image/fetch/$s_!p3dO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a49fad-01fb-4451-af11-94a026be0857_627x523.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!p3dO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a49fad-01fb-4451-af11-94a026be0857_627x523.png" width="483" height="402.88516746411483" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/00a49fad-01fb-4451-af11-94a026be0857_627x523.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:523,&quot;width&quot;:627,&quot;resizeWidth&quot;:483,&quot;bytes&quot;:42731,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a49fad-01fb-4451-af11-94a026be0857_627x523.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!p3dO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a49fad-01fb-4451-af11-94a026be0857_627x523.png 424w, https://substackcdn.com/image/fetch/$s_!p3dO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a49fad-01fb-4451-af11-94a026be0857_627x523.png 848w, https://substackcdn.com/image/fetch/$s_!p3dO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a49fad-01fb-4451-af11-94a026be0857_627x523.png 1272w, https://substackcdn.com/image/fetch/$s_!p3dO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00a49fad-01fb-4451-af11-94a026be0857_627x523.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>To fully validate a variable name, use both:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;01c601cb-5727-4228-bdb9-f96c9f5fa0e8&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">import keyword

print("for".isidentifier())          # True
print(keyword.iskeyword("for"))      # True

name = "for"

if name.isidentifier() and not keyword.iskeyword(name):
    print("Valid variable name")
else:
    print("Invalid variable name")</code></pre></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CWtg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CWtg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png 424w, https://substackcdn.com/image/fetch/$s_!CWtg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png 848w, https://substackcdn.com/image/fetch/$s_!CWtg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png 1272w, https://substackcdn.com/image/fetch/$s_!CWtg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!CWtg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png" width="614" height="641.1244979919679" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:780,&quot;width&quot;:747,&quot;resizeWidth&quot;:614,&quot;bytes&quot;:67582,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/189938937?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CWtg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png 424w, https://substackcdn.com/image/fetch/$s_!CWtg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png 848w, https://substackcdn.com/image/fetch/$s_!CWtg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png 1272w, https://substackcdn.com/image/fetch/$s_!CWtg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84faaa43-bc73-4007-9116-ed175112b6ea_747x780.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Useful for validating:</p><ul><li><p>Variable names</p></li><li><p>Function names</p></li><li><p>User-defined identifiers</p></li></ul><div><hr></div><h3>islower()</h3><p>Checks if all cased characters in a string are lowercase</p><p>Syntax:</p><ul><li><p>string.islower()</p></li></ul><p>Return Values:</p><ul><li><p>Returns True if all letters are lowercase</p></li><li><p>Ignores numbers, symbols, and spaces</p></li><li><p>Returns False if:</p><ul><li><p>There is any uppercase letter</p></li><li><p>There are no letters at all</p></li><li><p>String is empty</p></li></ul></li></ul><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;1ce3e1d2-3f83-4be3-811c-3e9a0f1807e2&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">print("hello".islower())      # True
print("hello123".islower())   # True (numbers are ignored)
print("hello!".islower())     # True (symbols are ignored)

print("Hello".islower())      # False (uppercase H)
print("HELLO".islower())      # False (all uppercase)
print("123".islower())        # False (no letters at all)
print("".islower())           # False (empty string)</code></pre></div><p>Use Case:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;872cdabf-962c-4e95-a836-ecfe0392648d&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "security"

if text.islower():
    print("All lowercase")</code></pre></div><div><hr></div><h3>isupper()</h3><p>Checks if all cased characters in a string are uppercase.</p><p>Syntax:</p><ul><li><p>string.isupper()</p></li></ul><p>Return Values:</p><ul><li><p>Returns True if all letters are uppercase</p></li><li><p>Ignores numbers, symbols, and spaces</p></li><li><p>Returns False if:</p><ul><li><p>There is any lowercase letter</p></li><li><p>There are no letters at all</p></li><li><p>The string is empty</p></li></ul></li></ul><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;e704598d-bd70-4712-9275-4b55842e19d7&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">print("HELLO".isupper())      # True
print("HELLO123".isupper())   # True (numbers ignored)
print("HELLO!".isupper())     # True (symbols ignored)

print("Hello".isupper())      # False (lowercase present)
print("hello".isupper())      # False (all lowercase)
print("123".isupper())        # False (no letters)
print("".isupper())           # False (empty string)</code></pre></div><p>Use Case:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;098fd215-8565-454b-99e6-243ee551170b&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "ADMIN"

if text.isupper():
    print("All uppercase")</code></pre></div><div><hr></div><h3>istitle()</h3><p>Checks if a string is in title case, meaning every word starts with an uppercase letter followed by lowercase letters.</p><p>Syntax:</p><ul><li><p>string.istitle()</p></li></ul><p>Return:</p><ul><li><p>Each word must start with uppercase letter followed by only lowercase letters</p></li><li><p>Ignores numebrs, symbols, and spaces</p></li><li><p>Returns False if:</p><ul><li><p>Any word does not follow title case</p></li><li><p>The string is empty</p></li></ul></li></ul><p>Example:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;900ef84e-0c83-4ad4-826a-200bd360caa7&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">print("Hello World".istitle())    # True
print("Python Is Fun".istitle())  # True
print("Hello world".istitle())    # False (world not capitalized)
print("HELLO WORLD".istitle())    # False (all uppercase)
print("hello world".istitle())    # False (all lowercase)
print("123 Go".istitle())         # True (numbers ignored)
print("".istitle())               # False (empty string)</code></pre></div><p>Use Case:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;1e9be2ad-05d9-448f-b58b-48ff1bead239&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "Data Science"

if text.istitle():
    print("Properly title-cased")</code></pre></div><div><hr></div><h3>isspace()</h3><p>It checks whether all characters in a string are whitespace.</p><p>Syntax:</p><ul><li><p><code>string.isspace()</code></p></li></ul><p>What counts as whitespace:</p><ul><li><p>Space: <code>" "</code></p></li><li><p>Tab: <code>"\t"</code></p></li><li><p>Newline: <code>"\n"</code></p></li><li><p>Other Unicode whitespace characters</p></li></ul><p>Return Values:</p><ul><li><p>Returns True if all characters are whitespace</p></li><li><p>Returns False if there is any non-whitespace character or the string is empty</p></li></ul><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;f790a688-3c30-4bfd-80da-ec4ea366f67e&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">print("   ".isspace())       # True (spaces only)
print("\t\n".isspace())      # True (tabs and newlines)
print(" a ".isspace())       # False (contains non-whitespace)
print("".isspace())          # False (empty string)
print("hello".isspace())     # False (letters)</code></pre></div><p>Use case:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;e26c3f98-2a90-48c3-8d53-6be566e706ac&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "    "
if text.isspace():
    print("String contains only whitespace")</code></pre></div><p>This one is especially useful when validating input to ignore empty or space-only strings.</p><div><hr></div><h3>isprintable()</h3><p>It checks if all characters in a string are printable.</p><p>Syntax:</p><ul><li><p><code>string.isprintable()</code></p></li></ul><p>What counts as printable:</p><ul><li><p>Letters: <code>A&#8211;Z</code>, <code>a&#8211;z</code></p></li><li><p>Numbers: <code>0&#8211;9</code></p></li><li><p>Symbols and punctuation: <code>! @ # $ %</code></p></li><li><p>Spaces</p></li></ul><p>Non-printable characters include:</p><ul><li><p>Newlines <code>\n</code></p></li><li><p>Tabs <code>\t</code></p></li><li><p>Other control characters</p></li></ul><p>Return Values:</p><ul><li><p>Returns True if all cahracters are printable ( or stirng is empty)</p></li><li><p>Retruns False if any characeter is non-printable</p></li></ul><p>Examples:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;efcb33e4-fb51-4003-ac3d-37f854014d16&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">print("Hello World!".isprintable())  # True
print("12345".isprintable())         # True
print("Hello\tWorld".isprintable())  # False (tab)
print("Line1\nLine2".isprintable())  # False (newline)
print("".isprintable())              # True (empty string is considered printable)</code></pre></div><p>Use Case:</p><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;python&quot;,&quot;nodeId&quot;:&quot;0754a826-a0a4-435d-99ae-bdd551b96321&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-python">text = "Hello World!"
if text.isprintable():
    print("Safe to display")
else:
    print("Contains control characters")</code></pre></div><div><hr></div><h1>In This Pit</h1><p>So we&#8217;ve tackled:</p><ul><li><p>Splitting and Joining Strings</p></li><li><p>Replacing and Modifying text</p></li><li><p>Checking String Content (Validation Methods)</p></li></ul><p>But again, we didn&#8217;t just manipulate text. We made it behave. We made them work in real scenarios, turning raw strings nto structured data, clean outputs, and actionable resutlts. From parsing input to formatting for reports, every method had its moment. This isn&#8217;t theory; this is strings in action.</p><p>Part 3 ahead.</p><p></p>]]></content:encoded></item><item><title><![CDATA[The Gap Game]]></title><description><![CDATA[Where You Are vs. Where You Want to Be]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/the-gap-game</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/the-gap-game</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Tue, 17 Mar 2026 07:01:40 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!n85H!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The organization thought it was tight. Firewalls, passwords, and the whole act.</p><p><em>But in reality? </em>Way messier.</p><p>Gap Analysis creaches in like a riot, tearing through links: absent rules, sloppy habits, and half-baked policies.</p><p>Bang. Cracks, Holes, and Chaos. All laid bare.</p><p><em>And now? </em>Time to fix it&#8230; or continually get wrecked.</p><div><hr></div><h1>The Gap Game</h1><p>An organization begins by assessing its current security posture against a desired or required standard through a <em>Gap Analysis. </em></p><p>Gap Analysis focuses on identifying gaps or areas where controls, policies, or practices are missing, insufficient, or misaligned with best practices or compliance requirements. Once these gaps are identified, the next step is to determine the actions and measures needed to achieve the target security posture.</p><p>Put simply:</p><ul><li><p>Where are we now?</p></li><li><p>Where do we want to be?</p></li><li><p>What&#8217;s stopping us?</p></li><li><p>What should we do to close the gap?</p></li></ul><p>Sounds simple, right? </p><p>While it may sound simple, doing it is a grind. Performing the evaluation is complex and can take weeks, months, or even years, often involving multiple stakeholders, data collection, and extensive project planning. </p><p>It&#8217;s not just the technical work. It&#8217;s also about herding egos, the effort in tracking down data, and probably dodging endless planning meetings. And still, every uncovered gap is a wake-up call: f<em>ix it&#8230; or face the potential consequences.</em></p><div><hr></div><h1>How It Works</h1><h2>Define the Baseline </h2><p>It&#8217;s consistently beneficial to set a baseline before diving into Gap Analysis.</p><p><em>What&#8217;s our starting line? </em></p><p><em>What&#8217;s our target state or benchmark to measure every move against?</em></p><p>Baseline may come from an established framework, standard, or regulations, such as:</p><ul><li><p>ISO/IEC 27001 - Framework for ISMS (Information Security Management Systems)</p></li><li><p>NIST CSF (Cybersecurity Framework) - Provides a flexible framework for managing and reducing cybersecurity risk.</p></li><li><p>PCI-DSS <strong>(</strong>Payment Card Industry Data Security Standard<strong>)</strong> - Ensures secure handling of cardholder data.</p></li><li><p>HIPAA (Health Insurance Portability and Accountability Act<strong>)</strong> - Protects sensitive patient health information.</p></li><li><p>SOC 2 (System and Organization Controls 2<strong>)</strong> &#8211; Focuses on security, availability, processing integrity, confidentiality, and privacy of systems.</p></li><li><p>MITRE ATT&amp;CK - For threat-informed gap analysis against real-world TTPs</p></li><li><p>Custom Baselines - Tailored ot the organization&#8217;s specific requirements and risk profile.</p></li></ul><h2>Assess the Current State</h2><p><em>What&#8217;s really going on right now?</em></p><p><em>What are the current performance levels, processes, or results?</em></p><p>This is the time to check the reality. We evaluate the organization&#8217;s existing security contorls, policies, procedures, technologies, and configurations as they are implemented today.</p><p>Gap Analysis usually hits three fronts:<em> people, processes, </em>and<em> systems.</em></p><h3>People</h3><p>Evaluate IT staff&#8217;s security expertise, training, and familiarity with policies and procedures.</p><p><em>Who&#8217;s got the skills, the training, the policy know-how? </em></p><p><em>Who&#8217;s on point, and who&#8217;s just coasting?</em></p><h3>Processes</h3><p>Evaluate IT systems for adherence to established security standards and policies.</p><p>How well do your IT systems actually follow the rules? It is a paper policy versus reality. And sometimes, it&#8217;s a rude awakening.</p><h3>Technology Systems</h3><p>Identify vulnerabilities in the current IT infrastructure and benchmark them against industry best practices to mitigate risk.</p><p><em>Where are the cracks? Where could it blow up?</em></p><p>Understanding and mapping trust boundaries is critical to this assessment.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!n85H!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!n85H!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg 424w, https://substackcdn.com/image/fetch/$s_!n85H!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg 848w, https://substackcdn.com/image/fetch/$s_!n85H!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!n85H!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!n85H!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg" width="1456" height="819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:819,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Prioritizing the Human Element | When Technology isn't Enough&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Prioritizing the Human Element | When Technology isn't Enough" title="Prioritizing the Human Element | When Technology isn't Enough" srcset="https://substackcdn.com/image/fetch/$s_!n85H!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg 424w, https://substackcdn.com/image/fetch/$s_!n85H!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg 848w, https://substackcdn.com/image/fetch/$s_!n85H!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!n85H!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64384c69-5791-42d9-bd48-81179966bab5_1470x827.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;382d3efd-68bf-41c9-ae5c-a8bb60ead047&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">Image Source: humanrisks.com</code></pre></div><p>Gap Analysis aims to break down broad security areas into detailed components.</p><p><em>For instance:</em></p><ul><li><p>Security Awareness Training can be segmented into phishing simulations, policy education and role-based exercises.</p></li><li><p>Data Protection can be split into encryption, backup and recovert, and data loss prevention.</p></li><li><p>Identity and Authentication can be divided into single sign-on, multi-factor authentication, and credential lifecycle management.</p></li></ul><p>By examining each phase individually, potential gaps can be identified more efficiently.</p><h2>Identify the Gaps</h2><p>After assessing the current state, collecting and analyzing data across all locations and systems, a gap analysis report is compiled.</p><p>This report is used to:</p><ul><li><p>Compare the current state against the target state (baseline objectives) to uncover deficiencies, such as missing contorls, outdated policies, unpatched systems, or lack of training.</p></li><li><p>Identifies the resources, time, and changes needed to close gaps.</p></li><li><p>Provides a prioritized roadmap for implementing security improvements.</p></li></ul><h2>Prioritize and Remediate</h2><p>Rank gaps by risk level and business impact, then develop a remediation roadmap to close them.</p><p>Visualization tools, such as color-coded tables, can highlight areas requiring immediate focus:</p><ul><li><p><strong>Green</strong> - Close to baseline</p></li><li><p><strong>Yellow</strong> - Partial compliance</p></li><li><p><strong>Red</strong> - Requires significant work.</p></li></ul><p>Ultimately, a gap analysis provides both a snapshot of the current security posture and a clear plan to achieve the desired level of protection.</p><div><hr></div><h1>Gap Analysis: Play Hard or Get Played</h1><p>This is where you get real about your security posture. Gap Analysis lays out where you stand, where you need to be, what&#8217;s missing in-between and what it will take to get there. No guesswork, just facts.</p><p>Why it matters:</p><ul><li><p>Compliance - Ensures the organization meets regulatory requirements ahead of audits.</p></li><li><p>Risk Reduction - Identifies vulnerabilities before attackers can exploit them.</p></li><li><p>Resource Planning - Justifies security budgets by quantifying gaps and needs.</p></li><li><p>Roadmap Building - Provides a structured path toward a mature, effective security program.</p></li><li><p>Benchmarking - Enables tracking of security improvements over time.</p></li></ul><p>At its core, it&#8217;s a reality check for your security. It&#8217;s an unfiltered look at what&#8217;s actually working versus what jsut looks good on paper. It strips away assumptions, outdated controls, and false confidence, forcing you to conforont real exposure, weak enforcment, and overlooked risk.</p><p>Expose the gaps. Patch them. Move on stronger.</p><p></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[Data Ingestion]]></title><description><![CDATA[SIEM Part 3: Data Ingestion and Methods]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/data-ingestion</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/data-ingestion</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Mon, 16 Mar 2026 08:43:23 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!KEAt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Previously, we tackled Data Processing and the Different Data Types that power security analytics:</p><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;59b5c855-9a24-440c-b216-676fdfd4b96d&quot;,&quot;caption&quot;:&quot;Has it ever occurred to you:&quot;,&quot;cta&quot;:&quot;Read full story&quot;,&quot;showBylines&quot;:true,&quot;size&quot;:&quot;sm&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;How Data Flows and Is Processed in a SIEM System&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:433782858,&quot;name&quot;:&quot;greg&quot;,&quot;bio&quot;:&quot;Here to read and write&quot;,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8e9d4fed-e5a3-4fa1-8626-e772cdbf49e9_1022x1024.png&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2026-03-11T02:51:12.354Z&quot;,&quot;cover_image&quot;:&quot;https://substackcdn.com/image/fetch/$s_!KEAt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg&quot;,&quot;cover_image_alt&quot;:null,&quot;canonical_url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/how-data-flows-and-is-processed-in&quot;,&quot;section_name&quot;:&quot;CyberNook&quot;,&quot;video_upload_id&quot;:null,&quot;id&quot;:186221447,&quot;type&quot;:&quot;newsletter&quot;,&quot;reaction_count&quot;:0,&quot;comment_count&quot;:0,&quot;publication_id&quot;:7541790,&quot;publication_name&quot;:&quot;Peculiar Mixture Of Chill And Effort&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/$s_!ph1b!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6adacff-a1b0-4d51-8b1e-21c4a4c891e8_1280x1280.png&quot;,&quot;belowTheFold&quot;:false,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div><p>Because of this, we&#8217;re now aware that a SIEM system effectively combines the functions of SIM and SEM. </p><p>The Security Information Management (SIM) component collects and organizes relevant security logs, such as Active Directory logins, identity-related alerts, and more, into a centralized repository, focusing only on what&#8217;s useful.</p><p>Security Event Management (SEM), in contrast, analyzes these logs in real time, detects anomalies, and guides response actions. </p><p>Together, SIM and SEM transform raw data into actionable threat intelligence, enabling organizations to detect, investigate, and respond to security incidents more effectively.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!KEAt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!KEAt!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 424w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 848w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!KEAt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg" width="690" height="355" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:355,&quot;width&quot;:690,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Why Should Enterprises Choose EventLog Analyzer as Their SIEM Solution?&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Why Should Enterprises Choose EventLog Analyzer as Their SIEM Solution?" title="Why Should Enterprises Choose EventLog Analyzer as Their SIEM Solution?" srcset="https://substackcdn.com/image/fetch/$s_!KEAt!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 424w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 848w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In addition, SIEM systems process data through stages:</p><ol><li><p>Determining the Data Types</p></li><li><p><em>Data Ingestion </em></p></li><li><p>Storage</p></li><li><p>Parsing</p></li><li><p>Normalization</p></li><li><p>Indexing</p></li></ol><p>It all starts by identifying Data Types. This just says that data in a SIEM can be structured, semi-structured, or unstructured. </p><ol><li><p>Structured - with predefined schema that&#8217;s easy to analyze (e.g., firewall logs, Windows Event Logs, SQL tables)</p></li><li><p>Semi-structured - partially organized for easier parsing (e.g., JSON/XML logs, cloud events, IoT data).</p></li><li><p>Unstructured - lacking a set schema and requiring advanced processing (e.g., emails, images, audio/video)</p></li></ol><p>When choosing SIEM, focus primarily on structured data while remembering that semi-structured and unstructured data can enhance visibility; always verify that the platform supports your log formats, because if it can&#8217;t ingest them, it can&#8217;t generate insights. Although modern solutions like Microsoft Sentinel can handle custom schemas and virtually any log format via APIs</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_g17!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_g17!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 424w, https://substackcdn.com/image/fetch/$s_!_g17!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 848w, https://substackcdn.com/image/fetch/$s_!_g17!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 1272w, https://substackcdn.com/image/fetch/$s_!_g17!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_g17!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png" width="755" height="623" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:623,&quot;width&quot;:755,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:50845,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/186221447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe69a619c-4f64-420f-9c75-740c4c6faf27_763x658.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!_g17!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 424w, https://substackcdn.com/image/fetch/$s_!_g17!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 848w, https://substackcdn.com/image/fetch/$s_!_g17!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 1272w, https://substackcdn.com/image/fetch/$s_!_g17!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h1>Data Ingestion</h1><p>After identifying data types, the next phase in SIEM Data Processing is <em>Data Ingestion.</em></p><p><em>What comes to mind when thinking of ingesting data?</em></p><p><em>Is it just collecting from various sources and bringing them into a system?</em></p><p><em>Well&#8230;</em></p><blockquote><p><em>Data Ingestion</em> is simply the process of collecting data from various sources and loading it into the SIEM&#8217;s central repository for storage, processing, and analysis.</p></blockquote><p>Most SIEMs support three main data ingestion methods:</p><ol><li><p>Agent-based Ingestion</p></li><li><p>File-based Ingestion</p></li><li><p>API-based Ingestion</p></li></ol><p>Let&#8217;s break down each model/method.</p><div><hr></div><h1>Three Primary Methods</h1><h2>1. Agent-Based</h2><p>Agents are installed on <em>endpoints </em>such as Windows, Linux, Mac, and other agent-supported machines. Once installed, it collects logs locally and sends them to the SIEM&#8217;s central repository. </p><p>The agent installed on a machine acts as a <em>connector </em>or <em>forwarder</em>, collecting and sending logs to the SIEM.</p><p>The thing is, different vendors use different names when describing an agent:</p><ul><li><p>Splunk: Forwarder</p></li><li><p>Microsoft Sentinel: Azure Monitor Agent</p></li></ul><p>Bear in mind:</p><blockquote><p>Marketing terminology varies, but the concept is the same: <em>the agent acts as a connector between the endpoint and the SIEM.</em></p><p>And in reality, marketing changes faster than any single definition can capture, which is why different terms are often used to refer to it. Alas, this is where confusion arises.</p></blockquote><h3>Collector vs Connector Architectures</h3><p>For the Agent Method, SIEM data collection typically uses one of the two setups:</p><ol><li><p>Direct Forwarding</p></li><li><p>Collector Model</p></li></ol><h4>Direct Forwarding</h4><p>In Direct Forwarding, Agents send logs straight from each device to the SIEM.</p><ul><li><p>Machine X sends logs to SIEM.</p></li><li><p>Machine Y sends logs to SIEM.</p></li></ul><p>So, each device is configured to forward logs straight to the SIEM Collector.</p><ul><li><p>Pros: </p><ul><li><p>Simple Architecture, Low Latency</p></li><li><p>Event logs reach the SIEM quickly</p></li></ul></li><li><p>Cons:</p><ul><li><p>Potential bottlenecks (SIEM must handle all logs soruces simultaneusly)</p></li><li><p>Limited flexibility for pre-processing or normalization.</p></li></ul><p></p></li></ul><h4>Collector Model</h4><p>In the Collector Model, multiple machines send logs to a central collector, which then forwards them to the SIEM.</p><ul><li><p>Machine X sends logs to Machine Z. </p></li><li><p>Machine Y sends logs to Machine Z.</p></li><li><p>Machine Z (Collector) then sends logs to SIEM.</p></li></ul><p>Here, Machinge Z hosts an agent that collects logs from other machines before sending them to the SIEM. </p><ul><li><p>Pros:</p><ul><li><p>Reduces SIEM load.</p></li><li><p>Enables pre-processing, filtering, and aggregation.</p></li><li><p>Provide redundancy in distributed networks.</p></li></ul></li><li><p>Cons:</p><ul><li><p>Slightly higher latency due to the extra hop.</p></li></ul></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!33_M!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a8a879c-5a57-4ce9-a081-1a20f7a5ba8b_445x706.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!33_M!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a8a879c-5a57-4ce9-a081-1a20f7a5ba8b_445x706.png 424w, https://substackcdn.com/image/fetch/$s_!33_M!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a8a879c-5a57-4ce9-a081-1a20f7a5ba8b_445x706.png 848w, https://substackcdn.com/image/fetch/$s_!33_M!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a8a879c-5a57-4ce9-a081-1a20f7a5ba8b_445x706.png 1272w, https://substackcdn.com/image/fetch/$s_!33_M!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a8a879c-5a57-4ce9-a081-1a20f7a5ba8b_445x706.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!33_M!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a8a879c-5a57-4ce9-a081-1a20f7a5ba8b_445x706.png" width="321" height="509.27191011235954" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2a8a879c-5a57-4ce9-a081-1a20f7a5ba8b_445x706.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:706,&quot;width&quot;:445,&quot;resizeWidth&quot;:321,&quot;bytes&quot;:47699,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/187978100?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4290526c-2a23-485d-a07a-9cb169ff8506_447x741.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!33_M!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a8a879c-5a57-4ce9-a081-1a20f7a5ba8b_445x706.png 424w, https://substackcdn.com/image/fetch/$s_!33_M!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a8a879c-5a57-4ce9-a081-1a20f7a5ba8b_445x706.png 848w, https://substackcdn.com/image/fetch/$s_!33_M!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a8a879c-5a57-4ce9-a081-1a20f7a5ba8b_445x706.png 1272w, https://substackcdn.com/image/fetch/$s_!33_M!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2a8a879c-5a57-4ce9-a081-1a20f7a5ba8b_445x706.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3>SIEM Evaluation: Agent Types</h3><p>SIEMs may either:</p><ul><li><p>Use separate agents for the connector(direct forwarding) and collector roles, or</p></li><li><p>Use a single agent that is capable of performing both functions.</p></li></ul><p>Thus, aside from determining which logs are supported by the SIEM (Identifying Data Types), other key evaluation questions are:</p><ul><li><p>How many agent types are required?</p></li><li><p>Can one agent perform both roles?</p></li><li><p>Does the agent support automatic updates?</p></li></ul><p>Fewer agent types reduce administrative overhead and simplify patching and lifecycle management.</p><p><em>For Instance:</em></p><blockquote><p>Microsoft Sentinel&#8217;s Azure Monitor Agent handles both connector and collector roles and updates automatically.</p></blockquote><div data-attrs="{&quot;url&quot;:&quot;file:///C:/Users/Greg/Downloads/_-%20visual%20selection%20(8).png&quot;}" data-component-name="AssetErrorToDOM"><picture><img src="/img/missing-image.png" height="455" width="728"></picture></div><div data-attrs="{&quot;url&quot;:&quot;file:///C:/Users/Greg/Downloads/_-%20visual%20selection%20(8).png&quot;}" data-component-name="AssetErrorToDOM"><picture><img src="/img/missing-image.png" height="455" width="728"></picture></div><div><hr></div><h2>2. File-Based Ingestion</h2><p>Consider an application that: </p><ul><li><p>Runs across multiple endpoints.</p></li><li><p>Consolidates security-relevant logs into a central file (e.g., log.txt)</p></li><li><p>Support lacks direct SIEM integration.</p></li></ul><p>In this scenario, we can deploy a connector/collector on the server holding the log file. Here, the agent is set-up to:</p><ul><li><p>Monitor the file</p></li><li><p>Extract relevant log data.</p></li><li><p>Forward it to the SIEM.</p></li></ul><p>Most modern SIEM platforms support this method.</p><p><em>For instance:</em></p><blockquote><p>Microsoft Sentinel uses the Azure Monitor Agent with Data Collection Rules (DCRs) for handling file-based ingestion.</p></blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!obe6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c8c35ff-46c6-48b1-892a-175117d518e3_374x1226.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!obe6!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c8c35ff-46c6-48b1-892a-175117d518e3_374x1226.png 424w, https://substackcdn.com/image/fetch/$s_!obe6!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c8c35ff-46c6-48b1-892a-175117d518e3_374x1226.png 848w, https://substackcdn.com/image/fetch/$s_!obe6!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c8c35ff-46c6-48b1-892a-175117d518e3_374x1226.png 1272w, https://substackcdn.com/image/fetch/$s_!obe6!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c8c35ff-46c6-48b1-892a-175117d518e3_374x1226.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!obe6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c8c35ff-46c6-48b1-892a-175117d518e3_374x1226.png" width="285" height="934.2513368983957" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9c8c35ff-46c6-48b1-892a-175117d518e3_374x1226.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1226,&quot;width&quot;:374,&quot;resizeWidth&quot;:285,&quot;bytes&quot;:80774,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/187978100?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a54335d-c5fe-4884-aec5-05eb49e9d5ec_381x1254.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!obe6!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c8c35ff-46c6-48b1-892a-175117d518e3_374x1226.png 424w, https://substackcdn.com/image/fetch/$s_!obe6!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c8c35ff-46c6-48b1-892a-175117d518e3_374x1226.png 848w, https://substackcdn.com/image/fetch/$s_!obe6!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c8c35ff-46c6-48b1-892a-175117d518e3_374x1226.png 1272w, https://substackcdn.com/image/fetch/$s_!obe6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c8c35ff-46c6-48b1-892a-175117d518e3_374x1226.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2>3. API-Based Ingestion</h2><p>Suppose you have a <em>web application</em> and want its logs sent directly to your SIEM.</p><p>Most modern SIEMs support API-based ingestion, which generally works as follows:</p><ol><li><p>Authenticate using a <em>client ID</em> and <em>secret </em>(or service account)</p></li><li><p>Connect to the SIEM&#8217;s authorization endpoint. </p></li><li><p>Send the data payload to the ingestion endpoint.</p></li><li><p>The SIEM stores the data in its centralized repository.</p></li></ol><p><em>For instance:</em></p><blockquote><p>Microsoft Sentinel supports API ingestion, as long as the payload is formatted in JSON.</p></blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!49dV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa33add2a-94c8-4cd5-861e-1aa85b751684_423x713.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!49dV!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa33add2a-94c8-4cd5-861e-1aa85b751684_423x713.png 424w, https://substackcdn.com/image/fetch/$s_!49dV!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa33add2a-94c8-4cd5-861e-1aa85b751684_423x713.png 848w, https://substackcdn.com/image/fetch/$s_!49dV!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa33add2a-94c8-4cd5-861e-1aa85b751684_423x713.png 1272w, https://substackcdn.com/image/fetch/$s_!49dV!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa33add2a-94c8-4cd5-861e-1aa85b751684_423x713.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!49dV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa33add2a-94c8-4cd5-861e-1aa85b751684_423x713.png" width="333" height="561.2978723404256" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a33add2a-94c8-4cd5-861e-1aa85b751684_423x713.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:713,&quot;width&quot;:423,&quot;resizeWidth&quot;:333,&quot;bytes&quot;:45657,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/187978100?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F157de258-3135-4013-ba95-98b67a34a59a_429x740.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!49dV!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa33add2a-94c8-4cd5-861e-1aa85b751684_423x713.png 424w, https://substackcdn.com/image/fetch/$s_!49dV!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa33add2a-94c8-4cd5-861e-1aa85b751684_423x713.png 848w, https://substackcdn.com/image/fetch/$s_!49dV!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa33add2a-94c8-4cd5-861e-1aa85b751684_423x713.png 1272w, https://substackcdn.com/image/fetch/$s_!49dV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa33add2a-94c8-4cd5-861e-1aa85b751684_423x713.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div data-attrs="{&quot;url&quot;:&quot;file:///C:/Users/Greg/Downloads/_-%20visual%20selection%20(9).png&quot;}" data-component-name="AssetErrorToDOM"><picture><img src="/img/missing-image.png" height="455" width="728"></picture></div><div><hr></div><h1>Bottom Line</h1><p>Choosing the right ingestion method depends on your environment, log sources, and SIEM capabilities.</p><p>Hence, when selecting a SIEM solution, we tend to focus on:</p><ul><li><p>Agent Complexity</p></li><li><p>Update Management</p></li><li><p>Architectural Flexibility</p></li><li><p>Ease of Integration</p></li></ul><p>And most SIEM platforms support three ingestion models: agent-based, file-based, and API-based.</p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[Crow On The Line]]></title><description><![CDATA[The Bird and The Stone]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/crow-on-the-line</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/crow-on-the-line</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Sun, 15 Mar 2026 03:21:01 GMT</pubDate><enclosure url="https://substackcdn.com/image/youtube/w_728,c_limit/WJNXa21BrxQ" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p style="text-align: justify;">The sight of a clear-eyed, glossy-feathered crow clutching a small stone in its beak is quietly profound. It hints at intelligence manifesting in the simplest of acts. </p><p style="text-align: justify;">It probably wonders&#8230; <em>&#8220;What use could this be?&#8221;</em></p><p style="text-align: justify;">Or&#8230; <em>&#8220;Would this help open that thing?&#8221;</em></p><p style="text-align: justify;">The crow is likely engaging in some problem-solving and/or just playing, experimenting with objects to learn about its environment. Maybe it&#8217;s figuring out how to weigh something down, crack a nut, or see what happens if it drops it from a certain height. Curiosity and intent mix in every twitch, every tilt of the head, until finally, it lifts off from an electric line, stone still in beak, carrying thought into the air.</p><p style="text-align: justify;">And in watching it, there&#8217;s a subtle lesson for us too. Insight, curiosity and intelligence often appear in small, unassuming gestures. Even a single stone, held in a bird&#8217;s beak, can hint at depth, resourcefulness, and the quiet art of observation.</p><div id="youtube2-WJNXa21BrxQ" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;WJNXa21BrxQ&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/WJNXa21BrxQ?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://peculiarmixtureofchillandeffort.substack.com/subscribe?"><span>Subscribe now</span></a></p><p></p><p></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[How Data Flows and Is Processed in a SIEM System]]></title><description><![CDATA[SIEM Part 2: Different Data Types That Power Security Analytics]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/how-data-flows-and-is-processed-in</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/how-data-flows-and-is-processed-in</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Wed, 11 Mar 2026 02:51:12 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!KEAt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Has it ever occurred to you:</p><blockquote><p><em>How is data processed in a SIEM System?</em></p></blockquote><p>To begin, as you may already know,  a SIEM (Security Information and Event Management) solution is composed of two core components: SIM and SEM</p><p>SIM (Security Information Management) focuses on the <em>collection </em>and <em>management </em>of security logs or data. Its primary role is to gather security logs from various defined sources across the environment and store them in a <em>centralized repository.</em></p><p>However, log collection should never be random or excessive. We do not simply ingest everything without purpose. Instead, log sources must be intentionally selected and clearly defined.</p><p>For example:</p><ul><li><p>From Active Directory, we may choose to ingest failed login attempts to detect potential brute-force attacks.</p></li><li><p>From an Identity Protection tool, we might ingest all alerts, regardless of severity.</p></li></ul><p>The point is, this approach requires careful planning to answer these essential questions:</p><ul><li><p>What logs should be collected?</p></li><li><p>Why are we collecting them?</p></li><li><p>What security value do they provide?</p></li></ul><p>Bear in mind:</p><blockquote><p>The deliberate process of collecting, organizing, and managing relevant security logs on a centralized platform is known as Security Information Management (SIM).</p></blockquote><p>Once the data has been collected, SEM or Security Event Management comes into play.</p><p>SEM focuses on <em>analyzing </em>and <em>responding </em>to security events derived from the collected logs. It provides a structured framework for monitoring, detecting, and responding to potential threats.</p><p>This includes activities such as:</p><ul><li><p>Creating Detection Rules</p></li><li><p>Identifying Anomalous Behavior</p></li><li><p>Writing Queries for Deeper Investigation</p></li><li><p>Following Incident Response Procedures</p></li><li><p>Initiating Recovery or Remediation Actions</p></li></ul><p>Together, SIM and SEM form the foudnation of a SIEM system, transforming raw security logs into actionable intelligence that enables organziation to detect, investigate, and respond to security threats more effectively.</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!KEAt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!KEAt!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 424w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 848w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!KEAt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg" width="690" height="355" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:355,&quot;width&quot;:690,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Why Should Enterprises Choose EventLog Analyzer as Their SIEM Solution?&quot;,&quot;title&quot;:&quot;Why Should Enterprises Choose EventLog Analyzer as Their SIEM Solution?&quot;,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Why Should Enterprises Choose EventLog Analyzer as Their SIEM Solution?" title="Why Should Enterprises Choose EventLog Analyzer as Their SIEM Solution?" srcset="https://substackcdn.com/image/fetch/$s_!KEAt!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 424w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 848w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1456w" sizes="100vw" loading="lazy" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;b6bb1048-32d9-4cf9-9ef4-7a97b96bb9d9&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">Photo Courtesy of ManageEngine</code></pre></div><p><code>Check out Part 1 here:</code><br></p><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;00448d4a-71e4-452b-9bd6-730a9f0eb62b&quot;,&quot;caption&quot;:&quot;Here&#8217;s what SIEM is, end-to-end.&quot;,&quot;cta&quot;:&quot;Read full story&quot;,&quot;showBylines&quot;:true,&quot;size&quot;:&quot;sm&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;SIEM - Security Information and Event Management&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:433782858,&quot;name&quot;:&quot;greg&quot;,&quot;bio&quot;:&quot;Here to read and write&quot;,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8e9d4fed-e5a3-4fa1-8626-e772cdbf49e9_1022x1024.png&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2026-03-06T04:37:58.583Z&quot;,&quot;cover_image&quot;:&quot;https://substackcdn.com/image/fetch/$s_!KEAt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg&quot;,&quot;cover_image_alt&quot;:null,&quot;canonical_url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/siem-security-information-and-event&quot;,&quot;section_name&quot;:&quot;CyberNook&quot;,&quot;video_upload_id&quot;:null,&quot;id&quot;:187775529,&quot;type&quot;:&quot;newsletter&quot;,&quot;reaction_count&quot;:0,&quot;comment_count&quot;:0,&quot;publication_id&quot;:7541790,&quot;publication_name&quot;:&quot;Peculiar Mixture Of Chill And Effort&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/$s_!ph1b!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6adacff-a1b0-4d51-8b1e-21c4a4c891e8_1280x1280.png&quot;,&quot;belowTheFold&quot;:true,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div><div><hr></div><h1>Data Processing in a SIEM Solution</h1><p>Now, returning to our main question:</p><blockquote><p><em>How is data processed in a SIEM System?</em></p></blockquote><p>Data processing in a SIEM solution generally goes through several stages:</p><ol><li><p><em>Data Types</em></p></li><li><p>Data Ingestion</p></li><li><p>Data Storage</p></li><li><p>Data Parsing</p></li><li><p>Data Normalization</p></li><li><p>Data Indexing</p></li></ol><p>Each stage plays an important role in transforming raw logs from various sources into structured and searchable data that SOC teams can analyze effectively.</p><p>For this write-up, we&#8217;ll focus on the first stage: <em>Data Types</em></p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_g17!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_g17!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 424w, https://substackcdn.com/image/fetch/$s_!_g17!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 848w, https://substackcdn.com/image/fetch/$s_!_g17!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 1272w, https://substackcdn.com/image/fetch/$s_!_g17!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_g17!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png" width="755" height="623" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:623,&quot;width&quot;:755,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:50845,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/186221447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe69a619c-4f64-420f-9c75-740c4c6faf27_763x658.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_g17!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 424w, https://substackcdn.com/image/fetch/$s_!_g17!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 848w, https://substackcdn.com/image/fetch/$s_!_g17!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 1272w, https://substackcdn.com/image/fetch/$s_!_g17!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfca802a-cf3e-4f02-b45e-69d782ad339c_755x623.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h1>Three Main Types Of Data</h1><p>Data processed in a SIEM system generally falls into three categories:</p><ol><li><p>Structured Data</p></li><li><p>Unstructured Data</p></li><li><p>Semi-structured Data</p></li></ol><h3>1. Structured Data</h3><p>Structured data follows a <em>predefined schema</em>, meaning the format and fields are clearly defined.</p><p>This makes it easier for systems to parse, analyze, and query the information.</p><p>In security environments, most logs generated by infrastructure and applications fall into this category.</p><p>Examples include:</p><ul><li><p>Firewall / Antivirus / Antimalware logs (<em>timestamp, event type, source IP, destination IP</em>) </p></li><li><p>Active Directory User Login Records</p></li><li><p>SQL Database Tables</p></li><li><p>Windows Event Logs</p></li><li><p>Syslog</p></li><li><p>Custom Logs</p></li><li><p>CEF or Common Event Format Logs</p></li></ul><h3>2. Unstructured Data</h3><p>Unstructured data does not follow a predefined schema.</p><p>Because the format is not standardized, extracting useful information often requires manual review or advanced processing techniques such as machine learning or natural language processing.</p><p>For example, reading the contents written on a whiteboard from an image would be considered an unstructured data task.</p><p><strong>Examples:</strong></p><ul><li><p>Images (such as objects or CCTV footage)</p></li><li><p>Emails, Chat Messages, or Documents</p></li><li><p>Audio or Video Recordings</p></li><li><p>Social Media Posts</p></li></ul><h3>3. Semi-structured Data</h3><p>Semi-structured data sits somewhere between structured and unstructured data.</p><p>While it does not follow a rigid schema like structured data, it still contains identifiable attributes or metadata that provide some level of organization.</p><p>Examples include:</p><ul><li><p>JSON or XML log files</p></li><li><p>Cloud Service Logs (such as AWS or Azure Resource Events)</p></li><li><p>Sensor or IoT device data</p></li><li><p>Metadata associated with images or files (Fromat, size, location)</p></li></ul><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!jVTp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c76843d-16b7-4331-a84c-4dbb82fbe6f9_704x670.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!jVTp!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c76843d-16b7-4331-a84c-4dbb82fbe6f9_704x670.png 424w, https://substackcdn.com/image/fetch/$s_!jVTp!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c76843d-16b7-4331-a84c-4dbb82fbe6f9_704x670.png 848w, https://substackcdn.com/image/fetch/$s_!jVTp!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c76843d-16b7-4331-a84c-4dbb82fbe6f9_704x670.png 1272w, https://substackcdn.com/image/fetch/$s_!jVTp!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c76843d-16b7-4331-a84c-4dbb82fbe6f9_704x670.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!jVTp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c76843d-16b7-4331-a84c-4dbb82fbe6f9_704x670.png" width="568" height="540.5681818181819" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1c76843d-16b7-4331-a84c-4dbb82fbe6f9_704x670.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:670,&quot;width&quot;:704,&quot;resizeWidth&quot;:568,&quot;bytes&quot;:65517,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/186221447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Febc5b020-0e40-4d7b-b09e-9713c649603e_704x708.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!jVTp!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c76843d-16b7-4331-a84c-4dbb82fbe6f9_704x670.png 424w, https://substackcdn.com/image/fetch/$s_!jVTp!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c76843d-16b7-4331-a84c-4dbb82fbe6f9_704x670.png 848w, https://substackcdn.com/image/fetch/$s_!jVTp!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c76843d-16b7-4331-a84c-4dbb82fbe6f9_704x670.png 1272w, https://substackcdn.com/image/fetch/$s_!jVTp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1c76843d-16b7-4331-a84c-4dbb82fbe6f9_704x670.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In the context of security, most attention is given to structured data. </p><p>That said, there are still ways to extract meaningful information from unstructured and semi-structured data.</p><div><hr></div><h1>Start Here: What to confirm with your vendor before anything else</h1><p>When evaluating a SIEM solution for your enterprise, one of the first questions you should ask is:</p><blockquote><p><em>Which log formats are supported?</em></p></blockquote><p>Why is this important?</p><p>Consider the following scenario.</p><p>In your environment, there are multiple security solutions, and each of them generates logs in different formats, such as:</p><ul><li><p>Windows Event Logs</p></li><li><p>Syslog</p></li><li><p>Custom JSON logs</p></li><li><p>Common Event Formats (CEF)</p></li></ul><p>When assessing a SIEM platform, verifying support for these formats should be a priority.</p><p>For example:</p><blockquote><p>You: <em>What is the list of all the supported log formats?</em></p><p>Vendor: <em>Here&#8217;s the list&#8230;</em></p></blockquote><p>This simple question can immediately reveal whether the solution can integrate effectively with your existing environment.</p><p>Consider another scenario:</p><ul><li><p>Vendor A supports custom log ingestion, including JSON-based logs.</p></li><li><p>Vendor B does not support custom data injection.</p></li></ul><p>In this case, Vendor A would clearly be the better choice.</p><p>After all, if a SIEM platform cannot ingest your data, it cannot analyze it or generate meaningful security insights.</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!XaUD!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88ae51a0-62dc-4acc-8fc7-573d470f56b1_1832x1895.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!XaUD!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88ae51a0-62dc-4acc-8fc7-573d470f56b1_1832x1895.png 424w, https://substackcdn.com/image/fetch/$s_!XaUD!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88ae51a0-62dc-4acc-8fc7-573d470f56b1_1832x1895.png 848w, https://substackcdn.com/image/fetch/$s_!XaUD!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88ae51a0-62dc-4acc-8fc7-573d470f56b1_1832x1895.png 1272w, https://substackcdn.com/image/fetch/$s_!XaUD!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88ae51a0-62dc-4acc-8fc7-573d470f56b1_1832x1895.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!XaUD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88ae51a0-62dc-4acc-8fc7-573d470f56b1_1832x1895.png" width="551" height="569.9217032967033" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/88ae51a0-62dc-4acc-8fc7-573d470f56b1_1832x1895.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1506,&quot;width&quot;:1456,&quot;resizeWidth&quot;:551,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;What Is Azure Sentinel (Renamed to Microsoft Sentinel)?&quot;,&quot;title&quot;:&quot;What Is Azure Sentinel (Renamed to Microsoft Sentinel)?&quot;,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="What Is Azure Sentinel (Renamed to Microsoft Sentinel)?" title="What Is Azure Sentinel (Renamed to Microsoft Sentinel)?" srcset="https://substackcdn.com/image/fetch/$s_!XaUD!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88ae51a0-62dc-4acc-8fc7-573d470f56b1_1832x1895.png 424w, https://substackcdn.com/image/fetch/$s_!XaUD!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88ae51a0-62dc-4acc-8fc7-573d470f56b1_1832x1895.png 848w, https://substackcdn.com/image/fetch/$s_!XaUD!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88ae51a0-62dc-4acc-8fc7-573d470f56b1_1832x1895.png 1272w, https://substackcdn.com/image/fetch/$s_!XaUD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F88ae51a0-62dc-4acc-8fc7-573d470f56b1_1832x1895.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><pre><code><code>Image Source: Microsoft Azure</code></code></pre><p>In the context of Microsoft Sentinel, the platform is even more flexible. </p><p>Sentinel can ingest data in any format or schema, including JSON logs. </p><p>You can define a custom schema to map specific attributes and values, and leverage data injection APIs to automatically feed security-relevant logs from your applications into Sentinel.</p><p>In practice, this means Sentinel can handle virtually any log format your enterprise produces.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!3lUx!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5a01778-d999-4026-afeb-eeaa91e34459_778x604.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!3lUx!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5a01778-d999-4026-afeb-eeaa91e34459_778x604.png 424w, https://substackcdn.com/image/fetch/$s_!3lUx!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5a01778-d999-4026-afeb-eeaa91e34459_778x604.png 848w, https://substackcdn.com/image/fetch/$s_!3lUx!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5a01778-d999-4026-afeb-eeaa91e34459_778x604.png 1272w, https://substackcdn.com/image/fetch/$s_!3lUx!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5a01778-d999-4026-afeb-eeaa91e34459_778x604.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!3lUx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5a01778-d999-4026-afeb-eeaa91e34459_778x604.png" width="778" height="604" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b5a01778-d999-4026-afeb-eeaa91e34459_778x604.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:604,&quot;width&quot;:778,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:117910,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/i/186221447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5a01778-d999-4026-afeb-eeaa91e34459_778x604.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!3lUx!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5a01778-d999-4026-afeb-eeaa91e34459_778x604.png 424w, https://substackcdn.com/image/fetch/$s_!3lUx!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5a01778-d999-4026-afeb-eeaa91e34459_778x604.png 848w, https://substackcdn.com/image/fetch/$s_!3lUx!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5a01778-d999-4026-afeb-eeaa91e34459_778x604.png 1272w, https://substackcdn.com/image/fetch/$s_!3lUx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb5a01778-d999-4026-afeb-eeaa91e34459_778x604.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><pre><code>Image Source: Concepts Work</code></pre><div><hr></div><h1>Wrap Up</h1><p>Choosing the right SIEM solution starts with understanding how it processes data. At its core, a SIEM relies on SIM to collect and manage logs, and SEM to analyze and respond to security events.</p><p>When evaluating solutions, pay close attention to supported log formats. If a platform cannot ingest your data, it cannot analyze it, no matter how advanced its analytics are. Structured data will always be the primary focus for security monitoring, but the ability to extract insights from semi-structured or unstructured data can provide additional visibility.</p><p>Ultimately, a flexible, well-integrated SIEM allows your organization to turn raw logs into actionable intelligence, helping detect threats faster and respond more effectively.</p><p></p><ul><li><p></p></li></ul><p></p>]]></content:encoded></item><item><title><![CDATA[Security Risk Assessment]]></title><description><![CDATA[A high-level overview]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/security-risk-assessment</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/security-risk-assessment</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Fri, 06 Mar 2026 10:11:03 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!bvLd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>How do you ensure a project is secure before it goes live?</em></p><p><em>How do you identify what could go wrong, what assets are at risk, and what the potential business impact might be?</em></p><p>This is where Security Risk Assessments come in.</p><p>Security Risk Assessments are a critical component of any project involving information systems, applications, or infrastructure.</p><p>A security risk assessment helps answer key questions:</p><ul><li><p>What assets are involved in this project?</p></li><li><p>What threats could target those assets?</p></li><li><p>What vulnerabilities might those threats exploit?</p></li><li><p>How likely is an attack to occur?</p></li><li><p>What would the impact be if it did?</p></li><li><p>And most importantly, how should the organization respond?</p></li></ul><p>In the following sections, we will walk through a practical approach to performing security risk assessments on projects, from defining scope and identifying assets to evaluating risks, determining treatment strategies, and maintaining a risk register.</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!bvLd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!bvLd!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg 424w, https://substackcdn.com/image/fetch/$s_!bvLd!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg 848w, https://substackcdn.com/image/fetch/$s_!bvLd!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!bvLd!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!bvLd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg" width="1363" height="769" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:769,&quot;width&quot;:1363,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Risk Management - Process, Techniques, Career Path&quot;,&quot;title&quot;:&quot;Risk Management - Process, Techniques, Career Path&quot;,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Risk Management - Process, Techniques, Career Path" title="Risk Management - Process, Techniques, Career Path" srcset="https://substackcdn.com/image/fetch/$s_!bvLd!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg 424w, https://substackcdn.com/image/fetch/$s_!bvLd!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg 848w, https://substackcdn.com/image/fetch/$s_!bvLd!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!bvLd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4853076a-2614-48a2-b5ac-03d73a657aed_1363x769.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;fca7d556-619e-4d47-b18c-5874d3b7e409&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">Photo courtesy of Great Learning</code></pre></div><div><hr></div><h3>Solid Starting Point</h3><p>When conducting a Security Risk Assessment for any project, whether new or ongoing, it is crucial to understand both cybersecurity frameworks and the SDLC (System Development Life Cycle).</p><p>Examples include:</p><ul><li><p>NIST SP 800-30</p></li><li><p>ISO/IEC 27001</p></li><li><p>ISO/IEC 27005</p></li><li><p>NIST SP 800-64</p></li></ul><p>As well as development approaches (SDLC models) like:</p><ul><li><p>Waterfall</p></li><li><p>Agile</p></li></ul><p>Foremost, Security Risk Assessment aims to embed security (secure framework guides) into each phase of the SDLC.</p><p><em>What does it mean?</em></p><p>In essence, SDLC is a structured, multi-step process for developing, implementing, maintaining, and retiring information systems.</p><p>Thus, Security should never be a mystery or an afterthought. It must be integrated before, during, and after each phase of the project.</p><p>And security work is both cyclical and transformative, requiring continuous monitoring and improvement.</p><p>Hence, a solid starting point is simply understanding your chosen framework and SDLC model.</p><div><hr></div><h3>Define the scope and business context.</h3><p>Establish what the project is all about. </p><p><em>Why does the project exist? </em></p><p><em>What does it mean to achieve? </em></p><p><em>What environment does it operate in?</em></p><p>This sets the foundation for meaningful risk assessments and security planning.</p><p><em>Are we reviewing a new cloud deployment?</em></p><p><em>Assessing risks in a new banking system?</em></p><p><em>Evaluating a new API or web application?</em></p><div><hr></div><h3>Asset Identification and Data Classification.</h3><p>In every project, there are assets involved, and these assets generate logs, or simply data.</p><p>And it is imperative to identify the assets and classify the data it generates.</p><p>This includes:</p><ul><li><p>Infrastructures:</p><ul><li><p>Servers: Linux, Windows, Mac, etc.</p></li><li><p>Storage Devices</p></li><li><p>Network Equipments</p></li><li><p>Environment: Cloud, On-Prem or Hybrid.</p></li></ul></li><li><p>Applications</p><ul><li><p>Web Apps</p></li><li><p>APIs</p></li><li><p>Internal Software</p></li><li><p>SaaS platforms</p></li></ul></li><li><p>Data</p><ul><li><p>By location/state: At rest, in transit, in use</p></li><li><p>By type: structured (databases), unstructured(documents, emails), semi-structured (JSON, XML)</p></li></ul></li><li><p>Personnel</p><ul><li><p>Key roles such as network and system administrators, developers, and information security teams.</p></li></ul></li></ul><p>After determining, we must assign values based on sensitivity and importance to the organization.</p><ul><li><p>Sensitivity: Public, Internal, Confidential, Highly Confidential</p></li><li><p>Importance: Criticality to business operations, legal or regulatory impact, and reputational risk.</p></li></ul><p>Let&#8217;s say:</p><ul><li><p>Cloud-based HR database - Highly Confidential, Critical to Business</p></li><li><p>Internal Web Portal - Internal, Medium Importance</p></li><li><p>Network Switch Configuration - Confidential, High Importance</p></li><li><p>Security Admin Account - Highly Confidential, Critical</p></li></ul><div><hr></div><h3>Threat and Attack Vector Identification.</h3><p>Once assets are classified, it&#8217;s time to map potential threats and attack vectors to those assets effectively.</p><p>Consider:</p><ol><li><p>Internal vs External Threats</p><blockquote><p>Internal Threats: Insider misuse, accidental errors, policy violations, misconfigurations, process failures.</p><p></p><p>External Threats: Cyberattacks, Third-Party Breaches, Supply Chain Risks, Malware, Phishing, or Unauthorized Access</p></blockquote></li><li><p>Attack Vectors</p><blockquote><p>Identify how threats could exploit assets.</p><ul><li><p>Technical Vectors: Vulnerabilities in servers, applications, networks or cloud configurations</p></li><li><p>Human Factors: Social Engineering, Lack of Training, Weak Access Controls, or Poor Process Adherence</p></li></ul></blockquote></li></ol><p>Questions to ask:</p><ul><li><p>Could this asset be compromised through insider misuse or human error?</p></li><li><p>Could it be exposed via cyberattacks, third-party breaches, or supply chain weaknesses?</p></li></ul><p>Considering both technical and human factors ensures a more comprehensive view of risk and helps prioritize mitigations.</p><div><hr></div><h3>Vulnerability and Gap Identification.</h3><p>Next, assess the system for vulnerabilities and weaknesses that the identified threats could exploit. </p><p>This includes:</p><ul><li><p>Technical Vulnerabilities: Outdated software, unpackaged systems, misconfigurations, insecure settings, or weak encryption.</p></li><li><p>Process gaps: Missing policies, inadequate procedures, or inconsistent enforcement.</p></li><li><p>Control gaps: Lack of monitoring, insufficient access contorls, or weak segregation of duties.</p></li></ul><p>Use a combination of tools, audits, and historical data to uncover these gaps:</p><ul><li><p>Vulnerability scanners (e.g., Nessus, Qualys)</p></li><li><p>Penetration testing results</p></li><li><p>Security audits and compliance reports</p></li><li><p>Past incident and breach history</p></li></ul><p>Identify areas where current defenses are insufficient, so you can prioritize remediation and strengthen controls.</p><div><hr></div><h3>Create Threat-Vulnerability Pairs </h3><p>At this stage, link each threat to the vulnerabilities it could exploit to form threat-vulnerability pairs.</p><div><hr></div><h3>Assess Likelihood</h3><p>Next, assess the likelihood or probability that each vulnerability could be exploited, considering factors such as:</p><ul><li><p>Exposure: Is the asset internal, external, or internet-facing?</p></li><li><p>Existing Security Contorls: What protections (firewalls, access controls, monitoring) are already in place?</p></li><li><p>Threat Landscape: Are there active threats targeting this type of asset or system?</p></li><li><p>Ease of Exploitation: How difficult would it be for an attacker to exploit this vulnerability?</p></li><li><p>History of Similar Incidents: Have similar attacks occurred in the organization or industry?</p></li></ul><p>The likelihood assessment helps prioritize risk based on the probability that a threat could successfully exploit a vulnerability.</p><div><hr></div><h3>Conduct an Impact Analysis</h3><p>Once the likelihood is assessed, evaluate the potential impact if a risk materializes, considering multiple dimensions:</p><ol><li><p>Regulatory Impact</p><ul><li><p>Could this result in violations of frameworks like NIST or ISO certifications?</p></li><li><p>Non-compliance penalties or audit failures</p></li></ul></li><li><p>Financial Impact</p><ul><li><p>Fines or legal penalties</p></li><li><p>Revenue loss</p></li><li><p>Costs for remediation and recovery</p></li></ul></li><li><p>Operational Impact</p><ul><li><p>Service disruptions or downtime</p></li><li><p>Reduced productivity</p></li><li><p>Delays in project or business operations</p></li></ul></li><li><p>Reputational Impact</p><ul><li><p>Damage to brand or public image</p></li><li><p>Erosion of customer trust.</p></li></ul></li></ol><div><hr></div><h3>Risk Calculation and Prioritization</h3><p>Core Formula: </p><blockquote><p>Risk = Likelihood x Impact</p></blockquote><p>This is typically represented using a risk matrix to prioritize attention.</p><p>Likelihood Rating:</p><blockquote><p>Rare, Possible, Likely, Almost Certain</p></blockquote><p>Impact Rating:</p><blockquote><p>Low, Medium, High, Critical</p></blockquote><p>This is generally a qualitative analysis that provides a clear view of which risks require urgent mitigation. </p><p>While the standard approach is qualitative, organizations can adopt a quantitative approach to assign monetary or numerical values to risks.</p><p>Frameworks such as FAIR (Factor Analysis of Information Risk) provide a structured method to quantify risk in financial terms, rather than just Low/Medium/High.</p><p>Quantitative Analysis evaluates:</p><ul><li><p>PLM - Probable Loss Magnitude: Estimated financial impact if a risk occurs</p></li><li><p>LEF - Loss Event Frequency: How often a risk might materialize</p></li><li><p>Exposure: Internal vs External threats, critical systems affected</p></li></ul><p>The advantage of using FAIR or similar models is the ability to prioritize risks based on potential financial consequences, supporting better investment and mitigation decisions.</p><div><hr></div><h3>Determine Inherent Risk</h3><p>Once likelihood and impact have been assessed, calculate the inherent risk for each identified threat or vulnerability.</p><p>Inherent Risk represents the level of risk before any contorls or safeguards are applied.</p><p>It reflects the raw exposure of assets based on existing threats and vulnerabiliteis.</p><p>Understanding inherent risk helps prioritize which risks require the most urgent attention.</p><p>Again, the formula:</p><blockquote><p>Inherent Risk = Likelihood &#215; Impact (without considering existing controls).</p></blockquote><div><hr></div><h3>Define Existing Controls</h3><p>When it is needed to identify the security controls that are already in place to protect assets and mitigate risks, remember that these security controls can be grouped into categories:</p><ol><li><p>Technical Controls</p><blockquote><p>These controls are implemented through <em>technology </em>and <em>systems</em> to protect assets and data.</p></blockquote></li><li><p>Managerial Controls </p><blockquote><p>These controls focus on <em>policies</em>, <em>procedures</em>, and <em>governance </em>to manage and <em>direct </em>security efforts.</p></blockquote></li><li><p>Operational Contorls</p><blockquote><p>These controls involve <em>people </em>and <em>processes </em>that support day-to-day security enforcement.</p></blockquote></li><li><p>Physical Controls</p><blockquote><p>These controls protect physical assets and facilities from unauthorized access or damage.</p></blockquote></li></ol><p>More on this:</p><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;6ffacdb0-c657-49bc-80be-44f454c21e72&quot;,&quot;caption&quot;:&quot;In InfoSec, protecting an organization goes beyond just safeguarding data.&quot;,&quot;cta&quot;:&quot;Read full story&quot;,&quot;showBylines&quot;:true,&quot;size&quot;:&quot;sm&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;Security Controls 101&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:433782858,&quot;name&quot;:&quot;greg&quot;,&quot;bio&quot;:&quot;Here to read and write&quot;,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8e9d4fed-e5a3-4fa1-8626-e772cdbf49e9_1022x1024.png&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2026-03-01T07:51:58.315Z&quot;,&quot;cover_image&quot;:&quot;https://substackcdn.com/image/fetch/$s_!WMQS!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f5d8282-2e72-47c9-bc32-07fd638b5be7_1280x768.png&quot;,&quot;cover_image_alt&quot;:null,&quot;canonical_url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/security-controls-101&quot;,&quot;section_name&quot;:&quot;CyberNook&quot;,&quot;video_upload_id&quot;:null,&quot;id&quot;:188966637,&quot;type&quot;:&quot;newsletter&quot;,&quot;reaction_count&quot;:0,&quot;comment_count&quot;:0,&quot;publication_id&quot;:7541790,&quot;publication_name&quot;:&quot;Peculiar Mixture Of Chill And Effort&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/$s_!ph1b!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6adacff-a1b0-4d51-8b1e-21c4a4c891e8_1280x1280.png&quot;,&quot;belowTheFold&quot;:true,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div><div><hr></div><h3>Determine Residual Risk</h3><p>After assessing inherent risk and documenting existing contorls, calculate the residual risk. </p><p>Residual Risk is the level of risk that remains after contorls are applied.</p><p>Residual Risk shows the exposure that persists despite technical, administrative, and physical safeguards.</p><p>Formula:</p><blockquote><p>Residual Risk = Inherent Risk &#8722; Control Effectiveness</p></blockquote><p>This helps prioritize additional mitigation measures for risks that remain high even after current contorls.</p><p>Hence, Residual Risk reflects the actual risks the organization faces after accounting for all implemented contorls.</p><div><hr></div><h3>Risk Treatment or Mitigation Strategies</h3><p>After assessing inherent risk, existing controls, and residual risk, the next step is to determine how each identified risk should be handled.</p><p>Organizations typically apply one or more of the following risk response strategies:</p><ol><li><p>Risk Transfer</p></li><li><p>Risk Acceptance</p></li><li><p>Risk Avoidance</p></li><li><p>Risk Mitigation (Risk Reduction)</p></li></ol><h4>Risk Transfer</h4><p>Risk transfer involves shifting the financial or operational burden of a risk to another party.</p><p>The risk itself still exists, but responsibility for managing its consequences is <em>partially </em>transferred.</p><p>Examples:</p><ul><li><p>Purchasing Cybersecurity Insurance</p></li><li><p>Outsourcing Security Operations to an MSP or Managed Service Provider.</p></li></ul><p>In this case, another organization assumes part of the financial impact or operational responsibility if the risk materializes.</p><h4>Risk Acceptance</h4><p>Risk Acceptance occurs when management knowingly decides to tolerate a risk.</p><p>This approach is typically used when:</p><ul><li><p>The risk level is low.</p></li><li><p>The cost of mitigation exceeds the potential impact.</p></li><li><p>There are operational or technical constraints.</p></li></ul><p>Risk Acceptance may include:</p><ul><li><p>Risk Exemptions - when a policy cannot be applied to a specific situation.</p></li><li><p>Risk Exceptions - temporary deviations from established policies.</p></li></ul><p>Examples:</p><ul><li><p>Industrial systems running unsupported Windows versions where vendor patching is not permitted.</p></li><li><p>Delaying patches beyond the defined policy window due to application compatibility issues.</p></li></ul><p>Risk Acceptance must always be formally documented and approved by business owners or risk owners, not solely by IT teams.</p><h4>Risk Avoidance</h4><p>Risk Avoidance means <em>eliminating </em>the activity that introduces the risk.</p><p>By removing the exposure entirely, the risk no longer exists.</p><p>Examples:</p><ul><li><p>Choosing not to deploy a high-risk application.</p></li><li><p>Removing internet connectivity from sensitive systems.</p></li></ul><h4>Risk Mitigation (Risk Reduction)</h4><p>Risk mitigation focuses on implementing security controls to reduce either the likelihood or the impact of a risk.</p><blockquote><p>The risk still exists, but it is <em>reduced </em>to an acceptable level.</p></blockquote><p>Example:</p><ul><li><p>Deploying NGFW or Next-Generation Firewalls.</p></li><li><p>Implementing MFA or Multi-Factor Authentication.</p></li><li><p>Applying Network Segmentation</p></li><li><p>Using Data Encryption</p></li></ul><div><hr></div><h3>Maintain a Risk Register.</h3><p>Finally, document and track all identified risks in a risk register, which serves as the organization&#8217;s formal risk reporting mechanism.</p><p>A risk register typically includes the following elements:</p><ul><li><p>Risk Description - a clear explanation of the identified risk</p></li><li><p>Likelihood - the probability that the risk may occur</p></li><li><p>Impact - the potential consequences if the risk materializes</p></li><li><p>Risk Rating - the overall risk level, often determined using methodologies such as NIST SP 800-30 or ISO/IEC 27005.</p></li><li><p>Risk Owner - the individual responsible for managing the risk</p></li><li><p>Treatment Strategy - the chosen response (Accept, Transfer, Mitigate, or Avoid)</p></li><li><p>Target Remediation Date - the expected timeline for addressing the risk.</p></li><li><p>Status - Current progress (Open, In Progress, Mitigated, Accepted, Closed)</p></li></ul><p>The risk register is not a static document; it:</p><ul><li><p>Is continously updated as new risks are identified or existing risks change.</p></li><li><p>Is reviewed regularly by senior management and risk committees</p></li><li><p>Guides budget allocation and business decisions related to security and risk management</p></li><li><p>Tracks both critical and emerging risks across the organization.</p></li></ul><p>In practice, the risk register becomes the central record for monitoring, communicating, and managing risk over time.</p><div><hr></div><h3>Continuous Monitoring and Improvement.</h3><p>Risk Assessment is not a one-time activity (unless it is an ad hoc type assessment); it requires continuous monitoring and ongoing improvement as systems, threats, business environments and priorities evolve.</p><p>To be effective, the risk assessment process should ensure:</p><ul><li><p>Repeatability - the methodology can be applied consistently across different projects and over time.</p></li><li><p>Traceability - decisions, risk ratings, and mitigation actions can be tracked back to their sources and supporting evidence.</p></li><li><p>Audit Defensibility - the process and results can withstand internal or external audits and demonstrate compliance with recognized standards.</p></li><li><p>Executive-Level Clarity - findings and risk priorities are communicated in a clear, concise way that enables leadership to make informed strategic decisions.</p></li></ul><p>This approach ensures that risk management remains structured, transparent, and aligned with organizational objectives, while continuously adapting to new risks and changing conditions. </p><p>More about improving risk assessment:</p><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;1a8a4cf2-a008-4245-bb02-0ac7793e8916&quot;,&quot;caption&quot;:&quot;Improving Risk Assessment&quot;,&quot;cta&quot;:&quot;Read full story&quot;,&quot;showBylines&quot;:true,&quot;size&quot;:&quot;md&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;Improving Risk Assessment&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:433782858,&quot;name&quot;:&quot;greg&quot;,&quot;bio&quot;:&quot;Here to read and write&quot;,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8e9d4fed-e5a3-4fa1-8626-e772cdbf49e9_1022x1024.png&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2026-03-04T08:14:00.034Z&quot;,&quot;cover_image&quot;:&quot;https://substackcdn.com/image/fetch/$s_!RNM8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb0ebfb7-1775-4217-851a-58efe75b10d0_540x360.jpeg&quot;,&quot;cover_image_alt&quot;:null,&quot;canonical_url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/improving-risk-assessment&quot;,&quot;section_name&quot;:&quot;CyberNook&quot;,&quot;video_upload_id&quot;:null,&quot;id&quot;:188948329,&quot;type&quot;:&quot;newsletter&quot;,&quot;reaction_count&quot;:0,&quot;comment_count&quot;:0,&quot;publication_id&quot;:7541790,&quot;publication_name&quot;:&quot;Peculiar Mixture Of Chill And Effort&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/$s_!ph1b!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6adacff-a1b0-4d51-8b1e-21c4a4c891e8_1280x1280.png&quot;,&quot;belowTheFold&quot;:true,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div>]]></content:encoded></item><item><title><![CDATA[SIEM - Security Information and Event Management]]></title><description><![CDATA[Part 1: SIM and SEM]]></description><link>https://peculiarmixtureofchillandeffort.substack.com/p/siem-security-information-and-event</link><guid isPermaLink="false">https://peculiarmixtureofchillandeffort.substack.com/p/siem-security-information-and-event</guid><dc:creator><![CDATA[greg]]></dc:creator><pubDate>Fri, 06 Mar 2026 04:37:58 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!KEAt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Here&#8217;s what SIEM is, end-to-end.</p><p>If a solution can <em>collect and manage security data</em> (SIM) and can <em>detect, investigate, and respond to security events </em>(SEM). </p><p>Then it is a solution that qualifies as a SIEM (<em>Security Information and Event Managemen</em>t).</p><p>Put simply, a SIEM does five core things:</p><ol><li><p>Collect the Right Data.</p></li><li><p>Analyze it Effectively</p></li><li><p>Detect Anomalies</p></li><li><p>Investigate Incidents</p></li><li><p>Respond and Recover</p></li></ol><p>Voila! That&#8217;s the full picture. </p><p>Now, let&#8217;s take the SIEM apart piece by piece and make sense of it.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!KEAt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!KEAt!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 424w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 848w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!KEAt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg" width="690" height="355" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:355,&quot;width&quot;:690,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Why Should Enterprises Choose EventLog Analyzer as Their SIEM Solution?&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Why Should Enterprises Choose EventLog Analyzer as Their SIEM Solution?" title="Why Should Enterprises Choose EventLog Analyzer as Their SIEM Solution?" srcset="https://substackcdn.com/image/fetch/$s_!KEAt!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 424w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 848w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!KEAt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff3105303-bb60-43c7-acd6-ca341d1222a1_690x355.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="highlighted_code_block" data-attrs="{&quot;language&quot;:&quot;plaintext&quot;,&quot;nodeId&quot;:&quot;5a2e7bda-aa1d-4977-bf25-37087039dd23&quot;}" data-component-name="HighlightedCodeBlockToDOM"><pre class="shiki"><code class="language-plaintext">Photo Courtesy of ManageEngine</code></pre></div><div><hr></div><h1>SIEM: The Pillar of a SOC</h1><p>From an operational standpoint, a SIEM platform is one of the most crucial components of a <em>Security Operations Center</em> (SOC). </p><p>In practice, most SOC workflows, procedures and day-to-day operational activities are heavily shaped by the capabilities and design of the SIEM solution in place. </p><p>SIEM doesn&#8217;t just support the SOC. It defines how the SOC operates.</p><p><em>It&#8217;s the central nervous system of SecOps.</em></p><p>It directly influences how analysts monitor alerts, investigate incidents, prioritize threats, and execute response procedures daily.</p><p>So, yes, being a SOC analyst means you&#8217;ll likely spend the majority of your time in the SIEM console, monitoring alerts, investigating events, and managing incidents.</p><p><em>It&#8217;s rad. </em></p><p>Your visibility.<br>Your detection capability.<br>Your investigation depth.</p><p>It all depends on the SIEM.</p><p>However, things need to be structured and efficient. Choosing the right SIEM solution can make or break your SOC. </p><p>To make the right choice, it&#8217;s necessary to get the basics down. </p><p><em>What is a SIEM?</em></p><p><em>Why does it exist?</em></p><p><em>How does it actually work?</em></p><div><hr></div><h1>Making Sense of SIEM</h1><p>As you already know, SIEM stands for <em>Security Information and Event Management.</em></p><p>At first glance, it sounds like a single concept. </p><p>But it&#8217;s actually a combination of two distinct components:</p><blockquote><p>SIM - <em>Security Information Management</em></p><p>SEM - <em>Security Event Management</em></p></blockquote><h3>SIM &#8211; Security Information Management</h3><p>SIM focuses on <em>collection</em>, <em>storing</em>, and <em>managing</em> security data. </p><p>Essential functions:</p><ul><li><p>Log aggregation from multiple sources.</p></li><li><p>Data normalization and retention</p></li><li><p>Historical analysis for trends and compliance</p></li></ul><h3>SEM &#8211; Security Event Management</h3><p>SEM focuses on <em>detecting</em>, <em>monitoring</em>, and <em>responding</em> to security events in real time.</p><p>Functions include:</p><ul><li><p>Event correlation and alerting</p></li><li><p>Real-time monitoring and dashboards</p></li><li><p>Incident investigation and response</p></li></ul><p>Comprehending SIM and SEM individually is key to appreciating the full power of a SIEM. </p><p>It&#8217;s more than just a tool. It&#8217;s the fusion of robust data management and real-time security intelligence that drives a modern SOC.</p><div><hr></div><h2>It All Starts with Logs</h2><p>In production, there are multiple digital/cyber domains and solutions.</p><p>Domains such as:</p><ul><li><p>Identity (Active Directory)</p></li><li><p>Network (Routers, Switches, Firewalls, Proxies)</p></li><li><p>Applications (ERP System - SAP, NetSuite)</p></li><li><p>Infrastructure ( Cloud Providers, On-Prem Data Centers)</p></li><li><p>Data (File Servers, OneDrive, Google Drive)</p></li><li><p>Endpoints (MDM, Laptops, Servers)</p></li></ul><p>Each of these domains or systems generates logs, and many of them provide valuable security context.</p><p>In addition to operational systems, enterprises also deploy dedicated security solutions, such as:</p><ul><li><p>Identity (Identity Protection - Microsoft Defender for Identity, CrowdStrike)</p></li><li><p>Network (IDS/IPS)</p></li><li><p>Applications (CASB - Cloud Access Security Broker)</p></li><li><p>Infrastructure (CSPM/CWPP - Cloud Security Posture Management/Cloud Workload Protection Platform)</p></li><li><p>Data (DLP - Data Loss Prevention)</p></li><li><p>Endpoints (Endpoint Protection Platform - AntiVirus / EDR - Endpoint Detection and Response)</p></li></ul><p>In reality, most enterprises operate 15 or more security-related solutions, all generating logs that could be critical for detection, investigation, and compliance.</p><div><hr></div><h2>Generated Log Types From Each Domain.</h2><p>As mentioned, each digital domain or system generates logs that can provide valuable context. </p><p>These Log Types may be:</p><ul><li><p>Identity Logs</p><ul><li><p>User Account Creation</p><ul><li><p>Identity Creation</p></li><li><p>Group Creation </p></li><li><p>Role Creation</p></li></ul></li><li><p>Privilege Provisioning</p></li><li><p>Login Attempts</p></li><li><p>Deprovisioning</p></li></ul></li><li><p>Network Logs</p><ul><li><p>VLAN Creation</p></li><li><p>Route Creation and Change</p></li><li><p>WLAN Creation</p></li><li><p>Access Requests</p></li><li><p>Firewall Events</p></li><li><p>External Network Service Tiering</p></li></ul></li><li><p>Application Logs</p><ul><li><p>User Provisioning</p></li><li><p>Authorization Changes</p></li><li><p>Enabling Specific Application Capabilities</p></li><li><p>Code Modifications</p></li></ul></li><li><p>Infrastructure Logs</p><ul><li><p>DNS, DHCP, File Servers</p></li><li><p>Cloud Activity </p></li><li><p>Resource Provisioning</p></li></ul></li><li><p>Data Logs</p><ul><li><p>File Creation</p></li><li><p>Data Classification</p></li><li><p>Data Protection </p></li><li><p>Encryption Events</p></li><li><p>Data Sharing</p></li></ul></li><li><p>Endpoint Logs</p><ul><li><p>Device Onboarding </p></li><li><p>Device Compliance</p></li><li><p>Device Configuration</p></li><li><p>Registry Changes</p></li><li><p>Application Installation</p></li><li><p>Command-line Activity</p></li><li><p>Changes to File Events</p></li></ul></li></ul><p>Take it easy. These are simply examples of what systems record about what&#8217;s happening, so administrators or security tools can monitor, troubleshoot, and investigate later.</p><p>After all, <em>Log Generation</em> is the process by which systems, applications, or devices automatically create records (logs) of events and activities that occur within them.</p><div><hr></div><h2>Security Information Management (SIM)</h2><p>Now, imagine collecting logs from all these sources into a <em>centralized repository.</em></p><p>But this collection process has to be intentional. We don&#8217;t just ingest every log without thinking.</p><p><em>So, what does that actually mean?</em></p><p>It means we carefully decide which logs are valuable; the ones that help with monitoring, security detection, troubleshooting, and compliance. </p><p>Not every log is useful, and collecting everything can create noise, consume storage, and make analysis harder. </p><p>In other words, we prioritize the logs that matter most so that administrators and security tools can focus on meaningful events rather than drowning in unnecessary data.</p><p>In terms of Identity Logs:</p><blockquote><p>You may ingest failed login attempts from Active Directory to detect brute-force attacks. </p><p>But, from an identity protection tool or solution, you may ingest all alerts regardless of severity.</p></blockquote><p>Again, for this reason, careful planning is required.</p><p>We must thoughtfully determine:</p><ul><li><p>What logs should be collected?</p></li><li><p>Why are we collecting time?</p></li><li><p>How do these logs provide security value?</p></li></ul><p>Furthermore, information from carefully selected logs across different domains and solutions can help with <em>Data Enrichment</em>, adding context that makes security analysis more effective.</p><p>Ultimately, this deliberate process of collecting, storing, and managing security-relevant logs in a centralized system is called SIM (Security Information Management).</p><div><hr></div><h2>What Happens After Collection? <em>Security Event Management (SEM)</em></h2><p>Once data is collected, the next step is to put it to work by:</p><ul><li><p>Creating Detection Rules (Conditions to Detect Anomalies)</p></li><li><p>Identifying Anomalies</p></li><li><p>Writing Queries For Deep Investigation (Deep Search)</p></li><li><p>Following Response Procedures</p></li><li><p>Initiating Recovery Actions</p></li></ul><p>This structured handling of security events is known as SEM or Security Event Management. </p><p>Interestingly, many of these activities map directly to the NIST Cybersecurity Framework functions, such as Identify, Detect, Protect, Respond and Recover; showing how SEM connects daily operations to broader cybersecurity goals.</p><div><hr></div><h1>All Tied Up</h1><p>Once more, here&#8217;s what SIEM is, end-to-end:</p><p>If a solution can <em>collect and manage security data</em> (SIM) and can <em>detect, investigate, and respond to security events </em>(SEM). </p><p>Then it is a solution that qualifies as a SIEM (<em>Security Information and Event Managemen</em>t).</p><p>Put simply, a SIEM does five core things:</p><ol><li><p>Collect the Right Data.</p></li><li><p>Analyze it Effectively</p></li><li><p>Detect Anomalies</p></li><li><p>Investigate Incidents</p></li><li><p>Respond and Recover</p></li></ol><p><em>Voila! </em></p><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;7422fdf3-bafc-4595-9767-53b337195846&quot;,&quot;caption&quot;:&quot;In today&#8217;s reality, traditional antivirus solutions alone are insufficient for protecting production networks or business environments.&quot;,&quot;cta&quot;:&quot;Read full story&quot;,&quot;showBylines&quot;:true,&quot;size&quot;:&quot;sm&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;The Evolution of Detection and Response&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:433782858,&quot;name&quot;:&quot;greg&quot;,&quot;bio&quot;:&quot;Here to read and write&quot;,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8e9d4fed-e5a3-4fa1-8626-e772cdbf49e9_1022x1024.png&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2026-03-02T02:15:52.032Z&quot;,&quot;cover_image&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9f282992-c49a-4506-883e-3323939a920b_1280x853.jpeg&quot;,&quot;cover_image_alt&quot;:null,&quot;canonical_url&quot;:&quot;https://peculiarmixtureofchillandeffort.substack.com/p/the-evolution-of-detection-and-response&quot;,&quot;section_name&quot;:&quot;CyberNook&quot;,&quot;video_upload_id&quot;:null,&quot;id&quot;:187785642,&quot;type&quot;:&quot;newsletter&quot;,&quot;reaction_count&quot;:0,&quot;comment_count&quot;:0,&quot;publication_id&quot;:7541790,&quot;publication_name&quot;:&quot;Peculiar Mixture Of Chill And Effort&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/$s_!ph1b!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6adacff-a1b0-4d51-8b1e-21c4a4c891e8_1280x1280.png&quot;,&quot;belowTheFold&quot;:true,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div><p></p><p></p>]]></content:encoded></item></channel></rss>