Hello! I wanted to ask, firstly, if this is the correct solution for loading the f1 database into the remote server for question 3.1… I am asking because there is no test to check at the end of the 3rd task.
hdbH : h : hopen 5099 f1data : get :../f1</span> <span class='"cm-variable"'>hdbH</span> (<span class='"cm-keyword"'>set</span>; <span class='"cm-symbol"'>
f1data; f1data) hdbH `f1data
In parallel, I have more questions about 3.2. Firstly, the .Q.sha1 function does not work on my column string (I have checked that I work with string columns, and not with symbol columns). Even if I write .Q.sha1 “Hello world!” I get an error, therefore I use the .Q.fc function and retrieve the following table (screenshot attached - the api column is also in the table, even though not seen from the picture). Moreover, why were we advised to check the Advanced IPC Module before attempting this exercise, I do not believe this has anything to do with IPC (we are even told to save the variable locally - only for 3.3 we need to load the table into the remote server). In the other case, I am wrong in my thinking, but I have no idea where. The code for 3.2 is shown below
show table : read0:../AdvancedCapstone.Data/users.txt</span> <span class='"cm-keyword"'>show</span> <span class='"cm-variable"'>myTable</span> <span class='"cm-keyword"'>:</span> ([<span class='"cm-variable"'>user</span> <span class='"cm-keyword"'>:</span> ()]; <span class='"cm-variable"'>password</span> <span class='"cm-keyword"'>:</span> (); <span class='"cm-variable"'>api</span> <span class='"cm-keyword"'>:</span> ()) <span class='"cm-variable"'>addToUsers</span> <span class='"cm-keyword"'>:</span> {[<span class='"cm-variable"'>newStr</span>] <span class='"cm-variable"'>words</span> <span class='"cm-keyword"'>:</span> <span class='"cm-string"'>"\t"</span> <span class='"cm-keyword"'>vs</span> <span class='"cm-variable"'>newStr</span>; <span class='"cm-keyword"'>if</span>[[<span class='"cm-variable"'>words</span>[<span class='"cm-number"'>0</span>] <span class='"cm-keyword"'>like</span> <span class='"cm-string"'>"user"</span>] <span class='"cm-keyword"'>=</span> <span class='"cm-number"'>0b</span>; <span class='"cm-symbol"'>
myTable insert (</span><span class='"cm-keyword"'>$</span><span class='"cm-variable"'>words</span>[<span class='"cm-number"'>0</span>]; <span class='"cm-symbol"'>
$words[1]; `$words[2])]; } addToUsers each table myTable : update string user, string password, string api from myTable .perm.users : update .Q.fc password from myTable show .perm.users