Camelia, the Perl 6 bug

IRC log for #mojo, 2011-09-26

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

All times shown according to UTC.

Time Nick Message
00:34 f00li5h joined #mojo
00:37 MojoGuest428 joined #mojo
00:40 MojoGuest428 lol, internet
01:03 thowe joined #mojo
01:20 jkitazawa joined #mojo
01:47 Alias_ joined #mojo
02:06 mohan joined #mojo
02:23 tempire ARG
02:25 tempire there needs to be a class on the aesthetics of an API.  Or everyone should be forced to learn lisp.
02:25 * tempire calms down
02:55 MojoGuest892 joined #mojo
02:55 MojoGuest892 From: http://www.google.com/url?sa=t&source=web&​cd=6&ved=0CEEQFjAF&url=http%3A%2F%2Fdev.xa​ntus.org%2F&rct=j&q=websocket%20irc&ei​=nel_TquBBuTWiAKvqNC5Aw&usg=AFQjCNGw6nZv0wO42u​zUnHhWcD0vcKNULg&sig2=LJ8mxw-SE6xGHP4c7_yeYA (1 hits)
02:55 MojoGuest892 .
03:03 alnewkirk joined #mojo
03:37 perlrocks Twitter: "Web Mojolicious Framework - Join the revolution Perl! - Http://t.co/KPonUnLD <--- had to get something new." (es) --rugi http://twitter.com/rugi/status/118167399282384897
03:44 MojoGuest230 joined #mojo
03:44 MojoGuest230 From: http://t.co/xbW19y9q (9 hits)
04:07 MojoGuest924 joined #mojo
04:54 driller_work joined #mojo
05:31 driller_work joined #mojo
05:37 koban joined #mojo
06:04 sromanov joined #mojo
06:49 marcus morning
06:53 Vandal joined #mojo
07:02 tempire purl: vampires?
07:02 purl i guess vampires is at?
07:02 tempire purl: vampire
07:02 purl tempire: what?
07:03 driller_work joined #mojo
07:09 cosmincx joined #mojo
07:26 andrefs joined #mojo
07:27 perlrocks Twitter: "Monitoring aggregation in #perl #mojolicious mainly for #torrus but others to come! check out http://t.co/Y1LwgB1w" --PerlDean http://twitter.com/PerlDean​/status/118225147705556992
07:52 sri good morning fellow help vampires
08:00 * tempire grggles
08:04 sri http://www.youtube.com/watch?v=LITbqHprNL0
08:05 D4RK-PH0ENiX joined #mojo
08:35 judofyr joined #mojo
08:51 MojoGuest122 joined #mojo
08:51 MojoGuest122 From: http://t.co/xbW19y9q (10 hits)
08:52 cosmincx joined #mojo
09:01 cosmincx1 joined #mojo
09:14 spleenjack joined #mojo
09:20 cosmincx joined #mojo
09:44 driller_work joined #mojo
09:54 marcus http://www.howtoforge.com/continuo​us-deployment-with-jenkins-and-rex
09:55 perlrocks Twitter: "/ Mojolicious per Overlay accents and hard: I 2 flowing in the Twitter Streaming API Lite + WebSocket + GoogleChrome (0:52) nico.ms/sm15713997" (ja) --CLCLCL http://twitter.com/CLCLCL/​status/118262517351972864
09:57 marcus <3 .jp
10:04 arthas joined #mojo
10:06 MojoGuest204 joined #mojo
10:06 MojoGuest204 From: http://news.ycombinator.com/item?id=1277067 (6 hits)
10:11 judofyr wow
10:11 judofyr who's MojoGuest?
10:12 driller_work just a guest ;)
10:15 MojoGuest412 joined #mojo
10:15 MojoGuest412 From: http://t.co/xbW19y9q (11 hits)
10:15 MojoGuest412 ooh, unicode bug
10:21 MojoGuest443 joined #mojo
10:21 MojoGuest443 From: http://t.co/xbW19y9q (12 hits)
10:43 MojoGuest507 joined #mojo
10:43 MojoGuest507 From: http://t.co/xbW19y9q (13 hits)
11:06 noganex joined #mojo
11:10 cosmincx joined #mojo
11:13 marcus schrödinger's nyan cat so awesome.
11:28 MojoGuest569 joined #mojo
11:28 MojoGuest569 From: http://irclog.perlgeek.de/mojo/2011-09-26 (1 hits)
11:32 preflex_ joined #mojo
11:34 driller_work joined #mojo
12:11 Eugene joined #mojo
12:15 Eugene joined #mojo
12:46 MojoGuest8 joined #mojo
12:46 MojoGuest8 From: http://friendfeed.com/laclefyoshi/2221d48a/​websocket-extjsirc-client-permission-denied (1 hits)
12:53 driller_work quick question... I am using redirect_to('404', format => 'html') which should render templates/404.html.ep right? any idea why it cannot find that specific page even though I have a template called 404.html.ep in /templates/ ?
12:54 driller_work I am redirecting inside a sub within a controller, does that make any difference?
12:57 driller_work ->render works fine though, but not redirect_to
12:58 stephan48 redirect_to is for redirecting to a url
12:58 stephan48 for redirecting to a template
12:58 driller_work oh snap...
12:59 stephan48 you could make an 404 action and then it will work :)
12:59 judofyr sri: you are just sri today?
12:59 sri judofyr: just? :(
13:00 driller_work would it be correct to render an error (eg. page not found) like this? ->render('404', message => 'Shit hit the fan!', format => 'html', status => '404'); ?
13:00 judofyr sri: and not waffles or cake :)
13:00 marcus wafflecake
13:00 judofyr sri is good enough for me ;)
13:01 judofyr I came for answers, stay for sri
13:01 stephan48 driller_work: i you wont need format, also i dont think you can set the status this way, try $self->res->code
13:02 icecreamftw stephan48: you can set the status that way
13:02 stephan48 oh cool
13:02 judofyr icecreamftw: maybe I should start twitter.com/whatissricalledtoday
13:03 icecreamftw stephan48: http://mojolicio.us/perldoc/Mojolicious/G​uides/Rendering#Status_code_28_status_29
13:03 icecreamftw judofyr: lol
13:03 judofyr icecreamftw: had you chosen a prefix instead of a postfix, I could easily TAB-complete you
13:05 stephan48 you mean other way around?
13:05 stephan48 prefixtestpostfix
13:06 icecreamftw ftwicecream
13:12 driller_work http://pastebin.com/YzkCPQC8 <- anyone have a clue of why the ->render('$template') wont render properly? page just gets stuck and wont render my template
13:13 icecreamftw http://objology.blogspot.com/2011/09/one​-of-best-bits-of-programming-advice.html # haha "Don't make objects that end with 'er'."
13:14 driller_work basically, when I go to /:uri it looks it up against the database to see if that page exists, if yes, -> render it
13:15 judofyr driller_work: do you actually have a template called "$template" or is it a variable?
13:15 driller_work it's a variable, the $template variable holds the actual template name, like "contact_us"
13:15 judofyr then do ->render($template)
13:16 judofyr interpolation doesn't happen in single quoted strings
13:16 judofyr "$template" would work, but it's the same as $template, so just use $template.
13:17 driller_work that did it, many thanks... my mistake
13:17 driller_work s/mistake/stupidity
13:18 judofyr :)
13:21 ilyuhan joined #mojo
13:23 ilyuhan hello. can anybody please tell me, how to redirect request to any page like 'http://mysite.ru/mypage' to http://www.mysite.ru/mypage ?
13:29 marty ilyuhan: In Mojolicous you can use redirect_to.  http://search.cpan.org/~sri/Mojolicious-1.9​8/lib/Mojolicious/Controller.pm#redirect_to
13:30 marty But if you want to redirect all requests then that is probably a job better suited to your web server.
13:35 shonorio joined #mojo
13:35 cosmincx joined #mojo
13:38 amoore joined #mojo
13:40 koban joined #mojo
13:53 andrefs joined #mojo
14:04 ilyuhan marty, thanks for advice, made it via mod_rewrite
14:11 crab judofyr: oh geez, thanks for turning sri into an ice cream
14:12 icecreamftw I HAZ A FLAVOR
14:20 KayT3 joined #mojo
14:37 MojoGuest538 joined #mojo
14:38 cosmincx joined #mojo
14:38 koban left #mojo
14:38 ilyuhan_ joined #mojo
14:40 kewl joined #mojo
14:57 abra joined #mojo
15:24 MojoGuest674 joined #mojo
15:24 MojoGuest674 From: http://www.boards.ie/vbulletin/sh​owthread.php?threadid=2055995826 (1 hits)
15:29 perlrocks Twitter: "[Note] perl Mojolicious:: Chat program in the Lite + WebSocket - http://t.co/jXcAwzpx" (ja) --kuma_type http://twitter.com/kuma_typ​e/status/118346561523679232
15:38 kaare joined #mojo
15:45 sromanov joined #mojo
15:47 Foxcool joined #mojo
15:55 jwang mojolicious is mentioned here: http://jjnapiorkowski.typepad.com/modern​-perl/2011/09/monday-newbie-corner-long-​polling-realtime-web-applications.html
15:55 jwang is it worth a response?
16:05 icecreamftw jwang: respond to what?
16:08 jwang he asks about doing long polling / real time in Perl and mentions that "Mojolicious seems to have this built in."
16:09 icecreamftw which is correct
16:09 jwang seems like a confirmation would be nice. yes, you can do this in Mojolicious super easily and here's how
16:09 jwang -> docs link
16:09 jwang his post seems to be a guess
16:09 jwang so the readers may not know if it's true or not
16:10 icecreamftw sure, here's your example http://blog.kraih.com/mojolicious-​hack-of-the-day-html5-eventsource
16:11 MojoGuest768 joined #mojo
16:11 MojoGuest768 From: http://www.google.co.jp/search?gcx=w&amp;sour​ceid=chrome&amp;ie=UTF-8&amp;q=websocket+irc (1 hits)
16:12 MojoGuest605 joined #mojo
16:12 MojoGuest605 From: http://www.google.co.jp/search?gcx=w&amp;sourc​eid=chrome&amp;ie=UTF-8&amp;q=ExtJS+IRC+Client (1 hits)
16:13 icecreamftw whole mojolicious architecture is all about realtime apps with websockets and comet
16:14 icecreamftw http://mojolicio.us/perldoc/Mojolicio​us/Guides/FAQ#How_does_Mojolicious_co​mpare_to_other_Perl_Web_Frameworks3F
16:14 icecreamftw which is also explained here
16:14 purl okay, icecreamftw.
16:15 jwang icecreamftw: nice. I was more thinking if it would be worthwhile for someone (who knew more than me about this ) to post a response to his blog
16:15 tempire the 10gen job sounds amazing.
16:16 * tempire is almost tempted
16:16 jwang but not everyone is into blog replies and I just found out I can't delete posts on discus
16:16 jwang which is used on Gabor's blog
16:17 jwang tempire: what's holding you back?
16:17 tempire jwang: bigger dreams
16:19 jwang http://hire.jobvite.com/CompanyJobs/Career​s.aspx?k=Job&amp;c=qX79VfwS&amp;j=oBOTVfwX
16:19 jwang it does look pretty cool
16:20 tempire also sri's tweet: http://blog.10gen.com/post/1065691810​9/were-hiring-open-source-enthusiasts
16:48 grim_fandango joined #mojo
17:13 crab sri: is there any reliable way to tell in an after_static_dispatch hook if a response was served by the static dispatcher?
17:14 crab i thought checking if $res->code && $res->headers->content_type was enough, but it's clearly not. i'm seeing 403 responses generated by a... oh, hmm.
17:16 icecreamftw don't know
17:16 icecreamftw officially not i suppose
17:16 icecreamftw there's a private stash value, but that's for internal use
17:19 icecreamftw i would not expect anything built in to set res->code at that point besides the static dispatcher though
17:19 icecreamftw considering it prevents routes from doing anything
17:20 driller_work I'm quite confused and would love to know if its possible or not. I have a route called /:uri which checks the db if the uri specified exists in the database, if yes, then render that template -- but it seems that now I can't create a route called /contact_us since it thinks it's the /:uri route
17:20 driller_work is there a way around this?
17:21 icecreamftw crab: res->code should be pretty reliable for what you're doing
17:21 icecreamftw unless there's a plugin using other hooks interfering
17:21 crab sri: that's exactly what was happening (another hook)
17:25 driller_work no one? :(
17:33 driller_work if someone could help I'd much appreciate it, have to run for today but will check the irc logs tomorrow to see if someone has a clue on this one
17:55 icecreamftw hmm
17:56 perlrocks Twitter: "Aro memorandum to: Notes of Mojolicious http://t.co/FBGgQgXK" (ja) --wPerlnews http://twitter.com/wPerlnew​s/status/118383345360052226
17:56 icecreamftw perhaps it is time to call Mojolicious a Real-Time Web Framework and not just a Web Framework
17:58 jwang it could get more buzz
18:00 d4rkie joined #mojo
18:13 GitHub45 joined #mojo
18:13 GitHub45 [mojo] kraih pushed 1 new commit to master: http://git.io/94r1BQ
18:13 GitHub45 [mojo/master] lets just start calling Mojolicious a real-time web framework - Sebastian Riedel
18:13 GitHub45 left #mojo
18:15 perlrocks Twitter: "Lets just start calling #mojolicious a real-time web framework. :) http://t.co/ggT8rMiz #perl" --kraih http://twitter.com/kraih/status/118388168788688896
18:16 icecreamftw it's what the faq answer already says after all :)
18:38 smpb joined #mojo
18:40 GitHub3 joined #mojo
18:40 GitHub3 [mojo] kraih pushed 1 new commit to master: http://git.io/dZzuAg
18:40 GitHub3 [mojo/master] fixed a few typos - Sebastian Riedel
18:40 GitHub3 left #mojo
18:40 smpb joined #mojo
18:42 * icecreamftw nods
18:42 icecreamftw that looks good
18:46 driller_work joined #mojo
18:46 driller_work hey all, any ideas on my previous questions in regards to the routing issue I was having?
18:47 driller_work I'm totally stuck with it, no idea how to proceed with my app... was hoping that would work as I intended but nopes...
18:49 driller_work in case someone missed my question earlier: I have a route that is called "/:uri" but now I want to create a static route called /contact_us, but it doesn't work since my /:uri route reads it
18:52 driller_work I guess I could split it to like /page/:uri but I would prefer not to, is there a clean way around this I'm not aware of?
18:58 GitHub180 joined #mojo
18:58 GitHub180 [mojo] kraih pushed 1 new commit to master: http://git.io/PtXeiA
18:58 GitHub180 [mojo/master] simplify readme example - Sebastian Riedel
18:58 GitHub180 left #mojo
19:07 kmx joined #mojo
19:16 driller_work seriously, no one has a clue?
19:40 amoore joined #mojo
19:43 thequietcenter joined #mojo
19:44 driller_work i'll try again tomorrow, seems like everyone's asleep
19:58 tempire driller_work: put the /contact_us route before /:uri
19:58 tempire I never knew about irc or mailing lists when I first started programming
19:59 tempire In some ways, I think that's good, 'cause it makes you work out problems.  there's nowhere else to go.
20:00 tempire but in other ways, you end up reinventing the wheel.
20:04 perlite joined #mojo
20:23 andrefs joined #mojo
20:37 tempire oh noes!
20:37 tempire I think I found a bug
20:39 jwang joined #mojo
20:43 icecreamftw tempire: how dare you!
20:44 thequietcenter joined #mojo
20:57 driller_work joined #mojo
20:58 driller_work tempire: appreciate your answer... was really lost there for a while :)
20:59 MojoGuest514 joined #mojo
20:59 tempire this is crazy strange.  can't seem to duplicate it in a lite app.  referencing $self->req->to_string makes "Nothing has been rendered, assuming delayed response." appear.
21:00 * tempire keeps trying to narrow down the problem
21:00 Akron joined #mojo
21:03 tempire making progress.  http://pastie.org/2596304
21:03 tempire in lite app, [debug] 400 Bad Request appears.
21:03 tempire though rendering works as expected
21:05 perlrocks Twitter: "PJAX Mojolicious a rumor:: http://t.co/2LxtdvRl I wrote in the Lite" (ja) --nqounet http://twitter.com/nqounet​/status/118431024874131457
21:10 tempire huh.  $self->req->content->get_header_chunk;
21:10 icecreamftw can't confirm
21:11 icecreamftw perl -Mojo -E'a("/" => sub { $_[0]->req->to_string; $_[0]->render(text => "whatever")})->start' get -v /
21:11 tempire freaking one liners.
21:15 tempire can I modify the log level with ojo?
21:15 tempire ah, env
21:16 icecreamftw MOJO_LOG_LEVEL
21:16 tempire ah ha!
21:16 tempire MOJO_LOG_LEVEL=debug perl -Mojo -E'a("/" => sub { $_[0]->q->to_string; $_[0]->render(text => "whatever")})->start' daemon
21:16 icecreamftw yea, that does look weird
21:17 tempire er, get / -v
21:17 icecreamftw we don't guarantee that a parsed message can be rebuilt though
21:17 tempire I need to start using those one liners.  saves a lot of time.
21:17 icecreamftw so it's most likely not a bug
21:17 icecreamftw feel free to improve though
21:17 tempire you're saying to_string is currently not reliable?
21:18 * icecreamftw nods
21:18 tempire I don't really care about the rebuilding, I'm just looking for the original request.
21:18 icecreamftw it doesn't exist anymore
21:19 tempire BUT I NEED IT
21:19 icecreamftw if you want to know what goes over the wire you can use MOJO_DAEMON_DEBUG
21:19 * tempire cries
21:20 icecreamftw keeping the raw message around would be insanely expensive
21:24 MojoGuest644 joined #mojo
21:24 MojoGuest644 From: http://t.co/xbW19y9q (14 hits)
21:26 MojoGuest262 joined #mojo
21:26 MojoGuest262 From: http://t.co/xbW19y9q (15 hits)
21:38 grim_fandango joined #mojo
21:43 rhaen ho
21:50 icecreamftw http://groups.google.com/group/mojolicio​us/browse_thread/thread/664200b37b105a92
21:51 icecreamftw hope my response is ok
21:51 icecreamftw some support would be appreciated
21:54 tempire I didn't realize you had completely removed it from the distribution yet
21:54 icecreamftw as soon as the volunteer confirmed he would have a distribution ready "by tomorrow"
21:55 tempire right.
21:55 tempire and every developer uses the words *should work* like it actually means something
21:56 tempire topic removed?
21:57 icecreamftw ?
21:57 tempire the thread posted above is not found.
21:57 icecreamftw weird
21:57 Akron Google Groups running on fastcgi ... unmaintainable.
21:57 Akron ;)
21:57 tempire This is why we can't have nice things.
21:59 tempire I would put a fastcgi module up in a git repo for the time being, so people can install it if they want.
21:59 tempire a buildable tar, I mean.
21:59 icecreamftw feel free ;p
22:00 icecreamftw if i put it up i acknowledge responsibility
22:00 Akron icecreamftw: Your response was okay. Maybe you should point to the historically last version of the server module for download.
22:00 icecreamftw and the last thing i need now is an unmaintainable module to worry about… finally want to finish the mongodb driver
22:01 Akron should -> could
22:02 tempire agreed.  you've got to give people a path to walk for a solution.
22:03 tempire I'll post a message to the mailing list.
22:03 icecreamftw appreciated
22:05 tempire fastcgi is still an option via plack, right?
22:06 * tempire doesn't know much about plack
22:06 icecreamftw always was, always will be
22:06 icecreamftw http://mojolicio.us/perldoc/Mojolici​ous/Guides/Cookbook#Plack_middleware
22:06 icecreamftw middleware recipe is a good example
22:07 tempire yeah, using it
22:08 kom mysql.com hacked i wonder to what extent
22:08 icecreamftw from what i heard it's pretty bad
22:08 icecreamftw root access
22:08 kom i was building mysql rpms all week
22:09 kom makes me wonder if they're tainted
22:09 icecreamftw better compare checksums
22:24 tempire Did the FastCGI removal follow the deprecation policy?
22:34 icecreamftw tempire: nope, it was never deprecated, it's a split
22:35 icecreamftw atm there are no rules for that, and i've never done it before
22:46 icecreamftw tempire: wow, now the topic is gone here too :o
22:46 tempire poster must have removed it
22:46 tempire no matter
22:47 icecreamftw didn't know posters can do that
22:47 tempire I don't know either.  just an assumption.
22:49 icecreamftw tempire: your message looks good, just not sure about the start
22:49 icecreamftw (among the complaints)
22:49 tempire in what way?
22:50 icecreamftw bit too much maybe
22:50 icecreamftw could be considered offensive
22:50 icecreamftw perhaps crab should review too
22:50 tempire crab: email?
22:50 purl email is for old people or something anyone could create a better design for, but nobody could make a better design successful
22:51 icecreamftw he's the most mature of us :)
22:51 tempire Isn't he from the middle east?
22:51 * tempire peers suspiciously
22:51 tempire the news tells me he's dangerous.
22:54 tempire and now?
22:54 purl hmmm... now is the time for the Kwisatz Haderach to arise and conquer America on a sandworm army
22:54 icecreamftw from what i gathered he either looks like http://blogs.the217.com/stylet​alk/files/2011/03/turban1.jpg or like http://4.bp.blogspot.com/-qNhTV_A6H1M/Tcpu3alehsI​/AAAAAAAAAAU/AowLUQz0aNA/cartoon-crab-clipart.gif
22:55 tempire I've never met a person with a watermark overlay before.
22:56 tempire Well.  I'll leave the doc there.  I'm ready to post it whenever.
22:58 icecreamftw looks good to me
23:00 tempire posting
23:00 icecreamftw tempire++
23:01 tempire what
23:01 tempire http://groups.google.com/group/mojolicio​us/browse_thread/thread/3f23a4d89aec7309
23:01 tempire topic not found.
23:01 tempire google groups is fail whaling.
23:02 tempire here we go.  and the previous post is back as wel.
23:03 tempire I feel like I need to tell everyone to upvote.
23:20 icecreamftw how weird
23:22 GitHub0 joined #mojo
23:22 GitHub0 [mojo] kraih pushed 1 new commit to master: http://git.io/_oXeDg
23:22 GitHub0 [mojo/master] improved resilience of HTTP parser - Sebastian Riedel
23:22 GitHub0 left #mojo
23:22 icecreamftw tempire: that could solve your problem from earlier
23:22 icecreamftw i wanted to rename the buffers properly anyway
23:23 icecreamftw a test for your case from earlier would be nice
23:23 icecreamftw maybe it's too late here, but i failed at replicating it
23:30 icecreamftw Zzz
23:48 Akron joined #mojo

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