[nodejs] node-firebird-libfbclient updated for node v0.10.25

2014-01-28 Thread Adrian Marius Popa
Node C++ Module for Firebird is updated in git soon to be pushed to npm It can be compiled now with node v10.x with node-gyp instead of waf git clone it node install https://github.com/xdenser/node-firebird-libfbclient -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://gi

Re: [nodejs] Recommendations on Messenger.js

2014-01-28 Thread Alex Kocharin
 One recommendation would be to forget about it completely and use node-xmpp instead. Because it's about time to stop inventing new protocols when there is a standard one.  29.01.2014, 09:06, "Anurag Prasad" :Hi, We are looking to build a scalable Instant Messaging application. I came across messen

[nodejs] Recommendations on Messenger.js

2014-01-28 Thread Anurag Prasad
Hi, We are looking to build a scalable Instant Messaging application. I came across messenger.js and found it useful in scaling up with multiple servers. Any recommendations? Regards, Anurag Prasad Birla Institute of Technology & Science, Pilani Pilani Campus Pilani, India. 333 031 Mobile: +91 -

Re: [nodejs] Cache variables?

2014-01-28 Thread Ryan Schmidt
On Jan 28, 2014, at 19:39, Anto wrote: > The code is as follows: > > - Nodejs + Expressjs > > app.get('/brand/:identifier', function(req, res){ > > identifier = req.params.identifier.toLowerCase(); Because you have not used "var" to

[nodejs] Node v0.11.11 (Unstable)

2014-01-28 Thread Timothy J Fontaine
2014.01.29, Version 0.11.11 (Unstable) * v8: Upgrade to 3.22.24.19 * http_parser: Upgrade to 2.2.1 * openssl: Upgrade to 1.0.1f * uv: Upgrade to 0.11.18 * async-listener: revamp of subsystem (Trevor Norris) * node: do not ever close stdio (Fedor Indutny) * http: use writev on chunked encodin

[nodejs] Re: [WebAndBeer] Re: Git Watcher

2014-01-28 Thread Demián Andrés Rodriguez
Cambié la estructura de la app para que sea mas legible. Puse en ./lib lo mio y actualicé el package.json para que sea un híbrido y sirva para npm y node-webkit a la vez. Ahora ejecutas npm install en el root de la app y se instalan las deps. Despues, hice algo medio raro, metí un package.json con

Re: [nodejs] VM module capabilities

2014-01-28 Thread Arunoda Susiripala
There is a notable difference between thread va child process. Threads are much light weight. Child processes take more time to initalize and take more mem.(~15 mb min in node) On Wednesday, January 29, 2014, Alex Kocharin wrote: > > 27.01.2014, 14:29, "Damian Kaczmarek" 'cvml', 'rus...@gmail.c

Re: [nodejs] VM module capabilities

2014-01-28 Thread Timothy J Fontaine
There is actually room with some of the features from upcoming v8 that opens the possibility of running VM contexts in threads relatively safely, though I'm not sure if we'd ever support that as a mechanism to extend cluster. But the idea of being able to identify cpu bound javascript and run it i

Re: [nodejs] Re: [WebAndBeer] Re: Git Watcher

2014-01-28 Thread Alex Kocharin
 > Eso lo tengo perfectamente claro, pero el problema es que yo tengo modulos propios NO publicados en npm (no tengo un registro privado, me regalás uno?) I have a strange feeling that "bundleDependencies" key is something you might be looking for... > Además, la app pesa 40mb npm itself unpacks to

[nodejs] Re: [WebAndBeer] Re: Git Watcher

2014-01-28 Thread Tio Oscar
Se la banca, abria que ver cuanto pesan otras cosas mas pesadas. Sobre los modulos no publicados... publicalos :P te registras desde consola y los subís con npm publish :P, mira mi user: https://npmjs.org/~exos sobre los makefiles, si, son una verga. Por otro lado no es una cuestion de que sea u

Re: [nodejs] Cache variables?

2014-01-28 Thread Anto
Hello Sorry, delete var to clean several console.log that I had to see the input parameters and other variables, to let them the cleanest code. These variables only the use in that part of the code, except the variable doc. I'm desperate because I can not find the error. I'll do a dump of mongo a

Re: [nodejs] Re: Shared memory between processes

2014-01-28 Thread Alex Kocharin
 If shared memory is big, it might be worth it to move it to separate database leaving node.js instances stateless. So, no, you can't. But I don't believe it can cause any real problems, since sharing memory is a bad idea anyway (just look at Java...).  27.01.2014, 16:18, "Deniz Özger" :Can you use

Re: [nodejs] Cache variables?

2014-01-28 Thread Alex Kocharin
 > identifier = req.params.identifier.toLowerCase(); If you missed "var" in this case, it would mean that you could have done the same thing elsewhere. It would easily be a cause for this. Maybe dump "global" variable and look for non-standard entries there. Almost every one of them would be a bug

Re: [nodejs] VM module capabilities

2014-01-28 Thread Alex Kocharin
 27.01.2014, 14:29, "Damian Kaczmarek" :Hi,I seem to have totally lived in the dark about the existence of the VM module. I have two questions that I hope a kind knowledgeable soul could answer and I could not find the answers in the docs. 1) Does the VM module run contexts in separate threads? If

Re: [nodejs] Cache variables?

2014-01-28 Thread Anto
It has failed again, no longer it can be ... I can not find the explanation: -S Any idea? Thank you. regards Anto 2014/1/29 Anto > Hello ! > > I summarized part of the code to not dirty list with a lot of text. > > I must indicate that I have programmed from scratch twice this part > avoiding

Re: [nodejs] Cache variables?

2014-01-28 Thread Anto
Hello ! I summarized part of the code to not dirty list with a lot of text. I must indicate that I have programmed from scratch twice this part avoiding using variable names elsewhere. Console shows me correctly the data to be displayed on the web and often works until some time (I have not found

Re: [nodejs] Callback functions prefixed with __

2014-01-28 Thread Alex Kocharin
 It's the same deal as with hungarian notation. Terrible idea. Your function name should already describe what this variable contains. There is no need to duplicate this information with underscores. Name it "on_save" or "save_cb" instead. Even "save" will do fine in small functions. This code will

Re: [nodejs] Question about Bootstrap Models

2014-01-28 Thread Alex Kocharin
27.01.2014, 05:22, "Ryan Schmidt" : > On Jan 21, 2014, at 15:26, Alex Kocharin wrote: > >>  As for models, requiring a file without assigning its returning value means >> that that file have side effects. It is rarely justified (except for tests), >> and if you have the whole folder of such file

[nodejs] Re: [WebAndBeer] Re: Git Watcher

2014-01-28 Thread Demián Andrés Rodriguez
Eso lo tengo perfectamente claro, pero el problema es que yo tengo modulos propios NO publicados en npm (no tengo un registro privado, me regalás uno?), y los cuales quiero usar con `require('pepito')` y vez de `require('./lib/pepito')` porque me hace ruido y es feo. Si te fijas mi .gitignore res

[nodejs] Re: [WebAndBeer] Re: Git Watcher

2014-01-28 Thread Tio Oscar
Las dependencias justamente las trabaja npm, volviste a cometer el error de incluir node_modules y meter las libs ahi. node_modules lo tenes SIEMPRE que ignorar, justamente npm maneja las dependencias a la hora de instalar tu paquete, por eso se suele usar el directorio "lib" para las librerias pr

Re: [nodejs] Re: ORM for Express.JS

2014-01-28 Thread Raymond Feng
Please checkout https://github.com/strongloop/loopback-datasource-juggler. The project provides the integration backbone for https://github.com/strongloop/loopback to expose enterprise data as REST/mobile APIs. It was initially folked from JugglingDB. Since then, we have added a lot of enhance

[nodejs] Re: Node.js mailparser module error: Cannot find module 'iconv'

2014-01-28 Thread Todd Newman
I realize this is a year late and is probably too late to help Bob. But in case others find it with a web search, maybe it will help them. mailparser requires iconv-lite. Then it wraps a require("iconv") in a try-catch block. So if that fails, it fall back to using iconv-lite. But if you

Re: [nodejs] Cache variables?

2014-01-28 Thread Ryan Schmidt
Presumably you are storing some information in a variable that is not associated with the request, and is therefore shared among all requests. The code you posted doesn’t seem to have such a problem, so I’d look elsewhere in your code. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelin

Re: [nodejs] Re: PowerLinux (PowerPC aka PPC) early (unofficial) version of Node.js

2014-01-28 Thread Michael Deschu
Ok we may end up grabbing another Power7 anyway =). But for now that's good news. OpenJDK is the suggested JVM for Jenkins anyhow. gcj is the one that is not so well behaved.. Thank you for the info. On Tuesday, January 28, 2014 1:55:46 PM UTC-5, Andrew Low wrote: > > I'm using Linux on Power as

Re: [nodejs] Re: PowerLinux (PowerPC aka PPC) early (unofficial) version of Node.js

2014-01-28 Thread Andrew Low
I'm using Linux on Power as my host of http://v8ppc.osuosl.org:8080/ There is an IBM version of Java available for this platform (dig around here and you'll find it) http://www.ibm.com/developerworks/java/ If you're on a G5, then the IBM version won't work as it's not compiled on that platform. k

