Hi,
I am currently experimenting with domains in a storage-library that
provides me with a uniform interface to s3, memcache, files, mongo, et. al.
It is an awesome feature, that allows for much easier error handling and
enables me to centralize error-reporting in a structured and easy way.
On Jun 20, 5:09 pm, Fabian Korak fabian...@googlemail.com wrote:
Hello,
I'm currently working on a project concerning an echo-algorithm implemented
in Node. The problem I have is that Node is using it's own ports for
sending over the sockets.
*Start-Node:*
var port_start = 2;
var
Okay, sorry for the double post then, I'll post it there...
On 20 Jun., 17:13, Bert Belder bertbel...@gmail.com wrote:
On Jun 20, 5:09 pm, Fabian Korak fabian...@googlemail.com wrote:
Hello,
I'm currently working on a project concerning an echo-algorithm implemented
in Node. The
Node supports duplex tcp streams just fine. There is no need to have two
servers and two clients like in your example.
On Wed, Jun 20, 2012 at 10:23 AM, Fabian Korak fabian...@googlemail.comwrote:
Hello, sorry for the double-post, google-mail interface decided to post
before I was finished...
Hi Andrew,
Thanks for your quick response. I tried your first option.
Say, i have data from database in array called results,
for(var i = 0; i results.length; i++) {
body = '';
body = results[i]+'\n';
res.write(body);
}
res.setHeader('Content-disposition',
Hi,
I am currently experimenting with domains in a storage-library that
provides me with a uniform interface to s3, memcache, files, mongo, et. al.
It is an awesome feature, that allows for much easier error handling and
enables me to centralize error-reporting in a structured and easy way.
Hi Ravi,
Your for loop look fine, but I believe you messed up the headers.
Don't capitalize them. Also, the 'content-disposition' header is a bit
of an anomaly. It just doesn't look right to most programmer's eyes,
and I've screwed it up also resulting in no file download. It cannot
have any
Capitalization of header names should not matter to well-behaved user agents.
Capitalizing each word of the header name is preferred. Content-Disposition.
Content-Type.
On Jun 20, 2012, at 01:43, Andrew Stone wrote:
Your for loop look fine, but I believe you messed up the headers.
Don't
You should send headers before any page/file output - this is same for all
languages and caused by HTTP protocol format.
среда, 20 июня 2012 г., 10:24:42 UTC+4 пользователь ravi prakash написал:
Hi Andrew,
Thanks for your quick response. I tried your first option.
Say, i have data
Hi Andrew,
You really solved my problem.
One more help, I went through ya-csv module and was able to upload
and parse csv file.
But i did not understand how i could create a csv using ya-csv
module.
Can you please provide me sample code to create csv using ya-csv.
Once again thanks
The right way of coding nodejs applications prompts me to post some benchmarks
I was playing with a few days ago to answer this very question.
My benchmarks looked at the performance of using closures for asynchronous flow
control, where you are creating closures with each function call.
A
headers have to be set first as you wont be buffering the whole response.
On 20 June 2012 13:24, ravi prakash ravi...@gmail.com wrote:
Hi Andrew,
Thanks for your quick response. I tried your first option.
Say, i have data from database in array called results,
for(var i = 0; i
I found recently Im doing something like this (untested) after looking
at bits of other people's code, SubStacks etc.. however this aint
without its problems, as this context inside the prototype methods
could be pointing elsewhere depending on how the fn is passed around
in the called code, hence
This is the second time this week I've noticed extreme slowness trying
to query and download information from registry.npmjs.org and
search.npmjs.org. I'm seeing simple requests take upwards of 70
seconds to complete.
-- Daniel R. dani...@neophi.com [http://danielr.neophi.com/]
--
Job Board:
Sure Eugene, I'd be more than happy to.
Let's see the local version I run with tests leads to smooth sailing, but
it runs into problems when run in the background on our servers.
This weekend I'll cut out a small sample and recreate the issue, throw it
on git and send you a link.
On Sunday,
I've noticed IrisCouch having some perf issues lately for my own databases.
It could be related. FWIW, I thought these issues had been resolved.
On Wednesday, June 20, 2012, Daniel Rinehart dani...@neophi.com wrote:
This is the second time this week I've noticed extreme slowness trying
to
Looking forward for it. Thanks Marc.
On Jun 20, 2012, at 5:24 PM, Mark Essel mes...@gmail.com wrote:
Sure Eugene, I'd be more than happy to.
Let's see the local version I run with tests leads to smooth sailing, but it
runs into problems when run in the background on our servers.
This
I wrote a GUI for my application as a c++ addon. Now I want node to start
without the console. To do this I changed the subsystem from console to
windows and replaced the following in node_main.cc (latest stable):
int wmain(int argc, wchar_t *wargv[]) {
with
int wWinMain(HINSTANCE hInstance,
On Jun 20, 4:46 pm, wtfux wtfux@googlemail.com wrote:
I wrote a GUI for my application as a c++ addon. Now I want node to start
without the console. To do this I changed the subsystem from console to
windows and replaced the following in node_main.cc (latest stable):
int wmain(int argc,
On Wednesday, June 20, 2012 4:46:25 PM UTC+2, wtfux wrote:
I wrote a GUI for my application as a c++ addon. Now I want node to start
without the console. To do this I changed the subsystem from console to
windows and replaced the following in node_main.cc (latest stable):
int wmain(int
Hey All,
I just released a new mongoose plugin last night that allows mongoose
models to be indexed in elasticsearch on save for full text searching. For
now just about all of the Query DSL in elastic search (or at least as much
as is supported by elastical) works.
Check it out and let me know
Hello, sorry for the double-post, google-mail interface decided to post
before I was finished...
I'm currently working on an implementation of the echo-algorithm in
Node.js. I currently have code like this(a lot snipped obviously):
*
Initial Node:
*var own_port = 3;
var start_port =
On Wed, Jun 20, 2012 at 5:27 PM, Fabian Korak fabian...@googlemail.com wrote:
Hello, sorry for the double-post, google-mail interface decided to post
before I was finished...
I'm currently working on an implementation of the echo-algorithm in
Node.js. I currently have code like this(a lot
It's being quite hard to find experienced node.js programmers here in
Spain. If you know someone or if you would like to join us please let me
know.
SocialBro.com is growing really fast and in order to grow even more
quickly, we need people with experience, talent and motivation. People who
IMHO I think we shouldn't spend too much effort getting WebKit on the
desktop. HTML and CSS are not my favorite way of laying things out
(although I do understand the speed web developers could gain with building
desktop apps). What Node needs is a shoes-like framework, possibly built on
top
Looks interesting will have to check this out. Are you taking pull requests?
On 20 Jun 2012, at 16:26, James Carr james.r.c...@gmail.com wrote:
Hey All,
I just released a new mongoose plugin last night that allows mongoose models
to be indexed in elasticsearch on save for full text
Your server doesn't need to call net.connect() to connect back to the
client. You already have the connection with the client object, so you
can just call client.write() directly in the data event callback function.
On Wed, Jun 20, 2012 at 8:45 AM, Ben Noordhuis i...@bnoordhuis.nl wrote:
On
I don't see how this is related to TCP being connection-oriented? If I
implement this in C, using TCP I'm pretty sure I could use whatever ports I
want to send data. Basically if run this code, with the port numbers
chosen, client.remotePort will end up being 57812 or something from the
Agreed, but for the Echo-algorithm, which identifies nodes using specific
routes (in my example ports) I need to explicitly set the port in order to
fulfil the requirements set for the project.
In the algorithm the code ends up looking like this:
var nodes = [];
nodes = {//some ports}
Are you saying you want to bind the source port of the TCP socket?
At first glance it does appear that node is lacking an interface to bind a
socket to a specific source port or source address.
On Jun 20, 2012, at 12:46 PM, Fabian Korak wrote:
Agreed, but for the Echo-algorithm, which
On Tue, Jun 19, 2012 at 2:44 PM, mscdex msc...@gmail.com wrote:
On Jun 19, 3:31 pm, Mark Volkmann r.mark.volkm...@gmail.com wrote:
Why does the second assert below fail?
The reason is that deepEqual checks the number and values of
Object.keys() for arrays. For [,5] there is only one key,
My TCP is a little rusty (and not really from protocol terminology, but
rather from Posix/C), but I don't think I need to bind() in order to send,
but rather connect()? I actually just want to be able to force Node to send
Data over a specific port of my choice, instead of just connection to a
Tomorrow!
Thursday, 21 June 2012, 6:30pm
Saint Louis, Missouri, USA
STLJS Meetup in the The Able Few's corporate offices:
Darren Cruse will present RingoJS: When Only Java Will Do, and Node Just
Won't
http://www.stljs.org/events/50021852/
Don't forget to RSVP!
Following that, we'll have a
So every TCP socket involves two ports; the client port and the server port.
When you say send Data over a specific port, that sounds like you want to
specify the client source port to use in the connection. For example, connect
to port 80 on the server and originate packets from my port
Use the style that your team find most natural for the problem you're solving.
That will make it easier to fix bugs and add enhancements.
If profiling shows one part of your app is the bottleneck, consider rewriting
it.
Other problems may make other styles more appropriate.
--
Job Board:
That seems to be exactly what I'm searching for.
I've compiled the applied patch into a windows-binary, however since I
don't know how the functions in lib/net.js are called, can you tell whether
or not I will need to give connect() additional params? I'm currently only
calling it with port
Very cool. Thanks for sharing.
On Wed, Jun 20, 2012 at 8:26 AM, James Carr james.r.c...@gmail.com wrote:
Hey All,
I just released a new mongoose plugin last night that allows mongoose
models to be indexed in elasticsearch on save for full text searching. For
now just about all of the Query
Bert Belder:
Are you sure you are not creating an additional thread for your addon?
Yes, no threading. Even the hello world example causes an access
violation: http://nodejs.org/docs/latest/api/addons.html#addons_hello_world
When I however empty the init function it'll run. I can put any
Hi,
Unfortunatelly I won't make it for Nodeconf 2012 so I'm selling my
ticket if anyone is interested.
-- Marcos
--
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
Agree that getting WebKit as a separate module on the desktop is alot of
work.
Why not wrap the HTML render engine (IE on Windows, webkit on OS X) on the
platform with an API? Web devs are already familiar with dealing with
different layout engines.
More and more development is moving to HTML /
Is there a way to check if there are any registered callbacks still waiting
from within a worker process? For instance, I have an application that
spawns a number of workers, each of which can make async calls, and even
generate more work (handing work requests back to master) for the other
Hi list, I just started a new small module to load modules in a sandbox
with mocked dependencies https://github.com/jfromaniello/mockuire (mockuire
= mock*[req]*uire)
It loads the module in a sandbox and will use the mocked dependencies that
you pass on when calling mockuire. If the mockuired
Hi Fabian,
Sorry, but after looking at it closer my patch was inadequate. It will require
additional plumbing to get the parameters from the public API down to the C++
Bind() method. Unfortunately I don't have time to track it down right now, but
I can try to come up with a pull request next
prototype chains and closure scopes actually work in a precisely similar way.
this gist gives some examples of identical structures created with
scopes and prototypes.
https://gist.github.com/2904285
On Thu, Jun 21, 2012 at 7:34 AM, P. Douglas Reeder reeder...@gmail.com wrote:
Use the style
On Wednesday, June 20, 2012 at 10:15 PM, Dominic Tarr wrote:
prototype chains and closure scopes actually work in a precisely similar way.
This is egregiously incorrect. Before you give out advice, I beg you to read
the spec and actually understand the material.
this gist gives some
On Jun 20, 6:44 pm, Dick Hardt dick.ha...@gmail.com wrote:
Why not wrap the HTML render engine (IE on Windows, webkit on OS X) on the
platform with an API? Web devs are already familiar with dealing with
different layout engines.
-100
Just because we deal with it on the web does not mean we
46 matches
Mail list logo