<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>chaosplay</title>
    <link>https://chaosplay.com/</link>
    <description>Recent content on chaosplay</description>
    <generator>Hugo -- 0.147.7</generator>
    <language>en-US</language>
    <copyright>Amer Khalid</copyright>
    <lastBuildDate>Wed, 11 Mar 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://chaosplay.com/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>The Secret of Monkey Island</title>
      <link>https://chaosplay.com/posts/hobbies/video_games/2026-03-11-secret-of-monkey-island/</link>
      <pubDate>Wed, 11 Mar 2026 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/video_games/2026-03-11-secret-of-monkey-island/</guid>
      <description>&lt;p&gt;It is okay.. my 8 year old son laughed at some jokes more than me. BUt I hated the ending. I knew it was going to be some joke but it was just blah.&lt;/p&gt;
&lt;p&gt;1/5&lt;/p&gt;</description>
    </item>
    <item>
      <title>As Dusk Falls</title>
      <link>https://chaosplay.com/posts/hobbies/video_games/as_dusk_falls/</link>
      <pubDate>Mon, 22 Dec 2025 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/video_games/as_dusk_falls/</guid>
      <description>&lt;h2 id=&#34;rating-35&#34;&gt;Rating: 3/5&lt;/h2&gt;
&lt;p&gt;It’s an interactive, movie-style game, and I really enjoyed it on my first playthrough. However, the game doesn’t let you skip dialogue, and on the second playthrough it became frustrating. Having to sit through the same scenes and conversations again made it tedious and boring. I wanted to explore different paths, but the lack of dialogue skipping killed the experience.&lt;/p&gt;
&lt;p&gt;Because of this, I’m giving it a 3/5 rating.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Favorite Video Games</title>
      <link>https://chaosplay.com/notes/micro/2025-12-22-favorite-video-games/</link>
      <pubDate>Mon, 22 Dec 2025 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2025-12-22-favorite-video-games/</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Xenogears&lt;/li&gt;
&lt;li&gt;Tomb Raider series&lt;/li&gt;
&lt;li&gt;Uncharted series&lt;/li&gt;
&lt;li&gt;Last of Us series&lt;/li&gt;
&lt;li&gt;God of War (new ones)&lt;/li&gt;
&lt;li&gt;GTA 5&lt;/li&gt;
&lt;li&gt;Syberia&lt;/li&gt;
&lt;li&gt;Life is Strange&lt;/li&gt;
&lt;li&gt;Dreams&lt;/li&gt;
&lt;li&gt;Life is Strange: Before the storm&lt;/li&gt;
&lt;li&gt;Life is Strange 2&lt;/li&gt;
&lt;li&gt;Detroit: Become Human&lt;/li&gt;
&lt;li&gt;Neir: Automata&lt;/li&gt;
&lt;li&gt;Horizon Zero Dawn&lt;/li&gt;
&lt;li&gt;Until Dawn&lt;/li&gt;
&lt;/ol&gt;</description>
    </item>
    <item>
      <title>Starting a Portrait Photography Business</title>
      <link>https://chaosplay.com/posts/photography/2025-12-18-starting-portrait-photography-business/</link>
      <pubDate>Thu, 18 Dec 2025 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/photography/2025-12-18-starting-portrait-photography-business/</guid>
      <description>Lessons from launching a portrait photography side hustle — what worked, what didn&amp;#39;t, and what I learned.</description>
    </item>
    <item>
      <title>Photography vs Programming: a Minimalist Perspective</title>
      <link>https://chaosplay.com/posts/photography/2025-10-11-photography-vs-programming/</link>
      <pubDate>Sat, 11 Oct 2025 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/photography/2025-10-11-photography-vs-programming/</guid>
      <description>Balancing a photography side hustle and a programming career through the lens of minimalism.</description>
    </item>
    <item>
      <title>What Would You Do When You Retire?</title>
      <link>https://chaosplay.com/posts/thoughts/2025-09-22-retire/</link>
      <pubDate>Mon, 22 Sep 2025 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2025-09-22-retire/</guid>
      <description>Thinking about what you&amp;#39;d do in retirement can reveal what you truly want to do right now.</description>
    </item>
    <item>
      <title>Lake Tahoe Vacation</title>
      <link>https://chaosplay.com/posts/travel/2025-lake-tahoe/</link>
      <pubDate>Tue, 15 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/travel/2025-lake-tahoe/</guid>
      <description>Family vacation at Lake Tahoe</description>
    </item>
    <item>
      <title>LLMs and an old dev</title>
      <link>https://chaosplay.com/posts/thoughts/2025-06-10-llms-and-old-dev/</link>
      <pubDate>Tue, 10 Jun 2025 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2025-06-10-llms-and-old-dev/</guid>
      <description>How LLMs helped an older developer keep up with new tech and extend his career.</description>
    </item>
    <item>
      <title>Louis Tussaud&#39;s Palace of Wax</title>
      <link>https://chaosplay.com/posts/travel/2025-louis-tussauds-palace-of-wax/</link>
      <pubDate>Sat, 07 Jun 2025 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/travel/2025-louis-tussauds-palace-of-wax/</guid>
      <description>Wax figures and oddities in Grand Prairie, TX</description>
    </item>
    <item>
      <title>Wishlist of shows and movies</title>
      <link>https://chaosplay.com/notes/micro/2025-05-07-wishlist-of-shows-and-movies/</link>
      <pubDate>Wed, 07 May 2025 16:24:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2025-05-07-wishlist-of-shows-and-movies/</guid>
      <description>&lt;p&gt;I keep telling my kids that I cannot wait to watch my favorite movies and shows with them when they are older.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Game of Thrones
The Matrix
Scarface
Last of Us
Black Mirror
Fight Club
Arcane
Fallout
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Raising Mentally Strong Kids</title>
      <link>https://chaosplay.com/posts/hobbies/books/2025-03-26-raising-mentally-strong-kids/</link>
      <pubDate>Wed, 26 Mar 2025 14:55:01 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/books/2025-03-26-raising-mentally-strong-kids/</guid>
      <description>&lt;p&gt;&lt;img alt=&#34;Raising Mentally Strong Kids&#34; loading=&#34;lazy&#34; src=&#34;https://chaosplay.com/images/raising-mentally-strong-kids.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://amzn.to/3DTRxvd&#34;&gt;Raising Mentally Strong Kids&lt;/a&gt; (affiliate link) is one of better parenting books that I read recently. Highly recommended, 5/5.&lt;/p&gt;
&lt;p&gt;A lot of parenting books have same concepts but it is good to re-read same ideas with different perspectives from various authors. It helps reinforce those ideas.&lt;/p&gt;
&lt;p&gt;The main ideas are:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Focus on yourself first. Fix your issues, get good sleep, handle stress, do hard things, be a good example.
Physical activity is very important for brain development.
Fight Automatic Negative Thoughts (ANT).
Give kids chores, give them hard things to do, let them fail when stakes are low.
Choose authoritative parenting style. But don&#39;t nag, let kids learn from their mistakes and be there for them when they fail.
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Circle of Life</title>
      <link>https://chaosplay.com/notes/songs/2025-03-09-circle-of-life/</link>
      <pubDate>Sun, 09 Mar 2025 16:51:23 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2025-03-09-circle-of-life/</guid>
      <description>&lt;p&gt;Nants ingonyama bagithi baba
Sithi uhm ingonyama
Nants ingonyama bagithi baba
Sithi uhhmm ingonyama
Ingonyama
Siyo Nqoba
Ingonyama
Ingonyama nengw&amp;rsquo; enamabala
Ingonyama nengw&amp;rsquo; enamabala
Ingonyama nengw&amp;rsquo; enamabala
Ingonyama nengw&amp;rsquo; enamabala
Ingonyama nengw&amp;rsquo; enamabala
Ingonyama nengw&amp;rsquo; enamabala (se-to-kwa!)
Ingonyama nengw&amp;rsquo; enamabala (asana)
Ingonyama nengw&amp;rsquo; enamabala (se-to-kwa!)
Ingonyama nengw&amp;rsquo; enamabala (se-to-kwa!)
From the day we arrive on the planet
And, blinking, step into the sun
There&amp;rsquo;s more to see than can ever be seen
More to do than can ever be done
There&amp;rsquo;s far too much to take in here
More to find than can ever be found
But the sun rolling high
Through the sapphire sky
Keeps great and small on the endless round
It&amp;rsquo;s the circle of life
And it moves us all
Through despair and hope
Through faith and love
‘Til we find our place
On the path unwinding
In the circle
The circle of life
Ingonyama nengw&amp;rsquo; enamabala
Ingonyama nengw&amp;rsquo; enamabala
Ingonyama nengw&amp;rsquo; enamabala (se-to-kwa!)
Ingonyama nengw&amp;rsquo; enamabala (se-to-kwa!)
Ingonyama nengw&amp;rsquo; enamabala (se-to-kwa!)&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Whale</title>
      <link>https://chaosplay.com/posts/hobbies/movies/2025-03-08-the-whale/</link>
      <pubDate>Sat, 08 Mar 2025 15:03:19 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/movies/2025-03-08-the-whale/</guid>
      <description>&lt;p&gt;&lt;img alt=&#34;The Whale&#34; loading=&#34;lazy&#34; src=&#34;https://chaosplay.com/images/the-whale.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;This was a hard movie to watch. Initially, it was hard to find sympathy for Charlie, the main character. He is slob and you feel a bit of disgust.&lt;/p&gt;
&lt;p&gt;But as you learn more about him, you will love him and root for him.&lt;/p&gt;
&lt;p&gt;Recommended. 3/5 stars.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Watcher (2022 film)</title>
      <link>https://chaosplay.com/posts/hobbies/movies/2025-03-01-watcher-2022-film/</link>
      <pubDate>Sat, 01 Mar 2025 13:31:38 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/movies/2025-03-01-watcher-2022-film/</guid>
      <description>&lt;p&gt;&lt;img alt=&#34;Watcher&#34; loading=&#34;lazy&#34; src=&#34;https://chaosplay.com/images/watcher.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;This was good movie. Many review online said that this was pretty basic and standard plot but I still enjoyed it. Maika Monroe&amp;rsquo;s acting was amazing. Kept wondering if she is just being paranoid or there is a real danger.&lt;/p&gt;
&lt;p&gt;3/5.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Leaving Las Vegas (1995)</title>
      <link>https://chaosplay.com/notes/micro/2025-02-20-leaving-las-vegas-1995/</link>
      <pubDate>Thu, 20 Feb 2025 18:37:30 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2025-02-20-leaving-las-vegas-1995/</guid>
      <description>&lt;p&gt;&lt;img alt=&#34;Leaving Las Vegas&#34; loading=&#34;lazy&#34; src=&#34;https://chaosplay.com/images/leaving-las-vegas.jpg&#34;&gt;&lt;/p&gt;
&lt;p&gt;Depressing and real.&lt;/p&gt;
&lt;p&gt;It is a good movie, Nicolas Cage was very convincing alcoholic. There are some disturbing scenes.&lt;/p&gt;
&lt;p&gt;Soundtrack is great too.&lt;/p&gt;
&lt;p&gt;4/5&lt;/p&gt;</description>
    </item>
    <item>
      <title>Maid (Netflix)</title>
      <link>https://chaosplay.com/posts/hobbies/movies/2025-02-13-maid-netflix/</link>
      <pubDate>Thu, 13 Feb 2025 13:12:32 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/movies/2025-02-13-maid-netflix/</guid>
      <description>&lt;p&gt;&lt;img alt=&#34;Maid&#34; loading=&#34;lazy&#34; src=&#34;https://chaosplay.com/images/maid-netflix.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.netflix.com/title/81166770&#34;&gt;https://www.netflix.com/title/81166770&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Maid on Netflix is gut wrenching, emotional show about a woman escaping abusive relationship with her kids. She has very little money and no social support. As a parent, it was really hard to watch. You will cry at times.&lt;/p&gt;
&lt;p&gt;Highly recommended. 5/5&lt;/p&gt;</description>
    </item>
    <item>
      <title>Mo (Netflix show)</title>
      <link>https://chaosplay.com/posts/hobbies/movies/2025-02-08-mo-netflix-show/</link>
      <pubDate>Sat, 08 Feb 2025 15:31:01 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/movies/2025-02-08-mo-netflix-show/</guid>
      <description>&lt;p&gt;&lt;img alt=&#34;Mo&#34; loading=&#34;lazy&#34; src=&#34;https://chaosplay.com/images/mo-netflix.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;The first episode of &lt;a href=&#34;https://www.imdb.com/title/tt15875168/&#34;&gt;Mo&lt;/a&gt; was so annoying that it took several months to finish it. But eventually the show gets interesting.&lt;/p&gt;
&lt;p&gt;Mo is really annoying that is very hard to love him initially. There were moments when he got in trouble for his immaturity that instead of feeling bad for him, I felt relieved. I hate shows in which there are no consequences for stupid actions. Here, at least, he had to deal with the consequences of his stupidity.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hunger (2023)</title>
      <link>https://chaosplay.com/posts/hobbies/movies/2025-02-05-hunger-2023/</link>
      <pubDate>Wed, 05 Feb 2025 15:28:28 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/movies/2025-02-05-hunger-2023/</guid>
      <description>&lt;p&gt;I saw &lt;a href=&#34;https://en.wikipedia.org/wiki/Hunger_(2023_film)&#34;&gt;this movie&lt;/a&gt; on the Netflix. It started off strong but turns into a disappointment at the end.&lt;/p&gt;
&lt;p&gt;The movie is about a street food cook who is invited to join a team of top chef.&lt;/p&gt;
&lt;p&gt;SPOILERS WARNING:&lt;/p&gt;
&lt;p&gt;The girl wanted to be the best and she even ended up opening her own restaurant. But in the end she just wanted to go back to being a street food cook.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Courage to Be Disliked</title>
      <link>https://chaosplay.com/posts/hobbies/books/2025-01-30-the-courage-to-be-disliked/</link>
      <pubDate>Thu, 30 Jan 2025 19:03:35 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/books/2025-01-30-the-courage-to-be-disliked/</guid>
      <description>&lt;p&gt;Just finished listening to The Courage to Be Disliked by Ichiro Kishimi.&lt;/p&gt;
&lt;p&gt;The book is in the form of dialogue between philosopher and a youth. It discusses Adlerian philosophy.&lt;/p&gt;
&lt;p&gt;The book seems to be written from a Japanese perspective. It talks about &amp;ldquo;shut-ins&amp;rdquo;, NEET, and other terms for young people who prefer to isolate themselves. I had never heard of these terms, after some research I learned that it is a huge problem in the Asian countries.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Post Malone – Losers</title>
      <link>https://chaosplay.com/notes/songs/2025-01-30-post-malone-losers/</link>
      <pubDate>Thu, 30 Jan 2025 11:40:25 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2025-01-30-post-malone-losers/</guid>
      <description>&lt;h3 id=&#34;lyrics&#34;&gt;Lyrics:&lt;/h3&gt;
&lt;p&gt;(Verse 1)&lt;/p&gt;
&lt;p&gt;Last callers, last chancers&lt;/p&gt;
&lt;p&gt;9 to 5ers, truckers, dancers&lt;/p&gt;
&lt;p&gt;Couple Chuck’s, Ern’s, and Chandler’s&lt;/p&gt;
&lt;p&gt;With a whole lotta prayers unanswered&lt;/p&gt;
&lt;p&gt;Whiskey by noon, and beer before that&lt;/p&gt;
&lt;p&gt;Southbound train on a hellbound track&lt;/p&gt;
&lt;p&gt;Might just put two middle fingers up and throw one back for all the&lt;/p&gt;
&lt;p&gt;People who ain’t ever felt at home&lt;/p&gt;
&lt;p&gt;Just spinnin’ on a rock and gettin’ stoned&lt;/p&gt;
&lt;p&gt;(Chorus)&lt;/p&gt;
&lt;p&gt;Yeah this one’s for the Losers&lt;/p&gt;</description>
    </item>
    <item>
      <title>Road 96</title>
      <link>https://chaosplay.com/posts/hobbies/video_games/2025-01-29-road-96/</link>
      <pubDate>Wed, 29 Jan 2025 12:57:18 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/video_games/2025-01-29-road-96/</guid>
      <description>&lt;p&gt;Road 96 is narrative driven video game. It has old school graphics which was pretty enjoyable.&lt;/p&gt;
&lt;p&gt;When starting it, I didn&amp;rsquo;t read much about it, so had no idea what was going on. It didn&amp;rsquo;t seemed like an interesting story at first. It was later I learned that game changes interactions &amp;amp; story based on your choices. That was interesting, so I started play with choices and see their impact.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Best TV Shows of All Time</title>
      <link>https://chaosplay.com/notes/micro/2025-01-29-the-best-tv-shows-of-all-times/</link>
      <pubDate>Wed, 29 Jan 2025 12:48:20 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2025-01-29-the-best-tv-shows-of-all-times/</guid>
      <description>&lt;pre&gt;&lt;code&gt;Arcane
X-Files
MacGyver
Seinfeld
The Office
The Last of Us
Fallout
Friends from College
Dead to Me
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Sonic 3</title>
      <link>https://chaosplay.com/posts/hobbies/movies/2025-01-27-sonic-3/</link>
      <pubDate>Mon, 27 Jan 2025 17:15:43 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/movies/2025-01-27-sonic-3/</guid>
      <description>&lt;p&gt;This weekend, I saw Sonic 3 with my son.&lt;/p&gt;
&lt;p&gt;I have never got into Sonic movies, so this was the first Sonic movie I saw. It was really enjoyable movie, Ayden really loved it as well.&lt;/p&gt;
&lt;p&gt;From a parent&amp;rsquo;s perspective, I liked that it used some common phrases such as &amp;ldquo;make good choices&amp;rdquo;, that should help reinforce these messages.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Photography in the age of Generative AI</title>
      <link>https://chaosplay.com/posts/photography/2024-12-21-photography/</link>
      <pubDate>Sat, 21 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/photography/2024-12-21-photography/</guid>
      <description>How generative AI is changing photography and what it means for photographers.</description>
    </item>
    <item>
      <title>Former Developers and what are they doing now</title>
      <link>https://chaosplay.com/posts/work/ex-devs/</link>
      <pubDate>Fri, 09 Aug 2024 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/ex-devs/</guid>
      <description>&lt;h2 id=&#34;ski-mountaineering-shop&#34;&gt;Ski Mountaineering Shop&lt;/h2&gt;
&lt;p&gt;jcborro on HN is opened a &lt;a href=&#34;https://skimo.co/&#34;&gt;ski mountaineering shop&lt;/a&gt; after 20 years in software development.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://news.ycombinator.com/item?id=23952057&#34;&gt;https://news.ycombinator.com/item?id=23952057&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;realtor&#34;&gt;Realtor&lt;/h2&gt;
&lt;p&gt;Some developer pivoted to real estate.&lt;/p&gt;
&lt;p&gt;For example, poulsbohemian on HN, switched to selling real estate after 20 years in software development.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://news.ycombinator.com/item?id=23952181&#34;&gt;https://news.ycombinator.com/item?id=23952181&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;product-management&#34;&gt;Product Management&lt;/h2&gt;
&lt;p&gt;Product management seems an easy pivot for many software developers.&lt;/p&gt;
&lt;p&gt;Ref: &lt;a href=&#34;https://news.ycombinator.com/item?id=23959642&#34;&gt;https://news.ycombinator.com/item?id=23959642&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;leadership-roles&#34;&gt;Leadership Roles&lt;/h2&gt;
&lt;p&gt;Some developers switched to leadership roles and started to climb corporate ladder. These roles represent different challenges &amp;amp; skill set and opportunity to keep learning and avoid boredom.&lt;/p&gt;</description>
    </item>
    <item>
      <title>2024 Scribdfest in Vail</title>
      <link>https://chaosplay.com/posts/travel/2024-scribdfest-in-vail-colorado/</link>
      <pubDate>Mon, 01 Jul 2024 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/travel/2024-scribdfest-in-vail-colorado/</guid>
      <description>Company retreat in the Colorado mountains</description>
    </item>
    <item>
      <title>2024 San Diego</title>
      <link>https://chaosplay.com/posts/travel/2024-san-diego/</link>
      <pubDate>Sat, 01 Jun 2024 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/travel/2024-san-diego/</guid>
      <description>Beach days, zoo adventures, and craft beer in San Diego</description>
    </item>
    <item>
      <title>2024 Fort Worth Stockyards</title>
      <link>https://chaosplay.com/posts/travel/2024-stockyards/</link>
      <pubDate>Fri, 01 Mar 2024 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/travel/2024-stockyards/</guid>
      <description>A day at the historic Fort Worth Stockyards</description>
    </item>
    <item>
      <title>The things you own end up owning you</title>
      <link>https://chaosplay.com/posts/thoughts/things/</link>
      <pubDate>Tue, 06 Feb 2024 06:46:37 -0600</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/things/</guid>
      <description>&lt;p&gt;&amp;ldquo;The things you own end up owning you.&amp;rdquo; - Chuck Palahniuk.&lt;/p&gt;
&lt;p&gt;I was minimalist. It was very easy and stress-free life. I did own many things but but only after careful planning and I was quick to sell things that didn&amp;rsquo;t meet my expectations or once I stopped using them.&lt;/p&gt;
&lt;p&gt;I also used to live well below my means. I felt free because loss of job or any other financial crisis would not affect me much.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Favorite Movies</title>
      <link>https://chaosplay.com/notes/micro/2024-01-10-favorite-movies/</link>
      <pubDate>Wed, 10 Jan 2024 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2024-01-10-favorite-movies/</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Oppenheimer&lt;/li&gt;
&lt;li&gt;The Matrix&lt;/li&gt;
&lt;li&gt;Vivarium&lt;/li&gt;
&lt;li&gt;The Social Network&lt;/li&gt;
&lt;li&gt;Joker&lt;/li&gt;
&lt;li&gt;Moneyball&lt;/li&gt;
&lt;li&gt;The Founder&lt;/li&gt;
&lt;li&gt;The Big Short&lt;/li&gt;
&lt;li&gt;The Wolf of Wall Street&lt;/li&gt;
&lt;li&gt;Dil Se&lt;/li&gt;
&lt;li&gt;Taare Zameen Par&lt;/li&gt;
&lt;li&gt;3 Idiots&lt;/li&gt;
&lt;li&gt;Crash&lt;/li&gt;
&lt;li&gt;Crouching Tiger, Hidden Dragon&lt;/li&gt;
&lt;li&gt;Life Is Beautiful&lt;/li&gt;
&lt;li&gt;Pan&amp;rsquo;s Labyrinth&lt;/li&gt;
&lt;li&gt;Scarface&lt;/li&gt;
&lt;li&gt;Pulp Fiction&lt;/li&gt;
&lt;li&gt;Fight Club&lt;/li&gt;
&lt;li&gt;The Lion King&lt;/li&gt;
&lt;li&gt;Raiders of the Lost Ark&lt;/li&gt;
&lt;li&gt;Entergalactic&lt;/li&gt;
&lt;/ol&gt;</description>
    </item>
    <item>
      <title>Parenting is hard</title>
      <link>https://chaosplay.com/posts/fatherhood/2023-09-30-parenting-is-hard/</link>
      <pubDate>Sat, 30 Sep 2023 17:57:32 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2023-09-30-parenting-is-hard/</guid>
      <description>Parenting feels impossible until you fix your expectations.</description>
    </item>
    <item>
      <title>Red Blob Games</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-09-29-red-blob-games/</link>
      <pubDate>Fri, 29 Sep 2023 14:26:05 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-09-29-red-blob-games/</guid>
      <description>&lt;p&gt;Interactive tutorials for math and algorithms
— Read on &lt;a href=&#34;https://www.redblobgames.com/&#34;&gt;www.redblobgames.com/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: How do you manage photos, philosophically? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-09-27-ask-hn-how-do-you-manage-photos-philosophically-hacker-news/</link>
      <pubDate>Wed, 27 Sep 2023 18:36:24 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-09-27-ask-hn-how-do-you-manage-photos-philosophically-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: How do you manage photos, philosophically? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=37670756&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>TechURLs – A neat technology news aggregator</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-09-24-techurls-a-neat-technology-news-aggregator/</link>
      <pubDate>Sun, 24 Sep 2023 19:08:04 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-09-24-techurls-a-neat-technology-news-aggregator/</guid>
      <description>&lt;p&gt;Read tech news from the most popular tech websites in one place.
— Read on &lt;a href=&#34;https://techurls.com/&#34;&gt;techurls.com/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>pouët.net :: your online demoscene resource</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-09-24-pouet-net-your-online-demoscene-resource/</link>
      <pubDate>Sun, 24 Sep 2023 19:00:32 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-09-24-pouet-net-your-online-demoscene-resource/</guid>
      <description>&lt;p&gt;pouët.net - your online demoscene resource
— Read on &lt;a href=&#34;https://www.pouet.net/&#34;&gt;www.pouet.net/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Credit cards vs Pokemon cards</title>
      <link>https://chaosplay.com/posts/fatherhood/2023-09-23-credit-cards-vs-pokemon-cards/</link>
      <pubDate>Sat, 23 Sep 2023 17:32:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2023-09-23-credit-cards-vs-pokemon-cards/</guid>
      <description>&lt;p&gt;Ayden: I don&amp;rsquo;t want to lose my Pokémon cards&lt;/p&gt;
&lt;p&gt;Amer: ok&lt;/p&gt;
&lt;p&gt;Ayden: Pokemon cards are very important&lt;/p&gt;
&lt;p&gt;Amer: how so?&lt;/p&gt;
&lt;p&gt;Ayden: they have all the information about Pokemon. They are not like credit cards. They are better than credit cards.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ayden says</title>
      <link>https://chaosplay.com/posts/fatherhood/2023-09-23-new-body/</link>
      <pubDate>Sat, 23 Sep 2023 17:06:45 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2023-09-23-new-body/</guid>
      <description>&lt;p&gt;Ayden: After we die if plants are eating our body how will we go to heaven&lt;/p&gt;
&lt;p&gt;Amer: Our soul goes&lt;/p&gt;
&lt;p&gt;Ayden: And we get a new body&lt;/p&gt;
&lt;p&gt;Amer: Sure&lt;/p&gt;
&lt;p&gt;Ayden: Can we get different skin&lt;/p&gt;
&lt;p&gt;Amer: Sure what color you want&lt;/p&gt;
&lt;p&gt;Ayden: Pink&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Highly Sensitive Parent by Elaine Aron</title>
      <link>https://chaosplay.com/posts/hobbies/books/2023-09-19-the-highly-sensitive-parent-by-elaine-aron/</link>
      <pubDate>Tue, 19 Sep 2023 18:59:09 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/books/2023-09-19-the-highly-sensitive-parent-by-elaine-aron/</guid>
      <description>&lt;p&gt;Could you be highly sensitive person? A highly sensitive person is someone who can get overwhelmed by various senses such as noise, smells, clutter that would not bother most people.&lt;/p&gt;
&lt;p&gt;I got two kids and sometimes they both are crying and screaming at the same time. Their screams causes my neck, shoulders and arms to get stiff and I feel tingling or pins all over my arms. This sounds like heart attack and I am going to doctor to have it checked but quick search showed that this might be due to High Sensitivity towards noises or screams. And that&amp;rsquo;s when I learned about Highly Sensitive People aka HSP.&lt;/p&gt;</description>
    </item>
    <item>
      <title>It is so hard to choose</title>
      <link>https://chaosplay.com/posts/fatherhood/2023-09-11-it-is-so-hard-to-choose/</link>
      <pubDate>Tue, 12 Sep 2023 02:36:58 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2023-09-11-it-is-so-hard-to-choose/</guid>
      <description>&lt;p&gt;Ayden deciding his career:&lt;/p&gt;
&lt;p&gt;&amp;ldquo;There are so many cool job, I want to be fireman, goalie, dad, police officer, monster truck driver.&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Backup VPS</title>
      <link>https://chaosplay.com/posts/work/dev/backup_vps/</link>
      <pubDate>Sun, 10 Sep 2023 11:38:32 -0500</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/backup_vps/</guid>
      <description>&lt;p&gt;Here are simple steps to backup your VPS.&lt;/p&gt;
&lt;h2 id=&#34;backup-mysql-database&#34;&gt;Backup MySQL database&lt;/h2&gt;
&lt;p&gt;Create a directory to store the backup files. Then run &lt;code&gt;mysqldump&lt;/code&gt; command to backup your database.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mysqldump -u your_mysql_user -pyour_mysql_password your_database_name &amp;gt; /path/to/dump_&lt;span style=&#34;color:#66d9ef&#34;&gt;$(&lt;/span&gt;date +&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;Y&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;m&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;d&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;H&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;M&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;S&lt;span style=&#34;color:#66d9ef&#34;&gt;)&lt;/span&gt;.sql
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or you run it as supersuer and backup all databases in once.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo mysqldump --all-databases &amp;gt; /path/to/dump_&lt;span style=&#34;color:#66d9ef&#34;&gt;$(&lt;/span&gt;date +&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;Y&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;m&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;d&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;H&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;M&lt;span style=&#34;color:#ae81ff&#34;&gt;\%&lt;/span&gt;S&lt;span style=&#34;color:#66d9ef&#34;&gt;)&lt;/span&gt;.sql
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To automate this, schedule a cron job that will run this command on a daily basis.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;crontab -e
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Insert the following line to execute the mysqldump command every day at midnight.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A quick script to build and deploy hugo site on VPS</title>
      <link>https://chaosplay.com/posts/thoughts/hugo-on-vps/</link>
      <pubDate>Wed, 06 Sep 2023 14:06:31 -0500</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/hugo-on-vps/</guid>
      <description>&lt;p&gt;I had been using GitHub and Netlify for this site but lack of some features such as access to server logs finally got too much. So I decided to move this blog to my VPS.&lt;/p&gt;
&lt;p&gt;One thing I really love about using Github is CI/CD and Github Actions. But I wanted something even simpler with less dependencies. So I decided to use a simple bash script to build and deploy the site.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Those with ADHD. What&#39;s a hobby that never gets boring? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-09-04-ask-hn-those-with-adhd-whats-a-hobby-that-never-gets-boring-hacker-news/</link>
      <pubDate>Mon, 04 Sep 2023 23:44:44 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-09-04-ask-hn-those-with-adhd-whats-a-hobby-that-never-gets-boring-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: Those with ADHD. What&amp;rsquo;s a hobby that never gets boring? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=37384109&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why I don&#39;t want to grow my freelance design studio into an agency | Nela Dunato Art &amp; Design</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-09-03-why-i-dont-want-to-grow-my-freelance-design-studio-into-an-agency-nela-dunato-art-design/</link>
      <pubDate>Sun, 03 Sep 2023 17:39:21 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-09-03-why-i-dont-want-to-grow-my-freelance-design-studio-into-an-agency-nela-dunato-art-design/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m often asked if I plan to hire more people and grow my own design agency? I don&amp;rsquo;t, and in this article I explain why.
— Read on &lt;a href=&#34;https://neladunato.com/blog/why-wont-grow-freelance-studio-into-agency/&#34;&gt;neladunato.com/blog/why-wont-grow-freelance-studio-into-agency/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>What&#39;s your favourite hobby and how did it start? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-09-01-ask-hn-whats-your-favourite-hobby-and-how-did-it-start-hacker-news/</link>
      <pubDate>Fri, 01 Sep 2023 20:36:58 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-09-01-ask-hn-whats-your-favourite-hobby-and-how-did-it-start-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: What&amp;rsquo;s your favourite hobby and how did it start? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=37342013&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Why did Python win? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-08-30-ask-hn-why-did-python-win-hacker-news/</link>
      <pubDate>Wed, 30 Aug 2023 11:52:52 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-08-30-ask-hn-why-did-python-win-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: Why did Python win? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=37308747&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Hidden Brain Connections Between Our Hands and Tongues | Quanta Magazine</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-08-30-the-hidden-brain-connections-between-our-hands-and-tongues-quanta-magazine/</link>
      <pubDate>Wed, 30 Aug 2023 11:50:34 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-08-30-the-hidden-brain-connections-between-our-hands-and-tongues-quanta-magazine/</guid>
      <description>&lt;p&gt;Sticking out your tongue while doing delicate work with your hands reveals a history of evolutionary relationships.
— Read on &lt;a href=&#34;https://www.quantamagazine.org/the-hidden-brain-connections-between-our-hands-and-tongues-20230828/&#34;&gt;www.quantamagazine.org/the-hidden-brain-connections-between-our-hands-and-tongues-20230828/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: What are some captivating fair play mystery books that you&#39;ve read | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-08-07-ask-hn-what-are-some-captivating-fair-play-mystery-books-that-youve-read-hacker-news/</link>
      <pubDate>Tue, 08 Aug 2023 04:01:57 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-08-07-ask-hn-what-are-some-captivating-fair-play-mystery-books-that-youve-read-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: What are some captivating fair play mystery books that you&amp;rsquo;ve read | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=36996401&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: What&#39;s the coolest physical thing you&#39;ve made? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-08-07-ask-hn-whats-the-coolest-physical-thing-youve-made-hacker-news/</link>
      <pubDate>Tue, 08 Aug 2023 03:58:46 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-08-07-ask-hn-whats-the-coolest-physical-thing-youve-made-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: What&amp;rsquo;s the coolest physical thing you&amp;rsquo;ve made? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=37033652&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Past Performance Does Not Guarantee Future Results: A Reflection on Human Nature and Trading Strategies</title>
      <link>https://chaosplay.com/posts/thoughts/2023-08-07-past-performance-does-not-guarantee-future-results-a-reflection-on-human-nature-and-trading-strategies/</link>
      <pubDate>Mon, 07 Aug 2023 19:40:46 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2023-08-07-past-performance-does-not-guarantee-future-results-a-reflection-on-human-nature-and-trading-strategies/</guid>
      <description>&lt;p&gt;It&amp;rsquo;s both intriguing and somewhat disheartening to observe how trading concepts often mirror human behavior. Here&amp;rsquo;s how:&lt;/p&gt;
&lt;h3 id=&#34;follow-the-trend&#34;&gt;Follow the Trend&lt;/h3&gt;
&lt;p&gt;In the investment world, the saying &amp;ldquo;past performance does not guarantee future results&amp;rdquo; is well-known. Despite this warning, many successful trend followers have found that stocks moving up generally continue to do so, and vice versa.&lt;/p&gt;
&lt;p&gt;Interestingly, this concept applies to humans as well. Those who are happy and kind often continue in the same manner or even improve, while those who are miserable tend to spiral downward.&lt;/p&gt;</description>
    </item>
    <item>
      <title>I feel hopeless, rejected, and a burden on society – one week of empathy training – Terence Eden&#39;s Blog</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-07-30-i-feel-hopeless-rejected-and-a-burden-on-society-one-week-of-empathy-training-terence-edens-blog/</link>
      <pubDate>Sun, 30 Jul 2023 18:26:55 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-07-30-i-feel-hopeless-rejected-and-a-burden-on-society-one-week-of-empathy-training-terence-edens-blog/</guid>
      <description>&lt;p&gt;I feel hopeless, rejected, and a burden on society – one week of empathy training – Terence Eden&amp;rsquo;s Blog
