Skip to content

Commit 2b0b414

Browse files
authored
Merge pull request #613 from jermspeaks/content/now-2024-11-07
Content/now 2024 11 07
2 parents d70278f + bba7b16 commit 2b0b414

File tree

3 files changed

+103
-0
lines changed

3 files changed

+103
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"astro": "astro",
77
"build": "astro build",
8+
"create:now": "node scripts/create-now.mjs",
89
"create:stream": "node scripts/create-stream.mjs",
910
"create:writing": "node ./scripts/create-writing.mjs",
1011
"deploy": "netlify deploy --build --prod",

scripts/create-now.mjs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/usr/bin/env node
2+
3+
import fs from "fs/promises";
4+
import path from "path";
5+
import { fileURLToPath } from "url";
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
const projectRoot = path.resolve(__dirname, "..");
10+
11+
async function generateMarkdownFile() {
12+
const date = new Date();
13+
// Format date to yyyy-mm-dd
14+
// if day is a single digit, add a leading zero
15+
let day = date.getDate();
16+
if (day < 10) {
17+
day = `0${date.getDate()}`;
18+
}
19+
// if month is a single digit, add a leading zero
20+
let month = date.getMonth() + 1;
21+
if (month < 10) {
22+
month = `0${date.getMonth() + 1}`;
23+
}
24+
const formattedDate = `${date.getFullYear()}-${month}-${day}`;
25+
26+
const fileName = `${formattedDate}.md`;
27+
const filePath = path.join(projectRoot, "src", "content", "now", fileName);
28+
29+
const content = `---
30+
draft: false
31+
pubDate: "${date.toISOString()}"
32+
title: "${formattedDate}"
33+
---
34+
35+
`;
36+
37+
try {
38+
await fs.mkdir(path.dirname(filePath), { recursive: true });
39+
await fs.writeFile(filePath, content);
40+
console.log(`File created successfully: ${filePath}`);
41+
} catch (error) {
42+
console.error("Error creating file:", error);
43+
}
44+
}
45+
46+
generateMarkdownFile();

src/content/now/2024-11-07.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
draft: false
3+
pubDate: "2024-11-07T23:13:56.054Z"
4+
title: "2024-11-07"
5+
---
6+
7+
📍 Location: In transit between Redwood City and San Jose riding the Caltrain
8+
9+
### Current Media
10+
11+
Currently reading: The Golden Thread - How Fabric Changed History by Kassia St. Claire
12+
13+
I cannot recommend this book more. It's an interesting look at fabrics that frankly I didn't know I would enjoy. But, having read Kassia St. Claire's other book about color, I knew I was in good hands.
14+
15+
### Personal News
16+
17+
We bought a house! I have a note about the home buying process I want to blog about at some point. [My latest newsletter](/blog/2024-11-07-newsletter/) talks more about this.
18+
19+
There's been a flurry of projects I want to get off the ground. They have been paused by the home buying and moving projects. It's looking like 2025 is going to be a big year.
20+
21+
### Election Woes
22+
23+
Everyone is feeling depression from the election. The sweep of bad outcomes and polarization of the country really make me feel depressed. I'm sick of hearing the reasons people feel one way over another. I can feel my rigid thinking defaulting the election decision of keep calm and carry on vs chaos. We elected turbulence, and for selfish reasons. In my mind, America would rather favor personal gain over keeping with the status quo, which is not what either party stood for. Instead the fractured feeling I have is one of unhopeful malaise when it comes to civics.
24+
25+
On the opposite end, this is another awakening for personal and collective calling for creating a better life, despite civil unrest. Yes, our rights are being stripped from us. But it takes resilience and a calling of refuting the next establishment to make a life we all want. And sometimes, that means reaching across the aisle, not despite of it.
26+
27+
I think revisiting Vi Hart's video post-2016 election is important.
28+
29+
<iframe
30+
class="aspect-video w-full my-2"
31+
src="https://www.youtube.com/watch?v=Td5xFxiEuQQ"
32+
title="A Mathematician's Perspective on the Divide"
33+
frameborder="0"
34+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
35+
allowfullscreen></iframe>
36+
37+
Then, there's this video from Adam Conover about why he isn't worried about the election.
38+
39+
<iframe
40+
class="aspect-video w-full my-2"
41+
src="https://www.youtube.com/watch?v=71Ue5Qy6w1w"
42+
title="Why I'm not worried about the election."
43+
frameborder="0"
44+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
45+
allowfullscreen></iframe>
46+
47+
I have some conflicting emotions about the message. Part of it certainly feels right where the change we make with others is more important than who we elect while acknowledging the harm the Republican ticket has. Yet, there's also the changes we have seen as a response to the upset, like the sweeping changes of the 2018 election. While I foster a lot of hate for the president-elect's racist, misogynistic, xenophobic, anti-democratic, and violent rhetoric, of which there is a lot, there is a path of moving forward and carrying on, despite the setbacks.
48+
49+
What we know is, things will get absolutely worse, especially for women and minority communities. We know the little things we say in public can be overblown on the National stage. We know we need to be nicer to one another and foster humility, like being able to point the finger back at ourselves.
50+
51+
This long rant just to say, while I don't think things around us are going to get any better for the foreseeable future, we are the ones who will make an impact. There's enough hate in the world, and I would like to think there's some glimmer of hope in the future. For everything else, it's up to us. If Victor Frankl's taught us anything, we need to think of how the future can be better in order to survive the perils of today.
52+
53+
See my other posts:
54+
55+
- [On Anxieties, Depression, And Suicide Prevention](/blog/2015-01-09-on-anxieties-depression-and-suicide-prevention/)
56+
- [On Obituaries](/blog/2015-09-23-on-obituaries/)

0 commit comments

Comments
 (0)