Re: [nodejs] zlib stream.write callback

2012-10-09 Thread Isaac Schlueter
Ok, fair enough.  Writable stream write() callbacks landed on streams2 branch.

On Tue, Oct 9, 2012 at 6:52 PM, khs4473  wrote:
> Hmmm...
>
> I'd like very much to have a way to determine when zlib is done with a
> buffer, but without using the callback it appears to be a black hole of
> sorts for whatever I put in.
>
> I'm all for allocating like mad and using the GC to manage things, but I
> would also like to have the option of micro-managing buffers if I choose.
> It's systems programming, right? : )
>
> Kevin
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Which database to use for a realtime chat game?

2012-10-09 Thread Daniel Rinehart
I think other solutions are better but you can do pub/sub style
systems with MongoDB:

http://blog.mongodb.org/post/29495793738/pub-sub-with-mongodb

-- Daniel R.  [http://danielr.neophi.com/]


On Tue, Oct 9, 2012 at 9:17 PM, Alexey Petrushin
 wrote:
>> Redis is fine too, and MongoDB is fine.
> How to use MongoDB, seems there's no way to take an instant (sort of
> instant) feed of events?
>
>
> On Wednesday, October 10, 2012 3:45:33 AM UTC+4, Stewart McKinney wrote:
>>
>> CouchDB is fine, if you don't like its performance, use CouchBase.
>>
>> Redis is fine too, and MongoDB is fine. IMHO Couch is easiest, and its not
>> hard to migrate from Couch to Mongo/Redis if you are still prototyping and
>> prepping for scale.
>>
>> Just don't use SQL to store a chat log.
>>
>> Content = noSQL
>> Numbers = SQL
>>
>> .02
>>
>> On Tue, Oct 9, 2012 at 5:00 PM, John Fowler  wrote:
>>>
>>> In case it matters, if you're looking for a client-side relational
>>> database engine, SequelSphere may be something to look at.  It is an
>>> HTML5/JavaScript relational database that has full support of SQL and
>>> provides the ability to store data in localStorage or other manners.
>>>
>>> Hope this helps,
>>>
>>> john...
>>>
>>>
>>> --
>>> 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 nod...@googlegroups.com
>>>
>>> To unsubscribe from this group, send email to
>>> nodejs+un...@googlegroups.com
>>>
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Which database to use for a realtime chat game?

2012-10-09 Thread Stewart Mckinney
I wouldn't rely on the database as the backbone of the (any) real-time
feed; I would instead focus on using it for purposes of archival and "bulk
information loading". I would reiterate the questions Mr. Lopez asked, and
then question the need for immediate "mirrored" status present on disk or
in distributed memory. Real-time feeds should be services in themselves,
not glommed onto a database which has other things to worry about.

In other words, if you are expecting constant push updates from the
database itself, you are probably doing something "wrong". Not "Wrong", but
"wrong". It crowds what a database is supposed to do. A good example of why
it "crowds" is to ask yourself why other databases that might be replicants
or slaves would need that information in a fully up-to-date manner,
especially if they are offering segmented experiences.

The answer is that they probably wouldn't - only a particular "servlet" -
or if you would prefer to think about it this way, a set of clients -
would. Unless of course you are planning on engaging everyone at once -
upwards of a million people, lets say - in which case you probably have
other problems, and thats definitively "doing it Wrong". This also brings
into question what the action of the game is, but its outside of the
discussion for now. The fact remains that, there are other ways to push and
"store" that kind of information. You might have to get a little creative,
but hey, thats app development.

As a simpler example of how it could be done, I would suspect at some point
there would be a client host (assuming one person 'starts a game'), or some
form of server side host/service that is aligned to each "room" or several
rooms. It's entirely possible to use that servlet/client as the arbiter of
current state. I would use the database response as a starting point and
then fill forward from whatever the servlet/client host had.

On Tue, Oct 9, 2012 at 9:17 PM, Alexey Petrushin  wrote:

> > Redis is fine too, and MongoDB is fine.
> How to use MongoDB, seems there's no way to take an instant (sort of
> instant) feed of events?
>
>
> On Wednesday, October 10, 2012 3:45:33 AM UTC+4, Stewart McKinney wrote:
>
>> CouchDB is fine, if you don't like its performance, use CouchBase.
>>
>> Redis is fine too, and MongoDB is fine. IMHO Couch is easiest, and its
>> not hard to migrate from Couch to Mongo/Redis if you are still prototyping
>> and prepping for scale.
>>
>> Just don't use SQL to store a chat log.
>>
>> Content = noSQL
>> Numbers = SQL
>>
>> .02
>>
>> On Tue, Oct 9, 2012 at 5:00 PM, John Fowler  wrote:
>>
>>> In case it matters, if you're looking for a client-side relational
>>> database engine, SequelSphere  may be
>>> something to look at.  It is an HTML5/JavaScript relational database that
>>> has full support of SQL and provides the ability to store data in
>>> localStorage or other manners.
>>>
>>> Hope this helps,
>>>
>>> john...
>>>
>>>
>>>  --
>>> 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 nod...@googlegroups.com
>>>
>>> To unsubscribe from this group, send email to
>>> nodejs+un...@**googlegroups.com
>>>
>>> For more options, visit this group at
>>> http://groups.google.com/**group/nodejs?hl=en?hl=en
>>>
>>
>>  --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] zlib stream.write callback

2012-10-09 Thread khs4473
Hmmm...

I'd like very much to have a way to determine when zlib is done with a 
buffer, but without using the callback it appears to be a black hole of 
sorts for whatever I put in.

I'm all for allocating like mad and using the GC to manage things, but I 
would also like to have the option of micro-managing buffers if I choose. 
 It's systems programming, right? : )

Kevin

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] ANN: Job, a lightweight job delayer and processor

2012-10-09 Thread Joshua Gross
https://github.com/JoshuaGross/Job

tl;dr it monkey-patches helper modules so that 
`mailer.sendRegistrationEmail(...)` can be called as 
`mailer.delay.sendRegistrationEmail(ms, priority, ...)`.

I've been using it in production for a while and thought I'd unleash it to 
the world to get some feedback. Hope someone finds it useful! 

Regards,

Joshua Gross
Christian / SpanDeX, Inc. / BA of Computer Science, UW-Madison 2013
http://www.joshisgross.com / http://www.spandex.io  

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Which database to use for a realtime chat game?

2012-10-09 Thread Alexey Petrushin
> Redis is fine too, and MongoDB is fine.
How to use MongoDB, seems there's no way to take an instant (sort of 
instant) feed of events?

On Wednesday, October 10, 2012 3:45:33 AM UTC+4, Stewart McKinney wrote:
>
> CouchDB is fine, if you don't like its performance, use CouchBase.
>
> Redis is fine too, and MongoDB is fine. IMHO Couch is easiest, and its not 
> hard to migrate from Couch to Mongo/Redis if you are still prototyping and 
> prepping for scale.
>
> Just don't use SQL to store a chat log.
>
> Content = noSQL
> Numbers = SQL
>
> .02
>
> On Tue, Oct 9, 2012 at 5:00 PM, John Fowler 
> > wrote:
>
>> In case it matters, if you're looking for a client-side relational 
>> database engine, SequelSphere  may be 
>> something to look at.  It is an HTML5/JavaScript relational database that 
>> has full support of SQL and provides the ability to store data in 
>> localStorage or other manners.
>>
>> Hope this helps,
>>
>> john...
>>
>>
>>  -- 
>> 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 nod...@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+un...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Handling exceptions in nodejs addon

2012-10-09 Thread Ben Noordhuis
On Tue, Oct 9, 2012 at 9:16 PM, Sergey Volvovski  wrote:
> I just started using nodejs and currently I'm working on addon that is
> supposed to use the other library. Those library is using internally
> boost::asio. When I'm trying to compile my addon code I receive the
> following output:
>
> In file included from
> /usr/local/boost_1_51_0/boost/asio/detail/impl/throw_error.ipp:21:0,
>  from
> /usr/local/boost_1_51_0/boost/asio/detail/throw_error.hpp:52,
>  from
> /usr/local/boost_1_51_0/boost/asio/detail/impl/posix_mutex.ipp:23,
>  from
> /usr/local/boost_1_51_0/boost/asio/detail/posix_mutex.hpp:73,
>  from
> /usr/local/boost_1_51_0/boost/asio/detail/mutex.hpp:25,
>  from
> /usr/local/boost_1_51_0/boost/asio/detail/service_registry.hpp:20,
>  from
> /usr/local/boost_1_51_0/boost/asio/impl/io_service.hpp:19,
>  from /usr/local/boost_1_51_0/boost/asio/io_service.hpp:767,
>  from
> /usr/local/boost_1_51_0/boost/asio/basic_io_object.hpp:19,
>  from
> /usr/local/boost_1_51_0/boost/asio/basic_socket.hpp:19,
>  from
> /usr/local/boost_1_51_0/boost/asio/basic_datagram_socket.hpp:20,
>  
>
> /usr/local/boost_1_51_0/boost/system/system_error.hpp: In member function
> ‘virtual const char* boost::system::system_error::what()
> const’:/usr/local/boost_1_51_0/boost/system/system_error.hpp:70:16: error:
> exception handling disabled, use -fexceptions to enable
>
> However adding -fexceptions to cflags section of my binding.gyp does not
> have any effect, I still have the same output.
> Is there any work-around for this problem?
>
> Any kind of help is appreciated.
>
> Thanks,
> Sergey

Use BOOST_NO_EXCEPTIONS. Mixing -fexceptions and -fno-exceptions code
(node, v8) is a bad idea unless you're really, really sure that you
keep all exceptions contained.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Which database to use for a realtime chat game?

2012-10-09 Thread Stewart Mckinney
CouchDB is fine, if you don't like its performance, use CouchBase.

Redis is fine too, and MongoDB is fine. IMHO Couch is easiest, and its not
hard to migrate from Couch to Mongo/Redis if you are still prototyping and
prepping for scale.

Just don't use SQL to store a chat log.

Content = noSQL
Numbers = SQL

.02

On Tue, Oct 9, 2012 at 5:00 PM, John Fowler  wrote:

> In case it matters, if you're looking for a client-side relational
> database engine, SequelSphere  may be
> something to look at.  It is an HTML5/JavaScript relational database that
> has full support of SQL and provides the ability to store data in
> localStorage or other manners.
>
> Hope this helps,
>
> john...
>
>
>  --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread Stewart Mckinney
my vote is a), go for it

On Tue, Oct 9, 2012 at 7:32 PM, mscdex  wrote:

> On Oct 9, 6:21 pm, codepilot Account  wrote:
> > Just out of curiosity, will this be the last nail in the coffin of
> 'binary'
> > encoding? At least as the default, I mean.
>
> As a default, I'd hope so.
>
> Last nail in the coffin totally though? I'd hope not. This particular
> discussion (eliminating this encoding altogether) has been had on the
> list here and on node's github issues almost ad nauseum, but I am
> still in favor of keeping it around (with a note discouraging its use
> in the docs) until Buffer's core capabilities are equivalent or nearly
> equivalent to those of strings (e.g. indexOf, lastIndexOf, etc).
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread mscdex
On Oct 9, 6:21 pm, codepilot Account  wrote:
> Just out of curiosity, will this be the last nail in the coffin of 'binary'
> encoding? At least as the default, I mean.

As a default, I'd hope so.

Last nail in the coffin totally though? I'd hope not. This particular
discussion (eliminating this encoding altogether) has been had on the
list here and on node's github issues almost ad nauseum, but I am
still in favor of keeping it around (with a note discouraging its use
in the docs) until Buffer's core capabilities are equivalent or nearly
equivalent to those of strings (e.g. indexOf, lastIndexOf, etc).

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Would SequelSphereDB (A JavaScript Relational Database) Work on Node.js?

2012-10-09 Thread Daniel Rinehart
The lack of licensing or cost information on the website leads me to
not even think about uses for the product.

