Hello Roly,
To answer your question the stack trace looks like this:
===
C:\Users\Yishay\Documents\My Web Sites\Express Site\public\Server.js:1
alert('serving')
^
ReferenceError: alert is not defined
at Object.anonymous (C:\Users\Yishay\Documents\My Web Sites\Express
MongoDB Driver with simple and compact API, it also eliminates some
callbacks http://alexeypetrushin.github.com/mongo-lite
--
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
Well, mongo-node-native is the de facto implementation of the protocol,
but there are lots of wrappers arround it (without schemas or ORM) that
just make the API easier to handle.
On 08/07/2012 10:15 PM, john.tiger wrote:
On 08/07/2012 01:48 AM, Martin Wawrusch wrote:
We use mongoose and
Why use IIS with node?
You sacrifice everything, for what?
On 08/08/2012 11:38 AM, yishayw wrote:
I figure it out, the solution was in my IIS configuration. I changed
web.config so that all occurrences of 'server.js' were replaced with
'nodejs_server.js'. I then renamed all my node.js server
Hey folks,
So I have an app where all the files are coffeescript. To avoid a js
compilation step or having to run a watcher I have a
require('coffee-script') statement before everything else in the program,
which lets me require() coffee files directly from other coffee files.
Problem is, one
On Wed, Aug 8, 2012 at 4:13 AM, Dan Milon danmi...@gmail.com wrote:
That will work, indeed, but it annoys me that indentation and code
readability gets fucked up. You have to follow code traces in order to
understand the ordering of execution.
Dan, you're not going to get any less indentation
Hello
I am using the crl option in the tls module. Is there any way I can
add a new crl without restarting the server?
The problem is that when the crl expires, I begin to get
CRL_HAS_EXPIRED error messages.
Thanks,
Christian
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
Have you looked into using the SNICallbck to do this? seems like it might
add a bit of boilerplate, but looks to be possible
On Wednesday, August 8, 2012 9:07:31 AM UTC-5, Christian Tellnes wrote:
Hello
I am using the crl option in the tls module. Is there any way I can
add a new crl
On Tue, Aug 7, 2012 at 12:15 PM, john.tiger john.tigernas...@gmail.comwrote:
On 08/07/2012 01:48 AM, Martin Wawrusch wrote:
We use mongoose and mongoskin for testing. It really depends on your
scenario. In general though mongoose is a good choice.
it is if you want to specify schema or
Indeed, you cannot get anything less than +1 indentation.
Thanks for your input!
danmilon.
On 08/08/2012 04:54 PM, Tim Caswell wrote:
On Wed, Aug 8, 2012 at 4:13 AM, Dan Milon danmi...@gmail.com wrote:
That will work, indeed, but it annoys me that indentation and code
readability gets fucked
To avoid a js compilation step or having to run a watcher ...
Why in the world are you doing that? One command and everything is
automatic and transparent. I find myself forgetting that a compilation
even happens.
On Wed, Aug 8, 2012 at 6:07 AM, Alan Hoffmeister
Unless you extend the language:
var results = cond ? async1(_) : async2(_);
There is no free lunch: either you are ready to go with a language
extension and you'll be able to reduce the amount of extra code/indentation
drastically and get the same readability/maintainability as with good old
I wrote a blogpost about this specific topic:
http://joseoncode.com/2012/06/24/messing-with-cps-in-js/
for me there are two ideal situations:
- a language with an specific syntax for asynchronous flows like
streamlinejs, icedcoffeescript, f#
- or make a Continuation Passing Style
Jose,
The continuation-passing-style patterns for conditionals and loops are
relatively straightforwards but things get a lot hairier with try/catch and
try/finally. But also, what about:
* unary and binary operators: async1(_) = async2(_)
* lazy operators: async1(_) async2(_)
* ternary
Found something sort of close to an aswer: Up lets you specify an
options.requires array that gets passed to the child process so you can
tell it to require any modules you want before running. Trouble is, they
get required AFTER it tries to load your program (with require), which
means
this is good, between mongoskin and mongo-lite, difficult to decide.
On Wednesday, August 8, 2012 5:55:46 PM UTC+8, Alexey Petrushin wrote:
MongoDB Driver with simple and compact API, it also eliminates some
callbacks http://alexeypetrushin.github.com/mongo-lite
--
Job Board:
I don't see why you'd jump through so many hoops just to avoid an upfont
compilation step. `require.extensions` may be deprecated in the future and
is generally frowned upon.
On Wed, Aug 8, 2012 at 2:36 PM, Krzysztof Baranowski
pharcos...@gmail.comwrote:
Found something sort of close to an
Bruno, I completely agree with this,
2012/8/8 Bruno Jouhier bjouh...@gmail.com
Jose,
The continuation-passing-style patterns for conditionals and loops are
relatively straightforwards but things get a lot hairier with try/catch and
try/finally. But also, what about:
* unary and binary
Tanks for the answer mr. Noordhuis,
it is effectively as string that i send wich is at the base an array of hex
values eg:
//=
var mCmd = new Array(34);
mCmd[0] = 0x46;
mCmd[1] = 0x49;
...
for (i = 0; i 34; i++) {
NodeJS is great for sending binary data over a TCP socket. I do it
all the time. Only use strings if you want one of the string
encodings of your data. The default is utf8 which disallows several
bit patterns. Buffers act somewhat like arrays of integers and let
you send exact bytes with full
20 matches
Mail list logo