Blog

Quick Tip :: Check Google Email Address

It’s possible to check if a Google Suite based email address is valid or not:

1
$ curl -i https://mail.google.com/mail/gxlu?email=${EMAIL_ADDRESS}
Monday, November 6, 2023

Quick Tip: Fix Apt GPG error NO_PUBKEY

In the Ubuntu (Debian) packaging world of Apt, the use of apt-key has been deprecated (other than apt-key del to remove keys).

I’ve run into errors like the following periodically, and have had to spend more time than I should reminding myself of how to fix the issue:

1
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.releases.hashicorp.com jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DA418C88A3219F7B
Wednesday, February 22, 2023

Quick Tip: Get Absolute Path to Directory Script is Running in

When running a bash script, it’s sometimes convenient to get a fully qualified path to the directory that the source of the running script is in.

I continually have to remind myself of the exact syntax for this tip, so I’ve posted it for posterity. This approach should work around most issues of symlinked files, sourced files, etc.

Tuesday, January 17, 2023

Rain in the Sonoran Desert

I love rain in the desert.

Thursday, June 23, 2022

Quick Tip: Run Bash Commands in Parallel

I have a useful script that demonstrates a few different bash techniques.

This script:

  • Executes multiple commands on multiple SSH client hosts
  • Connects to each host in parallel, and waits for all host processes to terminate
  • As a freebie, demonstrates running apt in a non-interactive process
Wednesday, May 18, 2022

Quick Tip: create ico from png or jpg

I regularly have to look up the ImageMagick syntax for converting image files to ico formats when I’m creating a favicon.ico

The convert command, part of the ImageMagick suite, is quite helpful and versatile.

Wednesday, April 24, 2019

Family time in Puerto Peñasco

Loved our time in Rocky Point as a family.

Sunday, April 7, 2019

Deploy AWS Lambda functions with Terraform

I built a GitHub project to explore and document some basic Terraform scripts, both to learn Terraform, and to figure out how to deploy to AWS Lambda without using serverless or the web UI.

Tuesday, March 5, 2019

Quick Tip: Copy Files from LXC host to LXC Container

Today, I wanted to copy some files to the container filesystem of an lxc container I was spinning up.

There are a number of different approaches to achieve this, and they’re all great, but I wanted the simplest thing I could do, rather than grepping through fstab records, and copying into arcane folders, etc.

Tuesday, June 7, 2016

Quick Tip: Remove Query Param from URL in Go

How to easily remove query string parameters from a url.URL in Go.

Today’s short post shows how simple it is.

Wednesday, June 1, 2016

God Hates Suffering

Book by Dr. Bryan Davenport on my coffee table: 'God Hates Suffering'

Look what I just got today!

I’m excited to have just gotten my copy of God Hates Suffering in the mail today. The topic of suffering in the world is an old and much discussed one, and having discussed this with Bryan many times I’m really looking forward to the read.

Wednesday, May 25, 2016

Hiking in April

Kids climbing rocks. Sandler taking in the view.
Saturday, April 2, 2016

Sunrise in January

An Arizona Sunrise
Friday, January 15, 2016

Powershell Scripts - from the Archives

Way back in the day - circa 2007 or 2008 I had a website that included some sample code and snippets that demonstrated things I’d learned at the time.

The content isn’t really that valuable any longer, but there are some nifty things.

Thursday, July 2, 2015

Mail Queue Dispatcher

When writing web applications, one often has to send email as a part of the notification or registration process.

Sending email through an SMTP server directly from your main web application thread can block for an unreasonable amount of time while serving a response page that is waiting for the email to be delivered.

Wednesday, July 1, 2015

God is Good

My core theology is that God exists, and that he is Good.

  • God is,
  • God is Good, and
  • God wants to connect.
Tuesday, June 16, 2015

How to Lose Time and Money

Pay attention to time as much as money.

It’s hard to spend a fortune without noticing. Someone with ordinary tastes would find it hard to blow through more than a few tens of thousands of dollars without thinking “wow, I’m spending a lot of money.”

Wednesday, July 7, 2010

Fighting Oil with Nature | NYU-Poly

What if cleaning up the Gulf of Mexico wasn’t a matter of choosing between harsh chemical dispersants, labor-intensive skimming and potentially dangerous burns?

Wednesday, June 30, 2010

Plan - Sleep - Do; FTW

