Posts by Bruno Kim • 166 points
9 posts
-
0
votes3
answers100
viewsA: What are the advantages of using a database instead of a JSON file to write data?
I believe that the answer to this question goes through the classification of the data according to its relation in the system diagram: .---------. Entrada -> | Sistema | -> Saída ^…
-
0
votes2
answers65
viewsA: How to search a list item and return in a message?
His most immediate mistake is that index is a method of list. When you use responses.index as a value for the method ctx.channel.send(...), you’re just sending the method index, and not an…
-
0
votes2
answers255
viewsA: How to make a variable appear in the write function in Prolog
You can use the format function, which has a printf-like syntax of C, except where C/Java uses '%', Prolog uses '~': % Note que podemos usar outros caracteres além de ASCII ;) cão(nome(trovão),…
-
0
votes2
answers319
viewsA: Is it possible to create a website without markup language?
A website is simply a file that a remote server responds to via an HTTP request and is rendered by the browser, so I have some ideas: Use a return MIME format other than HTML, but that every browser…
-
0
votes1
answer65
viewsA: Attributeerror: 'Function' Object has no attribute 'values'
The variable values is not initialized before the call to main(...) on line 23. Is this exactly the code you are running? The error message is on line 24, but this code goes to line 23 (if I counted…
-
0
votes1
answer21
viewsA: Get detailed path in PROLOG wide search
Its implementation is not of search in width, but of depth. Prolog’s SLD resolution has this characteristic of always looking for the rules in the order they are presented in the program, which in…
-
0
votes1
answer25
viewsA: You doubt it, why isn’t it allowed?
The rules in Prolog have only one consequent (the "head" of the clause). In its example, it reads "if q(X) and y(X) are valid, k(X), p(X) and y(X) are valid". Ignoring circular logic in y(X), you…
-
3
votes6
answers90846
viewsA: Do I use PHP inside an HTML or an HTML inside a PHP?
I imagine that’s not exactly your question, but the ideal is to keep the mix between HTML and PHP to a minimum. This makes it easy to change things on both sides, so always seek to write a PHP file…
-
2
votes2
answers334
viewsA: Loop to perform calculation in C Pagerank
Some notes on style: Utilize for when the number of iterations is known beforehand, and let while for when you must reach a condition in an unknown number of steps. State the variables at the…