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

IRC log for #mojo, 2014-01-24

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

All times shown according to UTC.

Time Nick Message
00:00 sri template trimming is for making pretty html
00:03 marty ahhh ok.  well, then I'm ambivalent.  Nothing can make html look pretty.   :P
00:07 good_news_everyone joined #mojo
00:07 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/YbkDRA
00:07 good_news_everyone mojo/master 093ad62 Sebastian Riedel: improved Mojo::Template to allow trimming of whitespace characters around tags to be limited to one side
00:07 good_news_everyone left #mojo
00:07 sri think i'll keep it anyway ;p
00:09 jberger Fully and 100% no opinion
00:09 jberger \o/
00:10 dvinciguerra joined #mojo
00:12 * sri just noticed erubis uses <%=== for print to STDERR, also a funny feature
00:19 CURT joined #mojo
00:33 sri hmm, maybe l/r trimming is not worth it
00:35 marty joined #mojo
00:35 * btyler just gave a demo for a mojo-based tool that had to have CORS support hacked in at the last minute
00:36 btyler the dispatch hooks are awesome
00:41 alnewkirk i think there might be a use-case the optional palceholder stuff doesn't account for
00:43 good_news_everyone joined #mojo
00:43 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/UjrKKg
00:43 good_news_everyone mojo/master 7a971ca Sebastian Riedel: removed one sided trimming of whitespace characters from Mojo::Template again
00:43 good_news_everyone left #mojo
00:44 alnewkirk maybe I'm missing something, here's an example - http://paste.scsys.co.uk/293379
00:45 KindTwo joined #mojo
00:59 D4RK-PH0ENiX joined #mojo
01:02 amirite joined #mojo
01:23 ka2u joined #mojo
01:24 laouji joined #mojo
01:29 laouji_ joined #mojo
01:48 bpmedley https://gist.github.com/brianmed/8590672  <-- Should this work or am I way off?  I'm trying to do a non-blocking DBI call with DBD::Pg
02:09 good_news_everyone joined #mojo
02:09 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/DjLSxA
02:09 good_news_everyone mojo/master 2862f46 Sebastian Riedel: order all methods alphabetically
02:09 good_news_everyone left #mojo
02:13 good_news_everyone joined #mojo
02:13 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/67lFOg
02:13 good_news_everyone mojo/master 8170c4b Sebastian Riedel: consistency is a rule
02:13 good_news_everyone left #mojo
02:15 sri bpmedley: no
02:15 sri you seem to expect magic where there is none
02:16 sri a lot more boilerplate is required, watching a filedescriptor and so on
02:25 dvinciguerra joined #mojo
02:31 bpmedley sri: I don't expect magic, just not sure of the correct boilerplate.  Can you point me to an example?  I have read the Cookbook and other docs.
02:32 sri it's too much of a mess for the cookbook, i think there are modules on cpan already
02:32 klapperl joined #mojo
02:35 sri someone should do a really good Mojo::Pg module based on DBD::Pg
02:36 sri https://metacpan.org/pod/Mojolicious::Plugin::PgAsync # doesn't look too bad
02:38 sri well, actually it's pretty much exactly how i would have done it... except for the Mojo::Pg part
02:58 KindTwo joined #mojo
03:00 D4RK-PH0ENiX joined #mojo
03:05 ndiewald joined #mojo
03:44 bpmedley https://gist.github.com/brianmed/8590672  <-- This seems to be working; is it Mojo friendly or did I get lucky in the copy 'n paste bonanza?
04:04 good_news_everyone joined #mojo
04:04 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/xTCD0w
04:04 good_news_everyone mojo/master ab50193 Sebastian Riedel: small optimizations
04:04 good_news_everyone left #mojo
04:05 good_news_everyone joined #mojo
04:05 good_news_everyone [mojo] kraih tagged v4.69 at 5da717c: http://git.io/mf42Rg
04:05 good_news_everyone left #mojo
04:08 laouji joined #mojo
04:09 Adurah joined #mojo
04:14 chansen joined #mojo
04:19 komodo joined #mojo
04:22 komodo joined #mojo
04:40 laouji joined #mojo
04:57 laouji joined #mojo
05:10 ka2u joined #mojo
05:25 jberger_ joined #mojo
06:01 komodo_ joined #mojo
06:31 Zx3 joined #mojo
06:38 rem_lex|pivo joined #mojo
06:38 irq_ joined #mojo
06:55 ka2u joined #mojo
07:23 hrupp joined #mojo
07:26 laouji_ joined #mojo
07:30 rawler joined #mojo
07:37 Vandal joined #mojo
07:43 dod joined #mojo
08:17 dod joined #mojo
08:17 basiliscos joined #mojo
08:26 odc joined #mojo
08:38 trone joined #mojo
09:04 d4rkie_ joined #mojo
09:10 da5id joined #mojo
09:14 dpetrov_ joined #mojo
09:22 ka2u joined #mojo
09:34 dvinciguerra joined #mojo
09:40 ka2u joined #mojo
09:43 maxhq joined #mojo
09:46 iankent joined #mojo
09:50 fhelmber_ joined #mojo
09:51 stl tell me how to ues
09:51 stl tell me how to use url_escape in templates
09:57 stl found. b($url)->url_escape
10:07 dpetrov_ joined #mojo
10:20 arthas joined #mojo
10:23 iankent are there still any known bugs with mojo useragent and proxies? found a few which have been closed, but experiencing "proxy connection failed" errors (using mojo 4.69)
10:34 ver_ joined #mojo
10:38 laouji joined #mojo
10:44 mire joined #mojo
10:49 denisboyun joined #mojo
10:55 iankent im fairly sure this isnt a mojolicious bug (it never is), but have to ask anyway... if anyone has a proxy setup, could you try this script https://gist.github.com/ian-kent/8595362
10:56 iankent /curl works, so proxy environment config is right, but /ua times out with various proxy errors, connection timeouts etc, can paste a log if required
10:57 batman is there a way to set a response on inactive timeout?
10:58 batman i'm doing ajax requests and it doesn't look like jquery is too fond of getting nothing in return...
11:02 batman nevermind the ajax issue. works like a charm.
11:02 batman but still... is there a hook for inactive timeout?
11:17 dpetrov_ iankent: is the proxy detected by default?
11:18 dpetrov_ hmm seems like so
11:19 mire joined #mojo
11:20 irq_ joined #mojo
11:25 iankent dpetrov_: it sets MOJO_PROXY to 1 in BEGIN{} block (not how we really do it, but it proves the point) - dumping out UA shows ->proxy has right values
11:28 D4RK-PH0ENiX joined #mojo
11:32 bowtie_ joined #mojo
11:38 denis_boyun joined #mojo
12:06 Adura joined #mojo
12:06 cleverfox joined #mojo
12:15 fhelmbe__ joined #mojo
12:21 irq_ joined #mojo
12:35 denis_boyun__ joined #mojo
12:36 maxhq joined #mojo
12:51 dvinciguerra joined #mojo
12:51 ka2u joined #mojo
12:59 jberger joined #mojo
13:27 odc q: is it impossible to do async requests from inside a mojo template?
13:40 D4RK-PH0ENiX joined #mojo
13:41 trone joined #mojo
13:44 denisboyun joined #mojo
13:44 jberger_ joined #mojo
13:46 Vandal joined #mojo
13:46 mil joined #mojo
13:59 bowtie_ joined #mojo
14:03 dvinciguerra joined #mojo
14:04 mil joined #mojo
14:08 D4RK-PH0ENiX joined #mojo
14:15 sri holy github notification batman
14:17 batman sri?
14:17 purl somebody said sri was A PONIE!!1! and a  or no more a javascript noob or evil or a spelling guerilla or the temporary channelclown or a snob now or the perl guerilla or a small mouse with a big head aiming for world domination or the evil sith or has no clue about fuzzy logic or no longer a real hacker :/ or a copycat or pimp to many children or a holy man or looks a lot like pitr or puny or making Mojolicious delicious
14:18 batman odc: no.
14:19 d4rkie joined #mojo
14:19 sri https://github.com/kraih/mojo/issues?state=open # quite a bit of activity today
14:23 batman ah! haha. i got a notification on "batman" ;)
14:24 batman https://github.com/kraih/mojo/pull/583/files # uhm... doesn't make any sense for core imo
14:24 batman weird pr
14:25 batman what is "botton" ? is it "button" ?
14:25 sri a typo
14:27 batman ok.
14:28 batman i would reject that issue.
14:30 sri please comment
14:31 sh4 joined #mojo
14:32 batman done
14:33 sri thanks
14:34 * sri is on the edge about data attributes
14:35 AirDisa joined #mojo
14:36 batman :)
14:36 batman it's faster. in my example, you need to loop twice over the same data.
14:36 batman or... no, that's not right
14:37 * batman need to go to the gym
14:37 batman *bbl* (hopefully)
14:38 batman worst response in a while :( (github issues)
14:38 * batman gives up
14:41 sri jberger: you can say :-1: on github for the thumb down :)
14:42 amirite joined #mojo
14:43 d^_^b joined #mojo
14:46 bpmedley https://gist.github.com/brianmed/8590672  <-- This seems to be working; is it Mojo friendly or did I get lucky in the copy 'n paste bonanza?
14:47 ka2u joined #mojo
14:50 batman bpmedley: why can't you just use the module that already exists on cpan?
14:50 batman also, we did read your question the first time.
14:51 bpmedley batman: I'm trying to learn the procedure and not sure I want to use the same approach as the cpan module.
14:51 batman right. but why not at least learn from the cpan module?
14:51 batman it looks to me as your module is blocking, so i think you just think you're lucky
14:52 batman i might be wrng
14:52 bpmedley Why do you think it's blocking?
14:52 bpmedley I did peruse some of the code from cpan.
14:53 sri i don't think it could be more non-blocking
14:53 sri fun fact, async DBI sucks, all writes are blocking
14:54 sri you can only make reads non-blocking
14:55 bpmedley Interesting, i think the connect is also blocking.
14:56 sri certainly
14:58 btyler joined #mojo
14:59 mire joined #mojo
14:59 tianon "NO!."
14:59 tianon that's a good argument :)
15:01 * sri is warming up to speacial treatment of data attributes
15:02 marty joined #mojo
15:02 sri have to admit i've not used them yet though
15:02 nicomen tianon: NO! + url, but heh, yeah ;)
15:02 btyler joined #mojo
15:03 tianon nicomen: true, but that doesn't really help argue the case either :)
15:03 nicomen NO! ;)
15:04 tianon :D
15:11 KindTwo joined #mojo
15:19 gryphon joined #mojo
15:22 amirite_ joined #mojo
15:23 jberger_ sri thanks for that. In the full add site it gives a pop-up, but on the mobile site it did not.  Now I know
15:23 sri if data attributes gets another core dev vote i think it can be applied
15:24 jberger_ Damn that means I probably have to read it
15:24 jberger_ ETOOMUCHWORK
15:25 sri on the plus side, you get to use a emoji in your comment ;p
15:25 marty joined #mojo
15:25 sri s/a//
15:25 jberger_ Can I vote yea on the concept without evaluating the implementation
15:26 marty joined #mojo
15:26 jberger_ I just won't have the time for a few days
15:26 sri https://github.com/kraih/mojo/pull/582/files # not much to evaluate
15:26 marty joined #mojo
15:26 sri you don't have to go through all the patches
15:26 * sri likes the "files changed" view on github
15:28 sri concept vote should be fine though, i approve of the implementation
15:28 jberger_ I like the fact that it still lets you use a string value to data, no breakage right?
15:28 sri yea, i liked that too
15:28 jberger_ You were right, not too much to read
15:28 sri <3 files changed view
15:28 * jberger_ punishes self for not just checking
15:29 marty joined #mojo
15:29 sri the fact that you can comment in the files changed view to point out flaws is the icing on the cake
15:29 sri those comments disappear when things change again
15:31 marty joined #mojo
15:34 ka2u joined #mojo
15:38 good_news_everyone joined #mojo
15:38 good_news_everyone [mojo] kraih pushed 8 new commits to master: http://git.io/Ta79ag
15:38 good_news_everyone mojo/master 5c191aa avaluyskiy: added html5 custom data attributes to tag helpers
15:38 good_news_everyone mojo/master c84af51 avaluyskiy: fixed tests
15:38 good_news_everyone mojo/master 9c087af avaluyskiy: fixed data attributes for Perl 5.10
15:38 good_news_everyone left #mojo
15:46 sri doh! i missed a formatting error
15:47 Akron joined #mojo
15:51 mattp_ joined #mojo
15:54 trone why in Mojo::UserAgent docs there is always a new Mojo::IOLoop used (to create delay or test running situation) vs the $ua->ioloop object?
15:55 cottoo joined #mojo
15:55 avenj joined #mojo
15:56 trone I thought that was possibile to do $ua = UA->new(); $ua->get($url0,sub{...}); $ua->get($url1,sub{...}); $ua->ioloop->start but it doesn't works.
15:56 Farow joined #mojo
15:59 good_news_everyone joined #mojo
15:59 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/MQ87DQ
15:59 good_news_everyone mojo/master f145cfa Sebastian Riedel: updated Changes and documentation
15:59 good_news_everyone left #mojo
16:05 Adurah joined #mojo
16:05 good_news_everyone joined #mojo
16:05 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/-_tu-w
16:05 good_news_everyone mojo/master bb42783 Sebastian Riedel: slightly better data attribute example
16:05 good_news_everyone left #mojo
16:11 cleverfox joined #mojo
16:12 Akron I'm somehow lost - I've got a plugin (M::P::Util::RandomString) that starts a subroutine on each fork (Mojo::IOLoop->timer(0 => sub{ ... }) and starts an IOLoop everytime a helper is called, in case the IOLoop is not running (the famous M::IOL->start unless M::IOL->is_running).
16:13 Akron Now I call it and it hangs on the latter line without any output from MOJO_IOLOOP_DEBUG ... any hints how to debug it? I failed to create a simple test case yet.
16:15 nornagest joined #mojo
16:15 rawler joined #mojo
16:44 hummeleBop joined #mojo
16:48 trone joined #mojo
16:52 good_news_everyone joined #mojo
16:52 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/cnrhVQ
16:52 good_news_everyone mojo/master c45a944 Sebastian Riedel: updated jQuery to version 2.1
16:52 good_news_everyone left #mojo
17:00 Akron tempire: Hi! Was on your website a couple of days ago (nice!) and wanted to subscribe to your tech blog. Your feed link always points to /personal - instead to the associated category.
17:01 tempire Huh
17:01 tempire I have a feed!
17:01 tempire I had forgotten.
17:01 tempire Thanks, I
17:01 tempire 'll fix it.
17:02 Akron You have a feed! And at least one subscriber! ;)
17:03 ka2u joined #mojo
17:03 tempire fixed
17:03 Akron tempire++
17:11 ispy_ joined #mojo
17:21 good_news_everyone joined #mojo
17:21 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/5jhfVA
17:21 good_news_everyone mojo/master c29d234 Sebastian Riedel: updated example in Changes
17:21 good_news_everyone left #mojo
17:24 * sri does wonder if Mojo::DOM should have data attribute features
17:25 sri $dom->data could perhaps make a list of the data attributes
17:26 sri say $dom->data('foo'); say $dom->data($_) for @{$dom->data};
17:26 sri (cuts off the data-)
17:27 ispy_ joined #mojo
17:29 sri well, something to think about
17:30 davido_ tempire: Would you consider submitting a talk proposal for Open West?
17:33 amirite joined #mojo
17:35 tempire joined #mojo
17:46 mire joined #mojo
17:50 ispy_ joined #mojo
17:56 tempire I liked the <%=== trimming.
17:56 tempire <%=== for stderr is weird
17:57 tempire davido_: um.
17:57 tempire I suppose it would make sense.
17:57 tempire Good talks are a lot of work, though.
17:57 tempire My YAPC talk took a lot of time to polish.
17:57 davido_ Yes, they are. :)
17:58 sri tempire: oh noes! https://github.com/kraih/mojo/commit/7a971ca268e1453cf899943d284d62d9e5911ab8
17:58 davido_ Open West is May 8-10th.
17:59 davido_ This year's steering board is almost half Perl people, and we're trying to extend the Perl track from one day's worth of talks to two or three.
17:59 sri tempire: you need a talk for mojoconf anyway :D
17:59 tempire I need more than that, apparently.
18:00 sri oh right
18:00 sri TEACH ALL THE THINGS!
18:00 AirDisa joined #mojo
18:01 sri at least you're good at it -.-
18:01 tempire I don't have a beard anymore, though.
18:01 denis_boyun joined #mojo
18:01 tempire People may not listen.
18:01 davido_ Right now we're in the "call for papers" mode: http://www.openwest.org/cfp/
18:01 sri enough time to regrow one though
18:02 sri that was too much for him
18:02 davido_ lol.
18:04 tempire joined #mojo
18:04 tempire It was.
18:04 tempire I'm emotionally fragile.
18:05 * tempire is confused as to how to run convos on heroku.
18:11 davido_ Anyway, I know that if you submit a talk proposal via the form at http://www.openwest.org/cfp/ , we'll not only accept it, but be very appreciative.  And it will be well attended.
18:12 davido_ I wish I could say that fortunes will be yours, but you'll have to settle for more fame.
18:14 ispy_ joined #mojo
18:14 * sri just wondered if there should be a cdata helper
18:14 sri or perhaps b('some content')->cdata
18:16 sri maybe not
18:23 trone joined #mojo
18:25 ispy_ joined #mojo
18:32 davido_ I still need to find the time to cobble together Mojo::JSON::XS, based on Cpanel::JSON::XS and using ideas from Mojo::Base::XS.
18:32 tempire davido_: what's the deadline?
18:32 purl A lack of planning on your part does not constitute an emergency on ours. or a line drawn within or around a prison that a prisoner passes at the risk of being shot or whooooooooooosh! or only if missing it means the project dies, otherwise it's just a sadline.
18:33 * tempire shut it purl
18:33 davido_ Call for papers deadline is Feb 10th.
18:33 tempire k
18:34 tempire expertise level?
18:34 davido_ You can set the level: beginner, intermediate, or advanced.
18:35 tempire I'm asking based on previous attendance, and preference of the conference organizers.
18:35 tempire Which would be better?
18:36 davido_ Those who attend the Perl track are typically relatively solid. Intermediate would probably "get through" to the broadest group.
18:37 tempire Hmm. Now the question is what is classified is intermediate in mojolicious speak.
18:37 davido_ I myself would love anything on non-blocking topics, but I don't want to stifle your creativity.
18:37 tempire non-blocking is the most obvious choice.
18:37 sri it's all the rage these days
18:38 davido_ Last year there was at least one talk on Mojolicious, and it seemed to be geared toward Perl enthusiasts who were Mojolicious beginners.  But that was a year ago, and I expect that more have used it now than then.
18:38 sri your explanation for why would be a cool start
18:38 davido_ There's a #utos channel on freenode, which I'm parked in if for some reason I'm not parked here.
18:39 davido_ I also presented a Mojolicious discussion a couple months ago at Salt Lake Perl Mongers, and it seemed that about half the people there had tinkered with it at least a little.
18:40 tempire Hmm.
18:41 tempire Maybe even something non-blocking pipes with AnyEvent::Handle
18:41 sri and you already have al the unicorn images to explain it \o/
18:41 tempire SOMANYUNICORNS
18:43 davido_ Unicorns and raptors are always going to attract enthusiastic interest. :)
18:44 bpmedley tempire: You might consider rapidly building a non-blocking app with Mojo::IOLoop::ForkCall and Mojolicious::Plugin::PgAsync or somesuch.
18:44 tempire I want to stay away from forking
18:44 bpmedley Understood
18:49 mire joined #mojo
19:02 asarch joined #mojo
19:13 AirDisa joined #mojo
19:21 jberger_ My fork call is still not as polished as ae util
19:21 maxhq1 joined #mojo
19:30 mire joined #mojo
19:43 mire_ joined #mojo
19:54 howitdo joined #mojo
20:08 beyondcreed joined #mojo
20:13 AirDisa joined #mojo
20:21 Kulag joined #mojo
20:56 zackiv31 joined #mojo
21:13 denis_boyun joined #mojo
21:14 AirDisa joined #mojo
21:33 batman https://github.com/kraih/mojo/pull/582#issuecomment-33262935
21:33 batman how did you make "thumbs up" ?
21:38 marcus batman: :+1:
21:38 batman oh.
21:38 batman thanks
21:46 good_news_everyone joined #mojo
21:46 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/T4C4Vw
21:46 good_news_everyone mojo/master 9d0bede Sebastian Riedel: normalize data attributes
21:46 good_news_everyone left #mojo
21:48 sri sucks to golf this down without /r modifier :( https://github.com/kraih/mojo/commit/9d0bedeb5cb908caf4f430494b282a3a8b461f03#diff-ab8c5553c5f71a9d70038dac95d4d07dR216
21:50 batman :)
21:50 batman the result is good anyhow :)
21:50 sri TIL each %{delete $foo->{bar}} does not work either :S
21:50 batman it's not how it looks, but how it acts  ...? (not sure what i'm talking about...)
21:51 * sri tars and feathers batman
21:52 * batman runs
21:59 * jberger_ hopes batman runs fast enough to achieve flight
22:03 sri \o/
22:10 marcus I always thought you were supposed to be carried out of town on a railroad swill after being tarred and feathered.
22:15 AirDisa joined #mojo
22:29 memowe_ joined #mojo
22:39 dvinciguerra joined #mojo
22:39 sri interesting to see which website is using data attributes already
22:39 sri perl -Mojo -E 'g($ARGV[0])->dom("*")->map(sub { c(keys %{$_->attr}) })->flatten->uniq->grep(qr/^data-/)->join->say' www.reddit.com
22:40 sri perl -Mojo -E 'g($ARGV[0])->dom("*")->map(sub { c(keys %{$_->attr}) })->flatten->uniq->grep(qr/^data-/)->join("\n")->say' www.amazon.com
22:40 sri forgot newline
22:41 sri indeed very popular
22:43 sri youtube wins so far :)
23:01 basiliscos joined #mojo
23:08 jberger joined #mojo
23:16 AirDisa joined #mojo
23:18 ka2u joined #mojo
23:29 zackiv31 joined #mojo
23:40 punter joined #mojo
23:44 * marty uses data- attributes.  but mostly on the backend.  Only use one on the front.

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