Articles and notes (short, untitled posts, a.k.a. microposts). You can also see articles only or browse by topic.

  • TIL leap years are really complicated:

    if (year is not divisible by 4) then (it is a common year)
    else if (year is not divisible by 100) then (it is a leap year)
    else if (year is not divisible by 400) then (it is a common year)
    else (it is a leap year)

    Source

  • Enjoying Feedbin enough to pay $5/month now that my free trial's over. Nice simple, clean, and easy-to-use interface compared to Feedly and Inoreader. What's the best iOS app to use with it?

  • If I ever write a book about software engineering management, I'm going to take some cues from this podcast about training dogs to perform on Broadway.

  • Microblogging in Jekyll

    A microblog is a blog that features short, usually untitled posts. Until recently, I thought that Twitter and Tumblr were the only ways anybody microblogged nowadays. Turns out, there is a vibrant community of IndieWeb enthusiasts microblogging on their own websites. So lately, I’ve been setting up my own site for microblogging.

    Read more
  • Discrete Structures (CS 225)

    I recently finished taking Discrete Structures, my second course in Oregon State University’s post-baccalaureate computer science program. This is a math course, what most universities would call discrete math. There was no programming involved, although the textbook and lectures occasionally explained how topics related to computing.

    Read more
  • I’ve made a habit of keeping too many browser tabs open as long as browser tabs have been a thing, but I have seriously been abusing my computer since I discovered Micro.blog.

  • First impression of Middleman: everything I like about Jekyll, plus you can use ERB in the templates instead of Liquid. I can see myself switching.

  • Email is currently the ONLY place on the internet where we are free to connect without the interference of algorithms.

    From an email I received today. Also saw a tweet the other day that said there’s no good alternative to Medium. Blogs and RSS are still a thing, people!

  • I'm pretty happy with Jekyll for my personal site right now but I'm itching to try this static-dynamic hybrid approach: Blog is a Rails app. It only has interfaces for displaying posts, not writing or editing. We have a Micropub endpoint for publishing.

    All views are public, so we cache every view. We don't worry about cache invalidation; anytime we change anything in the database, we just blow away the entire cache. But we don't build the entire site at once; Rails controllers build and cache pages as they are requested. Once cached, a page is served as a static HTML file.

    We have all the benefits of a static site generator in a Majestic Monolith that could handle commenting and even accept Webmentions. The most magical part? The more traffic the site gets, the faster the average page load will be (to a point) because users are more likely to hit a cached page.

    Please help me name this or I'll have no choice but to call it "stanamic” architecture.

  • Since everyone’s opining on the current Apple lineup, I’ll say this: the 13-inch MacBook Air is basically the perfect laptop. I wouldn’t change a thing except go back to the original MagSafe connector and improve performance and battery life as possible while maintaining weight.