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

IRC log for #mojo, 2015-01-19

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

All times shown according to UTC.

Time Nick Message
00:01 sri all ruby folks i'm following... hmm
00:03 sri and anil dash
00:04 preaction Just Don't Look! http://www.disclose.tv/action/viewvideo/54613/just_don_t_look/
00:15 sri well, actually... it spans people from node.js core, rails core, and django core, in addition to randoms like anil dash
00:15 sri it's literally *all over*
00:20 mib_zfxgmn joined #mojo
00:40 * genio is all together happy in that he has no knowledge of Twitter.
00:42 preaction it's not so bad. they go in through the nose, and they let you keep the piece of brain they take out
00:43 sri :D
00:54 hshong joined #mojo
00:56 neyasov____ joined #mojo
01:00 odin22 joined #mojo
01:28 hshong joined #mojo
02:27 klapperl joined #mojo
02:34 good_news_everyon joined #mojo
02:34 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/-8sfng
02:34 good_news_everyon mojo/master d9ddec2 Sebastian Riedel: render HTML with a little less code
02:34 good_news_everyon left #mojo
02:51 jberger I'm happy to say that I don't know who any of these people are
02:53 neyasov____ joined #mojo
03:09 sri \o\
03:10 sri //o/
03:27 sri purl: nsa dance?
03:27 purl sri: bugger all, i dunno
03:27 sri purl: nsa dance is http://www.theage.com.au/content/dam/images/1/2/i/6/7/a/image.related.articleLeadwide.620x349.12i5lx.png/1420555257231.jpg
03:27 purl OK, sri.
03:55 good_news_everyon joined #mojo
03:55 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/C7y4ww
03:55 good_news_everyon mojo/master ef927ee Sebastian Riedel: find namespace a little faster
03:55 good_news_everyon left #mojo
03:57 noganex_ joined #mojo
03:59 hesperaux joined #mojo
04:09 zackiv31 joined #mojo
04:18 zackiv31 joined #mojo
04:18 inokenty-w joined #mojo
04:42 neyasov____ joined #mojo
04:46 good_news_everyon joined #mojo
04:46 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/-0ikTA
04:46 good_news_everyon mojo/master 57bb53b Sebastian Riedel: text nodes are more common
04:46 good_news_everyon left #mojo
04:51 odin22 joined #mojo
04:51 sri ah, an experimental perl feature needs to be in two 5.x releases before it can become stable
04:52 sri that's 5.24 for signatures
04:54 Snelius yep, waiting...
05:04 Gedge joined #mojo
05:07 reneeb joined #mojo
05:17 Gedge joined #mojo
05:42 neyasov____ joined #mojo
06:00 jberger so anyone want to see the unholy abomination I've been tinkering with tonight?
06:00 jberger https://gist.github.com/jberger/493850ba69b13f2c6b42
06:01 * jberger runs
06:09 preaction if i'm reading this right, you're injecting javascript so that you can run frontend tests via phantomjs in a perl script
06:09 preaction i like it
06:10 jberger yep that's it
06:10 jberger I would probably wrap the page load more
06:10 jberger but yeah
06:10 sri calm down there victor frankenstein
06:11 preaction i still don't test my frontend code, even after all this fancy stuff to do it
06:11 jberger preaction: same
06:12 jberger sri: some of the motivation for this would be a front-end for minion
06:12 jberger it would basically all be in the front end, all data binding
06:12 jberger this is how I could test it
06:18 sri gotta love those nsa slides https://cdn3.vox-cdn.com/thumbor/-hHq8i491B9tQKTL3Ya7bprqzRk=/800x0/filters:no_upscale()/cdn0.vox-cdn.com/uploads/chorus_asset/file/3050398/i_drink_your_milkshake.0.PNG
06:34 dp_ joined #mojo
06:34 ovnimancer joined #mojo
07:11 cpan_mojo Mojolicious-Plugin-TagHelpers-NoCaching 0.05 by Oleg G - http://metacpan.org/release/OLEG/Mojolicious-Plugin-TagHelpers-NoCaching-0.05
07:13 neyasov____ joined #mojo
07:21 dod joined #mojo
07:27 dod joined #mojo
07:37 reneeb joined #mojo
07:53 basiliscos joined #mojo
08:09 reneeb joined #mojo
08:11 vytas joined #mojo
08:14 sugar joined #mojo
08:14 eseyman joined #mojo
08:27 basiliscos joined #mojo
08:30 trone joined #mojo
08:35 Vandal joined #mojo
08:51 tempire whoa
08:51 * tempire just saw that lexical subs are an experimental feature.
08:57 odc joined #mojo
09:02 neyasov____ joined #mojo
09:08 tempire eh. not as useful as I thought.
09:41 stl joined #mojo
09:41 stl left #mojo
09:48 sugar joined #mojo
10:01 alnewkirk joined #mojo
10:09 absolut_todd joined #mojo
10:14 denis_boyun joined #mojo
10:16 neyasov____ joined #mojo
11:26 denis_boyun joined #mojo
12:06 cpan_mojo MojoX-Session-Simple 0.03 by Da Shan Yang Geng - http://metacpan.org/release/YOWCOW/MojoX-Session-Simple-0.03
12:15 cpan_mojo MojoX-Session-Simple 0.04 by Da Shan Yang Geng - http://metacpan.org/release/YOWCOW/MojoX-Session-Simple-0.04
13:06 cpan_mojo Swagger2 0.24 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Swagger2-0.24 (depends on Mojolicious)
13:14 neilhwatson joined #mojo
13:24 asarch joined #mojo
13:27 fhelmberger joined #mojo
13:38 punter joined #mojo
13:55 dvinciguerra joined #mojo
13:59 neyasov____ joined #mojo
14:20 gryphon joined #mojo
14:23 ignacio_ joined #mojo
14:44 marty joined #mojo
14:50 salparadise joined #mojo
14:52 zivester joined #mojo
15:15 * sri yawns
15:18 nicomen is there any perl dns resolver that uses the system's resolving system?
15:18 crab gethostbyname
15:18 purl it has been said that gethostbyname is get host record given name or perl -MSocket -e 'while (<>) { chomp;print "-> ".join(".",unpack("CCCC",((gethostbyname($_))[4])[0]))."\
15:19 sri better getaddrinfo
15:20 crab right.
15:25 nicomen is there some way to use that as a drop-in replacement for Net::DNS::Resolver?
15:29 nicomen ah it does use it, but I thought systems would be caching
15:29 nicomen responses
15:29 purl responses are assigned types:  $req->return( type => "success", ... );
15:46 batman nicomen: is that really what you're pondering about..? or is there a underlying question?
16:04 nicomen batman: yes, I was wondering is there were any perl dns resolvers that uses the underlaying system's resolving system, apparently gethostbyname and getaddrinfo does. But so does Net::DNS::Resolver with inet_aton from Socket. my next question didn't make sense, as I didn't know Net::DNS::Resolver also used the system at the time (I thought it _only_ connected directly to the DNS servers)
16:05 nicomen so making a drop-in replacement doesn't really make sense
16:06 nicomen I wanted something that used the system's caching, but apparently the system does not cache
16:18 Ptolemarch joined #mojo
16:21 good_news_everyon joined #mojo
16:21 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/csfKlw
16:21 good_news_everyon mojo/master 61fa651 Sebastian Riedel: no need to use closures
16:21 good_news_everyon left #mojo
16:23 good_news_everyon joined #mojo
16:23 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/QYTT6Q
16:23 good_news_everyon mojo/master 1acafea Sebastian Riedel: fixed typo in plugin
16:23 good_news_everyon left #mojo
16:29 jberger starting to look a little more sane and usable: https://gist.github.com/jberger/493850ba69b13f2c6b42
16:29 jberger sri / preaction ^^
16:38 good_news_everyon joined #mojo
16:38 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/46QpUg
16:38 good_news_everyon mojo/master 46e3754 Sebastian Riedel: use a little less code for deprecated helpers
16:38 good_news_everyon left #mojo
16:56 Ptolemarch joined #mojo
17:01 hernan605 joined #mojo
17:11 amon joined #mojo
17:21 Ptolemarch joined #mojo
17:40 hernan605 joined #mojo
17:55 basiliscos joined #mojo
18:01 good_news_everyon joined #mojo
18:01 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/rSW3KQ
18:01 good_news_everyon mojo/master f11624e Sebastian Riedel: more Mojo::ByteStream examples
18:01 good_news_everyon left #mojo
18:02 hernan604 joined #mojo
18:11 dod joined #mojo
18:24 good_news_everyon joined #mojo
18:24 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/uJeQwg
18:24 good_news_everyon mojo/master c003913 Sebastian Riedel: better Mojo::ByteStream examples
18:24 good_news_everyon left #mojo
18:27 bowtie joined #mojo
18:33 mgrimes joined #mojo
18:48 dotandimet joined #mojo
19:03 sri purl: high performance perl is https://pbs.twimg.com/media/B7thxHXCEAEE8bf.jpg
19:03 purl OK, sri.
19:21 denis_boyun joined #mojo
19:23 jberger sri: hahaha
19:23 * pink_mist can't get pbs.twimg.com to work :/
19:28 jberger https://github.com/jberger/Test-Mojo-Phantom # getting more life-like
19:29 pink_mist whoah, that sounds like an awesome project :P
19:29 jberger pink_mist: for the record, I have NO IDEA if this is going to be a recommended module
19:30 jberger I saw this on cpan and it looked interesting, so I started work on my own (as is my custom), but take a look at it for now: https://metacpan.org/pod/WWW::Mechanize::PhantomJS
19:32 sri might be a better idea to make it a standalone test module that doesn't depend on Test::Mojo
19:32 jberger sri: I have thoughts about that
19:33 jberger I need the port and I need to be able to url_for (for consistency if nothing else)
19:33 sri i think it's actually very little code you'd have to duplicate
19:33 jberger other than that, I don't use $t at all
19:33 * sri nods
19:34 jberger but for the sake of sanity, I was thinking about making it a Role::Tiny role, and have import options to either apply it to Test::Mojo or else import a functional wrapper to app_roles_to_object
19:35 sri if you're serious about it go standalone module
19:35 jberger oh, one other thing, I steal the cookies that $t->ua already has
19:36 jberger so that if you have a session going, it can use it
19:36 sri just ignore Test::Mojo
19:36 sri make your own requests
19:37 basiliscos joined #mojo
19:37 jberger sri: I'm curious, are you envisioning a real stand-alone project, or do you not want this associated with Test::Mojo?
19:38 sri a real standalone project
19:38 jberger I can't imagine I would do a better job than the aforementioned module
19:38 sri i don't see any value in dragging along Test::Mojo legacy
19:39 jberger the goal for this was ease of use, especially in my mojo projects (read: work, minion::monitor)
19:39 jberger legacy?
19:39 purl legacy is probably a coded pejorative for 'fail'
19:39 * sri envisions a capybara for mojolicious
19:39 jberger yeah, that's WAYYYY outside of my scope right now
19:39 sri look at how you're connecting your module to Test::Mojo, does that look elegant?
19:40 jberger I would love to see that, but ... wow, that a large committment
19:40 jberger elegant?! ha
19:41 sri that's the thing... making something awesome requires committment ;p
19:42 jberger indeed, and yet, while I would love something awesome, mostly, I need something that works
19:43 jberger or put it another way, perhaps the internals aren't elegant, but I think this is: https://github.com/jberger/Test-Mojo-Phantom/blob/master/t/session.t
19:44 sri "my $phantom = \&Test::Mojo::Phantom::phantom;"
19:44 * sri disagrees
19:45 jberger right, that is on the chopping block
19:45 jberger that's a development hack
19:46 jberger I'm imaging a phantom_ok which would probably be used to start a subtest (with an optional plan)
19:46 jberger that would get injected with some kind of role applier
19:46 jberger whether to the class or to the instance
19:51 sri we need more awesome
19:55 Grinnz get 50 ccs of awesome stat!
20:07 jberger sri: I would love some awesome
20:07 jberger are there people that would build a big shiny wrapper with me?!
20:10 Grinnz http://s3.amazonaws.com/rapgenius/rapper_chains_575.jpg
20:10 jberger I said WRAPPER!!
20:10 jberger :-P
20:10 jberger Grinnz++
20:10 sri lol
20:17 neyasov____ joined #mojo
20:20 neyasov____ joined #mojo
20:27 asarch joined #mojo
20:27 marmez joined #mojo
20:39 good_news_everyon joined #mojo
20:39 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/1ygpOw
20:39 good_news_everyon mojo/master b5099fd Sebastian Riedel: better Mojo::UserAgent diagnostics information
20:39 good_news_everyon left #mojo
20:40 denis_boyun joined #mojo
20:43 denis_boyun_ joined #mojo
20:43 punter joined #mojo
20:45 denis_boyun__ joined #mojo
20:55 neyasov____ joined #mojo
21:14 jberger sri: like this any better? https://github.com/jberger/Test-Mojo-Phantom/blob/role/t/basic.t
21:14 jberger the plan is optional, but it is kinda useful in this context
21:14 sri jberger: yes
21:15 neyasov____ joined #mojo
21:15 sri maybe you should look for collaborators on the mailing-list
21:15 jberger not a bad idea
21:16 sri i can't imagine there is no interest in good frontend testing
21:30 ignacio_ joined #mojo
22:12 good_news_everyon joined #mojo
22:12 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/T5BrgQ
22:12 good_news_everyon mojo/master d6a8b61 Sebastian Riedel: mention how to learn more about HTTP
22:12 good_news_everyon left #mojo
22:13 sri suggestions for improvements welcome
22:13 sri http://mojolicio.us/perldoc#BASICS
22:15 sri i hope it's not borderline TLDR yet
22:17 pink_mist if you mean /just/ the BASICS section, no, that's not tldr =)
22:17 good_news_everyon joined #mojo
22:17 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/OvJwiw
22:17 good_news_everyon mojo/master 8be41ca Sebastian Riedel: documentation tweak
22:17 good_news_everyon left #mojo
22:18 sri i meant the BASICS section... but nothing on that page should be TLDR
22:18 pink_mist oh, well for a beginner, the entirety of it kindof is :>
22:18 sri the TUTORIAL section is a bit much :S
22:19 sri in my defense... jberger made me do that!
22:19 pink_mist perhaps have a separate page just for the references so they don't add so much height to the page :P
22:21 sri purl: dom and jquery is https://pbs.twimg.com/media/B7vE2whCUAAnGWx.jpg
22:21 purl OK, sri.
22:22 Grinnz lol
22:25 pink_mist haha
22:41 Averna joined #mojo
22:47 jberger sri: if you can think of some way to make sure people read Mojolicious::Lite
22:47 jberger the problem always seems to be that new users decide they want to go right for a "full" app and skip that
22:48 jberger as I'm sure you are aware
22:49 hernan604 joined #mojo
22:59 buu I only read things ending in ::Lite when it starts with "XML" or "SOAP"
23:00 pink_mist XML::Mojolicious::Lite :P
23:00 pink_mist horrible
23:00 purl horrible is an understatement.
23:01 pink_mist indeed purl, indeed
23:01 marty I made that mistake; skipping the lite tutorial.  I was lurking in IRC at the time so it did not take long to realize I missed it.
23:02 * pink_mist still hasn't "graduated" from ::Lite ... but I'm plenty productive within the ::Lite confines, so I don't mind
23:02 buu I'm not sure I've ever actually read it
23:04 marty I was doing big-thinks on my new project so lite was not in my He-Man "I have the POWER!" mentality at the time.
23:05 marty I'm now more in the My Little Pony mentality so Like is where I spend most of my time.
23:05 hernan604 joined #mojo
23:05 marty s/ike/ite/
23:06 pink_mist Mojolicious::is::Magic
23:13 hernan604 joined #mojo
23:36 dvinciguerra joined #mojo
23:46 jberger buu: you really should, it introduces all of the concepts and the syntax is used in all of the exaples throughout the documentation
23:46 buu jberger: Shouldn't have named it ::Lite then
23:47 jberger buu: that's the very mindset that had me urge sri to make the message what it is!
23:47 jberger "The simplified notation introduced in the tutorial is commonly used throughout the guides and is therefore considered a prerequisite, you should definitely take a look!"
23:48 jberger I think I even wanted stronger wording
23:50 Grinnz jberger, i think it should be split out to a guide tbh
23:50 jberger not my call
23:51 jberger Mojolicious::Guides::StartHere
23:51 Grinnz or just ::Tutorial
23:52 Adura joined #mojo
23:56 tianon ::Foundation (ie, without this, you won't have a house)
23:56 hernan604 joined #mojo
23:59 Grinnz as a separate ::Tutorial, you also have the possibility of relating to how non-Lite apps handle things like controllers
23:59 Grinnz which i think was the biggest hurdle for me going off the ::Lite tutorial

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