All Questions

3
answers

regex return false?

console.log(rule); // rule = max18 // rule = max120 // rule = max6 var pattMax = new RegExp('^(max).(\d{1,3})'); pattMax.test(rule); //false? if(pattMax.test(rule)){ console.log('é max seguido de 1 á 3 digitos'); }     
asked on 14.08.2016 / 05:50
3
answers

What is the function of the 'do' statement?

What does 'do' alone expect and do? do ... end     
asked on 28.02.2016 / 17:03
3
answers

Drag and Change the Position of a GroupBox at Runtime

I have a groupbox that I want the user to be able to drag and change the position at runtime, does anyone figure out any way to do that?     
asked on 17.10.2017 / 19:34
2
answers

Why do not you need the '&' in 'scanf ();'?

I learned that the variable always has to have & , but in this example it does not need to and still shows the result. Why did not you need & no scanf(); ? #include <stdio.h> int main(void) { int int1, int...
asked on 12.08.2018 / 23:52
3
answers

What is JBOSS?

I'm reading a book on Distributed Applications and he occasionally references JBoss. I would like to know what it consists of and what is its usefulness?     
asked on 10.12.2015 / 15:53
4
answers

How can I generate a 7-character alphanumeric key?

How can I generate a key with 7 alpha-numeric characters, completely random in PHP? In other words, I want to make a key with completely random numbers and capital letters. I've tried using the rand, but the rand only generates numbers.  ...
asked on 07.07.2016 / 04:52
3
answers

How to mount SELECT?

I have a Products table with: ProCodigo - Primary Key de Produto ProNome And another Price History table with: HisCodigo - Primary Key de Histórico HisData HisPreco ProCodigo - Foreign Key de Produto I need to mount a SELECT that bring...
asked on 22.01.2016 / 18:06
2
answers

Count how many pixels of a color the image has

I'm working on a solution for tattoo studios. I would like to know how it would be possible to determine how many pixels of a given color exists in the image inserted in pictureBox1 . In this image, for example, would it be possible...
asked on 28.12.2015 / 01:50
2
answers

What happens if I do not specify {}?

I have this code that works normally: if($time <= time()) { if($time != 0) $Server->wsSend(1, 'perfect world'); foreach ( $Server->wsClients as $id => $client ) $time = time() + $adminMess...
asked on 15.03.2015 / 16:52
2
answers

What is the difference between SET and ENUM in MySQL?

What are the differences between SET and ENUM in MySQL? And in which situations are both applied in the best way?     
asked on 28.09.2017 / 16:35