00:00
AJA4351 has joined #ruby
00:00
AJA4350 has quit [Ping timeout: 268 seconds]
00:00
AJA4351 is now known as AJA4350
00:02
Phil0s0rapt0r has joined #ruby
00:02
jenrzzz has joined #ruby
00:03
doodleb80 has quit [Read error: Connection reset by peer]
00:04
Ai9zO5AP has quit [Quit: WeeChat 2.4]
00:05
ljarvis_ has quit [Ping timeout: 258 seconds]
00:05
esp32_prog has joined #ruby
00:07
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:08
skryking has quit [Ping timeout: 246 seconds]
00:09
octos has quit [Read error: Connection reset by peer]
00:09
houhoulis has joined #ruby
00:09
octos has joined #ruby
00:10
skryking has joined #ruby
00:10
esp32_prog has quit [Ping timeout: 272 seconds]
00:12
xco has joined #ruby
00:15
ljarvis_ has joined #ruby
00:16
dar123 has joined #ruby
00:23
Swyper has joined #ruby
00:24
doodlebug has joined #ruby
00:24
jenrzzz has quit [Ping timeout: 258 seconds]
00:26
Nicmavr has joined #ruby
00:27
Kestrel-029 has quit [Ping timeout: 245 seconds]
00:27
Swyper has quit [Ping timeout: 245 seconds]
00:28
fphilipe_ has quit [Ping timeout: 272 seconds]
00:28
SirFunk has joined #ruby
00:30
xco has quit [Quit: xco]
00:31
sylario has quit [Quit: Connection closed for inactivity]
00:33
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:33
mikecmpbll has quit [Quit: inabit. zz.]
00:34
al2o3-cr has joined #ruby
00:34
jenrzzz has joined #ruby
00:38
salerace has quit [Ping timeout: 248 seconds]
00:39
jenrzzz has quit [Ping timeout: 272 seconds]
00:47
Talion has joined #ruby
00:55
dar123 has joined #ruby
00:56
Nicmavr has quit [Ping timeout: 245 seconds]
00:56
Kestrel-029 has joined #ruby
00:57
hightower2 has quit [Ping timeout: 252 seconds]
00:59
dar123 has quit [Client Quit]
01:01
kapilp has joined #ruby
01:08
AJA4350 has quit [Ping timeout: 248 seconds]
01:12
jenrzzz has joined #ruby
01:17
orbyt_ has joined #ruby
01:18
haxx0r has joined #ruby
01:24
fphilipe_ has joined #ruby
01:26
duderonomy has joined #ruby
01:28
Swyper has joined #ruby
01:30
Nicmavr has joined #ruby
01:30
Swyper has quit [Remote host closed the connection]
01:30
Kestrel-029 has quit [Ping timeout: 245 seconds]
01:31
yoshie902a has joined #ruby
01:31
yoshie902a has left #ruby [#ruby]
01:39
shakes has joined #ruby
01:43
salerace has joined #ruby
01:45
jenrzzz has quit [Ping timeout: 246 seconds]
01:49
salerace has quit [Ping timeout: 248 seconds]
01:51
weteamsteve has quit [Ping timeout: 252 seconds]
01:54
esp32_prog has joined #ruby
01:55
cliluw has quit [Read error: Connection reset by peer]
01:56
cliluw has joined #ruby
01:58
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:59
esp32_prog has quit [Ping timeout: 258 seconds]
02:01
cd has quit [Quit: cd]
02:02
doodleb28 has joined #ruby
02:03
doodleb28 has quit [Read error: Connection reset by peer]
02:04
doodleb29 has joined #ruby
02:05
fphilipe_ has quit [Ping timeout: 244 seconds]
02:05
doodleb29 has quit [Read error: Connection reset by peer]
02:05
doodleb98 has joined #ruby
02:05
doodlebug has quit [Read error: Connection reset by peer]
02:06
linuus has joined #ruby
02:10
doodleb98 has quit [Read error: Connection reset by peer]
02:10
doodlebug has joined #ruby
02:13
Swyper has joined #ruby
02:13
jenrzzz has joined #ruby
02:14
Omnilord has joined #ruby
02:25
gix- has quit [Ping timeout: 272 seconds]
02:34
doodlebug has quit [Read error: Connection reset by peer]
02:34
doodlebug has joined #ruby
02:35
xlued has quit [Quit: Ping timeout (120 seconds)]
02:35
xlued has joined #ruby
02:36
fphilipe_ has joined #ruby
02:36
Phil0s0rapt0r has quit [Remote host closed the connection]
02:40
apg has joined #ruby
02:40
apg has joined #ruby
02:40
apg has quit [Changing host]
02:42
Swyper has quit [Remote host closed the connection]
02:44
Swyper has joined #ruby
02:44
Swyper has quit [Remote host closed the connection]
02:46
tdy has joined #ruby
02:47
jenrzzz has quit [Ping timeout: 258 seconds]
02:48
apg has quit [Ping timeout: 272 seconds]
02:54
shakes has quit [Read error: Connection reset by peer]
03:00
dviola has quit [Quit: WeeChat 2.4]
03:02
AJA4350 has joined #ruby
03:05
braincrash has quit [Quit: bye bye]
03:07
Talion has quit [Quit: Connection closed for inactivity]
03:09
octos has quit [Read error: Connection reset by peer]
03:09
octos has joined #ruby
03:10
braincrash has joined #ruby
03:19
fphilipe_ has quit [Ping timeout: 248 seconds]
03:23
jenrzzz has joined #ruby
03:25
Nicmavr has quit [Ping timeout: 245 seconds]
03:26
Nicmavr has joined #ruby
03:42
esp32_prog has joined #ruby
03:44
AJA4350 has quit [Quit: AJA4350]
03:46
salerace has joined #ruby
03:47
esp32_prog has quit [Ping timeout: 248 seconds]
03:52
fphilipe_ has joined #ruby
03:52
ltd has quit [Ping timeout: 245 seconds]
03:53
salerace has quit [Ping timeout: 258 seconds]
03:54
ltd has joined #ruby
03:58
ramfjord has quit [Ping timeout: 246 seconds]
04:02
jenrzzz has quit [Ping timeout: 258 seconds]
04:13
alexeev has quit [Remote host closed the connection]
04:17
fphilipe has joined #ruby
04:20
fphilipe_ has quit [Ping timeout: 257 seconds]
04:26
jenrzzz has joined #ruby
04:29
Omnilord has quit [Quit: Leaving]
04:30
jenrzzz has quit [Ping timeout: 244 seconds]
04:32
fphilipe has quit [Ping timeout: 252 seconds]
04:36
ltd has quit [Ping timeout: 258 seconds]
04:37
houhoulis has quit [Remote host closed the connection]
04:39
matthewd has quit [Ping timeout: 264 seconds]
04:40
skryking has quit [Quit: WeeChat 2.4]
04:41
skryking has joined #ruby
04:41
matthewd has joined #ruby
04:56
Kestrel-029 has joined #ruby
04:57
Nicmavr has quit [Ping timeout: 245 seconds]
05:00
alexeev has joined #ruby
05:01
xco has joined #ruby
05:02
jenrzzz has joined #ruby
05:02
fphilipe has joined #ruby
05:04
Wolland has joined #ruby
05:05
fphilipe_ has joined #ruby
05:07
fphilipe has quit [Ping timeout: 252 seconds]
05:08
Wolland has quit [Client Quit]
05:12
alexeev has quit [Remote host closed the connection]
05:14
sauvin has joined #ruby
05:16
reber has joined #ruby
05:19
kapilp has quit [Quit: Connection closed for inactivity]
05:20
alexeev has joined #ruby
05:20
conta has joined #ruby
05:23
kyrylo has joined #ruby
05:25
alexeev has quit [Remote host closed the connection]
05:28
dellavg_ has joined #ruby
05:30
esp32_prog has joined #ruby
05:35
esp32_prog has quit [Ping timeout: 248 seconds]
05:36
jenrzzz has quit [Ping timeout: 248 seconds]
05:36
alexeev has joined #ruby
05:38
Bounga has quit [Ping timeout: 258 seconds]
05:43
alexeev has quit [Remote host closed the connection]
05:43
alexeev has joined #ruby
05:45
alexeev_ has joined #ruby
05:47
SeepingN has quit [Quit: The system is going down for reboot NOW!]
05:49
alexeev has quit [Ping timeout: 272 seconds]
05:50
ltd has joined #ruby
06:01
aupadhye has joined #ruby
06:02
alexeev_ has quit [Remote host closed the connection]
06:06
alexeev has joined #ruby
06:09
jenrzzz has joined #ruby
06:17
code_zombie has joined #ruby
06:35
alexeev has quit [Remote host closed the connection]
06:35
blackmesa has joined #ruby
06:36
alexeev has joined #ruby
06:36
schne1der has joined #ruby
06:39
alexeev has quit [Remote host closed the connection]
06:39
conta has quit [Remote host closed the connection]
06:43
jenrzzz has quit [Ping timeout: 258 seconds]
06:45
andikr has joined #ruby
06:46
fphilipe_ has quit [Ping timeout: 244 seconds]
06:48
hightower2 has joined #ruby
06:48
lxsameer has joined #ruby
06:49
hightower2 has quit [Changing host]
06:49
hightower2 has joined #ruby
06:52
TomyWork has joined #ruby
06:54
ubuntu__ has joined #ruby
06:55
ubuntu__ has quit [Client Quit]
06:55
fphilipe_ has joined #ruby
06:56
Kestrel-029 has quit [Ping timeout: 245 seconds]
06:56
Nicmavr has joined #ruby
06:59
deimos has joined #ruby
07:03
code_zombie has quit [Quit: Leaving]
07:03
jenrzzz has joined #ruby
07:07
nowhere_man has quit [Ping timeout: 248 seconds]
07:10
schne1der has quit [Ping timeout: 248 seconds]
07:11
jefffrails35 has joined #ruby
07:16
salerace has joined #ruby
07:18
esp32_prog has joined #ruby
07:23
salerace has quit [Ping timeout: 272 seconds]
07:23
esp32_prog has quit [Ping timeout: 248 seconds]
07:26
alexeev has joined #ruby
07:26
Nicmavr has quit [Ping timeout: 245 seconds]
07:26
Kestrel-029 has joined #ruby
07:33
uranoss has quit [Ping timeout: 252 seconds]
07:33
BuildTheRobots has quit [Ping timeout: 252 seconds]
07:33
jetpack_joe has quit [Ping timeout: 252 seconds]
07:33
justache has quit [Ping timeout: 258 seconds]
07:34
Pillus has quit [Ping timeout: 276 seconds]
07:36
iamdevnul has quit [Ping timeout: 276 seconds]
07:37
solars has quit [Ping timeout: 252 seconds]
07:38
hahuang65 has quit [Ping timeout: 252 seconds]
07:38
Net has quit [Ping timeout: 252 seconds]
07:39
hsiktas has quit [Ping timeout: 276 seconds]
07:42
BuildTheRobots has joined #ruby
07:42
sylario has joined #ruby
07:42
BuildTheRobots has quit [Max SendQ exceeded]
07:43
Net has joined #ruby
07:43
jetpack_joe has joined #ruby
07:43
hahuang65 has joined #ruby
07:43
solars has joined #ruby
07:43
Pillus has joined #ruby
07:43
hsiktas has joined #ruby
07:43
iamdevnul has joined #ruby
07:44
BuildTheRobots has joined #ruby
07:44
deepredsky has joined #ruby
07:44
hahuang65 has quit [Max SendQ exceeded]
07:44
BuildTheRobots has quit [Excess Flood]
07:44
hahuang65 has joined #ruby
07:45
esp32_prog has joined #ruby
07:45
BuildTheRobots has joined #ruby
07:45
uranoss has joined #ruby
07:48
justache has joined #ruby
07:55
r3m has quit [Read error: Connection reset by peer]
07:55
r3m has joined #ruby
07:56
fphilipe_ has quit [Read error: Connection reset by peer]
08:03
mikecmpbll has joined #ruby
08:03
hsiktas has quit [Ping timeout: 250 seconds]
08:03
timeless has quit [Ping timeout: 250 seconds]
08:03
r3m has quit [Read error: Connection reset by peer]
08:03
jnix has quit [Ping timeout: 248 seconds]
08:03
BuildTheRobots has quit [Ping timeout: 252 seconds]
08:04
buzzbuzzy has quit [Ping timeout: 248 seconds]
08:04
gmcintire has quit [Ping timeout: 252 seconds]
08:04
buzzbuzzy has joined #ruby
08:04
timeless has joined #ruby
08:04
Net has quit [Ping timeout: 252 seconds]
08:04
arthurnn has quit [Ping timeout: 248 seconds]
08:04
arthurnn has joined #ruby
08:04
uranoss has quit [Ping timeout: 252 seconds]
08:05
ged has quit [Ping timeout: 248 seconds]
08:05
iamdevnul has quit [Ping timeout: 252 seconds]
08:05
Chew has quit [Ping timeout: 248 seconds]
08:05
ged has joined #ruby
08:06
jnix has joined #ruby
08:06
podman has quit [Ping timeout: 252 seconds]
08:06
coffeejunk has quit [Ping timeout: 252 seconds]
08:06
WA9ACE has quit [Ping timeout: 250 seconds]
08:06
deepredsky has quit [Ping timeout: 244 seconds]
08:06
chromis has quit [Ping timeout: 252 seconds]
08:06
sariyar has quit [Ping timeout: 248 seconds]
08:07
hsiktas has joined #ruby
08:07
iamdevnul has joined #ruby
08:07
hsiktas has quit [Excess Flood]
08:07
mosh has quit [Ping timeout: 252 seconds]
08:08
chromis has joined #ruby
08:08
podman has joined #ruby
08:08
gmcintire has joined #ruby
08:08
BuildTheRobots has joined #ruby
08:09
uranoss has joined #ruby
08:09
hsiktas has joined #ruby
08:09
Chew has joined #ruby
08:09
discopatrick has quit [Ping timeout: 252 seconds]
08:09
Net has joined #ruby
08:09
WA9ACE has joined #ruby
08:09
coffeejunk has joined #ruby
08:10
discopatrick has joined #ruby
08:10
miah_ has quit [Ping timeout: 248 seconds]
08:11
sariyar has joined #ruby
08:12
miah has joined #ruby
08:13
ShalokShalom has joined #ruby
08:14
meinside has quit [Ping timeout: 248 seconds]
08:16
mcspud has quit [Ping timeout: 250 seconds]
08:16
Pillus has quit [Ping timeout: 250 seconds]
08:18
NL3limin4t0r_afk is now known as NL3limin4t0r
08:18
Liothen has quit [Ping timeout: 250 seconds]
08:18
genpaku has quit [Ping timeout: 252 seconds]
08:18
mosh has joined #ruby
08:19
genpaku has joined #ruby
08:19
Pillus has joined #ruby
08:20
meinside has joined #ruby
08:20
mcspud has joined #ruby
08:20
Liothen has joined #ruby
08:22
fphilipe_ has joined #ruby
08:25
ricer2 has joined #ruby
08:26
lxsameer has quit [Quit: out]
08:31
TomyWork is now known as Rayden
08:31
Rayden is now known as TomyWork
08:31
Avon has joined #ruby
08:32
deepredsky has joined #ruby
08:32
Avon has quit [Client Quit]
08:32
Jonopoly_ has joined #ruby
08:39
deepredsky has quit [Ping timeout: 272 seconds]
08:44
alexeev has quit [Remote host closed the connection]
08:45
alexeev has joined #ruby
08:47
kapilp has joined #ruby
08:49
lxsameer has joined #ruby
09:00
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:01
dhollin3 has joined #ruby
09:04
dhollinger has quit [Ping timeout: 272 seconds]
09:08
cisco has joined #ruby
09:09
cisco is now known as Guest54723
09:10
ellcs has joined #ruby
09:10
conta has joined #ruby
09:15
alexeev_ has joined #ruby
09:16
clemens3 has joined #ruby
09:16
alexeev has quit [Read error: Connection reset by peer]
09:29
esp32_prog has quit [Ping timeout: 244 seconds]
09:31
tdy has quit [Ping timeout: 248 seconds]
09:34
salerace has joined #ruby
09:35
r3m has joined #ruby
09:36
Guest54723 has quit [Ping timeout: 248 seconds]
09:37
esp32_prog has joined #ruby
09:40
jenrzzz has quit [Ping timeout: 248 seconds]
09:40
cisco_ has joined #ruby
09:46
cisco_ has quit [Ping timeout: 248 seconds]
09:48
schne1der has joined #ruby
09:49
cisco_ has joined #ruby
09:50
hightower3 has joined #ruby
09:51
jefffrails35 has quit [Remote host closed the connection]
09:51
hightower2 has quit [Ping timeout: 272 seconds]
09:54
conta has quit [Quit: conta]
09:54
conta has joined #ruby
09:54
galeido has quit [Ping timeout: 268 seconds]
10:03
conta has quit [Ping timeout: 244 seconds]
10:06
fphilipe_ has quit [Ping timeout: 248 seconds]
10:07
<
Bish >
this channel is getting silent geez
10:07
cisco_ has quit [Ping timeout: 268 seconds]
10:12
galeido has joined #ruby
10:18
cisco has joined #ruby
10:18
cisco is now known as Guest62899
10:22
deepredsky has joined #ruby
10:22
Ai9zO5AP has joined #ruby
10:23
<
ytti >
to_human(from_human(1.23, "Gbps")) == "1.23Gbps"
10:24
conta has joined #ruby
10:38
Guest62899 has quit [Quit: leaving]
10:45
Kestrel-029 has quit [Ping timeout: 245 seconds]
10:45
Nicmavr has joined #ruby
10:46
salerace has quit [Ping timeout: 258 seconds]
10:56
salerace has joined #ruby
10:57
BH23 has joined #ruby
11:00
<
ytti >
i have proprietary device emitting broken JSON, I wonder if there is way way to unbroke it. Essentially I have array of objects, each of these objects contains one spcific name which is non-unique to that object, and the last one takes precedence
11:00
<
ytti >
i'd want the first one to take precedence
11:00
<
ytti >
i guess i'd need to write my own trivial JSON parser to drop the first one
11:08
salerace has quit [Ping timeout: 244 seconds]
11:09
kyrylo has joined #ruby
11:11
DTZUZU2 has quit [Read error: Connection reset by peer]
11:17
Swyper has joined #ruby
11:19
salerace has joined #ruby
11:22
BH23 has quit [Ping timeout: 258 seconds]
11:24
laaron has quit [Remote host closed the connection]
11:25
salerace has quit [Ping timeout: 258 seconds]
11:26
laaron has joined #ruby
11:28
salerace has joined #ruby
11:29
conta has quit [Ping timeout: 268 seconds]
11:36
fphilipe_ has joined #ruby
11:37
alexeev_ has quit [Remote host closed the connection]
11:37
alexeev has joined #ruby
11:41
conta has joined #ruby
11:42
laaron has quit [Remote host closed the connection]
11:42
alexeev_ has joined #ruby
11:43
jefffrails35 has joined #ruby
11:44
haxx0r has quit [Remote host closed the connection]
11:45
laaron has joined #ruby
11:46
alexeev has quit [Ping timeout: 258 seconds]
11:46
eph^ has joined #ruby
11:47
LenPayne has quit [Ping timeout: 245 seconds]
11:47
salerace has quit [Quit: salerace]
11:47
haxx0r has joined #ruby
11:47
Rudd0 has quit [Ping timeout: 245 seconds]
11:47
spectra has quit [Ping timeout: 257 seconds]
11:48
LenPayne has joined #ruby
11:48
Fusl has quit [Excess Flood]
11:49
yasumi2136 has joined #ruby
11:51
Rudd0 has joined #ruby
11:51
Fusl has joined #ruby
11:53
yokel has quit [Ping timeout: 258 seconds]
11:53
yokel has joined #ruby
11:54
spectra has joined #ruby
12:01
Shikichiro has joined #ruby
12:02
Swyper has quit [Remote host closed the connection]
12:05
alexeev_ has quit [Remote host closed the connection]
12:05
alexeev has joined #ruby
12:06
alexeev has quit [Remote host closed the connection]
12:07
dhollin3 is now known as dhollinger
12:12
fphilipe_ has quit [Ping timeout: 252 seconds]
12:17
laaron has quit [Remote host closed the connection]
12:21
laaron has joined #ruby
12:22
cow[moo] has joined #ruby
12:26
cow[moo] has quit [Client Quit]
12:29
doodleb75 has joined #ruby
12:30
doodlebug has quit [Ping timeout: 258 seconds]
12:32
jefffrails35 has quit [Ping timeout: 244 seconds]
12:33
fphilipe_ has joined #ruby
12:36
AJA4350 has joined #ruby
12:38
fphilipe_ has quit [Ping timeout: 258 seconds]
12:42
cow[moo] has joined #ruby
12:43
doodleb75 has quit [Read error: Connection reset by peer]
12:44
fphilipe_ has joined #ruby
12:47
yasumi2136_ has joined #ruby
12:47
Shikichiro has quit [Read error: Connection reset by peer]
12:48
laaron has quit [Remote host closed the connection]
12:50
yasumi2136 has quit [Ping timeout: 258 seconds]
12:50
laaron has joined #ruby
12:51
doodlebug has joined #ruby
12:51
hightower3 has quit [Ping timeout: 272 seconds]
12:53
kapilp has quit [Quit: Connection closed for inactivity]
12:56
tweeaks has joined #ruby
12:57
KeyJoo has joined #ruby
12:58
<
jhass >
ytti: got an example?
12:59
<
jhass >
maybe it happens to be valid yaml or something
13:02
<
ytti >
which is actually valid, as same node can appear many times in XML
13:02
<
ytti >
so just bug in their conversion implementatino
13:04
<
jhass >
fun, but I fail to spot where it's syntactically invalid?
13:05
<
jhass >
unless the dots are actually in there
13:05
<
ytti >
jhass, packet-information name appears twice in same object
13:05
conta has quit [Quit: conta]
13:05
<
ytti >
i broke indentation, why it looks ok
13:06
<
jhass >
well, just using the XML is no option?
13:06
conta has joined #ruby
13:06
<
ytti >
certainly is, and i usually do
13:06
<
ytti >
first time trying the JSON :)
13:07
<
ytti >
ofc reported to vendor too, certainly a mistake i could see myself writing on such converter
13:08
<
jhass >
well converting the XML is just the wrong approach in the first place
13:08
<
jhass >
you want your internal models/data classes to serialize to both
13:09
<
ytti >
the XML is the single source of truth
13:09
<
ytti >
out of which CLI and JSON are generated
13:09
<
ytti >
i don't find fault in the design
13:09
<
ytti >
just a implementation bug
13:09
andikr has quit [Remote host closed the connection]
13:13
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:16
rippa has joined #ruby
13:16
<
ytti >
jhass, huh, i was looking at JSON docs but didn't notice object_class
13:16
<
ytti >
jhass, i did try this JSON.load('{"hello": {"goodbye":"moi"}, "hello": {"moi": "jee"}}', Proc.new{|e|p e},create_additions: true)
13:16
<
ytti >
jhass, just to see what the proc observes, but it wouldn't observe the duplicate
13:16
<
ytti >
jhass, thank you
13:17
<
jhass >
not sure I'd actually use it, feels kinda hackish (esp compared to just using the XML), but I guess it works :)
13:17
<
jhass >
yeah no idea what the additions thing is about
13:18
<
ytti >
i'm definitely not going to use this for anything serious, mainly just wanted to see how mature it is, and answer appears to be not much
13:19
<
ytti >
but still that is very neat trick i'm happy to learn
13:20
cow[moo] has joined #ruby
13:21
jcalla has joined #ruby
13:21
laaron has quit [Remote host closed the connection]
13:23
laaron has joined #ruby
13:25
DTZUZU2 has joined #ruby
13:26
dar123 has joined #ruby
13:26
jefffrails35 has joined #ruby
13:27
zodd has joined #ruby
13:28
zodd is now known as Guest94668
13:28
Guest94668 is now known as zodd_
13:29
agent_white has joined #ruby
13:32
Wolland has joined #ruby
13:35
skryking has quit [Quit: WeeChat 2.4]
13:36
conta has quit [Quit: conta]
13:42
xco has quit [Quit: xco]
13:43
laaron has quit [Remote host closed the connection]
13:43
laaron has joined #ruby
13:45
FrankDW has joined #ruby
13:47
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:52
cthulchu has joined #ruby
13:52
deepredsky has quit [Ping timeout: 246 seconds]
13:56
yqt has joined #ruby
14:04
thiccdaddy has joined #ruby
14:04
jeremycw has joined #ruby
14:13
TomyWork has quit [Remote host closed the connection]
14:16
KeyJoo has quit [Quit: KeyJoo]
14:23
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:25
cow[moo] has joined #ruby
14:29
BH23 has joined #ruby
14:30
_joes_ has joined #ruby
14:33
cd has joined #ruby
14:35
alexeev has joined #ruby
14:39
zacts has joined #ruby
14:39
_joes_ has quit [Quit: _joes_]
14:40
BH23 has quit [Remote host closed the connection]
14:45
clemens3 has quit [Quit: WeeChat 1.6]
14:50
zacts has quit [Quit: WeeChat 2.4]
14:52
doodleb28 has joined #ruby
14:53
octos has quit [Ping timeout: 258 seconds]
14:56
doodlebug has quit [Ping timeout: 268 seconds]
15:04
leitz has joined #ruby
15:06
aupadhye has quit [Quit: Leaving]
15:06
Jonopoly_ has quit [Quit: WeeChat 2.4]
15:09
polishdub has joined #ruby
15:11
mikecmpbll has quit [Quit: inabit. zz.]
15:13
haxx0r29 has joined #ruby
15:14
haxx0r has quit [Remote host closed the connection]
15:18
ellcs has quit [Remote host closed the connection]
15:22
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:23
thiccdaddy has left #ruby ["WeeChat 2.4"]
15:28
kapilp has joined #ruby
15:29
blackmesa has quit [Quit: WeeChat 2.4]
15:38
zacts has joined #ruby
15:39
rf` has joined #ruby
15:40
envex has quit [Ping timeout: 268 seconds]
15:45
deepredsky has joined #ruby
15:45
ricekrispie has joined #ruby
15:46
yasumi2136 has joined #ruby
15:46
rf` has quit [Ping timeout: 248 seconds]
15:48
ricekrispie2 has quit [Ping timeout: 258 seconds]
15:48
zacts has quit [Quit: WeeChat 2.4]
15:48
envex has joined #ruby
15:50
yasumi2136_ has quit [Ping timeout: 244 seconds]
15:50
jefffrails35 has quit [Remote host closed the connection]
15:52
doodleb28 has quit [Read error: Connection reset by peer]
15:53
doodlebug has joined #ruby
15:58
graft has joined #ruby
15:58
graft has quit [Changing host]
15:58
graft has joined #ruby
15:58
<
graft >
what happened to Time#iso8601?
15:59
<
graft >
it's gone in 2.6.3
16:00
laaron has quit [Remote host closed the connection]
16:01
<
havenwood >
graft: require 'time'
16:01
skryking has joined #ruby
16:01
envex has quit [Ping timeout: 248 seconds]
16:01
<
graft >
strange, I can do Time.now without require 'time'?
16:02
envex has joined #ruby
16:03
laaron has joined #ruby
16:03
<
havenwood >
graft: some classes, like Thread, Fiber, Time, etc, load more features when required
16:04
AJA4351 has joined #ruby
16:04
AJA4350 has quit [Ping timeout: 258 seconds]
16:04
AJA4351 is now known as AJA4350
16:04
<
graft >
interesting... the docs are singularly unclear here
16:05
tdy has joined #ruby
16:05
<
graft >
where are docs for require 'time' as opposed to the basic Time?
16:06
<
havenwood >
graft: they just show "require 'time'" in front of all the methods examples where it's required
16:06
dar123 has joined #ruby
16:06
<
havenwood >
graft: Some also say: "You must require 'time' to use this method."
16:07
<
graft >
i'm looking at ruby-doc.org
16:07
esp32_prog has quit [Ping timeout: 252 seconds]
16:08
<
havenwood >
"You must require 'time' to use this method."
16:09
<
graft >
those docs appear to be incorrect also, ::iso8601 is not #iso8601
16:10
laaron has quit [Remote host closed the connection]
16:11
<
graft >
no, never mind i figured it out
16:11
<
havenwood >
graft: The links are better for docs.ruby-lang.org, but you can find it on ruby-doc.org as well.
16:11
Nicmavr has quit [Ping timeout: 245 seconds]
16:11
Nicmavr has joined #ruby
16:12
laaron has joined #ruby
16:13
<
graft >
aha there is an 'additional notes' section noting the distinction on ruby-doc.org
16:13
tf2ftw has joined #ruby
16:18
graft has quit [Ping timeout: 272 seconds]
16:25
Tempesta has joined #ruby
16:26
samort7 has quit [Ping timeout: 256 seconds]
16:28
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:28
zacts has joined #ruby
16:31
john_ has joined #ruby
16:34
esp32_prog has joined #ruby
16:36
orbyt_ has joined #ruby
16:38
Rapture has joined #ruby
16:39
esp32_prog has quit [Ping timeout: 248 seconds]
16:39
laaron has quit [Remote host closed the connection]
16:39
john_ has quit [Quit: Leaving]
16:41
Nicmavr has quit [Ping timeout: 245 seconds]
16:41
Kestrel-029 has joined #ruby
16:43
laaron has joined #ruby
16:45
jenrzzz has joined #ruby
16:48
houhoulis has joined #ruby
16:49
jenrzzz has quit [Ping timeout: 252 seconds]
16:55
graft has joined #ruby
16:55
graft has quit [Changing host]
16:55
graft has joined #ruby
16:57
ShalokShalom has quit [Remote host closed the connection]
16:58
lxsameer has quit [Ping timeout: 248 seconds]
17:01
zacts has quit [Quit: WeeChat 2.4]
17:01
nowhere_man has joined #ruby
17:04
xco has joined #ruby
17:04
octos has joined #ruby
17:07
laaron has quit [Remote host closed the connection]
17:07
deimos has quit [Quit: leaving]
17:08
zacts has joined #ruby
17:09
deimos has joined #ruby
17:09
yqt has quit [Ping timeout: 245 seconds]
17:11
laaron has joined #ruby
17:12
dar123 has joined #ruby
17:12
tf2ftw has quit [Quit: This computer has gone to sleep]
17:13
zacts has quit [Quit: WeeChat 2.4]
17:14
antoniogu has joined #ruby
17:16
duderonomy has joined #ruby
17:20
NL3limin4t0r is now known as NL3limin4t0r_afk
17:22
englosh_ has joined #ruby
17:24
antoniogu has quit []
17:24
antoniogu has joined #ruby
17:24
zacts has joined #ruby
17:25
zodd_ has quit [Ping timeout: 245 seconds]
17:26
Kestrel-029 has quit [Ping timeout: 245 seconds]
17:26
antoniogu has quit [Client Quit]
17:26
Nicmavr has joined #ruby
17:26
antoniogu has joined #ruby
17:29
zacts has quit [Client Quit]
17:30
antoniogu is now known as antong
17:37
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:42
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:42
fphilipe_ has quit [Ping timeout: 252 seconds]
17:43
Azure has joined #ruby
17:46
dviola has joined #ruby
17:48
fphilipe_ has joined #ruby
17:50
englosh_ has quit [Ping timeout: 256 seconds]
17:52
cjohnson has joined #ruby
17:52
fphilipe_ has quit [Ping timeout: 248 seconds]
17:53
Wolland has joined #ruby
17:54
octos has quit [Ping timeout: 272 seconds]
17:55
Eiam_ has joined #ruby
17:55
Wolland has quit [Client Quit]
17:58
Eiam has quit [Ping timeout: 252 seconds]
18:00
octos has joined #ruby
18:00
AJA4350 has quit [Ping timeout: 252 seconds]
18:05
Wolland has joined #ruby
18:06
ramfjord has joined #ruby
18:07
laaron has quit [Remote host closed the connection]
18:10
laaron has joined #ruby
18:12
galeido has quit [Ping timeout: 258 seconds]
18:15
galeido_ has joined #ruby
18:17
ShalokShalom has joined #ruby
18:18
sameerynho has joined #ruby
18:23
ShalokShalom has quit [Remote host closed the connection]
18:23
esp32_prog has joined #ruby
18:25
Nicmavr has quit [Ping timeout: 245 seconds]
18:26
Nicmavr has joined #ruby
18:27
sauvin has quit [Read error: Connection reset by peer]
18:28
esp32_prog has quit [Ping timeout: 272 seconds]
18:31
CrazyEddy has quit [Ping timeout: 246 seconds]
18:34
AJA4350 has joined #ruby
18:36
doodlebug has quit [Ping timeout: 246 seconds]
18:38
doodleb52 has joined #ruby
18:43
houhoulis has quit [Remote host closed the connection]
18:43
CrazyEddy has joined #ruby
18:45
schne1der has quit [Ping timeout: 246 seconds]
18:48
reber has quit [Read error: Connection reset by peer]
18:48
reber has joined #ruby
18:54
octos has quit [Remote host closed the connection]
18:55
octos has joined #ruby
18:57
budonyc has joined #ruby
19:04
dar123 has quit [Remote host closed the connection]
19:04
doodleb52 has quit [Read error: Connection reset by peer]
19:05
octos has quit [Remote host closed the connection]
19:06
octos has joined #ruby
19:08
doodlebug has joined #ruby
19:10
stryek has joined #ruby
19:10
schne1der has joined #ruby
19:10
ramfjord has quit [Ping timeout: 246 seconds]
19:11
leftylin1 is now known as leftylink
19:11
graft has quit [Ping timeout: 268 seconds]
19:11
laaron has joined #ruby
19:12
ramfjord has joined #ruby
19:13
tdy has quit [Ping timeout: 272 seconds]
19:15
schne1der has quit [Ping timeout: 246 seconds]
19:19
SeepingN has joined #ruby
19:20
leitz has quit [Quit: Leaving]
19:21
ramfjord has quit [Ping timeout: 272 seconds]
19:22
ramfjord has joined #ruby
19:22
gix has joined #ruby
19:24
graft has joined #ruby
19:25
Nicmavr has quit [Ping timeout: 245 seconds]
19:26
Nicmavr has joined #ruby
19:42
cthulchu_ has joined #ruby
19:44
sparc has joined #ruby
19:45
cthulchu has quit [Ping timeout: 258 seconds]
19:48
fphilipe_ has joined #ruby
19:50
octos has quit [Quit: Leaving]
19:50
octos has joined #ruby
19:50
graft has quit [Ping timeout: 258 seconds]
19:54
fphilipe_ has quit [Ping timeout: 248 seconds]
19:54
antoniogu has joined #ruby
19:54
antoniogu is now known as antong
19:56
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
19:57
kyrylo has joined #ruby
19:58
antong has quit [Client Quit]
19:58
antong has joined #ruby
19:59
graft has joined #ruby
19:59
graft has joined #ruby
19:59
graft has quit [Changing host]
20:00
antong has quit [Client Quit]
20:00
antong has joined #ruby
20:00
antong has quit [Client Quit]
20:02
ShalokShalom has joined #ruby
20:04
cadeskywalker has quit [Ping timeout: 252 seconds]
20:04
ShalokShalom has quit [Remote host closed the connection]
20:04
digitalnomad has joined #ruby
20:07
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:07
fphilipe_ has joined #ruby
20:08
octos has quit [Ping timeout: 258 seconds]
20:10
kyrylo has joined #ruby
20:11
esp32_prog has joined #ruby
20:13
octos has joined #ruby
20:16
esp32_prog has quit [Ping timeout: 272 seconds]
20:17
codefriar has joined #ruby
20:18
octos has quit [Remote host closed the connection]
20:18
cadeskywalker has joined #ruby
20:18
<
codefriar >
Ok, so I'm struggling with something that should be simple. I need to open a file, iterate over the lines, find the appropriate line (it's an alphabetical list) and INSERT a new line (not \n, but a new line of text) and save the file. Any pointers/
20:21
<
codefriar >
started with this: lines.each { |l| p 'yes' if l.include? 'PARSE' } but for whatever reason, it's printing EVERY line,
20:22
moei has joined #ruby
20:25
<
jhass >
codefriar: how do you define lines?
20:25
<
jhass >
maybe it's not actually lines
20:25
<
codefriar >
file.readlines
20:26
tdy has joined #ruby
20:26
kapilp has quit [Quit: Connection closed for inactivity]
20:30
<
jhass >
codefriar: could you try to provide a self contained example like this that reproduces your issue?
20:30
<
codefriar >
i'm just an idiot. it had to do with pry being wierd and dumping the lines variable after the each statement...
20:30
<
codefriar >
scrolling up held my answer
20:31
<
jhass >
ah, ok. .each always returns the receiver so that's expected in a repl session
20:33
blueflame has joined #ruby
20:34
gix- has joined #ruby
20:34
gix has quit [Disconnected by services]
20:37
blueflame has left #ruby [#ruby]
20:37
lupine has quit [Ping timeout: 250 seconds]
20:38
aspiers has quit [Ping timeout: 264 seconds]
20:38
AJA4350 has quit [Ping timeout: 248 seconds]
20:43
aspiers has joined #ruby
20:43
reber has quit [Remote host closed the connection]
20:44
lupine has joined #ruby
20:45
jenrzzz has joined #ruby
20:50
jenrzzz has quit [Ping timeout: 248 seconds]
20:56
Kestrel-029 has joined #ruby
20:57
Nicmavr has quit [Ping timeout: 245 seconds]
21:00
xco has quit [Quit: xco]
21:05
i9zO5AP has joined #ruby
21:06
Ai9zO5AP has quit [Ping timeout: 246 seconds]
21:07
gix has joined #ruby
21:10
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:10
gix- has quit [Ping timeout: 272 seconds]
21:15
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:15
octos has joined #ruby
21:19
xco has joined #ruby
21:20
SigizMG has quit [Read error: Connection reset by peer]
21:21
tdy has quit [Ping timeout: 248 seconds]
21:29
octos has quit [Remote host closed the connection]
21:30
octos has joined #ruby
21:42
sameerynho has quit [Ping timeout: 248 seconds]
21:48
jeremycw has quit [Ping timeout: 272 seconds]
21:49
digitalnomad has quit [Ping timeout: 248 seconds]
21:51
schne1der has joined #ruby
21:56
AJA4350 has joined #ruby
21:59
esp32_prog has joined #ruby
22:04
esp32_prog has quit [Ping timeout: 257 seconds]
22:08
ramfjord has quit [Ping timeout: 248 seconds]
22:09
Swyper has joined #ruby
22:10
ramfjord has joined #ruby
22:11
cthulchu has joined #ruby
22:13
cthulchu_ has quit [Ping timeout: 244 seconds]
22:14
orbyt_ has joined #ruby
22:15
houhoulis has joined #ruby
22:16
Swyper has quit [Remote host closed the connection]
22:22
Fernando-Basso has joined #ruby
22:25
octos has quit [Remote host closed the connection]
22:25
octos has joined #ruby
22:26
Nicmavr has joined #ruby
22:27
Kestrel-029 has quit [Ping timeout: 245 seconds]
22:28
fphilipe_ has quit [Ping timeout: 252 seconds]
22:31
doodlebug has quit [Ping timeout: 272 seconds]
22:31
houhoulis has quit [Remote host closed the connection]
22:33
doodleb70 has joined #ruby
22:37
gix has quit [Ping timeout: 258 seconds]
22:38
gix has joined #ruby
22:38
agent_white has quit [Quit: brb]
22:39
schne1der has quit [Quit: schne1der]
22:43
polishdub has quit [Remote host closed the connection]
22:45
ramfjord has quit [Ping timeout: 246 seconds]
22:49
cthulchu has quit [Ping timeout: 268 seconds]
22:54
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:55
fphilipe_ has joined #ruby
22:57
Swyper has joined #ruby
22:57
gix has quit [Ping timeout: 272 seconds]
22:58
cd has quit [Remote host closed the connection]
22:59
cd has joined #ruby
22:59
tdy has joined #ruby
23:00
Swyper has quit [Remote host closed the connection]
23:11
orbyt_ has joined #ruby
23:14
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:15
tdy has quit [Ping timeout: 268 seconds]
23:16
duderonomy has joined #ruby
23:18
octos has quit [Remote host closed the connection]
23:23
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:26
<
xco >
is there a way to check all the classes/objects that respond to a certain method?
23:26
<
xco >
how do i have all the class/objects that respond_to?(:empty?)
23:27
<
xco >
i know String, does, Array does respond to it and hash too i think
23:27
<
xco >
but is there a way to check for a list of this from say irb?
23:27
<
phaul >
you can walk ObjectSpace
23:27
<
xco >
something “meta-programmy” should be able to do that
23:27
<
phaul >
or call &list on the bot :P
23:27
<
phaul >
&list empty?
23:27
<
rubydoc >
Dir.empty?, ENV.empty?, File.empty?, Array#empty?, Hash#empty?, Queue#empty?, SizedQueue#empty?, String#empty?, Symbol#empty?, FileTest#empty?, CSV::FieldsConverter#empty?, DBM#empty?, GDBM#empty?, Matrix#empty?, Pathname#empty?, RDoc::Comment#empty?, RDoc::Markup::Document#empty?, RDoc::Markup::List#empty?, RDoc::Markup::ListItem#empty?, REXML::Elements#empty?, REXML::IOSource#empty?, REXML::Parsers::BaseParser#empty?, REXML::Source#empty?, REXML::Text#empty?, ...
23:27
<
rubydoc >
... Gem::AvailableSet#empty?, Gem::Package::TarHeader#empty?, Gem::RequestSet::Lockfile::Tokenizer#empty?, Gem::Resolver::RequirementList#empty?, Gem::SourceList#empty?, SDBM#empty?, Set#empty?, StringScanner#empty?, ThreadsWait#empty?
23:28
<
xco >
what kind of sorcery is this? :P
23:29
<
xco >
phaul: thanks but how would i do it in the terminal?
23:29
asat has joined #ruby
23:29
<
phaul >
walk ObjectSpace
23:29
fphilipe_ has quit [Ping timeout: 258 seconds]
23:30
<
phaul >
&>> ObjectSpace.each_object(Class).take(10)
23:30
<
rubydoc >
# => [Monitor, #<Class:MonitorMixin>, SimpleDelegator, #<Class:URI::File>, URI::File, #<Class:Gem::Version>,... check link for more (
https://carc.in/#/r/6z07 )
23:30
<
xco >
yeah i saw that i’m reading it’s documentation but have no idea how to use it to check what responds_to empty? for example
23:31
<
phaul >
&>> ObjectSpace.each_object(Class).select { |klass| klass.instance_methods.include? :empty? }
23:31
<
rubydoc >
# => [Thread::SizedQueue, Thread::Queue, #<Class:FileTest>, #<Class:#<Object:0x000055c984233900>>, Hash,... check link for more (
https://carc.in/#/r/6z08 )
23:33
<
xco >
so this these are ALL the classes that have #empty? as intance methods right?
23:33
<
phaul >
at the point when you run the code. Ruby is dynamic.. so this list can change as the program runs
23:33
<
xco >
what if there’s something up above this “ObjectSpace” that responds to empty??
23:35
<
phaul >
ObjectSpace always includes all objects in the system.
23:35
<
phaul >
classes/ modules and every other objects too.
23:36
shtirlic has joined #ruby
23:48
esp32_prog has joined #ruby
23:52
esp32_prog has quit [Ping timeout: 246 seconds]
23:54
AJA4350 has quit [Ping timeout: 272 seconds]
23:59
bambanx has joined #ruby