Advent of Code - Day 3: Mull It Over
- Part 1 - 1 submission
- Part 2 - 4 submissions
Part 1 was very straight forward with regex as the key to solving it. Part 2 took me a bit longer. I had watched a video of another coder solving a previous day's challenge and they dutifully coded and tested the examples in each day's problem. Something I usually skipped over. Today I was determined to hold to them. It served me well on the first part, but the 2nd part contains an element of it which the test data doesn't catch for you and it took me a while to fix it.
I ended up using part of the solution from another poster's code. I had a non-regex concept for how to do it, but they showed me how to integrate it as part of the regex. However, the pitfall caught me still.
The core issue is that the "state" of whether to process the inputs carries over across lines of text from the input. This isn't something the test data covers (though the problem makes plain how it should work.) So even though my testing implementation worked, it fell down on the larger dataset.
I figured it out though.
Dec. 2, 1869 - Seattle incorporates
It came across my Facebook feed. (I'm an old person, I have an interest in Seattle history and so Facebook shows me a fair bit of it.) The post came from the Washington State Archives:
Our Document of the Day: Seattle was incorporated 155 years ago today on December 2, 1869, by the territorial legislature. At the time, Seattle had a population of a little over 1,000 residents. Seattle was originally incorporated in 1865, governed by a board of trustees. Citizens petitioned for dissolution in 1867 due to questionable activities by the elected leaders, which the Washington Territorial Legislature in Olympia granted. Late in 1869, citizens asked for a mayor and town council in lieu of governance by a board, and the legislature granted their request with reincorporation and a new town charter.
📷 Municipal articles of incorporation for Seattle, W.T., 1869. Territorial Laws, Washington State Archives.
Martial law declared in South Korea for first time in 44 years
Yoon accused the political opposition of "anti-state" activities and said he sought to "eradicate pro-North Korean forces," but he did not cite any specific threats from the North. Instead, he charged that his liberal political opponents were paralyzing the government with an "unprecedented" number of impeachment motions.
The declaration marked the first time in 44 years that martial law has been declared in South Korea.
A decree issued at 11 p.m. Tuesday by army Gen. Park An-soo, the martial law commander, prohibited all political activities, rallies and demonstrations. It also banned acts that attempt to "overthrow the liberal democratic system" and subjected all media and publications to martial law control.
Update:
Lee Jae-myung, Leader of South Korea's Democratic Party, live-streamed himself scaling the walls of the National Assembly to bypass military barricades so that he could vote to overturn the President's martial law.
— Adam Schwarz (@adamjschwarz.bsky.social) 2024-12-03T16:55:41.973Z
Update 2:
And it's over. The President backed down and lifted Martial Law.
Automated Archives for December, 3rd 2024
This post was automatically generated.
Articles To Read
The following are articles that I saved today. Substance and quality will vary drastically.
- Guest Column Christopher Hitchens And The Necessity Of Universalism - Salmagundi Magazine
- Archive Staff Favorites 2024: Things We Think You’ll Love This Holiday Season
- The secret tricks hidden inside restaurant menus
Chess For the Day
Record: 0-0-2
Net Elo Change: 0
Games Played
Blog Posts On This Day
- December 3, 2023 (1 post)
- December 3, 2022 (5 posts)