All Questions

2
answers

What is the right way to connect to the MySQLi database

I have a question that has brought me various incompatibilities. With the evolution of PHP and Mysql, more recent versions have appeared, this way the Mysqli. This is where my problem resides, I would like to know which is the correct way to con...
asked on 23.09.2014 / 20:29
3
answers

Why Laravel instead of Yii?

It's been a while since I've actually developed PHP. In my latest research, about two years ago, I did not hear much about Laravel , while the Yii was leading some of the framework to be chosen for new projects. Anyway, my question can be...
asked on 14.01.2014 / 15:48
2
answers

How to traverse string and replace ** with b / b

Lately I have used some systems that have the following function, when writing a text between ** it turns this text in bold for example: July * henrique * dos Santos Expected result will be: Julio henrique dos Santos I thoug...
asked on 01.11.2018 / 21:14
4
answers

Doubts with RegEx with new line

I created the following expression: "<strike>.*?</strike>" To get all the text taxed, but due to the source code having a line break (as in the example below) is not working. <p style="margin-top: 0; margin-bottom: 0">&...
asked on 11.02.2014 / 17:57
4
answers

How to split a string in C ++?

I received this simple (I really thought it was!) challenge of creating a "tokenizer". I had to split string " O rato roeu a roupa do rei de roma " into spaces. So, after a long time, I developed the following algori...
asked on 03.03.2014 / 20:31
2
answers

READPAST and NOLOCK What are they?

What is READPAST and NOLOCK ? I have seen quite a lot of the use of NOLOCK , but READPAST saw use now, pretty much the same way, ie. FROM dbo.table t WITH(READPAST) and FROM dbo.table t WITH(NOLOCK) But wh...
asked on 31.08.2017 / 19:55
1
answer

Click the button and open another Activity

I'm developing an application in JAVA, and will have 2 options for the person to choose, I want it when I press 1 of the 2 buttons open a new Activity in the application, Can someone please tell me the code for this? I'm using Android Studio.  ...
asked on 15.03.2017 / 22:29
2
answers

ES6 classes do not allow declaration of properties?

I was experimenting with the class declaration syntax of ES6 / ES- 2015, and could not declare properties, only methods: class Teste { constructor() { } metodo() { } // não funciona: //propriedade: valor } Is...
asked on 04.01.2017 / 17:22
1
answer

What is an adjacent sibling? In what does it differ from a brother node?

A concept that confuses me when talking about HTML is adjacency , and we sib >. What's the difference between siblings and adjacent siblings ?     
asked on 16.06.2018 / 00:50
3
answers

Initialize private fields in declaration or constructor?

I'm modeling a class that has a private list and an internal dependency to another object: public class Teste { private IList<string> Textos; private Teste2 Teste2; } I can initialize them in the declaration: private IList&l...
asked on 14.04.2017 / 02:59