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

IRC log for #mojo, 2017-11-22

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

All times shown according to UTC.

Time Nick Message
00:00 disputin joined #mojo
00:03 disputin joined #mojo
01:11 aborazmeh joined #mojo
01:25 zivester joined #mojo
01:54 hesco joined #mojo
02:08 gryphon joined #mojo
03:05 noganex_ joined #mojo
03:08 brunoramos joined #mojo
04:29 aborazmeh joined #mojo
04:48 mib_s52iar joined #mojo
04:48 mib_s52iar left #mojo
05:04 dboehmer joined #mojo
05:05 jamesaxl joined #mojo
05:12 aborazmeh joined #mojo
05:42 inokenty-w joined #mojo
06:06 kaare joined #mojo
06:32 kaare joined #mojo
06:37 disputin joined #mojo
06:50 eseyman joined #mojo
07:05 dod joined #mojo
07:07 Vandal joined #mojo
07:11 dod joined #mojo
08:13 AndrewIsh joined #mojo
08:25 trone joined #mojo
08:31 kaare joined #mojo
08:32 kaare joined #mojo
09:23 mib_750byi joined #mojo
10:01 geospeck joined #mojo
11:01 * sri would still like reviews for the minion worker change from yesterday
11:06 tchaves joined #mojo
11:10 dotan_convos joined #mojo
11:16 kaare joined #mojo
11:29 sri oh well, i'll just release it :p
11:30 sri http://s2.quickmeme.com/img/a6/a685e75bd048b193bf98e87dffa766009f1f49ff5e623b0a5e059640365cb91d.jpg
11:34 zach joined #mojo
11:34 zach What's the best way to make minions start when you load your hypnotoad instance?
11:40 bjakubski joined #mojo
11:41 sri there is no good way
11:42 sri i use a second systemd unit file
11:43 zach Ok, well this isn't linux, so I guess I'll just make it part of my init script that there will also be minions started.
11:43 zach Is there any chance it would one day be part of the hypnotoad config to be autostarted?
11:44 sri if there's a good proposal
11:44 zach I don't know what that means
11:45 zach Like, if someone builds a valid case for why it should be a good feature to build?
11:49 sri like if someone builds it in a reasonable way and sends a pull request
11:55 zach ok
12:03 sri it's a hard problem to solve, making sure that the worker restarts cleanly with hypnotoad
12:10 dotan_convos joined #mojo
12:15 zach why?
12:20 kaare joined #mojo
12:34 marcus zach because of the way hypnotoad is built to handle zero downtime deployments.
12:37 karjala_ joined #mojo
12:38 karjala_ I can't find it in the docs
12:38 karjala_ sry
12:38 karjala_ nothing
12:40 itaipu joined #mojo
12:42 karjala_ On which of Mojo's modules' POD is it written that $app->home returns the homedir of the app?
12:48 kaare joined #mojo
12:54 karjala_ Mojo, ok
12:59 kaare joined #mojo
13:14 gizmomathboy joined #mojo
13:52 bwf joined #mojo
14:10 perlpilot joined #mojo
14:15 tchaves joined #mojo
14:20 ChmEarl joined #mojo
14:29 gryphon joined #mojo
14:52 zivester joined #mojo
15:09 exp-innit this may be a particularly stupid question
15:09 exp-innit but is there a way to test if a variable was passed to a template?
15:09 exp-innit ie `defined $whatever`, I was trying this before and getting template errors about undefined $whatever
15:09 exp-innit but i assume i'm missing something fundamental
15:11 stephanj you could try `defined stash('varname')`
15:11 stephanj but that will atleast not error out
15:12 stephanj you could put an eval around the defined $whatever check but thats already quite a bit of logic in the template then
15:12 exp-innit yeah, i'm going to try moving as much of this logic out of templates but for the moment i do need this test
15:12 exp-innit tyvm stephanj
15:13 stephanj keep in mind, that if you pass undef you can detect if it is actually undef or just not passwd down
15:13 stephanj i think just stash() returns the whole stash - you could check on the key to further drill down
15:13 exp-innit that's fine, this is just an optional 'display' element
15:13 stephanj depending on what level you need :)
15:39 exp-innit stephanj: yeah that seems insufficient as inside an if statement it still gets caught even if it's guarded with a define :/
15:39 exp-innit not quite sure why that is
15:41 exp-innit at least i can just use stash, that saves me hassle :)
16:10 mohawk exists stash->{the_key}?
16:19 Lee joined #mojo
16:33 disputin joined #mojo
16:45 exp-innit mohawk: yeah i'm using the functional form as above, but works great
16:45 exp-innit i assume url_for/url_with also url_escape by default
17:23 ferminter joined #mojo
17:26 ferminter Sorry to be a knobbish noob, but is there a chart of the mojo object hierarchy available anywhere? With methods would be doubleplusgood. My googlefu is insufficient to turn anything up
17:26 pink_mist http://mojolicious.org/perldoc#REFERENCE
17:26 pink_mist not with methods
17:27 Grinnz subclasses will always state if they are inheriting methods from elsewhere
17:32 dod joined #mojo
17:41 ferminter Nice. Thanks for that, not sure how I missed it
18:06 marcus hmm, seems like we have an issue with hypnotoad under systemd, it dies on reload sometimes.
18:09 marcus https://gist.github.com/marcusramberg/3c2ff3c0133079efa6a1427102f1ece1
19:17 genio So, Handles are being destroyed in Perl before the libuv loop is done with it completely, causing segfaults. To get around this, I think I'm going to have to have each loop keep an array of associated Handles and not actually destroy the C object on the Perl object destroy. I'll have to clean that up in the loop as the loop sees fit. I'm just worried about some Handle objects getting time as the loop runs
19:17 genio again to clean things up.  lots of ...
19:17 genio ... testing/figuring to do
19:19 itaipu joined #mojo
19:20 mib_gzq1vq joined #mojo
19:22 mib_p9rvft joined #mojo
19:26 itaipu_ joined #mojo
19:28 sluggo joined #mojo
19:30 mib_he7y1v joined #mojo
19:30 mib_he7y1v Hi, do you know how to add user data in session?
19:31 itaipu joined #mojo
19:39 smerft joined #mojo
19:45 trone joined #mojo
19:57 jberger mib_he7y1v that is included in the tutorial, have you read that?
19:58 jberger http://mojolicious.org/perldoc#TUTORIAL
20:27 dexteruk joined #mojo
20:28 dexteruk hi everyone
20:28 purl Howdy, dexteruk, you fantastic person you.
20:32 dexteruk I have a problem when i use a curl command i get the correct responce but when i use the mojo useragent i get an error
20:32 dexteruk https://pastebin.com/pYn1T2Q1
20:32 dexteruk the error tells me the value type should be a  boolean
20:32 maschine exp-innit:  % if (my $foo = stash 'foo') { ... }
20:32 maschine also works with flash, session, etc
20:33 dexteruk i have tried setting it to 0, false and 'false' and still i get the same error
20:34 sri if only purl was always that friendly
20:35 Grinnz dexteruk: Mojo::JSON::false
20:35 Grinnz or use Mojo::JSON 'false';
20:35 sri or \1 and \0
20:36 dexteruk so simple
20:36 dexteruk thanks that worked
20:36 Grinnz json booleans in perl have had a far from simple history :P
20:36 dexteruk i been racking my brain for about 2 hours on this silly little thing
20:37 dexteruk i didnt want to come on here and look like a fool, hey guess what i still managed hahaa
20:37 Grinnz its not an obvious thing unless you were looking at the Mojo::JSON docs
20:38 dexteruk well thanks your all life savers
20:45 dexteruk if anyone is interested in chatting about blockchain and perl/mojolicious i would love to chat
20:48 * sri vanishes in a cloud of smoke after hearing the word blockchain
20:49 dexteruk :-)
20:49 disputin joined #mojo
21:00 geospeck joined #mojo
21:18 geospeck joined #mojo
21:22 jberger https://twitter.com/MalwareTechBlog/status/932649133256597505
21:36 karjala_ joined #mojo
21:48 geospeck joined #mojo
22:02 gryphon joined #mojo
23:11 karjala_ joined #mojo
23:54 marty joined #mojo

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