[nodejs] Re: Add time on existing time with moment

2016-01-31 Thread Matthias Bleyl
moment().add(5, "minutes");

Am Samstag, 30. Januar 2016 22:41:40 UTC+1 schrieb qwert...@gmail.com:

> Hello all
>
> How can i add the existing time in moment.js, Like i have Sat Jan 30 2016 
> 17:33:43 GMT+0530 (IST) i want to add 5 minutes on it
>
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/bdd3ff29-39b6-428c-af7a-5bb96aaa4cf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [nodejs] Re: How do I use NPM for JavaScript packages?

2016-01-31 Thread Angel Java Lopez
You also can use bower

http://bower.io/

Maybe, it is more aligned with your use case. Think it as a "npm for the
browser"

Angel "Java" Lopez
@ajlopez


On Sun, Jan 31, 2016 at 10:06 AM, Zlatko  wrote:

> Of course you can use npm to download general JavaScript packages, and you
> can use them in the browser, if nothing, then manually.
>
> The simplest use case:
>
> npm install griddle-react --save
>
> That installs the pacakge in node_modules/griddle-react folder.
>
> From there you can simply include the script in your HTML:
>
> 

Re: [nodejs] Node js Learning resources

2016-01-31 Thread Angel Java Lopez
There is a mountain of resources out there :-)

A list of resources (2014)
https://github.com/rockbot/node-for-beginners

A very active project:
http://nodeschool.io/

Another list of resources (2014)
https://github.com/sergtitov/NodeJS-Learning

An updated book
http://www.nodebeginner.org/

Angel "Java" Lopez
@ajlopez



On Sun, Jan 31, 2016 at 7:02 AM, haider malik 
wrote:

> what are the best resources to learn node js for beginners?
>
> --
> Job board: http://jobs.nodejs.org/
> New group rules:
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nodejs+unsubscr...@googlegroups.com.
> To post to this group, send email to nodejs@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nodejs/2773dadd-54a4-4854-a6ea-f14d9ddfbf70%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAMs%2BDqLGW80jqr2RTrU8_OSGRX1TLcCuvRjxPH98dPO2No1Gig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[nodejs] Crash with Stream and Zlib

2016-01-31 Thread Michael Fox
var drop = require('drag-and-drop-files')
var concat = require('concat-stream')
var fileReaderStream = require('filereader-stream')
var zlib = require('zlib')

drop(document.body, function(files) {
  var first = files[0]
  console.log("start gzip " + first.name);
  console.time("gzip")
  gzip = zlib.createGzip({'level':1})
  gunzip = zlib.createGunzip()
  datin = fileReaderStream(first)
  datin.pipe(gzip)
  gzip.pipe(gunzip)
  gunzip.setEncoding('utf8')
  var count = 0
  gunzip.on('data', function(chunk) { count = count + chunk.length; })
  gunzip.on('finish', function() { console.log("done, got " + count + " 
bytes"); console.timeEnd("gzip") })
  gunzip.on('close', function() { console.log("closed, got " + count + " 
bytes"); console.timeEnd("gzip") })
  gunzip.on('error',
  function(err) {
console.log("error, got " + count + " bytes");
console.log(err.message)
console.log(err.stack)
console.timeEnd("gzip")
  })
})




It's day one for me with javascript and nodejs. I have no idea. I cobbled 
this together, built with:

browserify -e ./ > try-build.js

and this .html file


  
Drop something on me
  
  


Crashes similarly in safari and chrome when I drop 4GB file on it. I'd 
appreciate any suggestions. Here's all I installed:

  npm install filereader-stream
  npm install drag-and-drop-files
  npm install concat-stream

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/59751c39-b97c-49f8-87da-115a594db750%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[nodejs] Node js Learning resources

2016-01-31 Thread haider malik
what are the best resources to learn node js for beginners?

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/2773dadd-54a4-4854-a6ea-f14d9ddfbf70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[nodejs] Re: Finding: Syntax error unexpected end of file

2016-01-31 Thread Zlatko
In addition to other suggestions of finding this particular bug, you might 
also look into including sourcemaps when transpiling your ts code, for dev 
environment at least. It might help out with these kinds of issues.



On Monday, January 25, 2016 at 8:48:08 AM UTC+1, Theodor Esenwein wrote:
>
> Hi there
>
> Can anyone help me to find a error. One of my NodeJS 5.5 / expressJS 
> application quits with the error: "syntax error unexpected end of file"
> Unfortunately it gives no line at all. Any idea how to hunt and find the 
> location of this error?
>
> The hole project is in Typescript and compiles just fine...
>
> Any ideas?
>
>
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/55ace806-7393-4859-b44d-655ace9893d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[nodejs] Re: How do I use NPM for JavaScript packages?

2016-01-31 Thread Zlatko
Of course you can use npm to download general JavaScript packages, and you 
can use them in the browser, if nothing, then manually.

The simplest use case: 

npm install griddle-react --save

That installs the pacakge in node_modules/griddle-react folder.

>From there you can simply include the script in your HTML: