Skip to content

Commit 8eb0a3f

Browse files
committed
New blog post.
1 parent b8fbb7c commit 8eb0a3f

11 files changed

Lines changed: 106 additions & 15 deletions

File tree

post.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ <h3>Add a Comment</h3>
5555
<script src="js/mathjax.js"></script>
5656
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" async></script>
5757
<script type="module" src="js/header-footer.js"></script>
58+
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
5859
<script src="https://cdn.jsdelivr.net/npm/js-yaml@4.1.0/dist/js-yaml.min.js"></script>
5960
<script src="posts/js/post.js"></script>
6061
<script src="posts/js/comments.js"></script>

posts/entries/first.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: First Post
33
date: 2025-03-30
44
tags: [cs, life]
55
author: R
6-
location: New York
6+
location: Brittany Hall, New York, NY
77
---
88

99
This is (going to be) the first post, the first thing I'm writing in Markdown. I thought about doing the whole thing in $\LaTeX$, but it would be weird, so yeah... I came to this idea of a blog website only after going down a rabbit hole on reddit, and I start wondering "it would actually be cool if I have some type of project that I work on", so here I am. I felt like I'm only going to learn the practical stuff that I'm actually going to use while doing "side quests" like this that I'm interested in.

posts/entries/googology.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: A Glimpse into Googology
33
date: 2024-02-14
44
tags: [math]
55
author: R
6-
location: St. Catharines, ON, Canada
6+
location: St. Catharines, ON
77
---
88

99
This is a problem really gets me wonder 'What is Googology?' during the summer, and I ended up reading about it. When I wrote this I was in my last days of high school, coming across a instagram reel gives the question of comparing $2^{100!}$ and $(2^{100})!$ (the reel was just making fun about math), we ended up arguing about this and come up with different methods to proof our ideas.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: News in life + dealing with Render deployment
3+
date: 2025-06-01
4+
tags: [cs, life]
5+
author: R
6+
location: Alumni Hall, New York, NY
7+
---
8+
9+
## Datathon and Technicals
10+
11+
After I got the news from a friend, I felt it's a unbelievable thing just to hear. It really did surprised me that we have stood out of all the teams participated, when I joined the team, I hope we could gain a more experienced member, but people I asked all have other stuff to do, so we head straight on that Friday. On the technical aspect, there are a lot more features I wanted to implement, and I didn't successfully deploy it on render at that moment. By then, the static page went well, but as I'm running out of time I just wrote the stuff to let people deploy it locally so I could head over to the jazz club on time.
12+
13+
Speaking from a few weeks later, debugging it now for the Render deployment is still painful, that it spend 20 min every time just to build the thing and get it running live. (These little 🎉 emojis in the service log are one of the only reasons I keep doing this) Sometimes
14+
it couldn't even make it there, other times it
15+
ran out of memory (free tier...),
16+
or it 404 for a file that is supposed to be there.
17+
Eventually I downgraded so much by sacrificing many things to get it use less memory/storage in general, and maybe building the thing every time I deploy it again,
18+
still,
19+
502.
20+
I just have to keep trying.
21+
The thing about that is once I change something and if it doesn't work, I try to get the problem, but when this happen too many times, there is a fear that I'll never get this to work, maybe I just do a complete rollback to the previous version. Finally, making it running (and having to deal with the next problem) is giving some satisfaction overall.
22+
23+
## Inconfidence
24+
25+
People say it doesn't matter if you have the skill, but what if I don't? I seem to have the skill, or do I? There is some type of inconfidence deep inside me. Frankly, I'm jealous of other people who do not fear (at least seems like it), who do not (appear to) fall in this trap. The process comes in a cycle that:
26+
27+
```mermaid
28+
graph LR
29+
A["I am not confident / having a bad perception"] --> B["Not going to do well"]
30+
B --> C["Inconfidence getting reinforced"]
31+
C --> A
32+
```
33+
Felt wierd drawing a diagram in markdown, but here we are???
34+
35+
The good news about winning the Datathon is some type of positive feedback that I'm currently really in need of, because I don't have a good GPA, not competent enough... I applied to a frontend job on handshake, it's on campus as well, I even hesitated even before I applied... The status of the thing stayed as "Reviewed" instead of "Declined" or anything else, I guess that's it (I couldn't stay for the whole summer on-site, maybe that's the problem).
36+
37+
## Harsh Inner Critic
38+
39+
Myself as a person is either too harsh or too indulged. Elaborating on that, I felt like if anything start going wrong, everything else start going wrong like a domino; and if stuff is going right, I'd better keep that streak running or I'll fall into the phase of me lying in bed all day. This, is/was a bad idea I have (had) in my mind. Either one end or the other of the spectrum, no exceptions, I'll see if I come to a solution to this anytime close. Problems dealing with oneself could only be solved by oneself, as others may aid along the way, not able to do the work for you.

posts/entries/random.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Random stuff in linear algebra
33
date: 2025-04-02
44
tags: [math]
55
author: R
6-
location: New York
6+
location: Bobst 6F, New York, NY
77
---
88