[nodejs] Re: [WebAndBeer] Re: Git Watcher

2014-01-28 Thread Demián Andrés Rodriguez
Ah pero vos decis de subir todo el source a npm. Yo queria subir solo el binario, porque el tema es que si lo tenes que compilar vos necesitas bajarte node-webkit y nw-gyp para recompilar cada dependencia, es un bardo... Fijate en el readme puse como es. Se te ocurre una forma de distribuirlo todo

[nodejs] Re: [WebAndBeer] Re: Git Watcher

2014-01-28 Thread Tio Oscar
Se que en el package.json le podes basar el parametro "bin", y npm se encarga de copiarlo al directorio bin del sistema, pero siempre vi scritps que llamaban a node, onda #!/usr/bin/env node en este caso si es un binario en serio no pasa nada, acordate que tu app estaría en %NODEROOT%/lib/node_mo

[nodejs] Re: Git Watcher

2014-01-28 Thread Demián Andrés Rodriguez
Preparé el package.json para publicarlo en npm... demian@demian-desktop:~/www/projects/git-watcher/build/linux$ npm publish FATAL ERROR: JS Allocation failed - process out of memory Cuando resuelva eso, alguno sabe como tener un path al ejecutable segun el SO? Así como lo tengo, al hacer `npm in

[nodejs] Re: Build tools

2014-01-28 Thread Jason LaChapelle
All suggestions posted so far are good and viable. I just want to point you to another possible answer: whimper. I started whimper a week or so ago because I was kind of sick of the state of task runners (and build tools) with node.js. Grunt and their configurations are annoying as heck, gulp i

Re: [nodejs] Building on windows...with a "portable" python?

2014-01-28 Thread Nathan Rajlich
A quick google search brought up: http://portablepython.com/ Have you tried that? You'll need the v2.7 version, not the v3 one. On Mon, Jan 27, 2014 at 11:49 PM, Kevin Ingwersen wrote: > Hey. > > In order to build nodejs, i know you need to have python installed. Is > there a way to either bui

[nodejs] Cache variables?

2014-01-28 Thread Anto
hello I have a website developed in nodejs and use as jade template engine. I found a small bug and should be around me. I have a dynamic URL parameter capturing a final and mongo used to search , always use the same scheme, same template but different data depending on the parameter. In my a

[nodejs] Git Watcher

2014-01-28 Thread Demián Andrés Rodriguez
Buenas, para darle un poco de vida a estos grupos... quería compartirles mi proyecto en el cual estuve trabajando en mi tiempo libre. Quería probar a ver que onda node-webkit, asi que lo desarrollé usando esa plataforma. (NodeJS + Webkit :P) https://github.com/demian85/git-watcher Es una versión

Re: [nodejs] Re: PowerLinux (PowerPC aka PPC) early (unofficial) version of Node.js

2014-01-28 Thread Michael Deschu
Hi, Andrew, Little off topic from Node.js (which is awesome) but I noticed that you were able to get Jenkins to run on a Linux based PowerPC. How were you able to get that up and running since Jenkins relies on at least Java 1.5? I could not find any Java package from Oracle on PowerPC. Were yo

[nodejs] Re: Checkout MVC for node js :: Sleek.js

2014-01-28 Thread Robin Samuel
Sleek.js Node framework updated with pluggable modules support & improved assets management. https://groups.google.com/forum/#!searchin/nodejs/sleek/nodejs/ifs5zBUgmjI/cWopsEwK2XEJ On Monday, November 4, 2013 11:24:14 PM UTC+5:30, Jarka wrote: > > Well done, I would not call this framework it'

[nodejs] Sleek.js Node framework updated with pluggable modules support & improved assets management.

2014-01-28 Thread Robin Samuel
Sleek.js, one of the simplest node js framework, updated with pluggable modules support. Here is the change log in v 0.1.77 1. Added module functions. Plug & play modules can be developed for sleek.js apps & included in the modules folder 2. Improved assets support. Assets can be inclu

[nodejs] Re: Do any existing node test runners support the following better than mocha?

2014-01-28 Thread greelgorke
i havent tried it yet but may be this is something for you http://dailyjs.com/2013/10/21/tap/ Am Montag, 27. Januar 2014 21:37:59 UTC+1 schrieb Sam Roberts: > > We've been using mocha with xunit output parsed by jenkins. Its OK, > but we're missing the following features: > > 1. capture stdout/