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

IRC log for #mojo, 2017-09-22

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

All times shown according to UTC.

Time Nick Message
00:25 marty_ joined #mojo
00:48 haplios joined #mojo
01:36 itaipu joined #mojo
01:47 marty joined #mojo
01:54 ilbot2 joined #mojo
01:54 Topic for #mojo is now 🍩 nom nom | http://mojolicious.org | http://irclog.mojolicious.org | http://code-of-conduct.mojolicious.org
02:43 tchaves joined #mojo
02:48 marty joined #mojo
02:57 noganex_ joined #mojo
03:15 itaipu joined #mojo
03:47 tardisx joined #mojo
03:49 marty joined #mojo
04:03 aborazmeh joined #mojo
04:04 dboehmer joined #mojo
04:42 disputin joined #mojo
04:42 stryx` joined #mojo
05:31 inokenty-w joined #mojo
05:45 n16gel joined #mojo
05:50 marty joined #mojo
06:00 chandwki joined #mojo
06:02 dod joined #mojo
06:06 genio joined #mojo
06:09 dod joined #mojo
06:11 beyondcreed joined #mojo
06:13 fenster joined #mojo
06:15 bianca joined #mojo
06:28 bianca joined #mojo
06:32 Vandal joined #mojo
06:33 bianca joined #mojo
06:51 marty joined #mojo
06:55 AndrewIsh joined #mojo
07:20 chandwki joined #mojo
07:27 stryx` joined #mojo
07:32 trone joined #mojo
07:33 jamesaxl joined #mojo
07:36 stryx` joined #mojo
07:39 CandyAngel Oops, I broke CHI. There is an entry where if I request it, the script stopsand hangs -.-
07:40 jamesaxl joined #mojo
07:41 CandyAngel And I can't remove it either -.-
07:41 pink_mist 0_o
07:41 CandyAngel Nuuu.. I have to clear the entire cache. That sucks -.-
07:42 pink_mist kinda wonder if you can reproduce
07:42 * CandyAngel will not be using the BerkleyDB backend again -.-
07:42 pink_mist because that might be something worth reporting to CHI maintainers
07:43 CandyAngel I don't know, it was working when I ran it last night :P
07:43 CandyAngel Just tried to run it again this morning and it's nope'd out
07:48 CandyAngel It takes about an hour to populate.. and if I use the File backend, the "does it exist" lookup takes ages
07:56 CandyAngel This was supposed to be done on Wednesday :(
07:59 stephan48 maybe try Mmap?
08:05 CandyAngel This cache needs to remember everything I put in it because the data source is pretty slow (like, 1 request completed a second slow)
08:07 CandyAngel This is on Windows, by the way
08:15 CandyAngel You know, I could have probably shunted the working ones into a new cache, rather than redownloading them.. d'oh
08:19 bianca joined #mojo
08:21 rshadow joined #mojo
09:04 marty joined #mojo
09:19 mib_aoo8dw joined #mojo
09:19 mib_aoo8dw hi there
09:19 purl hola, mib_aoo8dw.
09:21 mib_aoo8dw Is there any way to disable the Croak in HTML if my code contains errors? I don't want users to be able to see part of the code
09:23 mib_aoo8dw Alright, setting the mode to production helps a lot :D
09:24 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Tutorial#Mode
09:24 mib_aoo8dw Yeah, thanks :)
09:36 rshadow joined #mojo
09:44 petru joined #mojo
10:00 dustinm joined #mojo
10:01 rshadow joined #mojo
10:14 pink_mist . o O ( it's like php-production.ini :V )
10:39 kes joined #mojo
11:01 itaipu joined #mojo
11:14 marty joined #mojo
11:54 dod joined #mojo
12:22 bianca joined #mojo
12:35 bianca joined #mojo
13:06 Pyritic joined #mojo
13:16 marty joined #mojo
13:19 bianca joined #mojo
13:19 Pyritic joined #mojo
13:19 gizmomathboy joined #mojo
13:44 bianca joined #mojo
13:47 karjala_ joined #mojo
13:53 bianca joined #mojo
13:53 jabberwok joined #mojo
14:12 Pyritic joined #mojo
14:13 bianca joined #mojo
14:19 gryphon joined #mojo
14:24 disputin joined #mojo
14:24 marty joined #mojo
14:29 bianca joined #mojo
14:49 bwf joined #mojo
14:59 genioweb joined #mojo
15:10 zivester joined #mojo
15:19 bianca joined #mojo
15:45 Pyritic joined #mojo
15:49 ChmEarl joined #mojo
16:05 petru joined #mojo
16:12 disputin joined #mojo
16:15 Janos joined #mojo
16:32 dod joined #mojo
16:37 litwol Hello
16:38 litwol I'm trying to use mojo's useragent to perform a GET request to unix socket /var/lib/lxd/unix.socket
16:38 litwol it looks like this: say $ua->get('http+unix://%2Fvar%2Flib%2Flxd%2Funix.socket' => {Host => 'localhost'})->result->body;
16:39 litwol However when executed, iget this error: Can't connect: connect: No such file or directory
16:39 litwol hmm
16:39 litwol manual command line curl works: `curl -s --unix-socket /var/lib/lxd/unix.socket s/1.0`
16:39 litwol strange
16:40 litwol I wonder if it's an issue with Rexify task runner messing up target hosts or something
16:41 Grinnz is your Mojolicious new enough? http+unix is a recent addition
16:42 Grinnz https://metacpan.org/source/SRI/Mojolicious-7.46/Changes#L126
16:42 Grinnz i guess less recent than i thought
16:42 litwol installed yesterday
16:42 Grinnz from cpan?
16:43 litwol yes. using 'rexify --resolve-deps'
16:44 litwol Mojolicious.pm:our $VERSION  = '7.46';
16:44 spicyjack litwol: FYI, some people may not know what 'rexify' is
16:44 litwol understood :)
16:52 litwol I think i discovered my problem.
16:53 litwol I am using rexify to be my packaging system for scripts to be executed on remote hosts.
16:53 litwol i've written a "task" that i execute on a remote host
16:53 litwol mistake i've made is assume that entire task sub {} executes on remote host.. alas that is not true.
16:54 litwol task sub (root level script) executes on the host where you trigger the call, and then that sub {} has other "commands" that are capable of executing on remote host.
16:54 litwol however, combining mojo with those commands is not something i thought of doing yet.
16:55 litwol thus my problem is mojo was being executing on wrong host all thie time.
16:55 litwol I think i need this https://www.rexify.org/docs/faq/how_can_i_run_a_local_script_on_the_remote_.html
16:56 litwol and now i'm returning the channel back to mojo stuff :)
17:34 Pyritic joined #mojo
17:42 q_gone joined #mojo
17:55 tchaves joined #mojo
18:06 tchaves joined #mojo
18:41 vicash left #mojo
18:48 maschine that was fun.. couldn't figure why my 'IF NOT EXISTS' query wasn't working in postgres..  well, I have 9.5, and that didn't exist until 9.6. :p
18:54 mantovani joined #mojo
18:55 mantovani I have a mojo daemon server I would like to know if my HTTP client is open a new connection for each request. I'm sure is possible to know that from the server side.
18:55 mantovani Any suggestion ?
18:57 tchaves joined #mojo
18:58 mantovani hummm
18:58 mantovani I don't need this
18:58 mantovani I can do it using netstat
18:58 jberger maschine I just had one of those!
18:59 jberger ALTER TABLE ADD COLUMN IF NOT EXISTS?
19:00 maschine yes
19:00 * jberger shakes angry fist
19:00 Grinnz i... didn't even know you could do that on columns
19:00 jberger you can't, until 9.6
19:01 maschine I think I need to do a migration with that right?  I'm getting "ERROR:  cached plan must not change result type" when I reload my database page
19:01 jberger I've only ever done so with a migration
19:01 jberger but I don't think there is anything special in it
19:02 maschine I tested it before as just a query and it worked but I wasn't doing anything with the database
19:02 maschine I think I deleted my migrations code too..  doh
19:02 jberger but ... but ... why?!
19:03 maschine I didn't think I needed it..  it's ok, it was pretty much crap anyway. :p
19:03 jberger https://ci.memecdn.com/9661175.jpg
19:04 maschine should only need it with add/drop table and column if I'm thinking straight..
19:04 Grinnz all schema changes should be done with migrations, yes
19:04 Grinnz the cached plan error is probably because regular queries through Mojo::Pg are prepare_cached
19:04 jberger maschine: it is really useful to make your schema deployable
19:05 jberger you can use the same schema to deploy to a temporary database for say tests or a staging environment
19:05 maschine yeah, I'm also building my database tools so they could be split off into their own app
19:06 maschine there is some stuff for Postgres, but a lot of it seems overcomplicated for what I need (CRUD basically)
19:07 maschine at least I don't have to use MS Access for this one :p
19:08 jberger IMO it may seem overcomplicated, but I encourage you to try
19:08 jberger being able to version control your schema is a revelation
19:09 maschine I meant some of the PG admin tools, not migrations..  I pretty much have to use them for what I need it to do
19:10 jberger ah ok
19:10 maschine Looks like i can pretty much add the SQL query I've already generated to migration and that's all I really need right?
19:12 jberger yeah
19:13 maschine I didn't really understand what it was for the first time around
19:14 maschine is the '1 up' '1 down' the version number?
19:27 sri http://mojolicious.org/perldoc/Mojo/Pg/Migrations#DESCRIPTION
19:33 marty maschine: If you are simply writing CRUD operations you might take a look at https://postgrest.com/en/v4.3/
19:42 disputin joined #mojo
19:52 maschine sri:  yeah I was reading that (and your examples) - I missed the line "-- VERSION UP/DOWN"
19:53 maschine marty: that looks interesting - that might be the most promising front end I've seen so far. I need to integrate it with my app though.
19:53 Janos_ joined #mojo
20:05 cheako joined #mojo
20:07 cheako Hello, I'm doing something advanced and I wonder if mojo can help.  I'm using IO::Soccet::Socks and it's kinda hard to work with.  I was wondering if I could pass this type of object to mojo and have it start processing requests?
20:08 cheako https://github.com/cheako/tor2web/blob/992e89b502060efe1f5b45da91f00a84160d9dde/tx/Asocks5.t#L73
20:08 gryphon joined #mojo
20:09 cheako Here is where the socket is created and managed: https://github.com/cheako/tor2web/blob/992e89b502060efe1f5b45da91f00a84160d9dde/tx/Asocks5.t#L155
20:09 jberger cheako what are you attempting to do? mojo already supports socks proxy
20:10 cheako It's kinda like a hony trap.  It's a socks server that presents a fake network to clients that connect.
20:11 cheako I was hoping that mojo could be running on one of the hosts in this network.
20:12 jberger that's beyond my knowledge of the topic
20:12 jberger maybe someone else
20:18 stryx` joined #mojo
20:20 cheako I think this module is designed all wrong.  I would have made the socket a property that the user could fetch after the connection was setup, but this class tries to integrate the IO::Socket:INET as part of it's self and then precedes to cripple it.
21:12 CandyAngel In terms of creating binary packets of data, is there a preferred term for the action (create, build, compose, assemble, craft?)
21:14 Grinnz pack, encode
21:17 CandyAngel Ah, I like encode/decode :D
21:17 CandyAngel pack packet just sounds weird!
21:18 Grinnz NetPacket uses assemble
21:18 Grinnz or encode
21:18 itaipu joined #mojo
21:19 Grinnz thats really the only module of that sort i have experience witht
21:19 Grinnz https://metacpan.org/pod/NetPacket::IP#Methods
21:20 CandyAngel Mojolicious uses build/parse in ::WebSocket
21:21 bianca joined #mojo
21:21 Grinnz thats good too
21:32 zivester joined #mojo
21:35 disputin joined #mojo
21:43 disputin joined #mojo
21:57 bianca joined #mojo
22:38 disputin joined #mojo
22:47 stryx` joined #mojo
23:19 stryx` joined #mojo

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