The idea:
// inside index.jsrequire.use('fs', 'node_modules/third/party',
require('./smart-fs'))
After this the third party module uses our smart file system instead of
built in.
The example implementation is herehttps://github.com/eldargab/node-runtime.
While it can be used right know it
Sounds good =)
Deel free to fork and send pull requests.
And we could discuss our ideas and so on. Maybe email or skype?
On Friday, July 27, 2012 6:15:41 AM UTC+4, Sri wrote:
I did something similar at express-bootstrap some weeks ago:
https://github.com/Srirangan/express-bootstrap
Maybe
There is nothing wrong with using HAproxy to load balance WebSocket / Socket.IO
requests. It works perfectly fine
and is a proven and well established technology stack. You just need to make
sure that you run it TCP mode.. Here
is some example configuration on working with Socket.IO + HAProxy +
Is it mandatory to call uv_close in the callback of uv_write?
Or we can just write it like this (3 uv_writes, followed by one uv_close):
uv_write(write_req, (uv_stream_t*)handle, resbuf, 1, 0);
uv_write(write_req, (uv_stream_t*)handle, resbuf, 1, 0);
uv_write(write_req, (uv_stream_t*)handle,
Lua is as capable as any other language ;)
And yes, it is faster when it comes to matrices because of its well
designed table-approach.
But it suffers from the same limitations as all dynamic languages do.
Doing all the calculations within Redis wouldn't speed up the system. BUt
it's a nice idea
On Fri, Jul 27, 2012 at 1:23 PM, Sitnin sit...@ya.ru wrote:
Sounds good =)
Deel free to fork and send pull requests.
And we could discuss our ideas and so on. Maybe email or skype?
I'm not sure anyone would object to discussions here, I personally wouldn't
anyway :)
On Friday, July
On Fri, Jul 27, 2012 at 1:54 PM, Mihamina Rakotomandimby
miham...@rktmb.org wrote:
On 07/27/2012 08:47 AM, Felix Halim wrote:
I was expecting to see this chat room to keep running indefinitely:
http://chat.nodejs.org/
Despite Node is a wonderfull tool, I think we should the right tool for
Hey guys,
I want to write applications that actually don't need evented I/O (or not
always) like regular GUI applications in Javascript, because, well I like
Javascript.
My question is if it's a good idea to build upon Node.js. Technically I
could also use v8 directly but then I can't make use
http://appjs.org
On Fri, Jul 27, 2012 at 5:11 PM, wtfux wtfux@googlemail.com wrote:
Hey guys,
I want to write applications that actually don't need evented I/O (or not
always) like regular GUI applications in Javascript, because, well I like
Javascript.
My question is if it's a good
Very interesting idea !
I was implementing that in my php framework, but the php into the pages i
load is not interpreted...
Is there a way to make the php works with that ?
Is it better to use another langage to do it properly ? Actually, i work
with Symfony2 which is a very good framework.
I cannot use the sessions because i have to do actions to users in
relations with others.
For instance, user A click on a link, a pop-up appears on the browser of
user B, because there are linked by something, so i need the user B socket.
2012/7/26 Alan Hoffmeister alanhoffmeis...@gmail.com
Backbone behavior is independent of server-side language choice, in general.
But I didn't grasp one thing, yet:
Why you want not to lost the socket? Use case?
Maybe, you can REOPEN the socket in the new page, and associate the new
socket with something, like a room name or something else. But,
Hi all,
I did some google search but still not found any example/tutorial for my
case.
Assume I have a nodejs app using socket io, and I want to use
node-http-proxy as load balancer.
My app is replicated in 2 servers with the same port.
server1: myapp_url:8000
server2: myapp_url:8000
How I
I got the same question when I started to build my chat room website.
Thanks and Regards,
Sky
http://chat.skychen.com
http://almandsky.blogspot.com
Felix Halim felix.ha...@gmail.com 於 2012/7/27 下午5:57 寫道:
On Fri, Jul 27, 2012 at 1:54 PM, Mihamina Rakotomandimby
miham...@rktmb.org wrote:
On
Hi,
I've managed to debug the nodejs with intelliJ via node-supervisor. As we
know, intelliJ allows remote debug. All we do is to run node app in remote
debug, then setup remote debug on intelliJ and you're done.
+ To setup remote debug with node-supervisor, see
this:
On Fri, Jul 27, 2012 at 9:36 AM, Arnout Kazemier i...@3rd-eden.com wrote:
Nginx will probably not work because it doesn't support HTTP 1.1 for
upstream proxies.
That's no longer true as of nginx 1.2.0. Websocket support is targeted
for 1.4.0.
--
Job Board: http://jobs.nodejs.org/
Posting
On Fri, Jul 27, 2012 at 9:38 AM, Felix Halim felix.ha...@gmail.com wrote:
Is it mandatory to call uv_close in the callback of uv_write?
Or we can just write it like this (3 uv_writes, followed by one uv_close):
uv_write(write_req, (uv_stream_t*)handle, resbuf, 1, 0);
uv_write(write_req,
Hello,
I'm developing a C++ addon and I'm trying to access the object wrap of a
unix stream net.Socket. Basically what I'm doing is:
1) in C++ land
/* The first argument of the function is the socket */
LocalObject obj = args[0]-ToObject();
if (obj-InternalFieldCount() 0) {
PipeWrap*
I know AppJS but I don't see how this is related.
I'm thinking more of a way like how you use languages like python. You have
python installed and with the right libraries you can write GUI
applications with it (GTK, wxWidgets and so on). Replace python with
Node.js here. I've already started
On Fri, Jul 27, 2012 at 8:00 PM, Ben Noordhuis i...@bnoordhuis.nl wrote:
On Fri, Jul 27, 2012 at 9:38 AM, Felix Halim felix.ha...@gmail.com wrote:
Is it mandatory to call uv_close in the callback of uv_write?
Or we can just write it like this (3 uv_writes, followed by one uv_close):
Take one oz of appjs and throw in the javascript/dom based gui library
of you choice.
Now shake (or maybe stir) and voila: A GUI application.
On Fri, Jul 27, 2012 at 2:16 PM, wtfux wtfux@googlemail.com wrote:
I know AppJS but I don't see how this is related.
I'm thinking more of a way like
Build node as a library is easy, change the line 'type':
'executable' in node.gyp to 'type': 'shared_library', and then
use gyp to generate project files.
On Fri, Jul 27, 2012 at 6:11 PM, wtfux wtfux@googlemail.com wrote:
Hey guys,
I want to write applications that actually don't need
On Fri, Jul 27, 2012 at 2:19 PM, Felix Halim felix.ha...@gmail.com wrote:
So, the only way to correctly call uv_close() is to wait until all
uv_write's callbacks have been called?
Why don't it get queued just like multiple_calls to uv_write() ?
(I am asking why it is designed that way)
The real socket handle is stored in `socket._handle`, not in `socket`.
пятница, 27 июля 2012 г., 16:04:44 UTC+4 пользователь sgimeno написал:
Hello,
I'm developing a C++ addon and I'm trying to access the object wrap of a
unix stream net.Socket. Basically what I'm doing is:
1) in C++ land
It works now. Thanks!!
2012/7/27 Oleg Efimov (Sannis) efimo...@gmail.com
The real socket handle is stored in `socket._handle`, not in `socket`.
пятница, 27 июля 2012 г., 16:04:44 UTC+4 пользователь sgimeno написал:
Hello,
I'm developing a C++ addon and I'm trying to access the object wrap
Of course we can write a code snippet to redirect request to expected
server manually by node-http-proxy.
Based on https://github.com/nodejitsu/node-http-proxy/ examples, I just can
find snippet code to stick from proxy server to ONE nodejs (using websocket/
socket.io), I want redirecting from
When we call:
uv_run(uv_loop);
The lines after that will never get called, unless we exit from uv_loop.
What is the function to call for that?
Felix Halim
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You
Hi,
using https to post, and expecting data return is xml, but the first
few bytes are not, the rest is, any idea how to instruct https to
return xml:
Buffer ef bb bf 3c 3f 78 6d 6c 20
thanks,
angelo
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
Did you actually have a look at the code behind? I you really find this
(both implementation and rules introduced) adding complexity?
On Friday, July 27, 2012 7:07:12 PM UTC+4, Rob Ashton wrote:
Do we need dependency injection in nodejs? Well - if you mean dependency
injection literally, we
That is the UTF-8 Byte Order Mark. It's perfectly valid.
http://en.wikipedia.org/wiki/Byte_order_mark
On Fri, Jul 27, 2012 at 11:16 AM, Angelo Chen angelochen...@gmail.comwrote:
Hi,
using https to post, and expecting data return is xml, but the first
few bytes are not, the rest is, any idea
var mockedModule = require.use('some-module', {'fs':
require('smart-fs'), 'path': require('smart-path'), ...})
That would make more sense, wouldn't it?
On Fri, Jul 27, 2012 at 5:17 PM, Eldar eldar...@gmail.com wrote:
Did you actually have a look at the code behind? I you really find this
(both
Thanks for your reply.
If anyone wants to join us as an instructor or TA, please contact me and we
will set a meeting with you. We are planning to have these training in
various places in the world in order to evangelize nodejs and JavaScript
prototyping.
Additionally, we are looking for hackers
Why don't you guys open up the Wiki section on the uv github so we can get
some tuts rolling?
On Friday, July 27, 2012 9:57:22 AM UTC-4, Felix Halim wrote:
On Fri, Jul 27, 2012 at 8:00 PM, Ben Noordhuis i...@bnoordhuis.nl
wrote:
On Fri, Jul 27, 2012 at 9:38 AM, Felix Halim
On Fri, Jul 27, 2012 at 6:42 PM, Bry brandon.add...@gmail.com wrote:
Why don't you guys open up the Wiki section on the uv github so we can get
some tuts rolling?
Done.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
On Fri, Jul 27, 2012 at 4:52 PM, Felix Halim felix.ha...@gmail.com wrote:
When we call:
uv_run(uv_loop);
The lines after that will never get called, unless we exit from uv_loop.
What is the function to call for that?
Felix Halim
There isn't one. Call uv_run_once() repeatedly instead.
FWIW, for debug I prefer node-debug. I use node-supervisor in production.
On Fri, Jul 27, 2012 at 2:19 AM, Hoat Le hoatle...@gmail.com wrote:
Hi,
I've managed to debug the nodejs with intelliJ via node-supervisor. As we
know, intelliJ allows remote debug. All we do is to run node app in
Before posting an issue I wanted to discuss it here to make sure I'm doing
things correctly.
What I'm seeing is occasional bad characters in my gzip file.
Here is the code I use to create the file...
var fstream = require('fstream');
var tar = require('tar');
var zlib = require('zlib');
Erm, outside of the amateur hour projects just such functionality exists:
http://blog.endpoint.com/2011/02/locally-served-yui3.html
And yes, once you have had the pleasure of using it on non-trivial apps you
miss it dearly when dealing with the ad-hoc structured or 'good enough
rolled'
Yeah, that's pretty much the whole point of Broadway.
I use Broadway a lot of plugin systems. Essentially, where you are
requiring files as node.js modules, but you want programmatic hooks into
the initialization and attachment process of the module.
On Fri, Jul 27, 2012 at 2:57 PM, Joshua
I am writing one web-like linux shell using node.js + socket.io. Simple
command like, ls, cd are working well. But when issue command like ping
google.com, the stdout is printing endlessly. I tried to send Ctrl +C to
stdin, but no luck.
1) spawn 'bash' process
spawn =
I would say try: https://github.com/chjj/tty.js
On Fri, Jul 27, 2012 at 4:47 PM, Herry Wang tech.he...@gmail.com wrote:
I am writing one web-like linux shell using node.js + socket.io. Simple
command like, ls, cd are working well. But when issue command like ping
google.com, the stdout is
yeah, actually i am looking into tty.js. But i wanna use it in my own
project with 'light' version.
Just wandering why \x03 is not working.
Thanks
Herry
On Fri, Jul 27, 2012 at 4:49 PM, Marak Squires marak.squi...@gmail.comwrote:
I would say try: https://github.com/chjj/tty.js
On Fri, Jul
Here is spec file
for openSUSE:
https://build.opensuse.org/package/files?package=nodejsproject=devel%3Alanguages%3Anodejs
суббота, 28 июля 2012 г., 0:51:53 UTC+4 пользователь Floren Munteanu
написал:
Hi everyone,
My goal is to create a set of nodejs 64bits rpm's for Redhat/CentOS 5 and
Thanks Tim
I've checked https://github.com/pgriess/node-msgpack, but I'm afraid that's
not exact the thing I'm looking for.
The problem I'm facing is:
In our node app, we use socket to deal with large number of real-time
binary data sent from multiple clients.
For performance and memory
44 matches
Mail list logo