<chainz>
anyone know if there's a way to run a ruby script starting at a certain line?
<chainz>
like ruby script.rb:34
<Zarthus>
chainz: import the lib, call the method declared in script.rb?
<Zarthus>
that's typically how portability becomes easy
Dbugger has joined #ruby
CrazyEddy has quit [Ping timeout: 246 seconds]
conta has quit [Quit: conta]
paranoicsan has quit [Quit: paranoicsan]
CrazyEddy has joined #ruby
coltkirk has joined #ruby
<chainz>
Zarthus: the script is like a thousand lines
hutch has quit [Ping timeout: 240 seconds]
bijan_ has joined #ruby
<Zarthus>
i can think of a hack where you copy the file, slice the lines, and eval it. Or you do a `head +43 | ruby`
<Zarthus>
might actually be -43, i do not remember.
<Zarthus>
Probably not what you want :P
<chainz>
so some background on what i'm trying
jaddison has joined #ruby
<chainz>
this is a bootstrap script after a server is launched. right now i'm troubleshooting issues and instead of starting all over (which i will eventually do to ensure it works from start) i want to step through each issue and resolve them all
cnsvc has quit [Ping timeout: 256 seconds]
<chainz>
the entire bootstrap process takes 45 mins to an hour
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
bijan__ has joined #ruby
tau has joined #ruby
weaksauce has joined #ruby
Swyper has quit [Quit: Swyper]
Swyper has joined #ruby
gix has joined #ruby
bijan__ has quit [Read error: Connection reset by peer]
vondruch has quit [Ping timeout: 272 seconds]
bijan_ has joined #ruby
dbz has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
hutch has joined #ruby
CrazyEddy has quit [Ping timeout: 246 seconds]
dbz has quit [Ping timeout: 268 seconds]
clemens3 has quit [Ping timeout: 268 seconds]
bijan_ has joined #ruby
themsay has quit [Ping timeout: 250 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
tau has quit [Remote host closed the connection]
bijan_ has joined #ruby
bijan__ has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: inabit. zz.]
RougeR has joined #ruby
bijan_ has joined #ruby
bijan__ has quit [Ping timeout: 252 seconds]
Beams has quit [Quit: .]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
HailTheRobots has quit [Ping timeout: 250 seconds]
<havenwood>
"solve the genie/zombie/wrestlers bug"
KeyJoo has quit [Quit: KeyJoo]
<havenwood>
🧞♂️🧟♂️🤼♂️🧞♀️🧟♀️🤼♀️
bijan__ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
CrazyEddy has joined #ruby
bijan__ has quit [Read error: Connection reset by peer]
Bish has quit [Quit: Lost terminal]
Aqo has joined #ruby
cnsvc has joined #ruby
malen has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
malen has joined #ruby
Renich_ has joined #ruby
Renich has quit [Ping timeout: 246 seconds]
malen has quit [Excess Flood]
reber has joined #ruby
aufi has quit [Ping timeout: 246 seconds]
Renich_ has quit [Read error: Connection reset by peer]
malen has joined #ruby
Renich has joined #ruby
tau has joined #ruby
bijan_ has joined #ruby
orbyt_ has joined #ruby
elcontrastador has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
bijan_ has joined #ruby
mostlybadfly has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
awkwords has quit [Quit: sleepy time]
mikecmpbll has joined #ruby
RedNifre has joined #ruby
bijan_ has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
malen has quit [Ping timeout: 246 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
malen has joined #ruby
mikecmpbll has quit [Quit: inabit.]
hutch has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
Swyper has quit [Quit: Swyper]
Swyper has joined #ruby
tau has quit [Remote host closed the connection]
ur5us has joined #ruby
awkwords has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
Scriptonaut has joined #ruby
bijan_ has joined #ruby
eckhard__ has joined #ruby
Guest14049 has quit [Ping timeout: 252 seconds]
eckhardt_ has quit [Ping timeout: 250 seconds]
mochiyoda has joined #ruby
HailTheRobots has joined #ruby
reber has quit [Remote host closed the connection]
<Scriptonaut>
hey guys, I'm working on a really old project that uses activerecord 2, I'm having an issue with connections to the database persisting after I've ran the query, and returned from the method. Here is a basic rundown of what is happening: https://gist.github.com/robins35/9d6b5bcc02550d8ee4f88402660b9850
<Scriptonaut>
this ends up meaning that when I iterate a few hundred time, it ends up maxing out my max connection pool within a few seconds
<Scriptonaut>
each time I call the method that runs this query, I return an array of the results (not an activerecord relation), yet the connection stays open
<phaul>
uhm, this looks like Sequel?
<Scriptonaut>
oh, ya it is, but isn't Sequel an activerecord wrapper?
<phaul>
afaik that's not activerecord, or was activerecord using Sequel back then?
<havenwood>
phaul: I concur, that's a fishy ActiveRecord 2.
<havenwood>
Scriptonaut: No
<Scriptonaut>
ah, ok. I guess this is a sequel problem
<Scriptonaut>
or is it behaving as intended?
krawchyk has joined #ruby
<havenwood>
Scriptonaut: I see you asked in the #sequel channel. It may take a minute for a response, but that's the best place.
ogres has quit [Quit: Connection closed for inactivity]
<Scriptonaut>
havenwood: thanks
<Scriptonaut>
ya
awkwords has quit [Ping timeout: 250 seconds]
awkwords has joined #ruby
Renich has quit [Remote host closed the connection]
piks3l has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
bijan__ has joined #ruby
awkwords has quit [Ping timeout: 250 seconds]
bijan__ has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
awkwords has joined #ruby
agent_white has joined #ruby
bambanx has joined #ruby
Dbugger has quit [Remote host closed the connection]
krawchyk has quit [Ping timeout: 268 seconds]
agent_white has quit [Quit: leaving]
RedNifre has quit [Ping timeout: 252 seconds]
awkwords has quit [Quit: sleepy time]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dellavg_ has quit [Ping timeout: 244 seconds]
bijan_ has joined #ruby
daemonwrangler has quit [Ping timeout: 246 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
jenrzzz has joined #ruby
krawchyk has joined #ruby
bijan_ has quit [Ping timeout: 252 seconds]
awkwords has joined #ruby
bijan_ has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
bijan_ has quit [Ping timeout: 252 seconds]
bijan_ has joined #ruby
jenrzzz has joined #ruby
HailTheRobots has quit [Remote host closed the connection]
HailTheRobots has joined #ruby
eckhard__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt_ has joined #ruby
jcalla has quit [Read error: Connection reset by peer]
awkwords_ has joined #ruby
awkwords has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
piks3l_ has joined #ruby
Fusl has quit [Excess Flood]
piks3l has quit [Ping timeout: 246 seconds]
Fusl has joined #ruby
perique has joined #ruby
daemonwrangler has joined #ruby
eckhardt_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
perique has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tau has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
blackswan has joined #ruby
jenrzzz has joined #ruby
cnsvc has quit [Ping timeout: 256 seconds]
krawchyk has quit [Quit: krawchyk]
krawchyk has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ogres has joined #ruby
Swyper has quit [Quit: Swyper]
awkwords_ has quit [Ping timeout: 268 seconds]
cnsvc has joined #ruby
awkwords has joined #ruby
polishdub has quit [Quit: leaving]
Swyper has joined #ruby
pavelz has joined #ruby
<pavelz>
hello
<pavelz>
i am trying to rename keys in array of hashes but it just ignores them