All Questions

3
answers

String contains a certain word

I would like to check if a string contains a certain word. String = "oi\ntchau\nhi\nbye" The string is divided by \n (skip line), I would like to check between each line, if it contains the entire word, I already tried it and sti...
asked on 05.09.2014 / 09:17
7
answers

Split () integer with Javascript

Valor = 19.90; MyArray = valor.split("."); The code hangs, integer variable, however, Valor = "19.90"; MyArray = valor.split("."); alert(MyArray[0]) = 19; alert(MyArray[1]) = 90; I would like to know how to use the split int variable,...
asked on 21.03.2014 / 16:41
2
answers

Display zero on the left using the ToString method

I have more or less the following code implemented in C #: using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Teste { public class Program { public static void Ma...
asked on 31.03.2017 / 07:52
3
answers

How to get information from a SSL certificate via C #?

How to get information (expiration date for example) from an SSL certificate via C #?     
asked on 25.03.2015 / 21:14
2
answers

What would DSN be?

Whenever I see someone preparing some database configuration, I see the term DSN appearing. I see this happening in the parameters of PDO (class to connect to Database) of PHP. Example: $dsn = 'mysql:host=localhost; dbname=test';...
asked on 15.12.2016 / 14:47
3
answers

How to generate large random numbers in C ++?

I'm trying to make a random number generator of [0,4], including these, but the problem is my teacher indicated that I used 4 million to generate random numbers and that value exceeds% with% / strong>, then there are two questions: How to g...
asked on 16.08.2017 / 19:00
4
answers

String Concatenation in SQL

I make a query in a table in my MySQL database that returns the following fields: usuarioId nome sobrenome idade sexo escolaridade modeloNome hora Follow the sql below: SELECT sv...
asked on 15.01.2014 / 16:13
1
answer

What does the "OR" operator do in an Enum?

What does the logical operator | (or) do in that Enum? public enum Status { Running = 1, Inactive = 2, Error = Inactive | Running }     
asked on 10.07.2014 / 21:19
2
answers

What is the difference between mysql-server and mysql-client?

It is said that using the apt-get install mariadb-server command would also install mariadb-cliente . I understand that the server can be said to be where the data persists, however I lack an understanding of the client ....
asked on 15.09.2017 / 15:49
5
answers

Should I check dates with DateTime or regex?

I've seen two different ways to check if a date is valid. In a "modern" way, with DateTime : $date="2014-02-04"; $dt = DateTime::createFromFormat("Y-m-d", $date); return $dt !== false && !array_sum($dt->getLastErrors());...
asked on 04.02.2014 / 19:42