Logs for the RingoJS IRC channel, as logged by ringostarr.

2010-10-08

[00:12] <mcepl> yes, hmm ... so this http://fpaste.org/VXCx/ is my attempt for fixed onlyhttps middleware, but I get http://fpaste.org/GdAs/ when I try to run it.

[00:22] <hannesw> mcepl: looks like the middleware function itself is returned as response

[00:22] <hannesw> you have to call the middleware in config.js

[00:23] <hannesw> ...middleware(...) instead of just middleware

[00:23] <mcepl> I believe I do http://fpaste.org/jXsN/

[00:24] <hannesw> hm, strange

[00:24] <mcepl> I hoped to copy from basicauth

[00:25] <hannesw> ah, you have anohter onlyhttps in there

[00:25] <hannesw> (two down)

[00:25] <hannesw> middleware debugging should be easier...

[00:26] <mcepl> shut

[00:26] <mcepl> thanks

[00:27] <mcepl> yeah, now it works ... thanks.

[00:27] <hannesw> cool

[00:27] <mcepl> well, now to debug posting Atom entries :(

[00:42] <mcepl> hannesw: how to get String from ByteString (I need to do req.input.read().replace() for that new XML() call)?

[00:42] <hannesw> bytestr.decodeToString()

[00:42] <hannesw> bytestr.decodeToString("utf-8")

[00:43] <hannesw> or wrap req.input in a TextStream

[00:43] <hannesw> then you get a string right away

[00:43] <hannesw> well i guess bytestr.decodeToString(request.charset) will do

[00:44] <mcepl> thanks

[00:48] <mcepl> cool, I have now working atomaction.js; next time ... fixing the Atom skin! For now, good night!

[06:59] <paulbaumgart> hey

[07:00] <paulbaumgart> is there a way to run a subprocess on ringo?

[08:55] <hannesw> paulbaumgart: yes: http://ringojs.org/api/master/ringo/subprocess/

[09:35] <paulbaumgart> hannesw: great, thanks

[09:41] <paulbaumgart> is this still up-to-date? http://ringojs.org/wiki/Tusk/

[09:41] <paulbaumgart> it can't find the tusk module, apparently

[09:41] <paulbaumgart> Wrapped java.io.IOException: Resource "tusk" not found or not readable

[10:17] <hannesw> paulbaumgart: yes, it should still be working

[10:17] <hannesw> you have to install narwhal first to use tusk

[10:17] <hannesw> ringo-admin install tlrobinson/narwhal

[10:18] <hannesw> or 280north/narwhal

[10:18] <paulbaumgart> yeah, so I added that file.js wrapper, did the install

[10:18] <paulbaumgart> and have narwhal in the packages dir

[10:21] <paulbaumgart> and ringo's bin dir is first on my $PATH

[10:25] <hannesw> paulbaumgart: and is it working?

[10:25] <paulbaumgart> no

[10:25] <hannesw> to be honest, I haven't used it in a while

[10:25] <paulbaumgart> that same error

[10:25] <paulbaumgart> ok

[10:27] <hannesw> I'll try

[10:28] <hannesw> ok, same error. I'll look into it

[10:29] <paulbaumgart> thanks

[10:30] <hannesw> I'm not sure how require("tusk") is supposed to work, i can't find a top-level "tusk" module anyhwere

[10:30] <hannesw> ah, it seems to work with tlrobinson/narwhal

[10:31] <hannesw> ringo-admin install -f tlrobinson/narwhal

[10:32] <hannesw> but there are a lot of things broken, so it's not really working

[10:32] <hannesw> well tusk list is working

[10:33] <paulbaumgart> hannesw: alright, great, thanks

[10:33] <hannesw> paulbaumgart: not sure we'll keep the narwhal compatibility around

[10:33] <hannesw> are you interested in using it?

[10:33] <paulbaumgart> yeah

[10:34] <hannesw> i guess it would require a bit of effor to bring it up to date

[10:34] <paulbaumgart> I have some projects I'd like to try and get running on ringo

[10:34] <hannesw> especially the file/fs thing

[10:34] <paulbaumgart> because it's so much more performant than narwhal-rhino

[10:34] <hannesw> i wish narwhal would update their file module to latest spec...

[10:35] <hannesw> that would make it a lot easier.

[10:35] <hannesw> we already have a lot of narwhal compatibility hooks in ringo

[10:36] <paulbaumgart> the file/fs thing doesn't seem too difficult

[10:36] <paulbaumgart> mostly a matter of renaming a few functions, yeah?

[10:37] <hannesw> yes

[10:38] <paulbaumgart> ok, I'll what I can hack together tomorrow

[10:38] <paulbaumgart> thanks for your help

[10:38] <hannesw> cool!

[12:11] <hannesw> installed basic simplesite infrastructure on ringojs.org

[12:11] <hannesw> http://ringojs.org/index.md

[12:12] <hannesw> this will serve static files (including markdown-encoded home page + friends) soon

[12:13] <hannesw> I also forked simplesite to the ringo account on github:

[12:13] <hannesw> http://github.com/ringo/simplesite

[12:13] <botic> oh nice! how much code is from david(?)'s praktikum?

[12:14] <hannesw> look at the commits, it reflects that pretty well: http://github.com/ringo/simplesite/commits/master/

[12:15] <botic> argh, my fail... old svn habits, i have to move on the the git world

[12:30] <hannesw> hm, have to think about how to set navigation sidebar in simplesite

[12:30] <hannesw> some file naming convention, i guess

[17:46] <hannesw_> heavy shifting on ringojs.org today :)

[17:46] <hannesw_> simplesite is up and running, there's a test page here:

[17:46] <hannesw_> http://ringojs.org/test.md

[17:46] <hannesw_> the navigation bar on that page is a rough idea of what I think could be in the "static" area of the site

[17:47] <hannesw_> and the tabs on top would become |Home| |Wiki| |Docs| |Demo|

[17:47] <hannesw_> let me know what you think

[17:49] * mcepl has to admit he doesn't see much difference with http://ringojs.org/wiki/

[17:53] <earl> hannesw_: fine with me, but please find a way to get rid of the .md in the urls :)

[18:10] <hannesw_> earl really?

[18:10] <hannesw_> it's a bit uncommon i guess

[18:10] <hannesw_> we thought about that when we started, wouldn't be hard to do

[18:11] <daian> i'm not sure why you'd want to get rid of the .md

[18:11] <daian> unless it breaks things in some browser

[18:11] <daian> *er, why you'd need to get rid of .md

[18:13] <hannesw_> btw, the filter input field on http://ringojs.org/api/master/ gets the focus now when the page loads

[18:13] <hannesw_> i personally like that

[23:17] <mcepl> I have E4X mystery. On http://fpaste.org/SIsp/ I have a snippet of code and output to logs. I get a variable entry, which is by all information XML object. However, then I am not able to get a piece of information from it. Any ideas, what I am doing wrong?

[23:56] <mcepl> I have E4X mystery. On http://fpaste.org/SIsp/ I have a snippet of code and output to logs. I get a variable entry, which is by all information XML object. However, then I am not able to get a piece of information from it. Any ideas, what I am doing wrong?