baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview1: 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!
jenrzzz has joined #ruby
ellcs has quit [Ping timeout: 244 seconds]
dfucci has joined #ruby
alexherbo2 has quit [Ping timeout: 258 seconds]
dfucci has quit [Ping timeout: 256 seconds]
orbyt has quit [Quit: Textual IRC Client: www.textualapp.com]
alexherbo20 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
xco has quit [Quit: Textual IRC Client: www.textualapp.com]
orbyt has joined #ruby
orbyt has quit [Client Quit]
impermanence has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
mozzarella has quit [Quit: WeeChat 2.8]
queip has joined #ruby
jenrzzz has joined #ruby
FetidToot has joined #ruby
Rudd0 has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
ramfjord has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
alexherbo20 has quit [Ping timeout: 272 seconds]
mozzarella has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
TCZ has quit [Quit: Leaving]
DaRock has joined #ruby
yasumi2136 has joined #ruby
yasumi2136_ has quit [Ping timeout: 256 seconds]
cthulchu_ has quit [Ping timeout: 264 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
bmurt has joined #ruby
roshanavand_ has joined #ruby
roshanavand has quit [Ping timeout: 272 seconds]
roshanavand_ is now known as roshanavand
goepsilongo has joined #ruby
dfucci has joined #ruby
jenrzzz has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
djellemah has quit [Ping timeout: 244 seconds]
dasher00 has quit [Ping timeout: 272 seconds]
adu has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dhollinger has quit [Ping timeout: 265 seconds]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
goepsilongo has quit [Quit: Textual IRC Client: www.textualapp.com]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
ChmEarl has quit [Quit: Leaving]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
dhollinger has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
jokester has quit [Ping timeout: 260 seconds]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
jenrzzz has joined #ruby
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
jokester has joined #ruby
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mistergibson has quit [Ping timeout: 240 seconds]
wallace_mu has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
wallace_mu has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
mistergibson has joined #ruby
wallace_mu has quit [Ping timeout: 265 seconds]
Rudd0 has joined #ruby
snowyrooftops has joined #ruby
snowyrooftops has left #ruby [#ruby]
alfiemax has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
_whitelogger has joined #ruby
adu has quit [Quit: adu]
jenrzzz has quit [Ping timeout: 246 seconds]
wmoxam has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
donofrio has quit [Remote host closed the connection]
jenrzzz has joined #ruby
pwl has joined #ruby
wallace_mu has joined #ruby
bocaneri has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
wallace_mu has quit [Ping timeout: 272 seconds]
wallace_mu has joined #ruby
wallace_mu has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
s2013 has joined #ruby
jenrzzz has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
biggtimber has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
biggtimber has joined #ruby
burgestrand has joined #ruby
a-l-e has joined #ruby
dfucci has joined #ruby
apotheon has quit [Ping timeout: 260 seconds]
<Tuor> havenwood: I'm running Ubuntu 20.04. This fixt it: https://gitlab.com/nod0n/dedup/-/blob/master/dedup.rb#L3-4
apotheon has joined #ruby
Technodrome has joined #ruby
claudiuinberlin has joined #ruby
woodruffw has quit [Ping timeout: 256 seconds]
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
janemba has joined #ruby
<janemba> hello
<janemba> sorry again with the same ruby issue but...how is this possible ? https://dpaste.org/sDQ1 ???
ap4y has quit [Ping timeout: 260 seconds]
pwl has quit [Ping timeout: 256 seconds]
cd has quit [Quit: cd]
Technodrome has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
supercoven has quit [Max SendQ exceeded]
supercoven has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
TomyWork has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
<ged> janemba: It looks like if something has already set Bundler::VERSION, it might: https://github.com/rubygems/bundler/blob/v1.17.3/lib/bundler/version.rb#L10
<ged> Maybe try running with -rtracer and grep for 'VERSION'?
jenrzzz has quit [Ping timeout: 258 seconds]
<janemba> ged: ok
<nyuszika7h> I get this error when exiting irb - I have uninstalled rvm and I'm using rbenv now, how do I get rid of this?
<nyuszika7h> /home/nyuszika7h/.rbenv/versions/2.7.2/lib/ruby/2.7.0/irb/ext/save-history.rb:108:in `initialize': No such file or directory @ rb_sysopen - /home/nyuszika7h/.rvm/rubies/ruby-2.7.1/.irbrc_history (Errno::ENOENT)
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nyuszika7h> ~/.rvm doesn't exist
claudiuinberlin has joined #ruby
<jhass> nyuszika7h: this is a totally clean new login shell?
<jhass> env | grep IRB is empty?
<nyuszika7h> ah, seems like it's inheriting old IRBRC in new tmux windows I open
<nyuszika7h> if I start a new SSH session and don't attach to tmux, then it's unset and no error
<jhass> :)
<nyuszika7h> this fixed it: tmux set-environment -r IRBRC
braincrash has joined #ruby
ged has quit [Quit: WeeChat 2.9]
ged has joined #ruby
<janemba> hm....I'm sorry again but I can't go anywhere by myself. So I noticed few things through the trace -> https://dpaste.org/kmQA#L so line 12 there is a check of the an environment variable BUNDLER_VERSION. Unless this variable is set by the script itself it should be empty. In line 15 I have this -> version.rb:10::-: VERSION = "1.17.2" unless defined?(::Bundler::VERSION) so could it be the issue ?
<Tuor> al2o3-cr: this is what I ended up with: https://gitlab.com/nod0n/dedup/-/releases/v0.1.0
<janemba> I installed the bundler this way -> gem install bundler -v 1.17.3
<jhass> janemba: look at the path, it's loaded the bundler shipped with Ruby, not the newer version you installed as a gem like it should be :/
<janemba> jhass: Ohh!! /usr/lib64/ruby/2.6.0/bundler against /usr/lib64/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle...so should I just copy the bundle[r] file I want to /usr/bin ?
<jhass> no, that's not how it works
<jhass> Maybe at this point it would be easier to just sidestep your OS and do a ruby-install/chruby based setup :/
<janemba> jhass: ok I see !!!
jenrzzz has joined #ruby
ujjain2 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
braincrash has quit [Ping timeout: 272 seconds]
mtsd has joined #ruby
mtsd has quit [Quit: Leaving]
Ven`` has joined #ruby
Ven`` has quit [Client Quit]
imode has quit [Ping timeout: 264 seconds]
neozor has joined #ruby
ujjain2 has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
burgestrand has quit [Quit: burgestrand]
jenrzzz has quit [Ping timeout: 260 seconds]
infinityfye has joined #ruby
burgestrand has joined #ruby
TCZ has joined #ruby
dionysus69 has joined #ruby
ujjain2 has joined #ruby
kinduff48 has quit [Quit: gg]
<nemesit|znc> how can I check whether I got a -0.0 or a 0.0?
<nemesit|znc> seems pretty non trivial to check the sign on that
ujjain2 has quit [Client Quit]
kinduff48 has joined #ruby
dasher00 has joined #ruby
braincrash has joined #ruby
<jhass> &>> [[-0.0].pack("d")[-1].ord == 0 [0.0].pack("d")[-1].ord == 0]
<rubydoc> stderr: -e:4: syntax error, unexpected ==... check link for more (https://carc.in/#/r/9u8a)
ellcs has joined #ruby
<jhass> &>> [[-0.0].pack("d")[-1].ord == 0, [0.0].pack("d")[-1].ord == 0]
<rubydoc> # => [false, true] (https://carc.in/#/r/9u8b)
<jhass> Idk, there must be a better way :D
<jhass> &>> [-0.0.arg, 0.0.arg]
<rubydoc> # => [3.141592653589793, 0] (https://carc.in/#/r/9u8c)
<jhass> not really any prettier
alexherbo20 has joined #ruby
<nemesit|znc> did it via .phase == Math::PI
<jhass> &>> [0.0.equal?(0.0), -0.0.equal?(-0.0), 0.0.equal?(-0.0) -0.0.equal?(0.0)]
<rubydoc> stderr: -e:4:in `<main>': undefined method `-' for false:FalseClass (NoMethodError)... check link for more (https://carc.in/#/r/9u8d)
<jhass> &>> [0.0.equal?(0.0), -0.0.equal?(-0.0), 0.0.equal?(-0.0), -0.0.equal?(0.0)]
<rubydoc> # => [true, false, false, false] (https://carc.in/#/r/9u8e)
<jhass> nemesit|znc: ^ I think that's prettiest
<jhass> ah, wait, why's -0.0 not equal? -0.0
wallace_mu has joined #ruby
<jhass> I mean first case should still be enough to tell ( == 0 && .equal?(0.0) but weird
ruurd has joined #ruby
alexherbo205 has joined #ruby
roshanavand_ has joined #ruby
alexherbo20 has quit [Ping timeout: 256 seconds]
<nemesit|znc> its weird
roshanavand has quit [Ping timeout: 256 seconds]
roshanavand_ is now known as roshanavand
wallace_mu has quit [Ping timeout: 264 seconds]
a-l-e has quit [Remote host closed the connection]
a-l-e has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
burgestrand has quit [Quit: burgestrand]
wallace_mu has joined #ruby
alexherbo2058 has joined #ruby
ErhardtMundt has quit [Quit: No Ping reply in 180 seconds.]
alexherbo205 has quit [Ping timeout: 256 seconds]
ErhardtMundt has joined #ruby
djellemah has joined #ruby
alexherbo205 has joined #ruby
wallace_mu has quit [Ping timeout: 258 seconds]
braincrash has quit [Read error: Connection reset by peer]
alexherbo2058 has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
a-l-e has quit [Remote host closed the connection]
braincrash has joined #ruby
a-l-e has joined #ruby
a-l-e has quit [Remote host closed the connection]
charrit69 has joined #ruby
charrit69 has quit [Read error: Connection reset by peer]
charrit69 has joined #ruby
charrit69 has quit [Read error: Connection reset by peer]
charrit69 has joined #ruby
burgestrand has joined #ruby
gorsuch has quit [Quit: Connection closed for inactivity]
Querens has left #ruby ["https://quassel-irc.org - Chat comfortably. Anywhere."]
ur5us has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
claudiuinberlin has joined #ruby
alfiemax has quit [Ping timeout: 258 seconds]
ujjain2 has joined #ruby
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has joined #ruby
zestril has quit [Ping timeout: 260 seconds]
zestril has joined #ruby
<phaul> it seems to be an allocated object unlike other floats
<phaul> &>> [-0.0, -1.0, 1.0, 0.0].map(&:object_id)
<rubydoc> # => [60, -36028797018963962, -36028797018963966, -9223372036854775806] (https://carc.in/#/r/9u8f)
<phaul> &>> Array.new(10) { -0.0 }.map(&:object_id)
<rubydoc> # => [60, 60, 60, 60, 60, 60, 60, 60, 60, 60] (https://carc.in/#/r/9u8g)
<phaul> &>> [-0.0, -0.0, -0.0].map(&:object_id)
<rubydoc> # => [60, 80, 100] (https://carc.in/#/r/9u8h)
<phaul> even weirder that the block didn't allocate new object
ujjain2 has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
cgfbee has quit [Remote host closed the connection]
drincruz has joined #ruby
TCZ has quit [Quit: Leaving]
Swyper has quit [Remote host closed the connection]
cgfbee has joined #ruby
Swyper_ has joined #ruby
jenrzzz has joined #ruby
cow[moo] has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 265 seconds]
donofrio has joined #ruby
<neozor> Hi! Is it worth to attend rubyconf in a remote format? I'm thinking of paying the ticket, any opinions about remote conferences?
jenrzzz has joined #ruby
weaksauce has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
markong has left #ruby [#ruby]
markong has joined #ruby
cow[moo] has joined #ruby
neozor has quit [Read error: No route to host]
jenrzzz has joined #ruby
charrit69 has quit [Quit: Konversation terminated!]
jenrzzz has quit [Ping timeout: 260 seconds]
TCZ has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
drincruz has joined #ruby
Swyper_ has quit [Remote host closed the connection]
<havenwood> &>> Math.atan2(0.0, -0.0) == Math.atan2(-0.0, -0.0)
<rubydoc> # => false (https://carc.in/#/r/9u9t)
<havenwood> &>> Math.atan2(0.0, -0.0) == Math.atan2(0.0, -0.0)
<rubydoc> # => true (https://carc.in/#/r/9u9u)
<havenwood> jhass: dunno if I'd call it better? ^
<jhass> Feels like the same as the == PI thing
<havenwood> jhass: Yeah, I didn't read enough backlog. Seeing it now.
<havenwood> "<nemesit|znc> did it via .phase == Math::PI"
ur5us has quit [Quit: Leaving]
Swyper has joined #ruby
jenrzzz has joined #ruby
wallace_mu has joined #ruby
<havenwood> &>> -0.0.then { _1.phase.nonzero? && _1.zero? }
<rubydoc> # => true (https://carc.in/#/r/9u9v)
<havenwood> &>> 0.0.then { _1.phase.nonzero? && _1.zero? }
<rubydoc> # => nil (https://carc.in/#/r/9u9w)
<havenwood> I guess the constant PI is nicer than the method call anyways.
<havenwood> Always seems odd that:
<havenwood> &>> -0.0.negative? #=> false
<rubydoc> # => false (https://carc.in/#/r/9u9x)
<havenwood> Or maybe it's odd that:
<havenwood> &>> -0.0.positive? #=> false
jenrzzz has quit [Ping timeout: 258 seconds]
<rubydoc> # => false (https://carc.in/#/r/9u9y)
<havenwood> I guess if +0.0 isn't positive then -0.0 isn't negative, but... Floats so -0.0 seems kinda negative ¯\_(ツ)_/¯
<jhass> I think I still like .equal? best
<jhass> that gives you whether you got 0.0, so if you got == 0 and !equal?(0.0) then you know you got -0.0
<havenwood> jhass: Good point
<havenwood> Funny they're #eql?...
<havenwood> &>> {-0.0 => :negative, 0.0 => :positive}
<rubydoc> # => {-0.0=>:positive} (https://carc.in/#/r/9u9z)
<havenwood> In TruffleRuby: #=> {-0.0=>:negative, 0.0=>:positive}
<havenwood> JRuby follows CRuby.
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
yasumi2136_ has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
drincruz has joined #ruby
yasumi2136 has quit [Ping timeout: 272 seconds]
burgestrand has quit [Quit: burgestrand]
alfiemax has joined #ruby
ChmEarl has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
djellemah has quit [Ping timeout: 240 seconds]
dfucci has quit [Ping timeout: 265 seconds]
King_Freenode has joined #ruby
<King_Freenode> hi
<King_Freenode> is ruby safe ?
Swyper has quit [Remote host closed the connection]
<King_Freenode> hello
<adam12> King_Freenode: Safe?
<King_Freenode> yes
<King_Freenode> safe and secure
<adam12> King_Freenode: I'd say it's as equally safe and secure as any other programming language
<King_Freenode> well
<King_Freenode> i can object to that statement
<King_Freenode> i am a perl dev
<King_Freenode> and as a perl fanatic ruby comes a bit loose.
<adam12> King_Freenode: Is there something you need in #ruby then?
<King_Freenode> yes
<King_Freenode> i want to know if ruby is insecure
<havenwood> King_Freenode: Nope. That's was an easy one!
<havenwood> King_Freenode: Any more questions?
<King_Freenode> is there any proof behind that statement ?
<adam12> King_Freenode: I verify that what havenwood is said, proving his statement.
<King_Freenode> i mean how secure it is compared to perl ? or nodejs angularjs
DaRock has quit [Remote host closed the connection]
Swyper has joined #ruby
DaRock has joined #ruby
<havenwood> King_Freenode: How secure are you?
<havenwood> King_Freenode: What kind of question is that? I think you're insecure. Prove you're not.
<King_Freenode> well
<King_Freenode> i tell ye what. if ruby can be on rails, then i can hold the grails.
<havenwood> King_Freenode: Do as mnemon suggests and look at CVEs and whether there are any outstanding (there won't be for top langs, unless something is terribly, terribly wrong). Angular isn't a language. (I think we've discussed this?)
<King_Freenode> i can share cve that i found for ruby.
<havenwood> King_Freenode: We can't trust you. You're insecure.
<havenwood> !ban King_Freenode Insecure
<King_Freenode> what ?
<King_Freenode> wtf ?
<adam12> King_Freenode: Don't you mean GRAILZ?
<King_Freenode> HAILS !
<King_Freenode> yes
<King_Freenode> grailz on nailz
<King_Freenode> funny enough people here are very insecure in their beliefs about ruby, thats why you guys are trying to bully me.
<havenwood> King_Freenode: Yup, insecure.
<King_Freenode> yes
<King_Freenode> just like ruby
<havenwood> !ban King_Freenode
<King_Freenode> fuck you
<havenwood> Buh bye!
<jhass> !troll King_Freenode
King_Freenode was banned on #ruby by havenwood [*!~koker@178.175.142.195]
* jhass goes kicking the bot
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<jhass> !troll King_Freenode
King_Freenode was banned on #ruby by adam12 [*!*@178.175.142.195]
King_Freenode was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
<jhass> hah, first
* havenwood high fives
djellemah has joined #ruby
deimos_ has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 272 seconds]
alfiemax_ has joined #ruby
deimos_ has joined #ruby
hiroaki has quit [Ping timeout: 260 seconds]
akem has quit [Quit: Leaving]
dfucci has joined #ruby
ujjain2 has joined #ruby
<TomyWork> net-ldap, according to wireshark, attempts to bind to <ROOT>, i.e. without a base dn. How do I make it bind with a base dn?
<TomyWork> sorry, binddn, not basedn
dfucci has quit [Ping timeout: 256 seconds]
<TomyWork> oh wait, i got the auth structure wrong, my bad
jenrzzz has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
alfiemax has joined #ruby
cthulchu_ has joined #ruby
s2013 has joined #ruby
iNs has joined #ruby
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iNs has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 272 seconds]
iNs has joined #ruby
cahoots has joined #ruby
alfiemax has joined #ruby
cd has joined #ruby
<cahoots> hi, i want to match all strings that have "case" not preceded by "break;\s*". i have the following: /(?<!break;\s*)case/. however, this gives me "Invalid pattern in look-behind.". any ideas what to do?
<jhass> lookarounds unfortunately needs to be of fixed width, so no *, + or ?
<adam12> I feel like the Regexp docs should say that. I'm not sure I ever knew that.
jenrzzz has joined #ruby
<jhass> cahoots: maybe there's a different solution to your actual problem, might not even involve regex :)
<cahoots> jhass, never!
<adam12> Might be a good stringscanner use-case.
<adam12> Potentially faster as well.
alfiemax has quit [Remote host closed the connection]
ujjain2 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
<jhass> or a simple #chunk
TCZ has quit [Quit: Leaving]
alexherbo205 has quit [Quit: The Lounge - https://thelounge.chat]
jenrzzz has joined #ruby
ecuanaso has joined #ruby
alexherbo2 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
impermanence has joined #ruby
DaRock has quit [Ping timeout: 258 seconds]
ecuanaso has joined #ruby
kristian_on_linu has joined #ruby
ramfjord has joined #ruby
ujjain2 has joined #ruby
rippa has joined #ruby
jenrzzz has joined #ruby
yasumi2136 has joined #ruby
yasumi2136_ has quit [Ping timeout: 260 seconds]
<Tuor> how do you formulate "does not include"? `array.include?.nil?`? or is there something better?
<jhass> unless array.include?
jenrzzz has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
JoshAshby has joined #ruby
<Tuor> ah yea, why not.
ujjain2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 258 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
ecuanaso has joined #ruby
jenrzzz has joined #ruby
ellcs has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
ellcs has joined #ruby
<havenwood> Tuor: Or #none?
<havenwood> &>> [41, 43].none? 42
<rubydoc> # => true (https://carc.in/#/r/9ucj)
<havenwood> &>> [41, 42, 43].none? 42
<rubydoc> # => false (https://carc.in/#/r/9uck)
jenrzzz has quit [Ping timeout: 264 seconds]
<jhass> I can never remember none? takes an argument and not just a block :/
<TomyWork> cahoots, are you writing a linter? if so, see if there's an existing solution that suits your needs
TomyWork has quit [Remote host closed the connection]
jenrzzz has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weaksauce has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Ven`` has joined #ruby
howdoi has joined #ruby
jenrzzz has joined #ruby
kristian_on_linu has quit [Read error: Connection reset by peer]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
akem has joined #ruby
jenrzzz has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
duderonomy has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
yasumi2136 has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
imode has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
bocaneri has quit [Read error: Connection reset by peer]
infinityfye has quit [Quit: Leaving]
<arichiardi[m]> Hi IRC ruby folks, newbie question, how can I check if a raised error is of type Mongo::BulkWrite::Result ?
<jhass> catch it explicitly?
<jhass> rescue Mongo::BulkWrite::Result
<jhass> (weird name for an exception class though)
TCZ has joined #ruby
<arichiardi[m]> oh, I was thinking of using an if but that might work as well...can I have multiple rescue clauses ?
<arichiardi[m]> ah well right...it is not that one actually sorry
<arichiardi[m]> it's Mongo::Error::BulkWriteError
<arichiardi[m]> googling, I think I can do that...thank you!
burgestrand has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imode has quit [Ping timeout: 260 seconds]
horror_movie has joined #ruby
<horror_movie> hey
<havenwood> horror_movie: hi
<horror_movie> how are you
<jhass> horrific
<horror_movie> is this ruby ?
<havenwood> horror_movie: yup, the programming language
<horror_movie> ah
<horror_movie> are you a dev
burgestrand has quit [Quit: burgestrand]
<havenwood> horror_movie: I dunno what I am—but yeah, lots of devs here.
<havenwood> horror_movie: "Rubyists"
janemba has left #ruby ["WeeChat 2.9-dev"]
<horror_movie> oh !
<horror_movie> like ruby fans ?
<havenwood> horror_movie: Yup, I'm a Rubyist. Most folk are here since they're Rubyists.
<horror_movie> i see
<horror_movie> do you code in ruby and ON RAILS ?
<havenwood> horror_movie: This is the #ruby channel but there are plenty of Rails folk in #rubyonrails.
<horror_movie> #rubyonrails :Cannot join channel (+r) - you need to be identified with services - see https://freenode.net/kb/answer/registration
<havenwood> horror_movie: Yes, that channel requires that you register your nick.
<havenwood> horror_movie: Feel free to ask Rails questions here.
<horror_movie> i am only a casual
<havenwood> horror_movie: Welcome.
<horror_movie> tnx
<horror_movie> so
<horror_movie> ruby is difficult ?
<havenwood> horror_movie: Yes, programming is fairly difficult. As far as programming goes, Ruby is quite accessible. It's maybe more difficult than less flexible, one-way-to-do-it, single-paradigm languages.
<horror_movie> is it better than python ?
<jhass> ?better
<ruby[bot]> "Best" and "better" are subjective. Try to use a different term, or try to qualify what would make one thing better than the other.
<havenwood> horror_movie: Ruby and Python are two lovely languages that originated around the same time and both remain popular.
<havenwood> horror_movie: Pick your poison.
<horror_movie> python is awful
<havenwood> horror_movie: ¯\_(ツ)_/¯
ecuanaso has joined #ruby
<horror_movie> people claim that it is easy, until you start getting the whitespace errors
<havenwood> horror_movie: Things are easy when familiar.
<horror_movie> btw are you a thug ?
<havenwood> horror_movie: You tell me? https://twitter.com/_havenn
<havenwood> horror_movie: https://github.com/havenwood
<horror_movie> yep i thought so. you support the blm...
<horror_movie> why would you support a bunch of degenerate niggers ?
<havenwood> !ban horror_movie
horror_movie was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
<baweaver> Already got it havenwood
* havenwood high fives
<baweaver> #ruby is currently +r, you'll need to be registered with Nickserv to speak
<phaul> why do I get the feeling that this was the same guy as the previous one
<havenwood> Goodbye forever, degenerate troll...
<havenwood> phaul: Yeah, same.
<baweaver> Probably.
Xiti has quit [Quit: Leaving]
<havenwood> phaul: Gave them one chance to actually care about Ruby.
<phaul> :)
<havenwood> phaul: No more chances now ever. Good riddance!
baweaver changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first! | BLM ❤️
Rudd0 has quit [Ping timeout: 256 seconds]
<baweaver> Oops
burgestrand has joined #ruby
s2013 has joined #ruby
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
bmurt has joined #ruby
cnsvc has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 260 seconds]
nofxx has quit [Remote host closed the connection]
evdubs has quit [Quit: Leaving]
djellemah has left #ruby ["Leaving"]
evdubs has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit []
FastJack has quit [Ping timeout: 246 seconds]
FastJack has joined #ruby
supercoven has quit [Ping timeout: 240 seconds]
Ai9zO5AP has joined #ruby
ur5us has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 256 seconds]
Xiti has joined #ruby
Fire-Dragon-DoL has joined #ruby
adu has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
kristian_on_linu has joined #ruby
nofxx has joined #ruby
TCZ has quit [Quit: Leaving]
kristian_on_linu has quit [Remote host closed the connection]
Exuma has joined #ruby
Exuma has quit [Client Quit]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imode has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rudd0 has joined #ruby
TCZ has joined #ruby
braincrash has quit [Ping timeout: 246 seconds]
adu has quit [Quit: adu]
ur5us has joined #ruby
Ven`` has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has joined #ruby
burgestrand has quit [Quit: burgestrand]
ur5us has quit [Ping timeout: 260 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
Ai9zO5AP has quit [Remote host closed the connection]
Ai9zO5AP has joined #ruby
drincruz has quit [Ping timeout: 264 seconds]
<woodruffw> ...whoops.
zenspider has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
zenspider has joined #ruby
drincruz has joined #ruby
Technodrome has joined #ruby
Technodrome has quit [Remote host closed the connection]