00:11
szkl has joined #ruby
00:36
moldorcoder7 has quit [Quit: %bye mirc%]
01:11
reset has quit [Quit: reset]
01:17
gr33n7007h has quit [Ping timeout: 240 seconds]
01:21
John_Ivan__ has quit [Read error: Connection reset by peer]
01:24
John_Ivan has joined #ruby
01:29
dionysus69 has quit [Ping timeout: 252 seconds]
01:34
emcb58 has joined #ruby
01:36
moldorcoder7 has joined #ruby
01:36
emcb5 has quit [Ping timeout: 240 seconds]
01:36
emcb58 is now known as emcb5
01:40
moldorcoder7 has quit [Client Quit]
02:06
MaXxer0 has joined #ruby
02:11
roadie has joined #ruby
02:20
<
mooff >
almost thought i'd found an idiom for Object#presence that i miss so much in plain Ruby
02:22
<
mooff >
"foo.bar.then.reject(&:empty?)" - but it returns an array. so you'd have to follow it with .first
02:22
o|||||o has quit [Ping timeout: 260 seconds]
02:22
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
02:23
<
mooff >
unfortunately there's no "detect_not" in Enumerable, and no "present?" in String
02:31
howdoi has quit [Quit: Connection closed for inactivity]
02:46
<
ox1eef >
isn't it just "foo || nil" ?
02:46
<
ox1eef >
ah i see, it probably does foo.present? || nil
02:48
<
mooff >
w/o activesupport it's like.. foo.then { |value| value.empty? ? nil : value }
03:02
MaXxer0 has quit [Quit: Leaving]
03:16
<
ox1eef >
i'm in a split mind about that API tbh. it kind of joins nil with other scenarios that should be separate.
03:16
<
ox1eef >
i mean .blank? rather than present? though
03:18
fowl has quit [Quit: cya pals]
03:39
<
ox1eef >
i bought a book on rust today
03:40
<
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
04:01
<
mooff >
nice. that gives me hope. my brain has not taken to Rust
04:01
<
ox1eef >
i was really against it a few years ago
04:05
gr33n7007h has joined #ruby
04:22
Rounin has quit [Ping timeout: 256 seconds]
04:36
a7tism has quit [Ping timeout: 256 seconds]
04:37
swaggboi has quit [Quit: C-x C-c]
04:59
swaggboi has joined #ruby
06:06
dionysus69 has joined #ruby
06:10
dionysus69 has quit [Client Quit]
06:19
o|||||o has joined #ruby
06:49
Thanzex has quit [Read error: Connection reset by peer]
06:50
Thanzex has joined #ruby
06:51
libsys has quit [Ping timeout: 268 seconds]
06:51
libsys has joined #ruby
06:56
___nick___ has joined #ruby
07:51
Guest7 has joined #ruby
07:56
szkl has quit [Quit: Connection closed for inactivity]
08:02
Guest7 has quit [Quit: Client closed]
08:06
ender_ has joined #ruby
08:08
ender_ has quit [Client Quit]
08:29
d-s has joined #ruby
08:32
_ht has joined #ruby
08:49
namkeleser has joined #ruby
08:57
<
nakilon >
probably you should be sure to not use shotgun in production
08:59
<
nakilon >
also better use \A\z instead of ^$ in any regexes you write
09:06
teclator has joined #ruby
09:10
<
namkeleser >
nakilon Why should I not use shotgun? And why use that regex instead?
09:10
<
namkeleser >
Would it cause an attack?
09:12
<
nakilon >
^ and $ are probably not what you think they are
09:13
<
namkeleser >
nakilon How so?
09:13
<
nakilon >
read about them
09:14
<
nakilon >
or tell me what's the difference between them and \A\z
09:16
gproto23 has joined #ruby
09:17
reset has joined #ruby
09:21
<
namkeleser >
nakilon The \A matches the start of the input. The \Z matches the end of the input.
09:23
<
namkeleser >
^ asserts position at start of a line, $ asserts position at the end of a line
09:28
<
namkeleser >
nakilon But how is that a security vuln?
09:29
<
nakilon >
you want to match the whole string but you don't
09:29
<
nakilon >
making computer do not what you really want
09:30
<
nakilon >
is basically a source of vulnerabilities
09:34
perrierjouet has quit [Quit: WeeChat 3.4.1]
09:39
<
namkeleser >
nakilon what sort of vulnerabilities in this case
09:40
<
nakilon >
how should I know
09:40
<
nakilon >
vulnerabilities are about not knowing that something will happen
09:42
perrierjouet has joined #ruby
11:23
a1eaiactaest has joined #ruby
11:25
markong has joined #ruby
11:27
Rounin has joined #ruby
11:42
oxfuxxx has joined #ruby
12:06
gproto23 has quit [Remote host closed the connection]
12:07
roadie has joined #ruby
12:23
oxfuxxx has quit [Quit: Yankies Motherfh@ckers C0[k Astroboys]
12:23
oxfuxxx has joined #ruby
12:41
TCZ has joined #ruby
12:44
hololeap has quit [Remote host closed the connection]
12:46
hololeap has joined #ruby
12:52
oxfuxxx has quit [Ping timeout: 272 seconds]
12:57
oxfuxxx has joined #ruby
12:58
o|||||o has quit [Ping timeout: 272 seconds]
12:59
o|||||o has joined #ruby
13:06
TCZ is now known as patus
13:07
patus is now known as nic_nie_znacze
13:08
oxfuxxx has quit [Read error: Connection reset by peer]
13:13
nic_nie_znacze is now known as wszystko_znacze
13:14
teclator has joined #ruby
13:17
namkeleser has quit [Quit: Client closed]
13:22
Thanzex has quit [Read error: Connection reset by peer]
13:23
wszystko_znacze is now known as TCZ
13:23
Thanzex has joined #ruby
13:32
hololeap has quit [Remote host closed the connection]
13:34
hololeap has joined #ruby
13:53
oxfuxxx has joined #ruby
13:55
<
mooff >
nakilon's right
13:56
<
mooff >
is that cybersecurity homework?
13:56
<
mooff >
it looks like a HackTheBox test. yes it gives RCE
13:58
ferr_ has quit [Ping timeout: 256 seconds]
13:58
TCZ has quit [Quit: Leaving]
14:00
<
nakilon >
he's gone
14:01
<
nakilon >
got pwned probably
14:16
oxfuxxx has quit [Ping timeout: 272 seconds]
14:16
a1eaiactaest has quit [Ping timeout: 272 seconds]
14:23
oxfuxxx has joined #ruby
14:25
roadie` has joined #ruby
14:25
<
mooff >
sometimes i wish Module#included was called for an extend, or prepend, too
14:25
<
mooff >
or at least that there was a callback which is
14:26
roadie has quit [Ping timeout: 268 seconds]
14:29
<
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.
14:29
roadie` has quit [Ping timeout: 260 seconds]
14:30
ged has quit [Ping timeout: 240 seconds]
14:30
mahlon has quit [Ping timeout: 256 seconds]
14:31
<
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.
14:32
<
mooff >
but that's an awful lot of i's and t's to cross for something which is fundamentally the same thing
14:32
<
mooff >
(inclusion of a module into a class)
14:37
<
leah2 >
hm what is rtomayko doing these days
14:40
some14u has joined #ruby
14:48
Pixi has quit [Quit: Leaving]
14:52
<
ox1eef >
i think he moved on from ruby
14:54
<
ox1eef >
probably a (mil|bil)lionaire too
14:55
roadie` has joined #ruby
14:58
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:59
Pixi has joined #ruby
15:00
roadie` has quit [Ping timeout: 268 seconds]
15:03
Numocha has joined #ruby
15:12
roadie` has joined #ruby
15:14
oxfuxxx has quit [Ping timeout: 260 seconds]
15:15
<
e2 >
gamdom.eu/r/mikevolnov
15:17
oxfuxxx has joined #ruby
15:24
roadie` has quit [Ping timeout: 256 seconds]
15:45
oxfuxxx has quit [Ping timeout: 240 seconds]
15:52
oxfuxxx has joined #ruby
16:03
roadie` has joined #ruby
16:04
Numocha has quit [Quit: WeeChat 3.4.1]
16:05
jhass has quit [Quit: Bye]
16:10
jhass has joined #ruby
16:11
tuxcrafter1673 has quit [Quit: Client closed]
16:12
tuxcrafter1673 has joined #ruby
16:15
roadie` has quit [Ping timeout: 260 seconds]
16:16
roadie` has joined #ruby
16:23
roadie` has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
16:27
a1eaiactaest has joined #ruby
16:35
oxfuxxx has quit [Ping timeout: 272 seconds]
16:38
oxfuxxx has joined #ruby
16:38
teclator has joined #ruby
16:38
oxfuxxx has quit [Client Quit]
16:39
oxfuxxx has joined #ruby
16:40
Exuma has joined #ruby
16:41
graywolf has joined #ruby
16:41
graywolf has quit [Client Quit]
16:51
oxfuxxx has quit [Ping timeout: 272 seconds]
16:55
oxfuxxx has joined #ruby
16:56
_ht has quit [Quit: No Ping reply in 180 seconds.]
16:56
oxfuxxx has quit [Client Quit]
16:56
roadie has joined #ruby
16:57
_ht has joined #ruby
17:14
oxfuxxx has joined #ruby
17:19
oxfuxxx has quit [Ping timeout: 272 seconds]
17:20
a1eaiactaest has quit [Ping timeout: 268 seconds]
17:20
gr33n7007h has quit [Quit: WeeChat 3.4.1]
17:21
oxfuxxx has joined #ruby
18:06
oxfuxxx has quit [Ping timeout: 272 seconds]
18:09
oxfuxxx has joined #ruby
18:15
fef has joined #ruby
18:16
_ht has quit [Remote host closed the connection]
18:18
roadie has quit [Ping timeout: 252 seconds]
18:19
_ht has joined #ruby
18:19
roadie has joined #ruby
18:22
oxfuxxx has quit [Read error: Connection reset by peer]
18:23
oxfuxxx has joined #ruby
18:23
oxfuxxx has quit [Client Quit]
18:24
roadie has quit [Ping timeout: 240 seconds]
18:24
oxfuxxx has joined #ruby
18:25
oxfuxxx has quit [Client Quit]
18:29
markong has quit [Ping timeout: 256 seconds]
18:41
roadie has joined #ruby
18:45
roadie has quit [Ping timeout: 252 seconds]
18:52
justOkay has quit [Read error: Connection reset by peer]
18:54
justOkay has joined #ruby
18:58
roadie has joined #ruby
19:01
oxfuxxx has joined #ruby
19:04
roadie has quit [Ping timeout: 252 seconds]
19:04
emcb5 has quit [Ping timeout: 272 seconds]
19:05
roadie has joined #ruby
19:08
oxfuxxx has quit [Ping timeout: 260 seconds]
19:10
roadie has quit [Ping timeout: 252 seconds]
19:11
emcb5 has joined #ruby
19:14
oxfuxxx has joined #ruby
19:20
___nick___ has joined #ruby
19:20
roadie has joined #ruby
19:20
___nick___ has quit [Client Quit]
19:22
___nick___ has joined #ruby
19:23
oxfuxxx has quit [Ping timeout: 260 seconds]
19:26
roadie has quit [Ping timeout: 252 seconds]
19:28
roadie has joined #ruby
19:30
oxfuxxx has joined #ruby
19:31
roadie has quit [Remote host closed the connection]
19:31
roadie has joined #ruby
19:34
oxfuxxx has quit [Ping timeout: 240 seconds]
19:36
roadie has quit [Ping timeout: 240 seconds]
19:37
axisys has quit [Remote host closed the connection]
19:41
oxfuxxx has joined #ruby
19:42
axisys has joined #ruby
19:47
seifeslimene has joined #ruby
19:47
fef has quit [Ping timeout: 240 seconds]
19:51
oxfuxxx has quit [Ping timeout: 272 seconds]
19:53
oxfuxxx has joined #ruby
19:56
o|||||o has quit [Ping timeout: 272 seconds]
19:56
seifeslimene has quit [Quit: Client closed]
19:57
seifeslimene has joined #ruby
19:58
oxfuxxx has quit [Ping timeout: 272 seconds]
20:02
d-s_ has joined #ruby
20:05
o|||||o has joined #ruby
20:05
d-s has quit [Ping timeout: 240 seconds]
20:06
seifeslimene has quit [Quit: Client closed]
20:06
seifeslimene86 has joined #ruby
20:06
seifeslimene86 has quit [Client Quit]
20:06
seifeslimene has joined #ruby
20:15
lunarkitty has joined #ruby
20:15
some14u has joined #ruby
20:17
some14u has quit [Client Quit]
20:19
atille has joined #ruby
20:25
ur5us has joined #ruby
20:25
oxfuxxx has joined #ruby
20:31
hololeap has quit [Remote host closed the connection]
20:31
d-s_ has quit [Remote host closed the connection]
20:32
hololeap has joined #ruby
20:33
oxfuxxx has quit [Ping timeout: 260 seconds]
20:34
Thanzex has quit [Read error: Connection reset by peer]
20:34
Thanzex has joined #ruby
20:37
oxfuxxx has joined #ruby
20:46
oxfuxxx has quit [Ping timeout: 256 seconds]
20:54
oxfuxxx has joined #ruby
20:56
ur5us has quit [Ping timeout: 240 seconds]
21:01
oxfuxxx has quit [Ping timeout: 260 seconds]
21:04
___nick___ has quit [Ping timeout: 272 seconds]
21:11
_ht has quit [Remote host closed the connection]
21:12
oxfuxxx has joined #ruby
21:15
oxfuxxx has quit [Client Quit]
21:26
hololeap has quit [Remote host closed the connection]
21:27
hololeap has joined #ruby
21:48
markong has joined #ruby
21:52
some14u has joined #ruby
21:53
some14u has quit [Client Quit]
22:01
o|||||o has quit [Ping timeout: 260 seconds]
22:03
ur5us has joined #ruby
22:29
factor has quit [Read error: Connection reset by peer]
22:31
hololeap has quit [Remote host closed the connection]
22:33
hololeap has joined #ruby
22:35
some14u has joined #ruby
22:36
factor has joined #ruby
22:42
lunarkitty has quit [Quit: Connection closed for inactivity]
22:46
factor has quit [Read error: Connection reset by peer]
22:47
factor has joined #ruby
23:24
ur5us has quit [Ping timeout: 240 seconds]
23:25
emcb5 has quit [Read error: Connection reset by peer]
23:25
emcb5 has joined #ruby
23:25
a1eaiactaest has joined #ruby
23:26
emcb5 has quit [Read error: Connection reset by peer]
23:29
emcb5 has joined #ruby
23:34
sphex has joined #ruby
23:38
mahlon has joined #ruby
23:53
rawley has joined #ruby
23:58
markong has quit [Ping timeout: 256 seconds]