Hi, I’m Sam

This is my blog. I also have a website thing.

Dark Mode Stylesheet

Posted on

With iOS 13 coming out yesterday, there are a lot more folks are experiencing system-wide Dark Mode for the first time. As you navigate around the system apps in Dark Mode, it’s really nice to see everything be dark. The moment you open up an app that doesn’t support Dark Mode, it can be really jarring. Websites in Safari are one of the biggest offenders for me. We can fix this though.

I recently made my personal website and blog support a dark theme if the user’s device has dark mode enabled. This is really easy to achieve with a relative new features in CSS, custom properties (aka CSS variables). They are already widely supported too!

Here’s how to define variables:

Continue reading →

Lost Coast

Posted on

This week, I hiked the nothern section of the Lost Coast Trail with 3 friends. It’s 24.6 miles from Black Sands Beach to Mattole Beach. We started at the southern end and hiked north.

Twenty-four miles in 3 days doesn’t sound that difficult, but it was actually pretty tough. Almost all of the trail is on sand. Hiking a long distance on sand—especially with the slope of the beach into the ocean—is really though on your feet, ankles, knees, etc. We were all pretty sore by the end. It was super beautiful though. I would absolutely do it again!

If you’re curious, here’s my gear list for this trip.

Continue reading →

I Don’t Care

Posted on

I think not caring is impossible. Every time I say “I don’t care,” I’m lying to myself. All I do is care.

Lately, I’ve been learning that you can’t choose to not care. It’s like trying not think about something—it just makes you think about it more.

Instead, I’ve been focusing on acceptance. At first, this seemed like the same thing, but the difference is important. Lying to yourself that you don’t care about it versus saying this is the way it is and I’ll figure out how to live with that is really important.

Continue reading →

Walking to Work

Posted on

Lately, I’ve been walking to work. I live about 5.5 miles from my office. Generally, it usually takes me about 1.5 hours but varies based on the route. I like to mix it often to see different parts of the city or different views.

Most weeks, I’ll walk to work 3–4 times and walk home 1–2 times.

I’m at my lowest weight since I’ve been tracking my weight (~5 years). I feel better and plan to keep going!

Continue reading →

Great

Posted on

I want be great. I wrote a journal entry about this back in September that I’ve been thinking about recently. Here’s an adapted version of what I wrote with some additional thoughts:

I remember I was in a Lyft listening to Big Red Machine thinking how exceptional the song Lyla is. It’s not that I was moved by that song. I mean it’s a good song, but it’s not like the best song ever or anything. It’s that that artist has put out such consistently great art. He is great—at least in my book.

I want to be know for being great at a craft. I think that’s a reasonable aspiration, right? I feel like iOS work doesn’t count. I just put pieces together. I’m not being that creative. I guess I want to be known for being great at creating something.

Continue reading →