Learning

πŸ“š Documenting my learning journey | πŸ’» Dev diary | 🌴 Digital Garden

  • Published On

    What I'm doing now

    Updated : 16 March 2022

    Inspired by Derek Sivers' Now - LINK πŸ”—


    22 Jun 2022

    • [πŸ’» ] Create Next.js Tutorial for Beginners on Devahoy (Work in Progress)

    7 May 2022

    Note

    Delete all node_modules folders.

    # listing
    find . -name "node_modules" -type d -prune -print | xargs du -chs
    
    # delete
    find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;
    

    Reference : How to Delete ALL node_modules folders on your machine

    2 May 2022

    • [πŸ’» ] Completed Build Multi-Chain Applications with Moonbeam - Link

    26 April 2022

    25 April 2022

    24 April 2022

    • [πŸ’» ] Create NEAR NFT - Link
    • [πŸ’» ] Create NEAR Guestbook - Link

    21 April 2022

    • [πŸ’» ] Create Smart Contract on NEAR with AssemblyScript - Link

    20 April 2022

    • [πŸ’» ] Try Tauri with create-tauri-app to build Desktop app with Rust - Link

    18 April 2022

    • [πŸ’» ] Try esbuild the first time - Link

    17 April 2022

    15 April 2022

    • [πŸ’» ] Create NEAR Hello World Smart Contract with Rust - Link

    14 April 2022

    12 April 2022

    9 April 2022

    8 April 2022

    • [πŸ’» ] Published blog post about Solana + Anchor on Devahoy - Link

    7 April 2022

    • [πŸ’» ] Published blog post about Solana on Devahoy - Link
    • [πŸ’» ] Published blog post about Chainlink Solana Bootcamp - Link

    3 April 2022

    2 April 2022

    31 March 2022

    Notes

    solana-cli included:

    solana-bench-tps       solana-genesis         solana-install-init    solana-log-analyzer    solana-sys-tuner       solana-validator
    solana-dos             solana-gossip          solana-keygen          solana-net-shaper      solana-test-validator  solana-watchtower
    solana-faucet          solana-install         solana-ledger-tool     solana-stake-accounts  solana-tokens
    

    Checking and updating solana-cli

    solana-install update
    

    27 March 2022

    25 March 2022

    23 March 2022

    • [πŸ“š ] Read the article and watched youtube about Serverless. This is my first time after hearing about it for a long time. πŸ˜„ - Link
    • [πŸ“š ] Learn tmux / tmux command and blog about it in Thai language via Devahoy

    22 March 2022


    19 March 2022

    Notes

    Get address of the signer, ethers.js return Promise but hardhat return an address.

    • ethers.js - signer.getAddress() -> <Promise>
    • hardhat - signer.address -> String

    ethers.js

    const { Wallet, providers } = require('ethers');
    
    const url = '<RPC_URL>';
    
    const provider = new ethers.providers.JsonRpcProvider(url);
    const signer = provider.getSigner(0);
    const address = await signer.getAddress();
    

    Hardhat

    const { ethers } = require('hardhat');
    
    const [signer] = await ethers.getSigners();
    const address = signer.address;
    

    18 March 2022

    Notes

    • TIL: To use TailwindCSS with next/image together for keep image to original ratio.
    <div className="relative h-64 w-full md:h-32 md:w-48">
      <Image src={imageSrc} layout="fill" objectFit="cover" alt={title} />
    </div>
    

    Reference: https://github.com/vercel/next.js/discussions/18739


    14 March 2022

    • [πŸ’» ] - A Configuration of Prettier & Solhint together with different rules, Use prettier.overrides - Link

    12 March 2022

    • [πŸ’» ] - Create sample RESTFul API with Rust and Actix and writing a blog post - Article and Source Code

    10 March 2022

    • [πŸ“Œ ] - Bookmark to read it later - Ray Tracing in One Weekend - Link

    Notes

    Install PostgreSQL on Mac OS:

    brew install postgresql
    
    # start/restart service
    brew services restart postgresql
    

    Connect postgresql:

    # default
    psql postgres
    
    # with connection string
    psql postgresql://custom_user:supersecret_password@localhost:5432/postgres
    # or
    psql -U custom_user -W -h localhost
    

    List and remove docker volume:

    docker volume ls
    
    # remove
    docker volume rm <VOLUME_NAME>
    

    9 March 2022

    • [πŸ“š ] Read article - Create a blazingly fast REST API in Rust - Link
    • [πŸ’» ] Setup sample REST API project to learn about Actix, Serde, PostgreSQL
    • [ ✍️ ] Published new article - Learn Solidity by Build Wave Portal

    7 March 2022


    6 March 2022

    • [πŸ’» ] I finished the 50th Day of #100DaysOfcode - Link