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

IRC log for #mojo, 2016-12-04

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

All times shown according to UTC.

Time Nick Message
00:36 mishanti1 What would be the recommended way to add some error checking to the parameters passed to a Mojo::Base based module? Override new() then call something to pass control back to the mojo-constructor?
00:37 mishanti1 Basically I'm just looking to do some dead simple validation of a couple of attributes.
00:40 mishanti1 currently I do `sub new { some_validation(); shift->SUPER::new(@_); }`
01:11 Grinnz mishanti1: upgrade it to Moo
01:21 aborazmeh joined #mojo
01:46 asarch joined #mojo
01:48 jnbek joined #mojo
01:49 Grinnz sri: https://github.com/Test-More/Test2-Suite/pull/95
03:21 noganex_ joined #mojo
05:04 dboehmer_ joined #mojo
05:40 Vandal15263 joined #mojo
06:11 polettix joined #mojo
06:29 ilbot2 joined #mojo
06:29 Topic for #mojo is now ???? nom nom | http://mojolicious.org | http://irclog.mojolicious.org | http://code-of-conduct.mojolicious.org
06:29 vytas joined #mojo
06:29 mpapec joined #mojo
06:29 go|dfish joined #mojo
06:29 salva joined #mojo
06:29 CHYC joined #mojo
06:30 sawtooth joined #mojo
06:30 dantti_laptop joined #mojo
06:30 Phil21 joined #mojo
06:30 vicash joined #mojo
06:31 Bender joined #mojo
06:31 c0xc joined #mojo
06:31 inokenty joined #mojo
06:33 Kundun joined #mojo
06:33 a6502 joined #mojo
06:34 vinnix joined #mojo
06:34 Jonis joined #mojo
06:34 preaction joined #mojo
06:47 parv joined #mojo
07:08 dod joined #mojo
07:13 dod joined #mojo
07:44 batman joined #mojo
07:55 dod joined #mojo
08:21 perlpilot joined #mojo
08:57 kerdes joined #mojo
09:18 polettix joined #mojo
10:13 dod joined #mojo
10:24 polettix joined #mojo
11:33 kerdes joined #mojo
11:43 mishanti1 Grinnz: Appreciate the input. :)
12:17 kerdes joined #mojo
13:14 batman joined #mojo
13:14 asarch joined #mojo
13:16 batman joined #mojo
15:02 kerdes joined #mojo
15:13 LePsy666 joined #mojo
15:14 LePsy666 Hi, I have an encoding issue with mojo
15:15 LePsy666 I store accentued characters in an SQLite database
15:15 LePsy666 when I check it from the command line tool, accents are ok, if I dump data before rendering accents are ok too but if I curl my api, accents are badly encoded
15:16 LePsy666 anyone could help ?
15:16 pink_mist sounds like you forgot to decode them after you extracted them from the DB
15:16 stryx` joined #mojo
15:17 pink_mist or forgot to tell the DBD to do it for you
15:17 LePsy666 maybe, I'll try
15:22 polettix joined #mojo
15:28 LePsy666 pink_mist: tx ! I needed a $dbh->{sqlite_unicode} = 1
15:31 jberger joined #mojo
15:32 jberger I thought Mojo::SQLite did that for you
15:33 jberger unless you aren't using Mojo::SQLite
15:35 pink_mist I would be he isn't
15:35 pink_mist *bet
15:47 LePsy666 jberger: I am not, I use sqlite only for the dev
15:48 jberger ah
15:49 LePsy666 bye !
16:38 asarch joined #mojo
16:46 dod joined #mojo
17:21 stryx` joined #mojo
17:51 polettix joined #mojo
18:31 stryx` joined #mojo
19:08 dboehmer joined #mojo
19:19 eseyman joined #mojo
19:19 batman joined #mojo
19:20 jberger joined #mojo
19:39 eseyman_ joined #mojo
19:53 eseyman joined #mojo
19:59 jberger TIL that nginx needs a http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_read_timeout to not kill your websocket once a minute
20:10 sivoais joined #mojo
20:29 jabberwok left #mojo
20:34 eseyman joined #mojo
21:14 PryMar56 joined #mojo
23:00 mishanti1 jberger: Heh. Ouch. Thanks for sharing.
23:14 Grinnz you also need pings to avoid mojo's inactivity timeout anyway :P
23:27 jberger not if you increase the endpoint's inactivity timeout
23:27 jberger and I have a reconnect logic
23:27 jberger I just don't want to reconnect so often
23:28 jberger genio: around?
23:29 jberger I have some questions about Digest::Bcrypt
23:30 jberger I guess I can ask more broadly here
23:30 jberger I like the ease of use of Mojolicious::Plugin::Bcrypt
23:31 jberger but I wish it wasn't helpers, makes it hard to use in a model
23:31 jberger I'd like there to be a module that was that easy to use that was simply functional
23:31 jberger (which that one basically is)
23:35 batman joined #mojo
23:43 jberger joined #mojo

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