ivanskie

Activity Graph

« Prev | Page 2 of 41 | Next »

2018-10-31

[01:39:28] ivanskie: has joined #ruby
[01:39:33] ivanskie: has joined #RubyOnRails
[01:39:34] ivanskie: has joined #ruby-offtopic
[01:50:57] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[16:57:14] ivanskie: has joined #ruby
[16:57:24] ivanskie: has joined #RubyOnRails
[16:57:24] ivanskie: has joined #ruby-offtopic
[17:14:14] ivanskie: its okay, once you learn programming you can just write an AI to learn other things for you.
[17:14:45] ivanskie: I have a question uhm.
[17:15:00] ivanskie: I'm using net-ssh with net-ssh-gateway.
[17:15:26] ivanskie: I was able to send in request_pry, and launch my command and see the output.
[17:15:36] ivanskie: and i can type things.
[17:15:53] ivanskie: except, when I press Enter it just sends new-line.
[17:17:13] ivanskie: There's this old example: https://net-ssh.github.io/ssh/v1/chapter-5.html#s5
[17:17:48] ivanskie: b is right.
[17:18:24] ivanskie: oft_gegong: if you are impatient, then just start writing a program. and figure out how to do it as you go.
[17:18:36] ivanskie: kind of a backwards approach
[17:20:40] ivanskie: so the old example doesn't work anymore, its outdated documentation. :(
[17:21:15] ivanskie: But dkowis on github essentially re-wrote it.. and it still doesn't work https://github.com/net-ssh/net-ssh/issues/622
[17:21:28] ivanskie: very sad day
[17:22:45] ivanskie: I don't understand what intercepts the characters and ignores CR. rather it actually replaces CR with NL
[17:24:14] ivanskie: there are these: http://net-ssh.github.io/net-ssh/Net/SSH/Connection/Term.html. I don't even know how to describe it. But I haven't been able to figure out where to put it, and enable/disable some of these flags.
[17:25:55] ivanskie: i might have to use what I have to just establish a port forwarding, then call a system ssh command to launch into the remote shell that way. so sad :(
[17:26:27] ivanskie: I'm basically replicating parts of Heroku toolbelt cli
[17:27:05] ivanskie: for our aws setup. eb ssh will not work, because everything is behind a firewall basically.
[17:28:28] ivanskie: its frustrating to get to launching into rails console through a jump box, etc etc.. just to get to the irb>. and be able to type and erase.. but when you press Enter it's like you are in text editor lol.
[17:28:39] ivanskie: ACTION goes weeping
[17:45:26] ivanskie: i was thinking that the ICRNL setting was doing it.
[17:46:22] ivanskie: eam: so once I make the connection, i'd just execute an stty command to change the behavior?
[17:47:42] ivanskie: its a good lead tho
[17:53:10] ivanskie: hmm interesting
[17:53:49] ivanskie: ch.exec('stty icrnl') before requesting pty, says 'stty: standard input: Inappropriate ioctl for device' but exec that after request pty.. and it closes the channel.
[18:03:44] ivanskie: eam have you had more coffee yet?
[18:03:50] ivanskie: you're like my only hope
[18:07:58] ivanskie: This is the output for `stty -a` once pty connection is established. https://dpaste.de/EfPJ
[18:08:58] ivanskie: yeah here's the culprit: "-igncr icrnl"
[18:09:43] ivanskie: ignore carriage return turn cr into newline
[18:13:02] ivanskie: under what kind of light?
[18:15:03] ivanskie: quite probable
[21:21:34] ivanskie: any IO/console experts here?
[21:22:02] ivanskie: i think so?
[21:22:34] ivanskie: background: writing a pseudo copy of heroku cli. specifically command to launch into rails console on remote machine.

2018-10-30

[05:14:52] ivanskie: has joined #RubyOnRails
[05:14:59] ivanskie: has joined #ruby-offtopic
[05:15:01] ivanskie: has joined #ruby
[05:15:11] ivanskie: Client Quit
[15:26:52] ivanskie: has joined #ruby-offtopic
[15:26:57] ivanskie: has joined #RubyOnRails
[15:27:01] ivanskie: has joined #ruby
[22:23:56] ivanskie: Read error: Connection reset by peer

2018-10-26

[04:01:04] ivanskie: has joined #RubyOnRails
[04:01:07] ivanskie: has joined #ruby
[04:01:10] ivanskie: has joined #ruby-offtopic
[05:21:49] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-10-25

[17:54:52] ivanskie: has joined #RubyOnRails
[17:54:58] ivanskie: has joined #ruby
[17:55:04] ivanskie: has joined #ruby-offtopic
[18:53:45] ivanskie: why does this not work in irb? http://rubular.com/r/RMfgjB1rYB
[18:53:50] ivanskie: i'm only getting the first match
[18:57:11] ivanskie: https://repl.it/repls/DisloyalLightgreyLevel
[18:57:48] ivanskie: I'm trying to copy this: https://github.com/johnnyopao/awsp/blob/master/index.js#L9-L26
[19:00:00] ivanskie: oh super. thank you for the tip
[19:00:49] ivanskie: i rewrote that guy's awsp, all in bash script.. so it'd work on all our machines no matter their environment.
[19:01:04] ivanskie: but now im writing a gem, sooo trying to build this into it, in ruby.
[19:01:53] ivanskie: speaking of which.. I'm still not even sure if this is going to work. i need to figure out how to run the .sh script which will source file with new envars. to apply to original shell
[19:01:59] ivanskie: argh headache
[19:11:11] ivanskie: right. so the way awsp dev is doing it, and how i replicated it in bash script. is.. I have an alias for 'source .myscript.sh' in .myscript.sh i show the menu, menu writes a temp file with exports. then .myscript.sh sources the temp file, deletes it, and exits.
[19:12:02] ivanskie: awsp dev made his npm script actually be called _awsp in shell.. and the alias for awsp goes to his sh. file which launches the javascript based _awsp script for menu.
[19:12:22] ivanskie: i guess i'll have to do the same but ruby. argh its messy.
[23:10:45] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-10-23

[15:48:43] ivanskie: has joined #RubyOnRails
[15:48:45] ivanskie: has joined #ruby-offtopic
[15:48:47] ivanskie: has joined #ruby
[17:08:06] ivanskie: I have a little bit of code that checks if an executable out of an array exists, then gives me version number. Just spent half an hour googling a way to regex out the version number to no avail.
[17:08:29] ivanskie: but then realized wait.. i can just do. string.split(' ')[1]
[17:08:51] ivanskie: pip --version, python --version, etc
[17:08:54] ivanskie: so far the only edge case is gcc
[17:09:27] ivanskie: good thing i don't care about gcc
[17:14:12] ivanskie: pip 18.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
[17:14:20] ivanskie: curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.4 zlib/1.2.
[17:14:42] ivanskie: or Python 2.7.15
[17:14:58] ivanskie: from open3 yes
[17:15:29] ivanskie: ACTION slowly turns around and walks away
[17:22:19] ivanskie: "pip 18.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)" or "curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.4 zlib/1.2." etc...
[18:19:11] ivanskie: Read error: Connection reset by peer

2018-10-21

[03:13:39] ivanskie: has joined #ruby-offtopic
[03:13:42] ivanskie: has joined #RubyOnRails
[03:13:48] ivanskie: has joined #ruby
[04:29:56] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:53:41] ivanskie: has joined #ruby
[05:53:41] ivanskie: has joined #ruby-offtopic
[05:53:47] ivanskie: has joined #RubyOnRails
[06:34:51] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[14:41:51] ivanskie: has joined #ruby
[14:41:57] ivanskie: has joined #ruby-offtopic
[14:41:57] ivanskie: has joined #RubyOnRails
[15:33:32] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-10-19

