WEBVTT
Kind: captions
Language: en

00:00:00.320 --> 00:00:02.629 align:start position:0%
 
This<00:00:00.560><c> is</c><00:00:00.719><c> a</c><00:00:00.960><c> simple</c><00:00:01.280><c> website.</c><00:00:02.080><c> Nothing</c><00:00:02.399><c> too</c>

00:00:02.629 --> 00:00:02.639 align:start position:0%
This is a simple website. Nothing too
 

00:00:02.639 --> 00:00:05.670 align:start position:0%
This is a simple website. Nothing too
special.<00:00:03.040><c> Just</c><00:00:03.200><c> some</c><00:00:03.439><c> HTML</c><00:00:03.919><c> and</c><00:00:04.359><c> CSS.</c><00:00:05.359><c> And</c>

00:00:05.670 --> 00:00:05.680 align:start position:0%
special. Just some HTML and CSS. And
 

00:00:05.680 --> 00:00:08.549 align:start position:0%
special. Just some HTML and CSS. And
this<00:00:06.319><c> is</c><00:00:06.480><c> the</c><00:00:06.720><c> server</c><00:00:07.120><c> that's</c><00:00:07.520><c> running</c><00:00:07.759><c> it.</c>

00:00:08.549 --> 00:00:08.559 align:start position:0%
this is the server that's running it.
 

00:00:08.559 --> 00:00:10.470 align:start position:0%
this is the server that's running it.
Don't<00:00:08.800><c> believe</c><00:00:09.120><c> me?</c><00:00:09.599><c> Here,</c><00:00:10.000><c> let's</c><00:00:10.160><c> see</c><00:00:10.320><c> if</c>

00:00:10.470 --> 00:00:10.480 align:start position:0%
Don't believe me? Here, let's see if
 

00:00:10.480 --> 00:00:15.710 align:start position:0%
Don't believe me? Here, let's see if
this

00:00:15.710 --> 00:00:15.720 align:start position:0%
 
 

00:00:15.720 --> 00:00:18.870 align:start position:0%
 
helps.<00:00:16.720><c> And</c><00:00:16.960><c> let's</c><00:00:17.279><c> give</c><00:00:17.440><c> that</c><00:00:17.600><c> a</c><00:00:17.880><c> refresh.</c>

00:00:18.870 --> 00:00:18.880 align:start position:0%
helps. And let's give that a refresh.
 

00:00:18.880 --> 00:00:21.429 align:start position:0%
helps. And let's give that a refresh.
Yep,<00:00:19.520><c> that's</c><00:00:19.840><c> more</c><00:00:20.080><c> like</c><00:00:20.240><c> it.</c><00:00:20.720><c> To</c><00:00:20.880><c> be</c><00:00:21.039><c> clear,</c>

00:00:21.429 --> 00:00:21.439 align:start position:0%
Yep, that's more like it. To be clear,
 

00:00:21.439 --> 00:00:23.349 align:start position:0%
Yep, that's more like it. To be clear,
it's<00:00:21.760><c> not</c><00:00:22.000><c> just</c><00:00:22.240><c> that</c><00:00:22.400><c> the</c><00:00:22.640><c> page</c><00:00:22.960><c> layout</c><00:00:23.199><c> is</c>

00:00:23.349 --> 00:00:23.359 align:start position:0%
it's not just that the page layout is
 

00:00:23.359 --> 00:00:25.670 align:start position:0%
it's not just that the page layout is
defined<00:00:23.760><c> by</c><00:00:23.920><c> those</c><00:00:24.240><c> cubes.</c><00:00:24.800><c> The</c><00:00:24.960><c> Portal</c><00:00:25.439><c> 2</c>

00:00:25.670 --> 00:00:25.680 align:start position:0%
defined by those cubes. The Portal 2
 

00:00:25.680 --> 00:00:28.630 align:start position:0%
defined by those cubes. The Portal 2
engine<00:00:26.080><c> itself</c><00:00:26.720><c> is</c><00:00:27.039><c> hosting</c><00:00:27.439><c> the</c><00:00:27.760><c> server.</c><00:00:28.400><c> In</c>

00:00:28.630 --> 00:00:28.640 align:start position:0%
engine itself is hosting the server. In
 

00:00:28.640 --> 00:00:30.310 align:start position:0%
engine itself is hosting the server. In
this<00:00:28.800><c> video,</c><00:00:29.119><c> we'll</c><00:00:29.439><c> take</c><00:00:29.599><c> a</c><00:00:29.760><c> look</c><00:00:29.920><c> at</c><00:00:30.080><c> how</c>

00:00:30.310 --> 00:00:30.320 align:start position:0%
this video, we'll take a look at how
 

00:00:30.320 --> 00:00:32.310 align:start position:0%
this video, we'll take a look at how
this<00:00:30.560><c> even</c><00:00:30.880><c> works,</c><00:00:31.359><c> what</c><00:00:31.519><c> you</c><00:00:31.679><c> have</c><00:00:31.840><c> to</c><00:00:32.000><c> do</c><00:00:32.160><c> to</c>

00:00:32.310 --> 00:00:32.320 align:start position:0%
this even works, what you have to do to
 

00:00:32.320 --> 00:00:34.150 align:start position:0%
this even works, what you have to do to
make<00:00:32.480><c> Portal</c><00:00:32.880><c> 2</c><00:00:33.120><c> serve</c><00:00:33.360><c> a</c><00:00:33.520><c> website,</c><00:00:33.920><c> and</c>

00:00:34.150 --> 00:00:34.160 align:start position:0%
make Portal 2 serve a website, and
 

00:00:34.160 --> 00:00:35.910 align:start position:0%
make Portal 2 serve a website, and
explore<00:00:34.480><c> a</c><00:00:34.719><c> few</c><00:00:34.800><c> of</c><00:00:34.880><c> the</c><00:00:35.120><c> possibilities</c><00:00:35.680><c> that</c>

00:00:35.910 --> 00:00:35.920 align:start position:0%
explore a few of the possibilities that
 

00:00:35.920 --> 00:00:38.310 align:start position:0%
explore a few of the possibilities that
this<00:00:36.239><c> provides.</c><00:00:37.120><c> First</c><00:00:37.360><c> things</c><00:00:37.600><c> first,</c><00:00:38.079><c> why</c>

00:00:38.310 --> 00:00:38.320 align:start position:0%
this provides. First things first, why
 

00:00:38.320 --> 00:00:40.549 align:start position:0%
this provides. First things first, why
is<00:00:38.480><c> a</c><00:00:38.719><c> source</c><00:00:39.040><c> engine</c><00:00:39.360><c> even</c><00:00:39.680><c> capable</c><00:00:40.079><c> of</c><00:00:40.320><c> doing</c>

00:00:40.549 --> 00:00:40.559 align:start position:0%
is a source engine even capable of doing
 

00:00:40.559 --> 00:00:42.549 align:start position:0%
is a source engine even capable of doing
something<00:00:40.879><c> like</c><00:00:41.120><c> this?</c><00:00:41.600><c> Why</c><00:00:41.840><c> should</c><00:00:42.000><c> a</c><00:00:42.239><c> game</c>

00:00:42.549 --> 00:00:42.559 align:start position:0%
something like this? Why should a game
 

00:00:42.559 --> 00:00:45.110 align:start position:0%
something like this? Why should a game
be<00:00:42.719><c> able</c><00:00:42.879><c> to</c><00:00:43.040><c> host</c><00:00:43.360><c> a</c><00:00:43.600><c> website?</c><00:00:44.320><c> Well,</c><00:00:44.640><c> in</c><00:00:44.879><c> most</c>

00:00:45.110 --> 00:00:45.120 align:start position:0%
be able to host a website? Well, in most
 

00:00:45.120 --> 00:00:47.670 align:start position:0%
be able to host a website? Well, in most
cases,<00:00:45.680><c> it</c><00:00:46.000><c> shouldn't.</c><00:00:46.719><c> Sure,</c><00:00:47.120><c> some</c><00:00:47.360><c> games</c>

00:00:47.670 --> 00:00:47.680 align:start position:0%
cases, it shouldn't. Sure, some games
 

00:00:47.680 --> 00:00:49.350 align:start position:0%
cases, it shouldn't. Sure, some games
may<00:00:47.840><c> expose</c><00:00:48.160><c> a</c><00:00:48.399><c> simple</c><00:00:48.719><c> browser</c><00:00:49.039><c> for</c>

00:00:49.350 --> 00:00:49.360 align:start position:0%
may expose a simple browser for
 

00:00:49.360 --> 00:00:51.590 align:start position:0%
may expose a simple browser for
displaying<00:00:49.760><c> news</c><00:00:50.079><c> or</c><00:00:50.320><c> updates,</c><00:00:50.879><c> but</c><00:00:51.200><c> that's</c>

00:00:51.590 --> 00:00:51.600 align:start position:0%
displaying news or updates, but that's
 

00:00:51.600 --> 00:00:54.310 align:start position:0%
displaying news or updates, but that's
about<00:00:52.079><c> it.</c><00:00:52.800><c> Okay,</c><00:00:53.199><c> so</c><00:00:53.520><c> if</c><00:00:53.680><c> it's</c><00:00:53.920><c> not</c><00:00:54.160><c> a</c>

00:00:54.310 --> 00:00:54.320 align:start position:0%
about it. Okay, so if it's not a
 

00:00:54.320 --> 00:00:56.630 align:start position:0%
about it. Okay, so if it's not a
built-in<00:00:54.719><c> server,</c><00:00:55.280><c> then</c><00:00:55.760><c> how</c><00:00:56.079><c> does</c><00:00:56.399><c> this</c>

00:00:56.630 --> 00:00:56.640 align:start position:0%
built-in server, then how does this
 

00:00:56.640 --> 00:00:58.709 align:start position:0%
built-in server, then how does this
work?<00:00:57.120><c> The</c><00:00:57.440><c> protocol</c><00:00:57.840><c> used</c><00:00:58.079><c> for</c><00:00:58.320><c> serving</c>

00:00:58.709 --> 00:00:58.719 align:start position:0%
work? The protocol used for serving
 

00:00:58.719 --> 00:01:01.590 align:start position:0%
work? The protocol used for serving
websites<00:00:59.120><c> is</c><00:00:59.359><c> called</c><00:00:59.680><c> HTTP</c><00:01:00.640><c> or</c><00:01:00.879><c> Hypertext</c>

00:01:01.590 --> 00:01:01.600 align:start position:0%
websites is called HTTP or Hypertext
 

00:01:01.600 --> 00:01:03.670 align:start position:0%
websites is called HTTP or Hypertext
Transfer<00:01:02.079><c> Protocol.</c><00:01:02.719><c> As</c><00:01:02.879><c> the</c><00:01:03.039><c> name</c><00:01:03.199><c> implies,</c>

00:01:03.670 --> 00:01:03.680 align:start position:0%
Transfer Protocol. As the name implies,
 

00:01:03.680 --> 00:01:05.429 align:start position:0%
Transfer Protocol. As the name implies,
the<00:01:03.920><c> protocol</c><00:01:04.320><c> is</c><00:01:04.479><c> designed</c><00:01:04.799><c> to</c><00:01:05.040><c> transfer</c>

00:01:05.429 --> 00:01:05.439 align:start position:0%
the protocol is designed to transfer
 

00:01:05.439 --> 00:01:07.270 align:start position:0%
the protocol is designed to transfer
text,<00:01:05.840><c> which</c><00:01:06.159><c> makes</c><00:01:06.320><c> it</c><00:01:06.479><c> incredibly</c><00:01:06.960><c> simple</c>

00:01:07.270 --> 00:01:07.280 align:start position:0%
text, which makes it incredibly simple
 

00:01:07.280 --> 00:01:09.750 align:start position:0%
text, which makes it incredibly simple
and<00:01:07.600><c> versatile.</c><00:01:08.320><c> In</c><00:01:08.640><c> theory,</c><00:01:09.119><c> all</c><00:01:09.360><c> you</c><00:01:09.520><c> need</c>

00:01:09.750 --> 00:01:09.760 align:start position:0%
and versatile. In theory, all you need
 

00:01:09.760 --> 00:01:11.510 align:start position:0%
and versatile. In theory, all you need
in<00:01:10.000><c> order</c><00:01:10.080><c> to</c><00:01:10.320><c> run</c><00:01:10.400><c> a</c><00:01:10.640><c> web</c><00:01:10.799><c> server</c><00:01:11.119><c> is</c><00:01:11.360><c> a</c>

00:01:11.510 --> 00:01:11.520 align:start position:0%
in order to run a web server is a
 

00:01:11.520 --> 00:01:13.590 align:start position:0%
in order to run a web server is a
network<00:01:11.920><c> socket</c><00:01:12.320><c> capable</c><00:01:12.720><c> of</c><00:01:12.960><c> transferring</c>

00:01:13.590 --> 00:01:13.600 align:start position:0%
network socket capable of transferring
 

00:01:13.600 --> 00:01:17.749 align:start position:0%
network socket capable of transferring
text.<00:01:14.479><c> Well,</c><00:01:15.280><c> sort</c><00:01:15.520><c> of.</c><00:01:16.159><c> See,</c><00:01:16.560><c> HTTP</c><00:01:17.280><c> runs</c><00:01:17.520><c> on</c>

00:01:17.749 --> 00:01:17.759 align:start position:0%
text. Well, sort of. See, HTTP runs on
 

00:01:17.759 --> 00:01:20.950 align:start position:0%
text. Well, sort of. See, HTTP runs on
top<00:01:17.920><c> of</c><00:01:18.000><c> another</c><00:01:18.400><c> protocol</c><00:01:18.960><c> called</c><00:01:19.320><c> TCP.</c><00:01:20.320><c> TCP</c>

00:01:20.950 --> 00:01:20.960 align:start position:0%
top of another protocol called TCP. TCP
 

00:01:20.960 --> 00:01:22.630 align:start position:0%
top of another protocol called TCP. TCP
stands<00:01:21.280><c> for</c><00:01:21.600><c> transmission</c><00:01:22.240><c> control</c>

00:01:22.630 --> 00:01:22.640 align:start position:0%
stands for transmission control
 

00:01:22.640 --> 00:01:25.350 align:start position:0%
stands for transmission control
protocol.<00:01:23.439><c> And</c><00:01:23.840><c> being</c><00:01:24.159><c> the</c><00:01:24.400><c> control</c><00:01:24.799><c> protocol</c>

00:01:25.350 --> 00:01:25.360 align:start position:0%
protocol. And being the control protocol
 

00:01:25.360 --> 00:01:27.990 align:start position:0%
protocol. And being the control protocol
means<00:01:25.600><c> it's</c><00:01:26.000><c> very</c><00:01:26.479><c> careful.</c><00:01:27.119><c> It</c><00:01:27.360><c> ensures</c><00:01:27.759><c> that</c>

00:01:27.990 --> 00:01:28.000 align:start position:0%
means it's very careful. It ensures that
 

00:01:28.000 --> 00:01:29.830 align:start position:0%
means it's very careful. It ensures that
each<00:01:28.240><c> packet</c><00:01:28.720><c> makes</c><00:01:28.880><c> it</c><00:01:29.040><c> to</c><00:01:29.200><c> the</c><00:01:29.360><c> right</c><00:01:29.600><c> place</c>

00:01:29.830 --> 00:01:29.840 align:start position:0%
each packet makes it to the right place
 

00:01:29.840 --> 00:01:32.550 align:start position:0%
each packet makes it to the right place
and<00:01:30.080><c> in</c><00:01:30.240><c> the</c><00:01:30.479><c> right</c><00:01:30.640><c> order.</c><00:01:31.520><c> But</c><00:01:31.759><c> this</c><00:01:32.159><c> isn't</c>

00:01:32.550 --> 00:01:32.560 align:start position:0%
and in the right order. But this isn't
 

00:01:32.560 --> 00:01:34.550 align:start position:0%
and in the right order. But this isn't
favorable<00:01:33.040><c> for</c><00:01:33.360><c> real-time</c><00:01:33.920><c> applications</c>

00:01:34.550 --> 00:01:34.560 align:start position:0%
favorable for real-time applications
 

00:01:34.560 --> 00:01:36.630 align:start position:0%
favorable for real-time applications
like<00:01:34.880><c> video</c><00:01:35.200><c> games</c><00:01:35.600><c> because</c><00:01:36.000><c> having</c><00:01:36.240><c> to</c><00:01:36.400><c> watch</c>

00:01:36.630 --> 00:01:36.640 align:start position:0%
like video games because having to watch
 

00:01:36.640 --> 00:01:38.710 align:start position:0%
like video games because having to watch
out<00:01:36.880><c> for</c><00:01:37.119><c> and</c><00:01:37.439><c> fix</c><00:01:37.680><c> these</c><00:01:37.920><c> package</c><00:01:38.320><c> ordering</c>

00:01:38.710 --> 00:01:38.720 align:start position:0%
out for and fix these package ordering
 

00:01:38.720 --> 00:01:41.350 align:start position:0%
out for and fix these package ordering
issues<00:01:39.200><c> takes</c><00:01:39.439><c> up</c><00:01:39.759><c> valuable</c><00:01:40.320><c> time.</c><00:01:41.119><c> This</c><00:01:41.280><c> is</c>

00:01:41.350 --> 00:01:41.360 align:start position:0%
issues takes up valuable time. This is
 

00:01:41.360 --> 00:01:44.310 align:start position:0%
issues takes up valuable time. This is
where<00:01:41.680><c> UDP</c><00:01:42.320><c> comes</c><00:01:42.560><c> in.</c><00:01:42.960><c> It</c><00:01:43.200><c> has</c><00:01:43.439><c> absolutely</c><00:01:44.079><c> no</c>

00:01:44.310 --> 00:01:44.320 align:start position:0%
where UDP comes in. It has absolutely no
 

00:01:44.320 --> 00:01:46.389 align:start position:0%
where UDP comes in. It has absolutely no
regard<00:01:44.720><c> for</c><00:01:44.960><c> order</c><00:01:45.280><c> and</c><00:01:45.439><c> integrity.</c><00:01:46.079><c> Instead,</c>

00:01:46.389 --> 00:01:46.399 align:start position:0%
regard for order and integrity. Instead,
 

00:01:46.399 --> 00:01:48.069 align:start position:0%
regard for order and integrity. Instead,
just<00:01:46.640><c> bombarding</c><00:01:47.200><c> the</c><00:01:47.439><c> target</c><00:01:47.759><c> with</c>

00:01:48.069 --> 00:01:48.079 align:start position:0%
just bombarding the target with
 

00:01:48.079 --> 00:01:50.069 align:start position:0%
just bombarding the target with
everything<00:01:48.399><c> it's</c><00:01:48.720><c> got.</c><00:01:49.200><c> This</c><00:01:49.439><c> is</c><00:01:49.600><c> great</c><00:01:49.840><c> for</c>

00:01:50.069 --> 00:01:50.079 align:start position:0%
everything it's got. This is great for
 

00:01:50.079 --> 00:01:51.910 align:start position:0%
everything it's got. This is great for
real-time<00:01:50.640><c> applications</c><00:01:51.119><c> like</c><00:01:51.520><c> streaming</c>

00:01:51.910 --> 00:01:51.920 align:start position:0%
real-time applications like streaming
 

00:01:51.920 --> 00:01:54.389 align:start position:0%
real-time applications like streaming
and<00:01:52.159><c> video</c><00:01:52.479><c> games,</c><00:01:52.960><c> but</c><00:01:53.360><c> not</c><00:01:53.600><c> so</c><00:01:53.840><c> much</c><00:01:54.079><c> for</c>

00:01:54.389 --> 00:01:54.399 align:start position:0%
and video games, but not so much for
 

00:01:54.399 --> 00:01:56.710 align:start position:0%
and video games, but not so much for
websites.<00:01:55.280><c> So,</c><00:01:55.520><c> before</c><00:01:55.759><c> we</c><00:01:56.000><c> even</c><00:01:56.240><c> consider</c>

00:01:56.710 --> 00:01:56.720 align:start position:0%
websites. So, before we even consider
 

00:01:56.720 --> 00:01:59.270 align:start position:0%
websites. So, before we even consider
serving<00:01:57.040><c> HTTP</c><00:01:57.759><c> from</c><00:01:58.000><c> Portal</c><00:01:58.479><c> 2,</c><00:01:58.799><c> we</c><00:01:59.040><c> first</c>

00:01:59.270 --> 00:01:59.280 align:start position:0%
serving HTTP from Portal 2, we first
 

