The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2014-05-10

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

All times shown according to UTC.

Time Nick Message
00:29 sri asarch: be more specific
00:34 d4rkie joined #mojo
00:35 asarch In a Catalyst application you can see the parameters in a POST message
00:35 asarch How can I turn on these message?
00:50 asarch How do you save values between calls?
01:07 sri asarch: mojolicious is not catalyst
01:08 asarch I know
01:08 sri mojolicious does not have the log flooding messages
01:09 sri you can make a plugin for it though
01:09 asarch Oh... :-(
01:10 asarch Or, mkdir log && tail -f log/app.log, right?
01:10 sri i made them for catalyst, and i hate them...
01:10 asarch Why?
01:10 asarch They are just awesome to debug
01:11 sri because i know which parameters i sent to the app from my browser window
01:12 asarch Actually, all I need is the "Parameter | Value" section
01:12 sri there quickly comes a point where you know what you're doing and it's just useless noise
01:12 sri and if i need an overview, i just force a 404 or 500
01:12 asarch Well, when you just mastered something, you actually know the values even with a breeze from wind
01:13 asarch But when you are a n00b (on the other hand)...
01:13 sri http://mojolicio.us/perldoc/Mojolicious/Lite#Built-in_exception_and_not_found_pages
01:18 sri http://i.imgur.com/lby8qaK.png
01:20 klapperl_ joined #mojo
01:51 shadowpaste "asarch" at 217.168.150.38 pasted "[debug] Body Parameters are: ." (7 lines) at http://paste.scsys.co.uk/369987
01:51 asarch That's great, however, I actually need something ala Catalyst's output
01:51 asarch Those values passed from a form
01:58 asarch BRB! Reboot time
02:14 btyler joined #mojo
02:27 mfung joined #mojo
03:18 asarch joined #mojo
03:53 basic6_ joined #mojo
03:58 andrefs joined #mojo
04:04 beyondcreed joined #mojo
04:15 Eke- joined #mojo
04:42 neyasov_ joined #mojo
04:45 neyasov_ joined #mojo
05:23 tempire jberger: if it's too advanced, there's only one way to find out.
06:04 * tempire digs jsx
06:15 tempire well, sort of.
06:15 tempire not everything about it
06:22 sujithm joined #mojo
06:38 irq joined #mojo
06:40 Zmodem joined #mojo
06:43 Zmodem using Mango how do I extract the oid; I have found the datastructure but I cannot seem to convert it out of BSON into a string. I attempted to use Mango::BSON::ObjectID->new($oid) but this just comes back null
06:53 Vandal joined #mojo
06:55 Zmodem n/m got it; just was not clear on how it should work
07:28 Eke- joined #mojo
07:39 sawtooth joined #mojo
07:44 sawtooth joined #mojo
09:21 Zmodem exit
09:34 Tiger|2 joined #mojo
09:53 basiliscos joined #mojo
10:30 denis_boyun joined #mojo
10:34 russum1 joined #mojo
11:44 laouji joined #mojo
11:44 laouji joined #mojo
11:47 berov joined #mojo
11:47 berov Hi,all mojo gurus
11:49 berov I have defined a hook and then I get:
11:49 berov Use of uninitialized value in subroutine entry at ../lib/Mojolicious/Plugins.pm line 10, <DATA> line 1662.
11:49 berov the hook is before_routes
11:51 berov is it possible to have some exception in the hook which is not caught and this to cause the strange behaviour in _emit_hook "$_->(@_) for @{$self->subscribers(shift)};"
11:51 berov ?
11:52 berov the hook is defined in a plugin register() method
12:08 berov anyone?
12:08 purl Somewhere, someplace, in some universe, somebody uses whatever you just asked about.
12:17 sujithm joined #mojo
12:26 mire_ joined #mojo
12:36 laouji joined #mojo
12:39 trone joined #mojo
13:36 batman berov: you're (or some other module) probably modifying $_ somewhere in your code.
13:37 berov thanks for th hint, batman
13:37 batman i think mojo does $_->($self, @args) for @cb; which mess up if you change $_ inside the callback
13:37 batman not on the first run, but on the second.
13:38 asarch joined #mojo
13:38 berov exactly :)
13:38 berov when called first time it works
13:38 batman it's not a mojo issue though. it's bad using $_ without local $_; first
13:38 berov and every subsequent - NOT
13:38 batman yeah. then i'm even more sure i'm right
13:39 berov thanks! I think I fixed it
13:39 batman put "local $_;" inside your callback before doing anything else
13:39 batman cool
13:47 basic6 joined #mojo
13:47 laouji joined #mojo
13:48 Zx3 joined #mojo
13:56 sujithm joined #mojo
14:03 romel joined #mojo
14:06 cpan_mojo Mojo-Cloudflare 0.03 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Mojo-Cloudflare-0.03
14:47 babl joined #mojo
14:49 d4rkie joined #mojo
15:26 neyasov_ joined #mojo
15:39 sri \o\
15:39 sri /o/
15:42 neyasov_ joined #mojo
15:52 alnewkirk joined #mojo
15:53 d4rkie joined #mojo
15:53 thowe joined #mojo
16:11 stephan48 are there actual advantages of running mojolicious on a current perl?(5.18.x instead of 5.12.4)
16:23 sri yes
16:35 nicomen s/\Aare there/What are the/;
16:35 nicomen there I fixed your question ;)
16:35 stephan48 thanks :)
16:36 stephan48 also, is there a nice way for automatically installing all deps needed for an application(which is not installable atm)?
16:37 Zx3 joined #mojo
16:37 nicomen stephan48: not sure what you meant by the last one there
16:37 nicomen is there a Makefile.PL present for instance?
16:38 nicomen could try "cpanm --installdeps" in the application dir, if you have any files that list requirements...
16:39 stephan48 ah cool
16:39 stephan48 now i just need to put the stuff from the sorta readme into a coanfile, thanks!
16:40 stephan48 cpanfile*
16:41 nicomen there are several ways of stating dependencies and adding meta information about a package, I'm not sure which one to recommend these days actually
16:42 nicomen at work we use Module::Install, but it's not perfect: http://search.cpan.org/dist/Module-Install/lib/Module/Install.pod
17:08 tempire well
17:08 tempire now my non blocking demos work just fine.
17:08 tempire dtruss confirms that kevent is being called.
17:08 tempire :/
17:16 tempire oh, no it's not.
17:16 tempire not with over 240 connections.
17:20 btyler joined #mojo
17:21 tempire oooooh
17:21 tempire dernit
17:21 tempire running ulimit in a shell script doesn't do anything.
17:21 tempire which makes sense, now that I think about it.
17:23 tempire bam!
17:27 sri tempire: just to be sure i've just confirmed my c10k gist still works
17:28 sri only difference is that memory usage went down by 70mb
17:42 btyler_ joined #mojo
17:43 firnsy joined #mojo
17:45 tempire sri: do you get these warnings when compiling ev? https://gist.github.com/tempire/4def61d8bd588a80cf18
17:45 tempire v4.15
17:45 sri i'm using 4.17
17:46 sri no warnings i believe, with mavericks and latest command line tools
17:47 sri ah, i do have the warnings in the cpanm build log
17:48 tempire Yeah, I only saw them when I ran it manually.
17:54 abra_ joined #mojo
17:55 tempire huh
17:56 tempire anything over 1024 requests, select: invalid argument
17:56 sri that means no kevent again
17:57 tempire dtruss reports kevent calls
17:57 tempire on the daemon
17:58 sri are you doing something weird like using multiple event loops?
17:59 sri no wait, that wouldn't trigger it
17:59 sri that would just use poll for the second reactor, which is slow but doesn't die
18:00 tempire no, but I'm killing something. terminal won't open a new tab now.
18:00 tempire I presume it has something to do with too many open files.
18:00 tempire OPENALLTHEFILES
18:00 sri scaling is hard
18:00 tempire shopping?
18:00 purl shopping is a drag. or a great time, if it's *barber* shopping! </kitch>
18:00 sri \o/
18:36 zivester joined #mojo
18:50 stephan48 tempire: i hate you! ;) damn distzilla user!
18:52 stephan48 tempire: https://github.com/tempire/mojolicious-plugin-paramsauth/pull/1
18:52 stephan48 i will verify functionality as soon as dzil is installed
18:52 jberger stephan48: I feel you
18:53 stephan48 but atleast it won't be the last pullrequest i will send today
18:55 cpan_mojo Mojolicious-Plugin-Humane 0.06 by Joel Berger - http://metacpan.org/release/JBERGER/Mojolicious-Plugin-Humane-0.06
18:56 stephan48 ah :) another plugin i need to have a closer look at somewhen soon
18:56 jberger :-)
18:56 jberger one of my favorites
18:56 tempire Dist::Zilla is glorious.
18:56 tempire accept it.
18:56 jberger it itself is not so bad
18:57 jberger my bigger problem are those plugin bundles
18:57 stephan48 i was like, ok lets fix this... some testing will be good... ARGH distzilla!!!!..... cpanm Dist::Zilla... great 500million modules installed
18:57 jberger then again, its "documentation" is a choose your own adventure, cute, but not very helpful
18:58 stephan48 what i liked about it was that atleast last time it warned me when it wasnt able to load bundles
18:58 stephan48 and that it didn't just die awfully
18:59 jberger stephan48: to be fair, most of the time you can run the tests using prove -l
18:59 stephan48 humane is a nice JS lib, the cool thing is it works practially anywhere from ff 2.0 to ie
18:59 stephan48 yea, but when i want to get a installable package i don't want to do that manually ;)
19:00 stephan48 111 distributions for dzil
19:03 sri Dist::Zilla has kept me from sending patches many times
19:04 jberger sri: same
19:05 sri in fact, right now i won't follow up on this stuff because of it https://github.com/stevan/promises-perl/pull/32
19:06 stephan48 mh.mh.
19:06 sri was on the edge about the initial patch... but tests worked with prove
19:07 stephan48 i don't like it but i can live with it
19:13 laouji joined #mojo
19:16 Eke- joined #mojo
19:17 sri my problem is not so much with dzil, but with repos not being installable modules
19:17 sri when i want to fix something, i fix it now... not in an hour after dzil and its plugins finally finished installing
19:18 tempire I always have dzil installed, so it never bothers me.
19:19 stephan48 sri: yea
19:19 stephan48 exactly
19:20 tempire current mojo version takes 1.5 minutes to install, 30s with j9
19:20 tempire no longer under a minute!
19:20 tempire :(
19:21 stephan48 who cares? ;)
19:21 tempire tests just ruin everything.
19:21 sri me
19:21 sri but tempire is wrong
19:22 sri on a 2012 macbook air tests take 47 seconds
19:22 sri without j9
19:23 sri 15 seconds with j9
19:24 sri we aim for common hardware, so it's all fine imo
19:30 jberger I love it when PRs come with many more lines of tests than code!
19:30 jberger https://github.com/jberger/Galileo/pull/25
19:37 stephan48 mh.
19:37 stephan48 i don't like the development exception template in tests....
19:39 cpan_mojo Mojolicious-Plugin-ParamsAuth 0.03 by Glen Hinkle - http://metacpan.org/release/TEMPIRE/Mojolicious-Plugin-ParamsAuth-0.03
19:39 stephan48 thanks tempire
19:40 tempire whoa
19:40 tempire http://yurichev.com/writings/RE_for_beginners-en.pdf
19:41 stephan48 WTF did  dr-co do there?! https://github.com/stephan48/libmojolicious-plugin-mail_exception/blob/master/t/010-tplugun.t does he really does regexp match on the exception template?!
19:43 jberger tempire, that vimeo, is that YAPC::NA at Madison?
19:43 jberger I was at that!!
19:43 tempire yes
19:43 jberger i don't know if you recall, but I chatted with you afterwords, little knowing that I would be a part of the team later
19:45 jberger I was sitting next to petdance, and he was so tickled by the idea of a friendly irc channel that he immediately tweeted that line out
19:45 jberger tempire++ # I can't wait to rewatch
19:45 tempire Yeah. He abruptly started clapping.
19:46 jberger and yes, it was that very answer that started me down the idea of the "toolkit" I had completely forgotten that you had used that word though
19:46 jberger so now I will have to start giving you credit
19:46 stephan48 can i create a inline template in a .t file?
19:47 * jberger has to concede, video evidence!
19:47 jberger btw, for those of you not following the conversation: http://vimeo.com/44336954#t=43m28s
19:48 * jberger releases Galileo 0.033
20:40 babl joined #mojo
20:47 stephan48 and now to make contenticious releasable again
20:53 jberger one of these days I will get around to moving Galileo to Bootstrap 3 and to do so I will probably move to batman's plugin
21:02 jberger I wonder why CPANTesters seem to ignore the meta information about perl version: http://matrix.cpantesters.org/?dist=Mojo-FriendFeed+0.03
21:02 jberger https://metacpan.org/source/JBERGER/Mojo-FriendFeed-0.03/Build.PL#L14
21:03 jberger why is it trying to test for perl < 5.16?
21:14 laouji joined #mojo
21:25 sri jberger: http://backpan.perl.org/authors/id/S/SR/SRI/ # it used to be Mojo until 2009 :)
21:36 mire_ joined #mojo
22:15 jberger what happened between Aug 2009 and July of 2011?
22:15 jberger was that the Catalyst split?
22:17 jberger "# No imports because we get subclassed, a lot!" -- wow this has been in the codebase a LONG time!
22:19 jberger Nevermore is a cool name
22:20 jberger and Mojo::Template was once called Voodoo
22:20 * jberger likes code spelunking
22:21 sri hahaha, yea, i had no idea where to go with it at the time
22:22 jberger and the stack was once called Curse
22:22 sri i used to call everything Woodstock when i couldn't think of a name, including the first version of catalyst
22:23 * sri might have a problem with cutesy names
22:23 jberger was the the concert or the bird?
22:23 sri bird
22:23 jberger given your tendency towards cartoons, I should have been able to guess
22:27 jberger wow, my first CPAN releases were before Mojolicious: http://backpan.perl.org/authors/id/J/JB/JBERGER/?C=M;O=A
22:45 Eke- joined #mojo
22:48 mire joined #mojo
23:15 laouji joined #mojo
23:46 d4rkie joined #mojo
23:52 poletti joined #mojo
23:52 poletti hi all
23:53 poletti trying to use Mojolicious::Lite with Template::Toolkit and templates in external files, but I get 404 errors and no clue about what’s wrong with the setup. Is there some minimal working example with this setup?
23:59 rem_lex| joined #mojo

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