use screen
On Tuesday, October 16, 2012 10:24:40 AM UTC-4, Chad Engler wrote:
Just use:
forever start script
And see what is running:
forever list
And stop a script:
forever stop index_or_script_name
-Chad
-Original Message-
From:
, 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 (
http://www.five-ten-sg.com/libpst/). I started by creating
`_f.t_p.deref()`. Then 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 rha...@gmail.com javascript:
wrote:
Nate,
I'm back with some more questions about node-struct and handling nested
structures.
In the example below
: Buffer@0xa14dbf0 e8 26 69 08 2e 00 00 00 }
This is a test: 6
{ _pointer: Buffer@0xa14dbf0 05 00 00 00 f8 8a 12 0a }
{ _pointer: SlowBuffer@0xa128af8 06 00 00 00 }
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
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 with a single Int and
another struct
to 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
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
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;
('readcount', 'int');
On Thu, Aug 23, 2012 at 7:53 AM, rhasson rha...@gmail.com javascript:
wrote:
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
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, August 23, 2012 1:15:15 PM
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
]) {
this.activeCmdBuffer += data;
cbprogress(data);
}
}
On Monday, 30 July 2012 21:23:35 UTC+1, rhasson wrote:
stdin and stdout available on the child process are buffer that
inherit from EventEmitter (well they are streams, unless you change
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
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 5:58 AM, rhasson wrote
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 suggestion you made:
I made the change to deps/v8/build/common.gypi
and run:
[roy@mainserver1
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
, 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(target) /home/users/roy/node-v0.8.0/out/Release/mksnapshot
LINK(target) /home/users/roy/node-v0.8.0/out/Release/mksnapshot:
Finished
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
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 like
this: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/hdf5/lib
Then rebuild the project
.
But if 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. Maybe Nathan
has
an idea, but I found out
, 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. Maybe Nathan
has
an idea, but I found out that I needed to set the LD_LIBRARY_PATH
otherwise
my shared library wouldn't link
, 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 library is not linked as shown
by
ldd. If I set
, 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 library is not linked as shown
by
ldd. If I set
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_PATH
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 dataevents with
the responses.
How would I go about reading a stream that was either passed
.
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
the new command, in C++ land I
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
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 the basic of
it here
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.github.com/2331101#
My problem right now
, 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
on my own module's methods.
I can't seem to get away from this problem.
[root@localdev Release]# ldd
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 in the build directory has an include and lib folders
with the headers and .so files.
I built my module
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
, 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 my binding.gyp file. I can't figure
out how to tell in my binding.gyp file that I need my library to link
classes and functions I'll be calling from within my module.
Thanks,
Roy
On Wednesday, March 28, 2012 12:38:29 AM UTC-4, rhasson wrote:
Never mind, I found the problem.
In my .cc file I was declaring the function as GetWString() instead of
FreeLingTokenizer::GetWString(). After adding
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 resolve this issue
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 node.h
#include v8.h
#include freeling_tokenizer.h
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 rhas...@gmail.com 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
following
38 matches
Mail list logo