Posts by Wesley Nascimento • 395 points
30 posts
-
0
votes0
answers33
viewsQ: Delete a directory recursively
Looking at Microsoft documentation on the method System.IO.Directory.Delete(path, bool);i noticed that adding a true boolean in the second parameter makes it recursive. In my case, the folder I will…
-
3
votes2
answers5395
viewsA: DIV Display text while hovering
You can use the event onmouseover(); javascript to make the text appear, and, if you like, use the onmouseout(); to make the text disappear after the mouse leaves the div, note: It is noteworthy to…
-
2
votes1
answer127
viewsA: Materialize is not responsive
In addition to using the predefined column classes make sure you are using the view-port correctly. If you have questions about the last step add the following line to your header. <meta…
-
0
votes1
answer993
viewsA: req.body is coming empty when calling api on Postman and the application
As you are using the GET method for this route it is remarkable that you use the parameters you want to use, to recover them in your application. Note an example of how to retrieve information using…
-
1
votes1
answer797
viewsQ: Passing parameters to an executable
I have an application that is divided into two different executables. The first executable is the brain of my application, in this executable, in which I named it STUB, will be all the main logic of…
c#asked Wesley Nascimento 395 -
1
votes2
answers36
viewsA: Send value to javascript function
Two simple quotes were missing when setting button id, test: echo "<button id='".$nome."' onclick='produtoComprado(/'".$detalhes."/')'>".$nome."</button>";…
-
1
votes1
answer56
viewsQ: How to know if an object can be focused
I’m making a script to throw errors with javascript and in this function it focuses on the field that is with errors. In some cases, when the field is not visible, for example, an error is shown on…
javascriptasked Wesley Nascimento 395 -
1
votes0
answers66
viewsQ: What is the difference between version 8 and version 6 of Nodejs
I recently started studying Nodejs in its V6.11.3 version and after a confusion between the official website documentations, I found that Nodejs has another version available, the 8.6. I was very…
node.jsasked Wesley Nascimento 395 -
1
votes1
answer1430
viewsQ: Fs.copyFile is not a Function
I’m trying to manipulate files with Nodejs, using the fs.copyFile on my server (Debian Jessie), but I can’t copy files. I’ve done everything to try to solve the problem, already copied exactly the…
node.jsasked Wesley Nascimento 395 -
1
votes1
answer110
viewsQ: Pass files by ajax
I am creating the product registration form of a website, and in it, all forms are submitted by ajax to an api. The problem is that in this particular form I need to send images to the server. I am…
-
1
votes1
answer96
viewsQ: Catching HTML 5 validation errors
You can catch the event of a validation error from html5 in javascript?. For example, the user did not enter a field, where it is marked as a field required, when it tries to submit the form an…
-
0
votes0
answers21
viewsQ: Local Proxy Server - C#
Recently I had contact with an application called Burp Suite. The application provided a local proxy server on a specific port (127.0.0.1:8080), and, if I used this proxy server in my browser all…
-
3
votes1
answer41
viewsA: How do I make my div height fit the size of my text?
Replace the height of div for min-height, thus, the height of div will be a minimum height, can be expanded by text, add also the class word-wrap: break-word; tag <p> so that the text typed in…
-
0
votes2
answers417
viewsA: Error deleting directory(file being used)
Add a System.Threading.Thread.Sleep(int32); before deleting the file. What happens is that sometimes the folder being compressed did not have time to be closed by ZipFile, soon, the application will…
c#answered Wesley Nascimento 395 -
1
votes1
answer490
viewsA: Centralize form
Bootstrap 2.3.x From what I could see by the classes span in their divsyou are using Boostrap 2. Before replying I strongly recommend that you abandon this version of the framework for being too…
-
1
votes1
answer429
viewsQ: Express Validator Custom - Nodejs
I’m using the express-validator in my api to validate the received data, I am creating a custom validation to verify that the user’s email is already registered in the system however, I can’t fire a…
-
1
votes1
answer1659
viewsQ: Returning callback values in main function - JS/Nodejs
I have a primary function and a callback function within it. I need that depending on the callback return my main function return something, note: function funcaoPrincipal(){…
-
1
votes2
answers245
viewsA: String Manipulation in VB.Net
Utilize: Dim filename As String = System.IO.Path.GetFileName(fullpath) The method System.IO.Path.GetFileName returns the file name of a string containing a complete directory, which is exactly what…
-
1
votes1
answer377
viewsQ: Can’t set headers after they are sent - Nodejs
I am creating a user registration system in Nodejs and I need to check if the email entered is already registered, everything is working normally, if I type an existing email it returns the id of…
-
3
votes1
answer1024
viewsQ: Using a root directory in the Nodejs include
I am learning Nodejs and I started to create a project just to get used to developing with him, however, I am bothered by the amount of ../../../../../ used when including a code. How can I use my…
-
-1
votes1
answer1930
viewsQ: Move down button and center - Bootstrap 4
I’m trying to create a layout with bootstrap 4 and for that I took an example of navbar on their website. The problem is that I would like to lower the mobile button on a new line and centralize,…
-
3
votes1
answer376
viewsA: Accent words don’t work
Try using the following code: public function listaCursoAjax() { $sqlCurso = $this->conexao->prepare('SELECT * FROM curso'); $sqlCurso->execute(); while($linha =…
-
0
votes3
answers6672
viewsA: Validate file extension
var extensao = $(this).val().split("\\").pop().substring($(this).val().split("\\").pop().lastIndexOf('.')+1, $(this).val().split("\\").pop().length) || $(this).val().split("\\").pop(); Use this code…
-
0
votes2
answers27
viewsA: how to call a javascript function on all buttons with a class
If I understand correctly, just change the #inviardesb to . inviardesb: Live.disableDataSubmit = function() { $(".inviardesb input").on('click', function (event) { $(this).attr('disabled', true);…
-
1
votes2
answers490
viewsA: Change Videos from Canvas
Make the buttons change the src attribute of the iframe, see (note that I have set an id to the iframe): Jquery: $("#idiframe").attr("src", "linkvideo"); Javascript:…
javascriptanswered Wesley Nascimento 395 -
2
votes1
answer551
viewsA: Open multiple programs on different desktop using script in windows 10
You can do this by downloading the Vdesk (Vdesksetup-1.0.2.msi) and installing it. When you finish the installation you will notice that a new command will be available in cmd, vdesk. With this,…
-
1
votes2
answers189
viewsA: Generate files with all permissions
You can call the Unix command, if you are using an O.S based on it, through Runtime.exec, note: Runtime.getRuntime().exec("chmod 666 caminho_arquivo"); Be careful when concatenating a string, it has…
-
0
votes5
answers3455
viewsA: Change HTML document to PHP
It’s just doing this, changing to php makes your server understand that that page has code in php. If you try, for example, to run a php code with a *.html file, nothing will happen, just print a…
-
2
votes1
answer91
viewsQ: Is it possible to edit an http Response?
Is it possible to edit an http Response before it is rendered by the browser? Something with this scheme: Receiving the answer -> Editing the answer -> Streaming the answer to the browser.…
c#asked Wesley Nascimento 395 -
0
votes1
answer337
viewsQ: Save bytes to a file
I am making an application that needs to read the bytes of a fixed file, I am being able to read clearly, however, it bothers me that the file needs to follow my application every time it starts.…
c#asked Wesley Nascimento 395