Posts by le314u • 128 points
19 posts
-
0
votes1
answer6
viewsA: Conversion . fodt -> . pdf
Based on https://askubuntu.com/questions/60778/how-can-i-convert-an-odt-file-to-a-pdf only use libreoffice package via command line libreoffice --headless --convert-to pdf *.fodt…
libreofficeanswered le314u 128 -
0
votes1
answer6
viewsQ: Conversion . fodt -> . pdf
I have several files . fodt (libre office) and need to convert to . pdf Somebody knows something that can do that? Can be any language library or a specific linux program
libreofficeasked le314u 128 -
0
votes1
answer105
viewsQ: Error while rejecting promise within call back
By instantiating the following Object class Output { constructor(filePath) { this.stream = undefined this.nameFile = filePath this.fileOk = false this.file = this.createFile(this.nameFile)…
javascriptasked le314u 128 -
1
votes3
answers144
viewsA: Is there any way to pass the parameters to a constant function?
you can encapsulate your function def novoNome(ParametroMutavel): return oldFunction(Parametrofixo, ParametroMutavel) Example with your code def newFunction(): return InfluxDBClient('localhost',…
-
0
votes2
answers38
viewsA: I would like to know how to get the value of the amount of commutations in a list sort. without using Sorted()
It is only create a counter that will be accounted for only when there is the exchange, it seems to me that the language is python Whenever there is an exchange it is made and returns 1 otherwise…
-
1
votes2
answers48
viewsA: How to run a function only once and stop it if an onBlur occurs?
An idea that solves the problem but is not very smart is you create a global variable that serves as a flag let’s call that flag editCodigo = true you can create event manager for f_cod that instead…
-
0
votes2
answers139
viewsA: Is it possible to rewrite any code that uses pointers (C#) without using pointers in Node.js?
I’ll give you a very superfluous answer but it’s easy to understand, (sorry the people who like things to the letter) The first point is you understand what pointers do in languages like c Pointers…
-
0
votes5
answers597
viewsA: JSON.stringify() method
given the object membro = { "NProjetos": [ { "idProjeto": 2, "nomeProjetos": "SGI" } ], "cargo": "Desenvolvedor", "descricao": "Desenvolvedor PHP, JAVA", "id": 2, "imgMembros": [ { "idImg": 2,…
-
0
votes3
answers819
viewsA: Update content of JSON file
I can help you with logic: Load the file contents Turn content into JSON Change the json object in memory Save the JSON object ('overwriting the file') this way you won’t have to worry about making…
-
-1
votes2
answers740
viewsA: Multiply a matrix by a vector
Matrix (3x3) * Vector (3x1) = vector(3x1) In its code during multiplication in the for Indice j or be the innermost you pass it 3 times and overwrite 3 times saving only the value of vetor2[i] =…
-
0
votes1
answer26
viewsQ: Make Shellscript act as pipLine
How can I get my script to act in a pipeline example: ls|./meuScript|grep 'Mensagem Qualquer' what './meuScript' has to have to act as a filter ?
-
0
votes3
answers1508
viewsA: Python Vector Fill 3
entrada1 = [float(numero) for numero in entrada1] entra1 = entrada1 will receive the following content [....] a vector float(numero) this 'parsing' number on a float or is transforming the content…
-
0
votes1
answer44
viewsQ: Pass generic form parameters through an array
Having a variable number of arguments and a generic function. I want to do something like: f(g,vetorArgs){ return ()=>{ //...codigo arbitrario…
javascriptasked le314u 128 -
0
votes1
answer90
viewsQ: How to make a div fill the remaining width with pure Css
I have the following html code: <div class='pai'> <div class='filho1'> Texto Qualquer que eu não sei o tamanho de caracteres </div> <div class='filho2'> Componente que deve…
-
0
votes0
answers21
viewsQ: How to send POST data from the front to the back
I am developing an application with nodejs/express and I came across the following problem how the data is sent from the front to the back By using the Postman that is used to test the requests I…
-
0
votes1
answer161
viewsA: Divide sum of values of a vector
next time post the code itself and not an image I do not know if I understood very well but for example you receive the number 10,2,3,5 and that divide them in order ( ( ( 10/2 )/3 )/5 ).... that’s…
-
0
votes7
answers49622
viewsA: How to add elements from a list and return the result as an integer?
as our friend @Antony Gabriel reported, should be a more didactic and not so functional question, to sum all elements of a vector the first step is to go through all elements a 'n' ways of doing but…
-
2
votes1
answer202
viewsA: How do I use variable value outside of your callback? Javascript
plays the res.send({ret: retorno}) into the request callback function what is happening is that request is asynchronous when the Node engine is running its code it reads the request makes an…
-
5
votes2
answers104
viewsQ: Difficulty in interpreting Arrow functions that return Arrow functions in Javascript
I was seeing Javascript dependency injection and came across the following syntax: () => () => {} I know that () => {} is a Arrow Function which, in short, is a different way of creating a…