All Questions

3
answers

How to transform a bool into int?

I'm trying to do the following: if the guess value ( _TextValPalite ) is enabled then it will check if that number is not different from a minimum value and a maximum value. Ex: between 1 and 10 I can write 5, but not 11. if(_TextValP...
asked on 20.05.2016 / 14:45
3
answers

Rename gitignore.txt to .gitignore

I created a gitignore file in Windows so that some unnecessary files will not be uploaded to GitHub. However, this file has the extension ".txt" ( gitignore.txt ). I want to leave it only as .gitignore . How can I do this? Is ther...
asked on 29.03.2016 / 15:25
3
answers

Get the extension of a file

Hello, I tried to use pathinfo() but I think I did not use it correctly, I would like to know how to use it. $arquivo_up = $_FILES['arquivo']['name']; $extensao = pathinfo($arquivo_up); $extensao = $extensao['extension']; if($extensao...
asked on 05.05.2015 / 19:06
3
answers

In PHP, is NULL a constant or a keyword?

In PHP, is NULL a constant or a keyword? I've heard that it's a constant, but it seems like the behavior of PHP keywords (which are not case-sensitive)? Example: echo NULL; echo null; exit('teste'); EXIT('teste');     
asked on 15.07.2015 / 16:25
1
answer

What is the difference between reset and clear in Terminal?

No Terminal , what is the difference between the reset and clear ? I'm using Terminal of Ubuntu , and apparently the two commands clear the screen.     
asked on 02.09.2015 / 22:00
2
answers

How to validate Google reCaptcha / noCaptcha in PHP?

How do I submit the POST that Google requests and thus make my field validated?     
asked on 14.05.2015 / 21:32
1
answer

Design Patterns - DTO, POCO, MODEL

What's the difference between DTO, POCO, MODEL? Because I'm developing an application with layered separation, DAL, BLL and UI.     
asked on 27.07.2015 / 21:41
1
answer

What is Array.GetLength for?

To know the size of a vector, I can only use nomedovetor.Length , right? I saw an example in a for structure, where GetLength(0) or GetLength(1) was used to capture the dimensions of a array of rows and columns....
asked on 31.05.2015 / 16:18
2
answers

How to define the size of the vector dynamically in C?

In C language I can define a vector by specifying the size for example int vet[3]; how can I set the size of the vector dynamic, for example asking the user to inform the size of the vector ?     
asked on 22.08.2015 / 03:58
2
answers

Error adding CSS / JS to the head of a page in JSF

I'm trying to include a CSS in a JSF view. However, I am not succeeding. Below is an excerpt from the view: <h:head> <h:outputStylesheet library="css" name="bootstrap.css" /> </h:head> The version of JSF is 2.2.12....
asked on 27.07.2015 / 21:54