News
Turkey Recipe
Here's my Roasted Turkey recipe. Click on any picture to bring up the lightbox with captions. new LuminousGallery( document.querySelectorAll('.gallery'), { arrowNavigation: true, }, { caption: function (trigger) { return trigger.
News
Thoughts on the Election of Joe Biden
Thoughts on the election of Joe Biden.
First, let’s admit it’s pretty amazing that Biden won. If you look historically at US Presidential elections all the forces were tilted toward a Trump win:
Trump was an incumbent, which is a huge advantage.
The economy was doing good.
We had a national catastrophe (Covid) and Americans traditionally rally around the President when faced with such adversity, just think of Bush’s rise in popularity after the 9-11 attacks.
News
Thoughts Before the 2020 Election
Some random thoughts before the final day of voting in the 2020 US Presidential election:
At least now more people realize the importance of politics. “How bad could it be?” may have gotten him into the office, but “Oh, that bad!” will probably remove him.
The press, at least the legitimate press, like CNN and the NYTimes, finally overcame their crippling addiction to falling for every single Trump troll.
News
The Unreasonable Effectiveness of Customer Data
Here are two great talks by Google engineers on dealing with large sets of data and how they can be used to improve your product.
The first is a talk by Peter Norvig - The Unreasonable Effectiveness of Data:
The point of the talk is that having more data is better than having a more clever algorithm.
And you can see this in action in this second talk by Douglas Merrill.
News
Referrer Policy
This is a reminder from the running-just-to-stay-in-the-same-place department that if you run a blog you probably want to set a Referrer-Policy header:
Referrer-Policy: unsafe-url Chrome MDN This notice brought to you by the “What broke my webmention implementation this time?” department.
News
Shadow Dom Example
We need to talk about Shadow DOM. While the Google official docs strongly encourage the use of Shadow DOM, I quite strongly disagree.
As an example, a couple weeks ago I realized I could style the <summary> part of a <details><summary> set of elements as a button, which would look great and more readily indicate its function. You can see the improvement here:
Before:
After:
Thankfully I hadn’t swallowed the party-line on Shadown DOM and this is the full set of CSS changes I had to make, just the following additions:
News
Creating a Date Column in Notion That Has a Default
I searched around for a while on how to create a Date column in Notion that defaulted to the current date and time but could also be editable. I didn’t find anything useful and eventually came up with my own solution.
This requires three columns:
The first column is the Created column which exists by default on tables. The second column is a Date column named Override Date. This will normally be empty unless you enter a value in the column.
News
Efficient is the antonym of Robust
In Just Too Efficient, Tim Bray gathers a good set of links and arguments about efficiency.
As I’ve said before:
"Efficient" is the antonym of "Robust". https://t.co/a05rUC5XKE
— Joe Gregorio (@bitworking) April 23, 2020
News
Public Service Announcement: Wealth Induced Tech Bro Sociopathy
Do you, or someone you know, suffer from the following symptoms?
Willful ignorance of history because doing otherwise might impact your bottom line? Mark Zuckerberg
Do you equate self-driving cars with dismembering journalists? Uber
Do you take umbrage at women’s suffrage? Peter Theil
Is your name Marc Andreessen?
Then you might be suffering from Wealth Induced Tech Bro Sociopathy, an old disease currently experiencing an outbreak in Silicon Valley.
News
Time Crimp
Defn: Time Crimp, Temporal Crimp, or simply Crimp A term that describes the compression of time during a crisis. During times of crisis events unfold with a speed unthinkable outside a crisis. Vaccines for Covid-19 may be available in a year or two, as opposed to the normal development timeline of decades. Sweeping changes to zoning laws that would normally have been impossible, or at least taken years to get approved are done in a matter of days.
News
Murkowski
Murkowski verb
To express "concern" about something you have no intention of doing anything about. Derived from Senator Lisa Murkowski who claimed she was "concerned" about about President Trumps behavior but still decided to vote against impeaching him. Four months later Trump was tear-gassing peaceful protesters. Example usage: "Wow, Zuckerburg totally Murkowski'd on Trump's violent rhetoric." See also: Duplicitious.
News
go2ts
go2ts is a simple and powerful Go to Typescript generator. It can handle all JSON serializable Go types and also has the ability to define TypeScript union types.
Written because none of the existing solutions did what I wanted.
This code originally started from struct2ts when I started writing a PR to add the features I wanted, but after adding unit tests, cleaning up the code to meet our internal standards, and removing features temporarily so I could more easily understand the code, I realized I only had a handful of lines in common with the original project, so I instead forked it into its own project.
News
Chana Masala Recipe
Here's my Chana Masala recipe. Click on any picture to bring up the lightbox with captions. ul.recipe { display: flex; flex-wrap: wrap; } ul.recipe li { list-style: none; margin: 8px; } .lum-lightbox-caption { color: white; background: black; font-size: 150%; padding: 16px; } new LuminousGallery( document.
News
Spinach Rice Recipe
I've seen Spinach Rice recipes where the spinach is all bright green and fluffy and the rice is brilliant white. That is wrong, and this is not that recipe. If you cook this right the chicken stock combined with the Dill Weed and the carmalized onions will give the dish a nice meaty taste. Click on any picture to bring up the lightbox with captions. new LuminousGallery( document.
News
Pizza Dough Recipe
Doughs really aren't that difficult or finicky, start with some warm water and yeast and mix in flour until you get the right consistency, no precise measuring or scales needed. Click on any picture to bring up the lightbox with captions. new LuminousGallery( document.
News
Baked Stuffed Zucchini Recipe
Here is my Baked Stuffed Zucchini recipe. Click on any picture to bring up the lightbox with captions. ul.recipe { display: flex; flex-wrap: wrap; } ul.recipe li { list-style: none; margin: 8px; } .
News
Meatballs Recipe
My kids have asked me to write up my recipes, but the problem is that for the vast majority of the things I cook are done by eye, so I'm attempting to document them with pictures. Here is my meatballs recipe. Click on any picture to bring up the lightbox with captions. new LuminousGallery( document.
News
Tzatziki Recipe
My kids have asked me to write up my recipes, but the problem is that for the vast majority of the things I cook are done by eye, so I'm attempting to document them with pictures, starting with my Tzatziki recipe. Click on any picture to bring up the lightbox with captions. new LuminousGallery( document.
News
Hugo
This blog has just migrated from Jekyll to Hugo.
Why? Having programmed in Go for six years now I’m very comfortable with Go templates, which are the basis of Hugo templating. Also, speed is a feature, and hugo -D can rebuild this entire static site, all 2,700 pages, in under 2 seconds.
And while I am happy with Hugo now that I’ve gotten up to speed, the introductory documentation is missing a hugely important bit of trivia about Hugo configuration files and the templates, which is that case is ignored.
News
Adapting to new patterns in the pandemic.
It’s amazing to me how quickly something can become a habit; After only a couple months of one-way aisles, this weekend I was a little rattled with two-way traffic in the grocery store.
For context, North Carolina entered Phase II of our opening on Friday.