How to use ed - the original text editor

Posted on Fri 03 January 2025 in tech • Tagged with ed, unix

How to use ed

ed file.txt
1,$p         # Print all lines.
3d           # Delete line 3.
$s/foo/bar/g # Replace "foo" with "bar" in all lines.
w            # Save changes.
q            # Quit the editor.
i            # insert previous line
a            # append next line

Beans Test Kitchen - Panettone Taste Test

Posted on Wed 01 January 2025 in food • Tagged with panettone, tastetest, kitchen

Beans Test Kitchen Panettone Blind Taste Test

Compared are * Tre Marie * Pisti - Il Panettone * Bauducco


History: Isabella and Ferdinand

Posted on Sun 29 December 2024 in history • Tagged with history, persons

1480

The marriage of Isabella of Castile, 1474- 1504, and Ferdinand of Aragon, 1479- 1516, served to unify much of Christian and Muslim Spain. Though both kingdoms maintained separate governing institutions, the two rulers were able to strengthen the bond between the two kingdoms by strengthening their respective monarchies. Isabella …


Continue reading

History: Henry VII Tudor

Posted on Sun 22 December 2024 in history • Tagged with history, person

1485- 1509 - Henry VII defeated Richard III and established the Tudor dynasty. After the War of the Roses, much work was needed to unify the aristocracy, and Henry worked to quell dissension and build a strong monarchy. Henry eliminated the practice of wealthy families maintaining personal militaries. Henry also worked …


Continue reading

History: War of the Roses

Posted on Sun 15 December 2024 in history • Tagged with history, event

1450- 1485 - The War of the Roses was a civil war that broke out between English ducal houses. The house of Lancaster, whose symbol was a red rose, and the house of York, adopting the white rose. In the 1450's many aristocratic families were pitted against one another. Later, in …


Continue reading

How to Debug Custom Errors in Ethereum Using Foundry and Forge

Posted on Fri 13 December 2024 in tech • Tagged with programming, solana, solidity, error

Debugging custom errors in Ethereum smart contracts using Foundry and Forge involves guessing, intuition and trial and error. Custom errors can provide clarity and save gas compared to traditional require statements. However, debugging them requires perseverance.