havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.1, 3.0.3, 2.7.5: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
szkl has joined #ruby
moldorcoder7 has quit [Quit: %bye mirc%]
reset has quit [Quit: reset]
gr33n7007h has quit [Ping timeout: 240 seconds]
John_Ivan__ has quit [Read error: Connection reset by peer]
John_Ivan has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
emcb58 has joined #ruby
moldorcoder7 has joined #ruby
emcb5 has quit [Ping timeout: 240 seconds]
emcb58 is now known as emcb5
moldorcoder7 has quit [Client Quit]
MaXxer0 has joined #ruby
roadie has joined #ruby
<mooff> almost thought i'd found an idiom for Object#presence that i miss so much in plain Ruby
<mooff> "foo.bar.then.reject(&:empty?)" - but it returns an array. so you'd have to follow it with .first
o|||||o has quit [Ping timeout: 260 seconds]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
<mooff> unfortunately there's no "detect_not" in Enumerable, and no "present?" in String
howdoi has quit [Quit: Connection closed for inactivity]
<ox1eef> isn't it just "foo || nil" ?
<ox1eef> ah i see, it probably does foo.present? || nil
<mooff> yeah :(
<mooff> w/o activesupport it's like.. foo.then { |value| value.empty? ? nil : value }
MaXxer0 has quit [Quit: Leaving]
<ox1eef> i'm in a split mind about that API tbh. it kind of joins nil with other scenarios that should be separate.
<ox1eef> i mean .blank? rather than present? though
fowl has quit [Quit: cya pals]
<ox1eef> i bought a book on rust today
<ox1eef> i always thought the ownership/borrowing model would be hard to understand, but it's not and seems similar to what Ractor is trying to do
<mooff> nice. that gives me hope. my brain has not taken to Rust
<ox1eef> i was really against it a few years ago
gr33n7007h has joined #ruby
Rounin has quit [Ping timeout: 256 seconds]
a7tism has quit [Ping timeout: 256 seconds]
swaggboi has quit [Quit: C-x C-c]
swaggboi has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
o|||||o has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
libsys has quit [Ping timeout: 268 seconds]
libsys has joined #ruby
___nick___ has joined #ruby
Guest7 has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
Guest7 has quit [Quit: Client closed]
ender_ has joined #ruby
ender_ has quit [Client Quit]
d-s has joined #ruby
_ht has joined #ruby
namkeleser has joined #ruby
<namkeleser> Hi, can anyone spot any security vulnerabilities in my website? https://github.com/jamesmahones/website2
<nakilon> probably you should be sure to not use shotgun in production
<nakilon> also better use \A\z instead of ^$ in any regexes you write
teclator has joined #ruby
<namkeleser> nakilon Why should I not use shotgun? And why use that regex instead?
<namkeleser> Would it cause an attack?
<nakilon> ^ and $ are probably not what you think they are
<namkeleser> nakilon How so?
<nakilon> read about them
<nakilon> or tell me what's the difference between them and \A\z
gproto23 has joined #ruby
reset has joined #ruby
<namkeleser> nakilon The \A matches the start of the input. The \Z matches the end of the input.
<namkeleser> ^ asserts position at start of a line, $ asserts position at the end of a line
<namkeleser> nakilon But how is that a security vuln?
<nakilon> you want to match the whole string but you don't
<nakilon> making computer do not what you really want
<nakilon> is basically a source of vulnerabilities
perrierjouet has quit [Quit: WeeChat 3.4.1]
<namkeleser> nakilon what sort of vulnerabilities in this case
<nakilon> how should I know
<nakilon> vulnerabilities are about not knowing that something will happen
perrierjouet has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
a1eaiactaest has joined #ruby
markong has joined #ruby
Rounin has joined #ruby
oxfuxxx has joined #ruby
gproto23 has quit [Remote host closed the connection]
roadie has joined #ruby
oxfuxxx has quit [Quit: Yankies Motherfh@ckers C0[k Astroboys]
oxfuxxx has joined #ruby
TCZ has joined #ruby
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
oxfuxxx has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
o|||||o has quit [Ping timeout: 272 seconds]
o|||||o has joined #ruby
TCZ is now known as patus
patus is now known as nic_nie_znacze
oxfuxxx has quit [Read error: Connection reset by peer]
nic_nie_znacze is now known as wszystko_znacze
teclator has joined #ruby
namkeleser has quit [Quit: Client closed]
Thanzex has quit [Read error: Connection reset by peer]
wszystko_znacze is now known as TCZ
Thanzex has joined #ruby
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
oxfuxxx has joined #ruby
<mooff> nakilon's right
<mooff> is that cybersecurity homework?
<mooff> it looks like a HackTheBox test. yes it gives RCE
ferr_ has quit [Ping timeout: 256 seconds]
TCZ has quit [Quit: Leaving]
<nakilon> he's gone
<nakilon> got pwned probably
<mooff> ah. rip
oxfuxxx has quit [Ping timeout: 272 seconds]
a1eaiactaest has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
roadie` has joined #ruby
<mooff> sometimes i wish Module#included was called for an extend, or prepend, too
<mooff> or at least that there was a callback which is
roadie has quit [Ping timeout: 268 seconds]
<mooff> i've two modules which add their own features. but if you have both of them, then you'll want a third module which enhances the second module with a feature from the first.
roadie` has quit [Ping timeout: 260 seconds]
ged has quit [Ping timeout: 240 seconds]
mahlon has quit [Ping timeout: 256 seconds]
<mooff> i think to do that i need to define ModuleA.included, ModuleA.extended, ModuleA.prepended, ModuleB.included, ModuleB.extended, and ModuleB.prepended.. (or alias to the same effect).. so users are at liberty to compose classes/instances how they want.
<mooff> but that's an awful lot of i's and t's to cross for something which is fundamentally the same thing
<mooff> (inclusion of a module into a class)
<leah2> hm what is rtomayko doing these days
some14u has joined #ruby
Pixi has quit [Quit: Leaving]
<ox1eef> i think he moved on from ruby
<ox1eef> probably a (mil|bil)lionaire too
roadie` has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pixi has joined #ruby
roadie` has quit [Ping timeout: 268 seconds]
Numocha has joined #ruby
<Numocha> Hello
roadie` has joined #ruby
oxfuxxx has quit [Ping timeout: 260 seconds]
<e2> gamdom.eu/r/mikevolnov
oxfuxxx has joined #ruby
roadie` has quit [Ping timeout: 256 seconds]
oxfuxxx has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
roadie` has joined #ruby
Numocha has quit [Quit: WeeChat 3.4.1]
jhass has quit [Quit: Bye]
jhass has joined #ruby
tuxcrafter1673 has quit [Quit: Client closed]
tuxcrafter1673 has joined #ruby
roadie` has quit [Ping timeout: 260 seconds]
roadie` has joined #ruby
roadie` has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
a1eaiactaest has joined #ruby
oxfuxxx has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
teclator has joined #ruby
oxfuxxx has quit [Client Quit]
oxfuxxx has joined #ruby
Exuma has joined #ruby
graywolf has joined #ruby
graywolf has quit [Client Quit]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
oxfuxxx has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
_ht has quit [Quit: No Ping reply in 180 seconds.]
oxfuxxx has quit [Client Quit]
roadie has joined #ruby
_ht has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 272 seconds]
a1eaiactaest has quit [Ping timeout: 268 seconds]
gr33n7007h has quit [Quit: WeeChat 3.4.1]
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
fef has joined #ruby
_ht has quit [Remote host closed the connection]
roadie has quit [Ping timeout: 252 seconds]
_ht has joined #ruby
roadie has joined #ruby
oxfuxxx has quit [Read error: Connection reset by peer]
oxfuxxx has joined #ruby
oxfuxxx has quit [Client Quit]
roadie has quit [Ping timeout: 240 seconds]
oxfuxxx has joined #ruby
oxfuxxx has quit [Client Quit]
markong has quit [Ping timeout: 256 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
justOkay has quit [Read error: Connection reset by peer]
justOkay has joined #ruby
roadie has joined #ruby
oxfuxxx has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
emcb5 has quit [Ping timeout: 272 seconds]
roadie has joined #ruby
oxfuxxx has quit [Ping timeout: 260 seconds]
roadie has quit [Ping timeout: 252 seconds]
emcb5 has joined #ruby
oxfuxxx has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
roadie has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
oxfuxxx has quit [Ping timeout: 260 seconds]
roadie has quit [Ping timeout: 252 seconds]
roadie has joined #ruby
oxfuxxx has joined #ruby
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
oxfuxxx has quit [Ping timeout: 240 seconds]
roadie has quit [Ping timeout: 240 seconds]
axisys has quit [Remote host closed the connection]
oxfuxxx has joined #ruby
axisys has joined #ruby
seifeslimene has joined #ruby
fef has quit [Ping timeout: 240 seconds]
oxfuxxx has quit [Ping timeout: 272 seconds]
oxfuxxx has joined #ruby
o|||||o has quit [Ping timeout: 272 seconds]
seifeslimene has quit [Quit: Client closed]
seifeslimene has joined #ruby
oxfuxxx has quit [Ping timeout: 272 seconds]
d-s_ has joined #ruby
o|||||o has joined #ruby
d-s has quit [Ping timeout: 240 seconds]
seifeslimene has quit [Quit: Client closed]
seifeslimene86 has joined #ruby
seifeslimene86 has quit [Client Quit]
seifeslimene has joined #ruby
lunarkitty has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
atille has joined #ruby
ur5us has joined #ruby
oxfuxxx has joined #ruby
hololeap has quit [Remote host closed the connection]
d-s_ has quit [Remote host closed the connection]
hololeap has joined #ruby
oxfuxxx has quit [Ping timeout: 260 seconds]
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
oxfuxxx has joined #ruby
oxfuxxx has quit [Ping timeout: 256 seconds]
oxfuxxx has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
oxfuxxx has quit [Ping timeout: 260 seconds]
___nick___ has quit [Ping timeout: 272 seconds]
_ht has quit [Remote host closed the connection]
oxfuxxx has joined #ruby
oxfuxxx has quit [Client Quit]
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
markong has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
o|||||o has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
factor has quit [Read error: Connection reset by peer]
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
some14u has joined #ruby
factor has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
factor has quit [Read error: Connection reset by peer]
factor has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
emcb5 has quit [Read error: Connection reset by peer]
emcb5 has joined #ruby
a1eaiactaest has joined #ruby
emcb5 has quit [Read error: Connection reset by peer]
emcb5 has joined #ruby
sphex has joined #ruby
mahlon has joined #ruby
rawley has joined #ruby
markong has quit [Ping timeout: 256 seconds]