code.Antrikshy | Notes, tinkerings, experiments

Number Of Possible MOD Pizza Recipes


For those unfamiliar with MOD Pizza, they are a restaurant chain across the US and Canada, who specialize in quickly-served, made-to-order pizza. You get to pick anywhere between zero to all of their available toppings at flat rates, a bit like sandwiches at Subway.

A few months ago, I saw an advert for MOD Pizza on the side of a Seattle public transit bus. I wish I had taken a picture so that I wouldn’t have to go by memory, but I remember it claiming something along the lines of “thousands of possible combinations”. I remember thinking, “gee, it has to be a lot more than thousands” and that they must be intentionally undercounting them because millions or billions would sound too ridiculous to the general passerby.

I figured I’d double check their math.

Read more »

Jekyll Blogging From Any Computer On Your Network With A Raspberry Pi


As any Jekyll site owner would know, my workflow for writing these blog posts involves… friction.

  1. Open the site project in a text editor.
  2. Open command line window, navigate to the project location.
  3. Run the jekyll command to serve up a local preview of the site.
  4. Preview the site in a web browser while working on it.

Steps 2-4, of course, are somewhat optional; they are only required if you want to actively look at your changes as you make them.

I know these steps cannot be entirely eliminated without also foregoing the other benefits of Jekyll as a platform, but I also wanted to streamline the process as much as possible.

My updated workflow not only eliminates steps 2 and 3 from every writing session, but also comes with some nifty bonus features, like the ability to preview the site on my phone over LAN.

Read more »

A Succinct, CSS-Only Overflow Scroll Indicator


So, you’ve set an element to overflow: scroll with an explicit height. Now you have a scrollable space. Depending on the content in this space, it may not be entirely obvious that it is scrollable, unless the content happens to be obviously cut off. Here’s an example.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nunc sed velit dignissim sodales ut eu sem integer vitae. Amet cursus sit amet dictum sit amet justo donec enim. Non consectetur a erat nam. Ut venenatis tellus in metus. Arcu vitae elementum curabitur vitae nunc sed velit dignissim. At urna condimentum mattis pellentesque id. Natoque penatibus et magnis dis parturient. Dolor sed viverra ipsum nunc aliquet bibendum. Dapibus ultrices in iaculis nunc sed. Sed blandit libero volutpat sed cras ornare arcu. Vitae et leo duis ut.

Note: This does not apply on Windows or other operating systems (or browsers) that usually default to showing scroll bars for every scrollable element on the web.

The are all sorts of solutions to this on the web, but I didn’t want any surrounding HTML elements and more CSS to make them work. Here’s a quick CSS solution.

Read more »

Language Trends By Developer Type - Stack Overflow Developer Survey 2019


About two months ago, Stack Overflow released the results of their annual Developer Survey.

In the r/programming discussion of these results, a few folks were disappointed that Stack Overflow’s official analysis of the data did not separate popularity data for languages, platforms, frameworks etc. by developer type.

Card

So I waited for the dataset to be released under ODbL, and re-parsed the popularity numbers myself.

Read more »

Herman Miller Sayl Review, Plus Warranty Service Experience


This chair may not have the same icon status as some other Herman Miller designs (Aeron), but it still frequently gets screen time in TV and movies. I can’t blame those set designers; this chair makes a statement that few others do in the task chair space.

I moved into a new condo in late 2016. I wanted a modern look with the furnishing. Somehow, things fell into place such that I ended up with a white and red color scheme in the living room. Not too keen on waiting for a custom order from Herman Miller, I happened to find this perfect white and red trim of their Sayl chair on Amazon, sold by a seller named OfficeDesigns. We’ll come back to OfficeDesigns later.

Read more »