— Read on &lt;a href=&#34;https://shkspr.mobi/blog/2019/07/i-feel-hopeless-rejected-and-a-burden-on-society-one-week-of-empathy-training/&#34;&gt;shkspr.mobi/blog/2019/07/i-feel-hopeless-rejected-and-a-burden-on-society-one-week-of-empathy-training/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Share one man boring internet businesses | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-07-30-ask-hn-share-one-man-boring-internet-businesses-hacker-news/</link>
      <pubDate>Sun, 30 Jul 2023 18:23:34 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-07-30-ask-hn-share-one-man-boring-internet-businesses-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: Share one man boring internet businesses | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=36926984&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Apple Vision Pro developer kit | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-07-24-apple-vision-pro-developer-kit-hacker-news/</link>
      <pubDate>Mon, 24 Jul 2023 18:34:53 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-07-24-apple-vision-pro-developer-kit-hacker-news/</guid>
      <description>&lt;p&gt;Apple Vision Pro developer kit | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=36851535&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: How do you find clothing? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-07-22-ask-hn-how-do-you-find-clothing-hacker-news/</link>
      <pubDate>Sat, 22 Jul 2023 16:31:57 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-07-22-ask-hn-how-do-you-find-clothing-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: How do you find clothing? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=36815020&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Looking for new hobbies to relax, grow or make friends, any ideas? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-07-18-ask-hn-looking-for-new-hobbies-to-relax-grow-or-make-friends-any-ideas-hacker-news/</link>
      <pubDate>Tue, 18 Jul 2023 13:13:04 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-07-18-ask-hn-looking-for-new-hobbies-to-relax-grow-or-make-friends-any-ideas-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: Looking for new hobbies to relax, grow or make friends, any ideas? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=36756495&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: What does your AI tech stack look like? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-07-14-ask-hn-what-does-your-ai-tech-stack-look-like-hacker-news/</link>
      <pubDate>Fri, 14 Jul 2023 12:16:57 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-07-14-ask-hn-what-does-your-ai-tech-stack-look-like-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: What does your AI tech stack look like? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=36718651&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: What YouTube channels do you watch with your kids? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-07-14-ask-hn-what-youtube-channels-do-you-watch-with-your-kids-hacker-news/</link>
      <pubDate>Fri, 14 Jul 2023 12:15:54 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-07-14-ask-hn-what-youtube-channels-do-you-watch-with-your-kids-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: What YouTube channels do you watch with your kids? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=36716809&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Istanbul&#39;s Blue Tile Paradise – by Kiefer Kazimir</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-07-12-istanbuls-blue-tile-paradise-by-kiefer-kazimir/</link>
      <pubDate>Wed, 12 Jul 2023 23:41:45 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-07-12-istanbuls-blue-tile-paradise-by-kiefer-kazimir/</guid>
      <description>&lt;p&gt;The Hidden Mosque of Rüstem Pasha
— Read on &lt;a href=&#34;https://onthearts.com/p/istanbuls-blue-tile-paradise&#34;&gt;onthearts.com/p/istanbuls-blue-tile-paradise&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Milan Kundera, &#39;The Unbearable Lightness of Being&#39; Novelist, Dies at 94 – Variety</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-07-12-milan-kundera-the-unbearable-lightness-of-being-novelist-dies-at-94-variety/</link>
      <pubDate>Wed, 12 Jul 2023 13:02:28 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-07-12-milan-kundera-the-unbearable-lightness-of-being-novelist-dies-at-94-variety/</guid>
      <description>&lt;p&gt;The 1988 film adaptation of &amp;lsquo;The Unbearable Lightness of Being&amp;rsquo; was directed by Philip Kaufman and starred Daniel Day-Lewis and Juliette Binoche.
— Read on &lt;a href=&#34;https://variety.com/2023/film/global/milan-kundera-the-unbearable-lightness-of-being-dies-dead-1235667595/&#34;&gt;variety.com/2023/film/global/milan-kundera-the-unbearable-lightness-of-being-dies-dead-1235667595/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Zygo: Finally listen to everything while swimming</title>
      <link>https://chaosplay.com/posts/thoughts/2023-07-10-zygo-finally-listen-to-everything-while-swimming/</link>
      <pubDate>Mon, 10 Jul 2023 15:58:09 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2023-07-10-zygo-finally-listen-to-everything-while-swimming/</guid>
      <description>&lt;p&gt;I love swimming but it is hard to swim for more than 30 mins, not because I get tired but because it gets boring.&lt;/p&gt;
&lt;p&gt;I had been looking for headphones for swimming but almost of all them are essentially mp3 players. That is because Bluetooth doesn&amp;rsquo;t pass through water very well. You need to pre-load songs or mp3s. Which would be fine if you only care for music. But I am mostly listening to news or audiobooks. It seems like too much work to use those headphone for anything but music.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Money Is the Megaphone of Identity</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-06-22-money-is-the-megaphone-of-identity/</link>
      <pubDate>Thu, 22 Jun 2023 23:31:02 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-06-22-money-is-the-megaphone-of-identity/</guid>
      <description>&lt;p&gt;If you don&amp;rsquo;t give money its purpose, it will end up defining yours.
— Read on &lt;a href=&#34;https://moretothat.com/money/&#34;&gt;moretothat.com/money/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Which book has had the most meaningful contribution in your life? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-06-22-ask-hn-which-book-has-had-the-most-meaningful-contribution-in-your-life-hacker-news/</link>
      <pubDate>Thu, 22 Jun 2023 13:23:35 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-06-22-ask-hn-which-book-has-had-the-most-meaningful-contribution-in-your-life-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: Which book has had the most meaningful contribution in your life? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=36428036&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>DevOps Roadmap: Learn to become a DevOps Engineer or SRE</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-06-17-devops-roadmap-learn-to-become-a-devops-engineer-or-sre/</link>
      <pubDate>Sat, 17 Jun 2023 12:46:13 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-06-17-devops-roadmap-learn-to-become-a-devops-engineer-or-sre/</guid>
      <description>&lt;p&gt;Community driven, articles, resources, guides, interview questions, quizzes for DevOps. Learn to become a modern DevOps engineer by following the steps, skills, resources and guides listed in this roadmap.
— Read on &lt;a href=&#34;https://roadmap.sh/devops&#34;&gt;roadmap.sh/devops&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Pricing Money</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-06-16-pricing-money/</link>
      <pubDate>Fri, 16 Jun 2023 23:45:25 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-06-16-pricing-money/</guid>
      <description>&lt;p&gt;The text of Pricing Money, J. D. A Wiseman, Wiley (2001)
— Read on &lt;a href=&#34;http://www.jdawiseman.com/books/pricing-money/Pricing_Money_JDAWiseman.html&#34;&gt;www.jdawiseman.com/books/pricing-money/Pricing_Money_JDAWiseman.html&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>undefined method xxxxx&#39; for #&lt; Hash:0x00000 &gt;</title>
      <link>https://chaosplay.com/posts/thoughts/2023-06-14-undefined-method-xxxxx-for/</link>
      <pubDate>Wed, 14 Jun 2023 15:54:46 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2023-06-14-undefined-method-xxxxx-for/</guid>
      <description>&lt;p&gt;This error in our Rails application drove me crazy. The error was like this:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;undefined method xxxxxx&amp;#39; for #&amp;lt;Hash:0x000000001234&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The problem was that i was calling a method like this: &lt;code&gt;a_method(var: var)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;And the method definition was like &lt;code&gt;def a_method(var: var)&lt;/code&gt; which resulted in something called variable shadowing and caused clash between variable passed in the method and local variable being defined.&lt;/p&gt;
&lt;p&gt;The fix was to change method definition to &lt;code&gt;def a_method(var:)&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Minimalist and Maximalist</title>
      <link>https://chaosplay.com/notes/micro/2023-06-12-minimalist-and-maximalist/</link>
      <pubDate>Mon, 12 Jun 2023 14:58:27 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2023-06-12-minimalist-and-maximalist/</guid>
      <description>&lt;p&gt;In my view, horizontal spaces should be &lt;a href=&#34;https://theminimalistvegan.com/minimalism-vs-maximalism/&#34;&gt;minimalist&lt;/a&gt; and vertical spaces can be &lt;a href=&#34;https://www.nola.com/entertainment_life/home-decor-pulls-out-of-the-pandemic-with-a-maximalist-more-is-more-look-of/article_15be97b4-32bf-11ec-a5fe-e3ac6eaebf16.html&#34;&gt;maximalist&lt;/a&gt;. This way you will have a lot of horizontal space to sit at, write on. And walls covered in art to entertain you and also reducing echos and creating quieter space.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Most Important Papers for Quantitative Traders | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-06-01-most-important-papers-for-quantitative-traders-hacker-news/</link>
      <pubDate>Thu, 01 Jun 2023 21:48:23 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-06-01-most-important-papers-for-quantitative-traders-hacker-news/</guid>
      <description>&lt;p&gt;Most Important Papers for Quantitative Traders | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=36154622&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Has anyone switched from a professional job to a (more) manual one? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-05-24-ask-hn-has-anyone-switched-from-a-professional-job-to-a-more-manual-one-hacker-news/</link>
      <pubDate>Wed, 24 May 2023 17:45:37 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-05-24-ask-hn-has-anyone-switched-from-a-professional-job-to-a-more-manual-one-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: Has anyone switched from a professional job to a (more) manual one? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=36057665&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fake Plastic Plants</title>
      <link>https://chaosplay.com/notes/micro/2023-05-20-fake-plastic-plants/</link>
      <pubDate>Sat, 20 May 2023 14:58:05 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2023-05-20-fake-plastic-plants/</guid>
      <description>&lt;p&gt;To me fake plastic plants means that one is too lazy to take care of real plants but they want to pretend to be someone who they are not.&lt;/p&gt;
&lt;p&gt;Nothing wrong with not wanting to take care of real plants. But why not decorate your place in a way that reflects who you are.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to find the other end of deck drains?</title>
      <link>https://chaosplay.com/posts/thoughts/2023-05-15-how-to-find-the-other-end-of-deck-drains/</link>
      <pubDate>Mon, 15 May 2023 21:13:18 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2023-05-15-how-to-find-the-other-end-of-deck-drains/</guid>
      <description>&lt;p&gt;In our backyard lay a series of deck drains that perennially harbored standing water. Despite my best efforts, tracing the end of these drains proved to be an elusive task, seemingly due to the fact that it was compacted and buried beneath layers of earth.&lt;/p&gt;
&lt;p&gt;I even ventured to employ a drain snake to address the issue, but the screws securing the drain covers were victims of rust, rendering them immovable.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Favorite Movies</title>
      <link>https://chaosplay.com/notes/micro/2023-05-15-favorite-movies/</link>
      <pubDate>Mon, 15 May 2023 19:19:38 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2023-05-15-favorite-movies/</guid>
      <description>&lt;p&gt;My favorite movies in no particular order:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Matrix&lt;/li&gt;
&lt;li&gt;Automata&lt;/li&gt;
&lt;li&gt;Lion King&lt;/li&gt;
&lt;li&gt;the Pursuit of Happyness&lt;/li&gt;
&lt;li&gt;The Social Network&lt;/li&gt;
&lt;li&gt;Jobs&lt;/li&gt;
&lt;li&gt;Scent of Woman&lt;/li&gt;
&lt;li&gt;John Wick&lt;/li&gt;
&lt;li&gt;Wild&lt;/li&gt;
&lt;li&gt;Hangover&lt;/li&gt;
&lt;li&gt;Apollo 10 1/2&lt;/li&gt;
&lt;li&gt;tick, tick, BOOM!&lt;/li&gt;
&lt;li&gt;taare zameen par&lt;/li&gt;
&lt;li&gt;The Founder&lt;/li&gt;
&lt;li&gt;My Octopus Teacher&lt;/li&gt;
&lt;li&gt;Hachi&lt;/li&gt;
&lt;/ol&gt;</description>
    </item>
    <item>
      <title>Ask HN: What 60 folks can give career and general life advice for 40 folks | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-05-14-ask-hn-what-60-folks-can-give-career-and-general-life-advice-for-40-folks-hacker-news/</link>
      <pubDate>Sun, 14 May 2023 13:49:55 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-05-14-ask-hn-what-60-folks-can-give-career-and-general-life-advice-for-40-folks-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: What 60 folks can give career and general life advice for 40 folks | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=35935135&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>There&#39;s more than one way to write an IP address</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-04-28-theres-more-than-one-way-to-write-an-ip-address/</link>
      <pubDate>Sat, 29 Apr 2023 00:14:48 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-04-28-theres-more-than-one-way-to-write-an-ip-address/</guid>
      <description>&lt;p&gt;Most of us write our IP addresses the way we&amp;rsquo;ve been taught, a long time ago: 127.
— Read on &lt;a href=&#34;https://ma.ttias.be/theres-more-than-one-way-to-write-an-ip-address/&#34;&gt;ma.ttias.be/theres-more-than-one-way-to-write-an-ip-address/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Script inherits from native type &#39;RigidBody2D&#39;, so it can&#39;t be assigned to an object of type: &#39;Node2D&#39;</title>
      <link>https://chaosplay.com/posts/thoughts/2023-04-28-script-inherits-from-native-type-rigidbody2d-so-it-cant-be-assigned-to-an-object-of-type-node2d/</link>
      <pubDate>Fri, 28 Apr 2023 21:47:32 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2023-04-28-script-inherits-from-native-type-rigidbody2d-so-it-cant-be-assigned-to-an-object-of-type-node2d/</guid>
      <description>&lt;p&gt;Getting this error while following &lt;a href=&#34;https://docs.godotengine.org/en/stable/getting_started/first_2d_game/index.html&#34;&gt;this tutorial&lt;/a&gt; in Godot v4.0.1.&lt;/p&gt;
