Camelia, the Perl 6 bug

IRC log for #mojo, 2011-10-09

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

All times shown according to UTC.

Time Nick Message
00:23 l3l1p joined #mojo
00:27 MojoGuest648 joined #mojo
00:28 MojoGuest185 joined #mojo
00:44 MojoGuest567 joined #mojo
00:44 MojoGuest567 From: http://www.google.com/search?gcx=c&sourceid​=chrome&ie=UTF-8&q=HTML5+websockets+IRC (1 hits)
00:44 MojoGuest372 joined #mojo
00:44 MojoGuest372 From: http://news.ycombinator.com/item?id=1277067 (14 hits)
00:45 MojoGuest567 awwwww shit
00:45 MojoGuest567 this is actually pretty impressive
00:45 MojoGuest567 how does it work?
00:45 purl well, how does it work is http://www.howstuffworks.com
00:45 marty sri++  Thanks for the new example
00:45 MojoGuest567 ...
00:45 MojoGuest567 wat
00:45 MojoGuest567 :O
00:45 marty purl: websockets?
00:45 purl WEBSOCKETS!!!
00:45 MojoGuest567 WEBSOCKETS?!
00:45 purl WEBSOCKETS!!!
00:46 MojoGuest567 ...
00:46 MojoGuest567 um
00:46 MojoGuest567 maybe
00:46 MojoGuest567 web
00:46 MojoGuest567 sockets?
00:46 purl sockets is the portable one, I'm not even sure I have an OS that supports the XTI API
00:46 MojoGuest567 WAT
00:46 MojoGuest567 STOP
00:46 MojoGuest567 AAAAAAAAAAAAHHHH
00:46 MojoGuest567 anyways
00:46 MojoGuest567 this is a pretty cool thing
00:46 MojoGuest567 might check out websockets
00:46 MojoGuest567 and do a game with it
00:46 MojoGuest567 or something
00:46 MojoGuest567 :O
00:46 MojoGuest567 *flees*
00:47 tempire It seems to me $self->render(static => 'file') should do the same as $self->render_static('file');
00:48 marty It doesn't?
00:48 marty I always assumed it would, but never checked
00:49 sri ->render(later => 1) doesn't do the same as ->render_later either
00:50 sri same for render_not_found and render_exception
00:50 sri and render_content
00:50 purl render_content is not what you think it is
00:50 * sri hugs purl
00:50 * purl flees!
00:54 tempire preferred way to download a file from a protected directory (say, after a purchase): https://gist.github.com/1273125
00:54 tempire ?
00:55 sri doesn't serve call rendered already?
00:55 tempire nope
00:58 sri how weird
00:58 sri serve takes an optional undocumented root argument
00:58 sri i'll have to investiaget
00:58 sri *investigate
00:59 tempire It's for a mojocast #4.  so anything cleaner would surely be appreciated.
00:59 sri hmm, i don't think it belongs in core though
00:59 tempire render_static?
01:00 sri the ability to easily serve static files with absolute paths
01:01 sri i'm very much opposed to making stupid things easy
01:01 tempire because of potential n00b abuses?
01:01 sri ye
01:02 tempire it's understandable.  I was going to suggest absolute paths, until I realized unsanitized render_static("$mypath/$myfile") would be the most popular usage.
01:03 sri it's also not portable
01:03 tempire maybe I should skip over special cases of downloading.
01:04 sri if you want to serve hidden static files from a different directory i would add a secondary static dispatcher instance
01:04 sri has hidden => sub { Mojolicious::Static->new(root => shift->home->rel_dir('hidden')) }; or so
01:05 sri and then add a helper
01:18 sri ah i see why it doesn't call rendered
01:19 sri protection against real static files stealing the flash
01:26 GitHub65 joined #mojo
01:26 GitHub65 [mojo] kraih pushed 1 new commit to master: http://git.io/WPHh0A
01:26 GitHub65 [mojo/master] fixed small Mojolicious::Static bug - Sebastian Riedel
01:26 GitHub65 left #mojo
01:28 sri tempire: you could also demonstrate manual rendering
01:28 tempire not sure what that is
01:28 tempire like respond_to?
01:29 tempire or you probably mean all the render(whatever => stuff
01:30 sri $c->res->content->asset(Mo​jo::Asset::File->new(path => $c->app->home->rel_file('hidden/12345.tar.gz'))); $c->res->headers->content_​type('application/gzip'); $c->rendered;
01:30 sri the gory details
01:31 tempire that's where I was going originally, but I'm thinking now that that's something more advanced that what people need in the same cast that talks about stash, session, and flash
01:32 sri hmm, maybe true
02:03 MojoGuest896 joined #mojo
02:03 MojoGuest896 From: http://www.google.com/search?gcx=c&sourc​eid=chrome&ie=UTF-8&q=websocket+demo (1 hits)
02:03 MojoGuest896 test
03:46 l3l1p_ joined #mojo
04:29 l3l1p joined #mojo
04:39 sri return unless Mojolicious::Routes::Pattern->new('/test/​:action')->match($self->req->url->path); is also a fun hack
04:53 GitHub1 joined #mojo
04:53 GitHub1 [mojo] kraih pushed 1 new commit to master: http://git.io/OZFV-w
04:53 GitHub1 [mojo/master] added a few more documentation examples - Sebastian Riedel
04:53 GitHub1 left #mojo
05:08 GitHub148 joined #mojo
05:08 GitHub148 [mojo] kraih pushed 1 new commit to master: http://git.io/v49Dyg
05:08 GitHub148 [mojo/master] renamed match to contains - Sebastian Riedel
05:08 GitHub148 left #mojo
05:27 Vandal joined #mojo
05:39 Foxcool joined #mojo
05:42 Eugene joined #mojo
05:54 yko joined #mojo
05:55 bzero joined #mojo
06:23 D4RK-PH0ENiX joined #mojo
06:42 Eugene joined #mojo
06:44 d4rkie joined #mojo
08:21 perlrocks Twitter: "If significant changes in the sample code to write the Wiki link, use EV; to incorporate the EV event loop, which is seen to be troublesome to me What AnyEvent event loop automatically. / "AnyEve and Mojolicious ..." http://t.co/O7tQBmGf" (ja) --CLCLCL http://twitter.com/CLCLCL/​status/122949776793808896
08:44 crab is there something special about app names that are less than three characters long?
08:53 sri not that i know of
08:55 crab if i do "mojo generate app OB", then it generates a bunch of files that look fine, but says Can't locate object method "new" via package "OB" (perhaps you forgot to load "OB"?)
08:55 crab which makes me think i'm going against the app-name-derivation somehow.
08:56 crab but if i do mojo generate app OBI, it works
08:57 crab (that in the first case, i have a lib/OB.pm, and lib/OBI.pm in the second case.)
08:57 sri oh, it's a loader restriction
08:58 crab what exactly is the restriction?
08:58 crab directly the length of the name, or something else?
08:58 sri /^\w[\w\:\']+\w$/
09:02 crab ah. not worth fighting with that, i'll just think of a longer name.
09:03 crab but damn, i was seriously mystified for a while.
09:04 GitHub124 joined #mojo
09:04 GitHub124 [mojo] kraih pushed 1 new commit to master: http://git.io/1ZlsCA
09:04 GitHub124 [mojo/master] improved Mojo::Loader regex check a bit - Sebastian Riedel
09:04 GitHub124 left #mojo
09:13 GitHub198 joined #mojo
09:13 GitHub198 [mojo] kraih pushed 1 new commit to master: http://git.io/Z_g4eQ
09:13 GitHub198 [mojo/master] added more loader tests - Sebastian Riedel
09:13 GitHub198 left #mojo
09:22 batman joined #mojo
10:12 driller_work joined #mojo
10:12 driller_work moo
10:57 noganex_ joined #mojo
11:09 andrefs joined #mojo
12:10 Eugene joined #mojo
12:13 Eugene1 joined #mojo
12:24 arpadszasz joined #mojo
12:40 sromanov joined #mojo
13:34 kaare joined #mojo
13:39 noganex joined #mojo
14:11 sromanov joined #mojo
14:30 dotan joined #mojo
14:58 andrefs joined #mojo
15:10 batman joined #mojo
15:11 batman joined #mojo
15:59 l3l1p joined #mojo
17:15 tabbi joined #mojo
17:15 tabbi left #mojo
17:27 regueifa joined #mojo
18:07 lammel2 joined #mojo
18:16 dotan left #mojo
18:30 chorny joined #mojo
18:53 espent joined #mojo
19:15 sromanov joined #mojo
19:40 regueifa joined #mojo
19:44 MojoGuest994 joined #mojo
19:44 MojoGuest994 From: http://news.ycombinator.com/item?id=1277067 (15 hits)
19:48 MojoGuest994 humm
19:54 MojoGuest698 joined #mojo
19:54 MojoGuest698 From: http://news.ycombinator.com/item?id=1277067 (16 hits)
19:55 MojoGuest698 left #mojo
19:59 diegok Hello. Can I hook to the finishing of a UA tx?, tryied this http://pastebin.com/gL8SpSpz but it's never called :-(
20:01 sugar joined #mojo
20:25 Foxcool joined #mojo
20:27 jwang joined #mojo
20:33 jwang joined #mojo
20:55 regueifa joined #mojo
20:59 Kovensky joined #mojo
21:18 smpb joined #mojo
21:35 marcus hmm
21:38 tempire mmmm?
21:38 purl it's MENDELICIOUS!
21:55 sri hmm
21:55 sri diegok: why would you ever want to use that?
21:56 diegok sri: hm, to time or to cache?
21:57 sri ->get returns when it is finished
21:57 sri or is this about following redirects?
21:58 diegok well, its about timing mostly
21:59 diegok I want to log how long was every get
21:59 diegok don't care if it's a redirect or not.
21:59 sri just say it's about redirects, it's the only really valid use case i can think of :)
22:00 diegok redirects?
22:00 purl redirects are my friends, in that case.
22:01 diegok I'm logging on_start and I think that prints also for redirects... just want to log every time a GET or POST finish.
22:02 diegok should I subclass UA?
22:02 smpb joined #mojo
22:04 GitHub68 joined #mojo
22:04 GitHub68 [mojo] kraih pushed 1 new commit to master: http://git.io/DlsHVg
22:04 GitHub68 [mojo/master] fixed on_finish callback to work consistently with the user agent - Sebastian Riedel
22:04 GitHub68 left #mojo
22:04 sri diegok: anyway, it's fixed now
22:04 diegok sri++ :-)
22:07 marcus sri: do you have template validation for .ep in textmate?
22:07 sri validation?
22:07 purl validation is, like, not in the templates though
22:11 marcus like, for the perl files I automatically run perl -c on save
22:11 marcus (ctrl-shift-v)
22:13 sri no, i'm quite sure that does not exist for ep
22:22 marcus sri: it's possible to compile ep down to perl tho?
22:23 marcus so it should be possible to ensure a template doesn't have syntactic errors at least
22:51 DaTa uh, this ubuntu mono font looks crazy, switching back to Inconsolata
22:53 sri marcus: yes
22:54 sri marcus: or actually no
22:54 sri you would need some magic to initialize all helpers when compiling
22:54 sri and lexical variables
22:54 purl lexical variables are only visible in the file they're defined in.  You need accessors to get at them from subclasses.

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