havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: 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!
contradictioned_ has joined #ruby
akemhp has quit [Remote host closed the connection]
PikaChokeMe_ has quit [Remote host closed the connection]
Intelo has quit [Remote host closed the connection]
bukkitgerman has quit [Quit: Ping timeout (120 seconds)]
bodqhrohro has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
pinpox has quit [Quit: ZNC 1.7.5 - https://znc.in]
canton7 has quit [Quit: ZNC - http://znc.in]
sagax has quit [Remote host closed the connection]
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
m17 has quit [Ping timeout: 265 seconds]
Buggys has quit [Ping timeout: 265 seconds]
canton7_ is now known as canton7
olspookishmagus has quit [Ping timeout: 265 seconds]
Guest3521 has quit [Quit: -= A click to real life biatches!!! =-]
olspookishmagus has joined #ruby
pinpox has joined #ruby
jidar has quit [Ping timeout: 265 seconds]
olspookishmagus is now known as Guest99060
Buggys has joined #ruby
cnsvc has quit [Quit: WeeChat 2.7]
weird_error has quit [Quit: weird_error]
pinpox- has quit [Ping timeout: 240 seconds]
m17 has joined #ruby
jidar has joined #ruby
fphilipe has joined #ruby
TCZ has joined #ruby
mniip_ is now known as mniip
turbo_choo has quit [Ping timeout: 272 seconds]
leitz has joined #ruby
fratis has joined #ruby
<leitz> Would someone mind looking at their irb files (mine is /usr/local/lib/ruby/gems/2.6.0/gems/irb-1.2.1) and seeing if there's a "readline" file? Somehow a gem update seems to have killed irb
lineus has quit [Remote host closed the connection]
lineus has joined #ruby
<leitz> Okay, stole one.
<ratah> leitz: /usr/local/lib/ruby/gems/2.6/gems/irb-1.0.0/exe/irb is the only one I got
<leitz> I'm using ruby 2.2.6p124, and there was no readline.rb in /usr/local/lib/ruby/2.6.0. I move in the one from 2.7.0 and it seems to work.
<leitz> ratah, thanks!
<leitz> I'm still trying to figure out what happened. I'm using a ruby that I compiled, but usually things don't die after they've worked for a while. :)
<ratah> Cool :)
fratis has quit [Remote host closed the connection]
fratis has joined #ruby
fratis has quit [Remote host closed the connection]
fratis has joined #ruby
fratis has quit [Remote host closed the connection]
fratis has joined #ruby
fratis has quit [Remote host closed the connection]
fratis has joined #ruby
fratis has quit [Remote host closed the connection]
fratis has joined #ruby
fratis has quit [Remote host closed the connection]
fratis has joined #ruby
mokha has quit [Quit: mokha]
fratis has quit [Ping timeout: 265 seconds]
meinside has joined #ruby
_phaul has joined #ruby
phaul has quit [Ping timeout: 272 seconds]
fratis has joined #ruby
summertalk has joined #ruby
lightstalker has quit [Remote host closed the connection]
lightstalker has joined #ruby
zlogan has quit [Ping timeout: 272 seconds]
cnsvc has joined #ruby
DaRock has joined #ruby
howdoi has joined #ruby
zlogan has joined #ruby
turbo_choo has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bambanx has quit [Quit: Leaving]
bvdw has joined #ruby
xxdxxd has quit [Ping timeout: 272 seconds]
summertalk has quit [Quit: WeeChat 2.6]
sergioro has quit [Quit: leaving]
dionysus69 has quit [Quit: dionysus69]
sergioro has joined #ruby
s3nd1v0g1us has joined #ruby
leitz has quit [Quit: Leaving]
alfiemax has joined #ruby
pama has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.6]
alfiemax has quit [Ping timeout: 260 seconds]
cjohnson has left #ruby [#ruby]
john2496 has joined #ruby
NODE has joined #ruby
hutch has quit [Ping timeout: 260 seconds]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
TCZ has quit [Quit: Bye Bye]
gix has quit [Ping timeout: 240 seconds]
Benett has joined #ruby
ellcs has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
ellcs has joined #ruby
alfiemax has quit [Ping timeout: 272 seconds]
cnsvc has quit [Ping timeout: 240 seconds]
ratah has quit [Quit: Connection closed for inactivity]
fratis has quit [Remote host closed the connection]
cnsvc has joined #ruby
fratis has joined #ruby
phaul has joined #ruby
tpanarch1st has quit [Ping timeout: 255 seconds]
_phaul has quit [Ping timeout: 240 seconds]
john2496 has quit [Remote host closed the connection]
fratis has quit [Ping timeout: 272 seconds]
buckworst has quit [Quit: WeeChat 2.7]
s2013 has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest67458 is now known as baweaver
baweaver has quit [Changing host]
baweaver has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
skryking has joined #ruby
hays has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
braincrash has quit [Quit: bye bye]
drincruz has joined #ruby
turbo_choo has quit [Ping timeout: 265 seconds]
hays has joined #ruby
braincrash has joined #ruby
turbo_choo has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
fratis has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
Benett has quit [Quit:  ]
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
NODE has quit [Quit: -]
alex`` has quit [Quit: WeeChat 2.7]
NODE has joined #ruby
alex` has joined #ruby
alex` is now known as Guest66641
Guest66641 is now known as alex``
Intelo_ is now known as Intelo
Benett has joined #ruby
john2496 has joined #ruby
fratis has quit [Remote host closed the connection]
fratis has joined #ruby
fphilipe_ has joined #ruby
john2496 has quit [Ping timeout: 268 seconds]
fphilipe has quit [Ping timeout: 240 seconds]
fratis has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
nixy37 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37 has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
Benett has quit [Quit:  ]
Benett has joined #ruby
ChmEarl has quit [Quit: Leaving]
drincruz has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
schne1der has joined #ruby
drincruz has joined #ruby
coffeex3 has joined #ruby
drincruz has quit [Ping timeout: 272 seconds]
chalkmonster has joined #ruby
alex`` has quit [Quit: WeeChat 2.7]
alex` has joined #ruby
alex` is now known as Guest2560
Benett has quit [Quit:  ]
Guest2560 is now known as alex``
alex`` has quit [Client Quit]
alex`` has joined #ruby
Benett has joined #ruby
schne1der has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
grr12314 has joined #ruby
howdoi has joined #ruby
coffeex3 has quit [Ping timeout: 265 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
alex`` has quit [Ping timeout: 268 seconds]
alex`` has joined #ruby
sagax has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
conta has joined #ruby
conta1 has joined #ruby
drincruz has joined #ruby
conta has quit [Ping timeout: 240 seconds]
conta1 is now known as conta
chalkmonster has quit [Ping timeout: 265 seconds]
chalkmonster has joined #ruby
clemens3 has quit [Quit: WeeChat 2.1]
jenrzzz has quit [Ping timeout: 240 seconds]
drincruz has quit [Ping timeout: 240 seconds]
xxdxxd has joined #ruby
teclator has joined #ruby
johnny56_ has joined #ruby
fercell has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
sergioro has quit [Quit: leaving]
cd has quit [Quit: cd]
johnny56_ has quit [Ping timeout: 240 seconds]
akemhp_ has quit [Remote host closed the connection]
johnny56_ has joined #ruby
xxdxxd has quit [Ping timeout: 268 seconds]
akemhp_ has joined #ruby
vondruch has quit [Quit: vondruch]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
<Cork> what would be the best way to write something like a bruteforce unicode string builder in ruby (looping through all possible unicode characters)
<Cork> i have a string escaper i need to verify it escapes all that is needed
drincruz has joined #ruby
schne1der has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
chalkmon1 has joined #ruby
chalkmonster has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
ratah has joined #ruby
dionysus69 has joined #ruby
tryhard21 has quit [Ping timeout: 272 seconds]
chalkmon1 has quit [Quit: WeeChat 2.7]
tryhard21 has joined #ruby
fphilipe_ has quit [Ping timeout: 272 seconds]
dretnx has joined #ruby
turbo_choo has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
x0n has joined #ruby
infinityfye has joined #ruby
dretnx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
fphilipe_ has joined #ruby
drincruz has joined #ruby
drincruz has quit [Ping timeout: 272 seconds]
conta1 has joined #ruby
ep4sh2k___ has quit [Quit: Connection closed for inactivity]
conta has quit [Ping timeout: 246 seconds]
conta1 has quit [Remote host closed the connection]
conta has joined #ruby
lxsameer has joined #ruby
turbo_choo has joined #ruby
Nahra has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
banisterfiend has joined #ruby
alfiemax has quit [Remote host closed the connection]
conta has quit [Quit: conta]
Fernando-Basso has joined #ruby
jenrzzz has joined #ruby
turbo_choo has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
ghormoon_ is now known as ghormoon
Fernando-Basso has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
Nahra has quit [Quit: leaving]
Nahra has joined #ruby
Keltia has joined #ruby
Keltia has quit [Changing host]
Keltia has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
nofxx__ has quit [Remote host closed the connection]
DaRock has quit [Ping timeout: 272 seconds]
nofxx__ has joined #ruby
alfiemax has joined #ruby
conta has joined #ruby
conta has quit [Client Quit]
Nahra has quit [Quit: leaving]
alfiemax has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
chalkmonster has joined #ruby
jenrzzz has joined #ruby
donofrio has joined #ruby
drincruz has joined #ruby
TCZ has joined #ruby
drincruz has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
alex`` has joined #ruby
TCZ has quit [Quit: Bye Bye]
conta has joined #ruby
conta has quit [Client Quit]
conta has joined #ruby
mcspud has quit [Ping timeout: 258 seconds]
fanta1 has joined #ruby
mcspud has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
jenrzzz has joined #ruby
snuz has joined #ruby
conta has quit [Remote host closed the connection]
tryhard21 has quit [Ping timeout: 265 seconds]
tryhard21 has joined #ruby
chalkmonster has joined #ruby
tryhard211 has joined #ruby
tryhard21 has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
infernix has quit [Ping timeout: 248 seconds]
sergioro has joined #ruby
bukkitgerman8 has quit [Quit: Ping timeout (120 seconds)]
bukkitgerman8 has joined #ruby
infinityfye_ has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
bukkitgerman8 has quit [Client Quit]
ellcs has joined #ruby
infinityfye has quit [Ping timeout: 268 seconds]
bukkitgerman8 has joined #ruby
buckworst has joined #ruby
burningserenity has joined #ruby
clemens3 has joined #ruby
banisterfiend has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
royal_screwup21 has joined #ruby
bvdw has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
drincruz has quit [Ping timeout: 240 seconds]
jcalla has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 260 seconds]
alex`` has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
davispuh has joined #ruby
burningserenity has quit [Quit: Leaving.]
burningserenity has joined #ruby
bsdbandit-01 has quit [Ping timeout: 246 seconds]
markopasha has joined #ruby
buckworst has quit [Ping timeout: 240 seconds]
turbo_choo has joined #ruby
alex`` has quit [Quit: WeeChat 2.7]
alexherbo2 has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
bsdbandit-01 has joined #ruby
hutch has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
troulouliou_div2 has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jonopoly has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
akemhp_ has quit [Read error: Connection reset by peer]
Esa_ has joined #ruby
akemhp_ has joined #ruby
fanta1 has quit [Quit: fanta1]
lucasb has joined #ruby
tdy has joined #ruby
tpanarch1st has joined #ruby
jcalla has joined #ruby
hutch has quit [Ping timeout: 268 seconds]
impermanence has joined #ruby
john2496 has joined #ruby
hutch has joined #ruby
alexherbo29 has joined #ruby
alexherbo2 has quit [Ping timeout: 272 seconds]
alexherbo29 is now known as alexherbo2
jenrzzz has joined #ruby
drincruz has joined #ruby
schne1der has joined #ruby
_phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
infinityfye_ has quit [Quit: Leaving]
johnny56_ has quit [Ping timeout: 240 seconds]
grr12314 has quit [Remote host closed the connection]
phaul has joined #ruby
_phaul has quit [Ping timeout: 260 seconds]
markopasha has quit [Remote host closed the connection]
ttoocs has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Quit: WeeChat 2.7]
al2o3-cr has joined #ruby
johnny56_ has joined #ruby
duderonomy has joined #ruby
infernix has joined #ruby
chalkmonster has joined #ruby
burningserenity has quit [Ping timeout: 240 seconds]
bukkitgerman8 has quit [Quit: Ping timeout (120 seconds)]
fanta1 has joined #ruby
bukkitgerman8 has joined #ruby
cisco has joined #ruby
burningserenity has joined #ruby
burningserenity has quit [Max SendQ exceeded]
burningserenity has joined #ruby
conta1 has joined #ruby
conta1 has quit [Client Quit]
DTZUZU has joined #ruby
DTZUZU2 has quit [Ping timeout: 245 seconds]
burningserenity has quit [Ping timeout: 265 seconds]
SeepingN has joined #ruby
jeromelanteri has joined #ruby
u0_a1331 has quit [Quit: WeeChat 2.3]
burningserenity has joined #ruby
DTZUZU has quit [Ping timeout: 265 seconds]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
DTZUZU has joined #ruby
burningserenity has quit [Ping timeout: 260 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
alexherbo29 has joined #ruby
alexherbo2 has quit [Ping timeout: 268 seconds]
alexherbo29 is now known as alexherbo2
Nahra has joined #ruby
burningserenity has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.5]
ellcs has quit [Ping timeout: 240 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spacesuitdiver has joined #ruby
gavlee has joined #ruby
chamunks- has quit [Quit: Don't worry I'm not gone yet.]
chalkmonster has joined #ruby
royal_screwup21 has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
Nahra has quit [Quit: leaving]
jenrzzz has joined #ruby
mkroman has quit [Ping timeout: 260 seconds]
fercell has quit [Quit: WeeChat 2.7]
turbo_choo has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
markopasha has joined #ruby
tdy1 has joined #ruby
clemens3 has quit [Quit: WeeChat 2.1]
tdy has quit [Ping timeout: 272 seconds]
tdy1 is now known as tdy
mkroman has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
leitz has joined #ruby
snickers has joined #ruby
fercell has joined #ruby
cthulchu has joined #ruby
<leitz> Studying "Head First Object-Oriented Analysis and Design", getting lots of good ideas on how to improve my code.
fphilipe_ has quit [Ping timeout: 246 seconds]
cisco has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
ErhardtMundt has quit [Remote host closed the connection]
ErhardtMundt has joined #ruby
<adam12> leitz: The POODR book is pretty good too.
<adam12> leitz: Also, on ruby 2.2, you'd be looking for readline.so not readline.rb. Before Ruby 2.7, readline was a C extension. Ruby 2.7 ships with a pure ruby Readline implementation.
chalkmonster has joined #ruby
<leitz> adam12, I've read POODR a couple times, good stuff! Reading HFOOAD gives me a lot of the same, from a different perspective. Sometimes it takes a while for things to sink in.
lxsameer has quit [Ping timeout: 240 seconds]
sergioro has quit [Quit: leaving]
<leitz> adam12, in the cut of 2.7.0 I have, /usr/local/lib/ruby/2.7.0/readline.rb just requires readline.so.
tryhard211 has quit [Remote host closed the connection]
<adam12> leitz: Interesting. I wonder if that's a configuration option. The Ruby version is called reline.
<leitz> The only readline.so I can see, except for the Python lib, is /usr/local/src/ruby/.ext/x86_64-linux/readline.so
<adam12> leitz: It's possible that readline.rb requiring readline.so is just a fix for people doing 'require "readline.rb"'.
hramrach has quit [Quit: WeeChat 2.1]
fphilipe_ has joined #ruby
davispuh has quit [Ping timeout: 265 seconds]
<leitz> Ah, and there's the reline.rb. I'm still trying to figure out what killed my irb. Copying readline.rb from 2.7.0 to 2.6.0 seemed to fix it, but not sure what broke it.
fphilipe_ has quit [Ping timeout: 272 seconds]
davispuh has joined #ruby
sergioro has joined #ruby
howdoi has joined #ruby
ratah has quit [Quit: Connection closed for inactivity]
ldepandis has joined #ruby
sergioro has quit [Quit: leaving]
xxdxxd has joined #ruby
bukkitgerman8 has quit [Quit: Ping timeout (120 seconds)]
bukkitgerman8 has joined #ruby
Ven`` has joined #ruby
ellcs has joined #ruby
citizentwo has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
leah2 has quit [Ping timeout: 272 seconds]
cliluw has joined #ruby
alexherbo23 has joined #ruby
tpanarch1st has quit [Ping timeout: 255 seconds]
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo23 is now known as alexherbo2
alfiemax has quit [Ping timeout: 268 seconds]
<havenwood> Anyone have thoughts on how to do nice optimistic concurrency with a Ruby API? A version field? What format?
<havenwood> And somewhat related, how long to you expect an idempotency key to be persisted?
gix has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
nibbo has quit [Ping timeout: 272 seconds]
fphilipe_ has joined #ruby
leah2 has joined #ruby
rippa has joined #ruby
nofxx__ has quit [Remote host closed the connection]
<leitz> havenwood, I haven't gotten to concurrency yet. On idempotency, as long as the program runs. Granted, I'm more used to code that does a run and then ends, like Ansible.
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nibbo has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
conta1 has joined #ruby
bvdw has joined #ruby
fphilipe_ has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
sauvin has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 260 seconds]
houhoulis has joined #ruby
fphilipe_ has joined #ruby
snickers has quit [Quit: Textual IRC Client: www.textualapp.com]
xxdxxd has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
xxdxxd has joined #ruby
sagax has quit [Read error: Connection reset by peer]
ratah has joined #ruby
conta1 has quit [Quit: conta1]
jenrzzz has joined #ruby
sagax has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
nofxx has quit [Remote host closed the connection]
nofxx has joined #ruby
chalkmonster has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
fanta1 has quit [Quit: fanta1]
pwnd_nsfw has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
tpanarch1st has joined #ruby
cvz has quit [Quit: WeeChat 2.7]
akemhp has joined #ruby
akemhp_ has joined #ruby
fuzzface has joined #ruby
akemhp has quit [Read error: Connection reset by peer]
fuzzface has quit [Client Quit]
fuzzface has joined #ruby
wildtrees has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
cd has joined #ruby
fuzzface has quit [Quit: Leaving]
sgen has joined #ruby
coffeex3 has joined #ruby
buckworst has joined #ruby
Esa_ has quit []
xxdxxd has quit [Quit: xxdxxd]
cthulchu_ has joined #ruby
citizentwo has quit [Remote host closed the connection]
chalkmonster has joined #ruby
siery has joined #ruby
cthulchu has quit [Ping timeout: 260 seconds]
burningserenity has quit [Quit: Leaving.]
citizentwo has joined #ruby
romanlevin2 has joined #ruby
bsdbandit-01 has quit [Ping timeout: 268 seconds]
bsdbandit-01 has joined #ruby
Ven`` has joined #ruby
<siery> Hey, I'd notice that when you declare the Gosu class (like Gosu = Class.new) and then include the gosu library somewhere else the previous empty declaration will 'hang' in the memory to be accessed
<siery> Can you somehow overwrite that class with correct Gosu class but later?
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has quit [Quit: WeeChat 2.7]
tpanarch1st has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
<AndroidKitKat> is there any specifc reason as to why I can't access the hash here? https://waifupaste.moe/raw/Yl.txt
<AndroidKitKat> I wrote a solution in python and im trying to do something similar in ruby
schne1der has quit [Quit: schne1der]
<phaul> &url ttps://waifupaste.moe/raw/Yl.txt
<rubydoc> Request returned response code 0
<rubydoc> stderr: -e:75:in `rpn_print': undefined local variable or method `leds' for main:Object (NameError)... check link for more (https://carc.in/#/r/8jca)
<phaul> method defs are lexical scope boundary to local variables
<AndroidKitKat> so is the simple solution to just pass the leds in?
<AndroidKitKat> i know globals are sorta a non standard thing in ruby iirc, so i don't want to use them if there's a better solution
<phaul> define_method(:rpn_print) { |char| .. would have worked, or make leds instance var, or just pass it in
<AndroidKitKat> thanks
<phaul> or you can point to the led has with a constant
<phaul> probablly in this case that's the best
<phaul> you would also freeze the hash for good measure
<AndroidKitKat> ah good idea
<AndroidKitKat> thanks for your advice
<phaul> yw
<adam12> havenwood: Version field for optimistic concurrency is how Docker Swarm does it IIRC. It works reasonably well. Its a plain Integer.
<havenwood> adam12: That sounds along the lines of what we're currently doing. Incrementing monotonically.
john2496 has quit [Remote host closed the connection]
<al2o3-cr> AndroidKitKat: keep in mind the way you've wrote it will give you symbols as keys and not strings.
<AndroidKitKat> yeah i was running into that
<adam12> havenwood: I'd presume a nonce to live forever... at least scoped to the parent of whatever it's being acted on. I don't have much more of an opinion on that tho, because I really just want to prevent rapid-fire transactions in a row, not me being an idiot and mass-recharging everyone from 2012. That would be on me.
<havenwood> adam12: Yeah, forever seems reasonable to me too, buuut
jenrzzz has quit [Ping timeout: 265 seconds]
troulouliou_div2 has joined #ruby
sgen has quit [Ping timeout: 265 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
jeromelanteri has quit [Ping timeout: 268 seconds]
jeromelanteri has joined #ruby
<adam12> havenwood: Maybe we need a new name for nonce that is temporary. sonce? (sometimes once)
splud_wurk has joined #ruby
bsdbandit-01 has joined #ruby
<splud_wurk> I have a couple of arrays with data which came from cmdline as two sequences which have ordered relationship with one another. Suffice it to say, I have them in respective arrays sn=['1', '2', '3'] and id=['A', 'B', 'C']
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
<splud_wurk> I want to get them (and some other data) into an array of hashes so that I can use sensible hash references instead of hard coded array indexes for getting to the individual elements in a row.
fuzzface has joined #ruby
<splud_wurk> $device = sn.zip( id, Array.new(sn.count), Array.new(sn.count) )
<phaul> splud_wurk: show us the desired data output for that example of sn, and id
<lmat> Is best practices always to use strong parameters or only when ... what's it called ... @object.update_parameters?
jenrzzz has joined #ruby
tpanarch1st has joined #ruby
<phaul> splud_wurk: like { '1' => 'A', '2' => B, '3' => 'C' } ?
<splud_wurk> I can iterate with $device.each_index |i| , but then have to maniupulate data with $device[i][1] to get to the id for instance.
<havenwood> splud_wurk: What should the result be.
<havenwood> splud_wurk: It's easier to understand data rather than parsing this logic. Unix rule!
<splud_wurk> No, is array of sn, id, other data. same SN is associated with other array columns as well.
<havenwood> splud_wurk: Could you do an example showing inputs and desired output?
<havenwood> splud_wurk: For example, with [42, 24].cycle, ['1', '2', '3'], and ['A', 'B', 'C'], I want: {"1"=>["A", 42], "2"=>["B", 24], "3"=>["C", 42]}
fuzzface has quit [Quit: Leaving]
<adam12> lmat: You probably want @object.update almost all the time; if you look at the AR docs, you'll see that update_attributes() does some other stuff that is unexpected (I'm presuming you meant update_attributes)
<splud_wurk> like the output of the sn.zip above, but where [0] [1] [2] indexes are referenced by some associated/arbitrary text. "sn" 'id"
<adam12> lmat: Strong parameters is meant to avoid scenarios where someone changes the POST to set `admin=1` or something. If you just accepted params as is, then they might have their Account set to an admin. Strong parameters just says, in _this_ structure, give me a hash, then take that hash and use it for updating the record.
<phaul> siery: When you first declare your Gosu class the class object will be allocated. Any subsequent Gosu class definition will add onto that existing class, as casses are open, giving us monkey patching. Does this help?
<splud_wurk> I want the subarray indexed referred to by name So basically taking some number of equal-length arrays and making hashes from then: :sn => perhaps "1" => |
<splud_wurk> feck, I hate this irc client.
<splud_wurk> :sn => "1", :id => "A", :status => 0, version = "x.y.z"
<lmat> adam12: Yes, update_attributes.
<lmat> adam12: So is it recommended never to use params, but always strong params?
robscomputer has joined #ruby
<splud_wurk> lemme try a different tact: if I have a 2-dimentional array, how can I assign keys ?
<adam12> lmat: There's alternatives built outside of Rails (dry-validation or dry-schema for one) but yes, strong parameters or just manually filtering out params is your best bet in Rails last time I looked.
<adam12> splud_wurk: reduce into a hash (reduce, each_with_object, etc)
<phaul> we are asking for very simple description of the probem. Data In -> Data Out. You give Data In and Data Out, we figure out the task. We are having trouble understanding your explanation.
jenrzzz has quit [Ping timeout: 265 seconds]
<havenwood> ^
<lmat> adam12: I'm replacing things like user = User.find(params[:id]) to user = User.find(user_params[:id])
<adam12> lmat: find is less of a risk. You're safe leaving it the way it is, if it's a naked find like that.
<splud_wurk> phaul: - I really don't know what the hash elements would be like - I just want to be able to refer to whatever['123'][0] as whatever['123'][sn]
<lmat> adam12: Okay, thanks!
ellcs has quit [Ping timeout: 240 seconds]
coffeex3 has quit [Ping timeout: 268 seconds]
<splud_wurk> lemme try the reduce.
TCZ has joined #ruby
<havenwood> splud_wurk: whatever.dig('123', sn)
jenrzzz has joined #ruby
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NODE has quit [Quit: changing servers]
robscomputer has joined #ruby
siery has quit [Ping timeout: 260 seconds]
Intelo has quit [Ping timeout: 272 seconds]
NODE has joined #ruby
s3nd1v0g1us has joined #ruby
<al2o3-cr> splud_wurk: so, you want an array of hashes?
<havenwood> splud_wurk: If you could contrive a single example of what the data looks like, you'll probably get a quick answer.
NODE has quit [Quit: changing servers]
NODE has joined #ruby
<splud_wurk> back in a few, trying some tests
cnsvc has quit [Ping timeout: 240 seconds]
jjong` has quit [Ping timeout: 260 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
ur5us has joined #ruby
wald0 has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
snuz_ has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
wald0 has quit [Read error: Connection reset by peer]
wald0 has joined #ruby
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snuz has quit [Ping timeout: 246 seconds]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NODE has quit [Quit: changing servers]
Ven`` has joined #ruby
NODE has joined #ruby
citizentwo has quit [Remote host closed the connection]
e3d3 has joined #ruby
Ven`` has quit [Client Quit]
citizentwo has joined #ruby
robscomputer has joined #ruby
wald0 has quit [Read error: Connection reset by peer]
<e3d3> My ruby is installed in /usr/local/bin, but that dir has root-permisions so I need sudo to install gems. Is this the normal ?
wald0 has joined #ruby
turbo_choo has joined #ruby
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
<e3d3> also, can I install multiple ruby-version ?
wald0 has quit [Read error: Connection reset by peer]
wald0 has joined #ruby
<ratah> e3d3: Doesn't sound normal at all. There are version managers that let you install multiple rubies, but imho they're just add extra complexity.
<ratah> e3d3: Here on OpenBSD (aka. the world's simplest and most secure Unix-like OS), I just did `doas su && pkg_add ruby` and all my gems got installed into my user ~/.gem nice and easy.
<ratah> no more rvm, chruby or whatever
<e3d3> ratah: I saw also on ruby-lang.org that /usr/local is default for building from source
<e3d3> doas ? must be an OpenBSD thing
wald0 has quit [Read error: Connection reset by peer]
<ratah> Yep :) Like a more secure version of sudo
<splud_wurk> okay, seems like I just need to build each hash from the index for each array element.
<e3d3> I tried multiple times to try BSD-os's but, if I remember well, they have nasty partition requirements
wald0 has joined #ruby
<ratah> they got a more secure version of pretty much everything from firewalls to web/mailservers to ssl implementations.
<splud_wurk> e3d3: 'rvm' (ruby version manager). puts different rubies in your home directory, and you can switch between them. You have to maintain ALL of your gems on a version-by-version basis though.
<ratah> hmm
<splud_wurk> if you're using 2.10 and install a gem, when you 'rvm use 2.2.0' that gem won't be there until you install it for that version.
wald0 has quit [Read error: Connection reset by peer]
<ratah> e3d3: freebsd's installation is super nasty. tons of flashing ascii art etc... openbsd's is the simplest most elegant text-only installation i've ever seen. iirc partitioning was like a breeze
<splud_wurk> rvm puts the path to the selected ruby at the front of your path.
<e3d3> ratah: If I remember well, it required a primary partition.
<ratah> e3d3: anyway yeah, instead of making life harder with rvm i just install the prebuilt openbsd package, security audited and ready to go. maintained by none other than jeremy evans. is he idling here right now?
<al2o3-cr> splud_wurk: did you want something like this?
<al2o3-cr> &>> sn = %w(1 2 3); id = %w(A B C); st = [0,2,1]; ver = %w(0.0.1 0.0.2 0.0.3); sn.zip(id, st, ver).map { |x| %i(sn id status version).zip(x).to_h }
<rubydoc> # => [{:sn=>"1", :id=>"A", :status=>0, :version=>"0.0.1"}, {:sn=>"2", :id=>"B", :status=>2,... check link for more (https://carc.in/#/r/8jcr)
<ratah> e3d3: i think you're right
<al2o3-cr> because i'm dying to know :P
<e3d3> ratah: I see that my distro (debian-derivate) suplies 'rbenv', simple per-user Ruby version manager. Thanks for the tip
<splud_wurk> al2o3-cr: yea, that looks like what I was wanting. Thanks.
<splud_wurk> .map duhr.
<ratah> nice!
<e3d3> ratah: I must say that the enthusiasm about OpenBSD that I almost hear from every user makes me curious. I'll look into it again :)
cc_ has joined #ruby
<ratah> :D
markopasha has quit [Ping timeout: 240 seconds]
TCZ has quit [Quit: Bye Bye]
cnsvc has joined #ruby
sgen has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
<e3d3> Good search-machine on ruby-dom.com; searching for 'string' gives me amazon ads for strings and other clothing !?
cc__ has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
cc_ has quit [Ping timeout: 265 seconds]
e3d3 has left #ruby ["rcirc on GNU Emacs 25.1.50.1"]