Re: [nodejs] remind - a distraction-free reminder tool

2013-07-23 Thread Abhay Rana
This reminds me of the "remind" script that we use in our hubot instance. The syntax is "hubot remind me in to do ". Hubot responds back after and pings us on chat about the reminder .Its pretty helpful for us to deleg

Re: [nodejs] remind - a distraction-free reminder tool

2013-07-23 Thread Hage Yaapa
I want to keep it really low-tech, dependency-free, and cross-platform like a piece of paper. On Wed, Jul 24, 2013 at 1:51 AM, Stephen Belanger wrote: > You should add growl support. I made pretty much the same thing at one > point, but it could do output to growl or say. > > On Tuesday, 23 July,

Re: [nodejs] Native Abstractions for Node.js (NAN) - a utility to ease the pain of C++ addon development across 0.8, 0.10 and 0.11/0.12

2013-07-23 Thread Timothy J Fontaine
On Tue, Jul 23, 2013 at 4:37 PM, Rod Vagg wrote: > > > On Wednesday, 24 July 2013 02:32:52 UTC+10, Nathan Rajlich wrote: >> >> This is pretty cool Rod! I'm sure TJ will have some pointers. Also, >> related, but I know you're aiming for something a little simpler: have you >> seen: >> https://git

Re: [nodejs] Native Abstractions for Node.js (NAN) - a utility to ease the pain of C++ addon development across 0.8, 0.10 and 0.11/0.12

2013-07-23 Thread Rod Vagg
On Wednesday, 24 July 2013 02:32:52 UTC+10, Nathan Rajlich wrote: > > This is pretty cool Rod! I'm sure TJ will have some pointers. Also, > related, but I know you're aiming for something a little simpler: have you > seen: https://github.com/tjfontaine/node-addon-layer? > Nope, I hadn't seen t

[nodejs] Re: Addons: Is there any possibility to call a c++ function asynchronously?

2013-07-23 Thread Rod Vagg
This example will hopefully be in the next 0.10 release addons doc: https://github.com/rvagg/node-addon-examples/tree/master/9_async_work/ It shows how to use uv_queue_work. (doc PR here: https://github.com/joyent/node/pull/5809) -- Rod On Wednesday, 24 July 2013 01:23:09 UTC+10, Sánta Gergely

Re: [nodejs] [ANNC] StrongLoop Node 1.1 is out! Advanced debugging, clustering, monitoring and private npm

2013-07-23 Thread Adam Crabtree
The work Miroslav and StrongLoop have done on node-inspector looks really great. Thanks for the contributions. Cheers, Adam Crabtree On Tue, Jul 23, 2013 at 12:13 PM, Jimmy Guerrero wrote: > I'm excited to announce that the latest release of StrongLoop Node has > some great new features worth c

Re: [nodejs] Addons: Is there any possibility to call a c++ function asynchronously?

2013-07-23 Thread Ben Noordhuis
On Tue, Jul 23, 2013 at 9:03 PM, Sánta Gergely wrote: > Thank, but I don't understand why is the addons callback blocking anyway. > It does not really make any sense for me. > Is not there some node.js built in solution for this? If you have C or C++ code that blocks, it blocks. There's no magic

Re: [nodejs] [node.js] set octet in the IP header tcp socket

2013-07-23 Thread Ben Noordhuis
On Tue, Jul 23, 2013 at 10:00 PM, Shawn Brinkman wrote: > I'm trying to set octet in the IP header like this method found in > javahttp://docs.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html#setTrafficClass%28int%29. > > Does node.js have something equivalent. You want to set the Quality-of

Re: [nodejs] AngularJS inspired dependency injection in Node (feedback?)

2013-07-23 Thread Scott Corgan
Architect is what inspired me to make Injector. I loved architect because it removed the pain of knowing how many "../../../" to put when requiring a file. Love it. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines

[nodejs] AngularJS inspired dependency injection in Node (feedback?)

2013-07-23 Thread Thomas Fritz
Looks very interesting. I came across Architect https://npmjs.org/package/architect What do you guys think about that? Have someone used it? Regards -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received t

Re: [nodejs] remind - a distraction-free reminder tool

2013-07-23 Thread Stephen Belanger
You should add growl support. I made pretty much the same thing at one point, but it could do output to growl or say. On Tuesday, 23 July, 2013 at 12:58 PM, Hage Yaapa wrote: > When you type the following at the commandline: > > $ remind 30m Turn on the heater > > In 30 minutes, your text edit

