00:06
sam113102 has joined #ruby
00:07
weyhmueller has quit [Ping timeout: 256 seconds]
00:07
NightMonkey has quit [Ping timeout: 256 seconds]
00:07
CalimeroTeknik has quit [Ping timeout: 256 seconds]
00:07
mooff7 has joined #ruby
00:07
gfawcett2 has joined #ruby
00:07
brw7 has joined #ruby
00:07
ralu1 has joined #ruby
00:08
moo has quit [Remote host closed the connection]
00:08
gfawcett has quit [Read error: Connection reset by peer]
00:08
gfawcett2 is now known as gfawcett
00:08
moo has joined #ruby
00:08
dac has quit [Remote host closed the connection]
00:08
weyhmueller has joined #ruby
00:08
dcx has joined #ruby
00:08
sam113101 has quit [Ping timeout: 256 seconds]
00:08
brw has quit [Read error: Connection reset by peer]
00:08
brw7 is now known as brw
00:08
sam113102 is now known as sam113101
00:08
mooff has quit [Write error: Connection reset by peer]
00:08
mooff7 is now known as mooff
00:09
NightMonkey has joined #ruby
00:09
CalimeroTeknik has joined #ruby
00:09
ralu has quit [Ping timeout: 256 seconds]
00:09
ralu1 is now known as ralu
00:09
bhaak has quit [Ping timeout: 256 seconds]
00:09
bhaak has joined #ruby
00:12
belak51 has joined #ruby
00:13
apotheon has quit [Ping timeout: 256 seconds]
00:13
splud has quit [Ping timeout: 256 seconds]
00:13
cout has quit [Ping timeout: 256 seconds]
00:13
thoraxe has quit [Ping timeout: 256 seconds]
00:13
belak has quit [Ping timeout: 256 seconds]
00:13
valeness_ has quit [Ping timeout: 256 seconds]
00:13
cout has joined #ruby
00:14
thoraxe has joined #ruby
00:14
valeness_ has joined #ruby
00:14
belak51 is now known as belak
00:15
apotheon has joined #ruby
00:16
ur5us has quit [Ping timeout: 256 seconds]
00:24
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:24
some14u has joined #ruby
00:25
splud has joined #ruby
00:27
seifeslimene has quit [Quit: Konversation terminated!]
00:48
seifeslimene has joined #ruby
00:57
donofrio has quit [Ping timeout: 268 seconds]
01:01
seifeslimene has quit [Quit: Konversation terminated!]
01:02
seifeslimene has joined #ruby
01:06
Rounin has quit [Ping timeout: 256 seconds]
01:11
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:44
donofrio has joined #ruby
01:45
ur5us has joined #ruby
02:02
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:02
some14u has joined #ruby
02:06
some14u has quit [Ping timeout: 250 seconds]
02:09
donofrio has quit [Ping timeout: 246 seconds]
02:09
ollysmith has quit [Ping timeout: 256 seconds]
02:09
axsuul has quit [Ping timeout: 256 seconds]
02:09
Goodbye_Vincent1 has joined #ruby
02:09
ollysmith has joined #ruby
02:10
axsuul has joined #ruby
02:11
Goodbye_Vincent has quit [Ping timeout: 256 seconds]
02:11
fcser has quit [Ping timeout: 256 seconds]
02:11
Goodbye_Vincent1 is now known as Goodbye_Vincent
02:11
acosta3 has joined #ruby
02:11
axisys has quit [Ping timeout: 256 seconds]
02:12
acosta has quit [Read error: Connection reset by peer]
02:12
acosta3 is now known as acosta
02:13
axisys has joined #ruby
02:16
fcser has joined #ruby
02:19
some14u has joined #ruby
02:27
some14u has quit [Ping timeout: 245 seconds]
02:34
nirvdrum has joined #ruby
02:42
oxfuxxx has joined #ruby
02:52
<
seifeslimene >
!give seifeslimene books
02:56
oxfuxxx has quit [Ping timeout: 246 seconds]
03:01
eddof13 has joined #ruby
03:02
<
dorian >
hey question: why would pry history not work on ubuntu but work on a mac?
03:03
<
dorian >
assume i didn't touch anything or do anything weird installing either
03:03
<
dorian >
(unless i did for the mac and don't remember?)
03:03
<
dorian >
i dunno, is history not on by default in pry?
03:05
donofrio has joined #ruby
03:16
oxfuxxx has joined #ruby
03:16
o|||||o has quit [Remote host closed the connection]
03:17
o|||||o has joined #ruby
03:19
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
03:29
r3m has quit [Quit: WeeChat 3.6-dev]
03:51
donofrio has quit [Ping timeout: 246 seconds]
03:56
oxfuxxx has quit [Ping timeout: 246 seconds]
03:57
oxfuxxx has joined #ruby
04:08
gr33n7007h has quit [Ping timeout: 256 seconds]
04:10
gr33n7007h has joined #ruby
04:21
favadi has joined #ruby
04:40
nirvdrum has quit [Ping timeout: 246 seconds]
04:49
r3m_ has joined #ruby
04:50
oxfuxxx has quit [Ping timeout: 248 seconds]
04:53
oxfuxxx has joined #ruby
04:59
oxfuxxx has quit [Read error: Connection reset by peer]
05:03
r3m_ is now known as r3m
05:08
davidw has quit [Ping timeout: 246 seconds]
05:15
oxfuxxx has joined #ruby
05:21
ur5us has quit [Ping timeout: 268 seconds]
05:23
seifeslimene has quit [Ping timeout: 248 seconds]
05:23
favadi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:25
oxfuxxx has quit [Ping timeout: 248 seconds]
05:28
hololeap_ has quit [Ping timeout: 240 seconds]
05:29
dionysus69 has joined #ruby
05:30
hololeap_ has joined #ruby
05:35
favadi has joined #ruby
05:50
teclator has joined #ruby
05:51
o|||||o has quit [Ping timeout: 268 seconds]
05:51
favadi has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:52
favadi has joined #ruby
06:09
benjamin- has joined #ruby
06:10
benjaminwil has quit [Ping timeout: 256 seconds]
06:18
roadie has joined #ruby
06:20
dviola has joined #ruby
06:24
fowl2 has joined #ruby
06:25
fowl has quit [Ping timeout: 246 seconds]
06:25
fowl2 is now known as fowl
06:31
favadi has quit [Ping timeout: 260 seconds]
06:56
oxfuxxx has joined #ruby
07:06
random-jellyfish has joined #ruby
07:21
Rounin has joined #ruby
07:40
mollerup has joined #ruby
07:41
nmollerup has quit [Read error: Connection reset by peer]
07:45
donofrio has joined #ruby
07:46
mollerup has quit [Remote host closed the connection]
07:47
gr33n7007h has quit [Quit: WeeChat 3.5]
07:52
donofrio has quit [Ping timeout: 268 seconds]
07:57
oxfuxxx has quit [Ping timeout: 260 seconds]
07:58
nmollerup has joined #ruby
08:01
oxfuxxx has joined #ruby
08:15
oxfuxxx has quit [Ping timeout: 260 seconds]
08:25
ur5us has joined #ruby
08:26
ur5us has quit [Remote host closed the connection]
08:29
ur5us has joined #ruby
08:31
jpn has joined #ruby
08:34
aeris has quit [Remote host closed the connection]
08:34
aeris has joined #ruby
08:36
CalimeroTeknik has quit [Changing host]
08:36
CalimeroTeknik has joined #ruby
08:46
seifeslimene has joined #ruby
08:47
perrierjouet has quit [Ping timeout: 260 seconds]
08:48
reset has quit [Quit: reset]
08:49
aeris has quit [Remote host closed the connection]
08:49
aeris has joined #ruby
08:53
Thanzex has quit [Read error: Connection reset by peer]
08:53
ua__ has quit [Ping timeout: 260 seconds]
08:53
Thanzex has joined #ruby
08:57
donofrio has joined #ruby
09:02
donofrio has quit [Ping timeout: 260 seconds]
09:13
gr33n7007h has joined #ruby
09:15
donofrio has joined #ruby
09:45
nviroepah9832 has joined #ruby
09:52
teclator has joined #ruby
10:06
artemon has joined #ruby
10:13
random-jellyfish has quit [Quit: Client closed]
10:27
ur5us has quit [Ping timeout: 268 seconds]
10:49
perrierjouet has joined #ruby
10:50
robotmay has quit [Quit: No Ping reply in 180 seconds.]
10:51
robotmay has joined #ruby
11:11
o|||||o has joined #ruby
11:29
markong has joined #ruby
11:50
oxfuxxx has joined #ruby
11:59
wand has quit [Remote host closed the connection]
12:04
agrosant has quit [Read error: Connection reset by peer]
12:05
agrosant has joined #ruby
12:05
wand has joined #ruby
12:16
donofrio has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
12:16
donofrio has joined #ruby
12:27
ua_ has joined #ruby
12:48
oxfuxxx has quit [Quit: [H]EAT ROX FUCK R0X SHIT BRIX.]
12:52
perrierjouet has quit [Ping timeout: 272 seconds]
12:54
Guest40 has joined #ruby
12:54
Guest40 has quit [Client Quit]
13:01
dionysus69 has quit [Ping timeout: 268 seconds]
13:02
jpn has quit [Ping timeout: 248 seconds]
13:08
jpn has joined #ruby
13:13
jpn has quit [Ping timeout: 260 seconds]
13:29
jpn has joined #ruby
13:30
perrierjouet has joined #ruby
13:34
TCZ has joined #ruby
13:37
jpn has quit [Ping timeout: 245 seconds]
13:38
jpn has joined #ruby
13:55
davidw has joined #ruby
13:59
niv has joined #ruby
14:15
some14u has joined #ruby
14:24
eddof13 has joined #ruby
14:32
dionysus69 has joined #ruby
14:42
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:42
TCZ has quit [Quit: Leaving]
14:45
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:50
eddof13 has joined #ruby
14:58
bit4bit has joined #ruby
14:59
swaggboi has quit [Ping timeout: 272 seconds]
15:00
<
isene >
How should I replace a word in a sentence with its downcase substitute? "THIS IS A TEST NOW" -> THIS IS A test NOW"
15:01
<
isene >
...with a regexp to match TEST
15:05
___nick___ has joined #ruby
15:10
<
havenwood >
isene: "THIS IS A TEST NOW".gsub(/TEST/, &:downcase)
15:10
<
isene >
Interesting.
15:12
swaggboi has joined #ruby
15:13
ivanf has joined #ruby
15:15
bit4bit has quit [Ping timeout: 240 seconds]
15:24
bit4bit has joined #ruby
15:31
<
ox1eef >
:: "THIS IS A TEST NOW".sub("TEST", &:downcase)
15:31
<
ruby-eval >
=> "THIS IS A test NOW"
15:33
dza has joined #ruby
15:34
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:38
eddof13 has joined #ruby
15:47
some14u has joined #ruby
15:48
<
adam12 >
dorian: Only thing I can think of, tho I'm not sure how it would even happen, is that the mac version is using libedit and not libreadline. IIRC, libedit has no history. But I could be way off base.
15:49
<
adam12 >
THIS IS A TEST NOW reminds me of an older US TV commercial for JG Wentworth. NEED CASH NOW
15:50
gr33n7007h has quit [Quit: WeeChat 3.5]
16:01
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:04
bit4bit has quit [Ping timeout: 240 seconds]
16:09
roadie has quit [Ping timeout: 240 seconds]
16:15
TomyWork has joined #ruby
16:16
some14u has joined #ruby
16:29
roadie has joined #ruby
16:31
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:35
roadie has quit [Ping timeout: 252 seconds]
16:38
<
havenwood >
:: "THIS IS A TEST NOW".tr("TEST", "test")
16:38
<
ruby-eval >
=> "tHIs Is A test NOW"
16:38
liam has joined #ruby
16:38
<
havenwood >
Spongebob style
16:41
roadie has joined #ruby
16:45
TomyWork has quit [Changing host]
16:45
TomyWork has joined #ruby
16:55
gproto23 has joined #ruby
16:55
liam has quit [Quit: WeeChat 3.4.1]
17:06
szkl has joined #ruby
17:10
jpn has quit [Ping timeout: 252 seconds]
17:12
jpn has joined #ruby
17:16
Sheilong has joined #ruby
17:16
some14u has joined #ruby
17:20
jpn has quit [Ping timeout: 246 seconds]
17:21
some14u has quit [Ping timeout: 260 seconds]
17:28
oxfuxxx has joined #ruby
17:28
markong has quit [Ping timeout: 260 seconds]
17:29
hololeap_ has quit [Ping timeout: 240 seconds]
17:30
hololeap_ has joined #ruby
17:42
TomyWork has quit [Quit: Leaving]
17:45
nviroepah9832 has quit [Ping timeout: 268 seconds]
17:50
jpn has joined #ruby
17:51
dionysus69 has quit [Ping timeout: 260 seconds]
18:00
<
adam12 >
:: "THIS IS A TEST NOW".gsub(/./) { rand(99).even?? _1.upcase : _1.downcase }
18:00
<
ruby-eval >
=> "ThIs Is A tEST NoW"
18:09
jpn has quit [Ping timeout: 245 seconds]
18:17
<
isene >
havenwood: TIL about the &:
18:25
bit4bit has joined #ruby
18:36
jpn has joined #ruby
18:43
jpn has quit [Ping timeout: 246 seconds]
18:55
___nick___ has joined #ruby
18:55
___nick___ has quit [Client Quit]
18:56
jpn has joined #ruby
18:57
___nick___ has joined #ruby
19:00
jpn has quit [Ping timeout: 246 seconds]
19:12
nirvdrum has joined #ruby
19:13
jpn has joined #ruby
19:13
TCZ has joined #ruby
19:13
some14u has joined #ruby
19:17
jpn has quit [Ping timeout: 246 seconds]
19:30
ivanf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:31
eddof13_ has joined #ruby
19:40
ivanf has joined #ruby
19:41
eddof13_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:43
swaggboi has quit [Ping timeout: 268 seconds]
19:49
eddof13_ has joined #ruby
19:55
swaggboi has joined #ruby
19:56
reset has joined #ruby
20:02
<
leftylink >
oh dear... should I do something garish with the gsub
20:03
ua_ has quit [Read error: Connection reset by peer]
20:03
eddof13_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:03
ua_ has joined #ruby
20:04
___nick___ has quit [Ping timeout: 246 seconds]
20:04
eddof13_ has joined #ruby
20:06
jpn has joined #ruby
20:06
gproto23 has quit [Remote host closed the connection]
20:10
jpn has quit [Ping timeout: 260 seconds]
20:13
eddof13_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:15
ivanf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:17
<
leftylink >
pandabot: rbputs c=[0,4,8,9,11,12,13]; "lorem ipsum dolor sit amet".gsub(/./) { "\003%02d,%02d%s" % c.sample(2).push(_1) }
20:17
<
leftylink >
that... is quite garish indeed
20:21
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
20:22
ivanf has joined #ruby
20:28
o|||||o has quit [Ping timeout: 272 seconds]
20:31
* adam12
slaps leftylink around a bit with a large trout
20:32
eddof13_ has joined #ruby
20:42
r3m has quit [Quit: WeeChat 3.6-dev]
20:44
dionysus69 has joined #ruby
20:46
markong has joined #ruby
20:46
eddof13_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:52
hololeap has joined #ruby
20:53
hololeap_ has quit [Ping timeout: 240 seconds]
20:58
ivanf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:00
jpn has joined #ruby
21:04
o|||||o has joined #ruby
21:05
ivanf has joined #ruby
21:07
ua_ has quit [Ping timeout: 268 seconds]
21:07
ua__ has joined #ruby
21:11
ur5us has joined #ruby
21:11
jpn has quit [Ping timeout: 248 seconds]
21:17
donofrio has quit [Ping timeout: 268 seconds]
21:20
eddof13_ has joined #ruby
21:20
jpn has joined #ruby
21:25
jpn has quit [Ping timeout: 260 seconds]
21:26
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:44
dionysus69 has quit [Ping timeout: 248 seconds]
21:46
TCZ has quit [Quit: Leaving]
21:56
jpn has joined #ruby
21:56
markong has quit [Ping timeout: 248 seconds]
22:00
<
ox1eef >
does ruby have an "in" operator like JS? eg, "foo" in {foo: 1}
22:00
<
ox1eef >
i seem to remember a new syntax like that
22:00
jpn has quit [Ping timeout: 246 seconds]
22:04
hololeap has quit [Ping timeout: 240 seconds]
22:04
hololeap has joined #ruby
22:08
eddof13_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:10
markong has joined #ruby
22:10
markong has quit [Client Quit]
22:13
<
weaksauce >
don't think so for a specific extra syntax
22:13
<
weaksauce >
but functions can do it easily
22:22
<
newton >
ox1eef, you're thinking about pt
22:22
<
newton >
was just about to link that
22:22
<
ox1eef >
cool, i need to read up on that
22:22
<
newton >
seems like that "in" usage is specific to using case though
22:23
<
newton >
otherwise you're just looking for hash.key?(:x) or [a, b, c].include?(c)
22:23
<
ox1eef >
thats not the impression i got:
22:23
<
ox1eef >
Or with the => operator and the in operator, which can be used in a standalone expression:
22:24
<
ox1eef >
irb(main):001:0> "foo" in {foo: 1}
22:24
<
ox1eef >
i have to learn more about this
22:25
<
newton >
the "whilst the => operator is most useful" example has the usage
22:25
<
newton >
if you intend to use it like that it looks good
22:26
<
ox1eef >
it is not specfic to case though. amazingly it works very similar to JS.
22:26
<
newton >
destructuring is nice
22:27
<
newton >
method overloading when
22:27
<
ox1eef >
i want to learn how it works for objects of your own
22:28
jpn has joined #ruby
22:46
Sheilong has quit [Quit: Connection closed for inactivity]
22:57
r3m has joined #ruby
22:57
eddof13 has joined #ruby
23:04
hololeap_ has joined #ruby
23:04
hololeap has quit [Ping timeout: 240 seconds]
23:11
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:16
eddof13 has joined #ruby
23:22
jmcgnh has quit [Ping timeout: 260 seconds]
23:30
bit4bit has quit [Remote host closed the connection]
23:33
jmcgnh has joined #ruby
23:35
jpn has quit [Quit: leaving]
23:37
szkl has quit [Quit: Connection closed for inactivity]
23:48
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:58
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]