00:15:26  * DarkGodquit (Ping timeout: 255 seconds)
02:27:32  * squeek502joined
02:30:25  * squeek502_quit (Ping timeout: 248 seconds)
03:12:03  * squeek502_joined
03:13:46  * squeek502quit (Ping timeout: 255 seconds)
03:14:43  <volga629>Hello Everyone, is possible get help with https://paste.fedoraproject.org/paste/n272cV1UhW0qOVC83MDQKA can't find why server is not starting
03:15:44  <volga629>when trying luvit ip.lua complain about missing modules
03:15:45  <volga629>module 'lua_ip' not found:
03:16:32  <creationix>what is lua_ip?
03:18:37  * squeek502_quit (Quit: Leaving)
03:20:11  <volga629>lua_ip is module which determine ip address on interface https://github.com/Mashape/lua-ip
03:21:03  <volga629>script is check PgSQL node status and if 0 web server should should reply 200 and if not 503
03:22:38  * squeek502joined
03:22:48  <creationix>sure, but how did you include it?
03:22:54  <creationix>it's not from lit right?
03:23:05  <creationix>luvit's require system isn't the same as stock lua
03:23:41  <volga629>no it not from lit
03:24:07  <volga629>require = system ?
03:25:39  <creationix>I mean stock lua looks for code at fixed paths like: ./?.lua;/usr/local/Cellar/luajit/2.0.5/share/luajit-2.0.5/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/Cellar/luajit/2.0.5/share/lua/5.1/?.lua;/usr/local/Cellar/luajit/2.0.5/share/lua/5.1/?/init.lua
03:25:54  <creationix>but luvit looks for things at relative paths to the calling file similar to node
03:26:18  <creationix>./libs/?.lua, ./deps/?.lua
03:26:36  <creationix>also you can do relative requires like: require('./relative/path')
03:27:50  <creationix>supposedly luvit's require will fall back to lua's native require, but I've not seen that work well in practice
03:28:02  <creationix>and then you can't get back to luvit modules
03:29:30  <volga629>hmm
03:29:47  <volga629>in practice need change local ip_utils = require("lua_ip")
03:29:49  <volga629>?
03:30:33  * squeek502quit (Read error: Connection reset by peer)
03:31:03  * squeek502joined
03:31:16  <volga629>relative path depend from which location whole think executed
03:31:48  <creationix>where is lua_ip.lua?
03:31:54  <creationix>and where is your file that's trying to call it?
03:33:56  <volga629>ip.lua I want put in /etc/luvit and start with systemd --> luvit /etc/luvit/ip.lua
03:34:32  <volga629>ip.lua it whole script
03:34:41  <volga629>which include web service
03:35:39  <creationix>sure, but where is the `lua_ip.lua` library you're trying to load?
03:36:29  <volga629>[root@cadbm00 ~]# find /usr -name lua_ip*
03:36:29  <volga629>/usr/lib64/lua/5.3/lua_ip.so
03:38:31  <creationix>yeah, luvit doesn't know to look there
03:38:41  <creationix>it can't even use that since that's compiled for PUC Lua 5.3
03:38:44  <creationix>luvit is based on luajit
03:38:49  <creationix>different ABI
03:39:21  <creationix>on my mac, luvit's cpath is: ./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/Cellar/luajit/2.0.5/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so
03:39:36  <creationix>you *should* be able to use luv directly with lua 5.3
03:40:05  <creationix>I wrote up some docs for using pure luv a while back https://luvit.io/blog/pure-luv.html
03:40:18  <creationix>much simpler than luvit is you're already used to normal lua development
03:44:07  <volga629>let me read
03:45:10  <creationix>I just tested the instructions on my mac with lua 5.2 from homebrew, it build luv and the test server worked
03:45:20  <creationix>so it *should* work with your lua5.3 install
03:49:18  * squeek502_joined
03:51:28  <volga629>I will need build rpm first for luv
03:52:54  * squeek502quit (Ping timeout: 255 seconds)
03:53:51  * squeek502joined
03:53:51  * squeek502_quit (Read error: Connection reset by peer)
03:58:31  <volga629>creationix I see example of bind and it looks simpler HUGE THANK FOR HELP. I have path right now where to go. I will update as soon rpm will be ready and tested
03:58:44  <creationix>good luck
03:58:54  <creationix>weblit should be much easier than node style http + stack too
04:05:02  <volga629>on the end it should PgSQL node monitoring agent
04:05:10  <volga629>be
05:53:46  * volga629quit (Ping timeout: 246 seconds)
06:55:30  * rendarjoined
07:34:31  * DarkGodjoined
08:12:39  * rendarquit (Ping timeout: 240 seconds)
08:12:56  * rendarjoined
09:15:10  * rendarquit (Ping timeout: 240 seconds)
09:45:35  * rendarjoined
10:02:47  * rendarquit (Quit: std::lower_bound + std::less_equal *works* with a vector without duplicates!)
10:03:05  * rendarjoined
11:22:41  * rendarquit (Ping timeout: 248 seconds)
13:58:45  * Andolsjoined
14:06:03  * rendarjoined
14:06:03  * rendarquit (Changing host)
14:06:03  * rendarjoined
15:42:16  * SkyRocknRolljoined
15:44:35  * rendarquit (Ping timeout: 240 seconds)
15:48:19  * rendarjoined
16:10:52  * rendarquit (Ping timeout: 258 seconds)
16:10:54  * rendar_joined
16:12:37  <Soni>creationix: can I use luvit with arduino?
16:12:49  <Soni>(aka serial)
16:15:06  <creationix>Soni: I don't think we ever got serial support in luvit. I know I never got it working at least
16:15:19  <creationix>check the mailing list archives and the lit repository for serial to see if someone else did it
16:16:02  <Soni>I didn't find anything last time I checked
16:20:16  <Soni>creationix: why not port pyserial to lua or something?
16:21:28  <Soni>looks painful tho
16:45:42  * rendarjoined
16:45:42  * rendarquit (Changing host)
16:45:42  * rendarjoined
16:47:29  * rendar_quit (Ping timeout: 248 seconds)
16:55:57  * DarkGodquit (Ping timeout: 240 seconds)
17:15:16  * rendarquit (Ping timeout: 255 seconds)
17:45:32  * rendarjoined
18:07:53  * rendarquit (Quit: std::lower_bound + std::less_equal *works* with a vector without duplicates!)
19:34:35  * SkyRocknRollquit (Ping timeout: 240 seconds)
19:47:03  * SkyRocknRolljoined
20:31:28  * SkyRocknRollquit (Ping timeout: 240 seconds)
20:48:56  * SkyRocknRolljoined
21:08:41  * DarkGodjoined
21:32:41  * Andolsquit
21:43:17  * SkyRocknRollquit (Remote host closed the connection)