Re: [nodejs] a simple http server making current folder accessible from web?

2012-10-31 Thread Arunoda Susiripala
Thanks iz. Looks great will use it instead python :) On Thu, Nov 1, 2012 at 10:56 AM, Isaac Schlueter wrote: > npm install st -g > > Then type st in the dir you want to serve. > > > On Wednesday, October 31, 2012, Josh Faul wrote: > >> I actually use this in my .zshrc: >> alias servethis="pyth

Re: [nodejs] a simple http server making current folder accessible from web?

2012-10-31 Thread Isaac Schlueter
npm install st -g Then type st in the dir you want to serve. On Wednesday, October 31, 2012, Josh Faul wrote: > I actually use this in my .zshrc: > alias servethis="python -m SimpleHTTPServer " > > And then I have an easily accessible bookmark for it. Very handy for > testing simple things.

Re: [nodejs] Simple LightWeight OOP. 100% compatibility with JavaScript. Feedback please!

2012-10-31 Thread Isaac Schlueter
Trololololol ;p On Wednesday, October 31, 2012, Mark Hahn wrote: > Or, just use coffeescript. It offers great class support with `super`, > etc, while using standard prototypes. > > On Wed, Oct 31, 2012 at 10:03 PM, Isaac Schlueter wrote: > > I would say you don't need this. > > Just create a f

Re: [nodejs] Simple LightWeight OOP. 100% compatibility with JavaScript. Feedback please!

2012-10-31 Thread Mark Hahn
Or, just use coffeescript. It offers great class support with `super`, etc, while using standard prototypes. On Wed, Oct 31, 2012 at 10:03 PM, Isaac Schlueter wrote: > I would say you don't need this. > > Just create a function with a capitalized first letter. That's your > class. Instantiate

Re: [nodejs] Simple LightWeight OOP. 100% compatibility with JavaScript. Feedback please!

2012-10-31 Thread Isaac Schlueter
I would say you don't need this. Just create a function with a capitalized first letter. That's your class. Instantiate with `new`. Assign stuff to the prototype. Use `util.inherits` (or the `inherits` module if you prefer) to do inheritance, if you need to. It's much better to write idiomati

Re: [nodejs] [ANN] node-candle module for callbacks that are freed either by resolving or timing out

2012-10-31 Thread Alexey Kupershtokh
This is gonna be a lot of code. 1) we need to pass something to the other side. Let's use incremental request_id. 2) we need a structure that would be an interruptable intermediate between real callback and the one that handles answers. Let's use the EventEmitter for saving code. 3) we need to c

[nodejs] Re: build a node addon on windows for linux

2012-10-31 Thread NodeNinja
> I recommend setting up and using a local Linux virtual machine if you > do not have access to a Linux system elsewhere. > > You might be able to get away with using a cross-compiler under > cygwin, but just mentioning that makes me cringe. > Your advice is sound mscdex... I couldn't find

[nodejs] Re: a simple http server making current folder accessible from web?

2012-10-31 Thread Josh Faul
I actually use this in my .zshrc: alias servethis="python -m SimpleHTTPServer " And then I have an easily accessible bookmark for it. Very handy for testing simple things. On Sunday, October 28, 2012 5:48:39 AM UTC-6, Angelo Chen wrote: > > I did some google, and found out python has that:

Re: [nodejs] Modify XML tags on “NodeJS”

2012-10-31 Thread Isaac Schlueter
What you're looking for is a way to go back from a data object into an XML string. This example script will pretty-print an XML stream as it's fed into the parser. You could probably modify it to fit your needs. https://github.com/isaacs/sax-js/blob/master/examples/pretty-print.js On Wed, Oct 3

Re: [nodejs] Re: process.env - documentation?

2012-10-31 Thread SL
Or we could make the docs a bit clearer... On 31 October 2012 18:46, Jorge wrote: > On 31 oct, 17:26, Scott Elcomb wrote: > > On Wed, Oct 31, 2012 at 10:59 AM, Jorge > > > > wrote: > > > On Oct 31, 2:04 pm, Bgsosh wrote: > > >> Hi, I'm tring to understand the structure of the process.env objec