00:01:59.280 --> 00:02:02.069 align:start position:0%
serving HTTP from Portal 2, we first
have<00:01:59.439><c> to</c><00:01:59.600><c> get</c><00:01:59.680><c> it</c><00:01:59.920><c> to</c><00:02:00.079><c> communicate</c><00:02:00.640><c> using</c><00:02:01.079><c> TCP.</c>

00:02:02.069 --> 00:02:02.079 align:start position:0%
have to get it to communicate using TCP.
 

00:02:02.079 --> 00:02:03.429 align:start position:0%
have to get it to communicate using TCP.
If<00:02:02.240><c> we</c><00:02:02.399><c> take</c><00:02:02.479><c> a</c><00:02:02.640><c> look</c><00:02:02.719><c> at</c><00:02:02.880><c> all</c><00:02:03.040><c> the</c><00:02:03.200><c> network</c>

00:02:03.429 --> 00:02:03.439 align:start position:0%
If we take a look at all the network
 

00:02:03.439 --> 00:02:05.590 align:start position:0%
If we take a look at all the network
sockets<00:02:03.840><c> the</c><00:02:04.079><c> game</c><00:02:04.240><c> is</c><00:02:04.399><c> using,</c><00:02:04.880><c> it's</c><00:02:05.119><c> not</c><00:02:05.360><c> too</c>

00:02:05.590 --> 00:02:05.600 align:start position:0%
sockets the game is using, it's not too
 

00:02:05.600 --> 00:02:07.270 align:start position:0%
sockets the game is using, it's not too
surprising<00:02:06.000><c> to</c><00:02:06.240><c> find</c><00:02:06.479><c> that</c><00:02:06.719><c> the</c><00:02:06.960><c> vast</c>

00:02:07.270 --> 00:02:07.280 align:start position:0%
surprising to find that the vast
 

00:02:07.280 --> 00:02:10.389 align:start position:0%
surprising to find that the vast
majority<00:02:07.680><c> of</c><00:02:07.840><c> these</c><00:02:08.160><c> are</c><00:02:08.520><c> UDP.</c><00:02:09.520><c> There</c><00:02:09.840><c> is</c><00:02:10.160><c> one</c>

00:02:10.389 --> 00:02:10.399 align:start position:0%
majority of these are UDP. There is one
 

00:02:10.399 --> 00:02:12.869 align:start position:0%
majority of these are UDP. There is one
TCP<00:02:11.039><c> connection,</c><00:02:11.520><c> but</c><00:02:11.760><c> that's</c><00:02:12.080><c> outbound</c><00:02:12.640><c> for</c>

00:02:12.869 --> 00:02:12.879 align:start position:0%
TCP connection, but that's outbound for
 

00:02:12.879 --> 00:02:14.710 align:start position:0%
TCP connection, but that's outbound for
communication<00:02:13.360><c> with</c><00:02:13.599><c> Steam.</c><00:02:14.080><c> If</c><00:02:14.239><c> we</c><00:02:14.400><c> want</c><00:02:14.560><c> a</c>

00:02:14.710 --> 00:02:14.720 align:start position:0%
communication with Steam. If we want a
 

00:02:14.720 --> 00:02:16.949 align:start position:0%
communication with Steam. If we want a
socket<00:02:15.120><c> we</c><00:02:15.360><c> can</c><00:02:15.520><c> control,</c><00:02:16.160><c> we'll</c><00:02:16.400><c> have</c><00:02:16.560><c> to</c><00:02:16.720><c> dig</c>

00:02:16.949 --> 00:02:16.959 align:start position:0%
socket we can control, we'll have to dig
 

00:02:16.959 --> 00:02:19.350 align:start position:0%
socket we can control, we'll have to dig
a<00:02:17.120><c> bit</c><00:02:17.280><c> deeper.</c><00:02:18.239><c> The</c><00:02:18.480><c> Linux</c><00:02:18.879><c> versions</c><00:02:19.120><c> of</c><00:02:19.200><c> the</c>

00:02:19.350 --> 00:02:19.360 align:start position:0%
a bit deeper. The Linux versions of the
 

00:02:19.360 --> 00:02:21.510 align:start position:0%
a bit deeper. The Linux versions of the
Left<00:02:19.599><c> for</c><00:02:19.760><c> Dead</c><00:02:20.000><c> dedicated</c><00:02:20.560><c> servers</c><00:02:21.200><c> shipped</c>

00:02:21.510 --> 00:02:21.520 align:start position:0%
Left for Dead dedicated servers shipped
 

00:02:21.520 --> 00:02:23.270 align:start position:0%
Left for Dead dedicated servers shipped
with<00:02:21.680><c> a</c><00:02:21.840><c> few</c><00:02:22.000><c> unique</c><00:02:22.400><c> launch</c><00:02:22.720><c> options</c><00:02:23.040><c> for</c>

00:02:23.270 --> 00:02:23.280 align:start position:0%
with a few unique launch options for
 

00:02:23.280 --> 00:02:25.190 align:start position:0%
with a few unique launch options for
easier<00:02:23.680><c> server</c><00:02:24.080><c> management.</c><00:02:24.720><c> One</c><00:02:24.959><c> of</c><00:02:25.040><c> these</c>

00:02:25.190 --> 00:02:25.200 align:start position:0%
easier server management. One of these
 

00:02:25.200 --> 00:02:27.350 align:start position:0%
easier server management. One of these
options<00:02:25.599><c> is</c><00:02:25.920><c> -ashnetcon</c><00:02:26.800><c> port,</c><00:02:27.120><c> which</c>

00:02:27.350 --> 00:02:27.360 align:start position:0%
options is -ashnetcon port, which
 

00:02:27.360 --> 00:02:29.750 align:start position:0%
options is -ashnetcon port, which
creates<00:02:27.599><c> a</c><00:02:27.760><c> TCP</c><00:02:28.319><c> server</c><00:02:28.720><c> that</c><00:02:29.040><c> exposes</c><00:02:29.520><c> the</c>

00:02:29.750 --> 00:02:29.760 align:start position:0%
creates a TCP server that exposes the
 

00:02:29.760 --> 00:02:32.309 align:start position:0%
creates a TCP server that exposes the
developer<00:02:30.239><c> console.</c><00:02:31.040><c> As</c><00:02:31.200><c> it</c><00:02:31.440><c> turns</c><00:02:31.599><c> out,</c><00:02:32.080><c> this</c>

00:02:32.309 --> 00:02:32.319 align:start position:0%
developer console. As it turns out, this
 

00:02:32.319 --> 00:02:34.229 align:start position:0%
developer console. As it turns out, this
launch<00:02:32.560><c> option</c><00:02:32.959><c> has</c><00:02:33.200><c> actually</c><00:02:33.599><c> remained</c><00:02:34.000><c> in</c>

00:02:34.229 --> 00:02:34.239 align:start position:0%
launch option has actually remained in
 

00:02:34.239 --> 00:02:35.830 align:start position:0%
launch option has actually remained in
the<00:02:34.319><c> source</c><00:02:34.640><c> engine</c><00:02:34.879><c> for</c><00:02:35.120><c> future</c><00:02:35.440><c> Valve</c>

00:02:35.830 --> 00:02:35.840 align:start position:0%
the source engine for future Valve
 

00:02:35.840 --> 00:02:38.309 align:start position:0%
the source engine for future Valve
games,<00:02:36.319><c> including</c><00:02:36.879><c> Portal</c><00:02:37.360><c> 2.</c><00:02:37.840><c> By</c><00:02:38.080><c> setting</c>

00:02:38.309 --> 00:02:38.319 align:start position:0%
games, including Portal 2. By setting
 

00:02:38.319 --> 00:02:39.830 align:start position:0%
games, including Portal 2. By setting
this<00:02:38.560><c> launch</c><00:02:38.800><c> option,</c><00:02:39.200><c> you</c><00:02:39.440><c> can</c><00:02:39.519><c> send</c>

00:02:39.830 --> 00:02:39.840 align:start position:0%
this launch option, you can send
 

00:02:39.840 --> 00:02:41.670 align:start position:0%
this launch option, you can send
commands<00:02:40.160><c> to</c><00:02:40.319><c> the</c><00:02:40.480><c> developer</c><00:02:40.959><c> console</c><00:02:41.360><c> and</c>

00:02:41.670 --> 00:02:41.680 align:start position:0%
commands to the developer console and
 

00:02:41.680 --> 00:02:44.470 align:start position:0%
commands to the developer console and
read<00:02:41.920><c> their</c><00:02:42.160><c> output</c><00:02:42.560><c> as</c><00:02:42.920><c> promised.</c><00:02:43.920><c> But</c><00:02:44.160><c> what</c>

00:02:44.470 --> 00:02:44.480 align:start position:0%
read their output as promised. But what
 

00:02:44.480 --> 00:02:46.390 align:start position:0%
read their output as promised. But what
about<00:02:44.879><c> HTTP?</c>

00:02:46.390 --> 00:02:46.400 align:start position:0%
about HTTP?
 

00:02:46.400 --> 00:02:48.470 align:start position:0%
about HTTP?
What<00:02:46.720><c> happens</c><00:02:47.040><c> if</c><00:02:47.280><c> we</c><00:02:47.519><c> try</c><00:02:47.680><c> to</c><00:02:47.840><c> connect</c><00:02:48.160><c> to</c><00:02:48.319><c> the</c>

00:02:48.470 --> 00:02:48.480 align:start position:0%
What happens if we try to connect to the
 

00:02:48.480 --> 00:02:51.350 align:start position:0%
What happens if we try to connect to the
socket<00:02:49.120><c> as</c><00:02:49.280><c> if</c><00:02:49.519><c> it</c><00:02:49.680><c> were</c><00:02:49.840><c> a</c><00:02:50.080><c> website?</c><00:02:50.959><c> Well,</c>

00:02:51.350 --> 00:02:51.360 align:start position:0%
socket as if it were a website? Well,
 

00:02:51.360 --> 00:02:53.670 align:start position:0%
socket as if it were a website? Well,
the<00:02:51.680><c> browser</c><00:02:52.160><c> is</c><00:02:52.480><c> stuck</c><00:02:52.800><c> loading,</c><00:02:53.280><c> but</c><00:02:53.519><c> the</c>

00:02:53.670 --> 00:02:53.680 align:start position:0%
the browser is stuck loading, but the
 

00:02:53.680 --> 00:02:55.990 align:start position:0%
the browser is stuck loading, but the
Portal<00:02:54.080><c> 2</c><00:02:54.239><c> console</c><00:02:54.720><c> seems</c><00:02:54.959><c> to</c><00:02:55.120><c> receive</c><00:02:55.519><c> a</c><00:02:55.840><c> lot</c>

00:02:55.990 --> 00:02:56.000 align:start position:0%
Portal 2 console seems to receive a lot
 

00:02:56.000 --> 00:02:58.630 align:start position:0%
Portal 2 console seems to receive a lot
of<00:02:56.239><c> garbage</c><00:02:56.640><c> in</c><00:02:56.800><c> the</c><00:02:56.959><c> form</c><00:02:57.120><c> of</c><00:02:57.280><c> HTTP</c><00:02:58.000><c> headers.</c>

00:02:58.630 --> 00:02:58.640 align:start position:0%
of garbage in the form of HTTP headers.
 

00:02:58.640 --> 00:03:00.550 align:start position:0%
of garbage in the form of HTTP headers.
This<00:02:58.879><c> means</c><00:02:59.120><c> that</c><00:02:59.360><c> we</c><00:02:59.599><c> do</c><00:02:59.840><c> have</c><00:03:00.000><c> a</c><00:03:00.239><c> fully</c>

00:03:00.550 --> 00:03:00.560 align:start position:0%
This means that we do have a fully
 

00:03:00.560 --> 00:03:02.309 align:start position:0%
This means that we do have a fully
functioning<00:03:01.040><c> server.</c><00:03:01.519><c> It</c><00:03:01.760><c> just</c><00:03:01.920><c> isn't</c>

00:03:02.309 --> 00:03:02.319 align:start position:0%
functioning server. It just isn't
 

00:03:02.319 --> 00:03:05.110 align:start position:0%
functioning server. It just isn't
responding<00:03:02.800><c> with</c><00:03:03.040><c> valid</c><00:03:03.640><c> HTTP.</c><00:03:04.640><c> Let's</c><00:03:04.959><c> see</c>

00:03:05.110 --> 00:03:05.120 align:start position:0%
responding with valid HTTP. Let's see
 

00:03:05.120 --> 00:03:06.949 align:start position:0%
responding with valid HTTP. Let's see
what<00:03:05.280><c> we</c><00:03:05.440><c> can</c><00:03:05.599><c> do</c><00:03:05.680><c> about</c><00:03:05.920><c> that.</c><00:03:06.560><c> As</c><00:03:06.800><c> I</c>

00:03:06.949 --> 00:03:06.959 align:start position:0%
what we can do about that. As I
 

00:03:06.959 --> 00:03:08.869 align:start position:0%
what we can do about that. As I
mentioned,<00:03:07.280><c> the</c><00:03:07.519><c> HTTP</c><00:03:08.159><c> headers</c><00:03:08.480><c> that</c><00:03:08.640><c> the</c>

00:03:08.869 --> 00:03:08.879 align:start position:0%
mentioned, the HTTP headers that the
 

00:03:08.879 --> 00:03:10.470 align:start position:0%
mentioned, the HTTP headers that the
browser<00:03:09.120><c> is</c><00:03:09.360><c> sending</c><00:03:09.760><c> seem</c><00:03:10.000><c> to</c><00:03:10.080><c> be</c><00:03:10.239><c> getting</c>

00:03:10.470 --> 00:03:10.480 align:start position:0%
browser is sending seem to be getting
 

00:03:10.480 --> 00:03:12.470 align:start position:0%
browser is sending seem to be getting
interpreted<00:03:10.959><c> as</c><00:03:11.280><c> console</c><00:03:11.680><c> commands.</c><00:03:12.239><c> For</c>

00:03:12.470 --> 00:03:12.480 align:start position:0%
interpreted as console commands. For
 

00:03:12.480 --> 00:03:14.630 align:start position:0%
interpreted as console commands. For
context,<00:03:13.040><c> a</c><00:03:13.280><c> header</c><00:03:13.599><c> is</c><00:03:13.840><c> just</c><00:03:14.000><c> some</c><00:03:14.239><c> property</c>

00:03:14.630 --> 00:03:14.640 align:start position:0%
context, a header is just some property
 

00:03:14.640 --> 00:03:16.710 align:start position:0%
context, a header is just some property
that<00:03:14.879><c> describes</c><00:03:15.280><c> the</c><00:03:15.519><c> data</c><00:03:15.760><c> being</c><00:03:16.080><c> sent.</c><00:03:16.480><c> In</c>

00:03:16.710 --> 00:03:16.720 align:start position:0%
that describes the data being sent. In
 

00:03:16.720 --> 00:03:17.910 align:start position:0%
that describes the data being sent. In
this<00:03:16.800><c> case,</c><00:03:17.040><c> we</c><00:03:17.200><c> seem</c><00:03:17.360><c> to</c><00:03:17.440><c> be</c><00:03:17.599><c> getting</c><00:03:17.760><c> the</c>

00:03:17.910 --> 00:03:17.920 align:start position:0%
this case, we seem to be getting the
 

00:03:17.920 --> 00:03:19.750 align:start position:0%
this case, we seem to be getting the
request<00:03:18.319><c> type</c><00:03:18.720><c> followed</c><00:03:18.959><c> by</c><00:03:19.120><c> headers</c><00:03:19.519><c> like</c>

00:03:19.750 --> 00:03:19.760 align:start position:0%
request type followed by headers like
 

00:03:19.760 --> 00:03:23.110 align:start position:0%
request type followed by headers like
host,<00:03:20.239><c> user</c><00:03:20.640><c> agent,</c><00:03:20.959><c> and</c><00:03:21.280><c> so</c><00:03:21.440><c> on.</c><00:03:22.080><c> But</c><00:03:22.560><c> get</c>

00:03:23.110 --> 00:03:23.120 align:start position:0%
host, user agent, and so on. But get
 

00:03:23.120 --> 00:03:25.589 align:start position:0%
host, user agent, and so on. But get
isn't<00:03:23.519><c> a</c><00:03:23.760><c> valid</c><00:03:24.159><c> command,</c><00:03:24.720><c> and</c><00:03:24.959><c> neither</c><00:03:25.280><c> is</c>

00:03:25.589 --> 00:03:25.599 align:start position:0%
isn't a valid command, and neither is
 

00:03:25.599 --> 00:03:28.229 align:start position:0%
isn't a valid command, and neither is
host<00:03:25.920><c> or</c><00:03:26.239><c> user</c><00:03:26.640><c> agent.</c><00:03:27.280><c> Even</c><00:03:27.519><c> if</c><00:03:27.680><c> they</c><00:03:27.920><c> were,</c>

00:03:28.229 --> 00:03:28.239 align:start position:0%
host or user agent. Even if they were,
 

00:03:28.239 --> 00:03:30.550 align:start position:0%
host or user agent. Even if they were,
that<00:03:28.560><c> wouldn't</c><00:03:28.879><c> be</c><00:03:29.120><c> particularly</c><00:03:29.840><c> helpful.</c>

00:03:30.550 --> 00:03:30.560 align:start position:0%
that wouldn't be particularly helpful.
 

00:03:30.560 --> 00:03:33.030 align:start position:0%
that wouldn't be particularly helpful.
We<00:03:30.799><c> need</c><00:03:30.959><c> a</c><00:03:31.120><c> way</c><00:03:31.280><c> to</c><00:03:31.440><c> forge</c><00:03:31.840><c> a</c><00:03:32.159><c> custom</c><00:03:32.640><c> response</c>

00:03:33.030 --> 00:03:33.040 align:start position:0%
We need a way to forge a custom response
 

00:03:33.040 --> 00:03:35.350 align:start position:0%
We need a way to forge a custom response
to<00:03:33.280><c> one</c><00:03:33.440><c> of</c><00:03:33.519><c> these</c><00:03:33.760><c> non-existent</c><00:03:34.480><c> commands.</c>

00:03:35.350 --> 00:03:35.360 align:start position:0%
to one of these non-existent commands.
 

00:03:35.360 --> 00:03:36.949 align:start position:0%
to one of these non-existent commands.
Specifically,<00:03:35.920><c> we</c><00:03:36.159><c> should</c><00:03:36.319><c> probably</c><00:03:36.640><c> respond</c>

00:03:36.949 --> 00:03:36.959 align:start position:0%
Specifically, we should probably respond
 

00:03:36.959 --> 00:03:38.869 align:start position:0%
Specifically, we should probably respond
to<00:03:37.120><c> the</c><00:03:37.280><c> very</c><00:03:37.519><c> first</c><00:03:37.680><c> one</c><00:03:37.920><c> to</c><00:03:38.159><c> avoid</c><00:03:38.400><c> the</c><00:03:38.560><c> other</c>

00:03:38.869 --> 00:03:38.879 align:start position:0%
to the very first one to avoid the other
 

00:03:38.879 --> 00:03:40.789 align:start position:0%
to the very first one to avoid the other
errors<00:03:39.120><c> from</c><00:03:39.360><c> confusing</c><00:03:39.760><c> the</c><00:03:39.920><c> browser.</c><00:03:40.560><c> For</c>

00:03:40.789 --> 00:03:40.799 align:start position:0%
errors from confusing the browser. For
 

00:03:40.799 --> 00:03:43.190 align:start position:0%
errors from confusing the browser. For
this,<00:03:41.040><c> we</c><00:03:41.280><c> can</c><00:03:41.440><c> use</c><00:03:41.680><c> the</c><00:03:41.920><c> alias</c><00:03:42.400><c> command.</c><00:03:42.959><c> It</c>

00:03:43.190 --> 00:03:43.200 align:start position:0%
this, we can use the alias command. It
 

00:03:43.200 --> 00:03:45.190 align:start position:0%
this, we can use the alias command. It
allows<00:03:43.440><c> us</c><00:03:43.599><c> to</c><00:03:43.760><c> mask</c><00:03:44.159><c> a</c><00:03:44.480><c> different</c><00:03:44.720><c> command</c>

00:03:45.190 --> 00:03:45.200 align:start position:0%
allows us to mask a different command
 

00:03:45.200 --> 00:03:47.750 align:start position:0%
allows us to mask a different command
under<00:03:45.519><c> a</c><00:03:45.840><c> custom</c><00:03:46.239><c> name.</c><00:03:46.879><c> In</c><00:03:47.120><c> this</c><00:03:47.280><c> case,</c><00:03:47.519><c> we</c>

