[18:19] nodelog has joined the channel [18:19] `3rdEden: cincinnatus are they disconnected within 20 seconds? [18:19] Shinuza: deanlandolt1: unlikely [18:20] jerrysv: isolates look nice. i think i remember ryan or someone quickly glossing over them at nodeconf [18:20] ale_ has joined the channel [18:20] cincinnatus: `3rdEden: no, it's not specifically 20 seconds. [18:20] christopherdebee: hi, i dont mean to spam, but can anyone point me in the right direction for "node_coffee" google isnt being helpful, all i find is a hello-world.coffee, but not "node_coffee" to run it... ? [18:20] ale_: hello, I have var createServer = require("http").createServer; but I get require is not defined..why can this be?! [18:21] cincinnatus: `3rdEden: it's usually in the ballpark though. what were you thinking of? [18:21] Tidwell has joined the channel [18:21] luisloaiza has joined the channel [18:21] luisloaiza: hi [18:22] ale_: please, someone? I can't even start working because of this! I am running Linux Mint Julia [18:22] luisloaiza: how you guys handle errors [18:22] luisloaiza: in nodejs [18:22] luisloaiza: to make the server stable [18:23] luisloaiza: because some errors just drops down the server [18:23] hasenj has joined the channel [18:24] cagdas has joined the channel [18:24] masylum: there are some options for that [18:24] luisloaiza: im using express [18:24] masylum: you ca use monit, forever, cluster.. [18:24] mikegerwitz: luisloaiza: If you know something is able to throw an error, even if you don't think it ever will, handle it. try/catch, .on( 'error' ), etc. Otherwise, process.on( 'uncaughtException' ) [18:24] masylum: exactly [18:24] ezl- has joined the channel [18:24] ale_: please guys! [18:25] masylum: please! [18:25] coreb has joined the channel [18:25] mikegerwitz: ale_: How are you running it? [18:25] mikegerwitz: ale_: I have a meeting in a few min though, so I can't stay for long [18:25] ale_: I enter toa url [18:25] xerox: anybody has an node.js example of calling a json api ? [18:25] ale_: to an url* [18:25] ale_: i mean [18:25] mikegerwitz: ale_: eh? [18:26] ale_: Because I want to run nodejs on web [18:26] ale_: not on console [18:26] mikegerwitz: ale_: Are you running it using node, or trying to run it in your web browser? [18:26] xerox: that is, http.get()-ing some other site's exposed json api [18:26] ale_: in my web browser? [18:26] masylum: nodejs is server side [18:26] mikegerwitz: ale_: Are you running: node yourfile.js? [18:26] ale_: But how can I run that from web? [18:26] masylum: what you mean from web? [18:26] mikegerwitz: ale_: http://nodejs.org/ there's an example on the homepage [18:27] christopherdebee: yah [18:27] ale_: But I have to make node blabla.js [18:27] ale_: from the console [18:27] matty has joined the channel [18:27] lukstr: that is how you run node [18:27] mikegerwitz: ale_: You run it from the console, yes. [18:27] masylum: xerox, take a look at https://github.com/mikeal/request [18:27] christopherdebee: console or terminal? [18:27] ale_: mikegerwitz: And how does the chat works? [18:27] ale_: mikegerwitz: The chat of nodejs [18:28] christopherdebee: console = clientside, terminal = serverside [18:28] mikegerwitz: ale_: Do you understand how web requests work? How a web browser communicates with a server/ [18:28] mikegerwitz: ?* [18:28] m00p has joined the channel [18:28] ale_: mikegerwitz: Yes [18:28] tbranyen: christopherdebee: console and terminal are interchangeable by some people [18:28] mikegerwitz: ale_: Node acts as the webserver [18:28] mikegerwitz: ale_: in this case, at least [18:28] christopherdebee: yeah but if someones asking how they use node on the web, it could help to differenciate [18:29] mikegerwitz: ale_: https://github.com/ry/node_chat <-- that is the chat [18:29] ale_: right! [18:29] ale_: but I do the same thing, and I get require is not defined [18:29] ale_: I mean the require(http) [18:29] masylum: where do you do that? [18:29] mikegerwitz: ale_: If require is not defined, then you are not using node. [18:29] cognominal has joined the channel [18:30] mikegerwitz: ale_: I assume you are running the JS file within the web browser. [18:30] mikegerwitz: ale_: Don't do