00:00
samort7 has quit [Read error: Connection reset by peer]
00:01
themsay has joined #ruby
00:04
davidw has quit [Ping timeout: 246 seconds]
00:04
akem has joined #ruby
00:12
masterasia has joined #ruby
00:12
jthomas1 has quit [Ping timeout: 250 seconds]
00:12
Inside has joined #ruby
00:13
<
Inside >
Like the first conflict makes no sense since it looks like actionpack & simple_form should be satisfied..
00:20
cthulchu has quit [Ping timeout: 244 seconds]
00:21
nowhere_man has joined #ruby
00:21
cthulchu has joined #ruby
00:21
cnsvc_ has quit [Ping timeout: 256 seconds]
00:23
davidw has joined #ruby
00:24
<
Inside >
Deprecation warnings galore~
00:24
<
Inside >
Turns out nuking a single gem from the gemfile that I didn't need anyway fixed everything D
00:28
cthulchu has quit [Ping timeout: 272 seconds]
00:30
jottr has quit [Ping timeout: 250 seconds]
00:30
moei has quit [Quit: Leaving...]
00:30
cpruitt has joined #ruby
00:30
go|dfish has joined #ruby
00:31
jottr has joined #ruby
00:35
ramfjord has quit [Ping timeout: 268 seconds]
00:36
jottr has quit [Ping timeout: 240 seconds]
00:36
hutch has quit [Ping timeout: 250 seconds]
00:37
ramfjord has joined #ruby
00:38
<
Inside >
it was more of a ruby question ;P
00:42
nchambers has joined #ruby
00:47
fluxAeon has quit [Ping timeout: 246 seconds]
00:50
cnsvc_ has joined #ruby
00:50
themsay has quit [Ping timeout: 246 seconds]
00:52
cthulchu has joined #ruby
01:00
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:08
Inside has quit [Quit: leaving]
01:12
<
ruby[bot] >
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
01:18
akem has quit [Remote host closed the connection]
01:19
akem has joined #ruby
01:21
davidw has quit [Remote host closed the connection]
01:22
cnsvc_ has quit [Ping timeout: 256 seconds]
01:22
davidw has joined #ruby
01:31
dbz has quit [Ping timeout: 268 seconds]
01:32
coltkirk has quit [Remote host closed the connection]
01:33
stooj has joined #ruby
01:41
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:48
davidw has quit [Ping timeout: 268 seconds]
01:49
Xenosine has quit [Quit: Leaving]
01:49
Exuma has joined #ruby
01:55
ellcs has quit [Ping timeout: 268 seconds]
01:56
cnsvc_ has joined #ruby
02:03
Xiti has quit [Quit: Xiti]
02:08
Xiti has joined #ruby
02:08
sonne has left #ruby [#ruby]
02:11
themsay has joined #ruby
02:15
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:16
<
nchambers >
in %r{^exe/} is the / literal here?
02:17
Exuma has joined #ruby
02:17
darkhanb has joined #ruby
02:18
<
nchambers >
Iambchop: yeah, you were right. i was having a brainfart and forgot bash was doing things to build[release]
02:18
<
nchambers >
'build[release]' of course fixed it
02:22
orbyt_ has joined #ruby
02:24
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:27
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:35
ramfjord has quit [Ping timeout: 250 seconds]
02:37
cpruitt has quit [Remote host closed the connection]
02:39
jthomas1 has joined #ruby
02:44
jthomas1 has quit [Ping timeout: 246 seconds]
02:48
Exuma has joined #ruby
02:53
Hoffman has quit [Quit: quit]
02:54
carbone5 has joined #ruby
02:56
fredolinhares has quit [Quit: WeeChat 1.9.1]
02:56
carbone5 has quit [Client Quit]
02:57
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:58
pwnd_nsfw has joined #ruby
02:59
bambanx has quit [Quit: Leaving]
03:01
orbyt_ has joined #ruby
03:06
hutch has joined #ruby
03:16
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:18
phaul has quit [Quit: bye]
03:23
darkhanb has joined #ruby
03:27
cd has quit [Quit: cd]
03:36
cnsvc_ has quit [Ping timeout: 256 seconds]
03:39
houhoulis has joined #ruby
03:42
cschneid has joined #ruby
03:44
ixti has quit [Quit: WeeChat 2.3]
03:44
gnufied has quit [Quit: Leaving]
03:45
mrush has joined #ruby
03:57
RougeR has quit [Ping timeout: 240 seconds]
03:58
dbz has joined #ruby
04:00
Azure has quit [Read error: Connection reset by peer]
04:00
<
mrush >
finally got eloquent ruby
04:02
dbz has quit [Ping timeout: 240 seconds]
04:03
davidw has joined #ruby
04:05
braincrash has quit [Quit: bye bye]
04:06
lytol has quit [Remote host closed the connection]
04:06
dbz has joined #ruby
04:06
cnsvc_ has joined #ruby
04:09
braincrash has joined #ruby
04:10
darkhanb has quit [Ping timeout: 244 seconds]
04:11
davidw_ has joined #ruby
04:13
davidw has quit [Ping timeout: 246 seconds]
04:15
cschneid has quit [Ping timeout: 250 seconds]
04:16
\void has quit [Read error: Connection reset by peer]
04:16
mrush has left #ruby [#ruby]
04:16
roshanavand1 has joined #ruby
04:16
roshanavand has quit [Ping timeout: 268 seconds]
04:16
roshanavand1 is now known as roshanavand
04:19
\void has joined #ruby
04:22
masterasia has joined #ruby
04:22
davidw_ has quit [Ping timeout: 250 seconds]
04:28
kapil____ has joined #ruby
04:38
cnsvc_ has quit [Ping timeout: 256 seconds]
04:47
dellavg_ has joined #ruby
04:54
rippa has joined #ruby
04:57
yxhuvud has joined #ruby
04:59
s3nd1v0g1us has joined #ruby
05:09
Azure has joined #ruby
05:11
conta has joined #ruby
05:11
cnsvc_ has joined #ruby
05:12
masterasia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:12
cschneid has joined #ruby
05:13
za1b1tsu has joined #ruby
05:15
conta has quit [Ping timeout: 250 seconds]
05:16
cnsvc_ has quit [Ping timeout: 256 seconds]
05:19
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:27
houhoulis has quit [Remote host closed the connection]
05:29
zxq2 has quit [Remote host closed the connection]
05:29
conta has joined #ruby
05:33
cnsvc_ has joined #ruby
05:43
s3nd1v0g1us has quit [Quit: WeeChat 2.2]
05:46
cschneid has quit [Ping timeout: 244 seconds]
05:50
hutch has quit [Ping timeout: 250 seconds]
05:58
hutch has joined #ruby
05:59
brandonkal has joined #ruby
06:03
paranoicsan has joined #ruby
06:04
dinfuehr has quit [Ping timeout: 250 seconds]
06:04
paranoicsan has quit [Client Quit]
06:05
dinfuehr has joined #ruby
06:10
DTZUZO has quit [Ping timeout: 250 seconds]
06:14
hutch has quit [Ping timeout: 268 seconds]
06:27
impermanence has quit [Ping timeout: 250 seconds]
06:32
cnsvc_ has quit [Ping timeout: 256 seconds]
06:38
endemic has quit [Ping timeout: 250 seconds]
06:39
neuraload has joined #ruby
06:39
endemic has joined #ruby
06:40
Inline has quit [Quit: Leaving]
06:41
Guest31 has joined #ruby
06:42
Guest31 is now known as devpolish
06:43
cschneid has joined #ruby
06:53
reber has joined #ruby
06:57
reber has quit [Remote host closed the connection]
06:57
cnsvc_ has joined #ruby
06:58
CrazyEddy has quit [Ping timeout: 268 seconds]
06:58
aupadhye has joined #ruby
07:06
dbz has quit [Remote host closed the connection]
07:11
code_zombie has quit [Quit: Leaving]
07:16
ramfjord has joined #ruby
07:17
cschneid has quit [Ping timeout: 246 seconds]
07:21
ramfjord has quit [Ping timeout: 272 seconds]
07:30
aufi has joined #ruby
07:31
paranoicsan has joined #ruby
08:05
clemens3_ has joined #ruby
08:07
dbz has joined #ruby
08:12
cnsvc_ has quit [Ping timeout: 256 seconds]
08:13
ellcs has joined #ruby
08:17
kapil____ has quit [Quit: Connection closed for inactivity]
08:17
dinfuehr has quit [Ping timeout: 244 seconds]
08:18
dinfuehr has joined #ruby
08:20
paranoicsan has left #ruby [#ruby]
08:22
kapil____ has joined #ruby
08:32
BH23 has joined #ruby
08:39
paranoicsan has joined #ruby
08:50
themsay has quit [Ping timeout: 246 seconds]
08:58
zipace has joined #ruby
09:00
venmx has quit [Ping timeout: 245 seconds]
09:02
dbz has quit [Remote host closed the connection]
09:09
Freshnuts has quit [Quit: Leaving]
09:09
GodFather has quit [Ping timeout: 244 seconds]
09:10
jthomas1 has joined #ruby
09:15
jthomas1 has quit [Ping timeout: 250 seconds]
09:15
HailTheRobots has joined #ruby
09:16
ramfjord has joined #ruby
09:21
ramfjord has quit [Ping timeout: 250 seconds]
09:23
lxsameer has joined #ruby
09:28
cnsvc_ has joined #ruby
09:32
\void has quit [Quit: So long, and thanks for all the fish.]
09:43
m0w has joined #ruby
09:44
paranoicsan is now known as paranoicsan[Away
09:44
paranoicsan[Away has quit [Quit: paranoicsan[Away]
09:45
tjbp has quit [Remote host closed the connection]
09:46
tjbp has joined #ruby
09:48
paranoicsan has joined #ruby
09:49
ams__ has joined #ruby
09:50
sleetdrop has joined #ruby
09:58
sleetdrop has quit [Remote host closed the connection]
10:02
sleetdrop has joined #ruby
10:03
phaul has joined #ruby
10:05
saTchymoto has joined #ruby
10:07
MyMind has quit [Ping timeout: 240 seconds]
10:07
Pisuke has joined #ruby
10:08
venmx has joined #ruby
10:11
cnsvc_ has quit [Ping timeout: 256 seconds]
10:13
cnsvc_ has joined #ruby
10:16
ellcs has quit [Ping timeout: 250 seconds]
10:17
averna has joined #ruby
10:18
averna has quit [Read error: Connection reset by peer]
10:23
saTchymoto has quit [Read error: Connection reset by peer]
10:24
saTchymoto has joined #ruby
10:31
cnsvc_ has quit [Ping timeout: 256 seconds]
10:32
cnsvc_ has joined #ruby
10:37
cnsvc_ has quit [Ping timeout: 256 seconds]
10:49
averna has joined #ruby
10:51
averna has quit [Remote host closed the connection]
10:53
paranoicsan is now known as paranoicsan[Away
10:59
paranoicsan[Away has quit [Quit: paranoicsan[Away]
10:59
averna has joined #ruby
11:00
averna has quit [Read error: Connection reset by peer]
11:02
jottr has joined #ruby
11:06
paranoicsan has joined #ruby
11:13
jottr has quit [Ping timeout: 250 seconds]
11:16
nowhere_man has quit [Ping timeout: 252 seconds]
11:16
ramfjord has joined #ruby
11:20
HailTheRobots has quit [Remote host closed the connection]
11:20
ramfjord has quit [Ping timeout: 245 seconds]
11:21
HailTheRobots has joined #ruby
11:24
keden has joined #ruby
11:26
teclator has joined #ruby
11:46
TheBloke has quit [Read error: No route to host]
11:47
zapata has joined #ruby
11:47
TheBloke- has joined #ruby
11:54
jottr has joined #ruby
11:55
zipace has quit [Quit: Leaving]
11:56
conta1 has joined #ruby
11:57
lucasb has joined #ruby
12:02
nowhere_man has joined #ruby
12:06
jottr has quit [Ping timeout: 245 seconds]
12:07
ellcs has joined #ruby
12:14
paranoicsan has quit [Quit: paranoicsan]
12:15
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:19
AJA4350 has joined #ruby
12:21
dinfuehr has quit [Ping timeout: 250 seconds]
12:22
dinfuehr has joined #ruby
12:24
devpolish has quit [Ping timeout: 244 seconds]
12:30
coderphive has quit [Remote host closed the connection]
12:30
coderphive has joined #ruby
12:33
cnsvc_ has joined #ruby
12:35
m0w has quit [Remote host closed the connection]
12:36
m0w has joined #ruby
12:40
KeyJoo has joined #ruby
12:43
cpruitt has joined #ruby
12:54
conta1 has quit [Remote host closed the connection]
12:56
za1b1tsu has quit [Quit: Leaving]
13:05
HailTheRobots has quit [Remote host closed the connection]
13:06
cnsvc_ has quit [Ping timeout: 256 seconds]
13:09
crash_hacker has joined #ruby
13:19
crash_hacker has left #ruby ["catch you later"]
13:19
mostlybadfly has joined #ruby
13:21
cd has joined #ruby
13:24
neuraload has quit [Quit: Leaving]
13:30
keden has quit [Ping timeout: 250 seconds]
13:32
venmx has quit [Quit: leaving]
13:34
catphish has joined #ruby
13:34
<
catphish >
feature request (unless it already exists): the ability to defer signal handlers until the end of a block
13:35
<
catphish >
defer_signals {dont_interrupt_this; or_this};
13:36
<
catphish >
i assume one could create this manually by setting up and tearing down signal handlers as needed
13:36
<
catphish >
maybe not very thread safe :(
13:38
conta has quit [Remote host closed the connection]
13:38
ellcs has quit [Ping timeout: 250 seconds]
13:41
venmx has joined #ruby
13:42
troulouliou_div2 has joined #ruby
13:44
venmx has quit [Client Quit]
13:48
keden has joined #ruby
13:52
GodFather has joined #ruby
13:52
keden has quit [Ping timeout: 244 seconds]
13:59
keden has joined #ruby
14:02
z4phod has quit [Ping timeout: 272 seconds]
14:03
jottr has joined #ruby
14:07
DTZUZO has joined #ruby
14:08
krawchyk has joined #ruby
14:08
JoshS has quit [Remote host closed the connection]
14:09
alan_w has joined #ruby
14:09
JoshS has joined #ruby
14:12
DTZUZO has quit [Ping timeout: 250 seconds]
14:14
masterasia has joined #ruby
14:17
akem has quit [Remote host closed the connection]
14:17
akem has joined #ruby
14:18
masterasia has quit [Ping timeout: 246 seconds]
14:28
<
darix >
catphish: so what to do when the signal gets thrown in that block?
14:28
<
darix >
a signal that might indicate a serious error
14:29
ramfjord has joined #ruby
14:29
marz_d`ghostman has joined #ruby
14:29
<
marz_d`ghostman >
Any good gem that would make testing concurrency easy? Currently using concurrent-ruby gem in my script
14:32
<
catphish >
darix: defer processing of it until after the block :)
14:33
<
catphish >
it makes sense that the signals to defer would be selectable
14:33
ramfjord has quit [Ping timeout: 250 seconds]
14:36
paranoicsan has joined #ruby
14:37
<
darix >
catphish: imho signal usually means something important needs to be done now
14:38
conta has joined #ruby
14:46
<
catphish >
darix: i rarely find that to be the case
14:47
<
catphish >
the most common signal my applications will see is TERM, and i don't necessarily want a process to exit until it's finished something critical
14:48
<
catphish >
other signals are just used to trigger things, and again i may not want them to happen instantly
14:49
<
darix >
catphish: your signal handler could just set a variable and your event loop could check those variable at the beginning of the next iteration?
14:49
<
catphish >
darix: that's what i usually do, yes, but it would be nice to abstract that
14:50
<
darix >
that is a pretty small code already imho
14:52
paranoicsan has left #ruby [#ruby]
14:58
paranoicsan has joined #ruby
15:02
SeepingN has joined #ruby
15:02
ellcs has joined #ruby
15:03
cnsvc_ has joined #ruby
15:07
gnufied has joined #ruby
15:07
saTchymoto has quit []
15:08
Rapture has joined #ruby
15:12
ellcs has quit [Ping timeout: 264 seconds]
15:14
gigetoo has quit [Ping timeout: 240 seconds]
15:15
mikecmpbll has joined #ruby
15:18
paranoicsan is now known as paranoicsan[Away
15:18
paranoicsan[Away has quit [Quit: paranoicsan[Away]
15:22
nchambers has quit [Quit: WeeChat 2.2]
15:23
aupadhye has quit [Ping timeout: 250 seconds]
15:23
linuxdaemon has quit [Quit: RIP.]
15:28
gigetoo has joined #ruby
15:31
paranoicsan has joined #ruby
15:32
ellcs has joined #ruby
15:34
linuxdaemon has joined #ruby
15:36
KeyJoo has quit [Quit: KeyJoo]
15:36
polishdub has joined #ruby
15:37
cnsvc_ has quit [Ping timeout: 256 seconds]
15:44
jthomas1 has joined #ruby
15:44
cschneid has joined #ruby
15:46
Inside has joined #ruby
15:49
jthomas1 has quit [Ping timeout: 250 seconds]
15:49
<
WA9ACE >
I'm thinking about buying the recorded sessions to go over this holiday season
15:49
jthomas1 has joined #ruby
15:53
elphe has quit [Ping timeout: 246 seconds]
15:58
exchgr` has joined #ruby
15:59
exchgr has quit [Ping timeout: 252 seconds]
16:00
reber has joined #ruby
16:03
hutch has joined #ruby
16:05
cschneid has quit [Remote host closed the connection]
16:05
BH23 has quit [Ping timeout: 246 seconds]
16:07
<
catphish >
one should definitely learn event driven coding
16:07
<
catphish >
no idea about that course :)
16:09
troulouliou_div2 has quit [Remote host closed the connection]
16:14
akem has quit [Remote host closed the connection]
16:14
akem has joined #ruby
16:15
<
havenwood >
Update to RubyGems 3.0: gem update --system
16:20
davidw_ has joined #ruby
16:25
devpolish has joined #ruby
16:26
ellcs has quit [Ping timeout: 250 seconds]
16:26
maryo has joined #ruby
16:29
catphish has left #ruby ["Leaving"]
16:32
doubledup has joined #ruby
16:32
doubledup has quit [Remote host closed the connection]
16:34
Inline has joined #ruby
16:34
Inline has quit [Read error: Connection reset by peer]
16:35
GodFather has quit [Ping timeout: 268 seconds]
16:35
aufi has quit [Remote host closed the connection]
16:35
Inline has joined #ruby
16:37
bmurt has joined #ruby
16:44
impermanence has joined #ruby
16:52
paranoicsan has quit [Quit: paranoicsan]
16:58
Arkantos has joined #ruby
16:59
careta has joined #ruby
17:00
<
careta >
guys, I need too spawn a background process, then after some time "connect" to it and allow the user to interact with it. How can I achieve this?
17:04
phaul has quit [Ping timeout: 250 seconds]
17:04
rubydoc has quit [Ping timeout: 268 seconds]
17:04
rubydoc has joined #ruby
17:06
phaul has joined #ruby
17:06
gnufied has quit [Ping timeout: 268 seconds]
17:06
akem__ has joined #ruby
17:08
devpolish has quit [Ping timeout: 246 seconds]
17:08
akem has quit [Ping timeout: 246 seconds]
17:13
Arkantos has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:18
donofrio has joined #ruby
17:20
akem__ has quit [Ping timeout: 244 seconds]
17:22
venmx has joined #ruby
17:22
Arkantos has joined #ruby
17:24
Arkantos has quit [Client Quit]
17:25
d10n-work has joined #ruby
17:25
donofrio has quit [Ping timeout: 245 seconds]
17:27
keden has quit [Quit: WeeChat 2.3]
17:30
gix has joined #ruby
17:33
m0w has quit [Ping timeout: 246 seconds]
17:33
cnsvc_ has joined #ruby
17:34
lxsameer has quit [Ping timeout: 268 seconds]
17:37
<
havenwood >
careta: inter-process communication by unix socket is one option
17:39
mikecmpbll has quit [Ping timeout: 240 seconds]
17:39
<
Inside >
careta: what kind of communication?
17:39
<
Inside >
you could setup a simple web server (ie: rack)
17:39
<
Inside >
Might be over kill
17:40
<
Inside >
Or you could setup a websocket server..
17:40
careta has quit [Ping timeout: 250 seconds]
17:40
<
Inside >
if the interaction & the process occur within the same application, you would use threads..
17:40
<
Inside >
and mutexes
17:42
dbz has joined #ruby
17:42
CrazyEddy has joined #ruby
17:43
dbz has quit [Remote host closed the connection]
17:43
dbz has joined #ruby
17:45
dbz has quit [Remote host closed the connection]
17:46
dbz has joined #ruby
17:46
mikecmpbll has joined #ruby
17:47
donofrio has joined #ruby
17:50
careta has joined #ruby
17:51
davidw_ is now known as davidw
17:51
<
Eiam >
or you could use XPC or IPC if this is macOS
17:51
<
Eiam >
which is bsaically what havenwood said
17:52
<
Eiam >
there was a gem ages ago... it took ruby from one client, passed it over the wire, then ran it on another client
17:53
<
Eiam >
it wasn't remote_ruby cause this was 7 years ago
17:53
<
Eiam >
well hell let me see if I have the repo still I can just look at the gemfile =o
17:54
<
careta >
havenwood, ok thanks for the tips, I'll look into that
17:54
<
careta >
it might be easier just to use expect or something like that and echo at the end of the output
17:54
<
careta >
since the other end is a shell
17:55
<
havenwood >
careta: How about use DRb? :)
17:55
<
careta >
I don't have control over the other end, I need to interact with a slimmed down shell, not even bash
17:56
<
havenwood >
careta: Both processes on the same machine?
17:57
ramfjord has joined #ruby
17:58
<
phaul >
I was practising coding and I made a sudoku solver
https://gist.github.com/phaul/1d36018bf925bd212c64671a5ca20217 . I tried to write idiomatic Ruby, refactor, and write understandable code, rather than be the fastest. But I also tried to solve all puzzles in acceptable amount of time. Please give me suggestions on how the code could be improved
18:00
donofrio has quit [Ping timeout: 246 seconds]
18:01
<
Eiam >
hah past me trying to document his gemfile # Strictly for development for sane debugging & stepping behavior
18:01
<
Eiam >
gem "pry-byebug"
18:01
<
Eiam >
gem "pry-remote"
18:01
<
Eiam >
havenwood: ahh yes it was DRB!!!
18:02
dinfuehr has quit [Ping timeout: 272 seconds]
18:02
dinfuehr has joined #ruby
18:02
ramfjord has quit [Ping timeout: 272 seconds]
18:05
hiroaki has joined #ruby
18:06
cthulchu has quit [Ping timeout: 245 seconds]
18:07
cnsvc_ has quit [Ping timeout: 256 seconds]
18:08
cpruitt has quit [Ping timeout: 250 seconds]
18:10
slima has left #ruby [#ruby]
18:12
cthulchu has joined #ruby
18:12
code_zombie has joined #ruby
18:13
d^sh has quit [Ping timeout: 250 seconds]
18:15
<
Inside >
phaul: looks pretty sexy
18:16
<
Inside >
I'm gonna upgrade from ruby 2.4 to 2.5
18:16
<
Inside >
any pitfalls I should look out for?
18:18
\void has joined #ruby
18:18
mostlybadfly has quit [Quit: Connection closed for inactivity]
18:18
<
phaul >
Inside: thanks
18:19
<
Eiam >
Inside: just use chruby and run your unit tests?
18:19
<
Eiam >
if it looks good, deploy to QA and verify then off to production?
18:23
jcarl43 has joined #ruby
18:23
maryo has quit [Quit: Leaving]
18:24
gnufied has joined #ruby
18:26
lucasb has quit [Quit: Connection closed for inactivity]
18:29
m0w has joined #ruby
18:30
duckpuppy has quit [Ping timeout: 244 seconds]
18:30
kidosatori has joined #ruby
18:32
<
phaul >
posted on reddit. let's see what sort of responses I get..
18:33
sauvin has quit [Ping timeout: 250 seconds]
18:33
duckpuppy has joined #ruby
18:34
Scrooge has joined #ruby
18:35
mostlybadfly has joined #ruby
18:38
nowhere_man has quit [Ping timeout: 252 seconds]
18:38
<
phaul >
havenwood: I am looking into those, thanks
18:38
lxsameer has joined #ruby
18:40
<
phaul >
&ri private_constant
18:42
Scrooge has quit [Remote host closed the connection]
18:42
akaiiro has quit [Ping timeout: 245 seconds]
18:42
gnufied has quit [Quit: Leaving]
18:43
gnufied has joined #ruby
18:47
d^sh has joined #ruby
18:50
<
phaul >
I have to say I need to relearn what private means, as private_constant makes 0 sense to me atm.
18:51
<
phaul >
private is that you can;t put explicit receiver on it, right? So what does that mean for a constant
18:53
cpruitt has joined #ruby
18:55
hutch has quit [Ping timeout: 246 seconds]
18:55
tjarvis has joined #ruby
18:57
<
phaul >
hm. interesting.
18:58
<
phaul >
&>> module A; X = 1; private_constant :X; end; A::X
18:59
hutch has joined #ruby
19:00
cnsvc_ has joined #ruby
19:02
<
havenwood >
phaul: Yeah, it makes it inaccessible outside the class - unless you use metaprogramming, of course.
19:03
cthulchu has quit [Ping timeout: 245 seconds]
19:06
<
havenwood >
phaul: You can alias with #def_instance_delegator
19:09
<
havenwood >
phaul: #dup *just works*, so you don't need to implement it
19:09
<
phaul >
is that true for Set, Array instance vars too?
19:09
<
phaul >
if I need deep copy
19:10
venmx has quit [Ping timeout: 240 seconds]
19:11
cthulchu has joined #ruby
19:11
<
havenwood >
phaul: good point
19:11
<
havenwood >
phaul: makes me wonder if you should marshal dump and load
19:11
<
havenwood >
phaul: yeah, never mind me on that one
19:14
<
phaul >
the gnarly stuff comes in IterativeDeepening, so based on your reaction so far, I'm expecting a heart attack :)
19:15
<
havenwood >
phaul: haha
19:16
tjarvis has quit [Quit: WeeChat 2.3]
19:17
akaiiro has joined #ruby
19:17
conta has quit [Quit: conta]
19:21
hutch has quit [Ping timeout: 245 seconds]
19:21
tjarvis has joined #ruby
19:22
nowhere_man has joined #ruby
19:25
tjarvis has quit [Client Quit]
19:25
hutch has joined #ruby
19:25
tjarvis has joined #ruby
19:25
dviola has joined #ruby
19:26
beaky has joined #ruby
19:26
dbz_ has joined #ruby
19:26
tjarvis has quit [Client Quit]
19:26
tjarvis has joined #ruby
19:28
tjarvis has quit [Client Quit]
19:29
tjarvis has joined #ruby
19:29
tjarvis has quit [Client Quit]
19:29
dbz has quit [Ping timeout: 244 seconds]
19:29
tjarvis has joined #ruby
19:29
tjarvis has quit [Client Quit]
19:29
themsay has joined #ruby
19:30
tjarvis has joined #ruby
19:30
tjarvis has quit [Client Quit]
19:36
careta has quit [Quit: Leaving]
19:36
dbz_ has quit [Remote host closed the connection]
19:37
dbz has joined #ruby
19:37
postmodern has joined #ruby
19:38
dbz has quit [Remote host closed the connection]
19:39
dbz has joined #ruby
19:43
dbz has quit [Remote host closed the connection]
19:44
dbz has joined #ruby
19:45
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:46
<
Inside >
I should come here for code reviews too
19:48
<
Inside >
I'm serious
19:48
<
Inside >
those are pretty good comments
19:48
<
Eiam >
considering I pay people on my team to do code reviews
19:49
<
Inside >
I should write a small gem or something that can be easily reviewed
19:49
<
Eiam >
I'd find it mildly offensive to request free code reviews as an actual task =)
19:49
<
Inside >
think of it as an internship
19:49
<
Zarthus >
Eiam: I think so long you're friendly, you keep your usecase small and their time valued, it's a completely valid question
19:49
<
Zarthus >
If people aren't up to it, they will simply not answer.
19:49
<
Inside >
you raise the general knowledge and skill level of the industry
19:50
<
Zarthus >
But reading other's code is a good way to train yourself too.
19:50
<
Eiam >
Zarthus: not disputing it as a random thing, but as an actual like ongoing action to just have all your code get reviewed here?
19:50
<
Zarthus >
if you get all of it reviewed here, you've got problems :)
19:50
<
Eiam >
yeah, probably legal ones =)
19:50
<
Zarthus >
just make sure your code is presentable. a 500 line gist with no indentation is the rude part.
19:51
<
WA9ACE >
a 500 line gist with no indentation asking "please make this totally not my homework run"
19:51
<
phaul >
Zarthus: you are not talking about my gist, or is the indentation gone??
19:51
<
Zarthus >
phaul: General stupidity I see on IRC, I haven't looked at your code yet.
19:51
lytol has joined #ruby
19:52
<
Zarthus >
ha, it's almost 500 lines
19:52
<
Inside >
phaul: you're good <3
19:52
<
Inside >
it could also be homework :D
19:52
<
WA9ACE >
with things like slack communities and gitter I'm still surprised to see people making their way to IRC channels tbh
19:52
<
Inside >
IRC will be here long after slack
19:52
<
WA9ACE >
I hate both of those products with a passion
19:52
<
Zarthus >
Inline: Depends on if you mean "in popularity" or not.
19:52
<
Inside >
seriously slack..
19:52
<
Inside >
1GB of RAM to.. run a chat app?!
19:53
<
WA9ACE >
Inline I pay for IRCCloud, they have an API level integration to Slack, and you can now connect to IRCCloud and treat it as a bouncer
19:53
<
WA9ACE >
so I'm connected to all my slacks from my IRC client again, even though they killed the IRC bridge
19:53
<
Inside >
inside c_C
19:54
<
WA9ACE >
yeah sorry, wrong ping
19:55
nowhere_man has quit [Ping timeout: 252 seconds]
19:55
themsay has quit [Ping timeout: 250 seconds]
19:58
<
Eiam >
WA9ACE: when you go into an ios dev channel on slack its got 3000 people or more. good luck.
19:59
<
Eiam >
I know most the active people here and have seen and conversed with them off and on for years. hard to do that in slack groups that big
19:59
<
WA9ACE >
Eiam the go slack is 30k people
19:59
<
WA9ACE >
IRCCloud pooped itself
20:00
<
Eiam >
even ##javascript can get rough to follow, its 1111 people
20:00
<
Inside >
how is slack any different though?
20:00
<
Zarthus >
Eiam: the number'll grow smaller over the years :)
20:01
<
Zarthus >
FYI: irc is also being monopolized by a single entity.
20:01
<
Eiam >
whose that, Big OSS?
20:01
<
Zarthus >
PrivateInternetAccess
20:01
desnudopenguino has quit [Ping timeout: 268 seconds]
20:02
<
Inside >
because the whole point of IRC is that it's a chat relay...
20:02
<
Zarthus >
they already fund development of kiwiirc, inspircd, and servers for freenode and snoonet. the rest of the free time OSS devs won't keep up
20:02
<
Zarthus >
and when they withdraw that funding things are gonna suck.
20:02
<
Zarthus >
not like ircv3.com is moving at any pace at all
20:02
<
Inside >
IRC is also used as a backend for some games as well
20:02
<
Inside >
didn't Wow use IRC servers?
20:03
<
Inside >
also.. eve online?
20:03
<
Zarthus >
wow doesn't use irc, at least not in recent decades
20:03
sameerynho has joined #ruby
20:03
<
Zarthus >
Osu! does, and runescape had a SwiftKit which integrated irc
20:03
sameerynho is now known as Guest49234
20:03
<
WA9ACE >
I'm pretty sure Twitch Chat is and IRCd written in Go
20:04
<
Zarthus >
WA9ACE: it's a fork of unrealircd (c), afaik
20:04
<
WA9ACE >
it got rewritten in 2015
20:05
<
Zarthus >
anyway, most networks are shrinking a lot
20:05
<
Zarthus >
irc is not in the most healthy state, and it's not gonna become better.
20:05
cthulchu has quit [Remote host closed the connection]
20:05
cthulchu has joined #ruby
20:08
Guest49234 has quit [Ping timeout: 245 seconds]
20:08
duckpuppy has joined #ruby
20:09
Guest49234 has joined #ruby
20:09
dbz has quit [Remote host closed the connection]
20:09
dbz has joined #ruby
20:10
akaiiro has quit [Ping timeout: 250 seconds]
20:11
dbz_ has joined #ruby
20:13
Guest49234 has quit [Ping timeout: 240 seconds]
20:14
dbz has quit [Ping timeout: 244 seconds]
20:15
cpruitt has quit []
20:15
dbz_ has quit [Ping timeout: 244 seconds]
20:18
desnudopenguino has joined #ruby
20:19
holdenjd has joined #ruby
20:19
elphe has joined #ruby
20:24
Scrooge has joined #ruby
20:33
<
havenwood >
nice, did_you_mean now detects typos with keywords in version 1.3
20:34
<
havenwood >
gem update did_you_mean
20:34
<
Zarthus >
havenwood, ironic, that feature has a typo in it
20:34
<
Zarthus >
# +VariableNameChecker::RB_RESERVED_WORDS+, those reserved words reqquires
20:39
<
havenwood >
Zarthus: And require there should be singular ¯\_(ツ)_/¯
20:40
dbz has joined #ruby
20:40
dbz has quit [Remote host closed the connection]
20:41
<
Scrooge >
is there something like arr1 & arr2, except it filters using a certain regex?
20:41
dbz has joined #ruby
20:41
<
havenwood >
Scrooge: arr1.grep(regex) & arr2.grep(regex)
20:41
<
havenwood >
Scrooge: or: (arr1 & arr2).grep(regex)
20:42
<
Scrooge >
the first one is perfect, thanks
20:42
<
Scrooge >
actually, i realized i asked my question wrong, but method 1 gave me an idea of how i can do it
20:53
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
20:53
orbyt_ has joined #ruby
21:04
SeepingN has joined #ruby
21:09
Puffball has quit [Remote host closed the connection]
21:11
nowhere_man has joined #ruby
21:12
reber has quit [Remote host closed the connection]
21:16
wolfshappen has quit [Quit: Waffs have technical problems too]
21:17
kapil____ has quit [Quit: Connection closed for inactivity]
21:20
<
kspencer >
So I'm pretty sure someone has already noticed this, but ruby-doc.org/core-2.5.*/Struct.html (I did put an asterisk in there because it affects 2.5.0-2.5.3)
21:20
<
kspencer >
But the documentation for Struct asks you to use a 'Customer' constant, which in affected versions of ruby will raise a Dynamic Constant Assignment Error
21:20
<
kspencer >
Which yes, I do know is not a bug, but a feature of 2.5.* but is a bug with the documentation documents. Just letting more people know
21:21
<
miah >
its not asking you to use a constant named Customer, its only using Customer as an example
21:22
<
kspencer >
right, but why show an example of it, if its going to cause an exception
21:23
<
miah >
i suspect you already have a Customer defined somewhere in your code. when I do this in pry it works fine.
21:24
<
havenwood >
kspencer: Which of the examples do you mean?
21:24
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:24
<
havenwood >
kspencer: The ::new example?
21:26
cthulchu has quit [Ping timeout: 250 seconds]
21:26
wolfshappen has joined #ruby
21:26
<
havenwood >
kspencer: like miah said, that doesn't cause a warning
21:26
<
havenwood >
kspencer: (Unless you already have Customer defined.)
21:27
<
havenwood >
kspencer: Doing it twice in the same IRB session would cause a warning.
21:27
<
havenwood >
kspencer: There also shouldn't be anything 2.5-specific about it.
21:28
m0w has quit [Ping timeout: 250 seconds]
21:28
ams__ has quit [Quit: Connection closed for inactivity]
21:29
<
kspencer >
lines 11-24
21:30
akaiiro has joined #ruby
21:31
<
kspencer >
my problem is not with the code I have, its that the docs say its allowed in 2.5 when its not, before with 2.3 i'd get a warning but with 2.5 I'm getting an exception, with the docs, that's a bit of a issue when it says it would be allowed and not saying anything about it causing an exception
21:33
orbyt_ has joined #ruby
21:33
<
miah >
can you show the exception?
21:33
dbz_ has joined #ruby
21:34
<
havenwood >
kspencer: it seems you're defining your struct but never initializing one
21:34
<
havenwood >
kspencer: Like: Account.new
21:34
themsay has joined #ruby
21:34
<
miah >
also any time #account is called its creating a new Account
21:35
<
havenwood >
kspencer: Note, Account is the struct, not an instance of it.
21:36
cthulchu has joined #ruby
21:36
nowhere_man has quit [Ping timeout: 252 seconds]
21:36
<
havenwood >
kspencer: each time you run that method, you redefine the constant - hence the error
21:37
<
miah >
you should define your struct outside of the #account method
21:37
dbz has quit [Ping timeout: 268 seconds]
21:37
<
havenwood >
kspencer: this wouldn't have worked in any version of Ruby though - it's not 2.5-specific
21:37
<
miah >
and then in your account method create a instance variable that holds a Account, eg `@account ||= Account.new`
21:37
<
kspencer >
pretty sure in 2.3 you'd get a warning but it would still work
21:38
<
havenwood >
kspencer: this wouldn't work in 2.3 ¯\_(ツ)_/¯
21:38
<
havenwood >
kspencer: try it!
21:38
<
miah >
oldest ruby i have installed is 2.4.0 so i cant validate =)
21:38
pwnd_nsfw has quit [Remote host closed the connection]
21:38
<
kspencer >
I only have 2.5.3 on my computer
21:39
pwnd_nsfw has joined #ruby
21:39
Azure has joined #ruby
21:39
<
kspencer >
and I don't use rvm or anything because it causes me too many problems with scope when i want something to use the full user etc.
21:39
<
miah >
(why i use chruby)
21:39
<
havenwood >
kspencer: It doesn't work on the 30 versions of Ruby I have on this computer. :P
21:39
<
havenwood >
(I also use chruby)
21:40
<
kspencer >
i may checkout chruby then
21:40
<
miah >
chruby + ruby-install
21:42
za1b1tsu has joined #ruby
21:42
<
kspencer >
will chruby play nice with rubymine?
21:44
<
havenwood >
kspencer: Fixed
21:44
<
miah >
it should you just need to tell it the path to your ruby
21:44
<
miah >
i used it years back
21:44
<
havenwood >
now it should be automagical
21:48
mostlybadfly has quit [Quit: Connection closed for inactivity]
21:49
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:54
GodFather has joined #ruby
22:02
nowhere_man has joined #ruby
22:04
cnsvc_ has quit [Ping timeout: 256 seconds]
22:05
marz_d`ghostman has quit [Ping timeout: 256 seconds]
22:09
haylon has joined #ruby
22:09
bungled has joined #ruby
22:12
Exuma has joined #ruby
22:12
lucasb has joined #ruby
22:12
cthulchu has quit [Ping timeout: 272 seconds]
22:13
ellcs has joined #ruby
22:16
akem has joined #ruby
22:18
druonysus has joined #ruby
22:18
hutch has quit [Ping timeout: 250 seconds]
22:19
hutch has joined #ruby
22:23
coderphive has quit [Quit: coderphive]
22:23
blackmesa has joined #ruby
22:25
Puffball has joined #ruby
22:25
coderphive has joined #ruby
22:30
dbz_ has quit [Remote host closed the connection]
22:31
dbz has joined #ruby
22:31
cnsvc_ has joined #ruby
22:32
cow[moo] has quit [Read error: Connection reset by peer]
22:32
cthulchu has joined #ruby
22:32
dbz_ has joined #ruby
22:33
dbz_ has quit [Remote host closed the connection]
22:34
dbz_ has joined #ruby
22:34
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:34
m0w has joined #ruby
22:34
dbz_ has quit [Remote host closed the connection]
22:35
dbz_ has joined #ruby
22:35
orbyt_ has joined #ruby
22:35
dbz has quit [Ping timeout: 250 seconds]
22:37
Scrooge is now known as nchambers
22:37
cnsvc_ has quit [Ping timeout: 256 seconds]
22:38
dbz has joined #ruby
22:41
dbz_ has quit [Ping timeout: 245 seconds]
22:45
za1b1tsu has quit [Ping timeout: 244 seconds]
22:49
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:53
alan_w has quit [Ping timeout: 250 seconds]
22:53
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:53
polishdub has quit [Remote host closed the connection]
22:57
clemens3_ has quit [Ping timeout: 246 seconds]
23:00
cahoots has joined #ruby
23:01
bungled is now known as thismyspout
23:01
justache is now known as santastache
23:03
haylon has quit [Ping timeout: 245 seconds]
23:03
phaul has quit [Quit: bye]
23:05
eminencehc has quit [Remote host closed the connection]
23:06
eminencehc has joined #ruby
23:10
eminencehc has quit [Ping timeout: 250 seconds]
23:12
cnsvc_ has joined #ruby
23:13
hutch has quit [Ping timeout: 250 seconds]
23:14
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:16
jcarl43 has quit [Quit: WeeChat 2.3]
23:19
orbyt_ has joined #ruby
23:21
gix has quit [Ping timeout: 240 seconds]
23:22
<
cahoots >
hi, i want to get a base 2 number (as a string of 1's and 0's) approximating a decimal number (e.g. 0.1), with as many bits as i want. what's the easiest way to do this?
23:22
thismyspout has quit [Quit: Leaving]
23:23
hiroaki has quit [Ping timeout: 246 seconds]
23:27
hutch has joined #ruby
23:37
JoshS has quit [Ping timeout: 250 seconds]
23:45
Puffball has quit [Remote host closed the connection]
23:48
code_zombie has quit [Quit: Leaving]
23:51
za1b1tsu has joined #ruby
23:51
cnsvc_ has quit [Ping timeout: 256 seconds]
23:52
lxsameer has quit [Ping timeout: 250 seconds]
23:53
hutch has quit [Ping timeout: 245 seconds]
23:56
Arkantos has joined #ruby
23:58
za1b1tsu has quit [Ping timeout: 240 seconds]
23:58
Arkantos has quit [Client Quit]
23:58
cahoots has quit [Ping timeout: 246 seconds]
23:58
Arkantos has joined #ruby
23:59
Arkantos has quit [Client Quit]