by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 27 2014 00:47
    ugate commented #5
  • Dec 24 2014 00:14
    othiym23 commented #5
  • Dec 19 2014 13:51
    ravi commented #5
  • Dec 19 2014 13:12
    ugate opened #5
  • Nov 20 2014 14:15
    linclark commented #4
  • Nov 20 2014 14:07
    shime commented #4
  • Nov 17 2014 17:06
    imlucas commented #4
  • Nov 16 2014 05:47
    darrenderidder commented #4
  • Nov 16 2014 05:43
    TheAlphaNerd commented #4
  • Nov 16 2014 05:43
    aredridel commented #4
  • Nov 16 2014 05:42
    darrenderidder commented #4
  • Nov 16 2014 05:42
    aredridel commented #4
  • Nov 16 2014 04:25
    aredridel commented #4
  • Nov 16 2014 02:16
    othiym23 commented #4
  • Nov 16 2014 01:22
    darrenderidder commented #4
  • Oct 29 2014 19:06
    arb commented #4
  • Oct 27 2014 07:09
    TheAlphaNerd closed #3
  • Oct 27 2014 07:09
    TheAlphaNerd commented #3
  • Oct 26 2014 20:53
    othiym23 commented #4
  • Oct 26 2014 20:46
    othiym23 commented #4
Stu Weir
@stuartweir
thanks for your help guys!
Hengki Sihombing
@hengkiardo
@trinitystu np
Josh Hartigan
@joshhartigan
@stuartpb cheers
Martin Heidegger
@martinheidegger
How do you guys debug pipes?
There is an error happening here with a stream that gets triggered (persumably by a pipe) that shouldn’t be and I can’t find the “piping” that causes it ...
sort of in a pickle.
Event debugging is hard enough as it is but with a buffer inbetween … cheez
Martin Heidegger
@martinheidegger
Could it be that unpiping from stdin doesn’t work?
Martin Heidegger
@martinheidegger
Hmm… ran a test, the basic piping/unpiping works...
Ravi Sarma
@ravi
Before I dive into the code, anyone know if @mikeal’s request module emits an ‘error’ event even when not used in streaming mode (the doc suggests ‘error’ events occur during streaming, but perhaps I am reading the doc too literally?)? Thank you.
Hanni Abu
@HanniAbu
Hey guys, I'm new to the node/development community being as I'm attempting a complete career change from being a mechanical engineer. If you guy have the time, I was wondering if there's any useful advice you guys may provide as far as where to start. By that I guess I mean...what are some things you guys have learned that you wish you knew when you first started. Whether it be useful reference websites, libraries, whatever comes to mind. Anything would be helpful!
Ravi Sarma
@ravi
Hello @HanniAbu. Welcome to NodeJS. NodeSchool might be a good place to start: http://nodeschool.io.
Also there are many useful JavaScript books and the one that many people recommend is Crockford’s JavaScript: The Good Parts. It’s a good book, but personally, I would warn you off of taking Crockford’s guidance too seriously, or at least don’t take it as gospel. Which leads me to this: there are different coding styles you can follow with JavaScript: a strictly OO-based model, trying to fit JS facilities to implement class-like behaviour, encapsulation, etc. Or you go old-school async programming as is done in system/network programming (if not all the way with state machines). Or you can forge something in-between. Play with these styles and choose what works for you.
If there’s one thing that I wish I had made a call on from the get go, it is a decision on how to deal with JavaScript’s/Node’s famous pyramid of doom / callback hell. I have personally settled on Promises, in particular Q then Bluebird.
Ravi Sarma
@ravi
Hope that helps. I recommend you join the nodejs email list.
Stuart P. Bentley
@stuartpb
What's the best way to do multiple requests sharing a cookie jar in io.js right now?
Because request doesn't appear to support io.js yet
and it needs all kinds of wrapping to have promise support
does superagent support io.js? idk what the problem request is having is and if it'd effect superagent, all I know is superagent doesn't have io.js in its engines or travis yml
Stuart P. Bentley
@stuartpb
and, like, superagent.agent() isn't even documented
Garth Kidd
@garthk
@stuartpb, I browsed around all the cookie libraries last night and ended up choosing tough-cookie. I'll wrap something around it to persist the jar across requests. https://www.npmjs.com/package/tough-cookie
@stuartpb: mind you, I'm deliberately doing cookie state adjustment. If you just want to simulate a browser… let's see, does node-fetch do it? bhttp? They both seem well regarded. https://www.npmjs.com/package/node-fetch https://www.npmjs.com/package/bhttp
Hahaha it's @joepie91. Nice.
Hengki Sihombing
@hengkiardo
anyone in here have been using API from Linkedin to posting jobs using nodejs?
Ravi Sarma
@ravi
Anyone know about the storm of (spam?) tickets happening currently on GitHub?
Stuart P. Bentley
@stuartpb
Is there a better/more popular solution for recursively getting file names than https://www.npmjs.com/package/glob?
Stuart P. Bentley
@stuartpb
With all the different implementations of Promise out there, is it enough to do value instanceof Promise to determine if a return value is a Promise? Shouldn't there be something like Array.isArray?
Stephen Belanger
@Qard
typeof value.then === 'function'
Alexander Praetorius
@serapath
where can i ask questions about the leveldb ecosystem
lambrojos
@lambrojos
hello! I need to integrate a nodejs backend with some legacy php code, no time to port it to javascript. Which is the best way to do this? I did some searching and I think I need to choose between dnode (https://github.com/substack/dnode) and spawning a child process.
Stuart P. Bentley
@stuartpb
I have (another) promises problem - can anybody diagnose why this isn't resolving? trevorsenior/snoocore#122
Ravi Sarma
@ravi
Anyone know if/why Cluster (Node 0.10.x) seems to be eating up the —expose-gc arg supplied on the command line?
Ravi Sarma
@ravi
Anyone use morgan with File-Stream-Rotator for HTTP access logging? If so, do you know if FSR deletes old logs that it has rotated out after some interval? I am reading through the code, but if someone knows, would save me some time. Thank you.
Fritz Lin
@fritx
blob
Fritz Lin
@fritx
ignore this
Stephen Belanger
@Qard
no!
Ravi Sarma
@ravi
@othiym23 Looks like my posts to the NodeJS list are not getting through (Subject: “crash analysis”). Not sure where in the pipeline they are getting lost or if they are being moderated out. Any thoughts on how I can resolve this? (Thank you).
moranm6
@moranm6
Anyone know of a good node module for view pdfs in an app?
Андрей Листочкин (Andrey Listochkin)
@listochkin
There's https://github.com/mozilla/pdf.js but it's not a Node Module, but rather an HTML-based viewer.
it is used by Firefox to display PDFs
rugemalira
@rugemalira

I do have a google service account.
I've successfully constructed the JWT which I'd like to use to request for authorization for my server-based application to send email.
I'm trying to use request object to get the authorization but keep getting the error:
\n "error" : "invalid_request",\n "error_description" : "Required parameter is missing: grant_type"\n

Can someone please direct me to a manual on how to use JWT && Node.js && request object to request for authorization token?
I'd appreciate very much.

rugemalira
@rugemalira

JWT failing: I'd like to use a JSON Web Token (JWT) to obtain for my server-based application an authorization token to send email.

In forming the jwtClaimSet I need to include: "iss", "scope", "aud", "exp" and "iat"

I have a question regarding "scope".

Out of these two, what should it be for sending email?
"scope": "https://www.googleapis.com/auth/gmail.send"
"scope": "https://www.googleapis.com/auth/analytics.readonly"

I'd like to use:
var request = require('/usr/local/lib/node_modules/request');
request(options, function (error, response, body) { ... }

var options = { ...};
contains:

method: "POST",
headers: "Content-Type": "application/x-www-form-urlencoded",
body: "encodedData", // Is this correct? What should it be?
uri: "https://www.googleapis.com/oauth2/v4/token",
//uri: 'https://accounts.google.com/o/oauth2/auth',
//uri: "https://accounts.google.com/o/oauth2/token", // Which one out of the above choices?
grant_type: "urn:ietf:params:oauth:grant-type:jwt-bearer", // This one causes an error! How should I specify grant_type?
assertion: fullJWT // Where var fullJWT = encodedJwtHeader + "." + encodedClaim + "." + signature;

I get the error:
'{\n var fullJWT = encodedJwtHeader + "." + encodedClaim + "." + signature;\n}'

This message is very criptic and I need help. Will appreciate your responses as I've been debugging for the last three days!!

Nate Lubeck
@etnlbck
@rugemalira take a look at https://www.npmjs.com/package/authentic
Developer
@ltc-hotspot

Question: Using only those gateway credentials provided by Authorized.net, and 'Node.js SDK for Authorize.net payment gateway,' there is no other platform necessary to complete an online credit card transaction?

Referral URL link is available at: 1. https://github.com/ltc-hotspot/--Node-for-Authorize-net

Ravi Sarma
@ravi
Hello all, anyone use the deasync module and understand the performance penalty it imposes (when the blocking code is invoked)?
Udhay Prakash Pethakamsetty
@udhayprakash
How to get the difference between two arrays of objects?

I have two array of objects. id is unique key in each object.

array1 = [
    {
        id: '1',       // unique key
        name: 'apple'
    },
    {
        id: '2',       // unique key  
        name: 'mango'
    }
];

array2 = [
    {
        id: '1',       // unique key
        name: 'apple'
    },
    {
        id: '3',       // unique key
        name: 'car'
    }
];

I want to get the difference objects. 
i.e., 
    array1 - array2  =---> result 

                    {
                        id: '2',       // unique key  
                        name: 'mango'
                    }

Similarly, 
    array2 - array1  =---> result 

                    {
                        id: '3',       // unique key  
                        name: 'car'
                    }
Udhay Prakash Pethakamsetty
@udhayprakash
can anyone help me?
Lasana Murray
@metasansana
Hello all, came across this channel while browsing various links related to nan.
Dinesh Kumar
@Dinesh5799
@Dinesh5799
Hi
I am struck with a nodejs error
can someone help me with that?
Joey Guerra
@joeyguerra
sure.