&lt;p&gt;In my case, I had added &lt;code&gt;Node2D&lt;/code&gt;. The fix was to right click on the problem node under scene and click &lt;code&gt;Make Scene Root&lt;/code&gt;. And then delete &lt;code&gt;Node2D&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Here is what &lt;code&gt;diff&lt;/code&gt; looked like:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;diff --git a/2d-game-tutorial/Mob.tscn b/2d-game-tutorial/Mob.tscn
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;index 9eb1630..e720d7f 100644
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;--- a/2d-game-tutorial/Mob.tscn
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;+++ b/2d-game-tutorial/Mob.tscn
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;@@ -48,20 +48,18 @@ animations = {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; radius = 36.0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; height = 100.0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-node name=&amp;#34;Mob&amp;#34; type=&amp;#34;Node2D&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-script = ExtResource(&amp;#34;1_73gb4&amp;#34;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-node name=&amp;#34;RigidBody2D&amp;#34; type=&amp;#34;RigidBody2D&amp;#34; parent=&amp;#34;.&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;+node name=&amp;#34;RigidBody2D&amp;#34; type=&amp;#34;RigidBody2D&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; collision_mask = 0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; gravity_scale = 2.66454e-15
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;+script = ExtResource(&amp;#34;1_73gb4&amp;#34;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-node name=&amp;#34;AnimatedSprite2D&amp;#34; type=&amp;#34;AnimatedSprite2D&amp;#34; parent=&amp;#34;RigidBody2D&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;+node name=&amp;#34;AnimatedSprite2D&amp;#34; type=&amp;#34;AnimatedSprite2D&amp;#34; parent=&amp;#34;.&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; scale = Vector2(0.75, 0.75)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; sprite_frames = SubResource(&amp;#34;SpriteFrames_c1yjy&amp;#34;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; animation = &amp;amp;&amp;#34;walk&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-node name=&amp;#34;CollisionShape2D&amp;#34; type=&amp;#34;CollisionShape2D&amp;#34; parent=&amp;#34;RigidBody2D&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;+node name=&amp;#34;CollisionShape2D&amp;#34; type=&amp;#34;CollisionShape2D&amp;#34; parent=&amp;#34;.&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; rotation = 1.5708
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; shape = SubResource(&amp;#34;CapsuleShape2D_h1pjc&amp;#34;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-node name=&amp;#34;VisibleOnScreenNotifier2D&amp;#34; type=&amp;#34;VisibleOnScreenNotifier2D&amp;#34; parent=&amp;#34;RigidBody2D&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;+node name=&amp;#34;VisibleOnScreenNotifier2D&amp;#34; type=&amp;#34;VisibleOnScreenNotifier2D&amp;#34; parent=&amp;#34;.&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>The Role of Diet on the Gut Microbiome, Mood and Happiness – PubMed</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-04-26-the-role-of-diet-on-the-gut-microbiome-mood-and-happiness-pubmed/</link>
      <pubDate>Wed, 26 Apr 2023 20:30:24 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-04-26-the-role-of-diet-on-the-gut-microbiome-mood-and-happiness-pubmed/</guid>
      <description>&lt;p&gt;The gut microbiome may be both helpful and harmful, and not only is it affected by diet, it has also been shown to affect mental health including personality, mood, anxiety and depression. In this clinical study we assessed dietary nutrient composition, mood, happiness, and the gut microbiome in ord …
— Read on &lt;a href=&#34;https://pubmed.ncbi.nlm.nih.gov/36993403/&#34;&gt;pubmed.ncbi.nlm.nih.gov/36993403/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Successful one-person online businesses? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-03-28-ask-hn-successful-one-person-online-businesses-hacker-news/</link>
      <pubDate>Tue, 28 Mar 2023 15:28:44 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-03-28-ask-hn-successful-one-person-online-businesses-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: Successful one-person online businesses? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=35333088&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Solo founders, How do you deal with self-doubt and being overwhelmed? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-03-19-ask-hn-solo-founders-how-do-you-deal-with-self-doubt-and-being-overwhelmed-hacker-news/</link>
      <pubDate>Mon, 20 Mar 2023 00:50:01 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-03-19-ask-hn-solo-founders-how-do-you-deal-with-self-doubt-and-being-overwhelmed-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: Solo founders, How do you deal with self-doubt and being overwhelmed? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=35191237&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: What books helped you in your entrepreneurship journey? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-03-19-ask-hn-what-books-helped-you-in-your-entrepreneurship-journey-hacker-news/</link>
      <pubDate>Mon, 20 Mar 2023 00:48:36 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-03-19-ask-hn-what-books-helped-you-in-your-entrepreneurship-journey-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: What books helped you in your entrepreneurship journey? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=35168647&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: What has your personal website/blog done for you? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-03-19-ask-hn-what-has-your-personal-website-blog-done-for-you-hacker-news/</link>
      <pubDate>Mon, 20 Mar 2023 00:47:46 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-03-19-ask-hn-what-has-your-personal-website-blog-done-for-you-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: What has your personal website/blog done for you? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=35164819&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Any solo game developers here? | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-03-13-ask-hn-any-solo-game-developers-here-hacker-news/</link>
      <pubDate>Mon, 13 Mar 2023 15:43:35 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-03-13-ask-hn-any-solo-game-developers-here-hacker-news/</guid>
      <description>&lt;p&gt;Ask HN: Any solo game developers here? | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=35134805&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Zayn&#39;s Words</title>
      <link>https://chaosplay.com/notes/micro/2023-03-05-zayns-words/</link>
      <pubDate>Sun, 05 Mar 2023 16:41:02 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2023-03-05-zayns-words/</guid>
      <description>&lt;p&gt;Dada - Dolphin&lt;/p&gt;
&lt;p&gt;DoDo - Shark&lt;/p&gt;
&lt;p&gt;Kaka - Orca&lt;/p&gt;
&lt;p&gt;Meow - Cat&lt;/p&gt;
&lt;p&gt;Moo - Cow&lt;/p&gt;
&lt;p&gt;Kaykey - sticker&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Has anyone started over outside of tech?</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-03-03-ask-hn-has-anyone-started-over-outside-of-tech/</link>
      <pubDate>Fri, 03 Mar 2023 18:03:43 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-03-03-ask-hn-has-anyone-started-over-outside-of-tech/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://news.ycombinator.com/item?id=35008392&#34;&gt;https://news.ycombinator.com/item?id=35008392&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Senior Engineer&#39;s Guide to the System Design Interview | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-03-02-a-senior-engineers-guide-to-the-system-design-interview-hacker-news/</link>
      <pubDate>Thu, 02 Mar 2023 19:38:20 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-03-02-a-senior-engineers-guide-to-the-system-design-interview-hacker-news/</guid>
      <description>&lt;p&gt;A Senior Engineer&amp;rsquo;s Guide to the System Design Interview | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=34999464&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to specialize after a career as a generalist?</title>
      <link>https://chaosplay.com/notes/bookmarks/2023-02-23-how-to-specialize-after-a-career-as-a-generalist/</link>
      <pubDate>Thu, 23 Feb 2023 17:20:12 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2023-02-23-how-to-specialize-after-a-career-as-a-generalist/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://news.ycombinator.com/item?id=34896626&#34;&gt;https://news.ycombinator.com/item?id=34896626&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to Advance in Your Career as an IC</title>
      <link>https://chaosplay.com/notes/micro/2023-02-06-how-to-advance-in-your-career-as-an-ic/</link>
      <pubDate>Mon, 06 Feb 2023 16:52:36 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2023-02-06-how-to-advance-in-your-career-as-an-ic/</guid>
      <description>&lt;p&gt;Interesting post and discussion at Hacker&amp;rsquo;s News about advancing as Individual Contributor. Still debating which way to go.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://news.ycombinator.com/item?id=34662394&#34;&gt;https://news.ycombinator.com/item?id=34662394&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>How much can you really get out of a 4$ VPS?</title>
      <link>https://chaosplay.com/notes/micro/2023-02-06-how-much-can-you-really-get-out-of-a-4-vps/</link>
      <pubDate>Mon, 06 Feb 2023 16:23:58 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2023-02-06-how-much-can-you-really-get-out-of-a-4-vps/</guid>
      <description>&lt;p&gt;I am a big fan of cheap VPSs. I start many personal projects, bring up a VPS, play around and then wipe it. Never have to worry about accidentally running up bill in 100s or 1000s of dollars. I run this blog on $4 server.&lt;/p&gt;
&lt;p&gt;So &lt;a href=&#34;https://alicegg.tech//2023/02/06/4dollar-vps.html&#34;&gt;this was interesting&lt;/a&gt; to read how far can a cheap VPS go.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Blue Thunder and Moon</title>
      <link>https://chaosplay.com/posts/hobbies/writings/2023-01-01-blue-thunder-and-moon/</link>
      <pubDate>Sun, 01 Jan 2023 18:01:06 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/2023-01-01-blue-thunder-and-moon/</guid>
      <description>&lt;p&gt;Ayden was a curious and adventurous five-year-old boy who loved nothing more than riding in his favorite monster truck, Blue Thunder. He spent hours each day practicing and perfecting his skills, always dreaming of one day becoming a professional Monster Jam driver.&lt;/p&gt;
&lt;p&gt;One day, as Ayden was practicing his jumps in the backyard, he suddenly found himself soaring higher and higher into the air. Before he knew it, he was hurtling through the atmosphere, leaving the Earth far behind.&lt;/p&gt;</description>
    </item>
    <item>
      <title>American flag is better than Texas flag</title>
      <link>https://chaosplay.com/posts/fatherhood/2022-11-28-american-flag-is-better-than-texas-flag/</link>
      <pubDate>Mon, 28 Nov 2022 16:56:37 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2022-11-28-american-flag-is-better-than-texas-flag/</guid>
      <description>&lt;p&gt;Ayden: Baba, American flag is better than Texas flag.&lt;/p&gt;
&lt;p&gt;Me: How come?&lt;/p&gt;
&lt;p&gt;Ayden: Because it has more stars!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Everyday is a vacation</title>
      <link>https://chaosplay.com/posts/thoughts/2022-11-23-everyday-is-a-vacation/</link>
      <pubDate>Wed, 23 Nov 2022 18:22:14 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2022-11-23-everyday-is-a-vacation/</guid>
      <description>&lt;p&gt;I think a lot of people would love to live their life as if they are on a permanent vacation. Before I was married, I didn&amp;rsquo;t make a lot of money but felt like that everyday was a vacation.&lt;/p&gt;
&lt;p&gt;For me, vacation means:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Eating out/not cooking&lt;/li&gt;
&lt;li&gt;Not cleaning&lt;/li&gt;
&lt;li&gt;Spending time outside&lt;/li&gt;
&lt;li&gt;Not working&lt;/li&gt;
&lt;li&gt;Ready to travel&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Eating out is cheaper than cooking, if you are not picky. I ate mostly fast food. Of course, it is not healthy but it is vacation. Also it is still better than overeating home-cooked meals.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Time to plant</title>
      <link>https://chaosplay.com/posts/thoughts/2022-11-08-time-to-plant/</link>
      <pubDate>Tue, 08 Nov 2022 16:52:19 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2022-11-08-time-to-plant/</guid>
      <description>&lt;p&gt;Yesterday, I ordered some tissue culture and planting supplies.&lt;/p&gt;
&lt;p&gt;Indoors plants market is huge. There is a lot to learn. There are new terms, new communities to join. But it is pretty exciting.&lt;/p&gt;
&lt;p&gt;The main reasons I decided to explore this space is because:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;It is slower paced. Cannot pull all-nighter to make plants grow faster.&lt;/li&gt;
&lt;li&gt;My kids should enjoy it. And I can get them involved.&lt;/li&gt;
&lt;li&gt;There are interesting methods to master like creating perfect environment for optimal growth, growing exotic plants, etc.&lt;/li&gt;
&lt;li&gt;It can be scaled to more commercial operations, renting a greenhouse or something similar.&lt;/li&gt;
&lt;li&gt;Plants are good for the planet.&lt;/li&gt;
&lt;li&gt;If it fails, I will have plants for our home.&lt;/li&gt;
&lt;/ol&gt;</description>
    </item>
    <item>
      <title>Heros</title>
      <link>https://chaosplay.com/posts/thoughts/2022-11-07-heros/</link>
      <pubDate>Mon, 07 Nov 2022 17:01:16 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2022-11-07-heros/</guid>
      <description>&lt;p&gt;Follow up to my last post, the people I admire the most are usually startup founders or business people. And then creators of open source softwares.&lt;/p&gt;
&lt;p&gt;This weekend, I also met my engineer turned &lt;a href=&#34;https://bonene.com/&#34;&gt;entrepreneur&lt;/a&gt; friend and saw Jobs movie. It seems I know what I should do.&lt;/p&gt;
&lt;p&gt;I want a business that gives a lot of freedom, especially freedom to be with my kids. If I can involve kids in the business, it would be even better. Would love low stress business but it is not a requirement.&lt;/p&gt;</description>
    </item>
    <item>
      <title>What you should do with your life</title>
      <link>https://chaosplay.com/posts/thoughts/2022-11-05-what-you-should-do-with-your-life/</link>
      <pubDate>Sat, 05 Nov 2022 16:33:13 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2022-11-05-what-you-should-do-with-your-life/</guid>
      <description>&lt;p&gt;&amp;ldquo;What should you do with your life&amp;rdquo;, this the question I almost ask myself daily. I am still not sure what should be my long-term goals.&lt;/p&gt;
&lt;p&gt;I have gone back and forth between pursuing my hobbies as a career, focusing on corporate career, and starting businesses.&lt;/p&gt;
&lt;p&gt;Recently, I learned a simple question that can provide you insights into your deeper aspirations. The question is:&lt;/p&gt;
&lt;h2 id=&#34;who-are-your-heroes&#34;&gt;Who are your heroes?&lt;/h2&gt;
&lt;p&gt;Ask yourself who are your heroes, who do you feel inspired by, who do you read about, and who were your heroes when you were a child.&lt;/p&gt;</description>
    </item>
    <item>
      <title>My heart is growing bigger</title>
      <link>https://chaosplay.com/posts/fatherhood/2022-10-29-my-heart-is-growing-bigger/</link>
      <pubDate>Sat, 29 Oct 2022 14:10:29 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2022-10-29-my-heart-is-growing-bigger/</guid>
      <description>&lt;p&gt;Driving to Ayden&amp;rsquo;s first Monster Jam show earlier this, as AT&amp;amp;T stadium got in our view, he is getting excited. His heart was probably beating faster and he could probably feel it. He said the cutest thing ever, &amp;ldquo;Baba, my heart is growing bigger.&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why Midlife Crisis?</title>
      <link>https://chaosplay.com/posts/thoughts/2022-09-22-why-midlife-crisis/</link>
      <pubDate>Fri, 23 Sep 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2022-09-22-why-midlife-crisis/</guid>
      <description>&lt;p&gt;I am not sure if women experience midlife crisis but I know several men who have experienced or are still in middle of midlife crisis. I have a theory that every 20 years, men need a big change.&lt;/p&gt;
&lt;p&gt;Usually, there is a big change in 20s, people are moving out of their parents&amp;rsquo; homes, going to college or starting their careers.&lt;/p&gt;
&lt;p&gt;And when people turn 60, they are getting ready to retire. Downsize their homes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Don&#39;t buy the house</title>
      <link>https://chaosplay.com/posts/thoughts/2022-09-21-dont-buy-the-house/</link>
      <pubDate>Thu, 22 Sep 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2022-09-21-dont-buy-the-house/</guid>
      <description>&lt;p&gt;We just recently bought a beautiful single family home. Before this, we lived in a townhouse. And before townhouse, I have lived in apartments. Buying a townhouse was a big step but buying single family home is a whole new beast.&lt;/p&gt;
&lt;p&gt;First, buying a house is probably a sound financial decision. There are plenty of articles and research that shows people who own homes are financially better off.&lt;/p&gt;
&lt;p&gt;But very few people talk about negatives of homeownership. And I think because lack of that information, a lot of people make incorrect decisions and end up regretting their home purchase. I did. I had huge buyer&amp;rsquo;s remorse the day we moved into our new home. I am still getting over it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Oven Baked Beef Ribs</title>
      <link>https://chaosplay.com/posts/hobbies/recipes/2022-09-02-slow-cooked-ribs/</link>
      <pubDate>Fri, 02 Sep 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/recipes/2022-09-02-slow-cooked-ribs/</guid>
      <description>&lt;p&gt;Found this receipe online, modified it a little and it is our favorite food right now.&lt;/p&gt;
&lt;h2 id=&#34;ingriedient&#34;&gt;Ingriedient&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;3 lbs meaty beef ribs, (grass-fed)&lt;/li&gt;
&lt;li&gt;2-4 tablespoons olive oil&lt;/li&gt;
&lt;li&gt;1 tablespoon garlic powder&lt;/li&gt;
&lt;li&gt;1 tablespoon onion powder&lt;/li&gt;
&lt;li&gt;1 tablespoon cajun seasoning&lt;/li&gt;
&lt;li&gt;2 tablespoons sugar&lt;/li&gt;
&lt;li&gt;1 teaspoon chili powder&lt;/li&gt;
&lt;li&gt;1 teaspoon salt&lt;/li&gt;
&lt;li&gt;1 teaspoon paprika&lt;/li&gt;
&lt;li&gt;2 teaspoons oregano&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;instructions&#34;&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Rinse ribs and dry COMPLETELY with paper towels.&lt;/li&gt;
&lt;li&gt;Lightly coat ribs in olive oil.&lt;/li&gt;
&lt;li&gt;Mix together seasoning and sprinkle generously over ribs, front and back.&lt;/li&gt;
&lt;li&gt;Place the ribs in a large ziplock bag or covered bowl and marinate in the fridge for 1-2 hours.&lt;/li&gt;
&lt;li&gt;Preheat the oven to 250 F.&lt;/li&gt;
&lt;li&gt;Place the ribs on a foil lined baking tray in a single layer.&lt;/li&gt;
&lt;li&gt;Add another piece of foil on top to create a pouch for the ribs to cook in. Be sure to seal the edges of the foil so that it&amp;rsquo;s tight and steam won&amp;rsquo;t seep out.&lt;/li&gt;
&lt;li&gt;Bake on the middle rack of 3 1/2 -4 hours.&lt;/li&gt;
&lt;li&gt;When the ribs are done to your liking, drain off the excess fat.&lt;/li&gt;
&lt;li&gt;Serve hot and enjoy!!&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;via &lt;a href=&#34;https://divascancook.com/easy-oven-baked-beef-ribs-recipe-bbq/&#34;&gt;https://divascancook.com/easy-oven-baked-beef-ribs-recipe-bbq/&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>10 Years Goals</title>
      <link>https://chaosplay.com/posts/thoughts/2022-07-10-10-years-goals/</link>
      <pubDate>Mon, 11 Jul 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2022-07-10-10-years-goals/</guid>
      <description>&lt;p&gt;There is a saying that we overestimate how much we can do in days but underestimate how much we can achieve in years.&lt;/p&gt;
&lt;p&gt;Nothing makes a father as proud and happy as his children. My biggest guiding principle for my long term goals is to provide Ayden and Zayn an environment where they can grow to be happy and successful. Also it is important to realize that I cannot make anyone happy or successful. Only thing I can do is create an environment for them to grow in.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Digital Minimalism</title>
      <link>https://chaosplay.com/posts/thoughts/2022-06-25-digital-minimalism/</link>
      <pubDate>Sun, 26 Jun 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2022-06-25-digital-minimalism/</guid>
      <description>&lt;p&gt;Just the other day, I happened to skim a blog post, &amp;ldquo;&lt;a href=&#34;https://idratherbewriting.com/blog/awakening-moment-to-how-smartphones-fragment-our-attention/&#34;&gt;My awakening moment about how smartphones fragment our attention span&lt;/a&gt;.&amp;rdquo; It struck a chord, and I realized that I&amp;rsquo;m in the same boat. It&amp;rsquo;s been ages since I&amp;rsquo;ve properly read a book. Even when I have audiobooks on, I&amp;rsquo;m doing something else and hardly ever genuinely enjoy them.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve got this habit too, of kicking off loads of projects and then ditching them once it&amp;rsquo;s time to roll up my sleeves and do the detailed work. Setting up a new project is a rush, but finishing something? That&amp;rsquo;s a snooze fest.&lt;/p&gt;</description>
    </item>
    <item>
      <title>It&#39;s What I Do: A Photographer&#39;s Life of Love and War by Lynsey Addario</title>
      <link>https://chaosplay.com/posts/hobbies/books/2022-06-20-its-what-i-do/</link>
      <pubDate>Mon, 20 Jun 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/books/2022-06-20-its-what-i-do/</guid>
      <description>&lt;p&gt;&amp;ldquo;&lt;a href=&#34;https://www.penguinrandomhouse.com/books/312770/its-what-i-do-by-lynsey-addario/&#34;&gt;It&amp;rsquo;s What I Do&lt;/a&gt;&amp;rdquo; by Lynsey Addario is probably in my top 10 favorite books. As someone who always wanted to be a serious photographer who would use images to make the world better place, I felt a real connection while reading this book. While reading it, I imagined myself being in the situations that Lynsey was in and I really don&amp;rsquo;t know if I would have been able to handle those situations.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Nightmares of a 4-Year-Old</title>
      <link>https://chaosplay.com/notes/micro/2022-06-02-nightmares-of-4-years-old/</link>
      <pubDate>Fri, 03 Jun 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2022-06-02-nightmares-of-4-years-old/</guid>
      <description>&lt;ol&gt;
&lt;li&gt;We are in our house on second floor. There is a giant lobster outside.&lt;/li&gt;
&lt;li&gt;There is Amazon delivery truck. There is a package. There is a car. The delivery truck is crushing the car and possibly package.&lt;/li&gt;
&lt;/ol&gt;</description>
    </item>
    <item>
      <title>Be the people that Evan&#39;s be</title>
      <link>https://chaosplay.com/posts/fatherhood/2022-05-22-be-the-people-that-evans-be/</link>
      <pubDate>Mon, 23 May 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2022-05-22-be-the-people-that-evans-be/</guid>
      <description>&lt;p&gt;Last year, Ayden got into Minecraft thanks to &lt;a href=&#34;https://www.youtube.com/channel/UCF-uND-dn42ty_EEGBHy_9w&#34;&gt;Evan Storm&amp;rsquo;s channel&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;So we bought Minecraft on PS4 and started to play. I preferred to play in 1st person perspective but Ayden preferred 3rd person. But he didn&amp;rsquo;t know how to ask me change the perspective. So he would say, &amp;ldquo;Be the people that Evan&amp;rsquo;s be.&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Can you bring toys back home?</title>
      <link>https://chaosplay.com/posts/fatherhood/2022-03-27-can-you-bring-toys-back-home/</link>
      <pubDate>Mon, 28 Mar 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2022-03-27-can-you-bring-toys-back-home/</guid>
      <description>&lt;p&gt;Tonight, I was reading Puss in the Boots bedtime story to Ayden. Story begins with Old Miller dying.&lt;/p&gt;
&lt;p&gt;Ayden asked me if people die in real life. I am not ready for this conversation but I also didn&amp;rsquo;t want to lie. I said yes and hoped we can move on quickly.&lt;/p&gt;
&lt;p&gt;Ayden&amp;rsquo;s eyes turned teary. In crying voice, he asked, &amp;ldquo;Why?&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;It just the way it is.&amp;rdquo; I said.&lt;/p&gt;
&lt;p&gt;I watched him as he processed this new information about life. He has seen dead worms, read stories with death in it, but never connected that with people.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Avicii - Wake Me Up</title>
      <link>https://chaosplay.com/notes/songs/2022-03-25-avicii-wake-me-up/</link>
      <pubDate>Fri, 25 Mar 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2022-03-25-avicii-wake-me-up/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/IcrbM1l_BoI?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;h2 id=&#34;lyrics&#34;&gt;Lyrics&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Feeling my way through the darkness
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Guided by a beating heart
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I can&amp;#39;t tell where the journey will end
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But I know where to start
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;They tell me I&amp;#39;m too young to understand
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;They say I&amp;#39;m caught up in a dream
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Well life will pass me by if I don&amp;#39;t open up my eyes
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Well that&amp;#39;s fine by me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So wake me up when it&amp;#39;s all over
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;When I&amp;#39;m wiser and I&amp;#39;m older
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;All this time I was finding myself, and I
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Didn&amp;#39;t know I was lost
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So wake me up when it&amp;#39;s all over
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;When I&amp;#39;m wiser and I&amp;#39;m older
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;All this time I was finding myself, and I
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Didn&amp;#39;t know I was lost
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I tried carrying the weight of the world
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But I only have two hands
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Hope I get the chance to travel the world
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But I don&amp;#39;t have any plans
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Wish that I could stay forever this young
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Not afraid to close my eyes
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Life&amp;#39;s a game made for everyone
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And love is a prize
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So wake me up when it&amp;#39;s all over
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;When I&amp;#39;m wiser and I&amp;#39;m older
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;All this time I was finding myself, and I
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Didn&amp;#39;t know I was lost
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So wake me up when it&amp;#39;s all over
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;When I&amp;#39;m wiser and I&amp;#39;m older
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;All this time I was finding myself, and I
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I didn&amp;#39;t know I was lost
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I didn&amp;#39;t know I was lost
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I didn&amp;#39;t know I was lost
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I didn&amp;#39;t know I was lost
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I didn&amp;#39;t know
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Songwriters: Egbert Nathaniel Dawkins / Michael Aaron Einziger / Tim Bergling&lt;/p&gt;</description>
    </item>
    <item>
      <title>Junoon - Main Kaun Hoon</title>
      <link>https://chaosplay.com/notes/songs/2022-03-25-main-kuan-hoon/</link>
      <pubDate>Fri, 25 Mar 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2022-03-25-main-kuan-hoon/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/HFk00UpvU_4?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;h2 id=&#34;lyrics&#34;&gt;Lyrics&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Jab aasman girnay lagtay hain
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Aur zameen jalnay lagtee hai
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Aik chhupa huwa khwaab janam leta hai
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Sehraon main awaaz aati hai
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Mein kaun hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tum kaun ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Mein kaun hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tum kaun ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Gham geen hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Aur tum mazloom ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Jab bhook nachtee gaatee hai
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Aur nafratein jashan manatein hain
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Aik chhupa huwa khwaab janam leta hai
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Sehraon main awaaz aati hai
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Mein kaun hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tum kaun ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Mein kaun hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tum kaun ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Majboor hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Aur tum bay naam ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Aik chhupa huwa khwaab janam leta hai
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Sehraon main awaaz aati hai
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Mein kaun hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tum kaun ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Mein kaun hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tum kaun ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Gham geen hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Aur tum mazloom ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tum kaun ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Mein kaun hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tum kaun ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Gham geen hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Aur tum bay naam ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tum kaun ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Mein kaun hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tum kaun ho
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Majboor hoon
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Aur tum bay naam ho
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Poet: Sabir Zafar&lt;/p&gt;</description>
    </item>
    <item>
      <title>Swedish House Mafia ft. John Martin - Don&#39;t You Worry Child</title>
      <link>https://chaosplay.com/notes/songs/2022-03-25-dont-you-worry-child/</link>
      <pubDate>Fri, 25 Mar 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2022-03-25-dont-you-worry-child/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/1y6smkh6c-0?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;h2 id=&#34;lyrics&#34;&gt;Lyrics&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;There was a time
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I used to look into my father&amp;#39;s eyes
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;In a happy home
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I was a king, I had a golden throne
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Those days are gone
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Now they&amp;#39;re memories on the wall
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I hear the songs from the places where I was born
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Up on a hill across the blue lake
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;That&amp;#39;s where I had my first heartbreak
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I still remember how it all changed
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;My father said
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t you worry, don&amp;#39;t you worry, child
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;See heaven&amp;#39;s got a plan for you
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t you worry, don&amp;#39;t you worry now
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Yeah
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t you worry, don&amp;#39;t you worry now
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Yeah
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t you worry, don&amp;#39;t you worry now
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Yeah
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;There was a time
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I met a girl of a different kind
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;We ruled the world
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I thought I&amp;#39;d never lose her out of sight
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;We were so young
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I think of her now and then
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I still hear the songs reminding me of a friend
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Up on a hill across the blue lake
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;That&amp;#39;s where I had my first heartbreak
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I still remember how it all changed
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;My father said
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t you worry, don&amp;#39;t you worry, child
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;See heaven&amp;#39;s got a plan for you
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t you worry, don&amp;#39;t you worry now
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Yeah
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Oh-oh-oh-oh-oh-oh-oh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Oh-oh-oh-oh-oh-oh-oh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Oh-oh-oh-oh-oh-oh-oh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Oh-oh-oh-oh-oh-oh-oh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Oh-oh-oh-oh-oh-oh-oh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Oh-oh-oh-oh-oh-oh-oh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Oh-oh-oh-oh-oh-oh-oh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;See heaven&amp;#39;s got a plan for you
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;See heaven&amp;#39;s got a plan for you
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;See heaven&amp;#39;s got a plan for you
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t you worry, don&amp;#39;t you worry, child
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;See heaven&amp;#39;s got a plan for you
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t you worry, don&amp;#39;t you worry now
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Yeah
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Oh-oh-oh-oh-oh-oh-oh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Oh-oh-oh-oh-oh-oh-oh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Oh-oh-oh-oh-oh-oh-oh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Yeah
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Songwriters: Steve Angello / Sebastian Ingrosso / Axel Hedfors / Martin Lindstrom / Michel Zitron / John Martin&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: What book changed your life?</title>
      <link>https://chaosplay.com/notes/micro/2022-03-23-books-that-changed-your-life/</link>
      <pubDate>Wed, 23 Mar 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2022-03-23-books-that-changed-your-life/</guid>
      <description>&lt;p&gt;Saw &lt;a href=&#34;https://news.ycombinator.com/item?id=30734709&#34;&gt;this post&lt;/a&gt; on Hacker&amp;rsquo;s News. A lot of interesting books to read.&lt;/p&gt;
&lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;Book&lt;/th&gt;
          &lt;th&gt;Links&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
          &lt;td&gt;The Stormlight Archive (series) by Brandon Sanderson&lt;/td&gt;
          &lt;td&gt;&lt;a href=&#34;https://news.ycombinator.com/item?id=30739083&#34;&gt;https://news.ycombinator.com/item?id=30739083&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Jacob&amp;rsquo;s Room, Virginia Woolf&lt;/td&gt;
          &lt;td&gt;&lt;a href=&#34;https://news.ycombinator.com/user?id=thatjoeoverthr&#34;&gt;https://news.ycombinator.com/user?id=thatjoeoverthr&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Dune&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Man&amp;rsquo;s Search For Meaning&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;How to Practice: The Way to a Meaningful Life - the Dalai Lama&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Surely you&amp;rsquo;re joking Mr. Feynman&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Gödel, Escher, Bach: an Eternal Golden Braid&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Debt: The First 5000 Years&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Crucial Conversations: Tools for Talking when Stakes are High by Kerry Patterson&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Difficult Conversations: How to Discuss What Matters Most&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;</description>
    </item>
    <item>
      <title>Luther Vandross - Dance With My Father</title>
      <link>https://chaosplay.com/notes/songs/2022-02-13-dance-with-my-father/</link>
      <pubDate>Sun, 13 Feb 2022 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2022-02-13-dance-with-my-father/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/wmDxJrggie8?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;h2 id=&#34;lyrics&#34;&gt;Lyrics&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Back when I was a child
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Before life removed all the innocence
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;My father would lift me high
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And dance with my mother and me and then
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Spin me around till I fell asleep
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Then up the stairs he would carry me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I knew for sure I was loved
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If I could get another chance
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Another walk, another dance with him
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;d play a song that would never ever end
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;How I&amp;#39;d love, love, love to dance with my father again, ooh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;When I and my mother would disagree
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;To get my way I would run from her to him
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;He&amp;#39;d make me laugh just to comfort me, yeah, yeah
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Then finally make me do just what my momma said
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Later that night when I was asleep
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;He left a dollar under my sheet
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Never dreamed that he would be gone from me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If I could steal one final glance, one final step
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;One final dance with him
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;d play a song that would never ever end
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#39;Cause I&amp;#39;d love, love, love to dance with my father again
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Sometimes I&amp;#39;d listen outside her door
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I&amp;#39;d hear how my mother cried for him
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I pray for her even more than me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I pray for her even more than me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I know I&amp;#39;m praying for much too much
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But could you send back the only man she loved?
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I know you don&amp;#39;t do it usually
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But dear Lord she&amp;#39;s dying to dance with my father again
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Every night I fall asleep and this is all I ever dream
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Wheels and Engine Sound</title>
      <link>https://chaosplay.com/posts/fatherhood/2022-01-28-wheels-and-engine-sound/</link>
      <pubDate>Fri, 28 Jan 2022 17:40:43 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2022-01-28-wheels-and-engine-sound/</guid>
      <description>&lt;p&gt;Last year, we took Ayden to monster truck show. We didn&amp;rsquo;t know how loud these trucks can be. So we bought ear protection headphones for him. He was still feeling a little scared.&lt;/p&gt;
&lt;p&gt;Later he came up with idea that sound of engine comes from the tires. He would keep telling me that monster trucks tires are loud or they made it louder after he put on his headphone.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to backup Kubernetes&#39; Config</title>
      <link>https://chaosplay.com/posts/work/dev/2022-01-20-how-to-backup-kubernetes-config/</link>
      <pubDate>Thu, 20 Jan 2022 20:45:36 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2022-01-20-how-to-backup-kubernetes-config/</guid>
      <description>&lt;p&gt;The easiest solution seems to be following script by Stackoverflow user, Timothy Perez&lt;/p&gt;
&lt;p&gt;:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;pre style&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&amp;lt;&lt;/span&gt;code &lt;span style=&#34;color:#66d9ef&#34;&gt;class&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;language-bash&amp;#34;&lt;/span&gt; data&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;lang&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;bash&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;#!/bin/bash&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# NAMESPACED EXPORTS&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt;  ns &lt;span style=&#34;color:#f92672&#34;&gt;in&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;$&lt;/span&gt;( kubectl get ns &lt;span style=&#34;color:#f92672&#34;&gt;--&lt;/span&gt;no&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;headers &lt;span style=&#34;color:#f92672&#34;&gt;|&lt;/span&gt; cut &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;d &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34; &amp;#34;&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;f1 ) ;  &lt;span style=&#34;color:#66d9ef&#34;&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  kubectl &lt;span style=&#34;color:#f92672&#34;&gt;--&lt;/span&gt;namespace &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34; ${ ns} &amp;#34;&lt;/span&gt;  get &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;o &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; json bindings,cm,ep,ev,limits,pvc,po,podtemplates,rc,quota,secrets,sa,svc,controllerrevisions,ds,deploy,rs,sts,localsubjectaccessreviews,hpa,cj,jobs,leases,ev,ds,deploy,ing,netpol,rs,pods,netpol,pdb,roles,rolebindings &lt;span style=&#34;color:#f92672&#34;&gt;|&lt;/span&gt;  \
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       jq &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;.items[] |&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     select(&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;type&lt;span style=&#34;color:#f92672&#34;&gt;!=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;kubernetes.io/service-account-token&amp;#34;&lt;/span&gt;) &lt;span style=&#34;color:#f92672&#34;&gt;|&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     del(
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;clusterIP,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;metadata&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;uid,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;metadata&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;selfLink,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;metadata&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;resourceVersion,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;metadata&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;creationTimestamp,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;metadata&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;generation,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;status,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;template&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;securityContext,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;template&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;dnsPolicy,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;template&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;terminationGracePeriodSeconds,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;template&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;restartPolicy
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     )&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;  &amp;gt;&amp;gt; &amp;#34;./ ${ ns} .json&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; done
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# NON-NAMESPACED EXPORTS&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kubectl get &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;o &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; json cs,ns,no,pv,mutatingwebhookconfigurations,validatingwebhookconfigurations,crds,apiservices,tokenreviews,selfsubjectaccessreviews,selfsubjectrulesreviews,subjectaccessreviews,csr,psp,nodes,psp,clusterrolebindings,clusterroles,pc,sc,volumeattachments &lt;span style=&#34;color:#f92672&#34;&gt;|&lt;/span&gt;  \
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       jq &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;.items[] |&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     select(&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;type&lt;span style=&#34;color:#f92672&#34;&gt;!=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;kubernetes.io/service-account-token&amp;#34;&lt;/span&gt;) &lt;span style=&#34;color:#f92672&#34;&gt;|&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     del(
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;clusterIP,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;metadata&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;uid,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;metadata&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;selfLink,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;metadata&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;resourceVersion,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;metadata&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;creationTimestamp,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;metadata&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;generation,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;status,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;template&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;securityContext,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;template&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;dnsPolicy,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;template&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;terminationGracePeriodSeconds,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;template&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;spec&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;restartPolicy
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     )&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;  &amp;gt;&amp;gt; &amp;#34;./cluster_non-namespaced_export.json&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Script copied here under CC BY-SA 4.0 license&lt;/p&gt;</description>
    </item>
    <item>
      <title>Crispy-Skinned Baked Chicken Drumsticks</title>
      <link>https://chaosplay.com/posts/hobbies/recipes/2022-01-19-crispy-skinned-baked-chicken-drumsticks/</link>
      <pubDate>Wed, 19 Jan 2022 23:21:28 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/recipes/2022-01-19-crispy-skinned-baked-chicken-drumsticks/</guid>
      <description>&lt;h2 id=&#34;ingredients&#34;&gt;Ingredients&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;8 (4 oz each) skin-on chicken drumsticks (about 2 lb. total weight)&lt;/li&gt;
&lt;li&gt;2 tablespoons olive oil&lt;/li&gt;
&lt;li&gt;1 teaspoon salt&lt;/li&gt;
&lt;li&gt;½ teaspoon black pepper&lt;/li&gt;
&lt;li&gt;1 teaspoon garlic powder&lt;/li&gt;
&lt;li&gt;1 teaspoon onion powder&lt;/li&gt;
&lt;li&gt;1 teaspoon smoked paprika&lt;/li&gt;
&lt;li&gt;1/4 teaspoon chilli pepper&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;instructions&#34;&gt;Instructions&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Preheat your oven to 400 degrees F. Line a rimmed baking sheet with parchment paper and arrange the drumsticks in a single layer on the parchment.&lt;/li&gt;
&lt;li&gt;Make the seasoning paste: In a medium bowl, use a fork or a spatula to mix the olive oil, salt, pepper, and spices.&lt;/li&gt;
&lt;li&gt;Using a pastry brush or your hands, coat the chicken pieces with the seasoning paste.&lt;/li&gt;
&lt;li&gt;Bake the drumsticks uncovered until their internal temperature reaches 165 degrees F, about 40 minutes.&lt;/li&gt;
&lt;li&gt;Baste the drumsticks with the pan juices using a clean pastry brush. Serve immediately.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;via &lt;a href=&#34;https://healthyrecipesblogs.com/wprm_print/22974&#34;&gt;https://healthyrecipesblogs.com/wprm_print/22974&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>LeetCode 605. Can Place Flowers</title>
      <link>https://chaosplay.com/notes/leetcode/2022-01-18-leetcode-605-can-place-flowers/</link>
      <pubDate>Wed, 19 Jan 2022 03:19:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2022-01-18-leetcode-605-can-place-flowers/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;/**&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;param {number[]} flowerbed
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;param {number} n
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; {boolean}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*/&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt;  canPlaceFlowers   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; function (flowerbed , n ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt;  ( let  i   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ; i  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; flowerbed &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;length ; i  &lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (flowerbed [i ]  &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt;  (i   &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt;  flowerbed [i  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; ]  &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; )
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt;  (i   &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;  flowerbed &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;length  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt;  flowerbed [i  &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; ]  &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; )) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            n  &lt;span style=&#34;color:#f92672&#34;&gt;--&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            flowerbed [i ]  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (n   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; )
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                 &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; true
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;  n   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 1268. Search Suggestions System</title>
      <link>https://chaosplay.com/notes/leetcode/2022-01-13-leetcode-1268-search-suggestions-system/</link>
      <pubDate>Fri, 14 Jan 2022 04:09:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2022-01-13-leetcode-1268-search-suggestions-system/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;/**&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;param {string[]} products
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;param {string} searchWord
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; {string[][]}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*/&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt;  suggestedProducts   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; function (products , searchWord ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    products &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;sort ((a , b ) &lt;span style=&#34;color:#f92672&#34;&gt;=&amp;gt;&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (a   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;  b )  &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (a   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;  b )  &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    })
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt;  r   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  []
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt;  ( let  i   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; ; i  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;=&lt;/span&gt; searchWord &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;length ; i  &lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt;  arr   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  products &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;filter ((s ) &lt;span style=&#34;color:#f92672&#34;&gt;=&amp;gt;&lt;/span&gt; s &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;startsWith (searchWord &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;substring ( &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; , i )))&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;slice ( &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ,  &lt;span style=&#34;color:#ae81ff&#34;&gt;3&lt;/span&gt; )
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       &lt;span style=&#34;color:#f92672&#34;&gt;//&lt;/span&gt;console&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;log(searchWord&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;substring(&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;, i))
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         r &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;push (arr )
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;  r
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 253. Meeting Rooms II</title>
      <link>https://chaosplay.com/notes/leetcode/2022-01-11-leetcode-253-meeting-rooms-ii/</link>
      <pubDate>Wed, 12 Jan 2022 04:14:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2022-01-11-leetcode-253-meeting-rooms-ii/</guid>
      <description>&lt;p&gt;Lack of built-in Priority Queues in JavaScript makes it a bit hard to do problems like this. I end looking at the solution:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;/**&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;param {number[][]} intervals
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; {number}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*/&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt;  minMeetingRooms   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; function (intervals ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (intervals &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;length   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; )  &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt;  startTimes   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  []
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt;  endTimes   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  []
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt;  ( let  i   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ; i  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; intervals &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;length ; i  &lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        startTimes [i ]  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  intervals [i ][ &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        endTimes [i ]  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  intervals [i ][ &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; ]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    startTimes &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;sort ((a , b ) &lt;span style=&#34;color:#f92672&#34;&gt;=&amp;gt;&lt;/span&gt; a  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; b )
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    endTimes &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;sort ((a , b ) &lt;span style=&#34;color:#f92672&#34;&gt;=&amp;gt;&lt;/span&gt; a  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; b )
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     let  startPtr   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     let  endPtr   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     let  rooms   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt;  ( let  i  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ; i  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; intervals &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;length ; i  &lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (startTimes [i ]  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;=&lt;/span&gt;  endTimes [endPtr ]) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            endPtr  &lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }  &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt;  {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            rooms  &lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;  rooms
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 937. Reorder Data in Log Files</title>
      <link>https://chaosplay.com/notes/leetcode/2022-01-10-leetcode-937-reorder-data-in-log-files/</link>
      <pubDate>Tue, 11 Jan 2022 04:22:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2022-01-10-leetcode-937-reorder-data-in-log-files/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {string[]} logs
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {string[]}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;reorderLogFiles&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;logs&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;sorted&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; []
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;numLogs&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; []
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;charLogs&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; []
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;logs&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;log&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;logs&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;tokenized&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;log&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;split&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34; &amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (Number.&lt;span style=&#34;color:#a6e22e&#34;&gt;isInteger&lt;/span&gt;(parseInt(&lt;span style=&#34;color:#a6e22e&#34;&gt;tokenized&lt;/span&gt;[&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;]))) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;numLogs&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;push&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;log&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;charLogs&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;push&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;log&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#a6e22e&#34;&gt;charLogs&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;sort&lt;/span&gt;(&lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;a&lt;/span&gt;, &lt;span style=&#34;color:#a6e22e&#34;&gt;b&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;stra&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;a&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;substr&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;a&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;indexOf&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39; &amp;#39;&lt;/span&gt;) &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;strb&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;b&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;substr&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;b&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;indexOf&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39; &amp;#39;&lt;/span&gt;) &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;stra&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;strb&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;stra&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;strb&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ida&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;a&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;substr&lt;/span&gt;(&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;, &lt;span style=&#34;color:#a6e22e&#34;&gt;a&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;indexOf&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39; &amp;#39;&lt;/span&gt;))
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;idb&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;b&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;substr&lt;/span&gt;(&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;, &lt;span style=&#34;color:#a6e22e&#34;&gt;b&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;indexOf&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39; &amp;#39;&lt;/span&gt;))
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#75715e&#34;&gt;//console.log({ida})
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&lt;/span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;ida&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;idb&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;ida&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;idb&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    })
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; [...&lt;span style=&#34;color:#a6e22e&#34;&gt;charLogs&lt;/span&gt;, ...&lt;span style=&#34;color:#a6e22e&#34;&gt;numLogs&lt;/span&gt;]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 49. Group Anagrams</title>
      <link>https://chaosplay.com/notes/leetcode/2022-01-05-leetcode-49-group-anagrams/</link>
      <pubDate>Thu, 06 Jan 2022 03:42:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2022-01-05-leetcode-49-group-anagrams/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {string[]} strs
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {string[][]}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;groupAnagrams&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;strs&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;map&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; []
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;strs&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;str&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;strs&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;].&lt;span style=&#34;color:#a6e22e&#34;&gt;split&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;#39;&lt;/span&gt;).&lt;span style=&#34;color:#a6e22e&#34;&gt;sort&lt;/span&gt;().&lt;span style=&#34;color:#a6e22e&#34;&gt;join&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;#39;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#f92672&#34;&gt;!&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;map&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;str&lt;/span&gt;]) &lt;span style=&#34;color:#a6e22e&#34;&gt;map&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;str&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; []
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;map&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;str&lt;/span&gt;].&lt;span style=&#34;color:#a6e22e&#34;&gt;push&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;strs&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;])
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; []
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;k&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;in&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;map&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;push&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;map&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;k&lt;/span&gt;])
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 71. Simplify Path</title>
      <link>https://chaosplay.com/notes/leetcode/2022-01-04-leetcode-71-simplify-path/</link>
      <pubDate>Wed, 05 Jan 2022 03:18:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2022-01-04-leetcode-71-simplify-path/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {string} path
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {string}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;simplifyPath&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;path&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;simple&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;splitPath&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;path&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;split&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/&amp;#34;&lt;/span&gt;).&lt;span style=&#34;color:#a6e22e&#34;&gt;filter&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;x&lt;/span&gt; =&amp;gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;x&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;x&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;!==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;.&amp;#39;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;splitPath&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;splitPath&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;..&amp;#39;&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;simple&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;pop&lt;/span&gt;()
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;simple&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;push&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;splitPath&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;])
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;`/&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;${&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;simple&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;join&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;/&amp;#39;&lt;/span&gt;)&lt;span style=&#34;color:#e6db74&#34;&gt;}&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;`&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Ask HN: What is your money-making side project outside programming?</title>
      <link>https://chaosplay.com/notes/bookmarks/2022-01-03-ask-hn-what-is-your-money-making-side-project-outside-programming/</link>
      <pubDate>Mon, 03 Jan 2022 17:30:58 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2022-01-03-ask-hn-what-is-your-money-making-side-project-outside-programming/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://news.ycombinator.com/item?id=29780777&#34;&gt;https://news.ycombinator.com/item?id=29780777&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>An Algorithm for Passing Programming Interviews | Hacker News</title>
      <link>https://chaosplay.com/notes/bookmarks/2022-01-02-an-algorithm-for-passing-programming-interviews-hacker-news/</link>
      <pubDate>Mon, 03 Jan 2022 00:27:11 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2022-01-02-an-algorithm-for-passing-programming-interviews-hacker-news/</guid>
      <description>&lt;p&gt;An Algorithm for Passing Programming Interviews | Hacker News
— Read on &lt;a href=&#34;https://news.ycombinator.com/item?id=29775023&#34;&gt;news.ycombinator.com/item&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Avicii – The Nights</title>
      <link>https://chaosplay.com/notes/songs/2022-01-01-avicii-the-nights/</link>
      <pubDate>Sat, 01 Jan 2022 07:22:12 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2022-01-01-avicii-the-nights/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/UtF6Jej8yb4?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;p&gt;Lyrics:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Once upon a younger year
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;When all our shadows disappeared
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;The animals inside came out to play
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Went face to face with all our fears
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Learned our lessons through the tears
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Made memories we knew would never fade
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;One day my father, he told me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#34;Son, don&amp;#39;t let it slip away&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;He took me in his arms, I heard him say
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#34;When you get older
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Your wild heart will live for younger days
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Think of me if ever you&amp;#39;re afraid&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;He said: &amp;#34;One day you&amp;#39;ll leave this world behind
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So live a life you will remember&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;My father told me when I was just a child
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#34;These are the nights that never die&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;My father told me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;When thunder clouds start pouring down
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Light a fire they can&amp;#39;t put out
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Carve your name into those shining stars
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;He said: &amp;#34;Go venture far beyond the shores
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t forsake this life of yours
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;ll guide you home, no matter where you are&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;One day my father, he told me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#34;Son, don&amp;#39;t let it slip away&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;When I was just a kid, I heard him say
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#34;When you get older
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Your wild heart will live for younger days
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Think of me if ever you&amp;#39;re afraid&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;He said: &amp;#34;One day you&amp;#39;ll leave this world behind
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So live a life you will remember&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;My father told me when I was just a child
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#34;These are the nights that never die&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;My father told me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#34;These are the nights that never die&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;My father told me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;My father told me
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 50. Pow(x, n)</title>
      <link>https://chaosplay.com/notes/leetcode/2021-12-30-leetcode-50-powx-n/</link>
      <pubDate>Fri, 31 Dec 2021 01:32:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-12-30-leetcode-50-powx-n/</guid>
      <description>&lt;p&gt;I got stuck on this problem, even after looking at answers, I could not follow the algorithm.&lt;/p&gt;
&lt;p&gt;Here is my solution:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;/**&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;param {number} x
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;param {number} n
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; {number}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*/&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt;  myPow   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; function (x , n ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (x   &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; )  &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (n   &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; )  &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (n   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        x   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt; x
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        n   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt;  n
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt;  half   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  myPow (x , Math&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;floor (n  &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt; ))
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     let  ans   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  half   &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt;  half
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (n  &lt;span style=&#34;color:#f92672&#34;&gt;%&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; ) ans   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  x   &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt;  ans
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;  ans
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 1570. Dot Product of Two Sparse Vectors</title>
      <link>https://chaosplay.com/notes/leetcode/2021-12-29-leetcode-1570-dot-product-of-two-sparse-vectors/</link>
      <pubDate>Thu, 30 Dec 2021 03:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-12-29-leetcode-1570-dot-product-of-two-sparse-vectors/</guid>
      <description>&lt;p&gt;My solution in JavaScript:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;/**&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;param {number[]} nums
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; {SparseVector}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*/&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt;  SparseVector   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; function (nums ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt;  x   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; new  Map ()
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt;  ( let  i   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ; i   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;  nums &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;length ; i  &lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (nums [i ]  &lt;span style=&#34;color:#f92672&#34;&gt;!=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            x &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;set (i , nums [i ])
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     this&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;map   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  x
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     this&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;length   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  nums &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;length
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; this
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;//&lt;/span&gt; Return the dotProduct of two sparse vectors
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;/**&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;param {SparseVector} vec
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; &lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; {number}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;*/&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SparseVector &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;prototype &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;dotProduct   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; function (vec ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     let  ans   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt;  ( let  i   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ; i   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;  vec &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;length ; i  &lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (vec &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;map &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;has (i )  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; this&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;map &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;has (i )) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            ans   &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt;  vec &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;map &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;get (i )  &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; this&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;map &lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;get (i )
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;  ans
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;//&lt;/span&gt; Your SparseVector object will be instantiated &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt; called as such:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;//&lt;/span&gt; let v1 &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; new SparseVector(nums1);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;//&lt;/span&gt; let v2 &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; new SparseVector(nums2);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;//&lt;/span&gt; let ans &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; v1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;dotProduct(v2);
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Kubernetes not passing full path to Nodejs</title>
      <link>https://chaosplay.com/posts/work/dev/2021-12-29-kubernetes-not-passing-full-path-to-nodejs/</link>
      <pubDate>Wed, 29 Dec 2021 21:23:42 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2021-12-29-kubernetes-not-passing-full-path-to-nodejs/</guid>
      <description>&lt;p&gt;I spent hours troubleshooting why url path was getting stripped from requests in our Nodejs/Expressjs based app. The reason was this line in Kubernetes&amp;rsquo; Ingress:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;nginx.ingress.kubernetes.io/rewrite-target &lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;/&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Removing it fixed the issue. Check Kubernetes documentation&lt;/p&gt;
&lt;p&gt;for more details.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Those making $500/month on side projects in 2021 – Show and tell</title>
      <link>https://chaosplay.com/posts/work/business/2021-12-23-ask-hn-those-making-500-month-on-side-projects-in-2021-show-and-tell/</link>
      <pubDate>Fri, 24 Dec 2021 04:30:18 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/business/2021-12-23-ask-hn-those-making-500-month-on-side-projects-in-2021-show-and-tell/</guid>
      <description>&lt;p&gt;I love these kind of posts. Here are some interesting ideas for side-gig:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Books. There are quite a few books there, books for babies, books about iOS dev etc.&lt;/li&gt;
&lt;li&gt;Mining Cryptocurrency. &lt;a href=&#34;https://news.ycombinator.com/item?id=29668425&#34;&gt;This comment&lt;/a&gt; got a lot of attention.&lt;/li&gt;
&lt;li&gt;Apps. Too many but was glad to see Mac apps generating decent income.&lt;/li&gt;
&lt;li&gt;Music. Decent income from YouTube content ID payments according to &lt;a href=&#34;https://news.ycombinator.com/item?id=29669467&#34;&gt;this comment&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://news.ycombinator.com/item?id=29668142&#34;&gt;DIY biologist&lt;/a&gt;. Seems fun.&lt;/li&gt;
&lt;li&gt;A lot of SaaS or content sites.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://news.ycombinator.com/item?id=29667315&#34;&gt;Flipping items from thrift stores on eBay&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;</description>
    </item>
    <item>
      <title>ROI when using your primary residence as rental too</title>
      <link>https://chaosplay.com/posts/thoughts/2021-12-02-roi-when-using-your-primary-residence-as-rental-too/</link>
      <pubDate>Thu, 02 Dec 2021 16:28:21 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2021-12-02-roi-when-using-your-primary-residence-as-rental-too/</guid>
      <description>&lt;p&gt;Calculating rough ROI on rentals is easy:&lt;/p&gt;
&lt;p&gt;For example, let&amp;rsquo;s say one buys $500,000 single family home and rent it out for $3000 per month. Since it is investment property, they will need to make at least 20% down payment. On $400,000 loan, their monthly payment would be about $2750 at 3.25% interest rate, with $10,000 in property taxes per year and $2000 yearly insurance.&lt;/p&gt;
&lt;p&gt;($36,000 - $33,000) / $100,000 = 0.03 or 3% return.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Software Engineer hitting 40: what&#39;s next?</title>
      <link>https://chaosplay.com/posts/work/dev/2021-12-01-ask-hn-software-engineer-hitting-40-whats-next/</link>
      <pubDate>Wed, 01 Dec 2021 17:46:18 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2021-12-01-ask-hn-software-engineer-hitting-40-whats-next/</guid>
      <description>&lt;p&gt;Recent thread on Hacker News, &lt;a href=&#34;https://news.ycombinator.com/item?id=29360119&#34;&gt;https://news.ycombinator.com/item?id=29360119&lt;/a&gt;, was very interesting for me especially since I turned 40 this year.&lt;/p&gt;
&lt;p&gt;Programming is something I enjoy and pretty good at it. I&amp;rsquo;m still not at the top of salary range for programmers but this is a tough question. I can get into FAANG but there is still a ceiling of how much one can earn as a software engineer.&lt;/p&gt;
&lt;p&gt;This comment&lt;/p&gt;
&lt;p&gt;says it best:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hotel California</title>
      <link>https://chaosplay.com/posts/hobbies/songs/2021-11-19-hotel-california/</link>
      <pubDate>Fri, 19 Nov 2021 16:02:08 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/songs/2021-11-19-hotel-california/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/BciS5krYL80?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;p&gt;Hotel California is such a beautiful song. And it&amp;rsquo;s deep meaning can apply to pretty much any situation. I have been especially thinking of last line, &amp;ldquo;You can checkout anytime you like, but you can never leave.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;A lot of people think this song is about about drugs and Hollywood life that is hard to leave. But it can apply to anything. One can never leave their corporate life, they are stuck there forever because they got bills, family, and fear of going on their own. So they can mentally checkout anytime they like, but they can never leave.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Leetcode 92: Reverse Linked List II</title>
      <link>https://chaosplay.com/notes/leetcode/2021-11-04-leetcode-92-reverse-linked-list-ii/</link>
      <pubDate>Thu, 04 Nov 2021 18:35:36 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-11-04-leetcode-92-reverse-linked-list-ii/</guid>
      <description>&lt;p&gt;Here is my leetcode solution in JavaScript:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * Definition for singly-linked list.
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * function ListNode(val, next) {
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; *     this.val = (val===undefined ? 0 : val)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; *     this.next = (next===undefined ? null : next)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * }
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {ListNode} head
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {number} left
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {number} right
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {ListNode}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;reverseBetween&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;head&lt;/span&gt;, &lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt;, &lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;currPos&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;currNode&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;head&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;startNode&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;head&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;endNode&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;null&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;currPos&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;startNode&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;currNode&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;currNode&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;currNode&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;currPos&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;newList&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;null&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;tail&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;currNode&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;currPos&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;currNode&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;currNode&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;newList&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;newList&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;currNode&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;currNode&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;currPos&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#a6e22e&#34;&gt;startNode&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;newList&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#a6e22e&#34;&gt;tail&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;currNode&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;head&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;newList&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&#34;https://leetcode.com/problems/reverse-linked-list-ii/&#34;&gt;Link to problem&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ayden &amp; Simba go to the Moon</title>
      <link>https://chaosplay.com/posts/hobbies/writings/stories/2021-10-26-ayden-simba-go-to-the-moon/</link>
      <pubDate>Tue, 26 Oct 2021 15:23:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/stories/2021-10-26-ayden-simba-go-to-the-moon/</guid>
      <description>&lt;p&gt;Ayden and Simba were playing when they saw the moon. Ayden wanted to go to moon but didn&amp;rsquo;t know how. Then Simba remembered their friend Rocky the Red Rocket can take them to the moon.
They went to Rocky&amp;rsquo;s house but he was not there. Simba said let me find him because he can find anyone by sniffing their smells. Simba sniffed and sniffed and found Rocky swimming in the pool.
Once upon a time, there was a little boy named Ayden and he had a little dog called Simba.
One day Aydne said to Simba, he lute&amp;rsquo;s go to moon.
Since said that is an excellent idea.
So Ayden and Simba went to their friend, Rock the red rocket&amp;rsquo;s house.
They knocked on the door but no one answered. Simba sniffed and sniff and found Rocky at the pool.
&amp;ldquo;Hey Rocky, how are you?&amp;rsquo; asked Ayden.
&amp;ldquo;I am good fellas, what are you guys up to&amp;rdquo; replied Rocky
&amp;ldquo;We really really want to go to the moon, when you go to moon next time, can you please take us with you?&amp;rdquo; Ayden asked politely.
Rocky said, oh guess what, I am going to moon right now. Let&amp;rsquo;s go now, if you can.&amp;rdquo;
Simba nd Ayden got excited and they jumped in the Rocky.
3, 2, 1, Blast off!!!
Rocky went into space and then landed on the moon.
Moon was so beautiful, Ayden and Simba got out and started to play on the moon. It was very bouncy and it was red. And it smelled like a cheese. So Simba licked the moon&amp;rsquo;s surface and said moon tastes like cheese too. Ayden took a small bite of moon and guess what, moon is indeed made out of cheese.
Simba and Ayden ate a lot of moon. They got so full.
Rocky called them and said it is time to go back home.
Rocky took them back home and Ayden and Simba thanked Rocky. And then took a nice big nap!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Blue Bus and Yummy Apples</title>
      <link>https://chaosplay.com/posts/hobbies/writings/stories/2021-10-25-blue-bus-and-yummy-apples/</link>
      <pubDate>Mon, 25 Oct 2021 15:23:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/stories/2021-10-25-blue-bus-and-yummy-apples/</guid>
      <description>&lt;p&gt;One day, Blue Bus wanted to eat yummy yummy apples. He looked in the fridge but there were no of apples. He went to Target to buy apples. But Target was out of apples too.
Then Blue Bus went to Red Bus but Red Bus was out of apples too. She had just eaten the last apple
Blue Bus then went to Green Bus&amp;rsquo;s home. Green Bus was out of apples too.
Blue Bus then went to Yellow Bus. Yellow Bus had just got back home from his work. Blue Bus asked if he had any apples but Yellow Bus was out of apples too. But Yellow Bus had just dropped Ayden at his home and Ayden had a big bag of apples.
Blue Bus finally went to Ayden&amp;rsquo;s home. He asked if Ayden had any apples. Ayden said, &amp;ldquo;yes I do, right here in my pockets&amp;rdquo;. Then Ayden gave one apple to Blue Bus. Then all the buses came, Ayden shared his apples with everyone and they all ate apples together.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Broken Dreams/Bheegi Yadein by Junoon</title>
      <link>https://chaosplay.com/posts/hobbies/songs/2021-10-24-broken-dreams-bheegi-yadein-by-junoon/</link>
      <pubDate>Sun, 24 Oct 2021 15:20:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/songs/2021-10-24-broken-dreams-bheegi-yadein-by-junoon/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/aLGVOednWe4?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;As I turn back, my eyes dampen
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;When I realized my incomplete life
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;My life became clear to me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Broken promises
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Deserted dreams
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Broken promises
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Seek time&amp;#39;s tender shade
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Yesterday too, was in ruins
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Now is deserted as well
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Life asks for a moment of support
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Damp memories
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Won&amp;#39;t let me sleep due to grief
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Damp memories
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Won&amp;#39;t let me live.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;By Junoon&lt;/p&gt;</description>
    </item>
    <item>
      <title>Yellow Bus and Red Car</title>
      <link>https://chaosplay.com/posts/hobbies/writings/stories/2021-10-23-yellow-bus-and-red-car/</link>
      <pubDate>Sat, 23 Oct 2021 21:19:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/stories/2021-10-23-yellow-bus-and-red-car/</guid>
      <description>&lt;p&gt;Once upon a time there was a Yellow bus. Yellow bus was very fast, but there was a Red car which was faster. One day, Red car challenged yellow bus for a race.
They decided to race from Dallas to Houston. It was the longest race ever. All the cars gathered around the highway.
Referee said 1, 2, 3, Go!
Yellow bus goes zoom zoom. But red car goes zoom zoom zooooom. And Red car was faster and it was winning.
After a while Red car looked in its rearview mirror and didn&amp;rsquo;t see Yellow bus at all. Red car&amp;rsquo;s engine was overheating, and it was running low on gas. Up ahead was a gas station.
Red car decided to pull into gas station to refill gas and and cool down the engine in a shade.
While resting in the shade, it fell asleep.
Yellow bus, however, didn&amp;rsquo;t stop. It kept going and going until it crossed the finish line.
Red car woke up and realized, it slept for too long. It raced to finish line but Yellow bus had already won the race.
Red car was surprised and asked how did you not take a break, Yellow bus said by going fast but not too fast. They laughed and then went to eat ice cream.
Moral of story, go fast but not too fast.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Poem by Mirza Ghalib</title>
      <link>https://chaosplay.com/posts/hobbies/writings/2021-10-22-a-poem-by-mirza-ghalib/</link>
      <pubDate>Fri, 22 Oct 2021 21:17:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/2021-10-22-a-poem-by-mirza-ghalib/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://en.wikipedia.org/wiki/Ghalib&#34;&gt;Mirza Ghalib&lt;/a&gt; was the one of the greatest Urdu poet from 19th century. I translated this poem for a school project.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;I look at the joys of this world, as I look at the dust.



Crying used to give me pleasure but now my eyes have gone dry.



When I am dead, wind might take my dust to my destination.



Because now I have no more strength to continue.



For whom are these preparations of welcome, who is this lover from the heaven?



All I see is flowers, and nothing else.



My love has left me capable of nothing.



Now I just wish to live quietly somewhere.



Asad, my poetry is for times past.



It is useless to write, when no one understands.
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>I</title>
      <link>https://chaosplay.com/posts/hobbies/writings/2021-10-21-i/</link>
      <pubDate>Thu, 21 Oct 2021 21:15:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/2021-10-21-i/</guid>
      <description>&lt;pre&gt;&lt;code&gt;Who is that is I



Still lost in my mind.



Trying to find my purpose,



When there might not be one.



The first thing was writing



Can words truly change anything?



Why should I write,



When there is so much noise



Are you in that house,



Or are you out here.



I will give up now,



This desert is just too vast.



My voice will not reach you,



Is this even a language.



What is music when there is no rhythm.



Why should I write,



When I have nothing to say.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Wrote this poem long time ago, it seems it is still applicable.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A poem by Mir Taqi Mir</title>
      <link>https://chaosplay.com/posts/hobbies/writings/2021-10-20-a-poem-by-mir-taqi-mir/</link>
      <pubDate>Wed, 20 Oct 2021 21:13:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/2021-10-20-a-poem-by-mir-taqi-mir/</guid>
      <description>&lt;pre&gt;&lt;code&gt;Stop crying, this is just the beginning of love.



Hold on and see what will be next.



In the morning, there were voices in the caravan.



Let&#39;s move on and let the sleeper sleep.



On this ground nothing can grow.



Please stop planting seeds of hopes in your heart.



These are marks of true love, they remain forever.



It is not possible to wash them away from your heart.



Time was more important than anything else in my life.



And Mir, I wasted my time foolishly.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This was another college project, I translated this poem by &lt;a href=&#34;https://en.wikipedia.org/wiki/Mir_Taqi_Mir&#34;&gt;Mir Taqi Mir&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Poem by Mir Dard</title>
      <link>https://chaosplay.com/posts/hobbies/writings/2021-10-19-a-poem-by-mir-dard/</link>
      <pubDate>Tue, 19 Oct 2021 21:12:21 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/2021-10-19-a-poem-by-mir-dard/</guid>
      <description>&lt;pre&gt;&lt;code&gt;It was a school or temple, or was it Makkah or a church.
We were all guests, only you were the host.



Oh! How sad it is. I found just before death.
It was only a dream, what I saw. It was only a fairy tale, what I heard.



How sad it is that autumn is in the garden.
There was some grass, which was my friend.



This place is getting chaotic with all these people coming and going.
My heart used to be the place for your peace.



It is useless to remember them, try to be happy.
Dard, it is not important if they remember me or not.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&#34;https://en.wikipedia.org/wiki/Khwaja_Mir_Dard&#34;&gt;Mir Dard&lt;/a&gt; was a sufi poet from India. I translated this poem for college project.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A poem by Allama Iqbal</title>
      <link>https://chaosplay.com/posts/hobbies/writings/2021-10-10-a-poem-by-allama-iqbal/</link>
      <pubDate>Sun, 10 Oct 2021 16:29:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/2021-10-10-a-poem-by-allama-iqbal/</guid>
      <description>&lt;p&gt;You are neither for earth nor for the heavens.&lt;/p&gt;
&lt;p&gt;The world is for you; you are not for the world.&lt;/p&gt;
&lt;p&gt;This garden is the place for pain and prayer.&lt;/p&gt;
&lt;p&gt;Not for picking flowers or building a nest.&lt;/p&gt;
&lt;p&gt;How long will you stay in the rivers of Ravi, Nile, and Farat?&lt;/p&gt;
&lt;p&gt;Your ship was built for infinite oceans.&lt;/p&gt;
&lt;p&gt;It was nothing, what we have exaggerated.&lt;/p&gt;
&lt;p&gt;We made it more, just for our fantasies.&lt;/p&gt;</description>
    </item>
    <item>
      <title>About</title>
      <link>https://chaosplay.com/about/</link>
      <pubDate>Sun, 10 Oct 2021 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/about/</guid>
      <description>Amer Khalid — software engineer, photographer, and dad. Writing about tech, AI, fatherhood, and the entrepreneurial journey.</description>
    </item>
    <item>
      <title>Oneness of Humanity</title>
      <link>https://chaosplay.com/posts/hobbies/writings/2021-10-09-oneness-of-humanity/</link>
      <pubDate>Sat, 09 Oct 2021 16:28:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/2021-10-09-oneness-of-humanity/</guid>
      <description>&lt;p&gt;O my friend, a heart does not need hate.
All love good but do not even hate bad.
Who does not want the softness of flowers?
But do not be afraid of sharpness of thorns.
There is same blood in the veins of the thorn.
It is brought up by same evening breeze of the spring.&lt;/p&gt;
&lt;p&gt;Do not throw away dying flowers.
Yesterday, they were the glamor of the garden.
Once they were also part of the world of perfumes.
O passerby! Do not kick dust on their leaves.
Though they are no longer in the feast.
They were raised in the laps of same morning breeze.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cigarette</title>
      <link>https://chaosplay.com/posts/hobbies/writings/2021-10-08-cigarette/</link>
      <pubDate>Fri, 08 Oct 2021 16:25:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/2021-10-08-cigarette/</guid>
      <description>&lt;p&gt;Feeling so empty, and hollow inside,
Cannot believe I am writing a poem to a cigarette,
but I feel so unsatisfied, unfulfilled,
like this poem, half-finished.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Once I Fell in Love</title>
      <link>https://chaosplay.com/posts/hobbies/writings/2021-10-07-once-i-fell-in-love/</link>
      <pubDate>Thu, 07 Oct 2021 16:24:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/2021-10-07-once-i-fell-in-love/</guid>
      <description>&lt;p&gt;In this hot desert heat,&lt;/p&gt;
&lt;p&gt;you were a cool breeze&lt;/p&gt;
&lt;p&gt;gone in a moment just as you came,&lt;/p&gt;
&lt;p&gt;left me behind to wonder if you will ever return&lt;/p&gt;
&lt;p&gt;to mess up my hair,&lt;/p&gt;
&lt;p&gt;to touch my thirsty lips softly&lt;/p&gt;
&lt;p&gt;you were a sweet dream,&lt;/p&gt;
&lt;p&gt;vanished with the stars in the morning&lt;/p&gt;
&lt;p&gt;leaving me to wake up in the blinding sunlight,&lt;/p&gt;
&lt;p&gt;to look for a shade where there are no trees&lt;/p&gt;</description>
    </item>
    <item>
      <title>Stars &amp; Moon</title>
      <link>https://chaosplay.com/posts/hobbies/writings/2021-10-06-stars-moon/</link>
      <pubDate>Wed, 06 Oct 2021 16:23:55 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/2021-10-06-stars-moon/</guid>
      <description>&lt;p&gt;&lt;em&gt;This poem was written by my favorite poet Allama Iqbal. I translated it for my English class during my freshman year.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;The view up here is the same as ever.&lt;/p&gt;
&lt;p&gt;We are tired of shining and shining.&lt;/p&gt;
&lt;p&gt;Our work is to walk, day and night.&lt;/p&gt;
&lt;p&gt;Walk and walk and walk forever.&lt;/p&gt;
&lt;p&gt;Everything in this universe is anxious.&lt;/p&gt;
&lt;p&gt;Peace, whatever it is, does not exist.&lt;/p&gt;
&lt;p&gt;Everything is being tortured by time.&lt;/p&gt;</description>
    </item>
    <item>
      <title>think hard</title>
      <link>https://chaosplay.com/posts/fatherhood/2021-09-30-think-hard/</link>
      <pubDate>Thu, 30 Sep 2021 18:31:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2021-09-30-think-hard/</guid>
      <description>&lt;p&gt;Other day while putting Ayden to sleep, he looked like as if he was intensely thinking. I asked him, &amp;ldquo;Are you thinking something?&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Yes&amp;rdquo; he replied.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;What are you thinking?&amp;rdquo; I asked&lt;/p&gt;
&lt;p&gt;&amp;ldquo;I don&amp;rsquo;t know what car to play with in the morning, baba!&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Simple Man – Lynyrd Skynyrd</title>
      <link>https://chaosplay.com/notes/songs/2021-09-30-simple-man-lynyrd-skynyrd/</link>
      <pubDate>Thu, 30 Sep 2021 05:07:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2021-09-30-simple-man-lynyrd-skynyrd/</guid>
      <description>&lt;h2 id=&#34;lyrics&#34;&gt;Lyrics&lt;/h2&gt;
&lt;p&gt;Mama told me when I was young
Come sit beside me my only son
And listen closely to what I say
And if you do this it&amp;rsquo;ll help you
Some sunny day oh yeah&lt;/p&gt;
&lt;p&gt;Oh take your time don&amp;rsquo;t live too fast
Troubles will come and they will pass
Go find a woman yeah and you&amp;rsquo;ll find love
And don&amp;rsquo;t forget son there is someone up above&lt;/p&gt;
&lt;p&gt;And be a simple kind of man
Oh be something you love and understand
Baby be a simple kind of man
Oh won&amp;rsquo;t you do this for me son if you can&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fast Car</title>
      <link>https://chaosplay.com/notes/songs/2021-09-29-fast-car/</link>
      <pubDate>Thu, 30 Sep 2021 03:59:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2021-09-29-fast-car/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/AIOAlaACuv4?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;h2 id=&#34;lyrics&#34;&gt;Lyrics&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You got a fast car
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I want a ticket to anywhere
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Maybe we make a deal
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Maybe together we can get somewhere
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Any place is better
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Starting from zero, got nothing to lose
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Maybe we&amp;#39;ll make something
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Me, myself, I got nothing to prove
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You got a fast car
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I got a plan to get us out of here
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I been working at the convenience store
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Managed to save just a little bit of money
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Won&amp;#39;t have to drive too far
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Just &amp;#39;cross the border and into the city
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You and I can both get jobs
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And finally see what it means to be living
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;See, my old man&amp;#39;s got a problem
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;He lives with the bottle, that&amp;#39;s the way it is
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;He says his body&amp;#39;s too old for working
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;His body&amp;#39;s too young to look like his
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;My mama went off and left him
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;She wanted more from life than he could give
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I said, somebody&amp;#39;s got to take care of him
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So I quit school and that&amp;#39;s what I did
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You got a fast car
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Is it fast enough so we can fly away?
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;We gotta make a decision
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Leave tonight or live and die this way
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So I remember we were driving, driving in your car
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Speed so fast, I felt like I was drunk
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;City lights lay out before us
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And your arm felt nice wrapped &amp;#39;round my shoulder
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I-I, had a feeling that I belonged
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I-I had a feeling I could be someone, be someone, be someone
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You got a fast car
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;We go cruising to entertain ourselves
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You still ain&amp;#39;t got a job
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I work in a market as a checkout girl
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I know things will get better
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You&amp;#39;ll find work and I&amp;#39;ll get promoted
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;We&amp;#39;ll move out of the shelter
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Buy a bigger house and live in the suburbs
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So I remember when we were driving, driving in your car
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Speed so fast, I felt like I was drunk
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;City lights lay out before us
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And your arm felt nice wrapped &amp;#39;round my shoulder
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I-I, had a feeling that I belonged
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I-I had a feeling I could be someone, be someone, be someoneYou got a fast car
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I got a job that pays all our bills
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You stay out drinking late at the bar
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;See more of your friends than you do of your kids
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;d always hoped for better
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Thought maybe together you and me would find it
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I got no plans, I ain&amp;#39;t going nowhere
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So take your fast car and keep on driving
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So I remember when we were driving, driving in your car
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Speed so fast, I felt like I was drunk
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;City lights lay out before us
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And your arm felt nice wrapped &amp;#39;round my shoulder
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I-I, had a feeling that I belonged
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I-I had a feeling I could be someone, be someone, be someone
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You got a fast car
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Is it fast enough so you can fly away?
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You gotta make a decision
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Leave tonight or live and die this way
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Wealth Lab Pro Earning Play Screener</title>
      <link>https://chaosplay.com/posts/work/dev/2021-09-29-wealth-lab-pro-earning-play-screener/</link>
      <pubDate>Wed, 29 Sep 2021 16:12:14 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2021-09-29-wealth-lab-pro-earning-play-screener/</guid>
      <description>&lt;p&gt;This is a quick script that I use to find options to buy or sell.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; using  System;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; using  System.Collections.Generic;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; using  System.Text;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; using  System.Drawing;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; using  WealthLab;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; using  WealthLab.Indicators;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; using  Community.Components;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; namespace  WealthLab.Strategies
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;	 public class  MyStrategy  : WealthScript
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;	{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;		 protected override void  Execute()
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;		{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			DataSeries maFast = EMAModern.Series(Close,  50 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			DataSeries maSlow = EMAModern.Series(Close,  200 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			DataSeries maFast_1 = EMAModern.Series(Close,  10 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			DataSeries maSlow_2 = EMAModern.Series(Close,  50 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			DataSeries ma = EMAModern.Series(Close,  10 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			DataSeries maFast_3 = EMAModern.Series(Close,  10 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			DataSeries maSlow_4 = EMAModern.Series(Close,  50 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			PlotSeries(PricePane,EMAModern.Series(Close, 50 ),Color.Red,LineStyle.Solid, 2 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			PlotSeries(PricePane,EMAModern.Series(Close, 200 ),Color.Green,LineStyle.Solid, 2 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			PlotSeries(PricePane,EMAModern.Series(Close, 10 ),Color.Blue,LineStyle.Solid, 2 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			PlotSeries(PricePane,EMAModern.Series(Close, 50 ),Color.Red,LineStyle.Solid, 2 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			PlotSeries(PricePane,EMAModern.Series(Close, 10 ),Color.Blue,LineStyle.Solid, 2 );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			//for(int bar = GetTradingLoopStartBar(201); bar &amp;lt; Bars.Count; bar++)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; 			 int  bar = Bars.Count -  1 ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;				 if  (IsLastPositionActive)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;				{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;					Position p = LastPosition;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;					 if  (p.EntrySignal.Contains(&amp;#34;Group1|&amp;#34; ))
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;					{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;						 if  (CrossUnder(bar, maFast_3, maSlow_4))
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;						{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;							SellAtMarket(bar +  1 , p, &amp;#34;Group1&amp;#34; );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;						}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;					}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;				}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;				 else
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;				{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;					 if  (maFast[bar] &amp;gt; maSlow[bar])
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;					{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;						 if  (maFast_1[bar] &amp;gt; maSlow_2[bar])
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;						{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;							 if  (Close[bar] &amp;lt; ma[bar])
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;							{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;								 if  (EarningsDate.InWindow( this , bar, &amp;#34;earnings per share&amp;#34; ,  7 ,  0 ))
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;								{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;									BuyAtMarket(bar +  1 , &amp;#34;Group1|&amp;#34; );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;								}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;							}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;						}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;					}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;				}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;			}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;		}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;	}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Old bookmarks</title>
      <link>https://chaosplay.com/notes/bookmarks/2021-09-29-old-bookmarks/</link>
      <pubDate>Wed, 29 Sep 2021 16:09:35 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2021-09-29-old-bookmarks/</guid>
      <description>&lt;p&gt;This is slightly a mess, basically various links my bookmarks are here.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;http://nautil.us/issue/45/power/against-willpower&#34;&gt;http://nautil.us/issue/45/power/against-willpower&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://ubiquity.acm.org/article.cfm?id=3310318&#34;&gt;https://ubiquity.acm.org/article.cfm?id=3310318&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.nytimes.com/2018/10/26/style/phones-children-silicon-valley.html&#34;&gt;https://www.nytimes.com/2018/10/26/style/phones-children-silicon-valley.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: Developers with kids, how do you skill up? - &lt;a href=&#34;https://news.ycombinator.com/item?id=13816627&#34;&gt;https://news.ycombinator.com/item?id=13816627&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: How can I learn how to paint? - &lt;a href=&#34;https://news.ycombinator.com/item?id=19375624&#34;&gt;https://news.ycombinator.com/item?id=19375624&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Children aren&amp;rsquo;t born smart. They&amp;rsquo;re made smart by conversation. - &lt;a href=&#34;https://slate.com/technology/2013/09/childrens-language-development-talk-and-listen-to-them-from-birth.html&#34;&gt;https://slate.com/technology/2013/09/childrens-language-development-talk-and-listen-to-them-from-birth.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Maker Faire and Science Education: American kids should be building rockets and robots, not taking standardized tests. - &lt;a href=&#34;https://slate.com/technology/2012/06/maker-faire-and-science-education-american-kids-should-be-building-rockets-and-robots-not-taking-standardized-tests.html&#34;&gt;https://slate.com/technology/2012/06/maker-faire-and-science-education-american-kids-should-be-building-rockets-and-robots-not-taking-standardized-tests.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.npr.org/sections/goatsandsoda/2018/06/21/621752789/a-lost-secret-how-to-get-kids-to-pay-attention&#34;&gt;https://www.npr.org/sections/goatsandsoda/2018/06/21/621752789/a-lost-secret-how-to-get-kids-to-pay-attention&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;On Parenthood - &lt;a href=&#34;https://blog.codinghorror.com/on-parenthood/&#34;&gt;https://blog.codinghorror.com/on-parenthood/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;reddit: parenting reading list - &lt;a href=&#34;https://www.reddit.com/r/Parenting/wiki/reading&#34;&gt;https://www.reddit.com/r/Parenting/wiki/reading&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Resistance Training May Lower Type 2 Diabetes Risk: Study - &lt;a href=&#34;https://www.menshealth.com/fitness/a26799275/moderate-strength-training-diabetes-risk-study/&#34;&gt;https://www.menshealth.com/fitness/a26799275/moderate-strength-training-diabetes-risk-study/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Everything You Wanted to Know About STEM for Toddlers - &lt;a href=&#34;https://preschoolsteam.com/stem-activities-toddlers/&#34;&gt;https://preschoolsteam.com/stem-activities-toddlers/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Plano Is the Happiest Place in America - &lt;a href=&#34;https://www.dmagazine.com/frontburner/2019/03/plano-is-the-happiest-place-in-america/&#34;&gt;https://www.dmagazine.com/frontburner/2019/03/plano-is-the-happiest-place-in-america/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Good Vibes Are Contagious - &lt;a href=&#34;https://www.outsideonline.com/2391572/send-good-vibes&#34;&gt;https://www.outsideonline.com/2391572/send-good-vibes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Teens and Young Adults Are More Depressed Now Than in the Mid-2000s - &lt;a href=&#34;https://gizmodo.com/teens-and-young-adults-are-more-depressed-now-than-in-t-1833295562&#34;&gt;https://gizmodo.com/teens-and-young-adults-are-more-depressed-now-than-in-t-1833295562&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How Inuit Parents Raise Kids Without Yelling — And Teach Them To Control Anger - &lt;a href=&#34;https://www.npr.org/sections/goatsandsoda/2019/03/13/685533353/a-playful-way-to-teach-kids-to-control-their-anger&#34;&gt;https://www.npr.org/sections/goatsandsoda/2019/03/13/685533353/a-playful-way-to-teach-kids-to-control-their-anger&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Expert Says Don&amp;rsquo;t Teach Kids to Code - &lt;a href=&#34;https://hackaday.com/2019/03/14/expert-says-dont-teach-kids-to-code/&#34;&gt;https://hackaday.com/2019/03/14/expert-says-dont-teach-kids-to-code/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The Longevity Research Institute - &lt;a href=&#34;https://thelri.org/blog-and-news/melatonin-s-effect-on-skin-and-hair/&#34;&gt;https://thelri.org/blog-and-news/melatonin-s-effect-on-skin-and-hair/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://yourkidstable.com/about/&#34;&gt;https://yourkidstable.com/about/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;When Ancient Societies Hit a Million People, Vengeful Gods Appeared - &lt;a href=&#34;https://www.livescience.com/65039-punishing-gods-rise-with-complex-societies.html&#34;&gt;https://www.livescience.com/65039-punishing-gods-rise-with-complex-societies.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;A morning fitness routine that&amp;rsquo;s good for your brain, too - &lt;a href=&#34;https://www.cnn.com/2019/03/21/health/fitness-routine-brain-morning-exercise-mansour/index.html&#34;&gt;https://www.cnn.com/2019/03/21/health/fitness-routine-brain-morning-exercise-mansour/index.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Teaching Children to Walk Independently! - One of the first reassurances I can give families is that Motor Milestones exist on a continuum. Each child achieves these skills at their own time, in their own way. Though we learn motor development from textbooks positing neurodevelopment theory to explain skill acquisition and motor patterning, the manifestation of this progression takes on distinct characteristics when we look at each child as a unique creation. - &lt;a href=&#34;http://blog.dinopt.com/independent-walking-kids/&#34;&gt;http://blog.dinopt.com/independent-walking-kids/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Posture Power: How To Correct Your Body&amp;rsquo;s Alignment - &lt;a href=&#34;https://www.bodybuilding.com/content/posture-power-how-to-correct-your-body-alignment.html&#34;&gt;https://www.bodybuilding.com/content/posture-power-how-to-correct-your-body-alignment.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Best Camping Near Me | Hipcamp&amp;rsquo;s Interactive Map of Private and Public Land - &lt;a href=&#34;https://www.hipcamp.com/discover/texas/cedar-hill?lat=33.0304&amp;amp;lng=-96.8777&#34;&gt;https://www.hipcamp.com/discover/texas/cedar-hill?lat=33.0304&amp;amp;lng=-96.8777&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How to increase serotonin in the human brain without drugs (2007) | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=19482241&#34;&gt;https://news.ycombinator.com/item?id=19482241&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Scientists have also administered cognitive tests right after exercise—for example, measuring the flicker fusion threshold (the rate at which a flashing light begins to look like it&amp;rsquo;s steadily glowing) and found the same thing: After exercise, one&amp;rsquo;s senses are heightened and thus can detect the flashing at a higher frequency than before exercise.Taken together, these findings indicate that &amp;ldquo;people see more clearly and immediately after exercise,&amp;rdquo; Maddock says. &amp;ldquo;They can make finer visual distinctions; their perceptions are sharper.&amp;rdquo; - &lt;a href=&#34;https://www.outsideonline.com/2186146/your-brain-exercise&#34;&gt;https://www.outsideonline.com/2186146/your-brain-exercise&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://theweek.com/articles/830490/rise-snowplow-parenting&#34;&gt;https://theweek.com/articles/830490/rise-snowplow-parenting&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How do I ensure my only child isn&amp;rsquo;t socially isolated? - &lt;a href=&#34;https://www.washingtonpost.com/lifestyle/on-parenting/as-my-only-child-grows-what-is-my-role/2019/03/25/12b18e26-4a57-11e9-b79a-961983b7e0cd_story.html&#34;&gt;https://www.washingtonpost.com/lifestyle/on-parenting/as-my-only-child-grows-what-is-my-role/2019/03/25/12b18e26-4a57-11e9-b79a-961983b7e0cd_story.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.wellandgood.com/bodyweight-vs-weights-workouts/&#34;&gt;https://www.wellandgood.com/bodyweight-vs-weights-workouts/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Atomic ML | Resources to help you learn data science and machine learning. - &lt;a href=&#34;https://www.atomicml.com/&#34;&gt;https://www.atomicml.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://metroplexsocial.com/2019/03/16/best-playgrounds-in-dfw-to-take-your-kids/&#34;&gt;https://metroplexsocial.com/2019/03/16/best-playgrounds-in-dfw-to-take-your-kids/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.nytimes.com/2019/04/04/magazine/how-asmr-videos-became-a-sensation-youtube.html&#34;&gt;https://www.nytimes.com/2019/04/04/magazine/how-asmr-videos-became-a-sensation-youtube.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;A five-minute workout called Inspiratory Muscle Strength Training (IMST) lowers blood pressure in middle-aged to older adults; it also improves artery function and scores on memory tests, according to new research. - &lt;a href=&#34;http://www.sci-news.com/medicine/inspiratory-muscle-strength-training-blood-pressure-brain-07077.html&#34;&gt;http://www.sci-news.com/medicine/inspiratory-muscle-strength-training-blood-pressure-brain-07077.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://aeon.co/essays/how-to-live-a-values-driven-life-in-the-face-of-dark-emotions&#34;&gt;https://aeon.co/essays/how-to-live-a-values-driven-life-in-the-face-of-dark-emotions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Notably, most improvements in GI symptoms were maintained, and autism-related symptoms improved even more after the end of treatment. Important changes in gut microbiota at the end of treatment remained at follow-up, including significant increases in bacterial diversity and relative abundances of Bifidobacteria and Prevotella. Our observations demonstrate the long-term safety and efficacy of MTT as a potential therapy to treat children with ASD who have GI problems, and warrant a double-blind, placebo-controlled trial in the future. - &lt;a href=&#34;https://www.nature.com/articles/s41598-019-42183-0&#34;&gt;https://www.nature.com/articles/s41598-019-42183-0&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Anything you can do to keep from packing up your shit and leaving is called love. - &lt;a href=&#34;http://a.co/7cPPwc2&#34;&gt;http://a.co/7cPPwc2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;It is hard sometimes to keep in mind the growth-promoting potential of the mismatches between parent and child goals because the parents&amp;rsquo; empathy for the child can make them feel as if it is their fault that they cannot fulfill the child&amp;rsquo;s wishes. - &lt;a href=&#34;http://a.co/cbhTMiO&#34;&gt;http://a.co/cbhTMiO&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The basic premise of attachment theory is that toddlers can grow into happy and competent children if they can rely on at least one adult who makes them feel safe and protected. From this basic feeling of security in relationships grows the impetus to explore how things work in the world and to try out new skills. - &lt;a href=&#34;http://a.co/1QjXVtb&#34;&gt;http://a.co/1QjXVtb&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Toddlers walk through life like we all wish we could: confident, demanding, and 100 percent positive that they are the center of the universe. - &lt;a href=&#34;http://a.co/7nddWp3&#34;&gt;http://a.co/7nddWp3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;http://www.optionstrading.org/strategies/a-z-list/&#34;&gt;http://www.optionstrading.org/strategies/a-z-list/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: What is your money-making side project outside programming? | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=19712057&#34;&gt;https://news.ycombinator.com/item?id=19712057&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.cbc.ca/parents/learning/view/parenting-isnt-that-hard&#34;&gt;https://www.cbc.ca/parents/learning/view/parenting-isnt-that-hard&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://discover.dc.nihr.ac.uk/content/signal-000711/aerobic-exercise-is-an-effective-treatment-for-depression&#34;&gt;https://discover.dc.nihr.ac.uk/content/signal-000711/aerobic-exercise-is-an-effective-treatment-for-depression&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.wellandgood.com/good-sweat/power-in-fitness/&#34;&gt;https://www.wellandgood.com/good-sweat/power-in-fitness/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;It has been said that children need to take 3,000 steps or cover 24 foot ball fields before they can learn to walk by themselves. Lets just say they need to do 100&amp;rsquo;s of steps/day -best if it is in a condensed period of time- to learn to walk. - &lt;a href=&#34;https://maryevanspt.wordpress.com/2016/12/14/how-to-get-your-baby-and-toddler-to-walk/&#34;&gt;https://maryevanspt.wordpress.com/2016/12/14/how-to-get-your-baby-and-toddler-to-walk/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://blog.usejournal.com/things-you-learn-after-1-year-of-day-trading-for-a-living-a97bbc8d19fa&#34;&gt;https://blog.usejournal.com/things-you-learn-after-1-year-of-day-trading-for-a-living-a97bbc8d19fa&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Trading and Data Science - &lt;a href=&#34;http://www.algonell.com/blog&#34;&gt;http://www.algonell.com/blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://algodaily.com/lessons/solving-the-health-problems-of-software-engineers&#34;&gt;https://algodaily.com/lessons/solving-the-health-problems-of-software-engineers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://greatergood.berkeley.edu/article/item/why_attachment_parenting_is_not_the_same_as_secure_attachment&#34;&gt;https://greatergood.berkeley.edu/article/item/why_attachment_parenting_is_not_the_same_as_secure_attachment&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The dangers of over-parenting - &lt;a href=&#34;https://www.valleynewslive.com/content/news/The-dangers-of-over-parenting-509683601.html&#34;&gt;https://www.valleynewslive.com/content/news/The-dangers-of-over-parenting-509683601.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Evidence-based parenting: how to deal with aggression, tantrums and defiance - &lt;a href=&#34;https://theconversation.com/evidence-based-parenting-how-to-deal-with-aggression-tantrums-and-defiance-95439&#34;&gt;https://theconversation.com/evidence-based-parenting-how-to-deal-with-aggression-tantrums-and-defiance-95439&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;No matter what you accomplish, achieve or do, somebody is always up to something far more epic than you are if you live your life through the lens of your Facebook news feed. - &lt;a href=&#34;https://medium.com/the-mission/why-excessive-consumption-limits-your-creativity-6e925dd66daa&#34;&gt;https://medium.com/the-mission/why-excessive-consumption-limits-your-creativity-6e925dd66daa&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.macstories.net/stories/beyond-the-tablet/&#34;&gt;https://www.macstories.net/stories/beyond-the-tablet/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.optionsprofitcalculator.com/&#34;&gt;https://www.optionsprofitcalculator.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://seekingalpha.com/article/4254004-rentals-vs-reits-best-way-invest-real-estate-practical-case-study&#34;&gt;https://seekingalpha.com/article/4254004-rentals-vs-reits-best-way-invest-real-estate-practical-case-study&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: Should I quit my job? | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=20024943&#34;&gt;https://news.ycombinator.com/item?id=20024943&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.learning-mind.com/only-child-syndrome-signs-effects/&#34;&gt;https://www.learning-mind.com/only-child-syndrome-signs-effects/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: What is the real Value of Real Estate Agent? | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=14301230&#34;&gt;https://news.ycombinator.com/item?id=14301230&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Do you ever get that feeling when listening to a great song that makes all the hairs on your arm stand on end? - &lt;a href=&#34;https://www.indy100.com/article/music-goosebumps-some-people-science-research-emotions-psychology-study-harvard-7926781&#34;&gt;https://www.indy100.com/article/music-goosebumps-some-people-science-research-emotions-psychology-study-harvard-7926781&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The key to physical fitness isn&amp;rsquo;t exercise, it&amp;rsquo;s movement — Quartzy - &lt;a href=&#34;https://qz.com/quartzy/1641863/the-key-to-physical-fitness-isnt-exercise-its-movement/&#34;&gt;https://qz.com/quartzy/1641863/the-key-to-physical-fitness-isnt-exercise-its-movement/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://www.aaii.com/journal/article/a-comparison-of-backtesting-tools&#34;&gt;https://www.aaii.com/journal/article/a-comparison-of-backtesting-tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How to Automatically Backup a Linux VPS to a Separate Cloud Storage Service | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=20146648&#34;&gt;https://news.ycombinator.com/item?id=20146648&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How to parent more predictably (2018) | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=20173675&#34;&gt;https://news.ycombinator.com/item?id=20173675&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;It also appears that belonging to the London cluster made writers substantially more productive. Mitchell finds that the average writer in London saw their productivity go up by 12 percent. By comparison, writers in smaller clusters, in Dublin, Edinburgh, Oxford, and Cambridge, saw no such gains. Furthermore, being part of the London cluster increased the likelihood of an author having their work published in any given year by 24 percent. - &lt;a href=&#34;https://www.citylab.com/life/2019/06/british-irish-writers-london-clustering-dickens-woolf/590884/&#34;&gt;https://www.citylab.com/life/2019/06/british-irish-writers-london-clustering-dickens-woolf/590884/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Research led by the University of Exeter, published in Scientific Reports and funded by NIHR, found that people who spend at least 120 minutes in nature a week are significantly more likely to report good health and higher psychological wellbeing than those who don&amp;rsquo;t visit nature at all during an average week. However, no such benefits were found for people who visited natural settings such as town parks, woodlands, country parks and beaches for less than 120 minutes a week. - &lt;a href=&#34;https://medicalxpress.com/news/2019-06-hours-week-key-dose-nature.html&#34;&gt;https://medicalxpress.com/news/2019-06-hours-week-key-dose-nature.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The difference a dad can make - &lt;a href=&#34;https://www.evoke.org/articles/june-2019/Data-Driven/Fresh_Takes/the-difference-a-dad-can-make&#34;&gt;https://www.evoke.org/articles/june-2019/Data-Driven/Fresh_Takes/the-difference-a-dad-can-make&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: Has anybody successfully changed their career to become a writer? | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=16495718&#34;&gt;https://news.ycombinator.com/item?id=16495718&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: Have any former developers successfully changed careers? | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=20318965&#34;&gt;https://news.ycombinator.com/item?id=20318965&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: How do I get into electronics from scratch? | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=20300037&#34;&gt;https://news.ycombinator.com/item?id=20300037&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: If you were a coder who successfully changed careers, what do you do now? | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=14847646&#34;&gt;https://news.ycombinator.com/item?id=14847646&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: What do I tell my students about starting Freelancing? | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=20304980&#34;&gt;https://news.ycombinator.com/item?id=20304980&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;so you want to be a writer? by Charles Bukowski: &lt;a href=&#34;https://poets.org/poem/so-you-want-be-writer&#34;&gt;https://poets.org/poem/so-you-want-be-writer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The 10 books that changed my career as a software engineer: &lt;a href=&#34;https://storyforj.com/s/dk79PY&#34;&gt;https://storyforj.com/s/dk79PY&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;In May 2012 I made a commitment that changed my career: A simple task, completed every day, that skyrocketed my blog and allowed me to make over $30,000 in 6 weeks: &lt;a href=&#34;https://nathanbarry.com/commitment-changed-career/&#34;&gt;https://nathanbarry.com/commitment-changed-career/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;What is the Average Profit on a House Flip? - &lt;a href=&#34;https://investfourmore.com/average-house-flip-profit/&#34;&gt;https://investfourmore.com/average-house-flip-profit/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How This Real Estate Agent Made $100,000 In One Month From His YouTube Channel - &lt;a href=&#34;https://www.forbes.com/sites/jrose/2019/07/15/how-this-real-estate-agent-made-100000-in-one-month-from-his-youtube-channel/&#34;&gt;https://www.forbes.com/sites/jrose/2019/07/15/how-this-real-estate-agent-made-100000-in-one-month-from-his-youtube-channel/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Vonnegut: Can you believe this guy? He makes more money in a single day than we&amp;rsquo;ll make in our entire lives. And you wrote Catch-22! &amp;gt; Heller: Sure, but I have something he&amp;rsquo;ll never have. &amp;gt; Vonnegut: Yeah, Joe? What&amp;rsquo;s that? &amp;gt; Heller: Enough: &lt;a href=&#34;https://news.ycombinator.com/item?id=20436934&#34;&gt;https://news.ycombinator.com/item?id=20436934&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Books for Quants – Towards Data Science - &lt;a href=&#34;https://towardsdatascience.com/books-for-quants-1b0f51dd7745&#34;&gt;https://towardsdatascience.com/books-for-quants-1b0f51dd7745&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The deliberate dog body language of curving is used in polite greetings, negotiation, or as a calming signal. A head-on, frontal approach can be seen as confrontational. The curving could be the curving of the dog&amp;rsquo;s body (which makes a slight c-shape), or a directional curve in the path the dog walks on approach. Some have described it as a &amp;lsquo;banana walk&amp;rsquo;, an easy descriptive way to imagine the direction of walk, due to the shape of the path taken by the dog.
— &lt;a href=&#34;https://www.silentconversations.com/dog-body-language-curving-silent-conversations/&#34;&gt;https://www.silentconversations.com/dog-body-language-curving-silent-conversations/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;These writers got their start after age 35—there&amp;rsquo;s still hope for you: &lt;a href=&#34;https://theamericanscholar.org/35-over-35/&#34;&gt;https://theamericanscholar.org/35-over-35/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;6 Alternatives To Freelancing For Engineers – &lt;a href=&#34;https://medium.com/@AndrewPierno/6-alternatives-to-freelancing-for-engineers-f6e56d20f793&#34;&gt;https://medium.com/@AndrewPierno/6-alternatives-to-freelancing-for-engineers-f6e56d20f793&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How Long It&amp;rsquo;s Safe to Leave Food Unrefrigerated - &lt;a href=&#34;https://www.thekitchn.com/how-long-can-you-leave-cooked-foods-unrefrigerated-kitchen-facts-218225&#34;&gt;https://www.thekitchn.com/how-long-can-you-leave-cooked-foods-unrefrigerated-kitchen-facts-218225&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Anxiety Looks Different in Men – &lt;a href=&#34;https://www.wsj.com/articles/anxiety-looks-different-in-men-11564494352&#34;&gt;https://www.wsj.com/articles/anxiety-looks-different-in-men-11564494352&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The $61,392 Book Launch That Let Me Quit My Job: &lt;a href=&#34;https://adamwathan.me/the-book-launch-that-let-me-quit-my-job/&#34;&gt;https://adamwathan.me/the-book-launch-that-let-me-quit-my-job/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;The most important emotional accomplishment of the toddler years is reconciling the urge to become competent and self-reliant with the simultaneous and sometimes contradictory longing for parental love and protection.&amp;rdquo; — The Emotional Life of the Toddler by Alicia F. Lieberman - &lt;a href=&#34;http://a.co/ahiuBee&#34;&gt;http://a.co/ahiuBee&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The Essential 6 Month Calisthenics Workout Plan - &lt;a href=&#34;http://www.barbrothersgroningen.com/calisthenics-workout-plan/&#34;&gt;http://www.barbrothersgroningen.com/calisthenics-workout-plan/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Pop culture lionizes the dazzling brilliance of money managers on the autism spectrum. Reality rarely measures up: &lt;a href=&#34;https://www.institutionalinvestor.com/article/b1gq9tqwk8z108/They-Get-Fired-All-the-Time-And-They-Have-No-Idea-Why&#34;&gt;https://www.institutionalinvestor.com/article/b1gq9tqwk8z108/They-Get-Fired-All-the-Time-And-They-Have-No-Idea-Why&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;It is neither possible nor desirable to be always attuned and responsive to the moods and wishes of children.&amp;rdquo; — The Emotional Life of the Toddler by Alicia F. Lieberman - &lt;a href=&#34;http://a.co/fwr0A4E&#34;&gt;http://a.co/fwr0A4E&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Most knowledge worth having comes from practice. It comes from doing. It comes from creating. Reading about the trade war with China doesn&amp;rsquo;t make you smarter—it gives you something to say at dinner parties. It gives you the illusion that you have the vaguest idea what is happening in our enormously complex world: &lt;a href=&#34;https://tjcx.me/posts/consumption-distraction/&#34;&gt;https://tjcx.me/posts/consumption-distraction/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;but the often observed increased involvement of fathers in the toddler years may be linked to findings that fathers as a group are more likely than mothers to promote the adventurous exploration and challenging play that toddlers are now ready to join.&amp;rdquo; — The Emotional Life of the Toddler by Alicia F. Lieberman - &lt;a href=&#34;http://a.co/89HPMXr&#34;&gt;http://a.co/89HPMXr&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&amp;ldquo;One study, for example, found that children who showed a secure attachment to their fathers by seeking them out for comfort when feeling stressed had fewer behavior problems and showed more competence in school and peer groups than did those who had an insecure relationship with their fathers.&amp;rdquo; — The Emotional Life of the Toddler by Alicia F. Lieberman - &lt;a href=&#34;http://a.co/5KTWPMl&#34;&gt;http://a.co/5KTWPMl&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Living cells in the human body experience forces of various frequencies (for example breathing, heartbeats, walking, running, jumping and singing), typically ranging from 0.2 hertz to hundreds of hertz,&amp;quot; the researchers wrote. At the highest frequencies, cells became stiffer and the enzymes that guide gene transcription could not bind to the DNA, the team found.Cells&amp;rsquo; immediate responsiveness to force makes sense from an evolutionary perspective, Wang said.&amp;ldquo;Cells must be able to respond quickly to things in their environment so they can survive,&amp;rdquo; he said. - &lt;a href=&#34;https://phys.org/news/2020-04-physical-spurs-gene-reveals.html&#34;&gt;https://phys.org/news/2020-04-physical-spurs-gene-reveals.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Senate Stock Watcher - See What Senators are Trading: &lt;a href=&#34;https://senatestockwatcher.com/&#34;&gt;https://senatestockwatcher.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Analyzing HN readers&amp;rsquo; personal blogs | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=22822401%3E&#34;&gt;https://news.ycombinator.com/item?id=22822401&amp;gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Six super-short sci-fi stories that explore the post-COVID-19 world. - &lt;a href=&#34;https://sudowriters.com/anthology/fever-dreams/&#34;&gt;https://sudowriters.com/anthology/fever-dreams/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How A Goat Farmer Built A Doomsday Machine That Just Booked A 4,144% Return: &lt;a href=&#34;https://www.forbes.com/sites/antoinegara/2020/04/13/how-a-goat-farmer-built-a-doomsday-machine-that-just-booked-a-4144-return/&#34;&gt;https://www.forbes.com/sites/antoinegara/2020/04/13/how-a-goat-farmer-built-a-doomsday-machine-that-just-booked-a-4144-return/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How long does it take to beat your favorite games? - &lt;a href=&#34;https://howlongtobeat.com/#search1&#34;&gt;https://howlongtobeat.com/#search1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Find out how to entertain a two-year-old here! 40+ best activities for two-year-olds. Inside you will find indoor play ideas, sensory play prompts, and painting play activities. - &lt;a href=&#34;https://www.dayswithgrey.com/blog/top-activities-two-year-olds&#34;&gt;https://www.dayswithgrey.com/blog/top-activities-two-year-olds&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;An important point to note here is that automated trading does not mean it is free from human intervention. Automated trading has caused the focus of human intervention to shift from the process of trading to a more behind-the-scenes role, which involves devising newer alpha-seeking strategies on a regular basis: &lt;a href=&#34;https://blog.quantinsti.com/learn-algorithmic-trading/&#34;&gt;https://blog.quantinsti.com/learn-algorithmic-trading/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;In this article we&amp;rsquo;ll look into a real options trading strategy, like the strategies that we code for clients. This one however is based on a system from a trading book. As mentioned before, options trading books often contain systems that really work – which can not be said about day trading or forex trading books. The system examined here is indeed able to produce profits. Which is not surprising, since it apparently never loses. But it is also obvious that its author has never backtested it: &lt;a href=&#34;https://financial-hacker.com/algorithmic-options-trading-part-3/&#34;&gt;https://financial-hacker.com/algorithmic-options-trading-part-3/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Algorithmic Trading at home – how should I get started? | QuantNet Community: &lt;a href=&#34;https://quantnet.com/threads/algorithmic-trading-at-home-how-should-i-get-started.3611/&#34;&gt;https://quantnet.com/threads/algorithmic-trading-at-home-how-should-i-get-started.3611/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;This is the fourth part of a series of articles on backtesting trading strategies in Python. The previous ones described the following topics:introducing the zipline framework and presenting how to test basic strategies: &lt;a href=&#34;https://towardsdatascience.com/algorithmic-trading-based-on-technical-analysis-in-python-80d445dc6943&#34;&gt;https://towardsdatascience.com/algorithmic-trading-based-on-technical-analysis-in-python-80d445dc6943&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Algorithmic Trading Bot: Python - Towards Data Science: &lt;a href=&#34;https://towardsdatascience.com/algorithmic-trading-bot-python-ab8f42c37145&#34;&gt;https://towardsdatascience.com/algorithmic-trading-bot-python-ab8f42c37145&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;If you&amp;rsquo;re considering algo trading as a career then be sure to talk to a lot of people doing it. I spent several years trying to break in to the industry at a few prop firms with only middling success. Here are my observations:1. The vast majority of firms only hire people with CS or math degrees from top 10 schools, with an MS being the minimum. There are few exceptions.2. Nobody is making as much money as they used to.3. Depending on what firm you end up at you will probably spend a lot less time building cool strategies and a lot more time trying to shave off a few microseconds here and there.4. Be prepared for a pretty rough work environment. Swearing, violent outbursts, people being secretive and not sharing ideas.5. If you&amp;rsquo;re lucky, management will be STEM people. If you&amp;rsquo;re not, they will be former floor traders who have managed to stay alive this long. - Ask HN: How do I get started with Algo trading? | Hacker News - &lt;a href=&#34;https://news.ycombinator.com/item?id=11332960&#34;&gt;https://news.ycombinator.com/item?id=11332960&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: How to launch an algo trading side project? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=16376015&#34;&gt;https://news.ycombinator.com/item?id=16376015&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;I write (program, paint, animate, market, and so on) computer games like this one&lt;a href=&#34;https://greatergood.berkeley.edu/article/item/why_attachment_parenting_is_not_the_same_as_secure_attachment&#34;&gt;1&lt;/a&gt;. The recent economic troubles haven&amp;rsquo;t effected me negatively that much, instead it&amp;rsquo;s been a positive thing as more people are home and playing more games. I don&amp;rsquo;t necessarily want to &amp;lsquo;profit&amp;rsquo; from all the hardship around, but I&amp;rsquo;m glad to provide products that entertain and hopefully make the current situation a bit more bearable – that feels good.I got started over 10 years ago now, making Flash-based games and licensing them to various web portal and publishers, which was good money for a student back then! A little indie game developer golden age where you&amp;rsquo;d get a lot of players and also a few thousand dollars per game without too much trouble. I went on from there doing self-published games that anyone can buy on Steam or the Mac Store, both of which provide about 90% of my revenue, and the remaining 10% are from smaller stores and game distributors.&lt;a href=&#34;https://greatergood.berkeley.edu/article/item/why_attachment_parenting_is_not_the_same_as_secure_attachment&#34;&gt;1&lt;/a&gt; &lt;a href=&#34;https://store.steampowered.com/app/654960/The&#34;&gt;https://store.steampowered.com/app/654960/The&lt;/a&gt;_Eldritch_Zooke… &amp;lt;- My current project. - Ask HN: Successful one-person online businesses? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=22858035&#34;&gt;https://news.ycombinator.com/item?id=22858035&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: Those making $500/month on side projects in 2019 – Show and tell | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=20899863&#34;&gt;https://news.ycombinator.com/item?id=20899863&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: What is your passive income 2019? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=21389776&#34;&gt;https://news.ycombinator.com/item?id=21389776&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Build a Day-Trading Algorithm and Run it in the Cloud Using Only Free Services - &lt;a href=&#34;https://medium.com/automation-generation/build-a-day-trading-algorithm-and-run-it-in-the-cloud-for-free-805450150668&#34;&gt;https://medium.com/automation-generation/build-a-day-trading-algorithm-and-run-it-in-the-cloud-for-free-805450150668&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How To Be A Professional Author And Not Die Screaming And Starving In A Lightless Abyss – Chuck Wendig: &lt;a href=&#34;http://terribleminds.com/ramble/2019/09/17/how-to-be-a-professional-author-and-not-die-screaming-and-starving-in-a-lightless-abyss/&#34;&gt;http://terribleminds.com/ramble/2019/09/17/how-to-be-a-professional-author-and-not-die-screaming-and-starving-in-a-lightless-abyss/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How to Find Consulting Clients: &lt;a href=&#34;https://chrisachard.com/how-to-find-consulting-clients&#34;&gt;https://chrisachard.com/how-to-find-consulting-clients&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Introduction to Algotrading (2011) [pdf] | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=19215026&#34;&gt;https://news.ycombinator.com/item?id=19215026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Questions to ask a company during a job interview | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=20916749&#34;&gt;https://news.ycombinator.com/item?id=20916749&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Toddler Development: What Every Parent Needs to Know: &lt;a href=&#34;https://theeverymom.com/toddler-development-what-every-parent-needs-to-know/&#34;&gt;https://theeverymom.com/toddler-development-what-every-parent-needs-to-know/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;What&amp;rsquo;s good career advice you wouldn&amp;rsquo;t want to have your name on? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=21150930&#34;&gt;https://news.ycombinator.com/item?id=21150930&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: Why did you leave tech industry? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=22876241&#34;&gt;https://news.ycombinator.com/item?id=22876241&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: What did you do to get extra streams of income for yourself? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23010294&#34;&gt;https://news.ycombinator.com/item?id=23010294&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Using Reinforcement Learning in the Algorithmic Trading Problem | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23022864&#34;&gt;https://news.ycombinator.com/item?id=23022864&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Analysis of 41k dev agencies with hourly rates, team size and tech stack | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23115364&#34;&gt;https://news.ycombinator.com/item?id=23115364&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: Mind bending books to read and never be the same as before? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23151144&#34;&gt;https://news.ycombinator.com/item?id=23151144&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Things You Learn After 1 Year of Day Trading for a Living: &lt;a href=&#34;https://blog.usejournal.com/things-you-learn-after-1-year-of-day-trading-for-a-living-a97bbc8d19fa&#34;&gt;https://blog.usejournal.com/things-you-learn-after-1-year-of-day-trading-for-a-living-a97bbc8d19fa&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Early Child Development Abilities by Age: &lt;a href=&#34;https://pathways.org/all-ages/abilities/&#34;&gt;https://pathways.org/all-ages/abilities/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Youtube Workouts for Every Activity and Fitness Level | Outside Online - &lt;a href=&#34;https://www.outsideonline.com/2412248/best-youtube-workout-videos-channels&#34;&gt;https://www.outsideonline.com/2412248/best-youtube-workout-videos-channels&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: Ways to generate income when you&amp;rsquo;re at home without pay? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23258111&#34;&gt;https://news.ycombinator.com/item?id=23258111&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lots of Oppurtunities to make money online: &lt;a href=&#34;https://www.lotsofopps.com/&#34;&gt;https://www.lotsofopps.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: If you could work remote where would you live? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23294799&#34;&gt;https://news.ycombinator.com/item?id=23294799&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Autism severity can change substantially during early childhood: &lt;a href=&#34;https://health.ucdavis.edu/health-news/newsroom/autism-severity-can-change-substantially-during-early-childhood/2020/05&#34;&gt;https://health.ucdavis.edu/health-news/newsroom/autism-severity-can-change-substantially-during-early-childhood/2020/05&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: I recently lost my job, I want to pursue blogging as a career. Thoughts? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23431466&#34;&gt;https://news.ycombinator.com/item?id=23431466&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: How do I start my own consulting firm? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=13845681&#34;&gt;https://news.ycombinator.com/item?id=13845681&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: I implemented the life I designed: perfect but I feel lost. What now? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23450110&#34;&gt;https://news.ycombinator.com/item?id=23450110&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: What is the smartest career path to take? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23458316&#34;&gt;https://news.ycombinator.com/item?id=23458316&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Some possible career goals: &lt;a href=&#34;https://jvns.ca/blog/2018/09/30/some-possible-career-goals/&#34;&gt;https://jvns.ca/blog/2018/09/30/some-possible-career-goals/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: Is working as a developer on technical route until retirement feasible? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23503947&#34;&gt;https://news.ycombinator.com/item?id=23503947&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Machine Learning Field Guide: &lt;a href=&#34;https://www.kamwithk.com/machine-learning-field-guide-ckbbqt0iv025u5ks1a7kgjckx&#34;&gt;https://www.kamwithk.com/machine-learning-field-guide-ckbbqt0iv025u5ks1a7kgjckx&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Aging on Nautilus: Why You Can&amp;rsquo;t Help But Act Your Age: &lt;a href=&#34;http://aging.nautil.us/feature/218/why-you-cant-help-but-act-your-age&#34;&gt;http://aging.nautil.us/feature/218/why-you-cant-help-but-act-your-age&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;deerawan/react-native-flashcard-app · GitHub: &lt;a href=&#34;https://github.com/deerawan/react-native-flashcard-app/tree/master/utils&#34;&gt;https://github.com/deerawan/react-native-flashcard-app/tree/master/utils&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;GitHub – wesbos/burner-email-providers: A list of temporary email providers: &lt;a href=&#34;https://github.com/wesbos/burner-email-providers&#34;&gt;https://github.com/wesbos/burner-email-providers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: Consulting in tech. How to start? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23740167&#34;&gt;https://news.ycombinator.com/item?id=23740167&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: If given freedom to choose, what full-time job would you choose and why? &lt;a href=&#34;https://news.ycombinator.com/item?id=23772648&#34;&gt;https://news.ycombinator.com/item?id=23772648&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Learnings From A Year of Being Indie: &lt;a href=&#34;https://ryanashcraft.com/a-year-of-being-indie/&#34;&gt;https://ryanashcraft.com/a-year-of-being-indie/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;DIY Video Hosting: &lt;a href=&#34;https://tyler.io/diy-video-hosting/&#34;&gt;https://tyler.io/diy-video-hosting/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Why Helicopter Parenting Fosters Failure | Psychology Today: &lt;a href=&#34;https://www.psychologytoday.com/us/blog/the-baby-scientist/202007/why-helicopter-parenting-fosters-failure&#34;&gt;https://www.psychologytoday.com/us/blog/the-baby-scientist/202007/why-helicopter-parenting-fosters-failure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How you attach to people may explain a lot about your inner life | Science | The Guardian: &lt;a href=&#34;https://www.theguardian.com/science/2020/jan/10/psychotherapy-childhood-mental-health&#34;&gt;https://www.theguardian.com/science/2020/jan/10/psychotherapy-childhood-mental-health&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Tech Jobs for Good helps you find tech jobs at mission driven companies around the US: &lt;a href=&#34;https://techjobsforgood.com/?q=&amp;amp;impact_areas=Environment&amp;amp;impact_areas=Food+%26+Agriculture&#34;&gt;https://techjobsforgood.com/?q=&amp;amp;impact_areas=Environment&amp;amp;impact_areas=Food+%26+Agriculture&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: Former software engineers, what are you doing now? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=23951850&#34;&gt;https://news.ycombinator.com/item?id=23951850&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;GitHub – jeltehomminga/pubquiz: pubquiz: &lt;a href=&#34;https://github.com/jeltehomminga/pubquiz&#34;&gt;https://github.com/jeltehomminga/pubquiz&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Why Success Won&amp;rsquo;t Make You Happy – The Atlantic: &lt;a href=&#34;https://www.theatlantic.com/family/archive/2020/07/why-success-wont-make-you-happy/614731/&#34;&gt;https://www.theatlantic.com/family/archive/2020/07/why-success-wont-make-you-happy/614731/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Is Making Advanced GUI Applications with Godot the Future? | by Erik Engheim &lt;a href=&#34;https://medium.com/swlh/what-makes-godot-engine-great-for-advance-gui-applications-b1cfb941df3b&#34;&gt;https://medium.com/swlh/what-makes-godot-engine-great-for-advance-gui-applications-b1cfb941df3b&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;50 Magazines and Anthologies That Pay for Horror Fiction: &lt;a href=&#34;https://www.freedomwithwriting.com/freedom/uncategorized/50-magazines-and-anthologies-that-pay-for-horror-fiction/&#34;&gt;https://www.freedomwithwriting.com/freedom/uncategorized/50-magazines-and-anthologies-that-pay-for-horror-fiction/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;I Quit My Job. Here&amp;rsquo;s How I Planned the Start as an Entrepreneur | by Sjors van Dongen: &lt;a href=&#34;https://medium.com/@sjorsvandongen/i-quit-my-job-heres-how-i-planned-the-start-as-an-entrepreneur-7bc546631431&#34;&gt;https://medium.com/@sjorsvandongen/i-quit-my-job-heres-how-i-planned-the-start-as-an-entrepreneur-7bc546631431&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How do you find your passion? Am I off course? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=15993395&#34;&gt;https://news.ycombinator.com/item?id=15993395&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Notes on &amp;ldquo;Anthropology of Childhood&amp;rdquo; by David Lancy: &lt;a href=&#34;https://thewholesky.wordpress.com/2020/08/27/notes-on-anthropology-of-childhood-by-david-lancy/&#34;&gt;https://thewholesky.wordpress.com/2020/08/27/notes-on-anthropology-of-childhood-by-david-lancy/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Most favorited Hacker News posts of all time: &lt;a href=&#34;https://observablehq.com/@tomlarkworthy/hacker-favourites-analysis&#34;&gt;https://observablehq.com/@tomlarkworthy/hacker-favourites-analysis&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Algorithmic Trading Using Logistic Regression – Hands-Off Investing: &lt;a href=&#34;https://handsoffinvesting.com/an-algorithmic-trading-strategy-using-logistic-regression/&#34;&gt;https://handsoffinvesting.com/an-algorithmic-trading-strategy-using-logistic-regression/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Ask HN: What is your favorite motto? | Hacker News: &lt;a href=&#34;https://news.ycombinator.com/item?id=24436135&#34;&gt;https://news.ycombinator.com/item?id=24436135&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Texas Agent FAQ&amp;rsquo;s | Park and Refer: &lt;a href=&#34;https://parkandrefer.com/texas-agent-faqs/&#34;&gt;https://parkandrefer.com/texas-agent-faqs/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;All 149 Combined Ark Invest ETF Holdings: &lt;a href=&#34;https://cathiesark.com/ark-funds-combined/complete-holdings&#34;&gt;https://cathiesark.com/ark-funds-combined/complete-holdings&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://marketstream.io/&#34;&gt;https://marketstream.io/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
    </item>
    <item>
      <title>I Took a Pill in Ibiza</title>
      <link>https://chaosplay.com/notes/songs/2021-09-28-i-took-a-pill-in-ibiza/</link>
      <pubDate>Wed, 29 Sep 2021 03:55:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2021-09-28-i-took-a-pill-in-ibiza/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/foE1mO2yM04?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;h2 id=&#34;lyrics&#34;&gt;Lyrics&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I took a pill in Ibiza
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;To show Avicii I was cool
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And when I finally got sober, felt ten years older
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But fuck it, it was something to do
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m living out in LA
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I drive a sports car just to prove
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m a real big baller &amp;#39;cause I made a million dollars
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I spend it on girls and shoes
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But you don&amp;#39;t wanna be high like me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Never really knowing why like me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t ever wanna step off that roller coaster and be all alone
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t wanna ride the bus like this
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Never knowing who to trust like this
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t wanna be stuck up on that stage singing
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Stuck up on that stage singing
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;All I know are sad songs, sad songs
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Darling, all I know are sad songs, sad songs
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m just a singer who already blew his shot
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I get along with old timers
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#39;Cause my name&amp;#39;s a reminder of a pop song people forgot
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I can&amp;#39;t keep a girl, no
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#39;Cause as soon as the sun comes up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I cut &amp;#39;em all loose and work&amp;#39;s my excuse
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But the truth is I can&amp;#39;t open up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Now you don&amp;#39;t wanna be high like me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Never really knowing why like me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t ever wanna step off that roller coaster and be all alone
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t wanna ride the bus like this
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Never knowing who to trust like this
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t wanna be stuck up on that stage singing
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Stuck up on that stage singing
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;All I know are sad songs, sad songs
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Darling, all I know are sad songs, sad songs (hey)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I took a plane to my hometown
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I brought my pride and my guitar
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;All my friends are all gone but there&amp;#39;s manicured lawns
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And the people still think I&amp;#39;m a star
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I walked around downtown
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I met some fans on Lafayette
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;They said tell us how to make it &amp;#39;cause we&amp;#39;re getting real impatient
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So I looked &amp;#39;em in the eye and said
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t wanna be high like me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Never really knowing why like me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t ever wanna step off that roller coaster and be all alone
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t wanna ride the bus like this
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Never knowing who to trust like this
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t wanna be stuck up on that stage singing
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Stuck up on that stage singing
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;All that I know are sad songs, sad songs
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Darling, all that I know are sad songs, sad songs
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Be As You Are</title>
      <link>https://chaosplay.com/notes/songs/2021-09-27-be-as-you-are/</link>
      <pubDate>Tue, 28 Sep 2021 03:49:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2021-09-27-be-as-you-are/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/v1tSfQbtKMU?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;h2 id=&#34;lyrics&#34;&gt;Lyrics&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Virginia Woolf and poetry
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;No one seemed to notice me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Being young was getting so old
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Cheap beer and cigarettes
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Life was like a movie set
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I seemed to be given no role
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But in times of trouble
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I can turn to my mother
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I know that she gon&amp;#39; understand
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So at age 18
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I cried to my mother
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And she told me, &amp;#34;young man&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#34;There are moments when you fall to the ground
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But you are stronger than you feel you are now
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t always have to speak so loud, no
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Just be as you are
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Life is not always a comfortable ride
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Everybody&amp;#39;s got scars that they hide
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And everybody plays the fool sometimes, yeah
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Just be as you are&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;They played me on the radio
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And everything was changing, so
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I thought I was all the way grown
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But I can still remember in that cold November
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;When I realized I&amp;#39;m all alone
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But in times of trouble
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I can turn to my mother
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I know that she gon&amp;#39; understand
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;So at age 22
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I cried to my mother
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And she told me, &amp;#34;young man&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#34;There are moments when you fall to the ground
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But you are stronger than you feel you are now
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t always have to speak so loud, no
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Just be as you are
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;It doesn&amp;#39;t matter if you become some star
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Life is better when you open your heart
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t always have to act so hard, no
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Just be as you are&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#34;There are moments when you fall to the ground
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But you are stronger than you feel you are now
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t always have to speak so loud, no
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Just be as you are
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;It doesn&amp;#39;t matter if you become some star
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Life is better when you open your heart
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You don&amp;#39;t always have to act so hard, no
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Just be as you are&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/mBPk1MaBC6U?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;</description>
    </item>
    <item>
      <title>Oculus Quest 2 Review</title>
      <link>https://chaosplay.com/posts/thoughts/2021-09-27-oculus-quest-2-review/</link>
      <pubDate>Mon, 27 Sep 2021 14:51:01 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2021-09-27-oculus-quest-2-review/</guid>
      <description>&lt;p&gt;I was debating between PS5 and &lt;a href=&#34;https://www.amazon.com/Oculus-Quest-Advanced-All-One-2/dp/B08F7PTF53?dchild=1&amp;amp;keywords=quest+2&amp;amp;qid=1622821813&amp;amp;sr=8-3&amp;amp;linkCode=ll1&amp;amp;tag=chaosplay-20&amp;amp;linkId=6781084544390233cd903fca84a4a939&amp;amp;language=en_US&amp;amp;ref_=as_li_ss_tl&#34;&gt;Quest 2&lt;/a&gt; (Affiliate link), and yes it is like comparing apples and oranges, but in the end Quest 2 won. I will likely buy PS5 at some point though. But before I buy PS5, I need a new TV with 4K and HDR. It seems pointless to play PS5 on 1080p TV from early 2010s.&lt;/p&gt;
&lt;p&gt;Quest 2 is not my first experience with Virtual Reality. I tried PSVR about 2-3 years ago but the mess of wires really turned me off with the idea of VR. When I found out that Quest 2 is completely wireless, I got interested in it again. I was not very excited about needing Facebook account to use it though.&lt;/p&gt;</description>
    </item>
    <item>
      <title>To Sufi by Allama Iqbal</title>
      <link>https://chaosplay.com/posts/hobbies/writings/2021-09-26-to-sufi-by-allama-iqbal/</link>
      <pubDate>Mon, 27 Sep 2021 03:37:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/writings/2021-09-26-to-sufi-by-allama-iqbal/</guid>
      <description>&lt;p&gt;&lt;em&gt;I translated this poem in my freshman year for my English class.&lt;/em&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    This is a world of miracles for you.

    But for me, this is the world of randomness.

    The world of fantasies is poor,

    But poorer is the world of births and deaths.

    It is no wonder that your gaze will change it all,

    The world of possibilities is calling you.
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Bulla ki jaana main kaun</title>
      <link>https://chaosplay.com/notes/songs/2021-09-25-bulla-ki-jaana-main-kaun/</link>
      <pubDate>Sun, 26 Sep 2021 03:26:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2021-09-25-bulla-ki-jaana-main-kaun/</guid>
      <description>&lt;h2 id=&#34;lyrics-with-translations&#34;&gt;Lyrics with Translations&lt;/h2&gt;
&lt;p&gt;Bulla ki jaana main kaun
Bulla ki jaana main kaun&lt;/p&gt;
&lt;p&gt;Na main moman vich maseetan
Na main vich kufar dian reetan
Na main pakan vich paleetan
Na main andar bed kitaban
Na main rehnda phaang sharaban
Na main rehnda mast kharaban
Na main shadi na ghamnaki
Na main vich paleetan pakeen
Na main aaabi na main khaki
Na main aatish na main paun&lt;/p&gt;
&lt;p&gt;Bulla ki jaana main kaun&lt;/p&gt;</description>
    </item>
    <item>
      <title>New Career Direction</title>
      <link>https://chaosplay.com/posts/fatherhood/2021-09-25-new-career-direction/</link>
      <pubDate>Sun, 26 Sep 2021 03:19:34 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2021-09-25-new-career-direction/</guid>
      <description>&lt;p&gt;Today Ayden said, &amp;ldquo;Jack (his friend) wants to be firetruck driver and I will be ambulance driver. Jack will put out fires. I will take people to hospital. It will be so much fun.&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Father &amp; Son</title>
      <link>https://chaosplay.com/notes/songs/2021-09-24-father-son/</link>
      <pubDate>Sat, 25 Sep 2021 00:40:46 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2021-09-24-father-son/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/P6zaCV4niKk?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;h2 id=&#34;lyrics&#34;&gt;Lyrics&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;It&amp;#39;s not time to make a change
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Just relax, take it easy
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You&amp;#39;re still young, that&amp;#39;s your fault
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;There&amp;#39;s so much you have to know
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Find a girl, settle down
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If you want you can marry
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Look at me, I am old, but I&amp;#39;m happy
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I was once like you are now
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I know that it&amp;#39;s not easy
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;To be calm when you&amp;#39;ve found
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Something going on
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But take your time, think a lot
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Think of everything you&amp;#39;ve got
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;For you will still be here tomorrow
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But your dreams may not
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;How can I try to explain?
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;When I do he turns away again
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;It&amp;#39;s always been the same, same old story
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;From the moment I could talk
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I was ordered to listen
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Now there&amp;#39;s a way
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I know that I have to go away
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I know I have to go
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;It&amp;#39;s not time to make a change
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Just relax, take it slowly
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You&amp;#39;re still young, that&amp;#39;s your fault
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;There&amp;#39;s so much you have to go through
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Find a girl, settle down
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If you want you can marry
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Look at me, I am old, but I&amp;#39;m happy
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;All the times that I&amp;#39;ve cried
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Keeping all the things I knew inside
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;It&amp;#39;s hard, but it&amp;#39;s harder to ignore it
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If they were right I&amp;#39;d agree
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But it&amp;#39;s them they know, not me
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Now there&amp;#39;s a way
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And I know that I have to go away
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I know I have to go
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Growing Up by Macklemore</title>
      <link>https://chaosplay.com/notes/songs/2021-09-23-growing-up-by-macklemore/</link>
      <pubDate>Thu, 23 Sep 2021 16:38:41 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2021-09-23-growing-up-by-macklemore/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/6mhtJduoCZ0?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;

&lt;h2 id=&#34;lyrics&#34;&gt;Lyrics&lt;/h2&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;They say boys don&amp;#39;t cry
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But your dad has shed a lot of tears
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;They say I should be a strong man
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But baby, I&amp;#39;m still filled with fear
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Sometimes I don&amp;#39;t know who I am
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Sometimes I question why I&amp;#39;m here
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I just wanna be a good dad
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Will I be, I have no idea
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;They say girls shouldn&amp;#39;t be tough
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And moms should raise their kids at home
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But baby, I know that that isn&amp;#39;t true
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;#39;Cause your momma&amp;#39;s the toughest person I know
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I wanna raise you to be like her
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And watch you show the world how to do it on your own
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m still tryna figure out who I am
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I don&amp;#39;t wanna mess this up or do this wrong
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m gonna be there for your first breath
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I don&amp;#39;t know if I&amp;#39;ll be there for your first step
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I can promise you that I&amp;#39;ll try to work less
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But the tour&amp;#39;s routed, and I got this album
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Put in so many hours, and I just want the outcome
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;To be something that I can look back and I can be proud of
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t wanna be a dad that&amp;#39;s living in FaceTime
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But I&amp;#39;ve got a world to sing to and you at the same time
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I won&amp;#39;t spoil you, you can trust that
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;For your sweet sixteen, you get a bus pass
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Had your heart broken, been there, done that
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I love you and I can&amp;#39;t give you enough of that
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Get back to community that raised you up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Read Langston Hughes, I suggest A Raisin in the Sun
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Listen to Sam Cooke, a change gon&amp;#39; come
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You put the work in, don&amp;#39;t worry about the praise, my love
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t try to change the world, find something that you love
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And do it every day
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Do that for the rest of your life
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And eventually, the world will change
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;ll be patient, one more month
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You&amp;#39;ll wrap your fingers round my thumb
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Times are changing, I know, but who am I if
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m the person you become
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If I&amp;#39;m still growing up, up, up, up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m still growing up, up, up, up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m still growing up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I recommend that you read The Alchemist
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Listen to your teachers, but cheat in calculus
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tell the truth, regardless of the consequence
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;And every day, give your momma a compliment
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Take your girl to the prom
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;But don&amp;#39;t get too drunk hanging out the limo
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Slow dance with your woman in your arms
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Sneak her in after but boy, you better tiptoe
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Don&amp;#39;t wake your mom up, do yoga, learn &amp;#39;bout karma
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Find God, but leave the dogma
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;The quickest way to happiness learning to be selfless
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Ask more questions, talk about yourself less
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Study David Bowie, James Baldwin and 2Pac
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Watch the sun set with best friends from a rooftop
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Wear a helmet, don&amp;#39;t be stupid, jaywalk, but look before you do it
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If it snows, go outside, build a jump, get some help
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Get a sled, thrash the hill with your friends, &amp;#39;til it melts
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Go to festivals, camp, fall in love and dance
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You&amp;#39;re only young once, my loved one, this is your chance
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Take risks, &amp;#39;cause life moves so fast
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You&amp;#39;re only young once, my loved one, this is your chanceI&amp;#39;ll be patient, one more month
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You&amp;#39;ll wrap your fingers round my thumb
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Times are changing, I know, but who am I
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If I&amp;#39;m the person you become
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If I&amp;#39;m still growing up, up, up, up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m still growing up, up, up, up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;ll be patient, one more month
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;You&amp;#39;ll wrap your fingers round my thumb
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Times are changing, I know, but who am I
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If I&amp;#39;m the person you become
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If I&amp;#39;m still growing up, still growing up, still growing up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If I&amp;#39;m still growing up, still growing up, still growing up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;If I&amp;#39;m still growing up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m still growing up, ooh
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m still growing up
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;I&amp;#39;m still growing up
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>What do you want to be when you grow up</title>
      <link>https://chaosplay.com/posts/fatherhood/2021-07-16-what-do-you-want-to-be/</link>
      <pubDate>Sat, 17 Jul 2021 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2021-07-16-what-do-you-want-to-be/</guid>
      <description>&lt;p&gt;Yesterday, after I picked up Ayden from his daycare, he said, he didn&amp;rsquo;t know what he wants to be. I guess they asked him this question in his class. I told him he has plenty of time to figure it out. There is no rush.&lt;/p&gt;
&lt;p&gt;Then later at night he said, &amp;ldquo;Baba, I know what I want to be. I want to be a Tow Truck Driver.&amp;rdquo; He said it would be so much fun to tow cars.&lt;/p&gt;</description>
    </item>
    <item>
      <title>LeetCode 206. Reverse Linked List</title>
      <link>https://chaosplay.com/notes/leetcode/2021-06-07-leetcode-206-reverse-linked-list/</link>
      <pubDate>Tue, 08 Jun 2021 02:29:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-06-07-leetcode-206-reverse-linked-list/</guid>
      <description>&lt;p&gt;Here is a quick solution to &lt;a href=&#34;https://leetcode.com/problems/reverse-linked-list/&#34;&gt;Reverse Linked List&lt;/a&gt; problem.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * Definition for singly-linked list.
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * function ListNode(val, next) {
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; *     this.val = (val===undefined ? 0 : val)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; *     this.next = (next===undefined ? null : next)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * }
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {ListNode} head
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {ListNode}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;reverseList&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;head&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;curr&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;head&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;prev&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;null&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;curr&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;curr&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;curr&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;prev&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;prev&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;curr&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;curr&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;prev&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Importing plotly failed. Interactive plots will not work.</title>
      <link>https://chaosplay.com/notes/micro/2021-06-02-importing-plotly-failed-interactive-plots-will-not-work/</link>
      <pubDate>Wed, 02 Jun 2021 16:27:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2021-06-02-importing-plotly-failed-interactive-plots-will-not-work/</guid>
      <description>&lt;p&gt;Fix:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;pip3 install --upgrade plotly&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>LeetCode 560. Subarray Sum Equals K</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-21-leetcode-560-subarray-sum-equals-k/</link>
      <pubDate>Fri, 21 May 2021 17:27:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-21-leetcode-560-subarray-sum-equals-k/</guid>
      <description>&lt;p&gt;Brute Force Solution to &lt;a href=&#34;https://leetcode.com/problems/subarray-sum-equals-k/&#34;&gt;Subarray Sum Equals K&lt;/a&gt; problem from LeetCode:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {number[]} nums
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {number} k
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {number}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;subarraySum&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;, &lt;span style=&#34;color:#a6e22e&#34;&gt;k&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;currSum&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;currSum&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;k&lt;/span&gt;) &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;j&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;j&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;j&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;currSum&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;j&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;currSum&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;k&lt;/span&gt;) &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Optimized solution after cheating a bit:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {number[]} nums
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {number} k
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {number}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;subarraySum&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;, &lt;span style=&#34;color:#a6e22e&#34;&gt;k&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;m&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;new&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Map&lt;/span&gt;();
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;sum&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#a6e22e&#34;&gt;m&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;set&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;sum&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;sum&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;m&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;has&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;sum&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;k&lt;/span&gt;)) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;m&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;get&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;sum&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;k&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#f92672&#34;&gt;!&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;m&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;has&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;sum&lt;/span&gt;)) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;m&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;set&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;sum&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;m&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;set&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;sum&lt;/span&gt;, &lt;span style=&#34;color:#a6e22e&#34;&gt;m&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;get&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;sum&lt;/span&gt;) &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Runtime&lt;/strong&gt;: 96 ms, faster than 94.76% of JavaScript online submissions for Subarray Sum Equals K.&lt;/p&gt;</description>
    </item>
    <item>
      <title>LeetCode 2. Add Two Numbers</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-19-leetcode-2-add-two-numbers/</link>
      <pubDate>Wed, 19 May 2021 14:51:26 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-19-leetcode-2-add-two-numbers/</guid>
      <description>&lt;p&gt;Here is my solution to &lt;a href=&#34;https://leetcode.com/problems/add-two-numbers/&#34;&gt;Add Two Numbers&lt;/a&gt; problem in PHP:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; * Definition for a singly-linked list.
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; * class ListNode {
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; *     public $val = 0;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; *     public $next = null;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; *     function __construct($val = 0, $next = null) {
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; *         $this-&amp;gt;val = $val;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; *         $this-&amp;gt;next = $next;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; *     }
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; * }
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Solution&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param ListNode $l1
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param ListNode $l2
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @return ListNode
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;addTwoNumbers&lt;/span&gt;($l1, $l2) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $ans &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;new&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ListNode&lt;/span&gt;(&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;, &lt;span style=&#34;color:#66d9ef&#34;&gt;null&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $p &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $l1;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $q &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $l2;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $current &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $ans;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $carry&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt; ($p &lt;span style=&#34;color:#f92672&#34;&gt;!=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;null&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt; $q &lt;span style=&#34;color:#f92672&#34;&gt;!=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;null&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $x &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;isset&lt;/span&gt;($p) &lt;span style=&#34;color:#f92672&#34;&gt;?&lt;/span&gt; $p&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;val&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $y &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;isset&lt;/span&gt;($q) &lt;span style=&#34;color:#f92672&#34;&gt;?&lt;/span&gt; $q&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;val&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $sum &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $carry &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; $x &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; $y;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $carry &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;int&lt;/span&gt;) ($sum&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $current&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;new&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ListNode&lt;/span&gt;($sum&lt;span style=&#34;color:#f92672&#34;&gt;%&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $current &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $current&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($p &lt;span style=&#34;color:#f92672&#34;&gt;!=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;null&lt;/span&gt;) $p &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $p&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($q &lt;span style=&#34;color:#f92672&#34;&gt;!=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;null&lt;/span&gt;) $q &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $q&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($carry &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $current&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;new&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ListNode&lt;/span&gt;($carry);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $ans&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;next&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Docker in 5 minutes</title>
      <link>https://chaosplay.com/posts/work/dev/2021-05-17-docker-in-5-minutes/</link>
      <pubDate>Mon, 17 May 2021 16:09:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2021-05-17-docker-in-5-minutes/</guid>
      <description>&lt;p&gt;I have been using Docker and Kubernetes for several years now but never really took any time to really read about it. There were a lot of gaps in my understanding of how Docker works and what really is possible with it. Just recently my employer started to offer Udemy&amp;rsquo;s subscription, so I took &lt;a href=&#34;https://ibm-learning.udemy.com/course/learn-docker/learn/lecture/18018921#overview&#34;&gt;Hands on Docker course&lt;/a&gt;. Here are some of the important things I learned in this course.&lt;/p&gt;
&lt;h2 id=&#34;where-do-you-run-docker-containers&#34;&gt;Where do you run Docker containers&lt;/h2&gt;
&lt;p&gt;You run these in Windows or MacOS but most likely you will use Linux in production. And unlike Windows and MacOS, you can run Docker on Linux VPS.&lt;/p&gt;</description>
    </item>
    <item>
      <title>LeetCode 7. Reverse Integer</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-16-leetcode-7-reverse-integer/</link>
      <pubDate>Sun, 16 May 2021 17:30:06 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-16-leetcode-7-reverse-integer/</guid>
      <description>&lt;p&gt;My initial solution for Reverse Integer problem:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {number} x
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {number}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;reverse&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;x&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;#39;&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;x&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;-&amp;#39;&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;x&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;*=-&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#a6e22e&#34;&gt;str&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;x&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;toString&lt;/span&gt;();
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;str&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;--&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;str&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; parseInt(&lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;**&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;31&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;(&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;**&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;31&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;ans&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;results&#34;&gt;Results&lt;/h2&gt;
&lt;p&gt;Runtime: 104 ms, faster than 34.78% of JavaScript online submissions for Reverse Integer.&lt;/p&gt;
&lt;p&gt;Memory Usage: 40.5 MB, less than 33.80% of JavaScript online submissions for Reverse Integer.&lt;/p&gt;</description>
    </item>
    <item>
      <title>LeetCode 3. Longest Substring Without Repeating Characters</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-11-leetcode-3-longest-substring-without-repeating-characters/</link>
      <pubDate>Wed, 12 May 2021 03:41:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-11-leetcode-3-longest-substring-without-repeating-characters/</guid>
      <description>&lt;p&gt;Here is my solution in PHP to &lt;a href=&#34;https://leetcode.com/problems/longest-substring-without-repeating-characters/&#34;&gt;this problem.&lt;/a&gt;&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Solution&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param String $s
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @return Integer
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;lengthOfLongestSubstring&lt;/span&gt;($s) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $n &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;strlen&lt;/span&gt;($s);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $ans &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $i &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $j &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $arr &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt; ($i &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; $n &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; $j &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; $n) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#f92672&#34;&gt;!&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;in_array&lt;/span&gt;($s[$j], $arr)) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $arr[] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $s[$j&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $ans &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;max&lt;/span&gt;($ans, $j&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;$i);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#a6e22e&#34;&gt;array_splice&lt;/span&gt;($arr, &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $ans;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And here is solution JavaScript based on this &lt;a href=&#34;https://ibm-learning.udemy.com/course/master-the-coding-interview-big-tech-faang-interviews/learn/lecture/22188586#notes&#34;&gt;Udemy lesson&lt;/a&gt;:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Json_error_ctrl_char</title>
      <link>https://chaosplay.com/posts/work/dev/2021-05-10-json_error_ctrl_char/</link>
      <pubDate>Mon, 10 May 2021 11:12:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2021-05-10-json_error_ctrl_char/</guid>
      <description>&lt;p&gt;I was using &lt;code&gt;mcrypt&lt;/code&gt; to encrypt &lt;code&gt;json_encoded&lt;/code&gt; data.&lt;/p&gt;
&lt;p&gt;On other side, mycrypt was able to decrpyt data but &lt;code&gt;json_decode&lt;/code&gt; was not working. It would throw &lt;code&gt;JSON\_ERROR\_CTRL_CHAR&lt;/code&gt; error.&lt;/p&gt;
&lt;p&gt;However, without mcrypt, json_decode worked flawlessly.&lt;/p&gt;
&lt;p&gt;After some trial and error, I found that applying &lt;code&gt;trim&lt;/code&gt; function after decrypting data would let me use json_decode without any issues.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Find Large Directories on AIX</title>
      <link>https://chaosplay.com/notes/micro/2021-05-09-find-large-directories-on-aix/</link>
      <pubDate>Sun, 09 May 2021 21:19:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2021-05-09-find-large-directories-on-aix/</guid>
      <description>&lt;p&gt;I usually run it from under a partition which is running out of space. It can take a while.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;du -g | sort -n -r&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Error Xcode Select Error Tool Xcodebuild Requires Xcode Active Developer Directory Command Line Tools Instance</title>
      <link>https://chaosplay.com/posts/work/dev/2021-05-09-error-xcode-select-error-tool-xcodebuild-requires-xcode-active-developer-directory-command-line-tools-instance/</link>
      <pubDate>Sun, 09 May 2021 21:17:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2021-05-09-error-xcode-select-error-tool-xcodebuild-requires-xcode-active-developer-directory-command-line-tools-instance/</guid>
      <description>&lt;p&gt;Playing with Cordova, I was getting this error when building iOS version:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Error: xcode-select: error: tool &#39;xcodebuild&#39; requires Xcode,
but active developer directory is a command line tools instance
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Even full install of Xcode didn&amp;rsquo;t fix this error.&lt;/p&gt;
&lt;p&gt;The solution was to run following command to use full Xcode instead of command line tools version that I had installed earlier:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setup Outgoing Email on Lightsail Ubuntu VPS</title>
      <link>https://chaosplay.com/posts/work/dev/2021-05-09-setup-outgoing-email-on-lightsail-ubuntu-vps/</link>
      <pubDate>Sun, 09 May 2021 21:10:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2021-05-09-setup-outgoing-email-on-lightsail-ubuntu-vps/</guid>
      <description>&lt;p&gt;I followed instructions here: &lt;a href=&#34;https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-18-04&#34;&gt;https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-18-04&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Everything seemed okay but email were not getting delivered. Logs showed me that smtp connections were timing out:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;tail -f /var/log/mail.log
May  3 12:28:10 postfix/smtp[3160]: connect to gmail-smtp-in.l.google.com[172.217.197.27]:25: Connection timed out
May  3 12:28:10  postfix/smtp[3160]: connect to alt1.gmail-smtp-in.l.google.com[2800:3f0:4003:c00::1a]:25: Network is unreachable
May  3 12:28:40 postfix/smtp[3160]: 4984C41A1E: to=&amp;lt;xxxx@gmail.com&amp;gt;, relay=none, delay=3246, delays=3186/0.01/60/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:400b:c00::1a]:25: Network is unreachable)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;However, I could ping any of above ip addresses just fine.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Files Empty in html form?</title>
      <link>https://chaosplay.com/notes/micro/2021-05-08-files-empty-in-html-form/</link>
      <pubDate>Sat, 08 May 2021 21:15:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2021-05-08-files-empty-in-html-form/</guid>
      <description>&lt;p&gt;Put &lt;code&gt;enctype=&amp;quot;multipart/form-data&amp;quot;&lt;/code&gt; in your form tag.&lt;/p&gt;</description>
    </item>
    <item>
      <title>hsts Neterr_cert_common_name_invalid</title>
      <link>https://chaosplay.com/posts/work/dev/2021-05-08-hsts-neterr_cert_common_name_invalid/</link>
      <pubDate>Sat, 08 May 2021 21:14:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2021-05-08-hsts-neterr_cert_common_name_invalid/</guid>
      <description>&lt;p&gt;Without full understanding, I had enabled &lt;code&gt;HSTS&lt;/code&gt; on amerkhalid.com with option &lt;code&gt;includeSubDomains&lt;/code&gt;. I had a subdomain that was used as &amp;ldquo;Custom Domain&amp;rdquo; to SmugMug site. After enabling HSTS, these subdomains started to throw &lt;code&gt;NET::ERR_CERT_COMMON_NAME_INVALID&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The fix is of course simple, don&amp;rsquo;t use &lt;code&gt;includeSubDomains&lt;/code&gt;. But that opens up your top level domain to man in middle attacks.&lt;/p&gt;
&lt;p&gt;For now, I decided to follow the best practices and leave &lt;code&gt;includeSubDomains&lt;/code&gt; enabled. And decided to not use custom domain for my SmugMug site.&lt;/p&gt;</description>
    </item>
    <item>
      <title>TypeError: require.extensions.hasOwnProperty is not a function</title>
      <link>https://chaosplay.com/posts/work/dev/2021-05-08-typeerror-require-extensions-hasownproperty-is-not-a-function/</link>
      <pubDate>Sat, 08 May 2021 21:07:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2021-05-08-typeerror-require-extensions-hasownproperty-is-not-a-function/</guid>
      <description>&lt;p&gt;While playing with https://github.com/alexa/interactive-adventure-game-tool, I ran into following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt; interactive-adventure-game-tool@1.0.0 start /Users/amer/alexa/interactive-adventure-game-tool
&amp;gt; node node_modules/gulp/bin/gulp.js

/Users/amer/alexa/interactive-adventure-game-tool/node_modules/require-dir/index.js:97
            if (!require.extensions.hasOwnProperty(ext)) {
                                    ^

TypeError: require.extensions.hasOwnProperty is not a function
    at requireDir (/Users/amer/alexa/interactive-adventure-game-tool/node_modules/require-dir/index.js:97:37)
    at Object.&amp;lt;anonymous&amp;gt; (/Users/amer/alexa/interactive-adventure-game-tool/gulpfile.js:1:85)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at Liftoff.handleArguments (/Users/amer/alexa/interactive-adventure-game-tool/node_modules/gulp/bin/gulp.js:116:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! interactive-adventure-game-tool@1.0.0 start: `node node_modules/gulp/bin/gulp.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the interactive-adventure-game-tool@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/amer/.npm/_logs/2018-01-02T05_12_24_832Z-debug.log
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The solution was to &lt;a href=&#34;https://github.com/alexa/interactive-adventure-game-tool/issues/54#issuecomment-345568956&#34;&gt;update &lt;code&gt;require-dir&lt;/code&gt; to version 0.3.2&lt;/a&gt; in package.json and run &lt;code&gt;npm install&lt;/code&gt; again.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Disable Ping in Linux</title>
      <link>https://chaosplay.com/notes/micro/2021-05-07-disable-ping-in-linux/</link>
      <pubDate>Sat, 08 May 2021 02:31:24 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2021-05-07-disable-ping-in-linux/</guid>
      <description>&lt;pre&gt;&lt;code&gt;echo 1 &amp;gt;/proc/sys/net/ipv4/icmp_echo_ignore_all
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>LeetCode 1664: Ways to Make a Fair Array</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-07-leetcode-1664-ways-to-make-a-fair-array/</link>
      <pubDate>Sat, 08 May 2021 01:37:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-07-leetcode-1664-ways-to-make-a-fair-array/</guid>
      <description>&lt;p&gt;I tried to do this all by myself but got stuck, ended up transpiling &lt;a href=&#34;https://leetcode.com/problems/ways-to-make-a-fair-array/discuss/944567/Java-O(N)-and-constant-space-beats-100-easy-solution&#34;&gt;this solution&lt;/a&gt; in PHP.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Solution&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param Integer[] $nums
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @return Integer
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;waysToMakeFair&lt;/span&gt;($nums) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $len &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;count&lt;/span&gt;($nums);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $ans &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $leftOdd &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $rightOdd &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $leftEven &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $rightEven &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; ($i&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; $i&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;$len; $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($i&lt;span style=&#34;color:#f92672&#34;&gt;%&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $rightEven &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; $nums[$i];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $rightOdd &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; $nums[$i];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; ($i&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; $i&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;$len; $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($i&lt;span style=&#34;color:#f92672&#34;&gt;%&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $rightEven &lt;span style=&#34;color:#f92672&#34;&gt;-=&lt;/span&gt; $nums[$i];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $rightOdd &lt;span style=&#34;color:#f92672&#34;&gt;-=&lt;/span&gt; $nums[$i];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($leftEven &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; $rightOdd &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; $rightEven &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; $leftOdd) $ans&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($i&lt;span style=&#34;color:#f92672&#34;&gt;%&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $leftEven &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; $nums[$i];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $leftOdd &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; $nums[$i];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $ans;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 20: Valid Parentheses</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-06-leetcode-20-valid-parentheses/</link>
      <pubDate>Fri, 07 May 2021 01:36:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-06-leetcode-20-valid-parentheses/</guid>
      <description>&lt;p&gt;Here is my solution to this problem in JavaScript:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {string} s
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {boolean}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;isValid&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;stack&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;brackets&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;(&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;)&amp;#39;&lt;/span&gt;,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;{&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;}&amp;#39;&lt;/span&gt;,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;[&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;:&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;]&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    };
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;) &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;c&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;brackets&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;c&lt;/span&gt;]) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;stack&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;push&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;c&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;lastBracket&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;stack&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;pop&lt;/span&gt;();
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;brackets&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;lastBracket&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;!==&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;c&lt;/span&gt;) &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;false&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;stack&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;) &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;false&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 844. Backspace String Compare</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-06-leetcode-844-backspace-string-compare/</link>
      <pubDate>Thu, 06 May 2021 23:16:14 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-06-leetcode-844-backspace-string-compare/</guid>
      <description>&lt;p&gt;Here is my solution &lt;a href=&#34;https://leetcode.com/problems/backspace-string-compare/&#34;&gt;Backspace String Compare problem&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {string} s
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {string} t
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {boolean}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;backspaceCompare&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;, &lt;span style=&#34;color:#a6e22e&#34;&gt;t&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;processString&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#a6e22e&#34;&gt;t&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;processString&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;t&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;//console.log({s, t})
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&lt;/span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;t&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;processString&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;a&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;skip&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;--&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;#&amp;#39;&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;skip&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;skip&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;skip&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;--&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;a&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;push&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;]);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#75715e&#34;&gt;//console.log({a, skip, i})
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&lt;/span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;re&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;#39;&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;//console.log({ a: a.length})
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&lt;/span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;a&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;re&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;a&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;pop&lt;/span&gt;();
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#75715e&#34;&gt;//console.log({i, re, a: a.length})
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&lt;/span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;re&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;results&#34;&gt;Results:&lt;/h2&gt;
&lt;p&gt;Runtime: 80 ms, faster than 73.76% of JavaScript online submissions for Backspace String Compare.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Leetcode 690: Employee Importance Solution</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-05-leetcode-690-employee-importance-solution/</link>
      <pubDate>Thu, 06 May 2021 03:42:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-05-leetcode-690-employee-importance-solution/</guid>
      <description>&lt;p&gt;Here is another LeetCode solution for Employee Importance Problem.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;* Definition for Employee.
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;* class Employee {
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;*     public $id = null;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;*     public $importance = null;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;*     public $subordinates = array();
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;*     function __construct($id, $importance, $subordinates) {
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;*         $this-&amp;gt;id = $id;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;*         $this-&amp;gt;importance = $importance;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;*         $this-&amp;gt;subordinates = $subordinates;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;*     }
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;* }
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;*/&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Solution&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; * @param Employee[] $employees
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; * @param Integer $id
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; * @return Integer
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;getImportance&lt;/span&gt;($employees, $id) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;empty&lt;/span&gt;($employees)) &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  $emap &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;foreach&lt;/span&gt; ($employees &lt;span style=&#34;color:#66d9ef&#34;&gt;as&lt;/span&gt; $e) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $emap[$e&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;id&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $e;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $this&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;recurse&lt;/span&gt;($emap, $id);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;recurse&lt;/span&gt;($emap, $id) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  $e &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $emap[$id];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  $ans &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $e&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;importance&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;foreach&lt;/span&gt; ($e&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;subordinates&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;as&lt;/span&gt; $sub) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $ans &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; $this&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;recurse&lt;/span&gt;($emap, $sub);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $ans;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 1249. Minimum Remove to Make Valid Parentheses</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-05-leetcode-1249-minimum-remove-to-make-valid-parentheses/</link>
      <pubDate>Thu, 06 May 2021 01:35:40 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-05-leetcode-1249-minimum-remove-to-make-valid-parentheses/</guid>
      <description>&lt;p&gt;Here is my solution to &lt;a href=&#34;https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/&#34;&gt;this problem&lt;/a&gt;:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {string} s
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {string}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;minRemoveToMakeValid&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;stack&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;charArray&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;s&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;split&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;rightBracketsToRemove&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;charArray&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;;&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;charArray&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;(&amp;#39;&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;stack&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;push&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;charArray&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;)&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;stack&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;stack&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;pop&lt;/span&gt;();
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;charArray&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;)&amp;#39;&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;charArray&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;#39;&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;stack&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;stack&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;pop&lt;/span&gt;();
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;charArray&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;#39;&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;charArray&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;join&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;#39;&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 13: Roman to Integer</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-04-leetcode-13-roman-to-integers/</link>
      <pubDate>Wed, 05 May 2021 03:41:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-04-leetcode-13-roman-to-integers/</guid>
      <description>&lt;p&gt;Here is my solution to &lt;a href=&#34;https://leetcode.com/problems/roman-to-integer/&#34;&gt;this problem&lt;/a&gt; in PHP:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Solution&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;private&lt;/span&gt; $v &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;M&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1000&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;D&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;500&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;C&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;100&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;L&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;50&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;X&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;V&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;5&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;I&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param String $s
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @return Integer
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;romanToInt&lt;/span&gt;($s) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $n &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $last &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&amp;#39;&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; ($i&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;$i &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;strlen&lt;/span&gt;  ($s  );   $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;)   {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             $n   &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt;   $this&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;v&lt;/span&gt;[$s[$i]];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (($s[$i] &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;V&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt; $s[$i] &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;X&amp;#39;&lt;/span&gt;)  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt;  $last &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;I&amp;#39;&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $n &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $n &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            } &lt;span style=&#34;color:#66d9ef&#34;&gt;elseif&lt;/span&gt; (($s[$i] &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;L&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt; $s[$i] &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;C&amp;#39;&lt;/span&gt;)  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt;  $last &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;X&amp;#39;&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $n &lt;span style=&#34;color:#f92672&#34;&gt;-=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            } &lt;span style=&#34;color:#66d9ef&#34;&gt;elseif&lt;/span&gt; (($s[$i] &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;D&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt; $s[$i] &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;M&amp;#39;&lt;/span&gt;)  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt;  $last &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;C&amp;#39;&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $n &lt;span style=&#34;color:#f92672&#34;&gt;-=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;200&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $last &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $s[$i];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $n;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Troubleshooting Kubernetes Ingress</title>
      <link>https://chaosplay.com/posts/work/dev/2021-05-04-troubleshooting-kubernetes-ingress/</link>
      <pubDate>Tue, 04 May 2021 18:58:09 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2021-05-04-troubleshooting-kubernetes-ingress/</guid>
      <description>&lt;p&gt;Setting up Ingress is an easy process but when it doesn&amp;rsquo;t work it gets really painful. First, make sure you have &lt;a href=&#34;https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/&#34;&gt;Ingress Controller&lt;/a&gt; setup correctly. This is in addition to Ingress resource and should be automatically setup by your cloud provider. When I was trying to setup a Kubernetes cluster on IBM Cloud, I ran into a lot of issues. It seems due to my permissions level something went wrong during provisioning of Kubernetes and Ingress Controller was not setup correctly. I went through a lot of steps including recreating &lt;code&gt;alb&lt;/code&gt; , ingress resources, etc. The final fix was to login to IBM Cloud as superuser to change Access Policies for the cluster. Once did that, everything just worked magically.&lt;/p&gt;</description>
    </item>
    <item>
      <title>HackerRank: New Year Chaos</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-04-hackerrank-new-year-chaos/</link>
      <pubDate>Tue, 04 May 2021 17:33:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-04-hackerrank-new-year-chaos/</guid>
      <description>&lt;p&gt;Here is my solution to &lt;a href=&#34;https://www.hackerrank.com/challenges/new-year-chaos/problem&#34;&gt;New Years Chaos&lt;/a&gt; problem from HackerRank. The first solution had a bug:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;minimumBribes&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;q&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;bribes&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt;  (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ;&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;q&lt;/span&gt; .&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt; ;&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;q&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; ]  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; )   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           &lt;span style=&#34;color:#a6e22e&#34;&gt;console&lt;/span&gt; .&lt;span style=&#34;color:#a6e22e&#34;&gt;log&lt;/span&gt; ( &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;Too chaotic&amp;#39;&lt;/span&gt; );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#75715e&#34;&gt;// compare index to element, works great except when a smaller element is pushed way back
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&lt;/span&gt;           &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;q&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; ]  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; )   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#a6e22e&#34;&gt;bribes&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;q&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; ]  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   &lt;span style=&#34;color:#a6e22e&#34;&gt;console&lt;/span&gt; .&lt;span style=&#34;color:#a6e22e&#34;&gt;log&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;bribes&lt;/span&gt; );
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Second solution had O(n^2) complexity:&lt;/p&gt;</description>
    </item>
    <item>
      <title>LeetCode 200: Number of Islands</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-03-leetcode-200-number-of-islands/</link>
      <pubDate>Mon, 03 May 2021 17:49:39 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-03-leetcode-200-number-of-islands/</guid>
      <description>&lt;p&gt;I had to watch some YouTube videos for the solution to &lt;a href=&#34;https://leetcode.com/problems/number-of-islands/&#34;&gt;this problem&lt;/a&gt;. I am not sure if this is the best solution though, one day I will revisit it.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Solution&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param String[][] $grid
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @return Integer
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;numIslands&lt;/span&gt;($grid) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $count &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; ($i&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; $i &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;count&lt;/span&gt;  ($grid  );   $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;)   {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt;   ($j  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;   $j   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;count&lt;/span&gt;  ($grid  [$i  ]);   $j&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;)   {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;               &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;   ($grid  [$i  ][$j  ]   &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt;   &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;1  &amp;#34;&lt;/span&gt;)   {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                     $count&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                     &lt;span style=&#34;color:#75715e&#34;&gt;// zero out rest of 1s
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&lt;/span&gt;                     $this&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;zeroOut&lt;/span&gt;($grid, $i, $j);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $count;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;zeroOut&lt;/span&gt;( &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt; $grid, $i, $j) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($i &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt;   $i  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;count&lt;/span&gt;($grid) &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt; $j &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt;   $j  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;count&lt;/span&gt;($grid[$i]) &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt; $grid[$i][$j] &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;0&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $grid[$i][$j] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;0&amp;#34;&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $this&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;zeroOut&lt;/span&gt;($grid, $i&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;, $j);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $this&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;zeroOut&lt;/span&gt;($grid, $i&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;, $j);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $this&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;zeroOut&lt;/span&gt;($grid, $i, $j&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $this&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;zeroOut&lt;/span&gt;($grid, $i, $j&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 42. Trapping Rain Water</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-02-leetcode-42-trapping-rain-water/</link>
      <pubDate>Sun, 02 May 2021 17:11:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-02-leetcode-42-trapping-rain-water/</guid>
      <description>&lt;p&gt;My solution to LeetCode 42. Trapping Rain Water in JavaScript.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;  * @param {number[]} height
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;  * @return {number}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;  */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;trap&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;maxLeft&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ,&lt;span style=&#34;color:#a6e22e&#34;&gt;maxRight&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; .&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;total&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt; ]   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt; ]) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt; ]  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;maxLeft&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;               &lt;span style=&#34;color:#a6e22e&#34;&gt;maxLeft&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt; ];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt;  {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#a6e22e&#34;&gt;total&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;maxLeft&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt; ]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           &lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt;  {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt; ]  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;maxRight&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;               &lt;span style=&#34;color:#a6e22e&#34;&gt;maxRight&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt; ];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt;  {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;              &lt;span style=&#34;color:#a6e22e&#34;&gt;total&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;+=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;maxRight&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt; ]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           &lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;--&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;total&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 1089: Duplicate Zeros</title>
      <link>https://chaosplay.com/notes/leetcode/2021-05-02-leetcode-1089-duplicate-zeros/</link>
      <pubDate>Sun, 02 May 2021 15:50:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-05-02-leetcode-1089-duplicate-zeros/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://leetcode.com/problems/duplicate-zeros/&#34;&gt;LeetCode 1089: Duplicate Zeros&lt;/a&gt; solution in PHP.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Solution&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param Integer[] $arr
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @return NULL
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;duplicateZeros&lt;/span&gt;( &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt; $arr) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $len &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;count&lt;/span&gt;($arr);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; ($i&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; $i   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; $len; $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; $arr[$i]) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#a6e22e&#34;&gt;array_splice&lt;/span&gt;($arr, $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#a6e22e&#34;&gt;array_splice&lt;/span&gt;($arr, $len);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 11. Container With Most Water</title>
      <link>https://chaosplay.com/notes/leetcode/2021-04-30-leetcode-11-container-with-most-water/</link>
      <pubDate>Fri, 30 Apr 2021 05:56:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-04-30-leetcode-11-container-with-most-water/</guid>
      <description>&lt;p&gt;Here is my solution to Container with Most Water in JavaScript.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;  * @param {number[]} height
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;  * @return {number}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;  */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;maxArea&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; .&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;maxWater&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;water&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt; )  &lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt;  Math.&lt;span style=&#34;color:#a6e22e&#34;&gt;min&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt; ],&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt; ]);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;water&lt;/span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;maxWater&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           &lt;span style=&#34;color:#a6e22e&#34;&gt;maxWater&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;water&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt; ]   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;height&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt; ]) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           &lt;span style=&#34;color:#a6e22e&#34;&gt;left&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt;  {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;           &lt;span style=&#34;color:#a6e22e&#34;&gt;right&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;--&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;maxWater&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 1: Two Sum</title>
      <link>https://chaosplay.com/notes/leetcode/2021-04-29-leetcode-1-two-sum/</link>
      <pubDate>Thu, 29 Apr 2021 05:45:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-04-29-leetcode-1-two-sum/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;  * @param {number[]} nums
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;  * @param {number} target
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;  * @return {number[]}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;  */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;twoSum&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt; ,&lt;span style=&#34;color:#a6e22e&#34;&gt;target&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;numsToFind&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  {};
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; (&lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;const&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;numToFind&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; ];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt;  (&lt;span style=&#34;color:#a6e22e&#34;&gt;numsToFind&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;numToFind&lt;/span&gt; ]   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;=&lt;/span&gt;  &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; ) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;  [&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; ,&lt;span style=&#34;color:#a6e22e&#34;&gt;numsToFind&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;numToFind&lt;/span&gt; ]];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       &lt;span style=&#34;color:#a6e22e&#34;&gt;numsToFind&lt;/span&gt; [&lt;span style=&#34;color:#a6e22e&#34;&gt;target&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;numToFind&lt;/span&gt; ]  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;My solution for &lt;a href=&#34;https://leetcode.com/problems/two-sum/&#34;&gt;Two Sum&lt;/a&gt; problem in JavaScript.&lt;/p&gt;</description>
    </item>
    <item>
      <title>LeetCode 88: Merge Sorted Array solution</title>
      <link>https://chaosplay.com/notes/leetcode/2021-04-24-leetcode-88-merge-sorted-array-solution/</link>
      <pubDate>Sun, 25 Apr 2021 00:27:12 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-04-24-leetcode-88-merge-sorted-array-solution/</guid>
      <description>&lt;p&gt;Here is my solution for &lt;a href=&#34;https://leetcode.com/problems/merge-sorted-array/&#34;&gt;Merge Sorted Array&lt;/a&gt; problem in PHP. This is not the most efficient solution.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Solution&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param Integer[] $nums1
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param Integer $m
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param Integer[] $nums2
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param Integer $n
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @return NULL
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;merge&lt;/span&gt;(&lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt;$nums1, $m, $nums2, $n) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($n &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($m &lt;span style=&#34;color:#f92672&#34;&gt;==&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; ($i&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; $i  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; $n; $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $nums1[$i] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $nums2[$i];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $i &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $j &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt; ($i  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; $m  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt;  $j  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; $n) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($nums1[$i]  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;$nums2[$j]) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $this&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;array_insert&lt;/span&gt;($nums1, $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;, $nums2[$j]);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $m&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $j&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt; ($j   &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; $n) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $nums1[$i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $nums2[$j&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;array_insert&lt;/span&gt;( &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt; $arr, $i, $num) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $endArr &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;array_slice&lt;/span&gt;($arr, $i);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $arr[$i] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $num;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; ($x&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;$i&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;; $x &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;count&lt;/span&gt;  ($arr);   $x&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;)   {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             $arr  [$x  ]   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;array_shift&lt;/span&gt;  ($endArr);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; }
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>LeetCode 26 – Remove Duplicates from Sorted Array</title>
      <link>https://chaosplay.com/notes/leetcode/2021-04-20-leetcode-26-remove-duplicates-from-sorted-array/</link>
      <pubDate>Wed, 21 Apr 2021 02:28:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-04-20-leetcode-26-remove-duplicates-from-sorted-array/</guid>
      <description>&lt;p&gt;Here is my solution to &lt;a href=&#34;https://leetcode.com/problems/remove-duplicates-from-sorted-array/&#34;&gt;Remove Duplicates from Sorted Array&lt;/a&gt; problem in JavaScript&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-js&#34; data-lang=&#34;js&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @param {number[]} nums
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; * @return {number}
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt; */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;removeDuplicates&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;let&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;while&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;] &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;[&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;]) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;splice&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;+&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#a6e22e&#34;&gt;i&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;nums&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;length&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;results&#34;&gt;Results&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Runtime&lt;/strong&gt;: 108 ms, faster than 33.69% of JavaScript online submissions for Remove Duplicates from Sorted Array.Memory&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Usage&lt;/strong&gt;: 40.6 MB, less than 89.66% of JavaScript online submissions for Remove Duplicates from Sorted Array.&lt;/p&gt;</description>
    </item>
    <item>
      <title>LeetCode #73: Set Matrix Zeroes</title>
      <link>https://chaosplay.com/notes/leetcode/2021-04-20-leetcode-73-set-matrix-zeroes/</link>
      <pubDate>Tue, 20 Apr 2021 17:58:03 +0000</pubDate>
      <guid>https://chaosplay.com/notes/leetcode/2021-04-20-leetcode-73-set-matrix-zeroes/</guid>
      <description>&lt;p&gt;Here is my solution to Set Matrix Zeros&lt;/p&gt;
&lt;p&gt;problem in PHP:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Solution&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @param Integer[][] $matrix
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    * @return NULL
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;    */&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;setZeroes&lt;/span&gt;(&lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt;$matrix) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $rowsToZeroOut &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $colsToZeroOut &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; [];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; ($i&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; $i&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;count&lt;/span&gt;($matrix); $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; ($j&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; $j&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;count&lt;/span&gt;($matrix[$i]); $j&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($matrix[$i][$j] &lt;span style=&#34;color:#f92672&#34;&gt;===&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                    $rowsToZeroOut[] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $i;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                    $colsToZeroOut[] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; $j;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;foreach&lt;/span&gt;($rowsToZeroOut &lt;span style=&#34;color:#66d9ef&#34;&gt;as&lt;/span&gt; $r) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt;($i&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; $i&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;count&lt;/span&gt;($matrix[$r]); $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;               $matrix[$r][$i] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;foreach&lt;/span&gt;($colsToZeroOut &lt;span style=&#34;color:#66d9ef&#34;&gt;as&lt;/span&gt; $c) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt;($i&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;; $i&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;count&lt;/span&gt;($matrix); $i&lt;span style=&#34;color:#f92672&#34;&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;               $matrix[$i][$c] &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;results&#34;&gt;Results&lt;/h3&gt;
&lt;p&gt;Runtime: 52 ms, faster than 13.33% of PHP online submissions for Set Matrix Zeroes. Memory Usage: 19.8 MB, less than 80.00% of PHP online submissions for Set Matrix Zeroes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>WordPress to Hugo to WordPress to Hugo</title>
      <link>https://chaosplay.com/posts/thoughts/2020-12-23/</link>
      <pubDate>Wed, 23 Dec 2020 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2020-12-23/</guid>
      <description>&lt;p&gt;I moved all my blogs back to Hugo. I have gone back and forth between Wordpress and Hugo several times. WordPress makes it really easy to write and publish content. On this domain, I was using WordPress as a bookmarking service. With &lt;a href=&#34;https://wordpress.org/plugins/press-this/&#34;&gt;PressThis&lt;/a&gt; plugin, I was able to use a bookmarklet and publish a new post from any page on the web. But that plugin has not been updated in a while and it seems with every new WordPress release something would break. A few times, I was able to hack it to keep going. But lately, I cannot keep up with it. I will have to figure out a better way to bookmark but for now, I didn&amp;rsquo;t want to deal with WordPress. And easy bookmarking was the only reason why I was using WordPress.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Watch &#34;Pharrell Williams – Entrepreneur (Official Video) ft. JAY-Z&#34; on YouTube</title>
      <link>https://chaosplay.com/notes/songs/2020-08-26-watch-pharrell-williams-entrepreneur-official-video-ft-jay-z-on-youtube/</link>
      <pubDate>Thu, 27 Aug 2020 00:21:54 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2020-08-26-watch-pharrell-williams-entrepreneur-official-video-ft-jay-z-on-youtube/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://music.youtube.com/watch?v=bTOoY5MIkvM&amp;amp;feature=share&#34;&gt;https://music.youtube.com/watch?v=bTOoY5MIkvM&amp;amp;feature=share&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Larry Smith: Why you will fail to have a great career | TED Talk</title>
      <link>https://chaosplay.com/notes/bookmarks/2020-08-26-larry-smith-why-you-will-fail-to-have-a-great-career-ted-talk/</link>
      <pubDate>Wed, 26 Aug 2020 18:28:16 +0000</pubDate>
      <guid>https://chaosplay.com/notes/bookmarks/2020-08-26-larry-smith-why-you-will-fail-to-have-a-great-career-ted-talk/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.ted.com/talks/larry_smith_why_you_will_fail_to_have_a_great_career/discussion&#34;&gt;Larry Smith: Why you will fail to have a great career | TED Talk&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Expiring vs. Permanent Skills · Collaborative Fund</title>
      <link>https://chaosplay.com/posts/hobbies/quotes/2020-08-14-expiring-vs-permanent-skills--collaborative-fund/</link>
      <pubDate>Fri, 14 Aug 2020 14:53:04 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/quotes/2020-08-14-expiring-vs-permanent-skills--collaborative-fund/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Robert Walter Weir was one of the most popular instructors at West Point in the mid-1800s. Which is odd at a military academy, because he taught painting and drawing. Weir&amp;rsquo;s art classes were mandatory at West Point. Art can broaden your perspective, but that wasn&amp;rsquo;t the point. Nineteenth-century West Point cadets needed to be good at drawing because cartography was in its infancy. High-quality maps of the United States – let alone, say, Mexico – were scarce, if they existed at all. Military officers were expected to draw maps on the fly and record a battlefield&amp;rsquo;s topography. It wasn&amp;rsquo;t a niche; it was vital to war. Weir&amp;rsquo;s favorite student, who passed the time at West Point drawing river bends and mountain ranges, was Ulysses S. Grant. West Point no longer offers drawing or painting classes. Its sole cartography course emphasizes mapping software and technology, as you might expect. Drawing was an expiring military skill. Critical in one era, diminished in the next, unmentionable thereafter. A lot of things work that way. Every field has two kinds of skills: Expiring skills, which are vital at a given time but prone to diminishing as technology improves and a field evolves. Permanent skills, which were as essential 100 years ago as they are today, and will still be 100 years from now. Both are important. But they&amp;rsquo;re treated differently. Expiring skills tend to get more attention. They&amp;rsquo;re more likely to be the cool new thing, and a key driver of an industry&amp;rsquo;s short-term performance. They&amp;rsquo;re what employers value and employees flaunt. Permanent skills are different. They&amp;rsquo;ve been around a long time, which makes them look stale and basic. They can be hard to define and quantify, which gives the impression of fortune-cookie wisdom vs. a hard skill. But permanent skills compound over time, which gives them quiet importance. When several previous generations have worked on a skill that&amp;rsquo;s directly relevant to you, you have a deep well of relevant examples to study. And when you can spend a lifetime perfecting one skill whose importance never wanes, the payoffs can be ridiculous. Anything that compounds over decades usually is. A few permanent skills that apply to many fields: Not being a jerk. Being a jerk offsets being talented one for one, if not more. They don&amp;rsquo;t teach this in school, but it&amp;rsquo;s the single most important career skill. Part of this includes empathizing with jerks who are being jerks because they&amp;rsquo;re dealing with stress. The willingness to adapt views you wish were permanent. Accepting when expiring skills have run their course. A lot of what we believe about our fields is either right but temporary, or wrong but convincing. Sam Arbesman&amp;rsquo;s book The Half-Life of Facts makes this uncomfortably clear. &amp;ldquo;Medical knowledge about cirrhosis or hepatitis takes about forty-five years for half of it to be disproven or become out-of-date,&amp;rdquo; he writes. &amp;ldquo;This is about twice the half-life of the actual radioisotope samarium-151.&amp;rdquo; Getting along with people you disagree with. Equally smart people can come to different conclusions. And as Larry Summers once noted, &amp;ldquo;There are idiots; look around.&amp;rdquo; Some of these people can be avoided. Many can&amp;rsquo;t. You have to deal with them diplomatically. People who view every disagreement as a battle that must be won before moving on end up stuck and bitter. Getting to the point. Everyone&amp;rsquo;s busy. Make your point and get out of their way. Respecting luck as much as you respect risk. Acknowledging risk is when something happens outside of your control that influences outcomes and you realize it might happen again. Acknowledging luck is when something happens outside of our control that influences outcomes and you realize it might not happen again. Staying out of the way as much as you offer to help. You can add as much value by getting out of people&amp;rsquo;s way and minimizing your burden as you can by actively helping. This is especially important for two groups: new employees eager to get involved, and senior managers eager to get involved. Accepting a certain degree of hassle and nonsense when reality demands it. The ability to be comfortable being miserable. Frances Perkins, Franklin Roosevelt&amp;rsquo;s Secretary of Labor, said the most remarkable thing about the president&amp;rsquo;s paralysis was how little it seemed to bother him. He told her: &amp;ldquo;If you can&amp;rsquo;t use your legs and they bring you milk when you wanted orange juice, you learn to say &amp;rsquo;that&amp;rsquo;s all right,&amp;rsquo; and drink it.&amp;rdquo; A useful and permanent skill in a world that&amp;rsquo;s constantly breaking and evolving. The ability to distinguish &amp;ldquo;temporarily out of favor&amp;rdquo; from &amp;ldquo;wrong.&amp;rdquo; Endurance is key because every industry is cyclical, and putting up with its dark days is the only way to ensure you&amp;rsquo;re part of the good ones. Gracefully exiting when you realize that whatever fueled past success doesn&amp;rsquo;t work anymore is also key. Warren Buffett says his favorite holding period is forever, then dumped $7 billion worth of airline stocks based on a few weeks of data. That might lo&lt;/p&gt;</description>
    </item>
    <item>
      <title>Because I&#39;m afraid of it</title>
      <link>https://chaosplay.com/notes/quotes/2020-07-29-1360-2/</link>
      <pubDate>Wed, 29 Jul 2020 05:22:41 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-07-29-1360-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;Have you ever watched Inside the Actors Studio? The host, James Lipton, invariably asks his guests, &amp;ldquo;What factors make you decide to take a particular role?&amp;rdquo; The actor always answers: &amp;ldquo;Because I&amp;rsquo;m afraid of it.&amp;rdquo;&amp;rdquo;&lt;/p&gt;
&lt;p&gt;— The War of Art by Steven Pressfield
&lt;a href=&#34;https://a.co/byFeRJx&#34;&gt;https://a.co/byFeRJx&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>Heaven and Earth are meeting in a storm</title>
      <link>https://chaosplay.com/notes/quotes/2020-07-25-1352-2/</link>
      <pubDate>Sat, 25 Jul 2020 22:03:36 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-07-25-1352-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;Heaven and Earth are meeting in a storm that, when it&amp;rsquo;s over, will leave the air purer and the fields fertile, but before that happens, houses will be destroyed, centuries-old trees will topple, paradises will be flooded.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;— Aleph by Paulo Coelho
&lt;a href=&#34;https://a.co/cfOu5ja&#34;&gt;https://a.co/cfOu5ja&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>When a sense of dissatisfaction persists</title>
      <link>https://chaosplay.com/notes/quotes/2020-07-25-1350-2/</link>
      <pubDate>Sat, 25 Jul 2020 21:56:46 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-07-25-1350-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;When a sense of dissatisfaction persists, that means it was placed there by God for one reason only: you need to change everything and move forward.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;— Aleph by Paulo Coelho
&lt;a href=&#34;https://a.co/0J87Lcb&#34;&gt;https://a.co/0J87Lcb&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>You&#39;ve got to leave in order to return</title>
      <link>https://chaosplay.com/notes/quotes/2020-07-25-1347-2/</link>
      <pubDate>Sat, 25 Jul 2020 21:49:46 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-07-25-1347-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;&amp;ldquo;You&amp;rsquo;re not here anymore. You&amp;rsquo;ve got to leave in order to return to the present.&amp;rdquo;&amp;rdquo;&lt;/p&gt;
&lt;p&gt;— Aleph by Paulo Coelho
&lt;a href=&#34;https://a.co/6FWXQN3&#34;&gt;https://a.co/6FWXQN3&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>Go and re-conquer your kingdom</title>
      <link>https://chaosplay.com/notes/quotes/2020-07-25-1346-2/</link>
      <pubDate>Sat, 25 Jul 2020 21:48:54 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-07-25-1346-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;&amp;ldquo;There&amp;rsquo;s no point sitting here, using words that mean nothing. Go and experiment. It&amp;rsquo;s time you got out of here. Go and re-conquer your kingdom, which has grown corrupted by routine. Stop repeating the same lesson, because you won&amp;rsquo;t learn anything new that way.&amp;rdquo;&amp;rdquo;&lt;/p&gt;
&lt;p&gt;— Aleph by Paulo Coelho
&lt;a href=&#34;https://a.co/6b8GNXf&#34;&gt;https://a.co/6b8GNXf&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>What you do in the present will redeem the past</title>
      <link>https://chaosplay.com/notes/quotes/2020-07-25-1345-2/</link>
      <pubDate>Sat, 25 Jul 2020 21:47:05 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-07-25-1345-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;In India, they use the word &amp;lsquo;karma,&amp;rsquo; for lack of any better term. But it&amp;rsquo;s a concept that&amp;rsquo;s rarely given a proper explanation. It isn&amp;rsquo;t what you did in the past that will affect the present. It&amp;rsquo;s what you do in the present that will redeem the past and thereby change the future.&amp;rdquo;&amp;quot;&lt;/p&gt;
&lt;p&gt;— Aleph by Paulo Coelho
&lt;a href=&#34;https://a.co/0hVgS5H&#34;&gt;https://a.co/0hVgS5H&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>It&#39;s doubt that drives a man onward</title>
      <link>https://chaosplay.com/notes/quotes/2020-07-24-1341-2/</link>
      <pubDate>Sat, 25 Jul 2020 01:17:37 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-07-24-1341-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;&amp;ldquo;I&amp;rsquo;m filled with doubt, especially about my faith,&amp;rdquo; I say. &amp;ldquo;Good. It&amp;rsquo;s doubt that drives a man onward.&amp;rdquo;&amp;rdquo;&lt;/p&gt;
&lt;p&gt;— Aleph by Paulo Coelho
&lt;a href=&#34;https://a.co/6r1XVVl&#34;&gt;https://a.co/6r1XVVl&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>My search for wisdom, peace of mind</title>
      <link>https://chaosplay.com/notes/quotes/2020-07-24-1340-2/</link>
      <pubDate>Sat, 25 Jul 2020 01:13:33 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-07-24-1340-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;My search for wisdom, peace of mind, and an awareness of realities visible and invisible has become routine and pointless.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;— Aleph by Paulo Coelho
&lt;a href=&#34;https://a.co/hT3kZXY&#34;&gt;https://a.co/hT3kZXY&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>What&#39;s hard is sitting down to write</title>
      <link>https://chaosplay.com/notes/quotes/2020-07-18-1289-2/</link>
      <pubDate>Sat, 18 Jul 2020 14:43:20 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-07-18-1289-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;There&amp;rsquo;s a secret that real writers know that wannabe writers don&amp;rsquo;t, and the secret is this: It&amp;rsquo;s not the writing part that&amp;rsquo;s hard. What&amp;rsquo;s hard is sitting down to write.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;— The War of Art by Steven Pressfield
&lt;a href=&#34;https://a.co/6sJg1aj&#34;&gt;https://a.co/6sJg1aj&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>My experience with Open Water Scuba certification in Dallas</title>
      <link>https://chaosplay.com/posts/thoughts/2020-06-29-my-experience-with-open-water-scuba-certification-in-dallas/</link>
      <pubDate>Mon, 29 Jun 2020 15:11:20 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2020-06-29-my-experience-with-open-water-scuba-certification-in-dallas/</guid>
      <description>&lt;p&gt;This year I crossed off one of my bucket list item, got &lt;a href=&#34;https://www.padi.com/courses/open-water-diver&#34;&gt;Open Water Diver&lt;/a&gt; certification. I had done scuba diving before at Honolulu. It is among my top 3 best experiences. Ever since that vacation, I had been wanting to get into diving more seriously.&lt;/p&gt;
&lt;p&gt;But since we live in land locked Dallas, I didn&amp;rsquo;t think it was possible or worth it. Then this year in February I saw GroupOn from &lt;a href=&#34;https://internationalscuba.com/&#34;&gt;International Scuba&lt;/a&gt; and I decided to just go for it. I think GroupOn was for $250 but then there was a fine print which said we need to buy our own mask, fins, snorkel, and boots. I bought all this gear from International Scuba as they offered free gear rental for checkout dives. But this added about additional $200.&lt;/p&gt;</description>
    </item>
    <item>
      <title>You will not get rich quickly by day trading</title>
      <link>https://chaosplay.com/notes/quotes/2020-06-28-1177-2/</link>
      <pubDate>Mon, 29 Jun 2020 00:54:36 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-06-28-1177-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;In my opinion, the most important lesson that you can learn from reading this book is that you will not get rich quickly by day trading.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;— How to Day Trade for a Living: Tools, Tactics, Money Management, Discipline and Trading Psychology by Andrew Aziz
&lt;a href=&#34;https://a.co/fmI1u8k&#34;&gt;https://a.co/fmI1u8k&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>iPad Pro as main machine after 2 years</title>
      <link>https://chaosplay.com/posts/work/dev/2020-06-26-ipad-pro-as-main-machine-after-2-years/</link>
      <pubDate>Fri, 26 Jun 2020 16:24:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2020-06-26-ipad-pro-as-main-machine-after-2-years/</guid>
      <description>&lt;p&gt;I got my iPad Pro at the end of 2017. Before buying it, I had read many blog posts by various developers who were using iPad for programming and web development. But soon after I bought it, I realized that serious web development on iPad is hard. The biggest issue was debugging JavaScript and CSS without web tools.
At first, I was having buyer&amp;rsquo;s remorse but I loved the form factor of iPad and loved drawing on it. I am used to reading on Kindle and iPad was just too heavy for long reading sessions but it was very decent reading device for quick reading sessions. So I kept it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The things we really want to do are…</title>
      <link>https://chaosplay.com/notes/quotes/2020-06-16-the-things-we-really-want-to-do-are/</link>
      <pubDate>Wed, 17 Jun 2020 01:41:44 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-06-16-the-things-we-really-want-to-do-are/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;The things we really want to do are usually the ones that scare us the most. The things you&amp;rsquo;ll not feel conflicted about are the choices that leave no one hurt.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;— What Should I Do with My Life?: The True Story of People Who Answered the Ultimate Question by Po Bronson
&lt;a href=&#34;https://a.co/izynNz8&#34;&gt;https://a.co/izynNz8&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>Ask HN: How do I start my own consulting firm? | Hacker News</title>
      <link>https://chaosplay.com/posts/hobbies/quotes/2020-06-16-ask-hn-how-do-i-start-my-own-consulting-firm-hacker-news-2/</link>
      <pubDate>Tue, 16 Jun 2020 16:43:11 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/quotes/2020-06-16-ask-hn-how-do-i-start-my-own-consulting-firm-hacker-news-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Here are some things to consider about consulting:Sales/Selling is the last thing on your list and salesperson is only a maybe. Reverse all of your priorities because selling and relationships are the most difficult things to master for a consulting company and you will die without those skills.In consulting, tech talent &amp;lt; sales/relationship talent. In fact, if you&amp;rsquo;re great at the latter go ahead and get started now because there are lots of great tech people who don&amp;rsquo;t want to do it and will come work for you on a nice contract rate.To give you an example of this I once worked with a consultant who was a technical rock star, and another consultant who was supposed to be technical but was actually pretty below average. The below average guy was more successful because he was great when talking with the customers and they loved him. He knew enough to talk through problems at a high level, explained things well, and made them feel comfortable that things we&amp;rsquo;re on the right track. If he didn&amp;rsquo;t know something, no problem, he just went and found someone with the answer.Besides those soft skills he knew how to set and manage expectations. You may be used to the best results winning, but if you don&amp;rsquo;t manage and then exceed expectations it doesn&amp;rsquo;t matter. People love you when they expect 80 out of 100 and you deliver 88. They will not be happy and often fire you if expecting 100 out of 100 and you deliver 92. You will wonder how you just lost to a competitor who is not &amp;ldquo;as good&amp;rdquo; as you.Even if you have pretty good soft skills, do you want to spend time constantly using them? I thought you liked the tech side? If you like both then great because someone has to spends tons of time doing it to sell, maintain, and expand the work and your success depends on how good they are at it.For many people this will all be hard to believe, or they think it&amp;rsquo;s exaggerated, or that it&amp;rsquo;s easy to just hire someone to do it. That&amp;rsquo;s fine, I hope you have great success. Drop me a line in a couple years to say how things turned out.&lt;/p&gt;</description>
    </item>
    <item>
      <title>For would be entrepreneurs he calls them wantrapreneurs</title>
      <link>https://chaosplay.com/notes/quotes/2020-06-09-for-would-be-entrepreneurs-he-calls-them-wantrapreneurs/</link>
      <pubDate>Tue, 09 Jun 2020 17:37:36 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-06-09-for-would-be-entrepreneurs-he-calls-them-wantrapreneurs/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;For would-be entrepreneurs (he calls them &amp;ldquo;wantrapreneurs&amp;rdquo;), or entrepreneurs who&amp;rsquo;ve grown a little too comfortable, Noah has a recommendation—ask for 10% off of your next few coffees. &amp;ldquo;Go up to the counter and order coffee. If you don&amp;rsquo;t drink coffee, order tea. If you don&amp;rsquo;t drink tea, order water. I don&amp;rsquo;t care. Then just ask for 10% off. . . . The coffee challenge sounds kind of silly, but the whole point is that—in business and in life—you don&amp;rsquo;t have to be on the extreme, but you have to ask for things, and you have to put yourself out there.&amp;rdquo;&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>I remember walking out of the station around…</title>
      <link>https://chaosplay.com/notes/quotes/2020-06-09-i-remember-walking-out-of-the-station-around/</link>
      <pubDate>Tue, 09 Jun 2020 17:10:44 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-06-09-i-remember-walking-out-of-the-station-around/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;I remember walking out of the station around midnight. It was up on the top of this mountain, a beautiful place. I remember looking out and just saying, &amp;lsquo;Oh, my God, when am I going to like this? When am I going to really be happy with the work that I&amp;rsquo;m churning out?&amp;rsquo; I look back on that all the time . . . if I could go back and just tell myself, &amp;lsquo;Don&amp;rsquo;t stress about it, it&amp;rsquo;s all going to work out in the end.&amp;rsquo;&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>I think we need to teach kids two…</title>
      <link>https://chaosplay.com/notes/quotes/2020-05-25-1021-2/</link>
      <pubDate>Mon, 25 May 2020 16:51:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-05-25-1021-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;&amp;ldquo;I think we need to teach kids two things: 1) how to lead, and 2) how to solve interesting problems. Because the fact is, there are plenty of countries on Earth where there are people who are willing to be obedient and work harder for less money than us. So we cannot out-obedience the competition. Therefore, we have to out-lead or out-solve the other people. . . .&amp;rdquo;&lt;/p&gt;
&lt;p&gt;— Tools of Titans: The Tactics, Routines, and Habits of Billionaires, Icons, and World-Class Performers by Timothy Ferriss
&lt;a href=&#34;https://a.co/62h4x27&#34;&gt;https://a.co/62h4x27&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>What could possibly be more important than your…</title>
      <link>https://chaosplay.com/notes/quotes/2020-05-25-1020-2/</link>
      <pubDate>Mon, 25 May 2020 16:49:37 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-05-25-1020-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;&amp;ldquo;What could possibly be more important than your kid? Please don&amp;rsquo;t play the busy card. If you spend 2 hours a day without an electronic device, looking your kid in the eye, talking to them and solving interesting problems, you will raise a different kid than someone who doesn&amp;rsquo;t do that. That&amp;rsquo;s one of the reasons why I cook dinner every night. Because what a wonderful, semi-distracted environment in which the kid can tell you the truth. For you to have low-stakes but superimportant conversations with someone who&amp;rsquo;s important to you.&amp;rdquo;&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Streets Of Cairo – Everything2.com</title>
      <link>https://chaosplay.com/notes/quotes/2020-05-24-streets-of-cairo-everything2-com/</link>
      <pubDate>Sun, 24 May 2020 18:01:13 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-05-24-streets-of-cairo-everything2-com/</guid>
      <description>&lt;p&gt;_&lt;a href=&#34;https://everything2.com/title/There+is+a+place+in+France&#34;&gt;There&amp;rsquo;s a place in France&lt;/a&gt;
&lt;em&gt;Where the naked ladies dance.&lt;/em&gt;
&lt;em&gt;There&amp;rsquo;s a hole in the wall&lt;/em&gt;
&lt;em&gt;Where the men watch it all&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://everything2.com/title/Streets+Of+Cairo&#34;&gt;https://everything2.com/title/Streets+Of+Cairo&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Lynyrd Skynyrd – Simple Man – Live At The Florida Theatre / 2015 (Official Video) – YouTube</title>
      <link>https://chaosplay.com/notes/songs/2020-05-24-lynyrd-skynyrd-simple-man-live-at-the-florida-theatre-2015-official-video-youtube/</link>
      <pubDate>Sun, 24 May 2020 16:25:50 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2020-05-24-lynyrd-skynyrd-simple-man-live-at-the-florida-theatre-2015-official-video-youtube/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Mama told me when I was young&lt;!-- raw HTML omitted --&gt; &amp;ldquo;Come sit beside me, my only son&lt;!-- raw HTML omitted --&gt; And listen closely to what I say&lt;!-- raw HTML omitted --&gt; And if you do this it&amp;rsquo;ll help you some sunny day&amp;rdquo;&lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;Oh, take your time, don&amp;rsquo;t live too fast&lt;!-- raw HTML omitted --&gt; Troubles will come and they will pass&lt;!-- raw HTML omitted --&gt; You&amp;rsquo;ll find a woman and you&amp;rsquo;ll find love&lt;!-- raw HTML omitted --&gt; And don&amp;rsquo;t forget, son, there is someone up above&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cat Stevens – Father and Son, Live 1971 – YouTube</title>
      <link>https://chaosplay.com/notes/songs/2020-05-24-cat-steven-father-and-son-live-1971-youtube/</link>
      <pubDate>Sun, 24 May 2020 16:19:49 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2020-05-24-cat-steven-father-and-son-live-1971-youtube/</guid>
      <description>&lt;p&gt;It&amp;rsquo;s not time to make a change
Just relax, take it easy
You&amp;rsquo;re still young, that&amp;rsquo;s your fault
There&amp;rsquo;s so much you have to know
Find a girl, settle down
If you want you can marry
Look at me, I am old, but I&amp;rsquo;m happy&lt;/p&gt;
&lt;p&gt;I was once like you are now, and I know that it&amp;rsquo;s not easy
To be calm when you&amp;rsquo;ve found something going on
But take your time, think a lot
Why, think of everything you&amp;rsquo;ve got
For you will still be here tomorrow, but your dreams may not&lt;/p&gt;</description>
    </item>
    <item>
      <title>Because most of us say yes to too…</title>
      <link>https://chaosplay.com/notes/quotes/2020-05-10-869-2/</link>
      <pubDate>Sun, 10 May 2020 16:29:08 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-05-10-869-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;&amp;ldquo;Because most of us say yes to too much stuff, and then, we let these little, mediocre things fill our lives. . . . The problem is, when that occasional, &amp;lsquo;Oh my God, hell yeah!&amp;rsquo; thing comes along, you don&amp;rsquo;t have enough time to give it the attention that you should, because you&amp;rsquo;ve said yes to too much other little, half-ass stuff, right? Once I started applying this, my life just opened up.&amp;rdquo;&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Well I meet a lot of 30…</title>
      <link>https://chaosplay.com/notes/quotes/2020-05-10-868-2/</link>
      <pubDate>Sun, 10 May 2020 16:26:00 +0000</pubDate>
      <guid>https://chaosplay.com/notes/quotes/2020-05-10-868-2/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;DEREK: &amp;ldquo;Well, I meet a lot of 30-year-olds who are trying to pursue many different directions at once, but not making progress in any, right? They get frustrated that the world wants them to pick one thing, because they want to do them all: &amp;lsquo;Why do I have to choose? I don&amp;rsquo;t know what to choose!&amp;rsquo; But the problem is, if you&amp;rsquo;re thinking short-term, then [you act as though] if you don&amp;rsquo;t do them all this week, they won&amp;rsquo;t happen. The solution is to think long-term. To realize that you can do one of these things for a few years, and then do another one for a few years, and then another.&amp;rdquo;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ask HN: Parents of HN, what are your best sources for evidence-based parenting?</title>
      <link>https://chaosplay.com/posts/fatherhood/2020-04-14-ask-hn-parents-of-hn-what-are-your-best-sources-for-evidence-based-parenting/</link>
      <pubDate>Tue, 14 Apr 2020 15:29:52 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2020-04-14-ask-hn-parents-of-hn-what-are-your-best-sources-for-evidence-based-parenting/</guid>
      <description>&lt;p&gt;Here is a list of parenting books recommended by members of Hacker&amp;rsquo;s News community. All links are affiliate links to purchase these books from Amazon:&lt;/p&gt;
&lt;h4 id=&#34;how-to-talk-so-your-kids-will-listen-and-how-to-listen-so-your-kids-will-talk&#34;&gt;&lt;a href=&#34;https://amzn.to/2n8APkj&#34;&gt;How to Talk So Your Kids Will Listen, and How to Listen So Your Kids Will Talk&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;One of a few books that are recommended multiple times in this thread. 4.5 stars with 1000+ reviews.&lt;/p&gt;
&lt;h4 id=&#34;cribsheet-a-data-driven-guide-to-better-more-relaxed-parenting-from-birth-to-preschool-by-emily-oster&#34;&gt;&lt;a href=&#34;https://amzn.to/2mWR2cB&#34;&gt;Cribsheet: A Data-Driven Guide to Better, More Relaxed Parenting, from Birth to Preschool by Emily Oster&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Another book that was recommended by multiple people.&lt;/p&gt;</description>
    </item>
    <item>
      <title>More research on choosing dev stack for game dev</title>
      <link>https://chaosplay.com/posts/gamedev/2020-04-04-more-research-on-choosing-dev-stack-for-game-dev/</link>
      <pubDate>Sun, 05 Apr 2020 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/gamedev/2020-04-04-more-research-on-choosing-dev-stack-for-game-dev/</guid>
      <description>&lt;p&gt;Last week, I had decided to use Swift/Apple&amp;rsquo;s ecosystem for initial gamedev. But I wasn&amp;rsquo;t feeling 100% okay with getting locked into Apple&amp;rsquo;s ecosystem.&lt;/p&gt;
&lt;p&gt;So I spent last week doing more research on developing simple apps using Swift, &lt;a href=&#34;https://dotnet.microsoft.com/apps/xamarin&#34;&gt;Xamarin&lt;/a&gt;, &lt;a href=&#34;https://flutter.dev/&#34;&gt;Flutter&lt;/a&gt;, and &lt;a href=&#34;https://reactnative.dev/&#34;&gt;React Native&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Since I use JavaScript at work, React Native would be the easiest way for me to get started but it feels too much like work and I am kind of tired of js/npm dependencies and build tools. One nice thing about staying in Apple&amp;rsquo;s ecosystem is that everything has really good documentation and feels more polished.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Baby vs Dog</title>
      <link>https://chaosplay.com/posts/fatherhood/2019-07-18-baby-vs-dog/</link>
      <pubDate>Thu, 18 Jul 2019 17:47:45 +0000</pubDate>
      <guid>https://chaosplay.com/posts/fatherhood/2019-07-18-baby-vs-dog/</guid>
      <description>&lt;p&gt;It is amazing how having your own kids changes everything.&lt;/p&gt;
&lt;p&gt;I love my my dog and because of him I love almost all dogs. I hated leaving him home, so much, that I would not go to restaurants that don&amp;rsquo;t let dogs in patio. (With Whiskey Cake being notable exception). Every grocery trip, I would buy him a new toy, many times had arguments with wife because he had too many toys. Every vacation we would have huge argument because I wanted dog friendly vacation where we can take our dog.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Real Estate vs Startup</title>
      <link>https://chaosplay.com/posts/work/business/2019-07-15-real-estate-vs-startup/</link>
      <pubDate>Mon, 15 Jul 2019 16:37:31 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/business/2019-07-15-real-estate-vs-startup/</guid>
      <description>&lt;p&gt;For years, I was working towards my own startup. I always had various side-projects and learned a lot from these side-projects. But at the same time, all these projects were failures.&lt;/p&gt;
&lt;p&gt;I never paid much attention to real estate investing. I had some friends who bought rental properties or got into flipping houses. It seemed so much more work and riskier. I can create a new startup for just a few dollars and a few weeks of my time, so why pay attention to real estate.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Developer Hegemony by Erik Dietrich</title>
      <link>https://chaosplay.com/posts/hobbies/books/2019-07-09-developer-hegemony-by-erik-dietrich/</link>
      <pubDate>Tue, 09 Jul 2019 17:33:22 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/books/2019-07-09-developer-hegemony-by-erik-dietrich/</guid>
      <description>&lt;p&gt;I am not sure how I found &lt;a href=&#34;https://amzn.to/2Xz8XCl&#34;&gt;this book&lt;/a&gt; by &lt;a href=&#34;https://daedtech.com/developer-hegemony-the-crazy-idea-that-software-developers-should-run-software-development/&#34;&gt;Erik Dietrich&lt;/a&gt;. Maybe Google or Amazon recommended it. But I found it very inspiring. There are so many things in it that I agree with and so many new things that I am still having hard time believing.&lt;/p&gt;
&lt;p&gt;As a developer, who is having a hard time figuring out his career, this book provided an interest perspective. The basic idea in it is that in any big corporation, developers are unlikely to find fulfilment. They may truly believe in their employer&amp;rsquo;s mission and try to climb corporate ladder. When they do that they will get stuck in middle management. They will keep working hard, hoping to move on to executive roles but very few would do by believing and hard work alone.&lt;/p&gt;</description>
    </item>
    <item>
      <title>What is this blog about anyways?</title>
      <link>https://chaosplay.com/posts/thoughts/2019-07-08-what-is-this-blog-about-anyways/</link>
      <pubDate>Mon, 08 Jul 2019 14:25:09 +0000</pubDate>
      <guid>https://chaosplay.com/posts/thoughts/2019-07-08-what-is-this-blog-about-anyways/</guid>
      <description>&lt;p&gt;I have had this domain since 2003. Originally, I wanted to make video games and Chaosplay was supposed to be a video games studio.&lt;/p&gt;
&lt;p&gt;But then it was mostly a blog. I blogged about video games and programming. A bit about personal life. Eventually my focus was on photography, so I blogged about photography.&lt;/p&gt;
&lt;p&gt;When we became parents, I was blogging about parenting.&lt;/p&gt;
&lt;p&gt;I wasn&amp;rsquo;t a consistent blogger. I stopped blogging many times. Also several times I wiped old posts and restarted blog with clean slate.&lt;/p&gt;</description>
    </item>
    <item>
      <title>National Videogame Museum</title>
      <link>https://chaosplay.com/posts/travel/2019-national-video-games-museum/</link>
      <pubDate>Sat, 01 Jun 2019 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/travel/2019-national-video-games-museum/</guid>
      <description>Exploring gaming history in Frisco, TX</description>
    </item>
    <item>
      <title>Git Simplified</title>
      <link>https://chaosplay.com/posts/work/dev/2019-05-25-git-simplified/</link>
      <pubDate>Sat, 25 May 2019 13:44:01 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2019-05-25-git-simplified/</guid>
      <description>&lt;p&gt;One of most common technology that new professional developers struggle with is &lt;code&gt;git&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Many junior developers are eager to start using all of the powerful commands of &lt;code&gt;git&lt;/code&gt; and usually end up getting more confused.&lt;/p&gt;
&lt;p&gt;Here are a few commands that I recommend to anyone learning &lt;code&gt;git&lt;/code&gt; for the first time:&lt;/p&gt;
&lt;h2 id=&#34;clone&#34;&gt;clone&lt;/h2&gt;
&lt;p&gt;This downloads entire git repo from a remote server, usually. You will get all revision history and branches.&lt;/p&gt;</description>
    </item>
    <item>
      <title>My Photography Workflow with Lightroom, SmugMug, and iPad Pro</title>
      <link>https://chaosplay.com/posts/photography/2019-04-22-my-photography-workflow-with-lightroom-smugmug-and-ipad-pro/</link>
      <pubDate>Mon, 22 Apr 2019 16:07:35 +0000</pubDate>
      <guid>https://chaosplay.com/posts/photography/2019-04-22-my-photography-workflow-with-lightroom-smugmug-and-ipad-pro/</guid>
      <description>&lt;p&gt;Ever since I bought iPad, I have tried to make it my main computing device. I love the form factor. I love many apps on it. I am have really started to enjoy many photography apps on it. Touch screen makes a lot of sense for photo editing. &lt;a href=&#34;https://en.wikipedia.org/wiki/Snapseed&#34;&gt;Snapseed&lt;/a&gt;, &lt;a href=&#34;https://www.apple.com/macos/photos/&#34;&gt;Apple Photos&lt;/a&gt;, &lt;a href=&#34;https://affinity.serif.com/en-gb/photo/ipad/&#34;&gt;Affinity Photo&lt;/a&gt; are my favorite photo apps on the iPad. But it has been hard to incorporate it in my photography workflow.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Tools of Trade</title>
      <link>https://chaosplay.com/posts/work/dev/2019-03-25-tools-of-trade/</link>
      <pubDate>Mon, 25 Mar 2019 14:20:18 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2019-03-25-tools-of-trade/</guid>
      <description>&lt;p&gt;I use 13-inch MacBookPro for personal projects and 15-inch for work. My personal MBP would be last traditional laptop, hopefully. Since most of my work can easily be done on Linux VPS. I have been using 10.5-inch iPad Pro with Blink shell for most my side projects. I like the form factor of iPad Pro and I am getting better at Linux administration. Now I am also setting up Docker images so I can bring up new images as needed.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Indian Ocean – Bandeh</title>
      <link>https://chaosplay.com/notes/songs/2019-03-13-indian-ocean-bandeh-dhaka-international-folk-fest-2015-youtube/</link>
      <pubDate>Thu, 14 Mar 2019 01:41:06 +0000</pubDate>
      <guid>https://chaosplay.com/notes/songs/2019-03-13-indian-ocean-bandeh-dhaka-international-folk-fest-2015-youtube/</guid>
      <description>&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/MjaWIyoRTP8?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;
    &lt;/div&gt;</description>
    </item>
    <item>
      <title>My New Photography Workflow with iPad Pro and Lightroom 6</title>
      <link>https://chaosplay.com/posts/photography/my-new-photography-workflow-with-ipad-pro-and-lightroom-6/</link>
      <pubDate>Mon, 08 Jan 2018 10:56:55 -0500</pubDate>
      <guid>https://chaosplay.com/posts/photography/my-new-photography-workflow-with-ipad-pro-and-lightroom-6/</guid>
      <description>&lt;p&gt;&lt;em&gt;Update&lt;/em&gt;: &lt;a href=&#34;https://www.chaosplay.com/blog/my-latest-photography-workflow-with-lightroom-apple-photos-and-ipad-pro/&#34;&gt;Here is my current workflow&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Now that I have 10.5&amp;quot; iPad Pro, I am trying real hard to use it as a productive machine, possibly as a main machine. Unfortunately, it has been challenge. I almost want to return it but I really love the form factor of iPad. I am hoping that in next few updates, it will be almost usable as a main machine.&lt;/p&gt;
&lt;p&gt;For programming, I am in love with &lt;a href=&#34;https://mosh.org/&#34;&gt;mosh shell&lt;/a&gt;. Yes this is cheating by doing real work on VPS but it is actually an enjoyable experience.&lt;/p&gt;</description>
    </item>
    <item>
      <title>You don&#39;t need a web developer</title>
      <link>https://chaosplay.com/posts/work/dev/2017-12-03-you-dont-need-a-web-developer/</link>
      <pubDate>Mon, 04 Dec 2017 01:08:41 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2017-12-03-you-dont-need-a-web-developer/</guid>
      <description>&lt;p&gt;Occasionally, when people find out I am a programmer, they ask me if I will build  them a website or an app on the side. As I spend all day programming at my work, I rarely have motivation to continue programming after work.&lt;/p&gt;
&lt;p&gt;However, talking to most people, I realize they don&amp;rsquo;t need a programmer; most of their needs can be met by a simple SaaS solution. Recently, I directed a few friends to WordPress.com, SmugMug, Shopify, etc. They all were happy with the results and ease of use. Also I am glad they talked to me because one guy was ready to spend a few thousands on a developer for a WordPress-based site.&lt;/p&gt;</description>
    </item>
    <item>
      <title>WordPress vs Hugo</title>
      <link>https://chaosplay.com/posts/work/dev/2017-12-02-wordpress-vs-hugo/</link>
      <pubDate>Sat, 02 Dec 2017 13:44:01 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2017-12-02-wordpress-vs-hugo/</guid>
      <description>&lt;p&gt;Managing WordPress can get time consuming. I have tried to move to static website several times but kept going back to WordPress. But there are several advantages of static sites generators that I finally moved for good. I am also advising a lot of my clients to use &lt;a href=&#34;http://gohugo.io/&#34;&gt;Hugo&lt;/a&gt; especially when they know that they will rarely ever update their sites.&lt;/p&gt;
&lt;p&gt;Here are some of main advantages of Hugo (or other static site generators) vs WordPress and other CMS.&lt;/p&gt;</description>
    </item>
    <item>
      <title>iPad Pro for Programming &amp; Fun</title>
      <link>https://chaosplay.com/posts/work/dev/2017-11-14-ipad-pro-for-programming-fun/</link>
      <pubDate>Tue, 14 Nov 2017 17:10:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2017-11-14-ipad-pro-for-programming-fun/</guid>
      <description>&lt;p&gt;I finally bought 10.5&amp;quot; iPad Pro (Affiliate Link). It was mostly an impulse purchase. When first I started to use iPad, it felt blah. It is hard to find good apps or what apps you might want to try out.&lt;/p&gt;
&lt;p&gt;My main goals with iPad was to have a really small laptop replacement. So I was hoping for a decent code editor. There are some code editing apps but there is no way to try them out before purchasing. So I am spending a lot of time reading reviews before I purchase any app.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ReflectionException: Class Tests\Unit\Symfony\Component\HttpKernel\Exception\NotFoundHttpException does not exist</title>
      <link>https://chaosplay.com/posts/work/dev/2017-10-13-reflectionexception-class-testsunitsymfonycomponenthttpkernelexceptionnotfoundhttpexception-does-not-exist/</link>
      <pubDate>Fri, 13 Oct 2017 23:12:25 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2017-10-13-reflectionexception-class-testsunitsymfonycomponenthttpkernelexceptionnotfoundhttpexception-does-not-exist/</guid>
      <description>&lt;p&gt;Running unit tests in Laravel, I was getting this error:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ReflectionException: Class Tests\Unit\Symfony\Component\HttpKernel\Exception\NotFoundHttpException does not exist&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The issue was missing root backslash, make sure you have expected exception like:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;$this-&amp;gt;expectException(\Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class);&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Working Remotely</title>
      <link>https://chaosplay.com/posts/work/2017-09-27-working-remotely/</link>
      <pubDate>Thu, 28 Sep 2017 00:01:19 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/2017-09-27-working-remotely/</guid>
      <description>&lt;p&gt;As a developer, I am lucky that I get to work from home as needed. But I have never been 100% remote; Lately, I have been reading a lot about working remotely, remote first companies, Digital Nomad lifestyle etc. This is some resources that I have found useful so far:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://zapier.com/learn/the-ultimate-guide-to-remote-working/&#34;&gt;The Ultimate Guide to Working Remotely&lt;/a&gt; - I haven&amp;rsquo;t gone through whole guide yet but so far it has been very informative.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Upgrading to PHP 7.0 on Ubuntu 14</title>
      <link>https://chaosplay.com/posts/work/dev/2017-09-22-upgrading-to-php-7-0-on-ubuntu-14/</link>
      <pubDate>Fri, 22 Sep 2017 21:22:20 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2017-09-22-upgrading-to-php-7-0-on-ubuntu-14/</guid>
      <description>&lt;p&gt;I upgraded PHP to version 7.0 on Ubuntu box. Running &lt;code&gt;php -v&lt;/code&gt; on shell would show it as version 7.0. But Apache was still using PHP 5.6. I tried various methods to update settings for Apache but nothing worked until I issued following commands:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo a2dismod php5.6
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo a2enmod php7.0
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo service apache2 restart
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Source: &lt;em&gt;&lt;a href=&#34;https://lornajane.net/posts/2016/php-7-0-and-5-6-on-ubuntu&#34;&gt;PHP 7.0 (and 5.6) on Ubuntu | LornaJane&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setting Up Laravel on MacOS</title>
      <link>https://chaosplay.com/posts/work/dev/2017-08-19-setting-up-laravel-on-macos/</link>
      <pubDate>Sat, 19 Aug 2017 15:58:05 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2017-08-19-setting-up-laravel-on-macos/</guid>
      <description>&lt;p&gt;After 3 years, I am using &lt;a href=&#34;https://laravel.com/&#34;&gt;Laravel&lt;/a&gt; again at work. Laravel has extensive documentation but sometimes it can be a bit verbose. Here are command to get you started as soon as possible. This assumes pretty much fresh install of MacOS.&lt;/p&gt;
&lt;h3 id=&#34;install-homebrew&#34;&gt;Install Homebrew&lt;/h3&gt;
&lt;p&gt;&lt;a href=&#34;https://brew.sh/&#34;&gt;Check the official site for latest command&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/usr/bin/ruby -e &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;install-php-71&#34;&gt;Install PHP 7.1&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;brew install homebrew/php/php7&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&#34;install-mariadb&#34;&gt;Install MariaDB&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;brew install mariadb&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Set MariaDB to start as service at the end of installation.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The E-Myth Revisited by Michael E. Gerber</title>
      <link>https://chaosplay.com/posts/hobbies/books/2017-07-08-the-e-myth-revisited-by-michael-e-gerber/</link>
      <pubDate>Sat, 08 Jul 2017 14:42:52 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/books/2017-07-08-the-e-myth-revisited-by-michael-e-gerber/</guid>
      <description>&lt;p&gt;My biggest takeaway from this book was that most people start business to create a job for themselves. For example, a person who enjoys baking may start a cake shop. The problem with this approach is that one is working in the business, not on it. &lt;strong&gt;The right way to start a business is with a goal of eliminating one&amp;rsquo;s job.&lt;/strong&gt; For example, the person above should figure out a way to hire someone else to do baking.&lt;/p&gt;</description>
    </item>
    <item>
      <title>2017 Puerto Rico</title>
      <link>https://chaosplay.com/posts/travel/2017-puerto-rico/</link>
      <pubDate>Sat, 01 Apr 2017 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/travel/2017-puerto-rico/</guid>
      <description>Island exploration and photography in Puerto Rico</description>
    </item>
    <item>
      <title>The Subtle Art of Not Giving a F*ck</title>
      <link>https://chaosplay.com/posts/hobbies/books/2017-03-06-the-subtle-art-of-not-giving-a-fck/</link>
      <pubDate>Mon, 06 Mar 2017 15:39:16 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/books/2017-03-06-the-subtle-art-of-not-giving-a-fck/</guid>
      <description>&lt;p&gt;I learned of Mark Manson through his blog, especially this post, &lt;a href=&#34;https://markmanson.net/life-purpose&#34;&gt;7 Strange Questions That Help You Find Your Purpose&lt;/a&gt;. Since then I have been on and off following his blog. He usually has a lot of good advice, so finally I decided to get his book. Makes it easier to have all information in one place.&lt;/p&gt;
&lt;p&gt;I had no idea what &lt;a href=&#34;http://amzn.to/2mNO9ZR&#34;&gt;Subtle Art of Not Giving a F*ck&lt;/a&gt; was about. It was an impulse purchase, perhaps to support his blog. It turns out to be a really good book. As a semi-regular reader of his blog, I sort of knew what his philosophies were. Still it was good to read everything in one place.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ftp from Lightroom</title>
      <link>https://chaosplay.com/posts/photography/2016-12-22-ftp-from-lightroom/</link>
      <pubDate>Thu, 22 Dec 2016 18:37:20 +0000</pubDate>
      <guid>https://chaosplay.com/posts/photography/2016-12-22-ftp-from-lightroom/</guid>
      <description>&lt;p&gt;I signed up on a few microstock sites hoping recoup some of cost of my camera. These sites provide FTP access for easy uploading photos. Lightroom doesn&amp;rsquo;t come with an easy way to publish or export photos to FTP site.&lt;/p&gt;
&lt;p&gt;But &lt;a href=&#34;https://www.adobe.io/apis/creativecloud/lightroom.html&#34;&gt;Lightroom SDK&lt;/a&gt; comes with a free sample plugin that can export photos to a FTP site. It works really well and very easy to install. I learned this at &lt;a href=&#34;http://lightroomsolutions.com/ftp-directly-from-lightroom/&#34;&gt;LightroomSolutions.com.&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>The War of Art</title>
      <link>https://chaosplay.com/posts/hobbies/books/2016-11-16-the-war-of-art/</link>
      <pubDate>Wed, 16 Nov 2016 15:43:57 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/books/2016-11-16-the-war-of-art/</guid>
      <description>&lt;p&gt;I wasn&amp;rsquo;t sure what to expect when I picked up &amp;ldquo;&lt;a href=&#34;http://amzn.to/2ghwVAQ&#34;&gt;The War of Art&lt;/a&gt;&amp;rdquo; by Steven Pressfield. It shows up on Hacker&amp;rsquo;s News and other entrepreneurs&amp;rsquo; forums regularly as a recommended reading. Steven Pressfield is a novelist but this book is popular reading for anyone who is pursuing a goal.&lt;/p&gt;
&lt;p&gt;The author&amp;rsquo;s main point is that the most important and the hardest thing is doing. Weather that be sitting down at desk to write a novel or software. Once you are at your desk, or at your office, the hard part is done. This can apply to anything; fitness, painting, photography, etc.&lt;/p&gt;</description>
    </item>
    <item>
      <title>2016 Honolulu</title>
      <link>https://chaosplay.com/posts/travel/2016-honolulu-hawaii/</link>
      <pubDate>Mon, 01 Aug 2016 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/travel/2016-honolulu-hawaii/</guid>
      <description>Hawaiian adventures and waterfall hikes</description>
    </item>
    <item>
      <title>Lightroom &amp; Smugmug Workflow</title>
      <link>https://chaosplay.com/posts/photography/2015-12-03-lightroom-smugmug-workflow/</link>
      <pubDate>Thu, 03 Dec 2015 18:29:20 +0000</pubDate>
      <guid>https://chaosplay.com/posts/photography/2015-12-03-lightroom-smugmug-workflow/</guid>
      <description>&lt;p&gt;Now that I have a new fancy camera, I have tried to organize my photos better. Over years I have collected about 70GB of photos. It seems a lot to me but apparently there are many people with well over 1000 GB of photos. The biggest challenge with so many photos is that it is hard to organize them. Upon several recommendations and some searches on the web, it seems Lightroom is the best software for organizing and managing photos.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to Fail at almost Everything &amp; Still Win Big</title>
      <link>https://chaosplay.com/posts/hobbies/books/2014-10-18-how-to-fail-at-almost-everything-still-win-big/</link>
      <pubDate>Sat, 18 Oct 2014 14:23:47 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/books/2014-10-18-how-to-fail-at-almost-everything-still-win-big/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://amzn.to/2erqas9&#34;&gt;How to Fail at almost Everything but still Win Big by Scott Adams&lt;/a&gt; (affiliate link) comes up on Hackers&amp;rsquo; News a lot. Finally, I had a chance to read it.&lt;/p&gt;
&lt;p&gt;This is a little different kind of book compared to my regular reads about ultra-successful business titans. I had no idea who Scott Adams was until I heard about this book. He created Dilbert comic. He gave very down to earth perspective on how he achieved success in this book.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Magento – Get All Products with Categories in a Flat View</title>
      <link>https://chaosplay.com/posts/work/dev/2013-05-01-magento-get-all-products-with-categories-in-a-flat-view/</link>
      <pubDate>Wed, 01 May 2013 20:11:53 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2013-05-01-magento-get-all-products-with-categories-in-a-flat-view/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     SELECT
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        w1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;website_id,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        w1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;name  as  website_name,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        s1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        s1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;name  as  store_name,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id  as  product_id,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;sku,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        pname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;value  as  product_name,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        url&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;value  as  url_path,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        small_image&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;value  as  small_image,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        msrp&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;value  as  msrp_price,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        price&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;value  as  price,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;created_at  as  product_created_at,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;updated_at  as  product_updated_at,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        visibility&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;value  as  visibility,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        pstatus&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;value  as  status,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         &lt;span style=&#34;color:#66d9ef&#34;&gt;case&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             when
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                (pstatus&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;value  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                     &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  visibility&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;value  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; )
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             then
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                 &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;         end as  enable_flag,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        c1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id  as  category_id,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        cname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;value  as  category_name,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        c1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;parent_id,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        c1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;created_at  as  category_created_at,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        c1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;updated_at  as  category_updated_at
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;     FROM
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_product_entity p1
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        eav_attribute p_attr  ON  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  p_attr&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_code  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;name&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_product_entity_varchar pname  ON  pname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  pname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        eav_attribute p_attr2  ON  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr2&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  p_attr2&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_code  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;url_path&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_product_entity_varchar url  ON  url&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  url&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr2&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  pname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  url&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        eav_attribute p_attr3  ON  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr3&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  p_attr3&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_code  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;small_image&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_product_entity_varchar small_image  ON  small_image&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  small_image&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr3&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  pname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  small_image&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        eav_attribute p_attr4  ON  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr4&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  p_attr4&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_code  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;msrp&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_product_entity_decimal msrp  ON  msrp&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  msrp&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr4&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  pname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  msrp&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        eav_attribute p_attr5  ON  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr5&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  p_attr5&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_code  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;price&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_product_entity_decimal price  ON  price&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  price&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr5&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  pname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  price&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        eav_attribute p_attr6  ON  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr6&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  p_attr6&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_code  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;visibility&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_product_entity_int visibility  ON  visibility&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  visibility&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr6&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  pname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  visibility&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        eav_attribute p_attr7  ON  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr7&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  p_attr7&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_code  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;status&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_product_entity_int pstatus  ON  pstatus&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  pstatus&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p_attr7&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  pname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  pstatus&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_category_product ccp  ON  ccp&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;product_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_category_entity c1  ON  c1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  ccp&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;category_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        eav_attribute c_attr  ON  c1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  c_attr&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_type_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  c_attr&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_code  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;name&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_category_entity_varchar cname  ON  cname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  c1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  cname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  c_attr&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;attribute_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  pname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  cname&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        catalog_category_product_index store1  ON  store1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;product_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  p1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt;  store1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;category_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  c1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;entity_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        core_store s1  ON  store1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  s1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;store_id
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;             inner join
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        core_website w1  ON  s1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;website_id  &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  w1&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;website_id
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>OpenShift Error: Layer 7 Wrong Status, Invalid Response</title>
      <link>https://chaosplay.com/posts/work/dev/2013-04-21-openshift-error-layer-7-wrong-status-invalid-response/</link>
      <pubDate>Sun, 21 Apr 2013 20:11:02 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2013-04-21-openshift-error-layer-7-wrong-status-invalid-response/</guid>
      <description>&lt;p&gt;I have been playing with &lt;a href=&#34;https://www.openshift.com/&#34;&gt;OpenShift&lt;/a&gt; for past several hours. It looks great. But a while back I started to get 503 Internal Server error.&lt;/p&gt;
&lt;p&gt;When I checked logs using rhc tail , I saw this error: &lt;code&gt;Layer 7 Wrong Status, Invalid Response 404.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I spent an hour or so troubleshooting. Turns out the issue was Netbeans had added &lt;code&gt;src/main/web/app/WEB-INF/jboss-web.xml&lt;/code&gt; when I ran the application locally on my machine. I committed this file, thinking I might need it. &lt;strong&gt;Deleting it from repo fixed the issue.&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to Tell if a Number Is Whole in Php</title>
      <link>https://chaosplay.com/posts/work/dev/2012-07-07-how-to-tell-if-a-number-is-whole-in-php/</link>
      <pubDate>Sat, 07 Jul 2012 16:05:03 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2012-07-07-how-to-tell-if-a-number-is-whole-in-php/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;if ($num == (int) $num) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    // It&amp;#39;s whole
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;} else {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    // It&amp;#39;s not
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>2012 Vegas</title>
      <link>https://chaosplay.com/posts/travel/2012-vegas/</link>
      <pubDate>Tue, 01 May 2012 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/travel/2012-vegas/</guid>
      <description>Las Vegas lights and desert vibes</description>
    </item>
    <item>
      <title>Filter Some Keys in Multi Dimensional Arrays in Php</title>
      <link>https://chaosplay.com/posts/work/dev/2012-04-22-filter-some-keys-in-multi-dimensional-arrays-in-php/</link>
      <pubDate>Sun, 22 Apr 2012 16:08:09 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2012-04-22-filter-some-keys-in-multi-dimensional-arrays-in-php/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;/**
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; * Cleans up multi-dimensional arrays.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; * 1st dimension is a simple index
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; * 2nd dimension includes the desired keys
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; *
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; * @param mixed $array
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; * @param mixed $keysToInclude
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; */
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;public function cleanUpArray($array, $keysToInclude) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $returnArray = array();
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $i = 0;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    foreach($array as $item){
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        foreach($keysToInclude as $key){
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $returnArray[$i][$key] = $item[$key];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $i++;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    return $returnArray;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Simba</title>
      <link>https://chaosplay.com/posts/photography/2012-simba/</link>
      <pubDate>Fri, 30 Mar 2012 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/photography/2012-simba/</guid>
      <description>Pet portrait session</description>
    </item>
    <item>
      <title>2011 San Francisco</title>
      <link>https://chaosplay.com/posts/travel/2011-san-francisco/</link>
      <pubDate>Thu, 01 Sep 2011 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/travel/2011-san-francisco/</guid>
      <description>Classic San Francisco landmarks and street photography</description>
    </item>
    <item>
      <title>4 Hour Body by Tim Ferris</title>
      <link>https://chaosplay.com/posts/hobbies/books/2011-05-02-4-hour-body-by-tim-ferris/</link>
      <pubDate>Mon, 02 May 2011 14:20:18 +0000</pubDate>
      <guid>https://chaosplay.com/posts/hobbies/books/2011-05-02-4-hour-body-by-tim-ferris/</guid>
      <description>&lt;h2 id=&#34;slow-motion-workout&#34;&gt;Slow Motion Workout&lt;/h2&gt;
&lt;p&gt;The technical term is 5/5 Cadence (5 seconds up, 5 seconds down). I tried this for the first time on Sunday, it is really intense. Momentum is not there to help you. You will feel every part of your muscle throughout the motion.&lt;/p&gt;
&lt;h2 id=&#34;weights&#34;&gt;Weights&lt;/h2&gt;
&lt;p&gt;Tim Ferris showed a simple formula to figure out what should be the starting weight to workout with. Simply do regular sets. If you can do 5 rep, wait a minute &amp;amp; then increase the weight by 10 lb or 10%. When you fail a set, then take 70% of last 5 rep set and use that weight for slow motion workout. You can figure out weights to use by trial and error. This should prevent injuries or wasted time.&lt;/p&gt;</description>
    </item>
    <item>
      <title>MySQL Update If Exist Else Insert Procedure</title>
      <link>https://chaosplay.com/posts/work/dev/2011-04-21-mysql-update-if-exist-else-insert-procedure/</link>
      <pubDate>Fri, 22 Apr 2011 00:54:43 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2011-04-21-mysql-update-if-exist-else-insert-procedure/</guid>
      <description>&lt;p&gt;Are you tired of checking data in your code before inserting? Well MySQL procedures are here to rescue. This simple procedure shows how you can do that:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;CREATE&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;PROCEDURE&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; update_insert_user &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; (  &lt;span style=&#34;color:#66d9ef&#34;&gt;IN&lt;/span&gt;  uid2 int  )
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;BEGIN&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;DECLARE&lt;/span&gt;  last_login2 DATETIME;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;SELECT&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; last_login &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;INTO&lt;/span&gt;  last_login2  &lt;span style=&#34;color:#66d9ef&#34;&gt;FROM&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;user&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;WHERE&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; uid &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  uid2  &lt;span style=&#34;color:#66d9ef&#34;&gt;LIMIT&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;IF&lt;/span&gt;  last_login2  &lt;span style=&#34;color:#66d9ef&#34;&gt;IS&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;NULL&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;THEN&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;INSERT&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;INTO&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;user&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt;  ( &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; uid &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; , &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; last_login &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; )  &lt;span style=&#34;color:#66d9ef&#34;&gt;values&lt;/span&gt;  (uid2, now());
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;ELSE&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;UPDATE&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt;  &lt;span style=&#34;color:#66d9ef&#34;&gt;user&lt;/span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;SET&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; last_login &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  now()  &lt;span style=&#34;color:#66d9ef&#34;&gt;WHERE&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt; uid &lt;span style=&#34;color:#f92672&#34;&gt;`&lt;/span&gt;   &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;  uid2  &lt;span style=&#34;color:#66d9ef&#34;&gt;LIMIT&lt;/span&gt;   &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;END&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;IF&lt;/span&gt; ;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;END&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Codeigniter Creates a New Session With Each Page Load</title>
      <link>https://chaosplay.com/posts/work/dev/2010-09-07-codeigniter-creates-a-new-session-with-each-page-load/</link>
      <pubDate>Tue, 07 Sep 2010 16:15:32 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2010-09-07-codeigniter-creates-a-new-session-with-each-page-load/</guid>
      <description>&lt;p&gt;Just spent 3 hours debugging a session bug in my webapp. CodeIginter was creating a brand new session with each page load. The issue was a misconfiguration with my config file.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fix was simple, in &lt;code&gt;/application/config/config.php&lt;/code&gt;, make sure correct domain is set for &lt;code&gt;$config[&#39;cookie_domain&#39;]&lt;/code&gt;.&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Codeigniter Out of Memory Error</title>
      <link>https://chaosplay.com/posts/work/dev/2010-08-07-codeigniter-out-of-memory-error/</link>
      <pubDate>Sat, 07 Aug 2010 16:12:32 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2010-08-07-codeigniter-out-of-memory-error/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Query Saving is a feature of CI&amp;rsquo;s database class that stores the results of every query in memory until the controller is finished executing. As it turns out, in version 1.6.0, the ability to turn this off was added. The addition of the save_queries variable is listed in the Change Log, but as of the latest release of 2.0.0 last week, it still hasn&amp;rsquo;t made the documentation.&lt;/p&gt;&lt;/blockquote&gt;
&lt;pre&gt;&lt;code&gt;$this-&amp;gt;db-&amp;gt;save_queries = FALSE;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;via &lt;a href=&#34;http://www.greeneggmedia.com//entry/undocumented-codeigniter&#34;&gt;Undocumented CodeIgniter | Green Egg Media&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ssh_exchange_identification: Connection closed by remote host</title>
      <link>https://chaosplay.com/posts/work/dev/2010-07-01-ssh_exchange_identification-connection-closed-by-remote-host/</link>
      <pubDate>Fri, 02 Jul 2010 01:05:55 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2010-07-01-ssh_exchange_identification-connection-closed-by-remote-host/</guid>
      <description>&lt;p&gt;I tried to login to my server tonight but kept getting following error message:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ssh_exchange_identification: Connection closed by remote host&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The fix was simple, at least if you have access to server via cPanel. Just &lt;strong&gt;restart sshd service&lt;/strong&gt; via cPanel/WHM.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setting Up Pentaho BI on Windows Box</title>
      <link>https://chaosplay.com/notes/micro/2010-04-21-setting-up-pentaho-bi-on-windows-box/</link>
      <pubDate>Thu, 22 Apr 2010 00:53:21 +0000</pubDate>
      <guid>https://chaosplay.com/notes/micro/2010-04-21-setting-up-pentaho-bi-on-windows-box/</guid>
      <description>&lt;p&gt;I am not sure if this works anymore or not. I don&amp;rsquo;t use Pentaho now but this post seems popular, so leaving it here for now. Contact me if this is incorrect and needs to be corrected or taken down.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download Pentaho BI Pre-Configured Installation from [http://www.pentaho.org/download/ga.php]&lt;/li&gt;
&lt;li&gt;Install JDK5.&lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;C:\pentaho-demo\pentaho-solutions\system\publisher_config.xml&lt;/code&gt;. Add a password for publishing reports.&lt;/li&gt;
&lt;li&gt;Delete all folders except &lt;strong&gt;reporting&lt;/strong&gt; under &lt;code&gt;C:\pentaho-demo\pentaho-solutions\samples&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Delete all &lt;code&gt;.xaction&lt;/code&gt; and &lt;code&gt;.properties&lt;/code&gt; files under reporting.&lt;/li&gt;
&lt;li&gt;Copy JDBC driver for your database under &lt;code&gt;C:\pentaho-demo\jboss\server\default\lib&lt;/code&gt;. I used Oracle 10g driver, it is called &lt;code&gt;ojdbc.jar&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Edit .jsp file to change the look of default Pentaho website under &lt;code&gt;C:\pentaho-demo\jboss\server\default\deploy\pentaho.war\jsp&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add path to your JDK in &lt;code&gt;start-pentaho.bat&lt;/code&gt; located under C:\pentaho-demo. For example, &lt;code&gt;set JAVA\_HOME=C:\Program Files\Java\jdk1.5.0\_11&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Double click on &lt;code&gt;start-pentaho.bat&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;C:\pentaho-demo\jboss\server\default\deploy\pentaho.war\WEB-INF\web.xml&lt;/code&gt;. Search for &lt;code&gt;base-url&lt;/code&gt; and add your server&amp;rsquo;s ip.&lt;/li&gt;
&lt;li&gt;Now you should be able to publish reports to Pentaho using Report Wizard or Report Designer.&lt;/li&gt;
&lt;li&gt;Once you publish report, you will need to go to &lt;code&gt;C:\pentaho-demo\jboss\server\default\deploy&lt;/code&gt; and open newly created data source file named something like &lt;code&gt;???????-ds.xml&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If your database is Oracle you will need to change driver class property to &lt;code&gt;oracle.jdbc.driver.OracleDriver&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;And your newly published report should be accessible via Pentaho now.&lt;/li&gt;
&lt;/ol&gt;</description>
    </item>
    <item>
      <title>Useful Sar Sysstat Examples for Unix Linux Performance Monitoring</title>
      <link>https://chaosplay.com/posts/work/dev/2009-07-07-useful-sar-sysstat-examples-for-unix-linux-performance-monitoring/</link>
      <pubDate>Tue, 07 Jul 2009 16:20:10 +0000</pubDate>
      <guid>https://chaosplay.com/posts/work/dev/2009-07-07-useful-sar-sysstat-examples-for-unix-linux-performance-monitoring/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Using sar, you can also collect all performance data on an on-going basis, store them, and do historical analysis to identify bottlenecks.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;via &lt;a href=&#34;http://www.thegeekstuff.com/2011/03/sar-examples/&#34;&gt;10 Useful Sar (Sysstat) Examples for UNIX / Linux Performance Monitoring&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Aleph</title>
      <link>https://chaosplay.com/posts/photography/aleph/</link>
      <pubDate>Sat, 01 Jan 2000 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/posts/photography/aleph/</guid>
      <description>Creative photography project</description>
    </item>
    <item>
      <title>Archive</title>
      <link>https://chaosplay.com/archive/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/archive/</guid>
      <description>&lt;p&gt;Older posts on movies, recipes, music, poetry, and other topics. These posts are from earlier days of the blog and are preserved here for anyone who finds them useful.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Categories</title>
      <link>https://chaosplay.com/categories/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://chaosplay.com/categories/</guid>
      <description></description>
    </item>
  </channel>
</rss>
