Posts by João Vitor Fontes • 84 points
11 posts
-
1
votes6
answers2258
viewsA: Exercise: loop and for
You must concatenate using + and no comma function passandoPor () { for (var i=0; i <4; i++) { console.log ("aqui eu tenho o valor de" + i) } }
-
1
votes2
answers222
viewsA: Save Date.now() to postgres
Use new Date().toLocaleString(); But I recommend that if you want to save the date that the record is entered in the bank, I would do so: alter table tabela alter column datahora set default…
-
1
votes5
answers626
viewsA: Select between month and year only dates
just put the day as first day of the month: SELECT * FROM pagamento WHERE data >= 'YYYY-MM-01' AND data <= 'YYYY-MM-01';
mysqlanswered João Vitor Fontes 84 -
0
votes4
answers7713
viewsA: How to detect if a variable is null?
In python, to know if a variable is null we use is None if name is None: // code
-
1
votes7
answers7167
viewsA: How to receive the CPF number and format to be without the dots and dash(Input Mask )
var cpf = '000.000.000-00'; var string = cpf.replace('.','').replace('-','').replace('.','') ;
-
0
votes1
answer52
viewsQ: The URL responds only with the open site
I need to scrape the information from this page here. In the developer tools, I found this link with the necessary answers. The problem is that the link with the answers opens only if the site is…
-
1
votes1
answer77
viewsA: How to manipulate images? HTML5/CSS3/PHP/JS
Use jpg (JPEG) They are smaller and have a good quality. For icons, use the correct size and do not resize by code as if done, it will load the photo to the original size! You can use Photoshop for…
-
-1
votes3
answers333
viewsA: Return text between keys, without returning the keys themselves
This can help you String suastringtratada = Normalizer.normalize(suastring, Normalizer.Form.NFD).replaceAll("[^\\p{ASCII}]", "");
-
0
votes1
answer756
viewsA: java.net.Socketexception: Connection reset
You’ve added internet access to your app? Permissions: < uses-permission android:name="android.permission.INTERNET"/ > < uses-permission…
-
0
votes3
answers62
viewsA: How to choose the page URL (vice versa)
This is the path that has been taken to the archive of your web page. As if it were a directory. To stay the way you want, you have to take the file inside the menu folder and rename it to "Menu".…
-
0
votes2
answers65
viewsA: Swap one text for another using a string in the Menu
You use setText for that. example: string texto = 'texto'; int opcao = 1; if (opçao == 1) { texto.setText("seutextoaqui"); } use the event Onclick to do instantly.…