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

IRC log for #mojo, 2017-08-28

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

All times shown according to UTC.

Time Nick Message
00:23 ChmEarl joined #mojo
00:47 karjala_ joined #mojo
02:31 noganex_ joined #mojo
02:58 go|dfish joined #mojo
04:00 zivester joined #mojo
04:04 dboehmer joined #mojo
04:48 karjala_ joined #mojo
05:24 inokenty-w joined #mojo
06:07 karjala_ joined #mojo
06:10 Lee joined #mojo
06:14 Vandal joined #mojo
07:18 mib_ahcdtv joined #mojo
07:21 peeves joined #mojo
07:39 trone joined #mojo
07:41 petru joined #mojo
07:49 ksmadsen Hi. Is it a bug that get_ok fails when we spend more than 15 seconds in between two calls to get_ok in a test?
07:49 ksmadsen Gist to illustrate: https://gist.github.com/ksmadsen/a84982d57edd76cc83cfd4d4d9a98e67
07:51 ksmadsen We get a "Premature connection close" on the second get_ok call. If we raise inactivity_timeout it works.
07:57 sri ksmadsen: lets say if you can fix it it's a bug, otherwise it's just how timeouts work :p
08:00 jasanj left #mojo
08:03 ksmadsen Bugger ;-)
08:04 ksmadsen I'll give it a stab, but tbh I'm not confident
08:21 petru joined #mojo
08:23 rshadow joined #mojo
08:42 n16gel joined #mojo
08:51 stryx` joined #mojo
08:55 Lee joined #mojo
09:31 mariusz joined #mojo
09:53 n16gel joined #mojo
10:01 prg joined #mojo
11:08 Lee_ joined #mojo
12:07 karjala_ joined #mojo
12:24 tchaves joined #mojo
12:39 perlpilot joined #mojo
12:46 onix joined #mojo
13:12 Pyritic joined #mojo
13:29 gizmomathboy joined #mojo
13:41 zivester joined #mojo
13:43 Pyritic joined #mojo
13:47 n16gel joined #mojo
13:48 gryphon joined #mojo
13:52 marty joined #mojo
13:57 marty_ joined #mojo
14:04 bwf joined #mojo
14:15 gryphon joined #mojo
14:18 mcsnolte joined #mojo
14:51 disputin joined #mojo
15:03 zivester joined #mojo
15:31 brunoramos joined #mojo
15:39 dboehmer joined #mojo
15:47 Pyritic joined #mojo
16:21 karjala_ joined #mojo
16:30 maschine joined #mojo
16:42 rshadow joined #mojo
16:52 Pyritic joined #mojo
16:57 rshadow joined #mojo
17:21 itaipu joined #mojo
17:38 Pyritic joined #mojo
17:43 stryx` joined #mojo
17:51 mishanti1 Anyone here processing SOAP-requests in mojo to any extent?
17:53 mishanti1 That is being the provider, not the consumer, in a soap transaction.
18:07 disputin joined #mojo
18:29 nicomen mishanti1: somewhat
18:29 nicomen being the consumer using XML::Compile, tearing our hairs off our head
18:30 PopeF joined #mojo
18:46 tcohen_ joined #mojo
18:47 tcohen hi, has anyone worked on a pager plugin implementing this https://tools.ietf.org/html/rfc5988#page-6
18:47 tcohen ?
18:56 CandyAngel Found some pretty "catch you out if your not paying attention" behaviour. If you pass a template a variable in stash, it gets created and therefore "exists" even if it isn't passed later. Then if you restart server and request it through a route that doesn't pass it.. errors!
18:57 CandyAngel That wasn't much fun :P
18:58 CandyAngel you're*
19:13 CandyAngel And according to this, there is a syntax error in Mojo::Pg::Migrations.. I doubt that :|
19:15 Grinnz syntax error in SQL maybe?
19:15 CandyAngel It works on dev. I think the Pg install is old on this server..
19:16 CandyAngel Yeah, it's 9.6 on dev, 8.4 on prod -.-
19:17 Grinnz yikes
19:17 CandyAngel DBD::Pg::st execute failed: ERROR:  syntax error at or near "not"
19:17 CandyAngel LINE 1: create table if not exists mojo_migrations (
19:17 Grinnz Mojo::Pg doesn't support before 9.4 or so iirc
19:18 Grinnz 8.4 is aaaancient
19:18 CandyAngel Yeah, I bet it is -.-
19:18 Grinnz like, that doesn't even have default permissions setup
19:19 Grinnz i would rather use mysql than postgres < 9.0 and that's saying a lot
19:19 CandyAngel Yeah, I might just port it to mysql
19:19 Grinnz let's not go crazy now!
19:19 mishanti1 nicomen: Thanks. That is my experience with SOAP in general... I'm lobbying heavily for a switch to json and friends.
19:19 CandyAngel Well, unless there is a perlbrew version of Postgres, I can't do anything :P
19:20 Grinnz postgres has up to date versions for install in binaries for redhat and debian
19:20 Grinnz which can coexist with the system version
19:20 Grinnz obviously not run on the same port, but
19:20 mishanti1 If I fail and I'm never heard from again know that I went down with my banner held high.
19:50 petru joined #mojo
19:51 CandyAngel Seems "IF NOT EXISTS" was added in 9.1.. sheesh
19:51 Grinnz i needed 9.5 for that in one instance, but dont remember which
19:51 CandyAngel This postgres version is pre-2011 :|
19:52 CandyAngel Oh, maybe not
19:53 CandyAngel 8.4.20 is 2014-02-20
19:53 Grinnz wow, were they still maintaining 8.4 that long?
19:53 mishanti1 That is quite surprising.
19:53 Grinnz apparently 8.4's EOL was july 2014
19:54 Grinnz i still remember when 9.0 released in 2010 and postgres became usable
19:54 eseyman doesn't Pg maintain their versions over 10 years ?
19:54 Grinnz looks like 5 years
19:55 eseyman indeed
19:59 sri for suse you can get 9.6 packages
19:59 sri even on enterprise
19:59 CandyAngel Shared hosting is the main problem
20:00 CandyAngel But to their credit, they have gone out of normal operations to allow perlbrew and stuff for me
20:00 Grinnz how scalable does it need to be? sqlite would be a better option than mysql for development purposes
20:01 CandyAngel SQLite might be workable, it's very low traffic
20:03 spicyjack sri: http://apt.postgresql.org/pub/repos/apt/README :)
20:04 spicyjack sri: I even see a '10' folder in there
20:05 mishanti1 10 is going to be pretty cool.
20:06 sri don't remember seeing any killer features
20:06 ChmEarl joined #mojo
20:06 mishanti1 https://wiki.postgresql.org/wiki/New_in_postgres_10 <-- this page lists several big improvements.
20:07 mishanti1 Perhaps I'm just easily excited, but I like what I am seein. :)
20:07 sri i guess full-text search for jsonb is cool
20:07 mishanti1 s/seein/seeing/
20:07 CandyAngel Woah, that partitioning thing looks like it could be useful
20:08 Grinnz any improvements to replication are a good thing
20:08 Grinnz that's the only major thing mysql has over postgres other than market share
20:08 mishanti1 CandyAngel: Yeah, very much so. New partitioning and better replication is something I look forward to.
20:10 sri that's true, postgres replication needs to get easier
20:16 jberger CandyAngel: and thus I really never use the stash as $vars construct ;P
20:17 mishanti1 I do like their replication from an ops-perspective, but yeah, to attract new users is needs to have an easier and more approachable "default".
20:18 jberger re pg 10, I was really hoping they'd get BDR fully cored
20:18 jberger it keeps inching closer
20:19 Grinnz i tend to use stash('foo') in templates to avoid that issue
20:19 CandyAngel jberger: I wasn't really using it myself intentionally, it was an oversight in a.. sub-template bit
20:20 jberger it happens
20:21 sri we could have had "no strict 'vars'" in templates
20:22 sri but the community voted against it
20:22 jberger I assume that was before my time
20:22 Grinnz as a perl programmer it seems icky, but having used templates, it doesn't make sense to enforce strict vars in them IMO
20:22 jberger though I guess I can see both sides
20:22 sri i still think that was a mistake
20:23 preaction eh, i've been taking more advantage of % my $foo = stash 'foo'; recently, and i'd prefer knowing if i accidentally wrote $goo
20:23 jberger see I do that too ^^
20:24 Grinnz that would get pretty wordy in some of my currently simple templates
20:24 CandyAngel I'm surprised you didn't just do it. As soon as the template sees it, it works, so it's really weird having it not work depending on the order of routes you prod
20:24 preaction i mean, i usually only do it for like arrays / hashes i have to refer to multiple times. i can see both sides, but i like having strictures on
20:25 sri yea, it's totally weird, since you don't really declare variables in templates
20:25 sri should have been no strict vars
20:25 CandyAngel Can't you declare ones you do multiple times with: % my $var = stash 'blah'
20:25 jberger I just said, I (and preaction) do declare variables in templates
20:25 preaction yeah, i do that often
20:26 sri i don't
20:26 * sri shrugs
20:26 sri suppose it could have been an option
20:26 CandyAngel Do you just always make sure they are in the stash or use helpers from the template?
20:26 jberger I really only use the $var stash interpolation in demos
20:26 sri jberger: now that seems very weird to me
20:27 jberger hey, I'm a weird guy :-P
20:29 CandyAngel No protests? I guess the motion is carried. jberger is a weird guy!
20:30 jberger what kind of parlimentary procedure is that? there wasn't even a second!
20:31 CandyAngel The kind that gets you on the "weird person" list, along with everyone else I know :)
20:32 CandyAngel Also, you kinda confessed, so we can cut through some of the red tape..
20:32 sri ooooh https://irclog.perlgeek.de/mojo/2012-06-04#i_5679864
20:33 jberger you can't believe a personal confession, I might have been coerced
20:33 sri i forgot about that
20:33 CandyAngel That's true, that's why we have an appeals process!
20:34 CandyAngel Just fill out these 2,311 forms and we'll consider removing you from the list
20:34 CandyAngel Fillingoutalltheformsisprettyweirdandwillbeusedasevidenceagainstyourappeal
20:35 jberger yep, that was before my time: https://irclog.perlgeek.de/mojo/2012-07-05#i_5787965
20:35 CandyAngel Aw
20:36 sri jberger: i totally ignored you :o
20:36 CandyAngel Ruuuude
20:37 CandyAngel jberger didn't ignore me :P https://irclog.perlgeek.de/mojo/2015-06-23#i_10792423
20:37 jberger it was kinda a silly question :-P
20:37 jberger now that I understand how cookies and websockets work
20:37 Grinnz i assume you changed your nick to jberger to get away from the slug stigma
20:37 sri CandyAngel: and i'm still wondering if minion needs that abstraction
20:38 sri no wait, not exactly
20:38 sri kinda
20:39 jberger Grinnz: I was barely involved in the perl community at that point
20:39 CandyAngel I'm starting to think that very few suggestions ever go idle in sri's mind
20:39 jberger mostly via stack overflow probably
20:39 preaction CandyAngel: i did write Beam::Minion which kind of does something like that
20:39 jberger don't think I had really considered what my nick was going to be long term
20:39 jberger I didn't use irc until I started to for #mojo
20:40 sri it's weird how niche irc is these days
20:40 mishanti1 I sort of got back to irc because of mojo.
20:40 * jberger shakes angry fist at slack
20:41 mishanti1 As much as I like slack for office use, I must say my irc-client is more comfortable to use.
20:41 Grinnz i don't know how much slack took away from irc honestly. businesses weren't going to go to irc over something more presentable
20:41 jberger it has nothing to do with the client
20:41 mishanti1 Oh dear. I can use my client with slack!
20:41 jberger using a paid, private, walled garden for open source communication is unacceptable
20:41 sri instant messaging took over
20:42 Grinnz well yeah, nobody should be using slack for OSS
20:42 Grinnz thats silly
20:42 jberger I'm on two of them
20:42 sri and all the social network things
20:42 jberger there are lots more
20:42 Grinnz sri: twitter and facebook turning their messaging into IM-like interfaces, too
20:43 sri i consider those im
20:43 Grinnz you get phone notifications, so yeah
20:43 Grinnz basically is
20:43 sri not that i don't use whatsapp all the time
20:43 sri the non-internet people i know love whatsapp groups
20:44 Grinnz never used whatsapp
20:44 sri big in europe
20:44 Grinnz mostly using discord for that niche these days
20:45 Grinnz just because thats where everyone already is
20:45 preaction except for those on Slack and Gitter and...
20:45 Grinnz only use slack for work
20:46 Grinnz twitter would be the only other network where most of those people are
20:47 sri rocketchat seems pretty good work work setups
20:48 mishanti1 Anyone looked into mattermost?
20:48 mishanti1 Looks interesting.
20:51 jberger my family got to using GroupMe
20:51 jberger and my wife and I use Hangouts
20:51 jberger ETOOMANYOPTIONS
20:52 mishanti1 EOUTOFCOFFEE
20:52 mishanti1 *brb*
20:52 sri i kinda like whatsapp now
20:52 jberger I haven't tried whatsapp
20:52 jberger I do like what I've heard about the encryption
20:52 mishanti1 I tried using whatsapp on Android, but wasn't able to figure out how to add people without letting it access my contatcs.
20:54 sri i do kinda expect facebook to harvest my contacts with whatsapp
20:54 sri don't have a facebook account anymore though
21:02 CandyAngel Got it ported to SQLite :)
21:04 CandyAngel We use XMPP here (family/friends chat)
21:24 petru joined #mojo
21:52 spicyjack hahah, my ex-boss (an oceanographer) once railed on me about the evil-ness that is "chat" for about a minute when I asked "What Slack channel are we using?"
21:52 spicyjack "You don't know what Slack is?...."
21:52 spicyjack "No, sorry, what is the name of the channel we're using for this hackaton"
22:33 marty joined #mojo
22:42 leffe joined #mojo
22:42 leffe Hi again :)
22:42 leffe Question: what's the right way to throw an exception in a mojolicious app?
22:43 leffe I have my Model Modules separated, from Mojolicious code, as it's recomended and logic
22:44 leffe I launch exceptions from there with die "something wrong happened"
22:45 leffe and in controller or helpers I sourround it with try {} catch {} constructs from Try::Tiny.
22:46 Grinnz there's no right way defined by mojo. it's up to you
22:46 leffe the problem is that it seems mojolicius overwrites die, in a way that it contains more than I wrote in my die statement, it contains the original code where the exception happened
22:46 Grinnz i use exception classes defined in my application with the Throwable role or Exception::Class, and then check for that in catch
22:47 Grinnz yes mojo wraps string exceptions with Mojo::Exception
22:47 leffe And do you get extra info ?
22:47 Grinnz it doesn't wrap exception objects
22:48 leffe Ok, so it might have overload the '""' operator so I see it as a string with extra info, right?
22:48 Grinnz https://metacpan.org/pod/Mojo::Exception#OPERATORS
22:50 leffe How can I get the original exception?
22:50 leffe with message?
22:52 leffe I guess I can inspect it. Thanks again!!
22:54 leffe If it doesn't wrap Exceptions it might be better to throw Exceptions than just simply die, isn't it. Do I have to use Mojo::Exceptions or what module can I use?
23:22 disputin joined #mojo
23:30 veryrusty joined #mojo
23:44 mpapec joined #mojo

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