00:03:47.750 --> 00:03:47.760 align:start position:0%
under a custom name. In this case, we
 

00:03:47.760 --> 00:03:50.390 align:start position:0%
under a custom name. In this case, we
can<00:03:47.920><c> alias</c><00:03:48.480><c> get</c><00:03:48.879><c> to</c><00:03:49.200><c> print</c><00:03:49.440><c> some</c><00:03:49.760><c> text</c><00:03:50.000><c> to</c><00:03:50.239><c> the</c>

00:03:50.390 --> 00:03:50.400 align:start position:0%
can alias get to print some text to the
 

00:03:50.400 --> 00:03:52.550 align:start position:0%
can alias get to print some text to the
console.<00:03:51.120><c> To</c><00:03:51.360><c> make</c><00:03:51.440><c> this</c><00:03:51.599><c> a</c><00:03:51.760><c> bit</c><00:03:51.920><c> easier,</c><00:03:52.239><c> I'll</c>

00:03:52.550 --> 00:03:52.560 align:start position:0%
console. To make this a bit easier, I'll
 

00:03:52.560 --> 00:03:54.470 align:start position:0%
console. To make this a bit easier, I'll
implement<00:03:52.879><c> the</c><00:03:53.040><c> logic</c><00:03:53.280><c> in</c><00:03:53.519><c> VScript.</c><00:03:54.239><c> That's</c>

00:03:54.470 --> 00:03:54.480 align:start position:0%
implement the logic in VScript. That's
 

00:03:54.480 --> 00:03:56.070 align:start position:0%
implement the logic in VScript. That's
the<00:03:54.720><c> system</c><00:03:54.959><c> used</c><00:03:55.280><c> for</c><00:03:55.440><c> creating</c><00:03:55.760><c> various</c>

00:03:56.070 --> 00:03:56.080 align:start position:0%
the system used for creating various
 

00:03:56.080 --> 00:03:57.830 align:start position:0%
the system used for creating various
scripted<00:03:56.480><c> events</c><00:03:56.799><c> throughout</c><00:03:57.120><c> the</c><00:03:57.360><c> game.</c>

00:03:57.830 --> 00:03:57.840 align:start position:0%
scripted events throughout the game.
 

00:03:57.840 --> 00:04:00.149 align:start position:0%
scripted events throughout the game.
It's<00:03:58.159><c> actually</c><00:03:58.480><c> a</c><00:03:58.799><c> fairly</c><00:03:59.200><c> powerful</c><00:03:59.680><c> system</c>

00:04:00.149 --> 00:04:00.159 align:start position:0%
It's actually a fairly powerful system
 

00:04:00.159 --> 00:04:01.830 align:start position:0%
It's actually a fairly powerful system
and<00:04:00.400><c> is</c><00:04:00.640><c> more</c><00:04:00.879><c> than</c><00:04:01.040><c> enough</c><00:04:01.280><c> for</c><00:04:01.439><c> what</c><00:04:01.599><c> we</c><00:04:01.760><c> need</c>

00:04:01.830 --> 00:04:01.840 align:start position:0%
and is more than enough for what we need
 

00:04:01.840 --> 00:04:04.229 align:start position:0%
and is more than enough for what we need
to<00:04:02.000><c> do.</c><00:04:02.480><c> I'm</c><00:04:02.640><c> using</c><00:04:02.799><c> a</c><00:04:03.040><c> library</c><00:04:03.360><c> called</c><00:04:03.680><c> ppmod</c>

00:04:04.229 --> 00:04:04.239 align:start position:0%
to do. I'm using a library called ppmod
 

00:04:04.239 --> 00:04:05.990 align:start position:0%
to do. I'm using a library called ppmod
to<00:04:04.400><c> make</c><00:04:04.480><c> the</c><00:04:04.640><c> code</c><00:04:04.799><c> a</c><00:04:04.959><c> bit</c><00:04:05.120><c> cleaner.</c><00:04:05.599><c> And</c><00:04:05.760><c> this</c>

00:04:05.990 --> 00:04:06.000 align:start position:0%
to make the code a bit cleaner. And this
 

00:04:06.000 --> 00:04:07.589 align:start position:0%
to make the code a bit cleaner. And this
lets<00:04:06.239><c> us</c><00:04:06.400><c> directly</c><00:04:06.799><c> attach</c><00:04:07.120><c> a</c><00:04:07.360><c> script</c>

00:04:07.589 --> 00:04:07.599 align:start position:0%
lets us directly attach a script
 

00:04:07.599 --> 00:04:09.670 align:start position:0%
lets us directly attach a script
function<00:04:07.840><c> to</c><00:04:08.000><c> the</c><00:04:08.159><c> get</c><00:04:08.400><c> alias.</c><00:04:09.040><c> Inside</c><00:04:09.360><c> of</c><00:04:09.519><c> the</c>

00:04:09.670 --> 00:04:09.680 align:start position:0%
function to the get alias. Inside of the
 

00:04:09.680 --> 00:04:11.509 align:start position:0%
function to the get alias. Inside of the
script<00:04:10.000><c> function,</c><00:04:10.400><c> I'm</c><00:04:10.720><c> just</c><00:04:10.879><c> printing</c><00:04:11.280><c> a</c>

00:04:11.509 --> 00:04:11.519 align:start position:0%
script function, I'm just printing a
 

00:04:11.519 --> 00:04:14.550 align:start position:0%
script function, I'm just printing a
very<00:04:11.840><c> basic</c><00:04:12.239><c> HTTP</c><00:04:12.959><c> response</c><00:04:13.360><c> to</c><00:04:13.599><c> the</c><00:04:13.840><c> console.</c>

00:04:14.550 --> 00:04:14.560 align:start position:0%
very basic HTTP response to the console.
 

00:04:14.560 --> 00:04:17.030 align:start position:0%
very basic HTTP response to the console.
Again,<00:04:15.040><c> it's</c><00:04:15.360><c> all</c><00:04:15.519><c> just</c><00:04:15.840><c> plain</c><00:04:16.160><c> text.</c><00:04:16.639><c> So,</c><00:04:16.799><c> the</c>

00:04:17.030 --> 00:04:17.040 align:start position:0%
Again, it's all just plain text. So, the
 

00:04:17.040 --> 00:04:18.710 align:start position:0%
Again, it's all just plain text. So, the
browser<00:04:17.359><c> should</c><00:04:17.600><c> have</c><00:04:17.759><c> no</c><00:04:18.000><c> problem</c><00:04:18.400><c> treating</c>

00:04:18.710 --> 00:04:18.720 align:start position:0%
browser should have no problem treating
 

00:04:18.720 --> 00:04:21.270 align:start position:0%
browser should have no problem treating
this<00:04:18.880><c> as</c><00:04:19.040><c> a</c><00:04:19.199><c> valid</c><00:04:19.519><c> response.</c><00:04:20.479><c> However,</c><00:04:21.040><c> when</c>

00:04:21.270 --> 00:04:21.280 align:start position:0%
this as a valid response. However, when
 

00:04:21.280 --> 00:04:23.749 align:start position:0%
this as a valid response. However, when
I<00:04:21.519><c> actually</c><00:04:21.919><c> start</c><00:04:22.160><c> up</c><00:04:22.320><c> a</c><00:04:22.560><c> map</c><00:04:22.800><c> and</c><00:04:23.120><c> open</c><00:04:23.360><c> up</c><00:04:23.520><c> my</c>

00:04:23.749 --> 00:04:23.759 align:start position:0%
I actually start up a map and open up my
 

00:04:23.759 --> 00:04:26.230 align:start position:0%
I actually start up a map and open up my
browser,<00:04:24.320><c> it's</c><00:04:24.720><c> still</c><00:04:25.120><c> stuck</c><00:04:25.440><c> loading.</c><00:04:26.080><c> Even</c>

00:04:26.230 --> 00:04:26.240 align:start position:0%
browser, it's still stuck loading. Even
 

00:04:26.240 --> 00:04:28.070 align:start position:0%
browser, it's still stuck loading. Even
though<00:04:26.400><c> the</c><00:04:26.639><c> console</c><00:04:26.960><c> output</c><00:04:27.440><c> looks</c><00:04:27.680><c> to</c><00:04:27.919><c> be</c>

00:04:28.070 --> 00:04:28.080 align:start position:0%
though the console output looks to be
 

00:04:28.080 --> 00:04:29.830 align:start position:0%
though the console output looks to be
correct,<00:04:28.639><c> it's</c><00:04:28.880><c> not</c><00:04:29.040><c> until</c><00:04:29.280><c> we</c><00:04:29.520><c> check</c><00:04:29.680><c> the</c>

00:04:29.830 --> 00:04:29.840 align:start position:0%
correct, it's not until we check the
 

00:04:29.840 --> 00:04:32.070 align:start position:0%
correct, it's not until we check the
network<00:04:30.160><c> tab</c><00:04:30.479><c> and</c><00:04:30.800><c> cancel</c><00:04:31.120><c> the</c><00:04:31.360><c> request</c><00:04:31.840><c> that</c>

00:04:32.070 --> 00:04:32.080 align:start position:0%
network tab and cancel the request that
 

00:04:32.080 --> 00:04:34.150 align:start position:0%
network tab and cancel the request that
we<00:04:32.320><c> see</c><00:04:32.560><c> something</c><00:04:32.960><c> resembling</c><00:04:33.440><c> the</c><00:04:33.759><c> desired</c>

00:04:34.150 --> 00:04:34.160 align:start position:0%
we see something resembling the desired
 

00:04:34.160 --> 00:04:36.070 align:start position:0%
we see something resembling the desired
output<00:04:34.639><c> with</c><00:04:34.960><c> some</c><00:04:35.120><c> more</c><00:04:35.280><c> console</c><00:04:35.680><c> garbage</c>

00:04:36.070 --> 00:04:36.080 align:start position:0%
output with some more console garbage
 

00:04:36.080 --> 00:04:38.390 align:start position:0%
output with some more console garbage
below.<00:04:36.720><c> See,</c><00:04:37.199><c> normally</c><00:04:37.680><c> after</c><00:04:38.000><c> the</c><00:04:38.160><c> whole</c>

00:04:38.390 --> 00:04:38.400 align:start position:0%
below. See, normally after the whole
 

00:04:38.400 --> 00:04:40.310 align:start position:0%
below. See, normally after the whole
document<00:04:38.720><c> has</c><00:04:39.040><c> been</c><00:04:39.199><c> sent,</c><00:04:39.520><c> the</c><00:04:39.759><c> server</c><00:04:40.080><c> would</c>

00:04:40.310 --> 00:04:40.320 align:start position:0%
document has been sent, the server would
 

00:04:40.320 --> 00:04:41.830 align:start position:0%
document has been sent, the server would
terminate<00:04:40.720><c> the</c><00:04:40.960><c> connection</c><00:04:41.280><c> to</c><00:04:41.520><c> let</c><00:04:41.680><c> the</c>

00:04:41.830 --> 00:04:41.840 align:start position:0%
terminate the connection to let the
 

00:04:41.840 --> 00:04:43.430 align:start position:0%
terminate the connection to let the
browser<00:04:42.160><c> know</c><00:04:42.320><c> that</c><00:04:42.560><c> nothing</c><00:04:42.880><c> else</c><00:04:43.040><c> is</c><00:04:43.199><c> coming</c>

00:04:43.430 --> 00:04:43.440 align:start position:0%
browser know that nothing else is coming
 

00:04:43.440 --> 00:04:45.270 align:start position:0%
browser know that nothing else is coming
and<00:04:43.600><c> that</c><00:04:43.759><c> it's</c><00:04:44.000><c> safe</c><00:04:44.160><c> to</c><00:04:44.320><c> start</c><00:04:44.560><c> rendering.</c>

00:04:45.270 --> 00:04:45.280 align:start position:0%
and that it's safe to start rendering.
 

00:04:45.280 --> 00:04:47.270 align:start position:0%
and that it's safe to start rendering.
But<00:04:45.360><c> in</c><00:04:45.600><c> our</c><00:04:45.840><c> case,</c><00:04:46.160><c> the</c><00:04:46.400><c> console</c><00:04:46.800><c> socket</c>

00:04:47.270 --> 00:04:47.280 align:start position:0%
But in our case, the console socket
 

00:04:47.280 --> 00:04:49.670 align:start position:0%
But in our case, the console socket
never<00:04:47.680><c> closes.</c><00:04:48.320><c> The</c><00:04:48.560><c> browser</c><00:04:48.880><c> has</c><00:04:49.120><c> no</c><00:04:49.360><c> idea</c>

00:04:49.670 --> 00:04:49.680 align:start position:0%
never closes. The browser has no idea
 

00:04:49.680 --> 00:04:51.590 align:start position:0%
never closes. The browser has no idea
when<00:04:49.919><c> to</c><00:04:50.080><c> stop</c><00:04:50.320><c> listening</c><00:04:50.720><c> for</c><00:04:50.880><c> output.</c><00:04:51.440><c> It</c>

00:04:51.590 --> 00:04:51.600 align:start position:0%
when to stop listening for output. It
 

00:04:51.600 --> 00:04:53.510 align:start position:0%
when to stop listening for output. It
reads<00:04:51.840><c> our</c><00:04:52.000><c> example</c><00:04:52.400><c> page,</c><00:04:52.880><c> then</c><00:04:53.120><c> all</c><00:04:53.360><c> the</c>

00:04:53.510 --> 00:04:53.520 align:start position:0%
reads our example page, then all the
 

00:04:53.520 --> 00:04:55.430 align:start position:0%
reads our example page, then all the
garbage,<00:04:54.000><c> and</c><00:04:54.160><c> then</c><00:04:54.400><c> continues</c><00:04:54.880><c> waiting</c><00:04:55.199><c> for</c>

00:04:55.430 --> 00:04:55.440 align:start position:0%
garbage, and then continues waiting for
 

00:04:55.440 --> 00:04:58.310 align:start position:0%
garbage, and then continues waiting for
even<00:04:55.759><c> more</c><00:04:56.080><c> data.</c><00:04:56.880><c> Now,</c><00:04:57.280><c> we</c><00:04:57.520><c> could</c><00:04:57.840><c> terminate</c>

00:04:58.310 --> 00:04:58.320 align:start position:0%
even more data. Now, we could terminate
 

00:04:58.320 --> 00:05:00.550 align:start position:0%
even more data. Now, we could terminate
the<00:04:58.479><c> socket</c><00:04:58.880><c> by</c><00:04:59.120><c> shutting</c><00:04:59.520><c> down</c><00:04:59.759><c> the</c><00:05:00.080><c> game,</c>

00:05:00.550 --> 00:05:00.560 align:start position:0%
the socket by shutting down the game,
 

00:05:00.560 --> 00:05:02.710 align:start position:0%
the socket by shutting down the game,
but<00:05:00.960><c> surely</c><00:05:01.440><c> there's</c><00:05:01.680><c> a</c><00:05:01.840><c> less</c><00:05:02.160><c> destructive</c>

00:05:02.710 --> 00:05:02.720 align:start position:0%
but surely there's a less destructive
 

00:05:02.720 --> 00:05:05.350 align:start position:0%
but surely there's a less destructive
option.<00:05:03.600><c> Well,</c><00:05:03.919><c> it</c><00:05:04.160><c> turns</c><00:05:04.400><c> out</c><00:05:04.639><c> that</c><00:05:04.880><c> we</c><00:05:05.120><c> can</c>

00:05:05.350 --> 00:05:05.360 align:start position:0%
option. Well, it turns out that we can
 

00:05:05.360 --> 00:05:07.189 align:start position:0%
option. Well, it turns out that we can
make<00:05:05.520><c> the</c><00:05:05.840><c> browser</c><00:05:06.320><c> close</c><00:05:06.560><c> the</c><00:05:06.800><c> connection</c>

00:05:07.189 --> 00:05:07.199 align:start position:0%
make the browser close the connection
 

00:05:07.199 --> 00:05:09.189 align:start position:0%
make the browser close the connection
after<00:05:07.520><c> a</c><00:05:07.759><c> certain</c><00:05:08.000><c> amount</c><00:05:08.160><c> of</c><00:05:08.400><c> data</c><00:05:08.720><c> has</c><00:05:09.039><c> been</c>

00:05:09.189 --> 00:05:09.199 align:start position:0%
after a certain amount of data has been
 

00:05:09.199 --> 00:05:11.110 align:start position:0%
after a certain amount of data has been
received.<00:05:10.000><c> This</c><00:05:10.240><c> can</c><00:05:10.400><c> be</c><00:05:10.560><c> done</c><00:05:10.720><c> with</c><00:05:10.880><c> the</c>

00:05:11.110 --> 00:05:11.120 align:start position:0%
received. This can be done with the
 

00:05:11.120 --> 00:05:13.189 align:start position:0%
received. This can be done with the
content<00:05:11.600><c> length</c><00:05:11.919><c> header,</c><00:05:12.400><c> which</c><00:05:12.720><c> as</c><00:05:12.880><c> the</c><00:05:13.039><c> name</c>

00:05:13.189 --> 00:05:13.199 align:start position:0%
content length header, which as the name
 

00:05:13.199 --> 00:05:15.110 align:start position:0%
content length header, which as the name
implies<00:05:13.840><c> tells</c><00:05:14.080><c> the</c><00:05:14.240><c> browser</c><00:05:14.639><c> the</c><00:05:14.800><c> length</c><00:05:15.039><c> of</c>

00:05:15.110 --> 00:05:15.120 align:start position:0%
implies tells the browser the length of
 

00:05:15.120 --> 00:05:17.430 align:start position:0%
implies tells the browser the length of
the<00:05:15.280><c> document</c><00:05:15.680><c> in</c><00:05:15.919><c> bytes.</c><00:05:16.720><c> Most</c><00:05:17.039><c> modern</c>

00:05:17.430 --> 00:05:17.440 align:start position:0%
the document in bytes. Most modern
 

00:05:17.440 --> 00:05:19.590 align:start position:0%
the document in bytes. Most modern
browsers<00:05:17.919><c> will</c><00:05:18.240><c> respect</c><00:05:18.639><c> this</c><00:05:18.880><c> property</c><00:05:19.280><c> and</c>

00:05:19.590 --> 00:05:19.600 align:start position:0%
browsers will respect this property and
 

00:05:19.600 --> 00:05:21.189 align:start position:0%
browsers will respect this property and
stop<00:05:19.840><c> receiving</c><00:05:20.320><c> data</c><00:05:20.560><c> as</c><00:05:20.800><c> soon</c><00:05:20.960><c> as</c><00:05:21.039><c> the</c>

00:05:21.189 --> 00:05:21.199 align:start position:0%
stop receiving data as soon as the
 

00:05:21.199 --> 00:05:23.270 align:start position:0%
stop receiving data as soon as the
target<00:05:21.440><c> amount</c><00:05:21.759><c> has</c><00:05:22.000><c> been</c><00:05:22.160><c> reached.</c><00:05:22.720><c> So,</c><00:05:23.039><c> in</c>

00:05:23.270 --> 00:05:23.280 align:start position:0%
target amount has been reached. So, in
 

00:05:23.280 --> 00:05:25.029 align:start position:0%
target amount has been reached. So, in
our<00:05:23.440><c> case,</c><00:05:23.759><c> as</c><00:05:23.919><c> long</c><00:05:24.080><c> as</c><00:05:24.160><c> we</c><00:05:24.400><c> just</c><00:05:24.560><c> count</c><00:05:24.800><c> the</c>

00:05:25.029 --> 00:05:25.039 align:start position:0%
our case, as long as we just count the
 

00:05:25.039 --> 00:05:26.629 align:start position:0%
our case, as long as we just count the
amount<00:05:25.199><c> of</c><00:05:25.280><c> bytes</c><00:05:25.680><c> we're</c><00:05:25.919><c> sending,</c><00:05:26.400><c> the</c>

00:05:26.629 --> 00:05:26.639 align:start position:0%
amount of bytes we're sending, the
 

00:05:26.639 --> 00:05:29.350 align:start position:0%
amount of bytes we're sending, the
browser<00:05:27.039><c> can</c><00:05:27.280><c> take</c><00:05:27.520><c> care</c><00:05:27.759><c> of</c><00:05:27.919><c> the</c><00:05:28.160><c> rest.</c><00:05:28.960><c> Okay,</c>

00:05:29.350 --> 00:05:29.360 align:start position:0%
browser can take care of the rest. Okay,
 

