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

IRC log for #mojo, 2017-05-12

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

All times shown according to UTC.

Time Nick Message
00:00 stryx` joined #mojo
01:10 aborazmeh joined #mojo
01:49 aborazmeh joined #mojo
02:00 aborazmeh joined #mojo
02:12 D joined #mojo
02:15 user_8960 joined #mojo
02:15 D is there a straight-forward way to dump static html files?
02:15 noganex_ joined #mojo
02:18 disputin joined #mojo
02:23 punter joined #mojo
02:23 Carl-cai joined #mojo
02:24 Grinnz print?
02:24 purl it has been said that print is 3 => ("print", 3)
02:26 D that is my instinct as well.  If I generate a lite app (mojo generate lite_app); I tried my $out = $c->render(template-)
02:26 D =>index)
02:27 D print $out
02:29 D never mind!  I get it
02:29 D using Mojo::Template directly in a script is the way to go
02:29 Grinnz ./your_app.pl get /foo
02:30 D yes!
02:30 D thanks!
03:14 maschine joined #mojo
03:49 cheako joined #mojo
04:07 stefan_ joined #mojo
05:02 ssm joined #mojo
05:42 inokenty-w joined #mojo
05:45 dod joined #mojo
05:50 dod joined #mojo
05:53 dod joined #mojo
06:20 prg joined #mojo
06:45 karjala_ joined #mojo
06:46 AndrewIsh joined #mojo
06:46 karjala_ joined #mojo
07:17 trone joined #mojo
08:08 Lee joined #mojo
08:27 rshadow joined #mojo
10:16 skycarl joined #mojo
10:22 kaare joined #mojo
10:30 ashimema joined #mojo
10:44 ashimema joined #mojo
11:51 bwf joined #mojo
12:06 ashimema is there any examples/explanation anywhere about when it's a good idea to use IOLoop::Subprocess vs IOLoop::ForkCall vs setting up a Minion task?
12:07 ashimema Only came across Subprocess very recently and it feels like it operates in the same niche as ForkCall.. but I'm not expert enough to understand the finer details
12:08 Lee joined #mojo
12:11 jberger it is exactly the same niche as ForkCall
12:12 jberger indeed it is almost the same code
12:12 jberger basically ForkCall is superceded by Subprocess
12:12 jberger but for $reasons I'm not quite ready to do that fully yet
12:13 jberger I guess I should at least put something in the docs saying that new code should use Subprocess
12:13 jberger as to that vs minion
12:13 jberger Subprocess is really just to unblock something medium-sized
12:14 jberger for large long-running jobs or where you need to audit or where the result isn't intended to be served to the client, then you probably want minion
12:20 ashimema thanks jberger, that helps allot :)
12:21 ashimema yeah, would be great to have a 'using ::Subprocess is now the preferred option' or something in the perldoc for ::ForkCall
12:21 ashimema :)
12:22 ashimema I think I was already a bit more clear about vs Minion.. but that also helped clarify :)
12:22 * ashimema is currently in the process of converting some of his heavier routes to being non-blocking..
12:24 * ashimema wonders when http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#CONCEPTS got added.. it's a nice succinct bit of docs :)
12:28 gryphon joined #mojo
12:31 Armen gmorning
12:34 Armen I have a question, possibly more a perl question than a mojo question, so tell me if I need to ask somewhere else. If I use mojo's "has" to define something like has x => sub { return "y"; }, does the sub get evaluated once when the package is "use"d, or every time the class is instantiated?
12:38 Armen or even only on the first "use" of the package
12:38 ribasushi Armen: it's shorter to test this than to write the actual question about it ;)
12:39 ribasushi perl -MMojo::Base=-base -e 'my $counter; has x => sub { ++$counter }; for (1..3) { warn __PACKAGE__->new->x }'
12:39 Armen ribasushi: true, but I'm at work and can't really test it until I get home tonight
12:40 ribasushi Armen: there's an eval-bot somewhere in #perl-help iirc, but in any case: the above does print 1 / 2 / 3, i.e. "the default derivation sub is called every time"
12:41 Armen ok, thanks
12:43 batman sri: https://metacpan.org/release/JHTHORSEN/Mojolicious-Plugin-AssetPack-1.43 # "Less verbose logging when processing assets"
12:55 preaction Armen: if you need to, see also the `state` keyword
12:56 Armen preaction: I'm using the state keyword for just such a case already, but I wonder if there is a better way.
12:57 preaction not really, no
12:57 Armen then I guess if the current solution does the job... I won't change it
13:12 Armen There are a few more things I need to learn about so I can get to the implementing bits when I get home tonight. I will be doing some googling today.
13:13 gizmomathboy joined #mojo
13:17 kaare joined #mojo
13:17 skycarl joined #mojo
13:24 stryx` joined #mojo
13:31 kaare joined #mojo
13:40 PopeF0 joined #mojo
13:44 mcsnolte joined #mojo
13:45 jlaffaye_ joined #mojo
14:03 rshadow joined #mojo
14:11 carl_ joined #mojo
14:18 itaipu joined #mojo
14:52 disputin joined #mojo
15:13 maschine joined #mojo
15:13 Pyritic joined #mojo
15:14 maschine not exactly a mojo question, but since many here seem to be fans of PostgreSQL, what are you using as admin software?  Any workable alternatives to phpPgAdmin?
15:22 esh joined #mojo
15:22 nicomen joined #mojo
15:35 disputin joined #mojo
15:44 PryMar56 joined #mojo
15:51 pink_mist "admin software"?
15:51 pink_mist psql?
15:51 purl i heard psql was the interactive SQL component of PostgreSQL.
15:52 maschine yeah, phppgadmin is like a web interface to work in your database
15:53 maschine it's php based (obviously) and causing me all sorts of headaches
15:54 maschine if I have to uninstall apache2 again, I'm gonna go postal
16:08 Grinnz i don't think there's any other that's quite so mature, but I think it's been discussed that such a thing would be pretty simple to set up with mojo
16:10 maschine yeah I could see doing something like that
16:10 maschine I just gave up - PHP is a pain, and I don't use it for anything else anyway.
16:10 Grinnz i usually just use the commandline clients these days
16:10 maschine what do you suggest?
16:11 Grinnz for pg, psql
16:11 maschine ah, well at least I have that working :p
16:11 Grinnz once you get the hang of finding all the \foo commands it's nice
16:12 maschine I was just looking to merge several sqlite files into one psql database
16:12 maschine I think I just wasted hours on a wild goose chase
16:21 disputin joined #mojo
16:26 cheako joined #mojo
16:42 sh14 joined #mojo
16:42 dod joined #mojo
16:43 disputin joined #mojo
16:45 punter joined #mojo
16:48 Lee joined #mojo
16:55 PopeF joined #mojo
17:20 kaare_ joined #mojo
17:39 maschine Grinnz - all that struggling with phppgadmin and I managed to do what I needed to with psql in about 5 minutes.  ugh.
17:40 Grinnz heh
17:41 maschine now if I'm right I should be able to convert my app just by using mojo::pg and changing my connection string :)
17:58 zty joined #mojo
17:58 zty CHECK OUT A NEW EXCITING TOR IRC
17:58 zty ██╗██████╗  ██████╗
17:58 zty ██║██╔══██╗██╔════╝
17:58 zty ██║██████╔╝██║
17:58 zty ██║██╔══██╗██║
17:58 zty left #mojo
17:59 Armen how to make sure I will not be checking out your new and exciting whatever
17:59 Grinnz heh
18:09 Pyritic joined #mojo
18:20 rshadow joined #mojo
18:45 Pyritic joined #mojo
18:51 vicash left #mojo
19:01 stryx` joined #mojo
19:07 castaway joined #mojo
19:34 Pyritic joined #mojo
19:43 Lee joined #mojo
20:20 punter joined #mojo
20:24 zivester joined #mojo
20:42 cheako joined #mojo
20:51 stryx` joined #mojo
20:55 dmanto joined #mojo
21:27 Lee joined #mojo
21:37 maschine joined #mojo
21:38 Lee joined #mojo
21:53 castaway joined #mojo
22:37 gryphon joined #mojo
23:03 gizmomathboy joined #mojo
23:04 Lee joined #mojo
23:07 gryphon joined #mojo
23:15 Lee joined #mojo
23:36 Lee joined #mojo

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