[nodejs] Re: [ANN] New release of node-webkit - run node.js apps on desktop

2012-08-17 Thread Chad Retz
This is a fantastic product. I would absolutely love to have the standalone exe creator without the webkit add-on. It would make it worlds easier for node apps to be distributed (especially in commercial settings even though I understand the risks of not requiring an up-to-date, separate node VM

[nodejs] Re: Microsoft Driver for Node.JS for SQL Server

2012-06-11 Thread Chad Retz
Fantastic. I guess I can retire https://github.com/cretz/node-tds now as I haven't had much time to work on it anyways. On Friday, June 8, 2012 6:33:45 PM UTC-5, Jonathan Guerin wrote: > > Hi guys, > > I know you'd heard about this a while back when we were first > exploring it, but it's my ple

[nodejs] Re: Concurrent transactions

2012-05-08 Thread Chad Retz
Not sure whether you're talking about my node-tds or tedious, but I don't believe either (mine for sure) allow concurrent statements on a single connection. This is because neither support MARS (at least not node-tds, and I probably never will ). You will have

[nodejs] Re: Unsigned integers and Int64 in node.js

2012-04-18 Thread Chad Retz
I had the same problem with a binary protocol. I just gave the data back as a big numeric string and suggested he use node-bigint[1] or bigdecimal.js[2] to do more with it. Both of those support arithmetic operations. [1] - https://github.com/substack/node-bigint [2] - https://github.com/irisco

Re: [nodejs] [ANN] Calango.js: Build native apps in Node + HTML5

2012-04-10 Thread Chad Retz
I would say CEF3 would be the way to go (http://code.google.com/p/chromiumembedded/). I was thinking about experimenting with it. It already has V8 support natively and many of the tasks for creating windows has already been developed. In fact, Brandon, it looks like you've already started here

[nodejs] Re: Permission problem with a NPM package created on windows and installed on mac

2012-04-09 Thread Chad Retz
Same problem here: https://github.com/cretz/node-tds/issues/13. I'm just gonna start using my Ubuntu VM to publish. Tbh, I have yet to test on the latest NPM/node.js so I can't verify it persists. On Saturday, April 7, 2012 6:04:50 AM UTC-5, Oliver Leics wrote: > > Hallo, > > I need help. > > Pl

[nodejs] Re: best way to read accross stream chunks?

2012-04-02 Thread Chad Retz
Little late here, but I use a buffering mechanism for reading like so: https://github.com/cretz/node-tds/blob/master/src/buffer-stream.coffee. I found myself getting stuck several times where only half of what I expected was available, so I implemented a "transaction" type of thing that rolls b

[nodejs] Re: Recommendation for test framework for objects which util.inherits EventEmitter.

2012-03-15 Thread Chad Retz
What I do in Mocha is simply take the done callback and call it with success once I hit the event and either have a timeout otherwise or call the done callback with an error on an "end" if I know the proper event wasn't emitted. On Thursday, March 15, 2012 12:26:43 PM UTC-5, Chris Dew wrote: >

[nodejs] Re: Writing a module to connect to a RESTful database.

2012-03-12 Thread Chad Retz
I would say do both. Allow a "handler" or submit events if there isn't one. Make a method on the main connection for modifying with an ID passed in (needed for when they didn't create it w/ your client) and make one in the returned object (though addNode would probably take a callback instead of

[nodejs] Re: Yet another SQL Server client

2012-03-02 Thread Chad Retz
My lib is not in production. I was more of an effort to explore TDS and I do plan on maintaining it. My day job is keeping me from doing too much right now though. I believe Mike's repository is more active and may be a better solution. On Thursday, March 1, 2012 6:02:56 PM UTC-6, Neville Burne

[nodejs] Re: Test driven development for graphics

2012-02-24 Thread Chad Retz
You can save an expected result image (as something lossless like PNG) and use canvas to pixel by pixel assert your rendering with the expected result. It may not be quick, but it'll work. On Friday, February 24, 2012 11:50:06 AM UTC-6, ryandesign wrote: > > I have not gotten into test-driven de

Re: [nodejs] Re: patio - orm

2012-02-01 Thread Chad Retz
It likely wouldn't be defined for a SQL server caller. Even the mysql adapter defaults to a value [1]. I think it's wrong to see an ORM/abstraction like this as something that makes your app DB-independent as much as it provides a common library that people can learn and read about. 1: https:

[nodejs] Re: patio - orm

2012-02-01 Thread Chad Retz
This looks like a very good abstraction and I definitely like the migrations support. I could see this being more powerful than liquibase for DBA's with the DDL support built in. One thing I am curious about is whether there is documentation on what to implement to create your own adapter (e.g