# Blogs that I am reading

This page contains a collection of all the blogs and videos that I have consumed over time.

### Databases

1. [Working with PostgreSQL](https://zerodha.tech/blog/working-with-postgresql/)
2. [when indexes are useless](https://www.youtube.com/watch?v=oebtXK16WuU\&t=11s)

### Cryptocurrency

1. [Cryptocurrency Engineering and Design](https://www.youtube.com/playlist?list=PLUl4u3cNGP61KHzhg3JIJdK08JLSlcLId)

### Random

1. [How Do HEX Color Codes Work?](https://www.youtube.com/watch?v=c56x1aj2CPA)
2. [Self-Host All the Things?](https://tedium.co/2023/03/04/self-hosted-saas-app-alternatives/)

### Web 3

1. [Why the Web 3.0 Matters and you should know about it](https://medium.com/@essentia1/why-the-web-3-0-matters-and-you-should-know-about-it-a5851d63c949)
2. [Understanding Web 3 — A User Controlled Internet](https://blog.coinbase.com/understanding-web-3-a-user-controlled-internet-a39c21cf83f3)

### Golang

1. [Import declarations in Go](https://medium.com/golangspec/import-declarations-in-go-8de0fd3ae8ff)
2. [Style guideline for Go packages](https://rakyll.org/style-packages/)
3. [How to start a Go project in 2023](https://boyter.org/posts/how-to-start-go-project-2023/)

### Networking

1. [Investigating the impact of HTTP3 on network latency for search](https://notes.pratikd.in/travel/exploring-mumbai-101)


# Blockchain 101


# Consensus Algorithms

### Byzantine Generals’ Problem <a href="#byzantine-generals-problem" id="byzantine-generals-problem"></a>

As we saw in the Byzantine Generals’ Problem, this challenge has been around for a while - achieving consensus in a distributed system with suboptimal communication between participants who do not necessarily trust each other isn’t new.

![](https://video.udacity-data.com/topher/2018/June/5b36958c_1301-recapof-achieving-consensus-protocols01-v2/1301-recapof-achieving-consensus-protocols01-v2.png)<br>

### **Proof of Work**

Bitcoin figured out how to use the Proof of Work algorithm to solve this issue.

The main innovation that Satoshi Nakamoto introduced in Bitcoin’s white paper is using Proof of Work (PoW) to achieve consensus without a central authority and solve the double-spend problem.

#### How Does It Work? <a href="#how-does-it-work" id="how-does-it-work"></a>

PoW involves miner nodes, or miners, to solve a math puzzle that requires a lot of computation power. Whichever miner is able to solve the puzzle the fastest is able to add a block of transactions to the blockchain, and in return, they are paid the transaction fees from all the transactions included in the block as well as paid by the network with bitcoins that were newly created upon the “mining” of the block.

#### Potential Issues <a href="#potential-issues" id="potential-issues"></a>

2 Commonly discussed issues with Proof of Work are:

1. Extremely High-Energy Consumption
2. A Monopoly of Miners which Leads to a Concern for System Centralizations

> [Bitcoin’s whitepaper on PoW](https://bitcoin.org/bitcoin.pdf)

### **Proof of Stake**

In the Proof-of-Stake Consensus Protocol, there are no more miners; instead, there are Validators. These validators, or stakeholders, determine which block makes it onto the blockchain. In order to validate transactions and create blocks, validators put up their own coins as “stake”. Think of it as placing a bet - if they validate a fraudulent transaction, they lose their holdings as well as their rights to participate as a validator in the future. In theory, this check incentivizes the system to validate only truthful transactions.

#### Potential Issues <a href="#potential-issues" id="potential-issues"></a>

We discussed the “Nothing At Stake” problem in which a bad acting Validator places bets on multiple forks so they theoretically always win out in the end.

![](https://video.udacity-data.com/topher/2018/June/5b369596_1302-recapof-achieving-consensus-protocols01-v2/1302-recapof-achieving-consensus-protocols01-v2.png)

**Proposed Solutions**

**Slasher** Strategy which entails penalizing validators if they simultaneously create blocks on multiple chains.

![](https://video.udacity-data.com/topher/2018/June/5b3695a3_1303-recapof-achieving-consensus-protocols01-v2/1303-recapof-achieving-consensus-protocols01-v2.png)

Additionally there’s the **Punisher** Strategy which simply punishes validators for creating blocks on the wrong chain. In this method, Validators will be motivated to be selective and conscious about the blockchain in which they put their stake.

![](https://video.udacity-data.com/topher/2018/June/5b369614_1109-proof-of-stake01-v2/1109-proof-of-stake01-v2.png)

#### Who’s Using It? <a href="#who-s-using-it" id="who-s-using-it"></a>

[Ethereum](https://www.ethereum.org/), [DASH](https://www.dash.org/), and [LISK](https://lisk.io/) are big proponents

> [Ethereum’s Proof of Stake FAQs](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ)
>
> * [Block Selection methods](https://en.wikipedia.org/wiki/Proof-of-stake)
>   * Randomized block selection
>   * Coin age-based selection
> * [Alternative Proof of Stake Methods](https://dailyfintech.com/2016/01/20/why-proof-of-stake-matters-for-blockchain/#content-wrapper)
>   * Transparent Forging
>   * Delegated Proof of Stake

### **Delegated Byzantine Fault Tolerance (dBFT)**

dBFT uses a system similar to a democracy where Ordinary Nodes the system vote on representative Delegate Nodes to decide which blocks should be added to the blockchain. When it’s time to add a block, a Speaker is randomly assigned from the group of Delegates to create a new block and propose the new block. *66.66% of delegates need to approve on the block for it to pass.*

#### Potential Issues <a href="#potential-issues" id="potential-issues"></a>

Two issues we explored were the case of the *Dishonest Speaker* and the *Dishonest Delegate*.

**Dishonest Speaker**

There is always a chance the Speaker, who is randomly selected from the Delegates, could be dishonest or malfunction. In this situation, the network needs to rely on honest delegates to vote the proposed block down so it doesn’t reach 66% approval. It is up to users of protocol who vote on Delegates, to find out which delegates are not trustworthy and vote on other delegates that are truthful.

**Dishonest Delegate**

In this case, the chosen Speaker is honest but there are Dishonest Delegates in the system meaning even if they receive a proposal for new block that is faulty, they can say it is valid. If it is a minority of delegates that are dishonest, the block will not make it and new speaker is elected.

#### Who’s Using It? <a href="#who-s-using-it" id="who-s-using-it"></a>

[NEO](https://neo.org/) is a big advocator of this protocol.

> * [NEO's Consensus Protocol](https://steemit.com/neo/@basiccrypto/neo-s-consensus-protocol-how-delegated-byzantine-fault-tolerance-works)

### **Proof Of Activity**

> * [Proof of Activity Explained: A Hybrid Consensus Algorithm](https://www.coinbureau.com/blockchain/proof-of-activity-explained-hybrid-consensus-algorithm/)

### **Proof Of Burn**

> * [What is Proof of Burn?](https://99bitcoins.com/what-is-proof-of-burn/)


# Cryptography

![](https://975585059-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYv02rzvM1hYxxDQvUj%2Fuploads%2FEbyXzdsvO1zTRr1xi2uX%2FScreenshot%202021-11-02%20at%202.11.30%20PM.png?alt=media\&token=c6f48cd6-d758-413f-b110-1cea9defc682)


# Wallets

![](https://975585059-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYv02rzvM1hYxxDQvUj%2Fuploads%2FEZmehhWgcgA5iS7SdZRP%2FScreenshot%202021-11-02%20at%202.17.53%20PM.png?alt=media\&token=f0bd5710-0441-414b-ac94-890daca5f0f3)


# MIT Cryptocurrency Engineering and Design

### Lecture Notes

1. [Signatures, Hashing, Hash Chains, e-cash, and Motivation (PDF)](https://ocw.mit.edu/courses/media-arts-and-sciences/mas-s62-cryptocurrency-engineering-and-design-spring-2018/lecture-notes/MAS-S62S18-lec01.pdf)
2. [Proof of Work (PoW) and Mining (PDF)](https://ocw.mit.edu/courses/media-arts-and-sciences/mas-s62-cryptocurrency-engineering-and-design-spring-2018/lecture-notes/MAS-S62S18-lec02.pdf)
3. [Signatures (PDF)](https://ocw.mit.edu/courses/media-arts-and-sciences/mas-s62-cryptocurrency-engineering-and-design-spring-2018/lecture-notes/MAS-S62S18-lec03.pdf)
4. [Transactions and the UTXO Model (PDF)](https://ocw.mit.edu/courses/media-arts-and-sciences/mas-s62-cryptocurrency-engineering-and-design-spring-2018/lecture-notes/MAS-S62S18-lec04.pdf)
5. [Synchronization Process, Pruning (PDF)](https://ocw.mit.edu/courses/media-arts-and-sciences/mas-s62-cryptocurrency-engineering-and-design-spring-2018/lecture-notes/MAS-S62S18-lec05.pdf)


# Exploring Mumbai 101

### **🍸 Cafes/ Restaurants/Bars/Clubs**

1. Barrel and Co&#x20;
2. Bar Stock Exchange&#x20;
3. Rodeo Drive&#x20;
4. High experience&#x20;
5. Matahari&#x20;
6. Up in the air&#x20;
7. Bayroute&#x20;
8. Juliette bar(Andheri)&#x20;
9. Bastian&#x20;
10. Flax( lower parel)&#x20;
11. 145 kala ghoda&#x20;
12. Mondegar&#x20;
13. Roofberries&#x20;
14. House of Lords&#x20;
15. Lord of drinks&#x20;
16. Magna cafe(thane)&#x20;
17. Butterfly High&#x20;
18. British brewing company
19. Jimmy boy(irani cafe)&#x20;
20. Its cheeky(todi mills)&#x20;
21. Lower parel social&#x20;
22. Foo powai&#x20;
23. Dusk Juhu&#x20;
24. Korean food at origami&#x20;
25. Goma( goregoan)&#x20;
26. Coco cafe&#x20;
27. Pet paw cafe( pet love)
28. Cafe Panama&#x20;
29. Bombay taco and co&#x20;
30. Thyme and bisk&#x20;
31. Bubble tea- mongoose&#x20;
32. Jimmys burgers again a must
33. Pink Wasabi
34. The Bombay Canteen (Kamala Mills)
35. Candies
36. Bademiya is also a must&#x20;
37. Kyabi and Co (Kheema Pav)

### 🍤 Seafood

1. Gomantak (BKC)&#x20;
2. Gajelee&#x20;
3. Mahesh Lunch Home (Juhu)

### 🏝 Spots

1. Girgaon viewing deck&#x20;
2. Sea link&#x20;
3. Colaba Causeway&#x20;
4. Kala ghoda&#x20;
5. Graffiti at the sasoon docks&#x20;
6. Powai lake Powai gardens and hills(small trek)&#x20;
7. Yeoor hills&#x20;
8. Sanjay gandhi national park&#x20;
9. Madh islands and take a speed boat ride at marines its cheap and nicee if you wanna go into the sea.

### 🎳 Arcades

1. Bounce
2. Shott
3. Smashh

### 🍔 Street Food

1. Kings circle dosa (matunga)
2. Ayappan stall&#x20;
3. Ram ashray&#x20;
4. Manis cafe&#x20;
5. Matunga has good budget mai south indian cafes its known for it.
6. Eating vadapav and frankie and sandwhich is a must because Mumbai ki khasiyat hai and that you’ll find mostly everywhere but good ones in thane(station), dadar, matunga( near ruparel college)&#x20;

### 🛍 Shopping

1. Jio world&#x20;
2. Seawods&#x20;
3. Ikea