[00:35:39] ivanskie: has joined #RubyOnRails
[00:35:56] ivanskie: has joined #ruby
[00:36:07] ivanskie: has joined #ruby-offtopic
[00:44:17] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[00:46:40] ivanskie: has joined #ruby
[00:47:07] ivanskie: has joined #RubyOnRails
[00:47:12] ivanskie: has joined #ruby-offtopic
[00:55:39] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[02:26:45] ivanskie: has joined #ruby
[02:26:46] ivanskie: has joined #ruby-offtopic
[02:26:51] ivanskie: has joined #RubyOnRails
[03:59:50] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[04:01:22] ivanskie: has joined #RubyOnRails
[04:01:36] ivanskie: has joined #ruby-offtopic
[04:02:10] ivanskie: has joined #ruby
[04:03:07] ivanskie: Client Quit
[14:45:21] ivanskie: has joined #RubyOnRails
[14:45:31] ivanskie: has joined #ruby
[14:45:33] ivanskie: has joined #ruby-offtopic
[14:46:35] ivanskie: Client Quit
[15:54:44] ivanskie: has joined #RubyOnRails
[15:54:49] ivanskie: has joined #ruby
[15:54:57] ivanskie: has joined #ruby-offtopic
[19:17:41] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:20:36] ivanskie: has joined #ruby-offtopic
[20:20:43] ivanskie: has joined #RubyOnRails
[20:20:47] ivanskie: has joined #ruby
[23:04:09] ivanskie: i'm not sure how to formulate my question.
[23:04:51] ivanskie: Config.profiles returns an array of ruby objects
[23:05:18] ivanskie: Config.applications is also an array of ruby objects.
[23:06:06] ivanskie: Config.applications.first.profile returns a name of a profile. But I'd like it to return that particular ruby object from Config.profiles
[23:06:52] ivanskie: I already have to_s method in Profile class. im not sure how to find one profile?
[23:08:53] ivanskie: i guess i need to search an array of ruby objects
[23:12:35] ivanskie: by ruby objects i mean... classes
[23:13:22] ivanskie: Config.profiles => [#<Profile:0x00007fba7b1baef8 ...>, #<Profile:0x00007fba7b1bae08 ...>, etc]
[23:13:36] ivanskie: im not in rails.
[23:13:45] ivanskie: so how do i search array of classes?
[23:34:47] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-10-18

[16:55:15] ivanskie: has joined #ruby
[16:55:19] ivanskie: has joined #ruby-offtopic
[16:55:27] ivanskie: has joined #RubyOnRails
[23:30:21] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-10-09

[19:50:30] ivanskie: has joined #RubyOnRails
[19:50:30] ivanskie: has joined #ruby-offtopic
[19:50:41] ivanskie: has joined #ruby
[19:52:28] ivanskie: so uhm my wife thinks she wants to learn coding. she's a total beginner. like no idea what terminal or console is, or any technical concept. other than how to login to OS, and open browser to go online. and maybe use notepad/textedit or word.
[19:52:51] ivanskie: question: Any recommendations, anybody know of anyone who started like that, or etc etc? thoughts?
[20:04:20] ivanskie: her motivation to start is "i love to solve puzzles"
[20:04:58] ivanskie: also slight edge case scenario.. high functioning autism, and stay at home mom, three kids.
[20:05:06] ivanskie: wish me luck
[20:06:04] ivanskie: i was just looking around, there's codingautism, but im a bit skeptical.
[20:07:03] ivanskie: this is super awesome
[20:10:07] ivanskie: i shall follow/cyber stalk you online
[20:10:39] ivanskie: it'd be awesome if wifey learns to code. i'm just concerned about motivation and discipline in the long term.
[20:11:02] ivanskie: cuz of so much daily Doh and failures in this world
[20:16:26] ivanskie: just showed links to my wife.. "Uhm where did you find that book and how much does it cost and can you download it to my iPad" lol
[20:16:47] ivanskie: thats somewhat obvious.
[20:18:54] ivanskie: awesome. well i'd be first to buy that
[20:20:08] ivanskie: you have instagram?
[20:20:10] ivanskie: or just twitter?
[20:27:49] ivanskie: i'll be watching the youtubes reruns
[20:30:28] ivanskie: alright now i need to figure out how to introduce basics to her. (what console is, how to get there.. editors.. etc etc).
[20:30:45] ivanskie: too bad codeschool is now within pluralsight
[20:43:29] ivanskie: what bout tryruby ?
[20:43:32] ivanskie: too limited?
[20:43:44] ivanskie: i can setup a c9 for her later on as well.
[20:44:29] ivanskie: oh right its a guided repl. forgot
[20:47:43] ivanskie: I 'worked' with Radar and the team when he was about to publish Rails 4 in Action. kind of a feedback from a n00b point of view haha.
[20:48:33] ivanskie: oh hey Radar. by the way im now a devops at a ruby place :P *success kid meme here* finally haha
[20:49:34] ivanskie: anyway.. bwaveaver im thinking.. if you want someone to help in similar extent with your book. maybe i could get you in touch with my wife?
[20:49:54] ivanskie: Doing that with Radar really helped me learn rails, and stay motivated at the time.
[20:52:49] ivanskie: shameless self invitation haha
[21:12:29] ivanskie: oh you know what.. i might want to read that book myself haha
[21:13:22] ivanskie: yep saw that. sent that to wifey
[21:14:40] ivanskie: i think i'll see how far into the first week of CS50 lectures I can get with her to start. just for the CS basics. then jump into ruby ^
[21:16:08] ivanskie: so Brandon, are you writing that book just because, or were you trying to teach your significant other?
[21:16:53] ivanskie: reason im asking, is im wondering if there's blog post about that. aah.
[21:18:01] ivanskie: like there's a blog post of a blacksmith switching careers and learning ruby/rails from scratch.
[21:18:40] ivanskie: haha thats sweet.
[21:20:21] ivanskie: they leave out a lot of details tho
[21:20:56] ivanskie: watched any forged in fire episodes?
[23:36:49] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-10-05

[19:58:46] ivanskie: has joined #ruby
[19:58:46] ivanskie: has joined #ruby-offtopic
[19:58:46] ivanskie: has joined #RubyOnRails
[20:57:13] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:20:45] ivanskie: has joined #ruby
[21:20:51] ivanskie: has joined #RubyOnRails
[21:20:51] ivanskie: has joined #ruby-offtopic
[23:40:45] ivanskie: Quit: Textual IRC Client: www.textualapp.com