[nodejs] Simple LightWeight OOP. 100% compatibility with JavaScript. Feedback please!

2012-10-31 Thread Fredrik O
Hi everyone, I have just wrote a simple lightweight OOP helper and want your thoughts about it, the implementation "Class" is only 15 lines of code, but I have included some tests, to show how it works. Any feedback is welcome. I am no JavaScript expert, but if I have not done anything wrong sh

[nodejs] Modify XML tags on “NodeJS”

2012-10-31 Thread Udayantha Warnasuriya
Does anyone know how to modify a tag value of an XML file using NodeJS this is my XML file: Tove Jani Reminder Don't forget me this weekend! I want to change the to I'm running nodeJS on windows. SO far I have following code; var parser = new xml2js.Parser();function xmltx

Re: [nodejs] Re: process.env - documentation?

2012-10-31 Thread Scott Elcomb
On Wed, Oct 31, 2012 at 1:46 PM, Jorge < jorge%jorgechamorro@gtempaccount.com> wrote: > On 31 oct, 17:26, Scott Elcomb wrote: > > On Wed, Oct 31, 2012 at 10:59 AM, Jorge > > > > wrote: > > > On Oct 31, 2:04 pm, Bgsosh wrote: > > >> Hi, I'm tring to understand the structure of the process.en

Re: [nodejs] Re: Socket.io, answer WELL, don't lock.

2012-10-31 Thread John Fitzgerald
@Andreas, I recommend reading this: http://www.catb.org/esr/faqs/smart-questions.html, it covers how to approach technical communities with these types of problems. There are plenty of folks willing to help when you ask the question in the right way, in the right place. On Wed, Oct 31, 2012 at 12

Re: [nodejs] https problem one server, two url, two ip addresses (eth0 and eth0:0)

2012-10-31 Thread Karl
Hi, thanks for your help, I'm aware now it is not really a node issue I did iptables -A INPUT -m limit --limit 15/minute -j LOG --log-tcp-options --log-prefix "KLR LOG TCP INPUT: " iptables -A OUTPUT -m limit --limit 15/minute -j LOG --log-tcp-options --log-prefix "KLR LOG TCP OUTPUT: " On the

[nodejs] Re: Socket.io, answer WELL, don't lock.

2012-10-31 Thread Bert Belder
On Wednesday, October 31, 2012 3:11:12 PM UTC+1, Andreas Backx wrote: > > I have been posting 2 issues on the nodejs GitHub page and both of them > people reply to like do this, do this without explanation and lock the > thread. Really? > https://github.com/joyent/node/issues/4222 > The mailing

Re: [nodejs] Re: [ANN] jsmc - Minecraft server written in Node

2012-10-31 Thread Joshua Holbrook
Keep me in the testing loop bruh! --Josh On Wed, Oct 31, 2012 at 9:43 AM, Roly Fentanes wrote: > cool. can't wait to try it. > > > On Wednesday, October 31, 2012 5:31:13 AM UTC-7, Conrad Pankoff wrote: >> >> Hey noders! >> >> Over the weekend/first part of this week I've started writing a Minecr

Re: [nodejs] Socket.io, answer WELL, don't lock.

2012-10-31 Thread Dan Milon
You could look into the code and figure out the problem yourself. danmilon. On 10/31/2012 08:47 PM, Andreas Backx wrote: > Well I've been waiting on there for a couple of days and I don't have > the time to wait: https://github.com/einaros/ws/issues/127 > > Op woensdag 31 oktober 2012 16:27:45 U

Re: [nodejs] Socket.io, answer WELL, don't lock.

2012-10-31 Thread Andreas Backx
Well I've been waiting on there for a couple of days and I don't have the time to wait: https://github.com/einaros/ws/issues/127 Op woensdag 31 oktober 2012 16:27:45 UTC+1 schreef Martin Cooper het volgende: > > > On the Node.js home page, the Community link says "Mailing lists, > blogs, and mo

Re: [nodejs] Socket.io, answer WELL, don't lock.

