Posts by Caesar • 64 points
9 posts
-
3
votes2
answers124
viewsQ: ALTER TABLE CHANGE is not renaming constraints automatically on the production server
According to the Mysql documentation (which in this case, I believe, also applies to Mariadb), when the command CHANGE is used to rename a column, the constraints are automatically renamed as well:…
-
0
votes0
answers239
viewsQ: Blade directives (Laravel 5.6) inside the Vue.js slot element
I created a Blade directive called @permissao which simply checks whether a certain value exists in the user’s session, in order to show or hide a link from the menu. The menu I created as a…
-
0
votes2
answers295
viewsQ: Nesting a flat PHP array to generate an HTML menu and submenus
I have an array like this: Array ( [38] => Array ( [name] => Categoria Raiz 1 [link] => https://... [id_parent] => 0 ) [205] => Array ( [name] => Subcategoria 1 [link] =>…
-
0
votes2
answers299
viewsA: Tips for plan page and how to fix error: Uncaught Typeerror: Cannot read Property 'scrollHeight' of Undefined
The condition: if ('#clublist' + id) {} will always be true. That’s why the error says there is no element #clublist4, for example. Try: if ($('#clublist' + id).length) {} if ($('#escolalist' +…
-
3
votes2
answers57
viewsQ: How do I add files that were uploaded to the git repository?
I have a system where it is possible to add extensions and plugins via web interface by uploading a file .zip. That file .zip is unzipped by the system and the files go to a specific server folder.…
-
4
votes1
answer67
viewsQ: Is there any standard, convention or practice that rules the use of static file server domains?
I have the following scenario: Each client of my service (Saas) has a custom url. For this, I created a CNAME record *.dominio.com pointing to my server. Ex.: empresa1.dominio.com,…
-
2
votes1
answer366
viewsA: Error with Foreach arguments
Missing dollar sign in variable $x of condition. for($x=1; x <= $n_cartelas_registradas; $x++) ----------^ Exchange for: for($x=1; $x <= $n_cartelas_registradas; $x++) {…
-
2
votes0
answers65
viewsQ: How does the truncation of a float or double number occur?
I have the following excerpt: double valor = 1.5; while(valor >= 0) { System.out.println(valor); valor -= 0.15; } Output will be truncated numbers due to 8 byte storage for double, correct? (...)…
-
0
votes2
answers558
viewsQ: Group plots showing the value of the first and last plot
I have a table of plots with the following fields (among others): inscricao (Customer Registration), nrparcela (Plot number), dt_vencimento (Due Date) and vlrparcela (Value of the Plot). If the…
postgresqlasked Caesar 64