Correct me if I'm wrong but I think there is an issue with the way Buffer's
endianness works (or at least the description the methods have).
Lets say I create a new buffer:
var myBuff = new Buffer(4);
And now I wish to write an integer to my buffer in little-endian which has
the least
Hello!
I think you are a bit confused about endians and buffer representation
in console. When you type `myBuff` it prints bytes in the same order
as they'll be sent on network or written to file.
i.e. `Buffer 36 02 00 00` means that `buf[0] === 0x36` and `buf[1]
=== 0x02`, which is exactly how
Hi,
I need to traverse an array, and compare value of the array with the values
in mongodb. However, I want to match a pattern starting with array value
and not the exact value. For example: arr[0] is John, I want to find all
values in mongodb users table whose name start with John. For this,
Thanks, I should give it a try pretty soon. =)
On Tuesday, 25 February 2014 18:49:15 UTC+1, Jimmy Guerrero wrote:
Hello,
Whether you are new to debugging Node apps or have used Node Inspector in
the past, it's time to check out what's new in the latest v0.7 release of
Node Inspector!
Use $elemMatch
http://docs.mongodb.org/manual/reference/operator/query/elemMatch/
On Thursday, February 27, 2014, Shruti Patankar shrutipatank...@gmail.com
wrote:
Hi,
I need to traverse an array, and compare value of the array with the
values in mongodb. However, I want to match a pattern
Does GpuVector inherits from GpuArray ?
Which destructor doesn't get called ?
On Wednesday, 26 February 2014 19:09:05 UTC+1, Jim Perry wrote:
I am writing a GPU database and looking at using javascript as the
language to query data and node.js looks ideal for sending and receiving
binary
This question is probably better asked in the mongodb user group.
Coming to the question you could use this option for a workaround
var arr = [/^John/,/^Rahel/, /^George/]
collection.find({name::{$in:arr}})
On Thu, Feb 27, 2014 at 3:29 PM, Shruti Patankar
shrutipatank...@gmail.comwrote:
Hi,
On Wed, Feb 26, 2014 at 2:45 PM, Angel Java Lopez ajlopez2...@gmail.comwrote:
Ummm... You can write a driver in JS code that use require('net'). And in
that module, the socket I/O is, at the end, managed by LibUv. The same for
require('fs') for file I/O.
Am I right?
And yes, the driver
On Wed, Feb 26, 2014 at 2:50 PM, Angel Java Lopez ajlopez2...@gmail.comwrote:
I just found:
https://github.com/felixge/node-mysql
It manage a pool:
https://github.com/felixge/node-mysql/blob/master/lib/Pool.js
A pool manage a list of available Connection
On Wed, Feb 26, 2014 at 4:15 PM, Reza Razavipour
reza.razavip...@gmail.comwrote:
Matt,
just so I understand, you are saying if a node package such as mongodb
provides connection pooling, they have to be implementing the package using
a pooling system that is implemented in C?
No I'm saying
Regarding:
That's the magic! ;-) The driver author uses LibUv indirectly.
And that emphatically does NOT use threads in this case.
Yes, you are right, so I said uses LibUv indirectly, without adding with
threads, now.
Only for complete the topic, I also mentioned require('fs'). I'm not sure
I am getting the error listed in the title when using the code posted
below. This is based off of: https://www.npmjs.org/package/node-rest-client
fyi: the Bearer, path and client url have been masked as they are client
sensitive items.
middleware:
angular.module('ruleService', [])
On Thu, Feb 27, 2014 at 10:31 AM, Angel Java Lopez ajlopez2...@gmail.comwrote:
Only for complete the topic, I also mentioned require('fs'). I'm not sure
the scope of the use of threads in filesystem, but AFAIK (in Windows?) lib
uv could use a pool of thread for some operations that are not
On Feb 27, 2014, at 10:43 AM, Josh Longbrake j...@studiobrainchild.com wrote:
I am getting the error listed in the title when using the code posted below.
This is based off of: https://www.npmjs.org/package/node-rest-client
Can you send us the full stack trace?
--ravi
fyi: the
Sure here it is:
TypeError: Cannot read property 'tunnel' of undefined
at new exports.Client
(/Users/jlongbrake/Desktop/sitename/node_modules/node-rest-client/lib/node-rest-client.js:14:42)
at /Users/jlongbrake/Desktop/sitename/controller/mdmController.js:10:22
at callbacks
Is it 'noders' as in 'coders' or 'nodesters' as in 'drinking http before it
was cool'? What are we?
I'm trying to come up with a canonical list of how we generally refer to
the communities
Ex:
Ruby = Rubyists
Python = Pythonistas
Cocoa = Cocoa Heads
Go = Go Nuts
Node = Nodesters (?)
PHP = PHPers
I say 'nodester' :)
https://twitter.com/williamwicks/status/437660429980930048
On Thu, Feb 27, 2014 at 10:53 AM, AJ ONeal coola...@gmail.com wrote:
Is it 'noders' as in 'coders' or 'nodesters' as in 'drinking http before
it was cool'? What are we?
I'm trying to come up with a canonical
P.S. I've been corrected. Although the mailing list is 'go nuts', the
correct term for golangians is 'Gophers'. Makes sense.
https://gist.github.com/coolaj86/9256619
AJ ONeal
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
On Wed, Feb 26, 2014 at 4:40 PM, Alex Kocharin a...@kocharin.ru wrote:
This sounds like a very good idea... I wonder, is there any downside to it?
Performance maybe?
Its good idea if its what you want to do.
It doesn't work with directories on systems that don't allow hard
links between
at /Users/jlongbrake/Desktop/sitename/controller/mdmController.js:10:22
would be this line from the code above: var client = new Client();
On Thursday, February 27, 2014 12:19:46 PM UTC-6, Josh Longbrake wrote:
Sure here it is:
TypeError: Cannot read property 'tunnel' of undefined
at
I'm using Node Express and logging using Connect
Loggerhttp://www.senchalabs.org/connect/logger.html which
I understand is now called Morgan https://github.com/expressjs/morgan.
Most tokens that I want to see, correctly log a value, but a number of them
are coming up as hyphens. For instance
Here's my log setup, it should help:
express.logger.token('session', function (req, res) {
if (!req.session) return '~'; // should never happen
if (req.session.user) {
return user_id: + req.session.user.id;
}
else {
return '-';
}
});
On Feb 27, 2014, at 1:19 PM, Josh Longbrake j...@studiobrainchild.com wrote:
Sure here it is:
TypeError: Cannot read property 'tunnel' of undefined
at new exports.Client
(/Users/jlongbrake/Desktop/sitename/node_modules/node-rest-client/lib/node-rest-client.js:14:42)
at
Hmm. Its the installed package from homebrew but it may be an older
version of homebrew / NPM. Good catch, ill update and try again. From
your view does anything else look inherently wrong?
Thanks for the fresh eyes!
On Feb 27, 2014 3:34 PM, // ravi ravi-li...@g8o.net wrote:
On Feb 27, 2014,
On Feb 27, 2014, at 4:57 PM, Josh Longbrake j...@studiobrainchild.com wrote:
Hmm. Its the installed package from homebrew but it may be an older version
of homebrew / NPM.
Josh, it's not Homebrew or NPM themselves, but the version of node-rest-client
that's in the NPM repository (assuming
Thanks Matt,
That helped and I can get user info now. I also did some research
regarding the pre-configured tokens and it looks like that data is not
always available, so I guess Logger is installed OK.
Thor
On Thursday, February 27, 2014 12:46:52 PM UTC-8, digital_thor wrote:
I'm using
awesome - pls send me your GTalk/Mail id to al @ strongloop.com. look
forward to chatting with you, thanks Fred!
On Monday, February 24, 2014 11:05:23 PM UTC-8, fred wang wrote:
A,
It is real-time transaction system like banking money transfer from
account A to B. Because the sizing
Do you know of a tool that takes a js file as entry point and bundles all
require()d modules into one big js file? On browser side I can simply run
all js files through uglify and get one big thing to include. Has someone
already done this for server side?
--
--
Job Board:
https://github.com/crcn/sardines (as a part of https://github.com/crcn/nexe compiler) Also, browserify, but I'm not entirely sure how it performs on the server side. 28.02.2014, 11:42, "Axel Kittenberger" axk...@gmail.com:Do you know of a tool that takes a js file as entry point and bundles all
29 matches
Mail list logo