ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
siery has joined #ruby
ur5us has joined #ruby
CrazyEddy is now known as Myrtales
ur5us has quit [Ping timeout: 255 seconds]
<yosileyid>
Im connecting a bot via ruby, it is connecting but when I use the bot.join(roomName) it says the server disconnects me, how do I look into what is causing that?
<yosileyid>
im connecting it in irb currently to test what is causing the issue
<leftylink>
hm. I guess if I were presented with this situation I'd look at the IRC protocol and see what messages the bot is sending to the server and receiving back
ur5us has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
Tempesta has joined #ruby
wmoxam has quit [Ping timeout: 255 seconds]
wmoxam has joined #ruby
moldorcoder7 has quit [Ping timeout: 248 seconds]
razetime has joined #ruby
MalusVulgaris has joined #ruby
wand has quit [Ping timeout: 255 seconds]
wand has joined #ruby
razetime has quit [Ping timeout: 268 seconds]
siery has quit [Ping timeout: 255 seconds]
hololeap has quit [Ping timeout: 255 seconds]
hololeap has joined #ruby
razetime has joined #ruby
razetime1 has joined #ruby
razetime has quit [Ping timeout: 248 seconds]
razetime1 is now known as razetime
razetime1 has joined #ruby
razetime has quit [Ping timeout: 255 seconds]
razetime1 is now known as razetime
<yosileyid>
leftylink: it wasnt connecting due to no ssl for some reason
<yosileyid>
probably because I specified port 6697, but I got it fixed and it loaded up
razetime has quit [Ping timeout: 255 seconds]
razetime has joined #ruby
jhass has quit [Ping timeout: 268 seconds]
jhass has joined #ruby
razetime has quit [Quit: See You Space Cowboy]
AlexBrownSobinec has joined #ruby
Sankalp has quit [Ping timeout: 255 seconds]
shokohsc61 has joined #ruby
shokohsc6 has quit [Ping timeout: 248 seconds]
shokohsc61 is now known as shokohsc6
AlexBrownSobinec has quit [Quit: Client closed]
AlexBrownSobinec has joined #ruby
Sankalp has joined #ruby
razetime has joined #ruby
AlexBrownSobinec has quit [Quit: Client closed]
Starfoxxes has quit [Ping timeout: 246 seconds]
MalusVulgaris has quit [Quit: MalusVulgaris]
panella32 has joined #ruby
panella32 has quit [Client Quit]
panella32 has joined #ruby
<gridbugsmasher42>
Ruby is fun
ur5us has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
razetime has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
panella32 has quit [Ping timeout: 268 seconds]
razetime has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
<yosileyid>
fr
teclator has joined #ruby
infinityfye has joined #ruby
tomtmym has quit [Quit: Gone.]
Linux_Kerio has joined #ruby
CoolerX has joined #ruby
<CoolerX>
Hi
<CoolerX>
I am having an issue while trying to build a bottle for a homebrew formula
<CoolerX>
Error: undefined method `path' for nil:NilClass
<CoolerX>
maybe they need one more line f. tap = CoreTap.instance
<CoolerX>
f.tap = CoreTap.instance
<CoolerX>
"Formula not from core or any installed taps" I do have my custom tap installed
<Shell>
email Mike McQuaid, if there's no other place you can get help with Homebrew's core code, he's probably got an idea.
<CoolerX>
so I am not sure why it says that
<sam113101>
because tap is nil, obviously
<sam113101>
what's a tap?
<Shell>
if you have your custom tap installed, you should be able to reference your formula by name, not by path to a Ruby file. that will probably fix the problem.
<CoolerX>
a tap is a repo
<leftylink>
huh. I guess everyone has their own unique ways of dealing with vampires. interesting
ollysmith has quit [Quit: ZNC 1.8.2+deb3+b4 - https://znc.in]
<CoolerX>
Shell: so it's supposed to be nil
* Shell
puts channel on quiet
ollysmith has joined #ruby
teclator has joined #ruby
<CoolerX>
"The format #<...> tells you that this object is not a simple thing like a number, string, or array. Instead, it just tells you the name of the class, Calculator, and the internal id that Ruby has assigned to this object.
<CoolerX>
"
<CoolerX>
inspect is supposed to print as close as possible to the original code that created the object right?
<CoolerX>
but when I puts myfilepath.inspect I get something like #<Pathname:/aaaa/bbbbbbb/cccccc>
<CoolerX>
Error: undefined method `path' for nil:NilClass
<CoolerX>
They are getting the same error
infinity_fye has joined #ruby
infinityfye has quit [Ping timeout: 248 seconds]
Starfoxxes has joined #ruby
CoolerX has quit [Ping timeout: 248 seconds]
infinityfye_ has joined #ruby
infinityfye_ is now known as infinityfye
infinity_fye has quit [Ping timeout: 255 seconds]
amvara has joined #ruby
<amvara>
Hi there ... I receive a LoadError when installing redmine plugin ... details: https://paste.debian.net/1273005/ ... any help with this is appreciated, as I am a total newby to Ruby
<leftylink>
Kernel#caller for finding out where something is called
MalusVulgaris has joined #ruby
joast has quit [Quit: Leaving.]
<AlexBrownSobinec>
Guys, is there any lib to make ruby interact with python? I just need to make a little part of my ruby program in python but I need to transfer dome vars. Does anybody have a solution?
<siery>
IPC c:? Other then that, idk
shokohsc66 has joined #ruby
shokohsc6 has quit [Ping timeout: 248 seconds]
shokohsc66 is now known as shokohsc6
MalusVulgaris has quit [Quit: MalusVulgaris]
<leftylink>
right, it sounds like something that wouldn't have a dedicated library because the general purpose library such as open3 or Kernel#` would do the job equally well
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
<amvara>
Question about gems ... gem list | grep matrix shows 0.4.2 is installed. bundle show matrix returns: "Could not find gem 'matrix'." ... what am I missing on?
shokohsc6 has quit [Ping timeout: 264 seconds]
<amvara>
Found the answer: added matrix to local Gemfile and did bundle install ...
horsec97 has joined #ruby
CoolerX has quit [Ping timeout: 248 seconds]
shokohsc6 has joined #ruby
Vonter has quit [Quit: WeeChat 3.8]
gridbugsmasher42 has left #ruby [#ruby]
teclator has joined #ruby
Vonter has joined #ruby
CoolerX has joined #ruby
gr33n7007h has quit [Ping timeout: 248 seconds]
gr33n7007h has joined #ruby
<adam12>
ox1eef_: I just set up a ChatGPT account because I was curious.
AlexBrownSobinec has quit [Ping timeout: 260 seconds]
CoolerX has joined #ruby
<leah2>
well
<leah2>
not exactly what i meant :)
horsec97 has quit [Ping timeout: 252 seconds]
<nickjj>
besides setting a custom error message when would you prefer to use ENV.fetch with a 2nd arg to define a default vs using a block to define a default?
<nickjj>
example: ENV.fetch("COOL", true) vs ENV.fetch("COOL") { true }
nonpas80 has joined #ruby
<leftylink>
oh I have an idea. since the block is only run if the key doesn't exist, you use a block if it's expensive to compute. for example, ENV.fetch('USER', sleep 5) will always sleep 5, but ENV.fetch('USER') { sleep 5 } won't.
<nickjj>
leftylink, ah that makes a lot of sense, i didn't think the first one would evaluate if USER existed but it sounds like it does?
<leftylink>
of course. function arguments are always evaluated before the function is called.
<nickjj>
thanks, when you you think about it like that, it makes sense -- for some reason i thought it may have short circuited somehow
<nickjj>
this is where premature optimization is also the root of all evil because it begs to ask if defining a block that's not executed is faster or slower than evaluating something "simple" like a default string or boolean
<nickjj>
because it almost sounds like it always makes sense to use a block
AlexBrownSobinec has joined #ruby
<nickjj>
i ran it through Benchmark and when setting a string as a default value the block version is consistently twice as fast but we're also talking 0.000005 vs 0.000012
teclator has quit [Ping timeout: 248 seconds]
hightower2 has quit [Remote host closed the connection]
<Momentum>
any suggestion for a title slugification gem?
Linux_Kerio has quit [Read error: Connection reset by peer]
factor has joined #ruby
Linux_Kerio has joined #ruby
<leah2>
for ENV, ENV[key] || slowfn works the same
wand has quit [Ping timeout: 255 seconds]
wand has joined #ruby
factor has quit [Remote host closed the connection]
factor has joined #ruby
factor has quit [Remote host closed the connection]
<AlexBrownSobinec>
I made a ChatGPT IRC bot lmao
moldorcoder7 has joined #ruby
<Momentum>
does the API allow that?
<Momentum>
isn't it limited?
<AlexBrownSobinec>
I gonna add the cooldown for 1 minute
<AlexBrownSobinec>
Also
<AlexBrownSobinec>
If i gonna make random choice from multiple tokens
<AlexBrownSobinec>
THis can help me
AlexBrownSobinec has quit [Ping timeout: 260 seconds]
niv has quit [Ping timeout: 260 seconds]
niv has joined #ruby
c10l7 has quit [*.net *.split]
siery has quit [*.net *.split]
Sankalp has quit [*.net *.split]
wmoxam has quit [*.net *.split]
CharleyBates has quit [*.net *.split]
jmcgnh has quit [*.net *.split]
micro has quit [*.net *.split]
bougyman has quit [*.net *.split]
miah has quit [*.net *.split]
rapha has quit [*.net *.split]
depesz has quit [*.net *.split]
cornett has quit [*.net *.split]
ralu1 has quit [*.net *.split]
leftylink has quit [*.net *.split]
sol has quit [*.net *.split]
PedroG1 has quit [*.net *.split]
scottg489 has quit [*.net *.split]
siery has joined #ruby
c10l7 has joined #ruby
wmoxam has joined #ruby
Sankalp has joined #ruby
CharleyBates has joined #ruby
rapha has joined #ruby
micro has joined #ruby
depesz has joined #ruby
bougyman has joined #ruby
cornett has joined #ruby
scottg489 has joined #ruby
sol has joined #ruby
ralu1 has joined #ruby
leftylink has joined #ruby
miah has joined #ruby
PedroG1 has joined #ruby
ralu1 has quit [Max SendQ exceeded]
scottg489 has quit [Max SendQ exceeded]
c10l7 has quit [Max SendQ exceeded]
bougyman has quit [Max SendQ exceeded]
micro has quit [Max SendQ exceeded]
micro has joined #ruby
scottg489 has joined #ruby
bougyman has joined #ruby
ralu1 has joined #ruby
c10l7 has joined #ruby
ur5us has joined #ruby
AlexBrownSobinec has joined #ruby
CoolerX has quit [Ping timeout: 256 seconds]
joast has joined #ruby
jmcgnh has joined #ruby
tomtmym has quit [Quit: Gone.]
AlexBrownSobinec has quit [Quit: Client closed]
CoolerX has joined #ruby
CoolerX has quit [Client Quit]
___nick___ has quit [Ping timeout: 255 seconds]
szkl has joined #ruby
_ht has quit [Remote host closed the connection]
infinityfye has quit [Read error: Connection reset by peer]
teclator has joined #ruby
gr33n7007h has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
ruby[bot] has quit [Remote host closed the connection]