Posts by Gabriel Ferrarini • 227 points
4 posts
-
4
votes1
answer2934
viewsA: How to pass parameters on events in React?
You need to create another component and pass the item as props: import React from 'react' import ReactDOM from 'react-dom' const items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] class MyButton extends…
-
-1
votes1
answer392
viewsA: How to calculate point cards
I think the best way would be: Discover the amount of hours worked at night (no reduction) Transfore to decimal. Ex: 3h25m is 3.42 (25/60=0.42) Multiply this value by 1.142857142857143. This is the…
-
1
votes3
answers5013
viewsA: Subtraction of multiple selects
I didn’t get to test, but try with subselects. SELECT A.totalreceber, B.totalpagar, C.totalcheques FROM ((SELECT dr.coddocbase as totalreceber, sum (dr.valortitulo) from fin_docbase dbr join…
sqlanswered Gabriel Ferrarini 227 -
4
votes1
answer105
viewsA: Encryption error in c#
In the Encryption method you are using the Createdecryptor method instead of Createencryptor. Change: CryptoStream encryptionStream = new CryptoStream(tempStream, encryptor.CreateDecryptor(key, iv),…