Refactor computer post and vault cleanup

This commit is contained in:
2025-03-24 09:42:00 +00:00
parent 1ac5239667
commit 658b2c383b
74 changed files with 81 additions and 65 deletions

View File

@@ -17,6 +17,6 @@
"repelStrength": 10,
"linkStrength": 1,
"linkDistance": 250,
"scale": 0.12668834340524918,
"scale": 0.19003251510787372,
"close": true
}

View File

@@ -0,0 +1,7 @@
{
"deleteOption": ".trash",
"logsModal": true,
"excludedFolders": "",
"ribbonIcon": false,
"excludeSubfolders": false
}

View File

@@ -13,12 +13,12 @@
"state": {
"type": "markdown",
"state": {
"file": "posts/exploring-freebsd.md",
"file": "notes/ready/how_to_computer/index.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
"title": "exploring-freebsd"
"title": "index"
}
}
]
@@ -78,7 +78,7 @@
}
],
"direction": "horizontal",
"width": 213.5
"width": 312.5
},
"right": {
"id": "f049c1d8215eafd9",
@@ -141,13 +141,13 @@
"state": {
"type": "outline",
"state": {
"file": "posts/exploring-freebsd.md",
"file": "notes/ready/how_to_computer/index.md",
"followCursor": false,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-list",
"title": "Outline of exploring-freebsd"
"title": "Outline of index"
}
},
{
@@ -156,16 +156,16 @@
"state": {
"type": "advanced-tables-toolbar",
"state": {},
"icon": "lucide-file",
"title": "Plugin no longer active"
"icon": "spreadsheet",
"title": "Advanced Tables"
}
}
],
"currentTab": 3
"currentTab": 4
}
],
"direction": "horizontal",
"width": 200
"width": 246.5
},
"left-ribbon": {
"hiddenItems": {
@@ -179,48 +179,51 @@
"table-editor-obsidian:Advanced Tables Toolbar": false
}
},
"active": "b73f137a8a755c19",
"active": "ab03f7100c1ce0fb",
"lastOpenFiles": [
"textgenerator/templates/awesomePrompts/statisticianAwesome.md",
"textgenerator/templates/awesomePrompts/techreviewerAwesome.md",
"textgenerator/templates/awesomePrompts/pythoninterpreterAwesome.md",
"textgenerator/templates/awesomePrompts/storytellerAwesome.md",
"textgenerator/templates/awesomePrompts/techwriterAwesome.md",
"textgenerator/templates/awesomePrompts/startuptechlawyerAwesome.md",
"textgenerator/templates/awesomePrompts/tictactoegameAwesome.md",
"textgenerator/templates/awesomePrompts/timetravelguideAwesome.md",
"textgenerator/templates/awesomePrompts/regexgeneratorAwesome.md",
"textgenerator/templates/awesomePrompts/travelguideAwesome.md",
"textgenerator/templates/awesomePrompts/teatasterAwesome.md",
"textgenerator/templates/awesomePrompts/seniorfrontenddeveloperAwesome.md",
"textgenerator/templates/awesomePrompts/talentcoachAwesome.md",
"textgenerator/templates/awesomePrompts/positioninterviewerAwesome.md",
"textgenerator/templates/awesomePrompts/salespersonAwesome.md",
"textgenerator/templates/awesomePrompts/stackoverflowpostAwesome.md",
"textgenerator/templates/awesomePrompts/spokenenglishteacherandimproverAwesome.md",
"textgenerator/templates/awesomePrompts/softwarequalityassurancetesterAwesome.md",
"textgenerator/templates/awesomePrompts/proofreaderAwesome.md",
"textgenerator/templates/awesomePrompts/technologytransfererAwesome.md",
"textgenerator/templates/awesomePrompts/wikipediapageAwesome.md",
"textgenerator/templates/awesomePrompts/plagiarismcheckerAwesome.md",
"textgenerator/templates/awesomePrompts/socratAwesome.md",
"textgenerator/templates/awesomePrompts/webbrowserAwesome.md",
"textgenerator/templates/awesomePrompts/selfhelpbookAwesome.md",
"textgenerator/templates/awesomePrompts/speechlanguagepathologistslpAwesome.md",
"textgenerator/templates/awesomePrompts",
"textgenerator/templates",
"textgenerator",
"notes/ready/how_to_computer/Pasted image 20250319161431.png",
"notes/ready/how_to_computer/image 1.png",
"notes/ready/how_to_computer/Pasted image 20250318102600.png",
"posts/exploring-freebsd/freebsd14-install.png",
"posts/exploring-freebsd",
"posts/dotfiles.md",
"posts/jcionx-mac-utils/index.md",
"posts/jcionx-favorite-macos-utilities.md",
"posts/jcionx-mac-utils/jcionx-favorite-macos-utilities.md",
"posts/jcionx-mac-utils/syncthing.png",
"posts/jcionx-mac-utils/stats.png",
"posts/jcionx-mac-utils/keka.png",
"posts/jcionx-mac-utils/appcleaner.png",
"posts/jcionx-mac-utils/alfred.png",
"posts/jcionx-mac-utils/lunar.png",
"posts/jcionx-mac-utils/mos.png",
"posts/jcionx-mac-utils/macmousefix2.png",
"posts/jcionx-mac-utils/macmousefix1.png",
"posts/jcionx-mac-utils",
"notes/ready/how_to_computer/index.md",
"_Templates/note.md",
"_Templates/post.md",
"notes/ready/c-language.md",
"posts/linux-starter-guide/index.md",
"posts/linux-starter-guide/gnome46.jpeg",
"posts/linux-starter-guide",
"posts/linux-vs-freebsd-vs-openbsd.md",
"posts/local-llm.md",
"notes/ready/c-snippets.md",
"notes/ready/encryption.md",
"notes/ready/firewall.md",
"notes/ready/gdb.md",
"notes/ready/git.md",
"notes/ready/http.md",
"notes/ready/https-ssl-certs.md",
"notes/ready/irc.md",
"notes/ready/binary_operations/index.md",
"notes/ready/cpu_architecture/index.md",
"Clippings/Latches in Digital Logic - GeeksforGeeks.md",
"Clippings",
"notes/ready/how_to_computer",
"notes/ready/pass.md",
"posts/notes-update.md",
"posts/personal-web.md"
"notes/ready/how_to_computer"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 499 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1010 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 358 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 KiB

View File

@@ -1,7 +1,7 @@
---
title: Building a Computer From Scratch
description: From diodes and transistors, to a Turing complete computer.
summary: From diodes and transistors, to a Turing complete computer.
summary: "[CS 0] From diodes and transistors, to a Turing complete computer."
draft: false
tags:
- electronics
@@ -27,37 +27,41 @@ Anode (+) --|>|-- Cathode (-)
```Plain
[Conventional Current (+) -> (-)]
(+)------|>|------(-) Current can flow - The diode is now a conductor.
(+)------|<|------(-) Current can't flow - The diode is now an insulator.
(+)------|>|------(-) Current can flow - The diode became a conductor.
(+)------|<|------(-) Current can't flow - The diode became an insulator.
```
### Use Cases
- Protect a circuit (if a battery is connected incorrectly, for example)
- Convert AC to DC current
Fun fact: An LED, for example, is a Light-Emitting Diode.
> An LED, for example, is a Light-Emitting Diode.
### How a Diode Works
#### Conductors and Insulators
An atom contains the following elements:
- Nucleus (Protons - Neutrons)
- Orbital Shells (Holds the electrons, which orbit around the nucleus)
An atom is composed of the following elements:
- Nucleus (Protons and Neutrons)
- Orbital Shells (Holds electrons, which orbit around the nucleus)
- Conduction band
The electrons closest to the nucleus hold the most energy.
The outermost shell is the valence shell. A conductor has 1-3 electrons in the valence shell.
The outermost shell is the valence shell. A conductor can have between 1 and 3 electrons in its valence shell.
If an electron reaches the conduction band, it can break free and move to another atom.
An insulator, however, has a conduction band that is far from the valence shell, making it difficult for an electron to escape.
For example, for copper (a great conductor), the valence shell and conduction band overlap, so it's very easy for an electron to jump between atoms.
Semiconductors have a conduction band close to the valence shell, but have one extra electron in it, making it an insulator. However, given some external energy, some electrons will gain enough energy to reach the conduction band and become free.
An insulator, however, has its conduction band far from the valence shell, making it difficult for an electron to escape.
Silicon is an example of a semiconductor. Its conduction band is close to its valence shell, but silicon has 4 electrons in it, making it act as an insulator. However, given some external power, some electrons will gain enough energy to reach the conduction band and free themselves.
![Pasted image 20250318102600](Pasted%20image%2020250318102600.png)
#### P-Type and N-Type Doping
Silicon is a good semiconductor, having 4 electrons in its valence shell. When close to other `Si` atoms, they share 4 electrons with their neighbors, thus, having 8, each, and becoming stable.
Silicon (`Si`) atoms, when close together, share 4 electrons with their neighbors, thus, 'having' 8 electrons each, and becoming stable.
```Plain
Silicon:
Si Si Si Si Si Si Si Si Si Si Si
Si Si Si Si Si Si Si Si Si Si Si
Si Si Si Si Si Si Si Si Si Si Si
@@ -82,7 +86,7 @@ Si p Si Si Si Si Si Si p Si Si
##### P-Type
Some Aluminum is added to the Silicon. `Al` is missing one electron, so it can't provide its 4 neighbors with an electron to share.
Some Aluminum is added to the Silicon base. `Al` is missing one electron, so it can't provide its 4 neighbors with an electron to share.
```Plain
Si Si Al Si Si Si Si Si Si Si Al
@@ -95,11 +99,11 @@ Si Al Si Si Si Si Si Si Al Si Si
#### Combining both Types
When an N-Type is combined with a P-Type, some electrons from the N-Type side will move over to the P-Type side and occupy the missing electrons there. This creates a barrier between both types, creating an electric field that prevents more electrons from switching sides.
When an `N-Type` is combined with a `P-Type`, some electrons from the `N-Type` side move over to the `P-Type` side, and replace the missing electrons there. This creates a barrier between both types: An electric field that prevents more electrons from switching sides.
##### Forward Bias
If energy is provided to the Cathode, the electrons flow, as the voltage is superior to the barrier's.
If energy is provided to the Cathode (`+`), electrons flow, as the voltage is superior to the barrier's.
```Plain
(-)-----[P|N]-----(+)
@@ -107,7 +111,7 @@ If energy is provided to the Cathode, the electrons flow, as the voltage is supe
##### Reverse Bias
If energy is provided to the Anode, the electrons can't flow, as the barrier expands.
If energy is provided to the Anode (`-`), electrons can't flow, as the barrier expands, instead.
```Plain
(-)--[P] [N]--(+)
@@ -115,7 +119,7 @@ If energy is provided to the Anode, the electrons can't flow, as the barrier exp
## Transistor
Transistors are electronic components that behave like a `switch`, or `amplifier`.
Transistors are electronic components that behave as a `switch`, or `amplifier`.
### Schematic
@@ -130,11 +134,13 @@ Base --(--|<)
#### Switch
If the `base` pin is provided with energy, the transistor allows current to flow in the main circuit.
![image](image%201.png)
![Pasted image 20250319161431](Pasted%20image%2020250319161431.png)
#### Amplifier
Altering the voltage given to the `base` pin allows us to control a larger voltage in the main circuit.
![image1](image1.png)
### Types of Transistor
@@ -142,6 +148,7 @@ Altering the voltage given to the `base` pin allows us to control a larger volta
#### NPN
An NPN transistor combines the `base` pin and `collector` pin.
![image2](image2.png)
> Note: Even if the collector pin is disconnected from the circuit, a small amount of current still passes through. ![image3](image3.png)
@@ -150,12 +157,11 @@ An NPN transistor combines the `base` pin and `collector` pin.
A PNP transistor receives energy through the `emitter` pin, and then divides it to the remaining pins.
![image4](image4.png)
## Basic Logic
A logic gate is a device that performs one boolean operation: Two binary inputs produce a single binary output. These building blocks are the foundations of modern computing.
A logic gate is a device that performs one boolean operation: Two binary inputs produce a single binary output. These building blocks are the foundation of modern computing.
Each gate has its own truth table, which defines every possible input and output variations.
### NAND

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB