ivanskie

Activity Graph

Page 1 of 41 | Next »

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

[18:33:15] ivanskie: has joined #RubyOnRails
[18:33:17] ivanskie: has joined #ruby-offtopic
[18:33:23] ivanskie: has joined #ruby
[18:33:36] ivanskie: baweaver what time is your keynote at?
[19:23:36] ivanskie: Read error: Connection reset by peer
[21:16:08] ivanskie: has joined #ruby
[21:16:14] ivanskie: has joined #RubyOnRails
[21:16:14] ivanskie: has joined #ruby-offtopic
[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

2018-11-09

[00:13:19] ivanskie: has joined #RubyOnRails
[00:13:25] ivanskie: has joined #ruby-offtopic
[00:13:25] ivanskie: has joined #ruby
[00:45:45] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[02:26:36] ivanskie: has joined #RubyOnRails
[02:26:40] ivanskie: has joined #ruby
[02:27:02] ivanskie: has joined #ruby-offtopic
[03:26:19] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:13:02] ivanskie: has joined #ruby
[05:13:06] ivanskie: has joined #ruby-offtopic
[05:13:12] ivanskie: has joined #RubyOnRails
[05:49:14] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[06:44:36] ivanskie: has joined #ruby-offtopic
[06:44:48] ivanskie: has joined #RubyOnRails
[06:44:48] ivanskie: has joined #ruby
[07:21:31] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-11-08

[15:30:43] ivanskie: has joined #ruby-offtopic
[15:30:48] ivanskie: Client Quit
[16:59:00] ivanskie: has joined #ruby-offtopic
[16:59:07] ivanskie: has joined #ruby
[16:59:15] ivanskie: has joined #RubyOnRails
[17:00:37] ivanskie: Client Quit
[17:03:31] ivanskie: has joined #RubyOnRails
[17:03:33] ivanskie: has joined #ruby-offtopic
[17:03:37] ivanskie: has joined #ruby
[17:41:19] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:42:46] ivanskie: has joined #RubyOnRails
[17:42:46] ivanskie: has joined #ruby-offtopic
[17:42:59] ivanskie: has joined #ruby
[19:01:27] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:04:40] ivanskie: has joined #RubyOnRails
[19:04:40] ivanskie: has joined #ruby-offtopic
[19:04:53] ivanskie: has joined #ruby
[19:21:03] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:25:13] ivanskie: has joined #ruby
[19:25:13] ivanskie: has joined #ruby-offtopic
[19:25:15] ivanskie: has joined #RubyOnRails
[20:32:21] ivanskie: Quit: Textual IRC Client: www.textualapp.com

2018-11-07

[04:42:34] ivanskie: has joined #ruby
[04:42:34] ivanskie: has joined #RubyOnRails
[04:42:40] ivanskie: has joined #ruby-offtopic
[05:38:08] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-11-06

[00:49:34] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[02:35:52] ivanskie: has joined #ruby
[02:35:53] ivanskie: has joined #RubyOnRails
[02:36:01] ivanskie: has joined #ruby-offtopic
[05:23:07] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:33:09] ivanskie: has joined #ruby-offtopic
[05:33:13] ivanskie: has joined #RubyOnRails
[05:33:24] ivanskie: has joined #ruby
[05:50:05] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:50:57] ivanskie: has joined #RubyOnRails
[05:50:57] ivanskie: has joined #ruby-offtopic
[05:51:30] ivanskie: has joined #ruby
[07:08:03] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:07:10] ivanskie: has joined #ruby-offtopic
[16:07:10] ivanskie: has joined #RubyOnRails
[16:07:10] ivanskie: has joined #ruby
[16:08:15] ivanskie: Client Quit

2018-11-05

[17:46:01] ivanskie: has joined #RubyOnRails
[17:46:03] ivanskie: has joined #ruby
[17:46:13] ivanskie: has joined #ruby-offtopic
[21:27:35] ivanskie: Quit: Textual IRC Client: www.textualapp.com
[23:04:14] ivanskie: has joined #ruby-offtopic
[23:04:14] ivanskie: has joined #ruby
[23:04:19] ivanskie: has joined #RubyOnRails
[23:04:25] ivanskie: o hai there
[23:04:34] ivanskie: anyone considers themselves a Thor expert? lol
[23:05:17] ivanskie: i hijacked the bin executable, and renamed the main one so that I can do stuff in parant shell in a certain situation.
[23:06:08] ivanskie: anyway now all help / error outputs the name of the renamed executable (i added '_'. in my case).
[23:06:16] ivanskie: is there anyway to override that behaviour?
[23:40:56] ivanskie: my main executable lets say was exe/`command` i renamed it `_command` and added `command` which just has an if/else block in it. if second argumant matches it runs something else. otherwise it just starts `_command`.
[23:41:40] ivanskie: so now `$ command help` says `'_command help' - show help`
[23:41:48] ivanskie: if that makes any sense
[23:43:36] ivanskie: im using https://github.com/piotrmurach/tty to create the thor based gem.
[23:53:04] ivanskie: it worked for main command
[23:55:54] ivanskie: heh, have to add in every command class. alright cool. thanks havenwood

