Re: [nodejs] Module naming

2013-05-28 Thread George Stagas
2013/5/28 Isaac Schlueter i...@izs.me: How many disputes do you receive per month? Usually less than 2 per month. But I have no way of knowing how often authors talk amongst themselves if they already have some sort of relationship. Is there a mailing list or something where I can see

[nodejs] Re: [ANN] Apostrophe 2: an in-context CMS for Node

2013-05-28 Thread greelgorke
looks nice to me, i'll definitely check it out more Am Dienstag, 28. Mai 2013 03:45:01 UTC+2 schrieb Tom Boutell: Apostrophe is a content management system designed for maximum flexibility with a minimal learning curve. Since Apostrophe emphasizes in-context editing, content is typically

[nodejs] Flatironjs - Director routing from file

2013-05-28 Thread AndDM
Hi, i'm testing flatironjs director in server side mode and i'm trying to import routing from file like: module.exports = { '/hello': { on: hello } }; I'm using the app.router object but i can't find anything to attach my module route to flatiron routing. Could someone give me some

[nodejs] Re: Calling all language nerds ...

2013-05-28 Thread Bruno Jouhier
Talking about language nerds, there is also https://github.com/bjouhier/node-lol It also supports continuations and lets you write code in sync style! And there is a working example with and HTTP server that serves files off the disk

[nodejs] Re: Tango lets us Video chat, Talk or Text for FREE on Tango!

2013-05-28 Thread mscdex
On May 28, 1:46 am, Aung Baw aungzan...@gmail.com wrote: Get Tango for FREE texting, video calls, voice calls, games and more! Tango works on iPhone, Android, WP7, or PC and over WiFi and cellular connections. Download Tango athttp://tango.net/r/a, or search for Tango in your app marketplace.

Re: [nodejs] Calling all language nerds ...

2013-05-28 Thread Angel Java Lopez
Ah! Very interesting Yes, I'm a language geek, I should write a FORTH ;*) and use JavaScript for concatenative language. My first compiler to JavaScript https://github.com/ajlopez/CobolScript (with ASYNC keyword and a Web site! ;-) Angel Java Lopez @ajlopez On Tue, May 28, 2013 at 2:33 AM,

[nodejs] Re: 100% CPU usage with node, EMFILE, CLOSE_WAIT

2013-05-28 Thread Bert Belder
On Tuesday, May 28, 2013 8:17:09 AM UTC+2, Qasim Zaidi wrote: Ever since we switched to 0.10.x in production, we are seeing instances where the server gets into a loop and CPU usage shoots to 100%. Here is what I have been able to understand so far about this situation. - After some time,

[nodejs] Using shorter ids (hashids) for mongodb objectids with mongoose

2013-05-28 Thread Ryan Schmidt
I'm using mongodb with mongoose, and using normal mongodb objectids as my primary key. I like objectids but in URLs they're a bit long, and I'd like to use something shorter. I've seen modules like shortid which generate shorter strings, but I'm not convinced of their uniqueness. I am

Re: [nodejs] Calling all language nerds ...

2013-05-28 Thread Bruno Jouhier
Very cool! Now we can start to argue about the relative merits of each language and publish benchmarks! On Tuesday, May 28, 2013 1:06:36 PM UTC+2, ajlopez wrote: Ah! Very interesting Yes, I'm a language geek, I should write a FORTH ;*) and use JavaScript for concatenative language. My

Re: [nodejs] Using shorter ids (hashids) for mongodb objectids with mongoose

2013-05-28 Thread Alan Hoffmeister
Why not generate a small ammount of letters and numbers and check it's existence agains the database? If nothing is found you just got a unique small hash and you can save it in any field of the document. -- Att, Alan Hoffmeister 2013/5/28 Ryan Schmidt google-2...@ryandesign.com: I'm using

Re: [nodejs] Using shorter ids (hashids) for mongodb objectids with mongoose

2013-05-28 Thread Ryan Schmidt
Because it seems like a good idea to *know* that an ID is unique, without having to possibly generate multiple IDs and query the database server in a loop to find one that happens to be unique. Another module I found, cuid, explains it this way: Because of the nature of this problem, it's

Re: [nodejs] Re: Best practices for token-based authentication in REST API

2013-05-28 Thread Alan Fay
On Sunday, May 26, 2013 1:17:26 PM UTC-4, Mark Hahn wrote: My module uses oauth2: https://github.com/mark-hahn/basecamp. Yes, you're using the oauth protocol to call into an existing API. There's some good examples of this on the web. That's what is making it hard for me to find good

[nodejs] [ANN] mysql-pg-proxy

2013-05-28 Thread Andrey
https://github.com/sidorares/mysql-pg-proxy Simple mysql to postgresql proxy. Allows you to make pg queries from mysql client. Andrey. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message

Re: [nodejs] Module naming

2013-05-28 Thread Marco Rogers
At the risk of making things worse, I don't think this is that bad George. I think the responses you've gotten here have been pretty much in line with what you asked. You got a little negativity, but not a lot. And it was good for you to expand on your ideas because your initial message didn't

[nodejs] [ANN] Suspend - Generator-based Control Flow

2013-05-28 Thread jmar777
*suspend* https://github.com/jmar777/suspend is a new control flow library that exposes a minimal API around* ES6 generators*, and is expressly designed to work transparently with Node's existing callback conventions. This allows unobtrusive use of *yield* execution semantics that works

Re: [nodejs] [ANN] mysql-pg-proxy

2013-05-28 Thread Diogo Resende
You're sick dude.. you need to rest :) -- Diogo Resende On Tuesday, May 28, 2013 at 14:51 , Andrey wrote: https://github.com/sidorares/mysql-pg-proxy Simple mysql to postgresql proxy. Allows you to make pg queries from mysql client. Andrey. -- -- Job Board:

[nodejs] Child process ends prematurely -- how to debug?

2013-05-28 Thread Shane Carr
I am writing an application that spawns a child process and interacts with it via STDIN/STDOUT/STDERR through the life of the program. When I run my script (the one that Node.JS spawns) from the terminal, it waits for user input, as expected. In addition, if I write a short C script that

Re: [nodejs] Module naming

