havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.2, 2.5.4, 2.4.5: 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!
DaRock has joined #ruby
<elcontrastador> Why the startup latency when executing from gem compared to running script as argument to ruby? See timings below each example. https://gist.github.com/elcontrastador/44f6beed60246296616f610c5025990a
bjpenn has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby
Eiam has joined #ruby
<zenspider> elcontrastador: please tell me you don't have "." in your PATH
<zenspider> latency is probably proportional to `gem list | wc -l`
<elcontrastador> zenspider; nope
<elcontrastador> 276
tiogrand has joined #ruby
<elcontrastador> Thinking it has something to do with the aws-sdk gemset
<zenspider> or, more accurately, to the size of the contents of that mess of gems
<elcontrastador> (latency)
<elcontrastador> This is similar startup latency on the linux server this is deployed to, as well.
<elcontrastador> that server has very few gems installed
<elcontrastador> aws-sdk gemset is huge....only using aws-sdk-s3 but will have to look at all that pulls in or references
<zenspider> might depend on too many things that I won't speculate on. depends on what log2s3.rb is doing, how it loads its dependencies, etc.
crankharder has quit [Ping timeout: 272 seconds]
<zenspider> you can start to feel it out with something like `time ruby -d -S log2s3.rb`
<zenspider> `ruby -d` prints out ALL exceptions, even if they're handled... so don't freak out at the noise
<zenspider> but time to first (relevant) exception might be revealing
<elcontrastador> zenspider: Lots of aws-sdk warnings....
<elcontrastador> shitloads
renich has joined #ruby
<zenspider> yup. expected. but go compare it against your fast / good run
<zenspider> might be something really stupid tho... run it locally, it might load locally. who knows. you're gonna have to dig in an dread
renich_ has quit [Ping timeout: 250 seconds]
<zenspider> dread -> read
<elcontrastador> yeah... first pass groking thru outputs look similar/identical....will get into it
<elcontrastador> this is a great place to start tho
<elcontrastador> thx
bjpenn has joined #ruby
millerti has quit [Quit: Textual IRC Client: www.textualapp.com]
JoeA2552 has joined #ruby
tpanarch1st has quit [Ping timeout: 246 seconds]
akosednar has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
akosednar has joined #ruby
akosednar has joined #ruby
akosednar has quit [Changing host]
ellcs has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
rindolf has quit [Ping timeout: 245 seconds]
JoeA2552 has quit [Remote host closed the connection]
Echo has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
rbdr has quit [Quit: WeeChat 2.4]
segy has quit [Ping timeout: 246 seconds]
eddof13 has quit [Quit: eddof13]
segy has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
GreenBio has joined #ruby
<GreenBio> hi
<GreenBio> i need help!
Swyper has quit [Ping timeout: 245 seconds]
jaddison has quit [Quit: jaddison]
lupine has quit [Ping timeout: 264 seconds]
Echo has quit []
lupine has joined #ruby
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby
tpanarch1st has joined #ruby
Swyper has joined #ruby
Swyper has quit [Ping timeout: 272 seconds]
<havenwood> GreenBio: please ask away!
renich_ has joined #ruby
renich has quit [Ping timeout: 272 seconds]
b6b has left #ruby ["Leaving"]
Swyper has joined #ruby
<GreenBio> this is my error ... "cannot load such file -- bundler/setup (LoadError)"
<havenwood> GreenBio: Is Bundler installed on your current Ruby?
<havenwood> GreenBio: gem install bundler
<havenwood> GreenBio: If so, sanity check:
<havenwood> gem which bundler
<havenwood> which bundle
<havenwood> which -a bundle
<havenwood> which bundle | head -n1
AJA4350 has quit [Remote host closed the connection]
Devalo has joined #ruby
devil_tux has quit [Ping timeout: 268 seconds]
bjpenn has quit [Ping timeout: 250 seconds]
esrse has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
tiogrand has quit [Read error: Connection reset by peer]
ogres has joined #ruby
cthu| has quit [Ping timeout: 246 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
iMadper|` is now known as ````````iMadper
````````iMadper has quit [Changing host]
````````iMadper has joined #ruby
Swyper has quit [Remote host closed the connection]
mangold has joined #ruby
devil_tux has joined #ruby
mangold has quit [Client Quit]
cow[moo] has joined #ruby
devil_tux has quit [Ping timeout: 246 seconds]
mangold has joined #ruby
j416 has quit [Ping timeout: 272 seconds]
j416 has joined #ruby
csjp has joined #ruby
csjp has left #ruby [#ruby]
Swyper has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
houhoulis has quit [Remote host closed the connection]
bambanx has joined #ruby
tdy1 has joined #ruby
bambanx has quit [Max SendQ exceeded]
houhoulis has joined #ruby
bambanx has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
houhoulis has quit [Remote host closed the connection]
devil_tux has joined #ruby
wayfaringsoldier has quit [Quit: .]
devil_tux has quit [Ping timeout: 246 seconds]
GreenBio has quit [Ping timeout: 256 seconds]
Swyper has quit [Remote host closed the connection]
bjpenn has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
iNs has quit [Ping timeout: 256 seconds]
laaron has quit [Ping timeout: 256 seconds]
Fusl has quit [Ping timeout: 256 seconds]
iNs has joined #ruby
braincrash has joined #ruby
laaron has joined #ruby
apparition has joined #ruby
Fusl has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
mangold has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
Swyper has joined #ruby
devil_tux has joined #ruby
Swyper has quit [Remote host closed the connection]
devil_tux has quit [Ping timeout: 272 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
ur5us_ has quit [Remote host closed the connection]
Swyper has joined #ruby
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bjpenn has quit [Read error: Connection reset by peer]
havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.2, 2.5.5, 2.4.5: 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!
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
<havenwood> So many Rubies this week. 2.5.5!
<havenwood> It includes some nice backported fixes.
<uplime> i can't wait for the inevitable ruby that breaks all backwards compatibility
<havenwood> In traditional font size names Pearl is 5 points, Ruby is 5.5 and Nonpareil is 6.
tpanarch1st has quit [Quit: Thanks for your help, nice to see you, take care.]
<havenwood> Or just skip to 28 points, Double English. I speak English, and program in Double English.
devil_tux has joined #ruby
devil_tux has quit [Ping timeout: 244 seconds]
DaRock has quit [Ping timeout: 245 seconds]
dellavg__ has joined #ruby
marmotini_ has joined #ruby
Swyper has quit [Remote host closed the connection]
marmotini_ has quit [Ping timeout: 272 seconds]
Tempesta has quit [Quit: See ya!]
bjpenn has joined #ruby
Tempesta has joined #ruby
Inline has quit [Quit: Leaving]
devil_tux has joined #ruby
esrse has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
esrse has joined #ruby
devil_tux has quit [Ping timeout: 255 seconds]
marmotini_ has joined #ruby
conta has joined #ruby
ansraliant has joined #ruby
marmotini_ has quit [Ping timeout: 246 seconds]
qual has joined #ruby
Fusl has quit [Ping timeout: 256 seconds]
devil_tux has joined #ruby
bjpenn has quit [Ping timeout: 246 seconds]
jcarl43 has quit [Quit: WeeChat 2.4]
devil_tux has quit [Ping timeout: 250 seconds]
mangold has quit [Quit: This computer has gone to sleep]
Cthulu201 has quit [Ping timeout: 246 seconds]
Cthulu201 has joined #ruby
aufi has joined #ruby
mangold has joined #ruby
Fusl has joined #ruby
Fridtjof has quit [Ping timeout: 268 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
marmotini_ has joined #ruby
reber has joined #ruby
gix- has quit [Ping timeout: 244 seconds]
clemens3_ has joined #ruby
am0123 has joined #ruby
renich_ has quit [Ping timeout: 272 seconds]
renich_ has joined #ruby
DaRock has joined #ruby
renich_ is now known as renich
andikr has joined #ruby
aufi has quit [Ping timeout: 245 seconds]
apparition has joined #ruby
devil_tux has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
devil_tux has quit [Ping timeout: 268 seconds]
clemens3_ has quit [Ping timeout: 250 seconds]
ferr has quit [Quit: WeeChat 2.4]
ferr has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
bambanx has quit [Quit: Leaving]
code_zombie has quit [Quit: Leaving]
lightstalker has quit [Ping timeout: 245 seconds]
TomyWork has joined #ruby
clemens3_ has joined #ruby
lightstalker has joined #ruby
esrse has quit [Ping timeout: 268 seconds]
devil_tux has joined #ruby
renich has quit [Ping timeout: 246 seconds]
````````iMadper has quit [Remote host closed the connection]
ansraliant has quit [Quit: My planet needs me]
devil_tux has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
ams__ has joined #ruby
_joes_ has joined #ruby
schleppel has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
DaRock has quit [Ping timeout: 246 seconds]
alem0lars has joined #ruby
DaRock has joined #ruby
aufi has joined #ruby
aufi_ has joined #ruby
aufi has quit [Read error: Connection reset by peer]
rindolf has joined #ruby
alem0lars has quit [Ping timeout: 250 seconds]
TomyWork has joined #ruby
am0123 has quit [Remote host closed the connection]
apparition has quit [Quit: Bye]
Fridtjof has joined #ruby
marcoecc has joined #ruby
bjpenn has joined #ruby
tdy1 has quit [Ping timeout: 252 seconds]
marcoecc has quit [Ping timeout: 252 seconds]
bjpenn has quit [Ping timeout: 245 seconds]
marcoecc has joined #ruby
stan has quit [Remote host closed the connection]
bjpenn has joined #ruby
themsay has quit [Read error: Connection reset by peer]
DaRock has quit [Read error: Connection reset by peer]
stan has joined #ruby
bjpenn has quit [Ping timeout: 245 seconds]
themsay has joined #ruby
marmotini_ has quit [Remote host closed the connection]
bjpenn has joined #ruby
devil_tux has joined #ruby
RougeR has joined #ruby
RougeR is now known as Guest30977
devil_tux has quit [Ping timeout: 246 seconds]
mangold has joined #ruby
alem0lars_ has joined #ruby
alem0lars_ has quit [Read error: Connection reset by peer]
skryking has quit [Ping timeout: 252 seconds]
stan has quit [Remote host closed the connection]
xlued has quit [Quit: Ping timeout (120 seconds)]
xlued has joined #ruby
skryking has joined #ruby
stan has joined #ruby
t0x has quit [Quit: Connection closed for inactivity]
Cyrus has quit [Ping timeout: 272 seconds]
aufi_ has quit [Ping timeout: 250 seconds]
Bish has quit [Ping timeout: 250 seconds]
xlued has quit [Quit: Ping timeout (120 seconds)]
xlued has joined #ruby
ged_ has joined #ruby
ged has quit [Read error: Connection reset by peer]
ged_ is now known as ged
suukim has joined #ruby
stan has quit [Remote host closed the connection]
stan has joined #ruby
minimal_life has joined #ruby
Cyrus has joined #ruby
stan has quit [Remote host closed the connection]
stan has joined #ruby
hightower2 has quit [Ping timeout: 250 seconds]
cyberarm has quit [Ping timeout: 255 seconds]
stan has quit [Remote host closed the connection]
stan has joined #ruby
bjpenn has quit [Ping timeout: 246 seconds]
stan_ has joined #ruby
stan has quit [Ping timeout: 252 seconds]
AJA4350 has joined #ruby
devil_tux has joined #ruby
stan has joined #ruby
stan_ has quit [Ping timeout: 252 seconds]
conta has quit [Ping timeout: 252 seconds]
devil_tux has quit [Ping timeout: 245 seconds]
ellcs has joined #ruby
lucasb has joined #ruby
minimal_life has quit [Quit: I am functioning within established parameters.]
conta has joined #ruby
sinanislekdemir has joined #ruby
sinanislekdemir has quit [Remote host closed the connection]
bjpenn has joined #ruby
cyberarm has joined #ruby
bjpenn has quit [Ping timeout: 246 seconds]
apparition has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
claw has quit [Remote host closed the connection]
reber has quit [Remote host closed the connection]
claw has joined #ruby
xrexeon has joined #ruby
RedSnarf has joined #ruby
ldnunes has joined #ruby
segy has quit [Ping timeout: 246 seconds]
segy has joined #ruby
aufi_ has joined #ruby
qual_ has joined #ruby
_joes_ has quit [Ping timeout: 252 seconds]
qual has quit [Ping timeout: 272 seconds]
AJA4350 has quit [Ping timeout: 245 seconds]
_joes_ has joined #ruby
foxxx0 is now known as jammerlappen
devil_tux has joined #ruby
DaRock has joined #ruby
devil_tux has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
jammerlappen is now known as foxxx0
bjpenn has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
teclator has joined #ruby
Ai9zO5AP has joined #ruby
bjpenn has quit [Ping timeout: 245 seconds]
AJA4350 has joined #ruby
bmurt has joined #ruby
_joes_ has quit [Ping timeout: 246 seconds]
_joes_ has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
hightower2 has joined #ruby
devil_tux has joined #ruby
_joes_ has quit [Ping timeout: 240 seconds]
xrexeon has quit [Ping timeout: 240 seconds]
Guest30977 has quit [Ping timeout: 250 seconds]
Semtex-H has joined #ruby
ubuntuisloved has joined #ruby
<TomyWork> # require 'date'; DateTime.parse('2019-03-15 13:01:11 UTC').strftime('%F %T') # How can I make this display times in the local time zone?
Guest30977 has joined #ruby
<TomyWork> local time zone = the system's configured time zone, basically whatever the "date" bash command shows
<darix> uplime: you youngster probably forgot all the fun of 1.8 to 2.0
<TomyWork> that was a fun time to start writing ruby
conta has quit [Ping timeout: 250 seconds]
jcalla has joined #ruby
apparition has quit [Quit: Bye]
bjpenn has joined #ruby
tau has joined #ruby
marcoecc has quit [Ping timeout: 272 seconds]
jokester has quit [Quit: shutdown]
devil_tux has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
jokester has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
stryek has joined #ruby
Rapture has joined #ruby
alem0lars_ has joined #ruby
alem0lars_ has quit [Read error: Connection reset by peer]
<kke> is there some neat way to "cyclically" (rolling?) get an item from an array? like let's say i have KEY = [1, 2, 3, 4, 5]. something clever to make something like KEY.cyclical(5) point to KEY[0], KEY.cyclical(6) to KEY[1], KEY.cyclical(11) to KEY[0]
<kke> well that method shouldn't be that difficult. i'm just thinking there's probably some trick i can't think of how this could be done with science.
<phaul> index % 5
qual_ has quit [Ping timeout: 246 seconds]
<phaul> &>> [1,2,3,4,5][13 % 5]
<rubydoc> # => 4 (https://carc.in/#/r/6i5u)
<TomyWork> >> require 'date'; DateTime.parse('2019-03-15 13:01:11 UTC').strftime('%F %T') # How can I make this display times in the local time zone?
<ruby[bot]> TomyWork: # => "2019-03-15 13:01:11" (https://eval.in/1084311)
<kke> phaul: ah, that's the trick i was looking for :)
<c-c> shouldn't that be
<TomyWork> c-c talking to me?
<c-c> &>> ar = [1,2,3,4,"foo","bar"]; ar[ar.length % 5]
<rubydoc> # => 2 (https://carc.in/#/r/6i5v)
<TomyWork> nm
<c-c> &>> ar = [1,2,3,4,"foo","bar"]; ar[22 % ar.length]
<rubydoc> # => "foo" (https://carc.in/#/r/6i5w)
devil_tux has joined #ruby
<c-c> kek
<TomyWork> yeaht the first one was wrong :)
<c-c> TomyWork: just fooling around
<TomyWork> -t
* c-c has convoluted mind
* TomyWork sets convolution matrix [[0,0,0],[0,1,0],[0,0,0]]
Swyper has quit [Remote host closed the connection]
<TomyWork> that should help
qual has joined #ruby
<phaul> c-c arr.length is certainly nicer as, but 5 == 5 :)
<phaul> s/ as //
dionysus69 has quit [Read error: Connection reset by peer]
rippa has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
reber has joined #ruby
devil_tux has quit [Ping timeout: 250 seconds]
mangold has joined #ruby
Semtex-H has quit [Ping timeout: 245 seconds]
RedSnarf has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
Guest30977 has quit [Ping timeout: 245 seconds]
hightower2 has quit [Ping timeout: 246 seconds]
bjpenn has quit [Ping timeout: 240 seconds]
<al2o3-cr> KEY.rotate(n).first
<al2o3-cr> nah, that's slow and dumb
grilix_ has joined #ruby
polishdub has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_joes_ has joined #ruby
devil_tux has joined #ruby
tpanarch1st has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
Swyper has joined #ruby
cyberarm has quit [Ping timeout: 255 seconds]
cyberarm has joined #ruby
cyberarm has quit [Ping timeout: 246 seconds]
ngw has joined #ruby
<ngw> I'm losing my mind on it
dante has quit [Ping timeout: 255 seconds]
xrexeon has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
DaRock has quit [Ping timeout: 246 seconds]
mangold has quit [Quit: This computer has gone to sleep]
faitswulff has joined #ruby
troulouliou_div2 has joined #ruby
Swyper has quit [Remote host closed the connection]
mangold has joined #ruby
Swyper has joined #ruby
_joes_ has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
<ngw> quit
ngw has quit [Quit: WeeChat 2.4]
bmurt has joined #ruby
bjpenn has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
bjpenn has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
blaguvest has joined #ruby
tdy1 has joined #ruby
renich has joined #ruby
grilix_ has quit [Ping timeout: 245 seconds]
dante has joined #ruby
mangold has joined #ruby
jaddison has joined #ruby
devil_tux has quit [Ping timeout: 245 seconds]
apparition has joined #ruby
renich_ has joined #ruby
orbyt_ has joined #ruby
renich has quit [Ping timeout: 245 seconds]
[Butch] has joined #ruby
dante has quit [Ping timeout: 258 seconds]
aufi_ has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
dante has joined #ruby
Azure has joined #ruby
bjpenn has joined #ruby
bjpenn has quit [Ping timeout: 246 seconds]
faitswulff has quit []
Inline has joined #ruby
AJA4350 has quit [Ping timeout: 255 seconds]
orbyt_ has quit [Ping timeout: 268 seconds]
ljarvis has quit [Ping timeout: 245 seconds]
dante has quit [Remote host closed the connection]
cthulchu has joined #ruby
dante has joined #ruby
cyberarm has joined #ruby
jcarl43 has joined #ruby
ljarvis_ has joined #ruby
ljarvis_ is now known as ljarvis
orbyt_ has joined #ruby
<al2o3-cr> why does this return 0..12 instead 1..13? https://carc.in/#/r/6i6j
<al2o3-cr> does it return back the indices?
renich_ has quit [Ping timeout: 272 seconds]
renich has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
eblip has quit [Read error: Connection reset by peer]
eb0t has quit [Read error: Connection reset by peer]
devil_tux has joined #ruby
eb0t has joined #ruby
eblip has joined #ruby
renich has quit [Ping timeout: 245 seconds]
mangold has quit [Quit: This computer has gone to sleep]
Swyper has joined #ruby
renich has joined #ruby
devil_tux has quit [Ping timeout: 245 seconds]
reber has quit [Remote host closed the connection]
<al2o3-cr> yeah, forget that. i was getting confucius.
xrexeon has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
bjpenn has joined #ruby
stan has quit [Ping timeout: 252 seconds]
apparition has quit [Quit: Bye]
_joes_ has joined #ruby
cthulchu has quit [Ping timeout: 245 seconds]
SuperL4g has joined #ruby
bjpenn has quit [Ping timeout: 246 seconds]
<phaul> &>> fake Hacker.say_something_smart
<rubydoc> stderr: -e:2:in `<main>': uninitialized constant Hacker (NameError) (https://carc.in/#/r/6i6o)
<phaul> :(
<phaul> &fake Hacker.say_something_smart
<rubydoc> I'll transmit the digital IB hard drive, that should matrix the AI bandwidth!
SuperLag has quit [Ping timeout: 252 seconds]
ldnunes has quit [Ping timeout: 244 seconds]
andikr has quit [Remote host closed the connection]
qual has quit [Quit: qual]
eddof13 has joined #ruby
stan has joined #ruby
ellcs has quit [Ping timeout: 250 seconds]
ubuntuisloved has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grilix_ has joined #ruby
clemens3_ has quit [Ping timeout: 255 seconds]
<havenwood> phaul: AI bandwidth engines set to full. engage!
Swyper has quit [Remote host closed the connection]
stan has quit [Ping timeout: 258 seconds]
_joes_ has quit [Ping timeout: 246 seconds]
sauvin has quit [Read error: Connection reset by peer]
kapil____ has joined #ruby
bjpenn has joined #ruby
lxsameer has quit [Quit: out]
bjpenn has quit [Ping timeout: 244 seconds]
bjpenn has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
waheedi has joined #ruby
bjpenn has quit [Ping timeout: 245 seconds]
devil_tux has joined #ruby
bjpenn has joined #ruby
nowhere_man has joined #ruby
<phaul> how do you specify --jit for rails db:seed ?
dionysus69 has joined #ruby
<havenwood> phaul: I guess: ruby --jit -S rails db:seed
<phaul> havenwood: thanks
TomyWork has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 258 seconds]
voidwatch has joined #ruby
<dionysus69> does the new jit compiler have noticeable performance improvements?
Dbugger has joined #ruby
ubuntuisloved has joined #ruby
<havenwood> dionysus69: for some things, yes! for other things, no!
<phaul> I'm doing a bulk import of 'stuff about 200_000_000 of them in a loop.. I think it's a good candidate for it
<dionysus69> I will see in time I guess :D
grilix_ has quit [Ping timeout: 272 seconds]
grilix_ has joined #ruby
Deesl has joined #ruby
hightower2 has joined #ruby
hightower2 has quit [Changing host]
hightower2 has joined #ruby
devil_tux has quit [Ping timeout: 272 seconds]
waheedi has quit [Quit: waheedi]
grilix has joined #ruby
grilix_ has quit [Read error: Connection reset by peer]
AJA4350 has joined #ruby
lytol has quit [Quit: lytol]
lytol has joined #ruby
SuperL4g has quit [Remote host closed the connection]
troulouliou_div2 has quit [Remote host closed the connection]
SeepingN has joined #ruby
code_zombie has joined #ruby
SuperLag has joined #ruby
cthu| has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu_ has quit [Ping timeout: 246 seconds]
ellcs has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
Deesl has quit [Quit: Textual IRC Client: www.textualapp.com]
sameerynho has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
tpanarch1st has quit [Ping timeout: 246 seconds]
suukim has quit [Quit: Konversation terminated!]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 245 seconds]
cow[moo] has joined #ruby
D9 has joined #ruby
zachk has joined #ruby
ellcs has joined #ruby
themsay has quit [Ping timeout: 240 seconds]
themsay has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
hightower3 has joined #ruby
hightower3 has quit [Changing host]
hightower3 has joined #ruby
<zenspider> havenwood: hah!
<zenspider> mmmmmaybe!
DWSR has joined #ruby
za1b1tsu has joined #ruby
<DWSR> Hey all, I'm trying to build a Docker container for my company's Rails 5.0.7.1 app. I'm trying to precompile assets in the container build (rather than before), but I'm running into some issues with initializers that are reaching out to things like MySQL or Redis which is not ideal. I noticed that 'initialize_on_precompile' was removed in Rails 4.1. What's the recommended way to deal with this situation?
<za1b1tsu> so regarding irb, there is this option:--single-irb Share self with sub-irb. Does anyone know what this is about, an example? Can't find anything on google
zachk has quit [Changing host]
zachk has joined #ruby
aqd has quit [Quit: Leaving]
t0xik has joined #ruby
<leftylink> za1b1tsu: in irb, I do `a = 5`, then I do `irb`, that is a sub-irb. In the sub-irb, what happens if I ask for `a` ? Without flag, it is not defined, NameError. With flag, it is defined (it is 5)
<leftylink> I hope it was clear. if not, maybe a quick log of my session will help, https://dpaste.de/PHbz/raw
zleap has joined #ruby
zleap has joined #ruby
zleap has quit [Changing host]
<zenspider> DWSR: please ask rails questions in the rails channel
<DWSR> zenspider: I've also asked it in there.
<zleap> DWSR: #rubyonrails
<za1b1tsu> leftylink, wow ok, I never knew I could start irb within irb, what's the usecase? how could it be useful to start irb in irb?
<zenspider> corollary: please don't ask rails questions in here
<zenspider> za1b1tsu: it's like starting a subshell... not terribly useful imo, but sometimes it is nice to have a stack to push/pop
bjpenn has quit [Ping timeout: 250 seconds]
devil_tux has joined #ruby
<zenspider> and I guess... the single-irb flag means that it is NOT like a subshell, and more like a dynamically scoped (Or non-scoped?) language.
<zenspider> I don't think I like that option
<za1b1tsu> hmm, ok, thank you
dar123 has joined #ruby
<dar123> hey guyz, i have install ruby 1.9.3 on ubuntu bionic with rvm or rbenv
<dar123> i was able to do it using 'apt-get install ruby1.9.3 on trusty
<zenspider> dar123: you know that's a bad idea, right?
<dar123> yes i know, but no choice. The app i am installing is very old
<dar123> will try to fork and update it when i have time
<dar123> atleast i am trying to update the OS from trusty to bionic
za1b1tsu_ has joined #ruby
aqd has joined #ruby
devil_tux has quit [Ping timeout: 255 seconds]
za1b1tsu has quit [Ping timeout: 245 seconds]
segy has quit [Ping timeout: 255 seconds]
<zenspider> dar123: doesn't matter if you update the OS if your app has gaping holes in it
<zenspider> not saying it does... but it probably does
DWSR has quit [Quit: Page closed]
debajit has joined #ruby
<debajit> I'm looking for a data structure / entity that will let me share some state across multiple threads. It looks like I could use Concurrent::Map or an Concurrent::Atom for this. Both reads and writes will be frequent. What is the best Concurrent Ruby solution I could use for this problem?
segy has joined #ruby
<zenspider> "best" is a myth. it entirely depends on what you're trying to do
falco_ has joined #ruby
<debajit> zenspider: "good enough" is good for me :)
<zenspider> if you need to pipeline workers, for example, then queue is perfectly sufficient. If you need some sort of shared mutable state object (which always feels like a bad idea to me), then you'll need something else. Even just a proxy wrapper with a mutex could work, but ... this way madness yadda yadda
bjpenn has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
voidwatch has quit [Ping timeout: 245 seconds]
grilix has quit [Ping timeout: 255 seconds]
falco_ has left #ruby [#ruby]
ur5us has joined #ruby
za1b1tsu_ has quit [Remote host closed the connection]
gix has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.4]
ravenousmoose has joined #ruby
sameerynho has quit [Ping timeout: 245 seconds]
devil_tux has joined #ruby
Azure has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
<robotcars> i am trying to iterate over a folder of yml files that contain intelligent guess of csv data, and update the columns in the yml (c0,c1,c3) with the headers of a csv template
<robotcars> i'm having an issue updating the yml value
<ruby[bot]> robotcars: 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
<robotcars> opy
devil_tux has quit [Read error: Connection reset by peer]
<robotcars> copy bot
ellcs has quit [Ping timeout: 240 seconds]
<robotcars> column/i/s
<zenspider> robotcars: "having an issue"...
ellcs has joined #ruby
<robotcars> i got it, ty zenspider
<zenspider> ... got what?
<robotcars> did the ruby[bot] kill my first question?
<zenspider> bots don't kill questions
<zenspider> I see no question marks. no questions.
<zenspider> I see you saying that you're "having an issue" and then never describe it
ubuntuisloved has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devil_tux has joined #ruby
<robotcars> can I update the yml file I've read with the values I replaced?
<robotcars> the yml file contains other values, but when I write it empties the .yml file
<zenspider> ?answers robotcars
<ruby[bot]> robotcars: How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
<zenspider> robotcars: you're not writing anything in your gist
zleap has quit [Quit: WeeChat 2.4]
<robotcars> i commented out L20, because it truncates the file
<zenspider> line 20 doesn't write out anything to a file
mochiyoda has joined #ruby
<zenspider> ...and I'm not patient enough to wait 5 minutes between responses
<robotcars> can you refresh the gist please
<zenspider> ok... read line 20, preferably out loud to yourself
devil_tux has quit [Read error: Connection reset by peer]
<debajit> zenspider: thanks!
<leftylink> note that as we can see from https://ruby-doc.org/core-2.5.0/File.html#method-c-open , the file is passed to the block. no other assumptions are made about the block. if the block needs to do something to the file, then it is obligated to do so by using the appropriate operations on the file
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> debajit: totally. good luck!
<zenspider> leftylink: I was hoping they'd work that out on their own by code reading..
<leftylink> ah, got it
<zenspider> meh... I'm simply not patient enough to help out in this case. not while I still have a new gem release to do
<zenspider> so... have at it :P
Fernando-Basso has joined #ruby
<robotcars> good luck ;D
tau is now known as supertramp
jcalla has quit [Ping timeout: 255 seconds]
devil_tux has joined #ruby
Ai9zO5AP has quit [Ping timeout: 268 seconds]
ams__ has quit [Quit: Connection closed for inactivity]
jcarl43 has joined #ruby
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has quit [Quit: leaving]
<zenspider> ruby_parser-legacy 1.0.0 released... finally. I'm so glad to get that off my plate
schleppel has quit [Quit: Konversation terminated!]
nowhere_man has joined #ruby
debajit has quit [Ping timeout: 256 seconds]
dar123 has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
tdy1 has quit [Ping timeout: 252 seconds]
hightower3 has quit [Ping timeout: 245 seconds]
physikoi has joined #ruby
<physikoi> hello #ruby , I'm suddenly getting a bunch of "make" errors. Even after wiping my gems, I get errors like this: "... make: *** No rule to make target ...". Thoughts? ty
Tempesta has quit [Ping timeout: 272 seconds]
grvgr has quit [Quit: Connection closed for inactivity]
jaddison has quit [Quit: jaddison]
Tempesta has joined #ruby
raulp has joined #ruby
raulp has left #ruby [#ruby]
ur5us has quit [Remote host closed the connection]
houhoulis has joined #ruby
rindolf has quit [Ping timeout: 246 seconds]
bjpenn has quit [Ping timeout: 245 seconds]
Puffball has joined #ruby
<miah> is there a Makefile in your directory? make isn't really related to ruby in any way.
SuperL4g has joined #ruby
bjpenn has joined #ruby
Dbugger has quit [Ping timeout: 240 seconds]
<physikoi> hey miah : full error: "make: *** No rule to make target `/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18/ruby/config.h', needed by `ruby_http_parser.o'. Stop."
<miah> are you trying to build ruby?
<physikoi> no, just trying to install gems
<physikoi> :/
devil_tux has quit [Ping timeout: 252 seconds]
<miah> do you have xcode installed and activated?
SuperLag has quit [Ping timeout: 272 seconds]
<miah> (as it looks like you're using the system ruby and its going to rely on the xcode dev kit stuff)
bjpenn has quit [Ping timeout: 246 seconds]
DaRock has joined #ruby
<physikoi> yeah, i do. did that stuff a while ago because I use macports for most stuff. any other possibilities spring to mind?
hahuang65 has quit [Quit: ZNC - https://znc.in]
<miah> have you updated osx recently?
hahuang65 has joined #ruby
<physikoi> relatively recently. im on 10.14.3
<miah> you have to re-do the xcode stuff every time you update macos
<physikoi> hm, pretty sure that' just for major points 10.13.x -> 10.14.x
hahuang65 has quit [Client Quit]
<physikoi> are you on macos?
hahuang65 has joined #ruby