00:05:29.360 --> 00:05:31.430 align:start position:0%
browser can take care of the rest. Okay,
so<00:05:29.680><c> that's</c><00:05:29.919><c> a</c><00:05:30.080><c> start.</c><00:05:30.560><c> But</c><00:05:30.800><c> what</c><00:05:31.039><c> is</c><00:05:31.199><c> this</c>

00:05:31.430 --> 00:05:31.440 align:start position:0%
so that's a start. But what is this
 

00:05:31.440 --> 00:05:34.070 align:start position:0%
so that's a start. But what is this
really<00:05:31.759><c> good</c><00:05:32.000><c> for?</c><00:05:32.720><c> Well,</c><00:05:33.120><c> remember</c><00:05:33.759><c> this</c><00:05:34.000><c> is</c>

00:05:34.070 --> 00:05:34.080 align:start position:0%
really good for? Well, remember this is
 

00:05:34.080 --> 00:05:36.870 align:start position:0%
really good for? Well, remember this is
the<00:05:34.320><c> Portal</c><00:05:34.720><c> 2</c><00:05:35.039><c> engine</c><00:05:35.440><c> itself</c><00:05:36.320><c> sending</c><00:05:36.639><c> the</c>

00:05:36.870 --> 00:05:36.880 align:start position:0%
the Portal 2 engine itself sending the
 

00:05:36.880 --> 00:05:39.510 align:start position:0%
the Portal 2 engine itself sending the
HTTP<00:05:37.759><c> data.</c><00:05:38.320><c> It's</c><00:05:38.639><c> actually</c><00:05:38.880><c> pretty</c><00:05:39.199><c> trivial</c>

00:05:39.510 --> 00:05:39.520 align:start position:0%
HTTP data. It's actually pretty trivial
 

00:05:39.520 --> 00:05:41.590 align:start position:0%
HTTP data. It's actually pretty trivial
to<00:05:39.680><c> make</c><00:05:39.840><c> it</c><00:05:40.080><c> read</c><00:05:40.320><c> data</c><00:05:40.639><c> from</c><00:05:40.800><c> the</c><00:05:41.039><c> game</c><00:05:41.280><c> and</c>

00:05:41.590 --> 00:05:41.600 align:start position:0%
to make it read data from the game and
 

00:05:41.600 --> 00:05:43.670 align:start position:0%
to make it read data from the game and
send<00:05:41.919><c> that</c><00:05:42.320><c> instead</c><00:05:42.720><c> of</c><00:05:42.800><c> just</c><00:05:43.039><c> some</c><00:05:43.280><c> static</c>

00:05:43.670 --> 00:05:43.680 align:start position:0%
send that instead of just some static
 

00:05:43.680 --> 00:05:46.150 align:start position:0%
send that instead of just some static
text.<00:05:44.479><c> For</c><00:05:44.720><c> an</c><00:05:44.800><c> example,</c><00:05:45.280><c> let's</c><00:05:45.520><c> try</c><00:05:45.840><c> sending</c>

00:05:46.150 --> 00:05:46.160 align:start position:0%
text. For an example, let's try sending
 

00:05:46.160 --> 00:05:48.150 align:start position:0%
text. For an example, let's try sending
the<00:05:46.320><c> name</c><00:05:46.560><c> of</c><00:05:46.720><c> the</c><00:05:46.880><c> current</c><00:05:47.199><c> map</c><00:05:47.520><c> file.</c><00:05:48.000><c> For</c>

00:05:48.150 --> 00:05:48.160 align:start position:0%
the name of the current map file. For
 

00:05:48.160 --> 00:05:49.749 align:start position:0%
the name of the current map file. For
that,<00:05:48.479><c> we</c><00:05:48.720><c> first</c><00:05:48.880><c> have</c><00:05:49.039><c> to</c><00:05:49.199><c> calculate</c><00:05:49.600><c> the</c>

00:05:49.749 --> 00:05:49.759 align:start position:0%
that, we first have to calculate the
 

00:05:49.759 --> 00:05:51.670 align:start position:0%
that, we first have to calculate the
content<00:05:50.080><c> length</c><00:05:50.400><c> of</c><00:05:50.560><c> the</c><00:05:50.720><c> potential</c><00:05:51.120><c> output</c>

00:05:51.670 --> 00:05:51.680 align:start position:0%
content length of the potential output
 

00:05:51.680 --> 00:05:53.670 align:start position:0%
content length of the potential output
and<00:05:51.919><c> then</c><00:05:52.080><c> send</c><00:05:52.320><c> the</c><00:05:52.560><c> map</c><00:05:52.800><c> name</c><00:05:53.039><c> as</c><00:05:53.360><c> part</c><00:05:53.520><c> of</c>

00:05:53.670 --> 00:05:53.680 align:start position:0%
and then send the map name as part of
 

00:05:53.680 --> 00:05:56.150 align:start position:0%
and then send the map name as part of
the<00:05:53.840><c> output</c><00:05:54.320><c> string.</c><00:05:54.960><c> Now,</c><00:05:55.199><c> if</c><00:05:55.360><c> I</c><00:05:55.600><c> restart</c><00:05:55.919><c> the</c>

00:05:56.150 --> 00:05:56.160 align:start position:0%
the output string. Now, if I restart the
 

00:05:56.160 --> 00:05:58.310 align:start position:0%
the output string. Now, if I restart the
map<00:05:56.320><c> and</c><00:05:56.560><c> refresh</c><00:05:56.880><c> the</c><00:05:57.120><c> web</c><00:05:57.280><c> page,</c><00:05:57.680><c> it'll</c><00:05:58.080><c> pull</c>

00:05:58.310 --> 00:05:58.320 align:start position:0%
map and refresh the web page, it'll pull
 

00:05:58.320 --> 00:06:00.950 align:start position:0%
map and refresh the web page, it'll pull
the<00:05:58.479><c> map</c><00:05:58.720><c> name</c><00:05:59.199><c> directly</c><00:05:59.759><c> from</c><00:06:00.080><c> the</c><00:06:00.400><c> engine.</c>

00:06:00.950 --> 00:06:00.960 align:start position:0%
the map name directly from the engine.
 

00:06:00.960 --> 00:06:02.710 align:start position:0%
the map name directly from the engine.
You<00:06:01.199><c> could</c><00:06:01.280><c> even</c><00:06:01.520><c> track</c><00:06:01.840><c> objects</c><00:06:02.240><c> in</c><00:06:02.400><c> the</c><00:06:02.560><c> game</c>

00:06:02.710 --> 00:06:02.720 align:start position:0%
You could even track objects in the game
 

00:06:02.720 --> 00:06:04.469 align:start position:0%
You could even track objects in the game
world<00:06:02.960><c> like</c><00:06:03.199><c> this.</c><00:06:03.680><c> Suppose</c><00:06:04.000><c> we</c><00:06:04.160><c> want</c><00:06:04.240><c> the</c>

00:06:04.469 --> 00:06:04.479 align:start position:0%
world like this. Suppose we want the
 

00:06:04.479 --> 00:06:06.230 align:start position:0%
world like this. Suppose we want the
website<00:06:04.800><c> to</c><00:06:04.960><c> tell</c><00:06:05.039><c> you</c><00:06:05.199><c> whether</c><00:06:05.440><c> a</c><00:06:05.600><c> cube</c><00:06:05.919><c> is</c><00:06:06.080><c> on</c>

00:06:06.230 --> 00:06:06.240 align:start position:0%
website to tell you whether a cube is on
 

00:06:06.240 --> 00:06:08.309 align:start position:0%
website to tell you whether a cube is on
the<00:06:06.400><c> left</c><00:06:06.560><c> or</c><00:06:06.880><c> right</c><00:06:07.120><c> side</c><00:06:07.360><c> of</c><00:06:07.520><c> a</c><00:06:07.680><c> room.</c><00:06:08.080><c> We</c><00:06:08.240><c> can</c>

00:06:08.309 --> 00:06:08.319 align:start position:0%
the left or right side of a room. We can
 

00:06:08.319 --> 00:06:10.230 align:start position:0%
the left or right side of a room. We can
get<00:06:08.479><c> that</c><00:06:08.639><c> cube's</c><00:06:09.039><c> x</c><00:06:09.280><c> coordinate,</c><00:06:09.840><c> compare</c><00:06:10.080><c> it</c>

00:06:10.230 --> 00:06:10.240 align:start position:0%
get that cube's x coordinate, compare it
 

00:06:10.240 --> 00:06:11.990 align:start position:0%
get that cube's x coordinate, compare it
to<00:06:10.319><c> a</c><00:06:10.479><c> known</c><00:06:10.800><c> value,</c><00:06:11.199><c> and</c><00:06:11.440><c> print</c><00:06:11.680><c> the</c>

00:06:11.990 --> 00:06:12.000 align:start position:0%
to a known value, and print the
 

00:06:12.000 --> 00:06:14.309 align:start position:0%
to a known value, and print the
respective<00:06:12.479><c> text.</c><00:06:13.199><c> And</c><00:06:13.440><c> again,</c><00:06:13.919><c> loading</c><00:06:14.160><c> up</c>

00:06:14.309 --> 00:06:14.319 align:start position:0%
respective text. And again, loading up
 

00:06:14.319 --> 00:06:15.830 align:start position:0%
respective text. And again, loading up
the<00:06:14.479><c> page</c><00:06:14.639><c> for</c><00:06:14.880><c> the</c><00:06:14.960><c> first</c><00:06:15.199><c> time,</c><00:06:15.520><c> it'll</c>

00:06:15.830 --> 00:06:15.840 align:start position:0%
the page for the first time, it'll
 

00:06:15.840 --> 00:06:17.830 align:start position:0%
the page for the first time, it'll
correctly<00:06:16.400><c> report</c><00:06:16.720><c> the</c><00:06:16.880><c> cube</c><00:06:17.199><c> as</c><00:06:17.440><c> being</c><00:06:17.600><c> on</c>

00:06:17.830 --> 00:06:17.840 align:start position:0%
correctly report the cube as being on
 

00:06:17.840 --> 00:06:19.670 align:start position:0%
correctly report the cube as being on
the<00:06:18.000><c> right.</c><00:06:18.400><c> But</c><00:06:18.560><c> if</c><00:06:18.720><c> I</c><00:06:18.880><c> go</c><00:06:18.960><c> ahead</c><00:06:19.120><c> and</c><00:06:19.280><c> move</c><00:06:19.440><c> it</c>

00:06:19.670 --> 00:06:19.680 align:start position:0%
the right. But if I go ahead and move it
 

00:06:19.680 --> 00:06:21.110 align:start position:0%
the right. But if I go ahead and move it
to<00:06:19.840><c> the</c><00:06:20.000><c> other</c><00:06:20.160><c> side</c><00:06:20.319><c> of</c><00:06:20.400><c> the</c><00:06:20.560><c> room,</c><00:06:20.880><c> then</c>

00:06:21.110 --> 00:06:21.120 align:start position:0%
to the other side of the room, then
 

00:06:21.120 --> 00:06:23.029 align:start position:0%
to the other side of the room, then
refresh<00:06:21.440><c> the</c><00:06:21.600><c> page</c><00:06:21.840><c> again,</c><00:06:22.319><c> the</c><00:06:22.560><c> text</c><00:06:22.800><c> will</c>

00:06:23.029 --> 00:06:23.039 align:start position:0%
refresh the page again, the text will
 

00:06:23.039 --> 00:06:24.950 align:start position:0%
refresh the page again, the text will
have<00:06:23.199><c> changed.</c><00:06:24.000><c> Hopefully,</c><00:06:24.479><c> you're</c><00:06:24.720><c> starting</c>

00:06:24.950 --> 00:06:24.960 align:start position:0%
have changed. Hopefully, you're starting
 

00:06:24.960 --> 00:06:26.870 align:start position:0%
have changed. Hopefully, you're starting
to<00:06:25.120><c> get</c><00:06:25.280><c> the</c><00:06:25.520><c> idea.</c><00:06:26.080><c> But</c><00:06:26.240><c> there</c><00:06:26.479><c> are</c><00:06:26.639><c> some</c>

00:06:26.870 --> 00:06:26.880 align:start position:0%
to get the idea. But there are some
 

00:06:26.880 --> 00:06:29.189 align:start position:0%
to get the idea. But there are some
obvious<00:06:27.280><c> limitations</c><00:06:27.840><c> to</c><00:06:28.080><c> this.</c><00:06:28.560><c> For</c><00:06:28.800><c> one,</c>

00:06:29.189 --> 00:06:29.199 align:start position:0%
obvious limitations to this. For one,
 

00:06:29.199 --> 00:06:31.189 align:start position:0%
obvious limitations to this. For one,
the<00:06:29.440><c> calculation</c><00:06:30.000><c> for</c><00:06:30.160><c> the</c><00:06:30.400><c> content</c><00:06:30.800><c> length</c>

00:06:31.189 --> 00:06:31.199 align:start position:0%
the calculation for the content length
 

00:06:31.199 --> 00:06:32.550 align:start position:0%
the calculation for the content length
is<00:06:31.440><c> starting</c><00:06:31.680><c> to</c><00:06:31.840><c> become</c><00:06:32.240><c> pretty</c>

00:06:32.550 --> 00:06:32.560 align:start position:0%
is starting to become pretty
 

00:06:32.560 --> 00:06:34.390 align:start position:0%
is starting to become pretty
complicated.<00:06:33.440><c> Since</c><00:06:33.680><c> it</c><00:06:33.919><c> would</c><00:06:34.000><c> be</c><00:06:34.160><c> very</c>

00:06:34.390 --> 00:06:34.400 align:start position:0%
complicated. Since it would be very
 

00:06:34.400 --> 00:06:36.390 align:start position:0%
complicated. Since it would be very
impractical<00:06:35.039><c> to</c><00:06:35.280><c> manually</c><00:06:35.759><c> calculate</c><00:06:36.160><c> the</c>

00:06:36.390 --> 00:06:36.400 align:start position:0%
impractical to manually calculate the
 

00:06:36.400 --> 00:06:38.550 align:start position:0%
impractical to manually calculate the
value<00:06:36.720><c> for</c><00:06:36.960><c> every</c><00:06:37.280><c> change</c><00:06:37.600><c> we</c><00:06:37.840><c> make,</c><00:06:38.240><c> we</c><00:06:38.400><c> can</c>

00:06:38.550 --> 00:06:38.560 align:start position:0%
value for every change we make, we can
 

00:06:38.560 --> 00:06:40.950 align:start position:0%
value for every change we make, we can
instead<00:06:39.120><c> just</c><00:06:39.440><c> hold</c><00:06:39.680><c> the</c><00:06:39.919><c> page</c><00:06:40.240><c> content</c><00:06:40.639><c> in</c>

00:06:40.950 --> 00:06:40.960 align:start position:0%
instead just hold the page content in
 

00:06:40.960 --> 00:06:43.029 align:start position:0%
instead just hold the page content in
one<00:06:41.199><c> pre-built</c><00:06:41.759><c> string</c><00:06:42.160><c> and</c><00:06:42.400><c> then</c><00:06:42.639><c> use</c><00:06:42.880><c> the</c>

00:06:43.029 --> 00:06:43.039 align:start position:0%
one pre-built string and then use the
 

00:06:43.039 --> 00:06:44.790 align:start position:0%
one pre-built string and then use the
length<00:06:43.360><c> of</c><00:06:43.520><c> that</c><00:06:43.680><c> string</c><00:06:44.000><c> as</c><00:06:44.240><c> the</c><00:06:44.479><c> total</c>

00:06:44.790 --> 00:06:44.800 align:start position:0%
length of that string as the total
 

00:06:44.800 --> 00:06:47.029 align:start position:0%
length of that string as the total
content<00:06:45.199><c> length.</c><00:06:45.919><c> That</c><00:06:46.240><c> works</c><00:06:46.479><c> pretty</c><00:06:46.800><c> well</c>

00:06:47.029 --> 00:06:47.039 align:start position:0%
content length. That works pretty well
 

00:06:47.039 --> 00:06:49.350 align:start position:0%
content length. That works pretty well
and<00:06:47.360><c> allows</c><00:06:47.600><c> us</c><00:06:47.759><c> to</c><00:06:47.919><c> print</c><00:06:48.240><c> even</c><00:06:48.560><c> more</c><00:06:48.800><c> dynamic</c>

00:06:49.350 --> 00:06:49.360 align:start position:0%
and allows us to print even more dynamic
 

00:06:49.360 --> 00:06:51.350 align:start position:0%
and allows us to print even more dynamic
values,<00:06:49.919><c> like</c><00:06:50.240><c> the</c><00:06:50.479><c> cube's</c><00:06:50.960><c> actual</c>

00:06:51.350 --> 00:06:51.360 align:start position:0%
values, like the cube's actual
 

00:06:51.360 --> 00:06:54.469 align:start position:0%
values, like the cube's actual
coordinates<00:06:51.840><c> in</c><00:06:52.080><c> 3D</c><00:06:52.560><c> space.</c><00:06:53.360><c> But</c><00:06:53.759><c> this</c><00:06:54.160><c> now</c>

00:06:54.469 --> 00:06:54.479 align:start position:0%
coordinates in 3D space. But this now
 

00:06:54.479 --> 00:06:57.189 align:start position:0%
coordinates in 3D space. But this now
exposes<00:06:55.199><c> another</c><00:06:55.680><c> limitation.</c><00:06:56.560><c> you</c><00:06:56.800><c> have</c><00:06:56.960><c> to</c>

00:06:57.189 --> 00:06:57.199 align:start position:0%
exposes another limitation. you have to
 

00:06:57.199 --> 00:06:59.029 align:start position:0%
exposes another limitation. you have to
refresh<00:06:57.600><c> the</c><00:06:57.840><c> page</c><00:06:58.080><c> to</c><00:06:58.319><c> actually</c><00:06:58.639><c> see</c><00:06:58.800><c> the</c>

00:06:59.029 --> 00:06:59.039 align:start position:0%
refresh the page to actually see the
 

00:06:59.039 --> 00:07:01.749 align:start position:0%
refresh the page to actually see the
content<00:06:59.479><c> update.</c><00:07:00.479><c> This</c><00:07:00.720><c> is</c><00:07:00.880><c> where</c><00:07:01.120><c> JavaScript</c>

00:07:01.749 --> 00:07:01.759 align:start position:0%
content update. This is where JavaScript
 

00:07:01.759 --> 00:07:03.350 align:start position:0%
content update. This is where JavaScript
comes<00:07:02.000><c> into</c><00:07:02.240><c> play.</c><00:07:02.560><c> It's</c><00:07:02.720><c> a</c><00:07:02.960><c> programming</c>

00:07:03.350 --> 00:07:03.360 align:start position:0%
comes into play. It's a programming
 

00:07:03.360 --> 00:07:05.189 align:start position:0%
comes into play. It's a programming
language<00:07:03.759><c> used</c><00:07:04.000><c> for</c><00:07:04.160><c> making</c><00:07:04.479><c> websites</c><00:07:04.960><c> more</c>

00:07:05.189 --> 00:07:05.199 align:start position:0%
language used for making websites more
 

00:07:05.199 --> 00:07:07.189 align:start position:0%
language used for making websites more
dynamic.<00:07:06.080><c> We</c><00:07:06.400><c> could</c><00:07:06.639><c> use</c><00:07:06.800><c> it</c><00:07:07.039><c> to</c>

00:07:07.189 --> 00:07:07.199 align:start position:0%
dynamic. We could use it to
 

00:07:07.199 --> 00:07:09.029 align:start position:0%
dynamic. We could use it to
automatically<00:07:07.840><c> refresh</c><00:07:08.160><c> the</c><00:07:08.400><c> page,</c><00:07:08.800><c> but</c>

00:07:09.029 --> 00:07:09.039 align:start position:0%
automatically refresh the page, but
 

00:07:09.039 --> 00:07:11.110 align:start position:0%
automatically refresh the page, but
that's<00:07:09.360><c> not</c><00:07:09.520><c> a</c><00:07:09.759><c> very</c><00:07:09.919><c> clean</c><00:07:10.319><c> solution.</c>

00:07:11.110 --> 00:07:11.120 align:start position:0%
that's not a very clean solution.
 

00:07:11.120 --> 00:07:13.270 align:start position:0%
that's not a very clean solution.
Instead,<00:07:11.599><c> for</c><00:07:11.919><c> dynamically</c><00:07:12.479><c> updating</c><00:07:12.880><c> page</c>

00:07:13.270 --> 00:07:13.280 align:start position:0%
Instead, for dynamically updating page
 

