Hardware Offload for Unifi Edgerouter

Posted on Wed 30 November 2022 in tech • Tagged with unifi, edgerouter, performance

I recently discovered Hardware Offloading is not enabled by default on Unifi Edgerouter. To enable it you must give up QoS. However many small office networks don't need that and would benefit from the 3x performance boost instead. I tried it on my network and I observed easily a 3x …


Continue reading

building with rust...

Posted on Tue 22 November 2022 in tech • Tagged with Solana, rust, web3, rustc

"Even high-spec machines can run out of memory while compiling parts of the Solana codebase."

🤣


building solc

Posted on Thu 17 November 2022 in tech • Tagged with Ethereum, Solidity, web3, c++, devops

Building Solidity's compiler solc is nothing short of a bear. It is using complex external dependencies like boost with some optional dependencies. Moreover the build depends on specific versions of these packages. This amount of complexity for a compiler is a topic of another post but it does give me …


Continue reading

Store a value globally by address on chain

Posted on Fri 11 November 2022 in tech • Tagged with Ethereum, Solidity, web3

This simple solidity example is super useful for testing transaction processing. It globally sets a value by address which will default to sender but may also be specified.

Solidity AddressStore - Save a value globally on chain


Order of evaluation for Solidity modifiers

Posted on Thu 13 October 2022 in tech • Tagged with solidity, programming, ethereum, web3, modifier

Solidity modifiers are evaluated from left to right. It makes sense to order modifiers in order of those that are most likely to fail to those that are least likely to fail. It is also a good idea to order them from most primitive to most expensive. And prerequisite conditions …


Continue reading

remove the ./ from find -print

Posted on Wed 28 September 2022 in tech • Tagged with linux, programming, bash

If you want to apply a script to each file in a folder recursively you may not want the full relative path. Here is how to remove it.

$ find . -type f -print | sed -e "s|^\./||g"

For example to combine it with xargs and invoke a script on each name …


Continue reading