PostgreSQL - scoping parameters in plpgsql
Scope plpgsql parameters with qualified names, e.g. my_function.my_param.
Scope plpgsql parameters with qualified names, e.g. my_function.my_param.
Tab completion provides builtin cheatsheets for psql settings.
Surely, there’s an easier way.
Step by step: How to install the pagila database in a local postgres cluster.
Redirecting output is a very easy way to copy psql query output.
How to execute dynamic SQL in a PostgreSQL procedure, demonstrated with psql queries and meta-commands.
Is text created by generated_series always aggregated in numerical order?
Take a look at the postgres COMMENT command, a convenient method for documenting database objects.
Sample PostgreSQL database for JSON tabular data packages
Probably a terrible idea, but I couldn’t resist trying.
\copy mytable from stdin + paste + \. + enter
Summary and examples of what I’ve learned about loading multiline JSON objects into postgres
Personal learning notes
Use schemas to organize and work with multiple projects in a single database while learning PostgreSQL.
Using roles in PostgreSQL, it’s easy to give yourself superuser privileges that can be invoked when needed, somewhat similar to using the sudo command on a U...
A step-by-step guide for installing PostgreSQL from source on macOS.
As much as I like the idea of bang history expansion in the shell, I probably end up escaping “!” much more than I use it.
I’ve seen this mistake too often to remain silent any longer.
Seems like this should be easy.
Learning zsh in public, pbnote function.
This post is a walk-through of methods I used to learn how to pass arguments stored in a variable to a command.
It’s beginning to feel less like a hack.
Experimenting with a cloned promptinit theme.
Everything I know about zparseopts I learned from this gist.
a (hastily hacked together) zsh function to list key bindings
After a couple years of using zsh and yet another thorough review of key bindings, some observations and recommendations.
The zsh ‘describe-key-briefly’ widget shows the binding of any key.
Hack together an alias to output a compact list of zsh keybindings in the shell.
Learn how to configure zsh to load functions from a directory using $fpath and autoload.
A hands-on exploration of writing a shell function in zsh.
Knowing how to use the ubiquitous shell pager “less” is an essential command line skill.
Fixing invalid byte sequences in UTF8 text with sed.
General directions for installing software from source on macOS.
I read the docs so you don’t have to.
Configure zsh to use the run-help function, making it easer to access documentation.
A great resource for understanding how to configure zsh.
This is a great introduction to git which helped me tremendously with a clear explanation of what’s going on under the hood.
“We’ll teach you how to master the command-line, use a powerful text editor, use fancy features of version control systems, and much more!” (videos)
“The essential command line tutorial for beginners. Learn how to navigate your computer with the CLI to modify files, update permissions and more.”
Getting Ruby 3/Jekyll 4 working with this site was an ordeal. I’m exhausted but delighted.
Minimal Mistakes Notices examples.
Here are a couple of errors I encountered and managed to solve while trying to install Jekyll with the builtin version of ruby on macOS Monterey.
I’m impressed.
I’ll be returning to these docs often for a while.
These are the hoops I jumped through to build Ruby on Ventura. There might be other solutions.
Some things about shell (zsh) history I don’t want to forget.
List of useful zsh shortcuts which are enabled by default in the Terminal on macOS.
Step by step directions for building a blog website using a web browser and GitHub Pages
Interactive regex tester
TLDR: man col | col -b
I now realize writing for myself is the best way for me to share more with others, and that’s what I intend to do. Typos be damned.