Vote count: 0 I'm still trying to grasp an intuition of pullbacks (from category theory), limits, and universal properties, and I'm not quite catching their usefulness, so maybe you could help shed some insight on that as well as verifying my trivial example? The following is intentionally verbose, the pullback should be (p, p1, p2), and (q, q1, q2) is one example of a non-universal object to "test" the pullback against to see if things commute properly. -- MY DIAGRAM, A -> B B f x = (x, True) g :: C -> B g x = (1, x) -- PULLBACK, (p, p1, p2) type PL = Int type PR = Bool type P = (PL, PR) p = (1, True) :: P p1 = fst p2 = snd -- (g . p2) p == (f . p1) p -- TEST CASE type QL = Int type QR = Bo...
ادامه مطلبVote count: 0 I'm using node mailer and I caot get content on my email,I'm trying to get all the input content, from the client, to send it to my email so I can review it, but I do receive an email but no content. is there anything i have to change on my code??? var http = require('http'); var express = require('express'); var nodemailer = require("nodemailer"); var bodyParser = require('body-parser') var app = express(); var port = Number(process.env.PORT || 5000); app.use(bodyParser.json()); // to support JSON-encoded bodies app.use(bodyParser.urlencoded({ extended: true })); // Home page app.get('/', function(req, res) { res.sendfile('index.html'); }); // sending mail function app.post('/...
ادامه مطلب