Posts by Marcos Regis • 1,693 points
60 posts
-
1
votes3
answers396
viewsA: Why does the php string sometimes return instead of a few accented letters?
To avoid this use everything in the same character set, preferably UTF-8. When I say everything I mean Encoding of the . php, . js, . css, . html files and what else might have text. The HTML header…
-
2
votes3
answers1301
viewsA: Move folder/files between repositories without losing Change history
You can use the extension Convertextension to export only that file from the first repository into a new temporary repository, then use hg pull -f to import the new repository into the target…
-
2
votes1
answer262
viewsA: jquery inputmask does not accept quantifier in "Validator" function
a simple solution is to add the repeat attribute to your definition Inputmask.extendAliases({ 'customAlias': { autoUnmask: true, placeholder: "", mask: "a", repeat: 100, // tamanho máximo do campo…
-
0
votes2
answers566
viewsA: 400 (Bad Request) when sending array to Spring Controller using AJAX
Where comes argumentsNameArr and argumentsValArray in the Javascript part? They need to be in a format like variavel[]=valor1, variavel[]=valor2 to be interpreted by Java as an Array Try also to use…
-
2
votes2
answers847
viewsA: Best practice for handling branchsets in SVN
This is one of the reasons why SVN has been abandoned at the expense of using GIT. As SVN is a CENTRAL repository and all use only local references control team changes will become complex. On your…
-
0
votes2
answers6584
viewsA: Multiple checkbox and save to bank
For this case, the use of BIT to BIT operators fall as a Glove. For this it is important to understand the concept. An example in code. Assuming I have 4 options that can be selected individually or…
-
3
votes1
answer64
viewsA: Disabling eol in bitbucket
Usually this happens due to differences as some platforms or text-editing programs work the line cyclists. Linux uses n (LF = 1 byte) while Windows by default uses r n (CRLF = 2 bytes). You should…
-
1
votes1
answer138
viewsA: Error while using Git on Ubuntu
Use the same user as the owner of the directory. Use sudo composer install causes root to be used. Use only composer install. If the user can’t write to the target directory, try adding it to the…
-
2
votes3
answers527
viewsA: Take data from the page by javascript and convert it to whole
To avoid problems of empty values I use this way numeroRecuperado = $('#qualquer span').text().replace(/\D/g, ''); // Remove o que não é número numeroRecuperado = parseInt(numeroRecuperado) | 0; //…
-
2
votes6
answers992
viewsA: Like saving today at the bank?
Assuming a field of type DATE/DATETIME/TIMESTAMP there are two forms. 1 - By the Database itself Use functions like now() UPDATE tabela SET campo_data = now() // You can also use CURRENT_TIMESTAMP,…