[nodejs] Re: Tips, let's help each other.

2013-01-09 Thread Rodrigo Fonseca
Very good for someone starting with node http://www.nodebeginner.org/ -- 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 t

[nodejs] Re: What Editor do you use?

2013-01-06 Thread Rodrigo Fonseca
Thanks Jeff, I will try that when i get home. -- 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 emai

[nodejs] Tips, let's help each other.

2013-01-06 Thread Rodrigo Fonseca
Hi guys, I'm creating this post just for give tips to beginners like me, so here is my first tip(*but please, send tips made for humans to humans, not a boring manual or something like that*): *If you want to learn about asynchronous error handling in javascript, i think it was very good ex

[nodejs] Re: What Editor do you use?

2013-01-04 Thread Rodrigo Fonseca
How can i do that? Create a html file and put ".ejs" in the end of the file? Em sexta-feira, 4 de janeiro de 2013 02h22min40s UTC-3, Jeff Schwartz escreveu: > > Configure ejs as html in webstorm. It works for me. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joye

[nodejs] Re: What Editor do you use?

2013-01-03 Thread Rodrigo Fonseca
I try to google it(i always try before post here), but all i found was this: http://youtrack.jetbrains.com/issue/WEB-814 I think that they will put this in the future? Anyone here that use webstorm can confirm this? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/

[nodejs] Re: What Editor do you use?

2013-01-02 Thread Rodrigo Fonseca
There is any plugin for ejs file in webStorm?? I downloaded the webstorm but it doesn't recognizing els file. -- 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 Editor do you use?

2013-01-02 Thread Rodrigo Fonseca
Webstorm?? I didn´t know, thanks for this tip guys. -- 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

Re: [nodejs] What Editor do you use?

2013-01-02 Thread Rodrigo Fonseca
; button > Enter ejs as the extension > select text/javascript as the mime > > Hope that helps > > Jason > > > > On Monday, December 31, 2012 1:41:59 PM UTC-5, Rodrigo Fonseca wrote: >> >> Ok, i've asked because i hate textMate, i really wan

Re: [nodejs] Load Html file.

2012-12-31 Thread Rodrigo Fonseca
hey guys, i just finished or almost, and i didn't need to use any other module, and i discovered some thing that maybe be useful to some people, here: LayoutController.layout = function(obj) { var fs = require('fs'); *var html = fs.readFileSync('./app/views/'+ obj.__action+'/'+obj.fileName);* o

Re: [nodejs] What Editor do you use?

2012-12-31 Thread Rodrigo Fonseca
Ok, i've asked because i hate textMate, i really want to use netbeans, but i will try to use with eclipse. -- 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 Go

[nodejs] What Editor do you use?

2012-12-31 Thread Rodrigo Fonseca
I'm trying to use netbeans, but when i try to put a "ejs" file, the netbeans doesn't recognize it, so i'm using textMate, but i really i want to use the netbeans. I'm on Mac, there is any other editor? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wi

Re: [nodejs] Load Html file.

2012-12-28 Thread Rodrigo Fonseca
Ok, i just posted in there, thanks again. -- 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 to

Re: [nodejs] Load Html file.

2012-12-28 Thread Rodrigo Fonseca
*You haven't mentioned CSS before, and you haven't shown us the HTML content, so it's a little hard to know what's going on. However, I should point out that you are responding to *every* request to your server with the contents of the HTML file. So if your CSS URL is also pointing to the same

Re: [nodejs] Load Html file.

2012-12-27 Thread Rodrigo Fonseca
No, the server is* created once*, and the (anonymous) function that was passed to createServer is called each time a request is handled. That function sends back the contents of the file that was read earlier. Ok, it´s created once, but, if there is another server that was created? I have to

Re: [nodejs] Load Html file.

2012-12-27 Thread Rodrigo Fonseca
Thanks Martin, I will read the tutorials. cheers. -- 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, se

Re: [nodejs] Load Html file.

2012-12-26 Thread Rodrigo Fonseca
I've to create a server just to read a file??? I'm getting trouble with this, because always when i call a URL i create a server, because i put this inside of s function: http.createServer(function(request, response) { response.writeHeader(200, { "Content-Type": "text/html"}); response.write(htm

Re: [nodejs] Load Html file.

2012-12-26 Thread Rodrigo Fonseca
e('fs'); > var html = fs.readFileSync('./index.html'); > > http.createServer(function(request, response) { > response.writeHeader(200, {"Content-Type": "text/html"}); > response.write(html); > response.end(); >

Re: [nodejs] Load Html file.

2012-12-26 Thread Rodrigo Fonseca
Pedro, Yes, it's done during app initialization, how can i do this?? I´m begginer with node, can you explain more details about it? Mark, Ii want to do what Pedro said. cheers. > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List

[nodejs] Load Html file.

2012-12-25 Thread Rodrigo Fonseca
Hey guys, I'm doing a app 100% MVC with locomotive, i have one layout file that load another files just to put the content, it's a small app, but very good app... So, i want to know, the best way to load a html file, i google it and found this solution: var http = require('http'), fs = r

Re: [nodejs] Xcode and Node.js

2012-12-21 Thread Rodrigo Fonseca
at 08:54, Rodrigo Fonseca wrote: > > > I'm using Text Mate, i try to use netbeans, but the files that end with: > "html.ejs" were deconfigured, so i'm using text mate. So Xcode compile the > node?? What this means?? That i don't need to use the Terminal to sim

Re: [nodejs] app 100% node...

2012-12-20 Thread Rodrigo Fonseca
Ok Tim, thanks. -- 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 to nodejs@googlegroups.com To

[nodejs] app 100% node...

2012-12-20 Thread Rodrigo Fonseca
I'm doing a little app that can grow up very fast, the question is, is smart and safe to do this app in 100% node?? I'm using a framework called locomotive. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You recei

Re: [nodejs] Xcode and Node.js

2012-12-20 Thread Rodrigo Fonseca
I'm using Text Mate, i try to use netbeans, but the files that end with: "html.ejs" were deconfigured, so i'm using text mate. So Xcode compile the node?? What this means?? That i don't need to use the Terminal to simulate a server? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: ht

[nodejs] Xcode and Node.js

2012-12-19 Thread Rodrigo Fonseca
This didn´t get inside of my mind... How Node and Xcode work together??? I just google it and nothing explained that... I can use Xcode to write javascript?? -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You recei