Re: [nodejs] Re: node-struct

2012-09-05 Thread rhasson
So the example I used here was just for the sake of understanding how ref and struct work. I think I get it now. Now I started all this because I wanted to create FFI bindings to libpst (http://www.five-ten-sg.com/libpst/). I started by creating all the necessary structs and made a call to th

Re: [nodejs] [ANN] Simple ACL

2012-09-05 Thread chakrit
mongoose-acl? not until you mentioned it :p Looking quickly It seems to operate similarly but, well, there isn't so many ways to implement ACLs anyway. So, no surprise there. but seems it is made for using with mongoose. simple-acl is intended to be standalone. If you use mongoose, then it mig

[nodejs] Short term but cutting edge project at eBay

2012-09-05 Thread shimonchayim
Anyone looking for a short-term assignment (3 to 4 months)? Need to start the project ASAP. -- 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 "n

Re: [nodejs] [ANN] Simple ACL

2012-09-05 Thread Mark Hahn
> It's nice and I've been using it for about 24 hours. lol On Wed, Sep 5, 2012 at 3:56 PM, Joshua Gross wrote: > Have you seen mongoose-acl? Does it operate similarly to yours? It's nice > and I've been using it for about 24 hours. > > -- Joshua Gross > Christian / SpanDeX.io / BA Candidate of

Re: [nodejs] [ANN] Simple ACL

2012-09-05 Thread Joshua Gross
Have you seen mongoose-acl? Does it operate similarly to yours? It's nice and I've been using it for about 24 hours. -- Joshua Gross Christian / SpanDeX.io / BA Candidate of Computer Science, UW-Madison 2013 414-377-1041 On Sep 5, 2012, at 2:07 PM, chakrit wrote: > Couldn't find one clean and

Re: [nodejs] Re: node-struct

2012-09-05 Thread Nathan Rajlich
Glad you're figuring it out on your own :p I don't get your latest question: you're already passing a struct in by reference in the setT() function so I'm not sure what's different. On Wed, Sep 5, 2012 at 1:44 PM, rhasson wrote: > Now, the issue I'm having is in trying to port this methodology t

Re: [nodejs] Abort Trap 6

2012-09-05 Thread Ben Noordhuis
On Wed, Sep 5, 2012 at 6:31 PM, Alex Wolfe wrote: > Thanks for the tip. Here's what I got... > > $ find node_modules -name \*.node > node_modules/bufferstream/node_modules/buffertools/build/Release/buffertools.node > node_modules/socketstream/node_modules/redis/node_modules/hiredis/build/Release/

[nodejs] Re: node-struct

2012-09-05 Thread rhasson
Now, the issue I'm having is in trying to port this methodology to an external library out of my control (libpst) which does not use malloc on local structs that then have pointers assigned to the main struct that was passed in by reference which are then overwritten. Is there a way to address

[nodejs] Re: node-struct

2012-09-05 Thread rhasson
I figured out my problem. I was allocating on the stack and needed to use malloc. Here is the correct C function: void setT(f *i) { t *tt = malloc(sizeof(t)); i->fp_i = 5; tt->t_i = 6; i->t_p = tt; printf("\tThis is a test: %i\n", i->t_p->t_i); } Here is the correct output: { _poin

Re: [nodejs] node-struct

2012-09-05 Thread rhasson
Thanks, that actually got me much closer, however now I'm getting back an incorrect value now. This is the console output: { _pointer: } //the first f struct I instantiated, then I call the library setT method This is a test: 6 //printf test from within the C library to show that the correct

[nodejs] [ANN] Systemd journal extension for node.js

2012-09-05 Thread Mark Theunissen
Hi all, Announcing journald [1], a package containing a library and C++ extension for logging to systemd's journal. The log entries are written asynchronously. Also included is a transport plugin for Winston [2]. The package is published on npm [3]. Feedback welcomed, I'm sure there is plenty

[nodejs] [ANN] Simple ACL

2012-09-05 Thread chakrit
Couldn't find one clean and simple ACL implementation. So I decided to write one. Github: https://github.com/chakrit/simple-acl NPM: https://npmjs.org/package/simple-acl Very alpha atm. but it's pretty simple and it has tests :) Comments, patches and suggestions, pretty please? :) -- Job Boar

