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

IRC log for #mojo, 2016-01-16

| 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:05 zivester joined #mojo
00:05 jberger Actually he was a p5 favoring troll \o/
00:29 marty joined #mojo
00:30 marty joined #mojo
00:31 marty joined #mojo
00:32 marty joined #mojo
01:00 jontaylor joined #mojo
01:46 GabrielVieira joined #mojo
01:49 asarch joined #mojo
02:00 jontaylor joined #mojo
03:15 binlei joined #mojo
03:27 TheDude joined #mojo
03:52 noganex joined #mojo
04:00 jontaylor joined #mojo
04:22 c--__ joined #mojo
06:02 jontaylor joined #mojo
06:29 mad_hatter Does hypnotoad have logging ability like morbo?
06:34 jberger mad_hatter: yes but only to a file not to STDERR
06:35 jberger By default that works if there is a log directory
06:37 mad_hatter that's fine
06:37 mad_hatter does the log directory need to be in the root directory of the application?
06:37 mad_hatter or the script/ directory
06:37 jberger Application root
06:38 jberger Thus is all configurable with the right switches of course but that's the easy way
06:38 jberger s/thus/this/
07:02 fkafka joined #mojo
07:02 jontaylor joined #mojo
07:03 fkafka Using websockets, assume I have 200 clients connected, is there a way to send a message to a single one of them?
07:06 Grinnz fkafka, you can have them communicate with each other like in this example, and have it subscribed to a particular event https://metacpan.org/source/SRI/Mojolicious-6.40/examples/chat.pl
07:07 Grinnz if you are using a prefork or hypnotoad server you'll need to communicate through an external server like pg or redis pubsub
07:07 Grinnz Mojo::Pg and Mojo::Redis2 have similar examples
07:12 fkafka Awesome, thank you Grinnz!
07:17 tyldis Or a messagebroker
07:40 binlei joined #mojo
07:43 kes joined #mojo
08:04 jontaylor joined #mojo
08:16 inokenty-w joined #mojo
08:19 binlei joined #mojo
08:20 binlei joined #mojo
08:32 Vandal joined #mojo
09:04 jontaylor joined #mojo
09:20 dod joined #mojo
09:26 dod joined #mojo
09:59 zivester joined #mojo
10:29 jontaylor joined #mojo
11:40 jontaylor joined #mojo
13:02 Adura joined #mojo
13:33 Adurah joined #mojo
14:09 jberger tyldis: in that case those databases are acting as the message broker
14:43 asarch joined #mojo
15:01 punter joined #mojo
15:21 sh4 joined #mojo
15:34 sri 40 stickers since yesterday, not too bad
15:35 sri surprising amount of 1 sticker buyers
15:35 sri the raptor is way ahead of the mojolicious logo now :o
15:35 jberger Zero shipping will help the one sticker purchasers
15:36 sri shipping to europe is only $2
15:37 * jberger got invited to another city for a .pm talk on mojo o/
15:37 sri \o/
15:37 jberger Not announced where yet so I won't spoil
15:37 jberger BTW I'm available if people want me to visit
15:38 sri curious that cluj.pm had no mojolicious visitor yet, they seem to be inviting people from all over the community otherwise
15:39 jberger That'd be awesome
15:39 jberger I'd totally visit there
15:39 jberger I'm starting to consider trying to go to yapc eu since I won't be able to make na
15:40 sri is there a location yet?
15:42 cpan_mojo Mojolicious-Plugin-Model-0.06 by AVKHOZOV https://metacpan.org/release/AVKHOZOV/Mojolicious-Plugin-Model-0.06
15:43 jberger No but I there are confirmed dates
15:43 jberger So there is a location set we just don't know it
15:43 sri oh, it's actually cluj -.-
15:43 jberger For eu, yes
15:43 jberger For na no location yet
15:44 jberger sri: assuming you don't want the popularity (only because you haven't seemed to want it) ...
15:44 PryMar56 joined #mojo
15:45 jberger Perhaps batman should raise his profile and be mojo guy eu
15:46 jberger I wonder if tempire or I were in europe if it would be easier for other European cities to invite mojo talks
15:47 jberger batman are you going to yapc eu?
15:47 * sri nods
15:51 batman jberger: probably
15:51 batman i would be surprised if i don't attend
15:51 jberger batman: cool!
15:51 batman i did give a swagger presentation last year, where i presented myself as mojo core.
15:51 batman Lee also mentioned me as core in his talk, iirc
15:52 jberger Hmm that's true
15:52 batman i gave almost the same swagger presentation in norwegian last week
15:52 batman :)
15:52 jberger Nananananananana batman
15:52 batman i've even done a two day swagger course...
15:52 batman only for a small group, but still... it was fun :)
15:53 jberger Ok ok you're already mojo guy eu!
15:53 batman not sure if too many people know though... i was approached by some guys.
15:53 jberger I've been using swagger at work, it's been really interesting
15:54 batman *bbl*
15:55 jberger o/
15:55 jberger I have a few hours today, I wonder what I should work on?
15:56 jberger I wish the novnc js library wasn't so messy
15:56 jberger Id love to make a mojo novnc
16:00 jberger For most people to use novnc they need a websocket<->tcp bridge which most people use an external python script
16:14 lsm joined #mojo
16:15 jberger maybe I should just do my original thought of making that bridge as a module and I could include the novnc bits as an example
16:16 jberger oooh that would make a good perltricks article!
16:17 sri do it
16:19 melo joined #mojo
16:21 gryphon joined #mojo
16:23 batman jberger++
16:43 ajr_ joined #mojo
16:53 Kogurr joined #mojo
17:11 zivester joined #mojo
17:14 disputin joined #mojo
17:31 punter joined #mojo
17:43 Alexando joined #mojo
17:47 Alexando I know Mojo has the ::Daemon system and whatnot, but is it a good or bad idea to forego Hypnotoad and code its hooks directly into the app itself?  So, rather than running hypnotoad script/foo, just run script/foo and its all in one
17:49 pink_mist hypnotoad is an excellent production server with several workers and no-downtime restarts. if you want those things, use it.
17:49 pink_mist if you don't want those things, don't
17:50 jberger Alexando: what do you mean "code its hooks"?
17:51 Alexando Well, looking through the Hypnotoad.pm code, guess it's not really possible. Hm.
17:51 Alexando jberger, I was just curios if it was possible to have hypnotoad part of the script/foo file itself
17:52 Alexando Not a big deal, just an idle thought
17:52 pink_mist you can just create an unrelated script that runs it for you
17:53 jberger Alexando: if you are just looking for startup mechanisms that are similar to daemon, you might try the prefork command
17:53 jberger the only thing you lose relative to hypnotoad is the zero-downtime restarts
17:54 Alexando Yeah, not really that big of a deal for me.  I was hoping there was a way I could just factor Mojolicious::Commands->start_app(..) directly into /usr/local/bin/hypnotoad
17:55 Alexando Rather, I was looking to see if that would be simple
18:38 bpmedley Alexando : You might do something like this: https://bitbucket.org/snippets/bpmedley/gkydb
18:38 bpmedley Or, create your own command similar to prefork..
18:47 Alexando bpmedley, Interesting...
18:48 Alexando Then just extract some elements of Hypnotoad, like the mode and whatnot, yeah?
18:48 Alexando Clever.
18:49 Alexando I'll probably just stick with hypnotoad, but that's good information, thanks
18:50 Adura joined #mojo
19:09 lb joined #mojo
19:41 batman Alexando: c????
19:41 batman Oops!
19:42 batman Check out Toadfarm
19:42 batman https://metacpan.org/pod/Toadfarm
19:45 batman You can use it to just start a single application as well. So ./script/yourapp start will be the same as hypnotoad /script/yourapp
19:45 batman The neat thing is that this going hand in hand with init scripts.
20:10 dod joined #mojo
20:13 mad_hatter joined #mojo
20:33 bowtie joined #mojo
21:09 sugar joined #mojo
21:34 vanHoesel1 joined #mojo
21:38 vanHoesel2 joined #mojo
21:40 vanHoesel joined #mojo
21:42 vanHoesel1 joined #mojo
22:13 sugar joined #mojo
23:04 melo joined #mojo
23:53 binlei joined #mojo

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