adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.1, 2.7.3, 2.6.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
jenrzzz has quit [Ping timeout: 265 seconds]
konsolebox has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
konsolebox has joined #ruby
pwnd_ has quit [Read error: Connection reset by peer]
pwnd_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
deviantfero has quit [Quit: WeeChat 3.1]
deviantfero has joined #ruby
jenrzzz has joined #ruby
konsolebox has quit [Remote host closed the connection]
eddof13 has quit [Ping timeout: 268 seconds]
konsolebox has joined #ruby
cd has quit [Quit: cd]
Emmanuel_Chanel has joined #ruby
konsolebox has quit [Quit: Leaving]
gearnode has quit [Ping timeout: 250 seconds]
TeDChange has quit [Ping timeout: 252 seconds]
budonyc has joined #ruby
TeDChange has joined #ruby
budonyc has quit [Quit: Leaving]
memcorrupt has joined #ruby
robotbee has quit [Ping timeout: 240 seconds]
m27frogy has quit [Quit: ZNC - https://znc.in]
m27frogy has joined #ruby
al2o3-cr-tmp has quit [Ping timeout: 240 seconds]
<istrasci> havenwood: Sorry, went AFK right before you posted.  That answers my question.  Thank you.
MalkbabY_ has joined #ruby
<havenwood> istrasci: Or another option is: instance_variable_get :@foo
<havenwood> istrasci: instance_variable_get :"@#{:foo}"
MalkbabY has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
Rudd0 has quit [Remote host closed the connection]
<istrasci> So I have `def MyClass; SOME_CONST = :sc; attr_accessor SOME_CONST; end`  Defining the attr_accessor this way works.
va5c0 has joined #ruby
<istrasci> I can access the attr_accessor "manually" as `m = MyClass.new;  m.sc`.
<istrasci> But I was trying to access it using the SOME_CONST constant.  Like `m.SOME_CONST`, but knowing that syntax wouldn't work.
<istrasci> But as you said, `m.public_send(MyClass::SOME_CONST)` works.
va5c0 has quit [Quit: WeeChat 3.1]
memcorrupt has quit [Quit: -a- ...]
MalkbabY_ is now known as MalkbabY
powerhouse_ has joined #ruby
robotbee has joined #ruby
ChmEarl has quit [Quit: Leaving]
patr0clus has quit [Quit: Textual IRC Client: www.textualapp.com]
al2o3-cr-tmp has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deviantfero has quit [Ping timeout: 240 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
Technodrome has joined #ruby
al2o3-cr-tmp is now known as al2o3-cr
robotbee has quit [Read error: Connection reset by peer]
m27frogy has quit [Ping timeout: 268 seconds]
Rudd0 has joined #ruby
<perdent> Anyone able to port this python code to Ruby? https://pastebin.com/RitXvKg5
<ruby[bot]> perdent: as I told you already, please use https://gist.github.com
<perdent> Or this code: https://pastebin.com/JGkNVAM8
<ruby[bot]> perdent: as I told you already, please use https://gist.github.com
powerhouse_ has quit [Read error: Connection reset by peer]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
Tziltzal has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
konsolebox has joined #ruby
thinkpad has quit [Ping timeout: 268 seconds]
thinkpad has joined #ruby
neshpion has quit [Quit: neshpion]
jenrzzz has joined #ruby
dinfuehr has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
bucareli has joined #ruby
<Tziltzal> Hi
<Tziltzal> Does anyone know how or whether it's possible to hold ActiveRecord database connections in separate threads so that I can wait_for_notify from different databases?
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
pwnd_ has quit [Ping timeout: 260 seconds]
pwnd_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
konsolebox has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
imadper has joined #ruby
jenrzzz has joined #ruby
imadper is now known as iMadper-Lenovo
MalkbabY_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
MalkbabY has quit [Ping timeout: 260 seconds]
teclator has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Rounin has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jla has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
dpl has joined #ruby
vondruch has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
pwnd_ has quit [Quit: Ping timeout (120 seconds)]
pwnd_ has joined #ruby
jenrzzz has joined #ruby
<jla> hey baweave , just to share that i really enjoyed watching 'Ruby 's Grimoire' video ( COnf ) ...
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
fandre1986 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
cuerbot has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
bucareli has quit [Quit: leaving]
jenrzzz has joined #ruby
fandre1986 has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
vondruch has quit [Ping timeout: 246 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
jenrzzz has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cd has joined #ruby
andremed- has joined #ruby
andremedeiros has quit [Ping timeout: 268 seconds]
andremed- is now known as andremedeiros
Rudd0 has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
gix- has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
iMadper-Lenovo has quit [Ping timeout: 268 seconds]
jla has quit [Ping timeout: 240 seconds]
arahael1 is now known as Arahael
gearnode has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jla has joined #ruby
wallacer has quit [Quit: No Ping reply in 180 seconds.]
vondruch has joined #ruby
jenrzzz has joined #ruby
wallacer has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Tziltzal has quit [Remote host closed the connection]
jetchisel has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cd has quit [Ping timeout: 268 seconds]
ua has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jetchisel has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
Rudd0 has joined #ruby
TCZ has joined #ruby
jenrzzz has joined #ruby
gearnode has quit [Quit: WeeChat 3.1]
gearnode has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
_aeris has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
jla has quit [Ping timeout: 252 seconds]
_aeris is now known as _aeris_
jenrzzz has joined #ruby
MalkbabY has joined #ruby
jla has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
baojg has quit [Remote host closed the connection]
jenrzzz has joined #ruby
MalkbabY_ has quit [Ping timeout: 260 seconds]
baojg has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
istrasci has quit [Quit: Connection closed]
jenrzzz has joined #ruby
m27frogy has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
nixue has quit [Quit: Connection closed]
wallacer has quit [Quit: No Ping reply in 180 seconds.]
wallacer has joined #ruby
Technodrome has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jla has quit [Ping timeout: 265 seconds]
akem has quit [Ping timeout: 260 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
andremedeiros has joined #ruby
shtirlic has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ua has joined #ruby
<perdent> Anyone able to port this python code to Lua? https://pastebin.com/RitXvKg5 Or this code: https://pastebin.com/JGkNVAM8
<ruby[bot]> perdent: as I told you already, please use https://gist.github.com
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
<perdent> Anyone know why am I getting this error? and how to fix it? https://pastebin.com/1iJf5aMH
<ruby[bot]> perdent: as I told you already, please use https://gist.github.com
<perdent> Traceback (most recent call last):
<perdent> wa.rb:1:in `require_relative': cannot load such file -- /home/blah/py2rb/decimal (LoadError)
<perdent> 1: from wa.rb:1:in `<main>'
jenrzzz has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
<leftylink> well that would seem to depend entirely on whether there were indeed such a file, wouldn't there...
<leftylink> also there's been one time where the file existed and was not readable, that got me
<leftylink> but now I remember
TCZ has quit [Quit: Do nothing unless you must, and when you must act -- hesitate.]
jenrzzz has quit [Ping timeout: 248 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<perdent> leftylink: how do i find the filea? isnt decimal a ruby package?
<perdent> gem install decimal?
napcae- has quit [Quit: %bye%]
napcae has joined #ruby
<leftylink> but this is a require_relative
<leftylink> the error message has already clearly stated where it's looking for the file
<perdent> Traceback (most recent call last):
<perdent> 2: from wa.rb:1:in `<main>'
<perdent> 1: from /home/blah/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
<perdent> /home/blah/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- decimal (LoadError)
baojg has quit [Remote host closed the connection]
<perdent> ~/py2rb$ ls
<perdent> ast.txt LICENSE py2rb py2rb.py README.rst run_tests.py setup.py test_results.txt tests testtools wacko.rb wa.py wa.rb watermark.rb
<perdent> leftylink: i am running it in the same dir
<perdent> ruby wa.rb
<leftylink> indeed you are.
jenrzzz has joined #ruby
<perdent> so where is the location of the decimal file?
baojg has joined #ruby
<leftylink> well, the error message has told you where it needs to be. how you get it there is up to you - since you're running it, you're in control and have the power to put it there
cow[moo] has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
GodFather has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
HannaM has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
DaRock has joined #ruby
deviantfero has joined #ruby
<perdent> leftylink: its still not working
<leftylink> if I have no actionable information upon which to base any recommendations, it would be foolish to expect any
pwnd_9 has joined #ruby
akem has joined #ruby
pwnd_ has quit [Read error: Connection reset by peer]
pwnd_9 is now known as pwnd_
jenrzzz has quit [Ping timeout: 240 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
jenrzzz has joined #ruby
Guest48 has joined #ruby
budonyc has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
jeromelanteri has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<Iambchop> perdent: from your github link: "To install the library: gem install ruby-decimal" then "require the library: require 'decimal'" to use require_relative you would need to manually download the lib files into your py2rb directory first; basically require_relative expects you to specify the path to the file on your local filesystem, whereas require will search your system for installed gems
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
GodFather has quit [Remote host closed the connection]
GodFather has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
al2o3-cr has quit [Quit: WeeChat 3.1]
al2o3-cr has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jinie has quit [Quit: ZNC 1.8.2 - https://znc.in]
jinie has joined #ruby
MalkbabY_ has joined #ruby
jla has joined #ruby
MalkbabY has quit [Ping timeout: 240 seconds]
Guest48 has joined #ruby
maroloccio has joined #ruby
jeromelanteri has quit [Quit: Leaving]
neshpion has joined #ruby
weaksauce has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
howdoi has joined #ruby
dinfuehr has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Read error: Connection reset by peer]
deviantfero has quit [Ping timeout: 248 seconds]
ChmEarl has joined #ruby
deviantfero has joined #ruby
cthulchu_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deviantfero has quit [Quit: WeeChat 3.1]
deviantfero has joined #ruby
maroloccio has quit [Quit: WeeChat 2.3]
jla has quit [Ping timeout: 265 seconds]
maroloccio has joined #ruby
Guest48 has joined #ruby
robotbee has joined #ruby
scriptonaut has quit [Changing host]
scriptonaut has joined #ruby
maroloccio has quit [Read error: Connection reset by peer]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
jla has joined #ruby
deviantfero has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
WA9ACE has joined #ruby
lockweel has joined #ruby
WA9ACE has quit [Quit: Updating details, brb]
WA9ACE has joined #ruby
WA9ACE has quit [Client Quit]
WA9ACE has joined #ruby
robotbee has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
deviantfero has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest48 has joined #ruby
DTZUZU has joined #ruby
deviantfero has quit [Quit: WeeChat 3.1]
deviantfero has joined #ruby
deviantfero has quit [Client Quit]
robotbee has joined #ruby
evdubs has joined #ruby
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
Seich has quit [Quit: Gone fishing.]
robotbee has quit [Ping timeout: 240 seconds]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
gix has joined #ruby
robotbee has joined #ruby
MalkbabY has joined #ruby
robotbee has quit [Remote host closed the connection]
neshpion has quit [Remote host closed the connection]
thinkpad has quit [Ping timeout: 248 seconds]
neshpion has joined #ruby
MalkbabY_ has quit [Ping timeout: 260 seconds]
thinkpad has joined #ruby
Technodrome has joined #ruby
stdedos has joined #ruby
jla has quit [Ping timeout: 246 seconds]
stdedos has quit [Quit: Connection closed]
shtirlic has quit [Ping timeout: 248 seconds]
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_aeris has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
_aeris is now known as _aeris_
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
jetchisel has joined #ruby
micah has quit [Ping timeout: 240 seconds]
roshanavand__ has joined #ruby
lockweel has quit [Quit: Leaving]
al2o3-cr has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
jla has joined #ruby
jenrzzz has joined #ruby
elcuervo has joined #ruby
jla has quit [Ping timeout: 260 seconds]
cuerbot has quit [Ping timeout: 265 seconds]
Guest48 has joined #ruby
kinduff has quit [Quit: Ping timeout (120 seconds)]
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kinduff has joined #ruby
croberts has quit [Remote host closed the connection]
clemens3 has quit [Ping timeout: 268 seconds]
jetchisel has quit [Ping timeout: 268 seconds]
llua has quit [Ping timeout: 268 seconds]
croberts has joined #ruby
llua has joined #ruby
jetchisel has joined #ruby
clemens3 has joined #ruby
patr0clus has joined #ruby
perdent has quit [Ping timeout: 240 seconds]
Guest48 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dpl_ has joined #ruby
adu_ has joined #ruby
dpl_ has quit [Client Quit]
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
perdent has joined #ruby
adu_ has quit [Quit: adu_]
Guest48 has joined #ruby
DaRock has quit [Ping timeout: 260 seconds]
bucareli has joined #ruby
bucareli has quit [Client Quit]
petru_ has joined #ruby
petru_ has quit [Remote host closed the connection]
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patr0clus has joined #ruby
Axy has joined #ruby
Technodrome has joined #ruby
gearnode has quit [Ping timeout: 248 seconds]
Mia has quit [Ping timeout: 260 seconds]
cliluw has joined #ruby
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patr0clus has joined #ruby
postmodern_ has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Mia has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
patr0clus has quit [Quit: Textual IRC Client: www.textualapp.com]
Axy has quit [Ping timeout: 260 seconds]
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
postmodern_ has quit [Quit: Leaving]
Guest48 has joined #ruby
adu_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthulchu_ has quit [Ping timeout: 246 seconds]
adu_ has quit [Quit: adu_]
DaRock has joined #ruby
lightstalker has joined #ruby
MalkbabY_ has joined #ruby
MalkbabY has quit [Ping timeout: 246 seconds]
DaRock has quit [Ping timeout: 246 seconds]
jess has joined #ruby
gearnode has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
roshanavand__ has quit [Ping timeout: 240 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]