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

IRC log for #mojo, 2015-01-21

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

All times shown according to UTC.

Time Nick Message
00:37 neyasov____ joined #mojo
01:16 hshong joined #mojo
01:36 asarch joined #mojo
01:55 sri guess that's a no for xml_tag() :o
02:24 klapperl joined #mojo
02:31 zivester joined #mojo
02:55 Grinnz http://www.cpantesters.org/cpan/report/b40632b6-6c03-1014-805c-eabb9dc73785
02:56 Grinnz seriously windows, what the hell
02:58 Grinnz sri, easy enough to implement if anyone complains that they actually wanted to make xml :P
03:01 jberger sri: I think perhaps Grinnz is right
03:01 jberger if someone wants to fight for xml semantics thy can make a proposal then
03:01 jberger we have the luxury of the code being easy to implement
03:38 odin22 joined #mojo
03:45 chansen joined #mojo
03:55 noganex_ joined #mojo
03:58 fhelmberger joined #mojo
04:03 phillipadsmith joined #mojo
04:04 inokenty-w joined #mojo
04:08 chansen joined #mojo
04:47 rem_lex joined #mojo
04:56 kaare joined #mojo
05:19 odin22 exit
05:22 dotandimet joined #mojo
05:48 dotandimet joined #mojo
05:58 jonquest joined #mojo
06:35 rem_lex|pivo joined #mojo
06:48 basiliscos joined #mojo
07:25 reneeb joined #mojo
07:27 dotandimet joined #mojo
07:40 dod joined #mojo
07:45 dod joined #mojo
07:48 batman jberger: +1
07:48 purl 1
07:59 reneeb joined #mojo
08:14 eseyman joined #mojo
08:25 trone joined #mojo
08:27 Vandal joined #mojo
08:28 howitdo joined #mojo
08:38 sugar joined #mojo
08:44 McA joined #mojo
09:05 sugar joined #mojo
09:05 McA joined #mojo
09:07 McA joined #mojo
09:38 ichesnokov joined #mojo
09:38 ichesnokov Hi. Is there a MySQL backend for Minion?
09:39 McA joined #mojo
09:44 McA joined #mojo
09:52 Snelius nop
09:56 ichesnokov Is that because no one cared to write one - or because there is something fundamentally wrong in MySQL that prevents people from writing it?
10:01 Insane joined #mojo
10:02 Insane hi all, my mojo app is doing several get/post requests to external hostnames (about 50 an hour) and sometimes it fails with error Can't connect: IO::Socket::INET: Bad hostname 'host.domain'. What might be going wrong?
10:04 Insane e.g. if it must so 5 get requests 1 per 10 mins for one host, first 3 might be done well, on 4th there might be an error, and last one will be ok again
10:04 nicomen dns issues?
10:04 purl nicomen: I can't find the machine name "issues?"
10:05 Insane nicomen, probably, but how to determine where issue come from? is it dns cache problems on machine where mojo runs or problems with corporate dns server?
10:10 fhelmberger joined #mojo
10:11 nicomen I had a similar problem, only the dns times out every 1000 request, since it happens more often with you you might be able to reproduce faster. I used a small script to make sure it was the dns: https://gist.github.com/nicomen/c4a0668a007eb7d07da0
10:19 batman ichesnokov: someone is writing one i think.
10:20 niczero joined #mojo
10:20 batman ichesnokov: iirc that's why this pull request is open: https://github.com/jhthorsen/mojo-mysql/pull/5
10:21 batman which reminds me i should probably have look at those some day...
10:21 batman oh. it's already on cpan :P
10:24 ichesnokov Mojo::MySQL is, but Minion backend isn't written yet: https://github.com/cah/minion-backend-mysql. But thanks for the hint anyway.
10:24 batman i mean't the migrations module is on cpan.
10:24 * niczero received his Official MySQL Contributor t-shirt in this morning's post
10:25 batman and it's Mojo::mysql. don't confuse it with Mojo::MySQL or MojoX::MySQL
10:25 niczero what's there to confuse?
10:25 niczero :P
10:26 batman right...
10:26 batman one of those are still on cpan and Mojo::Pg "compatible"
10:26 batman ...if anything in mysql world can be pg compatible...
10:30 * ichesnokov decides to search for some other job queue, lol.
10:31 Snelius ichesnokov: просто напиши сам и всё.
10:42 ichesnokov Snelius, что именно - бэкенд или очередь?
10:43 * ichesnokov looks at RabbitMQ
10:43 Snelius очередб
10:44 ichesnokov Очередь не хочу.
10:44 ichesnokov Хотя, возможно, придется)
10:45 ichesnokov Тупо из-за того, что коллеги могут не согласиться устанавливать и изучать новый софт.
10:45 ichesnokov (лентяи :)
10:46 cpan_mojo Toadfarm 0.46 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Toadfarm-0.46 (depends on Mojolicious)
10:51 reneeb joined #mojo
10:56 Gedge joined #mojo
10:57 denis_boyun joined #mojo
11:15 pink_mist Insane: sounds like you should set up a caching dns server on the same host so there's less chance of repeated lookups being dropped
11:15 pink_mist Insane: (that's just a guess on my part though)
11:28 chansen joined #mojo
11:42 alnewkirk joined #mojo
11:59 dp_ joined #mojo
12:02 sri ichesnokov, Snelius: this is an english language channel, please respect that
12:02 ichesnokov sorry
12:41 marcus sri: I guess it's not the end of the world, people can just make xml by hand.
12:41 marcus I guess generating rss/atom would be the most common use case for xml support
12:42 pink_mist making xml by hand sounds like a horrible idea :P ... there /are/ other modules for generating xml though =)
12:43 marcus pink_mist: In my experience, the xml/atom generation modules have severe limitations, so people often end up generating those with templates anyways.
13:06 cpan_mojo Swagger2 0.26 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Swagger2-0.26 (depends on Mojolicious)
13:07 dod joined #mojo
13:23 ichesnokov_ joined #mojo
13:24 batman tempire: ^ i had a major bug in validation "body" in 0.25... (in case you are using swagger)
13:27 reneeb batman, jberger: I've added the author ID to my matrix, so it is very easy to get the plugins from one author.
13:27 batman sweet!
13:27 jberger reneeb++
13:27 reneeb I do not search for reverse dependencies on Mojolicious, because this will lead to some Task::* modules that I do not want to test
13:27 sri marcus: there's also embedded xml stuff, like svg and mathml
13:28 reneeb Instead I added a whitelist to add dists like Swagger, Galileo, Convos, etc...
13:28 sri for which people might want to build tag helpers
13:28 reneeb Currently I do the tests for Perl 5.21.8
13:36 ignacio_ joined #mojo
13:37 ichesnokov__ joined #mojo
13:50 btyler joined #mojo
13:51 niczero It would be great if postgres provided free training a la mongo university
13:53 tencendur joined #mojo
13:54 sri it's not really free, they just teach you enough mongo to sell you a support contract ;p
13:59 zivester joined #mojo
14:00 neilhwatson joined #mojo
14:05 marty joined #mojo
14:06 jberger does anyone use mathml anymore?
14:06 jberger I thought just about everyone has moved to mathjax
14:07 jberger I guess if you need something that renders outside of a browser
14:07 * jberger gets sad that people are forgetting LaTeX
14:13 sri jberger: mathml is mentioned all over the html5 spec
14:21 nicomen so hixie likes it perhaps? ;)
14:25 gryphon joined #mojo
14:40 odin22 joined #mojo
14:48 genio LaTeX was nice
14:48 good_news_everyon joined #mojo
14:48 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/fYG_gA
14:48 good_news_everyon mojo/master 513ffff Sebastian Riedel: use a little less code for tag helpers
14:48 good_news_everyon left #mojo
14:48 genio I haven't had a need for LaTeX since college though
15:06 genio joined #mojo
15:15 tencendur joined #mojo
15:27 fwef joined #mojo
15:28 fwef Hi, I'm trying to scrape a website using Mojo::UrlAgent but my request gets following error: http://pastebin.com/iASDtRkL anyone knows what's going on?
15:29 Grinnz unknown error, heh
15:29 Grinnz apparently perl doesn't even know what's going on
15:30 Grinnz fwef, is this a consistent error?
15:30 sri that's an openssl error
15:30 fwef Grinnz: I get it everytime I try to request the website
15:31 sri nobody knows what those mean :o
15:31 amon joined #mojo
15:31 Grinnz fwef, perhaps the website does not allow proper SSL ciphers or protocols
15:31 Grinnz but the error message is not very helpful :P
15:32 fwef Grinnz: Could the problem be, that I'm using the default Mac OS X perl installation? Haven't try to install perl from brew
15:32 Grinnz if you're using an outdated IO::Socket::SSL and Net::SSLeay, maybe
15:32 Grinnz updating those wouldn't hurt
15:33 fwef here's the code by the way: http://pastebin.com/BEF92Frm
15:33 sri default os x openssl is very very old too
15:33 sri doesn't have stuff like sni
15:33 Grinnz right, the openssl lib itself could be the problem
15:45 jberger mind if I ask a Mason question here? I'm porting from Mason to Mojo (Mason I didn't write) and I see this all over the place
15:46 jberger <input name="rxn" id="add_as_rxn" pattern="<% $RD->get("string_patterns/rxn") | h %>"/>
15:46 fwef So I installed perl from brew and everything is working now.
15:46 jberger its the "| h" that I'm interested in
15:46 buu jberger: Isn't that just an html escape filter?
15:46 jberger buu: I expect so
15:46 jberger do you know where I can find some information about that
15:46 jberger googling for | h doesn't help much
15:46 buu http://search.cpan.org/~jswartz/Mason-2.22/lib/Mason/Manual/Filters.pod
15:47 jberger buu++
15:47 buu http://search.cpan.org/~jswartz/Mason-Plugin-HTMLFilters-0.03/lib/Mason/Plugin/HTMLFilters.pm
15:54 jberger https://metacpan.org/pod/distribution/HTML-Mason/lib/HTML/Mason/Devel.pod#User-defined-Escapes
15:55 genio joined #mojo
15:57 jberger I still can't find where it gets loaded, but I think it's safe to assume that that is what is going on
15:58 genio joined #mojo
15:59 muraiki_ joined #mojo
16:02 sh4 joined #mojo
16:06 irq joined #mojo
16:10 doby joined #mojo
16:11 ichesnokov_ joined #mojo
16:14 marmez joined #mojo
16:20 dotan reneeb++ for  http://mojo.perl-services.de - I wonder why Mojolicious::Plugin::Alias is marked as not_ok when cpantesters is still green (although I should probably deprecate it, last time I looked I didn't see how I could make it work the way I really want it to)
16:24 pink_mist nice
16:24 pink_mist reneeb++ indeed
16:25 jberger re: | h : I wonder what HTML::Mason does if a filter is not defined? I am trying to figure out where this app sets up | h, but I can't.
16:25 jberger I wonder if h is not a defined filter if it just returns the output, and thereby, the original author THOUGHT he was escaping, but wasn't
16:25 * jberger makes a test
16:26 pink_mist change it to haha instead; I expect that would be undefined, and you'd see what happens =)
16:26 purl pink_mist: that doesn't look right
16:27 dotan jberger: Thunderbird lets you insert Math expressions as "LaTeX source code". Maybe MathML is just an output format.
16:28 jberger dotan: indeed I have seen MathML be output targets for some systems, but in that case you wouldn't be using taghelpers (unless you were writing one of those systems :o)
16:29 jberger MathJax is just LaTeX, which is why AMS and others have gone to it
16:29 jberger http://www.mathjax.org/demos/tex-samples/
16:38 niczero TeX is the Devil's playground
16:40 dotan jberger: Yeah, I just looked at their copy/paste demos, very cool. Although I am so old that I've never had to type a formatted equation into a computer. Math = paper, in my experience.
16:41 * Grinnz_ wonders if his modules should be included in that table... they aren't exactly plugins
16:42 reneeb dotan: I'll have a look at it...
16:42 dotan thanks!
16:43 bwf joined #mojo
16:43 dotan maybe... cpanm-reporter that?
16:43 dotan (or is there cpan-reporter too?)
16:48 muraiki_ joined #mojo
16:51 good_news_everyon joined #mojo
16:51 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/2JwNmw
16:51 good_news_everyon mojo/master 77f75b0 Sebastian Riedel: more consistent tag helper examples
16:51 good_news_everyon left #mojo
16:55 disputin joined #mojo
16:56 ichesnokov_ joined #mojo
16:58 reneeb joined #mojo
17:03 dod joined #mojo
17:19 rem_lex joined #mojo
17:26 pink_mist naming question: Mojolicious::Plugin::Table or Mojolicious::Plugin::TagHelper::Table ??
17:29 jberger if you did the latter, it should be TagHelpers::
17:29 pink_mist ah, thanks
17:29 jberger I'm not saying that that is what you should do, but nest the names that way if so
17:29 pink_mist yeah, noted =)
17:30 jberger sri, are we recommending a namespace for additional tag helpers
17:30 jberger pink_mist: you might search metacpan to see what others have done
17:30 jberger I know there are a few
17:30 jberger I think there is a MoreTagHelpers, not that that helps
17:30 sri dunno
17:48 denis_boyun joined #mojo
18:03 dotandimet joined #mojo
18:03 * tempire kind of interested in windows 10
18:04 pink_mist me as well ... but I won't get it until it's actually released ... not really a fan of all the data collection they'll do with their prerelease :>
18:04 jberger first osx and now windows, ewwwwwwww
18:05 pink_mist windows 8 and 8.1 were excellent too in my opinion
18:05 * jberger plugs ears and yells **lalalallalalala**
18:05 pink_mist that said, my primary work computer is running slackware =)
18:06 sri the windows design is getting better again
18:06 sri but i prefer the unix core of os x
18:07 mst I'm mostly happy with windows+cygwin X
18:07 mst worked better for me than OS X + X ever did
18:09 * Grinnz_ would rather just linux all the things
18:09 jberger I'm liking the weight and battery life of my mbp, but give me debian packaging any day (and put my ctrl key back in the right spot!!!)
18:10 jberger Grinnz++
18:10 * tempire can't imagine ever going back to linux on the desktop
18:13 jberger tempire: is it just the shiny or the functionality?
18:13 jberger then again, I know you use some of the design tools that aren't available on linux
18:20 sri sad thing is good windows laptops are not even cheaper than macbooks
18:21 genio I could never go back to a non Mac laptop solely because of the awsome that is the touchpad.  every other attempt I've come across fails miserably at the touchpad
18:22 odin22 joined #mojo
18:22 tempire That's true enough. It's amazing how much of a difference it is.
18:22 genio OS X + X?   X-windows things on OS X?  eww.
18:22 tempire I got rid of my mouse altogether because of the trackpad.
18:23 genio after using a mac, you can never go back to any other laptop's poor attempt at mousing
18:23 * Grinnz_ just uses a mouse
18:23 genio if they could replicate that one thing, I'd be very open to other OSes for my workstation
18:24 genio Grinnz: you plug your mouse into your laptop?  That makes for an annoying portable situatino
18:24 Grinnz_ genio: it's a tiny mouse :P
18:24 Grinnz_ no more trouble packing it than a flash drive
18:24 mst genio: I have the same thing except with trackpoints
18:25 mst genio: though I'll admit that the mac trackpoint is the only one I've used and not ended up actively hating
18:25 mst bah, mac touchpad
18:26 genio Grinnz_: having space to use that mouse with the laptop on your lap is not exactly an easy thing to come by
18:26 genio which was my point about portability, not that you had to have the mouse itself
18:26 Grinnz_ i never use laptops on my lap
18:26 genio weirdo
18:27 * genio reverts to his middle school-aged self :)
18:28 * tempire wonders why there's an .xyz tld
18:30 Grinnz_ http://pretendyoure.xyz/zy
18:30 marmez joined #mojo
18:30 basiliscos joined #mojo
18:31 sri really? that's the one you find strange?
18:31 sri http://newgtlds.icann.org/en/program-status/delegated-strings
18:31 Grinnz_ yeah there are a few wats
18:31 Grinnz_ a lot of them seem to be for corporations
18:31 Grinnz_ so that you can have a domain that is just your corporation name
18:32 marmez joined #mojo
18:34 sri $185k each
18:37 sri yea, .rich, that seems appropriate
18:38 irq joined #mojo
18:44 berov joined #mojo
18:46 asarch joined #mojo
19:40 marty joined #mojo
20:34 odin22 joined #mojo
20:34 odin22 joined #mojo
20:46 genio Ghostery++
20:51 salparadise trying to showcase my -Mojo oneliner skills but hitting a fail http://pastie.org/pastes/9848466/text trying to follow this example http://mojolicio.us/perldoc/Mojo/Collection#reduce
20:56 genio reduce was added in version 5.25  what version are you on?
20:56 reneeb joined #mojo
21:02 salparadise genio: ah, let me check
21:03 salparadise Database was generated on Wed, 21 Jan 2015 20:41:02 GMT
21:03 salparadise Mojo is up to date (undef).
21:03 salparadise oh wait, here we go
21:03 go|dfish mojo version
21:06 salparadise got it, thanks!
21:08 kaare joined #mojo
21:09 irq joined #mojo
21:21 ilbot2 joined #mojo
21:21 Topic for #mojo is now 🐯 hear me roar | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
21:23 denis_boyun joined #mojo
21:23 Cheroline joined #mojo
21:27 muraiki_ joined #mojo
21:27 reneeb joined #mojo
21:27 ichesnokov_ joined #mojo
21:30 odin22 joined #mojo
21:31 nicomen joined #mojo
22:04 reneeb dotan: that Mojolicious-Plugin-Alias was shown as "not ok" in the matrix was an error in the regex that I use to check if the dist was installed. The file of your module is Mojolicious-Plugin-Alias-0.0.4.tar.gz, but cpanm reports a successful install for Mojolicious-Plugin-Alias-v0.0.4 (note the "v")
22:04 reneeb ... this is fixed now...
22:04 pink_mist shouldn't you just check the return value of cpanm?
22:05 pink_mist *exit code
22:12 reneeb you're right... will change it...
22:19 zackiv31 joined #mojo
22:22 cpan_mojo Mojo-mysql 0.05 by HARRYL - http://metacpan.org/release/HARRYL/Mojo-mysql-0.05
22:33 denis_boyun joined #mojo
22:44 ignacio_ joined #mojo
22:47 disputin joined #mojo
23:42 jberger sri/batman re phantom
23:42 jberger I think I'm going to stick with role based
23:42 jberger but I'm considering flipping the import flag
23:43 jberger or just omitting it
23:43 jberger import the module to apply the role to test mojo
23:44 jberger batman, the main reason for a role and not a subclass is that if I want two roles I can do that
23:45 jberger also
23:45 jberger I tried to use tape to emit tap from phantom
23:46 jberger it isn't going to be easy to setup (on the user's end) nor easy to collect the results (TAP::Stream is really the only option and meh)
23:47 jberger I think if we wanted to go that far, it would be better for those scripts to be pure js tests scripts that run against a live app
23:48 jberger but that is a very different task than I'm attempting here
23:48 jberger useful and complimentary, but different
23:49 jberger I think once the new Test::Simple is released I will release this too
23:49 jberger with a large warning

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