Let's publish this why not!
I recently got the bug to buy a new camera, but I learned new cameras are expensive, so I pulled an old camera out of my closet instead. It’s a Panasonic Lumix G7 from 2015. I think I originally got it to document my work, and while it has come in clutch a few times here and there, I haven’t used it too much in the past 10 years. It isn’t the camera I wish I owned, but this year I’m trying to use the things I already have, which it turns out is quite enough. I did allow myself to get a new used prime lens for the old camera. It’s an Olympus M.Zuiko 17mm/f1.8 (35mm full frame equivalent). I like being able to switch quickly between manual and automatic focus with the ring on the lens, plus it looks really cute on the G7. If only it had a manual aperture ring as well...(just waiting for a Fuji -_-).
The camera excavation made me wonder about what other tech I’ve been hoarding that could be newly useful and combat my never-ending wanting of things. I have a little collection of vintage gear compiled now. My Canon s95 (2010), Kindle Voyager (2015), and a 12 inch Macbook (2016). I’m thinking about wiping the laptop and making it some kind of dedicated device. Anyway... above are photos I took upstate last week.
I ran into a fun problem this week. I moved my Eleventy source files to a different computer and realized that because my post dates are being read from the “date created” metadata of the files in finder, when the website files are copied, all the post display dates reset to the copied date as well, instead of retaining their original created date. I’m now realizing why they recommend NOT using “date created” in the Eleventy docs :)...
There is a way to override the date by manually typing a fixed timestamp in the markdown front matter. I’m annoyed by this because I want to be able to post nearly blank markdown files. In fact, many of my entries didn’t even have front matter previous to this discovery.
I put a lot of effort into reducing the steps to publishing, so I will not tolerate having to type out “date: 2025-03-12T16:43-04:00” every time I want to make a new post. Since I do already have my mkpost() bash script to create an index.md inside a new folder named with the current timestamp, I figured there must be a way to write the date to the contents of the markdown file at the same time as well.
I updated my script to look like this:
mkpost() {
export STAMP=$(date +%Y-%m-%dT%H:%M-05:00)
export POSTDIR=src/posts/$(date +%Y-%m-%d-%H-%M)
mkdir -p $POSTDIR
echo -e "---\ndate: $STAMP\n---" >> $POSTDIR/index.md
}
Great! Except not, because now the hour displayed on the website is different from the hour in the folder name and permalink. I really wanted to tear my hair out because I couldn’t believe how complicated this function had to be in the end. I went from a 1-liner to 12! All to accommodate daylight savings time. In a way I was lucky that this happened across the week where we sprung forward. Otherwise I never would have thought about a variable UTC offset.
I’m pleased to present my new mkpost() script which will automatically account for the clocks changing twice a year:
mkpost() {
export DST=$(date +%Z)
if [ $DST = 'EDT' ]; then
export OFFSET='04:00'
else
export OFFSET='05:00'
fi
export STAMP=$(date +%Y-%m-%dT%H:%M-$OFFSET)
export POSTDIR=src/posts/$(date +%Y-%m-%d-%H-%M)
mkdir -p $POSTDIR
echo -e "---\ndate: $STAMP\n---" >> $POSTDIR/index.md
}
Wasn’t this a thrilling entry??
Annie Ernaux, The Years p. 95:
At every moment in time, next to the things it seems natural to do and say, and next to the ones we’re told to think--no less by books or ads in the Métro than by funny stories--are other things that society hushes up without knowing it is doing so. Thus it condemns to lonely suffering all the people who feel but cannot name these things. Then the silence breaks, little by little, or suddenly one day, and words burst forth, recognized at last, while underneath other silences start to form.
Isamu Noguchi, Hawkeye measured time clock and kitchen timer (1932).
I never mentioned it before, but the color scheme here was meant to be based on a red onion. I really love that color purple. It’s difficult to reproduce as a single tone since the actual bulb is a gradation.
I always intended to make a decision about organization once I hit 10 posts. I made some big changes to the website structure today to accommodate new ways of manipulating the post library.
What is new:
Only seven posts now show on the home page. I chose the number seven because there are seven days in a week. If I post every day, one week's worth of posts will appear.
The eighth post and beyond appear in a list at the end of the home page. People who want to read every post can click into each entry individually.
Each post is now stamped with the date and the time. I know this is insane, but it's so I can post multiple times per day (like today).
I've written a bash script to automatically create a new folder in my posts folder that is given the current date and time as its title. The script also creates an index.md file inside this new folder at the same time. This ensures that my permalink matches the "date created" data in the post. The script looks like this:
mkpost() { mkdir -p -- src/posts/$(date %Y-%m-%d-%H-%M) && touch -- $_/index.md }
I created tag pages so that I can begin to make collections of useful topics. At the moment I'm only using "about", "changelog", and "my-work". This post is included in changelog and can be demonstrated here.
Hope to stop blogging about my blog itself for a little while now :)