Autosave: 2025-01-16 07:08:09

This commit is contained in:
thomasabishop 2025-01-16 07:08:09 +00:00
parent 9b5737a6fe
commit de943a4877
812 changed files with 70 additions and 38 deletions

View file

@ -48,7 +48,7 @@ to the dead letter queue (DLQ) and remove it from the main queue.
![SQS deadletter example](static/SQS-deadletter.png) ![SQS deadletter example](static/SQS-deadletter.png)
If the DLQ reaches a certain threshold this can trigger additional handling such If the DLQ reaches a certain threshold this can trigger additional handling such
as raising an Alert in [CloudWatch](./AWS_CloudWatch.md) or other monitoring as raising an Alert in [CloudWatch](AWS_CloudWatch.md) or other monitoring
tool. tool.
Note that a DLQ is not a distinct entity within the SDK, it is just another SQS Note that a DLQ is not a distinct entity within the SDK, it is just another SQS

View file

@ -65,7 +65,7 @@ The de facto standard boot loader for Linux is GRUB: Grand Unified Boot Loader.
You see the GRUB default menu when you first start a Linux machine. It will You see the GRUB default menu when you first start a Linux machine. It will
offer you various options for loading your installed OS or other OSs. GRUB is a offer you various options for loading your installed OS or other OSs. GRUB is a
[filesystem](./Filesystems.md) like the main disk. If you press `e` in this [filesystem](Filesystems.md) like the main disk. If you press `e` in this
screen you can view and edit specific boot parameters. Pressing `c` gives you screen you can view and edit specific boot parameters. Pressing `c` gives you
access to the GRUB command line interface. This allows you to interact with GRUB access to the GRUB command line interface. This allows you to interact with GRUB
in the same way as you would with any other filesystem, allowing for advanced in the same way as you would with any other filesystem, allowing for advanced
@ -88,7 +88,7 @@ configuration.
## Boot diagnostics ## Boot diagnostics
Linux keeps a log of the boot process as part of the [journal](./journald.md) Linux keeps a log of the boot process as part of the [journal](journald.md)
log of everything that happens on disk. We can use the command `journalct -k` to log of everything that happens on disk. We can use the command `journalct -k` to
view the diagnostics generated during the boot. Here is a selection: view the diagnostics generated during the boot. Here is a selection:

View file

@ -5,7 +5,7 @@ created: Friday, July 12, 2024
# DRAM and SRAM memory # DRAM and SRAM memory
There are two types of RAM memory: [SRAM and DRAM](./DRAM_and_SRAM_memory.md). There are two types of RAM memory: [SRAM and DRAM](DRAM_and_SRAM_memory.md).
### DRAM ### DRAM

View file

@ -91,7 +91,7 @@ formatted_datetime = some_datetime.strftime('%Y-%m-%d %H:%M:%S')
print("Formatted datetime:", formatted_datetime) print("Formatted datetime:", formatted_datetime)
``` ```
Express a [unix timestamp](./Time_and_computers.md) as DD-MM-YYYY: Express a [unix timestamp](Time_and_computers.md) as DD-MM-YYYY:
```py ```py
def convert_timestamp(timestamp): def convert_timestamp(timestamp):

View file

@ -18,7 +18,7 @@ The Internet Layer utilises the **Internet Protocol** to determine how devices
will be publicly identified to devices on other networks and how different will be publicly identified to devices on other networks and how different
devices on the same local network will be distinguished from outside of this devices on the same local network will be distinguished from outside of this
network. This is achieved through network. This is achieved through
[Internet Protocol (IP) addresses](./IP_addresses.md). [Internet Protocol (IP) addresses](IP_addresses.md).
## Packets ## Packets

View file