2018-11-02

[00:41:00] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:45:48] ivanskie: has joined #RubyOnRails
[16:45:51] ivanskie: has joined #ruby-offtopic
[16:45:55] ivanskie: has joined #ruby
[20:11:27] ivanskie: i have a net::ssh or net::ssh::gateway question again :)
[20:19:00] ivanskie: i'm trying to do local forward now, through bastion host
[20:20:03] ivanskie: looking at a couple posts https://stackoverflow.com/questions/4103809/how-to-create-a-ssh-tunnel-in-ruby-and-then-connect-to-mysql-server-on-the-remot and https://stackoverflow.com/questions/37985266/create-a-background-ssh-tunnel-in-ruby and https://stackoverflow.com/questions/13998267/how-to-properly-implement-netssh-port-forwards
[20:20:31] ivanskie: ssh -f my_bastion_host -L $myport:$RDS_HOSTNAME:$RDS_PORT "sleep 10"
[20:21:19] ivanskie: something like that from within ruby. expose the port, print a postgresql::// url in cli to open in postico.. then if it doesn't shutdown on its own, have some other loop to shutdown the tunnel
[20:23:19] ivanskie: i tried this: https://dpaste.de/LMYe it aint working
[20:26:03] ivanskie: @params and params are indeed valid and separate things. so its not a typo in that regard.. uhm was looking at debugger output and it doesn't even try to send anything when i click the postgresql url then. for 127.0.0.1 etc etc
[20:28:51] ivanskie: am i crazy for trying to do this this way? lol
[20:30:39] ivanskie: our RDS (postgress database on amazon) isn't exposed to the public. But our bastion host has access to it. So I'm trying to open a tunnel to bastion with port forwarding to the RDS endpoint from bastion. if that makes sense?
[20:32:08] ivanskie: "ssh -f my_bastion_host -L $myport:$RDS_HOSTNAME:$RDS_PORT "sleep 10"" when the envars are filled... connects to bastion host, does local port forwarding to 65432 (in case one of us has local postgres server running). then I can just launch postico pointing to 127.0.0.1:56432 with credentials for RDS db. and get in there.
[20:32:36] ivanskie: the "sleep 10" command just executes on bastion, giving me time to open postico. then ssh tunnel doesn't close until i close postico or whatever.
[20:33:46] ivanskie: Im trying to do that now in ruby. because I need to dynamically lookup which bastion/jump box to connect to, and pull correct RDS endpoint and creds based on which app / environment is specified beforehand.
[20:34:58] ivanskie: i've got Teletype (tty) / Thor gem going.
[20:35:13] ivanskie: for command line app
[20:35:30] ivanskie: i have everything done except the tunnel building :(
[20:36:17] ivanskie: i've tried building a system ssh command line string. and something isn't working right.
[20:37:39] ivanskie: oh actually i think i just need to keep track of the PID... then i can kill it in ruby afterwords.. hmmmmmmmmmm anyway im hoping i can do this with net::ssh or net::ssh::gateway gem
[20:41:29] ivanskie: oh i think i just found the issue
[20:46:03] ivanskie: i did it!!!!!
[20:46:33] ivanskie: cake time. unfortunately the one day i actually want to grab a beer. work fridge only has pop :( sad day
[20:47:17] ivanskie: for anyone interested... : https://www.madebylotus.com/blog/handling-port-forwarding-in-ruby/
[20:50:35] ivanskie: fridays are so quiet here
[20:50:55] ivanskie: i noticed in debug output that it says when forwarding agent closes...
[20:51:24] ivanskie: i wonder if there's a way I can have a loop in my code to monitor for that and just quit the app. for now i just have a 5 minute timer, or press any key to quit prompt
[20:53:27] ivanskie: hmm... anyway now im in bonus round. maybe time to code a way to run rake tasks on our apps, without sshing in, etc etc
[21:57:22] ivanskie: is there a way to modify yaml file without destroying the comments?
[23:22:50] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-11-01