havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.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!
bitwinery has joined #ruby
Ai9zO5AP has quit [Quit: WeeChat 2.5]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xco has joined #ruby
akemStream2 has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
Zangief32 has joined #ruby
akemStream has quit [Ping timeout: 252 seconds]
gix has quit [Ping timeout: 252 seconds]
akemStream2 has quit [Ping timeout: 265 seconds]
cthulchu_ has joined #ruby
bitwinery has quit [Ping timeout: 240 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
bitwinery has joined #ruby
bitwinery has quit [Read error: Connection reset by peer]
Fernando-Basso has quit [Ping timeout: 252 seconds]
queip_ has joined #ruby
queip has quit [Ping timeout: 268 seconds]
queip_ is now known as queip
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
wildtrees has quit [Quit: Leaving]
kyrylo has joined #ruby
gnufied__ has quit [Ping timeout: 264 seconds]
mdsn has joined #ruby
meinside has joined #ruby
AJA4350 has quit [Quit: AJA4350]
jtperreault has quit [Quit: WeeChat 1.4]
queip has quit [Ping timeout: 265 seconds]
queip has joined #ruby
bitwinery has joined #ruby
cthulchu_ has quit [Ping timeout: 268 seconds]
greengriminal has joined #ruby
_whitelogger has joined #ruby
duderonomy has joined #ruby
jenrzzz has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ is now known as queip
CrazyEddy has quit [Ping timeout: 240 seconds]
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
koti has joined #ruby
fig-le-deunch has joined #ruby
CrazyEddy has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 265 seconds]
cow[moo] has quit [Ping timeout: 268 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
wymillerlinux has joined #ruby
koti has quit [Remote host closed the connection]
koti has joined #ruby
wymillerlinux has quit [Quit: wymillerlinux]
edwardly has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
queip_ is now known as queip
wymillerlinux has joined #ruby
wymillerlinux has quit [Remote host closed the connection]
wymillerlinux has joined #ruby
wymillerlinux has quit [Remote host closed the connection]
wymillerlinux has joined #ruby
bitwinery has quit [Quit: Leaving]
kyrylo has joined #ruby
wymillerlinux has quit [Quit: wymillerlinux]
bambanx has quit [Ping timeout: 245 seconds]
wymillerlinux has joined #ruby
mdsn has quit [Ping timeout: 245 seconds]
brool has quit [Ping timeout: 252 seconds]
fig-le-deunch has quit [Quit: Konversation terminated!]
jeremycw has joined #ruby
jeremycw has quit [Ping timeout: 240 seconds]
jackkall has joined #ruby
greengriminal has joined #ruby
greengriminal has quit [Client Quit]
drincruz has joined #ruby
bambanx has joined #ruby
ExoUNX has joined #ruby
jackkall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
al2o3-cr has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
bambanx has quit [Ping timeout: 240 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
al2o3-cr has quit [Read error: Connection reset by peer]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
al2o3-cr has joined #ruby
KeyJoo has joined #ruby
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
hutch has quit [Ping timeout: 252 seconds]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
koti has quit [Remote host closed the connection]
koti has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xco> hi all!
<xco> is it possible to store a .wav file in a Tempfile?
koti has quit [Remote host closed the connection]
belak has joined #ruby
koti has joined #ruby
edwardly has quit [Read error: Connection reset by peer]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
koti has quit [Ping timeout: 260 seconds]
jackkall has joined #ruby
spacesuitdiver has joined #ruby
KeyJoo has quit [Quit: KeyJoo]
quazimodo has quit [Ping timeout: 245 seconds]
quazimodo has joined #ruby
quazimodo has quit [Ping timeout: 265 seconds]
jackkall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
quazimodo has joined #ruby
Intelo has quit [Remote host closed the connection]
koti has joined #ruby
Intelo has joined #ruby
greengriminal has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
queip_ has joined #ruby
queip has quit [Ping timeout: 276 seconds]
queip_ is now known as queip
koti has quit [Remote host closed the connection]
stryek has quit [Quit: Connection closed for inactivity]
koti has joined #ruby
ur5us has quit [Remote host closed the connection]
code_zombie has quit [Quit: Leaving]
brandoncc has joined #ruby
bitwinery has joined #ruby
greengriminal has quit [Quit: Leaving]
spacesuitdiver has quit [Read error: Connection reset by peer]
spacesuitdiver has joined #ruby
MrCrackPot has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
cloaked1 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
quazimodo has quit [Ping timeout: 240 seconds]
koti has quit [Remote host closed the connection]
quazimodo has joined #ruby
koti has joined #ruby
sauvin has joined #ruby
sauvin has quit [Max SendQ exceeded]
sauvin has joined #ruby
jenrzzz has joined #ruby
quazimodo has quit [Ping timeout: 265 seconds]
conta has joined #ruby
quazimodo has joined #ruby
dionysus69 has joined #ruby
m27frogy has quit [Ping timeout: 240 seconds]
koti has quit [Remote host closed the connection]
m27frogy has joined #ruby
KeyJoo has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<havenwood> xco: yup
<xco> havenwood: mind helping me figure it out? :)
<havenwood> xco: what do you have so far?
<xco> so far the only thing i know how to do is WRITE to the Tempfile
<xco> like some text
<xco> i have to add say an mp3/wav or any file of that sort i don’t know what i don’t know so don’t even know what to Google
<xco> so i have nothing :P
xco_ has joined #ruby
neuraload has joined #ruby
absolutejam2 has joined #ruby
<xco_> test
<xco_> havenwood: any info to help me out? :)
andikr has joined #ruby
conta has quit [Ping timeout: 265 seconds]
queip has quit [Ping timeout: 264 seconds]
queip_ has joined #ruby
conta has joined #ruby
spacesuitdiver has quit [Quit: Textual IRC Client: www.textualapp.com]
Joufflu has joined #ruby
Joufflu has quit [Remote host closed the connection]
queip_ has quit [Ping timeout: 245 seconds]
queip has joined #ruby
koti has joined #ruby
koti has quit [Remote host closed the connection]
siaw23 has joined #ruby
xco_ has quit []
fphilipe has quit [Ping timeout: 246 seconds]
<havenwood> xco: Is it a Rails app or plain Ruby?
<xco> havenwood: plain Ruby
<havenwood> xco: Do you want the tempfile to be automatically deleted when you exit the block?
<havenwood> xco: How temporary is it?
<havenwood> xco: Are you dealing with a single temporary file at a time?
<havenwood> xco: Say more about why you're doing it for context?
absolutejam2 has quit [Ping timeout: 265 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
<al2o3-cr> xco: i'd do something like this
<al2o3-cr> temp = Tempfile.new; wav = File.open '/path/to/wav'; IO.copy_stream wav, temp
<al2o3-cr> but i could be miles off
<xco> havenwood: Do you want the tempfile to be automatically deleted when you exit the block? > after some time, days that i can set. is this possible even? :)
<xco> havenwood: Are you dealing with a single temporary file at a time? > yeap. one single file at a time
siaw23 has left #ruby ["Textual IRC Client: www.textualapp.com"]
hiroaki has quit [Ping timeout: 245 seconds]
<havenwood> al2o3-cr: Seems good to me! I might use File.copy_stream for kicks, but I like the pattern.
<havenwood> xco: Tempfile by nature is deleted when the Ruby process exits.
<xco> havenwood: that’s what i thought. so when you asked i thought there was a way around it ;)
<xco> al2o3-cr: that’s sexy. thanks :)
siaw23 has joined #ruby
siaw23 has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> xco: If you want it to survive reboots or the process restarting, temp files aren't a good way.
siaw23 has joined #ruby
siaw23 has left #ruby [#ruby]
<havenwood> xco: How about a regular file?
<havenwood> xco: Have a reaper delete old files intermittently?
<xco> havenwood: yes that’s what i’m going for
<xco> :)
Intelo has quit [Remote host closed the connection]
Intelo has joined #ruby
jeremycw has joined #ruby
<al2o3-cr> havenwood: i was just calculating an offset then, yes and i suppose it's the most memory efficient too as it's using sendfile under the hood
<al2o3-cr> xco: np ;)
jenrzzz has joined #ruby
neuraload has quit [Ping timeout: 265 seconds]
mossplix has joined #ruby
neuraload has joined #ruby
Intelo has quit [Ping timeout: 268 seconds]
neromancer has joined #ruby
fphilipe has joined #ruby
jeremycw has quit [Ping timeout: 265 seconds]
Intelo has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
queip_ is now known as queip
<havenwood> xco: You can use that sort of thing to reap files. Or use a cronjob.
<xco> havenwood: this is cool. was planning to go for a cronjob as it’s easier. but i liek this approach too and i think i’ll use this one
<xco> but a question
<xco> this will ALWAYS be running!!!
<xco> havenwood: right?
mossplix has quit [Remote host closed the connection]
<havenwood> xco: Set `abort_on_exception = true` to make sure it doesn't silently die, but yeah.
<xco> also this presents a good opporunity. for me to ask about Thread!!
<xco> what’s the benefit of necessity of using Thread here?
<xco> havenwood: i could remove the Thread block, what’s it’s purpose here specifically?
<havenwood> xco: You're presumably wanting to do something with the main thread. The only purpose for the Thread here is to do its thing independent of the main thread without interrupting operations.
<havenwood> xco: modify that ^ code so initializing does something repeatedly, then try removing the Thread.new block.
jenrzzz has quit [Ping timeout: 276 seconds]
<havenwood> xco: Or even don't modify it, just try it as it is.
<havenwood> xco: Then see how you don't get the prompt back if you remove the Thread.new.
<xco> oooooooh!!!!
<xco> got it
<havenwood> (After an Xco.new.)
MrCrackPot has quit [Ping timeout: 245 seconds]
<havenwood> xco: The rule to follow for threads is don't use them unless you have to. If you have to use them, don't share state. If you have to share state, don't mutate it. If you have to mutate it, use mutex or monitor locks to synchronize. Try your best to not get that far.
<al2o3-cr> havenwood: wise words :)
<xco> havenwood: very very very smart advice. THANK YOU! i never would have figured out working with Threads/mutex like this. Thanks!
queip has quit [Ping timeout: 268 seconds]
queip_ has joined #ruby
queip_ is now known as queip
skx86 has quit [Quit: Connection closed for inactivity]
sarna has joined #ruby
MrCrackPot has joined #ruby
<havenwood> al2o3-cr: I'm just echoing the wisdom of others :) https://github.com/jruby/jruby/wiki/Concurrency-in-jruby#concurrency_basics
Intelo has quit [Remote host closed the connection]
Intelo has joined #ruby
<al2o3-cr> havenwood: nice, i think i'll stick this myself
<havenwood> al2o3-cr: that's ^ a good wiki post all around
<havenwood> interesting stuff
<al2o3-cr> certainly is havenwood ;)
ur5us has joined #ruby
mossplix has joined #ruby
m3ssia has quit [Quit: ZNC 1.6.3+deb1ubuntu0.2 - http://znc.in]
schne1der has joined #ruby
neromancer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m3ssia has joined #ruby
sameerynho has quit [Ping timeout: 252 seconds]
absolutejam2 has joined #ruby
queip has quit [Ping timeout: 252 seconds]
queip_ has joined #ruby
queip_ is now known as queip
mossplix has quit [Remote host closed the connection]
conta has quit [Ping timeout: 240 seconds]
conta has joined #ruby
MrCrackPot has quit [Quit: Leaving]
bitwinery has quit [Quit: Leaving]
<Frankenstein> havenwood: is that specific to jruby or does it apply to mruby as well?
<havenwood> Frankenstein: The general advice applies equally to both.
<Frankenstein> nice
<havenwood> Frankenstein: In CRuby, the GVL does means some locking guarantees, but it doesn't alleviate the need for mutexes in many cases. This series of articles is a good writeup on that front: https://www.jstorimer.com/blogs/workingwithcode/8085491-nobody-understands-the-gil
<Frankenstein> thanks, i'll add that to the backlog of articles
phaul has quit [Quit: :wq]
<Frankenstein> i want to read the poodr one and the one about writing tooling in ruby too
<havenwood> Frankenstein: JRuby is great with threading. The plan for CRuby to work on multiple cores at once in one process is Guilds in Ruby 3.
<Frankenstein> which one is cruby?
<Frankenstein> is that what i called mruby?
DTZUZO has quit [Ping timeout: 252 seconds]
<havenwood> mruby is a lightweight Ruby. cruby is the reference (mri) implementation.
<Frankenstein> ah, i was getting mruby mixed up with mri
<havenwood> MRI means Matz's Ruby Interpreter, which was the Ruby interpreter up to Ruby 1.9.
<Frankenstein> ill have to install jruby then. i dont have any pariticular reason to use threads, but i'd still like to learn/play with them
mikecmpbll has joined #ruby
<Frankenstein> oh, ha, thats good
<havenwood> Ruby 1.9 introduced Yet Another Ruby VM (YARV), which is what we still use.
<havenwood> So the GIL (Global VM Lock) became the GVL (Global VM Lock).
<havenwood> Err, that first one was supposed to be (Global Interpreter Lock)
jmcgnh has quit [Read error: Connection reset by peer]
<Frankenstein> were/are ruby vm's a common thing?
<al2o3-cr> the virtual machine started at ruby 1.9
mossplix has joined #ruby
<al2o3-cr> i mean 2.0
<havenwood> al2o3-cr: 1.9
TomyWork has joined #ruby
<al2o3-cr> oh, it was 1.9 ;)
<havenwood> Frankenstein: CRuby runs on YARV, a VM. JRuby runs on the JVM. TruffleRuby runs on Graal VM.
<havenwood> Frankenstein: Dynamic languages run on VMs these days, in general.
<Frankenstein> i was just curious at why they called it yet another ruby vm
<havenwood> Frankenstein: CRuby uniquely has a GVL, which means most other implementations work better with threading on multiple cores
<havenwood> Frankenstein: ah, hahaha
<havenwood> Frankenstein: Yeah, there were multiple stabs at making a VM for Ruby and this one is the one Matz selected to be the VM for the reference implementation of Ruby
<Frankenstein> oh lol, i can see why
<Frankenstein> it sound slike a fun projecg
<Frankenstein> project*
<havenwood> Frankenstein: The other attempts were either slow or didn't implement enough Ruby, so YARV won
mikecmpbll has quit [Quit: inabit. zz.]
<havenwood> Frankenstein: With YARV, Ruby went from green threads to real system threads.
<havenwood> And a global VM lock so generally only one thread can compute at once.
jmcgnh has joined #ruby
<Frankenstein> so, this might be too long to answer in irc, but what is the advantage of threads if only one can compute at a time?
<havenwood> Frankenstein: One of the main things is I/O, since that doesn't lock the GVL.
<Frankenstein> ahhhh
<Frankenstein> that makes sene
<havenwood> Frankenstein: There are various other things that don't lock, and you can not lock in a C-extension too.
<havenwood> Frankenstein: It's nicer in JRuby where you can peg your cores easily with threads.
<Frankenstein> i cant wait to try this stuff out
<Frankenstein> ill have to think of a good project as an excuse to try them out
<al2o3-cr> what about virtual cores
<Frankenstein> jruby sounds pretty cool too
queip has quit [Ping timeout: 240 seconds]
<havenwood> Frankenstein: in Ruby 3, Guilds will let you use all your cores in a single process from CRuby.
<Frankenstein> what are guilds?
queip_ has joined #ruby
queip_ is now known as queip
<Frankenstein> oh nce
brandoncc has quit [Ping timeout: 264 seconds]
ellcs has joined #ruby
conta has quit [Ping timeout: 246 seconds]
sylario has joined #ruby
mikecmpbll has joined #ruby
conta has joined #ruby
Intelo has quit [Ping timeout: 276 seconds]
m3ssia has quit [Quit: ZNC 1.6.3+deb1ubuntu0.2 - http://znc.in]
m3ssia has joined #ruby
Jonopoly has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
queip has quit [Excess Flood]
Intelo has joined #ruby
queip has joined #ruby
lxsameer has joined #ruby
absolutejam2 has quit [Ping timeout: 265 seconds]
queip has quit [Ping timeout: 240 seconds]
absolutejam2 has joined #ruby
queip has joined #ruby
jeremycw has joined #ruby
mossplix_ has joined #ruby
mossplix has quit [Ping timeout: 276 seconds]
Ai9zO5AP has joined #ruby
jeremycw has quit [Ping timeout: 240 seconds]
mossplix_ has quit [Ping timeout: 268 seconds]
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
cd has quit [Quit: cd]
jenrzzz has joined #ruby
mossplix has joined #ruby
sarna has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
ur5us has quit [Remote host closed the connection]
queip_ is now known as queip
neuraload has joined #ruby
dasher00 has joined #ruby
andikr has quit [Ping timeout: 265 seconds]
andikr has joined #ruby
neuraload has quit [Read error: Connection reset by peer]
<xco> i’m creating a file using File.open…
<xco> to this very same file, i want to write the location of the file in the file
<xco> how do i achieve this?
DTZUZO has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 276 seconds]
queip_ is now known as queip
DTZUZO has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 240 seconds]
<al2o3-cr> File#path
sarna has joined #ruby
queip has joined #ruby
<al2o3-cr> xco: do you mean file path?
<al2o3-cr> File.open('foo', 'w+') { |f| f << File.realpath(f.path) }
<al2o3-cr> brb
queip has quit [Ping timeout: 264 seconds]
DTZUZO has joined #ruby
xall has joined #ruby
xall has quit [Client Quit]
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
<xco> looks like this would work
<xco> :)
absolutejam2 has quit [Ping timeout: 246 seconds]
queip has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
kyrylo has joined #ruby
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
mossplix has quit [Ping timeout: 268 seconds]
absolutejam2 has joined #ruby
DTZUZO has joined #ruby
andikr has quit [Ping timeout: 264 seconds]
DTZUZO has quit [Ping timeout: 268 seconds]
DTZUZO has joined #ruby
suukim has joined #ruby
kyrylo_ has joined #ruby
kyrylo has quit [Ping timeout: 268 seconds]
DTZUZO has quit [Ping timeout: 264 seconds]
shanks8080 has quit [Remote host closed the connection]
BH23 has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
DTZUZO has joined #ruby
conta has quit [Ping timeout: 252 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
jeremycw has joined #ruby
DTZUZO has quit [Ping timeout: 265 seconds]
jeremycw has quit [Ping timeout: 265 seconds]
queip has quit [Ping timeout: 265 seconds]
queip has joined #ruby
DTZUZO has joined #ruby
absolutejam2 has quit [Ping timeout: 240 seconds]
xall has joined #ruby
mossplix has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
absolutejam2 has joined #ruby
xco has quit [Quit: xco]
Guest72_ has joined #ruby
Guest72_ has quit [Client Quit]
xco has joined #ruby
DTZUZO has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
<xco> test
queip_ is now known as queip
xall has quit [Quit: xall]
MinSrodowiska has joined #ruby
conta has joined #ruby
DTZUZO has quit [Ping timeout: 276 seconds]
DTZUZO has joined #ruby
jenrzzz has joined #ruby
DTZUZO has quit [Ping timeout: 276 seconds]
andikr has joined #ruby
DTZUZO has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
conta has quit [Ping timeout: 240 seconds]
cyclonis has joined #ruby
conta has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
vondruch_ has joined #ruby
DTZUZO has quit [Ping timeout: 265 seconds]
vondruch has quit [Ping timeout: 240 seconds]
vondruch_ is now known as vondruch
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
DTZUZO has joined #ruby
queip_ is now known as queip
chalkmonster has joined #ruby
DTZUZO has quit [Ping timeout: 265 seconds]
akem has quit [Quit: Leaving]
xall has joined #ruby
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
neuraload has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
DTZUZO has quit [Ping timeout: 264 seconds]
honigkuchen has joined #ruby
<honigkuchen> is anything in ruby anywhere anyhow becomes compiled?
<honigkuchen> with rvm?
<honigkuchen> with bundler?
akemhp has joined #ruby
<honigkuchen> with RAILS_ENV=production bin/rake assets:precompile ?
DTZUZO has joined #ruby
xall has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 268 seconds]
MasterNayru has quit [Ping timeout: 252 seconds]
queip_ has joined #ruby
queip_ is now known as queip
DTZUZO has quit [Ping timeout: 276 seconds]
MasterNayru has joined #ruby
DTZUZO has joined #ruby
xall has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
DTZUZO has quit [Ping timeout: 240 seconds]
<NL3limin4t0r> Uhm, I'm not quite sure what you're asking. Do you want to precomiple Rails assets?
xall has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
poontangmessiah has joined #ruby
queip has joined #ruby
BH23 has quit [Ping timeout: 264 seconds]
lucasb has joined #ruby
wildermind has joined #ruby
rwb has quit [Ping timeout: 268 seconds]
kyrylo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
<honigkuchen> I need to do this steps and I would like to know wether they do compile anything
neuraload has quit [Quit: This computer has gone to sleep]
xall has joined #ruby
poontangmessiah has quit [Remote host closed the connection]
neuraload has joined #ruby
cyclonis_ has joined #ruby
xall has quit [Ping timeout: 240 seconds]
BH23 has joined #ruby
cyclonis has quit [Ping timeout: 264 seconds]
queip has quit [Ping timeout: 240 seconds]
MinSrodowiska has quit [Quit: Bye Bye]
queip has joined #ruby
conta has quit [Ping timeout: 240 seconds]
conta has joined #ruby
MasterNayru has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
vondruch_ has joined #ruby
AJA4350 has joined #ruby
xall has joined #ruby
kyrylo has joined #ruby
xall has quit [Client Quit]
vondruch has quit [Ping timeout: 250 seconds]
vondruch_ is now known as vondruch
drincruz has quit [Ping timeout: 240 seconds]
MasterNayru has joined #ruby
queip_ has joined #ruby
<jhass> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
chalkmonster has quit [Remote host closed the connection]
<jhass> honigkuchen: ^
queip has quit [Ping timeout: 265 seconds]
chalkmonster has joined #ruby
queip_ is now known as queip
<jhass> compilation can be a quite broad term
<jhass> there's lots of (potential) compilation happening in either of those tools
<honigkuchen> I have an installation of a product written in ruby and it is on a 64 bit machine and want to run it under a 32 bit system
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has quit [Ping timeout: 252 seconds]
yann-kaelig has joined #ruby
queip_ has joined #ruby
queip_ is now known as queip
suukim has quit [Quit: Konversation terminated!]
jtperreault has joined #ruby
queip has quit [Ping timeout: 265 seconds]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
dionysus70 is now known as dionysus69
queip has joined #ruby
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
mossplix has quit [Ping timeout: 268 seconds]
queip has quit [Ping timeout: 245 seconds]
<jhass> honigkuchen: okay, then it depends on whether one of the dependencies listed in Gemfile.lock has a native extension
MinSrodowiska has joined #ruby
<jhass> but honestly, just installing the necessary tooling on the 32bit machine and not transfering the ruby installation but rebuilding it there, then running bundle seems much simpler than figureing that out
<jhass> (also who migrates from 64bit to 32bit in 2019? :D)
fphilipe has quit [Ping timeout: 240 seconds]
<jhass> to clarify, you certainly cannot just copy over an RVM installation, that you have to rebuild either way
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
rbruchal has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
queip has joined #ruby
bvdw has quit [Client Quit]
bvdw has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akemhp_ has joined #ruby
akemhp has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
gnufied__ has joined #ruby
drincruz has joined #ruby
MinSrodowiska has quit [Quit: Bye Bye]
Tempesta has quit [Quit: AdiIRC is updating to v3.6 Beta Build (2019/10/22 UTC) 64 Bit]
queip has quit [Ping timeout: 276 seconds]
Tempesta has joined #ruby
queip_ has joined #ruby
queip_ is now known as queip
mossplix has joined #ruby
hutch has joined #ruby
fphilipe has joined #ruby
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
queip has quit [Ping timeout: 265 seconds]
schne1der has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
skx86 has joined #ruby
queip has joined #ruby
mossplix has quit [Ping timeout: 268 seconds]
edwardly has quit [Read error: Connection reset by peer]
MinSrodowiska has joined #ruby
sarna has quit [Remote host closed the connection]
absolutejam2 has quit [Ping timeout: 240 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
mossplix has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
absolutejam2 has joined #ruby
mossplix has quit [Remote host closed the connection]
mossplix has joined #ruby
queip has quit [Ping timeout: 265 seconds]
Zangief32 has quit [Quit: Leaving]
conta has quit [Ping timeout: 246 seconds]
Rapture has joined #ruby
mossplix has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
queip has joined #ruby
TomyWork has quit [Remote host closed the connection]
Esa_ has joined #ruby
TomyWork has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 252 seconds]
queip_ is now known as queip
fphilipe has quit [Ping timeout: 240 seconds]
fphilipe has joined #ruby
jenrzzz has joined #ruby
MinSrodowiska has quit [Quit: Bye Bye]
fanta1 has joined #ruby
mossplix has joined #ruby
MinSrodowiska has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jeremycw has joined #ruby
queip has quit [Ping timeout: 276 seconds]
jokester has quit [Ping timeout: 276 seconds]
akem__ has joined #ruby
queip has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
jokester has joined #ruby
queip has quit [Ping timeout: 268 seconds]
Intelo has quit [Ping timeout: 245 seconds]
neuraload has quit [Quit: This computer has gone to sleep]
safe has joined #ruby
queip has joined #ruby
jokester has quit [Ping timeout: 264 seconds]
BH23 has quit [Ping timeout: 265 seconds]
Technodrome has joined #ruby
andikr has quit [Remote host closed the connection]
MinSrodowiska has quit [Quit: Bye Bye]
teclator_ has joined #ruby
andikr has joined #ruby
fanta1 has quit [Quit: fanta1]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
eljimmy has joined #ruby
MinSrodowiska has joined #ruby
MinSrodowiska has quit [Client Quit]
KeyJoo has quit [Quit: KeyJoo]
mossplix has quit [Ping timeout: 265 seconds]
BH23 has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
queip has quit [Ping timeout: 246 seconds]
Intelo has joined #ruby
queip_ has joined #ruby
queip_ is now known as queip
Intelo_ has joined #ruby
absolutejam2 has quit [Ping timeout: 246 seconds]
Intelo_ has quit [Remote host closed the connection]
Intelo has quit [Ping timeout: 240 seconds]
dbugger has joined #ruby
queip has quit [Ping timeout: 264 seconds]
queip_ has joined #ruby
queip_ is now known as queip
ua has quit [Ping timeout: 265 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
MinSrodowiska has joined #ruby
cyclonis_ has quit [Ping timeout: 264 seconds]
cyclonis has joined #ruby
teclator_ has quit [Ping timeout: 240 seconds]
cthulchu_ has joined #ruby
ua has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
wildermind has quit [Quit: Connection closed for inactivity]
yann-kaelig has quit [Quit: yann-kaelig]
code_zombie has joined #ruby
cyclonis_ has joined #ruby
cyclonis has quit [Ping timeout: 246 seconds]
MinSrodowiska is now known as realNapoleon
hutch has quit [Ping timeout: 252 seconds]
neromancer has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
brandoncc has joined #ruby
fanta1 has joined #ruby
realNapoleon is now known as MinSrodowiska
Jonopoly has quit [Ping timeout: 240 seconds]
code_zombie has quit [Quit: Leaving]
queip has quit [Ping timeout: 268 seconds]
MinSrodowiska has quit [Quit: Bye Bye]
queip_ has joined #ruby
queip_ is now known as queip
inersha has joined #ruby
<inersha> What's the best way to generate a hash like this: {1=>2, 2=>3, 3=>4}
<inersha> Where I have an array of numbers as the keys, and the hash values are those numbers +1
belak has left #ruby ["Textual IRC Client: www.textualapp.com"]
rippa has joined #ruby
<havenwood> &>> [1, 42, 7].to_h { |n| [n, n.succ] }
<rubydoc> # => {1=>2, 42=>43, 7=>8} (https://carc.in/#/r/7v0n)
<havenwood> inersha: ^
<leftylink> I really like that in 2.6, one can pass a block to Enumerable#to_h.
<inersha> havenwood: thank you sir!
brool has joined #ruby
<inersha> ah damn I'm on 2.5
<inersha> better upgrade
<havenwood> &>> [1, 42, 7].map { |n| [n, n.succ] }.to_h # inersha
<rubydoc> # => {1=>2, 42=>43, 7=>8} (https://carc.in/#/r/7v0o)
<havenwood> inersha: That'll ^ work on 2.5.
<havenwood> inersha: But do upgrade. :)
<inersha> havenwood: ha thank you again
kyrylo has joined #ruby
<inersha> perfect :)
<havenwood> inersha: you're welcome
jenrzzz has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
inersha has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 268 seconds]
neromancer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
honigkuchen has quit [Ping timeout: 268 seconds]
camilasan has quit [Ping timeout: 252 seconds]
KeyJoo has joined #ruby
honigkuchen has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
valkyrka has joined #ruby
poontangmessiah has joined #ruby
camilasan has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
psilly0 has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 246 seconds]
queip_ is now known as queip
camilasan has quit [Ping timeout: 265 seconds]
psilly0 has quit [Quit: psilly0]
neromancer has joined #ruby
valkyrka has quit [Ping timeout: 268 seconds]
<brool> wow #succ
Criztian has joined #ruby
psilly0 has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has joined #ruby
camilasan has joined #ruby
kyrylo has quit [Client Quit]
fanta1 has quit [Quit: fanta1]
Criztian has quit [Remote host closed the connection]
Criztian has joined #ruby
absolutejam2 has joined #ruby
kyrylo has joined #ruby
poontangmessiah has quit [Remote host closed the connection]
queip has quit [Ping timeout: 268 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
queip has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
r3m is now known as Pascal
Pascal is now known as r3m
pb122_2 has joined #ruby
absolutejam2 has quit [Ping timeout: 276 seconds]
Criztian has quit []
howdoi has joined #ruby
Criztian has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip_ has joined #ruby
queip has quit [Ping timeout: 268 seconds]
pb122 has quit [Ping timeout: 250 seconds]
bradfordli123 has joined #ruby
queip_ has quit [Ping timeout: 246 seconds]
gix has joined #ruby
queip_ has joined #ruby
kyrylo has joined #ruby
suukim has joined #ruby
queip_ has quit [Ping timeout: 268 seconds]
kyrylo has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
orbyt_ has joined #ruby
queip_ has joined #ruby
queip_ is now known as queip
Intelo has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ is now known as queip
meowzus has joined #ruby
<meowzus> Hi! When I read line by line from a file like File.open(foo.txt) { |a| b = gets; puts b} it doesn't pause to get input. Anyone know why?
<meowzus> Oops! I meant to say File.open('foo.txt').each { |a| b = gets; puts b}
r29v has joined #ruby
<meowzus> Also what's weird is if I do that, it actually prints out the file line by line... even though the variable should be a, not b, I'm not putting a
<havenwood> meowzus: Try: $stdin.gets
<meowzus> That works! Could you explain what was going on?
wildtrees has joined #ruby
<meowzus> Oh, actually I see now: "Returns (and assigns to $_) the next line from the list of files in ARGV (or $*), or from standard input if no files are present on the command line."
<meowzus> Thanks for the help havenwood
<havenwood> meowzus: Kernel#gets will only, yup: https://docs.ruby-lang.org/en/2.6.0/Kernel.html#method-i-gets
<meowzus> It has been a while since I've used ruby... been using python for a while
<meowzus> I'm liking ruby again though haha
fphilipe has joined #ruby
<havenwood> meowzus: You might like this project: https://github.com/mrkn/pycall.rb
<havenwood> It was the winner of the Ruby Award last year.
psilly0 has quit [Quit: psilly0]
psilly0 has joined #ruby
queip has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
fphilipe has quit [Ping timeout: 268 seconds]
queip has joined #ruby
Criztian has quit []
kyrylo has joined #ruby
koti has joined #ruby
<meowzus> Ah yeah I did hear about that havenwood - I should check it out. It seems like a livesaver for data science or scipy/numpy users
bradfordli123 has quit [Remote host closed the connection]
<meowzus> I also heard there is some R bindings for ruby that I might want to take a look at too.
kyrylo has quit [Ping timeout: 245 seconds]
AJA4351 has joined #ruby
BH23 has quit [Ping timeout: 240 seconds]
drincruz_ has joined #ruby
drincruz has quit [Read error: No route to host]
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
koti has quit [Ping timeout: 260 seconds]
queip has quit [Ping timeout: 240 seconds]
TomyLobo has joined #ruby
greengriminal has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
fphilipe has joined #ruby
queip has joined #ruby
fphilipe has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
bradland has joined #ruby
queip has quit [Ping timeout: 240 seconds]
r29v has quit [Quit: r29v]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has joined #ruby
sameerynho has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ is now known as queip
fphilipe has joined #ruby
Fira_ has joined #ruby
Fira_ is now known as Fira
Fira has quit [Changing host]
Fira has joined #ruby
xco has joined #ruby
absolutejam2 has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
jenrzzz_ has joined #ruby
code_zombie has joined #ruby
jenrzzz_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 265 seconds]
queip has quit [Ping timeout: 245 seconds]
queip_ has joined #ruby
fphilipe has quit [Ping timeout: 245 seconds]
mossplix has joined #ruby
jenrzzz has joined #ruby
haxx0r has joined #ruby
orbyt_ has joined #ruby
absolutejam2 has quit [Ping timeout: 276 seconds]
dinfuehr has quit [Ping timeout: 245 seconds]
queip_ has quit [Ping timeout: 246 seconds]
absolutejam2 has joined #ruby
dinfuehr has joined #ruby
suukim has quit [Quit: Konversation terminated!]
meowzus has quit [Remote host closed the connection]
KeyJoo has quit [Quit: KeyJoo]
mossplix has quit [Read error: Connection reset by peer]
mossplix has joined #ruby
mikecmpbll has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
cd has joined #ruby
kyrylo has joined #ruby
brool has quit [Ping timeout: 252 seconds]
mossplix has quit [Remote host closed the connection]
queip has joined #ruby
kyrylo has quit [Ping timeout: 268 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
kyrylo has joined #ruby
Scriptonaut has joined #ruby
r29v has joined #ruby
queip has quit [Ping timeout: 240 seconds]
cyclonis_ has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
queip_ is now known as queip
kyrylo has quit [Ping timeout: 265 seconds]
bvdw has quit [Read error: Connection reset by peer]
MinSrodowiska has joined #ruby
cyclonis has joined #ruby
bvdw has joined #ruby
greengriminal has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip has joined #ruby
<bradland> Encountering an error using UNIXSocket under WSL/Ubuntu on Windows 10 Pro. What's the best place to report?
<bradland> Related to this Puma bug: https://github.com/puma/puma/issues/1521
akemhp has joined #ruby
akemhp_ has joined #ruby
akem__ has quit [Ping timeout: 240 seconds]
queip has quit [Ping timeout: 252 seconds]
fphilipe has joined #ruby
<Scriptonaut> is it standard behavior for ruby to throw an uninitialized constant error for a class when it's at the bottom of a file rather than putting it at the top (before referencing the class?)
<Scriptonaut> it doesn't mind if I put methods at the bottom, but it gives me uninitialized constant when I do the same with classes
<Scriptonaut> (all in the same file by the way)
akemhp has quit [Read error: Connection reset by peer]
queip has joined #ruby
<havenwood> Scriptonaut: Yes, that's expected.
<Scriptonaut> why does it load methods but ignores classes in that order?
akem__ has joined #ruby
akem__ has quit [Remote host closed the connection]
akemhp has joined #ruby
akemhp_ has quit [Ping timeout: 268 seconds]
<havenwood> bradland: I'd suggest reporting upstream at the Ruby Issue Tracking System: https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport
akemhp_ has joined #ruby
<bradland> thx, havenwood. will do.
ExoUNX has quit [Ping timeout: 276 seconds]
<havenwood> Scriptonaut: The only reason you'd be able to call a method defined below is if you're doing that inside a module or class namespace. Try outside of a class.
<Scriptonaut> this is outside of a class, so I suppose that's why it won't work
cyclonis_ has joined #ruby
akemhp has quit [Ping timeout: 268 seconds]
kyrylo has joined #ruby
cyclonis has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
AJA4351 has joined #ruby
queip_ is now known as queip
al2o3-cr has quit [Quit: WeeChat 2.6]
AJA4350 has quit [Ping timeout: 264 seconds]
AJA4351 is now known as AJA4350
kyrylo has quit [Ping timeout: 276 seconds]
absolutejam2 has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
al2o3-cr has joined #ruby
absolutejam2 has joined #ruby
akemhp has joined #ruby
akemhp has joined #ruby
akemhp_ has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
haxx0r has quit [Remote host closed the connection]
schne1der has quit [Ping timeout: 265 seconds]
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 246 seconds]
queip_ has joined #ruby
queip_ is now known as queip
kyrylo has joined #ruby
jenrzzz has joined #ruby
skx86 has joined #ruby
brandoncc has quit [Quit: Textual IRC Client: www.textualapp.com]
kyrylo has quit [Ping timeout: 276 seconds]
Deesl has joined #ruby
kyrylo has joined #ruby
MinSrodowiska has quit [Quit: Bye Bye]
jenrzzz has quit [Ping timeout: 276 seconds]
kyrylo has quit [Ping timeout: 245 seconds]
Fernando-Basso has joined #ruby
absolutejam2 has quit [Ping timeout: 268 seconds]
AJA4351 has joined #ruby
absolutejam2 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
etupat has joined #ruby
kyrylo has joined #ruby
queip_ has joined #ruby
rwb has joined #ruby
queip has quit [Ping timeout: 276 seconds]
kyrylo has quit [Ping timeout: 268 seconds]
queip_ is now known as queip
neromancer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradland has quit [Quit: bradland]
dbugger has quit [Ping timeout: 276 seconds]
rbruchal has quit [Ping timeout: 250 seconds]
kyrylo has joined #ruby
kyrylo has quit [Ping timeout: 240 seconds]
kyrylo has joined #ruby
queip has quit [Ping timeout: 240 seconds]
kyrylo has quit [Ping timeout: 252 seconds]
queip has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
TomyLobo has quit [Quit: Leaving]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
psilly0 has quit [Quit: psilly0]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
queip_ has joined #ruby
queip has quit [Ping timeout: 264 seconds]
queip_ is now known as queip
brandoncc has joined #ruby
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
AJA4351 has joined #ruby
eljimmy has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
queip_ has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ is now known as queip
kyrylo has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
kyrylo has quit [Ping timeout: 268 seconds]
etupat has quit [Remote host closed the connection]
kyrylo has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
queip_ is now known as queip
kyrylo has quit [Ping timeout: 240 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
r29v has quit [Quit: r29v]
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
etupat has joined #ruby
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
kyrylo has joined #ruby
eljimmy has quit [Client Quit]
psilly0 has joined #ruby
kyrylo has quit [Ping timeout: 240 seconds]
j416 has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Read error: No route to host]
greengriminal has joined #ruby
SeepingN has joined #ruby
j416 has joined #ruby
j416 has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 240 seconds]
j416 has joined #ruby
queip has joined #ruby
jeremycw has quit [Ping timeout: 240 seconds]
jeremycw has joined #ruby
typelogic has joined #ruby
typelogic has quit [Client Quit]
greengriminal has quit [Quit: Leaving]
brool has joined #ruby
jeremycw has quit [Ping timeout: 276 seconds]
alexhugo has joined #ruby
akemhp_ has joined #ruby
bitwinery has joined #ruby
honigkuchen has quit [Ping timeout: 264 seconds]
<al2o3-cr> hmm... .: revert in discussion
akemhp has quit [Ping timeout: 240 seconds]
bitwinery has quit [Remote host closed the connection]
bitwinery has joined #ruby
akem__ has joined #ruby
ELLIOTTCABLE is now known as ec
<Frankenstein> pry is telling me to run `gem clean minitest`, since I've got two versions installed: minitest (5.12.2, 5.11.3) but that doesn't actually clean it. Is there a way t oremove 5.11.3?
etupat has quit [Remote host closed the connection]
<havenwood> al2o3-cr: nooooo
<havenwood> al2o3-cr: <3 .:
<al2o3-cr> me too ;(
<havenwood> Frankenstein: See: https://stdgems.org/
<havenwood> al2o3-cr: let's weigh in
<al2o3-cr> yup
<havenwood> Frankenstein: Minitest is a "bundled gem" so it can be uninstalled.
<havenwood> Frankenstein: gem update minitest && gem cleanup minitest
kyrylo has joined #ruby
<Frankenstein> ah, ok. thanks
akemhp_ has quit [Ping timeout: 276 seconds]
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
etupat has joined #ruby
kyrylo has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 268 seconds]
queip has quit [Ping timeout: 276 seconds]
queip_ has joined #ruby
queip_ is now known as queip
absolutejam2 has quit [Ping timeout: 268 seconds]
AJA4351 has joined #ruby
queip has quit [Ping timeout: 265 seconds]
queip_ has joined #ruby
mynameisdebian has joined #ruby
mre- has joined #ruby
queip_ is now known as queip
<mynameisdebian> (not Rails) I have 2 Date objects and I am trying to generate a range of date strings between the two dates. This is the code I am using, but it produces an empty array: (billingTermStart..billingTermEnd).map{ |date| date.strftime("%F") }
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
Fernando-Basso has quit [Quit: Leaving]
Fernando-Basso has joined #ruby
ur5us has joined #ruby
queip_ has joined #ruby
queip has quit [Ping timeout: 268 seconds]
queip_ is now known as queip
xGrind has joined #ruby
kyrylo has joined #ruby
jenrzzz has joined #ruby
Technodrome has quit [Remote host closed the connection]
queip has quit [Ping timeout: 240 seconds]
queip_ has joined #ruby
queip_ is now known as queip
ur5us has quit [Read error: Connection reset by peer]
ur5us_ has joined #ruby
kyrylo has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
kyrylo has joined #ruby
hutch has joined #ruby
kyrylo has quit [Ping timeout: 268 seconds]
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MinSrodowiska has joined #ruby
queip_ has joined #ruby
etupat has joined #ruby
queip has quit [Ping timeout: 240 seconds]
queip_ is now known as queip
fig-le-deunch has joined #ruby
wildtrees has quit [Quit: Leaving]
queip has quit [Ping timeout: 268 seconds]
queip_ has joined #ruby
hutch has quit [Ping timeout: 264 seconds]
queip_ is now known as queip
mre- has quit [Ping timeout: 240 seconds]
mre- has joined #ruby
queip has quit [Ping timeout: 240 seconds]
* baweaver might start a series on DateTime
mre- has quit [Ping timeout: 240 seconds]
<baweaver> mynameisdebian: It's infinite probably
r29v has joined #ruby
queip has joined #ruby
<baweaver> Are you using Date or DateTime?
<baweaver> &>> (Date.today - 3..Date.today).to_a
<rubydoc> stderr: -e:4:in `<main>': uninitialized constant Date (NameError)... check link for more (https://carc.in/#/r/7vab)
blackmesa has quit [Ping timeout: 276 seconds]
<baweaver> &>> require 'date'; (Date.today - 3..Date.today).to_a
<rubydoc> # => [#<Date: 2019-10-20 ((2458777j,0s,0n),+0s,2299161j)>, #<Date: 2019-10-21... check link for more (https://carc.in/#/r/7vac)
r29v has quit [Read error: Connection reset by peer]
<baweaver> &>> require 'date'; (DateTime.now - 3..DateTime.now).to_a
<rubydoc> # => [#<DateTime: 2019-10-20T23:34:53+00:00 ((2458777j,84893s,410721751n),+0s,2299161j)>, #<DateTime:... check link for more (https://carc.in/#/r/7vae)
<baweaver> Odd, anyways, short version is I have jack-all knowledge of dates in Ruby except for surface level
<baweaver> havenwood save me
<havenwood> haha
xall has joined #ruby
etupat has quit [Remote host closed the connection]
<baweaver> Also the forwarding bit gets caught by infinite range
jackkall has joined #ruby
<baweaver> `...` translates to `nil...nil`
<havenwood> &>> (nil..nil).size
<rubydoc> # => nil (https://carc.in/#/r/7vah)
etupat has joined #ruby
<havenwood> In 2.7: (nil..nil).size #=> Infinity
jackkall has quit [Client Quit]
<havenwood> mynameisdebian: I suspect the beginning date is before the ending date.
<havenwood> &>> require 'date'; (Date.today.next..Date.today).to_a
<rubydoc> # => [] (https://carc.in/#/r/7vai)
psilly0 has quit [Quit: psilly0]
hutch has joined #ruby
hutch has quit [Ping timeout: 276 seconds]
ExoUNX has joined #ruby
eljimmy has joined #ruby
AJA4351 has joined #ruby
queip has quit [Ping timeout: 265 seconds]
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
queip_ has joined #ruby
queip_ is now known as queip
eljimmy has quit [Quit: This computer has gone to sleep]
Swyper has joined #ruby
kyrylo has joined #ruby
cthu| has joined #ruby
eljimmy has joined #ruby
jenrzzz has joined #ruby