@ -7,7 +7,7 @@ created: Tuesday, August 06, 2024
> The Link Layer is the lowest level of the network stack that makes up the > The Link Layer is the lowest level of the network stack that makes up the
> Internet Protocol Suite. It is concerned with the physical and logical > Internet Protocol Suite. It is concerned with the physical and logical
> connections between [hosts](./Network_hosts.md) on the same local network. > connections between [hosts](Network_hosts.md) on the same local network.
The physical and logical connections are known as **Links**. The physical and logical connections are known as **Links**.

View file

@ -8,7 +8,7 @@ created: Tuesday, August 06, 2024
A Media Access Control (MAC) address is a physical address in contrast to, say, A Media Access Control (MAC) address is a physical address in contrast to, say,
an IP address which is logical. an IP address which is logical.
Each device on a [local network](./Link_Layer_of_Internet_Protocol.md) has a MAC Each device on a [local network](Link_Layer_of_Internet_Protocol.md) has a MAC
as a unique identifier. It is a hardware-based, physical attribute of the as a unique identifier. It is a hardware-based, physical attribute of the
device, typically permanently encoded onto a non-volatile memory chip attached device, typically permanently encoded onto a non-volatile memory chip attached
to the ![network_card](static/Network_card.md). to the ![network_card](static/Network_card.md).

View file

@ -6,7 +6,7 @@ created: Monday, September 23, 2024
# Magnetic tape # Magnetic tape
Used for data storage in early digital computers (broadly from the Used for data storage in early digital computers (broadly from the
[UNIVAC](./The_History_of_Computing_Swade.md)) era until the mini-computer era. [UNIVAC](The_History_of_Computing_Swade.md)) era until the mini-computer era.
While the UNIVAC was not the first to use magnetic tape, it popularised the While the UNIVAC was not the first to use magnetic tape, it popularised the
method due to its success and high profile. method due to its success and high profile.

View file

@ -17,7 +17,7 @@ created: Monday, January 13, 2025
done done
``` ```
See [ping](./Ping.md) for more details on what this is doing. See [ping](Ping.md) for more details on what this is doing.
The `host` command contacts a DNS server and does a reverse lookup for the The `host` command contacts a DNS server and does a reverse lookup for the
IP-address of the human-readable domain name. IP-address of the human-readable domain name.

View file

@ -10,12 +10,12 @@ _network adapter_ is the hardware device that allows a computer to connect to a
network. network.
They are the physical interface between the computer and the network They are the physical interface between the computer and the network
[link](./Link_Layer_of_Internet_Protocol.md), e.g. WiFi or ethernet. [link](Link_Layer_of_Internet_Protocol.md), e.g. WiFi or ethernet.
They can be internal and built into the [motherboard](./Motherboard.md) or They can be internal and built into the [motherboard](Motherboard.md) or
external as in the case of USB adaptors. external as in the case of USB adaptors.
Each network card has a unique [MAC address](./MAC_addresses.md) to identify the Each network card has a unique [MAC address](MAC_addresses.md) to identify the
device on the network. device on the network.
Network cards on consumer-grade devices typically utilise the devices resources Network cards on consumer-grade devices typically utilise the devices resources

View file

@ -6,7 +6,7 @@ created: Monday, January 13, 2025
# Ping # Ping
`ping` is perhaps the most basic network debugging tool. It sends `ping` is perhaps the most basic network debugging tool. It sends
[ICMP](./ICMP_Protocol.md) echo request packets to a recipient host. [ICMP](ICMP_Protocol.md) echo request packets to a recipient host.
If the recipient receives the packet and is configured to reply, it sends an If the recipient receives the packet and is configured to reply, it sends an
ICMP echo response packet in return. ICMP echo response packet in return.

View file

@ -21,5 +21,5 @@ print("%d", age)
``` ```
The `%d` is an example of a [format specifier](./zk/format-specifiers-in-c.md). The `%d` is an example of a [format specifier](format-specifiers-in-c.md).
It is the decimal integer format specifier. It is the decimal integer format specifier.

View file

