Posts by Costamilam • 9,556 points
509 posts
-
4
votes4
answers1502
viewsA: How to inherit more than one class in PHP?
Prefer composition to inheritance. You don’t need to inherit. Just instantiate the classes within it and use. In PHP there is no support for multiple inheritances.
-
2
votes3
answers709
viewsA: How to capture repetitions of a given group with regex?
The way I know it is with split()... var arrayStr = str.split(/(@|#|\|)/) This creates an array variable that will have the elements separated by @, # or | And to catch: arrayStr[0] arrayStr[1]…
regexanswered Costamilam 9,556 -
1
votes1
answer849
viewsA: Attempt to invoke virtual method on a null Object Reference
The answer is in the comments and was given by Jefferson Quesado, but only to put here as an answer... "This Nullpointerexception is a hint that you haven’t started with openBanco or already closed…
-
1
votes1
answer67
viewsA: Run gif during webview load
I think you just put the following code before Else: gif.setVisibility(View.GONE); This will make the gif disappear when you reach that line
-
0
votes1
answer37
viewsA: How to run a Recicle view on other activitys
setContentView(R.layout.activity_main); This line arrow the content view in xml activity_main, make sure your code of class b is set in the correct xml (R.layout.activity_b, for example) Another…
-
-1
votes1
answer849
viewsQ: Attempt to invoke virtual method on a null Object Reference
Error: 09-12 17:13:09.088 26022-26022/costamilam.guilherme.contatosempresariais E/AndroidRuntime: FATAL EXCEPTION: main Process: costamilam.guilherme.contatosempresariais, PID: 26022…
-
0
votes1
answer857
viewsA: CSS Style input range
This is the code of the site: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1">…
-
1
votes2
answers897
viewsA: Regex to separate a string
I understand you want to pick up a piece of a string so... You can transform the string into an array by separating the elements by spaces: var teste = "02/10/2017 a 05/10/2017"; var arrayTeste =…
javascriptanswered Costamilam 9,556 -
0
votes1
answer282
viewsQ: Attempt to invoke virtual method 'long Contactodao.alterar(Contact)' on a null Object Reference
Error: 09-12 14:05:28.662 10410-10410/costamilam.guilherme.contatosempresariais E/AndroidRuntime: FATAL EXCEPTION: main Process: costamilam.guilherme.contatosempresariais, PID: 10410…