Camelia, the Perl 6 bug

IRC log for #mojo, 2011-10-26

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

All times shown according to UTC.

Time Nick Message
00:31 xantus[] I'll just have to use routing tricks /w src + dest address
01:04 mire joined #mojo
01:21 driller_work joined #mojo
01:24 sri xantus[]: i think yko wanted src address support once and i challenged him to design a pretty api
01:25 j3nnn1 joined #mojo
01:25 sri (and of course the necessary tests)
01:45 xantus[] ah
01:45 xantus[] I'm not aware of the implementation details
01:45 xaka joined #mojo
01:52 xantus[] I'd be inclined to try if I could find some io::socket code that does this
01:53 xantus[] I'm thinking its LocalAddr
01:53 xantus[] bingo
01:55 xantus[] bind
01:55 xantus[] ok, heading home
01:55 xantus[] bbl
02:28 mattastrophe joined #mojo
04:13 MojoGuest65 joined #mojo
04:13 MojoGuest65 From: http://www.google.com/url?sa=t&rct=j&q=web​socket%20irc&source=web&cd=5&ved=0CDkQ​FjAE&url=http%3A%2F%2Fdev.xantus.org%2F&ei​=r4inTrDKF4jSiALQwuSbDQ&usg=AFQjCNGw6nZv0wO42u​zUnHhWcD0vcKNULg&sig2=H05UQQJaaoCrnf_XqX5k6g (1 hits)
05:32 migo joined #mojo
05:33 Eugene joined #mojo
05:41 abra joined #mojo
06:20 koban joined #mojo
06:26 gabriel joined #mojo
06:49 Vandal joined #mojo
06:50 Foxcool joined #mojo
06:55 batman joined #mojo
07:13 spleenjack joined #mojo
07:13 sugar joined #mojo
07:19 sugar joined #mojo
07:20 mr_sticky joined #mojo
08:13 marcus sri: does mojolicious support pipelining_
08:16 abra joined #mojo
08:17 dolmen joined #mojo
08:20 arthas joined #mojo
09:00 smpb joined #mojo
09:10 perlrocks Twitter: "And finally Mojolicious perlbrew: queued Lite. Have a tremendous sense of old-fashioned" (ja) --hisaju01 http://twitter.com/hisaju01​/status/129122823254978560
09:36 sri marcus: no
09:40 sri or actually, kinda on the server side, it's a requirement for http 1.1 server to support it passively
10:01 smpb joined #mojo
10:15 marty joined #mojo
10:23 sugar joined #mojo
10:31 cosmincx joined #mojo
10:43 judofyr joined #mojo
10:43 judofyr sri: simplest way to redirect /somepath to another Mojolicious app?
10:43 judofyr in a plugin…
11:06 spleenjack1 joined #mojo
11:08 stephan48 mount?
11:08 purl "Are you DONE yet?  I'm getting tired mounting drives all day." or http://www.userfriendly.org/carto​ons/archives/99may/19990531.html
11:09 judofyr stephan48: where's that defined?
11:09 stephan48 its a other plugin
11:16 abra joined #mojo
11:32 regueifa joined #mojo
11:33 andrefs joined #mojo
12:03 perlrocks Twitter: "Templates for WebMatrix to develop Rails, Django, Node.js, Tornado, Goliath, Sinatra and Mojolicious apps  http://t.co/pNnTTui4" --helicontech http://twitter.com/heliconte​ch/status/129166336101326848
12:20 abra joined #mojo
12:31 judofyr sri: you here=
12:31 judofyr ?
12:33 judofyr I need to map the $self in after_dispatch to the same $self in before_dispatch
12:33 judofyr it changes :(
12:40 abra joined #mojo
12:41 perlrocks Twitter: "@marcusramberg how is the async support of mojolicious? it seems less used than other parts." --techpractical http://twitter.com/techpracti​cal/status/129175754545184768
12:43 GabrielVieira joined #mojo
12:53 perlrocks Twitter: "@techpractical Mojolicious integrates with the ev loop, and you can use it with anyevent stuff." --marcusramberg http://twitter.com/marcusramb​erg/status/129178870430711808
12:55 judofyr sri! sri! sri!
12:55 judofyr :(
12:57 sri WHO DARES SUMMONING ME?!
13:00 sri $self changes, but not the content of the stash, mortal
13:00 * sri vanishes in a cloud of smoke
13:01 * marcus stashes the cloud of smoke
13:03 * judofyr stashes sri
13:05 * elb0w_ calls the fire department like a normal sane person
13:06 marcus The Picture of Sebastian Riedel
13:06 marcus http://riedelcastro.github.com/
13:06 marcus he seems way smarter than the other Sebastian Riedel
13:10 diegok marcus: this other one -> http://userserve-ak.last.fm/serve/252/6713177.jpg ?
13:13 marcus polish hippie
13:16 diegok :)
13:20 marcus I think I need a   Locale::Maketext::Extract::Plugin::Mojolicious
13:20 marcus to extract ->l('…',…)
13:35 Hondo joined #mojo
13:37 Vandal does mojo have any tools for databases?
13:48 judofyr Vandal: nope.
13:53 marcus not yet
13:54 * marcus prods sri about mongodb drivers
13:55 jfuller joined #mojo
13:55 jfuller Hey guys, I've got a quick question. Is there documentation for replacing the fail raptor error page?
13:56 elb0w_ perl needs a codeschool
13:56 elb0w_ like zombie rails
13:57 elb0w_ jfuller: blasphemy.
13:57 elb0w_ jfuller: think you need to make a template for it
13:59 elb0w_ jfuller: think this is what you want http://toroid.org/ams/etc/mojo-testing-exceptions
14:00 elb0w_ oh nvm
14:00 elb0w_ read bottom
14:00 elb0w_ https://github.com/kraih/mojo/commit/d2​d234084ce93edb9bd05b6893698b813bc2b73a
14:00 * elb0w_ was right the first time
14:02 * marcus was right both times
14:02 andrefs joined #mojo
14:04 regueifa joined #mojo
14:10 jfuller elb0w_: Thanks. Yes, all I needed to do was create a template "exception.production.html.ep"
14:12 * marty waves
14:13 * marty gets in line behind marcus to prod sri about mongodb drivers.  :)
14:13 * elb0w_ seconds
14:13 * elb0w_ err... thirds
14:13 elb0w_ haha
14:14 marty depends on the array index of marcus.  Is he 0 or 1?  ;P
14:14 marcus I'm #1!
14:14 judofyr sri is definitely #0
14:15 marty heretic!
14:16 andrefs joined #mojo
14:18 * stephan48 pushes himself to the end of the "prod-sri-for-mongodb-drivers-queue"
14:20 yko joined #mojo
14:21 Vandal Î_î
14:21 Vandal why mongodb?
14:22 stephan48 why not?
14:22 Vandal cuse it sux?
14:23 stephan48 why?
14:23 * marty my @let-sri-feel-the-love = rand(@prod-sri-for-mongodb-drivers-queue);
14:23 judofyr but it's web scale!
14:24 Vandal it js-like
14:24 Vandal and js sux
14:24 Vandal ergo mongodb sux
14:29 spleenjack joined #mojo
14:37 yko joined #mojo
14:48 metaperl joined #mojo
14:50 sri marcus: not today
14:51 marcus sri: headache?
14:51 purl CHUNG! CHUNG! CHUNG! CHUNG! CHUNG! CHUNG! CHUNG! CHUNG! CHUNG! CHUNG!
14:52 sri nope, today i have to break Mojo::IOLoop
14:52 gabriel joined #mojo
14:56 marcus yippie kay yay!
14:58 marcus https://metacpan.org/favorite/leaderboard
15:00 sri oh noes, we are not #1 :,(
15:04 mercutioviz joined #mojo
15:06 cosmincx joined #mojo
15:16 amoore joined #mojo
15:26 KayT3 joined #mojo
15:38 perlrocks Twitter: "Definitely too much #django for today, I really want to go back to projects based on #mojolicious." --sirmacik http://twitter.com/sirmacik​/status/129220409366282240
15:41 mattastrophe joined #mojo
15:44 MojoGuest488 joined #mojo
15:44 MojoGuest488 From: http://news.ycombinator.com/item?id=1277067 (51 hits)
15:45 MojoGuest488 test
15:45 MojoGuest488 left #mojo
15:47 sromanov joined #mojo
15:49 xaka joined #mojo
15:49 sromanov_ joined #mojo
16:01 mattastrophe joined #mojo
16:06 sromanov joined #mojo
16:09 mercutioviz joined #mojo
16:13 tempire I'm sad that mithaldu, in talking about perl tutorials, mentioned rails casts but not mojocasts in his blog post on hacker news.
16:13 tempire :(
16:35 sromanov joined #mojo
16:37 xaka is there any way to get list of defined ("has") properties?
16:41 xaka huh?
16:46 Foxcool joined #mojo
16:46 hitz joined #mojo
16:57 perlrocks Twitter: "@marcusramberg anyone in the Mojolicious crowd interested in joining in with us: http://t.co/GpT2ZBZU? You guys are very welcome." --shadowcat_mdk http://twitter.com/shadowcat_​mdk/status/129240282662313984
17:04 sromanov_ joined #mojo
17:43 Foxcool joined #mojo
17:45 mire joined #mojo
17:45 sromanov joined #mojo
18:01 noganex joined #mojo
18:02 smpb joined #mojo
18:02 elb0w_ Wow I wrote an entire module with 0 comments rofl
18:03 elb0w_ so lost right now
18:17 Eugene joined #mojo
18:31 tempire elb0w_: big subroutines?
18:41 jwang joined #mojo
19:03 Mikey joined #mojo
19:13 Eugene joined #mojo
19:20 perlrocks Twitter: "Nice that there's a leaderboard for #metacpan votes, lets push #mojolicious to place 1! :) http://t.co/LEc4r5sa #perl" --kraih http://twitter.com/kraih/status/129276109765345280
19:20 BinGOs no prizes for gaming.
19:27 chorny joined #mojo
19:38 xaka sri: is there any way to get list of defined ("has") properties? i want to iterate over it and do some magic
19:48 sugar joined #mojo
19:49 Shaeto joined #mojo
19:59 MojoGuest112 joined #mojo
19:59 MojoGuest112 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org&usg=A​FQjCNF_rM6vpg9DT3eh4McOgWqn8mn5Xw (4 hits)
20:01 Shaeto for unknown reason one of hypnotoad process eats alot of cpu on idle application
20:01 Shaeto how to check what it is doing now ?:)
20:01 Shaeto no incoming http requests
20:03 mercutioviz joined #mojo
20:04 tempire xaka: they're just subs: https://github.com/kraih/mojo/bl​ob/master/lib/Mojo/Base.pm#L118
20:05 andrefs joined #mojo
20:05 regueifa joined #mojo
20:11 noganex joined #mojo
20:28 MojoGuest692 joined #mojo
20:28 MojoGuest692 From: http://www.google.com/url?sa=D&amp​;q=http://dev.xantus.org&usg=A​FQjCNF_rM6vpg9DT3eh4McOgWqn8mn5Xw (5 hits)
20:29 xaka tempire: yes, i know, i though when you defined it using "has", it keeps list of definitions (names) somewhere so u could use it in some generic code
20:32 metaperl joined #mojo
20:35 diegok http://mojolicio.us/perldoc/​Mojolicious/Lite#WebSockets shouldn't say $self->on( message => sub {} ); ?
20:39 mire joined #mojo
20:51 noganex joined #mojo
20:54 perlite_ joined #mojo
20:57 kaare joined #mojo
21:10 marcus sri: did you look at http://wiki.enlightenedperl​.org/gci2011/gci2011/ideas ?
21:11 sri marcus: do you really think it's a smart idea to put more stuff on my todo list? :)
21:12 marcus sri: this is a question about offloading easy tasks to students ;)
21:12 marcus sri: would be nice to have the mojolicious guides in more languages for instance?
21:12 sri sure
21:13 sri can't really think of much more tasks that are easy enough though
21:15 marcus adding some feature to the home page?
21:15 sri like?
21:15 marcus I still would like to have some sort of notations for the documentation
21:16 marcus like php reference has
21:16 marcus I know you were looking into facebook comments at some point?
21:17 sri i actually tried it for a few hours once, didn't like it much though
21:17 marcus or what about a web socket example mapping visitors to trees on the frontpage animation? :)
21:17 xantus[] joined #mojo
21:17 xantus[] hey hey
21:17 xantus[] hey sri
21:17 sri marcus: i can totally see a student do that ;p
21:17 * sri waves
21:17 marcus sri: judofyr could probably do it, he's 18 :p
21:18 marcus it depends on the student.
21:18 sri too old!
21:18 marcus well, he could probably have done it in ruby last year :-p
21:18 sri kids these days
21:18 purl kids these days are dragging around Java servlets instead of programming anyway...
21:20 sri i wrote my first code with 21 or so :/
21:20 marcus I wrote my first code at 7, so I don't think there's a correlation :)
21:21 marcus in CPC 464 BASIC
21:21 sri :o
21:22 marcus how long does it take to translate the guides? 3-4 days?
21:22 marcus I see there's japanese and russian translations out there already
21:22 marcus might be an idea to coordinate thoe
21:22 marcus those
21:22 sri for all i would guess weeks
21:22 smpb joined #mojo
21:22 marcus I'll say 3-4 per guide then
21:23 sri then again, i'm really bad at guessing
21:25 marcus We'd love to see more simple open source examples for Mojolicious, of traditional apps like wikis, blogs and database admin tools or a real time app  like a chat server or a web interface to control your lego robot or cat litter.
21:25 marcus I'm adding that as a suggested task as well.
21:27 sri sounds good
21:28 andrefs joined #mojo
21:29 regueifa joined #mojo
21:30 marcus prepare to get flooded by high school students wanting to control their hello kitty dolls through a web interface.
21:30 marcus (note: am not in touch with teenagers and actually aware of what they would like to remote control)
21:30 sri that sounds fun
21:30 Shaeto it is okay that hypnotoad main loop process eats cpu in idle, ~11% on my test atom cpu box
21:31 Shaeto *is it
21:31 marcus Shaeto: is it ok for you? :)
21:31 marcus 11% sounds like a lot, is your atom cpu puny?
21:32 Shaeto yes it is puny but there is running much bigger application (same time) and showing 0% eating
21:32 Shaeto but written on c++ :)
21:32 sri you can always increase the ioloop timeout and decrease responsiveness
21:32 mercutioviz joined #mojo
21:32 Shaeto okay understand it is perl looping
21:33 Shaeto seems alot code works at loop iteration
21:33 sri Mojo::IOLoop->singleton->timeout(1)
21:33 Shaeto okay thanks will try
21:34 marcus sri: what is the default timeout? 0?
21:34 sri not really, just connection timeouts and the like get checked each itereration
21:34 sri 0.025 or so
21:34 tempire (a web socket example mapping visitors to trees on the frontpage animation)++
21:34 marcus that's the idle time between loops right? timeout seems a bit ambigious
21:35 Shaeto 25ms thats make it clear
21:35 marcus tempire: I'll add it, if someone wants to do it, they can come here for help.
21:35 sri because it is ambiguous
21:36 sri timeout does slightly different things depending on backend
21:37 tempire would be great to have some mojolicious apps out there that do common tasks
21:37 tempire those are probably the best student projects
21:38 tempire "hypnotoad served chat-backend that logs messages in mongodb"
21:39 tempire actually, that's probably too complicated.
21:39 tempire but something like that (agreeing with you, marcus)
21:41 marcus tempire: added the magical frontpage to http://wiki.enlightenedperl​.org/gci2011/gci2011/ideas
21:41 sri Shaeto: are you using the EV backend by any chance?
21:41 marcus tempire: if you have more student ideas feel free to edit.
21:41 Shaeto yes, EV
21:42 sri that explains it
21:42 purl Damn right it does.
21:42 sri EV iterates faster, causing more cpu usage that can't be avoided
21:42 tempire I think your 3 entries have pretty much covered it
21:43 Shaeto how to switch io backend ?
21:43 Shaeto i thought it is EV hardcoded
21:44 marcus there's an env variable
21:44 Shaeto MOJO_IOWATCHER
21:45 sri i can reduce EV idle cpu usage, but it makes the whole code hard to test
21:46 smpb joined #mojo
21:47 sri i could make the cleanup interval configurable
21:48 sri Mojo::IOLoop->singleton->cleanup_interval('0.1') or so
21:48 Shaeto depends on application required response time i think, my main projects developed on multithread c++ async IO watchers there no such problem but i am too weak in perl to say something in this area. yes cleanup interval will be nice for testing
21:52 mire joined #mojo
21:52 sri oh
21:52 sri ->timeout() actually doesn't do much anymore
21:58 sri it's entirely useless actually
21:58 sri argh
21:59 Shaeto * community become alerted *
21:59 omega phantomjs seems pretty sweet
22:17 smpb joined #mojo
22:43 perlrocks Twitter: "Mojolicious hack of the day: Testing WebSockets - http://t.co/xXQzupCV" --designUpdates1 http://twitter.com/designUpdat​es1/status/129327236225576960
22:46 hitz does mojolicious have a cap on data sent to ->render()?
22:47 marcus nice: https://gist.github.com/563576/1c2cb​949d77ad03f1462be1152a744ed8dccb569
22:49 hitz wait... MOJO_MAX_MESSAGE_SIZE?  Or is that only websockets messages/
22:50 hitz looks like that's the one, websockets has it's own
22:50 hitz havent' graduated to websockets yet
22:54 marcus sri: that jsonp snippet might be nice helper material?
22:56 sri marcus: helper material?
22:56 hitz marcus what's the partial => 1 for?
22:57 marcus hitz: to return the data rather than output it
22:57 marcus sri: a helper to output jsonp?
22:58 hitz oh duh... I was just using Mojo::JSON->new->encode()
22:58 sri marcus: i guess
22:59 hitz probably the same effect
23:03 hitz is ENV{MOJO_MAX_MESSAGE_SIZE} for input or output or both?
23:03 hitz sorry for cryptic questions... sometimes my app in unit test just returns '' although it cranks away
23:05 hitz logging doesn't seem to work from Test::Mojo either
23:11 hitz I have $t=Test::Mojo('myapp)->new; and $t->app->log->path('other file') but nothing
23:23 hitz :( man if this wasn't such a an awesome cool framework I would be sad that my n00b questions don't get answered
23:29 perlite joined #mojo
23:29 gabriel joined #mojo
23:29 mattp joined #mojo
23:29 bzero joined #mojo
23:29 yko_ joined #mojo
23:30 diegok joined #mojo
23:30 metaperl joined #mojo
23:31 marcus joined #mojo
23:32 noganex joined #mojo
23:32 alnewkirk joined #mojo
23:39 mercutioviz joined #mojo
23:46 noganex joined #mojo
23:47 perlite joined #mojo
23:47 metaperl joined #mojo
23:47 chansen_ joined #mojo
23:48 omega joined #mojo
23:48 sgsax joined #mojo
23:48 xantus[] joined #mojo
23:48 BlueT__ joined #mojo
23:48 mike_ joined #mojo
23:48 yko joined #mojo
23:49 rdesfo joined #mojo
23:49 DaTa joined #mojo
23:49 gabiruh joined #mojo
23:49 [R] joined #mojo
23:49 marcus joined #mojo
23:50 andrefs joined #mojo
23:51 alnewkirk joined #mojo
23:53 mike_ joined #mojo

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