-- Daniel R.  [http://danielr.neophi.com/]


On Tue, Oct 9, 2012 at 4:58 PM, John Fowler  wrote:
> Hello Node.js gurus,
>
> I'm relatively new to Node.js, so please forgive the simplicity of this
> question:  Would there be a use for a JavaScript Relational Database Engine
> like SequelSphere?
>
> SequelSphere is a new product to the HTML5 market that touts being it's own
> relational database engine including a SQL parser and execution engine.  It
> is currently targeted at the client side of architecture to provide a
> mechanism for storing relational data (since the WebSQL standard was
> abandoned).  Since it has it's own SQL engine, it truly works cross-browser,
> and it persists its data via localStorage and indexedDB.
>
> However, I'm assuming that since Node.js runs on the server, that it would
> have a whole host of much more mature relational database technologies to
> choose from.  But is there a beneficial factor in SequelSphere being 100%
> JavaScript?
>
> Can someone tell me what use SequelSphereDB may have with Node.js?  Why
> would someone want to use SequelSphere rather than a much more mature
> server-side native relational database?
>
> Thanks!
>
> john...
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en



[nodejs] Handling exceptions in nodejs addon

2012-10-09 Thread Sergey Volvovski
I just started using nodejs and currently I'm working on addon that is 
supposed to use the other library. Those library is using internally 
boost::asio. When I'm trying to compile my addon code I receive the 
following output:

In file included from 
/usr/local/boost_1_51_0/boost/asio/detail/impl/throw_error.ipp:21:0,
 from 
/usr/local/boost_1_51_0/boost/asio/detail/throw_error.hpp:52,
 from 
/usr/local/boost_1_51_0/boost/asio/detail/impl/posix_mutex.ipp:23,
 from 
/usr/local/boost_1_51_0/boost/asio/detail/posix_mutex.hpp:73,
 from 
/usr/local/boost_1_51_0/boost/asio/detail/mutex.hpp:25,
 from 
/usr/local/boost_1_51_0/boost/asio/detail/service_registry.hpp:20,
 from 
/usr/local/boost_1_51_0/boost/asio/impl/io_service.hpp:19,
 from /usr/local/boost_1_51_0/boost/asio/io_service.hpp:767,
 from 
/usr/local/boost_1_51_0/boost/asio/basic_io_object.hpp:19,
 from 
/usr/local/boost_1_51_0/boost/asio/basic_socket.hpp:19,
 from 
/usr/local/boost_1_51_0/boost/asio/basic_datagram_socket.hpp:20,
 

/usr/local/boost_1_51_0/boost/system/system_error.hpp: In member function 
‘virtual const char* boost::system::system_error::what() 
const’:/usr/local/boost_1_51_0/boost/system/system_error.hpp:70:16: error: 
exception handling disabled, use -fexceptions to enable

However adding -fexceptions to cflags section of my binding.gyp does not 
have any effect, I still have the same output.
Is there any work-around for this problem?

Any kind of help is appreciated.

Thanks,
Sergey



-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Would SequelSphereDB (A JavaScript Relational Database) Work on Node.js?

2012-10-09 Thread John Fowler
Hello Node.js gurus,

I'm relatively new to Node.js, so please forgive the simplicity of this 
question:  Would there be a use for a JavaScript Relational Database Engine 
like SequelSphere ?

SequelSphere is a new product to the HTML5 market that touts being it's own 
relational database engine including a SQL parser and execution engine.  It 
is currently targeted at the client side of architecture to provide a 
mechanism for storing relational data (since the WebSQL standard was 
abandoned).  Since it has it's own SQL engine, it truly works 
cross-browser, and it persists its data via localStorage and indexedDB.

However, I'm assuming that since Node.js runs on the server, that it would 
have a whole host of much more mature relational database technologies to 
choose from.  But is there a beneficial factor in SequelSphere being 100% 
JavaScript?

Can someone tell me what use SequelSphereDB may have with Node.js?  Why 
would someone want to use SequelSphere  rather 
than a much more mature server-side native relational database?

Thanks!

john...

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Pure SQLite Implementation in Nodejs?

2012-10-09 Thread John Fowler
Check out:  SequelSphere 

It is NOT Sqlite, but it is a 100% JavaScript Relational Database Engine 
that has great support for SQL.  I am apart of SequelSphere, and am just 
now beginning to look at how SequelSphere could be integrated with Node.js. 
 We created SequelSphere to be more of a Client-Side database, but I don't 
see why it couldn't work fine on Node.js as well.  It persists it's data to 
localStorage and IndexedDB, so I don't know if that is a problem with 
Node.js, or if there would need to be a different persistence mechanism.

In any case, if you are looking for a 100% JavaScript Relational Database 
Engine, SequelSphere may work well for you.  Feel free to provide feedback 
too.

Thanks!

john...

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Which database to use for a realtime chat game?

2012-10-09 Thread John Fowler
In case it matters, if you're looking for a client-side relational database 
engine, SequelSphere  may be something to 
look at.  It is an HTML5/JavaScript relational database that has full 
support of SQL and provides the ability to store data in localStorage or 
other manners.

Hope this helps,

john...


-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread codepilot Account
Just out of curiosity, will this be the last nail in the coffin of 'binary'
encoding? At least as the default, I mean.

On Tue, Oct 9, 2012 at 9:11 AM, Isaac Schlueter  wrote:

> Seems pretty unanimous here.  So, unless some new objection comes up
> that is very compelling, let's assume that 0.10 will use Buffers by
> default in crypto instead of binary strings.
>
> Also, a streaming interface to the crypto classes is already underway.
>
>
> On Tue, Oct 9, 2012 at 9:06 AM, Jimb Esser  wrote:
> > a) Go for it.  Looks like it would have no effect on almost all of our
> > crypto code.
> >
> >
> > On Monday, October 8, 2012 4:24:36 PM UTC-7, Isaac Schlueter wrote:
> >>
> >> Currently, the crypto module defaults to using 'binary' encoded
> >> strings everywhere as the default input and output encoding.
> >>
> >> This is problematic for a few reasons:
> >>
> >> 1. It's slower than necessary.
> >> 2. It doesn't match the rest of Node.
> >>
> >> The reason for this is that crypto predates Buffers, and no one ever
> >> bothered to go through and change it.  (The same reason it's got some
> >> odd hodgepodge of update/digest methods vs the Stream interface you
> >> see everywhere else in node.)
> >>
> >> The reason it persists in 0.8 (and perhaps in 0.10) is that we
> >> (perhaps overly optimistically) labelled that API "stable", and don't
> >> want to break anyone's programs.  It's going to change eventually to
> >> match the rest of node.  The only question is whether the change will
> >> come in 0.10 or 0.12.  A stream interface to all the crypto classes is
> >> coming in 0.10; using 'binary' strings by default is thus even more
> >> obviously a departure from the rest of node.
> >>
> >> Note that, if you only use crypto for hashes, and set the 'hex'
> >> encoding, then it won't affect you.  If you only ever pass the output
> >> of one crypto function to the input of another (sign/verify, for
> >> example) then it also won't affect you; you'll just pass buffers
> >> around instead of binary strings.
> >>
> >> Please select one, and reply with your choice and perhaps any other
> >> feedback you have on this issue.  Thanks.
> >>
> >> a) Go for it.  This won't affect me, and if by chance it does, I don't
> >> mind putting 'binary' args here and there.
> >> b) Please wait.  Mark the API as unstable in 0.10, but don't change it
> >> until 0.12.
> >> c) I have no opinion, because I don't use the crypto API directly.
> >>
> >>
> >> (Disclaimer: Node is not a democracy.  The "winning" vote might still
> >> be out-voted by reasonable considerations of the core dev team.  This
> >> is informative only ;)
> >
> > --
> > 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@googlegroups.com
> > To unsubscribe from this group, send email to
> > nodejs+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/nodejs?hl=en?hl=en
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] ANN: npm-bird - A bot that posts to twitter every time you publish to npm

2012-10-09 Thread Roly Fentanes
Hey all.

If you find yourself publishing to npm a bunch, and want a tiny bot 
to advertise your modules for you on Twitter, check out 
npm-bird
.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-09 Thread Stewart Mckinney
May I say, I endorse Mark Hahn for nice-police, 2012.

Also , much agreed with what Issacs said w.r.t "talk less, code and show
more". If you don't want to show us all of your code, why not talk about
some of the general concepts in a few blog posts, or create a contrived
example that sort of touches on what you are doing in your code? I think we
all understand keeping some of the secret sauce secret,  but you know, we
all come here to learn from one another.

Also, if you really want to be revolutionary or a trail-blazer - or hell, a
programmer in general - you will have to adapt the "absolutely giving no
fucks" attitude towards what people say about you in general. A part of you
will have to internalize it ( or else you will never grow ), but if you are
truly working on something great or mind-blowing, there will be a lot of
convincing to do.

You aren't going to convince us with YouTube videos. Try some blog posts
and some code, instead. Good luck.

On Tue, Oct 9, 2012 at 3:11 PM, Rick Waldron  wrote:

>
>
> On Tue, Oct 9, 2012 at 1:43 PM, Mark Hahn  wrote:
>
>> >  I said much the same as you have here and got a gnarly chastising.
>>
>> I don't remember exactly what you said, or how I chastised you, but I do 
>> remember
>> it was the words used, not the message.
>>
>>
> Wasn't talking about you, homeboy.
>
>
>
>
>> I was on a curmudgeon role that day.  I chastised someone for calling
>> another user a "tard".  I couldn't believe two people came back and
>> defended his usage.
>>
>> And yes, I'm the nice-police.
>>
>>
>> On Mon, Oct 8, 2012 at 10:04 PM, Rick Waldron wrote:
>>
>>>  Funny thing, I said much the same as you have here and got a gnarly
>>> chastising.
>>>
>>> -Rick
>>>
>>> On Monday, October 8, 2012 at 11:37 PM, Joshua Gross wrote:
>>>
>>> Dennis, this is a developer forum. If you want to peddle your software
>>> and aren't willing to show something besides videos, you're in the wrong
>>> place.
>>>
>>> Also I'm not going to watch a 15 minute video. You're not selling
>>> yourself very well, I kindly advise you to move on so this stops clogging
>>> my inbox :)
>>>
>>> -- Joshua Gross
>>> Christian / SpanDeX / BA Candidate of Computer Science, UW-Madison 2013
>>> 414-377-1041 / http://www.joshisgross.com
>>>
>>> On Oct 8, 2012, at 7:12 PM, Dennis Kane  wrote:
>>>
>>> Why do you want the code so bad?  It's not like there's any kind of
>>> fancy algorithms at work.  There are many many open source windowing
>>> packages out there.  It's not exactly rocket science, this.  It's all been
>>> done many times before.  The only difference is that this one is *my* baby!
>>>  Besides, you are welcome to all the code of my desktop prototype on my
>>> site at luvluvluv.info... it's just sitting there on the server for the
>>> taking.
>>>
>>> I am mainly using this thing as blackmail to get people to be interested
>>> in being my friend.  I want to do some real world community building, and
>>> something like this will go a long way to get a cooperative business up and
>>> running.
>>>
>>> Furthermore... you do realize that asking another programmer to "just
>>> show me your code" is exactly the same as asking a girl to "just show me
>>> your breasts", right?  I mean, I have nothing against it in principle, but,
>>> my god... I hardly know ye!!!
>>>
>>> My lastest work includes that rubber-band selection feature as well as
>>> dropping icons directly onto folder icons (with that "open folder" hover
>>> trick).  I have also included some basic image file support.
>>>
>>> Latest video here: http://www.youtube.com/watch?v=jL5r0b7WWvU
>>>
>>> On Friday, October 5, 2012 5:56:26 PM UTC-4, sotonin wrote:
>>>
>>> Code post it else Zzzz
>>>
>>> On Fri, Oct 5, 2012 at 4:37 PM, Dennis Kane  wrote:
>>>
>>> See the newest features here--> http://www.youtube.**
>>> com/watch?v=pF_2DwueGLM 
>>>
>>> The current version of the program now includes drag and drop
>>> functionality of text files from the native desktop straight into the
>>> browser desktop or (any of the subfolders). The difference between my drag
>>> and drop and all the HTML5 demos that you see on the web is that the
>>> dropped files immediately become icons that are integrated into the program.
>>>
>>> I will soon start working on getting multimedia icons/files working, so
>>> you'll be able to drop those directly in too.  Then I will probably do a
>>> very basic kind of image editing demo that will allow you to change
>>> individual pixels or some such nonsense.  But I don't want to get bogged
>>> down in the details of any particular application, because I always want to
>>> stay focused on the big picture of creating a totally powerful and
>>> intuitive way to organize our online lives.
>>>
>>> Anyway, I know I am quite a controversial figure here, but there should
>>> be no controversy that this thing is just about ready for prime time.  I
>>> really do need to start getting interested people on boa

Re: [nodejs] Re: Node.jar - Java port by Oracle

2012-10-09 Thread shawn wilson
On Oct 5, 2012 4:03 PM, "Johnny Honestly"  wrote:
>
> I never liked the name Javascript anyway, b/c of the Java confusion and
because the coffee fetish thing is, IMHO, below the awesomeness of the
language.
>

LiveScript v.02 ftw

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Node.jar - Java port by Oracle

2012-10-09 Thread shawn wilson
It would also be interesting to have a full node stack on android... and I
hear ARM is discontinuing their native Java support, but if I'm wrong,
native node on something like a cheap NXP chip would be cool too. I doubt
this just because I'm sure there are requirements in Java I skimmed over in
the headlines, but just a thought / hope ;)
On Oct 8, 2012 9:03 PM, "Ben Noordhuis"  wrote:

> On Tue, Oct 9, 2012 at 2:21 AM, Stewart Mckinney 
> wrote:
> > I'm just curious as to why having Node run on top of the Java run time is
> > better than say, vanilla C++ compiled Node running naively. Doesn't it
> run
> > on pretty much every popular platform now, anyway?
>
> The major ones, yes. But there are some high margin, low volume
> architectures like POWER and S/390 that V8 doesn't support (and hence
> node.js) but the JVM does. Think AIX, mainframes, etc.
>
> There has been some corporate interest in running node on such
> architectures but the time and money to get (and keep) it ported isn't
> worth it. node.jar could be a viable alternative.
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread shawn wilson
No idea why the comment about warning when you give crypt binary didn't
gain more notice, but... why not make a new interface instead of changing
the current one and possibly breaking stuff?

You could eventually make the old API the same as the new (in a year?
Whenever github searches come up empty?) It wont affect me and it seems the
modules I use that use crypt are updated frequently enough that I trust
I'll be fine, but what's the point of breaking stuff if you don't have to?
On Oct 9, 2012 12:11 PM, "Isaac Schlueter"  wrote:

> Seems pretty unanimous here.  So, unless some new objection comes up
> that is very compelling, let's assume that 0.10 will use Buffers by
> default in crypto instead of binary strings.
>
> Also, a streaming interface to the crypto classes is already underway.
>
>
> On Tue, Oct 9, 2012 at 9:06 AM, Jimb Esser  wrote:
> > a) Go for it.  Looks like it would have no effect on almost all of our
> > crypto code.
> >
> >
> > On Monday, October 8, 2012 4:24:36 PM UTC-7, Isaac Schlueter wrote:
> >>
> >> Currently, the crypto module defaults to using 'binary' encoded
> >> strings everywhere as the default input and output encoding.
> >>
> >> This is problematic for a few reasons:
> >>
> >> 1. It's slower than necessary.
> >> 2. It doesn't match the rest of Node.
> >>
> >> The reason for this is that crypto predates Buffers, and no one ever
> >> bothered to go through and change it.  (The same reason it's got some
> >> odd hodgepodge of update/digest methods vs the Stream interface you
> >> see everywhere else in node.)
> >>
> >> The reason it persists in 0.8 (and perhaps in 0.10) is that we
> >> (perhaps overly optimistically) labelled that API "stable", and don't
> >> want to break anyone's programs.  It's going to change eventually to
> >> match the rest of node.  The only question is whether the change will
> >> come in 0.10 or 0.12.  A stream interface to all the crypto classes is
> >> coming in 0.10; using 'binary' strings by default is thus even more
> >> obviously a departure from the rest of node.
> >>
> >> Note that, if you only use crypto for hashes, and set the 'hex'
> >> encoding, then it won't affect you.  If you only ever pass the output
> >> of one crypto function to the input of another (sign/verify, for
> >> example) then it also won't affect you; you'll just pass buffers
> >> around instead of binary strings.
> >>
> >> Please select one, and reply with your choice and perhaps any other
> >> feedback you have on this issue.  Thanks.
> >>
> >> a) Go for it.  This won't affect me, and if by chance it does, I don't
> >> mind putting 'binary' args here and there.
> >> b) Please wait.  Mark the API as unstable in 0.10, but don't change it
> >> until 0.12.
> >> c) I have no opinion, because I don't use the crypto API directly.
> >>
> >>
> >> (Disclaimer: Node is not a democracy.  The "winning" vote might still
> >> be out-voted by reasonable considerations of the core dev team.  This
> >> is informative only ;)
> >
> > --
> > 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@googlegroups.com
> > To unsubscribe from this group, send email to
> > nodejs+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/nodejs?hl=en?hl=en
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] zlib stream.write callback

2012-10-09 Thread Isaac Schlueter
If you add a listener on the 'data' event, or call .pause() or
.resume(), then new style streams will switch into old-style.  So,
existing programs should Just Work, but there are a bunch of new
classes that you'll be able to use to extend in userland streams so
that they play nicely with everything else.

On Tue, Oct 9, 2012 at 1:09 PM, khs4473  wrote:
> Cool - are new-style streams and old-style streams going to coexist in 0.10,
> or is everything being moved over to new-style?
>
> Kevin

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread Jason Brumwell
a++

On Monday, October 8, 2012 7:24:36 PM UTC-4, Isaac Schlueter wrote:
>
> Currently, the crypto module defaults to using 'binary' encoded 
> strings everywhere as the default input and output encoding. 
>
> This is problematic for a few reasons: 
>
> 1. It's slower than necessary. 
> 2. It doesn't match the rest of Node. 
>
> The reason for this is that crypto predates Buffers, and no one ever 
> bothered to go through and change it.  (The same reason it's got some 
> odd hodgepodge of update/digest methods vs the Stream interface you 
> see everywhere else in node.) 
>
> The reason it persists in 0.8 (and perhaps in 0.10) is that we 
> (perhaps overly optimistically) labelled that API "stable", and don't 
> want to break anyone's programs.  It's going to change eventually to 
> match the rest of node.  The only question is whether the change will 
> come in 0.10 or 0.12.  A stream interface to all the crypto classes is 
> coming in 0.10; using 'binary' strings by default is thus even more 
> obviously a departure from the rest of node. 
>
> Note that, if you only use crypto for hashes, and set the 'hex' 
> encoding, then it won't affect you.  If you only ever pass the output 
> of one crypto function to the input of another (sign/verify, for 
> example) then it also won't affect you; you'll just pass buffers 
> around instead of binary strings. 
>
> Please select one, and reply with your choice and perhaps any other 
> feedback you have on this issue.  Thanks. 
>
> a) Go for it.  This won't affect me, and if by chance it does, I don't 
> mind putting 'binary' args here and there. 
> b) Please wait.  Mark the API as unstable in 0.10, but don't change it 
> until 0.12. 
> c) I have no opinion, because I don't use the crypto API directly. 
>
>
> (Disclaimer: Node is not a democracy.  The "winning" vote might still 
> be out-voted by reasonable considerations of the core dev team.  This 
> is informative only ;) 
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Redirecting from naked domain to www with node/express?

2012-10-09 Thread Isaac Schlueter
You can also use canonical-host for this:

https://npmjs.org/package/canonical-host

var canon = require("canonical-host")('https://hostname.com')
app.use(canon)

It also supports specific port numbers, https/http, etc.  That's what
I'm using to redirect npm.im to npmjs.org.



On Tue, Oct 9, 2012 at 12:50 PM, Felix E. Klee  wrote:
> On Tue, Oct 9, 2012 at 7:45 AM, Anthony Ettinger 
> wrote:
>> I just created a module to do domain redirecting on npm:
>> https://npmjs.org/package/express-force-domain
>
> Cool!
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] zlib stream.write callback

2012-10-09 Thread khs4473
Cool - are new-style streams and old-style streams going to coexist in 
0.10, or is everything being moved over to new-style?

Kevin

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] zlib stream.write callback

2012-10-09 Thread Isaac Schlueter
No, it is going away in 0.10, with the stream API cleanup.


On Tue, Oct 9, 2012 at 12:42 PM, khs4473  wrote:
> I see that zlib streams accept a callback to their write method, which will
> be called when the input buffer is completely read (I'm guessing).  But I
> don't see documentation of that in the API docs.  Is it safe to use this
> feature?
>
> Kevin
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Redirecting from naked domain to www with node/express?

2012-10-09 Thread Felix E. Klee
On Tue, Oct 9, 2012 at 7:45 AM, Anthony Ettinger 
wrote:
> I just created a module to do domain redirecting on npm:
> https://npmjs.org/package/express-force-domain

Cool!

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] zlib stream.write callback

2012-10-09 Thread khs4473
I see that zlib streams accept a callback to their write method, which will 
be called when the input buffer is completely read (I'm guessing).  But I 
don't see documentation of that in the API docs.  Is it safe to use this 
feature?

Kevin

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] fs.write and buffers

2012-10-09 Thread Isaac Schlueter
It is not safe to re-use a buffer once it's passed to an async method,
and before the callback.  In the case of stream.write() it's not safe
to assume that it's *ever* ok to re-use it.

Memory is cheap.  If you don't know for sure that it's your
bottleneck, just let it go out of scope and get collected.


On Tue, Oct 9, 2012 at 7:34 AM, khs4473  wrote:
> At what point is it safe to reuse a buffer that is submitted to fs.write?
> Clearly when the callback is executed, but the buffer appears to be free on
> nextTick as well...
>
> Kevin
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-09 Thread Adam Crabtree
FWIW, it's been done multiple times before.

http://techcrunch.com/2012/01/30/synacor-ipo-carbyn/

Carbyn was a real startup that had a lot of the features I've seen
mentioned here and was very well executed on IMHO, not to mention the
upcoming Firefox OS, webOS, and various others in the past. I empathize
with your sentiments that you feel you are seeing beyond the curvature of
where things are currently headed, but as everyone states here talk is
cheap. Familiarize yourself better with your "competitors" and past
precedents and outline specifically in what ways you are trailblazing, in
what ways you are iterating, and in what ways you are doing things exactly
the same way because they worked well for others and you'll find others
tuning out a lot less.

You've been pretty long-winded here. Strive for brevity and conciseness to
be more effective. I wanted to experience the story and vision you are
painting, but stopped far short as I lost interest, and I am someone that
*wanted* to go along. Also, I completely disagree with your political
views, but not your passion and goals with this project. Injecting politics
into software isn't new, but I think you're going to make more enemies than
allies when you do so. In other words, political zealotry is cheap too.
Bringing people together is the real hard work.

Best of luck and keep working toward your vision!

Cheers,
Adam Crabtree


On Tue, Oct 9, 2012 at 10:43 AM, Mark Hahn  wrote:

> >  I said much the same as you have here and got a gnarly chastising.
>
> I don't remember exactly what you said, or how I chastised you, but I do 
> remember
> it was the words used, not the message.
>
> I was on a curmudgeon role that day.  I chastised someone for calling
> another user a "tard".  I couldn't believe two people came back and
> defended his usage.
>
> And yes, I'm the nice-police.
>
>
> On Mon, Oct 8, 2012 at 10:04 PM, Rick Waldron wrote:
>
>>  Funny thing, I said much the same as you have here and got a gnarly
>> chastising.
>>
>> -Rick
>>
>> On Monday, October 8, 2012 at 11:37 PM, Joshua Gross wrote:
>>
>> Dennis, this is a developer forum. If you want to peddle your software
>> and aren't willing to show something besides videos, you're in the wrong
>> place.
>>
>> Also I'm not going to watch a 15 minute video. You're not selling
>> yourself very well, I kindly advise you to move on so this stops clogging
>> my inbox :)
>>
>> -- Joshua Gross
>> Christian / SpanDeX / BA Candidate of Computer Science, UW-Madison 2013
>> 414-377-1041 / http://www.joshisgross.com
>>
>> On Oct 8, 2012, at 7:12 PM, Dennis Kane  wrote:
>>
>> Why do you want the code so bad?  It's not like there's any kind of fancy
>> algorithms at work.  There are many many open source windowing packages out
>> there.  It's not exactly rocket science, this.  It's all been done many
>> times before.  The only difference is that this one is *my* baby!  Besides,
>> you are welcome to all the code of my desktop prototype on my site at
>> luvluvluv.info... it's just sitting there on the server for the taking.
>>
>> I am mainly using this thing as blackmail to get people to be interested
>> in being my friend.  I want to do some real world community building, and
>> something like this will go a long way to get a cooperative business up and
>> running.
>>
>> Furthermore... you do realize that asking another programmer to "just
>> show me your code" is exactly the same as asking a girl to "just show me
>> your breasts", right?  I mean, I have nothing against it in principle, but,
>> my god... I hardly know ye!!!
>>
>> My lastest work includes that rubber-band selection feature as well as
>> dropping icons directly onto folder icons (with that "open folder" hover
>> trick).  I have also included some basic image file support.
>>
>> Latest video here: http://www.youtube.com/watch?v=jL5r0b7WWvU
>>
>> On Friday, October 5, 2012 5:56:26 PM UTC-4, sotonin wrote:
>>
>> Code post it else Zzzz
>>
>> On Fri, Oct 5, 2012 at 4:37 PM, Dennis Kane  wrote:
>>
>> See the newest features here--> http://www.youtube.**
>> com/watch?v=pF_2DwueGLM 
>>
>> The current version of the program now includes drag and drop
>> functionality of text files from the native desktop straight into the
>> browser desktop or (any of the subfolders). The difference between my drag
>> and drop and all the HTML5 demos that you see on the web is that the
>> dropped files immediately become icons that are integrated into the program.
>>
>> I will soon start working on getting multimedia icons/files working, so
>> you'll be able to drop those directly in too.  Then I will probably do a
>> very basic kind of image editing demo that will allow you to change
>> individual pixels or some such nonsense.  But I don't want to get bogged
>> down in the details of any particular application, because I always want to
>> stay focused on the big picture of creating a totally powerful and
>> intuitive way to 

Re: [nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-09 Thread Mark Hahn
>  I said much the same as you have here and got a gnarly chastising.

I don't remember exactly what you said, or how I chastised you, but I
do remember
it was the words used, not the message.

I was on a curmudgeon role that day.  I chastised someone for calling
another user a "tard".  I couldn't believe two people came back and
defended his usage.

And yes, I'm the nice-police.


On Mon, Oct 8, 2012 at 10:04 PM, Rick Waldron wrote:

>  Funny thing, I said much the same as you have here and got a gnarly
> chastising.
>
> -Rick
>
> On Monday, October 8, 2012 at 11:37 PM, Joshua Gross wrote:
>
> Dennis, this is a developer forum. If you want to peddle your software and
> aren't willing to show something besides videos, you're in the wrong place.
>
> Also I'm not going to watch a 15 minute video. You're not selling yourself
> very well, I kindly advise you to move on so this stops clogging my inbox :)
>
> -- Joshua Gross
> Christian / SpanDeX / BA Candidate of Computer Science, UW-Madison 2013
> 414-377-1041 / http://www.joshisgross.com
>
> On Oct 8, 2012, at 7:12 PM, Dennis Kane  wrote:
>
> Why do you want the code so bad?  It's not like there's any kind of fancy
> algorithms at work.  There are many many open source windowing packages out
> there.  It's not exactly rocket science, this.  It's all been done many
> times before.  The only difference is that this one is *my* baby!  Besides,
> you are welcome to all the code of my desktop prototype on my site at
> luvluvluv.info... it's just sitting there on the server for the taking.
>
> I am mainly using this thing as blackmail to get people to be interested
> in being my friend.  I want to do some real world community building, and
> something like this will go a long way to get a cooperative business up and
> running.
>
> Furthermore... you do realize that asking another programmer to "just show
> me your code" is exactly the same as asking a girl to "just show me your
> breasts", right?  I mean, I have nothing against it in principle, but, my
> god... I hardly know ye!!!
>
> My lastest work includes that rubber-band selection feature as well as
> dropping icons directly onto folder icons (with that "open folder" hover
> trick).  I have also included some basic image file support.
>
> Latest video here: http://www.youtube.com/watch?v=jL5r0b7WWvU
>
> On Friday, October 5, 2012 5:56:26 PM UTC-4, sotonin wrote:
>
> Code post it else Zzzz
>
> On Fri, Oct 5, 2012 at 4:37 PM, Dennis Kane  wrote:
>
> See the newest features here--> http://www.youtube.**
> com/watch?v=pF_2DwueGLM 
>
> The current version of the program now includes drag and drop
> functionality of text files from the native desktop straight into the
> browser desktop or (any of the subfolders). The difference between my drag
> and drop and all the HTML5 demos that you see on the web is that the
> dropped files immediately become icons that are integrated into the program.
>
> I will soon start working on getting multimedia icons/files working, so
> you'll be able to drop those directly in too.  Then I will probably do a
> very basic kind of image editing demo that will allow you to change
> individual pixels or some such nonsense.  But I don't want to get bogged
> down in the details of any particular application, because I always want to
> stay focused on the big picture of creating a totally powerful and
> intuitive way to organize our online lives.
>
> Anyway, I know I am quite a controversial figure here, but there should be
> no controversy that this thing is just about ready for prime time.  I
> really do need to start getting interested people on board who would like
> to help me push the web forward.  The basic mission statement for the
> venture will basically be that the "old web" (HTML4/version 1.0) is dead
> and gone.  If anyone calls in search of help on their Flintstone era 
> documents with all of their  and  tags laying about, we'll
> just point them in an entirely new direction.  If they still insist on
> doing things the old way, we'll just hang up on them…  This thing is all
> about the future!
>
> We can easily develop libraries of high-level interface widgets that
> people just need to attach event listeners to.  There will be no angle
> brackets in sight!  is>!
>
> Come one, come all, for the thrill of your lives :)
>
>
> On Tuesday, September 25, 2012 7:36:37 PM UTC-4, Dennis Kane wrote:
>
> I was thinking of just responding  to this old 
> thread,
> in which I talk about the browser based Desktop that I've been working on,
> but the new thing I've been doing for the past week is so superior that I
> thought it deserved a completely new thead.  By the way, I know this forum
> is all about server side Javascript, but there is not really any serious
> place one can go on the web that talks about the client side.  Besides,
> with socket.io & websockets... 

Re: [nodejs] Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread Dan Shaw
a) go for it.

Daniel Shaw
@dshaw


On Mon, Oct 8, 2012 at 4:24 PM, Isaac Schlueter  wrote:
> Currently, the crypto module defaults to using 'binary' encoded
> strings everywhere as the default input and output encoding.
>
> This is problematic for a few reasons:
>
> 1. It's slower than necessary.
> 2. It doesn't match the rest of Node.
>
> The reason for this is that crypto predates Buffers, and no one ever
> bothered to go through and change it.  (The same reason it's got some
> odd hodgepodge of update/digest methods vs the Stream interface you
> see everywhere else in node.)
>
> The reason it persists in 0.8 (and perhaps in 0.10) is that we
> (perhaps overly optimistically) labelled that API "stable", and don't
> want to break anyone's programs.  It's going to change eventually to
> match the rest of node.  The only question is whether the change will
> come in 0.10 or 0.12.  A stream interface to all the crypto classes is
> coming in 0.10; using 'binary' strings by default is thus even more
> obviously a departure from the rest of node.
>
> Note that, if you only use crypto for hashes, and set the 'hex'
> encoding, then it won't affect you.  If you only ever pass the output
> of one crypto function to the input of another (sign/verify, for
> example) then it also won't affect you; you'll just pass buffers
> around instead of binary strings.
>
> Please select one, and reply with your choice and perhaps any other
> feedback you have on this issue.  Thanks.
>
> a) Go for it.  This won't affect me, and if by chance it does, I don't
> mind putting 'binary' args here and there.
> b) Please wait.  Mark the API as unstable in 0.10, but don't change it
> until 0.12.
> c) I have no opinion, because I don't use the crypto API directly.
>
>
> (Disclaimer: Node is not a democracy.  The "winning" vote might still
> be out-voted by reasonable considerations of the core dev team.  This
> is informative only ;)
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread Jannick
a) go for it!

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-09 Thread Karl
wise words, well phrased, kudos, being friendly doesn't cost anything

El martes, 9 de octubre de 2012 18:06:00 UTC+2, Isaac Schlueter escribió:
>
> Guys, be nice.  Dennis is unusual, sure, but unusual isn't bad.  We're 
> all unusual in some way.  I don't see anything sociopathic or trollish 
> here, just a lot of excitement about a program he's writing, and 
> perhaps a bit of naivety regarding the best ways to go about 
> recruiting contributors. 
>
>
> Dennis, 
>
> The reason you're getting no traction here is that your "I'm going to 
> be a larger than life superhero because of my code, which I want you 
> to help with, and it'll make you rich, but no, you can't see it" 
> matches a *very* common pattern of "crazy person", which we've all 
> seen before.  It's a lot of talk, and no substance.  It's trying to 
> spend credibility on credit, and that's not how credibility works. 
>
> I'd recommend that you assume that no one will take you seriously, and 
> focus on overcoming that, if your goal is actually to be successful 
> and recruit others to your mission of whatever it is you hope to 
> accomplish with your technology.  Of course, if your goal is to get a 
> little bit of attention, and wave your freak flag, well, then bravo, 
> you're doing a wonderful job, please carry on :) 
>
> FWIW, I agree with most of your politics, and wish you the best of 
> success.  You seem like a nice person.  But if you want to recruit 
> coders, write more code, and fewer words, and share it liberally.  The 
> revolution in software already happened, and that's the new paradigm. 
> You will gain more credibility if you become a part of the OSS 
> community before asking it for favors. 
>
>
> On Tue, Oct 9, 2012 at 1:10 AM, Joshua Gross 
> > 
> wrote: 
> > Maybe I'll get one, too :) this doesn't seem to be going anywhere 
> though. 
> > 
> > 
> > -- Joshua Gross 
> > Christian / SpanDeX / BA Candidate of Computer Science, UW-Madison 2013 
> > 414-377-1041 / http://www.joshisgross.com 
> > 
> > On Oct 9, 2012, at 12:04 AM, Rick Waldron 
> > > 
> wrote: 
> > 
> > Funny thing, I said much the same as you have here and got a gnarly 
> > chastising. 
> > 
> > -Rick 
> > 
> > On Monday, October 8, 2012 at 11:37 PM, Joshua Gross wrote: 
> > 
> > Dennis, this is a developer forum. If you want to peddle your software 
> and 
> > aren't willing to show something besides videos, you're in the wrong 
> place. 
> > 
> > Also I'm not going to watch a 15 minute video. You're not selling 
> yourself 
> > very well, I kindly advise you to move on so this stops clogging my 
> inbox :) 
> > 
> > -- Joshua Gross 
> > Christian / SpanDeX / BA Candidate of Computer Science, UW-Madison 2013 
> > 414-377-1041 / http://www.joshisgross.com 
> > 
> > On Oct 8, 2012, at 7:12 PM, Dennis Kane > 
> wrote: 
> > 
> > Why do you want the code so bad?  It's not like there's any kind of 
> fancy 
> > algorithms at work.  There are many many open source windowing packages 
> out 
> > there.  It's not exactly rocket science, this.  It's all been done many 
> > times before.  The only difference is that this one is *my* baby! 
>  Besides, 
> > you are welcome to all the code of my desktop prototype on my site at 
> > luvluvluv.info... it's just sitting there on the server for the taking. 
> > 
> > I am mainly using this thing as blackmail to get people to be interested 
> in 
> > being my friend.  I want to do some real world community building, and 
> > something like this will go a long way to get a cooperative business up 
> and 
> > running. 
> > 
> > Furthermore... you do realize that asking another programmer to "just 
> show 
> > me your code" is exactly the same as asking a girl to "just show me your 
> > breasts", right?  I mean, I have nothing against it in principle, but, 
> my 
> > god... I hardly know ye!!! 
> > 
> > My lastest work includes that rubber-band selection feature as well as 
> > dropping icons directly onto folder icons (with that "open folder" hover 
> > trick).  I have also included some basic image file support. 
> > 
> > Latest video here: http://www.youtube.com/watch?v=jL5r0b7WWvU 
> > 
> > On Friday, October 5, 2012 5:56:26 PM UTC-4, sotonin wrote: 
> > 
> > Code post it else Zzzz 
> > 
> > On Fri, Oct 5, 2012 at 4:37 PM, Dennis Kane  wrote: 
> > 
> > See the newest features here--> 
> http://www.youtube.com/watch?v=pF_2DwueGLM 
> > 
> > The current version of the program now includes drag and drop 
> functionality 
> > of text files from the native desktop straight into the browser desktop 
> or 
> > (any of the subfolders). The difference between my drag and drop and all 
> the 
> > HTML5 demos that you see on the web is that the dropped files 
> immediately 
> > become icons that are integrated into the program. 
> > 
> > I will soon start working on getting multimedia icons/files working, so 
> > you'll be able to drop those directly in too.  Then I will probably do a 
> > very basic kind of image editing demo t

Re: [nodejs] Node.jar - Java port by Oracle

2012-10-09 Thread Isaac Schlueter
This is just a natural part of being a popular programming platform.
It seems pretty similar to me to something like JRuby or Jython.


On Mon, Oct 8, 2012 at 10:21 PM, cole gillespie  wrote:
> Isnt the goal of node to eventually be done with "new features" / "bugs" ?
> =)
>
> On Tue, Oct 9, 2012 at 7:15 AM, Rick Waldron  wrote:
>>
>> This strikes me as the sort of shitty compatibility fragmentation that
>> browsers suffer from. What happens when "node.jar" falls behind in
>> supporting new features? Bug fixes?
>>
>> -Rick
>>
>> On Monday, October 8, 2012 at 9:03 PM, Ben Noordhuis wrote:
>>
>> On Tue, Oct 9, 2012 at 2:21 AM, Stewart Mckinney 
>> wrote:
>>
>> I'm just curious as to why having Node run on top of the Java run time is
>> better than say, vanilla C++ compiled Node running naively. Doesn't it run
>> on pretty much every popular platform now, anyway?
>>
>>
>> The major ones, yes. But there are some high margin, low volume
>> architectures like POWER and S/390 that V8 doesn't support (and hence
>> node.js) but the JVM does. Think AIX, mainframes, etc.
>>
>> There has been some corporate interest in running node on such
>> architectures but the time and money to get (and keep) it ported isn't
>> worth it. node.jar could be a viable alternative.
>>
>> --
>> 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@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>>
>> --
>> 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@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread Isaac Schlueter
Seems pretty unanimous here.  So, unless some new objection comes up
that is very compelling, let's assume that 0.10 will use Buffers by
default in crypto instead of binary strings.

Also, a streaming interface to the crypto classes is already underway.


On Tue, Oct 9, 2012 at 9:06 AM, Jimb Esser  wrote:
> a) Go for it.  Looks like it would have no effect on almost all of our
> crypto code.
>
>
> On Monday, October 8, 2012 4:24:36 PM UTC-7, Isaac Schlueter wrote:
>>
>> Currently, the crypto module defaults to using 'binary' encoded
>> strings everywhere as the default input and output encoding.
>>
>> This is problematic for a few reasons:
>>
>> 1. It's slower than necessary.
>> 2. It doesn't match the rest of Node.
>>
>> The reason for this is that crypto predates Buffers, and no one ever
>> bothered to go through and change it.  (The same reason it's got some
>> odd hodgepodge of update/digest methods vs the Stream interface you
>> see everywhere else in node.)
>>
>> The reason it persists in 0.8 (and perhaps in 0.10) is that we
>> (perhaps overly optimistically) labelled that API "stable", and don't
>> want to break anyone's programs.  It's going to change eventually to
>> match the rest of node.  The only question is whether the change will
>> come in 0.10 or 0.12.  A stream interface to all the crypto classes is
>> coming in 0.10; using 'binary' strings by default is thus even more
>> obviously a departure from the rest of node.
>>
>> Note that, if you only use crypto for hashes, and set the 'hex'
>> encoding, then it won't affect you.  If you only ever pass the output
>> of one crypto function to the input of another (sign/verify, for
>> example) then it also won't affect you; you'll just pass buffers
>> around instead of binary strings.
>>
>> Please select one, and reply with your choice and perhaps any other
>> feedback you have on this issue.  Thanks.
>>
>> a) Go for it.  This won't affect me, and if by chance it does, I don't
>> mind putting 'binary' args here and there.
>> b) Please wait.  Mark the API as unstable in 0.10, but don't change it
>> until 0.12.
>> c) I have no opinion, because I don't use the crypto API directly.
>>
>>
>> (Disclaimer: Node is not a democracy.  The "winning" vote might still
>> be out-voted by reasonable considerations of the core dev team.  This
>> is informative only ;)
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: i heared a lot about nodejs but i am afraid

2012-10-09 Thread waqasde
thanks  all of you guys i am really excited to see quite good response from 
nodejs community. actually my hosting provider has fixed 256MB RAM for 
one application mysql will be handled by other ram. so what do you think 
how much request nodejs can service in a month  in this ram? 
@WIL MILLER why dont you share your experience about how to actually do 
async compact & maintainable code in js 

On Monday, October 8, 2012 2:29:26 AM UTC+5, waqasde wrote:
>
> hi,
> i am new to nodejs i have heard a lot about nodejs but i have heared from 
> couple of guys its for real time applications like multiplayer games but 
> its not for traditional php my sql websites like a ecommerce website.
>
> i have to develop a product reviewing website i have option to choose 
> between php/mysql or nodejs mysql .due to new uprising technology i am more 
> inclined towards nodejs 
> as it might add some thing  new good to my skills .
> is there any risk involved as i dont want to regret in the end .
>
> please guys advise should i invest in nodejs for such website ?
>
> thanks
>
>
>
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread Jimb Esser
a) Go for it.  Looks like it would have no effect on almost all of our 
crypto code.

On Monday, October 8, 2012 4:24:36 PM UTC-7, Isaac Schlueter wrote:
>
> Currently, the crypto module defaults to using 'binary' encoded 
> strings everywhere as the default input and output encoding. 
>
> This is problematic for a few reasons: 
>
> 1. It's slower than necessary. 
> 2. It doesn't match the rest of Node. 
>
> The reason for this is that crypto predates Buffers, and no one ever 
> bothered to go through and change it.  (The same reason it's got some 
> odd hodgepodge of update/digest methods vs the Stream interface you 
> see everywhere else in node.) 
>
> The reason it persists in 0.8 (and perhaps in 0.10) is that we 
> (perhaps overly optimistically) labelled that API "stable", and don't 
> want to break anyone's programs.  It's going to change eventually to 
> match the rest of node.  The only question is whether the change will 
> come in 0.10 or 0.12.  A stream interface to all the crypto classes is 
> coming in 0.10; using 'binary' strings by default is thus even more 
> obviously a departure from the rest of node. 
>
> Note that, if you only use crypto for hashes, and set the 'hex' 
> encoding, then it won't affect you.  If you only ever pass the output 
> of one crypto function to the input of another (sign/verify, for 
> example) then it also won't affect you; you'll just pass buffers 
> around instead of binary strings. 
>
> Please select one, and reply with your choice and perhaps any other 
> feedback you have on this issue.  Thanks. 
>
> a) Go for it.  This won't affect me, and if by chance it does, I don't 
> mind putting 'binary' args here and there. 
> b) Please wait.  Mark the API as unstable in 0.10, but don't change it 
> until 0.12. 
> c) I have no opinion, because I don't use the crypto API directly. 
>
>
> (Disclaimer: Node is not a democracy.  The "winning" vote might still 
> be out-voted by reasonable considerations of the core dev team.  This 
> is informative only ;) 
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-09 Thread Isaac Schlueter
Guys, be nice.  Dennis is unusual, sure, but unusual isn't bad.  We're
all unusual in some way.  I don't see anything sociopathic or trollish
here, just a lot of excitement about a program he's writing, and
perhaps a bit of naivety regarding the best ways to go about
recruiting contributors.


Dennis,

The reason you're getting no traction here is that your "I'm going to
be a larger than life superhero because of my code, which I want you
to help with, and it'll make you rich, but no, you can't see it"
matches a *very* common pattern of "crazy person", which we've all
seen before.  It's a lot of talk, and no substance.  It's trying to
spend credibility on credit, and that's not how credibility works.

I'd recommend that you assume that no one will take you seriously, and
focus on overcoming that, if your goal is actually to be successful
and recruit others to your mission of whatever it is you hope to
accomplish with your technology.  Of course, if your goal is to get a
little bit of attention, and wave your freak flag, well, then bravo,
you're doing a wonderful job, please carry on :)

FWIW, I agree with most of your politics, and wish you the best of
success.  You seem like a nice person.  But if you want to recruit
coders, write more code, and fewer words, and share it liberally.  The
revolution in software already happened, and that's the new paradigm.
You will gain more credibility if you become a part of the OSS
community before asking it for favors.


On Tue, Oct 9, 2012 at 1:10 AM, Joshua Gross  wrote:
> Maybe I'll get one, too :) this doesn't seem to be going anywhere though.
>
>
> -- Joshua Gross
> Christian / SpanDeX / BA Candidate of Computer Science, UW-Madison 2013
> 414-377-1041 / http://www.joshisgross.com
>
> On Oct 9, 2012, at 12:04 AM, Rick Waldron  wrote:
>
> Funny thing, I said much the same as you have here and got a gnarly
> chastising.
>
> -Rick
>
> On Monday, October 8, 2012 at 11:37 PM, Joshua Gross wrote:
>
> Dennis, this is a developer forum. If you want to peddle your software and
> aren't willing to show something besides videos, you're in the wrong place.
>
> Also I'm not going to watch a 15 minute video. You're not selling yourself
> very well, I kindly advise you to move on so this stops clogging my inbox :)
>
> -- Joshua Gross
> Christian / SpanDeX / BA Candidate of Computer Science, UW-Madison 2013
> 414-377-1041 / http://www.joshisgross.com
>
> On Oct 8, 2012, at 7:12 PM, Dennis Kane  wrote:
>
> Why do you want the code so bad?  It's not like there's any kind of fancy
> algorithms at work.  There are many many open source windowing packages out
> there.  It's not exactly rocket science, this.  It's all been done many
> times before.  The only difference is that this one is *my* baby!  Besides,
> you are welcome to all the code of my desktop prototype on my site at
> luvluvluv.info... it's just sitting there on the server for the taking.
>
> I am mainly using this thing as blackmail to get people to be interested in
> being my friend.  I want to do some real world community building, and
> something like this will go a long way to get a cooperative business up and
> running.
>
> Furthermore... you do realize that asking another programmer to "just show
> me your code" is exactly the same as asking a girl to "just show me your
> breasts", right?  I mean, I have nothing against it in principle, but, my
> god... I hardly know ye!!!
>
> My lastest work includes that rubber-band selection feature as well as
> dropping icons directly onto folder icons (with that "open folder" hover
> trick).  I have also included some basic image file support.
>
> Latest video here: http://www.youtube.com/watch?v=jL5r0b7WWvU
>
> On Friday, October 5, 2012 5:56:26 PM UTC-4, sotonin wrote:
>
> Code post it else Zzzz
>
> On Fri, Oct 5, 2012 at 4:37 PM, Dennis Kane  wrote:
>
> See the newest features here--> http://www.youtube.com/watch?v=pF_2DwueGLM
>
> The current version of the program now includes drag and drop functionality
> of text files from the native desktop straight into the browser desktop or
> (any of the subfolders). The difference between my drag and drop and all the
> HTML5 demos that you see on the web is that the dropped files immediately
> become icons that are integrated into the program.
>
> I will soon start working on getting multimedia icons/files working, so
> you'll be able to drop those directly in too.  Then I will probably do a
> very basic kind of image editing demo that will allow you to change
> individual pixels or some such nonsense.  But I don't want to get bogged
> down in the details of any particular application, because I always want to
> stay focused on the big picture of creating a totally powerful and intuitive
> way to organize our online lives.
>
> Anyway, I know I am quite a controversial figure here, but there should be
> no controversy that this thing is just about ready for prime time.  I really
> do need to start getting interested people on 

Re: [nodejs] Does fs.chmod have any effect on Windows platform?

2012-10-09 Thread Bert Belder

On Tuesday, October 9, 2012 4:14:05 PM UTC+2, Ben Noordhuis wrote:
>
> fs.chmod() on windows is not exactly a no-op, it just doesn't do much. 
> You can flip the read and write bits and that's it. 
>

I fact, you can only flip the write bit. If you take it away, the readonly 
bit is set on the file.

On Tuesday, October 9, 2012 4:19:17 PM UTC+2, Mariusz Nowak wrote:
>
> Thanks, that clarifies. I understand that is also works for files only? at 
> least I think there's no effect when trying to change bits for directories 
> (?)


It works on directories as well, but the effect of the readonly bit is 
different for directories. It will still be possible to remove the 
directory, create new files in it etc., but new files that are added  
"inherit" the readonly bit from the directory they are created in.

- Bert

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] fs.write and buffers

2012-10-09 Thread khs4473
At what point is it safe to reuse a buffer that is submitted to fs.write? 
 Clearly when the callback is executed, but the buffer appears to be free 
on nextTick as well...

Kevin

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Dynamic content scrape with Node.js

2012-10-09 Thread Dave Kuhn
True, you can get pretty far doing that but it gets difficult when crucial bits 
of information are hidden inside script tags and the like. Not to mention 
managing cookies for ASP.NET pages amongst others is a pain in the butt. You 
can avoid all that hassle with a fully resolved DOM and automatic support for 
cookies which Phantom JS will give you.

--  
Dave Kuhn
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Tuesday, October 9, 2012 at 12:25 AM, greelgorke wrote:

> why so complicated? just find out the url of the ajax request and do it 
> yourself with whatever lib you want...
>  
> Am Montag, 8. Oktober 2012 18:53:27 UTC+2 schrieb Chad Engler:
> > This is probably the same person who asked this question on StackOverflow:
> >   
> > http://stackoverflow.com/questions/12630891/scrape-data-generated-by-javascript-on-server-side-from-webpages-aspx
> >   
> > Where I have already answered his question, he just didn’t like it:
> >   
> > http://stackoverflow.com/questions/12630891/scrape-data-generated-by-javascript-on-server-side-from-webpages-aspx#comment17032399_12630891
> >   
> > -Chad
> >   
> > From: nod...@googlegroups.com [mailto:nod...@googlegroups.com] On Behalf Of 
> > Dave Kuhn
> > Sent: Saturday, October 06, 2012 11:46 PM
> > To: nod...@googlegroups.com
> > Subject: Re: [nodejs] Dynamic content scrape with Node.js
> >   
> > Good suggestions so far, though i highly recommend you check out 
> > phantomjs.org (http://phantomjs.org). Phantom is a headless version of 
> > WebKit which is the rendering engine behind Chrome & Safari. It's the most 
> > comprehensive solution to handling AJAX content when scraping in my book 
> > since it's technically the same as interacting with a page loaded by your 
> > browser.  
> >  
> >   
> >  
> > --  
> > Dave Kuhn
> > Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> >  
> >   
> >  
> >  
> > On Saturday, October 6, 2012 at 3:04 PM, rektide wrote:
> > > Only just picked it up last week, but it worked well enough-- node.io 
> > > (http://node.io). It exposes a
> > >  
> > > jQuery-esque interface for querying scraped pages. Extremely high level, 
> > > "just works"
> > >  
> > > scraping module, in my book!
> > >  
> > >   
> > >  
> > > It also has a fairly sizable task-processing system built in, which I 
> > > have not used.
> > >  
> > >   
> > >  
> > > Good luck:
> > >  
> > > https://github.com/chriso/node.io
> > >  
> > >   
> > >  
> > > -rektide
> > >  
> > >   
> > >  
> > > On Sat, Oct 06, 2012 at 01:34:03PM -0700, Narek Musakhanyan wrote:
> > >  
> > > > Hey guys . I tried to scrape a data from a website using PHP cURL lib 
> > > > but
> > > >  
> > > > I failed  since cURl allows you to scrape only static content . But the
> > > >  
> > > > content I want to scrape changes via javascript(AJAX)  since cURL cant
> > > >  
> > > > hanfle that I couldnt handle scraping via cURL . So I heard the this 
> > > > type
> > > >  
> > > > of things can be done via node . Basically I need to make my node app
> > > >  
> > > > handle this js wait for some time until AJAX is done and the pass it to
> > > >  
> > > > php .So is it possible to do via node.js ? I dont know node and I have 
> > > > to
> > > >  
> > > > start from scratch so I am here you to point out the right node 
> > > > framework
> > > >  
> > > > to use to get the result I explained .  
> > > >  
> > > >  
> > >  
> > >   
> > >  
> > > --  
> > >  
> > > 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 nod...@googlegroups.com
> > >  
> > > To unsubscribe from this group, send email to
> > >  
> > > nodejs+un...@googlegroups.com
> > >  
> > > For more options, visit this group at
> > >  
> > > http://groups.google.com/group/nodejs?hl=en?hl=en
> > >  
> > >  
> > >  
> >  
> >   
> >  
> > --  
> > 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 nod...@googlegroups.com
> > To unsubscribe from this group, send email to
> > nodejs+un...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/nodejs?hl=en?hl=en
>  
> --  
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/gro

Re: [nodejs] Does fs.chmod have any effect on Windows platform?

2012-10-09 Thread Mariusz Nowak
Thanks, that clarifies. I understand that is also works for files only? at 
least I think there's no effect when trying to change bits for directories 
(?)

On Tuesday, October 9, 2012 4:14:05 PM UTC+2, Ben Noordhuis wrote:
>
> On Tue, Oct 9, 2012 at 4:03 PM, Mariusz Nowak 
> > 
> wrote: 
> > fs.lchmod is only available on OSX, while fs.chmod is available on all 
> > platforms still it seems to have no effect on Windows. 
> > Is it just noop there? Or it has some effect in some cases? 
> > 
> > If anyone knows the answer I'll be grateful. Thanks. 
>
> fs.chmod() on windows is not exactly a no-op, it just doesn't do much. 
> You can flip the read and write bits and that's it. 
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Does fs.chmod have any effect on Windows platform?

2012-10-09 Thread Ben Noordhuis
On Tue, Oct 9, 2012 at 4:03 PM, Mariusz Nowak  wrote:
> fs.lchmod is only available on OSX, while fs.chmod is available on all
> platforms still it seems to have no effect on Windows.
> Is it just noop there? Or it has some effect in some cases?
>
> If anyone knows the answer I'll be grateful. Thanks.

fs.chmod() on windows is not exactly a no-op, it just doesn't do much.
You can flip the read and write bits and that's it.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Does fs.chmod have any effect on Windows platform?

2012-10-09 Thread Mariusz Nowak
fs.lchmod is only available on OSX, while fs.chmod is available on all 
platforms still it seems to have no effect on Windows.
Is it just noop there? Or it has some effect in some cases?

If anyone knows the answer I'll be grateful. Thanks.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread Matt
a - go for it. This has bugged me for long enough.

On Mon, Oct 8, 2012 at 7:24 PM, Isaac Schlueter  wrote:

> Currently, the crypto module defaults to using 'binary' encoded
> strings everywhere as the default input and output encoding.
>
> This is problematic for a few reasons:
>
> 1. It's slower than necessary.
> 2. It doesn't match the rest of Node.
>
> The reason for this is that crypto predates Buffers, and no one ever
> bothered to go through and change it.  (The same reason it's got some
> odd hodgepodge of update/digest methods vs the Stream interface you
> see everywhere else in node.)
>
> The reason it persists in 0.8 (and perhaps in 0.10) is that we
> (perhaps overly optimistically) labelled that API "stable", and don't
> want to break anyone's programs.  It's going to change eventually to
> match the rest of node.  The only question is whether the change will
> come in 0.10 or 0.12.  A stream interface to all the crypto classes is
> coming in 0.10; using 'binary' strings by default is thus even more
> obviously a departure from the rest of node.
>
> Note that, if you only use crypto for hashes, and set the 'hex'
> encoding, then it won't affect you.  If you only ever pass the output
> of one crypto function to the input of another (sign/verify, for
> example) then it also won't affect you; you'll just pass buffers
> around instead of binary strings.
>
> Please select one, and reply with your choice and perhaps any other
> feedback you have on this issue.  Thanks.
>
> a) Go for it.  This won't affect me, and if by chance it does, I don't
> mind putting 'binary' args here and there.
> b) Please wait.  Mark the API as unstable in 0.10, but don't change it
> until 0.12.
> c) I have no opinion, because I don't use the crypto API directly.
>
>
> (Disclaimer: Node is not a democracy.  The "winning" vote might still
> be out-voted by reasonable considerations of the core dev team.  This
> is informative only ;)
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Redirecting from naked domain to www with node/express?

2012-10-09 Thread Anthony Ettinger
I just created a module to do domain redirecting on npm: 
https://npmjs.org/package/express-force-domain

npm install express-force-domain

app.all('*', require('express-force-domain')('http://www.example.com') );



On Monday, June 4, 2012 12:07:09 AM UTC-7, Felix E. Klee wrote:
>
> I am hosting an express.js application on nodejitsu.com. Now, I have 
> assigned two domain names to it: 
>
>   example.com 
>   www.example.com 
>
> This works (although, this morning there were some glitches). Now, I 
> would like to always redirect: 
>
>   example.com -> www.example.com 
>   example.com/some/page.html -> www.example.com/some/page.html 
>   ... 
>
> Is there an easy way to achieve that using routing from within 
> node/express? 
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: i heared a lot about nodejs but i am afraid

2012-10-09 Thread Anthony Ettinger
I would do a small project in node.js, express before I commit to writing a 
production quality app for someone.

There is a bit of a learning curve, but once you get over it, node is 
really fun.

On Sunday, October 7, 2012 2:29:26 PM UTC-7, waqasde wrote:
>
> hi,
> i am new to nodejs i have heard a lot about nodejs but i have heared from 
> couple of guys its for real time applications like multiplayer games but 
> its not for traditional php my sql websites like a ecommerce website.
>
> i have to develop a product reviewing website i have option to choose 
> between php/mysql or nodejs mysql .due to new uprising technology i am more 
> inclined towards nodejs 
> as it might add some thing  new good to my skills .
> is there any risk involved as i dont want to regret in the end .
>
> please guys advise should i invest in nodejs for such website ?
>
> thanks
>
>
>
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread phidelta
d) I use it a lot and find the strangeness of binary strings so dumb that 
I'd rather have it changed sooner or later even if that means having to 
rewrite/modify a bit of code.

On Tuesday, October 9, 2012 1:24:36 AM UTC+2, Isaac Schlueter wrote:
>
> Currently, the crypto module defaults to using 'binary' encoded 
> strings everywhere as the default input and output encoding. 
>
> This is problematic for a few reasons: 
>
> 1. It's slower than necessary. 
> 2. It doesn't match the rest of Node. 
>
> The reason for this is that crypto predates Buffers, and no one ever 
> bothered to go through and change it.  (The same reason it's got some 
> odd hodgepodge of update/digest methods vs the Stream interface you 
> see everywhere else in node.) 
>
> The reason it persists in 0.8 (and perhaps in 0.10) is that we 
> (perhaps overly optimistically) labelled that API "stable", and don't 
> want to break anyone's programs.  It's going to change eventually to 
> match the rest of node.  The only question is whether the change will 
> come in 0.10 or 0.12.  A stream interface to all the crypto classes is 
> coming in 0.10; using 'binary' strings by default is thus even more 
> obviously a departure from the rest of node. 
>
> Note that, if you only use crypto for hashes, and set the 'hex' 
> encoding, then it won't affect you.  If you only ever pass the output 
> of one crypto function to the input of another (sign/verify, for 
> example) then it also won't affect you; you'll just pass buffers 
> around instead of binary strings. 
>
> Please select one, and reply with your choice and perhaps any other 
> feedback you have on this issue.  Thanks. 
>
> a) Go for it.  This won't affect me, and if by chance it does, I don't 
> mind putting 'binary' args here and there. 
> b) Please wait.  Mark the API as unstable in 0.10, but don't change it 
> until 0.12. 
> c) I have no opinion, because I don't use the crypto API directly. 
>
>
> (Disclaimer: Node is not a democracy.  The "winning" vote might still 
> be out-voted by reasonable considerations of the core dev team.  This 
> is informative only ;) 
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] node.js user group in Barcelona

2012-10-09 Thread Patrick Heneise
Anything more creative is welcome.

On Friday, October 5, 2012 2:08:07 PM UTC+2, Sara Chipps wrote:
>
> What a great name. 
>
> Please excuse my iThumbs
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] node.js user group in Barcelona

2012-10-09 Thread Patrick Heneise
Thanks for the advice at LXJS, Daniel! Looking forward to the next js conf 
and NodeUp.

On Friday, October 5, 2012 7:24:47 PM UTC+2, dshaw wrote:
>
> Patrick, 
>
> It was great meeting you at LXJS. Love what you're doing in Barcelona. 
>
> Folks, 
>
> If you're in the Barcelona area you should go check out Patrick. Also 
> if you haven't been to Barcelona, it's worth going out of your way to 
> visit. 
>
> Daniel Shaw 
> @dshaw 
>
>
> On Fri, Oct 5, 2012 at 3:53 AM, Patrick Heneise 
> > wrote: 
> > Hey folks, 
> > 
> > if you're in or around Barcelona and not aware of nodejsbcn, come and 
> join 
> > us for the next event 'conf.min.js' on Oct 25, couple of talks, free 
> beer, 
> > hacking and socialising. 
> > 
> > http://www.meetup.com/nodejs-bcn/events/85547702/ 
> > 
> > Cheers, 
> > 
> > Patrick 
> > 
> > -- 
> > 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 nod...@googlegroups.com 
> > To unsubscribe from this group, send email to 
> > nodejs+un...@googlegroups.com  
> > For more options, visit this group at 
> > http://groups.google.com/group/nodejs?hl=en?hl=en 
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread Micheil Smith
a) Go for it.

Although, probably wise to make sure that it's publicised a fair bit; Anyone 
who 
hits issues can hang around on an older version of Node, until they can upgrade.


On 09/10/2012, at 12:24 AM, Isaac Schlueter  wrote:

> Currently, the crypto module defaults to using 'binary' encoded
> strings everywhere as the default input and output encoding.
> 
> This is problematic for a few reasons:
> 
> 1. It's slower than necessary.
> 2. It doesn't match the rest of Node.
> 
> The reason for this is that crypto predates Buffers, and no one ever
> bothered to go through and change it.  (The same reason it's got some
> odd hodgepodge of update/digest methods vs the Stream interface you
> see everywhere else in node.)
> 
> The reason it persists in 0.8 (and perhaps in 0.10) is that we
> (perhaps overly optimistically) labelled that API "stable", and don't
> want to break anyone's programs.  It's going to change eventually to
> match the rest of node.  The only question is whether the change will
> come in 0.10 or 0.12.  A stream interface to all the crypto classes is
> coming in 0.10; using 'binary' strings by default is thus even more
> obviously a departure from the rest of node.
> 
> Note that, if you only use crypto for hashes, and set the 'hex'
> encoding, then it won't affect you.  If you only ever pass the output
> of one crypto function to the input of another (sign/verify, for
> example) then it also won't affect you; you'll just pass buffers
> around instead of binary strings.
> 
> Please select one, and reply with your choice and perhaps any other
> feedback you have on this issue.  Thanks.
> 
> a) Go for it.  This won't affect me, and if by chance it does, I don't
> mind putting 'binary' args here and there.
> b) Please wait.  Mark the API as unstable in 0.10, but don't change it
> until 0.12.
> c) I have no opinion, because I don't use the crypto API directly.
> 
> 
> (Disclaimer: Node is not a democracy.  The "winning" vote might still
> be out-voted by reasonable considerations of the core dev team.  This
> is informative only ;)
> 
> -- 
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


[nodejs] Re: Any resources to help one brush up...?

2012-10-09 Thread alessioalex
Hey,

You should try to search for "JavaScript interview questions" on 
stackoverflow.com
I'm sure that by responding to those questions you'll get better at 
JavaScript, which is what Node.js is really about.

Another thing you should definitely check is http://nodetuts.com/ even 
though it's a bit outdated (you'll be able to adapt the code though). 

Last but not least, I would say that the two ebooks from 
http://www.nodebeginner.org/ are definitely worth it.

If you want more, checkout the following links:

http://stackoverflow.com/tags/node.js/info
https://github.com/joyent/node/wiki/_pages

On Monday, October 8, 2012 1:03:17 PM UTC+3, Declan de Wet wrote:
>
> Hi,
>
> I am relatively new to Node.js. I heard and researched about it a long 
> time ago. I'm more familiar with Ruby and PHP, but Node.js has really 
> caught my attention lately. I am familiar with Javascript for basic 
> interactivity and the popular libraries to go with it. I've done some 
> tutorials and so on and I've been competent enough to find many guides, 
> books, blogs, screencasts and so on for it (this really is a vibing 
> community, I must say) - but I'm looking for something a little 
> out-of-the-scope of basic walkthroughs and documentation...
>
> I've done some searching but I can't seem to find what I want, and what I 
> want is an online exam type app I can use to brush up my knowledge of 
> Node.js and drill it into my head by striving to get correct answers after 
> reviewing study material. Nothing too complicated like a full on training 
> course, though. I know of the Codeschool course and various things like 
> this that just teach regular old JavaScript, so I came here hoping that 
> someone here would be more likely to know of anything like this (if it 
> exists) for Node.js.
>
> So, does such a thing exist yet? If so, where can I find it, and if not, 
> would you experienced developers care to make one for us determined 
> newbies? :D
>
> Thanks in advance, by the way!
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread Diogo Resende
I go for a) but also agree that b) would be better for people outside this 
list. Could we have some kind of mixing, having the old and new interface 
together, a warning on old interface and then on the next version it could be 
removed (or throw..).

-- 
Diogo Resende


On Tuesday, October 9, 2012 at 8:30 , Paddy Byers wrote:

> Hi,
> 
> > a) Go for it.  This won't affect me, and if by chance it does, I don't
> > mind putting 'binary' args here and there.
> 
> I definitely support (a). Might I make a plea also for a proper 
> X509Certificate class to be supported in addition to PEM and other encodings 
> of certificates in the factory methods for Credentials, Signer and Verifier? 
> 
> We have a glimpse of a certificate class in the tls module with 
> cleartextStream.getPeerCertificate(); but this is the only place in the API 
> where fields of a certificate are exposed. There are also use-cases in 
> signing and verifying where you want to know about certificate details, and 
> details also about non-trivial certificate paths that were constructed in the 
> course of verifying a signature. An example would be knowing whether or not 
> your validated path qualifies as a valid EV path, or verifying the signature 
> on in an XML signature document. 
> 
> I know the argument is always that this functionality can go in user land in 
> an independent module, instead of in core; and there are modules that do some 
> of this such as dcrypt [1]. The problem is that when you do that you have to 
> re-implement all of the core functionality as well on top of your external 
> certificate library, just because you're unable to pass a certificate object 
> into the APIs in the core. 
> 
> So my suggestion would be to include X509Certificate and X509CRL classes that 
> wrap native OpenSSL X509 structures, and for these to be supported as well as 
> strings in the relevant APIs. Once that is in place, I think the more 
> esoteric use cases can be supported in userland without lots of duplication 
> of code. 
> 
> I'm happy to contribute to the work, and some time ago started implementing 
> support for this [2] based on dcrypt. You can see from the amount of code in 
> there that's simply cut+paste from core that it really would be a fairly 
> modest delta; much of the functionality is already there, but disorganised. 
> 
> Thanks - Paddy
> 
> [1]: https://github.com/dekz/dcrypt
> [2]: https://github.com/paddybyers/dcrypt
> 
> 
> -- 
> 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@googlegroups.com 
> (mailto:nodejs@googlegroups.com)
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com 
> (mailto:nodejs+unsubscr...@googlegroups.com)
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Re: "Evil OS X"... the perfect client to a node server!

2012-10-09 Thread Joshua Gross
Maybe I'll get one, too :) this doesn't seem to be going anywhere though. 

-- Joshua Gross
Christian / SpanDeX / BA Candidate of Computer Science, UW-Madison 2013
414-377-1041 / http://www.joshisgross.com

On Oct 9, 2012, at 12:04 AM, Rick Waldron  wrote:

> Funny thing, I said much the same as you have here and got a gnarly 
> chastising. 
> 
> -Rick
> 
> On Monday, October 8, 2012 at 11:37 PM, Joshua Gross wrote:
> 
>> Dennis, this is a developer forum. If you want to peddle your software and 
>> aren't willing to show something besides videos, you're in the wrong place. 
>> 
>> Also I'm not going to watch a 15 minute video. You're not selling yourself 
>> very well, I kindly advise you to move on so this stops clogging my inbox :)
>> 
>> -- Joshua Gross
>> Christian / SpanDeX / BA Candidate of Computer Science, UW-Madison 2013
>> 414-377-1041 / http://www.joshisgross.com
>> 
>> On Oct 8, 2012, at 7:12 PM, Dennis Kane  wrote:
>> 
>>> Why do you want the code so bad?  It's not like there's any kind of fancy 
>>> algorithms at work.  There are many many open source windowing packages out 
>>> there.  It's not exactly rocket science, this.  It's all been done many 
>>> times before.  The only difference is that this one is *my* baby!  Besides, 
>>> you are welcome to all the code of my desktop prototype on my site at 
>>> luvluvluv.info... it's just sitting there on the server for the taking.
>>> 
>>> I am mainly using this thing as blackmail to get people to be interested in 
>>> being my friend.  I want to do some real world community building, and 
>>> something like this will go a long way to get a cooperative business up and 
>>> running.
>>> 
>>> Furthermore... you do realize that asking another programmer to "just show 
>>> me your code" is exactly the same as asking a girl to "just show me your 
>>> breasts", right?  I mean, I have nothing against it in principle, but, my 
>>> god... I hardly know ye!!!
>>> 
>>> My lastest work includes that rubber-band selection feature as well as 
>>> dropping icons directly onto folder icons (with that "open folder" hover 
>>> trick).  I have also included some basic image file support.
>>> 
>>> Latest video here: http://www.youtube.com/watch?v=jL5r0b7WWvU
>>> 
>>> On Friday, October 5, 2012 5:56:26 PM UTC-4, sotonin wrote:
 
 Code post it else Zzzz
 
 On Fri, Oct 5, 2012 at 4:37 PM, Dennis Kane  wrote:
> See the newest features here--> http://www.youtube.com/watch?v=pF_2DwueGLM
> 
> The current version of the program now includes drag and drop 
> functionality of text files from the native desktop straight into the 
> browser desktop or (any of the subfolders). The difference between my 
> drag and drop and all the HTML5 demos that you see on the web is that the 
> dropped files immediately become icons that are integrated into the 
> program.
> 
> I will soon start working on getting multimedia icons/files working, so 
> you'll be able to drop those directly in too.  Then I will probably do a 
> very basic kind of image editing demo that will allow you to change 
> individual pixels or some such nonsense.  But I don't want to get bogged 
> down in the details of any particular application, because I always want 
> to stay focused on the big picture of creating a totally powerful and 
> intuitive way to organize our online lives.
> 
> Anyway, I know I am quite a controversial figure here, but there should 
> be no controversy that this thing is just about ready for prime time.  I 
> really do need to start getting interested people on board who would like 
> to help me push the web forward.  The basic mission statement for the 
> venture will basically be that the "old web" (HTML4/version 1.0) is dead 
> and gone.  If anyone calls in search of help on their Flintstone era 
>  documents with all of their  and  tags laying about, 
> we'll just point them in an entirely new direction.  If they still insist 
> on doing things the old way, we'll just hang up on them…  This thing is 
> all about the future!
> 
> We can easily develop libraries of high-level interface widgets that 
> people just need to attach event listeners to.  There will be no angle 
> brackets in sight! 
> !
> 
> Come one, come all, for the thrill of your lives :)
> 
> 
> On Tuesday, September 25, 2012 7:36:37 PM UTC-4, Dennis Kane wrote:
>> I was thinking of just responding  to this old thread, in which I talk 
>> about the browser based Desktop that I've been working on, but the new 
>> thing I've been doing for the past week is so superior that I thought it 
>> deserved a completely new thead.  By the way, I know this forum is all 
>> about server side Javascript, but there is not really any serious place 
>> one can go on the web that talks about the client side.  Besides, with 
>> socket.io & we

[nodejs] Re: Node JS hosting service in Europe

2012-10-09 Thread greelgorke
microsoft does node.js PaaS hosting in europe too, joyent also

Am Montag, 8. Oktober 2012 19:39:59 UTC+2 schrieb remi_grumeau:
>
> Hi! 
>
> I'm new to Node, yet doing a lot of JS client-side (no JQuery, real 
> JS) and i'm looking to develop an app using Node. Main idea is to get 
> interactions from a mobile phone to control something on a distant 
> screen. 
> To do so, i've done a few tests using PubNub service & it's actually 
> pretty easy to use, prices are low so i'm pretty fine with it. The 
> thing is PubNub is in California & my app will be used mostly by 
> western european people. 
> So i'm looking for the same kind of ready-to-use service like PubNub 
> is, but hosted in Europe so it may be even quicker (i assume). 
>
> Any idea? 
>
> Thx a lot! 
> Remi 
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Any resources to help one brush up...?

2012-10-09 Thread greelgorke
you better try some coding kata's :) it's better to get in touch with code 
instead of answering multiple choice questions :)

how about http://codekata.pragprog.com/ 
or http://codingdojo.org/cgi-bin/wiki.pl?KataCatalogue ?
 

Am Montag, 8. Oktober 2012 22:16:12 UTC+2 schrieb Declan de Wet:
>
> Quite surprised you responded to this, your efforts have been a great help 
> in my learning haha! It would really nice to have structured quizzes one 
> can complete though. Since my first post here I found an IBM one, but it's 
> more of a "Correct this code then answer this true/false question and then 
> you're finished with the quiz" type thing. Also, I wouldn't really trust 
> IBM quizzes on Node.js after I read a response article to an IBM blog post 
> on the subject... I'm sure you'll know of the one I'm speaking of. So, 
> here's a goal for you devs with free time... structure your knowledge in a 
> quiz! :) It'll be of so much help.
>
> On Monday, October 8, 2012 5:43:18 PM UTC+2, Tim Caswell wrote:
>>
>> The official nodejs API docs are great.  My experience with most 
>> people learning nodejs is that they didn't know javascript as well as 
>> they had thought.  Node makes heavy use of callbacks and closures. 
>> This means that more often the weird aspects of js scoping creep out. 
>>
>> There are many nodejs specific resources out there.  There have been 
>> some threads about this recently in this list you can search through. 
>> I haven't heard of anything like the w3schools format (not speaking of 
>> the content quality, just format). 
>>
>> On Mon, Oct 8, 2012 at 5:03 AM, Declan de Wet  
>> wrote: 
>> > Hi, 
>> > 
>> > I am relatively new to Node.js. I heard and researched about it a long 
>> time 
>> > ago. I'm more familiar with Ruby and PHP, but Node.js has really caught 
>> my 
>> > attention lately. I am familiar with Javascript for basic interactivity 
>> and 
>> > the popular libraries to go with it. I've done some tutorials and so on 
>> and 
>> > I've been competent enough to find many guides, books, blogs, 
>> screencasts 
>> > and so on for it (this really is a vibing community, I must say) - but 
>> I'm 
>> > looking for something a little out-of-the-scope of basic walkthroughs 
>> and 
>> > documentation... 
>> > 
>> > I've done some searching but I can't seem to find what I want, and what 
>> I 
>> > want is an online exam type app I can use to brush up my knowledge of 
>> > Node.js and drill it into my head by striving to get correct answers 
>> after 
>> > reviewing study material. Nothing too complicated like a full on 
>> training 
>> > course, though. I know of the Codeschool course and various things like 
>> this 
>> > that just teach regular old JavaScript, so I came here hoping that 
>> someone 
>> > here would be more likely to know of anything like this (if it exists) 
>> for 
>> > Node.js. 
>> > 
>> > So, does such a thing exist yet? If so, where can I find it, and if 
>> not, 
>> > would you experienced developers care to make one for us determined 
>> newbies? 
>> > :D 
>> > 
>> > Thanks in advance, by the way! 
>> > 
>> > -- 
>> > 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 nod...@googlegroups.com 
>> > To unsubscribe from this group, send email to 
>> > nodejs+un...@googlegroups.com 
>> > For more options, visit this group at 
>> > http://groups.google.com/group/nodejs?hl=en?hl=en 
>>
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Poll for v0.10 feature: Crypto default to 'binary' strings vs defaulting to buffers

2012-10-09 Thread Paddy Byers
Hi,

a) Go for it.  This won't affect me, and if by chance it does, I don't
> mind putting 'binary' args here and there.
>

I definitely support (a). Might I make a plea also for a proper
X509Certificate class to be supported in addition to PEM and other
encodings of certificates in the factory methods for Credentials, Signer
and Verifier?

We have a glimpse of a certificate class in the tls module
with cleartextStream.getPeerCertificate(); but this is the only place in
the API where fields of a certificate are exposed. There are also use-cases
in signing and verifying where you want to know about certificate details,
and details also about non-trivial certificate paths that were constructed
in the course of verifying a signature. An example would be knowing whether
or not your validated path qualifies as a valid EV path, or verifying the
signature on in an XML signature document.

I know the argument is always that this functionality can go in user land
in an independent module, instead of in core; and there are modules that do
some of this such as dcrypt [1]. The problem is that when you do that you
have to re-implement all of the core functionality as well on top of your
external certificate library, just because you're unable to pass a
certificate object into the APIs in the core.

So my suggestion would be to include X509Certificate and X509CRL classes
that wrap native OpenSSL X509 structures, and for these to be supported as
well as strings in the relevant APIs. Once that is in place, I think the
more esoteric use cases can be supported in userland without lots of
duplication of code.

I'm happy to contribute to the work, and some time ago started implementing
support for this [2] based on dcrypt. You can see from the amount of code
in there that's simply cut+paste from core that it really would be a fairly
modest delta; much of the functionality is already there, but disorganised.

Thanks - Paddy

[1]: https://github.com/dekz/dcrypt
[2]: https://github.com/paddybyers/dcrypt

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en


Re: [nodejs] Dynamic content scrape with Node.js

2012-10-09 Thread greelgorke
why so complicated? just find out the url of the ajax request and do it 
yourself with whatever lib you want...

Am Montag, 8. Oktober 2012 18:53:27 UTC+2 schrieb Chad Engler:
>
> This is probably the same person who asked this question on StackOverflow:
>
>  
>
>
> http://stackoverflow.com/questions/12630891/scrape-data-generated-by-javascript-on-server-side-from-webpages-aspx
>
>  
>
> Where I have already answered his question, he just didn’t like it:
>
>  
>
>
> http://stackoverflow.com/questions/12630891/scrape-data-generated-by-javascript-on-server-side-from-webpages-aspx#comment17032399_12630891
>
>  
>
> -Chad
>
>  
>
> *From:* nod...@googlegroups.com  [mailto:
> nod...@googlegroups.com ] *On Behalf Of *Dave Kuhn
> *Sent:* Saturday, October 06, 2012 11:46 PM
> *To:* nod...@googlegroups.com 
> *Subject:* Re: [nodejs] Dynamic content scrape with Node.js
>
>  
>
> Good suggestions so far, though i highly recommend you check out 
> phantomjs.org. Phantom is a headless version of WebKit which is the 
> rendering engine behind Chrome & Safari. It's the most comprehensive 
> solution to handling AJAX content when scraping in my book since it's 
> technically the same as interacting with a page loaded by your browser. 
>
>  
>
> -- 
> Dave Kuhn
>
> Sent with Sparrow 
>
>  
>
> On Saturday, October 6, 2012 at 3:04 PM, rektide wrote:
>
> Only just picked it up last week, but it worked well enough-- node.io. It 
> exposes a
>
> jQuery-esque interface for querying scraped pages. Extremely high level, 
> "just works"
>
> scraping module, in my book!
>
>  
>
> It also has a fairly sizable task-processing system built in, which I have 
> not used.
>
>  
>
> Good luck:
>
> https://github.com/chriso/node.io
>
>  
>
> -rektide
>
>  
>
> On Sat, Oct 06, 2012 at 01:34:03PM -0700, Narek Musakhanyan wrote:
>
> Hey guys . I tried to scrape a data from a website using PHP cURL lib but
>
> I failed  since cURl allows you to scrape only static content . But the
>
> content I want to scrape changes via javascript(AJAX)  since cURL cant
>
> hanfle that I couldnt handle scraping via cURL . So I heard the this type
>
> of things can be done via node . Basically I need to make my node app
>
> handle this js wait for some time until AJAX is done and the pass it to
>
> php .So is it possible to do via node.js ? I dont know node and I have to
>
> start from scratch so I am here you to point out the right node framework
>
> to use to get the result I explained . 
>
>  
>
> -- 
>
> 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 nod...@googlegroups.com 
>
> To unsubscribe from this group, send email to
>
> nodejs+un...@googlegroups.com 
>
> For more options, visit this group at
>
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
>  
>
> -- 
> 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 nod...@googlegroups.com 
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com 
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en