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

IRC log for #mojo, 2016-09-11

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

All times shown according to UTC.

Time Nick Message
00:20 Adurah joined #mojo
00:20 mishanti1 The advances in external enclosures for gpus the last couple of years have been great, especially now that we're past the whole "lets do this with vendor-specific connectors an cables"-period.
00:21 mishanti1 Now they really only have to fix performance (perhaps we get that in the next thunderbolt-version), and make TB-passthrough the norm.
00:34 Janos joined #mojo
00:43 itaipu joined #mojo
01:02 * jberger just finished True Detective season 1
01:02 jberger Pretty good stuff
01:02 jberger Also they've been showing a new trailer for West World which looks pretty great
01:06 jberger I do like the recent trend to self contained seasons of shows
01:06 jberger Frees the writers from having to think of multi season arcs and focus in a good story
01:07 jberger s/in/in on/
01:18 itaipu joined #mojo
01:42 trobotham joined #mojo
02:21 Pierre joined #mojo
02:28 noganex joined #mojo
02:31 jberger_ joined #mojo
02:33 jberger_ left #mojo
02:33 jberger_ joined #mojo
02:59 kaare joined #mojo
03:59 che-quest joined #mojo
04:23 Janos joined #mojo
04:50 tyldis joined #mojo
05:18 Pierre joined #mojo
06:21 juikuen joined #mojo
07:06 Vandal joined #mojo
07:26 anton joined #mojo
07:41 dod joined #mojo
07:46 dod joined #mojo
07:52 kaare_ joined #mojo
07:54 Pierre joined #mojo
08:02 jamesaxl joined #mojo
08:23 irqq_ joined #mojo
08:33 jamesaxl joined #mojo
08:47 zivester joined #mojo
08:49 sri jberger: just don't watch season 2, it sucks
09:01 Pierre joined #mojo
09:07 mpapec joined #mojo
09:08 mpapec any thoughts on http://stackoverflow.com/questions/28582935/does-http-2-make-websockets-obsolete ?
09:39 sri Grinnz: haha, so if you drop below a rating of 0 in overwatch it jumps to 5000 and you become grand master, their quality control seems to be on point...
09:41 mtj_ joined #mojo
09:46 mtj joined #mojo
09:54 polettix joined #mojo
09:54 polettix hello all
09:54 purl It's a crazy world, but hello to you too!
09:56 polettix today I posted a (wrong) issue for Minion at https://github.com/kraih/minion/issues/40 and I was told that I forgot to start the event loop
09:57 polettix sorry for that
09:58 sri app->start starts the command system, which can do all kinds of things
10:02 polettix I’m a bit confused about where I should start the ioloop though. I’ll post a gist shortly to show what I did
10:03 sri it's in the Mojo::UserAgent synopsis
10:04 sri Mojo::IOLoop->start unless Mojo::IOLoop->is_running;
10:04 sri all you need
10:04 purl hmmm... all you need is HTTP/1.0 200 OK  Content-type: text/html     Content-length: though
10:05 sri the delay is better though, since it automatically stops quickly
10:06 polettix thanks working now
10:07 polettix I’m wondering one thing: the $ua object also has $ua->ioloop that is supposed to return the underlying ioloop, but if I substitute IOLoop->start … with $ua->ioloop->start … it does not seem to work
10:08 sri http://mojolicious.org/perldoc/Mojo/UserAgent#ioloop
10:08 sri "blocking"
10:08 sri behind the scenes we use a separate event loop to emulate blocking requests
10:09 sri internally it's actually all non-blocking
10:10 polettix oh now I see, thanks
10:12 polettix I wrongly assumed that app->start would also do Mojo::IOLoop->start because the minion worker sits there waiting for jobs to come
10:12 polettix Just for curiosity, does it use a different mechanism for looping?
10:19 sri https://github.com/kraih/minion/blob/master/lib/Minion/Command/minion/worker.pm#L32
10:21 polettix thanks. I’ll try the delay-based alternative too.
10:21 polettix does it make sense to make non-blocking calls while executing a job anyway?
10:22 sri only if you need to do stuff concurrently
10:22 polettix like serving multiple concurrent jobs that might come from the fronted Mojolicious::Lite app?
10:22 sri but each job runs in its own process
10:22 polettix ah OK
10:23 polettix so in the simple example it actually does not make sense
10:23 sri correct
10:24 polettix I also noticed that doing non-blocking stuff with Mojo::UserAgent->new in a Mojolicious::Lite app (no Minion) does not work out of the box, while using app->ua does indeed work
10:25 polettix which makes me think that I might just do Mojo::IOLoop->start unless Mojo::IOLoop->is_running; somewhere at the beginning and forget about it
10:26 polettix or should I put that line whenever I do a non-blocking usage of any Mojo::UserAgent to be on the safe side?
10:28 sri http://mojolicious.org/perldoc/Mojolicious/Guides/FAQ#What-does-Premature-connection-close-mean
10:32 polettix … which means I should find a way to make the user agent hang around and not being destroyed prematurely
10:33 polettix which makes things work there too, thanks
10:39 polettix so now there’s another thing that puzzles me: in the Minion non-blocking example with Mojo::UserAgent->new I’m creating a lexical $ua in the sub to do the non-blocking request, then I’m exiting from the sub immediately… how does *that* work?
10:39 polettix Is it related to the fact that Mojo::IOLoop->start is actually called in the Minion example (because it was not previously running) while it’s not called in the Mojolicious::Lite app case?
10:40 mtj joined #mojo
10:43 Pierre joined #mojo
10:54 cuechan joined #mojo
11:03 cuechan joined #mojo
11:26 Pierre joined #mojo
11:35 cuechan joined #mojo
12:13 cuechan joined #mojo
12:13 dod joined #mojo
12:15 tyldis I ❤ Mojo::EventEmitter
12:25 meshl joined #mojo
12:26 Pierre joined #mojo
12:27 Janos joined #mojo
12:38 jberger polettix: you can safely use a delay to manage the event loop in a portable way
12:38 jberger In any case
12:38 purl In any case is an app->term one
12:39 jberger purl: forget In any case
12:39 purl jberger: I forgot in any case
12:40 jberger Also, in case it wasn't clear, it is the server that starts the event loop (eg daemon morbo hypnotoad) not the app
12:40 jberger Which is why it isn't started in the minion process
12:58 Pierre joined #mojo
12:59 sunnova joined #mojo
12:59 sunnova I miss postfix if's in templates :(
13:14 meredith joined #mojo
13:15 Kundun joined #mojo
13:15 itaipu joined #mojo
13:19 che-quest joined #mojo
13:19 vinnix joined #mojo
13:21 isomorphismes joined #mojo
13:52 itaipu joined #mojo
14:18 Janos joined #mojo
14:20 itaipu joined #mojo
14:23 howitdo joined #mojo
14:37 itaipu joined #mojo
14:50 sri postfix if works just fine
14:50 zivester joined #mojo
14:52 pink_mist yeah, he already left or I would have said that hours ago
14:55 sri -.-
15:00 dod joined #mojo
15:04 cpan_mojo Mojolicious-Plugin-AssetPack-1.23 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-1.23
15:07 itaipu joined #mojo
15:09 kaare_ joined #mojo
15:19 polettix joined #mojo
15:24 cpan_mojo Mojolicious-Plugin-AssetPack-1.24 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-1.24
15:27 inokenty joined #mojo
15:31 anon joined #mojo
15:31 jacoby__ joined #mojo
15:32 mattp_ joined #mojo
15:33 CandyAng- joined #mojo
15:33 pink_mist joined #mojo
15:33 Pierre joined #mojo
15:33 coolo joined #mojo
15:33 simcop2387 joined #mojo
15:33 saki joined #mojo
15:33 bm_ joined #mojo
15:33 upasana joined #mojo
15:34 jamesaxl joined #mojo
15:34 yuni joined #mojo
15:34 stefan joined #mojo
15:34 stryx` joined #mojo
15:34 marcus joined #mojo
15:34 Caldrin joined #mojo
15:34 degeberg joined #mojo
15:34 dabudabu joined #mojo
15:34 itaipu joined #mojo
15:34 che-quest joined #mojo
15:34 kamyl joined #mojo
15:34 Riviera joined #mojo
15:34 hrupp joined #mojo
15:34 HtbaaPi joined #mojo
15:34 robinsmidsrod joined #mojo
15:35 plicease joined #mojo
15:35 upasana_ joined #mojo
15:36 vicash joined #mojo
15:59 PryMar56 joined #mojo
16:10 romel joined #mojo
16:15 howitdo joined #mojo
16:20 asarch joined #mojo
16:32 itaipu joined #mojo
16:56 howitdo joined #mojo
17:00 Janos joined #mojo
17:03 howitdo joined #mojo
17:04 itaipu joined #mojo
17:43 Craftsmanship joined #mojo
17:45 Craftsmanship Say, is there a way to get the TagHelpers to do validation?
17:46 Janos joined #mojo
17:52 sri joined #mojo
17:54 sri joined #mojo
18:03 batman Craftsmanship: what does that mean?
18:03 purl You're a nut! You're crazy in the coconut!
18:03 Craftsmanship Ha.
18:03 batman :D
18:04 Craftsmanship you know, frowny messages around the inputs when they don't match a regex
18:06 jberger Craftsmanship: it can do that yes
18:06 jberger http://mojolicious.org/perldoc/Mojolicious/Guides/Rendering#Form-validation
18:45 itaipu joined #mojo
18:47 dod joined #mojo
19:20 Janos joined #mojo
19:33 meshl joined #mojo
19:57 asan13 joined #mojo
20:02 y1mmm joined #mojo
20:12 Janos joined #mojo
20:15 zivester joined #mojo
20:20 cuechan joined #mojo
20:43 polettix joined #mojo
20:46 Craftsmanship joined #mojo
20:47 Craftsmanship Prepare a 302 (if the status code is not already 3xx) redirect response with Location header, takes the same arguments as "url_for".   - I'm not seeing my get params in my redirect by passing a hashy-list, or hashref, nor by calling ->query on the return
20:47 preaction joined #mojo
20:47 Craftsmanship on redirect_to, i mean.
20:48 sri wow, the internet is going crazy with clinton conspiracy theories today :o
20:57 preaction joined #mojo
20:59 sri but seriously, reddit censorship is crazy
21:01 sri the clinton news reached the frontpage from the r/gifs subreddit, while the news subreddits say nothing
21:02 batman joined #mojo
21:43 mishanti1 Yeah, seems like the Clintonator is falling apart. Propably the best thing that can happen is her going out of service so the Democrats can try with Sanders or Biden.
22:01 itaipu joined #mojo
23:25 vicash i just dont understand the hate for Clinton when everyone gives a free pass to Trump..
23:25 vicash that is the reason why he will most likely win... he gets a free pass for all the shit that emerges from his ass of a mouth
23:37 Adurah He's a breath of fresh air compared to the usual Jesusiness of GOP candidates.
23:45 Pierre joined #mojo
23:52 laidback_01 joined #mojo

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