BURNT OUT
Today I have homework to complete housework to start chores to complete a hyper puppy to placate Sigh.
BATCH FILE RENAMING THE LAZY WAY
When I first converted my blog over to hugo from hakyll, I neglected to put the date published onto the front of the blog posts file names. This resulted in URLs that were slightly less descriptive than desired, and also made it harder to scan through the markdown files quickly. Luckily in each file is a header, and within each header is a date field. Therefore, with my rusty old bash trickery I was able to spit out the following one-liner to do the job of renaming all the files.
END OF VACATION 2016
It’s Sunday, the first of May, and I’m wrapping up my week-long vacation from work. It was nice to be out of the office for a few days, but with the amount of work I got caught up on for school, I still feel like I need a vacation. The positive side of this work-cation is that I no longer feel like I’m drowning in work, as I’m pretty much caught up with everything I need to do.
C++ FRIENDS, TEMPLATES, AND FRIENDS OF TEMPLATES
This post is mostly to keep my own memory fresh. It’s been a while since I’ve written any hard-core C++ code, especially code that uses the language to its fullest potential. Let’s assume for some strange reason that you have a class template within another class template. In other words, consider the following code: template <typename T> class outer { int x = 0; public: template <typename U> struct inner { void foo(outer<U> const& o) const { cout << o.
HUGO: ONLY SHOW CONTENT UNDER A GIVEN SECTION
One thing I initially found strange of Hugo was that it listed every piece of content on the front page - as if they were all blog posts. Luckily Hugo is flexible enough to change that behaviour without having to do any hacking. This blog post is mostly so that I remember how to do this in the future. To limit your front page to show only content from a certain sub-directory, say, “post”, edit your index.
NEW SITE
Every once in a while I like to shake things up a bit around here. I’ve owned this domain since around 2005 or so, and over the years it has changed quite drastically. From my humble web development beginnings, exploring the in’s and out’s of HTML, PHP, etc; to the Wordpress years; to now. Since 2013 I’ve opted to rely on static site generators such as Jekyll, Hakyll, and now Hugo.
2015 WRAPUP
2015 is gone now, so I think this is a good time to look back and reflect on some things. First and foremost, 2015 was my very first full calendar year of being married, and also of owning a house. There were challenges to overcome and projects to complete, but overall I think Chelsey and I did pretty good for our first real year. I’m certain that there will be more challenges ahead, but Chel and I have a way of respectful argumentation that allows us to resolve issues very efficiently - we’re a good team!
WHY EMACS?
Why do I still use the emacs text editor after all these years? I could try explaining it to you, but I think I’ll defer this one to science fiction author Neal Stephenson: I use emacs, which might be thought of as a thermonuclear word processor. It was created by Richard Stallman; enough said. It is written in Lisp, which is the only computer language that is beautiful. It is colossal, and yet it only edits straight ASCII text files, which is to say, no fonts, no boldface, no underlining.
PROGRAMMING OUTDOORS
As a software professional, I spend a lot of time indoors. It’s really not so bad: I have a nice comfy chair, ample desk space, and the office is always nice and air conditioned :-) But the past few days have been so beautiful here in Windsor that I’ve been taking my coffee and laptop outside to read the morning news and catch up on email. It makes me remember the good old days when I was working to pay for my undergraduate.
LIFE IS GOOD
I’m sitting out here in my back yard, sipping a cup of freshly brewed coffee. The sun is shining and I can hear birds chirping away in the trees. This is what it’s all about: Not the hustle and bustle of work, nor the never-ending list of things to do with the house. Just me, my coffee, and a beautiful Sunday morning. This is the life. And it is good.