All Questions

1
answer

namespace with php [duplicate]

I'm trying to get deeper into namespace , but in the ways I'm trying, it's giving error . Here are two ways: My class that falls within the classes / class.php directory namespace minhaClasse; class classe { public function t...
asked on 06.11.2016 / 01:18
2
answers

Types of Calling Methods C #

I have a question in the following case, do not refuse dates, I used just as an example: Convert.ToDateTime("01/01/2016 00:00:00").ToShortDateString(); What is the origin of this method ToShortDateString() ? Another example: var...
asked on 07.12.2016 / 18:12
2
answers

Better performance for a few hits: HashMap or TreeMap?

I usually use the java.util.HashMap<K,V> structure even for small scopes with very few inputs (up to 50). But I've been wondering if the java.util.TreeMap<K,V> structure would not be better for this situation, taking in...
asked on 25.01.2017 / 16:57
2
answers

Get content inside string

I will have a list of string in the following format: PERSON NAME ( LOGIN ), / p> So, I would need to get only what would be within the parentheses, ie zackson.morgan . How to do this?     
asked on 14.03.2015 / 02:57
2
answers

Inheritance class Object

How does the compiler do to implicitly all classes inherit from object ? This is a behavior adopted in languages such as C #, Java and others. public class Funcionario { } public class Funcionario : Object { } The above example...
asked on 14.11.2016 / 13:31
3
answers

How to change the input color using jquery Validate?

I'm implementing a jquery form, and I want it when the validate executes and the class error is appended to the label leaving the red font, I'm going to send a picture representing how I want it. <html> <head> <...
asked on 28.10.2016 / 16:28
3
answers

Use out-of-function variables

I'm studying php7 and I've seen somewhere that it's now possible to use external function variables, but they're in the same file. From what I remember it was something like this: <?php $agua = '1 Litro'; function listaDeCoisas($item1,$it...
asked on 26.12.2016 / 22:36
2
answers

Is it correct to use the Input tag inside a Label tag?

I was taking a look at the W3Schools tutorial, where I'm teaching you how to use% type% input in Bootstrap. According to one of the examples, I saw the following code: <div class="checkbox"> <label><input type="ch...
asked on 25.10.2016 / 13:03
2
answers

Does a large image hamper application performance?

My banner has an image of 11mb, while location is all ok, but I wonder if when uploading this application will leave the same heavy. Thank you in advance.     
asked on 15.02.2017 / 14:03
3
answers

How to get element above Jquery?

I have the following elements: <p class="id-task">5</p> <p class="status-change"> <i id="test-task" class="fa fa-flask fa-lg" aria-hidden="true"></i> </p> I'm trying to get the number of <p cla...
asked on 02.12.2016 / 17:20