Sharing data in smart contracts

Posted on Tue 09 August 2022 in tech • Tagged with solidity, programming, ethereum, web3

Sharing data across smart contracts is not always as easy as it might seem. Here is an example of using getters and setters to share data easily between two contracts.


TypeScript instanceof vs a Type Guard

Posted on Wed 08 June 2022 in tech • Tagged with TypeScript, programming

I was recently horrified to discover that TypeScript instanceof does not support interfaces. Of course this begs the question of it's utility, however I digress. The solution is to use a type guard:

Solana Parsed Instruction vs PartiallyDecodedInstruction


GMT 6.1 and ETOPO1 Bedrock or Ice

Posted on Fri 21 January 2022 in tech • Tagged with gmt, cartography, geo, bedrock, ice

ETOPO1 Ice

Check out the latest GMT with Bedrock and Ice Surface containers posted to Docker Hub

I have a project to build these containers on GitHub

Today I posted and update that includes both bedrock and ice surface etopo1 data.

Package Contents:

  • Debian Stable
  • GMT 6.1
  • ETOPO1 Bedrock: etopo1-gmt6-bedrock-012122
  • ETOPO1 …

Continue reading

A Simple PostScript Code

Posted on Mon 03 January 2022 in tech • Tagged with PostScript, programming

I wrote a few small PostScript programs in the 90's. At one point my resume was even manually formatted in PostScript.


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 

School Winter Program on Zoom

Posted on Mon 20 December 2021 in tech • Tagged with zoom

Winter Program

My son in the School Winter Program on Zoom! I'm so proud of him.