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

IRC log for #mojo, 2017-04-14

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

All times shown according to UTC.

Time Nick Message
00:09 marty joined #mojo
00:38 Lee joined #mojo
00:43 Lee joined #mojo
02:21 noganex joined #mojo
03:16 jberger maschine if you're still having trouble you might want to talk to rjbs about Email::Sender
03:33 disputin joined #mojo
03:35 maschine2 joined #mojo
03:35 disputin1 joined #mojo
03:44 maschine2 Jberger, i want to triple check my SMTP config to make sure it isnt on my end.  I had to stop today for an emergency dentist visit..  holy heck was I in pain!
03:46 blinky joined #mojo
04:04 dboehmer joined #mojo
05:32 dod joined #mojo
05:39 dod joined #mojo
05:43 stryx` joined #mojo
05:58 dod joined #mojo
06:06 stryx` joined #mojo
06:10 inokenty-w joined #mojo
06:33 Vandal joined #mojo
06:51 genio joined #mojo
07:23 trone joined #mojo
07:26 genio joined #mojo
09:41 kes joined #mojo
09:47 irqq joined #mojo
10:03 rshadow joined #mojo
10:09 rshadow joined #mojo
10:13 rshadow joined #mojo
10:43 stryx` joined #mojo
11:23 marty joined #mojo
12:06 marcus joined #mojo
12:06 batman joined #mojo
12:11 Bloke joined #mojo
12:20 noganex joined #mojo
13:14 gizmomathboy joined #mojo
13:15 rshadow joined #mojo
13:23 tchaves joined #mojo
14:11 gryphon joined #mojo
14:18 jabberwok joined #mojo
14:53 khfeng joined #mojo
15:02 zivester joined #mojo
15:12 maschine Jberger:  So I got that email job to work with Minion.. it's not my SMTP config or anything at all.  It's because the syntax of the To => $address is invalid
15:12 maschine Email::Sender is expecting something like "$name" <$address>
15:13 * jberger facepalm
15:13 purl http://is.gd/f7g1t or http://www.hockeydrunk.com/wp-content/uploads/2009/11/double_facepalm.jpg or http://flipvine.com/blog/wp-content/uploads/2009/12/4139.jpg or http://img135.imageshack.us/i/sfirstrecordedfacepalm.jpg/ or m(
15:13 maschine which incidentally was the only difference between your example and the one that was working. :)
15:14 bwf joined #mojo
15:17 jberger purl: no facepalm is http://is.gd/f7g1t or http://www.hockeydrunk.com/wp-content/uploads/2009/11/double_facepalm.jpg or http://img135.imageshack.us/i/sfirstrecordedfacepalm.jpg/
15:17 purl OK, jberger.
15:17 jberger grrr, that was annoying
15:17 jberger since my irc client is in browser as soon as purl linked to a site that google thought was malicious it blanked my client!
15:18 pink_mist none of those links works..
15:18 jberger well, the one caused google to freak out
15:18 jberger in that case
15:18 jberger purl: forget facepalm
15:18 purl jberger: I forgot facepalm
15:18 jberger now if someone has a good one to tell it
15:19 bwf http://emojipedia.org/face-palm/
15:20 jberger gah, now I still am getting the ! Dangerous where I should have the SSL lock
15:20 jberger did it report my convos installation to google as containing malicious links?!
15:20 * jberger shakes angry fist
15:24 stryx` joined #mojo
15:26 jberger ok, fully closing the browser worked
15:27 pink_mist I think a bug-report is warranted ;)
15:27 pink_mist if this is even something one can fix on the convos side?
15:27 jberger I wonder if there's a way to get google to preapprove inline content before inlining it to prevent this?
15:28 jberger does google provide something like that?
15:28 jberger (also, I get why it exists, but it kinda sucks that google has to preapprove all traffic :( )
15:29 jberger Anyway
15:29 jberger Back to the email thing
15:30 jberger I don't think I would ever have come up with that
15:30 jberger And yes maybeI
15:30 jberger Maybe I should change my demo
15:31 jberger But doesn't it seem like that is something that Email::Sender ought to handle?
15:36 jberger Ok a careful reading of this section explains it
15:36 jberger https://metacpan.org/pod/Email::Sender::Manual::QuickStart#envelope-information
15:37 jberger But man that seems like the wrong way to structure the example in that case
15:40 maschine all that was wrong is the To => field needs to be in the format "name" <address>
15:40 jberger and what if you don't have a "name"
15:41 maschine I guess you could put the email address twice
15:41 sh14 joined #mojo
15:41 maschine it does seem odd
15:41 jberger that example assumes that you understand email header semantics
15:41 jberger which rjbs certainly does but most people do not
15:43 maschine my "To" line looks like 'To      => "\"$name\" <$address>",'
15:43 maschine instead of 'To => $address,'
15:44 jberger maschine: I get the distinction
15:45 jberger but I could as easily (and I won't cause I think its wrong) say that you were wrong not to pass that format to my example's email helper
15:45 jberger that seems user-hostile to me at both levels
15:47 maschine yeah I guess it could be formatted that way before it gets sent to the helper
15:47 maschine I only figured it out by copying the "working" example into the helper (with the hard coded address and all)
15:48 maschine that's when I saw the only difference between the two
15:49 rshadow joined #mojo
15:53 jberger in #email I'm asking rjbs how my example should be restructured, and if he thinks it reasonable that it fail to send when To is a simple address
15:53 sri at least it wasn't a problem with minion :)
15:54 jberger I'm still not sure there's a problem :-P
15:55 jberger maschine: if you want to hop on to #email it might be instructive to both of us
15:56 jberger alh on #email just tried my form and it worked fine for him
15:56 jberger I wonder if Postfix is more picky than that?
15:56 sri it prolly depends on the smtp server
15:57 sri it's not like there is a one standard for those header fields to follow
15:57 sri s/a//
15:57 sri everybody does their own thing as far as i know
15:58 jberger maschine: anyway if you want to debug this further, please join #email
15:58 pink_mist jberger: it says it will use Email::Address to parse whatever is in the to header ... and Email::Address parses a regular address just fine
15:59 jberger yeah, I tried that too
15:59 jberger which makes me think the problem is maschine's mail transport agent
16:02 vicash hello. Is there a way to use SQL::Abstract to generate a query with LIMIT  ?
16:03 jberger vicash strangely, limit is hard (TM)
16:04 jberger you might try this: https://metacpan.org/pod/SQL::Abstract::Limit
16:04 jberger but who knows how the subclassing works with that module being 10 years older than its base class
16:05 vicash jberger: surprising that it is hard... I can generate a query using SQL::Abstract and then add " LIMIT 100 " as a string to it then as a hack ?
16:05 jberger on RDBMSes that use that syntax, yeah, probably
16:05 marty joined #mojo
16:06 vicash jberger: yea I am using Mojo::Pg so I guess I will do that for now
16:06 jberger here is the full syntax of postgres' select statement
16:06 jberger https://www.postgresql.org/docs/9.5/static/sql-select.html
16:06 jberger there isn't much useful after LIMIT/OFFSET
16:06 jberger other than locking which I doubt SQL::Abstract does
16:21 kgoess joined #mojo
16:24 PryMar56 joined #mojo
16:26 marty joined #mojo
16:28 maschine It could be Postfix not liking it.  I'm no expert on SMTP configuration by any means
16:40 marty joined #mojo
16:46 ssm joined #mojo
16:55 dod joined #mojo
16:55 marty joined #mojo
17:10 odc joined #mojo
17:18 janl joined #mojo
17:54 rshadow joined #mojo
18:15 dod joined #mojo
18:51 ladnaV25714 joined #mojo
19:10 Grinnz 14:56:59 — GumbyPAN CPAN Upload: Minion-Backend-SQLite-1.000 by DBOOK https://metacpan.org/release/DBOOK/Minion-Backend-SQLite-1.000
19:13 sri Grinnz++
19:24 Lee joined #mojo
19:50 disputin joined #mojo
20:27 asarch joined #mojo
20:50 D joined #mojo
20:51 D I am looking to resolve an issue connecting to an Oracle database with hypnotoad
20:52 D it works with hypnotoad -f or morbo, but not otherwise
20:53 D hypnotoad script      ->   "end-of-file on communication channel" error from oracle
20:55 D ok.. I think I'm on to something: http://www.perlmonks.org/bare/?node_id=758802
21:06 Grinnz yes, always set AutoInactiveDestroy in DBI
21:07 Grinnz it will handle it for you
21:07 Grinnz it really should be default, but back compat, i guess
21:13 D Thanks!
21:16 maschine Any reason not to use DBM::Deep for a production database?  It seems elegant/simple
21:17 maschine I think I've pretty much reached the conclusion that MongoDB is a waste of time.  Also, the hosting is ridiculously expensive.
21:18 Grinnz maschine: too slow for high usage
21:19 maschine that was a concern.  But I'm not going to have like millions of users or anything
21:21 Grinnz gotta make sure you have a fast disk, still
21:21 Grinnz DBM::Deep was used for the original Minion::Backend::File but that was dropped due to scalability issues
21:24 maschine I thought I was on SSD but it's just a regular old magnetic drive
21:29 marty joined #mojo
22:09 marty joined #mojo
22:11 sri even on SSD it's too slow
22:11 sri i've only ever used Minion::Backend::File on SSD, and it was terrible
22:11 sri well, MongoDB is also terrible :)
22:11 purl okay, sri.
22:12 sri <3 Postgres and SQLite
22:28 jberger DBM::Deep is really good for demos and that's about it
22:36 maschine yeah..  SQL databases just make my head hurt for some reason.
23:06 sri once you really learn SQL it's wonderful
23:08 * sri tried so hard to avoid learning SQL that he wrote his own non-blocking MongoDB client library (Mango)
23:10 sri before that i was mostly just an ORM user
23:10 dikim joined #mojo
23:11 sri but then i got burned so badly by MongoDB that learning SQL didn't seem so bad anymore
23:11 sri of course Postgres being awesome helped a lot
23:11 sri MySQL back in the days was so painful
23:13 Grinnz still is :P
23:13 spicyjack oh jeez
23:13 * spicyjack just found _Mojo::SQLite::Migrations_
23:13 spicyjack Grinnz: thumbs up!
23:13 purl thumbs up is at http://www.friedmanarchives.com/China/Web/Chapter23/4%20Thumbs%20Up%204x6%2072%20dpi.jpg
23:14 Grinnz spicyjack: :)
23:15 sri anyway, it's a great time to learn SQL, just make sure it's a nice database you start with (Postgres or SQLite)
23:16 sri SQL is a timeless skill you will profit from for the rest of your career
23:16 sri unlike !@#$%^&* MongoDB
23:17 spicyjack jberger: good thing about DBM::Deep is that it makes you think in NoSQL ways, so if^H^Hwhen you wanted to migrate to something more scaleable, it's easier to do
23:18 sri spicyjack: you mean think denormalized
23:18 preaction same can be said for SQLite and Postgres
23:19 spicyjack sri: that, and think of things as hashes and arrays
23:19 spicyjack or think of storing data in hashes and arrays, rather
23:20 sri keeping my tables more denormalized is actually something Postgres made me do with array and json types
23:20 spicyjack that's true, but not all SQL databases are that flexible
23:21 maschine what does "Failed HS validation" mean?    Jberger - I'm using some of the code from your demo, basically it's the part where it decodes the $jwt string to verify the user.  It "works" (decodes and sets the DB value to 1) but I get an error message.
23:24 jberger It shouldn't accept a jwt that fails validation
23:24 jberger I'm not at a computer right now so it's hard for me to help
23:27 maschine could be related to app->secrets?  I was getting a warning that it isn't numeric.
23:28 Grinnz secrets should be an array ref
23:32 maschine it's failing validation but it's correctly decoding the username.  Anyway, I'm done for the day - thanks for all the help. :)
23:55 omega joined #mojo

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