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

IRC log for #mojo, 2015-12-01

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

All times shown according to UTC.

Time Nick Message
00:49 al joined #mojo
00:56 al joined #mojo
01:00 jontaylor joined #mojo
01:22 HtbaaPi joined #mojo
01:43 asarch joined #mojo
01:44 asarch What do you think about http://www.flashrouters.com/, are they good?
01:45 asarch I need to buy a load balancer to join two different "Internets"
02:05 Adura joined #mojo
02:21 kaare joined #mojo
03:10 noganex joined #mojo
03:21 voldemortensen joined #mojo
04:38 melo joined #mojo
04:43 cpan_mojo Mojo-IRC-Server-Chinese-1.7.7 by SJDY https://metacpan.org/release/SJDY/Mojo-IRC-Server-Chinese-1.7.7
05:44 diego_k joined #mojo
06:31 Vandal joined #mojo
06:55 dod joined #mojo
07:01 dod joined #mojo
07:07 woz joined #mojo
07:35 berov joined #mojo
07:53 jontaylor joined #mojo
08:05 meshl joined #mojo
08:05 osfabibisi joined #mojo
08:06 sugar joined #mojo
08:12 trone joined #mojo
08:20 kes joined #mojo
08:23 eseyman joined #mojo
08:24 punter joined #mojo
08:24 AndrewIsh joined #mojo
08:41 mtths joined #mojo
08:51 woz joined #mojo
08:53 meshl joined #mojo
09:04 woz joined #mojo
09:13 arthas joined #mojo
09:17 n16gel joined #mojo
09:20 meshl joined #mojo
09:26 irqq joined #mojo
09:26 vytas joined #mojo
09:28 stephan48 i got a model in a Mojolicious Application where i will need to use a Mojo::UserAgent to perform requests against a thirdparty webservice. What would be the prefered course for passing in a UserAgent? Pass in a UserAgent(application wide UA) when instantiating the model during startup? Pass a UserAgent(Gotten from the controller/request) when i actually call a retrieve function? Or just create a standalone
09:29 stephan48 UserAgent inside of the model? Sadly i ...
09:29 stephan48 ... don't know the framework well enough to make a "edjucated decsion"
09:38 woz joined #mojo
09:40 berov joined #mojo
09:40 berov joined #mojo
09:40 vanHoesel joined #mojo
09:43 berov joined #mojo
09:52 anon joined #mojo
09:53 berov joined #mojo
09:59 woz joined #mojo
10:00 sugar joined #mojo
10:00 trone is it possibile make a "braces scope" in mojo epl templates? ex: http://pastebin.com/fiG9JGA9
10:00 Repaster Repasted text from trone: http://fpaste.org/296100/64053144/
10:04 marcusr what is repaster good for?
10:06 trone marcusr: don't know. :-/
10:08 nic click on both links and decide which one let you focus on the pasted content
10:08 nic (the problem might not be apparent if you have a well-tuned ad blocker)
10:14 Quai trone: did you try the example you proveded?
10:15 bpmedley joined #mojo
10:18 gregf joined #mojo
10:20 melo joined #mojo
10:29 trone Quai: no, indeed I asked because at the moment I cannot make a test - and maybe someone tryed, and also get any corner case
10:43 cosimo marcusr: someone, somewhere, founded a startup on a repaster, and he'll sell it for Millions$$$
10:44 sugar joined #mojo
10:51 marcusr cosimo: omg-ponies
10:51 meshl joined #mojo
11:05 bc547 joined #mojo
11:14 pink_mist <nic> (the problem might not be apparent if you have a well-tuned ad blocker) <-- even with an ad-blocker I get an annoying message on pastebin.com saying "AD-BLOCK DETECTED - PLEASE SUPPORT PASTEBIN BY BUYING A *PRO* ACCOUNT"
11:19 sri how dare they try to make a living!
11:24 pink_mist I'm not saying that's wrong of them. I'm saying I like the repaster so I don't need to see it.
11:25 Repaster was kicked by sri: not needed here
11:25 pink_mist :(
11:26 sri your comment actually convinced me that their handling of adblockers is totally reasonable
11:26 Zoffix oooo drama :) What did I miss? :)
11:27 * Zoffix is reminded to put their PastebinCom modules to ADOPTME account.
11:28 sri these days there are sites out there who completely block anyone with an ad blocker, a friendly reminder to buy a pro account is the definition of reasonable
11:29 Zoffix Yeah, IIRC pastbin.com mangles content sometimes. I've experienced it just once, but forget what it was. Maybe they fixed it already.
11:30 pink_mist sure, I don't think they're unreasonable. I just refuse to go there. I may be unreasonable.
11:30 Zoffix That said, I don't care if someone uses a pastebin.com link :) My grind is their API that doesn't seem to work as advertized and you get like 30 requests per day, which results in bogus bugs being reported in my modules and me unable to fix them :P
11:39 sri and now back on topic...
11:40 sri soooo... jar jar binks is the ultimate sith lord?
11:40 nic I'm on the hunt for a mojo::useragent equiv of "wget --load-cookies"
11:40 Zoffix nic, what does that do? Load cookies from file? just setup your own cookie jar
11:40 nic tho I'm close to that threshold where it's quicker to write than to search
11:40 nic yeah
11:41 Zoffix I wish I was at $work. I have a code that does just that... and very succesfully :)
11:41 Zoffix Oh!
11:41 nic GET BACK TO WORK!
11:41 Zoffix It's 6:41am! :)
11:41 Zoffix I might have something similar laying around on my gitlab account
11:41 * Zoffix looks
11:42 nic I'm thinking it's just parse file and   ->cookier_jar->add
11:42 ribasushi joined #mojo
11:44 Zoffix nic, this is what I got: http://fpaste.scsys.co.uk/502211
11:44 nic brill; thanks dude
11:48 sri this is very convincing! https://www.youtube.com/watch?v=8yy3q9f84EA
11:49 Zoffix heh
11:57 cpan_mojo Test-Clustericious-Cluster-0.25 by PLICEASE https://metacpan.org/release/PLICEASE/Test-Clustericious-Cluster-0.25
12:13 ribasushi joined #mojo
12:15 neilhwatson joined #mojo
12:26 bd nic: y u no use Storable?
12:43 nic bd: because that's not compatible with chrome/firefox plugins, wget, and everything else using the netscape format
12:57 marty joined #mojo
12:57 marty joined #mojo
13:10 dod joined #mojo
13:15 itaipu joined #mojo
13:17 cpan_mojo AnsibleModule-0.3 by MRAMBERG https://metacpan.org/release/MRAMBERG/AnsibleModule-0.3
13:25 kaare joined #mojo
13:44 jberger sri: wow the video is more convincing than the reddit
13:50 Grinnz pastebin.com has many more problems than the ads, but the bot is usable by PM if anyone wants to
13:52 Grinnz o_0
14:11 dod joined #mojo
14:18 ajr_ joined #mojo
14:22 genio Ugh.  Texas sues over everything.  http://gizmodo.com/websites-are-being-sued-for-infringing-an-https-encrytp-1745433175
14:23 Grinnz they have a patent on elliptic curve crypto?!
14:23 Grinnz they might as well sue the entirety of cryptocurrency
14:34 punter joined #mojo
14:37 jb360 joined #mojo
14:45 jberger I doubt that company is ACTUALLY a texas company (or even a real company) but rather is just a patent troll
14:45 jberger they always sue in texas because of the historical trends in rulings
14:48 * moritz never understood the US justice system
14:49 jberger no one understands the current state of the patent process, let alone software patents
14:50 nic Just watch Breaking Bad, it's mostly based on factual events
14:51 jberger at a minimum they need to figure out how to prevent the patent troll phenomenon
14:51 jberger it adds no value to industry
14:51 jberger its just an additional tax
14:54 genio wipe out that one city in Texas that has the vast majority of patent troll cases and we're good
14:54 genio well, in that case anyhow
14:58 asarch joined #mojo
15:04 dod joined #mojo
15:05 voldemortensen joined #mojo
15:16 carneirao joined #mojo
15:17 sri so, Zoffix just said that one perl6 framework was "57.1432%" as fast as mojolicious
15:18 sri and as a side note added that he handicapped mojolicious with stuff like using morbo
15:18 sri ...
15:18 sri (on #perl6)
15:21 stephan48 someone wants to answer my earlier question? http://paste.stejau.de/a3514865d5d1 - thanks in advance!
15:22 marcusr sri: what is "57.1432%" as fast? 50% slower?
15:24 sri marcusr: we've established by now that it's a meaningless number
15:25 marcusr sri: agreed.
15:28 ZoffixW joined #mojo
15:31 ZoffixW Oh my gawd, you make me sound like a villain spreading lies about Mojolicious :) I spent the entire morning walking through recent breakage fallout of P6 ecosystem and when I managed to get Bailador to actually work I ran a simple test to see if Bailador was even usable. It wasn't meant to be a benchmark as I've explained in the channel http://irclog.perlgeek.de/perl6/2015-12-01#i_11634606
15:31 sri ZoffixW: maybe try the framework benchmark game with perl6
15:31 ZoffixW What's the "framework benchmark game"?
15:32 sri ZoffixW: bad benchmarks are a pet peeve of mine
15:33 sri the one i linked to before https://www.techempower.com/benchmarks/#section=data-r11
15:33 sri i'm sure many folks would love to see perl6 in there, just to get a feeling got where it stands
15:33 jberger ZoffixW: I've worked with them before, its much easier to work with now than it used to be
15:34 sri s/got/for/
15:34 ZoffixW And FWIW, I also said this: [10:27:01] <ZoffixW> _sri_, I think it'll widely depend on what you're doing. I ran a Perl 6's HTML parsing module on a test page and it took 1.66 minutes, but Mojo::DOM parsed it in less than a second.
15:34 * ZoffixW is not a villan :'(
15:34 jberger also, they have an irc channel f#techempower-fwbm
15:34 ZoffixW Though I think I got a nosebleed -_-
15:36 marcusr ¯\_(ツ)_/¯
15:36 ZoffixW False alarm \o/
15:36 * sri punches ZoffixW on the nose
15:36 ZoffixW left #mojo
15:36 * jberger gets a mop
15:36 sri knocked out
15:37 marcusr https://i.kinja-img.com/gawker-media/image/upload/s--uWB5InH1--/phpt7jraphwddug9n549.jpg
15:38 sri but seriously, i'd love to see a good perl6 benchmark
15:38 sri just thought that maybe parsing json would be a good start
15:39 sri this seems to be idiomatic perl6 https://github.com/moritz/json
15:41 stephan48 i think i will provide an UA to my model upon instantiation. seems like the most sensible approach.
15:42 jberger stephan48: I often think about that question from a testing perspective
15:42 jberger how are you most easily going to be able to inject a mock service
15:42 jberger (and yet not impede the functionality of the module)
15:43 stephan48 i think i would probably look at that Mock UA implementation someone here wrote
15:43 stephan48 which if it does what i hope it does could just be passed to the model instead of the "real" UA
15:43 sri jberger++ # always fun to reference the benchmark results
15:44 sri didn't expect that at all
15:44 jberger \o/
15:44 sri i've been hating on the framework benchmarks so much
15:44 jberger I still need to submit an upgraded cpanfile.snapshot
15:45 stephan48 sometimes i wish google would just directly link to metacpan
15:46 jberger stephan48: the MockUA thing (PopeFelix I think) is IMO quite a large hammer for the usual problem
15:46 jberger I have used something like this: https://github.com/jberger/Webservice-Shipment/blob/master/lib/Webservice/Shipment/MockUserAgent.pm
15:47 jberger (though I should have put that class under t/, I must have been drunk that day)
15:47 stephan48 (/me likes the being drunk excuse. should use that more often=
15:48 jberger ) # the ocd was killing me
15:49 stephan48 yea both have their advantages and disadvantages. i will study them a bit and then hopefully even actually write more than one test for once
15:49 stephan48 thanks!
15:49 jberger look at the tests I wrote for that module
15:50 jberger note that of course the problem is that if the shippers change their api, my tests don't catch it
15:50 jberger but then again, neither does a complete lack of tests, which is often the result of not mocking the service
15:50 stephan48 exactly
16:15 voldemortensen joined #mojo
16:21 kerframil joined #mojo
16:31 bpmedley_ joined #mojo
16:40 sri jberger: any progress on the branch? :)
16:40 jberger sri: sorry, haven't had time
16:40 sri :,(
16:40 jberger I know, but I did say that before
16:48 marcusr https://github.com/rakyll/boom
16:50 sri not in homebrew yet
16:53 jberger :o Mojolicious and Mojo::Pg in advent calendar day 1!
16:53 jberger http://perladvent.org/2015/2015-12-01.html
16:54 jberger Trelane++
16:54 jberger (if I remember my IRC nicks correctly)
16:55 sri Trelane++
16:55 sri the use of state in the action is interesting
16:56 sri oh, found a bug ;p
16:56 jberger using j in the template (rather than to_json) is probably a bug, but a small one
16:56 sri hahaha
16:56 sri same bug!
16:56 jberger \o/
16:56 sri yes, he wants to_json
17:02 Trelane I do?
17:03 sri http://mojolicio.us/perldoc/Mojo/JSON#to_json
17:03 sri to avoid double encoding
17:13 Trelane yeah, you're right
17:13 Trelane fowler's rule on unicode: There's always another unicode bug, you just haven't found it yet
17:14 voldemortensen joined #mojo
17:16 Trelane okay, fixed next time the site renders (which it does every 15 minutes)
17:19 Trelane I should have used IPs that rendered to places with non-ascii names in the example.  That'll teach me.
17:19 * sri retweets
17:21 stephan48 Trelane++
17:48 kaare joined #mojo
18:10 PryMar56 joined #mojo
18:12 voldemortensen joined #mojo
18:18 sri we need more drama
18:18 CandyAngel sri: You are a meanie
18:18 sri :)
18:18 CandyAngel Happy to help!
18:41 dod joined #mojo
19:03 lluad joined #mojo
19:04 trone joined #mojo
19:07 voldemortensen joined #mojo
19:31 sri well, that escalated... slowly
19:35 stephen joined #mojo
20:02 dod1 joined #mojo
20:43 marty joined #mojo
21:05 carneirao joined #mojo
21:23 melo joined #mojo
22:13 berov1 joined #mojo
22:14 berov1 Mojolicious is only 4 in the top 20 of most popular modules on MetaCPAN http://perlmaven.com/most-popular-perl-modules
22:15 Grinnz_ i'm not sure what to make of that page, i have never heard of App::Netdisco
22:16 Grinnz_ and there's no way WWW::YouTube::Download is one of the most popular modules
22:16 Zoffix yeah
22:16 Grinnz_ the metacpan results are clearly skewed by something
22:16 lluad It's page visits, not downloads.
22:17 lluad So maybe skewed by SEO / google hits / ?
22:17 Zoffix left #mojo
22:17 Grinnz_ DateTime and DBI and JSON i could definitely see up there in terms of page hits
22:18 sri well, that made me visit the page for App::netdisco
22:18 lluad It's not as exciting as it should have been from the name.
22:18 Grinnz_ hehe
22:18 lluad Acme::DRM, OTOH.
22:19 neilhwatson joined #mojo
22:19 * genio goes and reloads the pod page for Net::FullAuto over and over.
22:21 Grinnz_ genio: hopefully google analytics at least is a little smarter than that... hopefully
22:21 sri really too bad we can't have download stats
22:22 Grinnz_ cpanm has download stats, IIRC
22:22 Grinnz_ or was that just for cpanm itself, heh
22:23 sri even if it had, the one-liner we recommend disables lookups with the web service
22:23 sri -M
22:23 Grinnz_ sure
22:23 Grinnz_ http://cpanmetadb.plackperl.org/ says the data is "stored" but doesnt say it has that kind of stats available
22:32 jberger also, we direct our documentation traffic to mojolicio.us so we are going to expect to have less traffic than other comparably used modules
22:32 jberger (which don't provide their own doc viewer)
22:33 Grinnz_ also likely that distributions with multiple modules are considered separately in that analysis
22:35 jberger really?
22:35 jberger so we should add the results for Mojolicious, Mojo::DOM, Mojo::JSON and Mojo::UserAgent
22:35 jberger that probably gets us a lot closer to a total metric
22:36 jberger (still doesn't count mojolicio.us)
22:42 anon3252523 joined #mojo
22:42 noganex_ joined #mojo
22:46 bobkare joined #mojo
22:49 itaipu joined #mojo
23:11 voldemortensen joined #mojo
23:26 asarch joined #mojo
23:38 cpan_mojo Mojo-UserAgent-Mockable-1.11 by POPEFELIX https://metacpan.org/release/POPEFELIX/Mojo-UserAgent-Mockable-1.11
23:53 n16gel joined #mojo

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