People who sleep after processing and storing a memory carry out their intentions much better than people who try to execute their plan before getting to sleep, say psychologists at Washington University in St. Louis.

Wednesday, June 30, 2010

Ignoring stress detours steps to recovery

The researchers found that how addicts cope with stress—either by working through a problem or avoiding it—is a strong predictor of whether they will experience cravings when faced with stress and negative mood.

Thursday, June 24, 2010

Mind Your Body: Going Through the Motions | Psychology Today

Athletes have long used mental imagery to complement physical practice, and research indicates that going through the motions only in your head can enhance performance just as well as—and sometimes better than—actually working up a sweat.

Sunday, May 2, 2010

Does 'Freedom' ipso facto mean less government?

Interesting argument; counter-arguments after the link…

Saturday, May 1, 2010

The Challenge of Indifference « Scott Berkun

Indifference, feigned or real, is such a pervasive part of North American culture (maybe just here in the Pacific Northwest, I don’t know).

Sunday, April 25, 2010

The Secret of Great Bread - Let Time Do the Work - NYTimes.com

Mr. Lahey’s method is striking on several levels. It requires no kneading. (Repeat: none.) It uses no special ingredients, equipment or techniques. It takes very little effort.

Thursday, April 22, 2010

Brain-training games don't work

Ah… there goes that theory.

Tuesday, April 20, 2010

Coordination Is Hard

Insightful perspective on governance, and the difficulty of concerted effort to achieve anything.

Monday, April 12, 2010

Command Hierarchies and System Resilience

It seems obvious that centralized, autocratic management hierarchies are brittle and that decentralized, democratic management hierarchies are more resilient to change.

Thursday, April 1, 2010

Psychopaths’ brains seek rewards at all costs

Fascinating look at the brains of psychopaths. I know that in addictions the consequences are often completely ignored by the addict while in the acting out phase of the addiction cycle. I would strongly expect that this hyper-reactive dopamine reward system is in effect at some level with addicts too.

Tuesday, March 30, 2010

Are belly bacteria making us overeat?

Recent research suggesting that intestinal bacteria may actually change the host person’s appetite and insulin resistance.

Monday, March 29, 2010

Selecting Talent: The Upshot from 85 Years of Research - Bob Sutton

Great article by Bob Sutton on hiring.

Most remarkable to me is how unpredictable on-the-job performance can be, using:

  • unstructured interviews (most common in my experience),
  • reference checks (!), and
  • job experience (!!)
Sunday, March 28, 2010

Hg Init: a Mercurial tutorial by Joel Spolsky

Hg Init: a Mercurial tutorial

Thursday, March 18, 2010

Liberals and Markets, Arnold Kling

Are Libertarians simply Liberals who like markets?

I’ve considered myself a Libertarian in many political views for a long time, and have been noticing an increasing ’leftward’ slide in my general political views, except for a couple hot-button areas.

Wednesday, March 17, 2010

What Truly “Wealthy” People Know about Money

It’s a representation of value.

Saturday, March 13, 2010

Attracting Talent, via Eric Lippert

Interesting summary of feedback by Eric Lippert, who was asking about factors that make a job description attractive (or not) to potential employees.

Monday, March 8, 2010

“It turns out” « jsomers.net

This is an engaging post about the use (and abuse) of a rhetorical phrase that gives the user immense influence, without actually needing the weight of facts to substantiate it.

Saturday, March 6, 2010

Twenty (More) Reality-Checking Questions for Would-Be Entrepreneurs

In addition to the 20 questions Dan Isenberg asks, ask yourself if you can answer “yes” to this list of statements before deciding whether or not to become an entrepreneur:

Friday, February 26, 2010

Enter the World of Children at Risk Through a Great Book « Hope For The Nations

Say You’re One of Them is an awe-inspiring collection of stories that challenges you to look beyond the headlines and see an Africa full of both joy and despair.

Thursday, February 25, 2010

Global gangs exploit blind spots for trafficking: U.N. | Reuters

“Technology has practically abolished time and space, so we should know what goes on around the planet at any moment. We don’t,” Costa said. “There are so many forgotten places, out of government control, too scary for investors and tourists.”

Wednesday, February 24, 2010

Testing Minimax Play In The Field « Cheap Talk

Fun article about game theory, incentives, and prediction.

Wednesday, February 24, 2010

How to Have Better Dinner Conversations

Ask a second question.

Monday, February 22, 2010