2018-10-04

[03:06:11] ivanskie: has joined #RubyOnRails
[03:06:17] ivanskie: has joined #ruby-offtopic
[03:06:17] ivanskie: has joined #ruby
[03:29:13] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[03:35:35] ivanskie: has joined #RubyOnRails
[03:35:40] ivanskie: has joined #ruby
[03:35:42] ivanskie: has joined #ruby-offtopic
[03:38:22] ivanskie: Client Quit
[15:51:32] ivanskie: has joined #RubyOnRails
[15:51:32] ivanskie: has joined #ruby
[15:51:37] ivanskie: has joined #ruby-offtopic
[15:56:08] ivanskie: Client Quit
[15:58:22] ivanskie: has joined #RubyOnRails
[15:58:27] ivanskie: has joined #ruby
[15:58:30] ivanskie: has joined #ruby-offtopic
[17:14:19] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:17:18] ivanskie: has joined #ruby-offtopic
[17:17:26] ivanskie: has joined #ruby
[17:17:26] ivanskie: has joined #RubyOnRails
[17:21:03] ivanskie: Client Quit
[17:22:32] ivanskie: has joined #ruby-offtopic
[17:22:34] ivanskie: has joined #RubyOnRails
[17:22:46] ivanskie: has joined #ruby
[17:55:55] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:03:50] ivanskie: has joined #ruby-offtopic
[19:03:56] ivanskie: has joined #ruby
[19:03:56] ivanskie: has joined #RubyOnRails
[19:58:14] ivanskie: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:01:30] ivanskie: has joined #ruby
[20:01:30] ivanskie: has joined #ruby-offtopic
[20:01:32] ivanskie: has joined #RubyOnRails
[20:37:40] ivanskie: Quit: Textual IRC Client: www.textualapp.com