All Questions

2
answers

Array count in VUE with conditional

I need to figure out how many records in the array below have the field active as true, how can I do it? [ { "name": "Quero Vender", "active": false }, { "name": "Quero Comprar","active": false } ]     
asked on 13.12.2018 / 21:14
0
answers

How to avoid Paper feed [closed]

Hello, I'm using a non-fiscal Engeworks thermal printer to print payment vouchers, I'm using the Generic Text Only driver. The problem is that it prints the vouchers as if they were whole pages and I wanted it to print only what was needed, f...
asked on 03.08.2015 / 14:30
3
answers

Open Form2 side by side with Form1 simultaneously and close or minimize both simultaneously

I need to open 2 forms simultaneously next to each other and then when I close or minimize one of them, the 2 are closed / minimized simultaneously. I looked for some idea on several sites and all I found so far was the following code that shows...
asked on 22.09.2015 / 02:00
2
answers

How to optimize an image for web?

On my site someone uploads an image (eg 800x600). I would like to save this image to a folder, but reducing the size to disk as much as possible without losing much quality. How can I do this?     
asked on 15.12.2013 / 18:01
2
answers

How to find a collation of a table or bank using a SQL query?

I can perfectly visualize the collation of a given table or database by PHPMyAdmin. But if I did not have this tool mentioned above, how could I do to find the collation by doing a SQL query manually?     
asked on 13.03.2017 / 14:03
3
answers

Method close () in try and catch blocks is required?

I'm studying Java with database and after seeing a little more about this close() method and this protected block, I was a bit confused, because in some codes and articles I see that close() was not used in try / catch blocks becau...
asked on 25.07.2018 / 15:33
4
answers

REGEX JAVA Recognize different character group

I'm breaking my head at link I'm trying to make a REGEX code that validates some .txt where it does not contain the JJ or M3 characters at the end of the line. For example: I have the 3 .txt with the lines below: .txt 1 4481; 7783...
asked on 25.10.2017 / 21:22
3
answers

How to put the regression line on a graph?

Suppose a linear regression model such as the following: set.seed(1) x <- rnorm(100) y <- rnorm(100) + 2*x +10 modelo <- lm(y~x) If I plot y against x, how do I include the regression line in the chart? plot(y~x)     
asked on 18.02.2014 / 14:50
2
answers

Safety Angular Application

I have questions about security, I'll illustrate: In my front , in my controller I have this method: $scope.getAllpessoaGrid = function (strPesquisa, tipopessoa) { $scope.progressbar.start(); $http.post("/pessoa/getAll", {...
asked on 06.04.2017 / 22:46
3
answers

Format integer value in format "000"

In vb6 I used the following line of code that allowed to format the value "1" to "001" Format$(Nivel, "000") In C # I'm using the following with similar nomenclature. string.Format("000", 1); However, the return value is always "00...
asked on 13.03.2018 / 15:05