2012-10-31 Thread Andreas Backx
I've been waiting for a couple of days there: https://github.com/einaros/ws/issues/127 Op woensdag 31 oktober 2012 16:27:45 UTC+1 schreef Martin Cooper het volgende: > > On Wed, Oct 31, 2012 at 7:31 AM, Andreas Backx > > > wrote: > > I'm sorry for the attitude, but I didn't even know what a m

[nodejs] lightweight node example for REST mongo access

2012-10-31 Thread john.tiger
are there any code examples of how node can be used to handle an html5 REST request to trigger a mongodb query without setting up an entire connect and express framework -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelin

Re: [nodejs] [ANN] node-candle module for callbacks that are freed either by resolving or timing out

2012-10-31 Thread Mark Hahn
This appears to be quite useful. How does this compare to putting the timeout and once-filter around a normal call? How much code does it save? On Wed, Oct 31, 2012 at 4:48 AM, Alexey Kupershtokh < alexey.kupersht...@gmail.com> wrote: > Here it is: https://github.com/AlexeyKupershtokh/node-cand

[nodejs] Re: process.env - documentation?

2012-10-31 Thread Jorge
On 31 oct, 17:26, Scott Elcomb wrote: > On Wed, Oct 31, 2012 at 10:59 AM, Jorge > > wrote: > > On Oct 31, 2:04 pm, Bgsosh wrote: > >> Hi, I'm tring to understand the structure of the process.env object, but > >> the online docs just say 'An object containing the user environment. See > >> enviro

[nodejs] Re: [ANN] jsmc - Minecraft server written in Node

2012-10-31 Thread Roly Fentanes
cool. can't wait to try it. On Wednesday, October 31, 2012 5:31:13 AM UTC-7, Conrad Pankoff wrote: > > Hey noders! > > Over the weekend/first part of this week I've started writing a Minecraft > server entirely in JavaScript, to experiment with different types of > applications in node. It's bee

Re: [nodejs] Re: process.env - documentation?

2012-10-31 Thread Scott Elcomb
On Wed, Oct 31, 2012 at 10:59 AM, Jorge wrote: > On Oct 31, 2:04 pm, Bgsosh wrote: >> Hi, I'm tring to understand the structure of the process.env object, but >> the online docs just say 'An object containing the user environment. See >> environ(7).' >> >> I can't find 'environ(7)' (whatever that

Re: [nodejs] NodeJS Runtime for Chrome

2012-10-31 Thread Tim Caswell
On Wed, Oct 31, 2012 at 10:44 AM, Arunoda Susiripala wrote: > Yes. I browserify does it. The video show's that. But what I suggest is it > will be cooler, we can bundle all the Node Core (if possible) into a single > JS file which using Chrome new APIS. It's not possible to take the JS in node as

[nodejs] Re: process.env - documentation?

2012-10-31 Thread Jorge
On Oct 31, 2:04 pm, Bgsosh wrote: > Hi, I'm tring to understand the structure of the process.env object, but > the online docs just say 'An object containing the user environment. See > environ(7).' > > I can't find 'environ(7)' (whatever that is!).  Is this documented > somewhere? Type this in t

Re: [nodejs] NodeJS Runtime for Chrome

2012-10-31 Thread Arunoda Susiripala
Yes. I browserify does it. The video show's that. But what I suggest is it will be cooler, we can bundle all the Node Core (if possible) into a single JS file which using Chrome new APIS. What are the primitives which chrome is not possible to do? I have not much experience in Node Core. And I'm r

Re: [nodejs] Re: somewhat OT: creating a lookup hash in JS

2012-10-31 Thread Rick Waldron
On Tue, Oct 30, 2012 at 7:02 PM, Trevor Norris wrote: > To supplement what mscdex has already posted, here are two more articles: > > http://dailyjs.com/2012/10/15/preparing-for-esnext/ > https://brendaneich.com/2012/10/harmony-of-dreams-come-true/ > > You'l want to check out Set's. Enable them wi

Re: [nodejs] NodeJS Runtime for Chrome

2012-10-31 Thread Tim Caswell
On Wed, Oct 31, 2012 at 10:03 AM, Arunoda Susiripala wrote: > Hi, > > I think with chrome we really don't need to much worry security model. Since > chrome will take care of it. > What we actually need it set of wrappers for the core node APIs. > > Yes. we will not have to use npm projects with c/

Re: [nodejs] Socket.io, answer WELL, don't lock.

2012-10-31 Thread Martin Cooper
On Wed, Oct 31, 2012 at 7:31 AM, Andreas Backx wrote: > I'm sorry for the attitude, but I didn't even know what a mailing list is. I > found it through Google after about 40min On the Node.js home page, the Community link says "Mailing lists, blogs, and more". Clicking on it takes you to a page w

Re: [nodejs] NodeJS Runtime for Chrome

2012-10-31 Thread Arunoda Susiripala
Hi, I think with chrome we really don't need to much worry security model. Since chrome will take care of it. What we actually need it set of wrappers for the core node APIs. Yes. we will not have to use npm projects with c/c++ add-ons, but still we can you alot, as mentioned in the video using b

Re: [nodejs] NodeJS Runtime for Chrome

2012-10-31 Thread P. Douglas Reeder
The video from the Chrome team is on using Browserify. -- 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] NodeJS Runtime for Chrome

