Ringobot log - RingoJS IRC channel: #ringojs on irc.freenode.net
2010-06-09:
[7:48] <oberhamsi> can we switch the skeleton html to modern html, this <!DOCTYPE html PUBLIC "-//W3C//DTD XHTM ... annoys me everytime i see it[7:48] <oberhamsi> i think i did that for ringo-wiki once
[7:49] <hannesw> oberhamsi yes, go for it
[7:49] <oberhamsi> will do!
[7:51] <rist> hi hannesw - I read on the ml you had problems getting mongodb running - did you solve that problem?
[7:51] <hannesw> rist not mongodb itself, only the mongodb package from sergi
[7:52] <hannesw> using the java api directly via ringo shell worked fine
[7:52] <rist> you weren't able to connect to your mongodb instance
[7:52] <rist> ah ok
[7:52] <rist> interesing
[7:52] <hannesw> don't know, probably had something messed up
[7:57] <hannesw> rist, your map reduce commit made me curious
[7:57] <hannesw> is that some feature in in mongodb, or of your own making?
[8:08] <rist> mongodb
[8:08] <rist> mongodb offers mapreduce
[8:09] <rist> and the map/reduce functions you push in are JS functions
[8:10] <rist> my main inspiration for the stuff I'm playing around currently is http://hummingbirdstats.com/
[8:10] <rist> that's a node.js/mongodb realtime webanalytics project
[8:11] <rist> (the demo isn't working at the moment - see http://vimeo.com/11613517)
[8:19] <hannesw> interesting!
[8:29] <oberhamsi> oh nice one
[8:31] <hannesw> oberhamsi inspiration for ositestats!
[8:31] <oberhamsi> :) indeed
[8:31] <hannesw> well you could steal the frontend :)
[8:31] <oberhamsi> when you read about map/reduce the first thing that comes to mind is some kind of stat cruncher
[8:32] <oberhamsi> .. though couchedb actually has a wiki page explaining why naive approach will fail
[8:32] <oberhamsi> still figuring out hummings db struct
[8:32] <hannesw> today's the deadline for jsconf.eu speaker proposals
[8:32] <hannesw> will submit something
[8:32] <hannesw> not sure what though :)
[8:32] <hannesw> any proposals?
[8:33] <oberhamsi> something that emphasizes how cool ringo is for webdev?
[8:33] <hannesw> yes.
[8:33] <oberhamsi> or you could even pull out the old helma and do a kind of post-mortem / lessons learnt
[8:33] <rist> twitter does their stats by a combination of scribe and hadoop
[8:35] <oberhamsi> hummin frontend is crazy cool
[8:35] <hannesw> is there a working live copy anywhere?
[8:36] <oberhamsi> i watched the vimeo
[8:37] <rist> the livedemo was working until recently
[8:37] <hannesw> ok. would love to see it live
[8:37] <rist> theers alyo another similar product
[8:38] <rist> http://chartbeat.com/demo2/#
[8:39] <hannesw> nice. we should have something like this :)
[8:40] <robi42> sexy (and lots of blinking) :)
[8:45] <gmosx> good morning!
[8:50] <hannesw> hi
[9:44] <ringostarr> be2f015 Hannes Walln?fer: Don't flush response stream but in forEach() but close it when done
[10:48] <hannesw> that canvas stuff in hummingbird seems really easy!
[10:54] <gmosx> what's hummingbird?
[10:57] <rist> http://hummingbirdstats.com/
[11:15] <oberhamsi> yeah i love canvas. it's super fast and has nice api (except font stuff)
[12:19] <hannesw> so - how to do per-webapp packages?
[12:19] <hannesw> should we addPackages() by default if the wep app directory contains a packages subdir?
[12:20] <hannesw> or have a exports.packages = [....]; declaration in config.js?
[12:20] <hannesw> or both?
[12:24] <hannesw> wouln't it be nice if ringo-admin create could create apps that have jquery (and maybe cometd) set up already?
[12:35] <gmosx> addPackages by default if packages exists
[12:36] <gmosx> exports.packages is nice as well though...
[12:36] <gmosx> no need for jquery though... lets keep ringo-admin simple...
[12:36] <gmosx> better add support for package catalogs to ringo-admin ;-)
[14:43] <oberhamsi> not so much fun of adding jquery or cometd to skeletons.. yet
[14:43] <oberhamsi> might shy away non-jquery users.. and look like ringo is married to jquery
[14:44] <oberhamsi> i'd rather wait and see what happens to clientside commonjs
[14:45] <oberhamsi> something like yabble .. integrated in ringo
[14:45] <oberhamsi> so i can do `ringo-admin install jquery` and clientside require('jquery')
[19:47] <oravecz> are there any conventions as to where bootstrap code should be placed in our apps?
[19:47] <oravecz> For example, I am looking for something that is analagous to the initServlet method
[20:21] <earl> oravecz: not sure, i guess it depends on what environment that bootstrap code needs
[20:22] <earl> you could place it directly in whatever launches your webapp (e.g. main.js)
[20:23] <earl> or you could place it in an extension, which gets serverStarted/serverStopped methods called appropriately
[20:23] <oravecz> my app is deployed in a more traditional servlet manner, so no main.js
[20:23] <oravecz> what are these extensions?
[20:23] <earl> basically just that
[20:23] <oravecz> but how are they wired in? docs or example?
[20:23] <earl> you place an exports.extensions = ['./ext'] in your config
[20:24] <oravecz> I'll check t out, thx
[20:24] <earl> export serverStarted/serverStopped from within the extension
[20:24] <earl> http://ringojs.org/wiki/Webapp_Extensions/
[20:25] <oravecz> hmmm, i wonder if these will be called if I am not using the server.js or daemon.js or any of that code that manually bootstraps jetty. I suppose not.
[20:25] <earl> possibly not, yes
[20:26] <earl> what are you using? JsgiServlet?
[20:27] <oravecz> yes
[20:27] <oravecz> in most ways, ringojs controllers are analagous to servlets, but a servlet has the concept of initialization that gets called when the server first loads the servlet.
[20:27] <oravecz> i guess the jsgi spec may have left that concept out
[20:27] <earl> well, i think setup is a bit beyond the scope of jsgi
[20:28] <oravecz> I'm adding database migration support to our ringojs and wanted to fire it off at server load
[20:28] <earl> i see
[20:29] <oravecz> I'll look at the jsgiservlet code and see if I can add a JS callback in the servlet init function.