2013-05-28 Thread Michael Schoonmaker
I apologize for adding to the drama, but after reading your comments I still legitimately believed that what you were arguing towards was muddying the water between single namespace npm and dual namespace GitHub (whether through the discovery and search system or the storage is less consequential

Re: [nodejs] Module naming

2013-05-28 Thread George Stagas
Thanks guys, I think the point has been made and I appreciate your last comments. I think I reacted a bit aggressively at some points and sounded trollish now that I read back so your responses might have not been entirely without basis so I apologize as well. My faith in humanity is restored.

Re: [nodejs] Calling all language nerds ...

2013-05-28 Thread Mark Hahn
I'm disappointed no async flame wars have erupted yet. :-) On Tue, May 28, 2013 at 5:14 AM, Bruno Jouhier bjouh...@gmail.com wrote: Very cool! Now we can start to argue about the relative merits of each language and publish benchmarks! On Tuesday, May 28, 2013 1:06:36 PM UTC+2, ajlopez

[nodejs] Re: Child process ends prematurely -- how to debug?

2013-05-28 Thread mscdex
On May 28, 6:47 am, Shane Carr sff...@gmail.com wrote: shell.on(signal, (function(signal){ FWIW there are no signal events on child processes. If a child process was terminated due to a signal, then the second argument to the 'exit' and 'close' event handlers will be the string name of the

[nodejs] Re: Child process ends prematurely -- how to debug?

2013-05-28 Thread mscdex
On May 28, 6:47 am, Shane Carr sff...@gmail.com wrote: // Write the child's STDOUT to the main STDOUT shell.stdout.on(data, function(data){ console.log(data.toString(utf8)); }); Also, you might want to listen on stderr, in case there is something being output there before exiting:

Re: [nodejs] Module naming

2013-05-28 Thread Mikeal Rogers
In the earlier days of node, when isaac and i were first putting up the registry, we did think about the problems that come with a single global namespace. In the end it was still a better decision to go with a single global namespace for the following reasons. 1. Manufactured Scarcity. The

[nodejs] Re: [ANN] Suspend - Generator-based Control Flow

2013-05-28 Thread jmar777
Wow, sorry for the email formatting. I figured Google Groups could handle putting bold text and links into an email... :\ On Tuesday, May 28, 2013 10:20:06 AM UTC-4, jmar777 wrote: *suspend* https://github.com/jmar777/suspend is a new control flow library that exposes a minimal API around*

Re: [nodejs] Calling all language nerds ...

2013-05-28 Thread Mark Hahn
Ah Cobol. I wrote Cobol for years in the sixties. I used FORTH (a little bit) in the seventies but mostly C. Pascal in the eighties. Java in the nineties. And JS in the 00's. (And many more not listed). I'm going to be pretty busy if I have to do javascript compilers for all those

Re: [nodejs] Module naming

2013-05-28 Thread Mark Hahn
and another person had another fork named the same thing I hate the fact that when you fork something in github it inherits the same name, same readme, etc. Many times I thought I had found the origin of a project because I didn't notice the fine print. And, for some reason google will

Re: [nodejs] Child process ends prematurely -- how to debug?

2013-05-28 Thread Ben Noordhuis
On Tue, May 28, 2013 at 12:47 PM, Shane Carr sff...@gmail.com wrote: I am writing an application that spawns a child process and interacts with it via STDIN/STDOUT/STDERR through the life of the program. When I run my script (the one that Node.JS spawns) from the terminal, it waits for user

[nodejs] how to intercept errors from server when using streams

2013-05-28 Thread Stephen Bartell
In general, If the connection to a server is successful, but the server sends back an error message and sets the status code to an error state, I want this response to be emitted as an `error` event on the stream. To be more specific, I want a streaming interface to a Couchdb changes feed

Re: [nodejs] Re: Best practices for token-based authentication in REST API

2013-05-28 Thread Roberto Modica
Your probably not going to find a fully scoped example because the protocol is complex and has a lot different routes and permitations and it depends on how you are going to use it. Like i said we use passport.js and the different strategies with oAuth2rize and the sample app that has been put

Re: [nodejs] Child process ends prematurely -- how to debug?

2013-05-28 Thread T.C. Hollingsworth
On Tue, May 28, 2013 at 11:19 AM, Ben Noordhuis i...@bnoordhuis.nl wrote: It sounds like an SELinux policy is blocking something. `strace -f` and /var/log/messages might give more insight. For SELinux issues the actual AVC errors you get are usually the most helpful. Just run something like:

[nodejs] [ANN] node-ifconfig: a simple module that execs ifconfig and parses its output

2013-05-28 Thread Ken
Relatively untested so not published to npm yet, but you can clone it from here https://github.com/femto113/node-ifconfig All this module does is use child_process.exec to run ifconfig (with no arguments), and then parses its seizure inducing output format into nested javascript objects. From

[nodejs] Re: [ANN] node-ifconfig: a simple module that execs ifconfig and parses its output

2013-05-28 Thread Alex Kocharin
Is it possible to make a patch for require('os').networkInterfaces() to show mac addresses? It would be a bit more useful... On Wednesday, May 29, 2013 2:32:21 AM UTC+4, Ken wrote: Relatively untested so not published to npm yet, but you can clone it from here

[nodejs] Re: [ANN] node-ifconfig: a simple module that execs ifconfig and parses its output

2013-05-28 Thread Ken
You could use node-ifconfig as a temporary hack/workaround, but the proper solution is already being tackled in libuv, so I suppose it will make its way into node eventually. See these for related discussion: https://github.com/joyent/libuv/pull/502 https://github.com/joyent/node/issues/4339

[nodejs] Re: [ANN] node-ifconfig: a simple module that execs ifconfig and parses its output

2013-05-28 Thread hij1nx
People interested in this module may also find Fedor's `ip` module very useful -- https://github.com/indutny/node-ip var ip = require('ip') ip.address() // my external address ip.address('public') ip.address('private') ip.address('en0', 'ipv6') // device specific addresses and/or family-of

[nodejs] Re: [ANN] envigor, an environmental configuration gatherer

2013-05-28 Thread Stuart Bentley
I've published version 0.3.0, which adds Redis, and the five Redis services available as Heroku addons (RedisCloud, Redis To Go, MyRedis, openredis, and RedisGreen). Redis URLs are also parsed by envigor into hostname, port, password, and database, making them easier to use with the official

[nodejs] Reg - nodejs wget not working in ubuntu

2013-05-28 Thread Sri Vidhya
Hai all, am using wget method to access one service url, but it is not woking in ubuntu. or otherwise anybody can tell me how to call (or) execute the url -- Thanks, N. Srividhya. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines:

Re: [nodejs] Using shorter ids (hashids) for mongodb objectids with mongoose

2013-05-28 Thread George Snelling
FWIW, we scratched our head over the same problem, gave up, and wrote our own _id generator. It's a glorified timestamp with a big random seed after milliseconds part, formatted to be read by humans and look reasonable in urls. Since the high-order part increases with time, it shards well. We

Re: [nodejs] Using shorter ids (hashids) for mongodb objectids with mongoose

2013-05-28 Thread Martin Wawrusch
Why not simply use base56 encoding of the object id? On Tue, May 28, 2013 at 10:37 PM, George Snelling georg...@gmail.comwrote: FWIW, we scratched our head over the same problem, gave up, and wrote our own _id generator. It's a glorified timestamp with a big random seed after milliseconds

[nodejs] Re: Using shorter ids (hashids) for mongodb objectids with mongoose

2013-05-28 Thread Stuart Bentley
```js modelSchema.virtual('hashid').get(function () { var oidhex = this._id.toHexString() return hashids.encrypt(parseInt(oidhex.slice(0,12),16),parseInt(oidhex.slice(12),16); }); modelSchema.virtual('hashid').set(function (hashid) { var halves = hashids.decrypt(hashid); var zeroes =

[nodejs] Re: Using shorter ids (hashids) for mongodb objectids with mongoose

2013-05-28 Thread Stuart P. Bentley
Case in point, here's a revised version with correctly balanced parentheses: ```js modelSchema.virtual('hashid').get(function () { var oidhex = this._id.toHexString(); return hashids.encrypt(parseInt(oidhex.slice(0,12),16),parseInt(oidhex.slice(12),16)); });