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

IRC log for #mojo, 2016-11-10

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

All times shown according to UTC.

Time Nick Message
01:00 aborazmeh joined #mojo
02:16 Janos joined #mojo
02:30 Janos joined #mojo
02:36 asarch joined #mojo
03:14 gizmomathboy joined #mojo
03:47 noganex joined #mojo
06:02 inokenty-w joined #mojo
06:27 Vandal15263 joined #mojo
06:52 polettix joined #mojo
06:59 dod joined #mojo
07:14 mbudde joined #mojo
07:36 Atog joined #mojo
07:53 rshadow joined #mojo
08:00 AndrewIsh joined #mojo
08:28 trone joined #mojo
08:44 cosimo joined #mojo
09:07 rshadow joined #mojo
09:12 osfabibisi joined #mojo
09:15 gregf_ joined #mojo
09:23 tyldis I love how company HQ is sending out emails on security training, but having it all coming from third party domains. "From" is our domain, but the "received"-lines says it originated outside the company and points to an unknown third party websiite that requires javascript and pings to newrelic.
09:38 anparker joined #mojo
09:47 * coolo wants newrelic for mojo!
10:53 tchaves joined #mojo
11:00 salva joined #mojo
11:04 janl joined #mojo
11:33 henq joined #mojo
12:30 AndrewIsh joined #mojo
12:35 janus joined #mojo
12:38 cosimo_ joined #mojo
12:43 dotan_convos joined #mojo
12:50 rshadow1 joined #mojo
12:57 cosimo joined #mojo
13:06 gbhat joined #mojo
13:10 dotan joined #mojo
13:12 rshadow joined #mojo
13:16 henq joined #mojo
13:26 itaipu joined #mojo
13:48 osfabibisi joined #mojo
13:51 gryphon joined #mojo
13:52 Lee joined #mojo
13:54 lluad joined #mojo
13:55 marty joined #mojo
13:56 marty joined #mojo
14:05 gizmomathboy joined #mojo
14:06 trone joined #mojo
14:06 itaipu joined #mojo
14:15 Pyritic joined #mojo
14:20 gbhat Hi. Just wanted to check if it is possible to get hold of the global ioloop singleton (the one that starts off in Mojo::Server::Daemon from inside a Controller?
14:21 gbhat Or would just creating a new one wiould get that for me since its a singleton
14:21 polettix joined #mojo
14:22 gbhat (like this: Mojo::IOLoop->singleton)
14:22 pink_mist sure, that works fine
14:22 gbhat pink_mist: Thanks.
15:02 itaipu joined #mojo
15:05 henq joined #mojo
15:06 trone joined #mojo
15:26 dod joined #mojo
15:26 mcsnolte joined #mojo
15:28 zivester joined #mojo
15:30 suede man, perl is so cool
15:30 suede jberger: i messed around with the symbol table today
15:30 suede you are indeed correct that perl does monkey patching better than Python
15:32 suede does anyone know what SELECT COUNT(whatever) will return from Mojo::Pg
15:33 suede what will be the contents of $results->hash
15:46 PopeFelix joined #mojo
15:46 disputin joined #mojo
15:47 jberger :D
15:48 jberger suede: you should either take $results->array->[0] or $db->query('SELECT COUNT(whatever) as dummy')->hash->{dummy}
15:48 suede jberger: thank you! :)
15:48 jberger np
15:51 dod joined #mojo
15:51 CW joined #mojo
16:31 Grinnz you can also just run the query and dump the hash it returns :P but yeah an explicit alias is best if you're going to retrieve it as a named value
16:38 suede Grinnz: thank you too!
17:02 rshadow joined #mojo
17:08 marty_ joined #mojo
18:10 disputin joined #mojo
18:12 itaipu joined #mojo
18:40 marty joined #mojo
19:02 marty joined #mojo
19:04 rshadow joined #mojo
19:06 arcanez joined #mojo
19:06 arcanez joined #mojo
19:10 gizmomathboy joined #mojo
19:18 disputin1 joined #mojo
19:20 disputin joined #mojo
19:21 marty_ joined #mojo
19:22 Janos joined #mojo
19:23 PryMar56 joined #mojo
19:24 rshadow joined #mojo
19:24 disputin1 joined #mojo
19:25 henq joined #mojo
19:28 jacoby joined #mojo
19:37 marty joined #mojo
19:37 marty joined #mojo
19:41 rshadow joined #mojo
19:43 dod joined #mojo
19:46 itaipu joined #mojo
19:48 asarch joined #mojo
19:49 rshadow joined #mojo
19:53 flow joined #mojo
19:54 flow Hello everybody
19:54 purl Hello Dr. Nick!
19:54 orev joined #mojo
19:57 flow let's suppose I have got a string "Ä test" = "A-umlaut test"
19:57 flow In my template there is '<%= $string %>'.
19:58 flow The browser will render that alright: Ä test.
20:01 flow Now I decide that string should rather be rendered in a json data structure for an element attribute: data-init='{"string":"Ä test"}'
20:01 flow I tried that myself to render and I achieved it by:
20:01 flow data-init='<%= (include json => $init)->decode %>'>
20:02 lluad joined #mojo
20:02 flow why decode?
20:02 flow without its unicode encoding two-character garbage
20:03 flow it's
20:03 sri because json is utf-8 encoded, and templates get utf-8 encoded too
20:03 batman flow: <%= Mojo::JSON::to_json($data) %>
20:03 sri the smart way would be to use Mojo::JSON::to_json
20:03 * sri waves fist at batman
20:03 * batman hides
20:04 flow ah ... *trying*
20:04 * batman goes back to hacking on convos
20:05 flow Once tried to use normal functions like that. There had been an error and I restricted myself to helpers ever since
20:06 sri it's just perl, functions are fine
20:07 flow works
20:19 flow thank you!
20:20 noganex_ joined #mojo
20:37 dod joined #mojo
21:02 flow dammit, managed to fabricate endless loop an endless loop in template code ... out of memory!
21:03 genio limit memory usage on apps while testing
21:03 jberger or have a lot of memory and a quick ^C finger
21:03 genio heh
21:04 flow how to limit it? ulimit?
21:06 flow there is no means to debug template code, is there?
21:06 flow isn't a template compiled to a perl module?
21:07 flow might confuse mojolicious and mason indeed.
21:11 flow wait, will reproduce the infinite loop with code in the debugger ...
21:13 flow did not need to, found bug and smashed it with a pan :D
21:17 flow morbo ignored kill signal.
21:18 flow my init script should try kill -9 then.
21:21 polettix joined #mojo
21:21 flow good night (22:20 on my clock)
21:36 zivester joined #mojo
21:55 tl joined #mojo
22:04 marty_ joined #mojo
22:29 henq joined #mojo
22:33 Pyritic joined #mojo
22:41 stryx` joined #mojo
22:51 disputin joined #mojo
23:01 marty joined #mojo
23:01 CW joined #mojo
23:18 disputin1 joined #mojo
23:53 gizmomathboy joined #mojo
23:56 itaipu joined #mojo

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