Camelia, the Perl 6 bug

IRC log for #mojo, 2013-08-16

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:17 dqw joined #mojo
00:29 cfedde joined #mojo
00:30 shmuel joined #mojo
00:35 memowe joined #mojo
01:00 memowe joined #mojo
01:04 keedi joined #mojo
01:32 k-man joined #mojo
01:33 k-man suppose i wanted to write a web store frontend to link to an accounting package, would mojo be a suitable tool for that?
02:02 d4rkie joined #mojo
02:04 shmuel k-man: probably yes
02:04 shmuel can you connect to the accounting package using Perl?
02:47 dsteinbrunner joined #mojo
03:17 keedi joined #mojo
03:28 preflex_ joined #mojo
03:44 StinkfooT joined #mojo
04:20 k-man shmuel, yes, well, i currently connect to the DB using DBI, but for read only purposes
04:21 k-man but i see no reason I couldn't write to it too - if I get the vendor to give me appropriate apis
04:27 jberger joined #mojo
04:29 mrphilov joined #mojo
04:39 dqw2 joined #mojo
04:44 hummeleBop joined #mojo
04:49 russum joined #mojo
05:17 KindOne joined #mojo
05:27 dqw joined #mojo
05:51 bearman joined #mojo
06:06 Britzel joined #mojo
06:23 dpetrov_ joined #mojo
06:27 basiliscos joined #mojo
06:32 hrupp joined #mojo
06:42 dotandimet joined #mojo
06:48 Vandal joined #mojo
06:51 ladnaV joined #mojo
07:13 dotandimet joined #mojo
07:39 zibi joined #mojo
07:45 arthas joined #mojo
07:47 yakudza joined #mojo
08:04 cosmincx joined #mojo
08:05 fhelmber_ joined #mojo
08:16 KindOne joined #mojo
08:25 denisboyun joined #mojo
08:27 KindOne joined #mojo
08:51 KindOne joined #mojo
08:58 basiliscos joined #mojo
09:09 basiliscos1 joined #mojo
09:21 KindTwo joined #mojo
09:44 bearman joined #mojo
09:45 bearman 'foo/:bar' :bar placeholder can be pick up either `stash' pr `param'
09:45 bearman 'foo/:bar' :bar placeholder can be pick up either `stash' pr `param'
09:57 moltar joined #mojo
10:04 buu Rawr
10:30 dsteinbrunner joined #mojo
10:30 zibi joined #mojo
10:36 maxhq joined #mojo
11:13 maxhq1 joined #mojo
11:42 bearman joined #mojo
11:46 dqw joined #mojo
11:52 mire joined #mojo
12:16 bearman Can't opendir(templates): Invalid argument  at C:/Perl/site/bin/../lib/Mojo/Home.pm line 66.
12:16 bearman what is wrong?
12:27 Vandal joined #mojo
12:28 bowtie_ joined #mojo
12:58 bluescreen joined #mojo
13:02 denis_boyun joined #mojo
13:08 russum joined #mojo
13:15 dotandimet joined #mojo
13:23 maxhq joined #mojo
13:27 gryphon joined #mojo
13:29 jberger joined #mojo
13:29 asarch joined #mojo
13:31 maxhq1 joined #mojo
13:43 Britzel_ joined #mojo
14:08 sri and github is down again :S
14:08 ruz joined #mojo
14:14 dqw joined #mojo
14:26 jontaylor joined #mojo
14:28 jontaylor I've got a routing condition working properly, which I assumed wouldn't be cached
14:28 jontaylor but the routing result is being cached
14:28 jontaylor my condition checks to see if the currently logged in user is an admin
14:29 jontaylor and if it is, it changes the namespace used for the route to an admin set of namespaces
14:29 jontaylor but if I hit this route as an admin
14:29 jontaylor then suddenly all none admins logged in get routes that way too
14:31 jontaylor http://pastebin.com/Ct5LPBgh
14:41 nic I may have misunderstood, but I thought you couldn't modify the routing table after the first hit
14:42 nic ie after the first hit, it stays static (or 'cached')
14:43 jontaylor Normally yeah, but the docs say "Note that this automatically disables the routing cache, since conditions are too complex for caching."
14:43 nic oh ok
14:44 nic have you looked at tests that use condiitions?
14:44 jontaylor browsing the source now, so i'll open up the tests too
14:46 morphi joined #mojo
15:01 Adura joined #mojo
15:23 tolid_air joined #mojo
15:43 mire joined #mojo
16:03 iskyee joined #mojo
16:08 dotandimet joined #mojo
16:15 delias joined #mojo
16:20 Adura joined #mojo
16:23 basiliscos joined #mojo
16:37 dvinciguerra joined #mojo
16:53 basic6_ joined #mojo
16:55 dotandimet joined #mojo
16:56 tolid_air joined #mojo
17:08 sri jontaylor: that's not what i meant when i wrote that
17:09 sri you can't *ever* change routes after the first request
17:09 sri there are other things caching
17:10 sri and when you look at the recipe, it clearly doesn't mention any exceptions http://mojolicio.us/perldoc/Mojolicio​us/Guides/Routing#Rearranging_routes
17:40 ryozi joined #mojo
17:44 xaka joined #mojo
17:46 iskyee joined #mojo
18:10 jzawodn joined #mojo
18:25 ladnaV joined #mojo
18:38 iskyee joined #mojo
18:42 d4rkie joined #mojo
18:43 delias joined #mojo
18:45 sigh joined #mojo
18:49 sigh howdy.  apache rewrites my url to execute cgi script, but then all mojo redirects expose this url to users.  how can i remove cgi script name from base url before dispatch?
19:03 StinkfooT joined #mojo
19:12 tianon sigh: http://mojolicio.us/perldoc/Mojol​icious/Guides/Cookbook#Rewriting
19:20 sigh tianon: thanks, was reading that, and am almost there...   i shift off the directory and cgi script name, but it leaves base->path = '//' for some reason..
19:25 Mike-PerlRecruiter_ joined #mojo
19:43 iskyee joined #mojo
19:46 good_news_everyone joined #mojo
19:46 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/z6z0Dg
19:46 good_news_everyone mojo/master 7ca1fa3 Sebastian Riedel: better examples for a few tag helpers
19:46 good_news_everyone left #mojo
20:53 duncanthrax joined #mojo
20:56 tolid_air joined #mojo
21:08 * sri wonders how MANGO_DEBUG=1 could be more useful
21:08 sri showing debug information for a binary protocol always kinda sucks :/
21:11 batman i don't get this: https://github.com/dsteinbrunner/mojo-irc/com​mit/f912323e9b56e14e99cd6691243f31dc0d8e9a21
21:12 batman is it correct that the NAME should be Foo::Bar and not Foo-Bar ?
21:12 tolid_air joined #mojo
21:12 iskyee joined #mojo
21:13 batman sri: could you escape non-printable chars in the debug output? or show debug after the message is decoded?
21:13 batman decoded => json
21:13 sri it's pretty much all non-printable characters
21:13 batman i would really like that... like in Mojo::Redis we debug all the commands that is sent/received. super useful imo
21:14 sri well, redis protocol is a hell of a lot simpler
21:16 sri https://github.com/kraih/mango​/blob/master/t/protocol.t#L97
21:16 sri those are the most trivial messages
21:16 sri most messages are a lot bigger with much more nested data
21:17 dsteinbrunner batman: it is
21:17 batman dsteinbrunner: did you just loop through all the mojo modules that exist? :)
21:17 sri dsteinbrunner: you might want to consider descriptions for your pull requests ;)
21:18 dsteinbrunner I have not.. I'm using grep.cpan.me to find modules with this issue
21:19 batman right. i will fix it as soon as possible.
21:19 sri if folks don't put in the effort to write a title and description i usually assume the patch is bad
21:19 dsteinbrunner here is a more verbose version: https://rt.cpan.org/Public​/Bug/Display.html?id=84209
21:20 dsteinbrunner or just look at the docs
21:20 batman at least i get super suspicious - especially when i first wrote "-" because i saw it somewhere else
21:20 batman FAIL!!!!
21:20 batman :)
21:21 dsteinbrunner well I'm working on making it so people don't see it incorrectly elsewhere ;-P
21:21 perlite_ joined #mojo
21:25 batman dsteinbrunner: all pull requests merged and new releases made
21:25 dsteinbrunner mmm.
21:25 batman thanks
21:26 batman PAUSE overload :)
21:26 dsteinbrunner I'm might be circling back with repo metadata at some point in the future
21:26 batman appreciate it.
21:26 dsteinbrunner fair notice so you can beat me to it
21:27 batman right. i think the other modules i got use Module::Install...
21:35 tolid_air joined #mojo
21:41 sri doh!
21:41 sri 0 is a valid cursor id in mongodb
21:41 sri on the plus side, the fix also means mango is prepared for commands returning cursors in mongodb 2.6
21:43 memowe joined #mojo
21:43 sri Mango::Cursor->new(id => $id)->all;
21:43 sri well almost ;p
21:44 sri "collection => $collection" too
21:47 gryphon joined #mojo
21:48 * sri hates the kill_cursors operation... it can only be performed unsafe
21:56 sri mojolicious looks like a happy little robot :) http://identicons.github.com/mojolicious.png
21:57 sri or a vampire cyclops
21:58 ussserr joined #mojo
21:58 sri tempire: you're a very happy purple vampire http://identicons.github.com/tempire.png
22:09 delias joined #mojo
22:10 sivoais joined #mojo
22:17 sri hmmmm
22:17 zivester joined #mojo
22:18 * sri just saw this idea on p5p and wonders if it should be added to Mojo::Collection http://www.xray.mpe.mpg.de/mailing-lis​ts/perl5-porters/2013-08/msg00720.html
22:18 sri slightly different though
22:18 iskyee joined #mojo
22:19 sri $dom->find('div')->attr('id') as an alternative to $dom->find('div')->pluck(attr => 'id')
22:20 sri a little more jquery-ish
22:21 sri $dom->find('div')->replace_content('lalala')
22:23 memowe looks magic and cool.
22:40 punter joined #mojo
22:41 sri http://paste.ubuntu.com/5994429/ # patch is rather trivial
22:42 sri not sure it should be done though
22:59 sigh joined #mojo
23:00 sri perhaps Akron has something to say :)
23:01 sri o/
23:01 iskyee joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary