use "screen"
On Tuesday, October 16, 2012 10:24:40 AM UTC-4, Chad Engler wrote:
>
> Just use:
>
> > forever start
ome world of FFI.
Roy
On Thursday, September 6, 2012 1:21:59 AM UTC-4, rhasson wrote:
>
> 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 (
&g
access them.
The main code is here
https://github.com/rhasson/node-libpst/blob/master/ffi_nodepst.js#L1153-L1175
scrolling to the top of the source you will see all the struct declarations.
Here is the output of GDB:
(gdb) run
Starting program: /usr/local/bin/node ffi_nodepst.js
Reading symbols for
ay to
address this using node-ref and node-struct ?
On Wednesday, September 5, 2012 1:09:48 AM UTC-4, rhasson wrote:
>
> Nate,
>
> I'm back with some more questions about node-struct and handling nested
> structures.
>
> In the example below, I created one simple struct w
ere is the correct output:
{ _pointer: }
This is a test: 6
{ _pointer: }
{ _pointer: }
6
Thanks,
Roy
On Wednesday, September 5, 2012 1:09:48 AM UTC-4, rhasson wrote:
>
> Nate,
>
> I'm back with some more questions about node-struct and handling nested
> structures.
>
> In
you can access `t_i` as expected.
>
> Let me know if that's what you needed!
>
> On Tue, Sep 4, 2012 at 10:09 PM, rhasson >
> wrote:
> > Nate,
> >
> > I'm back with some more questions about node-struct and handling nested
> > structures.
>
Nate,
I'm back with some more questions about node-struct and handling nested
structures.
In the example below, I created one simple struct with a single Int and
another struct with an Int and a pointer to the first struct.
What I noticed is that I can't access the int inside the nested struct
that struct inside node?
Here is my code: https://github.com/rhasson/node-libpst
I didn't finish converting all the structs yet but give you an idea of what
the code looks like. In the SRC directory I included the .c and .h files
so you can see the structures.
Thanks,
Roy
On Thursday, Aug
#x27;offset', 'int64');
> pst_block_recorder.defineProperty('size', 'size_t');
> pst_block_recorder.defineProperty('readcount', 'int');
>
> On Thu, Aug 23, 2012 at 7:53 AM, rhasson >
> wrote:
> > Nathan,
> >
> > I starte
Nathan,
I started using node-ffi which works great. I need to create some structs
so I'm using ref-struct. Now some of my structs have pointers to
themselves like this:
typedef struct pst_block_recorder {
struct pst_block_recorder *next;
int64_t offset;
size_
/github.com/rbranson/node-ffi/blob/master/binding.gyp#L45-66
>
> On Mon, Aug 20, 2012 at 12:56 PM, rhasson >
> wrote:
> > I'm building a native-addon and I'm using an external dependency that
> when
> > compiles outputs an object file (.o). I want my projec
I'm building a native-addon and I'm using an external dependency that when
compiles outputs an object file (.o). I want my project to compile, then
compile the external dependency (via makefile not gyp) and then link the
resulting objects together to create my addon.
Is there a way to do that?
t; data).split(/[\n\r]+/).filter(function(line) {
> return line.indexOf("sftp>") === -1;
> }));
> this.activeCmdBuffer = "";
> }
> if (!this.activeCmd && this.queue.length && this.stat
"stdin" and "stdout" available on the child process are buffer that inherit
from EventEmitter (well they are streams, unless you change their behavior
when creating the spawned child). As mentioned by Dominic you need to add
event listeners to the data events of the stdout and stderr so you can
did you run "make clean" before trying with --without-snapshots ?
I had a build problem (older g++ version) and it didn't compile v8.1. but
compiles v8.2 great with the --without-snapshots flag.
On Wednesday, July 11, 2012 6:46:45 PM UTC-4, Michael Smith wrote:
>
> On Wednesday, July 11, 2012 2:
Have you looked at Cheerio (https://github.com/MatthewMueller/cheerio) ?
I've been using it over JSDom and it's faster and lightweight. If you're
doing heaving scraping I would recommend checking it out.
On Monday, July 2, 2012 10:30:25 AM UTC-4, ec.developer wrote:
>
> Charles, Thanks for you
it's not working with the changes to common.gypi. I guess I'll have to
upgrade GCC since I'm assuming I'll have this problem with future versions
of Node too.
Thanks,
Roy
On Saturday, June 30, 2012 10:57:28 AM UTC-4, Ben Noordhuis wrote:
>
> On Sat, Jun 30, 2012 at
:52 UTC 2011
> x86_64 x86_64 x86_64 GNU/Linux
>
> ...but was able to compile with...
>
> $ make clean
> $ ./configure
> $ make -C out BUILDTYPE=Debug
>
> - James
>
> On Monday, June 25, 2012 7:07:01 PM UTC-5, rhasson wrote:
>>
>>
>> now to the last sugg
oy
On Monday, June 25, 2012 7:01:23 PM UTC-4, Ben Noordhuis wrote:
>
> On Tue, Jun 26, 2012 at 12:48 AM, rhasson <> wrote:
> > I downloaded the latest v.0.8 tar file and tried to compile it on my
> Fedora
> > 14 and I got this error:
> >
> > LINK(t
I downloaded the latest v.0.8 tar file and tried to compile it on my Fedora
14 and I got this error:
LINK(target) /home/users/roy/node-v0.8.0/out/Release/mksnapshot
LINK(target) /home/users/roy/node-v0.8.0/out/Release/mksnapshot: Finished
ACTION v8_snapshot_run_mksnapshot
/home/users/roy/n
On Monday, April 23, 2012 11:48:33 PM UTC-4, Ben Noordhuis wrote:
>
> On Tue, Apr 24, 2012 at 05:45, rhasson <> wrote:
> > Ben,
> >
> > When I get rid of LD_LIBRARY_PATH and include the ldflags and libraries
> > lines in by binding.gyp file the shared librar
On Monday, April 23, 2012 11:48:33 PM UTC-4, Ben Noordhuis wrote:
>
> On Tue, Apr 24, 2012 at 05:45, rhasson <> wrote:
> > Ben,
> >
> > When I get rid of LD_LIBRARY_PATH and include the ldflags and libraries
> > lines in by binding.gyp file the shared librar
ome/roy/freeling/free3/lib/libfreeling.so']
},
}],
],
'sources': ['freeling.cc', 'freeling_tokenizer.cc',
'freeling_splitter.cc', 'helper.cc'],
},
],
}
On Monday, April 23, 2012 11:03:15 PM UTC-4, B
I don't set it, require fails saying it can't find the shared
library.
Roy
On Monday, April 23, 2012 11:03:15 PM UTC-4, Ben Noordhuis wrote:
>
> On Tue, Apr 24, 2012 at 04:46, rhasson <> wrote:
> > I'm using node-gyp and ldflags didn't work for me either.
> command - very handy!
>
> Thanks,
> Ryan
>
> On Monday, April 23, 2012 3:29:38 AM UTC-5, rhasson wrote:
>>
>> I found out that I needed to set up my LD_LIBRARY_PATH env variable
>> otherwise it will not find the path to the shared library. set it up l
I found out that I needed to set up my LD_LIBRARY_PATH env variable
otherwise it will not find the path to the shared library. set it up like
this: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/hdf5/lib
Then rebuild the project. Once rebuilt type: ldd build/Release/hdf5.node
(or whatever
Just to add to Nathan's comments, you're missing a "libraries" that points
to the the HDF5 shared library that was compiled separately. for example:
'libraries': ['/home/user/hdf5/lib/hdf5.so']
Also, I noticed that when compiling with node-gyp (which I love btw) you
need to set LD_LIBRARY_PAT
Isaac and Nathan,
Thanks for the feedback, I'll follow your guidance by keeping the binding a
simple 1-1 mapping and doing the streaming interface in JS.
Roy
On Sunday, April 15, 2012 11:39:16 PM UTC-4, rhasson wrote:
>
> I'm working on a C++ NLP binding and wanted to impleme
I'm working on a C++ NLP binding and wanted to implemented a streaming
interface so that text could be added to a stream in JS, my native binding
will receive it, extract the text process it and emit a "data"events with
the responses.
How would I go about reading a stream that was either passed
Overall very interesting and looks promising. Like many on here already
stated, how they address security will be interesting. Talking directly to
the DB (as shown in the screencast) opens the door to a lot of concern. In
a client->server->db model at least you have the server abstracting acce
.
Roy
On Saturday, April 7, 2012 2:30:16 PM UTC-4, rhasson wrote:
>
> I'm creating a binding to a C++ library for NLP. You can see the basic of
> it here: https://gist.github.com/2331101#
>
> My problem right now is, in Node when the user instantiates my object with
>
I'll give that a try.
Roy
On Saturday, April 7, 2012 5:21:21 PM UTC-4, Ben Noordhuis wrote:
>
> On Sat, Apr 7, 2012 at 20:30, rhasson <> wrote:
> > I'm creating a binding to a C++ library for NLP. You can see the basic
> of
> > it here: https://gist.g
I forgot to add, in the gist, I tried to store the Freeling object in a
vector that is a class member of my module but that still didn't work.
Roy
On Saturday, April 7, 2012 2:30:16 PM UTC-4, rhasson wrote:
>
> I'm creating a binding to a C++ library for NLP. You can see th
I'm creating a binding to a C++ library for NLP. You can see the basic of
it here: https://gist.github.com/2331101#
My problem right now is, in Node when the user instantiates my object with
the "new" command, in C++ land I instantiate my module's object and then
instantiate the Freeling NLP
seeing your code.
>
> On Fri, Mar 30, 2012 at 2:31 PM, rhasson <> wrote:
>
>> Nathan,
>>
>> Thanks for the help. I was finally able to link my static library with
>> my module but now I'm again getting an undefined symbol error but this time
>>
'sources': ['freeling.cc', 'freeling_tokenizer.cc', 'freeling.h',
'freeling_tokenizer.h'],
},
],
}
On Thursday, March 29, 2012 2:55:43 PM UTC-4, Nathan Rajlich wrote:
>
> Here's how node-ffi is doing it:
> https://github.
times
> hard/impossible).
>
> On Thu, Mar 29, 2012 at 9:15 AM, rhasson <> wrote:
>
>> yes I did. I placed in the same directory as my library .cc files, I
>> placed it in the freeling.node directory.
>>
>> I'm suspicious to how I'm setting up m
yes I did. I placed in the same directory as my library .cc files, I
placed it in the freeling.node directory.
I'm suspicious to how I'm setting up my binding.gyp file. I can't figure
out how to tell in my binding.gyp file that I need my library to link with
an external .so file. Can you pro
re on Linux)?
>
> On Wed, Mar 28, 2012 at 10:51 PM, rhasson <> wrote:
>
>> Nathan,
>>
>> I have a question about node-gyp. I have a native library that I'm
>> building a node binding for. that library (freeling) has been
>> built separately and
reeling_tokenizer.cc']
}
]
}
I'm not sure I'm doing this correctly. Basically, I need to link by module
to the freeling headers and object files so it recognizes the freeling
classes and functions I'll be calling from within my module.
Thanks,
Roy
On Wednesday, March 28, 2
p was a great idea, at least now I
get real error messages that I can debug.
Roy
On Wednesday, March 28, 2012 12:29:48 AM UTC-4, rhasson wrote:
>
> Ok, so I installed 0.7.6 and compiled with node-gyp fine and this time a
> little more details but I'm not sure how to
Ok, so I installed 0.7.6 and compiled with node-gyp fine and this time a
little more details but I'm not sure how to resolve this issue.
> process.version
'v0.7.6'
> l = require('./freeling.node')
Error: /home/roy/freeling/node_bind/build/Debug/freeling.node: undefined
symbol: _ZN17FreeLingToken
I'm building a native module that wraps a library which declares a "node"
class. This class is used everywhere in the library so changing it is very
tedious. Nodejs uses a "node" namespace. Because of this when I build my
module I get name conflict errors everywhere. To test my theory, I ren
Nathan,
I'm having a similar problem. I tried node-waf and node-gyp but both
result in the same error (unable to load share library). I'm running
Fedora 14 (in VM) with node 0.6.7 and 0.6.13.
I checked that my NODE_MODULE declaration is correct and it is.
Here is my module declaration:
#de
I figured it out. in my wscript, I should have added my
"freeling_tokenizer.cc to the source array.
On Mar 25, 8:44 am, rhasson wrote:
> I'm writing a native module that wraps a C program. Below is my
> module declaration but when I build it with node-waf I get the
> followi
I'm writing a native module that wraps a C program. Below is my
module declaration but when I build it with node-waf I get the
following error:
error: ‘node_module_struct’ in class ‘node’ does not name a type
#define FREELING_BINDING
#include
#include
#include "freeling_tokenizer.h"
void Init
46 matches
Mail list logo