00:03
jacksoow has joined #ruby
00:04
spectra has quit [Ping timeout: 276 seconds]
00:05
Fernando-Basso has quit [Quit: Leaving]
00:05
hutch1 has quit [Ping timeout: 240 seconds]
00:07
NODE has quit [Quit: changing servers]
00:08
NODE has joined #ruby
00:11
spectra has joined #ruby
00:12
nofxx has joined #ruby
00:14
Nahra_ has quit [Ping timeout: 250 seconds]
00:15
lucasb has quit [Quit: Connection closed for inactivity]
00:16
NODE has quit [Quit: changing servers]
00:16
greenhat has joined #ruby
00:17
NODE has joined #ruby
00:19
Inline has quit [Read error: Connection reset by peer]
00:19
davidw has quit [Ping timeout: 240 seconds]
00:19
Inline has joined #ruby
00:21
hutch1 has joined #ruby
00:22
FastJack has quit [Ping timeout: 264 seconds]
00:22
FastJack has joined #ruby
00:26
jacksoow has quit [Read error: Connection reset by peer]
00:27
jacksoow has joined #ruby
00:27
AJA4351 has joined #ruby
00:29
AJA4351 is now known as AJA4350
00:29
AJA4350 has quit [Ping timeout: 265 seconds]
00:30
CalimeroTeknik has quit [Quit: バイバイ]
00:34
CalimeroTeknik has joined #ruby
00:35
<
dorian >
hey question: suppose you want to wad together a bunch of (pure) functions in a module, but also want to be able to include them as instance methods. is there a pattern for that?
00:36
fmccann has joined #ruby
00:37
gix has quit [Ping timeout: 268 seconds]
00:37
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:37
hiroaki has quit [Ping timeout: 265 seconds]
00:38
dionysus69 has quit [Ping timeout: 250 seconds]
00:39
dasher00 has quit [Ping timeout: 240 seconds]
00:42
fmccann has quit [Ping timeout: 276 seconds]
00:44
<
AndroidKitKat >
why does asking for only 2 indices return 3 elements
00:45
Autolycus has joined #ruby
00:45
<
AndroidKitKat >
oh wait, nevermind i see now
00:45
<
AndroidKitKat >
it's start pos, and how many you want
00:47
<
AndroidKitKat >
maybe i should try reading
00:47
dasher00 has joined #ruby
00:49
ur5us has quit [Ping timeout: 245 seconds]
00:51
nowhereman has quit [Ping timeout: 252 seconds]
00:55
<
havenwood >
AndroidKitKat: I like the Range form better, so I don't have to remember.
01:01
drincruz has joined #ruby
01:01
Autolycus has quit []
01:02
DTZUZO has quit [Quit: WeeChat 2.6]
01:02
DTZUZO has joined #ruby
01:08
cthulchu_ has quit [Read error: Connection reset by peer]
01:08
cthulchu_ has joined #ruby
01:12
jacksoow has quit [Read error: Connection reset by peer]
01:13
jacksoow has joined #ruby
01:14
cthulchu_ has quit [Read error: Connection reset by peer]
01:14
ur5us has joined #ruby
01:14
cthulchu_ has joined #ruby
01:29
davidw has joined #ruby
01:29
davidw has quit [Changing host]
01:29
davidw has joined #ruby
01:32
drincruz has quit [Ping timeout: 276 seconds]
01:38
dasher00 has quit [Ping timeout: 265 seconds]
01:40
NODE has quit [Quit: changing servers]
01:41
NODE has joined #ruby
01:42
drincruz has joined #ruby
01:49
Swyper has quit [Remote host closed the connection]
02:01
wildtrees has quit [Quit: Leaving]
02:07
wallace_mu has joined #ruby
02:12
qeopo has joined #ruby
02:14
qeopo has quit [Remote host closed the connection]
02:20
davidw has quit [Ping timeout: 246 seconds]
02:22
davor_ has joined #ruby
02:23
davor has quit [Ping timeout: 240 seconds]
02:23
davor_ is now known as davor
02:23
AJA4350 has joined #ruby
02:23
wallace_mu has quit [Read error: Connection reset by peer]
02:24
wallace_mu has joined #ruby
02:44
howdoi has quit [Quit: Connection closed for inactivity]
02:51
cthulchu_ has quit [Read error: Connection reset by peer]
02:51
cthulchu_ has joined #ruby
02:54
orbyt_ has joined #ruby
03:09
s2013 has joined #ruby
03:10
duderonomy has joined #ruby
03:22
millerti has quit [Ping timeout: 240 seconds]
03:29
AJA4351 has joined #ruby
03:29
AJA4350 has quit [Ping timeout: 245 seconds]
03:29
AJA4351 is now known as AJA4350
03:34
AJA4350 has quit [Quit: AJA4350]
03:34
cthulchu_ has quit [Read error: Connection reset by peer]
03:35
cthulchu_ has joined #ruby
03:39
wallace_mu has quit [Remote host closed the connection]
03:39
wallace_mu has joined #ruby
03:44
wallace_mu has quit [Ping timeout: 276 seconds]
03:46
NODE has quit [Quit: changing servers]
03:46
comet23 has joined #ruby
03:47
NODE has joined #ruby
03:48
jenrzzz has quit [Ping timeout: 265 seconds]
03:55
jacksoow has quit [Read error: Connection reset by peer]
03:56
jacksoow has joined #ruby
03:58
NODE has quit [Quit: changing servers]
03:59
NODE has joined #ruby
04:00
chalkmonster has quit [Quit: WeeChat 2.6]
04:03
Tempesta has quit [Remote host closed the connection]
04:03
jenrzzz has joined #ruby
04:06
jenrzzz has quit [Read error: Connection reset by peer]
04:08
jenrzzz has joined #ruby
04:21
brool has quit [Ping timeout: 276 seconds]
04:27
kapil_ has joined #ruby
04:46
entel has quit [Quit: Connection closed for inactivity]
04:47
ur5us has quit [Ping timeout: 245 seconds]
04:49
sergioro has joined #ruby
05:01
cthu| has joined #ruby
05:04
cthulchu_ has quit [Ping timeout: 250 seconds]
05:06
cthu| has quit [Ping timeout: 246 seconds]
05:17
donofrio has quit [Remote host closed the connection]
05:18
bvdw has quit [Read error: Connection reset by peer]
05:19
bvdw has joined #ruby
05:24
uplime is now known as Rudolph
05:35
rekliure has joined #ruby
05:36
<
rekliure >
hey there world!!
05:40
rekliure has quit [Remote host closed the connection]
05:46
code_zombie has quit [Quit: Leaving]
05:50
spllr has joined #ruby
05:51
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:51
jenrzzz has quit [Ping timeout: 268 seconds]
05:51
wallace_mu has joined #ruby
05:51
Tempesta has joined #ruby
05:52
NODE has quit [Quit: changing servers]
05:53
NODE has joined #ruby
05:55
NODE has quit [Client Quit]
05:55
Inline has quit [Quit: Leaving]
05:55
orbyt_ has joined #ruby
05:56
NODE has joined #ruby
05:59
jenrzzz has joined #ruby
06:26
Nicmavr has quit [Read error: Connection reset by peer]
06:28
Nicmavr has joined #ruby
06:30
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:39
mozzarella has quit [Remote host closed the connection]
06:42
mozzarella has joined #ruby
06:42
mozzarella has quit [Remote host closed the connection]
06:43
mozzarella has joined #ruby
06:46
hiroaki has joined #ruby
06:48
schne1der has joined #ruby
07:03
schne1der has quit [Ping timeout: 265 seconds]
07:10
NODE has quit [Quit: changing servers]
07:11
NODE has joined #ruby
07:12
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:16
NODE has quit [Quit: changing servers]
07:17
NODE has joined #ruby
07:18
jenrzzz has quit [Ping timeout: 240 seconds]
07:25
jenrzzz has joined #ruby
07:29
nofxx has quit [Ping timeout: 250 seconds]
07:31
nofxx has joined #ruby
07:36
_whitelogger has joined #ruby
07:40
Nahra has joined #ruby
07:44
nofxx has quit [Ping timeout: 250 seconds]
07:51
Swyper has joined #ruby
07:52
NODE has quit [Quit: changing servers]
07:53
za1b1tsu has joined #ruby
07:53
NODE has joined #ruby
07:54
TomyLobo2 has joined #ruby
07:55
chalkmonster has joined #ruby
07:56
Swyper has quit [Ping timeout: 265 seconds]
08:01
nofxx has joined #ruby
08:03
ta1 has quit [Quit: WeeChat 2.6]
08:04
ta1 has joined #ruby
08:05
prestorium has joined #ruby
08:07
NODE has quit [Quit: changing servers]
08:08
NODE has joined #ruby
08:10
xco has joined #ruby
08:13
hutch1 has quit [Remote host closed the connection]
08:13
nofxx has quit [Ping timeout: 276 seconds]
08:14
hutch1 has joined #ruby
08:15
ur5us has joined #ruby
08:17
spllr has quit [Quit: This computer has gone to sleep]
08:23
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
08:23
s2013 has joined #ruby
08:26
Swyper has joined #ruby
08:28
s2013 has quit [Ping timeout: 245 seconds]
08:30
luminousnine has quit [Ping timeout: 246 seconds]
08:31
Swyper has quit [Ping timeout: 252 seconds]
08:32
evertvdb has quit [Ping timeout: 250 seconds]
08:35
nibbo has quit [Ping timeout: 246 seconds]
08:35
nibbo has joined #ruby
08:36
schne1der has joined #ruby
08:37
Swyper has joined #ruby
08:42
Swyper has quit [Ping timeout: 252 seconds]
08:45
rafadc has quit [Remote host closed the connection]
08:47
r3m has quit [Quit: WeeChat 2.7-rc1]
08:47
comet23 has quit [Quit: Connection closed for inactivity]
08:48
cd has quit [Quit: cd]
08:50
r3m has joined #ruby
08:51
luminousnine has joined #ruby
08:51
luminousnine has quit [Changing host]
08:51
luminousnine has joined #ruby
08:52
NODE has quit [Quit: changing servers]
08:53
NODE has joined #ruby
08:54
Swyper has joined #ruby
08:54
ur5us has quit [Ping timeout: 245 seconds]
08:56
evert has joined #ruby
08:58
abc_not_cba has joined #ruby
08:59
Swyper has quit [Ping timeout: 268 seconds]
08:59
rafadc has joined #ruby
09:00
nofxx has joined #ruby
09:00
ta1 has quit [Quit: WeeChat 2.6]
09:00
<
havenwood >
abc_not_cba: hi
09:00
ta1 has joined #ruby
09:06
ta1 has quit [Quit: WeeChat 2.6]
09:06
ta1 has joined #ruby
09:10
conta has joined #ruby
09:10
snickers has joined #ruby
09:11
chalkmonster has quit [Quit: WeeChat 2.6]
09:13
ta1 has quit [Quit: WeeChat 2.6]
09:14
ta1 has joined #ruby
09:14
Swyper has joined #ruby
09:18
Swyper has quit [Ping timeout: 268 seconds]
09:20
feep[work] has joined #ruby
09:23
conta has quit [Quit: conta]
09:25
NODE has quit [Quit: changing servers]
09:26
NODE has joined #ruby
09:28
NODE has quit [Client Quit]
09:29
NODE has joined #ruby
09:31
NODE has quit [Client Quit]
09:32
NODE has joined #ruby
09:34
Swyper has joined #ruby
09:37
<
MrCrackPot >
whats the best way to use .map or similar to get the values from an array with a key and then use those values with another key on another hash and lastly those values to be used with another hash and another key
09:38
<
MrCrackPot >
currently i use @job_ids_inprocess = @in_process_jobs.map(&:job_id) to get the values in an array from the first hash
09:39
<
MrCrackPot >
but the only thing i can think of is using a loop to iterate through and then match another key with each value in the array
09:39
<
abc_not_cba >
horrific code
09:39
dionysus69 has joined #ruby
09:40
NODE has quit [Quit: changing servers]
09:40
Swyper has quit [Ping timeout: 240 seconds]
09:41
NODE has joined #ruby
09:42
<
havenwood >
MrCrackPot: In Ruby 2.6 there's a block form of #to_h, so you can:
09:42
<
havenwood >
&>> 'c'.upto('e').to_h { |s| [s, s.ord] }
09:42
<
havenwood >
MrCrackPot: Show the expected input and desired output of a few cases if the way to get there with #to_h isn't clear?
09:43
NODE has quit [Client Quit]
09:44
NODE has joined #ruby
09:46
kapil_ has quit [Quit: Connection closed for inactivity]
09:47
abc_not_cba has quit [Remote host closed the connection]
09:48
Swyper has joined #ruby
09:51
<
havenwood >
feep[work]: I love the idea. Neat!
09:52
Swyper has quit [Ping timeout: 250 seconds]
09:53
im0nde has joined #ruby
09:54
im0nde_ has quit [Ping timeout: 245 seconds]
09:55
NODE has quit [Quit: changing servers]
09:56
<
havenwood >
feep[work]: quoted = Regexp.union *OPS.keys
09:56
NODE has joined #ruby
09:56
<
feep[work] >
havenwood: that's 1:1 copypaste from the ruby source
09:56
<
feep[work] >
I did get the OPS= smaller tho
09:56
<
havenwood >
feep[work]: haha, oh!
09:56
<
havenwood >
feep[work]: I should propose the change there then, haha.
09:57
<
feep[work] >
not sure I like the global PREV_OPS but not sure how to fix it either
09:57
<
feep[work] >
I don't think I can access "previous Gem::Requirement" inside my redefining Gem::Requirement?
09:58
<
feep[work] >
... er, especially since I just removed the constant lol
09:58
<
havenwood >
feep[work]: You're reopening the class, so you can get at Requirement—but yeah, OPS is gone!
10:00
<
havenwood >
feep[work]: I'd suggest movinng it all inside Gem::Requirement and opening the class once.
10:00
<
feep[work] >
... oh, I can do that, lol
10:00
_phaul has quit [Ping timeout: 268 seconds]
10:01
<
feep[work] >
... and for completeness, I can remove the helper after :D
10:01
<
havenwood >
feep[work]: Nice
10:03
Swyper has joined #ruby
10:04
NODE has quit [Quit: changing servers]
10:05
NODE has joined #ruby
10:07
Swyper has quit [Ping timeout: 245 seconds]
10:09
ellcs has joined #ruby
10:10
za1b1tsu has quit [Remote host closed the connection]
10:10
za1b1tsu has joined #ruby
10:10
_phaul has joined #ruby
10:14
sergioro has quit [Quit: leaving]
10:15
_phaul has quit [Ping timeout: 276 seconds]
10:15
Swyper has joined #ruby
10:17
<
MrCrackPot >
havenwood thanks ill give it a look now
10:18
_phaul has joined #ruby
10:20
Swyper has quit [Ping timeout: 250 seconds]
10:22
Nahra has quit [Quit: leaving]
10:22
_phaul has quit [Ping timeout: 240 seconds]
10:26
_phaul has joined #ruby
10:29
yann-kaelig has joined #ruby
10:30
_phaul has quit [Ping timeout: 240 seconds]
10:34
_phaul has joined #ruby
10:34
johnny56 has joined #ruby
10:36
Swyper has joined #ruby
10:38
Nahra has joined #ruby
10:38
entel has joined #ruby
10:39
_phaul has quit [Ping timeout: 265 seconds]
10:40
Nahra has quit [Client Quit]
10:41
Nahra has joined #ruby
10:41
Nahra has joined #ruby
10:41
Swyper has quit [Ping timeout: 246 seconds]
10:42
_phaul has joined #ruby
10:44
Nahra has quit [Client Quit]
10:46
NODE has quit [Quit: changing servers]
10:46
_phaul has quit [Ping timeout: 240 seconds]
10:46
Nahra has joined #ruby
10:47
NODE has joined #ruby
10:48
Nahra has quit [Client Quit]
10:48
za1b1tsu has quit [Ping timeout: 265 seconds]
10:49
Nahra has joined #ruby
10:49
Swyper has joined #ruby
10:50
nofxx has quit [Remote host closed the connection]
10:50
_phaul has joined #ruby
10:51
nofxx has joined #ruby
10:52
jlhgasdkjhg has joined #ruby
10:53
nofxx has quit [Remote host closed the connection]
10:53
Jonopoly has joined #ruby
10:54
nfsnobody has quit [Ping timeout: 264 seconds]
10:54
_phaul has quit [Ping timeout: 240 seconds]
10:54
fmccann has joined #ruby
10:55
za1b1tsu has joined #ruby
10:57
nofxx has joined #ruby
10:57
nfsnobody has joined #ruby
10:58
nofxx has quit [Remote host closed the connection]
10:58
_phaul has joined #ruby
10:59
Swyper has quit [Ping timeout: 268 seconds]
11:01
Swyper has joined #ruby
11:01
nofxx has joined #ruby
11:02
<
Bish >
is there IO.select that you can give some context to the socket you're selecting?
11:02
<
Bish >
like.. you have a hash with sockets and their handlers
11:02
<
Bish >
you IO.select and it gives you the handlers?
11:02
_phaul has quit [Ping timeout: 250 seconds]
11:03
<
ytti >
i'm not sure what you mean
11:03
<
ytti >
but you can create your own IO object w ith all the methods and context you want
11:03
<
ytti >
and select will return that object, and you can call the methods which return the context
11:08
_phaul has joined #ruby
11:11
<
Bish >
yeah im still writing my own eventloop for ssh, and that code saaawks
11:11
<
Bish >
it's has this weird {socket⇒handler} hash, that doesn't seem to be used!?
11:13
_phaul has quit [Ping timeout: 276 seconds]
11:15
jlhgasdkjhg has left #ruby ["Leaving"]
11:17
kapil_ has joined #ruby
11:18
bvdw has quit [Read error: Connection reset by peer]
11:19
_phaul has joined #ruby
11:19
bvdw has joined #ruby
11:23
_phaul has quit [Ping timeout: 265 seconds]
11:27
_phaul has joined #ruby
11:32
_phaul has quit [Ping timeout: 265 seconds]
11:34
rubydoc has quit [Ping timeout: 276 seconds]
11:35
_phaul has joined #ruby
11:40
_phaul has quit [Ping timeout: 268 seconds]
11:43
_phaul has joined #ruby
11:47
_phaul has quit [Ping timeout: 252 seconds]
11:49
whiis has quit [Remote host closed the connection]
11:51
_phaul has joined #ruby
11:53
AJA4350 has joined #ruby
11:54
whiis has joined #ruby
11:55
NODE has quit [Quit: changing servers]
11:56
NODE has joined #ruby
11:58
dviola has joined #ruby
12:01
NODE has quit [Quit: changing servers]
12:02
NODE has joined #ruby
12:03
Swyper has quit [Ping timeout: 240 seconds]
12:17
nofxx has quit [Ping timeout: 265 seconds]
12:19
nofxx has joined #ruby
12:24
dviola has quit [Quit: WeeChat 2.6]
12:24
nofxx has quit [Ping timeout: 276 seconds]
12:31
foxxx0 has quit [Ping timeout: 245 seconds]
12:33
lucasb has joined #ruby
12:42
nofxx has joined #ruby
12:43
NODE has quit [Quit: changing servers]
12:44
NODE has joined #ruby
12:46
NODE has quit [Client Quit]
12:47
NODE has joined #ruby
12:54
DTZUZO has quit [Ping timeout: 240 seconds]
12:56
al2o3-cr has quit [Remote host closed the connection]
12:56
al2o3-cr has joined #ruby
12:57
vircung has quit [Quit: Nothing to do here]
12:58
vircung has joined #ruby
12:58
sixty4bit has quit [Ping timeout: 276 seconds]
12:59
AJA4350 has quit [Ping timeout: 265 seconds]
13:10
AJA4350 has joined #ruby
13:11
spllr has joined #ruby
13:12
<
al2o3-cr >
is there a rubygem to view markdown locally similar to grip in python?
13:19
nofxx has quit [Ping timeout: 246 seconds]
13:19
nofxx has joined #ruby
13:25
bvdw has quit [Quit: bvdw]
13:26
bvdw has joined #ruby
13:27
Nahra has quit [Ping timeout: 240 seconds]
13:27
conta1 has joined #ruby
13:32
TCZ has joined #ruby
13:35
drincruz has quit [Ping timeout: 265 seconds]
13:35
spllr has quit [Quit: Leaving]
13:43
yokel has quit [Ping timeout: 245 seconds]
13:45
za1b1tsu has quit [Ping timeout: 240 seconds]
13:46
yokel has joined #ruby
13:47
moonshine_ has joined #ruby
13:47
za1b1tsu has joined #ruby
13:48
moonshine_ has left #ruby [#ruby]
13:54
nofxx has quit [Ping timeout: 250 seconds]
13:55
nofxx has joined #ruby
13:56
kapil_ has quit [Quit: Connection closed for inactivity]
14:00
conta1 has quit [Ping timeout: 252 seconds]
14:03
<
Bish >
why is mutex.synchronize { mutex.synchronize { 1 } } not allowed
14:03
<
Bish >
i mean, i have the lock, don't i?
14:07
Swyper has joined #ruby
14:08
Swyper has quit [Remote host closed the connection]
14:09
Swyper has joined #ruby
14:18
AJA4350 has quit [Ping timeout: 246 seconds]
14:18
AJA4350 has joined #ruby
14:18
schne1der has quit [Ping timeout: 268 seconds]
14:20
akemhp has quit [Ping timeout: 268 seconds]
14:22
NODE has quit [Quit: changing servers]
14:23
NODE has joined #ruby
14:23
goepsilongo has joined #ruby
14:23
ta1 has quit [Quit: WeeChat 2.6]
14:25
NODE has quit [Client Quit]
14:25
ta has joined #ruby
14:26
NODE has joined #ruby
14:28
NODE has quit [Client Quit]
14:29
NODE has joined #ruby
14:29
foxxx0 has joined #ruby
14:35
drincruz has joined #ruby
14:36
TCZ has quit [Quit: Bye Bye]
14:38
Technodrome has joined #ruby
14:39
Nahra has joined #ruby
14:39
drincruz has quit [Read error: No route to host]
14:41
drincruz has joined #ruby
14:44
whiis has quit [Quit: Connection closed for inactivity]
14:45
akemhp has joined #ruby
14:48
jacksoow has quit [Remote host closed the connection]
14:50
akemhp has quit [Ping timeout: 276 seconds]
14:50
Inline has joined #ruby
14:58
NODE has quit [Quit: changing servers]
14:59
NODE has joined #ruby
15:00
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:03
sagax has quit [Quit: Konversation terminated!]
15:04
vondruch has quit [Ping timeout: 276 seconds]
15:05
TCZ has joined #ruby
15:05
vondruch has joined #ruby
15:07
NODE has quit [Quit: changing servers]
15:07
<
havenwood >
Bish: Mutex isn't reentrant. Try the same with Monitor.
15:07
rubydoc has joined #ruby
15:08
rubydoc has quit [Remote host closed the connection]
15:08
NODE has joined #ruby
15:09
ljarvis has joined #ruby
15:09
schne1der has joined #ruby
15:09
rubydoc has joined #ruby
15:10
NODE has quit [Client Quit]
15:11
NODE has joined #ruby
15:13
NODE has quit [Client Quit]
15:14
NODE has joined #ruby
15:17
Esa_ has joined #ruby
15:24
drincruz_ has joined #ruby
15:25
NODE has quit [Quit: changing servers]
15:25
AJA4350 has quit [Ping timeout: 268 seconds]
15:26
NODE has joined #ruby
15:26
drincruz has quit [Ping timeout: 276 seconds]
15:31
spacesuitdiver has joined #ruby
15:37
prestorium has quit [Quit: prestorium]
15:43
brool has joined #ruby
15:46
<
rapha >
&>> {}.empty?
15:46
<
rapha >
&>> {}.respond_t? :empty
15:46
<
rubydoc >
stderr: -e:4:in `<main>': undefined method `respond_t?' for {}:Hash (NoMethodError)... check link for more (
https://carc.in/#/r/86n6 )
15:46
<
rapha >
&>> {}.respond_to? :empty
15:46
feep[work] has left #ruby [#ruby]
15:46
ljarvis has quit [Quit: WeeChat 2.4]
15:49
_phaul has quit [Ping timeout: 246 seconds]
15:50
* rapha
pulls his haisr out
15:50
hutch1 has quit [Quit: WeeChat 2.6]
15:50
<
al2o3-cr >
&>> {}.respond_to? :empty?
15:51
<
rapha >
ooooooooooooh
15:51
<
rapha >
the QUESTION MARK
15:51
<
rapha >
thank you al2o3-cr
15:51
<
al2o3-cr >
np rapha
15:52
NODE has quit [Quit: changing servers]
15:53
NODE has joined #ruby
15:54
_phaul has joined #ruby
15:56
AJA4350 has joined #ruby
15:59
_phaul has quit [Ping timeout: 268 seconds]
16:00
clemens3 has joined #ruby
16:00
TCZ has quit [Quit: Bye Bye]
16:01
NODE has quit [Quit: changing servers]
16:02
NODE has joined #ruby
16:02
_phaul has joined #ruby
16:05
happyhans has joined #ruby
16:06
TCZ has joined #ruby
16:07
_phaul has quit [Ping timeout: 250 seconds]
16:09
hutch1 has joined #ruby
16:10
_phaul has joined #ruby
16:11
hutch1 has quit [Client Quit]
16:12
william1 has joined #ruby
16:12
<
william1 >
Hi everyone :)
16:13
hutch1 has joined #ruby
16:13
<
havenwood >
william1: hi!
16:15
_phaul has quit [Ping timeout: 250 seconds]
16:17
william1 has quit [Quit: WeeChat 1.9.1]
16:17
wallace_mu has quit [Read error: Connection reset by peer]
16:17
wallace_mu has joined #ruby
16:20
TCZ has quit [Quit: Bye Bye]
16:20
william1 has joined #ruby
16:21
_phaul has joined #ruby
16:22
william1 has quit [Client Quit]
16:22
william1 has joined #ruby
16:23
siasmj has joined #ruby
16:23
Jonopoly has quit [Quit: WeeChat 2.5]
16:25
_phaul has quit [Ping timeout: 245 seconds]
16:25
ellcs has quit [Ping timeout: 265 seconds]
16:29
_phaul has joined #ruby
16:33
dionysus70 has joined #ruby
16:33
_phaul has quit [Ping timeout: 265 seconds]
16:33
dionysus69 has quit [Ping timeout: 276 seconds]
16:33
dionysus70 is now known as dionysus69
16:34
Umbraca has joined #ruby
16:36
twodayslate has quit []
16:37
_phaul has joined #ruby
16:37
twodayslate has joined #ruby
16:37
<
william1 >
Where is everyone based? I'm based near London, England
16:37
davidw has joined #ruby
16:38
william1 has quit [Quit: WeeChat 1.9.1]
16:40
william1 has joined #ruby
16:41
_phaul has quit [Ping timeout: 240 seconds]
16:41
Synthead has joined #ruby
16:42
Pillus has joined #ruby
16:42
william1 has quit [Client Quit]
16:42
william1 has joined #ruby
16:43
<
Synthead >
Is there a clever way I can do this without monkey patching or copying the entire configure! method?
16:45
justache has quit []
16:45
_phaul has joined #ruby
16:46
justache has joined #ruby
16:47
AJA4350 has quit [Ping timeout: 252 seconds]
16:49
clemens3 has quit [Quit: WeeChat 1.6]
16:50
_phaul has quit [Ping timeout: 252 seconds]
16:53
Umbraca has quit [Remote host closed the connection]
16:53
_phaul has joined #ruby
16:57
cow[moo] has joined #ruby
16:58
_phaul has quit [Ping timeout: 268 seconds]
17:00
za1b1tsu has quit [Remote host closed the connection]
17:01
_phaul has joined #ruby
17:03
akemhp has joined #ruby
17:05
duderonomy has joined #ruby
17:06
Nicmavr has quit [Read error: Connection reset by peer]
17:06
_phaul has quit [Ping timeout: 265 seconds]
17:06
ljarvis has joined #ruby
17:08
Nicmavr has joined #ruby
17:09
_phaul has joined #ruby
17:12
cthulchu has joined #ruby
17:14
_phaul has quit [Ping timeout: 246 seconds]
17:15
d10n-work has quit []
17:15
d10n-work has joined #ruby
17:16
NODE has quit [Quit: changing servers]
17:16
MrCrackPot has quit [Ping timeout: 252 seconds]
17:17
TomyLobo2 has quit [Ping timeout: 246 seconds]
17:17
NODE has joined #ruby
17:17
_phaul has joined #ruby
17:18
bvdw has quit [Read error: Connection reset by peer]
17:19
gix has joined #ruby
17:19
bvdw has joined #ruby
17:20
evert is now known as evertvdb
17:21
MrCrackPot has joined #ruby
17:22
_phaul has quit [Ping timeout: 265 seconds]
17:23
BuildTheRobots has quit []
17:24
BuildTheRobots has joined #ruby
17:26
_phaul has joined #ruby
17:29
fphilipe has quit [Ping timeout: 240 seconds]
17:30
akemhp has quit [Ping timeout: 268 seconds]
17:31
_phaul has quit [Ping timeout: 268 seconds]
17:32
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:34
_phaul has joined #ruby
17:35
duderonomy has joined #ruby
17:36
i9zO5AP has joined #ruby
17:38
_phaul has quit [Ping timeout: 240 seconds]
17:39
Ai9zO5AP has quit [Ping timeout: 250 seconds]
17:39
duderonomy has quit [Client Quit]
17:39
ljarvis has quit [Quit: WeeChat 2.4]
17:42
_phaul has joined #ruby
17:45
dionysus69 has quit [Remote host closed the connection]
17:46
fphilipe has joined #ruby
17:46
dionysus69 has joined #ruby
17:46
MrCrackPot has quit [Quit: Leaving]
17:46
_phaul has quit [Ping timeout: 250 seconds]
17:46
chromis has left #ruby [#ruby]
17:48
duderonomy has joined #ruby
17:49
NODE has quit [Quit: changing servers]
17:50
fphilipe has quit [Ping timeout: 246 seconds]
17:50
_phaul has joined #ruby
17:50
NODE has joined #ruby
17:51
Synthead has quit [Quit: Leaving]
17:54
_phaul has quit [Ping timeout: 265 seconds]
17:55
DTZUZO has joined #ruby
17:58
_phaul has joined #ruby
18:00
sagax has joined #ruby
18:01
NODE has left #ruby [#ruby]
18:01
davispuh has joined #ruby
18:02
_phaul has quit [Ping timeout: 265 seconds]
18:03
NODE has joined #ruby
18:04
NODE has quit [Client Quit]
18:06
_phaul has joined #ruby
18:06
NODE has joined #ruby
18:11
_phaul has quit [Ping timeout: 268 seconds]
18:13
kapil_ has joined #ruby
18:14
_phaul has joined #ruby
18:18
_phaul has quit [Ping timeout: 252 seconds]
18:21
rippa has joined #ruby
18:22
_phaul has joined #ruby
18:26
_phaul has quit [Ping timeout: 240 seconds]
18:27
ellcs has joined #ruby
18:29
Technodrome has quit [Ping timeout: 245 seconds]
18:30
_phaul has joined #ruby
18:33
dasher00 has joined #ruby
18:34
_phaul has quit [Ping timeout: 265 seconds]
18:37
cow[moo] has quit [Ping timeout: 265 seconds]
18:37
_phaul has joined #ruby
18:40
akemhp has joined #ruby
18:43
_phaul has quit [Ping timeout: 276 seconds]
18:44
houhoulis has joined #ruby
18:44
Pillus has joined #ruby
18:45
_phaul has joined #ruby
18:46
JohanP has joined #ruby
18:50
_phaul has quit [Ping timeout: 276 seconds]
18:53
_phaul has joined #ruby
18:55
ellcs has quit [Ping timeout: 276 seconds]
18:57
<
adam12 >
davidw: The never ending bug.
18:57
MrCrackPot has joined #ruby
18:57
<
davidw >
adam12, luckily it only happens at the very ending of Ruby's execution
18:58
_phaul has quit [Ping timeout: 268 seconds]
19:03
_phaul has joined #ruby
19:05
<
adam12 >
MrCrackPot: It's helpful when we can actually run the snippets.
19:05
<
adam12 >
MrCrackPot: Can you adjust it so it's runnable? Then at least we don't have to speculate on what the data looks like.
19:08
_phaul has quit [Ping timeout: 268 seconds]
19:13
sameerynho has joined #ruby
19:13
<
MrCrackPot >
adam12 its a bit difficult
19:13
<
MrCrackPot >
basically is a rails object with all of the data from the database from a model
19:13
_phaul has joined #ruby
19:14
<
MrCrackPot >
i'll have a go at making it runable will be easier than explaining it
19:15
<
adam12 >
MrCrackPot: You can make objects to stand in for the Rails object. OpenStruct, Struct, plain Ruby object, whatever.
19:15
<
adam12 >
MrCrackPot: Once it's runnable, you can use a benchmark tool to compare implementations. Right now we'd just have to speculate and you're like O(n^3) or something.
19:18
happyhans has quit [Remote host closed the connection]
19:18
_phaul has quit [Ping timeout: 265 seconds]
19:19
happyhans has joined #ruby
19:20
s2013 has joined #ruby
19:22
william1 has quit [Ping timeout: 240 seconds]
19:24
_phaul has joined #ruby
19:27
Jennip has joined #ruby
19:28
sauvin has quit [Read error: Connection reset by peer]
19:29
_phaul has quit [Ping timeout: 268 seconds]
19:30
<
Jennip >
Quick question, if someone could help it would be much appreciated:
19:30
<
Jennip >
Why does "This is a sentence. I need to split! Unfortunately, it doesn't work as expected".split /(\.|!) /
19:30
<
Jennip >
Result in ["This is a sentence", ".", "I need to split", "!", "Unfortunately, it doesn't work as expected"]
19:30
<
Jennip >
And not ["This is a sentence", "I need to split", "Unfortunately, it doesn't work as expected"]
19:31
JohanP` has joined #ruby
19:31
NODE has quit [Quit: changing servers]
19:31
<
leftylink >
ah, I see
19:31
<
leftylink >
&ri String#split
19:31
<
leftylink >
> If pattern contains groups, the respective matches will be returned in the array as well.
19:31
<
leftylink >
"If pattern contains groups" applies here
19:31
<
leftylink >
since it does
19:31
JohanP has quit [Ping timeout: 240 seconds]
19:32
_phaul has joined #ruby
19:32
NODE has joined #ruby
19:33
<
Jennip >
Amazing, thanks leftylink. I had completely missed that :)
19:33
<
Jennip >
"This is a sentence. I need to split! Unfortunately, it doesn't work as expected".split /(?:\.|!) /
19:33
<
Jennip >
Works perfectly
19:33
yann-kaelig has quit [Quit: yann-kaelig]
19:34
JohanP`` has joined #ruby
19:35
JohanP` has quit [Ping timeout: 250 seconds]
19:36
_phaul has quit [Ping timeout: 265 seconds]
19:42
fphilipe has joined #ruby
19:43
_phaul has joined #ruby
19:47
_phaul has quit [Ping timeout: 240 seconds]
19:47
JohanP`` has quit [Ping timeout: 240 seconds]
19:49
JohanP`` has joined #ruby
19:49
fphilipe has quit [Ping timeout: 276 seconds]
19:51
_phaul has joined #ruby
19:52
<
al2o3-cr >
1.clamp(3..) i wish this were true :(
19:52
william1 has joined #ruby
19:54
<
Rudolph >
what does clamp do?
19:55
<
al2o3-cr >
&ri Comparable#clamp Rudolph
19:55
<
Rudolph >
haha fair enough
19:56
<
Rudolph >
oh i see. its to keep it within a range
19:56
_phaul has quit [Ping timeout: 265 seconds]
19:56
<
al2o3-cr >
Rudolph: 👍
19:57
<
al2o3-cr >
anyway where's prancer? ;)
19:59
<
Rudolph >
they're off playing reindeer games :(
19:59
<
Rudolph >
they wouldn't let me join in
19:59
snk has quit [Quit: WeeChat 1.9.1]
20:01
wildtrees has joined #ruby
20:03
teardown is now known as knifehits
20:04
_phaul has joined #ruby
20:05
johnny56_ has joined #ruby
20:06
johnny56 has quit [Ping timeout: 240 seconds]
20:07
NODE has quit [Quit: changing servers]
20:08
NODE has joined #ruby
20:08
arooni_team_b is now known as arooni
20:08
_phaul has quit [Ping timeout: 245 seconds]
20:08
Axy has quit [Ping timeout: 276 seconds]
20:10
NODE has quit [Client Quit]
20:10
rafadc has quit [Ping timeout: 240 seconds]
20:10
houhoulis has quit [Remote host closed the connection]
20:11
NODE has joined #ruby
20:13
NODE has quit [Client Quit]
20:13
_phaul has joined #ruby
20:14
NODE has joined #ruby
20:17
_phaul has quit [Ping timeout: 250 seconds]
20:20
phaul has joined #ruby
20:24
ur5us has joined #ruby
20:28
sphex has quit [Ping timeout: 276 seconds]
20:28
sphex has joined #ruby
20:28
meinside has quit [Quit: Connection closed for inactivity]
20:29
william1 has quit [Ping timeout: 268 seconds]
20:32
fphilipe has joined #ruby
20:35
rafadc has joined #ruby
20:36
cthulchu has quit [Read error: Connection reset by peer]
20:36
cthulchu has joined #ruby
20:40
NODE has quit [Quit: changing servers]
20:41
NODE has joined #ruby
20:42
akemhp has quit [Ping timeout: 245 seconds]
20:43
cthulchu has quit [Read error: Connection reset by peer]
20:44
cthulchu has joined #ruby
20:46
kapil_ has quit [Quit: Connection closed for inactivity]
20:49
Jennip has quit [Remote host closed the connection]
20:54
davor_ has joined #ruby
20:55
davor has quit [Ping timeout: 276 seconds]
20:55
davor_ is now known as davor
20:57
william1 has joined #ruby
20:57
william1 has quit [Client Quit]
20:57
william1 has joined #ruby
20:58
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
20:59
william1 has quit [Client Quit]
20:59
william1 has joined #ruby
20:59
DTZUZU has quit [Quit: WeeChat 2.6]
21:00
DTZUZU has joined #ruby
21:00
william1 has quit [Client Quit]
21:01
william1 has joined #ruby
21:06
<
phaul >
hi william1 , which direction from London?
21:24
schne1der has quit [Ping timeout: 252 seconds]
21:27
fig-le-deunch has joined #ruby
21:34
akemhp has joined #ruby
21:37
Mia has joined #ruby
21:37
Mia has joined #ruby
21:37
Mia has quit [Changing host]
21:41
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:44
donofrio has joined #ruby
21:45
weaksauce has quit [Ping timeout: 265 seconds]
21:47
jinie has joined #ruby
21:48
Fernando-Basso has joined #ruby
21:49
william1 has quit [Ping timeout: 265 seconds]
21:53
JohanP`` has quit [Ping timeout: 268 seconds]
21:54
AJA4350 has joined #ruby
21:57
Esa_ has joined #ruby
22:07
sphex has quit [Remote host closed the connection]
22:08
_phaul has joined #ruby
22:09
phaul has quit [Ping timeout: 250 seconds]
22:12
_phaul has quit [Ping timeout: 265 seconds]
22:13
rmnull has joined #ruby
22:13
jinie_ has joined #ruby
22:14
jinie has quit [Ping timeout: 265 seconds]
22:14
jinie_ is now known as jinie
22:14
rmnull has left #ruby ["WeeChat 2.4"]
22:16
Scriptonaut has joined #ruby
22:16
_phaul has joined #ruby
22:16
Mrgoose845701915 has joined #ruby
22:19
fig-le-deunch has quit [Quit: Konversation terminated!]
22:20
_phaul has quit [Ping timeout: 265 seconds]
22:20
jinie_ has joined #ruby
22:21
jinie has quit [Ping timeout: 268 seconds]
22:21
jinie_ is now known as jinie
22:23
cthu| has joined #ruby
22:24
_phaul has joined #ruby
22:26
cthulchu has quit [Ping timeout: 250 seconds]
22:28
_phaul has quit [Ping timeout: 268 seconds]
22:29
ged has quit [Ping timeout: 240 seconds]
22:30
mahlon has quit [Ping timeout: 246 seconds]
22:32
_phaul has joined #ruby
22:33
sphex has joined #ruby
22:36
akemtab has joined #ruby
22:36
akemtab has quit [Excess Flood]
22:37
_phaul has quit [Ping timeout: 276 seconds]
22:40
_phaul has joined #ruby
22:40
akemtab has joined #ruby
22:40
akemtab has quit [Excess Flood]
22:44
_phaul has quit [Ping timeout: 240 seconds]
22:44
cthu| has quit [Read error: Connection reset by peer]
22:45
cthu| has joined #ruby
22:45
fphilipe has quit [Ping timeout: 246 seconds]
22:47
akemtab has joined #ruby
22:47
akemtab has quit [Excess Flood]
22:48
_phaul has joined #ruby
22:52
_phaul has quit [Ping timeout: 240 seconds]
22:52
Nahra has quit [Ping timeout: 268 seconds]
22:53
<
Scriptonaut >
I am trying to find the mimetype of an uploaded document. The file is uploaded as a RackMultipart tmp file. For some reason, when I do MIME::Types.type_for(tmp_file.path) it returns nothing. It works on all other files though
22:53
<
Scriptonaut >
any idea why this file would have no mimetype?
22:53
<
Scriptonaut >
doing `file --mime -b /tmp/RackMultipart-my-tmp-file` works
22:53
<
woodruffw >
Scriptonaut: MIME::Types probably uses your system MIME database, while `file` has its own magic DB
22:54
Nahra has joined #ruby
22:54
<
woodruffw >
MIME::Types is also worked based on the file extension, while `file` is parsing the input to see what it looks like
22:55
<
woodruffw >
so if your filename has no extension, it can't give you a meaningful result
22:56
_phaul has joined #ruby
22:58
im0nde has quit [Ping timeout: 252 seconds]
22:59
im0nde has joined #ruby
23:00
ruby[bot] has quit [Remote host closed the connection]
23:00
ruby[bot] has joined #ruby
23:00
_phaul has quit [Ping timeout: 265 seconds]
23:01
AJA4351 has joined #ruby
23:03
AJA4350 has quit [Ping timeout: 276 seconds]
23:03
AJA4351 is now known as AJA4350
23:04
nofxx has quit [Quit: Leaving]
23:04
nofxx has joined #ruby
23:05
_phaul has joined #ruby
23:09
ellcs has joined #ruby
23:09
happyhans has quit [Quit: Leaving...]
23:10
_phaul has quit [Ping timeout: 268 seconds]
23:13
_phaul has joined #ruby
23:14
Nahra has quit [Ping timeout: 268 seconds]
23:15
<
Scriptonaut >
woodruffw: ok, I was thinking it might be the lack of an extension, thanks
23:15
Nahra has joined #ruby
23:16
<
Scriptonaut >
I do have the extension, so I guess I'll trust it based on that
23:16
NODE has quit [Quit: changing servers]
23:17
NODE has joined #ruby
23:18
bvdw has quit [Read error: Connection reset by peer]
23:19
bvdw has joined #ruby
23:22
NODE has quit [Quit: changing servers]
23:24
NODE has joined #ruby
23:24
akem has joined #ruby
23:25
NODE has quit [Client Quit]
23:27
NODE has joined #ruby
23:28
NODE has quit [Client Quit]
23:29
drincruz_ has quit [Ping timeout: 245 seconds]
23:29
NODE has joined #ruby
23:31
vondruch_ has joined #ruby
23:32
cthu| has quit [Read error: Connection reset by peer]
23:32
cthu| has joined #ruby
23:32
jacksoow has joined #ruby
23:33
vondruch has quit [Ping timeout: 276 seconds]
23:33
vondruch_ is now known as vondruch
23:34
sphex has quit [Ping timeout: 265 seconds]
23:34
sphex has joined #ruby
23:36
ged has joined #ruby
23:39
howdoi has joined #ruby
23:43
mahlon has joined #ruby
23:46
NODE has quit [Quit: changing servers]
23:47
Fernando-Basso has quit [Remote host closed the connection]
23:48
NODE has joined #ruby
23:49
NODE has quit [Client Quit]
23:54
NODE has joined #ruby
23:56
NODE has quit [Client Quit]
23:57
NODE has joined #ruby