Skip to content

Instantly share code, notes, and snippets.

@rayvoelker
rayvoelker / item_record_data_from_barcodes.sql
Created November 6, 2025 14:55
Find Sierra item record details from a pasted set of item barcodes
with raw(txt) as (
values($$
A000073358188
A000999888777
1041606446014
$$)
),
pasted(barcode_raw) as (
select regexp_replace(s, '^\s+|\s+$', '', 'g') -- trim line-by-line
from regexp_split_to_table((SELECT txt FROM raw), E'\n') AS s

"And it's quite out of character for Linus not to have a blazingly clear opinion. (We all know his stance on C++, for instance.)""

explain, cite ChatGPT said:

The quote refers to Linus Torvalds, the creator of the Linux kernel, and his well-known tendency to express strong opinions on various technical topics, often in blunt and unfiltered ways. The specific reference to C++ alludes to his documented criticism of the language, particularly in the context of systems programming. Linus Torvalds on C++

Torvalds has been openly critical of C++, preferring the C programming language for kernel development. His most famous critique of C++ came in a 2004 mailing list post where he called it a "horrible language" and criticized its complexity, overuse of features, and lack of good programmers who use it properly. Key Points of His Criticism:

import pandas as pd
from math import isnan
class StudentNew:
"""
Defines a CUSTOMIZED patron record object for use with the API.
"""
def __init__(self,
last_name,
first_name,
@rayvoelker
rayvoelker / sierra-sql-to-csv.py
Last active January 15, 2025 19:45
Sierra SQL to CSV
"""
Setup Instructions:
1. Create and activate a Python virtual environment:
- Linux/macOS:
python3 -m venv venv
source venv/bin/activate
- Windows:
python -m venv venv
.\venv\Scripts\activate
item_format format_rank combined_title_author resource_link total_checkouts
0 Audio Enabled Juvenile Book 1 Pete the cat and his magic sunglasses / Dean, James, 1957- author. https://cincinnatilib
@rayvoelker
rayvoelker / monitor-circmsg.sh
Created March 30, 2024 02:22
monitor circmsg circulation override file for changes -- email just the changes
#!/bin/bash
# Define file paths
CURRENT_FILE="/iiidb/errlog/circmsg"
PREVIOUS_FILE="/tmp/errlog-circmsg-prev"
# Check if the previous file snapshot exists
if [ ! -f "$PREVIOUS_FILE" ]; then
# If not, create it and exit, as we can't compare yet
cp "$CURRENT_FILE" "$PREVIOUS_FILE"
@rayvoelker
rayvoelker / SemanticSearchSwiftly-Load.ipynb
Created March 26, 2024 17:55
SemanticSearchSwiftly-Load.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rayvoelker
rayvoelker / SemanticSearchSwiftly-Transform.ipynb
Created March 26, 2024 17:53
SemanticSearchSwiftly-Transform.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rayvoelker
rayvoelker / SemanticSearchSwiftly-Extract.ipynb
Created March 26, 2024 17:52
SemanticSearchSwiftly-Extract.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rayvoelker
rayvoelker / SemanticSearchSwiftly.ipynb
Created March 26, 2024 17:43
SemanticSearchSwiftly
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.