[nodejs] [node.js] set octet in the IP header tcp socket

2013-07-23 Thread Shawn Brinkman
I'm trying to set octet in the IP header like this method found in java http://docs.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html#setTrafficClass%28int%29 . Does node.js have something equivalent. Thanks -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/j

[nodejs] remind - a distraction-free reminder tool

2013-07-23 Thread Hage Yaapa
When you type the following at the commandline: $ remind 30m Turn on the heater In 30 minutes, your text editor will pop open "Turn on the heater" on top of all other windows. Sounds like your idea of a quick reminder? If yes, check it out. $ npm install remind -g Details: https://npmjs.org/pa

Re: [nodejs] callback arg for Writable.end

2013-07-23 Thread Christian Tellnes
Hi It is not implemented for http.OutgoingMessage#write either. I have an open pull requests which fixes this. https://github.com/joyent/node/pull/5730 2013/7/23 Phil Sung : > Hello, > > I see that node 0.10.x has introduced an optional "callback" argument to the > "end" method of WritableStrea

[nodejs] Quick update on Substance, an open-source toolset dedicated to manipulation of digital documents.

2013-07-23 Thread Michael Aufreiter
Hi guys! Some of you might know Substance from its early days. It's been 2,5 years since development started. We had several prototypes out, which helped us to extensively explore the problem domain. It also made us realise that it's gonna be a tough nut to crack. We really wanted to solve the

[nodejs] [ANNC] StrongLoop Node 1.1 is out! Advanced debugging, clustering, monitoring and private npm

2013-07-23 Thread Jimmy Guerrero
I'm excited to announce that the latest release of StrongLoop Node has some great new features worth checking out! * For those you who rely on Danny Coates' node-inspectorfor debugging, Miroslav Bajtos has put together a much improved debugging experie

Re: [nodejs] Addons: Is there any possibility to call a c++ function asynchronously?

2013-07-23 Thread Sánta Gergely
Thank, but I don't understand why is the addons callback blocking anyway. It does not really make any sense for me. Is not there some node.js built in solution for this? 2013. július 23., kedd 17:33:41 UTC+2 időpontban Ben Noordhuis a következőt írta: > > On Tue, Jul 23, 2013 at 5:23 PM, Sánta

Re: [nodejs] Using Node Js with an existing web application.

2013-07-23 Thread Angel Java Lopez
Hi people! Ravi, a have a bit of experience on pont 1. Yes, you can use Node.js for some part of your application, in my case, game interaction: http://ajlopez.wordpress.com/2012/01/09/social-games-programming-part-8-adding-node-js/ using socket.io That approach was used too at: http://ajlopez.wo

Re: [nodejs] Native Abstractions for Node.js (NAN) - a utility to ease the pain of C++ addon development across 0.8, 0.10 and 0.11/0.12

2013-07-23 Thread Nathan Rajlich
This is pretty cool Rod! I'm sure TJ will have some pointers. Also, related, but I know you're aiming for something a little simpler: have you seen: https://github.com/tjfontaine/node-addon-layer? On Mon, Jul 22, 2013 at 6:53 PM, Rod Vagg wrote: > > Related to the "You're going to have to rewri

[nodejs] Using Node Js with an existing web application.

2013-07-23 Thread Ravi Narayan
Hi, We have an web application built using ASP .NET MVC and is working very well. There are a bunch of new features we are adding and they need to very interactive and server response needs to be really fast because it is very rich UI. I cannot move my entire application to us Node JS stack, bu

Re: [nodejs] Addons: Is there any possibility to call a c++ function asynchronously?

2013-07-23 Thread Ben Noordhuis
On Tue, Jul 23, 2013 at 5:23 PM, Sánta Gergely wrote: > I tried the tutorial in the node.js manual, and there is a possibility to > use callback function, that returns the result of a c++ function. > But my problem is, that it is not asynchronous and blocks my node.js thread, > while waiting to re

[nodejs] Addons: Is there any possibility to call a c++ function asynchronously?

2013-07-23 Thread Sánta Gergely
I tried the tutorial in the node.js manual, and there is a possibility to use callback function, that returns the result of a c++ function. But my problem is, that it is not asynchronous and blocks my node.js thread, while waiting to return. Is there any possibility to call a c++ function asynchr

