ivanskie

Activity Graph

Page 1 of 42 | Next »

2019-01-17

[17:20:33] ivanskie: has joined #ruby-offtopic
[17:20:33] ivanskie: has joined #ruby
[17:20:43] ivanskie: has joined #RubyOnRails
[17:41:03] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:43:22] ivanskie: has joined #ruby-offtopic
[17:43:23] ivanskie: has joined #RubyOnRails
[17:43:29] ivanskie: has joined #ruby
[18:07:14] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:07:53] ivanskie: has joined #RubyOnRails
[18:07:55] ivanskie: has joined #ruby
[18:07:59] ivanskie: has joined #ruby-offtopic
[19:00:35] ivanskie: Quit: Textual IRC Client: www.textualapp.com

2019-01-15

[19:57:55] ivanskie: has joined #RubyOnRails
[19:57:55] ivanskie: has joined #ruby
[19:58:01] ivanskie: has joined #ruby-offtopic
[19:58:13] ivanskie: does anyone have grok patterns for Passenger logs?
[19:58:18] ivanskie: im utterly failing at trying to make my own
[20:37:38] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:00:25] ivanskie: has joined #RubyOnRails
[21:00:26] ivanskie: has joined #ruby-offtopic
[21:00:34] ivanskie: has joined #ruby
[22:04:01] ivanskie: Quit: Textual IRC Client: www.textualapp.com

2019-01-10

[21:56:12] ivanskie: has joined #ruby-offtopic
[21:56:17] ivanskie: has joined #ruby
[21:56:23] ivanskie: has joined #RubyOnRails
[22:18:13] ivanskie: can a guard line be 'continue' or something like that in a method?
[22:18:30] ivanskie: oh nevermind
[22:33:07] ivanskie: Quit: Textual IRC Client: www.textualapp.com

2019-01-05

[00:10:30] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[00:16:24] ivanskie: has joined #ruby
[00:16:38] ivanskie: has joined #ruby-offtopic
[00:16:42] ivanskie: has joined #RubyOnRails
[01:29:27] ivanskie: Quit: Textual IRC Client: www.textualapp.com

2019-01-04

[19:20:53] ivanskie: has joined #ruby
[19:20:58] ivanskie: has joined #ruby-offtopic
[19:21:00] ivanskie: has joined #RubyOnRails
[19:22:26] ivanskie: i have a what i think is a fairly common problem that I haven't dealt with yet, trying to wrap my head around. thought I might ask for suggestions here.
[19:27:15] ivanskie: refresh and get logs. it re-prints the old ones in addition to new ones, within the request limit.. of lets say 100 records. so refreshes, adds lets say 5 new lines, and 5 oldest lines dissapear, but all existing just get reprinted..
[19:27:15] ivanskie: I'm using aws sdk, getting logs from cloudwatch logs. what i ended up doing was remap the messages hash to new hash like this: { timestamp: { message: '', instanceid: '' ...} since i will be collecting logs from several streams at once, i thought I'd push them all into a single hash, then do hash.keys.sort.each { |key| print hash[key].message } ( simplified for simplicity's sake)... so the issue i'm running into now, is when i
[19:27:43] ivanskie: so how can I check, and only print new records?
[19:33:50] ivanskie: probably not in a shirt time.
[19:34:36] ivanskie: i think i need to keep track of "old" records. and when new ones come in, only deal with new records.
[19:34:55] ivanskie: like array of epoch timestamps
[19:35:09] ivanskie: ah alright let me put some code together one sec
[19:46:36] ivanskie: havenwood https://dpaste.de/yZ0A
[19:48:01] ivanskie: on every request i get about 50 records from past few seconds.. then refresh using the "nextFordwardToken", which doesn't seem to be changing much, but thats a different issue alltogether.
[19:48:19] ivanskie: so i'd like to just tail, and print only the new records, and not reprint old ones
[19:50:05] ivanskie: i mean comes in as json
[19:50:32] ivanskie: hm yeah good point i guess
[19:51:04] ivanskie: its blank at init. then i add to it on every request
[19:51:11] ivanskie: so within that block
[20:11:22] ivanskie: how do you mean
[20:11:28] ivanskie: only add new ones?
[20:12:29] ivanskie: alright thank you :)
[20:17:26] ivanskie: havenwood here's my actual code.. https://dpaste.de/zOv5#L157,158,159,163,165,166,167,168,169,170,171,172,173,174 i should be doing a comparison somewhere in there to determine only the new records. but not sure about the best way to do that. unless that means that the way i wrote that is already bad to begin with.
[20:17:55] ivanskie: within the block on lines 163-174
[20:32:26] ivanskie: that takes care of not adding duplicates. but my print block is still flawed, i'll have to do something similar there
[20:35:26] ivanskie: `if @events.keys.sorted[@events.size] < event['timestamp']` ?
[20:36:56] ivanskie: maybe add it to @new_events then only print @new_events
[20:39:11] ivanskie: or rather do that with timestamps.. only make list of new timestamps