00:07:13.280 --> 00:07:15.830 align:start position:0%
Instead, for dynamically updating page
content,<00:07:13.759><c> websites</c><00:07:14.400><c> usually</c><00:07:14.800><c> fetch</c><00:07:15.120><c> an</c><00:07:15.360><c> API</c>

00:07:15.830 --> 00:07:15.840 align:start position:0%
content, websites usually fetch an API
 

00:07:15.840 --> 00:07:17.749 align:start position:0%
content, websites usually fetch an API
endpoint.<00:07:16.560><c> You</c><00:07:16.720><c> can</c><00:07:16.880><c> think</c><00:07:16.960><c> of</c><00:07:17.120><c> this</c><00:07:17.280><c> as</c><00:07:17.520><c> just</c>

00:07:17.749 --> 00:07:17.759 align:start position:0%
endpoint. You can think of this as just
 

00:07:17.759 --> 00:07:19.510 align:start position:0%
endpoint. You can think of this as just
a<00:07:18.000><c> special</c><00:07:18.240><c> address</c><00:07:18.560><c> on</c><00:07:18.800><c> the</c><00:07:18.960><c> server</c><00:07:19.199><c> that</c>

00:07:19.510 --> 00:07:19.520 align:start position:0%
a special address on the server that
 

00:07:19.520 --> 00:07:21.110 align:start position:0%
a special address on the server that
returns<00:07:19.840><c> some</c><00:07:20.080><c> consistently</c><00:07:20.560><c> formatted</c>

00:07:21.110 --> 00:07:21.120 align:start position:0%
returns some consistently formatted
 

00:07:21.120 --> 00:07:23.909 align:start position:0%
returns some consistently formatted
data.<00:07:21.840><c> But</c><00:07:22.000><c> in</c><00:07:22.240><c> our</c><00:07:22.560><c> case,</c><00:07:22.880><c> we</c><00:07:23.120><c> can't</c><00:07:23.440><c> actually</c>

00:07:23.909 --> 00:07:23.919 align:start position:0%
data. But in our case, we can't actually
 

00:07:23.919 --> 00:07:26.390 align:start position:0%
data. But in our case, we can't actually
read<00:07:24.240><c> the</c><00:07:24.479><c> address.</c><00:07:25.039><c> The</c><00:07:25.199><c> Portal</c><00:07:25.599><c> 2</c><00:07:25.840><c> console</c>

00:07:26.390 --> 00:07:26.400 align:start position:0%
read the address. The Portal 2 console
 

00:07:26.400 --> 00:07:28.710 align:start position:0%
read the address. The Portal 2 console
only<00:07:26.720><c> interprets</c><00:07:27.280><c> the</c><00:07:27.520><c> first</c><00:07:27.840><c> word</c><00:07:28.160><c> of</c><00:07:28.319><c> a</c><00:07:28.479><c> line</c>

00:07:28.710 --> 00:07:28.720 align:start position:0%
only interprets the first word of a line
 

00:07:28.720 --> 00:07:31.189 align:start position:0%
only interprets the first word of a line
as<00:07:28.960><c> the</c><00:07:29.120><c> alias</c><00:07:29.599><c> and</c><00:07:29.919><c> discards</c><00:07:30.400><c> the</c><00:07:30.639><c> rest.</c>

00:07:31.189 --> 00:07:31.199 align:start position:0%
as the alias and discards the rest.
 

00:07:31.199 --> 00:07:33.029 align:start position:0%
as the alias and discards the rest.
There<00:07:31.440><c> just</c><00:07:31.680><c> is</c><00:07:31.919><c> no</c><00:07:32.240><c> way</c><00:07:32.400><c> to</c><00:07:32.560><c> tell</c><00:07:32.800><c> what</c>

00:07:33.029 --> 00:07:33.039 align:start position:0%
There just is no way to tell what
 

00:07:33.039 --> 00:07:35.350 align:start position:0%
There just is no way to tell what
address<00:07:33.440><c> is</c><00:07:33.599><c> being</c><00:07:33.840><c> fetched.</c><00:07:34.560><c> But</c><00:07:34.720><c> we</c><00:07:35.039><c> can</c>

00:07:35.350 --> 00:07:35.360 align:start position:0%
address is being fetched. But we can
 

00:07:35.360 --> 00:07:37.430 align:start position:0%
address is being fetched. But we can
distinguish<00:07:36.000><c> between</c><00:07:36.479><c> different</c><00:07:36.880><c> request</c>

00:07:37.430 --> 00:07:37.440 align:start position:0%
distinguish between different request
 

00:07:37.440 --> 00:07:40.550 align:start position:0%
distinguish between different request
types.<00:07:38.400><c> Get</c><00:07:38.880><c> is</c><00:07:39.120><c> just</c><00:07:39.360><c> one</c><00:07:39.599><c> of</c><00:07:39.759><c> a</c><00:07:40.000><c> few.</c><00:07:40.400><c> It's</c>

00:07:40.550 --> 00:07:40.560 align:start position:0%
types. Get is just one of a few. It's
 

00:07:40.560 --> 00:07:42.309 align:start position:0%
types. Get is just one of a few. It's
the<00:07:40.800><c> default</c><00:07:41.120><c> request</c><00:07:41.440><c> type</c><00:07:41.759><c> used</c><00:07:42.000><c> by</c><00:07:42.160><c> a</c>

00:07:42.309 --> 00:07:42.319 align:start position:0%
the default request type used by a
 

00:07:42.319 --> 00:07:44.469 align:start position:0%
the default request type used by a
browser<00:07:42.720><c> trying</c><00:07:43.039><c> to</c><00:07:43.280><c> get</c><00:07:43.680><c> the</c><00:07:43.919><c> contents</c><00:07:44.240><c> of</c>

00:07:44.469 --> 00:07:44.479 align:start position:0%
browser trying to get the contents of
 

00:07:44.479 --> 00:07:46.790 align:start position:0%
browser trying to get the contents of
some<00:07:44.720><c> document.</c><00:07:45.520><c> But</c><00:07:45.680><c> if</c><00:07:45.840><c> we</c><00:07:46.000><c> fetch</c><00:07:46.319><c> using</c><00:07:46.560><c> a</c>

00:07:46.790 --> 00:07:46.800 align:start position:0%
some document. But if we fetch using a
 

00:07:46.800 --> 00:07:48.790 align:start position:0%
some document. But if we fetch using a
different<00:07:46.960><c> request</c><00:07:47.360><c> type</c><00:07:47.599><c> with</c><00:07:47.840><c> JavaScript,</c>

00:07:48.790 --> 00:07:48.800 align:start position:0%
different request type with JavaScript,
 

00:07:48.800 --> 00:07:51.670 align:start position:0%
different request type with JavaScript,
that<00:07:49.120><c> can</c><00:07:49.360><c> now</c><00:07:49.599><c> have</c><00:07:49.759><c> its</c><00:07:50.080><c> own</c><00:07:50.319><c> unique</c><00:07:50.800><c> alias.</c>

00:07:51.670 --> 00:07:51.680 align:start position:0%
that can now have its own unique alias.
 

00:07:51.680 --> 00:07:53.749 align:start position:0%
that can now have its own unique alias.
This<00:07:51.919><c> approach</c><00:07:52.400><c> is</c><00:07:52.639><c> a</c><00:07:52.800><c> bit</c><00:07:52.960><c> cursed,</c><00:07:53.360><c> but</c><00:07:53.599><c> it</c>

00:07:53.749 --> 00:07:53.759 align:start position:0%
This approach is a bit cursed, but it
 

00:07:53.759 --> 00:07:55.430 align:start position:0%
This approach is a bit cursed, but it
allows<00:07:54.000><c> us</c><00:07:54.160><c> to</c><00:07:54.319><c> effectively</c><00:07:54.879><c> implement</c>

00:07:55.430 --> 00:07:55.440 align:start position:0%
allows us to effectively implement
 

00:07:55.440 --> 00:07:57.749 align:start position:0%
allows us to effectively implement
different<00:07:55.840><c> routes</c><00:07:56.240><c> for</c><00:07:56.560><c> data.</c><00:07:57.199><c> In</c><00:07:57.360><c> this</c><00:07:57.520><c> case,</c>

00:07:57.749 --> 00:07:57.759 align:start position:0%
different routes for data. In this case,
 

00:07:57.759 --> 00:07:59.909 align:start position:0%
different routes for data. In this case,
I'm<00:07:58.000><c> just</c><00:07:58.160><c> hijacking</c><00:07:58.720><c> the</c><00:07:58.879><c> post</c><00:07:59.280><c> request</c><00:07:59.680><c> type</c>

00:07:59.909 --> 00:07:59.919 align:start position:0%
I'm just hijacking the post request type
 

00:07:59.919 --> 00:08:01.909 align:start position:0%
I'm just hijacking the post request type
to<00:08:00.160><c> send</c><00:08:00.319><c> some</c><00:08:00.560><c> JSON</c><00:08:00.960><c> data</c><00:08:01.280><c> containing</c><00:08:01.759><c> the</c>

00:08:01.909 --> 00:08:01.919 align:start position:0%
to send some JSON data containing the
 

00:08:01.919 --> 00:08:04.550 align:start position:0%
to send some JSON data containing the
position<00:08:02.240><c> of</c><00:08:02.400><c> the</c><00:08:02.560><c> cube</c><00:08:02.879><c> as</c><00:08:03.120><c> a</c><00:08:03.360><c> string.</c><00:08:04.160><c> Then</c><00:08:04.400><c> I</c>

00:08:04.550 --> 00:08:04.560 align:start position:0%
position of the cube as a string. Then I
 

00:08:04.560 --> 00:08:06.150 align:start position:0%
position of the cube as a string. Then I
can<00:08:04.720><c> write</c><00:08:04.879><c> some</c><00:08:05.039><c> JavaScript</c><00:08:05.520><c> that</c><00:08:05.759><c> fetches</c>

00:08:06.150 --> 00:08:06.160 align:start position:0%
can write some JavaScript that fetches
 

00:08:06.160 --> 00:08:08.150 align:start position:0%
can write some JavaScript that fetches
this<00:08:06.319><c> endpoint</c><00:08:06.800><c> every</c><00:08:07.199><c> second</c><00:08:07.520><c> and</c><00:08:07.759><c> updates</c>

00:08:08.150 --> 00:08:08.160 align:start position:0%
this endpoint every second and updates
 

00:08:08.160 --> 00:08:10.550 align:start position:0%
this endpoint every second and updates
the<00:08:08.400><c> text</c><00:08:08.560><c> on</c><00:08:08.800><c> the</c><00:08:08.960><c> page.</c><00:08:09.680><c> But</c><00:08:09.919><c> now</c><00:08:10.160><c> if</c><00:08:10.319><c> we</c><00:08:10.479><c> go</c>

00:08:10.550 --> 00:08:10.560 align:start position:0%
the text on the page. But now if we go
 

00:08:10.560 --> 00:08:12.869 align:start position:0%
the text on the page. But now if we go
to<00:08:10.720><c> run</c><00:08:10.879><c> it,</c><00:08:11.120><c> the</c><00:08:11.360><c> text</c><00:08:11.680><c> seems</c><00:08:12.000><c> to</c><00:08:12.160><c> disappear</c>

00:08:12.869 --> 00:08:12.879 align:start position:0%
to run it, the text seems to disappear
 

00:08:12.879 --> 00:08:14.710 align:start position:0%
to run it, the text seems to disappear
entirely.<00:08:13.759><c> Checking</c><00:08:14.080><c> the</c><00:08:14.240><c> source</c><00:08:14.479><c> of</c><00:08:14.560><c> the</c>

00:08:14.710 --> 00:08:14.720 align:start position:0%
entirely. Checking the source of the
 

00:08:14.720 --> 00:08:16.710 align:start position:0%
entirely. Checking the source of the
page,<00:08:15.039><c> we</c><00:08:15.280><c> find</c><00:08:15.440><c> that</c><00:08:15.599><c> the</c><00:08:15.840><c> closing</c><00:08:16.319><c> script</c>

00:08:16.710 --> 00:08:16.720 align:start position:0%
page, we find that the closing script
 

00:08:16.720 --> 00:08:19.110 align:start position:0%
page, we find that the closing script
tag<00:08:17.120><c> is</c><00:08:17.440><c> cut</c><00:08:17.759><c> short</c><00:08:18.240><c> and</c><00:08:18.479><c> the</c><00:08:18.639><c> browser</c>

00:08:19.110 --> 00:08:19.120 align:start position:0%
tag is cut short and the browser
 

00:08:19.120 --> 00:08:21.029 align:start position:0%
tag is cut short and the browser
automatically<00:08:19.759><c> generates</c><00:08:20.240><c> one</c><00:08:20.479><c> on</c><00:08:20.800><c> top</c><00:08:20.960><c> of</c>

00:08:21.029 --> 00:08:21.039 align:start position:0%
automatically generates one on top of
 

00:08:21.039 --> 00:08:23.110 align:start position:0%
automatically generates one on top of
it.<00:08:21.520><c> Evidently,</c><00:08:22.080><c> our</c><00:08:22.319><c> content</c><00:08:22.639><c> length</c><00:08:22.879><c> is</c>

00:08:23.110 --> 00:08:23.120 align:start position:0%
it. Evidently, our content length is
 

00:08:23.120 --> 00:08:25.189 align:start position:0%
it. Evidently, our content length is
being<00:08:23.280><c> calculated</c><00:08:23.759><c> incorrectly.</c><00:08:24.560><c> And</c><00:08:24.879><c> I</c>

00:08:25.189 --> 00:08:25.199 align:start position:0%
being calculated incorrectly. And I
 

00:08:25.199 --> 00:08:26.629 align:start position:0%
being calculated incorrectly. And I
think<00:08:25.360><c> this</c><00:08:25.680><c> happens</c><00:08:26.000><c> because</c><00:08:26.240><c> of</c><00:08:26.400><c> the</c>

00:08:26.629 --> 00:08:26.639 align:start position:0%
think this happens because of the
 

00:08:26.639 --> 00:08:29.029 align:start position:0%
think this happens because of the
different<00:08:26.960><c> types</c><00:08:27.199><c> of</c><00:08:27.520><c> new</c><00:08:27.759><c> line</c><00:08:28.080><c> characters.</c>

00:08:29.029 --> 00:08:29.039 align:start position:0%
different types of new line characters.
 

00:08:29.039 --> 00:08:31.270 align:start position:0%
different types of new line characters.
Let<00:08:29.280><c> me</c><00:08:29.440><c> explain.</c><00:08:30.160><c> Basically,</c><00:08:30.720><c> the</c><00:08:30.960><c> history</c>

00:08:31.270 --> 00:08:31.280 align:start position:0%
Let me explain. Basically, the history
 

00:08:31.280 --> 00:08:33.430 align:start position:0%
Let me explain. Basically, the history
of<00:08:31.440><c> computers</c><00:08:32.000><c> is</c><00:08:32.320><c> a</c><00:08:32.560><c> bit</c><00:08:32.719><c> of</c><00:08:32.800><c> a</c><00:08:32.959><c> mess.</c>

00:08:33.430 --> 00:08:33.440 align:start position:0%
of computers is a bit of a mess.
 

00:08:33.440 --> 00:08:35.430 align:start position:0%
of computers is a bit of a mess.
Although<00:08:33.839><c> nowadays</c><00:08:34.320><c> a</c><00:08:34.560><c> new</c><00:08:34.719><c> line</c><00:08:34.959><c> is</c><00:08:35.200><c> most</c><00:08:35.360><c> of</c>

00:08:35.430 --> 00:08:35.440 align:start position:0%
Although nowadays a new line is most of
 

00:08:35.440 --> 00:08:37.909 align:start position:0%
Although nowadays a new line is most of
the<00:08:35.599><c> time</c><00:08:35.839><c> indicated</c><00:08:36.320><c> by</c><00:08:36.560><c> just</c><00:08:36.880><c> one</c><00:08:37.279><c> line</c><00:08:37.519><c> feed</c>

00:08:37.909 --> 00:08:37.919 align:start position:0%
the time indicated by just one line feed
 

00:08:37.919 --> 00:08:40.149 align:start position:0%
the time indicated by just one line feed
character,<00:08:38.640><c> it</c><00:08:38.880><c> used</c><00:08:39.039><c> to</c><00:08:39.200><c> be</c><00:08:39.360><c> common</c><00:08:39.760><c> practice</c>

00:08:40.149 --> 00:08:40.159 align:start position:0%
character, it used to be common practice
 

00:08:40.159 --> 00:08:42.909 align:start position:0%
character, it used to be common practice
to<00:08:40.479><c> also</c><00:08:40.880><c> add</c><00:08:41.200><c> a</c><00:08:41.519><c> carriage</c><00:08:41.919><c> return</c><00:08:42.320><c> character</c>

00:08:42.909 --> 00:08:42.919 align:start position:0%
to also add a carriage return character
 

00:08:42.919 --> 00:08:45.190 align:start position:0%
to also add a carriage return character
afterwards.<00:08:43.919><c> This</c><00:08:44.080><c> idea</c><00:08:44.480><c> stems</c><00:08:44.800><c> from</c><00:08:44.959><c> the</c><00:08:45.120><c> way</c>

00:08:45.190 --> 00:08:45.200 align:start position:0%
afterwards. This idea stems from the way
 

00:08:45.200 --> 00:08:47.829 align:start position:0%
afterwards. This idea stems from the way
a<00:08:45.440><c> typewriter</c><00:08:46.160><c> works.</c><00:08:46.640><c> Moving</c><00:08:47.040><c> down</c><00:08:47.279><c> one</c><00:08:47.600><c> line</c>

00:08:47.829 --> 00:08:47.839 align:start position:0%
a typewriter works. Moving down one line
 

00:08:47.839 --> 00:08:49.910 align:start position:0%
a typewriter works. Moving down one line
and<00:08:48.160><c> sending</c><00:08:48.480><c> the</c><00:08:48.720><c> cursor</c><00:08:49.120><c> back</c><00:08:49.360><c> to</c><00:08:49.519><c> the</c><00:08:49.680><c> start</c>

00:08:49.910 --> 00:08:49.920 align:start position:0%
and sending the cursor back to the start
 

00:08:49.920 --> 00:08:52.710 align:start position:0%
and sending the cursor back to the start
of<00:08:50.000><c> the</c><00:08:50.160><c> page</c><00:08:50.640><c> are</c><00:08:50.959><c> two</c><00:08:51.279><c> separate</c><00:08:51.760><c> actions</c><00:08:52.399><c> and</c>

00:08:52.710 --> 00:08:52.720 align:start position:0%
of the page are two separate actions and
 

00:08:52.720 --> 00:08:57.870 align:start position:0%
of the page are two separate actions and
therefore<00:08:53.200><c> require</c><00:08:53.600><c> two</c><00:08:53.920><c> separate</c>

00:08:57.870 --> 00:08:57.880 align:start position:0%
 
 

00:08:57.880 --> 00:08:59.220 align:start position:0%
 
characters.

00:08:59.220 --> 00:08:59.230 align:start position:0%
characters.
 

00:08:59.230 --> 00:09:06.030 align:start position:0%
characters.
[Music]

00:09:06.030 --> 00:09:06.040 align:start position:0%
[Music]
 

00:09:06.040 --> 00:09:08.550 align:start position:0%
[Music]
Of<00:09:07.040><c> course,</c><00:09:07.360><c> modern</c><00:09:07.760><c> computers</c><00:09:08.240><c> don't</c><00:09:08.399><c> need</c>

00:09:08.550 --> 00:09:08.560 align:start position:0%
Of course, modern computers don't need
 

00:09:08.560 --> 00:09:10.310 align:start position:0%
Of course, modern computers don't need
to<00:09:08.640><c> be</c><00:09:08.800><c> told</c><00:09:09.040><c> to</c><00:09:09.279><c> reposition</c><00:09:09.760><c> the</c><00:09:09.920><c> cursor</c>

00:09:10.310 --> 00:09:10.320 align:start position:0%
to be told to reposition the cursor
 

00:09:10.320 --> 00:09:12.949 align:start position:0%
to be told to reposition the cursor
after<00:09:10.640><c> each</c><00:09:10.959><c> new</c><00:09:11.200><c> line,</c><00:09:11.760><c> but</c><00:09:11.920><c> in</c><00:09:12.160><c> some</c><00:09:12.399><c> places,</c>

00:09:12.949 --> 00:09:12.959 align:start position:0%
after each new line, but in some places,
 

00:09:12.959 --> 00:09:14.550 align:start position:0%
after each new line, but in some places,
including<00:09:13.279><c> the</c><00:09:13.440><c> Source</c><00:09:13.760><c> Engine</c><00:09:14.080><c> developer</c>

00:09:14.550 --> 00:09:14.560 align:start position:0%
including the Source Engine developer
 

00:09:14.560 --> 00:09:16.790 align:start position:0%
including the Source Engine developer
console,<00:09:15.200><c> this</c><00:09:15.440><c> standard</c><00:09:15.839><c> has</c><00:09:16.080><c> annoyingly</c>

00:09:16.790 --> 00:09:16.800 align:start position:0%
console, this standard has annoyingly
 

00:09:16.800 --> 00:09:19.269 align:start position:0%
console, this standard has annoyingly
stuck<00:09:17.120><c> around.</c><00:09:17.839><c> Long</c><00:09:18.160><c> story</c><00:09:18.480><c> short,</c><00:09:18.880><c> to</c><00:09:19.120><c> fix</c>

00:09:19.269 --> 00:09:19.279 align:start position:0%
stuck around. Long story short, to fix
 

00:09:19.279 --> 00:09:21.269 align:start position:0%
stuck around. Long story short, to fix
this<00:09:19.519><c> issue,</c><00:09:19.920><c> we</c><00:09:20.160><c> just</c><00:09:20.399><c> need</c><00:09:20.560><c> to</c><00:09:20.720><c> count</c><00:09:20.959><c> each</c>

00:09:21.269 --> 00:09:21.279 align:start position:0%
this issue, we just need to count each
 

00:09:21.279 --> 00:09:23.670 align:start position:0%
this issue, we just need to count each
new<00:09:21.519><c> line</c><00:09:21.839><c> character</c><00:09:22.320><c> twice.</c><00:09:23.040><c> Once</c><00:09:23.279><c> for</c><00:09:23.519><c> the</c>

00:09:23.670 --> 00:09:23.680 align:start position:0%
new line character twice. Once for the
 

00:09:23.680 --> 00:09:25.829 align:start position:0%
new line character twice. Once for the
original<00:09:24.080><c> line</c><00:09:24.399><c> feed</c><00:09:24.800><c> and</c><00:09:25.040><c> another</c><00:09:25.440><c> time</c><00:09:25.680><c> for</c>

00:09:25.829 --> 00:09:25.839 align:start position:0%
original line feed and another time for
 

00:09:25.839 --> 00:09:27.910 align:start position:0%
original line feed and another time for
the<00:09:26.080><c> carriage</c><00:09:26.480><c> return.</c><00:09:27.040><c> Refreshing</c><00:09:27.519><c> the</c><00:09:27.600><c> page</c>

00:09:27.910 --> 00:09:27.920 align:start position:0%
the carriage return. Refreshing the page
 

00:09:27.920 --> 00:09:29.509 align:start position:0%
the carriage return. Refreshing the page
now,<00:09:28.160><c> we</c><00:09:28.399><c> get</c><00:09:28.480><c> a</c><00:09:28.720><c> different</c><00:09:29.120><c> error,</c><00:09:29.279><c> but</c>

00:09:29.509 --> 00:09:29.519 align:start position:0%
now, we get a different error, but
 

00:09:29.519 --> 00:09:31.590 align:start position:0%
now, we get a different error, but
that's<00:09:29.760><c> just</c><00:09:29.920><c> for</c><00:09:30.080><c> my</c><00:09:30.320><c> own</c><00:09:30.480><c> typo.</c><00:09:30.959><c> So,</c><00:09:31.279><c> after</c>

00:09:31.590 --> 00:09:31.600 align:start position:0%
that's just for my own typo. So, after
 

00:09:31.600 --> 00:09:33.829 align:start position:0%
that's just for my own typo. So, after
refreshing<00:09:32.000><c> the</c><00:09:32.240><c> page</c><00:09:32.560><c> again,</c><00:09:33.200><c> the</c><00:09:33.440><c> position</c>

00:09:33.829 --> 00:09:33.839 align:start position:0%
refreshing the page again, the position
 

00:09:33.839 --> 00:09:35.990 align:start position:0%
refreshing the page again, the position
gets<00:09:34.160><c> printed</c><00:09:34.480><c> to</c><00:09:34.720><c> the</c><00:09:34.880><c> screen</c><00:09:35.360><c> with</c><00:09:35.680><c> live</c>

00:09:35.990 --> 00:09:36.000 align:start position:0%
gets printed to the screen with live
 

00:09:36.000 --> 00:09:38.790 align:start position:0%
gets printed to the screen with live
updates<00:09:36.480><c> in</c><00:09:36.800><c> 1</c><00:09:37.040><c> second</c><00:09:37.440><c> intervals.</c><00:09:38.399><c> At</c><00:09:38.640><c> this</c>

00:09:38.790 --> 00:09:38.800 align:start position:0%
updates in 1 second intervals. At this
 

00:09:38.800 --> 00:09:40.550 align:start position:0%
updates in 1 second intervals. At this
point,<00:09:39.120><c> we</c><00:09:39.440><c> have</c><00:09:39.600><c> all</c><00:09:39.760><c> the</c><00:09:40.000><c> building</c><00:09:40.240><c> blocks</c>

00:09:40.550 --> 00:09:40.560 align:start position:0%
point, we have all the building blocks
 

00:09:40.560 --> 00:09:42.550 align:start position:0%
point, we have all the building blocks
you'd<00:09:40.800><c> ever</c><00:09:41.040><c> need</c><00:09:41.279><c> to</c><00:09:41.519><c> build</c><00:09:41.680><c> a</c><00:09:41.920><c> full</c><00:09:42.240><c> web</c>

00:09:42.550 --> 00:09:42.560 align:start position:0%
you'd ever need to build a full web
 

00:09:42.560 --> 00:09:44.949 align:start position:0%
you'd ever need to build a full web
application.<00:09:43.440><c> And</c><00:09:43.760><c> web</c><00:09:44.000><c> apps</c><00:09:44.320><c> aren't</c><00:09:44.640><c> limited</c>

00:09:44.949 --> 00:09:44.959 align:start position:0%
application. And web apps aren't limited
 

00:09:44.959 --> 00:09:47.110 align:start position:0%
application. And web apps aren't limited
to<00:09:45.120><c> just</c><00:09:45.440><c> text.</c><00:09:46.080><c> Here's</c><00:09:46.320><c> a</c><00:09:46.480><c> demo</c><00:09:46.720><c> where</c><00:09:46.880><c> I</c><00:09:47.040><c> made</c>

00:09:47.110 --> 00:09:47.120 align:start position:0%
to just text. Here's a demo where I made
 

00:09:47.120 --> 00:09:49.030 align:start position:0%
to just text. Here's a demo where I made
a<00:09:47.360><c> small</c><00:09:47.519><c> rectangle</c><00:09:48.160><c> move</c><00:09:48.399><c> left</c><00:09:48.560><c> and</c><00:09:48.800><c> right</c>

00:09:49.030 --> 00:09:49.040 align:start position:0%
a small rectangle move left and right
 

00:09:49.040 --> 00:09:50.949 align:start position:0%
a small rectangle move left and right
based<00:09:49.279><c> on</c><00:09:49.360><c> the</c><00:09:49.519><c> cube's</c><00:09:50.000><c> position</c><00:09:50.320><c> in</c><00:09:50.560><c> the</c><00:09:50.720><c> game</c>

00:09:50.949 --> 00:09:50.959 align:start position:0%
based on the cube's position in the game
 

00:09:50.959 --> 00:09:53.110 align:start position:0%
based on the cube's position in the game
world.<00:09:51.440><c> And</c><00:09:51.760><c> about</c><00:09:52.000><c> the</c><00:09:52.240><c> address</c><00:09:52.560><c> thing,</c><00:09:52.959><c> if</c>

00:09:53.110 --> 00:09:53.120 align:start position:0%
world. And about the address thing, if
 

00:09:53.120 --> 00:09:55.269 align:start position:0%
world. And about the address thing, if
you<00:09:53.279><c> wanted</c><00:09:53.440><c> to</c><00:09:53.600><c> implement</c><00:09:54.000><c> custom</c><00:09:54.399><c> subpages,</c>

00:09:55.269 --> 00:09:55.279 align:start position:0%
you wanted to implement custom subpages,
 

00:09:55.279 --> 00:09:57.190 align:start position:0%
you wanted to implement custom subpages,
you<00:09:55.519><c> could</c><00:09:55.760><c> have</c><00:09:56.000><c> some</c><00:09:56.240><c> JavaScript</c><00:09:56.800><c> on</c><00:09:57.040><c> the</c>

00:09:57.190 --> 00:09:57.200 align:start position:0%
you could have some JavaScript on the
 

00:09:57.200 --> 00:09:59.269 align:start position:0%
you could have some JavaScript on the
landing<00:09:57.600><c> page,</c><00:09:58.080><c> read</c><00:09:58.399><c> the</c><00:09:58.640><c> contents</c><00:09:58.959><c> of</c><00:09:59.120><c> the</c>

00:09:59.269 --> 00:09:59.279 align:start position:0%
landing page, read the contents of the
 

00:09:59.279 --> 00:10:01.350 align:start position:0%
landing page, read the contents of the
address<00:09:59.680><c> bar,</c><00:10:00.000><c> and</c><00:10:00.240><c> fetch</c><00:10:00.480><c> the</c><00:10:00.720><c> corresponding</c>

00:10:01.350 --> 00:10:01.360 align:start position:0%
address bar, and fetch the corresponding
 

00:10:01.360 --> 00:10:03.590 align:start position:0%
address bar, and fetch the corresponding
API<00:10:01.920><c> endpoint.</c><00:10:02.720><c> And</c><00:10:02.959><c> just</c><00:10:03.200><c> so</c><00:10:03.279><c> that</c><00:10:03.440><c> you're</c>

00:10:03.590 --> 00:10:03.600 align:start position:0%
API endpoint. And just so that you're
 

00:10:03.600 --> 00:10:05.829 align:start position:0%
API endpoint. And just so that you're
not<00:10:03.760><c> limited</c><00:10:04.080><c> by</c><00:10:04.240><c> request</c><00:10:04.640><c> types,</c><00:10:05.279><c> you</c><00:10:05.519><c> could</c>

00:10:05.829 --> 00:10:05.839 align:start position:0%
not limited by request types, you could
 

00:10:05.839 --> 00:10:08.310 align:start position:0%
not limited by request types, you could
also<00:10:06.160><c> index</c><00:10:06.640><c> different</c><00:10:07.040><c> endpoints</c><00:10:07.600><c> by</c><00:10:07.920><c> using</c>

00:10:08.310 --> 00:10:08.320 align:start position:0%
also index different endpoints by using
 

00:10:08.320 --> 00:10:10.230 align:start position:0%
also index different endpoints by using
custom<00:10:08.800><c> headers.</c><00:10:09.519><c> That's</c><00:10:09.760><c> right,</c><00:10:10.080><c> the</c>

00:10:10.230 --> 00:10:10.240 align:start position:0%
custom headers. That's right, the
 

00:10:10.240 --> 00:10:12.630 align:start position:0%
custom headers. That's right, the
headers<00:10:10.720><c> aren't</c><00:10:11.120><c> necessarily</c><00:10:11.680><c> predefined.</c>

00:10:12.630 --> 00:10:12.640 align:start position:0%
headers aren't necessarily predefined.
 

00:10:12.640 --> 00:10:15.269 align:start position:0%
headers aren't necessarily predefined.
You<00:10:12.880><c> can</c><00:10:13.040><c> send</c><00:10:13.279><c> and</c><00:10:13.600><c> receive</c><00:10:14.240><c> custom</c><00:10:14.640><c> ones,</c>

00:10:15.269 --> 00:10:15.279 align:start position:0%
You can send and receive custom ones,
 

00:10:15.279 --> 00:10:17.269 align:start position:0%
You can send and receive custom ones,
which<00:10:15.519><c> in</c><00:10:15.760><c> our</c><00:10:16.000><c> case</c><00:10:16.240><c> means</c><00:10:16.720><c> literally</c>

00:10:17.269 --> 00:10:17.279 align:start position:0%
which in our case means literally
 

00:10:17.279 --> 00:10:20.069 align:start position:0%
which in our case means literally
sending<00:10:17.839><c> custom</c><00:10:18.399><c> commands</c><00:10:18.880><c> to</c><00:10:19.120><c> the</c><00:10:19.360><c> game.</c><00:10:19.839><c> The</c>

00:10:20.069 --> 00:10:20.079 align:start position:0%
sending custom commands to the game. The
 

00:10:20.079 --> 00:10:22.630 align:start position:0%
sending custom commands to the game. The
possibilities<00:10:20.800><c> are</c><00:10:21.200><c> virtually</c><00:10:21.680><c> endless.</c><00:10:22.399><c> In</c>

00:10:22.630 --> 00:10:22.640 align:start position:0%
possibilities are virtually endless. In
 

00:10:22.640 --> 00:10:24.470 align:start position:0%
possibilities are virtually endless. In
fact,<00:10:22.880><c> when</c><00:10:23.040><c> I</c><00:10:23.279><c> first</c><00:10:23.519><c> discovered</c><00:10:23.920><c> this,</c><00:10:24.240><c> I</c>

00:10:24.470 --> 00:10:24.480 align:start position:0%
fact, when I first discovered this, I
 

00:10:24.480 --> 00:10:26.710 align:start position:0%
fact, when I first discovered this, I
made<00:10:24.640><c> a</c><00:10:24.880><c> fully</c><00:10:25.279><c> functional</c><00:10:25.920><c> mini</c><00:10:26.240><c> map</c><00:10:26.480><c> that</c>

00:10:26.710 --> 00:10:26.720 align:start position:0%
made a fully functional mini map that
 

00:10:26.720 --> 00:10:29.190 align:start position:0%
made a fully functional mini map that
would<00:10:26.959><c> display</c><00:10:27.279><c> the</c><00:10:27.600><c> terrain</c><00:10:28.160><c> in</c><00:10:28.480><c> real</c><00:10:28.800><c> time</c>

00:10:29.190 --> 00:10:29.200 align:start position:0%
would display the terrain in real time
 

00:10:29.200 --> 00:10:31.030 align:start position:0%
would display the terrain in real time
and<00:10:29.440><c> even</c><00:10:29.680><c> let</c><00:10:29.839><c> you</c><00:10:30.079><c> move</c><00:10:30.240><c> the</c><00:10:30.480><c> player</c><00:10:30.720><c> by</c>

00:10:31.030 --> 00:10:31.040 align:start position:0%
and even let you move the player by
 

00:10:31.040 --> 00:10:33.829 align:start position:0%
and even let you move the player by
pressing<00:10:31.440><c> buttons</c><00:10:31.920><c> in</c><00:10:32.160><c> the</c><00:10:32.440><c> browser.</c><00:10:33.440><c> But,</c>

00:10:33.829 --> 00:10:33.839 align:start position:0%
pressing buttons in the browser. But,
 

00:10:33.839 --> 00:10:36.470 align:start position:0%
pressing buttons in the browser. But,
okay,<00:10:34.640><c> let's</c><00:10:34.880><c> be</c><00:10:35.040><c> honest,</c><00:10:35.600><c> there</c><00:10:35.839><c> are</c><00:10:36.079><c> easier</c>

00:10:36.470 --> 00:10:36.480 align:start position:0%
okay, let's be honest, there are easier
 

00:10:36.480 --> 00:10:38.310 align:start position:0%
okay, let's be honest, there are easier
ways<00:10:36.720><c> to</c><00:10:36.880><c> visualize</c><00:10:37.519><c> information</c><00:10:38.079><c> coming</c>

00:10:38.310 --> 00:10:38.320 align:start position:0%
ways to visualize information coming
 

00:10:38.320 --> 00:10:40.550 align:start position:0%
ways to visualize information coming
from<00:10:38.560><c> the</c><00:10:38.800><c> game.</c><00:10:39.360><c> This</c><00:10:39.600><c> is</c><00:10:39.760><c> a</c><00:10:39.920><c> web</c><00:10:40.160><c> server</c>

00:10:40.550 --> 00:10:40.560 align:start position:0%
from the game. This is a web server
 

00:10:40.560 --> 00:10:43.110 align:start position:0%
from the game. This is a web server
after<00:10:40.800><c> all.</c><00:10:41.200><c> So,</c><00:10:41.760><c> how</c><00:10:42.000><c> about</c><00:10:42.160><c> we</c><00:10:42.480><c> use</c><00:10:42.640><c> it</c><00:10:42.800><c> for</c>

00:10:43.110 --> 00:10:43.120 align:start position:0%
after all. So, how about we use it for
 

00:10:43.120 --> 00:10:47.269 align:start position:0%
after all. So, how about we use it for
its<00:10:43.360><c> intended</c><00:10:44.040><c> purpose,</c><00:10:45.040><c> serving</c><00:10:45.519><c> a</c><00:10:46.279><c> website?</c>

00:10:47.269 --> 00:10:47.279 align:start position:0%
its intended purpose, serving a website?
 

00:10:47.279 --> 00:10:49.750 align:start position:0%
its intended purpose, serving a website?
The<00:10:47.519><c> idea</c><00:10:47.839><c> is</c><00:10:48.160><c> simple.</c><00:10:48.800><c> create</c><00:10:49.040><c> a</c><00:10:49.279><c> system</c><00:10:49.519><c> that</c>

00:10:49.750 --> 00:10:49.760 align:start position:0%
The idea is simple. create a system that
 

00:10:49.760 --> 00:10:52.389 align:start position:0%
The idea is simple. create a system that
maps<00:10:50.160><c> objects</c><00:10:50.560><c> in</c><00:10:50.880><c> game</c><00:10:51.279><c> to</c><00:10:51.519><c> elements</c><00:10:51.920><c> in</c><00:10:52.160><c> a</c>

00:10:52.389 --> 00:10:52.399 align:start position:0%
maps objects in game to elements in a
 

00:10:52.399 --> 00:10:54.310 align:start position:0%
maps objects in game to elements in a
website.<00:10:53.040><c> Ideally,</c><00:10:53.519><c> the</c><00:10:53.760><c> system</c><00:10:54.000><c> would</c><00:10:54.240><c> be</c>

00:10:54.310 --> 00:10:54.320 align:start position:0%
website. Ideally, the system would be
 

00:10:54.320 --> 00:10:55.990 align:start position:0%
website. Ideally, the system would be
modular<00:10:54.800><c> enough</c><00:10:55.040><c> to</c><00:10:55.200><c> allow</c><00:10:55.440><c> for</c><00:10:55.680><c> creating</c>

00:10:55.990 --> 00:10:56.000 align:start position:0%
modular enough to allow for creating
 

00:10:56.000 --> 00:10:58.389 align:start position:0%
modular enough to allow for creating
almost<00:10:56.399><c> any</c><00:10:56.800><c> website.</c><00:10:57.600><c> And</c><00:10:57.760><c> to</c><00:10:58.000><c> figure</c><00:10:58.240><c> out</c>

00:10:58.389 --> 00:10:58.399 align:start position:0%
almost any website. And to figure out
 

00:10:58.399 --> 00:11:00.230 align:start position:0%
almost any website. And to figure out
how<00:10:58.560><c> to</c><00:10:58.720><c> do</c><00:10:58.880><c> this,</c><00:10:59.200><c> let's</c><00:10:59.440><c> take</c><00:10:59.600><c> a</c><00:10:59.839><c> quick</c><00:11:00.000><c> look</c>

00:11:00.230 --> 00:11:00.240 align:start position:0%
how to do this, let's take a quick look
 

00:11:00.240 --> 00:11:03.190 align:start position:0%
how to do this, let's take a quick look
at<00:11:00.480><c> what</c><00:11:00.720><c> makes</c><00:11:00.959><c> up</c><00:11:01.200><c> a</c><00:11:01.480><c> website.</c><00:11:02.480><c> This</c><00:11:02.800><c> is</c><00:11:02.959><c> an</c>

00:11:03.190 --> 00:11:03.200 align:start position:0%
at what makes up a website. This is an
 

00:11:03.200 --> 00:11:06.069 align:start position:0%
at what makes up a website. This is an
HTML<00:11:03.839><c> file.</c><00:11:04.399><c> It's</c><00:11:04.720><c> basically</c><00:11:05.120><c> the</c><00:11:05.440><c> code</c><00:11:05.680><c> of</c><00:11:05.839><c> a</c>

00:11:06.069 --> 00:11:06.079 align:start position:0%
HTML file. It's basically the code of a
 

