havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview2: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
gr33n7007h has joined #ruby
constxqt has joined #ruby
duderonomy has joined #ruby
constxqt has quit [Ping timeout: 244 seconds]
hiyori has quit [Quit: Client closed]
Rovanion has quit [Ping timeout: 255 seconds]
Rovanion has joined #ruby
constxqt has joined #ruby
constxqt has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
constxqt has joined #ruby
weaksauc_ has joined #ruby
weaksau__ has joined #ruby
weaksauce has quit [Ping timeout: 252 seconds]
weaksauc_ has quit [Ping timeout: 260 seconds]
constxqt has quit [Ping timeout: 244 seconds]
Condition_Boy has joined #ruby
ConditionBoy has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
Guest65 has quit [Quit: Client closed]
OverCoder has joined #ruby
hiyori has joined #ruby
Condition_Boy has quit [Read error: Connection reset by peer]
ConditionBoy has joined #ruby
blop_ has quit [Remote host closed the connection]
blop_ has joined #ruby
sam113101 has quit [Quit: WeeChat 3.6]
sam113101 has joined #ruby
blop_ has quit [*.net *.split]
blop_ has joined #ruby
_ht has joined #ruby
OverCoder has quit [Quit: Connection closed for inactivity]
matoro has quit [Quit: No Ping reply in 180 seconds.]
matoro has joined #ruby
ox1eef__ has quit [Quit: Leaving]
ox1eef_ has joined #ruby
ox1eef_ has quit [Client Quit]
ox1eef_ has joined #ruby
caedmon has quit [Ping timeout: 244 seconds]
Linux_Kerio has joined #ruby
bandit_za has joined #ruby
bandit_za has left #ruby [#ruby]
_ht has quit [Quit: _ht]
<leftylink> for some reason, I had not thought of the possibility of redefining !@ (in fact, it can just be ! without the @). I think I mixed it up with || and && which you cannot redefine
<leftylink> pandabot rb def (a = {}).!; 1998_08_19 end; !a
<pandabot> 19980819 - https://carc.in/#/r/ft37
blop_ has quit [Remote host closed the connection]
blop_ has joined #ruby
<gr33n7007h> pandabot rb puts "pandabot".reverse
<leftylink> this all came about because I was remembering: huh, how weird, you can map(&:-@) and you can map (&:!@) and you can def -@ but you can't def !@. but actually you can def !@ so I was just wrong
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 244 seconds]
desnudopenguino1 is now known as desnudopenguino
teclator has joined #ruby
otisolsen70 has joined #ruby
OverCoder has joined #ruby
<sam113101> what's @?
<gr33n7007h> sam113101: for when you're defining unary methods iirc
<gr33n7007h> and presumably calling them
Condition_Boy has joined #ruby
ConditionBoy has quit [Ping timeout: 240 seconds]
shokohsc51086 has joined #ruby
shokohsc5108 has quit [Ping timeout: 244 seconds]
shokohsc51086 is now known as shokohsc5108
Condition_Boy has quit [Read error: Connection reset by peer]
ConditionBoy has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
willfish has joined #ruby
or2b has joined #ruby
konsolebox has joined #ruby
Vonter has quit [Ping timeout: 260 seconds]
weaksauce has joined #ruby
Vonter has joined #ruby
<gr33n7007h> pandabot rb RUBY_VERSION
weaksau__ has quit [Ping timeout: 260 seconds]
<gr33n7007h> >> RUBY_VERSION
<ruby[bot]> gr33n7007h: # => "3.0.1" (https://carc.in/#/r/ft38)
<gr33n7007h> bot needs an update
<gr33n7007h> that's because AL hasn't updated ruby in over ~2.5 years
<ox1eef_> >> RUBY_VERSION
<ruby[bot]> ox1eef_: # => "3.0.1" (https://carc.in/#/r/ft39)
hiyori has quit [Quit: Client closed]
konsolebox has quit [Quit: Leaving]
infinityfye has joined #ruby
phryk has quit [Quit: ZNC 1.8.2 - https://znc.in]
gr33n7007h has quit [Ping timeout: 240 seconds]
Linux_Kerio has quit [Quit: Konversation terminated!]
gr33n7007h has joined #ruby
Linux_Kerio has joined #ruby
gr33n7007h has quit [Ping timeout: 258 seconds]
Linux_Kerio has quit [Client Quit]
gr33n7007h has joined #ruby
Linux_Kerio has joined #ruby
phryk has joined #ruby
Guest65 has joined #ruby
ua_ has quit [Ping timeout: 240 seconds]
hiyori has joined #ruby
brokkoli_origin has quit [Quit: (Leaving)]
brokkoli_origin has joined #ruby
Linux_Kerio has quit [Ping timeout: 258 seconds]
konsolebox has joined #ruby
hiyori has quit [Quit: Client closed]
phryk has quit [Quit: ZNC 1.8.2 - https://znc.in]
ua_ has joined #ruby
phryk has joined #ruby
crespire1 has quit [Remote host closed the connection]
crespire has joined #ruby
user23 has joined #ruby
hiyori has joined #ruby
hiyori has quit [Quit: Client closed]
caedmon has joined #ruby
or2b has quit [Quit: Leaving]
caedmon has quit [Ping timeout: 260 seconds]
konsolebox has quit [Ping timeout: 244 seconds]
konsolebox has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 258 seconds]
desnudopenguino1 is now known as desnudopenguino
<Guest65> anyone in here use roda?
graywolf has joined #ruby
<ox1eef_> Pretty sure adam12 does.
constxqt has joined #ruby
<Guest65> so i'm using the public plugin
<Guest65> but i can't get an image to show up in an erb template, no matter what i try
<Guest65> the public plugin is working in at least in some capacity, because if i visit localhost:9292/path/to/image/minus/public/folder.png, it shows the image just fine
<Guest65> the really funny thing is, i can't even get an image from the internet to show up
<Guest65> so, surely this is some obscure gotcha because i'm serving the app locally or something, right?
<Guest65> but even then, something must be wrong, because surely i'm not the first person to ever want to develop my app locally before deploying it to a server that wanted to actually see images get rendered
<Guest65> so wtf
_ht has joined #ruby
graywolf has quit [Quit: WeeChat 4.0.4]
jmcgnh has quit [Excess Flood]
jmcgnh has joined #ruby
desnudopenguino has quit [Read error: Connection reset by peer]
desnudopenguino has joined #ruby
user23 has quit [Remote host closed the connection]
polishdub has quit [Quit: leaving]
parzzix has left #ruby [#ruby]
yziquel has joined #ruby
polishdub has joined #ruby
<johnjaye> is there a better way to call the readline method here?
<johnjaye> begin while true puts f.readline end rescue puts "some error" end
<johnjaye> it gives an error not a different value upon EOF. is there a way to check eof first?
konsolebox has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
konsolebox has quit [Client Quit]
yziquel has quit [Quit: Client closed]
Linux_Kerio has joined #ruby
<ox1eef_> johnjaye: ri IO#eof?
<johnjaye> ok
<ox1eef_> You also rescue EOFError.
<gr33n7007h> johnjaye: depends what you're trying to do; if you're just iterating over lines in a file, a simple: `File.foreach(file) { ... }` if needing an IO object to do other stuff File.open(file, mode) { |io| until io.eof? ... } etc?
yziquel has joined #ruby
yziquel has quit [Client Quit]
willfish has quit [Quit: WeeChat 4.0.4]
yziquel has joined #ruby
newton has joined #ruby
<johnjaye> hmm ok
Guest65 has quit [Quit: Client closed]
keb has joined #ruby
keb has quit [Quit: Leaving]
keb has joined #ruby
hightower2 has quit [Ping timeout: 264 seconds]
shokohsc51082 has joined #ruby
shokohsc5108 has quit [Ping timeout: 244 seconds]
shokohsc51082 is now known as shokohsc5108
teclator has quit [Ping timeout: 240 seconds]
_ht has quit [Remote host closed the connection]
infinityfye has quit [Quit: Leaving]
hightower2 has joined #ruby
tomtmym has quit [Quit: Gone.]
konsolebox has joined #ruby
yziquel has quit [Quit: Client closed]
otisolsen70 has quit [Quit: Leaving]
konsolebox has quit [Quit: Leaving]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
caedmon has joined #ruby
Guest65 has joined #ruby
Guest808 has joined #ruby
Guest65 has quit [Client Quit]
<Guest808> i don't know if this is a roda-specific issue or not, but i can't get a web app being served on localhost to display images in an erb template
Vonter has quit [Ping timeout: 240 seconds]
Vonter has joined #ruby
Condition_Boy has joined #ruby
Condition_Boy has quit [Read error: Connection reset by peer]
ConditionBoy has quit [Read error: Connection reset by peer]
ConditionBoy has joined #ruby
OverCoder has quit [Quit: Connection closed for inactivity]
<Guest808> omg this is so frustrating
c10l has quit [Quit: See ya! o/]
c10l has joined #ruby
<weaksauce> Guest808 what does the console say? what happens when you try to load it directly?
<weaksauce> it's just debugging at this point
<Guest808> it works when i load it directly
<Guest808> weaksauce: i.e. when i visit localhost:9292/path/to/image/in/public/folder/minus/public.png
<Guest808> but i can't get any images to display in my view at all, neither mine nor any from elsewhere on the web
<Guest808> no special console messages
<Guest808> not that i can see
<Guest808> it's not a browser-specific issue
<Guest808> inspecting the rendered page source suggests nothing wrong with my template
<Guest808> so what am i missing?
Guest33 has joined #ruby
Munto has quit [Ping timeout: 244 seconds]
<Guest808> so for the sake of simplicity, let's say i have public/images/my_image.png
<Guest808> visiting localhost:/9292/images/my_image.png shows the image as expected
<Guest808> well, i've already established this isn't a local-file-specific issue, since no image from anywhere on the internet or otherwise loads
<Guest808> is this a rack thing?
<Guest808> a localhost thing?
<Guest808> a linux thing?
<Guest808> so many fucking moving parts, how does anyone get anything done?
<Guest808> how am i the only person on the entire internet with this problem?
Linux_Kerio has quit [Ping timeout: 260 seconds]