From 078dc7630dcbd4a2484d4f47e035ae2068fb858a Mon Sep 17 00:00:00 2001 From: Jet Hughes Date: Mon, 11 Jul 2022 10:41:04 +1200 Subject: [PATCH] vault backup: 2022-07-11 10:41:04 --- content/notes/01-bits-and-bytes.md | 23 ++++++++++++++++++++++- content/notes/independent-learning.md | 1 - content/notes/media.md | 5 +---- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/content/notes/01-bits-and-bytes.md b/content/notes/01-bits-and-bytes.md index a43e48331..27ebb9eab 100644 --- a/content/notes/01-bits-and-bytes.md +++ b/content/notes/01-bits-and-bytes.md @@ -62,6 +62,8 @@ tags: - when the code is compile, the name is assigned an address, in memory. The meaning of that data depends on how a human interprets it. it might be small integer, or a character, or a color etc. ## ASCII Character Code +![ascii code](https://i.imgur.com/NbBtm1v.png) + 1. The computer uses ch as a integer index into a pre-existing table 2. the computer screen is made up of a thousand little dots called pixels. theyre in a rectangular grid like a table.a @@ -78,5 +80,24 @@ tags: - ASCII characters are stored using 7-bits - so there are 128 (2^7) possible characters - stored as a byte with the 8th bit set to zero - - For sorting p + - For sorting purposes characters are compared on their numeric value (called the *collating sequence*) + - 'A' is before 'Z' but 'a' is after 'Z'! +## Unicode +![unicode](https://i.imgur.com/GEtVItW.png) + +- Other non roman languages + - greek, arabic, chinese, hebrew, japanese, thai etc. + - atrology symbols + - emoji etc +- Unicode + - developed by the Unicode Consortium + - coordinated with ISO/IEC 10646 + - a 21-bit code with 144,697 characters from 159 scripts + - unicode maps from character numbers (code points) into glyphs (graphical representations) + - Some(many) are reserved + + +# Homework +- How are character strings (e.g. “hello world”) stored in a computer? +- Is this different between different programming languages (for example; C and Java)? \ No newline at end of file diff --git a/content/notes/independent-learning.md b/content/notes/independent-learning.md index ead5a68d0..c66c82a4d 100644 --- a/content/notes/independent-learning.md +++ b/content/notes/independent-learning.md @@ -13,5 +13,4 @@ tags: - [model-view-controller-pattern](notes/model-view-controller-pattern.md) - [.NET](notes/dotnet.md) - [programatic-evolution](notes/programatic-evolution.md) -- [lyrics](notes/lyrics.md) - [behaviour-driven-development](notes/behaviour-driven-development.md) \ No newline at end of file diff --git a/content/notes/media.md b/content/notes/media.md index a869091c9..22f8a9fc0 100644 --- a/content/notes/media.md +++ b/content/notes/media.md @@ -11,7 +11,4 @@ tags: - [The Friar and the Cipher](notes/The-Friar-and-the-Cipher) # Podcasts -- [philosophize-this](notes/philosophize-this.md) - -# Videos -- [dr.k-reckless](private/dr.k-reckless.md) \ No newline at end of file +- [philosophize-this](notes/philosophize-this.md) \ No newline at end of file