2012-10-31 Thread Roger WANG
Arunoda Susiripala writes: > Hi Guys, > > Look at this amazing project: https://github.com/arunoda/chrome-node If you're interested in calling Node from DOM, here is another project worth to check: https://github.com/rogerwang/node-webkit It's based on Chromium and Node. > with the reference

Re: [nodejs] Re: Socket.io, answer WELL, don't lock.

2012-10-31 Thread Dan Milon
Personally I can't help you with that issue, but you might be luckier if you post this on the socket.io mailing list. https://groups.google.com/forum/?fromgroups#!forum/socket_io On 10/31/2012 04:32 PM, Andreas Backx wrote: > Also, why isn't it a bug then? I've never seen someone else have it. I

[nodejs] Re: Socket.io, answer WELL, don't lock.

2012-10-31 Thread Andreas Backx
Also, why isn't it a bug then? I've never seen someone else have it. I can install it fine on another machine. -- 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 th

Re: [nodejs] Socket.io, answer WELL, don't lock.

2012-10-31 Thread Andreas Backx
I'm sorry for the attitude, but I didn't even know what a mailing list is. I found it through Google after about 40min and I also didn't know much about the path variable. Op woensdag 31 oktober 2012 15:22:29 UTC+1 schreef Dan Milon het volgende: > > You didnt post any issues, but posted a "plz

Re: [nodejs] Socket.io, answer WELL, don't lock.

2012-10-31 Thread Dan Milon
You didnt post any issues, but posted a "plz help me" question on node's issue tracker. Issues are bugs/unexpected behaviour/new features/proposals, not questions. That's why there's this mailing list for questions/discussions, but this attitude wont get you a long way. danmilon. On 10/31/2012 0

Re: [nodejs] NodeJS Runtime for Chrome

2012-10-31 Thread Tim Caswell
Neat idea, but it's certainly not new. The hard part is actually making it work and finding a way to combine node's super open security model with that required to run in a web browser. If you just want to make desktop apps using nodejs + chrome's webkit the appjs and node-webkit projects are pre

Re: [nodejs] NodeJS Runtime for Chrome

2012-10-31 Thread Trygve Lie
Is this related to this from the Chrome team (video released yesterday): http://www.youtube.com/watch?v=gkb_x9ZN0Vo I've not have time to seen the video yet. Trygve On Wed, 2012-10-31 at 19:36 +0530, Arunoda Susiripala wrote: > Hi Guys, > > > Look at this amazing project: https://github.com

[nodejs] Socket.io, answer WELL, don't lock.

2012-10-31 Thread Andreas Backx
I have been posting 2 issues on the nodejs GitHub page and both of them people reply to like do this, do this without explanation and lock the thread. Really? https://github.com/joyent/node/issues/4222 Answer the question and don't be like oh no this doesn't belong here or whatever, I try Googl

