• Tuesday

    • SPDX = Software Package Data Exchange. https://spdx.org/licenses/.
    • Started a free one month trial for linkedin premium to check out the features. So far, nothing substantially useful to me. “Who viewed your profile” is interesting, but also a bit of a privacy overstep in my opinion.
    • Solana NY hacker house next week: https://lu.ma/ny-hacker-house. 700 registrants right now.
    • ctrl-shift-i -> ctrl-shift-p -> disable javascript. Explore various sites to see what content they render clientside.
    • Will probably use gray-matter (https://github.com/jonschlinkert/gray-matter) for Title and Date front matter in my yaml/md for custom blog creation.
    • Vscode ext regex previewer not working for me. Side by side not highlighting, with either “test regex” button or ctrl-alt-m. Uninstalled and reinstalled. Still not working. Remote wsl:ubuntu and javascript regex.
    • Husky for git hooks: https://typicode.github.io/husky.
    • Little more blogwork with next+vercel.
      • Converted to typescript.
      • Added eslint.
      • Played with the CD tool a bit more.
      • https://nextjs-blog-bmahlstedt.vercel.app/.
      • Also added playwright tests with checkly.
    • More SEO: meta tags, 308s better than 301s for redirects, xml sitemaps.
      • Devtools Lighthouse to generate reports. Run in incognito without extensions. Desktop|mobile.
        • Wp blog: 100|92 perf, 98|100 accessibility, 92|92 best practices, 91|92 seo.
        • SBSC: 84|40 perf, 96|96 accessibility, 92|83 best practices, 90|92 seo.
    • Using an ear endoscope is surreal.
    • Two web3 auditors you can have report your protocol: trail of bits and omniscia.
    • Sapphire Reserve rewards. https://account.chase.com/sapphire/reserve/benefits. Like others, the ratio is 100pts = $1. And therefore “3x points” means the same thing as “3% cashback” but the former is better because you can redeem points on ultimate rewards with additional multipliers.
      • $300/yr statement credit that can be used for travel (these don’t give pts though).
      • If you book travel through ultimate rewards: flights get you 5x points and hotels/cars get you 10x points. (3x if you pay for travel anywhere else).
      • If you redeem travel through ultimate rewards: points are worth 50% more for flights/hotels/cars.
      • Trip cancellation insurance.
      • No foreign exchange fees (usually 3%).
      • If you book dining through ultimate rewards: 10x points (3x if you pay for dining anywhere else).
      • Everything else is 1 point per 1 dollar purchase.
      • Lounge access (priority pass) +2 guests.
      • Global Entry + TSA precheck, $100 reimbursement every 4 years.
      • Can transfer any ultimate rewards points 1:1 to another airline loyalty program.
      • (signup bonus: 50k pts ($500) if you spend $4k in the first 3 months).
      • Overall:
        • If you’re going to travel, book through ultimate rewards. You get 5-10x points.
        • If you’re going to a restaurant/pickout/takeout, book through ultimate rewards. You get 10x points.
        • Don’t redeem points for cashback, if you’re going to travel. You get 1.5x more dollars by redeeming travel through ultimate rewards.
        • Dining and travel are still 3x if booked not through ultimate rewards, which is probably better than other cards.
    • Did a bunch of card comparisons in spreadsheets for future use. Two use cases: (1) churning and (2) “which card do I have that gives the best return on this type of purchase?”
    • Settled and claimed feb BAT rewards for Brave usage across all devices (laptop and desktop, still no mobile rewards support).
    • Using 0.8.12 solidity: https://github.com/ethereum/solidity/releases.
    • Started the NFT dapp.
      • Remember 721 is the NFT standard https://eips.ethereum.org/EIPS/eip-721.
      • Use this to inherit: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol.
      • OpenSea metadata standards: https://docs.opensea.io/docs/metadata-standards.
        • Name, description, image, attributes, more.
      • Used https://jsonkeeper.com/ to host the metadata json.
      • Deployed to Rinkeby.
      • https://testnets.opensea.io/assets/0xbd4fe8eb46d12bac35b0c59aa83cba7649f0aa9b/1
    • Remember; while many NFTs have metadata that point to a link, and a centralized service hosts that link, that doesn’t have to be the case. You can store the NFTs onchain. Raw data would be too large, sure, but you can store SVGs which are generated by code (example https://www.svgviewer.dev/). In this manner, the NFT can never change and never go down.