Rails is a framework on top of Ruby. So you can't compare Rails to Node.JS.
You can do CRUD with Node.JS. You can do in Nodejs everything that can be
done in Ruby. Only the default paradigm is different. One is synchronous,
blocking and the other is asynchronous, non-blocking by default. You can
A protocol using xml, socket stream
first time I recieve
root foo=
2nd time I recieve
adsfblabl
3rd time I recieve
a/rootroot
Then I should get a xml root foo=asdfblabla/root , and left root
waiting for new coming data.
Any good module to do that?
--
Best regards,
桂林 (Gui Lin)
is node with express is suitable for building large apps like ecommerce
site or real estae portal
On Thu, Aug 30, 2012 at 11:32 AM, Shripad K assortmentofso...@gmail.comwrote:
Rails is a framework on top of Ruby. So you can't compare Rails to
Node.JS. You can do CRUD with Node.JS. You can do
On Thu, Aug 30, 2012 at 02:05:21PM +0800, jason.桂林 wrote:
A protocol using xml, socket stream
first time I recieve
root foo=
2nd time I recieve
adsfblabl
3rd time I recieve
a/rootroot
Then I should get a xml root foo=asdfblabla/root , and left root
waiting
Try saxjs (github.com/isaacs/sax-js)
Streaming path expressions? :) if you want an ee that emit on a path expression
just create that module using a sax based parser
Sent from my iPhone
On Aug 30, 2012, at 7:37 AM, rektide rekt...@voodoowarez.com wrote:
On Thu, Aug 30, 2012 at 02:05:21PM
Yeah I understand the purpose of maintaining comments; I've actually
written a lot of source-to-source transformations myself. The reason I ask
is that I always found it cumbersome to stick non-AST information on the
AST itself. For instance, for /* this is my loop */ (/* this is my
initializer */
I've been working on a web server framework of my own using a cluster of
workers sharing a single listener. The documentation for clusters just says
that workers workers sharing a listener will just automagically throttle
themselves, but I find that unacceptable.
I want to be able to tell a
Hi, i'm working on an Express application that has to type of static
content (image, css, js ecc): private and public.
For public there're not problems, but for private i'm looking for a
solutions, these file must be read only by authenticated user. For now i'm
trying to get all from filesystem
Hi Dan,
Thanks for the reply.
This means if I will use them both required in the same file will not work
right? only when they are in separate file and using different port.
On Monday, August 27, 2012 9:09:45 PM UTC+8, Dan Milon wrote:
You mean both on the same process? Yeah as long as its
In JavaScript you most of the time don't really have a choice whether to
make something async or sync. When there are only synchronous operations in
a function there is no purpose in using callbacks. However when you use
async operations like I/O you have to use callbacks. The things is that
File does not matter. Port matters.
On 08/30/2012 10:33 AM, almarjin wrote:
Hi Dan,
Thanks for the reply.
This means if I will use them both required in the same file will not
work right? only when they are in separate file and using different port.
On Monday, August 27, 2012 9:09:45 PM
You could try such an approach:
https://gist.github.com/3524676
On Thursday, August 30, 2012 2:10:47 AM UTC-5, AndDM wrote:
Hi, i'm working on an Express application that has to type of static
content (image, css, js ecc): private and public.
For public there're not problems, but for
Hi,
I need one that works both in the server and the client.
Regards,
Pedro
--
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 nodejs group.
To
Also error below is occurred:
node ../src/stream_wrap.cc:259: static void
node::StreamWrap::OnReadCommon(uv_stream_t*, intptr_t, uv_buf_t,
uv_handle_type): Assertion `r == 0' failed.
Anybody knowns how to resolve this?
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
hi people
I try to use socket.io but I have this error
XMLHttpRequest cannot load
http://localhost:7070/socket.io/1/?t=1346294690161. Origin null is not
allowed by Access-Control-Allow-Origin.
this is my code:
server.js
var io = require('socket.io').listen(7070);
io.sockets.on(connection,
I'm using http://aheckmann.github.com/gm/ and it works great for image
manipulation. I've tried one other library that was written to use
imagemagick and it was pretty buggy.
I have run across https://github.com/LearnBoost/node-canvas which might be
more what you're looking for...
-Dave
On
On Thu, Aug 30, 2012 at 5:49 AM, Aleafs zhangx...@gmail.com wrote:
Also error below is occurred:
node ../src/stream_wrap.cc:259: static void
node::StreamWrap::OnReadCommon(uv_stream_t*, intptr_t, uv_buf_t,
uv_handle_type): Assertion `r == 0' failed.
Anybody knowns how to resolve this?
My guess is that you are directly opening your HTML file from the file
system in a browser instead of via a localhost URL. I think you need an
HTTP server that works with Socket.IO and serves your static HTML file. You
can use Express or Strata for that. I can send you an example of setting
that
Hi, really thanks, i'm trying with this, but it seems that have problems
with rendering, for jpg it tells me that have errors and for style and html
i've enconding errors too.
[image: The image “https://localhost:10443/static/private/img.jpg” cannot be
displayed because it contains errors.]
Hey guys,
I don't know if i can post this question in here, but nobody else could
answer me in other forums :(
my problem is the following: I'm trying to give the img tag the source of a
base64 address which i already tested here:
http://www.base64online.com/image_base64.php and on this page it
Hi everybody,
I justed wanted to say that I am starting to work on an open source library
for Avro serialization format support in Node.js.
If you are interested in Avro for Node.js, I would love to hear from you.
Please post any questions or suggestions you may have here, or use the
Github
Hello node.js users
I have created a lightweight routing library that uses the powerful
syntax of Flask(python web framework) for declaring routes. The syntax is
clean and extensible through custom parameter parsers. It can be used as a
node.js application or connect/express middleware.
Hi guys, I need your help
As how node cluster module works, the workers works like normal Socket
Server, also it can listen to a public port, and handle the data client
pass it.
I have couple question about cluster.
1. listening
The master process listen at the public port, but what those
This works for me:
https://gist.github.com/3524676
On Thursday, August 30, 2012 8:16:12 AM UTC-5, AndDM wrote:
Hi, really thanks, i'm trying with this, but it seems that have problems
with rendering, for jpg it tells me that have errors and for style and html
i've enconding errors too.
4
On Thu, Aug 30, 2012 at 12:12 AM, Shigeki Ohtsu oh...@iij.ad.jp wrote:
clientError on http.Server 2.5(I've never used before)
clientError on https.Server 2(I sometimes used for debug)
I think that clientError on https.Server is valuable to check SSL errors as
$node https_server2.js
A quick and dirty way is to wrap express.static middleware. You can try
something like:
app.use(function(req, res, next){
// do authentication
if(authorized){
express.static(/private)(req, res, next);
} else {
next();
}
On Thu, Aug 30, 2012 at 9:16 AM, AndDM
Hi 桂林:
Nice to see a Chinese in the maillist.
From what I read, children processes do I/O directly, not through the
master.
Ribao Wei
On Thu, Aug 30, 2012 at 9:58 AM, jason.桂林 guil...@gmail.com wrote:
Hi guys, I need your help
As how node cluster module works, the workers works like normal
On Thu, Aug 30, 2012 at 4:33 PM, Eric e...@craftti.com.br wrote:
Hi Guys,
My node.js app needs to tal with a webservice using soap over HTTPS
connection but using his own SSL certificate (self-signed certificate). In
other languages like java all I need to do is import the PEM file into the
Don't forget to specify an agent of explicitly set agent = false. If you
don't the global agent will be used and your certificate will be ignored.
There's a note about that behavior in
http://nodejs.org/api/https.html#https_https_request_options_callback but I
recently overlooked that and it took
I removed the static from all the places from the above code, and i
still get the same error.Also do you mean NODE_SET_METHOD, since i am
using NODE_MODULE to call init function.
On Thursday, August 30, 2012 4:54:21 AM UTC-7, Ben Noordhuis wrote:
On Thu, Aug 30, 2012 at 1:59 AM, Pavi
Hi Skyler,
For some reason i am not able to view your mess , it just shows 4 --.
Can you please reply back.
On Wednesday, August 29, 2012 6:23:30 PM UTC-7, Skyler Brungardt wrote:
4
--
Skyler Brungardt
On Wednesday, August 29, 2012 at 11:51, Pavi wrote:
Hi,
I shifted to gyp, and
Hi Pavi,
That's a mail-reader fail. That was meant for another thread. Kindly
disregard! :-)
--
Skyler Brungardt
On Thursday, August 30, 2012 at 10:33 AM, Pavi wrote:
Hi Skyler,
For some reason i am not able to view your mess , it just shows 4 --.
Can you please reply back.
On
Well, the good news is that I'm maintaining both start/end tokens in
all AST nodes, and inside tokens I maintain line/col/pos/endpos too.
And on top of this, there's a comments_before array in all tokens
which tell what comments were found before that token (though that's
not so useful for perfect
Out of topic, but you gave me the clues.
Do you know where i can read up about AST trees for javascript?
Thanks a ton,
danmilon.
On 08/30/2012 12:27 AM, Marcel Laverdet wrote:
Just curious why you need the comments in the AST at all? If you've
got the start position length of every token in
Hi I get,
WARNING: ev_unref is deprecated, use uv_unref Warning when i try to run my
Java script.
I tried to changed my *.cc file as below
from,
ev_unref(EV_DEFAULR_UC)
To,
uv_async_t h;
uv_async_init(uv_default_loop(), h, NULL);
uv_unref((uv_handle_t*)h);
But this once throws
Apologize if this is a old-issue but, why Buffer has its size static?
Why don't use realloc to resize its capacity?
I have done a addon of resized buffers and it works perfectly 8-|
grettings.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
4
On Wednesday, 29 August 2012 16:07:23 UTC-7, Isaac Schlueter wrote:
Do you use the clientError event?
Please choose one:
1. Yes, I use it all the time. Please don't change it ever, thank you.
2. I don't use it, but I'm aware of it, and I think I might someday.
3. I don't use it,
On Thu, Aug 30, 2012 at 11:12 PM, Seiji Sam Lee seijisam...@gmail.com wrote:
Apologize if this is a old-issue but, why Buffer has its size static?
Why don't use realloc to resize its capacity?
Because bad things would happen if the code below was legal:
var buf = new Buffer(1024);
nice to meet you too.
all workers listen to the same address, why no problem like address
already bind.
why i care about how it works because the i need dispatch connection to
workers manually, and the connections need communication, you know like a
chat server, A send message to B but they are
I realize that the ticket mentioned in this thread is probably already
taken, but free free to ping me at @ryanj if anyone hears of another spot
opening up.
I'd love to be able to attend!
On Tuesday, August 28, 2012 7:22:57 AM UTC-7, codepilot Account wrote:
Let me know if you hear anything.
Hi all
I am doing an investigation which relates to the npm cache. I though I
understood how the cache worked, but Iam seeing behavior in recent builds
that is different than what I expected. It may be however that I am
misunderstanding how the cache is used. I have not walked the code yet
(which
On Aug 30, 2012, at 08:21, Manner wrote:
my problem is the following: I'm trying to give the img tag the source of a
base64 address which i already tested here:
http://www.base64online.com/image_base64.php and on this page it returns a
picture.
But on my site there is nothing, only a
42 matches
Mail list logo