Camelia, the Perl 6 bug

IRC log for #mojo, 2012-03-13

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

All times shown according to UTC.

Time Nick Message
00:10 sshaw alt names for current_route... path(), at(), req->to
00:10 * sshaw doesn't necessarily like any of those
00:12 abra joined #mojo
00:33 jwang joined #mojo
00:56 d4rkie joined #mojo
00:58 jnap joined #mojo
01:12 scott joined #mojo
01:19 bird joined #mojo
01:37 jnap joined #mojo
01:45 ispy_ joined #mojo
03:20 dryman joined #mojo
03:22 bird joined #mojo
03:57 preflex joined #mojo
04:13 xaka joined #mojo
04:20 preflex_ joined #mojo
05:22 hshong joined #mojo
05:57 dryman joined #mojo
06:03 hide_ joined #mojo
06:09 scott_ joined #mojo
06:17 amirite morbo is caching my ejs templates in the public directory -- how do i make it quit so i can develop efficiently
06:23 quicoju_ joined #mojo
06:24 d4rkie joined #mojo
06:48 baton8 joined #mojo
06:52 dryman joined #mojo
06:55 Foxcool joined #mojo
07:13 lammel2 joined #mojo
07:30 spleenjack joined #mojo
07:30 dryman joined #mojo
07:41 pfig joined #mojo
07:42 pfig_ joined #mojo
08:16 tempire joined #mojo
08:18 mire_ joined #mojo
08:41 tempire joined #mojo
09:08 batman joined #mojo
09:28 * sri yawns
09:31 bird_ joined #mojo
10:48 daxim joined #mojo
10:54 memowe yep, marcus?
10:56 memowe Ah, I seeö
10:56 memowe s/ö/./
10:56 memowe sri: I think marcus wanted me to give you bootylite and dropbox. :)
11:08 tempire joined #mojo
11:10 amirite joined #mojo
11:10 amirite how do i show all routes?
11:14 memowe myapp.pl routes
11:33 SSergey joined #mojo
11:33 SSergey Hello! Does anybody has problems with build 2.59 on windows?
11:33 sri SSergey: everybody, it's fixed in master
11:34 sri or rather... should be fixed
11:34 SSergey oh, ok, i just run cpanm. seems old version on cpan
11:34 SSergey try from github
11:35 sri i'd appreciate that, we don't have many windows users testing master i'm afraid :/
11:35 kitt_vl joined #mojo
11:36 marcus memowe: yepp!
11:36 * sri wonders if "cpanm http://latest.mojolicio.us" works
11:37 memowe marcus: who knows, I saw dropbox has apps.
11:37 SSergey cpanm http://latest.mojolicio.us works for me, and build with no problems. Second question, how i can be added to windows testing group?
11:37 sri memowe: does bootylite support gists?
11:37 memowe sri: what do you mean by support?
11:38 sri memowe: can i just drop in a gist url and it will magically work? :)
11:38 sri SSergey: consider yourself added :)
11:38 bo joined #mojo
11:38 memowe sri: it's a Markdown renderer. You can just drop in the gist embed code and it will "magically" work.
11:39 sri SSergey: just yell at a core def should a test fail again please
11:39 sri code dev
11:39 sri argh
11:39 sri CORE DEV!
11:39 * sri needs lunch
11:39 SSergey sri: ok, i`ll be makes reports, just like as before)
11:40 sri SSergey++
11:41 sri i guess we should consider a soonish release, installation is broken on all windows boxes atm after all
11:41 bo Hello... I am looking for documentation of how to send a simple file-download to the client. I found something about streaming content in the Controller-Doc, but I'm sure there is a better example, but I can't find it. I'm also not to much used to web-devel, maybe that is why I have troubles. Can somebody point me to the right guide?
11:42 bo I'm talking about dynamicaly generated content which I wan't to send ad download to the client
11:43 memowe sri: http://netzverwaltung.info:3000/
11:43 memowe I think it's one click more.
11:44 sri hmm, not bad
11:45 bo also "render_data" is not what I am looking for, since this makes the browser to just display the whole blog, instead of showing a download dialog
11:46 memowe sri: I kill the daemon now, OK?
11:46 sri memowe: sure
11:46 memowe If you want to try it, diy. :) http://memowe.github.com/con​tenticious/first_steps.html
11:47 sri IT'S A TRAP!
11:47 memowe WHOUGH!
11:47 memowe THAT'S WHAT SHE SAID!
11:48 black joined #mojo
11:49 memowe oh.
11:49 memowe sri: I think it should be bootylite. ;) But the Markdown part works the same.
11:50 memowe TODO: add a nice page for bootylite, too
11:53 sri bo: you might want a content-disposition header
11:54 bo sri, something like that? $self->res->content->headers($headers);
11:54 memowe Hm, I think bootylite could be a thin wrapper around contenticious in the future...
11:57 ysyrota joined #mojo
12:09 CromeDome joined #mojo
12:23 ingard whats the recommended way to deploy mojo apps?
12:23 ingard in a perfect world
12:23 ingard basic ab testing shows me that apache/nginx fcgi is a lot faster than hypnotoad atm (with the current state of the app i'm testing)
12:31 CromeDome joined #mojo
12:48 sri marcus: got the icon handbook, thanks again :)
12:51 preflex joined #mojo
12:59 jnap joined #mojo
13:25 hugh joined #mojo
13:33 Foxcool joined #mojo
13:52 ispy_ joined #mojo
14:00 sri we really need a new release
14:01 DavidIAm a major increment?
14:01 sri no
14:20 ispyhumanfly joined #mojo
14:20 mdupont joined #mojo
14:34 inokenty joined #mojo
14:44 abra joined #mojo
14:44 ispy_ joined #mojo
15:27 marcus sri: yay!
15:35 sri purl: seen crab
15:35 purl crab was last seen on #mojo 4 days, 23 hours, 59 minutes and 46 seconds ago, saying: there are hundreds of people watching you and laughing quietly to themselves at this very moment  [Mar  8 15:35:55 2012]
15:35 sri purl: seen tempire
15:35 purl tempire was last seen on #mojo 2 days, 6 hours, 13 minutes and 19 seconds ago, saying: Also, there's a stackoverflow answer from the past week that demonstrates it.  [Mar 11 09:22:31 2012]
15:36 DavidIAm heh, tempire messaged me last night.
15:39 mike_ joined #mojo
16:01 Psyche^ joined #mojo
16:19 xaka joined #mojo
16:21 hide if I POST to a form with an input named file and type file, in my application shouldn't $self->param('file') contain the Mojo::Upload object?
16:21 jwang joined #mojo
16:24 bird joined #mojo
16:25 marcus hmm
16:25 marcus hide: I believe this should be the case in more recent versions, what version of mojo are you on?
16:26 marcus or maybe I just dreamt that.
16:26 hide 2.59, $self->param('file') returns the file name.
16:26 hide I used to use: $self->req->upload('file'), but that now returns undef
16:26 marcus 2.50 says  Added file upload support to param method
16:27 hide test for the upload_lite_app.t show using $self->param('file'), so I went with it.
16:27 marcus probably you're not sending a proper multipart upload?
16:28 hide that may be, I just have a post_form
16:28 hide in my template that is.
16:29 sri urlencoded file upload? :)
16:32 hide yep, that was it, thanks marcus
16:34 hide $self->req->upload('file') still works too... now.
16:40 Psyche^ joined #mojo
16:44 sri hmm, do i have to upload a new release myself? :(
16:44 mojobot16218 joined #mojo
16:47 xaka what about render_file (often files for downloading are out of public dir) and render_handle (async reading from handle and writting to client)? will we see them in mojo? ;)
16:48 xaka render_file also could be re-used to serve static files
16:50 * sri releases 2.60
16:53 mojobot16339 joined #mojo
16:57 memowe \o/
16:57 memowe sri++
16:57 DavidIAm Cowabunga!
17:03 ispyhumanfly joined #mojo
17:03 trek1s joined #mojo
17:08 kaare joined #mojo
17:11 * marcus releases the flying monkeys.
17:11 d4rkie joined #mojo
17:13 DavidIAm I'll get you, my pretty, and your little mojo too!
17:14 batman joined #mojo
17:18 GitHub78 joined #mojo
17:18 GitHub78 [mojo] kraih pushed 1 new commit to master: http://git.io/15SKTA
17:18 GitHub78 [mojo/master] improved a few documentation examples - Sebastian Riedel
17:18 GitHub78 left #mojo
17:22 sri http://console-demo.typesafe.com/ # very sleek
17:23 sri make sure to lauch the app in console
17:30 DavidIAm that looks pretty slick.
17:32 sri would be fun to have that kind of diagnostics for mojolicious/hypnotoad :)
17:33 kitt_vl joined #mojo
17:39 Netfeed wow, that was nice
17:39 DavidIAm ... like mojolicious generating statistics that can be read by this meter?
17:39 DavidIAm profiling and such?  separate from any instrumentation in apache?
17:39 DavidIAm well, I suppose mojo might not be running in apache.
17:43 pfig joined #mojo
17:43 pfig_ joined #mojo
17:43 sri that's a closed source diagnostics tool for akka, they don't share
17:44 DavidIAm whats akka?
17:47 Foxcool joined #mojo
17:48 Netfeed a thread abstraction for java and scala
17:50 DavidIAm events are so tasty.
18:05 Properler joined #mojo
18:30 trek1s joined #mojo
18:49 sshaw joined #mojo
18:55 sshaw errors in app hook()s need to be handled within the hook...
18:55 sshaw can something be added to the docs about this? i can submit a pull request later
19:02 sshaw why not handle errors raised in hooks with render_exception by default?
19:07 amirite joined #mojo
19:12 Properler joined #mojo
19:17 trone joined #mojo
19:18 xaka sri: what do you think about render_file?
19:30 ispy_ joined #mojo
19:34 sri sshaw: hooks are framework extensions, not application logic
19:34 sri some happen outside of the normal request/response cycle
19:43 sri xaka: i don't like it
19:44 xaka what's wrong with it?
19:45 sri xaka: are you sure you don't want to discuss it with someone more polite than me?
19:47 sri better convince marcus, tempire or crab of the idea first
19:47 xaka sri: i have nothing against you ;) simple example - reports system: you generate file, put it under /tmp or /var/tmp and you want to serve it to user. render_file could help a lot. just move all logic from static to it and done. i also remember few people were looking for the same solution
19:48 sri it encourages non-portable apps, i'm against that
19:50 sri you're welcome to open a ticket and show that others support the idea
19:50 sri i've never said no if the majority really wants something
19:51 xaka hm, but it's 99% the same as static. the only diff - you're not tied to particular root. how it would affect portability?
19:51 xaka k, i'll try a workaround (open the ticket) :)
19:52 sri if you're using absolute paths you're tied to the directory structure of the operating system/version
19:57 xaka right, agree. from the other side if you develop for windows, you'll use its paths anyway (for an example if you're going to extend static paths, you'll add C:\\... into, no way to stay away from it).
19:59 sri no you don't, you let the framework take care of it
19:59 sri that's the whole point of home and root paths
20:05 Foxcool joined #mojo
20:07 sshaw sri: outside the normal req/res cycle? can you give an example?
20:08 sri sshaw: after_build_tx
20:09 sri future ones might include application shutdown and the like
20:10 sshaw after_build_tx requires a matching route, which is application level stuff
20:10 sshaw but i see your point re: shutdown
20:10 sri no it does not
20:10 sri it happens before any request data has been received
20:11 sri in fact
20:11 sri no hooks require a matching route
20:12 sri they all happen outside the router
20:13 JonChisciotte joined #mojo
20:18 sshaw doh! i swear i knew that a somepoint. they're defined in startup()
20:18 sshaw thanks for clarifying
20:25 fibo joined #mojo
20:39 sri first sentence of their description "Hooks operate outside the routing system..."
20:40 lukep joined #mojo
20:42 pfig joined #mojo
20:43 pfig_ joined #mojo
20:50 sshaw no need to rub it in :^) though since i did fault the docs which one are you quoting?
20:52 sri http://mojolicio.us/perldoc/Mo​jolicious/Guides/Routing#Hooks
20:54 sshaw no need to mention error handling?
20:55 sri make a suggestion
20:56 pfig joined #mojo
20:57 pfig_ joined #mojo
21:03 sri i kinda would like to simplify exception handling and make it a around_dispatch hook plugin
21:04 sri but i don't see that happening without breaking controller specific render_exception
21:12 Properler joined #mojo
21:13 marcus /me is playing with play
21:13 marcus All this sbt and g8 stuff is scaryæ
21:15 sshaw for the docs, how about something like:
21:16 sshaw If an exception is raised the response status will be set to 500.
21:16 sshaw Normal exception handling is not performed.
21:16 sshaw under an =head3 ERRORS
21:16 marcus Also, really slow. Guess the java guys are used to that tho.
21:17 marcus Wow, jurassic park is here http://www.physorg.com/news/2012-03-skore​an-russian-scientists-clone-mammoth.html
21:18 sri sshaw: too specific
21:19 sri exception handling depends entirely on context
21:20 sri in fact, i might actually change exception handling completely
21:21 sri interesting
21:21 sri i can move all exception handling into an around_dispatch hook without breaking actual features
21:22 sri controller specific render_exception does not work anymore, but it's undocumented
21:22 sri but this makes a whole new category of plugins possible
21:23 sri actually two
21:23 purl actually two are .tar.gz but that's not relevant to his question
21:24 sri internal redirect plugins with catalyst style exception throwing and custom real exception handling
21:25 sri big question
21:25 purl somebody said big question was how to position the camel.
21:25 sri where do we want to handle exceptions?
21:25 * sri pokes marcus, tempire and crab
21:25 marcus Nice, play thinks it can listen on 9000 even tho squeezeplay lives there... :-/
21:26 marcus Sri: on error resume next
21:26 purl on error resume next is pretty much required if you want to do any sort of graceful error handling
21:26 sri marcus: wat?
21:26 purl Watt?  Watt?  I can't hear you, there's this buzzing noise where my brain should be.
21:26 marcus Sri: vb ;)
21:27 sshaw purl: what what what!
21:27 purl in the butt
21:27 * marcus hugs purl.
21:27 * purl flees!
21:27 DavidIAm and in your place, and empty space, has filled the space behind my face
21:27 sri hooks would get free exception handling too if we move it
21:27 sri (sometimes)
21:28 marcus sri: seems useful.
21:28 marcus I don't really care about per controller exception handling.
21:29 sri hooks can still run outside the bubble, after_dispatch and event stuff for example
21:29 sri marcus: from what i gathered everybody we talked to about controller specific exception handling hated it
21:29 gbacon joined #mojo
21:29 sri this is more what they were asking for
21:30 sri a global exception handling hook
21:39 DavidIAm joined #mojo
21:47 mattastrophe joined #mojo
21:51 mercutioviz joined #mojo
21:59 tempire joined #mojo
22:15 ryanc joined #mojo
22:16 * tempire returns
22:16 sri hmm, it's even *a lot* less code
22:17 * sri hugs tempire
22:17 tempire http://aribadler.files.wordpress.c​om/2011/02/kitten-best-friends.jpg
22:17 sri \o/
22:29 gbacon joined #mojo
22:38 batman left #mojo
22:45 brambles_ joined #mojo
22:48 brambles joined #mojo
22:50 GitHub98 joined #mojo
22:50 GitHub98 [mojo] kraih pushed 1 new commit to master: http://git.io/jANtFA
22:50 GitHub98 [mojo/master] merged Mojolicious exception handling into the around_dispatch hook, this will allow a whole new category of exception handling plugins - Sebastian Riedel
22:50 GitHub98 left #mojo
22:51 sri this is a big change, please review
22:51 * sri likes how much more flat the router has become
22:52 sri you can now have real internal redirects implemented as a plugin if you're a catalyst fanatic ;p
22:54 sri https://github.com/kraih/mojo/commit/76e71​e2cec7c189d7eb0450225c4a17df6581dc0#L1R101
22:54 sri those lines replace pretty much everything that has been removed
22:56 sri jamadams change from a few weeks ago is actually quite useful now :)
22:56 sri (redispatch)
22:59 chansen joined #mojo
23:00 phillipadsmith joined #mojo
23:17 mercutioviz joined #mojo
23:45 tempire nooooooooo
23:47 * tempire redirects redispatch into hell
23:48 sri the primary use case is custom exception handling :)
23:48 tempire http://www.sri.com/careers/
23:48 tempire "SRI offers a universe of possibilities for people who want to make a difference"
23:49 sri stupid think tank stole my nick!
23:50 tempire also, holy crap.  this is why I'm learning the maths: http://wadler.blogspot.com/2012/​03/propositions-as-sessions.html
23:51 sri crazy wadler
23:55 jnap joined #mojo

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