Questions tagged as 'prisma'

2
answers

What is Prism?

What prism ray is this? Is it to eat? Or to program? I've never heard of it. Tag: prism I do not want to know everything, but basic information about what that is.     
asked by 13.07.2017 / 19:49
1
answer

How to read a file in Prism?

I was trying to read a file in Prism but I do not find the correct function: local arquivo = 'arquivo.txt' imprima(arquivo) On moon, it would be something like local file = 'file.txt'; print(file); .     
asked by 11.07.2017 / 20:42
2
answers

How to convert string to hexadecimal?

I want to convert a string into hexadecimal: cadeia = "blablabla"     
asked by 13.07.2017 / 20:28
1
answer

Prism - How to convert integer to binary?

I need a function in the Prism language that converts an integer to its binary form. For example, to convert 255 to 11111111 . I have to create a formula such as link tab = {} // declarando uma tabel...
asked by 09.10.2017 / 02:54
0
answers

How to calculate Mbps?

I'm getting information from the interface of an internet modem: TXBytes, RXBytes, Uptime It gives me a json entry: Entrada=([[ { "uptime":"15423", "txbytes":"1147089", "rxbytes":"23124634" } ]]) Tab = json.cod(Entrada)...
asked by 11.10.2017 / 05:25
1
answer

Prism - How to handle semicolons "csv"?

The title of the question refers to csv because it is widely used and has the same logic but my server produces the following output: ifname | username | calling-sid | ip | type | comp | state | uptime...
asked by 10.10.2017 / 16:19
1
answer

How to declare string strings?

Moon is written in C logo shares the American Standard Code for ASCII Information Exchange Accepts array key declaration with accent: rafael = {} rafael["é"]="eu" print(rafael["é"]) --saída: eu But how to do string declaration with...
asked by 16.10.2017 / 03:37
1
answer

How to convert a table to json?

The table looks like this: tab = { semana={"seg","ter","qua"}, mês={"jan","fev","mar"}, modelo={ casaco={"pele","couro"} } } I need the output to be in json format for javascript to int...
asked by 14.07.2017 / 16:45