All Questions

3
answers

Problem to remove element added with jQuery

I have a page with input , a button to add inputs , and each has a corresponding button to remove it. The problem is that I can not remove the inputs added through the button. Only the original is removed. Follow the code h...
asked on 08.01.2016 / 12:24
2
answers

Is it possible to access the same argument twice in sprintf?

In PHP time the function sprintf . With it we can format the values sequentially passed from the second parameter. For example: sprintf('Meu nome é %s e tenho %d anos de idade', 'Wallace', '26') The output will be    My name is...
asked on 08.07.2016 / 18:33
5
answers

What is the difference between referencing an attribute directly or by get / set

As an example I have a private String atributo , so I can have two ways to reference it, internally in the class: this.atributo And also: this.getAtributo(); Is it correct to say that it is wrong to use this.atributo and s...
asked on 19.05.2016 / 04:14
3
answers

How to load a dropdown with a selected value

I have a method to perform change on some data. Among these data, I have a dropdownlist that contains the periods of the courses. When I select to change, I need the dropdown to come with the option checked, as it is in the database. I ne...
asked on 08.06.2015 / 18:56
3
answers

Generate random numbers in an Array of 10 up to 50

How can I generate an array of random numbers with a limit, must be numbers from 10 to 50. To generate random numbers from 0 to 50 I use: Random random = new Random(); int array[] = new int[5]; // 5 números serão ger...
asked on 25.08.2015 / 16:58
2
answers

What is undescore for "_" in MYSQL LIKE?

In a previous question regarding LIKE in MYSQL , Should I avoid injecting"% "into a query where I used" LIKE "? , a question arose of _ (undescore) can be used in the LIKE operator. I've used the % a lot, bu...
asked on 17.09.2015 / 19:14
2
answers

In PHP what is this tag? =? represents? [duplicate]

In PHP what does this tag represent? Opening tag: <?= Closing Tag: ?>     
asked on 10.12.2015 / 18:31
3
answers

Faster way to access properties in a list C #

I have a project that works with a large volume of data, and I need to optimize it to bring results of some calculations in a considerably small time. I know I have several aspects to take into consideration, such as the structure in which the d...
asked on 30.03.2016 / 15:15
3
answers

In what order is a Set stored? Random?

When I store something inside a Set , the order in which it stores is random? And how could I sort a Set ?     
asked on 12.11.2014 / 15:59
5
answers

Show all days between two dates

I need to display all the dates that exist between two defined dates. I do not need the information of the difference between these dates, nor of data that is in the interval between them, but rather display the dates for each day of the inte...
asked on 22.07.2015 / 20:00