Questions tagged as 'node.js'

1
answer

PDF corrupted after download?

I am generating PDF's of the data I have in a table in my client, I send the data to the server and there the PDF is generated. After it is ready, the PDF is downloaded, and it is at this stage of the process that it corrupts. However, if bef...
asked by 15.08.2017 / 20:19
1
answer

Error removing accents

I'm having a javascript code to remove accents, it works with any accent, except with the crass, and by code it should work with kernel as well. I can not find the bug. var teste = "Çaptúra de Tela 2016-04-27 às 18.21.24.png à à"; function...
asked by 20.08.2016 / 21:33
1
answer

Set date for 7 days / one week ago

I would like to get today's date, and subtract it 7 days. Remember that if we are on day 2 for example, you should subtract 1 from the month. The same applies to the year. Unfortunately, I only found examples that fit for a specific day, and...
asked by 23.05.2016 / 20:34
2
answers

How to pass input value with POST method using Angular

I am trying to pass certain values from a input through the POST method using Angular, however I am not able to pass those values in the URL and not even get them on the server. Could someone help me solve this problem? Detail, for eac...
asked by 20.01.2016 / 18:17
1
answer

Building an Array with the date range

I'll get two dates, Example: 10/01/2017, 10/31/2017. How can I create an array with every day between those dates. Array = ["01/10/2017", "02/10/2017", "03/10/2017", ... ,"31/10/2017"]     
asked by 16.10.2017 / 14:08
3
answers

NodeJS NPM does not work

Folks, I installed the node normally and added to the environment variable; I did some math to test and it worked. When I tried to install modules (socket.io and express) it did not work, even running as administrator. I tried to check the comma...
asked by 23.12.2015 / 11:04
3
answers

Extract from a date in the format string the data separately

I have a date in the format of string: Wed Jul 20 2016 14:01:01 GMT-0300 (BRT) And I would like to extract the date and the days and the time in such a way that I can form a string like this: Quarta-Feira, 20-07-2016 as 17:01...
asked by 02.08.2016 / 16:09
1
answer

Get the timezone of a date

I have this date: 2016-02-22T14:55:00.000-03:00 And I would like to take timezone: -03:00 Automatically, without having to perform any regex.     
asked by 21.07.2016 / 16:05
1
answer

"ORA-01756: quoted string not properly terminated"

Talk to people, good morning, I have a legacy code and I'm having the following difficulty: When I try to check a word that has a single quotation mark I get this error ORA-01756 Ex: raphael me'lo Now when I try: Ex: raphae...
asked by 02.01.2019 / 13:09
1
answer

How to make synchronous queries with Sequelize in Node.js

I started porting Node.js recently and I'm using the division of logic into modules. I have UserSessionController that validates if the user session is still valid: module.exports.getUserSession = function ( userToken ) { mod...
asked by 29.05.2014 / 15:57