I've been working on a little node server framework that was started for a
similar problem: http://actionherojs.com actionHero uses socket.io
for websocket clients, but also extends the chatroom metaphor for TCP/TLS
and even HTTP/S clients as well. It supports cluster and multiple servers
(vi
I think I'm one of the few guys who still likes SQL :)
One of my New Year resolutions was to learn AngularJS and use it for a
project.I started down that path today and ported the Backbone Todo app.
Both examples are here: https://github.com/mgutz/mapper
Should run on OSX or Linux. You'll need
Ben, thanks so much for the help - I finally seem to have gotten things
working (or they appear to be). It was a matter of not really knowing
what I was doing in Gyp, and was linking to my files wrong. I finally
ended up building verbosely and comparing what g++ was doing for each
project and
Hello Crenshinibon
Thanks for your response, now I had solved the problem
it's really because the ie request is different from chrome or ff like you
said , it's because ie didn't send the option request first
so now i use a buffer to receive all the data by the request even "data" ,
now i can
Thanks for trying to help.
Here's more information.
I don't do P2P. I just push (stream) data to everyone connected and it's
not storing video it's live broadcast.
The stream don't eat bandwidth as far as I notice. It eats RAM. Bandwidth
almost does not change during the stream.
Any idea about
Hi people!
Alex: very interesting idea.
I was exploring Go language channels, futures, promises, and I implemented
some form of channels in other language. I tried to implement Storm project
in Node.js, too, I need to define distributed topologies.
Now, reading your syntax, I just wrote my modul
Varnish is great at normalizing http headers. You could make this telco site a
"backend" on varnish and continue on parsing in node.
sub vcl_recv {
req.http.Content-Length = regsub(req.http.Content-Length, '^([0-9]+)', '\1');
}
On Jan 8, 2013, at 6:34 PM, Matt wrote:
> On Tue, Jan 8, 2013 at
Whoops, https:/github.com/snoj/speedtest.
Sorry guys.
On Tuesday, January 8, 2013 7:31:41 PM UTC-6, snoj wrote:
>
> A couple months ago I needed a way for a user to test a VPN's speed at
> their leisure and while preforming their tasks. It's also been very helpful
> in a WAN project at work. I
On Tue, Jan 8, 2013 at 5:24 PM, Marcel Laverdet wrote:
> By heavy load I'm talking about network traffic, either on your end, their
> end, or any hop in between. "In the first packet" is certainly *not*
> something I'd recommend anyone to depend on, as that depends on a whole lot
> of things.
>
A couple months ago I needed a way for a user to test a VPN's speed at
their leisure and while preforming their tasks. It's also been very helpful
in a WAN project at work. I figured the simplest way would be a HTTP speed
test. I couldn't really find anything quickly besides http://speedof.me,
As I said, a large topic. I feel like exploring this is really good though.
The architecture we're describing is one that will be increasingly
interesting for web apps going forward. Figuring out how to make it work
well with nodejs as the server component would be a win.
That said, I don't know e
Sorry, I didn't catch the usage of P2P. That is a horse of a different
color.
On Tue, Jan 8, 2013 at 2:09 PM, Adam Malcontenti-Wilson wrote:
> If your using WebRTC P2P for streaming the video, the slow streaming
> very well may be client-side, as it relies on each peer having enough
> upload b
By heavy load I'm talking about network traffic, either on your end, their
end, or any hop in between. "In the first packet" is certainly *not*
something I'd recommend anyone to depend on, as that depends on a whole lot
of things.
The monkey patching is gross, but hey it works. The only thing here
If your using WebRTC P2P for streaming the video, the slow streaming
very well may be client-side, as it relies on each peer having enough
upload bandwidth to each other peer. The only reason your server would
be involved in the slowing down of streaming is if you were piping the
video through the
Exactly, it's designed for this one service which always sends the
Content-Length capitalized like this, and screwed up with the comma, and in
the first packet. If there's other screwy things in the future we can deal
with them then. Believe me I know all about parsing headers (I had to write
the p
omg I can't believe you've done this.
Obviously this won't work if the server doesn't send
"Content-Length" capitalized like you have here, but if you're only
designing against one service that's not a huge issue. You should be aware
though that this may fail in certain rare circumstances, or unde
I made just one small change to Ciprian's idea: we can use "=>" to specify the
output of entire circuit operation:
var circuit=new Circuit({
"->sum1" : function() { add(1, 2, this.setter.sum1) },
"->sum2" : function() { add(3, 4, this.setter.sum2) },
"sum1,sum2=>result" : function() {
Rather than go into patching anything, I managed to get this to work:
r.on('request', function (req) {
req.on('socket', function () {
var oldOnData = req.socket.ondata;
var first_packet = true;
req.socket.ondata = function (d, start, end) {
I am trying the exact thing in nano, and I do not get any results back. All
I get is:
{
"total_rows": 3797,
"offset": 3797,
"rows": []
}
Works great if I pass the same parameters to the couch view via browser.
Please help.
-Manish
On Monday, December 19, 2011 12:28:32 PM UTC-5, Victor
Apply this patch:
https://gist.github.com/4487528
Node shouldn't be barfing on anything a browser can display and should
really be more tolerant of these failures. I should submit a PR.. but not
sure if this will cause other issues down the road.
On Tue, Jan 8, 2013 at 12:42 PM, Matt wrote:
> W
I mean, use the manual client as a fallback. It's only as good/hard as you
need it to be. You could simply look for the first instance of "\r\n\r\n"
and assume everything after that is the body. If you needed the headers,
just split on "\r\n" and then split on ":" and you'll get most of it.
Dep
On Tue, Jan 8, 2013 at 2:26 PM, Tim Caswell wrote:
> You can use the TCP client directly and hand-roll the http request. Your
> response won't be parsed as http (nor would you want to in the error case),
> but you can write a crude parser in js to get the bulk of it.
>
Yeah that occurred to me
On Tue, Jan 8, 2013 at 2:22 PM, Ryan Schmidt wrote:
> I'll bet you already have, but sending a bug report to whoever's serving
> that invalid content so that they can fix it seems like the best and
> simplest solution
>
Yeah - have contacted them but they're a big telco - I very much doubt
they'l
You can use the TCP client directly and hand-roll the http request. Your
response won't be parsed as http (nor would you want to in the error case),
but you can write a crude parser in js to get the bulk of it.
On Tue, Jan 8, 2013 at 12:42 PM, Matt wrote:
> We're doing web scraping using node
On Jan 8, 2013, at 12:42, Matt wrote:
> We're doing web scraping using node and coming across an issue that we cannot
> fetch a particular URL on a particular web site, because it sends back:
> "Content-Length: 1234,1234"
I'll bet you already have, but sending a bug report to whoever's servin
Good idea indeed. If we write it like this:
var circuit=new Circuit({
"->sum1" : function() { add(1, 2, this.setter.sum1) },
"->sum2" : function() { add(3, 4, this.setter.sum2) },
...
})
circuit.run(printResult);
- it solves 2 problems:
1) makes parsing of the body of function unnece
> I heard some people send data in chunks. Is this possible to make it
faster?
I don't remember details right now. Someone else will have to help you.
I don't think flash does anything special to serve video. It just serves a
file.
On Mon, Jan 7, 2013 at 10:58 PM, Ket Nonting wrote:
> I hear
We're doing web scraping using node and coming across an issue that we
cannot fetch a particular URL on a particular web site, because it sends
back: "Content-Length: 1234,1234"
I totally understand that node's http parser doesn't deal with this, and
throws an error, but is there any way we can in
On Mon, Jan 7, 2013 at 11:36 PM, wrote:
> Today's Topic Summary
>
> Group: http://groups.google.com/group/nodejs/topics
>
>- Node web interface to execute and handle the Perl & Shell backed
>process. <#13c1871ae4cd43fd_group_thread_0> [3 Updates]
>- Simple chat-room example? <#13c18
Take a look at:
http://pomelo.netease.com/
-Chad
From: nodejs@googlegroups.com [mailto:nodejs@googlegroups.com] On Behalf
Of DerDree
Sent: Tuesday, January 08, 2013 10:41 AM
To: nodejs@googlegroups.com
Subject: [nodejs] multiplayer game: scaling lots of gamerooms
I'm programming a m
This is probably a good time to mention 'Rude' a tool i've been working on
for handling large project assets.
https://github.com/jacobgroundwater/rude
Basically Rude lets you version control assets in git without storing the
actual asset in git. When running locally, assets are served from a loca
I introduce new human and computer friendly and easy
to extension format. It name is "Tree"
https://github.com/nin-jin/node-jin#tree
This is only experiment, not for production yet!
Features:
1. streaming (dislike XML and JSON than needed root node): parsed
line-by-line
2. simple (XML, YAML, JSO
Hi, i rewrite my CMS project, maybe someone could have interest on it:
https://github.com/anddimario/mucontent
Best regards.
--
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 s
I think they are handling things pretty well. The only reason I get as
much info on the error as I do is that they provide a method to print out a
detailed explanation why the initialization object is null or invalid - and
I printf that.
So, I think whatever is happening on or around the dlopen i
I'm programming a multiplayer game using node.js and socket.Io and during
that work I got some questions and thoughts concerning performance.
At the moment only one gameroom can be opened and the socketio server does
forward basic messages like direction changes of players to the other
connecte
On Tue, Jan 8, 2013 at 3:22 PM, Benjamin Farrell wrote:
> Awesome, I appreciate it! Onto the OpenNI forums! If anybody knows
> otherwise I'd love to hear it so I'm not banging my head against the wall
> needlessly. And honestly this is great news - I'm glad it wasn't what I was
> afraid of - th
Hello,
I Am trying to implement node server with https, but facing some
problems.
This is what I have done so far :-
I submitted csr to geotrust and got crt and intermediate bundle crt.
My current node.js code :-
var fs = require('fs');
var privateKey =
fs.readFileSync('/path_to_certific
Hi,
I have on my dedicated server, a node http server and a node script which
is executed once each day.
The script check if there a new review, download some informations and then
create an email with this information and send it to the email api of my
node http server.
When the script is exe
Here's a tutorial that we wrote that provides step-by-step instructions on
how to create a chat room with socket.io and Node. Might be helpful.
http://www.switchonthecode.com/tutorials/simple-chat-nodejs-plus-websockets
On Friday, January 4, 2013 6:38:17 PM UTC-5, Josh Santangelo wrote:
>
> I'm
Thanks Tim,
Your suggestion makes sense. There was a demo. It's fast. The creator
demonstrates it with an outdated Blackberry cell phone and it's 2 years ago.
Everything should be greatly improved by now.
I hope you're right.
On Tuesday, January 8, 2013 8:48:24 PM UTC+7, Tim Caswell wrote:
>
>
I am not sure I understand the use of a pull stream in this context. Can
you explain in a small example of how to use a stream instead of
domains/middleware/etc. in this fashion for control flow?
On Tuesday, January 8, 2013 3:59:29 AM UTC-6, Raynos wrote:
>
> Sounds like you want a pull stream t
Awesome, I appreciate it! Onto the OpenNI forums! If anybody knows
otherwise I'd love to hear it so I'm not banging my head against the wall
needlessly. And honestly this is great news - I'm glad it wasn't what I
was afraid of - that this wasn't going to be possible in Node for some
silly re
Just found a relevant quote from Crockford on the subject:
I removed comments from JSON because I saw people were using them to hold
parsing directives, a practice which would have destroyed interoperability.
I know that the lack of comments makes some people sad, but it shouldn't.
Suppose you
Since you say it works fast locally and slow over internet, I'm guessing
the issue is bandwidth and internet latency. If the node proceess isn't
maxing out a cpu core, it's probably not the bottleneck. You may need to
change your architecture not your runtime. For example use node to set up
p2p c
...and the links:
https://github.com/amper5and/voice.js
https://npmjs.org/package/voice.js
Regards,
Alex
--
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 G
Hi all,
I want to announce the latest version of voice.js (0.1.3). It is a Google
Voice module for node.js that permits interaction with all aspects of GV.
Use it to:
- place calls
- send texts
- access and manipulate GV conversations
- access and manipulate GV forwarding phones
On Fri, Dec 28, 2012 at 3:03 AM, Alex ("Tatumizer") wrote:
> After a lot of head-scratching, I found the way to eliminate all boilerplate
> and syntactic noise, and eventually came up with completely new design -much
> simpler one, and much more powerful: just two functions and their
> combination
Thank you greelgorke,
your suggestion will really help for me to keep up with my projects. I have
multiple Perl and Shell scripts which does high volume of taks,
--- Interaction with remote machine to trigger various process and move
the files around.
--- Interact with subversion reposi
Sounds like you want a pull stream to me. You pull from the data until you
dont need it anymore and then stop pulling.
Which can be contrasted to a push stream which will continue pushing at you
forcing you to do an if check
and just ignore the excess data.
So I think the issue is your trying to
And one more thing. If you define "contentType" in your ajax request you
have to add "Content-Type" to the responses "ACCESS_CONTROL_ALLOW_HEADERS".
I think I did this in the example.
regards
Dirk
Am Montag, 7. Januar 2013 17:38:39 UTC+1 schrieb Crenshinibon:
>
> I remember one additional thing
the answer is: it depends. Node is a good choice to offer a webinterface to
a conglomerate of scripts on os level. in fact this is the big strength of
node to handle much i/o. But the question about rewriting has nothing to do
with it, it's higher order question:
- are your scripts doing their j
Completely agree that not having the default action at the end would cause
issues in a single middleware stack.
I use middleware trees rather than single stack with Understudy, it would
go to the end of an action (for example the default action such as just
closing the HTTP request). I run into
Thank you for suggestion.
Hope the details below would help.
The hosting is A2Hosting, a vps package, based in Michigan. I know it's not
powerful but I plan to upgrade over time.
The node.js package is provided by Joyent on Github here:
https://github.com/joyent/node
The websocket package pro
53 matches
Mail list logo