Posts by Jefter Rocha • 411 points
35 posts
-
1
votes0
answers60
viewsQ: How to get the X-Forwarded-For (IP) header from Passport
I’m using express to create route for my application. To login I have a route to authenticate using Passport and Passport-local. I need to compare the user access IP with the IP of the user that was…
-
0
votes1
answer324
viewsQ: How to write RTSP stream
I’m using the package node-rtsp-stream more Websocket to do the transmission of my IP-Camera, and the preview goes well, now I would like to know how to record this transmission and I have no idea…
-
1
votes1
answer2383
viewsQ: Error connecting Firebird database to Nodejs
I’m trying to connect to a Firebird test bench with Nodejs, and I’m using the package node-firebird, and I’m having the following mistake: node index.js Error: Connection is closed. at…
-
1
votes1
answer1097
viewsQ: Error pasting data in Excel with VBS
I have a simple spreadsheet in Excel(3 cols and 2 lines) and am trying to create a script to open it, copy your data and insert them into other spreadsheet with the same structure using a form.…
-
1
votes1
answer1450
viewsQ: Open Excel spreadsheet and copy the Data into VBS
Hello, I have a simple spreadsheet (3 cols and 2 Rows) and am trying to create a script to open it, copy your data and insert into another. Path =…
-
0
votes0
answers692
viewsQ: Fatal error: Call to a Member Function prepare() on null in
I have the following PHP classes Database.class.php <?php abstract class Database { private $dataBaseHandler; private $error; private $statement; protected function __construct() { $options =…
phpasked Jefter Rocha 411 -
0
votes1
answer24
viewsQ: Error when executing query within function
I am having problems to do a search in mysql database inside a function in PHP, if I do the search outside the function works normally but I would like it to be done inside the function for me to…
-
1
votes1
answer1981
viewsQ: How to Overlay an Image with another?
I’m having trouble positioning one image after another without using position absolute/fixed. When using Divs instead of imgs, if you apply a float:left, it is in the context above the other Divs,…
-
4
votes1
answer2549
viewsQ: HTTP React Native Request
an API sends a status:false the code taken status. While status==false, will be rendered the image of exclamation.png and message 'Pedido em Análise'. Case status change to true both image and…
-
0
votes0
answers330
viewsQ: Urierror: URI malformed in Nodejs
Server-side code const bodyParser = require("body-parser"); const express = require("express"); const app = express(); const port = 8080; app.use(bodyParser.urlencoded({extended: false}));…
-
0
votes1
answer76
viewsQ: Escape symbols in Nodejs
I have the following code running on Nodejs /*jshint esversion: 6 */ const express = require('express'); const bodyParser = require('body-parser'); const app = express(); const port = 8080;…
-
2
votes2
answers81
viewsQ: Fragment string into random parts
I need a JS script that fragments any string into random parts, let’s say I have a string: x = "Deliciosogostoeobomgostodasnuvensseremfeitasdealgodao" and after inserted in the script, it can be…
javascriptasked Jefter Rocha 411 -
0
votes1
answer38
viewsQ: Doubt in Javascript
Good evening and sorry for the title little objective but it seemed difficult to holder this question but come on! In an example element selector document.querySelector().anything the attribute…
javascriptasked Jefter Rocha 411 -
0
votes0
answers13
viewsQ: Problems with Tag Label Pseudo-classes
It is possible to apply effects of :hover, :active and :focus on the tag Label whole? I’m not getting it because the effect only applies to content label... body{ font-family:Helvetica,Arial; }…
-
2
votes1
answer182
viewsQ: differences between for...in JS and in Python
in the following code in Python... string = "abcd" for i in string: print(i) --------------- output: a b c d and in Javascript string = "abcd" for(i in string) console.log(i) --------------- output:…
-
-3
votes1
answer261
viewsQ: Cryptocurrencies: What is the difference between SEED, Private/Public Keys, and Address?
What is the difference between these elements? and what is the importance of each, and the relationship between them? What is generated from which? and how these elements are generated/created?…
-
0
votes1
answer588
viewsQ: Add address to favorites via Javascript
Giving a search on Google(and here) I saw that it was possible to a certain time ago add addresses to browser favorites in Javascript, but the methods used for this were discontinued and I would…
-
1
votes1
answer48
viewsQ: Effect :Superimposing Focus :active
It is possible to visualize the effect of :active even though :focus? I’m trying here but when I click on the element the effect of :active is not shown jumping straight to :focus. .btn{ color:…
-
0
votes0
answers295
viewsQ: Extension for Chrome + Nodejs
I would like tips to develop extensions for the Chorme(and other browsers) using Nodesjs. Because Nodejs? Well I would like to give some protection to my JS codes so that they are not visible or…
-
0
votes1
answer632
viewsQ: Assign function to dynamically generated button
Personal my problem is a little difficult for me to explain. I have these buttons which are added each time when it is clicked on the "+" and when it clicks on any of these button they remove the…
-
0
votes1
answer113
viewsQ: access variable within setInterval
Good morning, I’m trying to find out how to access a declared attribute in a setInterval/setTimeOut function in another function. With the little study I have on Javascript, a variable declared in…
javascriptasked Jefter Rocha 411 -
0
votes0
answers546
viewsQ: Change parent element style from child element with CSS
Good afternoon, I wonder if you have how to change the background of the father div when the child element(img) gain mouse focus(:) .pai{ padding: 20px; background-color: #ffb3b3; display:…
-
2
votes2
answers131
viewsQ: Connect to Ubuntu Server with Putty+Xming
I’m connecting my server through Putty trying to use Xming to show GUI elements but unfortunately I’m not getting it. Whenever I try to run a command line program it returns the errors. NOTE: X11…
-
0
votes1
answer864
viewsQ: Browse HTML page and search for links
I do not know if the title was clarified but I would like to know how to go through the body of an html page and identify links by exceptions... Let’s just say I want links that have…
-
2
votes2
answers859
viewsQ: Return File Name in VBS
Is it possible to return the name of a file/program by a VBS script? Type when dragging and dropping into the script or opening with... the script, it returns the name.
-
1
votes1
answer42
viewsQ: Pass Parameter with VBS Double Apas
How to pass a parameter that has double quotes in vbs Atalho.Arguments = ""args.ext""
-
2
votes1
answer1052
viewsQ: Return File Name in Batch
Is it possible to return the name of a file/program by a bat? Type by dragging it to the bat or run by the bat, it returns the name.
-
0
votes1
answer330
viewsQ: I cannot restore database in mysql
I am trying to restore a DBS I have on my machine, but unfortunately I am having problems... ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL…
-
4
votes1
answer4966
viewsQ: GOTO equivalent in Java
Well guys I’d like to know how to do a drop in java? or some way to get back to a certain point in the code, people say that it is dangerous to use this kind of command in java... why?
javaasked Jefter Rocha 411 -
1
votes1
answer284
viewsQ: Intel XDK Connection Problem
Whenever I try to log in or use the Intel XDK the following messages appear The web page in https://software.intel.com/registration/xdk/? returnID=200 may be temporarily unavailable or may have been…
intel-xdkasked Jefter Rocha 411 -
0
votes2
answers46
viewsQ: Element problem with char and number
I’m not being able to do mathematical operations with this function, obviously because there are char elements inside. var centesimas = 0; function inicio() { control = setInterval(cronometro, 10);…
-
6
votes2
answers1478
viewsQ: How to verify the existence of a folder?
To verify the existence of a folder with a C/C++ program, it looks for the directory, if it does not find the specified directory, it will make the decision to create it.
-
1
votes0
answers168
viewsQ: How to compile a . C/C++ on my website
Is there any way to compile a file. C/C++ within a website? let’s say a "file will be generated. c" and this file will be compiled... maybe you can do this in PHP or with some add-on.
-
0
votes2
answers129
viewsQ: How to create a text file with the client’s IP
Good afternoon guys, I’m trying to create a text file with the client’s IP, so let’s say the server will create a file run X action,send the file to the client for download, then delete from the…
phpasked Jefter Rocha 411 -
2
votes1
answer33
viewsQ: Select radiobuttons of different values
I’m starting in the html area and I’m making some pages for myself (for testing) and in one I did there are some radiobuttons, the point is that I would like to make them mandatory the selection of…
htmlasked Jefter Rocha 411