@ -11,6 +11,8 @@ tags: [python, data-types]
- The alternative is the native `pip` but you have to create virtual - The alternative is the native `pip` but you have to create virtual
environments (`venv`) to manage packages at different versions. environments (`venv`) to manage packages at different versions.
## venv
To make use of virtual environments in `pip` you have to create the virtual To make use of virtual environments in `pip` you have to create the virtual
environment before installing anything: environment before installing anything:
@ -37,6 +39,20 @@ Now you can install packages:
pip [library_name] pip [library_name]
``` ```
### Using venv after a system upgrade
If you update your system's version of Python, this can cause `venv` to stop
working. Resolve as follows:
```
deactivate # leave venv env if in it
rm -rf venv # remove venv
python -m venv venv # reinstall venv
source venv/bin/activate
python -m ensurepip --upgrade # explicitly install pip
pip install - e.
```
## requirements.txt ## requirements.txt
The `requirements.txt` file is similar to the `package.json` in Node projects. The `requirements.txt` file is similar to the `package.json` in Node projects.

View file

@ -36,4 +36,4 @@ principle that what has been previously used by the CPU will be requested again
soon. If the CPU has just asked for an instruction at memory location 555 it's soon. If the CPU has just asked for an instruction at memory location 555 it's
very likely that it will next ask for the one at 556, and after that the one at very likely that it will next ask for the one at 556, and after that the one at
557 and so on. The cache's controller circuits therefore go ahead and fetch 557 and so on. The cache's controller circuits therefore go ahead and fetch
these from slow [DRAM to fast SRAM](./DRAM_and_SRAM_memory.md). these from slow [DRAM to fast SRAM](DRAM_and_SRAM_memory.md).

View file

@ -4,7 +4,7 @@ tags: [physics, electricity]
# Resistance # Resistance
- Resistance is opposition to the flow of [current](./Current.md). - Resistance is opposition to the flow of [current](Current.md).
- Different materials have different levels of resistance. For example glass and - Different materials have different levels of resistance. For example glass and
rubber are excellent resistors whereas silver and copper offer little rubber are excellent resistors whereas silver and copper offer little

View file

@ -8,8 +8,8 @@ SAM stands for **serverless application model**. It is a framework developed by
AWS to simplify the process of building, deploying and managing serverless AWS to simplify the process of building, deploying and managing serverless
applications. It provides a concise syntax for defining the components of a applications. It provides a concise syntax for defining the components of a
serverless application, such as serverless application, such as
[Lambda functions](zk/Lambda_programming_model.md), [Lambda functions](Lambda_programming_model.md),
[API gateway](/zk/AWS_API_Gateway.md) and database tables. [API gateway](AWS_API_Gateway.md) and database tables.
The SAM infrastructure is defined in a YAML file which is then deployed to AWS. The SAM infrastructure is defined in a YAML file which is then deployed to AWS.
SAM syntax gets transformed into CloudFormation during the deployment process. SAM syntax gets transformed into CloudFormation during the deployment process.
@ -119,7 +119,7 @@ HelloWorldFunction:
Method: get Method: get
``` ```
This details the location of the [handler function](/Lambda_handler_function.md) This details the location of the [handler function](Lambda_handler_function.md)
which is contained at the path `hello-world/app.js`: which is contained at the path `hello-world/app.js`:
```js ```js
@ -239,7 +239,7 @@ receive one file as an input. The packaging process consists in creating that
single file. single file.
The packaging proces will first archive all of the project artefacts into a zip The packaging proces will first archive all of the project artefacts into a zip
file and then upload that to [S3](zk/AWS_S3.md). A reference to this S3 entity file and then upload that to [S3](AWS_S3.md). A reference to this S3 entity
is then provided to CloudFormation. is then provided to CloudFormation.
![](static/s3-package-again.svg) ![](static/s3-package-again.svg)
@ -261,7 +261,7 @@ to add my own naming but it doesn't comply.)
In order to work with your application locally without actually sending requests In order to work with your application locally without actually sending requests
to AWS and using credit, you can run a local instance. to AWS and using credit, you can run a local instance.
See [Local AWS Development with SAM](zk/Local_AWS_development_with_SAM.md). See [Local AWS Development with SAM](Local_AWS_development_with_SAM.md).
### Deploy ### Deploy

