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

IRC log for #mojo, 2015-01-12

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

All times shown according to UTC.

Time Nick Message
00:04 denis_boyun joined #mojo
01:12 absolut_todd joined #mojo
01:14 jberger note for the record that I'm not as impressed with the absolute number of lines as I am that there are more tests than lines
01:17 jberger also I found out that I'm giving the talk next month, so I'll update the lines/tests again then
01:23 jberger hahaha http://blogs.msdn.com/b/vbteam/archive/2015/01/10/we-re-moving-to-github.aspx
01:24 preaction makes sense, since they want their platform to be os-agnostic, and to get the mac/linux crowd, they need an agnostic dev toolchain
01:47 davido__ joined #mojo
02:35 klapperl joined #mojo
02:49 Averna joined #mojo
03:04 good_news_everyon joined #mojo
03:04 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/O_as2A
03:04 good_news_everyon mojo/master 0293931 Sebastian Riedel: fixed JSON Pointer escaping bug
03:04 good_news_everyon left #mojo
03:07 cpan_mojo Statocles 0.033 by Doug Bell - http://metacpan.org/release/PREACTION/Statocles-0.033 (depends on Mojolicious)
03:08 preaction hello cpan_mojo! welcome back!
03:10 Yelu joined #mojo
03:26 davido___ joined #mojo
03:29 noganex_ joined #mojo
04:24 hshong joined #mojo
06:04 stl joined #mojo
06:14 rem_lex joined #mojo
06:48 denis_boyun joined #mojo
07:02 dod joined #mojo
07:06 Insane joined #mojo
07:07 dod joined #mojo
07:07 migo joined #mojo
07:15 reneeb joined #mojo
07:21 dp_ joined #mojo
07:56 basiliscos joined #mojo
08:03 eseyman joined #mojo
08:07 denis_boyun_ joined #mojo
08:11 basiliscos joined #mojo
08:31 Vandal joined #mojo
08:32 rem_lex joined #mojo
08:38 trone joined #mojo
08:40 vytas joined #mojo
08:43 cpan_mojo Swagger2 0.23 by Jan Henning Thorsen - http://metacpan.org/release/JHTHORSEN/Swagger2-0.23 (depends on Mojolicious)
08:47 odc joined #mojo
08:50 juikuen joined #mojo
08:50 dp joined #mojo
08:52 sugar joined #mojo
09:16 denis_boyun joined #mojo
09:29 uniejo joined #mojo
09:34 uniejo Trying to get Mojoconf 2015 together in Copenhagen. Did anyone else go for it?
09:41 irq joined #mojo
09:44 nicomen \o/
09:47 odc Copenhagen sounds great!
10:05 Eddy joined #mojo
10:44 denis_boyun joined #mojo
10:51 dotan1 Copenhagen or New York?
10:51 dotan1 Someone in the Israel Perl Mongers mailing list also wanted to organize a local Mojolicious conference.
10:52 dotan1 I have got my co-worker to use Mojolicious!
10:53 dotan1 He's stuck trying to figure out how to upload an image to couchdb - he looked at the cookbook example http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Large-file-upload but that sends a form, he wants to post the file as img/png, not multipart/form-data
10:55 dotan1 and the docs fail him - the parameters for all the methods are only documented by example, the nested class hierarchy confuses him, and I don't think I can find the answer either without looking at the code or experimenting.
11:03 ashimema joined #mojo
11:10 uniejo dotan1: Anyone working on a mojoconf in New York?
11:13 dotan1 uniejo: Richard mentioned he could get someone to organize it in NY. Met me find it in the backlog...
11:14 dotan1 Conversation starts here: http://irclog.perlgeek.de/mojo/2015-01-04#i_9887067
11:19 uniejo Ok. I guess that we should then back off on having a Copenhagen Mojoconf...
11:27 uniejo joined #mojo
11:30 odc uniejo, no you shouldn't!
11:36 ente joined #mojo
11:38 ente ohai
11:39 ente I'm supposedly trying to write a client using IOLoop which keeps open a TCP connection, sends a request and then needs to wait for the reply
11:40 Lee joined #mojo
11:41 ente how would I do that, given that IOLoop is asynchronous? keep a list of callbacks internally and call them as data arrives?
11:43 jberger ok so here is the story on mojoconf (as I know the details)
11:44 batman dotan1: why does he want to post it as image/png...?
11:44 jberger there was originally interest from the Copenhagen guys and there was interest from one other party
11:44 batman dotan1: i think the image will simply be available in $tx->req->body if it's not part as a form
11:45 jberger that other party had seemingly a few good ideas, but in the end that didn't pan out
11:45 jberger I believe sri then reached out to the Copenhagen guys again to see if they were still interested. I don't know the results of that conversation
11:45 batman ente: yes. look at this example https://metacpan.org/pod/Mojo::IOLoop::Client#SYNOPSIS but use Mojo::IOLoop->client() to construct the client
11:46 batman ente: https://metacpan.org/pod/Mojo::IOLoop#client
11:46 jberger then out of the blue, riche proposed organizing mojoconf in new york
11:46 dotan1 batman: because he's mimicking some angular ajaxy upload hotness, and he wants to do the upload from the server as well as the client.
11:46 jberger since it seemed (to me at least) that copenhagen was off the table, we encouraged him
11:47 batman dotan1: sorry. i don't follow. "upload from server/client" doesn't make any sense to me
11:47 dotan1 stuffing the image into the $tx->req->body is what I'm wondering about.
11:47 jberger now if copenhagen is back on the table, I think we should issue an offical "call for hosting proposals", which tbh we should have done ages ago
11:48 uniejo joined #mojo
11:48 nicomen +1 at jberger
11:49 jberger I think the reason that that didn't happen is that it wasn't clear who should
11:50 jberger olso.pm organized the first one mostly independently of the mojo core team (except for marcus, and now batman who wasn't core yet at that point)
11:50 jberger but it wasn't clear who would choose the second host
11:50 batman \o/
11:50 jberger batman++ # my apologies
11:51 batman none needed :)
11:51 jberger :-)
11:51 dotan1 BTW, batman++ on Mojo::Asset::Pack. I was writing some javascript and thought "this is getting a bit long, let's split it up into a few files". Instead of learning how JS Modules and their hacks work, I just added M::A::P and split my javascript into files. Magic!
11:51 batman i think the mojoconf in oslo ended with "if anyone wants to organize the next mojoconf, then please be in touch"
11:51 batman *get
11:52 jberger at some point, the core team decided that lacking any other governing body (like perlfoundation) to mediate, we should be the final say in who gets chosen
11:52 batman dotan1: sweet! i'm working on a working browserify module as well now, which allow you to do require("./code.js");
11:52 batman it's a bit tricky :(
11:53 ente batman: and then? that example doesn't do anything
11:53 jberger I think all things being equal, it might be nice to alternate between continents (unless we would get large enough to have both)
11:53 batman (https://metacpan.org/pod/Mojolicious::Plugin::Browserify is not very good)
11:53 ente I mean, I've seen the example :|
11:53 ente I'll elaborate when I'm less tired, perhaps that's better
11:53 ente sorry
11:53 batman jberger: i think it would be nice to have a mojoconf, nomatter where, hehe
11:53 jberger batman: oh, certainly
11:54 jberger I guess, I retract that statement about continents, it does no good
11:54 batman ente: look at the documentation for Mojo::IOLoop::Client. it should tell you which events are fired and how to connect to the remote server
11:54 batman also: i'm going to the mojoconf nomatter where, unless it's in australia (or i have a crisis)
11:55 batman :)
11:55 jberger I think that we should have offered a "call for hosting proposals" long ago and probably the deadline should have passed already to be submitted
11:55 dotan1 batman: what's the problem with the Browserify plugin?
11:55 jberger but seeing as it hasn't and the host needs all the time they can get, do you think it would be fair to ask for a call for proposals due feb 1?
11:55 batman jberger: yeah. maybe we should post to the mailing list in august or something....
11:56 batman dotan1: it fail when trying to compile react code in some cases :(
11:56 batman dotan1: i'm trying to make a custom browserify executable that does caching right.
11:56 jberger the mojo core team could then try to decide quickly and hopefully any proposals that aren't chosen could be future hosts?
11:56 batman node is alien (a bit hard), but fun :)
11:58 dotan1 batman: I think the React guys are using webpack https://webpack.github.io/
11:58 dotan1 The problem(?) with all those front-end dev tools is that they are forcing us all to become node programmers.
12:00 batman dotan1: the whole idea is that my browserify plugin allow you to focus on javascript and perl, and not node
12:00 batman dotan1: i've looked at webpack, but i think i'm going for browserify
12:00 batman ...unless someone tells me why i shouldn't
12:01 batman looks like webpack is assetpack, while browserify is for allowing require()
12:01 batman i might be wrong though
12:03 batman dotan1: the reason why i want browserify is that AssetPack's JavaScript preprocessor doesn't isolate
12:03 batman also, a browserify extension allow you to include packages installable using npm
12:04 batman that is super cool, since then you can do code reuse, like you would in perl space :)
12:04 batman example: "$ npm install some-cool-feature" and the add "var CoolFeature = require('some-cool-feature');" to your javascript
12:05 batman but my module takes care of the "npm install" step for you, so you don't have to :)
12:05 batman tempire: that's why i wanted to do another assetpack talk ^^^
12:12 batman dotan1: browserify can process react using https://www.npmjs.com/package/reactify
12:12 batman any help or input is more than welcome
12:14 uniejo joined #mojo
12:15 batman jberger: unfortunately uniejo wasn't here when you explained about the mojoconf status
12:16 batman or maybe i'm wrong :/
12:17 batman uniejo: http://irclog.perlgeek.de/mojo/2015-01-12#i_9920891 <--- in case you missed out
12:17 asarch joined #mojo
12:19 uniejo batman: already following the irclog on the side.
12:20 batman uniejo++
12:21 amon joined #mojo
12:21 jberger uniejo: how far along in planning are you?
12:21 jberger that would be my other concern, not wanting to waste effort
12:22 jberger I want there to be a mojoconf in Copenhagen sometime, I wouldn't want to dissuade you by wasting a bunch of effort
12:24 uniejo Still early stages, therefore backing off is not a problem.
12:26 diegok joined #mojo
12:29 jberger uniejo: could you make a proposal by feb 1 and still not waste too much effort? or perhaps do you and riche want to work out a plan?
12:30 al joined #mojo
12:31 jberger I'm sure we would be ok blessing an heir apparent for next year I'd he and you decide which order
12:31 dotan1 My UserAgent-Fu has failed me. my co-worker is going to shell out to curl for his file upload :(
12:32 batman dotan1: can you pastebin?
12:33 batman jberger: i agree.
12:33 dotan1 https://gist.github.com/dotandimet/902dd54bb8906f0a0094#file-curl-binary-upload
12:39 * jberger & # traveling to work
12:40 batman dotan1: https://ssl.thorsen.pm/paste/bd8674c879d1
12:40 batman dotan1: not sure if it works, but please have a look
12:40 batman dotan1: the %headers hash is not required
12:40 dotan1 batman: looks pretty much like what I've got.
12:40 batman what does "pretty much" mean :P
12:40 dotan1 Just a sec
12:42 dotan1 https://ssl.thorsen.pm/paste/ea30d1d2424d
12:42 uniejo Jberger: Copenhagen can wait, if riche can go ahead.
12:42 dotan1 Let me edit it from a one-liner to something readable...
12:42 batman dotan1: i think you forgot "data =>"
12:42 * batman checks
12:43 batman dotan1: no, you're right
12:43 batman dotan1: have you tried with MOJO_USERAGENT_DEBUG=1 and curl -vv to have a look at the differences
12:44 dotan1 https://ssl.thorsen.pm/paste/b83578a972a6
12:44 dotan1 I need to change the revision number in the url to get a valid response from couch
12:45 dotan1 batman: For some reason, I never tried MOJO_USERAGENT_DEBUG, I'll give it a go.
12:45 batman it will probably be a bit messy, but try to *filter out* the jpeg stuff
12:46 batman dotan1: also, please try mine just for the fun...
12:48 batman i can't see any difference though :(
12:49 sugar joined #mojo
12:49 dotan1 I can't see any difference either, except yours is more readable :)
12:50 dotan1 And it builds the $tx in steps, instead of using one monster $ua->put(...) call
12:51 batman do you see any difference in the debug output from your oneliner and curl?
12:51 batman also, what is the error message you receive?
12:53 dotan1 Mine worked, once I set the ?rev=... to the correct revision (it's a couchdb thing).
12:53 dotan1 I wonder if yours is safer, because I use slurp() and you set the body with asset().
12:54 batman mine could be less memory consuming
12:54 dotan1 I'll clean it up and have my co-worker check it works OK (ie, it actually stores the image).
13:01 dotan1 I've sent him yours :)
13:01 batman :)
13:02 dotan1 thanks! It's fun to tell someone his problem was solved .... by the batman!
13:02 batman i hope you used my special voice, when you said "the batman" ;)
13:03 batman dotan1: but... i guess the problem was already solved by you though
13:06 human39 joined #mojo
13:10 neilhwatson joined #mojo
13:25 sri dotan1: http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Content-generators
13:27 sri jberger: we should have a conference czar on the core team
13:27 * sri nominates jberger
13:31 sri dotan1: the difference is that you load everything into memory, while the other two variants stream directly from the file
13:43 cpan_mojo MojoX-Mysql 0.10 by Kostya Ten - http://metacpan.org/release/KOSTYA/MojoX-Mysql-0.10
13:44 dotan1 sri: was that example there in the docs all along? Dang. Also, don't I need to set the content type somewhere in that 2nd example (the stream generator)?
13:46 basiliscos joined #mojo
13:53 batman dotan1: test it! :)
13:57 sri i don't understand stackoverflow...
13:58 sri why is the correct answer downvoted? http://stackoverflow.com/a/27898742
14:06 moritz upvote it!
14:06 * moritz karma-whores
14:08 Adura You needed to use a higher fraction of chars compared to the OP.
14:12 moritz and more Ünicöde
14:12 moritz excuse me, Üñicød€
14:22 hernan604 joined #mojo
14:48 reneeb joined #mojo
14:54 marty joined #mojo
14:56 sugar_ joined #mojo
14:59 xtetsuji joined #mojo
15:11 hernan joined #mojo
15:17 sh4 joined #mojo
15:31 sugar__ joined #mojo
15:45 cfedde joined #mojo
15:48 uniejo joined #mojo
16:26 Grinnz_ sri: i got same result as that guy running that oneliner in #728; i'm updating to 5.72 and will check again
16:27 Grinnz_ haha... and someone just posted the actual problem
16:28 Grinnz_ #reasonswhyihateonelinersinbash
16:31 good_news_everyon joined #mojo
16:31 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/rI-Saw
16:31 good_news_everyon mojo/master c569fa7 Sebastian Riedel: fixed portability bug in monkey_patch tests (closes #730)
16:31 good_news_everyon left #mojo
16:32 Ptolemarch joined #mojo
16:34 juikuen joined #mojo
16:50 kwa joined #mojo
16:54 wingfold joined #mojo
17:01 cpan_mojo Mojolicious-Plugin-SslAuth 0.08 by Glen Hinkle - http://metacpan.org/release/TEMPIRE/Mojolicious-Plugin-SslAuth-0.08
17:12 tempire hmm
17:13 tempire heroku's api used to be dead simple.
17:15 d4rkie joined #mojo
17:21 tempire well, at least their api docs.
17:36 Ptolemarch joined #mojo
17:45 denis_boyun joined #mojo
17:53 dod joined #mojo
17:54 * tempire really appreciates the ->delay helper
17:57 ccm1 joined #mojo
18:18 denis_boyun_ joined #mojo
18:27 basiliscos joined #mojo
18:27 odin22 joined #mojo
18:42 odin22 Hello everybody, I have some (hopefully easy) questions
18:43 odin22 I want to prepopulate the Mojo::Cache... is the correct place to do this in the startup subroutine?
18:44 Ptolemarch joined #mojo
18:45 jberger sri: I'm not sure that I want the title czar, but I will accept vote proxies if people want to not care
18:46 jberger our do you just mean "point of contact"? If so, sure
18:46 jberger *or
18:48 davido_ joined #mojo
18:54 sri jberger: conference chair?
18:54 jberger sri: no that should be someone from the conference running mongers (or other) group
18:54 jberger czar works as long as you don't want me to assume all decisions
18:54 sri (but yes, i do mean point of contact... and final say on conference decisions that need to be made centrally)
18:55 sri like choosing the city
18:55 jberger I'll even take final say (if you don't want it), but I still want to ask votes from the other core members unless they choose to opt out
18:55 sri sounds good
18:55 jberger and it sounds like copenhagen will defer to next year if riche wants this year
18:56 jberger which sounds good since it sounds like he can throw staff at the lack of time
18:56 sri ping pong across the pond, i like it :)
18:58 sri odin22: prepopulate with what?
18:58 irq joined #mojo
19:00 sri calling it "the Mojo::Cache" is a bit ambiguous, we use two instances in the framework
19:01 ccm1 left #mojo
19:01 sri marcus, batman, tempire, crab: thoughts on the conference czar?
19:09 odin22 sri: talking about http://search.cpan.org/~sri/Mojolicious-5.71/lib/Mojo/Cache.pm and I want to prepopulate with data from yaml files
19:13 wingfold joined #mojo
19:25 bobkare joined #mojo
19:31 denis_boyun joined #mojo
19:32 jberger odin22: we understand which class, he is asking about which **instance**
19:32 jberger a cache of what?
19:41 odin22 Oh I see. I guess I don't know which instance. I don't know what instances there are actually. I assumed there was a global instance.
19:42 dotandimet joined #mojo
19:46 odin22 a shared in-memory cache. does that exist?
19:49 odin22 or am I better off using something like Cache:CHI (file or memcache) since I want to use it acrosses processes
19:56 bobkare joined #mojo
19:58 jberger odin22: you could probably hack something together, but I would just suggest using CHI
19:58 odin22 I think i actually found something on cpan just now: http://search.cpan.org/~akron/Mojolicious-Plugin-CHI-0.09/lib/Mojolicious/Plugin/CHI.pm
19:58 odin22 I think that'll work for what I want to do
20:01 odin22 jberger and sri: thanks for responding to my question
20:17 batman sri: i don't follow :/
20:18 batman are we voting if we dig jberger? :)
20:33 jberger http://i.imgur.com/65tTAUl.gif
20:34 jberger batman: I'm volunteering to be contact person for whichever group is hosting mojoconf
20:34 batman i can dig it. +1
20:34 Grinnz_ i knew what that gif would be
20:34 jberger the only thing you need to decide (as long as you are ok with that) is if you want to ignore all discussion of planning all together and proxy any votes to me (or abstain)
20:34 jberger Grinnz_++ what else?
20:35 sri http://30.media.tumblr.com/tumblr_m1rk13oFGd1qdaajyo2_500.gif
20:37 batman that was one super annoying gif.
20:37 batman convos-- # :)
20:37 sri hahaha
20:46 marty joined #mojo
20:46 dotandimet joined #mojo
21:05 genio Has anyone written a Mojo::UserAgent connection challenge thingy for NTLM?
21:06 genio I don't want to get started copying LWP::Authen::NTLM if it's already done
21:16 dotandimet joined #mojo
21:17 sri muhahahahaha
21:17 sri so the uk wants to ban encryption?
21:18 sri there are easier ways to kill http/2, you know?!
21:18 batman i don't get it... https://github.com/kraih/mojo/issues/729 # isn't that what optional() is for?
21:19 sri can confirm, don't get it
21:26 denis_boyun joined #mojo
21:26 batman THEN I WILL COMMENT!
21:26 batman :)
21:40 denis_boyun joined #mojo
21:48 uniejo joined #mojo
22:04 odin22 joined #mojo
22:21 asarch joined #mojo
22:45 hernan604 joined #mojo
22:52 sri neat, IO::Socket::SSL now supports ALPN
22:52 sri (requirement for http/2)
23:28 Ptolemarch joined #mojo
23:59 muraiki_ joined #mojo

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