jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.3, 2.4.5, 2.3.8, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
orbyt_ has joined #ruby
<phaul> Another completely different question is that if it's sensible to implement a linked list in Ruby in the first place..
<havenwood> phaul: a Hash is a doubly-circularly linked list already :)
MoritaShinobu has quit [Quit: Leaving]
<phaul> Yeah Im not saying what's what internally. Im saying using the exposed language features. no FFI
<havenwood> phaul: yeah, I don't get much occasion to implement one mysellf
<warrshrike> phaul: here you go class ListNode attr_accessor :val, :next def initialize(val, n) @val = val @next = n end end
<phaul> exactly.
cd has joined #ruby
<phaul> I guess insert/delete in the middle would be maybe faster than just an Array, with copying, but, still O(n) either way. But everything else I expect the stdlib Array to be better than this. shift/prepend etc.
eddof13 has quit [Ping timeout: 268 seconds]
hurricanehrndz has quit [Quit: Goodbye]
ricer2 has quit [Remote host closed the connection]
venmx has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.3]
<phaul> havenwood: are you sure Hash is a double linked list?.. I can beleive it has double linked lists in it. Linked lists are not great for lookup :)
tdy has quit [Ping timeout: 268 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has quit [Ping timeout: 252 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
warrshrike has quit [Ping timeout: 256 seconds]
<havenwood> phaul: Since Ruby 1.9 it's been this implementation: https://www.igvita.com/2009/02/04/ruby-19-internals-ordered-hash/
<havenwood> phaul: Then in 2.4 it got some nice changes: https://blog.heroku.com/ruby-2-4-features-hashes-integers-rounding#hash-changes
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> phaul: And in Ruby 2.5 they switched from SipHash24 to SipHash 13 - following Rust's lead.
<havenwood> (One c round and three d rounds.)
<havenwood> "full cycle linear congruential generator" - has a ring to it
<phaul> I would have to read this, once I dug myself into this already but most of it is gone by now..
<phaul> I was just saying that if you are pedantic.. A hash is not a double linked list
<phaul> it can contain double linked lists
<havenwood> "a Hash is also a doubly-circular linked list!" ~ Ilya Grigorik
<phaul> "also" :)
<havenwood> phaul: My girlfriend only allow me one pedantry per day. I've already used todays!
<havenwood> She usually uses her's earlier in the day than I do. :P
<phaul> Im not going to compete :)
Dimik has joined #ruby
m27frogy has quit [Ping timeout: 250 seconds]
<phaul> havenwood: how was London?
<havenwood> phaul: it was a grueling trip, but got some good work done.
m27frogy has joined #ruby
TheBloke has joined #ruby
gix has quit [Quit: Client exiting]
whysthatso has joined #ruby
cagomez has joined #ruby
whysthatso has quit [Quit: whysthatso]
AJA4350 has joined #ruby
phaul has quit [Ping timeout: 272 seconds]
Metus has joined #ruby
Xiti` has joined #ruby
Pixi_ has joined #ruby
tdy has joined #ruby
SeepingN has quit [Ping timeout: 245 seconds]
Xiti has quit [Ping timeout: 245 seconds]
Xiti` has quit [Ping timeout: 240 seconds]
sanscoeu_ has joined #ruby
sanscoeur has quit [Ping timeout: 252 seconds]
sanscoeu_ has quit [Ping timeout: 240 seconds]
mangold has joined #ruby
esrse has joined #ruby
nexraf1 has quit [Ping timeout: 252 seconds]
SeepingN has joined #ruby
TheBloke has quit [Quit: Textual IRC Client: www.textualapp.com]
cthulchu has quit [Ping timeout: 244 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has quit [Ping timeout: 245 seconds]
pskosinski has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby
RougeR has quit [Ping timeout: 260 seconds]
darkhanb has joined #ruby
akaiiro has quit [Ping timeout: 272 seconds]
AJA4350 has quit [Remote host closed the connection]
darkhanb has quit [Quit: Textual IRC Client: www.textualapp.com]
kapil____ has joined #ruby
hurricanehrndz has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.3]
al2o3-cr has joined #ruby
cagomez has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 264 seconds]
mangold has quit [Quit: This computer has gone to sleep]
Azure has joined #ruby
akaiiro has joined #ruby
mangold has joined #ruby
akaiiro has quit [Ping timeout: 272 seconds]
sanscoeur has joined #ruby
Pixi_ has quit [Quit: Pixi_]
sanscoeur has quit [Remote host closed the connection]
Xiti has joined #ruby
akaiiro has joined #ruby
braincrash has quit [Quit: bye bye]
Sauvin has joined #ruby
Xiti` has joined #ruby
braincrash has joined #ruby
c0san0stra has quit [Ping timeout: 268 seconds]
Xiti has quit [Ping timeout: 268 seconds]
Metus has quit [Disconnected by services]
dmitch has quit [Ping timeout: 268 seconds]
c0san0stra has joined #ruby
agrecascino has quit [Ping timeout: 252 seconds]
pragathoys has joined #ruby
agrecascino has joined #ruby
akaiiro has quit [Ping timeout: 252 seconds]
pragathoys has quit [Quit: Going offline, see ya! (www.adiirc.com)]
SeepingN has joined #ruby
akaiiro has joined #ruby
darkhanb has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lightstalker has quit [Ping timeout: 240 seconds]
Inline has quit [Quit: Leaving]
SeepingN has joined #ruby
NightMonkey_ has quit [Quit: ZNC - http://znc.in]
NightMonkey has joined #ruby
MoritaShinobu has joined #ruby
nofxx has quit [Ping timeout: 252 seconds]
Sauvin has quit [Quit: Leaving]
m27frogy has quit [Ping timeout: 272 seconds]
asphyxia has quit [Ping timeout: 245 seconds]
nofxx has joined #ruby
lightstalker has joined #ruby
Sauvin has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m27frogy has joined #ruby
asphyxia has joined #ruby
_whitelogger has joined #ruby
nezt0r is now known as n3ztor
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
NightMonkey has quit [Ping timeout: 268 seconds]
m0nty0ne has joined #ruby
aufi has joined #ruby
kaleido has quit [Read error: Connection reset by peer]
n3ztor has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
OrangeManBad is now known as CheetoH1tlerBad
conta has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
aupadhye has joined #ruby
gigetoo has joined #ruby
dellavg_ has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
aufi has quit [Ping timeout: 240 seconds]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
zapata has quit [Quit: WeeChat 2.3]
akaiiro has quit [Remote host closed the connection]
skwurl has joined #ruby
dellavg_ has quit [Ping timeout: 252 seconds]
cranq has quit [Ping timeout: 240 seconds]
cranq has joined #ruby
NightMonkey has joined #ruby
roshanavand has joined #ruby
vondruch has joined #ruby
venmx has joined #ruby
ellcs has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
venmx has quit [Ping timeout: 268 seconds]
Puffball_ has joined #ruby
ellcs has quit [Ping timeout: 252 seconds]
spectralkitty is now known as lunarkittychan
xfbs has joined #ruby
Cthulu201 has quit [Remote host closed the connection]
Cthulu201 has joined #ruby
nowhere_man has joined #ruby
asphyxia has quit [Ping timeout: 272 seconds]
Puffball has quit [Remote host closed the connection]
Puffball_ has quit [Remote host closed the connection]
Puffball has joined #ruby
clemens3 has joined #ruby
aufi has joined #ruby
<TvL2386> hi guys, is it possible to connect ruby on windows to mssql on windows?
<TvL2386> (I don't want to use powershell)
<TvL2386> never mind
Yxhuvud has joined #ruby
phaul has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Client Quit]
despai has joined #ruby
ricer2 has joined #ruby
za1b1tsu has joined #ruby
despai has quit [Quit: ...]
weaksauce has quit [Ping timeout: 246 seconds]
ua_ has quit [Ping timeout: 252 seconds]
venmx has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
xfbs has quit [Read error: Connection reset by peer]
xfbs has joined #ruby
nexraf1 has joined #ruby
nowhere_man has quit [Ping timeout: 268 seconds]
johnny56 has quit [Read error: Connection reset by peer]
xfbs has quit [Quit: afk]
roshanavand has quit [Remote host closed the connection]
johnny56 has joined #ruby
nowhere_man has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.3]
voolik has joined #ruby
nertzy has joined #ruby
al2o3-cr has joined #ruby
nexraf1 has quit [Quit: WeeChat 2.2]
conta has quit [Quit: conta]
pragathoys has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
Cthulu201 has joined #ruby
roshanavand has joined #ruby
apeiros has joined #ruby
elphe has joined #ruby
<phaul> hi apeiros, hows mergeing the ruboto PR going?
apparition has joined #ruby
cd has quit [Quit: cd]
cd has joined #ruby
AJA4350 has joined #ruby
jsc has joined #ruby
jsc is now known as status402
elphe has quit [Ping timeout: 268 seconds]
conta has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
asphyxia has joined #ruby
voolik has quit [Quit: Taking a nap...]
doubledup has joined #ruby
doubledup has quit [Remote host closed the connection]
esrse has quit [Ping timeout: 244 seconds]
doubledup has joined #ruby
doubledup has quit [Remote host closed the connection]
ua has joined #ruby
jamied has joined #ruby
status402 has quit [Quit: status402]
c0ncealed4 has quit [Read error: Connection reset by peer]
status402 has joined #ruby
elphe has joined #ruby
c0ncealed4 has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
dellavg_ has joined #ruby
apeiros__ has joined #ruby
k0mpa has joined #ruby
elphe has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
jcalla has joined #ruby
aufi has quit [Ping timeout: 264 seconds]
TheBloke has joined #ruby
paraxial has quit [Read error: Connection reset by peer]
ua has quit [Ping timeout: 252 seconds]
aaltohenrik has joined #ruby
ua has joined #ruby
vonfry has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
kapil____ has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
zapata has joined #ruby
mostlybadfly has joined #ruby
aufi has joined #ruby
vonfry has quit [Quit: WeeChat 2.2]
reber has joined #ruby
elphe has joined #ruby
asphyxia has quit [Ping timeout: 272 seconds]
GodFather has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
status402 has quit [Quit: status402]
Wojnar has joined #ruby
voolik has joined #ruby
aupadhye has quit [Quit: Leaving]
elphe has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
elphe has joined #ruby
za1b1tsu has joined #ruby
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
pragathoys has quit [Quit: Going offline, see ya! (www.adiirc.com)]
k0mpa has quit [Remote host closed the connection]
pragathoys has joined #ruby
gigetoo has quit [Ping timeout: 250 seconds]
dmitch has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
spiette has quit [Quit: ZNC 1.7.1 - https://znc.in]
elphe has quit [Ping timeout: 244 seconds]
spiette has joined #ruby
rippa has joined #ruby
SeepingN has joined #ruby
<Iambchop> TvL2386: "You can connect to a [MS]SQL Database using Ruby on Windows, Linux, or Mac." https://docs.microsoft.com/en-us/sql/connect/ruby/ruby-driver-for-sql-server?view=sql-server-2017
jlebrech has joined #ruby
<jlebrech> i'm trying to run capybara with js support and am getting this
<jlebrech> undefined method `<<' for {:read_timeout=>2, :continue_timeout=>nil, :debug_output=>nil}:Hash
<Iambchop> TvL2386: If you're hitting an error post a gist.
paraxial has joined #ruby
pragathoys has left #ruby ["Closing Window"]
Tempesta has quit [Quit: AdiIRC is updating to v3.3 Beta Build (2018/10/31 UTC) 64 Bit]
Rapture has joined #ruby
<Iambchop> TvL2386: It's been years since I've tried (and don't have a Windows box to test on) but it did work the last I tried.
<Iambchop> jlebrech: can you post a gist of the code and full trace of the error?
Tempesta has joined #ruby
<al2o3-cr> {}.respond_to? :<< #=> false
<jlebrech> Iambchop: https://pastebin.com/0fqFF3zK
<ruby[bot]> jlebrech: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<al2o3-cr> >> 1
<ruby[bot]> al2o3-cr: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
despai has joined #ruby
<jlebrech> Iambchop: i'm trying to run my first capybara test, it's not my code i'm sure. i've seen this issue with webmock but i've not got mocking set up.
<jlebrech> how would i find out which gem is causing the issue?
<jlebrech> my test runs without js, but as soon as I put js: true i get that error for the same test
krawchyk has joined #ruby
<Iambchop> jlebrech: paste the output of "bundle show"
<jlebrech> I might be on to something, different error when i commented out fakeweb
Inline has joined #ruby
Inline has quit [Remote host closed the connection]
Inline has joined #ruby
elphe has joined #ruby
bak1an has joined #ruby
<Iambchop> jlebrech: let us know if you figure it out or still have trouble :)
<jlebrech> Iambchop: now chromedriver is running on 9515 but getting unable to connect to chromedriver 127.0.0.1:9516
orbyt_ has joined #ruby
<jlebrech> how to specify the port?
elphe has quit [Ping timeout: 244 seconds]
kaleido has joined #ruby
elphe has joined #ruby
despai has quit [Quit: ...]
<Iambchop> jlebrech: are you using the chromedriver-helper gem?
<jlebrech> no
<jlebrech> just selenium-webdriver
<jlebrech> or at least trying to use it
<jlebrech> Iambchop: thanks
elphe has quit [Ping timeout: 268 seconds]
reber has quit [Remote host closed the connection]
<dachi> jlebrech I was getting that yesterday but only when I built my gem
<jlebrech> it opened chrome hehe
<dachi> running with $ruby -Ilib was fine
<dachi> It started to work with executable only after I restarted mac
<dachi> I tried many things though, there was something with Xcode probably
<dachi> I was using headless chromedriver
<jlebrech> it's opening chrome now, is that doing to be a problem for circle ci?
<dachi> with Watir
<jlebrech> going*
<jlebrech> Iambchop: thanks a lot i've been banging my head for weeks, as i've been told to write test only on fridays
elphe has joined #ruby
<Iambchop> jlebrech: you might be able to use headless chrome in your ci
elphe has quit [Ping timeout: 260 seconds]
j416 has quit [Ping timeout: 252 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
CheetoH1tlerBad has quit [Ping timeout: 260 seconds]
j416 has joined #ruby
elphe has joined #ruby
chouhoulis has joined #ruby
<TvL2386> thx Iambchop
TheBloke has quit [Read error: Connection reset by peer]
conta has quit [Ping timeout: 268 seconds]
TheBloke has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
CheetoH1tlerBad has joined #ruby
beowuff has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
elphe has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
apparition has quit [Quit: Bye]
gigetoo has joined #ruby
nowhere_man has joined #ruby
<jlebrech> mhh now i could use VCR with capybara as i'm writing integration tests on fridays :)
elphe has joined #ruby
<jlebrech> re_record after 7 days :)
arup_r has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
rubydoc has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 252 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rubydoc has joined #ruby
rubydoc has quit [Ping timeout: 268 seconds]
elphe has joined #ruby
elphe has quit [Ping timeout: 244 seconds]
Dimik has quit [Ping timeout: 244 seconds]
arup_r has quit []
rubydoc has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
sanscoeur has joined #ruby
sanscoeur has quit [Remote host closed the connection]
jcarl43 has joined #ruby
elphe has joined #ruby
darkhanb has joined #ruby
moei has joined #ruby
aufi has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 268 seconds]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
impermanence has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
elphe has joined #ruby
roshanavand has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 264 seconds]
cthulchu_ has joined #ruby
apeiros__ has quit [Read error: Connection reset by peer]
ivanskie has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
GodFather has joined #ruby
tdy has quit [Ping timeout: 260 seconds]
elphe has joined #ruby
akaiiro has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
TheBloke has quit [Quit: Textual IRC Client: www.textualapp.com]
elphe has joined #ruby
jlebrech has quit [Remote host closed the connection]
roshanavand has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
troulouliou_dev has joined #ruby
despai has joined #ruby
xfbs has joined #ruby
elphe has joined #ruby
Dbugger has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
despai has quit [Quit: ...]
elphe has joined #ruby
Xiti` has quit [Quit: Xiti`]
roshanavand has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 268 seconds]
elphe has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
eddof13 has joined #ruby
elphe has joined #ruby
za1b1tsu has quit [Ping timeout: 268 seconds]
elphe has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
elphe has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
MoritaShinobu has quit [Ping timeout: 252 seconds]
elphe has quit [Ping timeout: 252 seconds]
despai has joined #ruby
despai has quit [Client Quit]
elphe has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
venmx has quit [Ping timeout: 244 seconds]
troulouliou_dev has quit [Quit: Leaving]
GodFather has joined #ruby
mroutis has joined #ruby
dinfuehr has quit [Ping timeout: 272 seconds]
dinfuehr has joined #ruby
elphe has joined #ruby
krawchyk has quit [Quit: krawchyk]
elphe has quit [Ping timeout: 244 seconds]
Wojnar has quit [Remote host closed the connection]
clemens3 has quit [Ping timeout: 252 seconds]
elphe has joined #ruby
akaiiro has quit [Ping timeout: 268 seconds]
za1b1tsu has joined #ruby
mroutis has quit [Remote host closed the connection]
eckhardt has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
elphe has quit [Ping timeout: 250 seconds]
za1b1tsu has quit [Ping timeout: 244 seconds]
Dbugger has quit [Remote host closed the connection]
ellcs has joined #ruby
im0nde has joined #ruby
voolik has quit [Quit: Taking a nap...]
za1b1tsu has joined #ruby
voker57 has quit [Quit: No Ping reply in 180 seconds.]
voker57 has joined #ruby
whysthatso has joined #ruby
elphe has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.2]
reber has joined #ruby
za1b1tsu has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
Xiti has joined #ruby
tdy has joined #ruby
elphe has joined #ruby
ShekharReddy has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
k0mpa has joined #ruby
d10n-work has joined #ruby
apeiros has joined #ruby
roshanavand has joined #ruby
venmx has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
apeiros__ has joined #ruby
mochiyoda has quit [Ping timeout: 264 seconds]
ellcs has quit [Ping timeout: 250 seconds]
pskosinski has quit [Ping timeout: 245 seconds]
elphe has joined #ruby
pskosinski has joined #ruby
voolik has joined #ruby
elphe has quit [Ping timeout: 244 seconds]
roshanavand has quit [Remote host closed the connection]
elphe has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
roshanavand has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
k0mpa has quit [Remote host closed the connection]
elphe has joined #ruby
eddof13 has quit [Quit: eddof13]
ellcs has quit [Ping timeout: 250 seconds]
ellcs has joined #ruby
skwurl has quit [Quit: WeeChat 2.2]
elphe has quit [Ping timeout: 240 seconds]
<ivanskie> hi
<ivanskie> i have a net::ssh or net::ssh::gateway question again :)
zapata has quit [Read error: Connection reset by peer]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
<eam> ivanskie: what's up
zapata has joined #ruby
<ivanskie> i'm trying to do local forward now, through bastion host
voolik has quit [Quit: Leaving]
<ivanskie> ssh -f my_bastion_host -L $myport:$RDS_HOSTNAME:$RDS_PORT "sleep 10"
<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
<ivanskie> i tried this: https://dpaste.de/LMYe it aint working
eckhardt has joined #ruby
za1b1tsu has quit [Ping timeout: 245 seconds]
<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
elphe has joined #ruby
<ivanskie> am i crazy for trying to do this this way? lol
<kaleido> what are you trying to do? send postgres queries to a server hiding behind an ssh tunnel?
<kaleido> sorry, i'm not a pro by any stretch so i can't determine just from reading your paste.
<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?
elphe has quit [Ping timeout: 252 seconds]
akaiiro has joined #ruby
alicef has quit [Ping timeout: 246 seconds]
<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.
<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.
reber has quit [Read error: Connection reset by peer]
<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.
<ivanskie> i've got Teletype (tty) / Thor gem going.
<ivanskie> for command line app
darkhanb has joined #ruby
<ivanskie> i have everything done except the tunnel building :(
<ivanskie> i've tried building a system ssh command line string. and something isn't working right.
<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
alicef has joined #ruby
<ivanskie> oh i think i just found the issue
sanscoeur has joined #ruby
<ivanskie> i did it!!!!!
elphe has joined #ruby
<ivanskie> cake time. unfortunately the one day i actually want to grab a beer. work fridge only has pop :( sad day
<ivanskie> fridays are so quiet here
<ivanskie> i noticed in debug output that it says when forwarding agent closes...
elphe has quit [Ping timeout: 244 seconds]
<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
<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
eddof13 has joined #ruby
elphe has joined #ruby
zapata has quit [Ping timeout: 252 seconds]
elphe has quit [Ping timeout: 272 seconds]
zapata has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
elphe has joined #ruby
druonysus has joined #ruby
alicef has quit [Ping timeout: 246 seconds]
reber has joined #ruby
mochiyoda has joined #ruby
alicef has joined #ruby
jetchisel has joined #ruby
sagax has quit [Ping timeout: 252 seconds]
bootstrappm has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
<bootstrappm> (crossposted to #rubyonrails): hey all, I wanted to get a little survey of some members of the community, please feel free to point me in the right direction if I'm in the wrong place. We've been having a hard time filling this position (https://www.linkedin.com/jobs/cap/view/911188581/?pathWildcard=911188581&trk=mcm), and I was wondering where do you think we should advertise to get in front of people that have been
<bootstrappm> using Ruby for several years?
reber__ has joined #ruby
reber has quit [Ping timeout: 246 seconds]
reber has joined #ruby
reber__ has quit [Ping timeout: 268 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ellcs has quit [Ping timeout: 250 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alicef has quit [Ping timeout: 246 seconds]
alicef has joined #ruby
eddof13 has quit [Quit: eddof13]
elphe has quit [Ping timeout: 244 seconds]
eddof13 has joined #ruby
<havenwood> bootstrappm: In-person in Boston or remote?
<havenwood> bootstrappm: Have you tried the Boston Ruby Meetup?
elphe has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bootstrappm> havenwood: In person, a bit old school
<bootstrappm> and I haven't! I'll look them up now
eckhardt has joined #ruby
kaleido has quit [Read error: Connection reset by peer]
<ivanskie> is there a way to modify yaml file without destroying the comments?
elphe has quit [Ping timeout: 268 seconds]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dellavg_ has quit [Ping timeout: 246 seconds]
beefjoe has joined #ruby
<JJonah> is it possible to use `cycle` on an array and then extract the nth element using `[]` (or another method) without first converting the Enumerator to an array? Said another way, can you get the nth element of an Enumerator without calling `next` n times?
elphe has joined #ruby
timhugh has joined #ruby
timhugh has quit [Quit: timhugh]
xfbs has quit [Quit: afk]
<havenwood> JJonah: lazy.drop(index).first
whysthatso has quit [Quit: whysthatso]
<havenwood> >> 'JJonah'.each_char.cycle.lazy.drop(42).first
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood> #=> "J"
reber has quit [Remote host closed the connection]
TheBloke has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 268 seconds]
ta_ has joined #ruby
hahuang6- is now known as hahuang65
alicef has quit [Ping timeout: 246 seconds]
justinstoller has joined #ruby
<apeiros__> JJonah: ary[nth % ary.length]
apeiros__ is now known as apeiros
ta_ has quit [Remote host closed the connection]
<apeiros> no need for expensive iteration when you've maths for the rescue.
ta_ has joined #ruby
<havenwood> Maths ftw.
jenrzzz has joined #ruby
RougeR has joined #ruby
venmx has quit [Ping timeout: 245 seconds]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
venmx has joined #ruby
jordanm has quit [Remote host closed the connection]
paraxial has quit [Remote host closed the connection]
SCHAPiE has quit [Remote host closed the connection]
alicef has joined #ruby
paraxial has joined #ruby
orbyt_ has joined #ruby
asphyxia has joined #ruby
justinstoller has quit []
kapil____ has quit [Quit: Connection closed for inactivity]
SCHAPiE has joined #ruby
roshanavand has quit [Remote host closed the connection]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
impermanence has quit [Ping timeout: 244 seconds]
alicef has quit [Ping timeout: 246 seconds]
venmx has quit [Ping timeout: 244 seconds]
elphe has quit [Ping timeout: 244 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fredlinhares has joined #ruby
alicef has joined #ruby
eddof13 has quit [Quit: eddof13]
eddof13 has joined #ruby
eckhardt has joined #ruby
beefjoe has quit [Read error: Connection reset by peer]
eckhardt has quit [Client Quit]
RougeR has quit [Ping timeout: 272 seconds]
asphyxia has quit [Quit: leaving]
TheBloke has quit [Quit: Textual IRC Client: www.textualapp.com]
RougeR has joined #ruby
im0nde has quit [Quit: im0nde]
jetchisel has quit [Ping timeout: 240 seconds]
hurricanehrndz has quit [Ping timeout: 246 seconds]
alicef has quit [Ping timeout: 246 seconds]
dviola has joined #ruby
jordanm has joined #ruby