[00:00] xeodox: tjholowaychuk: I did var allparams = <%= locals %>;
[00:00] mraleph has joined the channel
[00:00] tjholowaychuk: uhh
[00:00] xeodox: Do I have to parse it?
[00:00] xeodox: JSON. something?
[00:00] tjholowaychuk: i dont know what you are doing
[00:00] tjholowaychuk: generating js from a template?
[00:00] chrislorenz: To much around with a node.js blogging engine where should I look. I know wheat seems decent, should I just stick with that?
[00:00] tjholowaychuk: or something?
[00:00] chrislorenz: muck*
[00:00] Ecce has joined the channel
[00:01] duncanbeevers: xeodox: Just res.render('myTemplate', { params: params })
[00:01] xeodox: tjholowaychuk: I want an object of all my local variables, set to "allparams"
[00:01] tjholowaychuk: <% var allparams = locals %>
[00:01] tjholowaychuk: var allparams <%= locals %> will output a string
[00:01] tjholowaychuk: that doesnt make sense
[00:02] tjholowaychuk: unless you are trying to generate js
[00:02] tjholowaychuk: not sure what your intention is
[00:03] xeodox: tjholowaychuk: I'm passing local params to my template. But I want my extenral js files to be able to access those variables. So, I'm setting all those variables to a variable that the extenral js files can asccess
[00:03] xeodox: get it lol?
[00:03] tjholowaychuk: client-side js?
[00:03] xeodox: yes
[00:03] tjholowaychuk: k lol
[00:03] tjholowaychuk: i wouldn't call it "external js"
[00:04] tjholowaychuk: but ok that makes more sense
[00:04] baoist has joined the channel
[00:04] tjholowaychuk: then yes you need to JSON.stringify() it
[00:04] xeodox: In my external html template, I have ?
[00:27] gmanika: his clients are not web clients, if I understood correctly
[00:27] sinke: sub.. i have client node and one server node, where to put script? :)
[00:27] gmanika: more like blank-slate node servers that contact a central node and downloads the code it needs to run
[00:27] sinke: gmanika.. exactly
[00:27] gmanika: or puppet-within-node
[00:28] lemon-tree has joined the channel
[00:28] sinke: i need it for data synchronisation between different 3dparty apps
[00:28] SubStack: why do you need to use node for that?
[00:28] tjholowaychuk: sounds lovely and very secure
[00:29] sinke: because client can be any computer
[00:29] jeromegn has joined the channel
[00:29] gmanika: sinke: the usual way of doing that is using puppet/git like someone said above before I /cleared
[00:29] xeodox: tjholowaychuk: I'm using express-expose and I have this: res.expose('var abc = "123"'); res.render('home',localparams); .... in my HTML template I have this: alert(abc); But it says ReferenceError?
[00:29] duncanbeevers: I guess it really does sound like puppet-within-node, but without all the other systems stuff configuration management tools provide.
[00:30] sinke: gmanika, im sorry im from windows world , puppet-git sounds strange to me :)
[00:30] tjholowaychuk: ah
[00:30] tjholowaychuk: windows
[00:30] tjholowaychuk: that explains it :p
[00:30] sinke: :)
[00:31] gmanika: git is a source control thingie, puppet allows you to automate stuff to run on remote servers
[00:31] towski has joined the channel
[00:31] sinke: gmanika.. puppet for windows? ;)
[00:31] gmanika: that's what people use to distribute code to a bunch of servers and so on
[00:31] gmanika: I have no idea
[00:31] gmanika: I wouldn't touch Windows with a 100-foot pole
[00:31] tjholowaychuk: 15000-foot
[00:32] gmanika: well, any pole
[00:32] SubStack: node-botnet
[00:32] gmanika: :)
[00:32] duncanbeevers: http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows
[00:32] gmanika: it could use dnode to communicate between nodes, that's a huge market, substack
[00:33] sinke: os i os, solution is solution... and we are on #node.js , so , what is important is clients<->server node... :)
[00:33] duncanbeevers: There's just so much more that goes into provisioning a server than application code.
[00:34] sinke: dunc ,Puppet on Windows is currently in an experimental state :)
[00:34] SubStack: solving problems is more important than adherence to a particular tech stack
[00:35] sinke: hm, are you telling that having one node for code delivery is bad idea?
[00:35] gmanika: I don't think bad is the term, it's just unimplemented.
[00:35] sinke: so its only needed to be implemented :)
[00:35] SubStack: node-botnet
[00:35] gmanika: because there are other tools that do that
[00:36] tjholowaychuk: sinke: if you do it you better be very secure about it
[00:36] SubStack: it's an atypical use case
[00:36] tjholowaychuk: but i REALLY dont see the point of that
[00:36] SubStack: since usually you just use npm to distribute libs
[00:36] Aria has joined the channel
[00:36] SubStack: or git
[00:37] sinke: Sub, clients (real one) are not programmers
[00:37] sinke: download, install, get your pass, run it.. thats all
[00:37] dingomanatee: is node-archive still the best way to unzip files?
[00:38] sinke: think about telling clients to use npm, or git to install Skype :)
[00:40] philtor has joined the channel
[00:40] sridatta has joined the channel
[00:40] sinke: tjh, there is no problem with security
[00:41] sinke: or you mean "secure" like "sure" ? :)
[00:41] sinke: its late, english is not mine first language
[00:42] marcello3d has joined the channel
[00:42] baudehlo has joined the channel
[00:42] sinke: Sub, whats wrong with clientnode connect to one IP:port, sends log/pass, get code, eval it and proceed ... what
[00:43] etzman: sinke, are you assuming node is installed on each client system?
[00:43] unomi: sinke there is nothing wrong with it if you do it right
[00:43] sinke: yes
[00:43] SubStack: sinke: I just don't see why you can't distribute the code you need to the clients ahead of time
[00:43] sinke: etz, yes
[00:44] SubStack: using something like puppet that already works
[00:44] unomi: I do much the same for dynamically allocating resources between client servers
[00:44] etzman: yeah, then instead of doing a git pull like systems like haibu do to bootstrap and launch an app, you'd do your socket connection I guess and pull the code that way
[00:44] unomi: puppet is slow
[00:44] sinke: unomi, now you are talking :)
[00:44] unomi: well, not 'slow' but ..
[00:44] postwait has joined the channel
[00:44] xeodox: Is puppet easy to set up?
[00:44] sinke: etz, yes
[00:44] sinke: puppet dont work on windows, all clients are windows, i know i know
[00:44] hellp has joined the channel
[00:45] puffpio has joined the channel
[00:45] unomi: doesn't really matter if it is windows or not, why bother with puppet or chef if you don
[00:45] unomi: 't have to?
[00:45] sinke: all that client have to do is to click "install", come on, thats win users :)
[00:45] etzman: hmm, is node even working on windows right now? isn't that a work in progress?
[00:45] sinke: unomi... i said that node can do everything that is needed
[00:45] sinke: etz, working perfectly
[00:46] unomi: apparently it works 'ok' under cygwin, though I haven't tried
[00:46] sinke: it works even out of cygwin
[00:46] sinke: compiled with cygwin but uses cygwin.dll and just works
[00:47] gmanika: well, you are going to give your clients a INSTALL.EXE thingie which will have node in it, since node is not a part of Windows. Why not put the application itself in that installer?
[00:47] sinke: gmanika.. application changes
[00:47] unomi: oh this is for 'consumers'?
[00:47] sinke: unomi.. yes
[00:47] sinke: if it was for me, i will never ask a question :)
[00:47] unomi: I would say that this could run the risk of being reverse engineered
[00:48] sinke: everything can be reverse engineered, but in this way, little complicated
[00:48] unomi: ie, that others could hook into it and run arbitrary code - that said, plenty of apps do auto-update so clearly it is an acceptable risk for som
[00:49] sinke: dont think they could hook into it , main node server accepts few commands
[00:50] tjholowaychuk: over the wire you can do whatever you want
[00:50] unomi: its all fun and games till some one poisons the DNS cache
[00:50] gmanika: you could sign the code, problem solved
[00:50] sinke: if you can do whatever you want, all of this wont exists :)
[00:50] copongcopong has joined the channel
[00:51] gmanika: I don't see any problem here that is specific to node
[00:51] sinke: i can eval it?
[00:51] xeodox: tjholowaychuk: does express-expose work with EJS?
[00:51] tjholowaychuk: xeodox: anything yes
[00:51] gmanika: the problem is "how do I keep clients updated" which is best handled elsewhere
[00:51] gmanika: sinke: yes, go for it if you want to do that
[00:51] sinke: gmanika, clients are connected to server
[00:52] sinke: if they drops, they reconnect
[00:52] sinke: i have to push real time orders via that, so they need to be connected
[00:53] gmanika: you should look into a windows installer that knows how to check for updates, however
[00:53] gsmcwhirter has joined the channel
[00:54] bengourley has joined the channel
[00:54] sinke: gmanika.. which updates?
[00:55] Marak has joined the channel
[00:55] sinke: node will be one folder with node version that works... there are no node updates... everything else is from main server node
[00:56] baoist has joined the channel
[00:56] xeodox: tjholowaychuk: I put this simple expose in (http://pastebin.com/j8A08gib) but when I refresh the page, it doesn't alert me.
[00:56] briznad has joined the channel
[00:56] tjholowaychuk: xeodox: did you output the "javascript" variable in your template?
[00:56] sinke: installer will install node, start service, open iexplore(thats nice part) and point to localhost with nice little boxes (login&pass) :)
[00:57] sinke: everything else is "Please check your log file and/or call us because something went wrong" :D
[00:57] bengourley has left the channel
[00:58] isaacs has joined the channel
[00:58] austin has joined the channel
[00:58] xeodox: tjholowaychuk: yay that fixed it, thanks : <%- javascript %>
[00:59] polvero has joined the channel
[00:59] xeodox: BTW, theres a small typo in the readme (not that it matters) it should say require('express-expose') instead of require('expose');
[00:59] tjholowaychuk: ah, my bad
[00:59] sinke: btw, anyone saw something like Lucene in Node?
[01:00] austin: I'm having problems building with Cygwin; here's my log file: http://bit.ly/iOHYWY
[01:00] jhurliman: there is a solr library for node
[01:00] sinke: not library, connector... real thing :)
[01:01] jhurliman: ah, not myself no
[01:01] sinke: that will be a killer search engine
[01:02] chalaschek has joined the channel
[01:02] temp01 has joined the channel
[01:04] __tosh has joined the channel
[01:04] zackattack: How much is a smart, talented node developer??
[01:04] tjholowaychuk: 10 million dollars
[01:04] sinke: talented :)
[01:04] zackattack: $100/hour??
[01:04] sinke: why so much?
[01:05] tjholowaychuk: zackattack: contract or full time?
[01:05] zackattack: contract
[01:05] agrohe21 has joined the channel
[01:05] tjholowaychuk: then yeah at least that I would say
[01:05] zackattack: because i keep hiring idiots who are clearly inexperienced or unprofessional.... my latest hire informed me that he was "smoking a blunt" while working on the code
[01:05] zackattack: and the moron came up with an absolutely retarded implementation
[01:05] tjholowaychuk: i drink while i code some times
[01:05] tjholowaychuk: it happens
[01:05] tjholowaychuk: haha
[01:05] Marak: zackattack: is that now allowed? fuck
[01:06] unomi: zackattack, thats not a problem exclusive to Node.js
[01:06] sinke: why is important what he is doing when coding? :)
[01:06] Marak: being inexperienced and unprofessional never stopped me! :-)
[01:06] zackattack: because it was clearly affecting the quality of his work
[01:06] zackattack: that's why
[01:06] Marak: zackattack: in all fairness, he might have just been terrible anyway
[01:06] sinke: you never know what work is if he dont do that :D
[01:07] sinke: however, im too old and i quit with all of that, also im not a coder.. so .. 150$/h is ok :D
[01:08] ryan0x2 has joined the channel
[01:09] tjholowaychuk: might be tough to find someone decent that enjoys contract work
[01:09] sinke: also its tough to find someone decent who looks for people for contract work ;)
[01:10] q_no has joined the channel
[01:10] EvilPacket has joined the channel
[01:11] xeodox: tjholowaychuk: do you live in the bay area?
[01:11] tjholowaychuk: nope
[01:11] tjholowaychuk: canada
[01:11] sinke: dating channel ? :)
[01:11] sinke: sorry... its late here :)
[01:11] [[zz]] has joined the channel
[01:12] xeodox: But LearnBoost is in SF, right?
[01:12] tjholowaychuk: yup
[01:12] sinke: but wires doesnt care where something is :)
[01:13] bartt has joined the channel
[01:13] Aria: Unless someone's counting the bits between here and there.
[01:13] sinke: whats the time over there (thats mass question)
[01:13] sinke: aria.. bits$/h ? :)
[01:14] Aria: Exactly!
[01:14] sinke: its not hard to push many bits, problem is if they need to have meaning on the other side :)
[01:14] zcopley has joined the channel
[01:15] a|i: is using socket.send() more efficient than sending an ajax request?
[01:15] sinke: thats a nice question :)
[01:15] sinke: define efficient
[01:15] xeodox: tjholowaychuk: Express-expose literally prints all of my locals in the source code. Is there a way for "external js files" to access locals without having them all printed out? (Right now I put my js at the top of my html template, and I use <%= %> as variables, so I choose what I want on the fly)
[01:16] marcuswestin has joined the channel
[01:16] xeodox: I mean, are there alternative good practices
[01:16] tjholowaychuk: that's how they are exposed...
[01:16] lakin has joined the channel
[01:16] tjholowaychuk: via