Re: [nodejs] vm module question

2014-02-13 Thread Bence Dányi
> Is there a way to know when the script has finished execution in > runInNewContext() ? If your code is synchronous, your code is finished when runInNewContext returns (it uses the same thread as your "main" code). If you have asynchronous code, then pass a callback function to the context, and c

Re: [nodejs] vm module question

2014-02-13 Thread Axel Kittenberger
The flow calling runInNewContext is halted until it returns. This is not multithreading. Its just running something in a different environment. On Fri, Feb 14, 2014 at 8:39 AM, Vinay Ram wrote: > Is there a way to know when the script has finished execution in > runInNewContext() ? > How to fr

[nodejs] vm module question

2014-02-13 Thread Vinay Ram
Is there a way to know when the script has finished execution in runInNewContext() ? How to free the memory allocated by runInNewContext ? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message

[nodejs] Re: What to do to make it easier to translate(i18n) learnGitBranching

2014-02-13 Thread Fabio Caritas Barrionuevo da Luz
Thanks Alex, I'll try to do this weekend -- -- 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 t

Re: [nodejs] Abridged summary of nodejs@googlegroups.com - 31 Messages in 12 Topics

2014-02-13 Thread Tom Boutell
Try using uploadfs for image processing and file storage instead. It does image conversions efficiently in multiple sizes in a single imagemagick pipeline, and can store your files in your local fs or in S3, so it's easy to move to S3 later. It can also store uploaded files that are not images.

Re: [nodejs] What type of syntax is this ?

2014-02-13 Thread Mark Hahn
Coffeescript transpiles to plain javascript so they are interchangeable. On Thursday, February 13, 2014 4:04:14 PM UTC-8, Kevin Ingwersen wrote: > > Thats CoffeeScript o.o > Am Fr. Feb. 14 2014 00:26:16 schrieb Ziobudda: > > > Hi all, I have found this syntax in node-gd page on npmjs.org: > >

[nodejs] Simple server script using express doesn't set Content-Type when sending files

2014-02-13 Thread David Karr
I've written a simple server script that is intended to be used as a tool for front-end developers to shorten their dev cycle. It serves all local files, but proxies calls to a web service to an external domain. It uses "express" to serve static files and "http-proxy" to proxy the web services

[nodejs] How MEAN have you got :-)

2014-02-13 Thread Babu Subramanian
Hi Would like to know from guys, who have used the MEAN stack, how you found it? Any useful pointers will be welcome! Thanks & Regards Babu Subramanian +91 98452 02337 -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidel

Re: [nodejs] What type of syntax is this ?

2014-02-13 Thread Kevin Ingwersen
Thats CoffeeScript o.o Am Fr. Feb. 14 2014 00:26:16 schrieb Ziobudda: > > Hi all, I have found this syntax in node-gd page on npmjs.org: > > gd.openPng "test.png", (err, input_img) -> > console.log "width: ", input_img.width > console.log "height: ", input_img.width > > > > note the -> >

Re: [nodejs] Myyna - Node.js Pineterst Clone script, developed on sleek.js framework.

2014-02-13 Thread Alex Kocharin
 Opened the page, looked at the white screen for a couple of seconds, closed again... Is it supposed to be so, or should I bother adding this host to NoScript exceptions which I do very rarely?  Ziobudda, this is my problem with angular.js by the way. Don't use that thing please. :)   13.02.2014, 1

Re: [nodejs] Re: What to do to make it easier to translate(i18n) learnGitBranching

2014-02-13 Thread Alex Kocharin
 It looks like Jed is good way to solve this. Why do you think it won't work? Anyway, here is what I came up with in 20 minutes with zero knowledge of any existing i18n tools: $ yapm install browserify$ yapm install jedify$ cp /usr/share/cups/locale/fr/cups_fr.po .$ echo "console.log(require('./cup

[nodejs] What type of syntax is this ?

