Camelia, the Perl 6 bug

IRC log for #mojo, 2012-10-15

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

All times shown according to UTC.

Time Nick Message
00:27 lammel2 left #mojo
00:31 rwstaune` joined #mojo
00:44 d4rkie joined #mojo
00:46 kevouze joined #mojo
00:48 yko joined #mojo
01:08 laouji joined #mojo
01:25 spyder2010 joined #mojo
01:54 memowe joined #mojo
02:08 asarch joined #mojo
02:33 VK joined #mojo
02:45 noganex_ joined #mojo
03:04 kthakore hi again
03:04 purl oh, you're back!
03:04 kthakore purl: yes
03:04 purl i guess yes is the answer to the latest question
03:11 crab hi.
03:41 kthakore hi crab
03:41 kthakore wats up
03:57 memowe joined #mojo
04:04 omega joined #mojo
04:57 davido joined #mojo
05:05 kevouze joined #mojo
05:21 Foxcool joined #mojo
05:25 AmeliePoulain joined #mojo
05:28 laouji joined #mojo
05:46 crab not much. i'm just trying to get started on work for the week.
06:07 Vandal joined #mojo
06:08 dpetrov_ joined #mojo
06:13 ovnimancer joined #mojo
06:30 vishwanathms joined #mojo
06:30 vishwanathms_ joined #mojo
06:47 spleenjack joined #mojo
07:13 daxim joined #mojo
07:14 jamesw joined #mojo
07:16 batman joined #mojo
07:17 kevouze joined #mojo
07:18 duncanthrax_work joined #mojo
07:21 Mike-PerlRecruiter_ joined #mojo
07:21 batman left #mojo
07:57 Polarn joined #mojo
08:04 fhelmber_ joined #mojo
08:04 pau4o joined #mojo
08:12 ladnaV joined #mojo
08:24 Polarn joined #mojo
08:25 basic6 joined #mojo
08:39 batman joined #mojo
08:48 cosmincx joined #mojo
09:44 Britzel joined #mojo
09:48 baton8 joined #mojo
09:57 bjoernfan Nice topic on the Perl Weekly newsletter.
10:02 batman not sure if i think it's nice, but it's kind of funny... :)
10:15 abra joined #mojo
10:26 abra joined #mojo
10:31 ObseLeTe joined #mojo
10:40 Adura joined #mojo
10:49 ObseLeTe joined #mojo
10:57 yakudza joined #mojo
11:02 rem_lex|pivo joined #mojo
11:14 ladnaV joined #mojo
11:35 vervain joined #mojo
11:56 dwilkinsperlorg joined #mojo
12:00 spleenjack joined #mojo
12:02 * sri yawns
12:02 dwilkinsperlorg left #mojo
12:03 nyamned joined #mojo
12:21 crab joined #mojo
12:52 d4rkie joined #mojo
12:57 memowe \o/
13:06 sri \o\
13:09 ObseLeTe joined #mojo
13:20 rwstauner joined #mojo
13:27 nyamned /o/
13:35 Adura \\o\\
14:11 asarch joined #mojo
14:31 Jason_ joined #mojo
14:44 knshaum joined #mojo
14:57 sh4 joined #mojo
14:57 inokenty joined #mojo
15:08 ZadYree 1 question folks: Is it possible to change the default daemon header disclosing "Mojolicious (Perl)" ?
15:12 ZadYree ok self answer : http://mojolicio.us/perldoc/Mojo/Headers#server
15:13 bluescreen joined #mojo
15:20 ZadYree having $self->headers->server() would be so sawheet
15:27 labrown joined #mojo
15:28 sri haha https://github.com/kraih/mojo/commit/f55dd1116b337​a72ba3696dcdb793c9ee19be3d6#commitcomment-1996782
15:28 sri ZadYree: make a helper
15:29 sri turn it into a plugin ;)
15:31 ZadYree yeah I read that also, helped quite much
15:31 ZadYree everything is working fine now, I'm going to put my company website in production w/ mojo ;)
15:32 good_news_everyone joined #mojo
15:32 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/BHi06A
15:32 good_news_everyone [mojo/master] fixed memory leak in Mojo::Headers - Sebastian Riedel
15:32 good_news_everyone left #mojo
15:40 bluescreen joined #mojo
15:49 jnap joined #mojo
16:03 xaka joined #mojo
16:04 ZadYree sri
16:04 ZadYree I'm having a strange behavior
16:04 ZadYree might be some bug
16:05 ZadYree I'll pm you if confirmed
16:07 asarch joined #mojo
16:07 amirite joined #mojo
16:10 sri please don't pm me, if there's a bug just post it here, i'm not the only one that can help
16:10 sri https://github.com/kraih/mojo/issues/394 # comment!
16:12 ZadYree okay. The problem is just I may be the one involving the problem :S
16:12 ZadYree I mean it may just be a coding error somewhere
16:13 ZadYree w00t
16:13 ZadYree it's not me ^^
16:14 sri crab: you're ok with untestable dependencies?
16:14 * sri is still hoping for command line tests at some point
16:28 vel joined #mojo
16:33 ZadYree there is a CRLF flaw in the log file btw, can't post it now, gotta go :(
16:39 yakudza joined #mojo
16:39 batman joined #mojo
16:42 batman left #mojo
16:44 batman joined #mojo
16:45 sri ZadYree: it's better to ask here and make sure something is a bug before opening a ticket
16:53 sri maybe we should remove the cpanify command from core
16:59 sri we may need a volunteer to maintain Mojolicious::Command::cpanify! https://github.com/kraih/mojo/issues/394
17:02 dpetrov_ joined #mojo
17:09 jwang joined #mojo
17:10 sri tempire, marcus: remove cpanify from core?
17:22 nyamned joined #mojo
17:26 batman can Mojo::IOLoop::Stream watch IO::Socket::INET objects that use UDP?
17:26 sri UDP is not a stream
17:27 batman so?
17:27 purl i think so is visiting parents, I'm tagging along for moral support
17:34 xaka joined #mojo
17:35 sri so it can't work
17:36 sri you would have to write a Mojo::IOLoop::Datagram or so
17:36 sri or just use Mojo::IOLoop->singleton->reactor to watch for readable/writable
17:36 sri and do the rest yourself
17:37 sri i once wanted to write a Mojo::IOLoop::Datagram, but got a headache when i started reading up on IPv6 and UDP
17:38 sri IO::Socket is pretty terrible for UDP in general
17:41 batman ok
17:41 batman thanks
17:59 sh4 joined #mojo
18:09 vishwanathms joined #mojo
18:09 vishwanathms_ joined #mojo
18:10 ZadYree I see
18:11 ZadYree I am redirecting every non-defined routes to the notfound page. Is this lie right? It may be the cause of my issue:$r->route('/(*)')->name(​'404')->to('Static#notfound');
18:12 sri where did you get the impression (*) is a valid route?
18:13 bluescreen joined #mojo
18:14 inokenty ZadYree: http://mojolicio.us/perldoc/Mojolicious/Guides/R​endering#Rendering_exception_and_not_found_pages
18:16 sri hmmmmmm
18:16 * sri wonders if a prompt function/method would be fun
18:16 sri perl -Ilib -Mojo -E 'b("password: ")->prompt->b64_encode->say'
18:16 sri stolen from perl6
18:24 ZadYree inokenty, I am willing to keep forwarding to this page. My problem is in the placeholder
18:25 ZadYree plus I'm not using '/:foo' anywhere
18:30 good_news_everyone joined #mojo
18:30 good_news_everyone [mojo] kraih created prompt (+1 new commit): http://git.io/kEucvw
18:30 good_news_everyone [mojo/prompt] added prompt function and method - Sebastian Riedel
18:30 good_news_everyone left #mojo
18:37 sri https://github.com/kraih/mojo/i​ssues/394#issuecomment-9456182
18:56 earino joined #mojo
18:58 earino so i'm using mojo for a quick little webapp, and it's a blast. i have run into something that i'm sure y'all know how to fix pretty immediately. i am using FindBin::Bin to get my root directory for my app so that i can then give a relative path to my data directory. this works fine when i run: "perl scripts/myapp.pl daemon". when i run it as "morbo scripts/myapp.pl" then FindBin finds the path to morbo, not myapp. how do I go about getting the path?
18:59 tempire who manages the content for cpan.org?
18:59 tempire earino: The Mojolicious app object has a ref to Mojo::Home
19:00 sri earino: mojo version?
19:00 purl well, mojo version is 3.35 (here) - rhaen is updating everything now.
19:00 tempire so in lite: app->home
19:00 tempire in full: $self->app->home
19:00 earino neato! thanks!
19:00 sri what tempire said, in newer versions FindBin is supposed to work too though
19:01 earino sri: this is whatever version i was able to install on thursday of last week, so it should be super-duper new.
19:02 sri type "mojo version"
19:02 earino 3.44 rainbow
19:03 sri hmm, FindBin was fixed in 3.40
19:06 earino sri: i have a moose class which is used by my mojo app, and it uses FindBin, and it seems to be causing the problems.
19:11 good_news_everyone joined #mojo
19:11 good_news_everyone [mojo] kraih pushed 1 new commit to prompt: http://git.io/_FrrhA
19:11 good_news_everyone [mojo/prompt] added prompt tests - Sebastian Riedel
19:11 good_news_everyone left #mojo
19:13 rhaen hep.
19:20 * sri waves
19:21 Mike-PerlRecruiter_ joined #mojo
19:21 sri top prompt or not to prompt, that is the question
19:21 sri s/p//
19:21 tempire cpanify was added originally to  make it very easy to get started with plugins.  It serves that purpose, so I think it should remain.
19:21 * sri shakes tempire
19:22 tempire sri: I commented.  I like prompt in ::Util
19:22 sri tempire: i think the question is if it will grow out of that role... that's what i'm worried about
19:22 tempire what, cpanify?
19:22 sri ye
19:22 * sri stops shaking tempire
19:22 tempire if it does, we'll remove it then.  There's no danger of it not being under scrutiny.
19:24 tempire +i^4 is +1, by the way
19:24 * tempire maths
19:24 sri :o
19:25 sri tempire: sooo, you are +1 on prompt and cpanify prompt, but -1 on Term::ReadKey
19:25 * sri is still unsure where he actually stands now...
19:26 sri crab: is +1 on the idea, but has not said anything about implementation
19:27 sri and marcus is vacationing on a beach somewhere
19:28 tempire modified my comment for clarify
19:28 tempire *clarity
19:34 good_news_everyone joined #mojo
19:34 good_news_everyone [mojo] kraih pushed 1 new commit to prompt: http://git.io/g_qVUA
19:34 good_news_everyone [mojo/prompt] more prompt tests - Sebastian Riedel
19:34 good_news_everyone left #mojo
19:35 sri i love those little perl6 helpers
19:35 sri they are so simple, yet so much fun
19:39 pravus joined #mojo
19:40 pravus I've been trying to mess with Mojolicious sessions, but for some reason I can't seem to get them to work.  Is there something I need to do other than storing values in $self->session() in a controller?
19:42 rhaen guys?
19:42 purl i guess guys is there a version of POE::Component::IRC::Plugin::Connector for tcp connections ? ( Socketfactory )
19:43 rhaen any work to be done on the wiki?
19:43 rhaen any windows specific tests to be done?
19:43 rhaen Anything I could help with?
19:44 sri don't think so, Akron did an amazing job cleaning everything up
19:44 sri a test run of master would be appreciated
19:44 sri for the prompt tests
19:44 rhaen sri: will do that INSTANTLY! MASTER!
19:44 sri \o/
19:45 sri pravus: nope
19:45 sri growing guide has examples using them
19:45 pravus sri: Are there any knobs or buttons I can mess with to turn on some debugging?
19:45 rhaen I tried to help the guys on #win32 - but noone let's me play there.
19:45 rhaen *pffft*
19:46 sri pravus: you may enjoy MOJO_DAEMON_DEBUG=1
19:46 rhaen sri: any debug thing you'd like to have enabled?
19:46 sri rhaen: nope
19:46 rhaen sri: any certain environments you are looking for?
19:47 rhaen author tests enabled? Something like this?
19:47 sri just normal test
19:47 sri util.t and bytestream.t
19:54 rhaen ok, and what now?
19:55 rhaen All tests successful.
19:55 rhaen Files=81, Tests=8753, 157 wallclock secs ( 4.29 usr +  0.31 sys =  4.60 CPU)
19:55 purl Are you feeling lucky?
19:55 rhaen yep, lucky, purl. As always!
19:55 * rhaen hugs the bot.
19:55 purl HANDS WHERE I CAN SEE THEM, PERV!
19:56 sri rhaen++
19:56 rhaen I need to do more mojo stuff tonight. PLEASE
20:03 rhaen hmpf. MOJO!
20:03 pravus Wait a minute... the return value from a controller is significant, isn't it?
20:03 rhaen give me something todo or I will work on the wiki!
20:03 sri looks like someone had a little too much coffee ;)
20:04 rhaen sri: no, I was trying to help somewhere and now I am just feeling frustrated.
20:04 rhaen open source shouldn't be frustating!
20:04 sri if in doubt build something awesome
20:05 rhaen hm, I had this cool redis example. hm...
20:05 rhaen I could write something about rpm and mock build systems.
20:08 xaka joined #mojo
20:11 ObseLeTe joined #mojo
20:13 pravus Argh.  It was just a stupid error on my part.  Thanks for the tips, though.  I've been banging my head on the wall for a couple of hours on this one.
20:13 pravus left #mojo
20:14 sri i'd like more opinions about the Term::ReadKey thing https://github.com/kraih/mojo/issues/394
20:14 rhaen k, I look into some wiki pages from the mojo wiki.
20:14 rhaen sri: saw the discussion about it. Let me think about it.
20:15 rhaen It probably breaks on win32 anyways
20:15 pravus joined #mojo
20:15 rhaen so, I'll check the wiki, expect some more pull reqs.
20:15 sri that would be very valuable information
20:15 pravus Actually, I did have one more question:  Is there a way to assign an under() route to a particular controller class without setting controller_class()?
20:19 Jason__ joined #mojo
20:24 rhaen is there a sane way to test pod for syntax erros?
20:25 rhaen err errors?
20:29 sri Test::Pod?
20:29 purl i heard Test::Pod was just a Pod::Simple subclass, too.
20:30 rhaen k.
20:30 sri i actually have no clue what Test::Pod does... i've just cargo culted adding a Test::Pod test to all my distributions :D
20:31 sri "Test::Pod - check for POD errors in files"
20:31 rhaen :D
20:31 rhaen *ugh* - someone used :: as pathnames in the wiki
20:31 rhaen grr! You can't clone that on Win32.
20:31 rhaen as :: is not a valid path name...
20:33 lukep joined #mojo
20:38 pravus Gotta love Windows path rules.
20:39 rhaen hm, before Apple switched to Darwin we had the same issues there.
20:39 rhaen So, there is nothing wrong with it.
20:40 pravus There's plenty wrong with it.
20:40 rhaen Just make sure to use the correct wiki syntax on github and you are fine.
20:40 pravus It makes cross-system compatibility a nightmare.
20:40 rhaen pravus: hm, I am not too sure about this. Usually poor written Perl code is a bigger problem in most terms.
20:41 rhaen pravus: but I totally agree, the win32 platform needs some more love.
20:41 pravus rhaen: The restrictions are hold-overs from older systems.  There's no need for them now, but they remain for backwards compatibility.
20:41 rhaen (That's why I am here - to spend love)
20:42 pravus Sorry, I have no love to give to Windows.
20:42 rhaen pravus: oh, you are right with that.
20:42 Adura At least nul is shorter than /dev/null.
20:42 rhaen muhahahahaaaa
20:42 rhaen I am using Mojo on Windows and I enjoy it.
20:43 rhaen I am doing lots of crossplatform stuff in Perl between Win32 and Linux and its working
20:43 rhaen I even use Catalyst on Win32 *coughs*
20:43 pravus I have a webservice running under Catalyst that does all the Win32 stuff I need so I can remain fully in the *nix world.
20:44 pravus It was a little adventure to get all that setup under IIS.
20:45 rhaen *UGH*!
20:45 rhaen ok.
20:45 rhaen well, that's a way to do it.
20:45 sri back in the days what annoyed me most about windows was that FastCGI couldn't be spec compliant...
20:46 rhaen sri: what annoys me on win32 - EV is broken.
20:46 sri usually the FastCGI socket is fd1 (afair) when the process is started... but on windows you have to use some special pipe system...
20:47 pravus Yeah, filehandles are weird under Windows.
20:47 sri i thought EV works on windows
20:47 rhaen but hej, it pays my bills.
20:47 pravus Like select() only works on sockets and stuff like that, iirc.
20:47 rhaen EV, true - however libevent seems to be funny sometimes.
20:48 sri the lack of fork() is also very annoying
20:48 rhaen oh, we have ithreads. :)
20:49 pravus Who needs a fork when you have threads?
20:51 rhaen 640k out to be enought.
20:51 rhaen ok, enough windows stuff for today, ok?
20:57 jnap joined #mojo
20:57 pravus Does this look correct if I want to check requests for authentication by asking the Foo controller's authenticated() method?   $r->under( '/' )->to( 'foo#authenticated' );
20:58 pravus I still don't understand routes, yet.
20:59 sri looks good
21:01 pravus Since this app only has one controller, should I set controller_class() at all?  Or does it matter?  I think everything is working now, but I want to avoid issues in the future.
21:03 sri it is unusual to set controller_class
21:04 rhaen sri: I've made a few changes to the wiki, I've cloned the wiki repo and made some more local changes.
21:04 sri since the default gets upgraded automatically when it reaches a more specific controller
21:04 rhaen sri: I will bother you will pulling from the wiki once I've done some certain amount of work.
21:04 pravus sri: Excellent.  Thank-you.
21:04 rhaen sri: maybe you can grant me write access to project again so I can push the stuff in the wiki then.
21:04 rhaen sri: I'll care for the merging of the wiki repos then.
21:05 sri rhaen: sure
21:06 rhaen plus I will write something like a short intro for a small web application.
21:07 rhaen Nothing to serious but a little bit more than a hello world, probably something from the trainings I am running.
21:07 rhaen I want to provide it as a free ebook - written in POD but converted to epub/kindle.
21:07 rhaen would be cool for those subway readers :)
21:09 pravus Well I think I'm done with questions for the day.  Thanks again for all the help.
21:09 pravus Good luck :)
21:09 pravus left #mojo
21:12 rhaen thanks for the add.
21:14 rhaen oh, cool - you can fully see the pod in my repo
21:15 rhaen nice.
21:15 rhaen ok, time for bed. I'll see you tomorrow.
21:16 rhaen waves.
21:25 preflex joined #mojo
21:37 Jason_ joined #mojo
21:44 thaljef joined #mojo
22:25 jzawodn joined #mojo
22:35 thaljef joined #mojo
22:36 good_news_everyone joined #mojo
22:36 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/q0IDcQ
22:36 good_news_everyone [mojo/master] mention password prompt in cpanify command - Sebastian Riedel
22:36 good_news_everyone left #mojo
22:52 kmx sri: I have slightly improved https://github.com/kmx/mojo-server-metyl - would you be so kind and test how the new version scores in your benchmark?
22:54 good_news_everyone joined #mojo
22:54 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/GAF_Bw
22:54 good_news_everyone [mojo/master] better prompt description - Sebastian Riedel
22:54 good_news_everyone left #mojo
22:54 sri kmx: sure
22:58 sri kmx: 1330 rpm
22:58 sri 75ms mean
22:58 sri 181 kb/s
22:58 kmx sri: with keep-alive?
22:59 sri yes
22:59 sri without it's 770 rps
23:00 kmx sri: without keep-alive it is now much better - last time it was only 50rps
23:01 kmx sri: thanks
23:01 sri \o/
23:19 thaljef I am seeing long-running requests being redispatched.  Does that make any sense?  If this is any clue, I see this in the logs (when running hypnotoad): Worker 29328 has no heartbeat, restarting.  But I get the same behavior with morbo too.
23:43 Averna joined #mojo
23:54 thaljef joined #mojo

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