Hello,
A couple of weeks ago I saw a slide where @mikeal mentioned: "if your module
exposes more than one function, you might be doing it wrong :)"
I replied by asking: "@mikeal What if I have a bunch of utility functions?
Isn't this the purpose of a module? A module per function sounds like
o
Thank you , i must be doing wrong i'll post the code once i am sure
there are no errors in it . guess i'll have to read up on architecture
of node . One more thing , the code put up at nodejs also has the same
problem . may be it is the way the httperf behaves . i'll try and
rectify it. thank you o
Hello,
I was wondering what is the best way to serve pages created by merging an HTML
layout with contents from a database record.
In my case, I'm using the combination of Node, Express, MongoDB and Mongoose.
If a web designer creates a nice layout page (say a user page of an address
book, whe
Use an unobtrusive templating engine https://github.com/flatiron/plates
On Sunday, March 4, 2012 2:29:59 AM UTC-7, Tito wrote:
>
> Hello,
>
> I was wondering what is the best way to serve pages created by merging an
> HTML layout with contents from a database record.
>
> In my case, I'm using the
Because as I wrote I want to create a .deb package out of Node.js sources.
Il giorno domenica 4 marzo 2012 08:07:46 UTC+1, Isaac Schlueter ha scritto:
>
> Why are you doing checkinstall rather than `make install`?
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joye
I would be very interested in seeing resumable hashes and CRCs in the core API.
Is this something that could happen?
--
Alan - @bigeasy
On Feb 14, 2012, at 3:46 AM, Rong Shen wrote:
> I've resoved this by using SparkMD5 (https://github.com/satazor/
> SparkMD5) , and use the psedo-code below:
>
On 2/26/12 9:18 AM, manimal45 wrote:
I think original poster knows about business/contracts protection.
His question seems to me technical, and would be far from ideal to
consider the case closed.
The original poster probably does not know about copyright and
contracts, otherwise they would n
Am Sonntag, den 04.03.2012, 02:05 -0800 schrieb fent:
> Use an unobtrusive templating engine https://github.com/flatiron/plates
Templating engine is a good idea. However, use mine! :P
http://search.npmjs.org/#/vacuum
Well, templating engines are a bit like flow control libraries/tools -
there's
Am Sonntag, den 04.03.2012, 06:13 -0300 schrieb Tito Ciuro:
> He replied with: "@titusmagnus module.exports = function default () {}.
> module.exports.notdefault = function () {}"
>
> I'm fairly new to Node and I don't really know how to implement a module with
> this syntax. As a matter of fact
Hi Jann,
It starts to make more sense now. However, what is the purpose of having
module.exports.notdefault? Is notdefault a reserved name? Or was it mentioned
for illustrative purposes?
Thanks again,
-- Tito
On Mar 4, 2012, at 8:07 AM, Jann Horn wrote:
> Am Sonntag, den 04.03.2012, 06:13 -0
Am Sonntag, den 04.03.2012, 08:32 -0300 schrieb Tito Ciuro:
> However, what is the purpose of having module.exports.notdefault? Is
> notdefault a reserved name? Or was it mentioned for illustrative purposes?
That was just illustrative.
signature.asc
Description: This is a digitally signed messa
Nice. More templating engines should offer streaming.
But he did mention he's looking for a solution for both programmers and
designers. With plates there's no special syntax, it's just plain html.
On Sunday, March 4, 2012 4:00:40 AM UTC-7, Jann Horn wrote:
>
> Am Sonntag, den 04.03.2012, 02:05
I think what mikeal's point was that your module should focus on one main
purpose. Any extra features should be attached to the main _default_
funtion.
There are however modules with many main features like utility belts
underscore and utile.
On Sunday, March 4, 2012 2:13:43 AM UTC-7, Tito wro
Am Sonntag, den 04.03.2012, 03:49 -0800 schrieb fent:
> Nice. More templating engines should offer streaming.
thanks :)
> But he did mention he's looking for a solution for both programmers and
> designers. With plates there's no special syntax, it's just plain html.
But that also means it's r
> , the code put up at nodejs also has the same problem
That's not good.
On Sun, Mar 4, 2012 at 1:19 AM, puneeth poduri wrote:
> Thank you , i must be doing wrong i'll post the code once i am sure
> there are no errors in it . guess i'll have to read up on architecture
> of node . One more thin
Just do whatever you want with exports. The isolation is provided at the
module level in any case.
I appreciate it when someone explains things and gives me tips and hints
but I hate it when people tell me how to write my code. They somehow think
they know how to code better than me.
On Sun, Ma
Nathan,
Just log a new issue per your request in github titled "Trouble using
node-gyp to build node-sqlite3 in Windows XP". Hope this makes sense to
you.
Thanks and I will give your suggestion a try now with the node_sqlite3.node
file.
What puzzles me though is that in installing other mo
Well, I am reading the modules section on nodejs.org now Hope this
will help me understand this build process. Thanks.
On Sunday, March 4, 2012 2:31:09 PM UTC-5, Lam wrote:
>
> Nathan,
>
> Just log a new issue per your request in github titled "Trouble using
> node-gyp to build node-sqlite
Lam, definitely read up on how modules work, but the questions you were
asking are more related to how "packages" work (as in, a collection of
modules in a directory tree). The heart of how packages work is the
package.json file, which describes, among other things, the entry point of
the package a
Nathan,
Yes, reading that section makes more sense now and I should have read that
first. So the explanation on the package.json makes sense and once you
know the entry point, the rest is easy to follow.
I've got this to work now! I probably make this too complicate to begin
with by putting
Well, I know I can do whatever I want. My code is actually working... but that
doesn't mean I'm doing it the right way. Even after 20+ years of programming
experience, I have no problem asking for advice, especially in a new
environment such as Node. Node's community is thriving and code gets pa
> node_sqlite3.node C:\Internet_Download\TooTallNate_SQLite3\build\Release
> node_sqlite3\Release
Why did you copy into Release and not build/Release? It worked in this
case because of legacy purposes that node-bindings handles for you,
but the "official" place for the modules to build into is
Antic,
look this gist i made with and example of how to use mysql module
on node.js http://bit.ly/xaBAK1 , it has a simple query and a loop over the
results.
Best regards.
2012/3/1 Scott Straley
> Antic,
>
> Remember to use callbacks and closure when you're dealing with
> time-relate
I just didn't know what I am doing here... LOL. I notice that node/your
binding module is searching for the following directory when I first put
the node_sqlite3.node file into the same directory of lib. So Release is
one of the folder to it. I guess that I will use the proper folder under
b
That's a very good point, one that I really didn't want to hear, but good
none the less. I'm going to spend some time looking into PCI compliance,
but maybe I can find a PaaS where I can create a hosted store, on a PCI
compliant server, that looks exactly the way I want. I'm sort of a control
f
I've written a very simple and specific HTTP proxy which works perfectly
when run as a standalone script, but produces some strange errors when
run under nginx. I'm stumped and I'm wondering if anyone on the list has
seen similar behaviour.
https://github.com/hjst/feeder/blob/61779a48472155331
Anyone have any experience using Komodo IDE's node.js debugger?
If you've been able to get it to work, I would appreciate if you could
tell me what steps you took. I can use node-dbgp to start a server
process, and any breakpoints on code that immediately executes will
break. However, any breakpoi
2012/3/4 Alan Gutierrez :
> I would be very interested in seeing resumable hashes and CRCs in the core
> API. Is this something that could happen?
Probably not. The hash functions in Node are backed by OpenSSL which
doesn't have a notion of serializable digests.
--
Job Board: http://jobs.nodejs
On Mar 4, 10:06 am, Henry wrote:
> I've written a very simple and specific HTTP proxy which works perfectly
> when run as a standalone script, but produces some strange errors when
> run under nginx. I'm stumped and I'm wondering if anyone on the list has
> seen similar behaviour.
Not sure of the
On Sun, Mar 4, 2012 at 16:06, Henry wrote:
> I've written a very simple and specific HTTP proxy which works perfectly
> when run as a standalone script, but produces some strange errors when run
> under nginx. I'm stumped and I'm wondering if anyone on the list has seen
> similar behaviour.
>
> ht
Hi Jann,
Having read both options, I would say that plates matches our workflow better.
Based on the way we work, plates is unobtrusive and easily lets each one of us
work without having to change anything. If at some point we see that it's not
working for us, we'll certainly look at vacuum. :-
Stripe certainly looks good, but another solution I've been
considering trying out is Samurai by FeeFighters:
https://samurai.feefighters.com/
Some information I gathered from their site:
* $10/mo plus $0.10 per transaction with your own merchant account.
* OR $25/mo plus $0.30/transaction and 2
> de&&bug( msg) is much faster when traces are disabled
Is this a true statement?
On Wed, Feb 29, 2012 at 7:36 AM, JeanHuguesRobert <
jeanhuguesrob...@gmail.com> wrote:
> On 29 fév, 00:33, Phoscur wrote:
> > How is this better than:
> > function debug(msg) {
> > if (DEBUG_ON) {
> >
*hijack* xml-literals is plates but without the need to use strings
everywhere:
https://github.com/laverdet/js-xml-literal
On Sun, Mar 4, 2012 at 5:33 PM, Tito Ciuro wrote:
> Hi Jann,
>
> Having read both options, I would say that plates matches our workflow
> better. Based on the way we work,
I'm not sure if you were using asyncblock correctly or not, but it
wouldn't have worked even if you were.
The reason is that the backbone callbacks as you showed don't follow
standard node.js convention - as in they don't pass an error as the
first argument to the callback. I pushed a new update t
Not that this answers your question directly, but I've had good luck
"out of the box" with the nodejs debugger built into Webstorm. It has
a 30 day free trial.
Chris
On Mar 4, 2:37 pm, Travis Bretton wrote:
> Anyone have any experience using Komodo IDE's node.js debugger?
>
> If you've been able
I'm trying to figure out if Node will work for our platform or not (or even
V8 in general). We're planning a rewrite. We use PHP. We need to allow
users to write server side plugins. For it to be secure in PHP we'd have to
write a "language" using flex/bison to eliminate dynamic function calling
On 04/03/12 at 03:19pm, mscdex wrote:
Not sure of the cause of your problem, but here's a couple of tips you
might find useful:
You can rewrite lines 45-55 as:
http.get(options, function(fb_res) {
response.writeHead(fb_res.statusCode, '', fb_res.headers);
fb_res.pipe(response);
Additionally
On 05/03/12 at 12:22am, Ben Noordhuis wrote:
That looks like chunk markers (the chunk size in hex) from a
Transfer-Encoding: chunked response.
It certainly looks that way. The chunks themselves are clean (dumped to
file and verified with dhex) and comparing `curl --head` on standalone
and ng
On Mar 4, 8:43 pm, Luke Scott wrote:
> What I'm trying to figure out is what to do when I want users to write
> plugins (untrusted code). I only want them to have access to (1) what
> V8 vanilla provides and (2) a few classes that provide context sensitive
> functions. But with a single thread mal
That is helpful to know, but I am rather stuck with Komodo. I'm sure
I'm just doing it incorrectly.
-Travis
On Mar 4, 6:46 pm, Chris Scribner wrote:
> Not that this answers your question directly, but I've had good luck
> "out of the box" with the nodejs debugger built into Webstorm. It has
> a
I've had someone report weird crashes with latest nginx. Dunno if it
has something to do with this.
http://code.google.com/p/node-xmpp-bosh/issues/detail?id=41
Works perfect with older versions of nginx though.
Regards,
-Dhruv.
On Mar 4, 9:26 pm, Henry Todd wrote:
> On 05/03/12 at 12:22am, Ben
> I'm trying to figure out if Node will work for our platform or not (or
> even V8 in general). We're planning a rewrite. We use PHP. We need to
> allow users to write server side plugins. For it to be secure in PHP
> we'd have to write a "language" using flex/bison to eliminate dynamic
> function
I was working on a project a while ago where i wanted to do something like
this and you can do it pretty easily like this:
I had one process which was the master 'plugin master' which spawned 5
child 'plugin workers'.
The master and workers can talk via the ipc pipes if your only using node
pro
Oops i meant that you can pool more tasks on the same worker process and
run them in *separate* contexts
On Monday, March 5, 2012 12:17:41 AM UTC-5, Mihai Tomescu wrote:
>
> I was working on a project a while ago where i wanted to do something like
> this and you can do it pretty easily like thi
> I've had good luck "out of the box" with the nodejs debugger built into
Webstorm
Are you using webstorm with node running locally? I use webstorm but my
node is on a remote server and I've gotten the impression I can't debug
node remotely.
I love coffeescript in webstorm, which is why I use i
--
Hello,World!
熊佳斌(totty)
--
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 post to this group, send email to nodejs@googlegr
47 matches
Mail list logo