H3S1: Decoding payload<Mozilla, a-r>:
Hu: By the time that I got to this information #, I already knew that # I wanted to decode payload in Web-Sockets, and that this was a vital | component of all message | delivery, which is the core function of the protocol #
However, extracting information from these so-called “frames” of data is a not-so-magical experience. Although all frames follow the same specific format, data going from the client to the server is masked using XOR encryption (with a 32-bit key).
Hu: The analogous | noun in the previous sentence to “frames” in the first sentence of this quote # is “messages”, so I’m going to assume that frames, of data, is a component of “messages“, and check this assumption, as I continue to read. The next sentence is a relief, because it says that I only need to figure out this decoding | process one-time, since “all frames follow the same specific format”, and I will be writing a function that is called repetitively. The third clause # introduces a new | term, that I may have to research deeper, but I’m going to move forward, for now.
H4S1: Decoding payload length | specifier#:
Read bits 9-15 (inclusive) and interpret that as an unsigned integer. If it’s 125 or less, then that’s the length; you’re done. If it’s 126, go to step 2. If it’s 127, go to step 3.
Hu: 9-15 inclusive is 7 bits, which is also what the frame | format<WP.MIC-H2S66,H3S1.H4S5-H5S1> specifies; moreover, we can see from reading the frame | format chart, that the initiation of the payload-len grid starts at 9, and ends at 1|5.
H5S1: How 7 bits can encode an integer of 3 decimal-points<Turing>:
// investigate
H3S2: UInt64-Struct<Microsoft-learn, a-r>:
<Microsoft>: Represents a 64-bit unsigned integer. CS.utah.edu<x.ref-fbno!>: Unsigned Integers (often called “uints”) are just like integers (whole numbers) but have the property that they don’t have a + or – sign associated with them. Thus they are always non-negative (zero or positive). We use uint’s when we know the value we are counting will always be non-negative. Hu: OK, so UInt, or unsigned integer, just means whole number, in comp-sci. <Microsoft>: The UInt64 value type represents unsigned integers with values ranging from 0 to 18,446,744,073,709,551,615<quintillion>.
H4S1: UInt16-Struct:
<Microsoft-learn,a-r>: Represents a 16-bit unsigned integer. The UInt16 value type represents unsigned integers with values ranging from 0 to 65535.<WP.MIC-H2S87>
H3S3: Rasmus Lerdorf 2019 talk<a-r>:
1) Welcome! This panel will contain notes from the talk. ๐๐งฒ๐ง๐ฆ
wordpress.materialinchess.com | H2S70, H2S67, H2S47: PHP/HTML multithreading.
Windows | Apache | MySQL | PHP. Lerdorf valued having these 4 elements in an equal proportion 9:00. :Embedding PHP into Apache was huge: #v-t
19:20 PHP is unique in its implementation of global variables.
Some functions allow you to do what was already possible before, but faster, and in fewer steps 31:00
33:50: Read the migration notes for each PHP update, otherwise knowledge technical debt will accumulate.
35:30 Some code updates come from making optimizations, by removing unnecessary conditions #
40:01 Req/s increased from 154 to 520 from 2009 to 2018. Latency decreased from 130 to 38 ms. Memory decreased from 140 mb to 15 between PHP 5.3 to 7.3.
46:50 Ph-D thesis idea: perf/callgrind, memory visualization[sounds-familiar]
50:00 His lone Ph-D students, or guys at PHP-core, and guys like Heinz Schweitzer, need someone to talk to ๐
52:00 Visual code analysis: some of the relationships between PHP built-ins are explicit, and Lerdorf prefers, in web programming, to be using functions only in the ways they are explicitly connected, or implicitly, rather than including, such as in the same function body, and visually, adjacently, unrelated, elements. We can call this [conditionally-explicit programming]. Well-written 3-5 lines code snippets, are what is worth showing off right now. This is consistent with what is found in PHP-docs.
1:01:00: PDE: Wants PHP developers to learn C(chain.of-know), will broaden the number of users that can maintain extensions. This is world-changing, like the web, for Lerdorf. Community needs adoption. C handles class types changes[familiar], as well as argument processing, what happens, within that part of the function. In general, Lerdorf has the position, in society, of a professor, but without that designation. CU?
1:08:45: Key adoption barrier: people cannot learn vocab words fast enough, even in adulthood.
1:10:45: Web dev at heart, likes the fact that people use his products.
H3S4: Server.db-domain migration considerations:
H4S1: URL-porting:
Identifying in HTML, most-all links can be rel, and in PHP, as well, apart-Echo<URL~var><12.31-22,3rd.22,migration |
H4S2: SQL.db-naming,consistency:
<Host.Gator-rename><12.31-22,3rd.22,migration |

in php_includes, my.sql-includes, this line occurs several times thematically:
$sql = "SELECT post_ID FROM dash_{$session_username}_posts ORDER BY post_ID DESC LIMIT 1";
Hu: There is a component of the table.name–referenced from PHP that is variable to the $_SESSION or $_GET supers<a-r>
H4S3: Displayed.page/post-considerations:
H5S1: Dash-edit: Tons of concerns, due to removal of grid, and up-dependencies separately to SESSION, and to mysql-inc and its incs # multi.threading<WP.MIC-H2S47>-makes any individ hard.to-touch<12.31-22,3rd.22,migration |
H4S4: Included-considerations:
Much of the code in my include-files are functioned–in<PHP>so adaptation-load is reduced, however, some of the functions are inter–dependent, <WP.MIC-H2S116,H3S2><12.31-22,3rd.22,migration |
H4S5: Redir-considerations
UNCLEAR<12.31-22,3rd.22,migration |
H4S6: Documented considerations:
In P.dash-paradigm<late.22->test-URLs are displayed a-variably, and absolute, in <!– test-url tag, at bottom doc; these were manually adjusted. <12.31-22,3rd.22,migration |
References:
https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers
https://learn.microsoft.com/en-us/dotnet/api/system.uint64?view=net-7.0
https://www.hostgator.com/help/article/how-to-rename-database-tables-in-phpmyadmin
https://www.w3schools.com/PHP/php_superglobals_get.asp | https://www.php.net/manual/en/reserved.variables.session.php