99
What I want to say today is about the essential part of a linear transformation, and I figured out the proof and purpose just after looking over it in terms of domains and codomains. What I understand here is that

posts/entries/seminar-opensource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Seminar - Opensource
33
date: 2025-04-04
44
tags: [notes, cs]
55
author: R
6-
location: New York
6+
location: New York, NY
77
---
88

99
I went to a seminar where the speaker was discussing about the purpose/development, and many stuff about opensource that I didn't know before.

posts/js/post.js

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,36 @@ function parseFrontMatter(text) {
1616

1717
const params = new URLSearchParams(location.search);
1818
const slug = params.get("slug") || params.get("id");
19-
if (!slug) location.href = "blog.html";
19+
if (!slug) {
20+
location.href = "blog.html";
21+
throw new Error("Slug not provided, redirecting to blog list.");
22+
}
2023

2124
const content = document.getElementById("post-content");
2225
if (!content) {
2326
console.error("Element with id 'post-content' not found.");
2427
throw new Error("Required DOM element not found.");
2528
}
2629

30+
const renderer = new marked.Renderer();
31+
32+
renderer.code = function(code, infostring, escaped) {
33+
const lang = (infostring || "").trim().toLowerCase();
34+
35+
if (lang === "mermaid") {
36+
return `<div class="mermaid">\n${code}\n</div>`;
37+
}
38+
return marked.Renderer.prototype.code.call(this, code, infostring, escaped);
39+
};
40+
41+
marked.setOptions({
42+
gfm: true,
43+
breaks: false,
44+
smartLists: true,
45+
smartypants: false,
46+
renderer: renderer
47+
});
48+
2749
fetch(`./posts/entries/${slug}.md`)
2850
.then(r => r.text())
2951
.then(md => {
@@ -78,7 +100,27 @@ fetch(`./posts/entries/${slug}.md`)
78100

79101
// If MathJax is present, render any math
80102
if (window.MathJax) {
81-
window.MathJax.typesetPromise?.([content]);
103+
window.MathJax.typesetPromise?.([content]).then(() => {
104+
if (window.mermaid) {
105+
try {
106+
mermaid.initialize({ startOnLoad: false });
107+
mermaid.init(undefined, bodyDiv);
108+
} catch (e) {
109+
console.warn("Mermaid failed to render:", e);
110+
}
111+
}
112+
}).catch((e) => {
113+
console.warn("MathJax vs Mermaid timing issue:", e);
114+
if (window.mermaid) {
115+
mermaid.initialize({ startOnLoad: false });
116+
mermaid.init(undefined, bodyDiv);
117+
}
118+
});
119+
} else {
120+
if (window.mermaid) {
121+
mermaid.initialize({ startOnLoad: false });
122+
mermaid.init(undefined, bodyDiv);
123+
}
82124
}
83125
})
84126
.catch(e => {

posts/metadata/entries.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "First Post",
44
"date": "2025-03-30",
55
"author": "R",
6-
"location": "New York, NY",
6+
"location": "Brittany Hall, New York, NY",
77
"tags": ["cs", "life"],
88
"slug": "first"
99
}
@@ -12,7 +12,7 @@
1212
"title": "Random stuff in linear algebra",
1313
"date": "2025-04-02",
1414
"author": "R",
15-
"location": "New York, NY",
15+
"location": "Bobst 6F, New York, NY",
1616
"tags": ["math"],
1717
"slug": "random"
1818
}
@@ -34,4 +34,13 @@
3434
"tags": ["math"],
3535
"slug": "googology"
3636
}
37+
,
38+
{
39+
"title": "News in life + dealing with Render deployment",
40+
"date": "2025-06-01",
41+
"author": "R",
42+
"location": "Alumni Hall, New York, NY",
43+
"tags": ["cs", "life"],
44+
"slug": "news-render-deployment"
45+
}
3746
]

projects/js/projects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const LINGUIST_COLORS = {
66
HTML: "#e34c26",
77
CSS: "#563d7c",
88
Shell: "#89e051",
9-
// Add other languages and their colors as needed
9+
// Add other languages as needed
1010
};
1111
const langCache = new Map();
1212

@@ -46,7 +46,7 @@ async function fetchLanguages(repo) {
4646
if (!resp.ok) throw new Error(`GitHub API error: ${resp.status}`);
4747
data = await resp.json();
4848
} catch (err) {
49-
console.warn(`Could not load languages for ${repo} from GitHub (Private repo), trying local fallback`, err);
49+
console.warn(`Could not load languages for ${repo} from GitHub (Private repo), trying local fallback.`, err);
5050
const repoName = repo.includes('/') ? repo.split('/')[1] : repo;
5151
const fallbackFile = `/projects/languages/${repoName}.json`;
5252
try {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"JavaScript": 63.7,
3-
"CSS": 19.8,
2+
"JavaScript": 61.9,
3+
"CSS": 21.6,
44
"HTML": 16.5
55
}

0 commit comments

Comments
 (0)