04:57:53  * SkyRocknRolljoined
06:40:52  * SkyRocknRollquit (Ping timeout: 265 seconds)
06:41:38  * sousouxquit (Ping timeout: 246 seconds)
06:57:11  * SkyRocknRolljoined
12:52:18  * SkyRocknRollquit (Ping timeout: 240 seconds)
13:08:06  * SkyRocknRolljoined
13:57:49  * DarkGodjoined
14:00:41  <rphillips>good morning
14:30:06  * dan336joined
15:19:28  * SkyRocknRollquit (Read error: Connection reset by peer)
15:36:52  * rchquit (*.net *.split)
15:37:00  * DarkGod2_quit (*.net *.split)
15:37:01  * indexzeroquit (*.net *.split)
15:37:01  * ralphtheninjaquit (*.net *.split)
15:37:07  * rchjoined
15:37:09  * ralphtheninjajoined
15:37:19  * DarkGod2joined
15:49:00  * indexzerojoined
16:41:13  <rphillips>creationix: around?
17:04:02  <creationix>rphillips: I'm here now
17:06:14  <rphillips>could we get the getLuvi thing merged?
17:06:24  <rphillips>what file does it save it as?
17:14:16  <creationix>rphillips: I could cherry-pick that to master and expose it as a new lit command real easy
17:14:24  <creationix>what interface do you want?
17:14:39  <creationix>right now it normalizes to the full url and then does a sha1 on that
17:16:26  <rphillips>lit get-luvi -o luvi-sigar
17:16:28  <rphillips>something like that
17:17:10  <creationix>cool, the path internally is something like ~/.litdb.git/cache/f44675fe08a7c59c700d08723ca9ed611ae7d4ad/luvi
17:17:13  * coderkevinquit (Quit: Connection closed for inactivity)
17:18:31  <rphillips>nice
17:42:01  <creationix>rphillips: should it look for a package.lua in cwd and use that luvi config?
17:42:12  <rphillips>+1
17:47:17  <creationix>rphillips: this should work https://github.com/luvit/lit/commit/1e91058cd0300555fc59802818f942a44bf00598
17:48:01  <rphillips>hot!
17:48:17  <rphillips>i think we just need to release lit and we will be good
17:49:28  <creationix>on it
17:51:46  <creationix>rphillips: ok, lit 2.1.8
17:51:53  <rphillips>thanks Tim
17:55:24  <rphillips>creationix: works like a champ locally
17:55:28  <creationix>awesome
17:55:38  <creationix>and also lit make now uses the getLuvi utility
17:55:42  <creationix>so it will cache luvi
17:56:48  <rphillips>that is sweet
18:17:39  <creationix>kostco: I can help some with your questions about the agent, but I didn't write any of the agent. rphillips would know a lot more
18:18:32  <kostco>alright ill talk with him later
18:18:58  <kostco>im just setting everything up. getting a windows vm atm so i can try some of the errors that happen on it
18:21:41  <rphillips>creationix: i think `lit make` should have an option to use the provided luvi executable
18:21:57  <creationix>rphillips: it does
18:22:06  <rphillips>oh
18:22:10  <creationix>that was added for "cross compiles" for luvit red
18:22:43  <rphillips>what are the options?
18:23:09  <creationix>https://github.com/luvit/lit/blob/master/commands/make.lua#L8
18:25:03  <kostco>creationix: are there other docs for luvit anywhere or is my best bet to go through /examples and /deps for libs available and use?
18:25:24  <creationix>luvit itself doesn't have much API docs yet.
18:25:30  <creationix>it tries to mirror the node docs
18:25:56  <creationix>kostco: what are you trying to do?
18:27:40  <kostco>im just wondering what the best resource to learn the api would be
18:28:03  <kostco>for example los is something completely different if you google los lua vs what luvit exposes
18:29:01  <kostco>and im basically going to translating rackerlabs/ohai-plugins, so the waldo dashboard can fetch data from the lua agents instead of having to rely on installing ohai on the machine
18:33:08  <creationix>I'm not actually sure what los is for
18:33:28  <creationix>but yeah, for what's avialable, see the deps folder
18:33:34  <creationix>and unit tests shows usage
18:33:48  <creationix>I believe we updated most the examples so that may help too
18:36:33  <kostco>los lua is basically an oop helper lib. allows inheritance and things. los with luvit is something ill need to use a lot and tells me what platform is running
18:36:46  <rje>rphillips, creationix: i've started the rca writeup here: https://etherpad.rax.io/p/agentrca20150709
19:06:54  * DarkGodquit (Ping timeout: 256 seconds)
19:57:19  <creationix>rphillips: update refactor is ready for review https://github.com/luvit/lit/pull/103
19:57:50  <creationix>summary of changes can be seen in https://github.com/luvit/lit/issues/102
20:48:24  <rphillips>rje: ping
20:48:52  <rje>rphillips, pong
20:49:33  <rphillips>can you help me figure out why the windows executable fails on getting the xen id
20:49:51  <rje>rphillips, sure
20:49:52  <rphillips>looks like gethostname() doesn't exist either if that fails
20:50:10  <rphillips>rje: use 2.1.1 on the unstable package repo
20:50:43  <rphillips>i think we need to change gethostname to use GetComputerNameEx on windows
20:51:07  <rphillips>so, basically, the binary in the installer fails, but my build locally works
20:51:48  <rje>i'm searching msdn, have you seen it deprecated?
20:53:06  <rje>rphillips, what flavor of cloud server are you seeing this?
20:53:27  <rphillips>rje: 2012 R2
21:04:13  <rphillips>rje: i think i have a fix
21:04:49  <rje>an my vm just got to 80%
21:04:57  <rje>rphillips, pr?
21:06:06  <rphillips>rje: https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent/pull/774/files
21:08:30  <rje>rphillips, that should work. can you add a test case?
21:10:12  <rje>on my local boxes i probably have a monitoring_id set, so i'd like to see the CI test that we get a value back
21:10:55  <rphillips>done
21:13:01  <rje>exactly https://ci.appveyor.com/project/racker-buildbot/rackspace-monitoring-agent/build/1.0.542#L1577
21:32:36  * DarkGodjoined
22:11:37  <kostco>is there something like luas io.lines or a easy way to mimic that in luvit?
22:12:39  <creationix>kostco: I like to use the decoder pattern
22:13:11  <creationix>which is write a function that accepts arbitrary input and emits either the first parsed event or nothing if more input is needed
22:13:16  <kostco>alrighty ill try that
22:13:24  <kostco>yep reading the lua docs on it atm
22:15:11  <creationix>I don't think there are docs on the decoder pattern
22:16:35  <creationix>something like https://gist.github.com/creationix/e7bdb20003049154de9e
22:20:08  <kostco>theres docs on pattern matching functions and stringrecipes but yea that gist saves me a ton of time or will hopefully
22:21:09  <creationix>I added some more to the gist, this should help
22:21:55  <creationix>we use this pattern for all kinds of protocols like http and websocket framing
22:22:30  <creationix>it's very neutral and the core decoder can be used with any I/O model. We have parallel implementations of all I/O using node-style callbacks or coroutines
22:22:38  <creationix>but they share the same low-level decoders
22:26:22  <creationix>updated one more time, there was a nasty bug in the sample
22:34:45  <rje>rphillips, how is 2.1.2?
22:35:25  <rphillips>Lgtm
22:39:22  <kostco>alright awesome
22:39:54  <kostco>yea i was wondering why it was only printing out the first lines, thanks you figuered it out before me, lua noob here
22:40:03  <rje>rphillips, i've got it running on windows. anything else gating releasing it to stable?
22:40:15  <kostco>you may also wanna change getLine on line14 to getline
22:40:35  <rje>rphillips, or is the test cluster still running?
22:40:51  <rphillips>Nope. It's good. I'll push this out
22:41:39  <rje>rphillips, i sent you a text file with the affected entities, those are the only oes we need to try and update
23:05:48  * dan336quit (Quit: Leaving.)
23:08:54  <rje>rphillips, is that pushed?
23:16:22  <rphillips>Not yet
23:30:35  * DarkGodquit (Ping timeout: 264 seconds)