2019-01-02

[21:50:27] ivanskie: has joined #ruby-offtopic
[21:50:35] ivanskie: has joined #ruby
[21:50:36] ivanskie: has joined #RubyOnRails
[23:20:01] ivanskie: Quit: Textual IRC Client: www.textualapp.com

2018-12-17

[22:46:06] ivanskie: has joined #RubyOnRails
[22:46:10] ivanskie: has joined #ruby
[22:46:14] ivanskie: has joined #ruby-offtopic
[23:48:21] ivanskie: Quit: Textual IRC Client: www.textualapp.com

2018-12-11

[00:22:09] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[03:10:16] ivanskie: has joined #RubyOnRails
[03:10:17] ivanskie: has joined #ruby-offtopic
[03:10:28] ivanskie: has joined #ruby
[04:10:56] ivanskie: Read error: Connection reset by peer

2018-12-10

[22:53:42] ivanskie: has joined #RubyOnRails
[22:53:42] ivanskie: has joined #ruby
[22:53:52] ivanskie: has joined #ruby-offtopic

2018-12-06

[01:01:32] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[02:55:17] ivanskie: has joined #ruby-offtopic
[02:55:24] ivanskie: has joined #ruby
[02:55:26] ivanskie: has joined #RubyOnRails
[03:57:40] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[04:27:07] ivanskie: has joined #ruby
[04:27:15] ivanskie: has joined #RubyOnRails
[04:27:16] ivanskie: has joined #ruby-offtopic
[04:27:28] ivanskie: Client Quit

2018-12-05

[00:58:52] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[02:32:25] ivanskie: has joined #RubyOnRails
[02:32:34] ivanskie: has joined #ruby-offtopic
[02:32:38] ivanskie: has joined #ruby
[03:50:47] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[04:04:31] ivanskie: has joined #ruby
[04:04:39] ivanskie: has joined #RubyOnRails
[04:04:53] ivanskie: has joined #ruby-offtopic
[07:39:20] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:52:01] ivanskie: has joined #ruby
[17:52:16] ivanskie: has joined #ruby-offtopic
[17:52:18] ivanskie: has joined #RubyOnRails

2018-12-04

[01:08:05] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[04:47:38] ivanskie: has joined #RubyOnRails
[04:47:39] ivanskie: has joined #ruby-offtopic
[04:47:44] ivanskie: has joined #ruby
[07:19:15] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:05:04] ivanskie: has joined #ruby
[16:09:18] ivanskie: Ping timeout: 250 seconds
[17:50:09] ivanskie: has joined #ruby
[17:50:15] ivanskie: has joined #ruby-offtopic
[17:50:17] ivanskie: has joined #RubyOnRails

2018-12-03

[18:50:33] ivanskie: has joined #RubyOnRails
[18:50:37] ivanskie: has joined #ruby-offtopic
[18:50:47] ivanskie: has joined #ruby
[20:25:36] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:49:20] ivanskie: has joined #RubyOnRails
[20:49:20] ivanskie: has joined #ruby-offtopic
[20:49:33] ivanskie: has joined #ruby

2018-11-22

[18:20:31] ivanskie: has joined #ruby-offtopic
[18:20:35] ivanskie: has joined #ruby
[18:20:40] ivanskie: has joined #RubyOnRails
[23:54:05] ivanskie: Quit: Textual IRC Client: www.textualapp.com

