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

IRC log for #mojo, 2014-07-01

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

All times shown according to UTC.

Time Nick Message
00:08 meshl joined #mojo
00:09 good_news_everyon joined #mojo
00:09 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/wKjCDA
00:09 good_news_everyon mojo/master 47819c7 Sebastian Riedel: more user agent examples
00:09 good_news_everyon left #mojo
00:33 disputin joined #mojo
00:39 neyasov______ joined #mojo
00:45 jberger o/
00:46 jberger Sorry i was in and out this weekend
00:46 jberger Lots of family things
00:48 laouji joined #mojo
00:48 jberger I like that render_steps handled nesting but tbh i couldn't think of how i would use it
00:51 jberger Anyway i have been kicking around a new thought
00:51 jberger Just a delay helper
00:52 Averna joined #mojo
00:52 sri jberger: rofl
00:53 sri just this moment i finished a delay helper
00:53 jberger NICE
00:53 sri this is scary
00:53 * jberger makes spooky noises
00:54 good_news_everyon joined #mojo
00:54 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/ZOVmsQ
00:54 good_news_everyon mojo/master 0ec70a3 Sebastian Riedel: added delay helper
00:54 good_news_everyon left #mojo
00:54 sri literally this very moment
00:54 sri and i suspect that's what you had in mind :)
00:55 jberger Almost exactly
00:55 sri :D
00:56 sri now that is a very good sign
00:56 jberger I didnt have undef $tx
00:56 jberger But that is probably right
00:56 sri ah
00:56 sri yea, i have that tested too
00:57 sri if you remove it tests break with the famous error from the list
00:58 jberger \o/
00:59 * jberger loves that so much
01:00 * jberger loves that it knocks out the $tx problem too
01:00 sri only in this context, but yea
01:01 jberger Right
01:01 jberger But think about it
01:02 jberger Delay object fixes leaks and so becomes recommended everywhere
01:02 jberger Then delay helper fixes render problems on top of that
01:03 jberger Nonblocking easy and fun, sounds like the mojo way to me
01:03 klapperl_ joined #mojo
01:03 sri well, it's not compatible with recurring events
01:04 jberger Because of wait?
01:04 sri it's in the nature of recurring events
01:05 jberger Like which events?
01:05 sri a $end callback can only be called once
01:05 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#EventSource_web_service
01:05 sri that's how recurring works
01:05 sri you unsubscribe in a finish event to clean up after yourself
01:06 jberger I'm ok with that
01:07 sri me too, it's just the nature of these things
01:09 good_news_everyon joined #mojo
01:09 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/iuX_3Q
01:09 good_news_everyon mojo/master 41834b1 Sebastian Riedel: fixed typo in delay description
01:09 good_news_everyon left #mojo
01:09 * jberger sets tianon on fire in celebratory fervor
01:09 sri \o/
01:12 tianon :D
01:12 * tianon burns
01:14 * jberger puts tianon out using an antique seltzer bottle spray
01:15 * jberger demands glitter!
01:15 tianon ooh, how antique
01:15 jberger Silent movie era
01:27 * jberger begins planning a blog post about new delay features
01:29 sri maybe you should release 5.11 first
01:34 good_news_everyon joined #mojo
01:34 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/67DMGQ
01:34 good_news_everyon mojo/master f35e401 Sebastian Riedel: changed order to match example
01:34 good_news_everyon left #mojo
01:35 neyasov______ joined #mojo
02:14 jberger Think it's ready?
02:14 jberger I'm still coming up with examples
02:14 henq joined #mojo
02:21 good_news_everyon joined #mojo
02:21 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/cV8vCQ
02:21 good_news_everyon mojo/master 2c38218 Sebastian Riedel: small optimizations
02:21 good_news_everyon left #mojo
02:22 sri suppose so, but maybe wait until after you've got your examples figured out
02:22 sri who knows, maybe you'll stumble over something
02:35 neyasov______ joined #mojo
02:51 d4rkie joined #mojo
02:58 sri hmm, a kickstarter to make a new version of webgui, how odd
02:59 KCL joined #mojo
03:14 jberger I saw that
03:14 KCL_ joined #mojo
03:15 jberger Deployable cms was my original thought for Galileo
03:36 neyasov______ joined #mojo
04:05 shmuel joined #mojo
04:36 preaction as the person who caused them to abandon webgui 8, i have no comment
04:37 preaction it _was_ really close to release though, but that was... 2.5 years ago now?
04:37 neyasov______ joined #mojo
04:40 KCL joined #mojo
04:41 d4rkie_ joined #mojo
04:49 laouji joined #mojo
04:50 risugg_ joined #mojo
05:07 d4rkie joined #mojo
05:14 dotandimet joined #mojo
05:38 neyasov______ joined #mojo
06:03 sujithm joined #mojo
06:15 cousin_luigi Greetings.
06:15 purl Greetings. is anyone awake?
06:19 preaction cousin_luigi: you should probably just ask your question. frequently, people don't respond to general hello/greet/hi/etc... but it's an off time for this channel so you might need to wait patiently
06:19 chankey joined #mojo
06:19 preaction if you want to play around, you could: use Data::Dumper; print Dumper $dom->find('...')
06:19 preaction but, as mentioned, must bed now. already in trouble as it is
06:25 kyshtynbai joined #mojo
06:27 dotandimet joined #mojo
06:32 cousin_luigi preaction: For some reason a simplified version of the script appears to be working.
06:32 cousin_luigi Investigating.
06:36 dpetrov_ joined #mojo
06:38 sujithm joined #mojo
06:38 neyasov______ joined #mojo
06:43 TenshiLyle joined #mojo
06:46 * tempire has returned to the world of the internet
06:48 sugar joined #mojo
06:53 dod joined #mojo
06:54 bjoernfan tempire: What was the other world like?
06:54 tempire there were these other type of people
06:54 tempire I think they were called, "girls"
07:10 cousin_luigi females will be the ruin of you!
07:10 cousin_luigi they weaken your loins and drive you mad!
07:15 trone joined #mojo
07:16 ver joined #mojo
07:28 Vandal joined #mojo
07:29 * cousin_luigi would like to manipulate a $dom always at the same point. Is there a way to avoid having to specify it every time like: dom->at('div#myid')->find('a[href]')... ?
07:38 sujithm joined #mojo
07:39 neyasov______ joined #mojo
07:43 igorsutton joined #mojo
07:43 abra joined #mojo
07:45 batman so the difference between the delay() helper and render_steps() is the auto rendering at end?
07:47 batman i still think render_steps() is more "let's do blocking non-blocking the right way"
07:48 batman what's the point of doing anything if it doesn't render at the end..?
07:49 batman anyway, i don't have enough energy to put together render_steps() patch myself now :(
07:50 laouji joined #mojo
07:52 basiliscos joined #mojo
07:54 dotan joined #mojo
07:57 marcus__ joined #mojo
07:59 bjoernfan tempire: :)
07:59 edestler joined #mojo
08:12 laouji joined #mojo
08:27 dotandimet joined #mojo
08:32 fhelmber_ joined #mojo
08:33 dotandimet1 joined #mojo
08:40 neyasov______ joined #mojo
09:19 sh4 joined #mojo
09:28 laouji joined #mojo
09:33 henq joined #mojo
09:41 neyasov______ joined #mojo
09:48 laouji joined #mojo
09:52 denis_boyun joined #mojo
09:53 dod1 joined #mojo
09:56 dod joined #mojo
09:56 michael hi - is there a standard way or determining whether a helper method has been called from app or a controller?
10:04 mishantil michael: you could perhaps look at the caller?
10:05 mishantil michael: http://perldoc.perl.org/functions/caller.html ?
10:10 rem_lex joined #mojo
10:15 sujithm joined #mojo
10:16 sujithm joined #mojo
10:23 batman mishantil: $self will just be Mojolicious::Controller and not a subclass.
10:27 d4rkie joined #mojo
10:29 michael thanks - there are various ways of determining it, I just was wondering if there was a proper way. Seems odd if not, when helper is added to both app and controller, but might only be applicable to one or the other
10:30 michael i have a helper that is only applicable in controller, and just wanted to check hadn't been called from app
10:35 Jonneh joined #mojo
10:37 batman michael: $c->tx->connection is false.
10:37 mire joined #mojo
10:42 cousin_luigi Can I use comments to search?
10:42 cousin_luigi like <!-- mycomment --> stuffIdontwant <!-- /mycomment -->
10:44 D4RK-PH0ENiX joined #mojo
11:01 neyasov______ joined #mojo
11:20 bpmedley joined #mojo
11:20 bpm_ joined #mojo
11:27 meshl joined #mojo
11:57 neilhwatson joined #mojo
12:03 igorsutton joined #mojo
12:05 Insane joined #mojo
12:15 Insane hi all, I have mojo with logic like this: http://pastebin.com/rEs6e3MR, here is the problem: if API error occurs, controller app#main tries to render('app/main'), but it must render('error/api') and just stop. What am I doing wrong?
12:17 mire joined #mojo
12:24 moritz Insane: you should return() after rendering the error
12:25 Insane just "return undef;" or $self->return... ?
12:45 moritz return;
12:59 fhelmber_ joined #mojo
13:06 bluescreen joined #mojo
13:17 gryphon joined #mojo
13:21 sugar joined #mojo
13:22 sri looks like the delay helper is popular
13:23 mire joined #mojo
13:45 sri \o/
13:46 jberger sri: I would think so too, but where are you looking at to say that?
13:47 sri the github issue
13:47 purl hmmm... the github issue is resolved now, since sri rewrote without named captures
13:47 btyler joined #mojo
13:47 * sri pats purl
13:47 * purl bites!
13:48 jberger ah, nice
13:50 jberger last night I started browsing mashape.com to try to find a few apis to blend together to make an interesting example
14:00 neyasov joined #mojo
14:01 neyasov_ joined #mojo
14:09 sri batman: the problem is that you then get conceptual problems with nesting
14:09 sri batman: auto rendering is really a blocking concept
14:09 ccm joined #mojo
14:10 sri batman: if you don't get it that's ok
14:13 dotandimet joined #mojo
14:14 phx joined #mojo
14:14 phx hello, is mojolicio able to do HTTP kerberos authentication (using the negotiate method)?
14:18 dotandimet joined #mojo
14:24 neyasov__ joined #mojo
14:25 neyasov___ joined #mojo
14:43 Ptolemarch joined #mojo
14:53 dotan joined #mojo
14:56 cousin_luigi Is $dom->at('div#myid')->find('img') supposed not to return imgs contained in children divs?
14:58 moritz no
14:59 cousin_luigi so it should return them, is that what you're telling me?
14:59 KCL_ joined #mojo
14:59 moritz yes
14:59 cousin_luigi :|
14:59 moritz (don't complain if a negated question to a negated answer confuses you; you asked the negated question! :-)
15:03 cousin_luigi moritz: It didn't confuse me, I just wanted to be double sure.
15:03 cousin_luigi Since they indeed confuse some people at times:)
15:13 meshl joined #mojo
15:16 sujithm joined #mojo
15:18 Ptolemar_ joined #mojo
15:24 neyasov____ joined #mojo
15:25 dotan joined #mojo
15:32 dotandimet joined #mojo
15:34 mishantil joined #mojo
15:42 neyasov_____ joined #mojo
15:48 sri batman: i actually get a headache thinking too much about nested delays with auto rendering and all the stuff that might go wrong
15:49 sri phx: not natively, but i bet you can hack it in
15:51 sjn http://act.yapc.eu/ye2014/wiki?node=Callforpapers # deadline today
15:56 Rallias joined #mojo
15:58 neyasov______ joined #mojo
16:19 sri maybe i should kickstarter http/2 support for mojolicious :)
16:22 Rallias joined #mojo
16:28 batman sri: then don't think about it. delay() helper will help me in 99% of the cases :)
16:29 mire joined #mojo
16:29 batman sri++ # kicking ass
16:34 Rallias joined #mojo
16:55 disputin joined #mojo
16:57 Rallias joined #mojo
17:04 Rallias joined #mojo
17:06 KCL joined #mojo
17:13 Rallias joined #mojo
17:15 neyasov______ joined #mojo
17:20 mib_r2essy joined #mojo
17:20 Rallias joined #mojo
17:30 Rallias joined #mojo
17:35 mire joined #mojo
17:36 Rallias joined #mojo
17:44 _eugen joined #mojo
17:50 disputin joined #mojo
17:56 Rallias joined #mojo
18:01 Tiger joined #mojo
18:10 basic6 joined #mojo
18:14 bobkare joined #mojo
18:16 Rallias joined #mojo
18:40 denis_boyun joined #mojo
18:41 sujithm joined #mojo
18:46 Rallias joined #mojo
19:08 ccm left #mojo
19:12 kyshtynbai joined #mojo
19:15 denis_boyun joined #mojo
19:30 neyasov______ joined #mojo
19:33 Ptolemarch joined #mojo
19:39 neyasov joined #mojo
19:43 neyasov joined #mojo
19:51 basic6_ joined #mojo
20:03 mgrimes joined #mojo
20:10 dod joined #mojo
20:11 neilhwatson joined #mojo
20:12 alnewkirk joined #mojo
20:18 Ptolemarch joined #mojo
20:32 sujithm joined #mojo
20:41 dod joined #mojo
20:44 bluescreen joined #mojo
21:01 Ralesk is there a nice and easy way to get the preferred language from the accept-language header?
21:23 sugar joined #mojo
21:25 disputin joined #mojo
21:44 mire joined #mojo
21:51 henq joined #mojo
21:53 meshl joined #mojo
21:54 henq joined #mojo
22:01 sri there is some core module, look how the i18n plugin does it
22:06 henq joined #mojo
22:13 jberger Well back to 4 more years of the US not caring about soccer
22:14 tianon sounds like the way we handle our government too
22:14 tianon same cadence, even
22:14 neilhwatson I'm impressed they made it this far, given the US public's lack of interest.
22:15 jberger tianon: true
22:15 cousin_luigi didn't the demographic change augmented interest?
22:15 cousin_luigi augment*
22:15 sri your goalie is really good though
22:15 jberger Not noticeably
22:15 jberger sri that is true
22:17 neilhwatson Suddenly
22:17 purl it has been said that Suddenly is less interested in his porridge.
22:17 sri or maybe not :)
22:19 sri (not caring)
22:25 jberger How long is this extra time?
22:25 sri 2x15m
22:27 jberger Just remember, training camp starts soon
22:27 jberger ????
22:33 berov joined #mojo
23:32 Gedge joined #mojo

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