2014-02-13 Thread Ziobudda
Hi all, I have found this syntax in node-gd page on npmjs.org: gd.openPng "test.png", (err, input_img) -> console.log "width: ", input_img.width console.log "height: ", input_img.width note the -> I have found a similar syntax in  https://www.npmjs.org/package/nodejs-api-client but here

[nodejs] printing thread id

2014-02-13 Thread Alexey Petrushin
You can have fibers instead. They are close to threads, and you can assign id to it or use fiber local storage -- -- 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 t

Re: [nodejs] printing thread id

2014-02-13 Thread Sam Roberts
On Thu, Feb 13, 2014 at 4:11 AM, Pawel Por wrote: > but "ps" linux command shows that my node application consumes 2 threads. Yeah, but your javascript always runs in the main process, which has a tid === pid. What exactly are you looking for? Just poking around out of curiosity? In that case, c

[nodejs] Re: Alternative to GYP? o.o

2014-02-13 Thread Kevin Ingwersen
Postbuilds, refactoring, proper .framework creation, information on how to properly set up the link settings - because you have target/libraries and target/link_settings/libraries. It also doesnt clearly explain that for Xcode you can not use cflags, but must use special flags. The basics are we

[nodejs] Re: Alternative to GYP? o.o

2014-02-13 Thread mscdex
On Thursday, February 13, 2014 1:30:35 PM UTC-5, Kevin Ingwersen wrote: > > Is there an actual alternative to node-gyp? GYP is barely documented, and > its hard to figure things out. > I am just being curios, as I am currently lurking into different build > systems. > > Barely documented? I t

[nodejs] Alternative to GYP? o.o

2014-02-13 Thread Kevin Ingwersen
Hey. Is there an actual alternative to node-gyp? GYP is barely documented, and its hard to figure things out. I am just being curios, as I am currently lurking into different build systems. Kind regards, Ingwie. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/

[nodejs] chaining a promise and array of promises