View file

@ -8,7 +8,7 @@ created: Saturday, November 16, 2024
## Authentication ## Authentication
Terraform will default to the currently active AWS user providing you have your Terraform will default to the currently active AWS user providing you have your
[AWS credentials](/zk/AWS_CLI.md) set-up. [AWS credentials](AWS_CLI.md) set-up.
## Creating resources ## Creating resources

View file

@ -563,7 +563,7 @@ that would go on to work at IBM.
Donald Knuth dedicated _The Art of Computer Programming_ to the 650. Donald Knuth dedicated _The Art of Computer Programming_ to the 650.
It used [magnetic drum memory](./Magnetic_drum_memory.md) along with It used [magnetic drum memory](Magnetic_drum_memory.md) along with
vacuum-tubes. vacuum-tubes.
### IBM 1401 (1959) ### IBM 1401 (1959)

View file

@ -8,9 +8,9 @@ tags:
# The kernel # The kernel
Within the [hierarchy of the OS](./Basic_model_of_the_operating_system.md), the Within the [hierarchy of the OS](Basic_model_of_the_operating_system.md), the
kernel acts as the primary mediator between the hardware (CPU, memory) and kernel acts as the primary mediator between the hardware (CPU, memory) and
[user](./User_Space.md) [processes](Processes.md). Let's look at each of its [user](User_Space.md) [processes](Processes.md). Let's look at each of its
responsibilities in greater depth: responsibilities in greater depth:
- process management - process management

View file

@ -11,10 +11,10 @@ Virtual memory is an abstracted and idealised representation of the physical
memory capacity of a machine that is presented to user space for its memory memory capacity of a machine that is presented to user space for its memory
operations. operations.
When an OS implements virtual memory, [processes](./Processes.md) in When an OS implements virtual memory, [processes](Processes.md) in
[user space](./User_Space.md) cannot directly read or write to the physical [user space](User_Space.md) cannot directly read or write to the physical
memory. Instead they execute memory operations against virtual memory and the memory. Instead they execute memory operations against virtual memory and the
[kernel](./The_kernel.md) translates these into the actual operations against [kernel](The_kernel.md) translates these into the actual operations against
the memory hardware. the memory hardware.
The main benefits: The main benefits:
@ -25,9 +25,9 @@ The main benefits:
that memory cannot be accidentally corrupted by other processes in user space. that memory cannot be accidentally corrupted by other processes in user space.
Because the physical memory is abstracted, it can be the case that the physical Because the physical memory is abstracted, it can be the case that the physical
[memory addresses](./Memory_addresses.md) are non-contiguous or even distributed [memory addresses](Memory_addresses.md) are non-contiguous or even distributed
accross different hardware components (such as the accross different hardware components (such as the
[cache](./Register_and_cache_memory.md) and [swap](./Swap_space.md)). Despite [cache](Register_and_cache_memory.md) and [swap](Swap_space.md)). Despite
this, the memory addresses will appear contiguous in virtual memory. Each user this, the memory addresses will appear contiguous in virtual memory. Each user
space process is presented with the same range of available memory addresses and space process is presented with the same range of available memory addresses and
the same total capacity. the same total capacity.

View file