2018-11-19

[04:06:10] ivanskie: has joined #ruby-offtopic
[04:06:15] ivanskie: has joined #RubyOnRails
[04:06:15] ivanskie: has joined #ruby
[04:10:51] ivanskie: Client Quit
[04:14:03] ivanskie: has joined #RubyOnRails
[04:14:08] ivanskie: has joined #ruby-offtopic
[04:14:10] ivanskie: has joined #ruby
[04:27:22] ivanskie: Quit: Textual IRC Client: www.textualapp.com

2018-11-18

[05:08:48] ivanskie: has joined #ruby-offtopic
[05:09:13] ivanskie: has joined #ruby
[05:09:24] ivanskie: has joined #RubyOnRails
[05:52:20] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:55:54] ivanskie: has joined #ruby-offtopic
[05:56:18] ivanskie: has joined #ruby
[05:56:30] ivanskie: has joined #RubyOnRails
[06:53:54] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:35:57] ivanskie: has joined #ruby
[16:35:59] ivanskie: has joined #RubyOnRails
[16:36:03] ivanskie: has joined #ruby-offtopic
[17:52:59] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:53:50] ivanskie: has joined #ruby-offtopic
[17:53:51] ivanskie: has joined #RubyOnRails
[17:53:55] ivanskie: has joined #ruby
[18:00:33] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:01:22] ivanskie: has joined #ruby
[18:01:22] ivanskie: has joined #RubyOnRails
[18:01:33] ivanskie: has joined #ruby-offtopic
[18:09:50] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:45:16] ivanskie: has joined #ruby
[18:45:17] ivanskie: has joined #RubyOnRails
[18:45:17] ivanskie: has joined #ruby-offtopic
[20:37:37] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:32:45] ivanskie: has joined #RubyOnRails
[23:32:51] ivanskie: has joined #ruby-offtopic
[23:32:54] ivanskie: has joined #ruby
[23:40:16] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-11-17

[00:39:14] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:03:03] ivanskie: has joined #ruby-offtopic
[19:03:07] ivanskie: has joined #RubyOnRails
[19:03:15] ivanskie: has joined #ruby
[19:40:33] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:51:42] ivanskie: has joined #ruby-offtopic
[19:51:48] ivanskie: has joined #RubyOnRails
[19:51:54] ivanskie: has joined #ruby
[21:17:42] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-11-16

[00:30:16] ivanskie: Ping timeout: 268 seconds
[23:59:52] ivanskie: has joined #ruby-offtopic
[23:59:52] ivanskie: has joined #ruby
[23:59:54] ivanskie: has joined #RubyOnRails

2018-11-15

