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

IRC log for #mojo, 2016-09-12

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

All times shown according to UTC.

Time Nick Message
00:21 itaipu joined #mojo
00:42 sri they're both despicable, and imo you shouldn't have to try and choose the lesser evil
00:45 sri and i bet they're both psychopaths
00:46 sri i mean, search on youtube for the clinton "we came, we saw, he died" video, and look at her facial expressions
00:51 sri in the end you have no idea what to expect from either of them, since you've never seen them tell the truth
00:54 sri neither stands for anything or believes in anything, they have speech writers and target demographics
00:54 sri </rant>
00:56 vicash at least Hillary has been consistent with wanting to be President since forever ;)
00:57 vicash she is the Mitt Romney of the Democratic party
00:59 vicash either way putting Clinton and Trump on the same level is an unfair comparison..
01:04 Janos joined #mojo
01:40 meshl joined #mojo
01:50 ivi joined #mojo
02:03 bpmedley joined #mojo
02:13 Grinnz i don't think they are on the same level. I think they are on different very bad levels
02:22 * pink_mist still just glad he doesn't need to make that choice
02:27 noganex_ joined #mojo
02:34 Pierre joined #mojo
03:20 zivester joined #mojo
03:25 jberger There has been some discussion about the slant of the coverage of them
03:26 jberger More this last week
03:26 jberger The media needing to feel like they spend equal time critiquing each one
03:27 jberger And she is certainly very flawed
03:27 jberger But he is so ridiculously terrible that even covering it that way is bad
03:28 jberger But i don't live in a swing state so even i really don't have to choose
03:28 jberger I am seriously considering writing in Robert Reich
03:31 Grinnz I might write in stephen colbert
03:32 jberger https://twitter.com/XplodingUnicorn/status/754433826978402304
03:33 jberger I kinda want one of them to bow out and say the country deserves better
03:33 jberger I think either party could field a better replacement on almost no notice
03:36 pink_mist doesn't sound like a difficult thing indeed
03:41 jberger I seriously wonder how effectively either one could govern given the approval ratings
03:42 jberger I'm not the world's biggest Gary Johnson fan, i think he plays a little bit like a libertarian caricature
03:42 jberger But maybe we can all just agree to vote for him this time?
03:43 jberger He has governing credentials and some semblance of integrity
03:43 jberger I guess that's all i want now ... **sob**
03:44 preaction eh, a vote for Stein is a vote for a graffiti artist in the white house!
03:56 jberger She's not a viable candidate either
03:59 preaction you think any of them are? i could disqualify basically anyone who stepped up to the primary plate
04:00 preaction Anti-vax is about as crazy as the "Fair Tax"
04:00 preaction and they rhyme, too!
04:19 jberger I think Johnson could govern
04:20 jberger Hold the tiller for 4 years
04:20 jberger Anyway. I'm sad about the whole situation
04:21 * jberger goes to bed
05:00 inokenty-w joined #mojo
05:31 dod joined #mojo
05:35 dod joined #mojo
05:40 itaipu joined #mojo
05:49 che-quest joined #mojo
05:56 polettix joined #mojo
06:03 itaipu joined #mojo
06:15 cuechan joined #mojo
06:24 dod joined #mojo
06:27 Atog joined #mojo
06:34 dod joined #mojo
06:54 AndrewIsh joined #mojo
06:55 ivi joined #mojo
07:12 Pierre joined #mojo
07:12 cuechan joined #mojo
07:13 mbudde joined #mojo
07:13 torbjorn joined #mojo
07:14 torbjorn im quite new to mojo , and im trying to deploy a very small app i wrote, under apache, it seems my options are mod_proxy or cgi according to cookbook
07:14 trone joined #mojo
07:16 torbjorn ive typically been using fastcgi with catalyst before, and i was hoping to deploy mojo in a similar way. most of the ideas or recipies i find also involve writing a startup script or running a startup command. im trying to avoid that, if possible. id like to have it so that when apache starts, all web apps start
07:16 torbjorn no additional startup scripts or actions necessary
07:16 Vandal joined #mojo
07:25 jamesaxl joined #mojo
07:37 coolo torbjorn: you'd need an apache module for that
07:38 coolo google found me http://search.cpan.org/~dsheroh/Apache-Mojo-0.003/lib/Apache/Mojo.pm but I have no idea what it does :)
07:43 Lee clearly it's so you can enjoy segfaults with mojo :/
07:44 Lee it's really old though
07:45 Lee torbjorn: i would recommend mod_proxy and something in /etc/rc.local
07:48 coolo batman: hi, did you see "Can't locate object method "start_range" via package "Mojolicious::Plugin::AssetPack::Asset" at /usr/lib/perl5/vendor_perl/5.18.2/Mojolicious/Static.pm" before?
07:48 Pierre joined #mojo
07:59 torbjorn Lee: so i need to write some sortof service starter script for my linux flavor?
08:00 Lee generally, yes
08:00 Lee http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Apache-mod_proxy # and something to start up mojo listening on localhost:8080
08:00 Lee or make it part of the apache init proc
08:01 torbjorn i was hoping to put my mojo app in a directory under /var/www somehwere, create a config for it in apaches config, and thatd be it
08:02 Lee so fastcgi like (i'm assuming *not* CGI given the obvious problems with that)
08:03 Lee which is essentially what proxying is IIRC
08:11 osfabibisi joined #mojo
08:25 torbjorn other frameworks i deploy with fastcgi don't require their own init scripts, i just tell apache which script to run
08:28 sri that's not fastcgi
08:28 Lee yeah, that sounds more like plain old CGI
08:29 sri i mean the mod_proxy recipe
08:29 Lee i'm being very simplistic
08:29 sri if you deploy mojolicious with fastcgi it doesn't require an init script either
08:30 sri see the psgi recipe
08:31 sri it also mentions the tradeoffs, which features then don't work
08:31 torbjorn the sole purpose of my mojo app is to provide a web socket
08:31 Lee then you need mod_proxy_wstunnel with apache
08:31 Lee other's aren't going to cut it unless you just use mojo as the webserver
08:32 torbjorn not even fastcgi?
08:32 sri that doesn't work with fastcgi at all
08:32 torbjorn ok
08:33 sri so, you escaped overwatch? :)
08:35 torbjorn me?
08:35 purl you are defining package DyngonDB in the Dyngon.pm file - is that a problem?
08:35 torbjorn huh
08:35 torbjorn me?
08:35 purl i guess torbjorn is defining package DyngonDB in the Dyngon.pm file - is that a problem?
08:38 sri only torbjorn i know ;p http://overwatch.gamepedia.com/Torbj%C3%B6rn
08:58 torbjorn oh right, that guy
08:59 torbjorn yes i got out, gave up the hack and slash business and got into perl
08:59 torbjorn looked back every day since
09:00 torbjorn .. so how do you deploy your mojo applications? do you also write startup scripts for the system you deploy them on?
09:00 torbjorn ive been (rightfully so) avoiding that for years now, but seems im at a dead end
09:05 ashimema_ joined #mojo
09:06 che-quest joined #mojo
09:13 Lee torbjorn: we have something in /etc/rc.local and a util script for doing hot reloads
09:14 Pierre joined #mojo
09:16 torbjorn what would it take for this to be managed entirely by web server x, apche in this case? i really dont want to get into the system init scripts heterogenousity out there
09:17 torbjorn id happily switch to nginx or lighthttpd if i knew i could just write out config that would let the web server manage all
09:18 Lee if you want websockets you have two options - proxy to mojo, or run mojo as the webserver. both mean you need to fire up mojo
09:18 torbjorn i was hoping my web server of choice could do the firing
09:19 ashimema_ take out apache/niginx/whatever and just use straight up hypnotoad as your server.. ?
09:19 Lee i'm not sure it can fire up a long running proc without a bunch of horrible hacks, so the second option as ashimema_ says may be worth looking at
09:19 Lee http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Built-in-web-server
09:20 torbjorn ill likely end up pinching my nose and cargocultcopy that thing
09:21 Lee torbjorn: are you self hosted?
09:22 torbjorn yes
09:22 * Lee would go down the init script route in that case :)
09:23 Lee (although i know this may not be easy/possible)
09:24 torbjorn its probably both easy and possible, _right now_, thing is now im responsible for anything that goes on in the systemd sphere , meaning stuff will break right out of the blue following update x in that world.
09:25 torbjorn apache configs have been pretty stable for the last 20-30 years or so
09:25 Lee :)
09:27 irqq joined #mojo
10:00 arthas joined #mojo
10:04 Pierre joined #mojo
10:28 Pierre joined #mojo
10:31 batman coolo: no. i haven't seen that. can you tell me more?
10:38 coolo batman: no, I had hoped you could
10:38 coolo it just hit one line in our log
10:38 batman coolo: ok... i'll have a look
10:39 coolo fyi, I have mojo 7.05 and assetpack 1.17 in production
10:40 batman thanks for the details
10:41 batman i have too many things on my plate now, so i need to look at it later.
10:41 coolo sure
10:53 kaare_ joined #mojo
10:59 Pierre joined #mojo
11:36 asarch joined #mojo
11:48 Tapps joined #mojo
11:49 Tapps Hi all. I want to print out some content stored in vars. Poorly Mojolicious masks all the tags. How can i prevent that in partial code?
12:00 pink_mist what does "Mojolicious masks all the tags" mean?
12:01 pink_mist perhaps you need to wrap it in a Mojo::ByteStream
12:04 mpapec what is more intuitive
12:04 mpapec $self->tx->send($msg, $cb or ());
12:04 mpapec or
12:04 mpapec $self->tx->send($msg, $cb ? $cb : ());
12:05 pink_mist to me? the second one
12:05 mpapec yep
12:05 mpapec but it doesn't follow dry pinciple
12:06 pink_mist following principles blindly serves no purpose
12:06 mpapec makes sense
12:15 sri Tapps: also covered here http://mojolicious.org/perldoc/Mojolicious/Guides/Rendering#Embedded-Perl
12:20 blonewolfs joined #mojo
12:24 tchaves joined #mojo
12:28 anton joined #mojo
12:33 itaipu joined #mojo
12:36 Tapps Thank you guys :3
12:36 Tapps Or girls
12:36 sri or robots
12:40 Tapps Hmm im inside a template and i got a lot of stuff to calculate which i put into a class. it returns parts of the stuff to be displayed.
12:41 Tapps Or would it better to build the stuff completely outside a template and then just render it from string?
12:41 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Rendering#Adding-helpers
12:42 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#Adding-a-plugin-to-your-application
12:44 Tapps would be better to explain what i wanna do. I got some DBIx-Classes. Every class can return some information about searchable columns (as Hash). What im gonna do is built a Search-Page which Search-Options are generated from these Informations
12:49 zivester joined #mojo
12:51 itaipu joined #mojo
12:53 Tapps pink_mist: My String contains "<input..." Mojolicious outputs "&lt;input"
12:54 Jonis Tapps: http://mojolicious.org/perldoc/Mojo/Template
12:55 Jonis even better. http://mojolicious.org/perldoc/Mojo/Template#toc
12:55 Jonis <%= xml escapes the output, <%== does not
12:57 Tapps ? Now im confused. The Page says "<%== Perl expression, replaced with XML escaped result %>"
12:57 Jonis ah, sorry
12:57 Jonis mixed them up
12:57 Tapps But you are right.
12:58 Jonis oh, so there's an error in the docs?
12:58 Tapps Jonis: b4 i always had "%= $res->{html}"
12:58 Jonis yeah, there's an error in the docs
12:58 Tapps with "%== $res->{html}" it works
12:58 Tapps ah cool :3
12:58 Jonis it's the other way around a few lines down
12:59 Tapps just saw it, thank you very much
13:00 Tapps can you also tell me how i access the "$mt" stated in http://mojolicious.org/perldoc/Mojo/Template#auto_escape
13:01 Jonis Tapps: it's from http://mojolicious.org/perldoc/Mojo/Template#toc
13:01 Jonis $mt is just the result of Mojo::Template->new;
13:01 dantti_laptop joined #mojo
13:01 Jonis I don't spend a lot of time with templates
13:02 Tapps hmm. And when im rendering a template, is it accessible inside the template?
13:13 jberger Not an error
13:13 jberger Ep templates and Mojo::Template are closely related but not exactly the same
13:14 jberger One difference is the escape syntax is changed
13:18 Jonis ah
13:19 jberger IIRC ep sets this to true
13:20 jberger http://mojolicious.org/perldoc/Mojo/Template#auto_escape
13:20 jberger On my phone or i would check
13:28 sri literally the second sentence here http://mojolicious.org/perldoc/Mojo/Template#DESCRIPTION
13:29 sri i mean http://mojolicious.org/perldoc/Mojo/Template#SYNTAX
13:34 sri oh, didn't know there's a mojo app in the react tutorial :o https://github.com/reactjs/react-tutorial/blob/master/server.pl
13:35 sri not quite idiomatic, but still
13:36 sri actually one of the better looking examples
14:00 cuechan joined #mojo
14:05 dantti_laptop|2 joined #mojo
14:10 bjakubski I get "no space left on device" when writing to log - my bad. I free some space (was used by unrelated files) and hypnotoad worker is not able to serve any subsequent requests - "Inactivity timeout"
14:10 bjakubski "Inactivity timeout" is actually logged to that logfile
14:11 bjakubski My question is if hypnotoad/mojolicious supposed to recover after such an incident? If yes then I'll try to check in more detail and create an issue
14:12 pink_mist afaik nothing is guaranteed to survive a "no space left on device"; you make sure that doesn't happen
14:12 pink_mist but I'm no mojo authority
14:12 Pierre joined #mojo
14:13 sri yea, there's no way we'll guarantee that
14:13 bjakubski I'll be fine with that
14:14 bjakubski although shouldn't that crash the process?
14:17 sri there is no "should"
14:17 sri the behavior is completely undefined
14:19 itaipu joined #mojo
14:20 bjakubski that clears it up for me - thanks!
14:24 jberger sri: cool find (react example)
14:27 kes joined #mojo
14:46 meredith joined #mojo
14:48 zivester joined #mojo
15:07 gizmomathboy joined #mojo
15:07 mib_jhh4wx joined #mojo
15:07 lluad joined #mojo
15:21 disputin joined #mojo
15:39 sh14 joined #mojo
15:51 PryMar56 joined #mojo
16:00 Pierre joined #mojo
16:13 dod joined #mojo
16:31 Janos joined #mojo
17:00 meshl joined #mojo
17:02 Pierre joined #mojo
17:18 disputin joined #mojo
17:35 tchaves joined #mojo
17:53 tchaves joined #mojo
18:09 irqq joined #mojo
18:11 zivester joined #mojo
18:19 cuechan_ joined #mojo
19:20 itaipu joined #mojo
19:46 Janos joined #mojo
20:01 polettix joined #mojo
20:15 marcus_ joined #mojo
20:20 jberger augensalat: how attached are you to this startup message: https://github.com/augensalat/mojolicious-plugin-accesslog/issues/9
20:20 jberger I'll put in a PR to either remove or make it conditional if that will help move it along
20:31 marcus_ joined #mojo
20:34 marcus_ augensalat better call jberger godfather.. :)
20:34 sri the new Vim release looks pretty good
20:36 marcus sri: vim, not neovim?
20:36 marcus sri: link?
20:37 sri Vim 8
20:37 sri looks like it got packages and async features
20:37 sri https://groups.google.com/forum/#!topic/vim_announce/EKTuhjF3ET0
20:38 sri bet the neovim competition helped to get things moving along a little faster
20:38 marcus guess so :) The DirectX support on windows is a bit surprising
20:38 sri yea, that's funny
20:39 marcus sri: are you still a happy atom customer?
20:40 sri yes
20:41 genio The only valid gripe I have with Atom is when attempting to open rather large files.  That doesn't happen often enough to make me switch though.
20:42 sri still keep my vim up to date for the few cases where atom doesn't work
20:42 sri atom for working on big projects with many files, and vim for the small editing tasks
20:43 genio and Sublime for when I want a GUI view of larger files
20:43 genio but yea, pretty much the same here. Atom, vim/less
20:44 marcus I'm still pretty happy with vim in  iterm
20:44 marcus been looking a bit into using neoterm terminal buffers for getting more of an ide flow running
20:45 sri i just need a gui for navigating lots of files
20:45 sri and especially gui find in project
20:45 marcus like :Ack ?
20:45 sri doesn't work for me
20:46 marcus but that kind of functionality?
20:46 sri yes
20:46 marcus_ joined #mojo
20:46 marcus I went out and bought dash today.. now I can do \d in vim and it opens up reference documentation on the ipad :)
20:47 marcus 30$ is kinda steep for a documentation reader tho
20:48 genio I've wanted to buy an iPad, but can't seem to make myself pull the trigger on that
20:48 marcus_ asked for one as part of the equipment for my new job :)
20:48 marcus_ really enjoy the keyboard cover
20:48 sri apple says an ipad is as good as a mac ;p
20:49 marcus_ so I can mostly leave the 15" macbook pro in the office unless I need to do heavy work
20:49 * sri hates ipads since apple started advertising them as laptop replacements
20:50 marcus_ don't really care about what apple advertises. I know they ain't targetting me in their ads.
20:51 genio That ^^
20:51 sri what do you mean, they are not targeting me? :(
20:52 * sri feels neglected
20:53 * marcus_ narrowly avoids breaking the code of conduct.
20:54 sri :o
20:54 genio haha
20:55 marcus_ batman: I'm afraid to, beause I don't want to get banned from magnet :rolling_eyes:
20:56 jberger sri: I'm getting 'Can't call method "write" on an undefined value' from here: https://github.com/kraih/mojo/blob/master/lib/Mojo/Server/Daemon.pm#L232
20:56 jberger I have a strong reference to the transaction
20:56 marcus_ oops, wrong channel
20:56 jberger I'm wondering if it has to do with the stream close changes around the same time that subprocess showed up
20:57 jberger also, and relatedly, it seems weird that _notifications in Mojo::Pg::Database isn't tightly wrapped in an eval
20:58 jberger basically I think what is happening to me is this:
20:58 sri jberger, batman, marcus , tempire, crab: can we get a vote going? https://github.com/kraih/mojo/issues/988
20:59 sri jberger: too tired to look
20:59 jberger ok
20:59 jberger I'll try to pin it down and make actual bug reports
20:59 sri f.lux is making me sleepy
20:59 batman sri: i've already cast my vote
21:00 sri oh hey, batman did
21:00 * sri turns off the bat signal
21:00 batman <3
21:00 jberger I don't love that it does the wrong thing
21:01 batman crap. i need to add translation to convos... :heart:
21:01 batman emoji translation ftw!
21:01 marcus <3 forever
21:01 jberger well looks like I don't need to vote
21:01 marcus (I cast my vote now)
21:03 * pink_mist is unsure what you guys are actually voting about -- there hasn't been a solid proposal yet, just a bug report
21:03 sri pink_mist: my proposal
21:03 purl sri, your proposal is simply to merge them into $self->content
21:04 sri https://github.com/kraih/mojo/issues/988#issuecomment-240446274
21:06 pink_mist uh, ok, I didn't think that was actually a proposal as you yourself nixed it 0_o
21:07 sri omg, does clinton actually have a body double? Oo
21:08 coolo you mean full body or like the legs in Pretty Woman? :)
21:08 sri :O
21:08 pink_mist wait, those weren't julia's legs?
21:09 coolo http://www.cosmopolitan.co.uk/entertainment/news/a33909/pretty-woman-trivia-facts-and-deleted-scenes/ - #4
21:10 pink_mist ah, for the poster, heh
21:10 pink_mist right
21:10 coolo also the initial scene when she wakes up is not her
21:11 pink_mist oh
21:12 Janos joined #mojo
21:12 sri i don't know what's real anymore
21:12 coolo sri: it's like float in perl
21:31 tchaves joined #mojo
21:36 tchaves joined #mojo
21:52 marcus jberger: 'let the record show..' ? :)
21:53 jberger you mean "for the record" I'm basically lodging it as a dissenting opinion, but the vote is down anyway
21:54 * marcus has watched too much L.A. Law and will be disbarred
22:27 batman joined #mojo
22:37 cuechan_ joined #mojo
22:38 sri yea, so this happened https://github.com/kraih/mojo/pull/996
22:39 genio *sigh* trolls--
22:41 genio That particular github user seems to fork every repository he/she likes, yet never does anything.
22:42 sri think that's so it doesn't look like a throwaway account
22:45 Janos joined #mojo
22:49 haarg they've done a couple other things
22:49 haarg https://github.com/frudas24/mojo/commit/d2230f5fc78a374c6cef6e062fe0929d19e25342 https://github.com/frudas24/perl6-most-wanted/commit/00163facdd58bf21bb504b1d06db64494fc543df
23:03 Pierre joined #mojo
23:05 Grinnz how weird
23:13 sri that is so weird
23:14 sri looks like one of those super rare non-malicious trolls
23:14 sri a troll unicorn https://t7.rbxcdn.com/40c383f17da4730950079d219e15e695
23:15 sri https://www.youtube.com/watch?v=1p6gET2EJR8
23:16 sri and that was enough internet for me today :)
23:30 onix joined #mojo
23:45 tchaves1 joined #mojo

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