00:11:06.079 --> 00:11:07.829 align:start position:0%
HTML file. It's basically the code of a
website.<00:11:06.560><c> And</c><00:11:06.800><c> while</c><00:11:07.040><c> we</c><00:11:07.200><c> could</c><00:11:07.440><c> make</c><00:11:07.600><c> a</c>

00:11:07.829 --> 00:11:07.839 align:start position:0%
website. And while we could make a
 

00:11:07.839 --> 00:11:09.829 align:start position:0%
website. And while we could make a
system<00:11:08.079><c> where</c><00:11:08.399><c> each</c><00:11:08.640><c> cube</c><00:11:09.120><c> corresponds</c><00:11:09.600><c> to</c>

00:11:09.829 --> 00:11:09.839 align:start position:0%
system where each cube corresponds to
 

00:11:09.839 --> 00:11:12.230 align:start position:0%
system where each cube corresponds to
one<00:11:10.160><c> character</c><00:11:10.560><c> of</c><00:11:10.800><c> this</c><00:11:10.959><c> file,</c><00:11:11.680><c> that</c><00:11:12.000><c> would</c>

00:11:12.230 --> 00:11:12.240 align:start position:0%
one character of this file, that would
 

00:11:12.240 --> 00:11:14.310 align:start position:0%
one character of this file, that would
be<00:11:12.480><c> much</c><00:11:12.720><c> too</c><00:11:12.959><c> annoying.</c><00:11:13.680><c> And</c><00:11:13.839><c> at</c><00:11:14.079><c> the</c><00:11:14.160><c> end</c><00:11:14.240><c> of</c>

00:11:14.310 --> 00:11:14.320 align:start position:0%
be much too annoying. And at the end of
 

00:11:14.320 --> 00:11:16.389 align:start position:0%
be much too annoying. And at the end of
the<00:11:14.480><c> day,</c><00:11:14.720><c> we're</c><00:11:14.959><c> building</c><00:11:15.200><c> a</c><00:11:15.440><c> website,</c><00:11:16.000><c> not</c><00:11:16.160><c> a</c>

00:11:16.389 --> 00:11:16.399 align:start position:0%
the day, we're building a website, not a
 

00:11:16.399 --> 00:11:18.790 align:start position:0%
the day, we're building a website, not a
text<00:11:16.640><c> editor.</c><00:11:17.200><c> So</c><00:11:17.519><c> instead,</c><00:11:18.079><c> this</c><00:11:18.320><c> file</c><00:11:18.640><c> can</c>

00:11:18.790 --> 00:11:18.800 align:start position:0%
text editor. So instead, this file can
 

00:11:18.800 --> 00:11:20.949 align:start position:0%
text editor. So instead, this file can
be<00:11:18.959><c> interpreted</c><00:11:19.519><c> using</c><00:11:19.839><c> a</c><00:11:20.079><c> more</c><00:11:20.320><c> abstract</c>

00:11:20.949 --> 00:11:20.959 align:start position:0%
be interpreted using a more abstract
 

00:11:20.959 --> 00:11:24.310 align:start position:0%
be interpreted using a more abstract
form,<00:11:21.519><c> the</c><00:11:21.760><c> document</c><00:11:22.320><c> object</c><00:11:22.800><c> model</c><00:11:23.200><c> or</c><00:11:23.519><c> DOM.</c>

00:11:24.310 --> 00:11:24.320 align:start position:0%
form, the document object model or DOM.
 

00:11:24.320 --> 00:11:26.150 align:start position:0%
form, the document object model or DOM.
In<00:11:24.560><c> this</c><00:11:24.640><c> form,</c><00:11:25.040><c> we're</c><00:11:25.279><c> no</c><00:11:25.519><c> longer</c><00:11:25.839><c> dealing</c>

00:11:26.150 --> 00:11:26.160 align:start position:0%
In this form, we're no longer dealing
 

00:11:26.160 --> 00:11:28.389 align:start position:0%
In this form, we're no longer dealing
with<00:11:26.399><c> individual</c><00:11:27.040><c> characters,</c><00:11:27.600><c> but</c><00:11:27.920><c> rather</c>

00:11:28.389 --> 00:11:28.399 align:start position:0%
with individual characters, but rather
 

00:11:28.399 --> 00:11:31.030 align:start position:0%
with individual characters, but rather
discrete<00:11:29.040><c> objects</c><00:11:29.519><c> that</c><00:11:29.839><c> represent</c><00:11:30.399><c> HTML</c>

00:11:31.030 --> 00:11:31.040 align:start position:0%
discrete objects that represent HTML
 

00:11:31.040 --> 00:11:33.590 align:start position:0%
discrete objects that represent HTML
tags.<00:11:31.680><c> If</c><00:11:31.920><c> we</c><00:11:32.079><c> then</c><00:11:32.240><c> map</c><00:11:32.560><c> these</c><00:11:32.880><c> objects</c><00:11:33.360><c> to</c>

00:11:33.590 --> 00:11:33.600 align:start position:0%
tags. If we then map these objects to
 

00:11:33.600 --> 00:11:35.829 align:start position:0%
tags. If we then map these objects to
cubes<00:11:34.000><c> in</c><00:11:34.160><c> the</c><00:11:34.320><c> game</c><00:11:34.560><c> world,</c><00:11:34.959><c> we</c><00:11:35.200><c> can</c><00:11:35.360><c> start</c><00:11:35.600><c> to</c>

00:11:35.829 --> 00:11:35.839 align:start position:0%
cubes in the game world, we can start to
 

00:11:35.839 --> 00:11:38.470 align:start position:0%
cubes in the game world, we can start to
represent<00:11:36.320><c> a</c><00:11:36.720><c> whole</c><00:11:36.959><c> entire</c><00:11:37.440><c> website</c><00:11:38.000><c> by</c><00:11:38.240><c> just</c>

00:11:38.470 --> 00:11:38.480 align:start position:0%
represent a whole entire website by just
 

00:11:38.480 --> 00:11:41.030 align:start position:0%
represent a whole entire website by just
stacking<00:11:38.959><c> these</c><00:11:39.279><c> cubes</c><00:11:39.760><c> next</c><00:11:40.000><c> to</c><00:11:40.160><c> each</c><00:11:40.399><c> other.</c>

00:11:41.030 --> 00:11:41.040 align:start position:0%
stacking these cubes next to each other.
 

00:11:41.040 --> 00:11:42.949 align:start position:0%
stacking these cubes next to each other.
For<00:11:41.120><c> example,</c><00:11:41.680><c> let's</c><00:11:41.920><c> say</c><00:11:42.079><c> I</c><00:11:42.320><c> want</c><00:11:42.399><c> to</c><00:11:42.560><c> build</c><00:11:42.720><c> a</c>

00:11:42.949 --> 00:11:42.959 align:start position:0%
For example, let's say I want to build a
 

00:11:42.959 --> 00:11:45.190 align:start position:0%
For example, let's say I want to build a
website<00:11:43.279><c> with</c><00:11:43.519><c> just</c><00:11:43.760><c> the</c><00:11:44.000><c> text</c><00:11:44.320><c> subscribe</c><00:11:44.959><c> in</c>

00:11:45.190 --> 00:11:45.200 align:start position:0%
website with just the text subscribe in
 

00:11:45.200 --> 00:11:47.030 align:start position:0%
website with just the text subscribe in
it.<00:11:45.600><c> I've</c><00:11:45.920><c> added</c><00:11:46.079><c> a</c><00:11:46.240><c> script</c><00:11:46.560><c> command</c><00:11:46.800><c> that</c>

00:11:47.030 --> 00:11:47.040 align:start position:0%
it. I've added a script command that
 

00:11:47.040 --> 00:11:48.470 align:start position:0%
it. I've added a script command that
lets<00:11:47.200><c> me</c><00:11:47.360><c> create</c><00:11:47.600><c> the</c><00:11:47.839><c> different</c><00:11:48.000><c> types</c><00:11:48.320><c> of</c>

00:11:48.470 --> 00:11:48.480 align:start position:0%
lets me create the different types of
 

00:11:48.480 --> 00:11:51.190 align:start position:0%
lets me create the different types of
tags<00:11:48.880><c> as</c><00:11:49.200><c> colored</c><00:11:49.680><c> storage</c><00:11:50.000><c> cubes.</c><00:11:50.640><c> If</c><00:11:50.800><c> I</c><00:11:50.959><c> set</c>

00:11:51.190 --> 00:11:51.200 align:start position:0%
tags as colored storage cubes. If I set
 

00:11:51.200 --> 00:11:53.509 align:start position:0%
tags as colored storage cubes. If I set
down<00:11:51.360><c> an</c><00:11:51.680><c> opening</c><00:11:52.000><c> and</c><00:11:52.320><c> closing</c><00:11:52.640><c> header</c><00:11:53.040><c> tag,</c>

00:11:53.509 --> 00:11:53.519 align:start position:0%
down an opening and closing header tag,
 

00:11:53.519 --> 00:11:55.350 align:start position:0%
down an opening and closing header tag,
then<00:11:53.760><c> put</c><00:11:53.920><c> down</c><00:11:54.079><c> a</c><00:11:54.240><c> cube</c><00:11:54.640><c> representing</c><00:11:55.120><c> the</c>

00:11:55.350 --> 00:11:55.360 align:start position:0%
then put down a cube representing the
 

00:11:55.360 --> 00:11:57.990 align:start position:0%
then put down a cube representing the
text<00:11:55.760><c> in</c><00:11:56.000><c> between</c><00:11:56.320><c> those</c><00:11:56.640><c> tags,</c><00:11:57.279><c> our</c><00:11:57.519><c> website</c>

00:11:57.990 --> 00:11:58.000 align:start position:0%
text in between those tags, our website
 

00:11:58.000 --> 00:12:00.710 align:start position:0%
text in between those tags, our website
will<00:11:58.240><c> now</c><00:11:58.560><c> reflect</c><00:11:59.040><c> that</c><00:11:59.360><c> object</c><00:11:59.839><c> model.</c><00:12:00.399><c> If</c><00:12:00.560><c> I</c>

00:12:00.710 --> 00:12:00.720 align:start position:0%
will now reflect that object model. If I
 

00:12:00.720 --> 00:12:02.470 align:start position:0%
will now reflect that object model. If I
wanted<00:12:00.959><c> to</c><00:12:01.040><c> add</c><00:12:01.200><c> an</c><00:12:01.360><c> image</c><00:12:01.600><c> below</c><00:12:01.839><c> that,</c><00:12:02.160><c> I</c><00:12:02.399><c> can</c>

00:12:02.470 --> 00:12:02.480 align:start position:0%
wanted to add an image below that, I can
 

00:12:02.480 --> 00:12:04.230 align:start position:0%
wanted to add an image below that, I can
literally<00:12:02.880><c> just</c><00:12:03.120><c> create</c><00:12:03.360><c> another</c><00:12:03.680><c> cube</c><00:12:04.079><c> with</c>

00:12:04.230 --> 00:12:04.240 align:start position:0%
literally just create another cube with
 

00:12:04.240 --> 00:12:07.110 align:start position:0%
literally just create another cube with
the<00:12:04.480><c> image</c><00:12:04.800><c> tag.</c><00:12:05.440><c> And</c><00:12:05.680><c> lastly,</c><00:12:06.240><c> to</c><00:12:06.480><c> add</c><00:12:06.720><c> style</c>

00:12:07.110 --> 00:12:07.120 align:start position:0%
the image tag. And lastly, to add style
 

00:12:07.120 --> 00:12:09.670 align:start position:0%
the image tag. And lastly, to add style
modifiers,<00:12:07.920><c> I</c><00:12:08.079><c> can</c><00:12:08.240><c> create</c><00:12:08.560><c> special</c><00:12:09.040><c> modifier</c>

00:12:09.670 --> 00:12:09.680 align:start position:0%
modifiers, I can create special modifier
 

00:12:09.680 --> 00:12:12.069 align:start position:0%
modifiers, I can create special modifier
cubes<00:12:10.160><c> and</c><00:12:10.480><c> stack</c><00:12:10.800><c> them</c><00:12:11.120><c> on</c><00:12:11.360><c> top</c><00:12:11.680><c> of</c><00:12:11.839><c> the</c>

00:12:12.069 --> 00:12:12.079 align:start position:0%
cubes and stack them on top of the
 

00:12:12.079 --> 00:12:14.629 align:start position:0%
cubes and stack them on top of the
target<00:12:12.480><c> element.</c><00:12:13.279><c> With</c><00:12:13.600><c> just</c><00:12:13.920><c> these</c><00:12:14.320><c> core</c>

00:12:14.629 --> 00:12:14.639 align:start position:0%
target element. With just these core
 

00:12:14.639 --> 00:12:16.629 align:start position:0%
target element. With just these core
concepts,<00:12:15.279><c> you</c><00:12:15.519><c> can</c><00:12:15.680><c> start</c><00:12:15.839><c> to</c><00:12:16.079><c> build</c><00:12:16.320><c> a</c>

00:12:16.629 --> 00:12:16.639 align:start position:0%
concepts, you can start to build a
 

00:12:16.639 --> 00:12:19.030 align:start position:0%
concepts, you can start to build a
simple<00:12:16.959><c> web</c><00:12:17.279><c> page.</c><00:12:17.920><c> And</c><00:12:18.240><c> that's</c><00:12:18.560><c> exactly</c><00:12:18.880><c> how</c>

00:12:19.030 --> 00:12:19.040 align:start position:0%
simple web page. And that's exactly how
 

00:12:19.040 --> 00:12:20.710 align:start position:0%
simple web page. And that's exactly how
I<00:12:19.279><c> built</c><00:12:19.440><c> the</c><00:12:19.680><c> site</c><00:12:19.839><c> from</c><00:12:20.079><c> this</c><00:12:20.320><c> video's</c>

00:12:20.710 --> 00:12:20.720 align:start position:0%
I built the site from this video's
 

00:12:20.720 --> 00:12:23.509 align:start position:0%
I built the site from this video's
intro.<00:12:21.360><c> Literally</c><00:12:21.920><c> stacking</c><00:12:22.480><c> blocks</c><00:12:22.959><c> one</c><00:12:23.200><c> by</c>

00:12:23.509 --> 00:12:23.519 align:start position:0%
intro. Literally stacking blocks one by
 

00:12:23.519 --> 00:12:25.750 align:start position:0%
intro. Literally stacking blocks one by
one.<00:12:24.160><c> Now,</c><00:12:24.560><c> of</c><00:12:24.800><c> course,</c><00:12:25.120><c> this</c><00:12:25.360><c> quickly</c>

00:12:25.750 --> 00:12:25.760 align:start position:0%
one. Now, of course, this quickly
 

00:12:25.760 --> 00:12:27.990 align:start position:0%
one. Now, of course, this quickly
becomes<00:12:26.079><c> impractical</c><00:12:26.720><c> for</c><00:12:26.959><c> larger</c><00:12:27.360><c> websites,</c>

00:12:27.990 --> 00:12:28.000 align:start position:0%
becomes impractical for larger websites,
 

00:12:28.000 --> 00:12:29.430 align:start position:0%
becomes impractical for larger websites,
even<00:12:28.240><c> while</c><00:12:28.480><c> building</c><00:12:28.800><c> this</c><00:12:28.959><c> one,</c><00:12:29.279><c> it</c>

00:12:29.430 --> 00:12:29.440 align:start position:0%
even while building this one, it
 

00:12:29.440 --> 00:12:30.949 align:start position:0%
even while building this one, it
eventually<00:12:29.839><c> became</c><00:12:30.160><c> hard</c><00:12:30.320><c> to</c><00:12:30.560><c> stack</c><00:12:30.800><c> the</c>

00:12:30.949 --> 00:12:30.959 align:start position:0%
eventually became hard to stack the
 

00:12:30.959 --> 00:12:33.430 align:start position:0%
eventually became hard to stack the
cubes<00:12:31.360><c> any</c><00:12:31.600><c> higher.</c><00:12:32.160><c> But</c><00:12:32.720><c> just</c><00:12:32.959><c> for</c><00:12:33.120><c> the</c><00:12:33.279><c> sake</c>

00:12:33.430 --> 00:12:33.440 align:start position:0%
cubes any higher. But just for the sake
 

00:12:33.440 --> 00:12:35.590 align:start position:0%
cubes any higher. But just for the sake
of<00:12:33.519><c> the</c><00:12:33.680><c> argument,</c><00:12:34.399><c> what</c><00:12:34.720><c> would</c><00:12:35.040><c> a</c><00:12:35.279><c> modern</c>

00:12:35.590 --> 00:12:35.600 align:start position:0%
of the argument, what would a modern
 

00:12:35.600 --> 00:12:38.069 align:start position:0%
of the argument, what would a modern
website<00:12:36.079><c> look</c><00:12:36.320><c> like</c><00:12:36.480><c> in</c><00:12:36.720><c> this</c><00:12:36.880><c> form?</c><00:12:37.600><c> Well,</c><00:12:37.839><c> to</c>

00:12:38.069 --> 00:12:38.079 align:start position:0%
website look like in this form? Well, to
 

00:12:38.079 --> 00:12:39.750 align:start position:0%
website look like in this form? Well, to
answer<00:12:38.320><c> that</c><00:12:38.560><c> question,</c><00:12:38.959><c> I</c><00:12:39.200><c> wrote</c><00:12:39.440><c> a</c><00:12:39.600><c> few</c>

00:12:39.750 --> 00:12:39.760 align:start position:0%
answer that question, I wrote a few
 

00:12:39.760 --> 00:12:41.509 align:start position:0%
answer that question, I wrote a few
scripts<00:12:40.079><c> for</c><00:12:40.320><c> converting</c><00:12:40.639><c> any</c><00:12:40.959><c> relatively</c>

00:12:41.509 --> 00:12:41.519 align:start position:0%
scripts for converting any relatively
 

00:12:41.519 --> 00:12:43.430 align:start position:0%
scripts for converting any relatively
simple<00:12:41.839><c> website</c><00:12:42.240><c> to</c><00:12:42.480><c> the</c><00:12:42.720><c> corresponding</c>

00:12:43.430 --> 00:12:43.440 align:start position:0%
simple website to the corresponding
 

00:12:43.440 --> 00:12:45.910 align:start position:0%
simple website to the corresponding
arrangement<00:12:43.839><c> of</c><00:12:44.079><c> cubes.</c><00:12:44.800><c> I</c><00:12:45.200><c> was</c><00:12:45.440><c> going</c><00:12:45.600><c> to</c><00:12:45.680><c> try</c>

00:12:45.910 --> 00:12:45.920 align:start position:0%
arrangement of cubes. I was going to try
 

00:12:45.920 --> 00:12:47.910 align:start position:0%
arrangement of cubes. I was going to try
parsing<00:12:46.240><c> the</c><00:12:46.480><c> front</c><00:12:46.639><c> page</c><00:12:46.880><c> of</c><00:12:47.040><c> Google,</c><00:12:47.519><c> but</c><00:12:47.760><c> it</c>

00:12:47.910 --> 00:12:47.920 align:start position:0%
parsing the front page of Google, but it
 

00:12:47.920 --> 00:12:49.509 align:start position:0%
parsing the front page of Google, but it
turns<00:12:48.160><c> out</c><00:12:48.240><c> that</c><00:12:48.480><c> it's</c><00:12:48.800><c> actually</c><00:12:49.120><c> not</c><00:12:49.360><c> as</c>

00:12:49.509 --> 00:12:49.519 align:start position:0%
turns out that it's actually not as
 

00:12:49.519 --> 00:12:51.509 align:start position:0%
turns out that it's actually not as
lightweight<00:12:50.000><c> as</c><00:12:50.160><c> it</c><00:12:50.320><c> looks.</c><00:12:50.720><c> The</c><00:12:50.959><c> total</c><00:12:51.200><c> cube</c>

00:12:51.509 --> 00:12:51.519 align:start position:0%
lightweight as it looks. The total cube
 

00:12:51.519 --> 00:12:53.509 align:start position:0%
lightweight as it looks. The total cube
count<00:12:51.839><c> exceeds</c><00:12:52.240><c> the</c><00:12:52.480><c> total</c><00:12:52.720><c> entity</c><00:12:53.120><c> limit</c><00:12:53.279><c> of</c>

00:12:53.509 --> 00:12:53.519 align:start position:0%
count exceeds the total entity limit of
 

