Asymptomatic

Posts tagged: blog

Sn Updates July

Over the holiday weekend, I put some time into some updates to Sn (the software that makes this blog go) that will hopefully shift it back in the direction I was originally hoping for.

When I initially wrote the app, I hand-rolled my own router function. It was pretty simple, breaking URLs apart at slashes and looking for replaceable variables. It worked very well, was small, and did exactly what I wanted. So why did I update it to the Gorilla mux library?

Bleve

I think I’ve finally got this working properly, but who knows how much longer it will stay online so I’d better write this quickly.

I’d been looking for a way to better perform searches for this blog within the config. That is to say, for certain routes, I’d like posts with certain characteristics to appear. The criteria for the posts are a search, and are associated to the route configuration.

Tin

I had mentioned a while back that I had written a new application to serve this blog, written in Elixir, and called it “Eldir”. No sooner had I done that than I started goofing around with Go, and wrote a brand new application for serving this blog, which I’m calling “Sn”, for “Tin”.

Sn is built with the same concept in mind as with Eldir – to take as input a directory of markdown files (usually part of a local git checkout) and a config file, and serve a dynamic, templatized site from them. The constraints I set for myself are basically the same, where I’d like to load all of the data into memory, and then never touch disk unless serving a static file directly.

Stinky Cat

I was going to write something profound this morning, but instead, I’m going to complain about my cat.

I have some time blocked out in the morning around breakfast to write some stuff for the blog. It’s not a lot of time, but it seems to be enough to actually get some written stuff online, which is more than I’ve been able to do regularly over the last couple of years.

New Theme

Well, the new theme is not done yet, but it’s up.

When I updated the site to remove Phoenix and use only Plug and Cowboy, I inadvertently broke the pagination. When I started fixing this problem, I noticed that I was calling a function with three parameters, but the first parameter contained the value of the third. I was essentially doing this: