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,
The same code can also be used for a phonegap app with just a server to
serve up static content for web clients
On Fri, Feb 14, 2014 at 8:03 PM, Mark Volkmann r.mark.volkm...@gmail.comwrote:
When I combine AngularJS with Node I restrict the Node part to handling
REST services that return
Nice write-up here...
http://www.hacksparrow.com/node-js-exports-vs-module-exports.html
On Tue, Oct 15, 2013 at 3:52 PM, yougen zhuang blue...@gmail.com wrote:
Before assign value to exports, module.exports === exports, but after
assign value, they're not equal. In my view, they're point to
Are you using a service like forever? Had an API server running using
forever. Running without forever showed a CPU usage of about 5%. Running
with forever, the CPU usage would go to 100% on the first few calls. Using
another tool solved the issue.
On Wed, Nov 14, 2012 at 9:19 PM, Chad Engler
Crabtree atcrabt...@gmail.comwrote:
On the note of forever running at 100%, that likes to happen when your
process fails to start and forever attempts to restart it as fast as it can
die.
On Wed, Nov 14, 2012 at 8:01 AM, Anand George mranandgeo...@gmail.comwrote:
Are you using a service like
Get an error
'jsmc' is not in the npm registry
On Wed, Oct 31, 2012 at 6:26 PM, Alan Hoffmeister alanhoffmeis...@gmail.com
wrote:
Really nice and itersting work.
Good job!
--
Att,
Alan Hoffmeister
2012/10/31 Conrad Pankoff deo...@fknsrs.biz:
Hey noders!
Over the weekend/first
nohup also seems a good option. Used with supervisor it also tracks code
changes.
nohup supervisor app.js
All logs are sent to nohup.out in the current folder by default.
On Tue, Oct 16, 2012 at 9:03 PM, Julian Lannigan
julian.lanni...@homes.comwrote:
+1 for screen
some links:
Use
socket.disconnect() to temporarily disconnect and then
socket.reconnect() to reconnect
On Sun, Jul 29, 2012 at 9:26 AM, Ket kettin...@gmail.com wrote:
Hi,
In socket.io, I've used *socket.close();* to close connection with the
server, but it shut down connection for good even I
+1 for Cheerio.
On Tue, Jul 3, 2012 at 9:42 AM, rhasson rhas...@gmail.com wrote:
Have you looked at Cheerio (https://github.com/MatthewMueller/cheerio) ?
I've been using it over JSDom and it's faster and lightweight. If you're
doing heaving scraping I would recommend checking it out.
On
This should help... http://howtonode.org/what-is-this
On Wed, Jun 6, 2012 at 5:23 PM, Jérémy Lal holi...@gmail.com wrote:
Hi,
require('fs').stat('file.txt', function(err, result) {
console.log(this); // what is this ?
});
Jérémy.
--
Job Board: http://jobs.nodejs.org/
Posting
back
from a library call ?
Jérémy.
On 06/06/2012 14:06, Anand George wrote:
This should help... http://howtonode.org/what-is-this
On Wed, Jun 6, 2012 at 5:23 PM, Jérémy Lal holi...@gmail.com mailto:
holi...@gmail.com wrote:
Hi,
require('fs').stat('file.txt', function
Hi!
Have been reading up on process.nextTick and found this one rather odd.
It's forcing the calling function to run again.
function addasync(no1, no2, result)
{
res = no1 + no2;
this.result = result(false, res);
process.nextTick(function() {
this.result = result(true, res);
});
};
addasync(1,
Even without the 'this' inside process.nextTick it returns the same result.
On Wed, Jun 6, 2012 at 7:05 PM, Diogo Resende drese...@thinkdigital.ptwrote:
The _this_ inside process.nextTick seems quite odd to me..
--
Diogo Resende
On Wednesday, June 6, 2012 at 14:31 , Anand George wrote
);
});
};
addAsync(1, 2, function(err, res) {
console.log(res);
});
in order to queue the *intensive CPU operation of adding two numbers* for
the next tick in the event loop..
2012/6/6 Oliver Leics oliver.le...@gmail.com
On Wed, Jun 6, 2012 at 3:31 PM, Anand George mranandgeo...@gmail.com
wrote
, Jun 6, 2012 at 3:31 PM, Anand George mranandgeo...@gmail.com
wrote:
When I run this code I get the following output.
3
6
3.
Any ideas why this could be happening.
This happens because the code does what it has to do.
It's forcing the calling function to run again.
I don't
https://github.com/guyht/Glog is a git and Node.js backed blog that uses
markdown for formatting
On Mon, May 28, 2012 at 9:14 PM, Tim Caswell t...@creationix.com wrote:
Axel, what features do you need in the blog? The wheat engine I wrote is
rather fragile to setup (typos can cause it to die,
:
@mscdex that's it.
I need this to parse config files, and now I can require() my parser from
everywhere without the need to send the app path :)
--
Att,
Alan Hoffmeister
2012/5/27 Anand George mranandgeo...@gmail.com
Ok. I get it now. And thanks for both solutions offered. Guess it's
Hoffmeister alanhoffmeis...@gmail.com
wrote:
@Anand, yep, but you can use `npm link mymodule`
--
Att,
Alan Hoffmeister
2012/5/27 Anand George mranandgeo...@gmail.com
Coming back to your question
npm install -g mymodule will not be available when you require it using
mymodule
If you need to find the app path couldn't you just use __dirname.
On Sun, May 27, 2012 at 7:08 AM, Alan Hoffmeister alanhoffmeis...@gmail.com
wrote:
I think that I got the answer:
//mymodyle.js
path = require('path');
exports.path = path.dirname(process.mainModule.filename);
Can I trust
of the script that is calling it, not the app
root path...
--
Att,
Alan Hoffmeister
2012/5/26 Anand George mranandgeo...@gmail.com
If you need to find the app path couldn't you just use __dirname.
On Sun, May 27, 2012 at 7:08 AM, Alan Hoffmeister
alanhoffmeis...@gmail.com wrote:
I think
?
--
Att,
Alan Hoffmeister
2012/5/26 Anand George mranandgeo...@gmail.com
Not sure if I understood your question right.
console.log(__dirname) in app.js which is in the path /home/myuser/app.js
will return /home/myuser.
Isn't this what you intend.
On Sun, May 27, 2012 at 7:53 AM, Alan
http://dropup.net/ seems to be a similar implementation. The code is
available on Github https://github.com/daleharvey/dropup
On Wed, May 16, 2012 at 5:57 PM, Tim Caswell t...@creationix.com wrote:
On Wed, May 16, 2012 at 6:14 AM, Alan Hoffmeister
alanhoffmeis...@gmail.com wrote:
Tim
code in dropup
On Wed, May 16, 2012 at 6:03 PM, Anand George mranandgeo...@gmail.comwrote:
http://dropup.net/ seems to be a similar implementation. The code is
available on Github https://github.com/daleharvey/dropup
On Wed, May 16, 2012 at 5:57 PM, Tim Caswell t...@creationix.com wrote
Check out this thread. Lot of useful resources
http://groups.google.com/group/nodejs/browse_thread/thread/acc89a8396038b57/1c275de40a7d27c1?lnk=gstq=begin+with+node#1c275de40a7d27c1
On Wed, May 16, 2012 at 12:03 PM, randomnick parpardr...@gmail.com wrote:
i'v been playing around with node for
For payments you might consider node-stripe -
https://github.com/abh/node-stripe.git Also checkout this nice tutorial on
setting it all up - http://www.catonmat.net/blog/stripe-payments-with-node/
On Thu, May 17, 2012 at 7:24 AM, Dave Clements
huperekch...@googlemail.comwrote:
if its
In the use case specified here...
http://nodejs.org/api/modules.html#modules_module_exports we perform some
initialization steps when we load the module. In the given example we use
setTimeout to ensure that the module is loaded before we emit the event. Is
there a way to ensure this
Hi
Have installed serialport using Node v0.7.8 on Ubuntu 10.04.
When running the tests I get an error
Error: /home/anand/node-serialport/build/default/serialport_native.node:
undefined symbol: ev_rt_now.
Thanks
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
.
On Mon, May 7, 2012 at 11:54 PM, Ben Noordhuis i...@bnoordhuis.nl wrote:
On Mon, May 7, 2012 at 5:38 PM, Anand George mranandgeo...@gmail.com
wrote:
Running with Node versions upto 06.13 gave a different run-time error
Unable to load shared library ... serialport_native.node
That's because
from both servers have been
verified using our http.get example. Just wondering if request formats the
response differently in each case?
On Thu, May 3, 2012 at 6:37 PM, mscdex msc...@gmail.com wrote:
On May 3, 6:29 am, Anand George mranandgeo...@gmail.com wrote:
, maxRedirects: '1'
What if you
was intended to work this way.
On Fri, May 4, 2012 at 12:32 AM, mscdex msc...@gmail.com wrote:
On May 3, 10:40 am, Anand George mranandgeo...@gmail.com wrote:
The location parameter is missing in the sond response. It couldn't be an
issue with the servers, cause the response from both servers have
I'll do that.
Thanks.
On Fri, May 4, 2012 at 9:15 AM, mscdex msc...@gmail.com wrote:
On May 3, 11:09 pm, Anand George mranandgeo...@gmail.com wrote:
So we can use 'request' only to get the first redirect
(using followRedirect: false) or the final response. Not sure if the
maxRedirects
Ghostbusters ;)
On Thu, Apr 12, 2012 at 1:36 PM, Mark Hahn m...@hahnca.com wrote:
The main problem is webpages are for screens and not for printers, but
it would be nice to use the same technologie for all media types.
Doesn't CSS support this? It is supposed to. I know CSS has printer
The short period of time I tried running Node.js on Windows made me more
religious. Each time I tried installing a module, I'd pray that everything
goes fine ;).
On Fri, Mar 16, 2012 at 12:11 PM, Brandon Benvie
brandon.ben...@gmail.comwrote:
A no node is fine on Windows. Node is more than
Really nice explanation of the behavior of the node single threaded
event-loop. Much more elaborate and comprehensive than the typical 'Hello
world' explanation. Wonder if it could be included in a Node.js wiki page.
On Thu, Mar 15, 2012 at 9:04 PM, C. Mundi cmu...@gmail.com wrote:
This is
Here's the article if that helps.
http://howtonode.org/deploying-node-upstart-monit
On Tue, Mar 13, 2012 at 2:38 PM, nan huo huonan...@gmail.com wrote:
forever is more easier to start with https://github.com/nodejitsu/forever
On Monday, March 12, 2012 4:02:20 PM UTC+1, Flavio Del Bianco
Have you checked https://github.com/schaermu/node-fluent-ffmpeg
Anand
On Sun, Feb 26, 2012 at 8:34 AM, Dave Clements
huperekch...@googlemail.comwrote:
does something like this fit?
http://transloadit.com/
?
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
Now it's possible to run different version of node.js on Heroku. Check this
http://www.scoop.it/t/nodejs-code/p/1210329655/run-multi-version-of-node-js-on-heroku
Anand
On Tue, Feb 21, 2012 at 8:37 AM, Murali Rama Krishnan
scanmur...@gmail.comwrote:
and more than that, heroku allows custom
Hi!
Haven't done this before. Just install n or nvm in case you don't mind both
versions on your machine simultaneously. Have found it useful when
different apps have different version requirements.
On Sat, Feb 18, 2012 at 2:46 PM, uglymunky gabr...@uglymunky.com wrote:
Hi, I'm a total noob
file (usually in /etc/hosts):
127.0.0.1 nooline.org
Then when you fire up nooline.org in your browser, it'll point to your
local instance. Or, of course, you could create your own domain and do it
that way.
-Skyler
On Feb 7, 2012, at 22:47 PM, Anand George wrote:
Tried downloading
Hi!
Check out this very interesting discussion on npm
http://groups.google.com/group/nodejs/browse_thread/thread/a5af0deb545ff233/b7dab86089a3319e?lnk=gstq=npm#b7dab86089a3319e
On Wed, Feb 8, 2012 at 4:16 PM, Arnout Kazemier i...@3rd-eden.com wrote:
install it without the -g
On Wednesday,
Hi!
Have just checked out the repo and get the following error on make
https://gist.github.com/1769231
Please advise. Am running gcc version 4.4.3 on Ubuntu 10.04 x86_64
Thanks
On Mon, Feb 6, 2012 at 4:52 PM, Daniel Kang m...@daniel.gs wrote:
Hi.
I've recently started working on this
Have you checked out Calipso.
On Tue, Feb 7, 2012 at 5:54 PM, Axel Kittenberger axk...@gmail.com wrote:
Dear List, I'm looking for something like:
http://gpeasy.com/
only with node.js as base instead of PHP/Apache
Focus on very easy install / maintenance rather than size/tons of users
If you don't intend to use a database check out http://howtonode.org/
On Tue, Feb 7, 2012 at 6:01 PM, Anand George mranandgeo...@gmail.comwrote:
Have you checked out Calipso.
On Tue, Feb 7, 2012 at 5:54 PM, Axel Kittenberger axk...@gmail.comwrote:
Dear List, I'm looking for something like
Tried downloading and running locally. Browser shows 'We couldn't find that
resource on our server'. Is there something I'm missing.
On Tue, Feb 7, 2012 at 10:42 PM, Skyler Brungardt colorfulf...@gmail.comwrote:
I just stood something up like this, actually:
http://nooline.org
Meets all the
Is this on Windows?
On Sun, Feb 5, 2012 at 12:32 PM, Angelo Chen angelochen...@gmail.comwrote:
hi,
trying out with kue:
npm install kue
got :
npm http GET https://registry.npmjs.org/natural/-/natural-0.0.27.tgz
npm http 304 https://registry.npmjs.org/mkdirp/0.0.7
npm http 304
45 matches
Mail list logo