2014-02-13 Thread Reza Razavipour
I am using Q for my promise library. I have a promise that if success calls and array of promises. The code is: getCount(client).then(function (count) { // when successful create a var promises = []; // array

Re: [nodejs] Re: Web Scraping Frameworks for Node.JS? (e.g. like Python's Scrapy)

2014-02-13 Thread Alexey Petrushin
Guess what - problem with RAM - when I switched from micro to medium EC2 instance problem dissapeared ... On Wednesday, 12 February 2014 22:47:20 UTC+4, Matt Sergeant wrote: > > > On Wed, Feb 12, 2014 at 12:33 PM, Alexey Petrushin > > > wrote: > >> Tried it, it's really simpler. But still have

Re: [nodejs] Myyna - Node.js Pineterst Clone script, developed on sleek.js framework.

2014-02-13 Thread Ziobudda
Can you explain us about your framework choice ? Why sleek.js and not express.js or use angular.js ?  Sorry, sleek.js depend on express.js. The other questions remain. M. PS: sorry for my bad english. --  Michel 'ZioBudda' Morelli                       ziobu...@gmail.com Sviluppo applicazioni

Re: [nodejs] Myyna - Node.js Pineterst Clone script, developed on sleek.js framework.

2014-02-13 Thread Ziobudda
Wow. Great works. With some bugs but a great works. Can you explain us about your framework choice ? Why sleek.js and not express.js or use angular.js ?  Thanks for all.  M. Da: Robin Samuel Robin Samuel Rispondi: nodejs@googlegroups.com nodejs@googlegroups.com Data: 13 febbraio 2014 at 14:55:

[nodejs] Myyna - Node.js Pineterst Clone script, developed on sleek.js framework.

2014-02-13 Thread Robin Samuel
Say Hello to your own private Pinterest! Today, Cubet Techno Labs is introducing Myyna, a major Node.Js based Pinterest clone script built on Sleek.js framework that helps you to make your own customized Pinterest for your business or personal use. Its free, Build your own pinterest now! http:/

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

2014-02-13 Thread Robin Samuel
Our first #sleekjs based application, #pinterest clone is live now.. Take a look at http://bit.ly/1lIAjxG #nodejs #

Re: [nodejs] printing thread id

2014-02-13 Thread greelgorke
node.js does have threads under the hood, i.e. fs calles are processed by a threadpool. there is however no public api for thread id detection. only way i could think of currently is to make a system call via shell and parse it out, like 'ps -M | grep '+ process.pid Am Donnerstag, 13. Februar

Re: [nodejs] printing thread id

2014-02-13 Thread Pawel Por
but "ps" linux command shows that my node application consumes 2 threads. thanks for reply On Thursday, February 13, 2014 1:04:57 PM UTC+1, Alan Hoffmeister wrote: > > I think that Node.js don't have threads, so no TID... > -- > Att, > Alan Hoffmeister > > > 2014-02-13 10:01 GMT-02:00 Pawel P

Re: [nodejs] printing thread id

2014-02-13 Thread Alan Hoffmeister
I think that Node.js don't have threads, so no TID... -- Att, Alan Hoffmeister 2014-02-13 10:01 GMT-02:00 Pawel Por : > Hi > > How can I print thread id in node js ? > I mean thread ID (TID) not process ID (PID). > > thanks for answer > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting gui

[nodejs] printing thread id

2014-02-13 Thread Pawel Por
Hi How can I print thread id in node js ? I mean thread ID (TID) not process ID (PID). thanks for answer -- -- 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

[nodejs] Re: What to do to make it easier to translate(i18n) learnGitBranching

2014-02-13 Thread Fabio Caritas Barrionuevo da Luz
Alex, you could create a working example that works* only on the client sid*e and use *gettext* A pull request would be much appreciated...XD -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this m

Re: [nodejs] Re: node-gd does not work.

2014-02-13 Thread Alex Kocharin
What node-gd are we talking about? taggon/node-gd? mikesmullin/node-gd? andris9/node-gd? hanssonlarsson/node-gd? Okay, I see it's the first one. I just mistook it for https://npmjs.org/package/node-gd . npm registry needs namespaces :P On Thursday, February 13, 2014 1:14:25 PM UTC+4, Luca M

Re: [nodejs] Re: node-gd does not work.

2014-02-13 Thread Luca Morettoni
On 13 February 2014 10:12, Alex Kocharin wrote: > First argument of openPng is an error. If you don't have an error, it will > be undefined. https://github.com/taggon/node-gd#using-gd I think the Michel code is ok... later I'll try to run the example locally... -- Luca Morettoni | http://www.

[nodejs] Re: node-gd does not work.

2014-02-13 Thread Alex Kocharin
First argument of openPng is an error. If you don't have an error, it will be undefined. PS: I think "node-gd" library is a great example of why npm should have namespaces :P On Thursday, February 13, 2014 12:59:58 PM UTC+4, Michel Morelli wrote: > > Hi all, I’m creating a little node.js app

Re: [nodejs] node-gd does not work.

2014-02-13 Thread Ziobudda
Can you drive me to the documentation of the "gd" lib?  Hi Luca, I have get node-gd from github: https://github.com/taggon/node-gd M. --  Michel 'ZioBudda' Morelli                       ziobu...@gmail.com Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Mobil

Re: [nodejs] node-gd does not work.

2014-02-13 Thread Luca Morettoni
On 13 February 2014 09:59, Ziobudda wrote: > The function gd.open(...) set always "png" variables to "undefined". I don't > understand where is my error. > Thanks in advance and sorry for my bad english. hello Zio! I don't know the gd lib, but usually a callback function uses the fingerprint "cal

[nodejs] node-gd does not work.

2014-02-13 Thread Ziobudda
Hi all, I’m creating a little node.js app (for test) that get image from a FORM, save it in a directory and create a thumbnail version.  Form and upload works with no problem, but I can not create the thumbnail.  This is my code:  app.post('/upload', function (req, res) {     var tempPath = req.f