All Questions

2
answers

How to make a gradient at the ends of a line, with CSS?

Probably this may be a repeated question, but as I do not know the name of the effect I can not find anything about it, the effect I want to do on the border is exactly the same as the image below: How can I do this? What's his name?...
asked on 20.12.2016 / 15:07
2
answers

How to call different modals, without using a database

I'm having some difficulties, I know this is not the ideal way, but it's what I need right now. I have a list medicos and I need to call a different modal for each of them, without a static database. Follow my code: <section class...
asked on 19.12.2016 / 15:13
2
answers

Generate a random profession for Online Players

I am creating a small game (Android) to play me some more friends of mine. The game is called "Cops and Thieves". At least it is necessary to have 4 players in which one of them will be the POLICE, another will be the CRIMINAL, another will be t...
asked on 23.12.2016 / 10:05
2
answers

What is the difference between using password_default and password_bcrypt?

Searching for hash, I noticed that the second parameter of the password_hash function has two options, PASSWORD_DEFAULT and PASSWORD_BCRYPT , Exactly which of the two should I give preference to use? It should probably...
asked on 04.04.2017 / 15:40
2
answers

Script js does not interrupt submit form

Personally I'm having a problem with an algorithm in jquery, that of uploading files with ajax without refreshing the page. I do not know why when I put return false; at the beginning of the algorithm the submit is canceled but consequ...
asked on 03.01.2017 / 20:36
1
answer

What is the iterable type of PHP 7.1?

I was looking at some code to test PHP 7.1 and found the following snippet: function doLoop(iterable $iterable) { foreach ($iterable as $value) { echo $value; } } $data = [1, 2, 3, 4]; doLoop($data); With iterable I...
asked on 10.04.2017 / 03:15
1
answer

What is a template engine?

Little by little, I learned about the template engine in PHP. By the way, I understood what it is, but I have doubts. Is it a "programming language?" I put quotation marks on a website:    Purpose       At first, a template language or...
asked on 17.07.2017 / 16:03
2
answers

Builders with this, which means

This constructor has this , what does it really mean? public class HelpController : Controller { private const string ErrorViewName = "Error"; public HelpController() : this(GlobalConfiguration.Configuration) { }...
asked on 21.05.2017 / 17:36
2
answers

How do I make a function wait for the $ http result?

I'm having trouble with the following code: $http({ method: 'POST', url: '/publicacao/', data: $scope.publicacao, headers: {'Content-Type': 'application/json'} }).success(function(publicacao) { $scope.publicacao = publicaca...
asked on 29.01.2017 / 21:29
2
answers

Long click with JavaScript

On Android there is the OnLongClickListener method in which you can hold your finger on a View and an action is triggered (if the developer sets an action) if that click stays for a little over 1 second. p> I have this small tabl...
asked on 19.06.2017 / 02:24