Posts by Theotonio • 365 points
5 posts
-
2
votes1
answer159
viewsQ: Javascript clock does not update
I am creating a view that will show the time of a network server and I am using JS to get the current date and time of the server, which by chance diverges with the current time, being in some…
-
1
votes1
answer454
viewsA: Get way of the project
To get the project path, use: ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext(); String diretorio = ec.getRealPath("/"); This "directory" string will leave you at the root…
-
1
votes1
answer1705
viewsA: How to import Javascript in angular?
Declare the scripts within the angular-cli.json file. "scripts": [ "../path" ]; Then add in typings.d.ts declare var nomeVariavel:any; In your file, import as follows: import * as variable from…
-
15
votes2
answers837
viewsA: What is the equivalent of the equalsIgnoreCase() in Kotlin?
To perform this comparison in Kotlin, pass the "ignoreCase" parameter in the equals function. Below is an example: val texto1 = "testando"; val texto2 = "TESTANDO"; var resultado =…
-
2
votes2
answers540
viewsA: Where to store profile images that the user uploaded?
There are certain considerable advantages to storing images in databases rather than file systems. But the cost of database hosting is higher than the cost of file hosting. A deeper analysis of its…