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

IRC log for #mojo, 2014-06-30

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

All times shown according to UTC.

Time Nick Message
00:07 neyasov___ joined #mojo
00:13 d4rkie joined #mojo
00:18 punter joined #mojo
00:27 sujithm joined #mojo
00:42 cpan_mojo XML-Loy 0.26 by Nils Diewald - http://metacpan.org/release/AKRON/XML-Loy-0.26 (depends on Mojolicious)
00:48 neyasov___ joined #mojo
00:52 laouji joined #mojo
01:04 klapperl joined #mojo
01:29 neyasov___ joined #mojo
01:30 ccakes joined #mojo
01:49 jberger_ joined #mojo
02:22 jberger_ joined #mojo
02:28 neyasov___ joined #mojo
02:30 neyasov____ joined #mojo
02:49 mr-foobar joined #mojo
02:58 KCL joined #mojo
03:14 basic6_ joined #mojo
03:36 neyasov____ joined #mojo
03:56 rwp joined #mojo
04:42 neyasov____ joined #mojo
04:50 laouji joined #mojo
05:52 neyasov____ joined #mojo
06:08 denis_boyun joined #mojo
06:17 Eke- joined #mojo
06:22 Eke|| joined #mojo
06:24 Dandre left #mojo
06:25 mr-foobar joined #mojo
06:32 sujithm joined #mojo
06:33 Dandre joined #mojo
06:37 mattastrophe joined #mojo
06:38 denis_boyun_ joined #mojo
06:38 kyshtynbai joined #mojo
06:43 chankey joined #mojo
06:47 dod joined #mojo
06:51 neyasov____ joined #mojo
06:58 KCL_ joined #mojo
07:00 igorsutton joined #mojo
07:01 batman marcus: have you tried http://www.rexify.org/ ?
07:06 Vandal joined #mojo
07:06 mattastrophe joined #mojo
07:17 mr-fooba_ joined #mojo
07:21 chankey batman: Rexify looks cool, I don't get it completely though, what are its uses?
07:24 chankey *usage
07:32 batman chankey: heard of ansible or puppet?
07:33 batman it's for running automated tasks for a system. so you can say things like "install nginx 1.5.4.2 on server X and with these config files and then start it"
07:33 rofl_ or saltstack!
07:33 rofl_ frigging annoying that ansible is taking number one position of python CM's ;<
07:33 cousin_luigi good morning
07:33 purl Lies!
07:34 batman rofl_: hehe :)
07:35 sujithm_ joined #mojo
07:35 chankey batman: ah I see, so it's quite similar to Object::Remote?
07:36 batman isn't object::remote very low level?
07:36 batman this is an actual tool for sysadmins. not just a module.
07:37 rofl_ configmanagement is a must for all modern projects
07:41 trone joined #mojo
07:49 mire joined #mojo
07:52 neyasov____ joined #mojo
07:54 crab rofl: why is that so annoying?
07:54 crab i like ansible.
07:54 rofl_ crab: because we started using salt :p
07:54 rofl_ ansible still using ssh only?
07:54 bc547 ansible is not bad.. though it is not 'the perfect tool' :-)
07:55 crab yes, ssh
07:56 basiliscos joined #mojo
07:56 rofl_ 0mq ftw
07:57 D4RK-PH0ENiX joined #mojo
08:00 cousin_luigi <div class="mystring" otherstuff> morestuff </div> <- how do I match all this with find() ?
08:07 batman cousin_luigi: what do you mean? ->find('.mystring'); ?
08:08 cousin_luigi batman: only if it's an attribute of a div
08:14 sri your daily reminder to comment on https://github.com/kraih/mojo/pull/639
08:14 sri so far the comments are not very positive
08:17 fhelmber_ joined #mojo
08:17 sri cousin_luigi: consider yourself warned for cross posting
08:36 Painter joined #mojo
08:39 Painter i just update mojolicious to latest version and get this error - http://pastebin.com/iDkJ584E How to fix it?
08:43 tomboh joined #mojo
08:44 Painter i replace $r->namespaces('SPlatform::Controller'); to $r->namespaces(['SPlatform::Controller']); and everything ok
08:46 sri that never worked any differently, so certainly did not break because of an update
08:54 sri hmm... think i don't like that render_steps behaves differently when nested
09:02 good_news_everyon joined #mojo
09:02 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/FXWvfQ
09:02 good_news_everyon mojo/master d55ca4f Sebastian Riedel: better examples for delays
09:02 good_news_everyon left #mojo
09:02 sri think i'm -1 on render_steps now
09:06 good_news_everyon joined #mojo
09:06 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Dc5Bdw
09:06 good_news_everyon mojo/master 6cecd12 Sebastian Riedel: no need to call wait in real-time web example
09:06 good_news_everyon left #mojo
09:11 * sri rejected his pull request
09:12 sujithm joined #mojo
09:23 dotan joined #mojo
09:27 sujithm_ joined #mojo
09:36 batman sri: what do you mean that it behaves different when nested?
09:36 batman it behaves like it should imo, and i think you also where +1 on that change to marcus' module
09:37 batman i also don't get why it feels hackish.
09:37 batman i feels sane to me.
09:38 batman *it
09:40 * batman screwed up :(
10:21 sri batman: with the first one your intention is to actually *render* something... while nested ones are just fancy delays
10:21 sri it feels inconsistent regarding the name render_steps
10:28 mire joined #mojo
10:29 d4rkie joined #mojo
10:33 torbjorn joined #mojo
10:34 alnewkirk joined #mojo
10:48 denis_boyun joined #mojo
10:52 d4rkie joined #mojo
11:02 sujithm joined #mojo
11:02 neyasov joined #mojo
11:04 mr-foobar joined #mojo
11:08 Jonneh joined #mojo
11:09 Jonneh joined #mojo
11:09 nic left #mojo
11:21 rem_lex joined #mojo
11:40 batman sri: i disagree. i would say all the calls to render_steps is to render something.
11:40 batman *when* on the other hand is up to the non-blocking "route" to decide
11:52 sujithm joined #mojo
11:53 powerman joined #mojo
11:55 powerman I've just published large article about using Mojo::IOLoop::Delay in Russian: http://habrahabr.ru/post/228141/
11:56 powerman If someone will need it I may try to translate it when I'll have spare time.
11:59 dpetrov_ joined #mojo
12:00 bjoernfan So I got an iPhone 5 with a broken screen, replaced it, and it works! Now I want a case for it. Do we have any with the mojo dino maybe? I'd like the one with the puking rainbow. :>
12:01 bjoernfan batman: You know all about ordering custom cases, right?
12:02 batman haha, not really. do you think because of grumpify..?
12:02 bjoernfan yeah
12:04 batman my "business associate" deals with those kind of things, so i can focus on the programming :)
12:11 bjoernfan okay :)
12:29 r0b3rt joined #mojo
12:30 neilhwatson joined #mojo
13:20 dotan joined #mojo
13:23 ryozi joined #mojo
13:36 sri maybe tempire has something to say about the render_steps branch
13:37 sri batman: i'm just not convinced it's the right thing to do
13:43 Ptolemarch joined #mojo
13:44 gryphon joined #mojo
13:46 dotan joined #mojo
13:49 btyler joined #mojo
13:55 Ptolemarch joined #mojo
13:55 dod joined #mojo
13:57 bluescreen joined #mojo
13:59 Dandre Hello,
14:03 Dandre I am experiencing Inactivity timeout. I'd like to trace the amount of data sent from the server to the party, specially big data files. How can I do that?
14:05 abhishekisnot joined #mojo
14:10 abhishekisnot1 joined #mojo
14:14 neyasov_ joined #mojo
14:14 dod joined #mojo
14:20 neyasov__ joined #mojo
14:20 ccm joined #mojo
14:26 neyasov___ joined #mojo
14:29 sri Dandre: http://mojolicio.us/perldoc/Mojo/IOLoop/Stream#write
14:34 neyasov____ joined #mojo
14:37 chankey joined #mojo
14:38 edestler joined #mojo
14:40 Dandre ok
14:46 Ptolemarch joined #mojo
14:58 KCL joined #mojo
15:07 igorsutton joined #mojo
15:12 nmittal_ joined #mojo
15:13 nmittal_ hello ppl.. mojolicious is firing before_dispatch multiple times for a single request.. is this normal?
15:15 nmittal_ same with before_routes.. I would think both should be fired once
15:15 nmittal_ looks like its doing it for static content as well
15:18 nmittal_ right.. when I print the URL inside the before_render call back.. i see that its being called for static content as well..
15:18 nmittal_ is there a way to detect non-static requests
15:21 dod joined #mojo
15:24 mire joined #mojo
15:31 dotan nmittal_: move your code to before_routes ? (which happens after the static files get served)
15:31 nmittal_ dotan, no same thing
15:31 nmittal_ dotan, before_routes and before_dispatch both get called for static and non-static content
15:32 nmittal_ dotan, and inside the callback .. I'm not seeing any way to determine whether the current request is static or non-static
15:36 dotan ugh. There's a $c->stash('mojo.static') that gets set in Mojolicious::Static::dispatch and used internally, but if I suggest you use it, sri will feed us to the alligators.
15:37 dotan What do you want your callback to do?
15:37 nmittal_ dotan.. lol
15:38 sri yes i will
15:38 nmittal_ dotan.. all non-static pages should have a session_id.. and if its not there I create one
15:38 sri http://mojolicio.us/perldoc/Mojolicious#after_static
15:38 nmittal_ dotan, so thats what I want to do in before_dispatch or before_render
15:39 nmittal_ sri, after_static is called for static files.. I want a call back for non-static files
15:42 nmittal_ sri, dotan.. i've implemented a workaround.. all my static uris would start with /static/ ... and in the before_routes.. I check $c->reg->url to see if it starts with /static/
15:43 dotan before_render sounds promising - you have a real controller at that stage.
15:43 sri hint: hook after_static => sub { shift->stash->{is_static}++ };
15:45 neyasov_____ joined #mojo
16:01 nmittal_ sri.. oh yeah thats a lot easier.. wondering if the trigger order is guaranteed.. i'll test.. thanks :)
16:03 sri that's documented
16:04 nmittal_ ok perfect
16:19 nmittal_ bingo.. works like a charm!!! thanks sri :)
16:22 nmittal_ sri one more thing.. I'm using morbo.. ($morbo script/rbltapps) .. so it only auto loads changes to RBLTApps.pm .. and not other libs like I'm using Authenticator.pm ...
16:22 nmittal_ so whenever I make changes anywhere else.. i have to restart morbo
16:22 nmittal_ can that be avoided.
16:24 batman nmittal_: use the -w switch
16:26 nmittal_ batman.. great.. thanks :)
16:26 sri batman: do you have actual examples for apps that get better with render_steps?
16:32 Ptolemarch joined #mojo
16:36 good_news_everyon joined #mojo
16:36 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/MIMWWA
16:36 good_news_everyon mojo/master a0dba11 Sebastian Riedel: added render_steps method to Mojolicious::Controller (closes #639)
16:36 good_news_everyon left #mojo
16:40 KCL_ joined #mojo
16:43 sri oooh, that's pretty http://fastly.github.io/epoch/
16:44 batman sri: every app I write, since I almost always forget to attach the error handler.
16:45 batman Also, I think people would benefit when deploying in cgi, fcgi, psgi, ... Since they probably forgot to do ->wait
16:46 nmittal_ is Mojolicious::Plugin::RemoteAddr how I can get remote_ip ?
16:47 nmittal_ nevermind.. $c->tx->remote_address does it
16:48 batman nmittal_: that also works behind a proxy, if you set up hypnotoad
16:48 nmittal_ cool
16:49 KCL joined #mojo
16:52 batman sri++ # you made my day!
16:53 batman render_steps ftw
16:53 batman https://github.com/jhthorsen/mojo-redis-timeseries <-- could someone finish my module, so i can use http://fastly.github.io/epoch/ and friends with ease? :)
16:57 Bender joined #mojo
16:57 sri this will come in handy for the minion dashboard :) http://fastly.github.io/epoch/real-time/
16:59 batman i couldn't find if it also support mouseover/click/... events
16:59 sri not yet
16:59 batman ok
17:02 mattastrophe joined #mojo
17:03 risugg joined #mojo
17:04 neyasov_____ joined #mojo
17:08 disputin joined #mojo
17:12 good_news_everyon joined #mojo
17:12 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/BvLC7Q
17:12 good_news_everyon mojo/master bedb49f Sebastian Riedel: test that transaction is still available after rendering early
17:12 good_news_everyon left #mojo
17:12 nmittal_ i'm unable to make favicon work.. i've added <link href="/imgs/favicon.ico" rel="shortcut icon" type="image/x-icon" />  also put the favicon.ico in the public folder and also under public/imgs... but still see the mojolicious icon
17:13 KCL joined #mojo
17:18 bodgix joined #mojo
17:21 batman nmittal_: browsers are crazy for caching favicon. try entering http://localhost:3000/favicon.ico directly and do a CTRL+R or something
17:25 sri batman: nester render_steps not auto-rendering still bugs me
17:25 sri s/nester/nested/
17:26 sri like, you make a helper using render_steps and it behaves differently depending on context
17:28 sri that part is also not mentioned in the docs
17:29 KCL_ joined #mojo
17:40 good_news_everyon joined #mojo
17:40 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/tjO4jA
17:40 good_news_everyon mojo/master cc4b447 Sebastian Riedel: render_steps does not behave differently based on context anymore
17:40 good_news_everyon left #mojo
17:44 sri batman: if you want it back make a patch with documentation
17:47 ccm joined #mojo
17:49 nmittal_ batman, thanks.. firefix works now.. but chrome likes the clouds way too much :)... no biggie
17:50 basic6 joined #mojo
18:18 dexteruk joined #mojo
18:19 disputin joined #mojo
18:27 powerman left #mojo
18:38 henq joined #mojo
18:38 Ptolemarch joined #mojo
18:44 neyasov_____ joined #mojo
19:13 disputin joined #mojo
19:43 * sri wonders if anyone actually cared about nested render_steps
19:43 batman i very much care about that. i want to be able to call another controller which also does render_steps
19:44 batman controller => action
19:44 batman we've already had this discussion once marcus first released his module... too bad i can't remember what the conclusion was
19:46 batman "rendering once there are no remaining steps" <-- the problem here is that i'm not convinced i understand that you're just talking about the steps given to this call or any delay() calls
19:46 batman i think i would think -any- delays(), hence any render_steps()
19:48 batman maybe what i really want is die() that bubble from one delay() to the next...
19:48 sri well, now is your chance to make proposals, once render_steps is released changes will get harder
19:49 sri i don't understand what you're talking about, not a good sign
19:49 batman then i'm not sure if it should be added to core. what does the rest of the team think? are they on vacation? :/
19:50 sri yea, i'm getting a little upset with the situation
19:50 batman but it should be easier to add the nested feature then to remove it..?
19:50 sri they all have been here for like 5 mins, stated something +1-ish and disappeared ignoring all the problems
19:50 batman if so, then i think your decision is better.
19:51 batman if you can't add or remove it, then i think just trying out marcus' plugin is better.
19:51 batman right. that might be better feedback than what i'm giving though... sorry about that sri :(
19:53 mr-foobar sri: maybe you guys have a better idea. is there a way I can watch .less files and compile them ?
19:53 batman mr-foobar: Mojolicious::Plugin::AssetPack
19:55 mr-foobar batman: does it watch files, like grunt for example.
19:55 batman mr-foobar: https://metacpan.org/pod/Mojolicious::Plugin::AssetPack#MOJO_ASSETPACK_NO_CACHE
19:56 batman sri: i need to get some sleep. got the flu - need rest:(
19:56 batman hope i'm better tomorrow...
19:56 batman nn
19:56 mr-foobar batman: that's it. thx !
19:56 sri batman: i'll remove render_steps again, nn
19:58 sri not sure render_steps has much of a chance to get back in afterwards though... all those open questions have raised the bar quite a bit
19:58 nmittal_ in Mango.. I'm trying to get a record by id.. my $doc = $self->dbm->db('rbltapps')->collection('sessions')->find_one({"_id" => "53b1b9710e11d15958050000"});  but its not working
20:00 good_news_everyon joined #mojo
20:00 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/yjLqCw
20:00 good_news_everyon mojo/master 9b7836a Sebastian Riedel: removed render_steps again
20:00 good_news_everyon left #mojo
20:06 sri for the record, i give up on render_steps now, if anyone wants to take over please solve the problems, send a pull request, and collect the votes
20:10 nmittal_ yoohooo.. found it.. i had to do Mango::BSON::ObjectID->new("53b1b9710e11d15958050000")
20:10 sri http://mojolicio.us/perldoc/Mango/BSON#bson_oid
20:11 Eke- joined #mojo
20:13 nmittal_ yeah.. i'm getting the hang of this now.. thanks :)
20:39 sugar_ joined #mojo
21:03 henq joined #mojo
21:05 cooper joined #mojo
21:20 KCL joined #mojo
21:33 dotandimet joined #mojo
21:46 henq joined #mojo
21:57 sri so i guess i like yahoo now :o
21:57 sri http://www.theverge.com/2014/6/30/5858810/community-renewed-for-sixth-season-on-yahoo
21:57 sri six seasons and a movie!
22:32 disputin joined #mojo
22:46 bpm_ joined #mojo
22:48 KCL_ joined #mojo
22:58 d4rkie joined #mojo
22:58 d4rkie joined #mojo
23:37 disputin joined #mojo
23:55 neyasov_____ joined #mojo
23:57 neyasov______ joined #mojo

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