Re: [nodejs] Full HD Video Streaming

2012-10-31 Thread Carlos A. Carnero Delgado
Hi, On Wed, Oct 31, 2012 at 8:46 AM, Phoscur wrote: > My question is now, is it even possible yet? Without Flash? Do I have to > convert my .mkv files? Targeting mobile devices, I might even need realtime > codec conversions? > Which libraries might be interesting for me? Have you tried this? ht

Re: [nodejs] Full HD Video Streaming

2012-10-31 Thread Tim Caswell
I stream h264 over vanilla http. As long as you implement range header support, most streaming players are able to seek and play streaming. The code I use for my in-lan movie streamer is at: https://github.com/creationix/movies I use makemkv when I need to rip dvd's or blue ray disks, and I use

[nodejs] NodeJS Runtime for Chrome

2012-10-31 Thread Arunoda Susiripala
Hi Guys, Look at this amazing project: https://github.com/arunoda/chrome-node with the reference of running node in chrome - http://www.youtube.com/watch?v=gkb_x9ZN0Vo&feature=g-all-lsb Cheers. -- Arunoda Susiripala @arunoda https://github

Re: [nodejs] [ANN] jsmc - Minecraft server written in Node

2012-10-31 Thread Sotonin
awesome idea, nice job! On Wed, Oct 31, 2012 at 8:19 AM, Anand George wrote: > Fine. Works now. > > > On Wed, Oct 31, 2012 at 6:42 PM, Conrad Pankoff wrote: > >> Oops! It should be there now, I hadn't actually published to NPM yet. >> >> >> On Thursday, 1 November 2012 00:08:41 UTC+11, node-code

[nodejs] Full HD Video Streaming

2012-10-31 Thread Phoscur
Hi Guys, I have a small hobby project to create a nice album for my films I have stored on my computer (and servers). Besides loading information from the internet (such as from IMDb) into a nice HTML UI, I'd like to be able stream the films. My question is now, is it even possible yet? Witho

[nodejs] Re: process.env - documentation?

2012-10-31 Thread Adam Brady
http://linux.die.net/man/7/environ On Thursday, November 1, 2012 12:04:59 AM UTC+11, Bgsosh wrote: > > Hi, I'm tring to understand the structure of the process.env object, but > the online docs just say 'An object containing the user environment. See > environ(7).' > > I can't find 'environ(7)'

[nodejs] A web server based on Dojo + Nodejs

2012-10-31 Thread Nate Wang
Hi guys, Just being interested at Dojo and NodeJS, I started a project to build a web server based on Dojo running on NodeJS last year. Recently I found that Dojo has more and more support for NodeJS. So I picked it up and made it easier to use. Now it is available on Github at: https://github

Re: [nodejs] HTTP Client

2012-10-31 Thread Richard Rodger
Request is the only one that I have used, and it has worked very well for me Sent from my iPhone On 31 Oct 2012, at 10:53, Ismael Gorissen wrote: > Hi Richard, > > Thank for this fast response ! > > I saw that I forgot the > req.end(); > at the end of my request to really send the request to

Re: [nodejs] process.env - documentation?

2012-10-31 Thread SL
Ok, thanks! Would be good if someone could clarify that in the docs. On 31 October 2012 14:08, Arnout Kazemier wrote: > http://en.wikipedia.org/wiki/Environment_variable > > It's just an object that contains all your env. variables. > > On Wednesday 31 October 2012 at 14:04, Bgsosh wrote: > > H

Re: [nodejs] [ANN] jsmc - Minecraft server written in Node

2012-10-31 Thread Anand George
Fine. Works now. On Wed, Oct 31, 2012 at 6:42 PM, Conrad Pankoff wrote: > Oops! It should be there now, I hadn't actually published to NPM yet. > > > On Thursday, 1 November 2012 00:08:41 UTC+11, node-code wrote: > >> Get an error >> >> 'jsmc' is not in the npm registry >> >> On Wed, Oct 31, 201

Re: [nodejs] [ANN] jsmc - Minecraft server written in Node

