Posts by Laércio Lopes • 4,352 points
169 posts
-
1
votes2
answers632
viewsQ: Assign directory of a searched file to a CMD variable
In batch I can search a file with the following command: C:\>DIR /S /B PROGRAMA.EXE And if the file is found it will return like this: C: Users Dev Desktop Program.exe I would like to be able to…
-
1
votes2
answers554
viewsQ: Update and Insert data into a table with information from another bank
I have the following situation: Bench To and the bank B both with the table customers with the following data: A.clientes B.clientes id | nome id | nome ------------------- ------------------- 1 |…
-
3
votes2
answers2421
viewsA: Python problem in sublime text
One solution to the problem is to create an execution system (Build System) alternative, to do this follow the following steps: 1. In a new Sublime tab paste the following code: { "cmd": ["start",…
-
4
votes2
answers4035
viewsA: Generate Postgresql Server backup with password via command line
You can use the variables below to facilitate the understanding of the code: REM IP do Servidor do PostgreSQL: SET PGHOST=localhost REM Porta de acesso ao PostgreSQL: SET PGPORT=5432 REM Base de…
-
2
votes1
answer1293
viewsA: Insert type timestamp into Firebird database
Try to replace the date of '14/12/2016'for '12/14/2016' The date in Firebird follows the following format: MM/DD/YYYY.
-
1
votes1
answer148
viewsA: Error picking GET attribute in jsp!
You must use it: Object obj = request.getParameter("NA"); Instead of: Object obj = request.getAttribute("NA");
-
3
votes3
answers1358
viewsA: How to create a variable through the answer typed by the user in Python?
As colleagues reported this may not be the best way to solve your problem, but in python you can assign a variable with the value of the other yes with the exec. Remember that this will not change…
-
0
votes2
answers5281
viewsA: Backup sql server express database using . bat
I back up several clients that have SQL Server. When you set a task that calls a bat file. by the scheduler of tasks to be executed, it is part of the System32 directory as default, so one can solve…
-
1
votes1
answer685
viewsQ: Better center by margin:auto or text-align:center?
Searching for good HTML practices, what is the best way to centralize? I see that I can center the menu of a page for both options, but I wonder which is the best way and also which is the right way…
-
8
votes1
answer407
viewsQ: Replace anchor by form button with calculation by javascript
I have the following code: function calc(){ var form = document.getElementById("form"); var a = +form.a.value; var b = +form.b.value; var result = (a+b); form.result.value = result; } <form…
-
1
votes2
answers104
viewsA: Doubt in the elaboration of a query in SQL
In this case you must use an aggregation function sum(coluna) adding up the values in the column and the group by that groups the data by the columns that are selected except the one that is doing…
-
3
votes3
answers7113
viewsQ: Remove space between html list item
I have the following list: li { display: inline-block; padding: 20px; background: red; } <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul>…
-
2
votes2
answers1514
viewsA: Calculate length of a Sqlserver field
To check the number of characters: SELECT LEN(COLUNA) FROM TABELA To insert the amount of VALOR1 characters in COLUNA2 at the time of the Insert: INSERT INTO TABELA (COLUNA1,COLUNA2) VALUES…
-
1
votes1
answer132
viewsA: Problems with Batch Backup and Specific Software
If the OS is Windows does the test using Cobian Backup. I use it for a long time and it has great backup options, besides being free. http://cobiansoft.com/…
-
3
votes3
answers1321
viewsA: Onmouseover effect
This can be done easily using only CSS if you prefer. /* Código para dar o efeito da mudança de cor em 0.5 segundos. */ p { transition: all 0.5s; } /* código que faz mudar a cor para vermelho e…
-
3
votes2
answers3847
viewsA: Vertical line between Ivs
This can also be used if you want to place as a separate element: <hr width="1" size="100"> You can modify the size to get the desired size. It also works: <hr style=" transform:…
-
0
votes5
answers7513
viewsA: Reduce Log File Size
I took the same problem recently and solved it this way: Obvious: Do while no one is using the database Backup Full. Right click on the base and then detach. Access the directory that gets the…
-
1
votes0
answers47
viewsQ: "25" added after "%"
I created an HTML form that will send some parameters to a page, in this form has a parameter defined as Hidden which is the token. The token has several "%" characters in the middle of it and I…
htmlasked Laércio Lopes 4,352 -
0
votes1
answer185
viewsQ: Dropdown menu hiding list depending on screen size
I managed to do with the Jquery show and hide the menu as I click the button, but I would like the menu to be hidden already if the screen was less than or equal to 768 pixels. Could someone give me…