Pinata and NextJS APIs

Pinning with Pinata and old busted NextJS APIs Photo by Sebdunedin from Midjourney Integrating NextJS Pages Router with Pinata Well, it has certainly been some time since this ole place has been updated. Probably because a company was paying me to not write blog posts about quirky software problems, and I couldn’t write blog posts about their tech stack. Anywho, this blog post is about the nightmare of integrating the Pinata pinning APIs with NextJS Pages Router APIs. ...

July 6, 2024 · 11 min

AWS Cloudfront to s3

AWS Cloundfront to s3 Photo by Amos from Stockphotos Setting up a static website with s3 This post, yet again, serves as a message in a bottle for a future self who ever needs to set up a static website on s3, in 2023…because all the documentation changes every year and you never know what will work today. So this obviously will not work tomorrow. But it works today. Problem: serve a static website in s3 For this endeavour I thought it would be somewhat approachable to setup a static website in an s3 bucket. I heard you could do it, I have seen it advertised, so I assumed it would be easy enough. Aaaand, it isn’t, surprise, surpise, thank you AWS. ...

February 8, 2023 · 6 min

DeFi means democratizing finance

DeFi means Democratizing Finance Photo by Marija Zaric on Unsplash Post DeFi summer, we are apparently in DeFi autumn(?), which suggests we are heading into DeFi winter? Or perhaps we went from DeFi summer to DeFi winter, and skiped the fall. Or is the fall so percipitous that we just end up immediately in winter? Decentralized Finance DeFi, a blending word created from contracting decentrailized finance had quite the run in the summer of 2020. It was the coming of age of DeFi, a concept that had been known before 2020, but solidified during that year. finematics has a nice summary of the events. The summer of 2020 defined DeFi as a force in the blockchain world. ...

May 25, 2022 · 5 min

Crypto Crashing...Again

Crypto Crashing…Again Photo by Conor Samuel on Unsplash Could be the name of a song, but alas it is just crypto being crypto. This time with moar flare than usual…or just the same ole same ole thang. from @needacoin on twitter. ...

May 12, 2022 · 5 min

Lucky number 777

Lucky number 777 Photo by Samuel Branch on Unsplash Working with the OpenZeppelin ERC777 contract This is a quick post about working with the ERC777 smart contract implementation from Open Zeppelin. The other token contract implemenations from Open Zeppelin are somewhat straight forward to work with, namely the ERC20 and ERC721 contracts, however, the ERC777 contract implementation takes a bit of love before it can be deployed and played with. What’s the problem The ERC20 and ERC721 contracts can be deployed without any fuss, as they only depend on their import statements. Which if available will result in a deployable contract. However, because the ERC777 standard interacts with the ERC1820 Regsitry contract, an ERC777 contract will revert when deployed if a Registry is not available on the network. If you are working on a local network, then your contract will fail to deploy (and you will spend a couple hours trying to figure out why a vanilla contract won’t deploy). The following is a manual approach to get an ERC777 working on a local test network. Note, that the ERC1820 Registry contract is available on most major testnets, so if working with one of those, you should not have these issues. ...

May 10, 2022 · 6 min

Markets be nickel-and-dimin

Markets be nickel-and-dimin' Photo by Siarhei Palishchuk on Unsplash The LME cancels trades for a third time It has been a bit since this space has been updated, but a lot has happened! Today is a little offering for posterity, as this event will most likely be swept up in the dust bin of history, and only available as a footnote in a book. But it is a rather important development, IMHO, for blockchain tech and DeFi. The long and short of it is that Russian invaded the Ukraine on February 24th 2022. This threw the commodities world upside down, resulting in the price of nickel spiking from approximately $25,825 per tonne on February 23rd to over $100,000 per tonne on March 9th. This wasn’t the only commodity to spike as a result of the uncertainty in the geopolitical landscape, however, this move broke the London Metal Exchange (LME). ...

March 26, 2022 · 7 min

State of the Crypto Union

The State of the Crypto Union DeFi, NFTs, and Derivatives, oh my! In an effort to remember how to update this blog, and to keep this area somewhat active, it is perhpas a good idea to reflect on the current crypto space as the middle of 2021 approaches. Sell in May and go away doesn’t seem to be the case this year as, checks the price charts, Ethereum is posting a new ATH and Bitcoin is bouncing back from oblivion. 2020 was the shitshow of the century as the world devolved into the coronavirus pandemic, which we are still reeling from socially, fanancially, politically, and unfortunately from India’s perspective, the pandemic continues. ...

May 1, 2021 · 5 min

I Got A Shirt

Own The Internet’ Hackathon: Post Mortem Following the Sia and Namebase hackathon via gitcoin I recieved a runner up prize of 250 HNS and this pretty fun shirt, but handybot also got used in production for a bit in the HandshakeTalk telegram chat group, which was great to see. The following is a recap of the use of the bot and some lessons for using telegram bots in a production environment. ...

October 29, 2020 · 4 min

Own the Internet Hackathon

Sia And Namebase Present: ‘Own The Internet’ Hackathon (Photo by Alice Dietrich on Unsplash) Sia and Namebase recently held a hackathon via gitcoin in which one of the goals was to build an application with handshake, a decentralized certificate and naming authority. This is a quick recap of the project I made for the hackathon. The repo can be found at handybot. Build An Application With Handshake Handshake is a promising young project, which is now live, that aims to offer an alternative to the current Domain Name System (DNS). I have been following the project and was interested in its progress. The hackathon presented an opportunity to learn more about the tech stack of the project, and get my hands dirty in trying to make an application that integrated with the Handshake network. ...

August 25, 2020 · 6 min

Mongo Image Database

I say Mango you say Mongo (for images) (Photo by Avinash Kumar on Unsplash) I recently looked into how MongoDB can facilitate storing and retrieving images, and had some difficulty implementing the examples I found online. Here is the solution I came up with to serve as hopeful help in the future for me or anyone else. Background MongoDB is primarily a document database, not designed for larger files, so CRUD operations for files over 16MB is not supported. Mongo’s solution is GridFS, a dedicated mongo database structure for larger files. This is more of a bucket to dump large files, which is split between two collections, one which stores the file’s metadata, while the other, the binary data source. ...

August 15, 2020 · 5 min