2012-10-31 Thread Conrad Pankoff
Oops! It should be there now, I hadn't actually published to NPM yet. On Thursday, 1 November 2012 00:08:41 UTC+11, node-code wrote: > > Get an error > > 'jsmc' is not in the npm registry > > On Wed, Oct 31, 2012 at 6:26 PM, Alan Hoffmeister > > > wrote: > >> Really nice and itersting work. >> G

Re: [nodejs] [ANN] jsmc - Minecraft server written in Node

2012-10-31 Thread Anand George
Get an error 'jsmc' is not in the npm registry On Wed, Oct 31, 2012 at 6:26 PM, Alan Hoffmeister wrote: > Really nice and itersting work. > Good job! > > -- > Att, > Alan Hoffmeister > > > 2012/10/31 Conrad Pankoff : > > Hey noders! > > > > Over the weekend/first part of this week I've started

Re: [nodejs] process.env - documentation?

2012-10-31 Thread Arnout Kazemier
http://en.wikipedia.org/wiki/Environment_variable It's just an object that contains all your env. variables. On Wednesday 31 October 2012 at 14:04, Bgsosh wrote: > Hi, I'm tring to understand the structure of the process.env object, but the > online docs just say 'An object containing the user

[nodejs] process.env - documentation?

2012-10-31 Thread Bgsosh
Hi, I'm tring to understand the structure of the process.env object, but the online docs just say 'An object containing the user environment. See environ(7).' I can't find 'environ(7)' (whatever that is!). Is this documented somewhere? Thanks -- Job Board: http://jobs.nodejs.org/ Posting gu

Re: [nodejs] [ANN] jsmc - Minecraft server written in Node

2012-10-31 Thread Alan Hoffmeister
Really nice and itersting work. Good job! -- Att, Alan Hoffmeister 2012/10/31 Conrad Pankoff : > Hey noders! > > Over the weekend/first part of this week I've started writing a Minecraft > server entirely in JavaScript, to experiment with different types of > applications in node. It's been surp

[nodejs] [ANN] jsmc - Minecraft server written in Node

2012-10-31 Thread Conrad Pankoff
Hey noders! Over the weekend/first part of this week I've started writing a Minecraft server entirely in JavaScript, to experiment with different types of applications in node. It's been surprisingly easy, with the help of a couple of support libraries I wrote for dealing with binary stuff. Ada

[nodejs] [ANN] node-candle module for callbacks that are freed either by resolving or timing out

2012-10-31 Thread Alexey Kupershtokh
Here it is: https://github.com/AlexeyKupershtokh/node-candle it's similar to: https://github.com/coolaj86/futures/tree/v2.0/future and https://github.com/temsa/addTimeout to some extent, except that the callbacks are able to free in my case allowing to avoid leaks. As an yet another example, if

[nodejs] Re: looking for a ORM framework with redis

2012-10-31 Thread José F . Romaniello
technically speaking "an ORM for redis" is incorrect at least. ORM means Object to Relational mapping and redis is not relational. Usually an ORM deals with things like mapping an object model and its relationship (like a composition, inheritance, collections of objects and values, etc) to a re

Re: [nodejs] HTTP Client

2012-10-31 Thread Ismael Gorissen
Hi Richard, Thank for this fast response ! I saw that I forgot the > req.end(); at the end of my request to really send the request to the server, now it's working !! I'll also try this request module, thank you for this link! you know this module too ? https://github.com/automatthew/shred 2

Re: [nodejs] HTTP Client

2012-10-31 Thread Richard Rodger
Hi Ismael, Your best bet is to use mikael's request module which has an easy-to-use API: https://github.com/mikeal/request Also, have you validated that the server is working as expected using curl etc. Richard Sent from my iPhone On 31 Oct 2012, at 10:39, Ismael Gorissen wrote: > Hi, > >

[nodejs] HTTP Client

2012-10-31 Thread Ismael Gorissen
Hi, I want to execute some codes every hour, so I used a module for nodejs called CRON, it works perfectly ! But now I'm facing an issue. I need to make a HTTP request to a server with only an url, and this server must respond with a json object (because json is define in the url). But when I'