@ -14,7 +14,7 @@ the program's **instructions** and **related data**. This is the role of memory.
The data that comprises a program is a series of bits. The basic unit of memory The data that comprises a program is a series of bits. The basic unit of memory
storage is a **memory cell**: a circuit that can store a single bit. storage is a **memory cell**: a circuit that can store a single bit.
[RAM](./DRAM_and_SRAM_memory.md) memory is _volatile_ : the memory is only [RAM](DRAM_and_SRAM_memory.md) memory is _volatile_ : the memory is only
retained whilst the computer has a power supply and is wiped when the computer retained whilst the computer has a power supply and is wiped when the computer
is rebooted. This contrasts with the memory of the harddisk which is is rebooted. This contrasts with the memory of the harddisk which is
non-volatile and is retained after a reboot. non-volatile and is retained after a reboot.

View file

@ -12,7 +12,7 @@ Equivalent to `JSON.parse()` in JavaScript.
Will error if the input string is not properly formatted JSON. This will be Will error if the input string is not properly formatted JSON. This will be
`json.JSONDecodeError`, a subclass of the `ValueError` `json.JSONDecodeError`, a subclass of the `ValueError`
[exception](./Error_handling_in_Python.md) [exception](Error_handling_in_Python.md)
## `json.dumps()` ## `json.dumps()`

View file

@ -5,7 +5,7 @@ created: Friday, December 20, 2024
# a4601796_trapdoor_functions # a4601796_trapdoor_functions
How does [public key cryptography](./bbdcb54f_public_key_cryptography.md) How does [public key cryptography](bbdcb54f_public_key_cryptography.md)
achieve the feat of making the encyrpted data only decipherable in one achieve the feat of making the encyrpted data only decipherable in one
direction. In other words how come the same data can be encrypted with one key direction. In other words how come the same data can be encrypted with one key
but only decryptable by another? but only decryptable by another?

View file

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View file

@ -13,12 +13,13 @@ computer science.
![not-by-ai-badge](static/not-by-ai-alternative--light.svg) ![not-by-ai-badge](static/not-by-ai-alternative--light.svg)
**Build ID:** cd5cdd66-905b-4f1f-b8e8-3a11ad507325 **Build ID:** 7f1b1cb6-21bf-4030-bc1f-2652dc5970ea
**Published:** Mon 13 Jan 2025 20:54:48 **Published:** Thu 16 Jan 2025 07:08:08
### Recent edits ### Recent edits
- [[Python_package_management]]
- [[Ping]] - [[Ping]]
- [[Monitor_DNS_resolution_and_internet_connectivity_script]] - [[Monitor_DNS_resolution_and_internet_connectivity_script]]
- [[ICMP_Protocol]] - [[ICMP_Protocol]]
@ -30,7 +31,6 @@ computer science.
- [[Weaving_the_Web_Berners_Lee]] - [[Weaving_the_Web_Berners_Lee]]
- [[738d0481_sound_recording_as_wave_phenomena]] - [[738d0481_sound_recording_as_wave_phenomena]]
- [[Audio_file_formats]] - [[Audio_file_formats]]
- [[Binary_encoding_of_sound]]
### All notes (517) ### All notes (517)

View file

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View file

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 145 KiB

View file

Before

Width:  |  Height:  |  Size: 289 KiB

After

Width:  |  Height:  |  Size: 289 KiB

View file

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View file

Before

Width:  |  Height:  |  Size: 6.9 MiB

After

Width:  |  Height:  |  Size: 6.9 MiB

View file

Before

Width:  |  Height:  |  Size: 224 KiB

After

Width:  |  Height:  |  Size: 224 KiB

View file

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View file

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View file

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

Before

Width:  |  Height:  |  Size: 204 KiB

After

Width:  |  Height:  |  Size: 204 KiB

View file

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

Before

Width:  |  Height:  |  Size: 165 KiB

After

Width:  |  Height:  |  Size: 165 KiB

View file

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

View file

Before

Width:  |  Height:  |  Size: 133 KiB

After

Width:  |  Height:  |  Size: 133 KiB

View file

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View file

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View file

Before

Width:  |  Height:  |  Size: 4 KiB

After

Width:  |  Height:  |  Size: 4 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View file

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 148 KiB

View file

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View file

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

View file

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View file

Before

