All Questions

3
answers

Difference between PATH_SEPARATOR and DIRECTORY_SEPARATOR

The documentation on this is rather vague, the little that exists does not clearly clarify the difference between the use and purpose of the following two PHP constants: PATH_SEPARATOR and DIRECTORY_SEPARATOR At first glance, it seems...
asked on 22.01.2014 / 12:19
1
answer

How to use virtualenv to manage the dependencies of a Python application?

I need to manage the dependencies of a Python application I'm developing, so it's easy for other team developers to be able to work on the project using the same versions of the packages I'm using. Can I do this with virtualenv ? How?...
asked on 11.12.2013 / 17:50
3
answers

A base64 image loads faster than a url?

I'm developing a page where I need to have the images displayed only after loading them. And, in order to keep the space of the images empty, I thought of using some image of "loader". So, I thought it would not do any good to display imag...
asked on 28.10.2015 / 16:48
2
answers

What is the "?." operator?

I'm seeing the functions that C # 6.0 brought, and an example of code appeared: C # 5.0 var vendor = new Company(); var location = default(string); if (vendor != null) if (vendor.ContactPerson != null) if (vendor.ContactPerson.HomeAdd...
asked on 11.10.2015 / 03:26
5
answers

Operator "||" in JavaScript variables

Recently reading the code for a plugin , I noticed the definition of variables and objects using the || JavaScript operator. Example: function ola(nome){ nome = nome || "estranho"; return "Olá, " + nome; } I've never seen th...
asked on 24.10.2014 / 14:57
6
answers

Regular expression for e-mail validation

I'm trying to create a regular expression to validate any email, I wrote the expression below, but it is not working as expected: var parse_email = /^[a-z0-9.]+@[a-z0-9]+\.[a-z]+\.([a-z]+)?$/i; What I expected from each section: [a-...
asked on 28.12.2013 / 20:00
4
answers

What is the priority of HTML? "Id" or "class"?

I'd like to know if HTML treats id or class as priority. For example, if I'm setting up my structure and do the following: <div class="teste1" id="teste2">TESTE</div> What will he do? Accept what was stated firs...
asked on 10.11.2014 / 12:08
4
answers

Create a triangle with CSS

The squares that show the color of an item can have up to two colors that in the latter case should be presented as below: Both colors are applied in the CSS property background . What is to be done is to have a square to present th...
asked on 24.01.2014 / 16:18
1
answer

What's the difference between MySQL and phpMyAdmin?

What's the difference between MySQL and phpMyAdmin?     
asked on 28.02.2016 / 20:20
5
answers

How to perform a task at a precise time in time?

   A style question Code Golf I've done a console program to show the hours, only hours different from what we know - and involves a It's very simple. It checks the system time, and finds that a minute has passed, it prints the curren...
asked on 11.06.2017 / 02:21