Ad

Thursday, March 17, 2022

Web Development Basics 2022

Installation : 
Task: check package library/framework version number. 
node -v
npm -v
yarn-v
npm and yarn do similar things

  • ES6 JavaScript - ECMA pronounced ehk-ma decides the standard for javascript. And that's why the newest version of JavaScript is called ES6, ecmascript 6. symbol is new in ES6.
  • JavaScript - Dynamic Typing - Don't have to declare types right away.
  • JavaScript - Primitive Types (no methods, immutable): undefined, null, boolean, number, string, symbol. 
  • Toast message : a temporary message, for example display error.
  • array can store data with different types.
  •  HTTP status code 
    • introduction: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
    • https://www.twilio.com/blog/http-status-codes-relationship-problems
    • https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
    • Different versions of it https://docs.microsoft.com/en-us/troubleshoot/iis/http-status-code
    • MDN https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
    • Typecasting: changing a variable from one time to another. 
    • Coercion: explicit versus implicit. We need to watch out for this in JavaScript. Often it doesn't work as we would expect. 
    • Comparison and testing. Double equal versus triple equal. Double equal will coerce the types then test. Triple equal will require the type to match as well. This too can be counter intuitive, unexpected in JavaScript. There are also quirky JavaScript equality issues. JavaScript quirky equality issues https://github.com/dorey/JavaScript-Equality-Table
  • HTML DOM : Web dev Document Object Model (DOM) turns html documents into a tree like structure of nodes. nodes include img, body and the element node can contain attribute nodes such as src, text. A common task is traversing DOM elements.

Use ready to use, low-code environment:
Did you know you can upload custom font to Wix? Wix let's you start websites using a bit of HTML and CSS. 

Debugging : 

Node.js out of memory error. If encountered try upgrading node js to the latest version see if the problem is resolved. 

JavaScript events
JavaScript addEventListener, js events
https://ml.learn-to-code.co/skillView.html?skill=5uzzAiNC9FftC8DMH0By

Web Server request and response
Can return, de-couple tuple request object result into header, url and method
package.json the file that describes the node project, also specify dependencies, 
npx comes bundled with node
Key concept : request response cycle between client and server
Header is made of key value pairs, such as token value
Body response or data sent to server form date
node js http module is useful handle web requests.


JavaScript allows trailing comma. The extra last comma in objects. And that is okay. 

Content delivery network (CDN)

Mouse event, draggable droppable dragging and dropping a div usually has default behaviors that need to be cleared and disabled first. They can make debugging very difficult and confusing.

MEAN stack

“A Promise is an object representing the eventual completion or failure of an asynchronous operation. Essentially, a promise is a returned object you attach callbacks to, instead of passing callbacks into a function.” - codeburst medium

Dark mode : some themes come with one click flip dark mode button. Dark mode is build into the theme.

Image optimization: use lazy loading attribute, place placeholders or use pre-loading for images, iframes.

What is Next.js? Next.js builds on top of React. It’s more opinionated. "Next.js is a simple framework for building React applications that handles many gory details related to routing and SSR."

A-Frame VR in the browser, based on three.js games. Script pdf with python export some pages

Tutorial CS50 Harvard web dev with python and JavaScript 

Wednesday, March 16, 2022

Moralis Avalanche Hackathon

Moralis Avalanche (blockchain) ($Avax) DeFI #hackathon. Avalanche is not just a faster ethereum. At its core, it's different. This hackathon has a mega prize pool. As Evan from Moralis would say the size of the prize pool is massive in crypto!



Great eco system


Moralis Avalanche Hackathon winners
https://twitter.com/moralisweb3/status/1499700667593932806?s=21

Feature: power of Avalanche Contract Chain (C-Chain)


covalent subnet, customizable, mix of sharding, wall-off, jurisdiction - regulatory, private network

Wednesday, March 9, 2022

What are Stablecoins

Warning: Please read our disclaimer. Do your own research. Our contents are informational purpose only. Even the congress is yet to understand and fully study the use and effect of stablecoins. We are not able to verify external resources like these below.

Decrypto guide to stablecoins 

https://decrypt.co/resources/stablecoins

Coindesk : "stablecoins are used for trading, lending and borrowing, but the report added that these tokens may eventually become a means of payment for businesses and households. Another footnote specified that the report is not addressing any potential stablecoin issues under federal securities or commodities laws, but the report itself did acknowledge the SEC and CFTC's authority to oversee stablecoins that meet the provisions of these laws. The legislation would apply to stablecoin issuers that are headquartered in the U.S., operate stablecoins that people in the U.S. can access or otherwise have"

Watch out not all stablecoins are collatoralized 

Crypto.com What are Stablecoins :  https://crypto.com/university/what-are-stablecoins

Wednesday, March 2, 2022

Binary cross entropy loss function

Generalized cross entropy formula using sigma notation

 

Binary cross entropy using y, 1-y to represent the probability of class 0 or class 1


sebastian thrun founder of udacity explains binary cross entropy

Sunday, February 20, 2022

PiCoin Crypto

What does hosting a picoin node look like



Alchemy for Blockchain, NFT Review

 Review Alchemy, developer platform, super node for blockchain, NFT, crypto. Alchemy has attracted a lot of attention lately because of high-profile Andreessen Horowitz -led investment. 

Can use alchemy composer to compose request. 
https://composer.alchemyapi.io/

"Alchemy is extremely proud to be powering the biggest names in the NFT space, including Makersplace (recently set a record digital artwork sale at Christie’s for $69 Million), Dapper Labs (creators of NBA Top Shot & Crypto Kitties), OpenSea (the world’s largest NFT marketplace), Zora, Super Rare, NFTfi, Foundation, Enjin, Origin Protocol, Immutable, and more."

Alchemy request composer, Ethereum get balance example




Warning Warning, please read the below disclaimer before reading our post: https://www.siliconvanity.com/2021/11/blockchain-crypto-stock-personal.html




Alchemy in the news: 
Startup funding, polygon and alchemy
https://news.crunchbase.com/news/web3-blockchain-startups-funding-alchemy-polygon/

React UI, UI UX, Reactstrap React Bootstrap

React UI MATERIAL  Install yarn add @material-ui/icons Reactstrap FORMS. Controlled Forms. Uncontrolled Forms.  Columns, grid