Width:  |  Height:  |  Size: 470 KiB

After

Width:  |  Height:  |  Size: 470 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View file

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View file

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View file

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 99 KiB

View file

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View file

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View file

Before

Width:  |  Height:  |  Size: 848 KiB

After

Width:  |  Height:  |  Size: 848 KiB

View file

Before

Width:  |  Height:  |  Size: 194 KiB

After

Width:  |  Height:  |  Size: 194 KiB

View file

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 130 KiB

View file

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 171 KiB

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View file

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View file

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

View file

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View file

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

View file

Before

Width:  |  Height:  |  Size: 157 KiB

After

Width:  |  Height:  |  Size: 157 KiB

View file

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View file

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 153 KiB

View file

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View file

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View file

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 118 KiB

View file

Before

Width:  |  Height:  |  Size: 414 KiB

After

Width:  |  Height:  |  Size: 414 KiB

View file

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View file

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 174 KiB

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View file

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 167 KiB

View file

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

View file

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View file

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 140 KiB

View file

Before

Width:  |  Height:  |  Size: 190 KiB

After

Width:  |  Height:  |  Size: 190 KiB

View file

Before

Width:  |  Height:  |  Size: 374 KiB

After

Width:  |  Height:  |  Size: 374 KiB

View file

Before

Width:  |  Height:  |  Size: 9 KiB

After

Width:  |  Height:  |  Size: 9 KiB

View file

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View file

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View file

Before

Width:  |  Height:  |  Size: 448 KiB

After

Width:  |  Height:  |  Size: 448 KiB

View file

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB

View file

Before

Width:  |  Height:  |  Size: 668 KiB

After

Width:  |  Height:  |  Size: 668 KiB

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View file

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View file

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View file

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View file

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View file

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View file

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View file

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View file

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View file

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View file

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View file

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View file

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View file

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View file

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View file

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View file

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View file

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 146 KiB

View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View file

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View file

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

View file

@ -12,7 +12,7 @@ tags:
Once the [boot process](Boot_process.md) has completed and the bootloader has Once the [boot process](Boot_process.md) has completed and the bootloader has
located the kernel and injected it into memory the first user space program located the kernel and injected it into memory the first user space program
runs: `init` (for _initialisation_). `init` is a [daemon](Daemons.md) runs: `init` (for _initialisation_). `init` is a [daemon](Daemons.md)
[process](./Processes.md) that continues running until shutdown and is [process](Processes.md) that continues running until shutdown and is
responsible for starting all the processes that are prerequisites for user responsible for starting all the processes that are prerequisites for user
space. For example: network connections, disk access, user logins etc. `init` is space. For example: network connections, disk access, user logins etc. `init` is
the parent of all processes: PID1. Whilst it does a lot of its work in quick the parent of all processes: PID1. Whilst it does a lot of its work in quick

Binary file not shown.

View file

@ -11,6 +11,8 @@ tags: [python, data-types]
- The alternative is the native `pip` but you have to create virtual - The alternative is the native `pip` but you have to create virtual
environments (`venv`) to manage packages at different versions. environments (`venv`) to manage packages at different versions.
## venv
To make use of virtual environments in `pip` you have to create the virtual To make use of virtual environments in `pip` you have to create the virtual
environment before installing anything: environment before installing anything:
@ -37,6 +39,20 @@ Now you can install packages:
pip [library_name] pip [library_name]
``` ```
### Using venv after a system upgrade
If you update your system's version of Python, this can cause `venv` to stop
working. Resolve as follows:
```
deactivate # leave venv env if in it
rm -rf venv # remove venv
python -m venv venv # reinstall venv
source venv/bin/activate
python -m ensurepip --upgrade # explicitly install pip
pip install - e.
```
## requirements.txt ## requirements.txt
The `requirements.txt` file is similar to the `package.json` in Node projects. The `requirements.txt` file is similar to the `package.json` in Node projects.