All Questions

3
answers

PHP bank text for html

I'm having trouble returning text with HTML formatting for the view . I need to return it with broken lines. I also tried to put it without the HTML tags in the database and then I used the nl2br() function that transforms /n int...
asked on 10.12.2015 / 13:45
2
answers

Regular expression for number

I have some strings as follows: 99-01[10-10-2010] 59-06[11-12-2016] So long so good. What I need, is via PHP and regular expression, replace any character before that first hiffen (-), for some text, only the first. Staying for example...
asked on 06.05.2016 / 00:04
3
answers

Convert object to String?

What is the best way to convert an object to a variable of type int ? Or is there no such conversion? Example: if (teste == JOptionPane.OK_OPTION) { int linha = tblPessoa.getSelectedRow(); // Aqui o ob...
asked on 22.10.2015 / 14:50
2
answers

What is the value of \ 1 in the regular expression in javascript?

I was taking a look at this response from @Sergio here on the stackoverlow: link There was a snippet of code like this: /^(\d)+$/.test(111) What exactly does do in this regular expression?     
asked on 22.10.2015 / 21:54
3
answers

Show and hide content in list form. with Javascript

I'm trying to make a list of Youtube videos as follows. (ps:Eu sei que o Youtube ja tem uma playlist dele.) Example: List with video names. 1 - Trailer Reaction: Star Wars: Episode VII - The Force Awakens 2 - Star War...
asked on 13.12.2015 / 00:57
2
answers

How to limit log display to 30 days from today's date

I'd like to be able to limit the display of news that I've written to my banco de dados to 30 days from today's date, for example: Show registered news from 03/02/2016 to 02/01/2016 , I tried to use some solutions that I f...
asked on 03.02.2016 / 13:00
3
answers

Can a global pointer point to a local variable?

In the case below, for example: int *pnum; void main(){ int num = 10; pnum = # } What would happen if I tried to access the pointed value of the pointer outside the main function?     
asked on 21.11.2015 / 01:52
2
answers

Empty constructor without super () call

When I make parameterized constructors, I create an empty constructor as well. In the empty constructor, should I always make the super () call? Because? (Take into account, that my class is just a JavaBean.)     
asked on 15.01.2016 / 12:54
4
answers

Plugin bootstrap-material-datetimepicker disable days of the week

I'm using the Timepicker plugin called bootstrap-material-datetimepicker: ( link ). I'd like to be able to turn off some days of the week, or just turn on Wednesdays and Fridays but I can not, can someone give me a hand? Thank you     
asked on 20.04.2016 / 10:55
2
answers

What is the purpose of the super command when used in the parameter declaration of a method?

In Java the command super has the function of calling the superclass constructor. However, in the declaration of method forEach() of class ArrayList it is used in a different way than usual, see the signature of the method t...
asked on 12.03.2016 / 02:45