[01:04:44] ivanskie: trying to write a script to download gist file. supply gist url (without the raw url).. it scans the page for raw url. then tries to download the raw file.
[01:05:05] ivanskie: now for some reason i cannot make it give me the contents. i don't understand
[01:07:56] ivanskie: can you get a gist without having an api key?
[01:08:30] ivanskie: i can already get the `raw_url` https://developer.github.com/v3/gists/#get-a-single-gist
[01:08:54] ivanskie: im using the download block from here https://github.com/piotrmurach/tty-file/blob/master/lib/tty/file/download_file.rb#L33-L53
[01:09:35] ivanskie: im writing this to include in my own gem.. i'm trying not to have too many pre-reqs.
[01:09:47] ivanskie: i guess i could..
[01:11:03] ivanskie: i do want to add a little bit of git and github automation later on...
[01:11:26] ivanskie: but why would it return an empty string
[01:16:07] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[04:52:13] ivanskie: has joined #RubyOnRails
[04:52:14] ivanskie: has joined #ruby
[04:52:22] ivanskie: has joined #ruby-offtopic
[06:29:34] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[06:30:22] ivanskie: has joined #ruby
[06:30:29] ivanskie: has joined #ruby-offtopic
[06:30:37] ivanskie: has joined #RubyOnRails
[07:05:11] ivanskie: Ping timeout: 260 seconds
[16:37:13] ivanskie: has joined #ruby
[16:37:15] ivanskie: has joined #ruby-offtopic
[16:37:17] ivanskie: has joined #RubyOnRails
[16:37:45] ivanskie: radar you were right. it's way easier with octokit
[19:31:51] ivanskie: is it possible to push `caller` when raising?
[19:32:57] ivanskie: i have a rescue of entire app .. uhm. basically a catch all. and caller for that is obviously its own file / line / col. and not the actual caller way deeper in the app.
[19:33:45] ivanskie: so im scratching my head. how do I handle errors/exceptions nicely, and still be able to have --trace argv so i can print a nice backtrace
[19:46:01] ivanskie: https://github.com/piotrmurach/tty/blob/master/exe/teletype#L13-L18
[19:47:12] ivanskie: if i raise TTY::CLI::Error from anywhere in the application... the trace will be exe/teletype:15
[19:47:22] ivanskie: about two lines
[19:47:39] ivanskie: and not from where i called `raise`
[19:48:35] ivanskie: which is what i'd expect
[19:49:26] ivanskie: but it's okay. I understand how this works now. i'll just have to put rescue block a lot close to raise
[21:32:25] ivanskie: just noticed a bit of an annoying behaviour between TTY::File and TTY::Spinner
[21:33:20] ivanskie: if i start a spinner and then want to stop it After TTY::File stuff finished.. it no longer keeps track of that buffer and just prints new line after TTY::File finishes. :(
[21:53:25] ivanskie: https://github.com/piotrmurach/tty-file/issues/6
[21:53:49] ivanskie: I understand why.. but just annoying lol
[23:36:29] ivanskie: piotr are you on here by any chance?
[23:38:30] ivanskie: Piotr Murach
[23:38:49] ivanskie: he could be mythical... never know
[23:39:38] ivanskie: He was just active on github. I have more questions about his other gems. not worth opening an issue
[23:41:58] ivanskie: by the way.. speaking of mythical people..
[23:42:35] ivanskie: anypne know https://github.com/zontik ?

2018-11-14

[00:57:09] ivanskie: im not sure how to search for this..
[00:57:55] ivanskie: if im making a gem... how do I specify to create a directory and copy certain files when gem is being installed? is that possible?
[01:02:02] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[02:40:41] ivanskie: has joined #ruby
[02:40:41] ivanskie: has joined #ruby-offtopic
[02:40:49] ivanskie: has joined #RubyOnRails
[03:46:52] ivanskie: Yeah i'll have to do that :(
[08:52:10] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:59:12] ivanskie: has joined #ruby
[16:59:18] ivanskie: has joined #RubyOnRails
[16:59:24] ivanskie: has joined #ruby-offtopic
[17:00:15] ivanskie: Client Quit
[17:03:15] ivanskie: has joined #RubyOnRails
[17:03:15] ivanskie: has joined #ruby-offtopic
[17:03:18] ivanskie: has joined #ruby

2018-11-13

[21:16:43] ivanskie: i'm having an annoying issue of "WARN: Unresolved specs during Gem::Specification.reset"
[21:17:19] ivanskie: i've done `gem clean` and removed only the gems mentioned in the warning. and this is still popping up (standalone ruby project)
[21:17:50] ivanskie: maybe i should google some more. but the suggestions from what I have found, don't seem to help
[21:26:45] ivanskie: bundle clean --force made it worse. :(
[21:38:44] ivanskie: somehow i've just fixed it
[21:38:46] ivanskie: don't know how
[21:40:20] ivanskie: i'm putting together a TTY based gem (with thor).. and i thought i'd use awesome_print for easier to read output for logging.
[21:40:38] ivanskie: and then was refactoring Gemfile into gemspec for the gem. and since bundle clean --force.. it broke it somehow
[21:40:45] ivanskie: https://github.com/awesome-print/awesome_print
[21:41:11] ivanskie: it adds .ap method to Logger class. and this used to work. and now it doesn't i don't get it.
[21:41:32] ivanskie: so im now removing awesome_print dependency entirely since its not critical
[21:42:50] ivanskie: is it safe to assume that sessions won't be streamed?
[21:45:26] ivanskie: which only means that i was doing something wrong