Re: [nodejs] os.cpus() return negative numbers?

2013-07-23 Thread Bryce Baril
This was fixed in 0.8.17 but AFACT missed in the 0.10 release. https://github.com/joyent/node/issues/5732 On Tue, Jul 23, 2013 at 3:56 AM, Ben Noordhuis wrote: > On Tue, Jul 23, 2013 at 9:49 AM, 杨云昆 wrote: > > nodejs version: v0.10.4 > > Server: CentOS 6.3 > > > > Any one know how to fix it?

Re: [nodejs] Automation tool for module publishing

2013-07-23 Thread Scott González
It's been a while since I looked at grunt-release, but the projects I manage either have too large of a release process or too small of a release process to make it worthwhile for me. A few months ago, I put together notes on how I think a generic release module should work: https://gist.github.com

Re: [nodejs] os.cpus() return negative numbers?

2013-07-23 Thread Ben Noordhuis
On Tue, Jul 23, 2013 at 9:49 AM, 杨云昆 wrote: > nodejs version: v0.10.4 > Server: CentOS 6.3 > > Any one know how to fix it? What does `node -p 'require("os").cpus()'` print? Also, try a newer version (v0.10.13 is the latest stable), it may have been fixed already. -- -- Job Board: http://jobs.

[nodejs] Unexpected error in node.js, not CoffeeScript: "SyntaxError: Invalid object key"

2013-07-23 Thread Richard Darwin
I am trying to write a simulation of vampire growth patterns (yes, I said that!). My latest iteration gave an odd error message, invoking some 1272 lines of node.js, not my ./vampire_sim.coffee at all. Here is the output from the command line: rick@user-xx ~ $ cd coffee-scripts rick@

[nodejs] os.cpus() return negative numbers?

2013-07-23 Thread 杨云昆
nodejs version: v0.10.4 Server: CentOS 6.3 Any one know how to fix it? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: 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 p

[nodejs] callback arg for Writable.end

2013-07-23 Thread Phil Sung
Hello, I see that node 0.10.x has introduced an optional "callback" argument to the "end" method of WritableStream, which is a great API improvement. However, I see that while http.ServerResponse clai

[nodejs] Native Abstractions for Node.js (NAN) - a utility to ease the pain of C++ addon development across 0.8, 0.10 and 0.11/0.12

2013-07-23 Thread Rod Vagg
Related to the "You're going to have to rewrite it anyway" discussion here: https://groups.google.com/forum/#!topic/nodejs/VlUJ68n6QBg (and here: http://atxconsulting.com/2013/07/06/rewrite-it-anyway/). https://github.com/rvagg/nan is an evolution of code I've been gathering for a while now to

[nodejs] Generate App Access Token

2013-07-23 Thread Sameer Kazi
Hi i want to generate facbook api long-life token ( 60 days ) from server side. I want to call cron job to get all events thorough this token but i am unable to fetch data. i used this https://neosmart-stream.de/facebook/how-to-create-a-facebook-access-token/ *but not working* plz help me. h

[nodejs] Re: Node.JS Addons: How to return a wrapped object as a callback function argument?

2013-07-23 Thread Luís Miranda
Here is the answer: http://stackoverflow.com/questions/10340552/how-to-pass-a-wrapped-c-object-to-a-javascript-callback On Tuesday, July 23, 2013 8:50:19 AM UTC+1, Luís Miranda wrote: > > Hi. > > Does anyone know how to return a wrapped object as a callback argument? > > In the example (http://

[nodejs] Node.JS Addons: How to return a wrapped object as a callback function argument?

2013-07-23 Thread Luís Miranda
Hi. Does anyone know how to return a wrapped object as a callback argument? In the example (http://nodejs.org/api/addons.html#addons_callbacks) a string is returned. How do i do if i want to return a *MyObject (* http://nodejs.org/api/addons.html#addons_wrapping_c_objects*)* instance? Thanks

Re: [nodejs] Automation tool for module publishing

2013-07-23 Thread Jake Verbaten
- create a tag - publish to npm - bump the version to the next number (I prefer to have vnext in my package.json. Possibly also with -dev suffix.) `alias npublish = npm version patch && git push origin master && npm publish` That alias will those 3 steps. I use git from the command line and c