I’ve been trying to develop a side hobby of building guitars. This weekend I’m working on a reproduction of a 6th century Germanic instrument called a lyre. My biggest challenge over the weekend will be gluing the two halves of the soundboard together, which so far I’ve been failing at. It requires planing two 24” long boards along a 1/8” wide edge to get a perfectly flat seam. It has led down a pretty deep rabbit hole of learning about hand planes and blade sharpening, but it’s all pretty rewarding.
I’ll probably take my wife to see Jurassic World: Fallen Kingdom this weekend. She loves those movies, and since she had breast cancer and is going through chemotherapy to mitigate the risk of recurring tumors, it’s important to keep her morale up.
I’ve also been tinkering with building my own OpenBSD static website generator using make, sed, lowdown, sassc, and dateutils. It’ll use my ~/.plan file as a non-social blog, and also pull in ~/.project.
Using sed will let me take advantage of lowdown’s ability to extract metadata and convert markdown files without wrapping them in stand-alone HTML files to populate templates.
I’ve timed both sass and sassc using the time command, and sassc appears to be faster.
I’m pulling in dateutils so I can store timestamps in variables and convert them to arbitrary formats.
I like what Roman Zolotarev did with his ssg script, but his implementation seems blog-oriented, and I want to get away from blogs and party like it’s 1999. Rather than try to make his script work the way I want it to, I’ve been studying it as a reference implementation so I can do it my way. :)
Also, I want to see if I can get better performance by using make -j. It seems most static site generators process pages sequentially, but that seems inefficient when I’ve got an 8-core machine and 8GB of RAM.
Good luck on that generator. I tried the same thing but primarily with M4. Would not recommend that path. You could simplify your generator into markdown content.md |cat head.htm - foot.htm >content.htm in the end.
Thanks. I know I could use cat to simplify generation, but I’ve already figured out how to populate HTML templates using sed. It’s more complex, but also more powerful since I can chain multiple operations into a single command.
I had originally started out by writing a shell script, but once I was ready to loop through multiple files I realized that a shell script wasn’t really the best tool for the job, and that I might have a better time if I use make.
This way I can tell my wife that the ten bucks I spent on a used copy of sed & awk from O’Reilly Press wasn’t wasted. :)
Friend of mine is turning one year older, so we’re going to a cabin in the woods with cake and liquor. I’m also going to continue reading through Patterns in Network Architecture, which I’ve been plugging through for about two weeks but got stalled on.
Celebrating a friend of mine incrementing the significant bit of his age. Picking up some work for a friend who needs an extra pair of eyes. Continuing with trying to write a language parser in ruby for another client.
An especially eclectic collection of things this weekend for me.
A few social obligations, first, I’m going to finally be a good son and actually see my mother. It’s been far too long again. Second, pride is this weekend in my city, so I’ll be heading over to some friends’ place for an afternoon.
Between all that I’m working on making an enclosed spool holder for my 3D printer. I think I have the design mostly done, but I’m running into problems with it popping off part way through the print because it’s so large, so it’ll mostly be trying different tricks to get the PETG to stick to the bed better.
Printing stuff is a really bursty project though, so hopefully I’ll get some more done on my CoAP library. I got a couple PRs for improvements that has spurred me into getting back into working on that again.
Finally, I also picked up “ Hands-On Concurrency with Rust” by Brian L. Troutwine, so if the weather cooperates I’m hoping to get some hammock time in to do a first read through on some of that. I’m still in the intro chapter, but I’m really encouraged by how much technical detail there is already. I actually forgot it was a book about Rust for awhile with how much discussion there was about x86 & arm instructions and how concurrent programs behave at that level on each.
Sans-screen will be mostly relaxing and enjoying the fantastic weather we’ve been having. Maybe get together with some friends for a hike.
Screen-wise I’m gonna start work on a cross-platform text expander. I use OSX at work and Arch at home and it bugs me that there isn’t a cross platform solution there. Main goals are that it works on those platforms, can sync with a snippet repo (so updates bridge computers), and that snippets are scriptable so you can dynamically have pieces filled in.
Disney world. First real vacation in over 3 years. Still coding :-)
I’ve been trying to develop a side hobby of building guitars. This weekend I’m working on a reproduction of a 6th century Germanic instrument called a lyre. My biggest challenge over the weekend will be gluing the two halves of the soundboard together, which so far I’ve been failing at. It requires planing two 24” long boards along a 1/8” wide edge to get a perfectly flat seam. It has led down a pretty deep rabbit hole of learning about hand planes and blade sharpening, but it’s all pretty rewarding.
I’ll probably take my wife to see Jurassic World: Fallen Kingdom this weekend. She loves those movies, and since she had breast cancer and is going through chemotherapy to mitigate the risk of recurring tumors, it’s important to keep her morale up.
I’ve also been tinkering with building my own OpenBSD static website generator using
make,sed,lowdown,sassc, anddateutils. It’ll use my~/.planfile as a non-social blog, and also pull in~/.project.Using
sedwill let me take advantage oflowdown’s ability to extract metadata and convert markdown files without wrapping them in stand-alone HTML files to populate templates.I’ve timed both
sassandsasscusing thetimecommand, andsasscappears to be faster.I’m pulling in
dateutilsso I can store timestamps in variables and convert them to arbitrary formats.I like what Roman Zolotarev did with his ssg script, but his implementation seems blog-oriented, and I want to get away from blogs and party like it’s 1999. Rather than try to make his script work the way I want it to, I’ve been studying it as a reference implementation so I can do it my way. :)
Also, I want to see if I can get better performance by using
make -j. It seems most static site generators process pages sequentially, but that seems inefficient when I’ve got an 8-core machine and 8GB of RAM.Good luck on that generator. I tried the same thing but primarily with M4. Would not recommend that path. You could simplify your generator into
markdown content.md |cat head.htm - foot.htm >content.htmin the end.Thanks. I know I could use
catto simplify generation, but I’ve already figured out how to populate HTML templates usingsed. It’s more complex, but also more powerful since I can chain multiple operations into a single command.I had originally started out by writing a shell script, but once I was ready to loop through multiple files I realized that a shell script wasn’t really the best tool for the job, and that I might have a better time if I use
make.This way I can tell my wife that the ten bucks I spent on a used copy of sed & awk from O’Reilly Press wasn’t wasted. :)
Friend of mine is turning one year older, so we’re going to a cabin in the woods with cake and liquor. I’m also going to continue reading through Patterns in Network Architecture, which I’ve been plugging through for about two weeks but got stalled on.
Celebrating a friend of mine incrementing the significant bit of his age. Picking up some work for a friend who needs an extra pair of eyes. Continuing with trying to write a language parser in ruby for another client.
An especially eclectic collection of things this weekend for me.
A few social obligations, first, I’m going to finally be a good son and actually see my mother. It’s been far too long again. Second, pride is this weekend in my city, so I’ll be heading over to some friends’ place for an afternoon.
Between all that I’m working on making an enclosed spool holder for my 3D printer. I think I have the design mostly done, but I’m running into problems with it popping off part way through the print because it’s so large, so it’ll mostly be trying different tricks to get the PETG to stick to the bed better.
Printing stuff is a really bursty project though, so hopefully I’ll get some more done on my CoAP library. I got a couple PRs for improvements that has spurred me into getting back into working on that again.
Finally, I also picked up “ Hands-On Concurrency with Rust” by Brian L. Troutwine, so if the weather cooperates I’m hoping to get some hammock time in to do a first read through on some of that. I’m still in the intro chapter, but I’m really encouraged by how much technical detail there is already. I actually forgot it was a book about Rust for awhile with how much discussion there was about x86 & arm instructions and how concurrent programs behave at that level on each.
Sans-screen will be mostly relaxing and enjoying the fantastic weather we’ve been having. Maybe get together with some friends for a hike.
Screen-wise I’m gonna start work on a cross-platform text expander. I use OSX at work and Arch at home and it bugs me that there isn’t a cross platform solution there. Main goals are that it works on those platforms, can sync with a snippet repo (so updates bridge computers), and that snippets are scriptable so you can dynamically have pieces filled in.
@rocx mentioned M4, and while it’s kinda old and hairy the GNU version might be what you need.
I will be at the National Morris Weekend :D
Recording two comedy shows for producing my buddy’s album!
Recording two (1, 2) podcasts because they are fun!
I don’t program for fun anymore and it really doesn’t bother me.
As an after-hours audio guy, I wish you good cables and low noise floors.
“Celebrating” Midsummer, as well as one can in a stereotypical wet and rainy Sweden.
If the weather lets up I’ll mow the lawn. I’ve also promised an updated CV to a recruiter.
I’m being a good son and took my mum to London with me, as I was going over to attend the friday nights Taylor Swift concert.
So no programming this weekend.