Re: [nodejs] node-struct

2012-09-05 Thread Nathan Rajlich
You examples are a little confusing, but I believe you are needing to call .deref() in these cases. Like here: `_f.t_p` that would be a pointer (a Buffer instance) to a "t" struct, so to turn that back into the "t" struct instance to you need to call `_f.t_p.deref()`. Then you can access `t_i` as

Re: [nodejs] Re: emit('data') best practice

2012-09-05 Thread Dominic Tarr
it's much easier to write high level apis with js objects in streams, and then pipe to a stream that can stringify it. This reduces glue code, and increases flexibility, because you can use a high level stream with any kind of text-stream. Otherwise every stream module needs a parser... or you ge

Re: [nodejs] Abort Trap 6

2012-09-05 Thread Alex Wolfe
Thanks for the tip. Here's what I got... $ find node_modules -name \*.node node_modules/bufferstream/node_modules/buffertools/build/Release/buffertools.node node_modules/socketstream/node_modules/redis/node_modules/hiredis/build/Release/hiredis.node node_modules/socketstream/node_modules/socket.i

Re: [nodejs] Abort Trap 6

2012-09-05 Thread Ben Noordhuis
On Wed, Sep 5, 2012 at 6:02 PM, Alex Wolfe wrote: > I'm not using any native add-ons of my own creation, however some of the > modules I use may. Is there a good way to ascertain which modules use native > add-ons? Yes. `find node_modules -name \*.node` will tell you that (after the initial `n

[nodejs] ANN: Haraka v1.4.0

2012-09-05 Thread Matt
Haraka is a highly feature filled SMTP server written in Node.js. More details can be found at http://haraka.github.com/ Here are the changes since the previous release: - Added Ubuntu server configuration file for easy stop/start of Haraka - Improved Logging at LOGNOTICE level - Node v

Re: [nodejs] Abort Trap 6

2012-09-05 Thread Alex Wolfe
Thanks for your help. I haven't yet made an attempt to isolate the part of the app where this is occurring, so I don't have a test yet. Based on the error, it seems like it's happening due to the file system being watched. I think the only module I use that would be doing that is socketstream

Re: [nodejs] Abort Trap 6

2012-09-05 Thread Ben Noordhuis
On Wed, Sep 5, 2012 at 3:20 PM, Alex Wolfe wrote: > It's 0.8.8. Does your application use any native add-ons? Do you have a test I can try? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message be

Re: [nodejs] Abort Trap 6

2012-09-05 Thread Alex Wolfe
It's 0.8.8. On Wednesday, September 5, 2012 6:18:09 AM UTC-5, Ben Noordhuis wrote: > > > With what version of node is that? If it's node < 0.8.8 you should > upgrade, it fixes some memory corruption issues in the stat watcher. > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: http

Re: [nodejs] Abort Trap 6

2012-09-05 Thread Ben Noordhuis
On Wed, Sep 5, 2012 at 6:11 AM, Alex Wolfe wrote: > I have an app that periodically exits with the "Abort Trap 6" message. > Sometimes the app will run for days without incident, and sometimes it dies > within 24 hours. > > When I ran it with gdb, I got the following: > > Program received signal S

[nodejs] Abort Trap 6

2012-09-05 Thread Alex Wolfe
I have an app that periodically exits with the "Abort Trap 6" message. Sometimes the app will run for days without incident, and sometimes it dies within 24 hours. When I ran it with gdb, I got the following: Program received signal SIGABRT, Aborted. timer_cb (timer=0x100b2f1a8, status=0) at

[nodejs] Does anyone know of a node.js module for creating indexed PNGs?

2012-09-05 Thread Bgsosh
Does anyone know of a node.js module for creating *indexed* PNGs? I've looked through this list of node graphics modules, and some of them allow png creation, but none seem to allow you to specify an index/pallete scheme. -- Job Boa