generate a random hex string in python

Posted on Thu 08 June 2023 in tech • Tagged with python, programming

Here is a simple gist that demonstrates how to generate a random hex string in Python. This is pseudo-random and designed only to be used for generating test data.


Send email using an iCloud custom domain

Posted on Wed 24 May 2023 in tech • Tagged with python, icloud, smtp, email

Send email using an iCloud Custom Domain

I recently required a script to send email using an Apple iCloud Custom Domain. I found that the SMTP script I used before did not work because it attempted to login with my email address. The fix is to login with your apple …


Continue reading

pylint to the people

Posted on Tue 21 December 2021 in tech • Tagged with pylint, python, code, programming

I applaud pylint for trying to keep me honest.

#14 2.636 evalsha.py:110:8: W1201: Use lazy % formatting in logging functions (logging-not-lazy)                                            
#14 2.636 
#14 2.636 -----------------------------------
#14 2.636 Your code has been rated at 9.88/10
#14 2.636 

Blog Refactoring

Posted on Sat 04 December 2021 in news • Tagged with Python

What would Saturday be without a Christmas cookie and a bit of blog refactoring?


Blocknative Python SDK - Complete Working Example

Posted on Sat 20 November 2021 in tech • Tagged with programming, python, blocknative, ethereum, blockchain

Complete working example, including Dockerfile and run script for Blocknative Python SDK. Works!


Generate the digits of Pi

Posted on Sun 31 October 2021 in tech • Tagged with programming, pi, python

Generate Digits of Pi - I have always been obsessed by Pi

Happy Halloween!