All Questions

1
answer

How did the command-line interface (CLI) come about and what was the need?

If we look at it until about 10 years ago, I do not remember having this feature for developing applications through the CLI (command line interface) on Windows operating systems. Examples used today: Ionic CLI, Angular CLI, Cordova CLI...
asked on 04.07.2018 / 20:10
3
answers

Assign values to arrays

I noticed that by incrementing a value to a array using the following syntax: let array = []; array['nomeIndice'] = 10; length of this array is not incremented, and remains in 0 , even though array contains...
asked on 12.08.2018 / 18:15
3
answers

In trigger we have INSERTED, DELETED, BUT and "UPDATED"?

Example scenario: I have the table / fields: documentos id documento pessoa item qtd valor The system gives INSERT and then UPDATE in this table in a contin...
asked on 28.08.2018 / 15:27
3
answers

Char to integer conversion in C #

Reading a blog article, I came across the following syntax for converting char to integer: string value = "123"; foreach (var c in value) { if (char.IsDigit(c)) { int digito = c - '0'; } } I wonder why this conversion wo...
asked on 24.05.2018 / 15:52
1
answer

How can lambda expressions handle stack variables?

I'm learning C # and I'm reading about lambdas expressions. The question that remained is: how does this work and why does it work? public delegate void Test(); public void Foobar(ref Test del) { int var = 10; del...
asked on 12.06.2018 / 18:49
2
answers

Expression-bodied is recommended? Does it have performance differences?

To what extent is it recommended, or even good practice, to use expression-bodied ? I know that expression-bodied allow properties, methods, operators, and other function members to have bodies defined using lambda expressions ( =>...
asked on 20.08.2018 / 20:33
3
answers

RETURN THE SUM OF MAXIMUM 3 VALUES IN SQL

I have a table and need to return the following: check based on the recipient column, add up the 3 largest amounts of that recipient, bring in the query only if the sum of the 3 largest are > = 1024: CREATE TABLE TRANSFERS( SENDER VARCHAR2(...
asked on 12.06.2018 / 19:56
3
answers

How to add a div or p within a table

Well I have a table that I set up with css. I need to add a note within a few lines, ie it will not be on all lines. The problem and I'm not getting it, I tried to post the doubt here in another way, but the solution was not very good. Goo...
asked on 07.02.2017 / 14:04
1
answer

How to save a video captured by webcam without showing it using OpenCV in python?

I'm starting to learn Computer Vision. I'm using the OpenCV module for Python 3. Reading tutorials, I discovered the following script: import cv2 cap = cv2.VideoCapture(0) fourcc = cv2.VideoWriter_fourcc(*'DIVX') out = cv2.VideoWriter('outpu...
asked on 15.01.2017 / 17:24
2
answers

How to debug shell script in linux?

I'm new to linux, and I'm learning shell script and my question is as follows. When I want to debug something in PHP, for example, I put a breakpoint in the code and run the same with debug on, I wanted to know how can I do this with a shel...
asked on 28.02.2017 / 03:52