00:12:53.519 --> 00:12:55.670 align:start position:0%
count exceeds the total entity limit of
Portal<00:12:53.920><c> 2.</c><00:12:54.240><c> So,</c><00:12:54.480><c> I</c><00:12:54.639><c> use</c><00:12:54.800><c> the</c><00:12:54.959><c> homepage</c><00:12:55.440><c> of</c>

00:12:55.670 --> 00:12:55.680 align:start position:0%
Portal 2. So, I use the homepage of
 

00:12:55.680 --> 00:12:58.949 align:start position:0%
Portal 2. So, I use the homepage of
another<00:12:56.000><c> search</c><00:12:56.320><c> engine,</c><00:12:56.839><c> Duck.Go,</c><00:12:57.959><c> instead.</c>

00:12:58.949 --> 00:12:58.959 align:start position:0%
another search engine, Duck.Go, instead.
 

00:12:58.959 --> 00:13:00.949 align:start position:0%
another search engine, Duck.Go, instead.
This<00:12:59.200><c> is</c><00:12:59.360><c> what</c><00:12:59.519><c> it</c><00:12:59.680><c> looks</c><00:12:59.920><c> like</c><00:13:00.079><c> if</c><00:13:00.320><c> you</c><00:13:00.480><c> parse</c>

00:13:00.949 --> 00:13:00.959 align:start position:0%
This is what it looks like if you parse
 

00:13:00.959 --> 00:13:03.430 align:start position:0%
This is what it looks like if you parse
just<00:13:01.279><c> the</c><00:13:01.519><c> HTML</c><00:13:02.399><c> without</c><00:13:02.720><c> any</c><00:13:03.040><c> style</c>

00:13:03.430 --> 00:13:03.440 align:start position:0%
just the HTML without any style
 

00:13:03.440 --> 00:13:05.990 align:start position:0%
just the HTML without any style
modifiers.<00:13:04.399><c> It's</c><00:13:04.560><c> a</c><00:13:04.800><c> pretty</c><00:13:05.040><c> colorful</c><00:13:05.519><c> scene,</c>

00:13:05.990 --> 00:13:06.000 align:start position:0%
modifiers. It's a pretty colorful scene,
 

00:13:06.000 --> 00:13:07.750 align:start position:0%
modifiers. It's a pretty colorful scene,
definitely<00:13:06.399><c> more</c><00:13:06.639><c> complex</c><00:13:07.040><c> than</c><00:13:07.279><c> my</c><00:13:07.519><c> example</c>

00:13:07.750 --> 00:13:07.760 align:start position:0%
definitely more complex than my example
 

00:13:07.760 --> 00:13:09.750 align:start position:0%
definitely more complex than my example
from<00:13:08.000><c> earlier,</c><00:13:08.560><c> but</c><00:13:08.800><c> it</c><00:13:09.040><c> also</c><00:13:09.279><c> doesn't</c><00:13:09.600><c> look</c>

00:13:09.750 --> 00:13:09.760 align:start position:0%
from earlier, but it also doesn't look
 

00:13:09.760 --> 00:13:12.310 align:start position:0%
from earlier, but it also doesn't look
too<00:13:10.079><c> coherent</c><00:13:10.560><c> when</c><00:13:10.880><c> opened</c><00:13:11.200><c> in</c><00:13:11.360><c> a</c><00:13:11.600><c> browser.</c>

00:13:12.310 --> 00:13:12.320 align:start position:0%
too coherent when opened in a browser.
 

00:13:12.320 --> 00:13:14.710 align:start position:0%
too coherent when opened in a browser.
And<00:13:12.639><c> this</c><00:13:13.040><c> is</c><00:13:13.200><c> what</c><00:13:13.440><c> happens</c><00:13:13.760><c> when</c><00:13:14.000><c> we</c><00:13:14.240><c> add</c><00:13:14.480><c> all</c>

00:13:14.710 --> 00:13:14.720 align:start position:0%
And this is what happens when we add all
 

00:13:14.720 --> 00:13:17.190 align:start position:0%
And this is what happens when we add all
the<00:13:14.959><c> style</c><00:13:15.360><c> modifiers.</c><00:13:16.320><c> I</c><00:13:16.560><c> have</c><00:13:16.720><c> to</c><00:13:16.880><c> do</c><00:13:16.959><c> this</c>

00:13:17.190 --> 00:13:17.200 align:start position:0%
the style modifiers. I have to do this
 

00:13:17.200 --> 00:13:19.269 align:start position:0%
the style modifiers. I have to do this
slowly,<00:13:17.680><c> one</c><00:13:17.839><c> by</c><00:13:18.079><c> one,</c><00:13:18.399><c> because</c><00:13:18.639><c> of</c><00:13:18.800><c> the</c><00:13:18.959><c> sheer</c>

00:13:19.269 --> 00:13:19.279 align:start position:0%
slowly, one by one, because of the sheer
 

00:13:19.279 --> 00:13:21.509 align:start position:0%
slowly, one by one, because of the sheer
amount<00:13:19.519><c> of</c><00:13:19.680><c> cubes</c><00:13:20.079><c> in</c><00:13:20.320><c> each</c><00:13:20.480><c> iteration.</c><00:13:21.360><c> The</c>

00:13:21.509 --> 00:13:21.519 align:start position:0%
amount of cubes in each iteration. The
 

00:13:21.519 --> 00:13:23.910 align:start position:0%
amount of cubes in each iteration. The
engine<00:13:21.839><c> just</c><00:13:22.160><c> can't</c><00:13:22.480><c> keep</c><00:13:22.639><c> up</c><00:13:22.959><c> otherwise.</c><00:13:23.680><c> Of</c>

00:13:23.910 --> 00:13:23.920 align:start position:0%
engine just can't keep up otherwise. Of
 

00:13:23.920 --> 00:13:25.590 align:start position:0%
engine just can't keep up otherwise. Of
course,<00:13:24.160><c> there</c><00:13:24.399><c> are</c><00:13:24.639><c> more</c><00:13:24.800><c> efficient</c><00:13:25.200><c> ways</c><00:13:25.360><c> to</c>

00:13:25.590 --> 00:13:25.600 align:start position:0%
course, there are more efficient ways to
 

00:13:25.600 --> 00:13:27.990 align:start position:0%
course, there are more efficient ways to
represent<00:13:26.000><c> CSS,</c><00:13:26.560><c> but</c><00:13:26.800><c> I</c><00:13:26.959><c> decided</c><00:13:27.279><c> to</c><00:13:27.440><c> map</c><00:13:27.680><c> each</c>

00:13:27.990 --> 00:13:28.000 align:start position:0%
represent CSS, but I decided to map each
 

00:13:28.000 --> 00:13:30.230 align:start position:0%
represent CSS, but I decided to map each
one<00:13:28.320><c> property</c><00:13:28.720><c> to</c><00:13:28.959><c> one</c><00:13:29.200><c> cube</c><00:13:29.680><c> because</c><00:13:30.000><c> that</c>

00:13:30.230 --> 00:13:30.240 align:start position:0%
one property to one cube because that
 

00:13:30.240 --> 00:13:32.069 align:start position:0%
one property to one cube because that
kind<00:13:30.480><c> of</c><00:13:30.639><c> follows</c><00:13:30.959><c> the</c><00:13:31.120><c> same</c><00:13:31.360><c> atomic</c><00:13:31.760><c> concept</c>

00:13:32.069 --> 00:13:32.079 align:start position:0%
kind of follows the same atomic concept
 

00:13:32.079 --> 00:13:34.790 align:start position:0%
kind of follows the same atomic concept
as<00:13:32.320><c> the</c><00:13:32.560><c> document</c><00:13:32.959><c> itself.</c><00:13:33.920><c> Even</c><00:13:34.160><c> so,</c><00:13:34.560><c> the</c>

00:13:34.790 --> 00:13:34.800 align:start position:0%
as the document itself. Even so, the
 

00:13:34.800 --> 00:13:36.870 align:start position:0%
as the document itself. Even so, the
resulting<00:13:35.279><c> page</c><00:13:35.600><c> isn't</c><00:13:36.079><c> completely</c><00:13:36.480><c> accurate</c>

00:13:36.870 --> 00:13:36.880 align:start position:0%
resulting page isn't completely accurate
 

00:13:36.880 --> 00:13:39.269 align:start position:0%
resulting page isn't completely accurate
to<00:13:37.120><c> the</c><00:13:37.279><c> original.</c><00:13:37.839><c> The</c><00:13:38.000><c> duck.go</c><00:13:38.720><c> homepage</c>

00:13:39.269 --> 00:13:39.279 align:start position:0%
to the original. The duck.go homepage
 

00:13:39.279 --> 00:13:41.990 align:start position:0%
to the original. The duck.go homepage
uses<00:13:39.600><c> base</c><00:13:40.000><c> 64</c><00:13:40.560><c> images</c><00:13:41.120><c> which</c><00:13:41.360><c> are</c><00:13:41.519><c> basically</c>

00:13:41.990 --> 00:13:42.000 align:start position:0%
uses base 64 images which are basically
 

00:13:42.000 --> 00:13:43.750 align:start position:0%
uses base 64 images which are basically
long<00:13:42.320><c> strings</c><00:13:42.639><c> of</c><00:13:42.800><c> text</c><00:13:43.120><c> containing</c><00:13:43.600><c> the</c>

00:13:43.750 --> 00:13:43.760 align:start position:0%
long strings of text containing the
 

00:13:43.760 --> 00:13:46.389 align:start position:0%
long strings of text containing the
entire<00:13:44.160><c> image</c><00:13:44.560><c> data.</c><00:13:45.120><c> In</c><00:13:45.279><c> fact,</c><00:13:45.600><c> this</c><00:13:45.839><c> text</c><00:13:46.160><c> is</c>

00:13:46.389 --> 00:13:46.399 align:start position:0%
entire image data. In fact, this text is
 

00:13:46.399 --> 00:13:48.389 align:start position:0%
entire image data. In fact, this text is
longer<00:13:46.880><c> than</c><00:13:47.120><c> the</c><00:13:47.360><c> longest</c><00:13:47.839><c> permitted</c>

00:13:48.389 --> 00:13:48.399 align:start position:0%
longer than the longest permitted
 

00:13:48.399 --> 00:13:50.069 align:start position:0%
longer than the longest permitted
console<00:13:48.800><c> command,</c><00:13:49.360><c> which</c><00:13:49.600><c> is</c><00:13:49.680><c> why</c><00:13:49.839><c> the</c>

00:13:50.069 --> 00:13:50.079 align:start position:0%
console command, which is why the
 

00:13:50.079 --> 00:13:51.990 align:start position:0%
console command, which is why the
algorithm<00:13:50.560><c> just</c><00:13:50.880><c> ignores</c><00:13:51.200><c> it.</c><00:13:51.600><c> The</c><00:13:51.839><c> other</c>

00:13:51.990 --> 00:13:52.000 align:start position:0%
algorithm just ignores it. The other
 

00:13:52.000 --> 00:13:53.829 align:start position:0%
algorithm just ignores it. The other
issues<00:13:52.399><c> stem</c><00:13:52.639><c> from</c><00:13:52.800><c> an</c><00:13:52.959><c> incomplete</c><00:13:53.440><c> DOM</c>

00:13:53.829 --> 00:13:53.839 align:start position:0%
issues stem from an incomplete DOM
 

00:13:53.839 --> 00:13:56.150 align:start position:0%
issues stem from an incomplete DOM
representation,<00:13:54.800><c> but</c><00:13:55.040><c> I</c><00:13:55.279><c> honestly</c><00:13:55.760><c> can't</c><00:13:56.000><c> be</c>

00:13:56.150 --> 00:13:56.160 align:start position:0%
representation, but I honestly can't be
 

00:13:56.160 --> 00:13:57.910 align:start position:0%
representation, but I honestly can't be
brought<00:13:56.320><c> to</c><00:13:56.480><c> care</c><00:13:56.720><c> enough</c><00:13:56.959><c> to</c><00:13:57.199><c> fix</c><00:13:57.360><c> it.</c><00:13:57.680><c> The</c>

00:13:57.910 --> 00:13:57.920 align:start position:0%
brought to care enough to fix it. The
 

00:13:57.920 --> 00:14:00.069 align:start position:0%
brought to care enough to fix it. The
pillar<00:13:58.240><c> here</c><00:13:58.560><c> actually</c><00:13:58.959><c> extends</c><00:13:59.440><c> outside</c><00:13:59.920><c> of</c>

00:14:00.069 --> 00:14:00.079 align:start position:0%
pillar here actually extends outside of
 

00:14:00.079 --> 00:14:01.670 align:start position:0%
pillar here actually extends outside of
the<00:14:00.240><c> map,</c><00:14:00.560><c> and</c><00:14:00.800><c> the</c><00:14:00.959><c> only</c><00:14:01.120><c> reason</c><00:14:01.279><c> it's</c><00:14:01.519><c> not</c>

00:14:01.670 --> 00:14:01.680 align:start position:0%
the map, and the only reason it's not
 

00:14:01.680 --> 00:14:03.750 align:start position:0%
the map, and the only reason it's not
toppling<00:14:02.160><c> over</c><00:14:02.399><c> or</c><00:14:02.639><c> crashing</c><00:14:03.040><c> my</c><00:14:03.199><c> game</c><00:14:03.519><c> is</c>

00:14:03.750 --> 00:14:03.760 align:start position:0%
toppling over or crashing my game is
 

00:14:03.760 --> 00:14:05.590 align:start position:0%
toppling over or crashing my game is
because<00:14:03.920><c> I've</c><00:14:04.240><c> completely</c><00:14:04.720><c> disabled</c><00:14:05.279><c> physics</c>

00:14:05.590 --> 00:14:05.600 align:start position:0%
because I've completely disabled physics
 

00:14:05.600 --> 00:14:08.550 align:start position:0%
because I've completely disabled physics
simulation.<00:14:06.560><c> But</c><00:14:06.959><c> of</c><00:14:07.199><c> course,</c><00:14:07.600><c> just</c><00:14:07.839><c> for</c><00:14:08.079><c> fun,</c>

00:14:08.550 --> 00:14:08.560 align:start position:0%
simulation. But of course, just for fun,
 

00:14:08.560 --> 00:14:10.470 align:start position:0%
simulation. But of course, just for fun,
let's<00:14:08.800><c> see</c><00:14:08.959><c> what</c><00:14:09.199><c> happens</c><00:14:09.440><c> if</c><00:14:09.680><c> we</c><00:14:09.920><c> do</c><00:14:10.079><c> enable</c>

00:14:10.470 --> 00:14:10.480 align:start position:0%
let's see what happens if we do enable
 

00:14:10.480 --> 00:14:13.110 align:start position:0%
let's see what happens if we do enable
physics,<00:14:10.959><c> but</c><00:14:11.279><c> disable</c><00:14:11.760><c> gravity</c><00:14:12.320><c> and</c><00:14:12.560><c> fire</c><00:14:12.880><c> a</c>

00:14:13.110 --> 00:14:13.120 align:start position:0%
physics, but disable gravity and fire a
 

00:14:13.120 --> 00:14:19.710 align:start position:0%
physics, but disable gravity and fire a
rocket<00:14:13.519><c> at</c><00:14:13.760><c> the</c>

00:14:19.710 --> 00:14:19.720 align:start position:0%
 
 

00:14:19.720 --> 00:14:22.310 align:start position:0%
 
cubes.<00:14:20.720><c> The</c><00:14:20.959><c> game</c><00:14:21.199><c> actually</c><00:14:21.519><c> performs</c><00:14:22.079><c> better</c>

00:14:22.310 --> 00:14:22.320 align:start position:0%
cubes. The game actually performs better
 

00:14:22.320 --> 00:14:23.829 align:start position:0%
cubes. The game actually performs better
than<00:14:22.480><c> I</c><00:14:22.720><c> expected,</c><00:14:23.279><c> mostly</c><00:14:23.600><c> because</c>

00:14:23.829 --> 00:14:23.839 align:start position:0%
than I expected, mostly because
 

00:14:23.839 --> 00:14:25.590 align:start position:0%
than I expected, mostly because
disabling<00:14:24.320><c> the</c><00:14:24.560><c> gravity</c><00:14:24.880><c> leads</c><00:14:25.120><c> to</c><00:14:25.279><c> fewer</c>

00:14:25.590 --> 00:14:25.600 align:start position:0%
disabling the gravity leads to fewer
 

00:14:25.600 --> 00:14:28.710 align:start position:0%
disabling the gravity leads to fewer
collisions<00:14:26.079><c> overall.</c><00:14:26.959><c> And</c><00:14:27.720><c> unsurprisingly,</c>

00:14:28.710 --> 00:14:28.720 align:start position:0%
collisions overall. And unsurprisingly,
 

00:14:28.720 --> 00:14:31.189 align:start position:0%
collisions overall. And unsurprisingly,
this<00:14:29.120><c> completely</c><00:14:29.760><c> ruins</c><00:14:30.079><c> the</c><00:14:30.240><c> page</c><00:14:30.639><c> layout.</c>

00:14:31.189 --> 00:14:31.199 align:start position:0%
this completely ruins the page layout.
 

00:14:31.199 --> 00:14:32.949 align:start position:0%
this completely ruins the page layout.
Anyway,<00:14:31.680><c> I'll</c><00:14:31.920><c> leave</c><00:14:32.079><c> the</c><00:14:32.240><c> destruction</c><00:14:32.720><c> on</c>

00:14:32.949 --> 00:14:32.959 align:start position:0%
Anyway, I'll leave the destruction on
 

00:14:32.959 --> 00:14:35.110 align:start position:0%
Anyway, I'll leave the destruction on
screen<00:14:33.120><c> for</c><00:14:33.360><c> a</c><00:14:33.519><c> while</c><00:14:33.760><c> longer,</c><00:14:34.240><c> but</c><00:14:34.480><c> otherwise</c>

00:14:35.110 --> 00:14:35.120 align:start position:0%
screen for a while longer, but otherwise
 

00:14:35.120 --> 00:14:52.829 align:start position:0%
screen for a while longer, but otherwise
that's<00:14:35.440><c> all</c><00:14:35.680><c> from</c><00:14:35.920><c> me.</c><00:14:36.720><c> Thanks</c><00:14:36.959><c> for</c>

00:14:52.829 --> 00:14:52.839 align:start position:0%
 
 

00:14:52.839 --> 00:14:54.949 align:start position:0%
 
watching.<00:14:53.839><c> By</c><00:14:54.079><c> the</c><00:14:54.160><c> way,</c><00:14:54.399><c> at</c><00:14:54.480><c> least</c><00:14:54.720><c> on</c><00:14:54.880><c> the</c>

00:14:54.949 --> 00:14:54.959 align:start position:0%
watching. By the way, at least on the
 

00:14:54.959 --> 00:14:56.870 align:start position:0%
watching. By the way, at least on the
Linux<00:14:55.279><c> version,</c><00:14:55.680><c> Portal</c><00:14:56.079><c> 2</c><00:14:56.320><c> does</c><00:14:56.639><c> actually</c>

00:14:56.870 --> 00:14:56.880 align:start position:0%
Linux version, Portal 2 does actually
 

00:14:56.880 --> 00:14:58.710 align:start position:0%
Linux version, Portal 2 does actually
have<00:14:57.040><c> a</c><00:14:57.279><c> built-in</c><00:14:57.680><c> web</c><00:14:57.920><c> server.</c><00:14:58.320><c> It</c><00:14:58.560><c> just</c>

00:14:58.710 --> 00:14:58.720 align:start position:0%
have a built-in web server. It just
 

00:14:58.720 --> 00:15:00.710 align:start position:0%
have a built-in web server. It just
doesn't<00:14:58.959><c> output</c><00:14:59.440><c> anything</c><00:14:59.600><c> other</c><00:14:59.839><c> than</c><00:15:00.079><c> 404</c>

00:15:00.710 --> 00:15:00.720 align:start position:0%
doesn't output anything other than 404
 

00:15:00.720 --> 00:15:02.870 align:start position:0%
doesn't output anything other than 404
not<00:15:00.959><c> found.</c><00:15:01.279><c> So,</c><00:15:01.680><c> it's</c><00:15:02.000><c> completely</c><00:15:02.399><c> useless,</c>

00:15:02.870 --> 00:15:02.880 align:start position:0%
not found. So, it's completely useless,
 

00:15:02.880 --> 00:15:07.040 align:start position:0%
not found. So, it's completely useless,
but<00:15:03.279><c> fun</c><00:15:03.519><c> bit</c><00:15:03.680><c> of</c><00:15:03.760><c> trivia</c><00:15:04.160><c> nonetheless.</c>

