cthu| has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 240 seconds]
cthu| has joined #ruby
roshanavand_ has quit [Ping timeout: 256 seconds]
gix has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 260 seconds]
hassox has joined #ruby
troulouliou_div2 has joined #ruby
cd has quit [Quit: cd]
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
troulouliou_div2 has quit [Ping timeout: 272 seconds]
troulouliou_dev has joined #ruby
troulouliou_div2 has joined #ruby
ur5us has joined #ruby
mozzarella has quit [Quit: WeeChat 2.8]
pwnd_nsfw has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
postmodern has quit [Quit: Leaving]
mozzarella has joined #ruby
orbyt_ has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
bambanx has quit [Quit: Leaving]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
bsdbandit-01 has joined #ruby
Omnilord has quit [Quit: Leaving]
cthu| has quit [Ping timeout: 240 seconds]
jetchisel has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
troulouliou_div2 has quit [Remote host closed the connection]
houhoulis has joined #ruby
drincruz has joined #ruby
braincrash has quit [Quit: bye bye]
r29v has quit [Quit: r29v]
braincrash has joined #ruby
Esa__ has quit []
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
alfiemax has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
secret-fire__ has quit [Quit: Leaving]
Secret-Fire has joined #ruby
elphe has joined #ruby
xco has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
donofrio has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
dualfade has quit [Ping timeout: 240 seconds]
mossplix has joined #ruby
hassox_ has joined #ruby
hassox has quit [Ping timeout: 272 seconds]
mossplix has quit [Ping timeout: 258 seconds]
alfiemax has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ur5us has quit [Ping timeout: 260 seconds]
cliluw has quit [Ping timeout: 272 seconds]
dualfade has joined #ruby
arzWZM has quit [Read error: Connection reset by peer]
arzWZM has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
houhoulis has quit [Remote host closed the connection]
hassox_ has quit [Quit: Leaving...]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
cliluw has joined #ruby
BenDover has joined #ruby
schne1der has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
skx86 has quit [Quit: Connection closed for inactivity]
Secret-Fire has joined #ruby
pwnd_nsfw has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
fandre1986 has joined #ruby
alexherbo2 has joined #ruby
Mikaela has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
alexherbo29 has joined #ruby
alfiemax has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 264 seconds]
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo29 is now known as alexherbo2
alfiemax has joined #ruby
elphe has joined #ruby
evdubs_ has joined #ruby
maidhc has joined #ruby
evdubs has quit [Ping timeout: 260 seconds]
evdubs_ is now known as evdubs
xco has joined #ruby
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maidhc has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baojg has quit [Remote host closed the connection]
baojg_ has joined #ruby
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maidhc has joined #ruby
mikhailnovikov has joined #ruby
mossplix has joined #ruby
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
alfiemax has quit [Remote host closed the connection]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
maidhc has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maidhc has joined #ruby
schne1der has quit [Ping timeout: 256 seconds]
mossplix has quit [Remote host closed the connection]
xco has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
mossplix has joined #ruby
Secret-Fire has joined #ruby
alfiemax has joined #ruby
imode has quit [Ping timeout: 260 seconds]
Xiti` is now known as Xiti
Secret-Fire has quit [Read error: Connection reset by peer]
Secret-Fire has joined #ruby
akem has quit [Quit: Leaving]
dionysus69 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
jetchisel has quit [Ping timeout: 256 seconds]
alfiemax has quit [Remote host closed the connection]
oddp_ has joined #ruby
fercell has joined #ruby
alfiemax has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
Secret-Fire has joined #ruby
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cnsvc has quit [Ping timeout: 240 seconds]
elphe has quit [Ping timeout: 240 seconds]
akem has joined #ruby
maidhc has joined #ruby
maidhc has quit [Client Quit]
maidhc has joined #ruby
In0perable has quit [Quit: All your buffer are belong to us!]
sauvin_ has joined #ruby
elphe has joined #ruby
Inoperable has joined #ruby
bocaneri has quit [Ping timeout: 264 seconds]
sauvin_ is now known as Sauvin
alexherbo2 has quit [Ping timeout: 240 seconds]
arzWZM has quit [Ping timeout: 264 seconds]
arzWZM has joined #ruby
postmodern has joined #ruby
markoong has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
markoong has quit [Ping timeout: 240 seconds]
markoong has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
Secret-Fire has joined #ruby
ur5us has joined #ruby
schne1der has joined #ruby
alexherbo2 has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
sagax has quit [Ping timeout: 272 seconds]
mikhailnovikov has quit [Read error: Connection reset by peer]
yxhuvud has quit [Remote host closed the connection]
mikhailnovikov has joined #ruby
yxhuvud has joined #ruby
xyhuvud has joined #ruby
yxhuvud has quit [Client Quit]
mikhailnovikov has quit [Read error: Connection reset by peer]
mikhailnovikov has joined #ruby
fandre1986 has quit [Ping timeout: 246 seconds]
sagax has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
mossplix has quit [Remote host closed the connection]
konsolebox has joined #ruby
mossplix has joined #ruby
gitter1234 has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
bamdad has quit [Write error: Broken pipe]
_aeris_ has quit [Remote host closed the connection]
iNs has quit [Write error: Broken pipe]
_aeris_ has joined #ruby
iNs has joined #ruby
bamdad has joined #ruby
donofrio has joined #ruby
drincruz has joined #ruby
elphe has quit [Ping timeout: 256 seconds]
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BSaboia has joined #ruby
mossplix has quit [Remote host closed the connection]
chalkmonster has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
<pwnd_nsfw>
Who here has written an IRC in any language that implements some ability for a user to authenticate with the bot alone?
<pwnd_nsfw>
IRC bot* my apologies
BSaboia has quit [Quit: This computer has gone to sleep]
mossplix has joined #ruby
maidhc has joined #ruby
nofxx has joined #ruby
BSaboia has joined #ruby
drincruz has joined #ruby
BSaboia has quit [Client Quit]
postmodern has quit [Quit: Leaving]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
alfiemax has quit [Remote host closed the connection]
kyrylo has joined #ruby
BSaboia has joined #ruby
kyrylo has quit [Client Quit]
alfiemax has joined #ruby
fercell has quit [Quit: WeeChat 2.8]
<adam12>
pwnd_nsfw: I wrote one for eggdrop in TCL back in the 90's... but that's about as much as I remember.
BSaboia has quit [Client Quit]
cd has joined #ruby
BSaboia has joined #ruby
<pwnd_nsfw>
Heard. I'm trying to weigh options for managing authentication/orization in IRC, but I'm having trouble accumulating options lol
BSaboia has quit [Quit: This computer has gone to sleep]
schne1der has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
troulouliou_div2 has joined #ruby
BSaboia has joined #ruby
BSaboia has quit [Remote host closed the connection]
mossplix has quit [Remote host closed the connection]
dfucci has joined #ruby
gitter1234 has quit [Quit: Connection closed for inactivity]
<mnathani>
If this is what my nested hash look like, how would I remove the key orderid? {"product"=>[{"id"=>40043, "clientid"=>23787, "orderid"=>0, "pid"=>84, "regdate"=>"2018-01-01", "name"=>"Name One"}, {"id"=>42693, "clientid"=>23787, "orderid"=>0, "pid"=>90, "regdate"=>"0000-00-00", "name"=>"Name Two"}]}
impermanence has joined #ruby
<mnathani>
I have tried - jhash[:product].delete(:orderid)
<mnathani>
and jhash["product"].delete("orderid")
<adam12>
mnathani: The class of hash["product" is Array, so delete won't work. You need to map the array then call delete.
<adam12>
mnathani: Is there always one product key?
mossplix has joined #ruby
<al2o3-cr>
mnathani: h['product'].each { |h| h.delete('orderid') } will remove both orderid keys in the example hash you've shown.
<al2o3-cr>
mnathani: or use #delete_if and some condition.
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maidhc has joined #ruby
<mnathani>
yes, one product key
impermanence has quit [Quit: Connection closed]
GodFather has joined #ruby
<mnathani>
al2o3-cr: Thank you. That works
mossplix has quit [Remote host closed the connection]
<mnathani>
is there a short hand to delete say the orderid and the pid at the same time?
mossplix has joined #ruby
<al2o3-cr>
mnathani: not that i can think of, you'd have to iterate.
alfiemax has quit [Remote host closed the connection]
GodFather has quit [Remote host closed the connection]
<adam12>
mnathani: You could try `slice(_1.keys - %w[orderid pid])`, but you'd need to `map!` instead of `each`.
GodFather has joined #ruby
MrCrackPot has quit [Quit: Leaving]
<al2o3-cr>
mnathani: you can put any wanted keys to be removed in a set, it saves iterating over an array of keys as set uses a hash internally.
<al2o3-cr>
adam12: with a more sizeable hash, set would be way more performant. :)
dfucci has quit [Ping timeout: 246 seconds]
<mnathani>
did this: jhash.compact!
<adam12>
al2o3-cr: Indeed. I'd probably reach for slice almost every time so it's interesting to see how much slower it would of been. Presumably because of the generation of the two Array's vs just the one loop.
<mnathani>
However, still getting that error
davispuh has joined #ruby
<adam12>
mnathani: You'll need to compact the Array. jhash["product"].compact.each
ChmEarl has joined #ruby
mossplix has quit [Remote host closed the connection]
davispuhh has joined #ruby
davispuh has quit [Ping timeout: 240 seconds]
mossplix has joined #ruby
<mnathani>
turns out there is more than one nested array in there
<mnathani>
perhaps I should start over with xml from the api?
<phykos>
Ruby 2.8 is already in development state and man, it's already a bit faster than Ruby 2.7.1 (on my raspberry pi 4)
<havenwood>
phykos: The plan is December 25, but that's pending Matz's final approval.
<adam12>
phykos: Impossible to know really. Only one who knows is Matz.
<phykos>
oh k then
<havenwood>
phykos: Watch for 2.8-dev being renamed to 3.0-dev. That'll mean it's on.
<havenwood>
phykos: The expectation is that'll happen in the coming months, but Matz has reserved the decision.
<phykos>
nah, it's too much immature ruby 2.8
<havenwood>
phykos: This year is likely.
<phykos>
well I have to go, see you asap guys
<havenwood>
phykos: Guilds may delay things.
<havenwood>
phykos: Later!
phykos has quit [Quit: Leaving]
<havenwood>
Isolates, I mean. :P
<havenwood>
Types (Ruby::RDS) and 3x faster on NES emulation have materialized.
<havenwood>
Async looks good but are Isolates far enough alonng?
<adam12>
My wishlist is probably blessed types of some sort, anonymous structs but without the Perl look, and _maybe_ even something like modulation. I'm reaching a bit on the last one.
<adam12>
havenwood: Did you say macro's were being a bit more in favour with Matz?
xco has joined #ruby
<havenwood>
adam12: Yeah, I did. What I understood was that Matz was considering using backticks for the new macro syntax but it was determined too much would break to yank them from shelling out.
<havenwood>
adam12: But... that means macros are being considered for real!
<adam12>
Interesting.
gitter1234 has joined #ruby
<havenwood>
adam12: And the ${} anonymous Struct syntax is on the dev meeting schedule for this mo too.
<adam12>
I kinda wish Hash's were strict by default like Python too, but that's another story.
DaniG2k has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
<uplime>
whats a strict hash?
braincrash has quit [Ping timeout: 240 seconds]
kinduff has joined #ruby
braincrash has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
<adam12>
uplime: Doesn't return nil on missing key, but raises KeyError
<adam12>
ie. fetch() as the default vs [].
<uplime>
ah
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Esa__ has quit []
xco has joined #ruby
<havenwood>
#fetch ftw!
<adam12>
I just wish fetch == [] and [] == peek or something.
<adam12>
al2o3-cr: I'm inclined to say IndexError _but_ only because I can't think of many times I access an array positionally, out side of #first or #last.
<al2o3-cr>
adam12: fair. :P
<adam12>
I feel like the shorthand should always be strict. You should go out of your way to get nil back. _shrug_
<adam12>
But I doubt that will ever change. We'd have to get new constructs in the language to gradually shift to.
maidhc has joined #ruby
<adam12>
Is anybody using the new `break` debugger and has seen it work? I havent' been able to go up or down frames any time I've reached for it. Always have to go back to byebug.
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12>
al2o3-cr: Yes
<al2o3-cr>
adam12: first i've come across it tbh.
<al2o3-cr>
adam12: i'll give it whirl :P
<adam12>
al2o3-cr: Let me know :) It would be nice to end up in an irb or pry session and have debugging capabilities, but anytime I do, it just complains there's no frame to go up or down.
<al2o3-cr>
adam12: will do :)
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
arzWZM has quit [Read error: Connection reset by peer]
arzWZM has joined #ruby
GodFather has quit [Read error: Network is unreachable]
maidhc has joined #ruby
<al2o3-cr>
adam12: i get the errors you're getting: 'Cannot go further up/down the stack'
<adam12>
I think I watched it before and it did. I'm just surprised I havent' been able to use it.
<al2o3-cr>
it looks promising aswell.
DaniG2k has joined #ruby
Nahra has quit [Quit: leaving]
ur5us has joined #ruby
<adam12>
al2o3-cr: Interestingly, I can get it to work now.
<al2o3-cr>
how?
<adam12>
al2o3-cr: Video kind of helped. You can't go up frames that break hasn't seen yet.
<adam12>
So you need to step into one before you can go up.
<adam12>
next seems to work.
<al2o3-cr>
ah! let me retry.
<adam12>
I'd been trying it constantly to go back up the stack to poke at something I didn't want to step through. I think that was my issue.
yxhuvud has joined #ruby
<al2o3-cr>
adam12: hmm.. no joy.
chalkmonster has quit [Quit: WeeChat 2.8]
<al2o3-cr>
it works in irb with binding.irb but not in pry with binding.pry for some weird reason. in pry just next or step just jump to From: /usr/lib/ruby/2.7.0/forwardable.rb:229 Pry#hooks:
BenDover has quit [Quit: BenDover]
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr>
i'll take a proper look tomorrow.
DaniG2k has quit [Quit: leaving]
jetchisel has joined #ruby
maidhc has joined #ruby
maidhc has quit [Client Quit]
maidhc has joined #ruby
wymillerlinux has quit [Ping timeout: 258 seconds]