Camelia, the Perl 6 bug

IRC log for #mojo, 2011-03-27

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

All times shown according to UTC.

Time Nick Message
00:06 ana-im left #mojo
00:18 vel left #mojo
00:49 marty left #mojo
00:53 sri http://www.cpantesters.org/cpan/report​/2deefb92-578a-11e0-91c7-a7d7574a6581 # wow, wtf?
01:08 ana-im joined #mojo
01:54 bosphorus left #mojo
02:02 Akron left #mojo
02:04 mattastrophe left #mojo
02:08 mattastrophe joined #mojo
02:10 mattastrophe left #mojo
02:15 mattastrophe joined #mojo
02:23 vel joined #mojo
02:25 vel left #mojo
03:11 charsbar left #mojo
03:18 charsbar joined #mojo
03:47 tempire I'm trying out a new web framework.
03:47 tempire it's made with alien technology, apparently
03:47 tempire I'm told that lisp will make me an exponentially better programmer.
03:48 tempire probably the alien technology that does it
03:52 tempire rainbow vomiting perl 5 raptor++
03:53 tempire you should give it a unicorn horn
05:01 crab rjbs's moose presentation really makes the most compelling case i've seen for moose
05:01 crab tempire: what alien framework?
05:38 daviddelikat1 left #mojo
05:43 kaare joined #mojo
06:42 Drossel joined #mojo
06:43 Kulag left #mojo
07:14 sECuRE do you have any pointers on how to use similar to https://github.com/kraih/mojo/blob/master​/t/mojolicious/longpolling_lite_app.t#L40 in javascript? i can’t find any HTTP chunked encoding example using jquery that’s not relying on flash :\
07:16 MisterHatt anyone know how mojolicious handles error codes?
07:34 crab misterhatt: what do you mean?
07:34 MisterHatt 404 for example, if there is no default wildcard route, how would you handle invalid routes?
07:35 MisterHatt or if you do have a wildcard route but no template for it, same thing tehre I guess
07:35 crab if no routes match, mojo will render a 404 page.
07:36 crab if a route matches but its template cannot be rendered, it won't send any response, but you'll see a warning in your logs about not rendering.
07:36 crab so either make sure that one route always matches and renders a 404 (or whatever), or that only valid routes match.
07:37 crab Sun Mar 27 13:07:25 2011 debug Mojo::Server:48 [8635]: Waiting for delayed response, forgot to render or resume?
07:39 MisterHatt and it gets the 404 page data from where, a file in the templates dir?
07:50 arpadszasz joined #mojo
07:55 jwang left #mojo
08:12 crab templates/not_found.$mode.html.ep
08:12 crab but there's a built-in version for mode 'production' and 'development'
08:19 MisterHatt if I made my own not_found.production.html.ep or whatever other template system, it'd use that instead?
08:20 MisterHatt or do you need to explicitly st it?
08:20 MisterHatt set even
08:26 crab no, it'd use it
08:27 MisterHatt awesome, thanks for that
08:27 MisterHatt I'm just moving from lite to full mojo apps so yeah, clarifying things etc
08:38 crab left #mojo
08:43 kvorg left #mojo
08:53 arpadszasz left #mojo
09:13 arpadszasz joined #mojo
09:27 kmx joined #mojo
09:35 kvorg joined #mojo
09:48 MisterHatt how do full mojolicious apps differentiate get/post/etc? I can see how lite does it but not the full app, $self->req->method or something?
09:52 charsbar left #mojo
09:53 charsbar joined #mojo
10:08 MisterHatt hmm, anyone use the mail plugin much?
10:09 MisterHatt trying to figure out how to use SMTP for sending as well as include auth information for the SMTP server
10:09 MisterHatt external, not localhost
10:51 chansen left #mojo
10:52 chansen joined #mojo
11:39 arpadszasz left #mojo
12:55 MisterHatt nevermind about that mail stuff, got that sorted, still unsure of the http methods though
13:05 daviddelikat joined #mojo
13:14 sri MisterHatt: read the guides please
14:23 dotan joined #mojo
14:35 arpadszasz joined #mojo
14:47 Akron joined #mojo
14:58 dotan left #mojo
15:30 Akron sri: There are two little bugs in Mojo::Dom: ...
15:30 Akron dom.t-Test + relevant spec + patch at http://pastebin.com/pTbiENgu
15:31 sECuRE left #mojo
15:37 Akron (I think, I should try this fluffy git fork rainbow wonder thing one day for reports like this ...)
16:06 sri Akron: and please start actually testing your patches
16:09 sri Akron: while i do appreciate the test case and spec link the broken patch will make fixing quite a bit harder
16:11 sri i have no clue what that patch is trying to achieve... return $attrs->{xmlns} || undef seems to make no sense at all
16:11 sri if the tests were passing it would be a clue, but they don't
16:12 Akron They don't???
16:13 sri and worst of all...that is not even the isbn number of programming perl!
16:14 Akron Maybe I've got a wrong test behaviour - here it goes well. And it's the isbn-13 according to amazon.
16:15 Akron {return $attrs->{xmlns} || undef} means, if xmlns="" return undef instead of ''.
16:15 Akron Or - it should mean it.
16:15 sri but it's in an elsif
16:15 sri the non undef case could never happen
16:16 sri as far as i can see
16:18 sri i'll just ignore the patch and fix the bugs
16:19 sri test seems sensible
16:20 Akron Ehm ... I think the patch is right ...
16:21 Akron It's an interpretation, if the xmlns is empty but defined, return undef.
16:21 sri adding that line makes no sense
16:21 sri why have both?
16:22 Akron What do you mean "both"? The patch means "use this line instead of the old one."
16:22 sri oh
16:22 sri ok, please use github from now on -.-
16:22 Akron :(
16:22 Akron Yes, sir.
16:22 Akron :)
16:23 Akron But the patch should be right. Although || undef is an interpretation. But it's in line with your ns interpretation.
16:23 sri passes now
16:23 Akron \o/
16:24 GitHub30 joined #mojo
16:24 GitHub30 mojo: master Sebastian Riedel * 497f40b (3 files in 3 dirs): fixed small Mojo::DOM namespace detection bug - http://bit.ly/g61Qvs
16:24 GitHub30 left #mojo
16:24 Akron (I really was wondering - I tested pretty well ...)
16:25 Akron Oh - now you changed the isbn-13 to the isbn-10?
16:25 sri wikipedia said so :)
16:26 perlrocks Twitter: "Mojolicious-Plugin-Mongodb v0.03 by MADCAT - http://frepan.org/~madcat/Mojo​licious-Plugin-Mongodb-v0.03/" --cpan_new http://twitter.com/cpan_ne​w/status/52043700007743490
16:26 Akron Lies lies lies! Isbn-13 is the IPv6 of of Isbn!!!
16:26 sri :o
16:27 Akron http://www.amazon.com/Programming-​Perl-3rd-Larry-Wall/dp/0596000278/
16:27 Akron This test will be broken in the near future!!!
16:29 GitHub110 joined #mojo
16:29 GitHub110 mojo: master Sebastian Riedel * dfd254b (1 files in 1 dirs): added some tests - http://bit.ly/hki1zO
16:29 GitHub110 left #mojo
16:30 sri allright allright
16:30 Akron Puh! Thanks!
16:30 sri \o/
16:30 Akron sri++
16:31 sri Akron++
16:31 sri but learn github!
16:31 sri it will change your life
16:31 moritz ISBN-13 is in very widespread use
16:31 moritz partly because it's designed so that it's the same as the EAN
16:32 Akron Reading, Riding, Github ... all these life changing things on my "to learn" list ... :(
16:32 sri are you already using git?
16:33 sri not that much to learn then
16:35 Akron Not really. At work we rely on Mercurial.
16:35 sri it's not that different from mercurial actually
16:35 sri http://peepcode.com/products/git # this is a good introduction if you're into educational screencasts
16:36 Akron Ah - nice! Thank you!
16:38 sri mercurial is not bad but really can't stand the hosting sites for it
16:38 sri almost as bad as bazaar
16:41 Akron We use it for internal projects only. But I really like the repository representations of Github.
16:47 GitHub18 joined #mojo
16:47 GitHub18 mojo: master Sebastian Riedel * c6097f0 (1 files in 1 dirs): added more tests - http://bit.ly/hiYi73
16:47 GitHub18 left #mojo
16:49 Akron Still no class="isbn-13" vs. class="isbn-10" test? ;)
16:49 * sri pushes Akron into the alligator pit
16:49 Akron ... not again ...
16:50 sri yea...it starts getting a little boring
16:50 sri we need a new pit
16:51 * sri wonders if there's a supervillain lair interior decoration magazine
16:52 Akron Season related piranha basin?
16:53 * sri nods
16:57 marty joined #mojo
17:37 Akron left #mojo
18:41 Akron joined #mojo
19:59 dekimsey joined #mojo
20:01 daviddelikat anybody do any ajax with mojo?
20:03 moritz sure
20:07 daviddelikat do you code it from scratch or do you use a framework
20:08 moritz I use jquery
20:10 daviddelikat do you have an example I could look at?  my project is late and this it he last part, I'd like to complete it quickly
20:11 moritz daviddelikat: https://github.com/moritz/quelology/​blob/master/web/public/js/custom.js does the requests
20:12 moritz and https://github.com/moritz/quelo​logy/blob/master/web/quelology is the server side
20:22 daviddelikat thanks moritz that will be a big help.
20:50 kaare left #mojo
21:00 * sri uses jquery too
21:01 sri doubt anyone does it manually these days
21:11 metaperl joined #mojo
21:31 tempire crab: alien technology - http://weblocks.viridian-project.de/
21:39 perlrocks Twitter: "koorchik's Perl blog: Mojoliciuos - Performance Mojo:: JSON http://ff.im/zRJtH" (ru) --planetperlru http://twitter.com/planetper​lru/status/52122610024202240
21:51 daviddelikat left #mojo
21:53 daviddelikat joined #mojo
21:54 daviddelikat even with jquery there is quite a bit of code writing
21:55 daviddelikat I'm looking at OpenThought ( on CPAN ) which automates connection between the server and the html elements
21:55 daviddelikat but it is very old so I'm not expecting it to work
22:10 sri very bad idea, you really don't want perl code to generate your javascript
22:10 sri i've not come across a single good implementation of that for any language
22:11 sri the closest i guess would be http://pyjs.org
22:14 GitHub7 joined #mojo
22:14 GitHub7 mojo: master Sebastian Riedel * 59dc864 (1 files in 1 dirs): rename link - http://bit.ly/htYSg4
22:14 GitHub7 left #mojo
22:17 perlrocks Twitter: "#mojolicious needs the latest #DBI and #DBD::mysql (which needs mysql-devel) for proper #utf8, shit i have spent two fockin days messing it" --oroce http://twitter.com/oroce/status/52132045056512000
22:17 sri that sounds wrong
22:21 tempire That tweet is chock full of innuendo, most of which the poster probably has no concept of
22:21 tempire I can barely handle it
22:21 * tempire explodes
22:31 * sri coughs
22:55 arpadszasz left #mojo
23:31 Akron Good night!
23:31 Akron left #mojo

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