Ringobot log - RingoJS IRC channel: #ringojs on irc.freenode.net
2010-06-02:
[8:27] <hannesw> cleaned up roadmap[8:44] <hannesw> rist, how's your little ringo app going?
[8:45] <rist> hi
[8:45] <hannesw> hi
[8:45] <rist> just in the process of building a mongodb storage layer
[8:45] <hannesw> i really value first impressions, even more with the helma background, that's why i'm asking
[8:45] <hannesw> :)
[8:46] <hannesw> did you use sergi's narwhal mongodb package?
[8:46] <hannesw> http://github.com/sergi/narwhal-mongodb
[8:46] <hannesw> i tried to, but didn't have much luck
[8:46] <hannesw> but it might be better than starting from scratch
[8:50] <rist> yes i'm basically using the berkely package and replace the berkely stuff with mongodb stuff
[8:50] <hannesw> oh wow, interesting approach :)
[8:51] <rist> mm - but the easiest way for me
[8:51] <rist> this way I see what methods I have to implement and how they are interconnected
[8:51] <hannesw> don't get me wrong, i think it's a great approach
[8:52] <hannesw> i'm very interested in what comes out of that
[8:52] <hannesw> let me know if you need help with it
[8:57] <rist> i'm alreday able to store objects - so let's see how it works out
[8:57] <hannesw> cool - consider sharing the code on github if your employer allows you to :)
[9:01] <gmosx> hey?
[9:02] <gmosx> hannesw: I use this to convert a Java Date to a JavaScript Date:
[9:02] <gmosx> return new Date(value.getTime());
[9:02] <gmosx> is this not required in Ringo?
[9:02] <gmosx> ie Ringo also auto converts Dates?
[9:02] <hannesw> i think ringo does not automatically convert dates - let me check
[9:04] <gmosx> most probably not, because new Date(value.getTime()); works :(
[9:04] <hannesw> no, you have to manually convert dates
[9:04] <gmosx> ok, thanks
[10:08] <hannesw> i extended the /philosophy page quite a bit
[10:08] <hannesw> http://ringojs.org/wiki/Philosophy/
[10:08] <hannesw> is it too long now?
[10:09] <hannesw> i think what we previously had there (now under "random links") did not really merit the title "philosophy"
[10:25] <robi42> i think it's a great step towards positioning ringo
[10:25] <gmosx> nice text yeah...
[10:26] <gmosx> hannesw: when you find time watch this: http://www.youtube.com/watch?v=vm-RdH_eWK4
[10:26] <hannesw> i will!
[10:26] <oberhamsi> hannesw, very nice!
[10:26] <gmosx> there are some tips how the grails and jruby guys improved performance on Appengine... perhaps
[10:26] <hannesw> off for lunch now
[10:26] <gmosx> you can make some changes in rhino as well...
[11:18] <hannesw> just applied to appengine channel api access
[11:41] <hannesw> any github ribbon fans out there?
[11:41] <hannesw> http://github.com/blog/273-github-ribbons
[11:41] <hannesw> should we add one on ringojs?
[11:41] <hannesw> .org
[11:47] <oberhamsi> i like it for the one-click-to-github
[11:48] <oberhamsi> maybe remove the Code page & menuitem and just add ribbon
[11:58] <robi42> +1 for adding a github ribbon :)
[12:00] <hannesw> ok, i'll see if it fits without moving logo/menu
[12:52] <hannesw> ok, github ribbon is up
[12:52] <hannesw> http://ringojs.org/wiki/
[12:52] <hannesw> i went with green right corner after careful evaluation
[13:11] <hannesw> earl do you want help deploying ringobot on ringojs.org?
[13:11] <hannesw> i could help
[13:11] <hannesw> just let me know
[13:12] <hannesw> (eager to get it running, and maybe do some further site integration)
[14:11] <gmosx> the ribbon is cool...
[14:25] <gmosx> hannesw: can we have a version of ringo-admin install that installs the package in the current working directory instead of ringo/packages? that would be useful in servlet deployments that include the pacakages dir in WEB-INF
[14:47] <rist_> i'm currently trying to implement a mongodbstore and to do that I kind of hack around in the berkelydbstore - and just found out (the hard way) that I should implement my own getProperties() method - and placed it (e.g. like in the googlestore) as a function at the bottom of the js file but I still get "java.lang.RuntimeException: Store does not implement 'getProperties' method"
[14:47] <rist_> am I missing anything
[14:53] <earl> googlestore does some trickery
[14:54] <earl> afaict, you have to ensure that getProperties is available as method of your "Entity"
[14:54] <earl> see googlestore.js:31 (and :12) for the trickery i
[14:55] <earl> am talking about
[14:56] <earl> that basically means, that all module-level functions of googlestore are available as methods on the entity proxy
[14:56] <robi42> rist_, are you sure you've got an appropriate `defineEntity` impl.?
[14:56] <rist_> ok
[14:57] <rist_> I have this one (take from berkelydb)
[14:57] <rist_> this.defineEntity = function(type) {
[14:57] <rist_> var ctor = registry[type];
[14:57] <rist_> if (!ctor) {
[14:57] <rist_> ctor = registry[type] = Storable.defineEntity(proxy, type);
[14:57] <rist_> ctor.all = bindArguments(all, type);
[14:57] <rist_> ctor.get = bindArguments(get, type);
[14:57] <rist_> ctor.query = bindArguments(query, type);
[14:57] <rist_> }
[14:57] <rist_> return ctor;
[14:57] <rist_> };
[14:57] <earl> and proxy has a getProperties?
[14:58] <robi42> btw, proxy's the store there, so to speak
[14:58] <robi42> see http://ringojs.at/wiki/Store_API/
[14:59] <rist_> ah ok - now my getProperties method gets called
[14:59] <robi42> great
[15:01] <earl> hannesw_: i'll get back to you tomorrow, re deploying ringobot
[15:01] <earl> hannesw_: no time atm :)
[18:46] <jfranklin> Are there any known issues trying to set up ringoJS using Maven on a windows box?
[18:48] <robi42> jfranklin, building ringojs using maven should be basically fine (fyi: we're using a patched rhino)
[18:52] <jfranklin> which version of Rhino are you using? Did you patch it?
[18:54] <robi42> it's basically a cvs head version patched by us
[19:02] <jfranklin> alright, thanks.
[19:02] <hannesw> robi42 jfranklin it isn't patched
[19:03] <hannesw> just cvs head snapshot
[19:03] <hannesw> we used to have patches, not anymore
[19:03] <robi42> ah, even better :)
[19:03] <hannesw> indeed
[19:03] <jfranklin> and it has no known problems running on windows?
[19:04] <jfranklin> ok, thanks very much.
[19:04] <hannesw> it may get less testing on windows than on other platforms
[19:04] <hannesw> but it should basically be working
[19:05] <jfranklin> ok
[19:10] <hannesw> ringobot is cool
[19:11] <hannesw> i think i'm gonna write a comet extension so new messages are streamed to the bot log page
[19:12] <hannesw> or some such nonsense :)
[19:20] <robi42> +++1 :)
