Posts by Sayuri Mizuguchi • 171 points
7 posts
- 
		0 votes1 answer115 viewsA: Query to catch date differenceAn example of taking data between a date range would be: Let’s assume that Voce saves like this: collection.save({ name: "example", dataCriacao: "Sun May 30 18.49:00 +0000 2010" }) You could… 
- 
		0 votes1 answer2232 viewsA: How do I use EJS with javascript?Well, according to your question... For this in EJS, you use syntax scriptlet <% %>. In your backend Voce would have something like: var app = express(); /* setar as variáveis 'view engine' e… 
- 
		1 votes1 answer470 viewsA: Transfer files from the server to the client?Assuming you’re using the express server, use the res.download It transfers the file on the way as a attachment: var express = require('express'); var router = express.Router();… 
- 
		1 votes1 answer539 viewsA: Error socket.io Node.jsEdit your connection by adding broadcast: io.on("connection", function (socket) { socket.on("join", function(name){ console.log("Entrou: " + name); clients[socket.id] = name; //id do user… 
- 
		0 votes1 answer329 viewsA: How to show data in ascending order mongoosejs + expressjsIf an object is passed, the allowed values are are asc, desc, ascending, descending, 1, and -1 See the employee documentation: // mostre field" ascendente e "test" descendente query.sort({ field:… 
- 
		1 votes1 answer55 viewsA: 2D drawing on the screen in Node without having to compile anythingTry to use the node-canvas. Here is the code example, see the documentation. With some adaptations using http to create http server and show image: var http = require('http'), fs = require('fs'),… node.jsanswered Sayuri Mizuguchi 171
- 
		1 votes1 answer193 viewsA: How do I "onload" on NODE.JS? (Discord.js)Try to use the node-canvas. Here is the code example, see the documentation. With some adaptations using http to create http server and show image: var http = require('http'), fs = require('fs'),…