All Questions

1
answer

What Regular Expression to Trace a URL

Well, I'm asking because I do not know, but I'm trying ... Doubt http://www.meusite.com.br/busca.html?nome=louvor+a+Deus Where: ?nome=louvor+a+Deus    You should remove or better replace with% with spaces ? = + I hav...
asked on 09.06.2016 / 02:12
3
answers

How to know the amount of memory used by my PHP application?

I would like to know if there is any way to know how much my PHP application is consuming from memory. For example: I want to know at the end of the script how much PHP spent in the process of running a particular script. Is there a functi...
asked on 18.01.2017 / 18:32
2
answers

How do I apply a StyledEditorKit to a JTextPane without having to inherit this class on my screen?

I have a tab problem in JTextPane and I am trying to reduce the default value assigned to it but it is giving an error because I have to inherit two classes (one for JFrame and the other for overwriting the tab functions ) but Java...
asked on 21.10.2016 / 15:30
1
answer

Are static members collected by GC when they are no longer needed?

In a class that has a static variable, it exists throughout the application. Is the linked object collected at some point? Example: public class Exemplo { private static List<int> lista = new List<int>(); }     
asked on 10.05.2017 / 16:16
3
answers

Balloons with tips to use the system (Tour)

What I want is to know the name given to those tips that are appearing to assist in using a system when we first enter it. For example, I log in to the system and a balloon appears as if it were a modal in a certain location with a hint and a...
asked on 06.12.2016 / 17:33
1
answer

What is the difference between sanitize and filter in PHP?

Making a security class for PHP I noticed the existence of two similar constants, such as: FILTER_SANITIZE_NUMBER_INT and FILTER_VALIDATE_INT . The pattern follows in email , string and other validations. What is the differ...
asked on 08.07.2016 / 16:39
1
answer

How to put a logo on the Toolbar?

I was searching here and found something very interesting, the company logo on Toolbar . How do I put a company logo on Toolbar ?     
asked on 28.03.2017 / 21:08
2
answers

Is there any difference between the ways to declare classes in C ++?

Since I started learning C ++ I've always done something like: class.h #ifndef CLASSE_H #define CLASSE_H class OutraClasse; class Classe { public: Classe(); void foo(OutraClasse *bar); }; #endif And here I declare met...
asked on 05.10.2016 / 20:07
2
answers

Difference of class properties vs Instance

What is the purpose of creating attributes in the class if I can create in the instance itself?     
asked on 23.05.2017 / 05:53
1
answer

Accented letters returning invalid character

Well, I realized that in Lua, it is not possible to use letters with an accent. print("á") Returns an invalid character. Is there any way to avoid this?     
asked on 27.10.2014 / 04:59