Camelia, the Perl 6 bug

IRC log for #mojo, 2011-09-23

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

All times shown according to UTC.

Time Nick Message
00:11 [R] joined #mojo
00:11 memowe joined #mojo
00:44 Alias_ joined #mojo
00:49 blabos joined #mojo
01:46 baton8 joined #mojo
02:18 brandon joined #mojo
03:52 mohan joined #mojo
04:01 Deus joined #mojo
04:02 Deus Are there written examples on using Mojolicious::Sessions?
04:04 grim_fandango Question: I've got a route, say /signup/billing and within billing() I've got a branch of logic that ends with $self->render('billing_ok') but regardless I get the 'billing' template even though I've specific 'billing_ok'.  What gives?
04:07 grim_fandango In other words, $self->render(template => 'this_one') doesn't appear to be having affect. that_one is still being shown.
04:16 grim_fandango Aaaaahhh... you have to give the full path.
04:41 wafflesftw good morning fellow waffle fans
04:43 wafflesftw hmm, somehow i want to rename Mojo::IOLoop::Trigger to Mojo::IOLoop::Promise
04:55 jwang joined #mojo
05:09 perlite joined #mojo
05:10 rwstauner_ joined #mojo
05:10 rwstauner_ left #mojo
05:11 sugar joined #mojo
05:23 GitHub63 joined #mojo
05:23 GitHub63 [mojo] kraih pushed 1 new commit to master: http://git.io/LOqaLw
05:23 GitHub63 [mojo/master] fixed readme example - Sebastian Riedel
05:23 GitHub63 left #mojo
05:57 koban joined #mojo
05:58 sromanov joined #mojo
06:09 perlrocks Twitter: "Mojolicious @deborahkagan spills about how to Reclaim Your Confidence and Rock Your Mojo! #spillit http://t.co/5XawzO8e" --LisaSteadman http://twitter.com/LisaSteadm​an/status/117118306456051712
06:45 arthas joined #mojo
06:53 sugar joined #mojo
06:58 judofyr joined #mojo
06:59 Vandal joined #mojo
07:09 jmmills wafflesftw, tried out the group {} nested routes: https://gist.github.com/1236883 - I like it. Seems to be pretty elegant
07:14 wafflesftw jmmills: great, they seem to be surprisingly popular
07:16 wafflesftw tab indent makes my eyes bleed though :S
07:17 wafflesftw 2 whitespace 4 evar!
07:28 jmmills I don't have my .vimrc setup on my laptop
07:28 jmmills sorry
07:28 jmmills I normally code in komodo
07:47 sugar joined #mojo
08:02 cosimo tempire: feel free to suggest more sexy keywords :)
08:02 cosimo node.js perhaps? :)
08:02 cosimo cool kids use node.js nowadays
08:03 tempire gosh, node.js is so march 2011.  you've got to go now.js or coffeescript now.
08:03 noganex_ joined #mojo
08:03 tempire oh, go with some self-deprecating lessons about how you learned that being a startup is hard.
08:03 tempire the hacker news kids eat that stuff up :)
08:11 cosimo :)
08:21 tempire Is that what a promise is - a trigger?  I've been confused by that nomenclature.
08:26 wafflesftw tempire: kinda...
08:27 wafflesftw a promise or future is usually a little less than what we have in Mojo::IOLoop::Trigger
08:27 wafflesftw that's why i'm not entirely sure what the best name would be
08:27 tempire The only place I've found it mentioned is in the Reflex docs, which I've found hard to consume.
08:28 wafflesftw http://en.wikipedia.org/wiki/Futures_and_promises
08:28 tempire excellent, this is what I was hoping for.
08:28 tempire wafflesftw++
08:29 wafflesftw our triggers are more of a join of multiple futures
08:29 wafflesftw https://github.com/coolaj86/futures # at least this implementation calls it joins
09:13 crab i promise i'll join you in future.
09:14 marcus wafflesftw: any idea why my app would be dying for lack of EV when I'm not using anything anyeventish? https://gist.github.com/1237001
09:18 crab MOJO_IOWATCHER=...?
09:19 marcus crab: not set
09:21 crab marcus: if you set it to Mojo::IOWatcher, does it work?
09:26 wafflesftw marcus: makes no sense
09:26 marcus wafflesftw: yeah, I don't get it either
09:26 marcus could it be a result of a mix of old/new classes in @INC?
09:27 wafflesftw i wouldn't be surprised
09:45 cosmincx joined #mojo
09:46 perlrocks Twitter: "http://t.co/D6054RQ5" --jmmills http://twitter.com/jmmills​/status/117173031675236352
09:46 perlrocks Twitter: "http://t.co/D6054RQ5 http://t.co/EckpRxIM" --jmmills http://twitter.com/jmmills​/status/117173034435096576
09:57 Foxcool_ joined #mojo
09:58 wafflesftw tempire: got any better name ideas now? :)
09:59 tempire I'm saving that topic for tomorrow.  Ask me then :)
10:09 koban joined #mojo
10:31 wafflesftw aww
10:38 perlrocks Twitter: "Experimenting with #mojolicious experimental groups block http://t.co/rpu0N0Ia" --jmmills http://twitter.com/jmmills​/status/117185978904477696
11:24 fhelmbe__ joined #mojo
11:28 wafflesftw crab: it's actually a bit weird that mozilla would implement spdy
11:32 crab why weird?
11:32 wafflesftw there are so many obstacles
11:33 wafflesftw there is pretty much no chance spdy will ever go mainstream
11:33 MisterHatt hmm, anyone know an easy way to get lots more debug info on an http 500 error?
11:34 wafflesftw the ssl cert requirement just to get started with spdy alone is kind of a pita
11:34 crab misterhatt: lots more than what?
11:34 wafflesftw ie and safari will prolly never support spdy
11:35 wafflesftw and on top of that you need a openssl binding supporting all the latest features
11:35 wafflesftw i kinda doubt we'll ever get NPN in perl
11:35 crab what is NPN?
11:35 purl NPN is OK rght?
11:36 crab makes me think of transistors.
11:36 MisterHatt crab: lots more than "HTTP/1.1 500 Internal Server Error"
11:36 wafflesftw next protocol negotiation
11:36 crab misterhatt: run in development mode, you'll get a nice debug screen
11:36 MisterHatt not getting any cli output from running theapp in dev mode, unless daemon disables that?
11:36 wafflesftw when you open a tls connection to a spdy/http hybrid server you can let tls negotiate the next protocol
11:38 wafflesftw as in automatically select spdy if the browser supports it
11:39 wafflesftw it's a fairly recent feature, but spdy servers use it extensively
11:39 wafflesftw while you can advertise a spdy alternative with http headers, you lose most of the benefits
11:41 wafflesftw spdy itself is a rather simple protocol, but the surrounding requirements can be quite annoying
11:43 wafflesftw imo spdy will just become a nice to have feature in reverse proxies
11:45 * wafflesftw has been following the spdy development for quite some time :)
11:46 judofyr is there any reason spdy is SSL-only?
11:46 judofyr as in, protocol-wise
11:46 judofyr would it be possible to run it without SSL (without too much pain)?
11:46 wafflesftw i think it's directly related to npn
11:47 wafflesftw spdy would work without ssl, but the spec requires it
11:49 wafflesftw strange that some people seem to praise it as an alternative to websockets
11:50 wafflesftw http://hackerne.ws/item?id=3029186 # what's up with that stupid first comment?
11:52 wafflesftw browsers only expose it as a transparent alternative to http transport
11:53 MisterHatt crab: so not seeing anything extra with developmnt mode...
11:53 crab weird.
11:54 crab i get the nice exception template with a backtrace and all that.
11:54 MisterHatt I get a 500 error but it just occured to me to look in ./log
11:55 MisterHatt onscreen just big bold 500 internal server error tho
11:56 MisterHatt [Fri Sep 23 07:54:04 2011] [fatal] Processing request failed: Can't call method "log" on an undefined value at /home/matt/.perl5/lib/perl5​/Mojolicious/Controller.pm line 297.
11:56 MisterHatt thats bad I guess
11:58 wafflesftw that's the outer eval, which is a worst case
11:58 wafflesftw usually happens when the normal exception handling breaks
11:58 MisterHatt ah great
11:59 wafflesftw doesn't get much worse :)
11:59 MisterHatt fantastic, and it's probably something really dumb seeing as 99% of this app is just serving static content
12:02 MisterHatt wafflesftw: any idea where to start?
12:02 wafflesftw nope
12:03 wafflesftw crab: wonder what proxies without ssl support will do
12:03 MisterHatt lol, great
12:03 wafflesftw like varnish
12:04 wafflesftw spdy breaks the whole separate ssl terminator idea
12:05 wafflesftw nginx folks also don't seem very keen on supporting it
12:06 wafflesftw funny though, there seems to be a mod_spdy for apache :)
12:10 marcus ewww
12:15 perlrocks Twitter: "@ Limpbrains:) commented on by mojolicious features quotes from the Simpsons, Futurama, etc. http://t.co/IwlRHK3h" (ru) --genbit http://twitter.com/genbit/​status/117210457152036864
12:29 Akron joined #mojo
12:44 hide left #mojo
12:59 hide joined #mojo
13:21 jmmills Can anyone give me a recommendation on how to propagate exceptions for ajax requests with mojo?
13:22 jmmills For example doing DBIx::Class stuff, I set the exception action to sub { Mojo::Exception->throw(@_); }
13:22 jmmills but I want that exception to be rendered as a json object
13:22 jmmills i.e. the expected content type
13:42 preflex_ joined #mojo
13:44 judofyr wafflesftw: I can't get Mojo to match routes with encoded slashes
13:45 judofyr ex. /foo/bar%2Fbar/hello won't match /foo/(.bar)/hello
13:46 judofyr hm…
13:47 judofyr wafflesftw: perl -Mojo -e'a("/(.bar)/foo"=>{text=>"Hello"})->start' get /he%2Fllo/foo
13:47 judofyr and marcus ^
13:47 marcus perl -Mojo -e'a("/:foo" => sub { shift->render_text(qq/match /.$self->stash("foo")) })->start' get /%2Ffoo%2Fbar
13:49 wafflesftw there is no such thing as encoded slashes
13:50 wafflesftw they all get decoded to prevent countless attacks
13:50 wafflesftw nothing reaches routes encoded
13:50 judofyr attacks? interested. I didn't knew that
13:50 judofyr wafflesftw: what kind of attacks?
13:51 wafflesftw /foo/..%2F..%2F..%2F/etc/passwd
13:51 wafflesftw and the like
13:52 judofyr what's the problem with that? :S
13:52 judofyr just because I have a /foo/(.bar) doesn't mean I expect bar to never contain slashes…
13:52 wafflesftw we once had a bug that made Mojolicious::Static serve /etc/passwd for that :)
13:53 marcus seems like something of a chainsaw solution tho
13:53 wafflesftw ?
13:56 marcus no matter, we will use /*foo
13:57 * marcus just got a visitor with CAKE
13:57 wafflesftw it's a very messy and complicated topic, feel free to do some research and bring it up again later
13:58 cosmincx joined #mojo
13:58 wafflesftw imo normalizing to unencoded perl strings (which might contain unicode characters) was the best solution
13:58 sicp-metaperl joined #mojo
14:10 KayT3 joined #mojo
14:10 sicp-metaperl joined #mojo
14:10 edenc joined #mojo
14:11 wafflesftw marcus: actually don't bring it up again :)
14:12 wafflesftw only way i would ever discuss it again was if there was a real proposal for handling it differently ;p
14:12 wafflesftw it's that messy
14:13 wafflesftw instead bring some cake!
14:17 * cakeftw has no cake :(
14:39 * marcus has 4 pieces of cake.
14:55 abra joined #mojo
14:57 sugar_ joined #mojo
15:20 AndroUser joined #mojo
15:21 AndroUser any body here?
15:29 noganex joined #mojo
15:41 amoore joined #mojo
15:41 Foxcool joined #mojo
15:47 mohan joined #mojo
16:05 andrefs joined #mojo
16:15 perlrocks Twitter: "After learning #mojolicious my #catalyst controllers started making more sense, learning different frameworks is a good thing. #Perl" --reyjrar http://twitter.com/reyjrar​/status/117270785726496768
16:32 sugar joined #mojo
16:55 tester3265 joined #mojo
16:56 tester3265 woot
16:56 tester3265 updated the websocket examples
16:57 cakeftw was that xantus?
16:58 cakeftw he needs to bring back the web irc client :)
17:04 xantus joined #mojo
17:04 tester2752 joined #mojo
17:04 tester2752 ;)
17:04 xantus cool
17:06 MojoGuest632 joined #mojo
17:06 MojoGuest632 ok, all updated.  now to push
17:07 cakeftw heh
17:08 cakeftw xantus: will the web irc client come back?
17:15 xantus oh, that one
17:15 xantus heh, I think its still running on that box
17:16 xantus hmm, what was the url
17:30 cakeftw xantus: was it dev.xantus.org or so?
17:46 xantus ahh, yes
17:48 MojoGuest848 joined #mojo
17:48 MojoGuest848 ..and we're back
17:48 MojoGuest848 http://dev.xantus.org/
17:48 purl i guess http://dev.xantus.org/ is down too
17:48 MojoGuest848 no purl, http://dev.xantus.org/ is up
17:48 purl okay, MojoGuest848.
17:48 MojoGuest784 joined #mojo
17:48 MojoGuest784 this still workz0rz
17:49 cakeftw \o/
17:49 MojoGuest561 joined #mojo
17:49 MojoGuest561 \o/
17:49 xantus heh, HEY who's trying to use it as an http proxy?
17:49 xantus [debug] CONNECT / (Anonymojo).
17:50 cakeftw haha
17:52 cakeftw xantus: have you thought about hashing the users ip and using that as the username?
17:52 cakeftw that would allow selective banning if necessary
17:53 cakeftw or actually just show the users ip address
17:54 sicp-metaperl joined #mojo
17:57 perlrocks Twitter: "The #mojolicious #websocket irc client is finally back (thanks @xantus), stop by and say hello! :) http://t.co/xbW19y9q #html5 #perl" --kraih http://twitter.com/kraih/status/117296518335168513
17:58 MojoGuest848 I'll probably add the ip
18:00 MojoGuest599 joined #mojo
18:01 cakeftw xantus: you have a problem with firefox
18:01 MojoGuest695 joined #mojo
18:01 cakeftw quite sure i know what it is
18:01 cakeftw xantus: https://github.com/kraih/mojo/blob/​master/lib/Mojo/HelloWorld.pm#L172
18:02 cakeftw it needs a prefix
18:03 cakeftw otherwise firefox websocket support is really good now
18:08 kaare joined #mojo
18:18 rhaen hep
18:22 cakeftw yo yo yo
18:22 * purl walks the dog
18:23 MojoGuest572 joined #mojo
18:24 MojoGuest572 ahh, the irc server is testing if its an open proxy
18:24 MojoGuest117 joined #mojo
18:24 MojoGuest572 thats why I get CONNECT / requests
18:24 cakeftw damn
18:24 cakeftw i can watch with firefox but not talk
18:24 MojoGuest358 joined #mojo
18:25 MojoGuest358 test
18:25 MojoGuest358 firefox
18:25 MojoGuest358 it works
18:25 cakeftw hmm
18:25 MojoGuest358 refresh hard
18:25 MojoGuest358 or even harder
18:25 purl even harder are concepts like "indent this a tab"
18:25 MojoGuest66 joined #mojo
18:25 MojoGuest617 joined #mojo
18:26 cakeftw nope
18:26 cakeftw this is firefox 6 on os x
18:26 MojoGuest358 I'm using aurora
18:26 MojoGuest901 joined #mojo
18:26 cakeftw same
18:27 cakeftw even tried nightly
18:27 cakeftw i can see everything, even have the user list
18:27 cakeftw just not talk
18:27 cakeftw bet it's some encoding error or so
18:27 MojoGuest358 odd
18:28 cakeftw you don't need aurora btw, stable firefox and chrome are fine now
18:28 MojoGuest572 I can't spend much time on this
18:29 MojoGuest572 I'm at work, but if you find the bug, let me know
18:29 MojoGuest572 (xantus)
18:29 MojoGuest160 joined #mojo
18:30 MojoGuest572 /whowas MojoGuest160
18:30 MojoGuest572 damn..
18:30 MojoGuest819 joined #mojo
18:31 cakeftw me i guess
18:31 cakeftw oh
18:31 cakeftw Error WebSocket not defined
18:32 cakeftw two times that error
18:32 cakeftw dev.xantus.org line 22
18:32 cakeftw and js/irc-client.js line 388
18:32 MojoGuest572 yeah, I see
18:32 cakeftw that 388 every time i try to talk
18:33 cakeftw ah
18:34 cakeftw WebSocket.CONNECTING needs to be MozWebSocket.CONNECTING
18:34 MojoGuest572 try now
18:34 MojoGuest572 I used another static ref
18:34 MojoGuest375 joined #mojo
18:34 MojoGuest375 lalala
18:34 MojoGuest375 \o/
18:35 MojoGuest375 it works
18:35 MojoGuest572 woot
18:35 cakeftw xantus++
18:45 foo ok, updating
18:46 MojoGuest431 joined #mojo
18:47 MojoGuest431 ok, now the person'
18:47 MojoGuest431 the person's ip is in the whois part of the name
18:48 MojoGuest78 joined #mojo
18:48 MojoGuest78 From: http://www.facebook.com/l.php?u=http%3​A%2F%2Ft.co%2FxbW19y9q&h=FAQCVRe32​AQCLNCUSWYXxh0ZI_GSwnmD5OPYSFC6khHC8LA (1 hits)
18:49 MojoGuest431 hey, someone from a facebook url
18:49 esskar hello :)
18:49 MojoGuest510 joined #mojo
18:49 MojoGuest510 From: http://t.co/xbW19y9q (1 hits)
18:49 MojoGuest431 hey esskar
18:49 esskar it is up and alive
18:49 esskar great
18:49 cakeftw hmm, i think chrome stopped working
18:50 MojoGuest610 joined #mojo
18:50 MojoGuest610 or not
18:50 esskar and now, enjoy your weekend: http://www.youtube.com/watch?v=5gUcnUjhRX0
18:51 cakeftw wait, how do i ban a real name?
18:51 MojoGuest431 hahaha
18:52 cakeftw the ip would have to be the username in the host mask
18:52 MojoGuest431 cakeftw, I'm going to add it where mojo@ is
18:52 cakeftw \o/
18:52 MojoGuest747 joined #mojo
18:52 MojoGuest747 From: http://t.co/xbW19y9q (1 hits)
18:53 xantus damnit
18:54 MojoGuest744 joined #mojo
18:54 MojoGuest744 From: http://www.facebook.com/l.php?u=http%3​A%2F%2Ft.co%2FxbW19y9q&h=FAQCVRe32​AQCLNCUSWYXxh0ZI_GSwnmD5OPYSFC6khHC8LA (1 hits)
18:55 esskar it looses connection after some time
18:56 MojoGuest974 joined #mojo
18:56 MojoGuest974 From: http://t.co/xbW19y9q (1 hits)
18:56 xantus the username is too short
18:57 xantus 9 chars to fit something unique
18:57 cakeftw well, that's better than nothing :)
19:00 MojoGuest883 joined #mojo
19:00 MojoGuest883 From: http://t.co/xbW19y9q (1 hits)
19:00 MojoGuest181 joined #mojo
19:00 cakeftw oh cool
19:01 MojoGuest532 joined #mojo
19:01 xantus its a combo of the ip and a secret key :)
19:01 cakeftw and it's consistent
19:01 xantus that'll give some sort of ban control
19:01 MojoGuest532 spam spam spam
19:02 MojoGuest532 was kicked by cakeftw: Your behavior is not conducive to the desired environment.
19:03 MojoGuest474 joined #mojo
19:03 grim_fandango joined #mojo
19:03 cakeftw xantus++
19:04 Topic for #mojo is now join the revolution ♥ http://mojolicio.ushttp://irclog.perlgeek.de/mojo/todayhttp://dev.xantus.org
19:05 MojoGuest9 joined #mojo
19:05 MojoGuest9 From: http://t.co/xbW19y9q (8 hits)
19:05 MojoGuest9 heh, I was banned
19:05 MojoGuest9 it worked
19:05 purl Of course it worked
19:06 xantus ok, no more restarts
19:08 cakeftw xantus: maybe the website should say which browsers are supported ;p
19:08 * cakeftw waits for restart
19:19 MojoGuest466 joined #mojo
19:19 MojoGuest466 From: http://t.co/xbW19y9q (9 hits)
19:26 cakeftw http://stackoverflow.com/questions/6730460/​why-is-non-blocking-socket-connect-so-slow
19:27 cakeftw great answer, i keep getting asked that question quite a lot
19:47 metaperl joined #mojo
20:10 MojoGuest388 joined #mojo
20:10 MojoGuest388 From: http://t.co/xbW19y9q (13 hits)
20:13 MojoGuest937 joined #mojo
20:14 MojoGuest361 joined #mojo
20:14 MojoGuest361 From: http://t.co/xbW19y9q (14 hits)
20:45 grim_fandango joined #mojo
21:13 MojoGuest9 \m/
21:23 MojoGuest774 joined #mojo
21:23 MojoGuest774 From: http://t.co/xbW19y9q (17 hits)
21:31 perlite_ joined #mojo
21:35 perlrocks Twitter: "Mojolicious:: Data and Lite:: I made a chat with AJAX in jQuery Model - Isuzu filtered its programmers to # perl http://t.co/viQaCo31 Sunday" (ja) --perl_m8y http://twitter.com/perl_m8y​/status/117351318494003200
21:41 MojoGuest971 joined #mojo
21:41 MojoGuest971 test test
21:41 MojoGuest971 wee
21:41 weeeeeee :)
21:41 weeeeeee (:
21:42 weeeeeee joined #mojo
22:43 tempire ok finally
22:44 tempire TODAY is the fringe premiere
22:56 Drossel joined #mojo
23:20 andrefs joined #mojo
23:37 andrefs joined #mojo
23:55 yko joined #mojo

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