00:02
diegoaguilar has joined #ruby
00:04
kung has quit [Quit: Leaving]
00:04
ocbtec has quit [Quit: leaving]
00:05
stupidystupid has joined #ruby
00:05
stupidystupid has quit [Max SendQ exceeded]
00:06
darkf has joined #ruby
00:07
Suntzu has joined #ruby
00:10
kung has joined #ruby
00:13
duckpuppy has joined #ruby
00:15
flashpoint9 has joined #ruby
00:16
rubie has joined #ruby
00:16
Aviio has quit [Quit: Leaving.]
00:17
pawnbox has joined #ruby
00:18
diegoaguilar has quit [Quit: Leaving]
00:18
Nawn has joined #ruby
00:18
duckpuppy has quit [Ping timeout: 252 seconds]
00:20
duckpuppy has joined #ruby
00:20
rahult_ has joined #ruby
00:21
pawnbox has quit [Ping timeout: 244 seconds]
00:21
karapetyan has joined #ruby
00:22
rahult has quit [Ping timeout: 268 seconds]
00:22
nettoweb has joined #ruby
00:23
ta_ has joined #ruby
00:24
bb010g has joined #ruby
00:25
hakunin_ has quit [Ping timeout: 248 seconds]
00:27
karapetyan has quit [Ping timeout: 252 seconds]
00:27
Inside has quit [Ping timeout: 276 seconds]
00:27
ta_ has quit [Ping timeout: 246 seconds]
00:31
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:31
flashpoint9 has quit [Remote host closed the connection]
00:32
rahult has joined #ruby
00:32
Rith has quit [Quit: Connection reset by a network packet containing ACK|RST.]
00:33
RyanMcCoskrie has joined #ruby
00:35
freerobby has quit [Quit: Leaving.]
00:37
spider-mario has quit [Remote host closed the connection]
00:38
zeroDivisible has quit [Ping timeout: 240 seconds]
00:38
xcesariox has joined #ruby
00:38
quakephil has quit [Ping timeout: 240 seconds]
00:39
idletask has quit [Ping timeout: 268 seconds]
00:42
ur5us has joined #ruby
00:45
sarbs has quit [Ping timeout: 252 seconds]
00:46
stupidystupid has joined #ruby
00:46
stupidystupid has quit [Max SendQ exceeded]
00:47
skweek has quit [Ping timeout: 244 seconds]
00:47
Nawn has quit [Quit: Leaving]
00:47
sarbs has joined #ruby
00:48
stupidystupid has joined #ruby
00:48
stupidystupid has quit [Max SendQ exceeded]
00:51
arlek has quit [Ping timeout: 240 seconds]
00:51
davedev2_ has quit []
00:52
dc4 has quit [Read error: Connection reset by peer]
00:52
dc4 has joined #ruby
00:52
stupidystupid has joined #ruby
00:52
william3 has joined #ruby
00:53
cpup has quit [Ping timeout: 252 seconds]
00:53
kung_ has joined #ruby
00:54
idletask has joined #ruby
00:54
cpup has joined #ruby
00:54
hakunin has joined #ruby
00:54
stupidystupid has quit [Client Quit]
00:54
stupidys_ has joined #ruby
00:55
AckZ has joined #ruby
00:56
kung has quit [Ping timeout: 244 seconds]
00:57
william3 has quit [Ping timeout: 244 seconds]
00:58
marr has quit [Ping timeout: 264 seconds]
01:01
IrishGringo has joined #ruby
01:01
Xeago has quit [Read error: Connection reset by peer]
01:01
baweaver has quit [Remote host closed the connection]
01:02
Xeago has joined #ruby
01:02
mistermocha has quit [Remote host closed the connection]
01:03
weemsledeux has quit [Ping timeout: 252 seconds]
01:03
Jardayn has quit [Read error: Connection reset by peer]
01:05
idletask has quit [Ping timeout: 252 seconds]
01:06
pawnbox has joined #ruby
01:06
safe has quit [Quit: Leaving]
01:08
baweaver has joined #ruby
01:09
eljimbo has quit [Quit: Leaving]
01:11
baweaver has quit [Remote host closed the connection]
01:11
pawnbox has quit [Ping timeout: 276 seconds]
01:12
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:13
EdwardIII has quit [Ping timeout: 248 seconds]
01:14
stupidys_ has joined #ruby
01:14
nettoweb has joined #ruby
01:15
EdwardIII has joined #ruby
01:17
freerobby has joined #ruby
01:18
skweek has joined #ruby
01:20
Brackson has quit [Quit: Leaving]
01:21
chosen1_ has joined #ruby
01:21
chosen1 has quit [Ping timeout: 268 seconds]
01:21
yqt has quit [Ping timeout: 244 seconds]
01:21
stupidys_ has joined #ruby
01:22
ekinmur has joined #ruby
01:23
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:23
arlek has joined #ruby
01:23
eljimbo has joined #ruby
01:24
bronson has joined #ruby
01:25
yfeldblum has joined #ruby
01:25
_stu_ has quit [Quit: _stu_]
01:26
finisherr has joined #ruby
01:26
smathy_afk is now known as smathy
01:28
tristanp has joined #ruby
01:29
stupidystupid has joined #ruby
01:29
bronson has quit [Ping timeout: 268 seconds]
01:32
william3 has joined #ruby
01:35
<
kung_ >
is their some nicer way to get the port of a socket? like someSocket.port, instead of someSocket.addr[1] (magic number stuff)
01:35
Gasher has quit [Quit: Leaving]
01:38
william3 has quit [Ping timeout: 260 seconds]
01:41
flashpoint9 has joined #ruby
01:41
ramortegui has joined #ruby
01:43
ramortegui has quit [Client Quit]
01:46
shinnya has quit [Ping timeout: 244 seconds]
01:46
smathy is now known as smathy_afk
01:46
finisherr has quit [Quit: finisherr]
01:46
pawnbox has joined #ruby
01:48
chosen1x has joined #ruby
01:50
FooMunki has quit [Quit: FooMunki]
01:50
markfletcher has quit [Remote host closed the connection]
01:51
pawnbox has quit [Ping timeout: 260 seconds]
01:51
rubie has quit [Remote host closed the connection]
01:52
chosen1_ has quit [Ping timeout: 250 seconds]
01:52
djbkd has joined #ruby
01:56
eskatonic has joined #ruby
01:57
Cooooo has joined #ruby
01:59
duckpuppy has quit [Ping timeout: 244 seconds]
02:00
stannard has quit [Remote host closed the connection]
02:00
A124 has quit [Read error: Connection reset by peer]
02:01
rubie has joined #ruby
02:01
nhhc has joined #ruby
02:01
mistermocha has joined #ruby
02:02
rubie has quit [Read error: Connection reset by peer]
02:02
arescorpio has joined #ruby
02:02
dc4 has quit [Ping timeout: 248 seconds]
02:02
_ht has quit [Ping timeout: 264 seconds]
02:03
_ht has joined #ruby
02:04
BTRE has quit [Ping timeout: 248 seconds]
02:04
najam has joined #ruby
02:05
A124 has joined #ruby
02:06
mistermocha has quit [Ping timeout: 244 seconds]
02:07
finisherr has joined #ruby
02:07
william3 has joined #ruby
02:07
nhhc has quit [Ping timeout: 268 seconds]
02:07
najam has quit [Remote host closed the connection]
02:08
najam has joined #ruby
02:08
eskatonic has quit [Quit: Leaving]
02:10
ramortegui has joined #ruby
02:10
ramortegui has quit [Client Quit]
02:10
karapetyan has joined #ruby
02:10
rahult_ has joined #ruby
02:11
duderonomy has joined #ruby
02:11
william3 has quit [Ping timeout: 244 seconds]
02:12
baweaver has joined #ruby
02:12
<
kung_ >
shevy, nah thanks, im happy when I get my little udp proxy working :D
02:12
<
kung_ >
(first time using ruby)
02:13
Suntzu has quit [Read error: Connection reset by peer]
02:13
rahult has quit [Ping timeout: 252 seconds]
02:13
GodFather has quit [Ping timeout: 276 seconds]
02:14
Chagel has joined #ruby
02:14
ekinmur has joined #ruby
02:15
karapetyan has quit [Ping timeout: 268 seconds]
02:15
najam has quit [Quit: najam]
02:16
pawnbox has joined #ruby
02:17
BTRE has joined #ruby
02:17
baweaver has quit [Ping timeout: 250 seconds]
02:17
bruno- has quit [Ping timeout: 252 seconds]
02:18
johnmilton has quit [Ping timeout: 240 seconds]
02:19
blaxter has quit [Read error: Connection reset by peer]
02:21
dfockler has joined #ruby
02:22
pawnbox has quit [Ping timeout: 268 seconds]
02:24
adgtl has quit [Changing host]
02:24
adgtl has joined #ruby
02:24
adgtl has joined #ruby
02:24
ta_ has joined #ruby
02:26
Contigi has joined #ruby
02:27
nando293921 has quit [Remote host closed the connection]
02:29
ta_ has quit [Ping timeout: 246 seconds]
02:29
najam has joined #ruby
02:30
MsCharlotte is now known as UKn0Me
02:31
CloCkWeRX has quit [Ping timeout: 268 seconds]
02:31
noService has joined #ruby
02:32
nettoweb has joined #ruby
02:34
rbennacer has joined #ruby
02:34
solocshaw has quit [Ping timeout: 268 seconds]
02:34
ur5us has quit [Remote host closed the connection]
02:36
noService has quit [Ping timeout: 246 seconds]
02:36
ur5us has joined #ruby
02:38
bronson has joined #ruby
02:38
nando293921 has joined #ruby
02:41
Suntzu has joined #ruby
02:42
ur5us has quit [Ping timeout: 276 seconds]
02:42
william3 has joined #ruby
02:46
ur5us has joined #ruby
02:46
pawnbox has joined #ruby
02:47
diego1 has joined #ruby
02:47
CloCkWeRX has joined #ruby
02:47
diego1 has quit [Changing host]
02:47
diego1 has joined #ruby
02:49
william3 has quit [Ping timeout: 252 seconds]
02:49
diegoviola has quit [Ping timeout: 250 seconds]
02:51
pawnbox has quit [Ping timeout: 244 seconds]
02:52
LoneHerm_ has joined #ruby
02:53
LoneHerm_ has quit [Remote host closed the connection]
02:55
<
kung_ >
there is no windows .exe download installer? oO
02:55
<
kung_ >
just links to the sourcecode lol
02:55
<
kung_ >
and to the license
02:55
flashpoint9 has quit [Remote host closed the connection]
02:56
s00pcan has joined #ruby
02:56
<
kung_ >
aha i had to follow three links
02:56
<
kung_ >
to get to the rubyinstaller
02:56
<
kung_ >
> wondering why ruby isnt used by more ppl
03:01
<
bougyman >
it's too easy
03:01
<
bougyman >
many people prefer Hard
03:02
freerobby has quit [Quit: Leaving.]
03:02
Dimik has quit [Ping timeout: 268 seconds]
03:05
mr_roboto has joined #ruby
03:05
diego1 is now known as diegoviola
03:05
PaulCape_ has quit [Quit: .]
03:05
braincrash has quit [Quit: bye bye]
03:05
elifoster has joined #ruby
03:07
shayan has joined #ruby
03:07
Chagel_ has joined #ruby
03:08
PaulCapestany has joined #ruby
03:08
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:09
Chagel has quit [Ping timeout: 250 seconds]
03:12
dravine has quit [Quit: dravine]
03:12
william3 has joined #ruby
03:14
crameth has joined #ruby
03:14
crameth has quit [Max SendQ exceeded]
03:14
goodroot has joined #ruby
03:14
kadoppe has joined #ruby
03:15
<
shayan >
“Write a method that will take a string as input, and return a new string with the same letters in reverse order.”
03:15
<
shayan >
I am very new to programming and have difficulty trying to solve this. Any guidance towards solving this would be immensely appreciated.
03:16
cryptomancer has joined #ruby
03:16
goodroot has quit [Client Quit]
03:17
goodroot has joined #ruby
03:17
william3 has quit [Ping timeout: 276 seconds]
03:17
braincras has joined #ruby
03:18
<
Radar >
shayan: Does Ruby have a reverse method?
03:18
astrobunny has joined #ruby
03:19
<
shayan >
@Radar: I suppose, however, I have been told “Don't use String's reverse method; that would be too simple.”
03:19
kadoppe has quit [Ping timeout: 252 seconds]
03:19
<
Radar >
indeed it would be too simple.
03:19
LuckyABA has quit [Ping timeout: 264 seconds]
03:20
<
Ox0dea >
shayan: How do you reverse a string of length fewer than 2?
03:21
<
shayan >
idx = ab - 1
03:22
stupidys_ has joined #ruby
03:22
<
shayan >
idx = ab.length - 1
03:22
<
shayan >
while idx >= 0
03:22
<
shayan >
puts(ab[idx])
03:22
<
shayan >
idx = idx - 1
03:22
<
shayan >
Hmm. My apologies.
03:23
gix has quit [Ping timeout: 268 seconds]
03:23
Jameser has joined #ruby
03:24
mr_roboto has quit [Remote host closed the connection]
03:26
<
Ox0dea >
shayan: You can do it "the C way" by iterating from 0 up to half the length of the string, swapping the characters at `i` and `size - i - 1` as you go, but that's pretty inelegant.
03:26
mr_roboto has joined #ruby
03:26
gix has joined #ruby
03:26
<
Ox0dea >
A nifty recursive solution presents itself, with the base case being that reversing a string of length fewer than 2 is a no-op.
03:26
A124 has quit [Quit: '']
03:28
mr_roboto has quit [Remote host closed the connection]
03:28
A124 has joined #ruby
03:29
RegulationD has joined #ruby
03:30
mr_roboto has joined #ruby
03:34
RegulationD has quit [Ping timeout: 240 seconds]
03:34
stupidystupid has joined #ruby
03:36
bronson has quit [Remote host closed the connection]
03:36
postmodern has joined #ruby
03:39
rahult has joined #ruby
03:42
rahult_ has quit [Ping timeout: 260 seconds]
03:43
Channel6 has joined #ruby
03:43
idletask has joined #ruby
03:43
nofxx has quit [Ping timeout: 244 seconds]
03:44
william3 has joined #ruby
03:45
nofxx has joined #ruby
03:46
hinbody has quit [Quit: leaving]
03:47
_blizzy_ has quit [Quit: Leaving]
03:48
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
03:49
kobain has quit [Ping timeout: 260 seconds]
03:50
william3 has quit [Ping timeout: 248 seconds]
03:52
noService has joined #ruby
03:53
kobain has joined #ruby
03:55
skweek has quit [Ping timeout: 248 seconds]
03:57
gooodroot has joined #ruby
03:57
hinbody has joined #ruby
03:58
CloCkWeRX has quit [Ping timeout: 264 seconds]
03:58
mr_roboto has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
03:58
baweaver has joined #ruby
03:58
pawnbox has joined #ruby
03:59
treaki_ has joined #ruby
04:00
goodroot has quit [Ping timeout: 246 seconds]
04:02
treaki has quit [Ping timeout: 246 seconds]
04:02
goooodroot has joined #ruby
04:02
postmodern has quit [Quit: Leaving]
04:05
gooodroot has quit [Ping timeout: 264 seconds]
04:07
kareeoleez has joined #ruby
04:08
mistermocha has joined #ruby
04:11
sandelius has joined #ruby
04:11
gooooodroot has joined #ruby
04:11
eljimbo has quit [Quit: This computer has gone to sleep]
04:14
goooodroot has quit [Ping timeout: 260 seconds]
04:15
rkazak has quit [Quit: Sleep.....ing....]
04:15
GitGud has quit [Ping timeout: 252 seconds]
04:16
IrishGringo has quit [Ping timeout: 250 seconds]
04:17
CloCkWeRX has joined #ruby
04:17
rkazak has joined #ruby
04:19
snoobydoo has joined #ruby
04:20
goodroot has joined #ruby
04:22
mhenrixon has quit [Ping timeout: 260 seconds]
04:23
devbug has joined #ruby
04:23
gooooodroot has quit [Ping timeout: 264 seconds]
04:26
skweek has joined #ruby
04:30
rkazak has quit [Quit: Sleep.....ing....]
04:33
nhhc has joined #ruby
04:34
blackwell has joined #ruby
04:35
dfockler has quit [Ping timeout: 276 seconds]
04:35
Channel6 has quit [Read error: Connection reset by peer]
04:37
tmtwd_ has quit [Ping timeout: 260 seconds]
04:37
IrishGringo has joined #ruby
04:38
rbennacer has quit [Remote host closed the connection]
04:38
rbennacer has joined #ruby
04:39
kareeoleez has quit []
04:39
rbennacer has quit [Remote host closed the connection]
04:39
Chagel_ has quit [Ping timeout: 276 seconds]
04:39
rbennacer has joined #ruby
04:40
rbennacer has quit [Remote host closed the connection]
04:40
rbennacer has joined #ruby
04:40
rbennacer has quit [Remote host closed the connection]
04:41
rbennacer has joined #ruby
04:41
rbennacer has quit [Remote host closed the connection]
04:44
Devalo has joined #ruby
04:48
devbug has quit [Read error: Connection reset by peer]
04:48
hk238 has joined #ruby
04:48
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
04:49
mhenrixon has joined #ruby
04:49
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
04:49
thistle has quit [Remote host closed the connection]
04:56
cryptomancer has quit [Quit: Leaving]
05:01
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:01
krz has joined #ruby
05:03
postmodern has joined #ruby
05:03
snoobydo1 has joined #ruby
05:04
valetudo has quit [Ping timeout: 240 seconds]
05:05
tonini has joined #ruby
05:06
snoobydoo has quit [Ping timeout: 260 seconds]
05:07
pawnbox_ has joined #ruby
05:08
william3 has joined #ruby
05:08
chouhoulis has quit [Remote host closed the connection]
05:11
pawnbox has quit [Ping timeout: 276 seconds]
05:12
william3 has quit [Ping timeout: 260 seconds]
05:12
p0p0pre7 has joined #ruby
05:12
diegoviola has quit [Quit: WeeChat 1.4]
05:14
djbkd has quit [Remote host closed the connection]
05:14
bruno- has joined #ruby
05:15
p0p0pr37 has quit [Ping timeout: 244 seconds]
05:15
paradisaeidae_ has joined #ruby
05:15
djbkd has joined #ruby
05:16
mistermocha has quit [Remote host closed the connection]
05:17
gooodroot has joined #ruby
05:17
ctarx has joined #ruby
05:18
astrobunny has quit [Remote host closed the connection]
05:18
saneax_AFK is now known as saneax
05:19
rolha has quit [Ping timeout: 248 seconds]
05:20
merida has joined #ruby
05:20
bruno- has quit [Ping timeout: 260 seconds]
05:20
djbkd has quit [Ping timeout: 244 seconds]
05:20
goodroot has quit [Ping timeout: 268 seconds]
05:21
rolha has joined #ruby
05:21
bronson has joined #ruby
05:22
raeoks has joined #ruby
05:23
arescorpio has quit [Quit: Leaving.]
05:23
Authenticator has quit [Ping timeout: 252 seconds]
05:24
djbkd has joined #ruby
05:25
mistermocha has joined #ruby
05:26
bronson has quit [Ping timeout: 244 seconds]
05:27
mistermocha has quit [Remote host closed the connection]
05:27
p0p0pre7 has quit [Ping timeout: 264 seconds]
05:28
mistermocha has joined #ruby
05:29
elifoster has quit [Ping timeout: 260 seconds]
05:29
william3 has joined #ruby
05:30
najam has quit [Quit: najam]
05:32
p0p0pre7 has joined #ruby
05:32
mistermocha has quit [Ping timeout: 248 seconds]
05:32
paradisaeidae_ has quit [Ping timeout: 252 seconds]
05:33
staticfox is now known as drunkfox
05:34
william3 has quit [Ping timeout: 276 seconds]
05:34
finisherr has quit [Quit: finisherr]
05:34
Chagel has joined #ruby
05:35
idefine has joined #ruby
05:37
skweek has quit [Read error: Connection reset by peer]
05:37
NightMonkey has quit [Ping timeout: 260 seconds]
05:38
paradisaeidae has joined #ruby
05:38
LoneHerm_ has joined #ruby
05:39
LoneHerm_ has quit [Remote host closed the connection]
05:39
Chagel has quit [Ping timeout: 240 seconds]
05:39
Cooooo has quit [Remote host closed the connection]
05:40
raeoks has joined #ruby
05:41
codecop has joined #ruby
05:41
zast has quit [Remote host closed the connection]
05:42
dionysus69 has joined #ruby
05:42
nanoz has joined #ruby
05:43
tmtwd_ has joined #ruby
05:43
diegoaguilar has joined #ruby
05:44
Chagel has joined #ruby
05:44
kadoppe has joined #ruby
05:44
astrobunny has joined #ruby
05:45
rbennacer has joined #ruby
05:45
zapata has quit [Ping timeout: 260 seconds]
05:47
idefine has quit [Remote host closed the connection]
05:47
sandelius has joined #ruby
05:47
pawnbox_ has quit [Remote host closed the connection]
05:49
william3 has joined #ruby
05:49
norc has joined #ruby
05:50
Chagel_ has joined #ruby
05:50
<
norc >
Good morning #ruby.
05:50
mr_roboto has joined #ruby
05:51
<
Ropeney >
good afternoon norc
05:52
merida has quit [Remote host closed the connection]
05:52
Chagel has quit [Ping timeout: 276 seconds]
05:52
pawnbox has joined #ruby
05:52
kung_ has quit [Quit: Leaving]
05:52
merida has joined #ruby
05:53
william3 has quit [Ping timeout: 246 seconds]
05:53
kadoppe has quit [Ping timeout: 240 seconds]
05:54
rbennacer has quit [Ping timeout: 244 seconds]
05:55
NightMonkey has joined #ruby
05:55
Sammichmaker has quit [Read error: Connection reset by peer]
05:56
flashpoint9 has joined #ruby
05:57
zapata has joined #ruby
05:58
Mia has quit [Read error: Connection reset by peer]
05:59
rbennacer has joined #ruby
05:59
<
norc >
Ox0dea: Don't see why not.
06:00
futilegames has joined #ruby
06:01
flashpoint9 has quit [Ping timeout: 276 seconds]
06:01
<
norc >
Ox0dea: Though if INT is among these types that would be a bit moot.
06:02
<
Ox0dea >
norc: How's that?
06:02
rkazak has joined #ruby
06:03
rahult has joined #ruby
06:03
edwinvdgraaf has joined #ruby
06:04
rbennacer has quit [Ping timeout: 248 seconds]
06:04
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207]]
06:04
<
norc >
Ox0dea: Strike that, wrong thought entered my head.
06:06
tubuliferous has quit [Ping timeout: 248 seconds]
06:07
bluOxigen has joined #ruby
06:08
shayan has quit [Quit: shayan]
06:09
chouhoulis has joined #ruby
06:10
kareeoleez has joined #ruby
06:13
Softnex has quit [Read error: Connection reset by peer]
06:13
rbennacer has joined #ruby
06:14
william3 has joined #ruby
06:15
x77686d has quit [Read error: Connection reset by peer]
06:15
chouhoulis has quit [Ping timeout: 276 seconds]
06:15
kareeole_ has joined #ruby
06:16
bruno- has joined #ruby
06:17
Devalo has quit [Remote host closed the connection]
06:17
kareeoleez has quit [Read error: Connection reset by peer]
06:17
x77686d has joined #ruby
06:18
rbennacer has quit [Ping timeout: 264 seconds]
06:18
william3 has quit [Ping timeout: 246 seconds]
06:18
blt has quit [Ping timeout: 252 seconds]
06:18
kareeole_ is now known as kareeoleez
06:19
nando293921 has quit [Ping timeout: 246 seconds]
06:20
bluOxigen has left #ruby [#ruby]
06:20
x77686d has quit [Client Quit]
06:20
Dimik has joined #ruby
06:21
aganov has joined #ruby
06:22
bruno- has quit [Ping timeout: 276 seconds]
06:22
Sammichmaker has joined #ruby
06:23
ta_ has joined #ruby
06:26
arup_r has joined #ruby
06:27
last_staff has joined #ruby
06:28
aufi has joined #ruby
06:29
LoneHermit has joined #ruby
06:30
solars has joined #ruby
06:33
LoneHermit has quit [Ping timeout: 260 seconds]
06:35
Outlastsheep has quit [Ping timeout: 264 seconds]
06:36
<
arup_r >
Hi, I am writing a code to read the output of the command `last`, and then do some analysis on this. Like print how many times a user logged in, number of logins per day etc. So, I see how can I capture the output of the `last` command using
http://ruby-doc.org/core-2.3.0/IO.html#method-c-popen . Then I am thinking to split each line on whitespace, but date output itself has whitespace, so splitting it on whitespace is not seems like a good idea.
06:36
<
arup_r >
Because date will be splitted. So any more control way to read this shell command output?
06:39
bb010g has quit [Quit: Connection closed for inactivity]
06:39
<
arup_r >
1 min let me show 1 ouput.
06:39
pawnbox has quit [Remote host closed the connection]
06:39
CausaMortis has joined #ruby
06:41
<
arup_r >
let me know if my question is not clear.
06:41
PedramT has joined #ruby
06:42
william3 has joined #ruby
06:44
fedexo has quit [Ping timeout: 248 seconds]
06:45
sergey_makagon has joined #ruby
06:46
sergey_makagon has quit [Client Quit]
06:46
karapetyan has joined #ruby
06:47
Xeago has quit [Ping timeout: 268 seconds]
06:47
<
Ox0dea >
arup_r: I'd recommend using `last -R` to drop the hostname column, which makes parsing it as easy as `line.split(/ +/, 3)`.
06:48
<
mozzarella >
arup_r: what about using "last --time-format=iso"?
06:48
bmf has joined #ruby
06:48
<
arup_r >
ok. I didn't know the options you are saying. Let me run them first and see. how they look like.
06:48
dn` has quit [Ping timeout: 244 seconds]
06:49
william3 has quit [Ping timeout: 246 seconds]
06:49
<
arup_r >
I want to build a report for *Frequency of Usernames:*, *Frequency of IP Addresses:*, *Number of logins per day:*..
06:49
<
saltsa_ >
arup_r: or just join the fields? The first username, 2nd tty, 3rd day, 4th month, 5th time, 6th- status
06:49
<
arup_r >
so if I am able to parse these data, is enough,. rest I don't need
06:49
rbennacer has joined #ruby
06:50
madgen has joined #ruby
06:50
dn` has joined #ruby
06:50
<
arup_r >
if run arup@ror ~ $ last --time-format=iso gives error as "last: illegal option -- -" .. I am osX .. do I need some extra settings?
06:51
<
saltsa_ >
arup_r: like this: p line.first.split()[6..-1].join(" ")
06:51
karapetyan has quit [Ping timeout: 260 seconds]
06:53
mr_roboto has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
06:54
vdamewood has joined #ruby
06:54
rbennacer has quit [Read error: Connection reset by peer]
06:55
rbennacer has joined #ruby
06:57
vdamewood has quit [Max SendQ exceeded]
06:57
andikr has joined #ruby
06:57
vdamewood has joined #ruby
06:58
<
arup_r >
I did `man last` and it don't support the options mozzarella and Ox0dea said. :/
06:59
rbennacer has quit [Ping timeout: 248 seconds]
06:59
tmtwd_ has quit [Ping timeout: 268 seconds]
07:01
baweaver has quit [Remote host closed the connection]
07:01
czerasz_ has quit [Ping timeout: 244 seconds]
07:02
TomyWork has joined #ruby
07:02
<
Ox0dea >
arup_r: Well, the fields are always separated by at least two spaces. It's a shame you can't set the delimiter, but that should help.
07:02
<
Ox0dea >
String#split supports an optional second argument that tells it when to stop splitting, and that might come in handy as well.
07:03
pawnbox has joined #ruby
07:03
<
Ox0dea >
As long as all your entries have the same number of columns, that should suffice.
07:04
rbennacer has joined #ruby
07:04
<
Ox0dea >
`who, where, ip, date = line.split(/ +/, 4)` or some such.
07:04
ur5us has quit [Remote host closed the connection]
07:04
biberu has joined #ruby
07:05
ur5us has joined #ruby
07:05
<
arup_r >
ok. I am checking how can I enable the all options with `last`. Otherwise, how would I test the code.
07:05
vondruch has quit [Ping timeout: 260 seconds]
07:05
futilegames has quit [Quit: futilegames]
07:07
agent_white has joined #ruby
07:08
PedramT has quit [Remote host closed the connection]
07:08
PedramT has joined #ruby
07:08
Suntzu has quit [Read error: Connection reset by peer]
07:08
rbennacer has quit [Ping timeout: 260 seconds]
07:09
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:09
SCHAAP137 has joined #ruby
07:09
ur5us has quit [Ping timeout: 244 seconds]
07:09
jxs_ has joined #ruby
07:10
clauswitt has joined #ruby
07:10
pandaant has joined #ruby
07:11
chouhoulis has joined #ruby
07:12
raeoks has quit [Ping timeout: 264 seconds]
07:12
idletask has quit [Quit: .]
07:13
djbkd has quit [Quit: Leaving...]
07:13
rbennacer has joined #ruby
07:14
clauswitt has quit [Client Quit]
07:14
clauswitt has joined #ruby
07:14
raeoks has joined #ruby
07:16
mark3 has joined #ruby
07:16
chouhoulis has quit [Ping timeout: 276 seconds]
07:17
PedramT has quit [Ping timeout: 246 seconds]
07:17
madgen has quit [Ping timeout: 268 seconds]
07:17
the_drow has joined #ruby
07:18
bruno- has joined #ruby
07:19
clauswitt has quit [Ping timeout: 264 seconds]
07:19
pawnbox has quit [Remote host closed the connection]
07:20
anisha has joined #ruby
07:21
rbennacer has quit [Ping timeout: 244 seconds]
07:22
futilegames has joined #ruby
07:22
bruno- has quit [Ping timeout: 260 seconds]
07:23
PedramT has joined #ruby
07:24
valetudo has joined #ruby
07:25
PedramT has quit [Remote host closed the connection]
07:26
PedramT has joined #ruby
07:27
rbennacer has joined #ruby
07:27
antgel has joined #ruby
07:28
jxs_ has quit [Remote host closed the connection]
07:28
IrishGringo has quit [Ping timeout: 248 seconds]
07:28
PedramT has quit [Remote host closed the connection]
07:29
PedramT has joined #ruby
07:29
agent_white has quit [Quit: brb]
07:30
valetudo has quit [Ping timeout: 244 seconds]
07:31
flughafen has joined #ruby
07:31
rbennacer has quit [Ping timeout: 260 seconds]
07:31
RegulationD has joined #ruby
07:31
blackms has joined #ruby
07:32
kits has joined #ruby
07:33
neanderslob_ has joined #ruby
07:33
Macaveli has joined #ruby
07:33
mikecmpbll has joined #ruby
07:34
petertretyakov has joined #ruby
07:34
Suntzu has joined #ruby
07:34
sepp2k has joined #ruby
07:34
neanderslob_ is now known as neanderslob
07:35
ramfjord has quit [Ping timeout: 264 seconds]
07:35
RegulationD has quit [Ping timeout: 244 seconds]
07:36
rbennacer has joined #ruby
07:37
mr_roboto has joined #ruby
07:37
bronson has joined #ruby
07:38
jaruga__ has joined #ruby
07:38
petertretyakov has quit [Client Quit]
07:39
futilegames has quit [Quit: futilegames]
07:39
krz has quit [Read error: Connection reset by peer]
07:39
ur5us has joined #ruby
07:40
krz has joined #ruby
07:42
madgen has joined #ruby
07:42
bronson has quit [Ping timeout: 252 seconds]
07:43
jxs_ has joined #ruby
07:43
dionysus69 has quit [Ping timeout: 246 seconds]
07:43
petertretyakov has joined #ruby
07:44
Jameser has quit [Remote host closed the connection]
07:45
futilegames has joined #ruby
07:47
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:48
Balzrael has joined #ruby
07:48
Chagel has joined #ruby
07:48
jxs_ has quit [Ping timeout: 276 seconds]
07:49
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:49
rbennacer has quit [Ping timeout: 252 seconds]
07:49
DoubleMalt has joined #ruby
07:50
dionysus69 has joined #ruby
07:50
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:51
Chagel_ has quit [Ping timeout: 244 seconds]
07:51
karapetyan has joined #ruby
07:53
El3k0n has joined #ruby
07:54
rbennacer has joined #ruby
07:54
sandelius has joined #ruby
07:54
elaptics`away is now known as elaptics
07:56
skade has joined #ruby
07:57
lacrosse has joined #ruby
07:57
czerasz has joined #ruby
07:59
ramfjord has joined #ruby
07:59
ferr has joined #ruby
07:59
jxs_ has joined #ruby
08:01
mikecmpbll has joined #ruby
08:01
goooodroot has joined #ruby
08:01
baweaver has joined #ruby
08:03
rbennacer has quit [Read error: Connection reset by peer]
08:03
Blaze_Boy has joined #ruby
08:03
merida has quit [Remote host closed the connection]
08:03
vondruch has joined #ruby
08:03
drptbl has joined #ruby
08:03
rbennacer has joined #ruby
08:04
gooodroot has quit [Ping timeout: 264 seconds]
08:06
baweaver has quit [Ping timeout: 250 seconds]
08:08
mr_roboto has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
08:09
zenguy_pc has quit [Ping timeout: 240 seconds]
08:11
lyro has joined #ruby
08:12
sepp2k has quit [Quit: Leaving.]
08:12
PedramT has quit [Ping timeout: 244 seconds]
08:12
Blaze_Boy has quit [Ping timeout: 276 seconds]
08:12
chouhoulis has joined #ruby
08:12
ocbtec has joined #ruby
08:13
blackmesa has joined #ruby
08:14
jxs_ has quit [Remote host closed the connection]
08:14
Pumukel has joined #ruby
08:15
Dimik has quit [Ping timeout: 260 seconds]
08:15
gooooodroot has joined #ruby
08:15
william3 has joined #ruby
08:16
El3k0n has quit [Ping timeout: 248 seconds]
08:17
rbennacer has quit [Ping timeout: 244 seconds]
08:17
LoneHermit has joined #ruby
08:17
chouhoulis has quit [Ping timeout: 246 seconds]
08:17
rbennacer has joined #ruby
08:18
goooodroot has quit [Ping timeout: 246 seconds]
08:20
<
DanielJack >
should i use "not obj.nil?" or "obj != nil"?
08:21
<
al2o3-cr >
their opposites
08:21
<
Ox0dea >
DanielJack: Just `obj`.
08:21
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
08:22
<
DanielJack >
but if obj = false then it would trigger too
08:22
<
DanielJack >
i mean not trigger
08:22
<
norc >
DanielJack: !obj.nil?
08:22
<
tobiasvl >
!!obj :)
08:22
LoneHermit has quit [Ping timeout: 268 seconds]
08:23
<
DanielJack >
!!obj?
08:23
lkba has quit [Ping timeout: 244 seconds]
08:23
<
norc >
DanielJack: not not obj
08:23
<
norc >
DanielJack: Its a quick way of obtaining the truthy value of an object.
08:23
<
tobiasvl >
won't help if you want to discern false from nil
08:23
<
tobiasvl >
use whatever you want which makes the distinction clear
08:23
mrgrieves has joined #ruby
08:24
<
norc >
DanielJack: the most elegant way of simply checking whether its not nil is just !obj.nil?
08:24
<
norc >
or unless obj.nil?
08:24
raeoks has quit [Ping timeout: 244 seconds]
08:24
<
norc >
Though personally I avoid "unless"
08:24
<
DanielJack >
unless...
08:25
<
tobiasvl >
yeah I've done ruby for years and unless still trips me up
08:25
early90spants has left #ruby [#ruby]
08:25
william3 has quit [Ping timeout: 276 seconds]
08:25
<
al2o3-cr >
DanielJack: `unless` is basically `if not`
08:25
<
Ox0dea >
Except that it's not a method call.
08:26
<
tobiasvl >
good point Ox0dea
08:26
<
norc >
al2o3-cr: unless is just if, but with the two blocks being swapped around.
08:26
<
norc >
al2o3-cr: and if you wonder about "two", Ruby automatically inserts an "null" node if you do not supply one.
08:26
<
al2o3-cr >
yeah, just inveresed
08:27
n008f4g_ has joined #ruby
08:27
<
norc >
Although its not entirely true.
08:27
<
norc >
I regularly use modifier_unless, since its way more expressive than the modifier_if variant in some cases.
08:27
siaw has quit [Quit: siaw]
08:28
<
al2o3-cr >
going down to C level, no.
08:28
<
tobiasvl >
DanielJack: you don't need to pay attention anymore if you don't want to ;)
08:28
<
norc >
>> a = ""; puts a unless a.nil?
08:28
<
norc >
al2o3-cr: bytecode level.
08:28
RyanMcCoskrie has quit [Quit: Konversation terminated!]
08:28
<
DanielJack >
thanks guys
08:29
<
DanielJack >
i cant decide if i want to use 'not' or !
08:29
karapetyan has quit [Remote host closed the connection]
08:29
<
shevy >
al2o3-cr let us master C together!
08:29
<
al2o3-cr >
DanielJack: use !
08:29
<
shevy >
DanielJack use 'not'
08:29
<
al2o3-cr >
noooooo....
08:29
<
shevy >
I agree with al2o3-cr
08:29
<
DanielJack >
you are just like the voices in my heda
08:30
<
shevy >
but if the question is 'and' or &&
08:31
marr has joined #ruby
08:31
<
DanielJack >
shevy: yeah what about them?
08:31
<
shevy >
DanielJack then I would use 'and' :)
08:31
<
DanielJack >
should I use equal instead of == and unequal instead of !=
08:31
william3 has joined #ruby
08:32
<
shevy >
I think in many cases it depends on how you can make the code more readable / logical
08:32
<
shevy >
you could reverse, like: if ! foo .... unless foo
08:32
<
DanielJack >
the logic doesn't change
08:32
<
DanielJack >
'and' and '&&' are logically equal
08:32
<
shevy >
yeah but which tokens are better!
08:32
<
shevy >
&& should have slightly higher precedence than 'and'
08:33
<
DanielJack >
you wanna tell me that if i do (a and b && c) then b and c will be evaluated first?
08:33
<
shevy >
'and' etc... are quite low on the table
08:33
<
Ox0dea >
DanielJack: Ruby's `and` and `or` aren't meant to be used for logic.
08:33
<
shevy >
!, ~, unary + <--- the WINNERS!
08:33
<
al2o3-cr >
very true
08:34
<
shevy >
lol aptly named page
08:34
<
Ox0dea >
They're for "sequencing", more or less.
08:34
<
tobiasvl >
most style guides say to use ! instead of not. some say to use and/or for control flow and &&/|| for logical operations, others say to use &&/|| exclusively to avoid any pitfalls.
08:34
<
norc >
DanielJack: and/or are for control flow, very much like if/unless
08:34
antgel has quit [Ping timeout: 248 seconds]
08:35
<
tobiasvl >
ultimately it's up to you though, as long as you know what you're doing
08:35
<
norc >
tobiasvl: The best rule is this: The variant where you do not have to add paranthesis to correct precedence is the one you want to use.
08:36
antgel has joined #ruby
08:36
<
norc >
(Or the other way around, if you have to add parens, chances are you are using the wrong one)
08:37
<
DanielJack >
I have this shotgun which shoots both forward and backward simultaneously, of course i know what i'm doing!
08:37
<
shevy >
yeah, zombie-covering shotguns... you never know where they are coming fom next
08:38
<
DanielJack >
shevy: i think it would confuse people if one would use and/or together with &&/|| in the same statement
08:38
<
norc >
Ox0dea: Funny story, during my implementation of my own parsers over the past few weeks, I began to understand why Ruby is so packed with macros in the bison part.
08:38
nobitanobi has joined #ruby
08:38
minimalism has quit [Quit: minimalism]
08:38
<
DanielJack >
are you creating a parser for ruby?
08:39
dc4 has joined #ruby
08:39
<
norc >
DanielJack: Different language, though a Ruby parser has come to mind.
08:39
<
DanielJack >
what languagE?
08:39
<
shevy >
DanielJack yeah... I actually can not recall instances where I see both applied at the same time
08:39
<
Ox0dea >
norc: The "X macros" are interesting.
08:40
rbennacer has quit [Ping timeout: 268 seconds]
08:40
<
norc >
Ox0dea: The real problem is C. Its that hilarious attempt to dry up code when you do not have templated classes and dynamic_cast at your disposal.
08:40
rbennacer has joined #ruby
08:40
<
Ox0dea >
You're not wrong.
08:40
<
Ox0dea >
I'm not sure "problem" is quite right, though.
08:40
nofxx has quit [Ping timeout: 244 seconds]
08:41
<
norc >
"Cause" fits better I suppose.
08:41
<
DanielJack >
shevy: probably a good target to introduce hidden bugs that one can exploit
08:42
<
norc >
Ox0dea: I started out in C, and just for semantic actions I started writing code along the lines of $$ = new_ast_node(ast_node_type_operator, $1, $3, $5, AST_NULL_NODE);
08:42
auzty has joined #ruby
08:42
<
norc >
Ox0dea: So that quickly became $$ = NEW_NODE(OPERATOR, $1, $3, $5, N_NULL), which became $$ = NEW_OPERATOR ... and suddenly I realized how the Ruby parser came to be.
08:43
<
Ox0dea >
norc: I reckon that's about the size of it.
08:43
madgen has quit [Ping timeout: 248 seconds]
08:44
Chagel has quit [Ping timeout: 264 seconds]
08:45
william3 has quit [Remote host closed the connection]
08:48
Macaveli has quit [Ping timeout: 244 seconds]
08:49
rbennacer has quit [Ping timeout: 244 seconds]
08:50
madgen has joined #ruby
08:51
merida has joined #ruby
08:53
Chagel has joined #ruby
08:53
blackmesa has quit [Ping timeout: 260 seconds]
08:53
merida has quit [Client Quit]
08:54
rbennacer has joined #ruby
08:57
Snowy has joined #ruby
08:57
william3 has joined #ruby
08:58
pabs has quit [Ping timeout: 276 seconds]
08:58
pabs has joined #ruby
08:58
rkazak has quit [Quit: Sleep.....ing....]
08:59
akkmaxon has joined #ruby
09:00
Xeago has joined #ruby
09:02
jxs_ has joined #ruby
09:02
araujo has joined #ruby
09:02
araujo has joined #ruby
09:02
rbennacer has quit [Ping timeout: 248 seconds]
09:04
RubyJedi-ing_ has joined #ruby
09:07
rbennacer has joined #ruby
09:07
Chagel_ has joined #ruby
09:09
postmodern has quit [Quit: Leaving]
09:10
Chagel has quit [Ping timeout: 260 seconds]
09:11
yfeldblum has quit [Ping timeout: 250 seconds]
09:11
jt__ has joined #ruby
09:11
skislak has joined #ruby
09:11
rolha has quit [Read error: Connection reset by peer]
09:12
rbennacer has quit [Ping timeout: 264 seconds]
09:12
william3 has quit [Read error: Connection reset by peer]
09:13
djellemah has quit [Ping timeout: 240 seconds]
09:13
chouhoulis has joined #ruby
09:14
dgncn has quit [Excess Flood]
09:15
araujo has quit [Quit: Leaving]
09:15
dgncn has joined #ruby
09:16
rolha has joined #ruby
09:16
dc4 has quit [Ping timeout: 252 seconds]
09:17
rbennace_ has joined #ruby
09:17
p0p0pre7 has quit [Ping timeout: 268 seconds]
09:17
chouhoulis has quit [Ping timeout: 248 seconds]
09:18
jxs_ has quit [Remote host closed the connection]
09:19
bruno- has joined #ruby
09:19
pawnbox has joined #ruby
09:20
Couch has joined #ruby
09:20
jxs_ has joined #ruby
09:21
dc4 has joined #ruby
09:21
d0nn1e has quit [Ping timeout: 244 seconds]
09:21
Macaveli has joined #ruby
09:22
shayan has joined #ruby
09:23
d0nn1e has joined #ruby
09:23
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
09:24
bruno- has quit [Ping timeout: 248 seconds]
09:24
duoi has quit [Excess Flood]
09:25
duoi has joined #ruby
09:26
bmf has quit [Ping timeout: 246 seconds]
09:27
rbennace_ has quit [Ping timeout: 276 seconds]
09:27
Mon_Ouie has joined #ruby
09:29
pawnbox has quit [Remote host closed the connection]
09:29
karapetyan has joined #ruby
09:30
araujo has joined #ruby
09:31
william3 has joined #ruby
09:32
RegulationD has joined #ruby
09:32
workmad3 has joined #ruby
09:32
sandelius has joined #ruby
09:32
nettoweb has joined #ruby
09:34
senayar has joined #ruby
09:35
<
norc >
Ox0dea: Do you recall your dvar hack?
09:35
karapetyan has quit [Ping timeout: 276 seconds]
09:35
kies has quit [Ping timeout: 260 seconds]
09:35
bmf has joined #ruby
09:36
<
Ox0dea >
norc: Er, nothing immediately springs to mind.
09:37
RegulationD has quit [Ping timeout: 264 seconds]
09:37
<
norc >
Ox0dea: You had some ruby extension that allowed for user defined dynamic variables (think $1) that executed Ruby code when being referenced.
09:37
djellemah has joined #ruby
09:37
rippa has joined #ruby
09:37
<
Ox0dea >
norc: Ah, yes, I remember. I took to calling them "vvars".
09:38
* apeiros
still thinks it was a bad idea to hide methods behind "globals"
09:38
<
apeiros >
but I guess that was a performance optimization, back when method call overhead was even worse
09:38
<
Ox0dea >
Would you have been okay with a different sigil?
09:39
<
apeiros >
I don't see the need for another sigil
09:39
<
apeiros >
just make them methods
09:39
blackmesa has joined #ruby
09:40
<
Ox0dea >
On Kernel?
09:40
<
norc >
Ox0dea makes a good point there.
09:40
phage has left #ruby ["WeeChat 1.4"]
09:40
<
norc >
Though honestly name resolution is cluttered whether you have dvars in global scope or methods on Kernel either way.
09:40
yfeldblum has joined #ruby
09:41
<
apeiros >
Ox0dea: no. IMO ruby puts a lot of stuff into Kernel for which I'd provide a proper namespace.
09:41
<
Ox0dea >
apeiros: Hm... like what?
09:41
<
apeiros >
since those variables cover a wide range, it wouldn't be a single namespace
09:41
pawnbox has joined #ruby
09:41
<
Xeago >
Ox0dea: `puts`, `gets`
09:41
<
norc >
Ox0dea: puts, printf are two that immediately come to mind that simply do not belong there.
09:41
<
apeiros >
the $1-$n I'd probably put on Regexp.
09:42
<
norc >
They belong to IO. Not Kernel.
09:42
<
apeiros >
$:, $" etc. I'd probably have a module Ruby
09:42
<
Xeago >
what are $: $"?
09:42
<
Ox0dea >
Xeago: You don't want to be able to call those from anywhere?
09:42
<
Xeago >
(they're hard to google for)
09:42
<
apeiros >
Xeago: $LOAD_PATH, $LOADED_FEATURES
09:42
<
Ox0dea >
?quickref Xeago
09:42
<
Xeago >
Ox0dea: I'd want those to be namespaced
09:42
<
Ox0dea >
Xeago: You can invoke them directly on $stdin, if that takes your fancy.
09:42
<
Ox0dea >
And $stdout as well. :P
09:43
<
apeiros >
I'm not sure where I'd put stuff like ARGV, ARGF, ENV etc., but those I'd probably also stuff away into a namespace.
09:44
<
apeiros >
though, $" and $: are not actually functions :)
09:44
<
Ox0dea >
I can fix that. :P
09:44
<
apeiros >
you and I - we have a different definition for "fix" :-p
09:44
<
norc >
Ox0dea: Or all these $_ shortcuts that exist just to make Ruby look like got the Copy-Paste treatment from Perl.
09:44
<
norc >
(chomp, gets, sub, gsub)
09:45
<
norc >
Dont tell me you ever use them.
09:45
<
Ox0dea >
I do use those?
09:45
<
Ox0dea >
I'm A-okay with Ruby being a (much) better Perl.
09:45
<
Ox0dea >
Oh, I see how you meant.
09:45
<
Ox0dea >
No, I don't do that, and it is kinda weird.
09:46
<
adaedra >
Ox0dea finding something weird? Weird.
09:46
Chagel_ has quit [Remote host closed the connection]
09:47
<
Ox0dea >
Well, it's just that `ruby -pe` as a stream editor gets out of hand rather quickly.
09:47
Chagel has joined #ruby
09:48
<
Ox0dea >
norc: I'm sure $_ and its associated functionality were intended to entice Perlers of the time to make the switch.
09:48
pawnbox has quit [Remote host closed the connection]
09:48
goodroot has joined #ruby
09:49
Xeago has quit [Remote host closed the connection]
09:49
evidex has joined #ruby
09:49
<
Ox0dea >
apeiros: What'd you mean about $" and $: not being functions?
09:49
<
norc >
Ox0dea: Its okay. We got them hooked, now we can ditch it away. ;-)
09:50
<
Ox0dea >
norc: Ruby 3 is unlikely to be a purge. :P
09:51
<
norc >
Ox0dea: By the way, since you seem to fancy obfuscation from time to time, were you aware that q = q was legal in Ruby?
09:51
Xeago has joined #ruby
09:51
ur5us has quit [Remote host closed the connection]
09:51
<
Ox0dea >
norc: We've certainly discussed this.
09:51
<
Ox0dea >
I feel we must've?
09:52
gooooodroot has quit [Ping timeout: 252 seconds]
09:52
<
norc >
Well I discussed it here, but I am fairly certain that you were not around at the time.
09:53
blackmesa has quit [Ping timeout: 248 seconds]
09:53
<
Ox0dea >
Ah, well, it's certainly made the rounds by now.
09:54
Marsupermammal has joined #ruby
09:54
<
norc >
Ox0dea: The curious thing is that if you disassemble that, it shows that Ruby initializes lvars for you if you do not do it yourself.
09:54
<
norc >
Or rather the lack of any bytecode is a strong indicator.
09:56
ramfjord has quit [Ping timeout: 252 seconds]
09:56
<
Ox0dea >
norc: Aye, it must do, since the `getlocal` happens before the `setlocal`.
09:57
pawnbox has joined #ruby
09:58
* chris2
likes using puts instead of System::STDOUT.puts :P
10:00
Xeago has quit [Remote host closed the connection]
10:00
Xeago has joined #ruby
10:01
petertretyakov has quit [Quit: Be back later ...]
10:01
<
Ox0dea >
I prefer `$><<`. ^_^
10:01
william3 has quit [Read error: Connection reset by peer]
10:01
<
Ox0dea >
>> $> << 'foo'
10:02
yfeldblum has quit [Ping timeout: 248 seconds]
10:02
<
Ox0dea >
$> is $stdout, IO#<< is #write.
10:02
terlar has joined #ruby
10:02
<
Ox0dea >
It only hurts if you poke it.
10:02
nanoz has quit [Read error: Connection reset by peer]
10:04
<
norc >
Ox0dea: Help me explain something.. throw this into your pry $><<(_=_)
10:04
<
norc >
Why does _ now point at STDOUT?
10:04
<
Ox0dea >
norc: Pry uses `_` for the last evaluation, just like irb.
10:05
astrobunny has quit [Remote host closed the connection]
10:05
LoneHerm_ has joined #ruby
10:05
william3 has joined #ruby
10:05
<
norc >
Ox0dea: Seems like __ is special too then.
10:06
<
norc >
The confusion that just happened in my head was unreal.
10:06
<
Ox0dea >
norc: What's special about `__`?
10:07
<
norc >
Ox0dea: Either it also points at the last evaluation, or it has some other meaning.
10:07
<
Ox0dea >
norc: Ah, it's just second-back.
10:08
auzty has quit [Quit: Leaving]
10:09
waxxy has joined #ruby
10:09
snoobydo1 has quit [Ping timeout: 244 seconds]
10:09
Rixius has joined #ruby
10:10
LoneHerm_ has quit [Ping timeout: 264 seconds]
10:10
<
norc >
That reminds me, I still have to write a patch for pry.
10:10
<
Ox0dea >
Alas, "extra sticky" is not an intensifier.
10:10
jxs_ has quit [Remote host closed the connection]
10:11
frankier has joined #ruby
10:11
Mon_Ouie has quit [Ping timeout: 240 seconds]
10:11
valetudo has joined #ruby
10:12
unshadow has joined #ruby
10:12
<
norc >
Ox0dea: Im sure at some point the author was just tired and could not be bothered to come up with a sensible name for encapsulating it. :)
10:12
jt__ has quit [Remote host closed the connection]
10:13
<
norc >
Ox0dea: I mean if you look closely enough, pry has some bizarre quirks.. wtf??!?!?!?!?!??!! is just the tip of the iceberg. ;-)
10:13
nhhc has quit [Quit: Leaving]
10:13
<
Ox0dea >
norc: I just meant that the "extra" there means "additional" rather than "extremely".
10:14
Xeago has quit [Remote host closed the connection]
10:14
El3k0n has joined #ruby
10:15
n008f4g_ has quit [Ping timeout: 246 seconds]
10:15
<
shayan >
Why is this giving me an error?:
10:15
<
shayan >
puts "What is your favorite number?"
10:15
<
ruby[bot] >
Radar: I don't know anything about 8ball
10:15
<
shayan >
num = gets.chomp
10:15
<
shayan >
if num > 0
10:16
<
shayan >
puts "Wow, that is a pretty number!"
10:16
<
Ox0dea >
norc: It's rare enough, but tab-completing methods on String literals is still wonky.
10:16
<
Radar >
shayan: ?gist
10:16
<
Radar >
?gist shayan
10:16
<
ruby[bot] >
shayan:
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
10:16
<
Radar >
shayan: because num is not a number, it would be a string.
10:16
<
Radar >
shayan: gets returns a string
10:17
<
norc >
Ox0dea: tab completion on paths without explicitely requiring strscan on your pryrc still crashes pry. ;-)
10:17
Xeago has joined #ruby
10:17
<
Ox0dea >
norc: Ah, yeah, that was the one.
10:17
<
norc >
Ox0dea: That was the bug I referred to earlier, Im going to patch that I think.
10:18
<
shayan >
Radar: Ah, that certainly makes sense to me now.
10:18
william3 has quit [Ping timeout: 240 seconds]
10:18
<
shayan >
Radar: What is the correct method in this case?
10:19
william3 has joined #ruby
10:19
<
norc >
shayan: Note though, instead of asking why it gives an error, next time try asking "What does this error message mean?"
10:19
<
Radar >
shayan: what have you tried?
10:19
<
norc >
shayan: Because the error message you would get is quite descriptive already.
10:19
<
shayan >
norc: Thank you, I will remember that for next time
10:20
clauswitt has joined #ruby
10:20
bruno- has joined #ruby
10:22
<
shayan >
I solved this — I just had to convert the num to an integer (num.to_i)
10:22
Outlastsheep has joined #ruby
10:23
gooodroot has joined #ruby
10:23
merida has joined #ruby
10:24
jgt4 has joined #ruby
10:24
freerobby has joined #ruby
10:24
platzhirsch has joined #ruby
10:25
bruno- has quit [Ping timeout: 248 seconds]
10:26
goodroot has quit [Ping timeout: 268 seconds]
10:28
Azure has quit [Ping timeout: 260 seconds]
10:28
Skelz0r has quit [Ping timeout: 248 seconds]
10:29
william3 has quit [Read error: Connection reset by peer]
10:29
senayar has quit [Remote host closed the connection]
10:30
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
10:30
senayar has joined #ruby
10:31
Xeago has quit [Remote host closed the connection]
10:31
rbennacer has joined #ruby
10:31
sandelius has joined #ruby
10:34
freerobby has quit [Quit: Leaving.]
10:34
RubyJedi-ing_ has quit [Ping timeout: 244 seconds]
10:34
blackmesa has joined #ruby
10:35
hk238 has joined #ruby
10:35
Ropeney has joined #ruby
10:35
bmf has quit [Ping timeout: 250 seconds]
10:36
rbennacer has quit [Ping timeout: 248 seconds]
10:36
El3k0n has quit [Ping timeout: 248 seconds]
10:37
skade has quit [Quit: Computer has gone to sleep.]
10:38
william3 has joined #ruby
10:39
cajone has left #ruby [#ruby]
10:42
cajone has joined #ruby
10:44
chouhoulis has joined #ruby
10:44
goooodroot has joined #ruby
10:44
Azure has joined #ruby
10:45
FooMunki has joined #ruby
10:45
GodFather has joined #ruby
10:47
gooodroot has quit [Ping timeout: 250 seconds]
10:48
chouhoulis has quit [Ping timeout: 248 seconds]
10:48
bmf has joined #ruby
10:50
platzhirsch has quit [Quit: Leaving.]
10:52
karapetyan has joined #ruby
10:55
leftpad has joined #ruby
10:56
dvinciguerra_ has joined #ruby
10:57
karapetyan has quit [Ping timeout: 246 seconds]
10:57
gooooodroot has joined #ruby
10:58
Guest97976 has joined #ruby
10:58
Mon_Ouie has joined #ruby
11:01
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
11:01
goooodroot has quit [Ping timeout: 276 seconds]
11:01
Gasher has joined #ruby
11:01
william3 has quit [Read error: Connection reset by peer]
11:05
pawnbox has quit [Remote host closed the connection]
11:06
Skelz0r has joined #ruby
11:07
<
apeiros >
Ox0dea: aren't they plain arrays and just assignment to those vars is blocked?
11:07
Chagel has quit [Ping timeout: 260 seconds]
11:08
jaruga__ has quit [Ping timeout: 260 seconds]
11:08
Ropeney has joined #ruby
11:08
nofxx has joined #ruby
11:09
<
Ox0dea >
apeiros: Nah, they're "hooked" virtual variables.
11:09
gregf has quit [Quit: WeeChat 1.4]
11:09
<
apeiros >
ah ok. I assumed their functionality was simple enough that that wasn't necessary
11:10
johnmilton has joined #ruby
11:10
<
hanmac >
yeah virtual variables are funky xD
11:11
Guest97976 has quit [Ping timeout: 246 seconds]
11:11
Skelz0r has quit [Ping timeout: 260 seconds]
11:13
gregf has joined #ruby
11:13
william3 has joined #ruby
11:14
william3 has quit [Remote host closed the connection]
11:15
mtkd has quit [Ping timeout: 276 seconds]
11:15
william3 has joined #ruby
11:15
DoubleMalt has quit [Remote host closed the connection]
11:16
william3 has quit [Remote host closed the connection]
11:16
DoubleMalt has joined #ruby
11:16
pawnbox has joined #ruby
11:16
william3 has joined #ruby
11:16
voodo has joined #ruby
11:16
skade has joined #ruby
11:18
trinaldi has joined #ruby
11:18
Skelz0r has joined #ruby
11:18
platzhirsch has joined #ruby
11:19
freerobby has joined #ruby
11:22
madgen has quit [Ping timeout: 248 seconds]
11:24
GG has joined #ruby
11:25
william3 has quit [Read error: Connection reset by peer]
11:25
Skelz0r has quit [Ping timeout: 268 seconds]
11:25
madgen has joined #ruby
11:26
ruby-lang078 has joined #ruby
11:28
william3 has joined #ruby
11:28
petertretyakov has joined #ruby
11:29
RubyJedi-ing has joined #ruby
11:29
unshadow has quit [Quit: leaving]
11:30
ruby-lang078 has quit [Ping timeout: 250 seconds]
11:30
Xeago has joined #ruby
11:31
nando293921 has joined #ruby
11:32
Skelz0r has joined #ruby
11:32
blackmesa has quit [Ping timeout: 276 seconds]
11:32
blaxter has joined #ruby
11:36
gnufied has joined #ruby
11:37
ldnunes has joined #ruby
11:37
senayar has quit [Remote host closed the connection]
11:37
rbennacer has joined #ruby
11:37
senayar has joined #ruby
11:37
william3 has quit [Read error: Connection reset by peer]
11:38
mtkd has joined #ruby
11:38
<
norc >
Ox0dea: Can you give me a link to your $ magic source code?
11:39
sepp2k has joined #ruby
11:39
kadoppe has joined #ruby
11:40
goodroot has joined #ruby
11:40
william3 has joined #ruby
11:41
magic has joined #ruby
11:41
rbennacer has quit [Ping timeout: 260 seconds]
11:41
magic is now known as Guest13504
11:42
nodejunkie has quit [Ping timeout: 252 seconds]
11:42
gooooodroot has quit [Ping timeout: 248 seconds]
11:43
voodo has quit [Quit: Leaving...]
11:44
snoobydoo has joined #ruby
11:44
kadoppe has quit [Ping timeout: 248 seconds]
11:44
chouhoulis has joined #ruby
11:45
<
Ox0dea >
The only wonky bit is the valid identifier check.
11:45
<
Ox0dea >
I remember finding something interesting to do with rb_is_junk_id(), but I forgot to note it.
11:46
<
Ox0dea >
I think it might've been that it doesn't consider the empty identifer to be "junk", but I didn't play with it like I should've.
11:46
rbennacer has joined #ruby
11:46
Skelz0r has quit [Ping timeout: 240 seconds]
11:49
chouhoulis has quit [Ping timeout: 240 seconds]
11:50
nfk|laptop has joined #ruby
11:50
rbennacer has quit [Ping timeout: 260 seconds]
11:51
dravine has joined #ruby
11:51
william3 has quit [Ping timeout: 246 seconds]
11:53
william3 has joined #ruby
11:53
LoneHerm_ has joined #ruby
11:54
decoponio has joined #ruby
11:54
Snowy has quit [Remote host closed the connection]
11:55
snoobydo1 has joined #ruby
11:55
rbennacer has joined #ruby
11:56
<
norc >
Ox0dea: Appreciate it.
11:57
snoobydoo has quit [Ping timeout: 246 seconds]
11:57
LoneHerm_ has quit [Ping timeout: 246 seconds]
11:58
Skelz0r has joined #ruby
11:59
hanmac has quit [Ping timeout: 248 seconds]
12:00
rbennacer has quit [Ping timeout: 250 seconds]
12:00
rbennacer has joined #ruby
12:00
gagrio has quit [Ping timeout: 276 seconds]
12:01
szulak has joined #ruby
12:01
diegoaguilar has quit [Ping timeout: 276 seconds]
12:02
bmf has quit [Ping timeout: 264 seconds]
12:03
tvw has joined #ruby
12:03
<
Ox0dea >
norc: No worries. Is your language gonna have dvars? :)
12:03
gagrio has joined #ruby
12:04
icey has joined #ruby
12:06
Vile` has quit [Ping timeout: 240 seconds]
12:06
icey has quit [Remote host closed the connection]
12:07
<
norc >
Ox0dea: No, Im not particularly interested in the actual language, but some theoretical stuff about IR and optimization passes.
12:07
arlek has quit [Ping timeout: 252 seconds]
12:08
ffgghhj has joined #ruby
12:09
dANOKELOFF has joined #ruby
12:10
<
norc >
Ox0dea: It is quite interesting because even GIMPLE has 2 levels of abstraction, and afterwards there is another representation (RTL) which is still used for more aggressive low level optimization.
12:11
icey has joined #ruby
12:11
szulak has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
12:11
icey has quit [Remote host closed the connection]
12:11
<
norc >
Ox0dea: In my first step Ill just translate directly to LLVM though.
12:11
<
Ox0dea >
norc: Yeah, makes good sense.
12:13
tesuji has joined #ruby
12:13
Guest13504 has quit [Remote host closed the connection]
12:13
eljimbo has joined #ruby
12:13
hanmac has joined #ruby
12:13
william3 has quit [Read error: Connection reset by peer]
12:13
aegis3121 has joined #ruby
12:13
<
norc >
Ox0dea: Im still so sad, that there is no suitable parser generator for C++ :(
12:14
rbennacer has quit [Ping timeout: 268 seconds]
12:14
gagrio is now known as gagrio-mtg
12:14
<
Ox0dea >
norc: What explains that?
12:15
<
Ox0dea >
The curse of good enough, I suppose. :/
12:16
icey has joined #ruby
12:16
<
norc >
ANTLR is probably the closest thing, but I do not have much love for waiting 2s every time I just want to fire up the JVM...
12:17
szulak has joined #ruby
12:17
diegoaguilar has joined #ruby
12:17
<
Xeago >
How do I read a single character, not putting the terminal in raw mode?
12:18
_blizzy_ has joined #ruby
12:18
rbennacer has joined #ruby
12:19
<
norc >
Xeago: STDIN.getc ?
12:19
Zai00 has joined #ruby
12:20
<
norc >
Xeago: And likewise, if you want to read it in raw mode, STDIN.raw { |stdin| stdin.getc }
12:20
thistle has joined #ruby
12:21
Snowy has joined #ruby
12:21
madgen has quit [Ping timeout: 248 seconds]
12:21
johnmilton has quit [Remote host closed the connection]
12:22
dvinciguerra_ has quit [Ping timeout: 246 seconds]
12:24
najam has joined #ruby
12:24
RubyJedi-ing has quit [Ping timeout: 250 seconds]
12:25
<
Xeago >
norc: thanks, I was looking at getch, which puts it in raw
12:26
<
norc >
Xeago: Ah! That explains your peculiar question then
12:26
saneax is now known as saneax_AFK
12:27
rbennacer has quit [Ping timeout: 240 seconds]
12:27
GG has quit [Quit: You my last first kiss. From now on, I made you my only <3]
12:28
_stu_ has joined #ruby
12:28
william3 has joined #ruby
12:29
YaknotiS has quit [Ping timeout: 244 seconds]
12:29
najam has quit [Quit: najam]
12:29
swills has quit [Ping timeout: 276 seconds]
12:30
jgt4 has quit [Ping timeout: 260 seconds]
12:31
<
Xeago >
Simple loop to prompt for y/n
12:31
<
tobiasvl >
ruby golf?
12:32
GG has joined #ruby
12:32
<
Xeago >
Feels unruby like to while true
12:32
rbennacer has joined #ruby
12:32
GG has quit [Remote host closed the connection]
12:32
<
Xeago >
Ideally the condition to exit the loop is actually specified at the `while`, and not some arbitrary `if` with a `return`
12:32
<
Xeago >
tobiasvl: no
12:34
<
Ox0dea >
Xeago: Be advised that you're leaving data in the input stream for the next read, which is probably not what you want.
12:36
<
Xeago >
Ox0dea: how would I get around that?
12:36
<
Ox0dea >
Xeago: You could just use #gets and grab only the first character for comparison.
12:36
rbennacer has quit [Ping timeout: 244 seconds]
12:37
dvinciguerra has joined #ruby
12:37
sdothum has joined #ruby
12:37
merida has quit [Remote host closed the connection]
12:38
<
Xeago >
Ox0dea: I'm making a program with rapid fire questions and answers, I want to get rid of the enter-press
12:38
shayan has quit [Quit: shayan]
12:38
<
Ox0dea >
Xeago: Then you want #getch.
12:39
<
Xeago >
that puts it in raw mode though
12:39
<
Xeago >
I don't want to handle my own SIGINT and other signals :<
12:39
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
12:40
<
Ox0dea >
Well, #getc doesn't get rid of the Enter press.
12:40
karapetyan has joined #ruby
12:40
aupadhye has joined #ruby
12:41
Xeago has quit [Remote host closed the connection]
12:41
rbennacer has joined #ruby
12:42
flashpoint9 has joined #ruby
12:42
johnmilton has joined #ruby
12:42
bruno- has joined #ruby
12:42
IrishGringo has joined #ruby
12:43
Xeago has joined #ruby
12:44
madgen has joined #ruby
12:44
Marsupermammal has joined #ruby
12:44
Lorn_ has quit [Ping timeout: 248 seconds]
12:45
chouhoulis has joined #ruby
12:45
karapetyan has quit [Ping timeout: 264 seconds]
12:47
bruno- has quit [Ping timeout: 248 seconds]
12:48
tubuliferous has joined #ruby
12:48
william3 has quit [Read error: Connection reset by peer]
12:48
RegulationD has joined #ruby
12:48
drunkfox is now known as staticfox
12:49
chouhoulis has quit [Ping timeout: 244 seconds]
12:50
johnmilton has quit [Remote host closed the connection]
12:50
johnmilton has joined #ruby
12:51
Patrezze has joined #ruby
12:53
RegulationD has quit [Ping timeout: 260 seconds]
12:54
kadoppe has joined #ruby
12:54
william3 has joined #ruby
12:54
rbennacer has quit [Ping timeout: 250 seconds]
12:55
johnmilton has quit [Remote host closed the connection]
12:55
pawnbox has quit [Remote host closed the connection]
12:55
johnmilton has joined #ruby
12:55
terlar has quit [Quit: WeeChat 1.4]
12:55
Patrezze has left #ruby ["Saindo"]
12:56
terlar has joined #ruby
12:57
ChiefAlexander has joined #ruby
12:58
YaknotiS has joined #ruby
12:59
rbennacer has joined #ruby
12:59
kareeoleez has quit [Read error: Connection reset by peer]
12:59
ramortegui has joined #ruby
13:00
kareeoleez has joined #ruby
13:01
madgen has quit [Ping timeout: 250 seconds]
13:03
madgen has joined #ruby
13:03
bruno- has joined #ruby
13:04
rbennacer has quit [Ping timeout: 248 seconds]
13:04
kadoppe has quit [Ping timeout: 264 seconds]
13:04
cdg has joined #ruby
13:05
gagrio-mtg has quit [Ping timeout: 244 seconds]
13:06
djcp has joined #ruby
13:06
GodFather has quit [Ping timeout: 276 seconds]
13:06
gnufied has quit [Quit: Leaving]
13:08
duckpuppy has joined #ruby
13:09
aresela has joined #ruby
13:11
roelof has joined #ruby
13:11
william3 has quit [Read error: Connection reset by peer]
13:11
Xeago has quit [Read error: Connection reset by peer]
13:11
ChiefAlexander has quit [Remote host closed the connection]
13:11
Xeago has joined #ruby
13:12
<
roelof >
I know instance_eval uses Strings so that is why I used .to_i . but no luck
13:13
huddy has joined #ruby
13:13
<
tobiasvl >
what is the exercise exactly?
13:13
terlar has quit [Quit: WeeChat 1.4]
13:14
<
roelof >
All I know its in the paste, tobiasvl
13:14
<
tobiasvl >
roelof: there's no exercise text apart from what it says up top?
13:14
william3 has joined #ruby
13:14
<
tobiasvl >
you say you know that instance_eval uses Strings, but there are two instance_eval. one uses a block. the exercise tells you to use a block
13:15
Xeago has quit [Remote host closed the connection]
13:15
gnufied has joined #ruby
13:15
<
roelof >
tobiasvl: this is all that is stated on the rubymonk page where this exercise can be found
13:15
ChiefAlexander has joined #ruby
13:15
<
tobiasvl >
and overriding initialize with that doesn't make sense
13:15
<
tobiasvl >
roelof: it really says nothing more than "Solve this simple exercise"? what is "this simple exercise"? I don't get it
13:15
ekinmur has joined #ruby
13:16
<
Ox0dea >
I don't know why this fella's so set on making it hard to help him. :/
13:16
Zai00 has quit [Quit: Zai00]
13:16
Xeago has joined #ruby
13:16
<
tobiasvl >
roelof: if you see directly above the exercise it says "Unlike eval, instance_eval can also accept a block instead of a string."
13:17
<
tobiasvl >
so I don't think you're supposed to use a string.
13:18
<
roelof >
oke, I will try to find a example with a block and instance_eval
13:18
atparrington has joined #ruby
13:18
<
tobiasvl >
it's literally directly above the exercise
13:18
<
tobiasvl >
in the example code
13:18
pawnbox has joined #ruby
13:19
freerobby has quit [Quit: Leaving.]
13:19
<
jhass >
roelof: also press run to see which expectations the exercise has
13:19
<
tobiasvl >
and it is unclear what the exercise is, actually, but I assume they mean that you should solve the previous exercise (defining a class method 'sum') using a block?
13:19
stan has quit [Remote host closed the connection]
13:20
<
jhass >
tobiasvl: no, press run too ;)
13:20
<
roelof >
I expected to see 43 where instance_eval is now returning 42
13:20
terlar has joined #ruby
13:20
<
tobiasvl >
ah look at that
13:21
abyx has joined #ruby
13:21
tax has joined #ruby
13:22
atparrington has quit [Client Quit]
13:22
freerobby has joined #ruby
13:22
iNs has quit [Quit: probably fiddling... x)]
13:22
<
roelof >
tobiasvl: oke, I think the problem is that I do not have a clue if 42 is a number/string or a object
13:23
<
roelof >
I tried to do instance_eval { @zen }.to_i but then a syntax error
13:23
jero__ has joined #ruby
13:23
abyx has quit [Client Quit]
13:23
<
Ox0dea >
That's not a syntax error.
13:23
pawnbox has quit [Ping timeout: 276 seconds]
13:23
<
tobiasvl >
roelof: everything is an object in ruby
13:24
kareeole_ has joined #ruby
13:24
nando293921 has quit [Ping timeout: 276 seconds]
13:24
abyx has joined #ruby
13:24
aresela has left #ruby [#ruby]
13:24
kareeole_ is now known as kareeoleez_
13:24
stan has joined #ruby
13:25
kareeoleez has quit [Ping timeout: 264 seconds]
13:25
<
Ox0dea >
roelof: It really seems like you're trying to "win" RubyMonk rather than learn Ruby. :<
13:25
kareeoleez_ is now known as kareeoleez
13:25
gagrio-mtg has joined #ruby
13:25
william3 has quit [Read error: Connection reset by peer]
13:25
<
Ox0dea >
You're rushing through the exercises without retaining much of anything.
13:25
<
roelof >
no, I try to learn ruby by using rubymonk as the course tells me to do
13:26
bruno- has quit [Quit: Lost terminal]
13:26
gagrio-mtg is now known as gagrio
13:26
gagrio has quit [Client Quit]
13:26
<
norc >
tobiasvl: methods are not. :(
13:26
kfpratt has joined #ruby
13:26
merida has joined #ruby
13:26
gagrio has joined #ruby
13:27
<
tobiasvl >
true. but they can be turned into an object!
13:27
<
norc >
tobiasvl: Though my prime counter argument whenever I hear this is still the same:
13:28
mostlybadfly has quit [Quit: Connection closed for inactivity]
13:28
bruno- has joined #ruby
13:28
madgen has quit [Ping timeout: 244 seconds]
13:29
<
tobiasvl >
roelof: so walk us through your thought process. you don't have a clue whether 42 is a number/string or an object. I told you everything is an object (although I lied, numbers and strings are both objects). strings have quotes around them.
13:29
platzhirsch has quit [Quit: Leaving.]
13:29
NinjaPanzer has joined #ruby
13:29
<
tobiasvl >
norc: & !
13:29
<
roelof >
tobiasvl: oke, I try
13:30
<
roelof >
when I do this : m.instance_eval {@ zen } I get 42 as expected
13:30
<
tobiasvl >
all right!
13:31
sgambino has joined #ruby
13:31
<
roelof >
but I cannot "convert" it to a integer with .to_i because I see a error message like this : syntax error, unexpected $undefined
13:32
<
roelof >
so I wonder what 42 is then
13:32
<
roelof >
I know everything is a object in ruby
13:33
<
tobiasvl >
roelof: you were trying to convert the block, not @zen
13:33
<
tobiasvl >
and 42 is an int already so you don't have to convert it
13:33
pawnbox has joined #ruby
13:33
<
roelof >
no, I do not know how I can add 1 to it
13:34
<
roelof >
just doing @zen + 1 does not change anything
13:34
<
norc >
roelof: Do me a favour, open up "irb", and type 42.class
13:34
ellen_ has joined #ruby
13:34
<
norc >
roelof: Then Ruby will tell you immediately what 42 is.
13:34
conta has joined #ruby
13:34
<
Ox0dea >
roelof: Why would doing `@zen + 1` change anything?
13:35
<
Ox0dea >
>> x = 42; x + 1; x
13:35
william3 has joined #ruby
13:35
PlasmaStar has quit [Read error: Connection reset by peer]
13:35
<
apeiros >
1+1 # now all one's are 2!
13:35
<
roelof >
norc: 42 is a FixNum
13:35
<
conta >
I wrote a little article how to use pronto with TravisCI and CircleCI ;]
13:35
<
norc >
roelof: Beautiful. So that answers your question of "I wonder what 42 is then".
13:36
<
norc >
roelof: Whenever you want to figure out what something is, call ".class" on it.
13:36
<
norc >
Since we have established that everything is an object, this will always work.
13:36
<
Ox0dea >
>> BasicObject.new.class
13:36
<
ruby[bot] >
Ox0dea: # => undefined method `class' for #<BasicObject:0x40749c54> (NoMethodError) ...check link for more (
https://eval.in/551243)
13:36
<
Ox0dea >
Well, shit.
13:36
<
norc >
Ox0dea: Shush.
13:36
Ox0dea has left #ruby ["WeeChat 1.5-dev"]
13:37
<
roelof >
norc: now the problem is how to add 1 to it . Normally you can do something like this x += 1
13:38
<
roelof >
but @zen += 1 does not change @zen
13:38
Waqas has joined #ruby
13:38
<
apeiros >
it does not?
13:38
<
apeiros >
>> @zen = 2; @zen += 1; @zen
13:38
<
roelof >
wierd, now Rubymonk says it's allright
13:38
<
apeiros >
dunno, seems it does…
13:38
<
roelof >
I think the site is not always running good
13:38
<
apeiros >
note: it changes the variable, not the object
13:39
mustmodify has left #ruby [#ruby]
13:39
GodFather has joined #ruby
13:39
bronson has joined #ruby
13:40
mtkd has quit [Ping timeout: 248 seconds]
13:41
<
roelof >
apeiros: I know. For this challenge I think it's not a problem
13:41
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
13:41
banister has joined #ruby
13:41
chouhoulis has joined #ruby
13:41
<
apeiros >
since you can't change Fixnums (they're immutable), that's probably better this way :)
13:42
mtkd has joined #ruby
13:42
loechel has joined #ruby
13:42
<
norc >
apeiros: You are lucky Ox0dea has left, otherwise he would have sent you a gist right into your face.
13:43
loechel has quit [Client Quit]
13:43
Pumukel has quit [Ping timeout: 248 seconds]
13:44
pandaant has quit [Remote host closed the connection]
13:44
stannard has joined #ruby
13:44
stannard has quit [Remote host closed the connection]
13:45
madgen has joined #ruby
13:45
stannard has joined #ruby
13:47
platzhirsch has joined #ruby
13:48
malconis has joined #ruby
13:48
griffindy has joined #ruby
13:48
Snowy is now known as essenohdoubleyou
13:49
Mon_Ouie has quit [Ping timeout: 244 seconds]
13:49
essenohdoubleyou is now known as Snowy
13:49
codecop has quit [Remote host closed the connection]
13:50
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:50
<
roelof >
thanks for the help and have a nice day
13:51
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:51
sondr3 has joined #ruby
13:54
Marsupermammal has joined #ruby
13:56
agent_white has joined #ruby
13:56
platzhirsch has left #ruby [#ruby]
13:57
<
agent_white >
Mornin'
13:57
Nahra has quit [Remote host closed the connection]
13:57
dANOKELOFF has quit [Remote host closed the connection]
13:57
CloCkWeRX has quit [Ping timeout: 250 seconds]
13:58
karmatr0n has joined #ruby
14:00
sondr3 has quit [Quit: Quit]
14:00
Nahra has joined #ruby
14:01
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:02
dANOKELOFF has joined #ruby
14:03
jmignault has joined #ruby
14:04
ta_ has quit [Remote host closed the connection]
14:05
rbennacer has joined #ruby
14:05
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:05
karmatr0n has quit [Ping timeout: 276 seconds]
14:06
rbennacer has quit [Remote host closed the connection]
14:07
AlexJakeGreen has joined #ruby
14:07
rbennacer has joined #ruby
14:08
rbennacer has quit [Remote host closed the connection]
14:08
madgen has quit [Ping timeout: 240 seconds]
14:08
chouhoulis has quit [Remote host closed the connection]
14:08
rbennacer has joined #ruby
14:09
chouhoulis has joined #ruby
14:09
rbennacer has quit [Remote host closed the connection]
14:09
rbennacer has joined #ruby
14:10
rbennacer has quit [Remote host closed the connection]
14:10
Guest64052 has joined #ruby
14:10
rbennacer has joined #ruby
14:10
swills has joined #ruby
14:10
rbennacer has quit [Remote host closed the connection]
14:11
rbennacer has joined #ruby
14:11
madgen has joined #ruby
14:11
rbennacer has quit [Remote host closed the connection]
14:12
CloCkWeRX has joined #ruby
14:12
roelof has left #ruby [#ruby]
14:13
karmatr0n has joined #ruby
14:14
rbennacer has joined #ruby
14:14
rbennacer has quit [Remote host closed the connection]
14:14
snoobydo1 has quit [Ping timeout: 250 seconds]
14:14
freerobby has quit [Quit: Leaving.]
14:15
jpotter1992 has joined #ruby
14:15
jpotter1992 has left #ruby [#ruby]
14:15
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:15
JakFrist has joined #ruby
14:16
Karix has joined #ruby
14:18
Xeago has quit [Remote host closed the connection]
14:18
freerobby has joined #ruby
14:18
al2o3-cr has quit [Quit: WeeChat 1.4 %t]
14:19
Xeago has joined #ruby
14:19
karmatr0n has quit [Ping timeout: 244 seconds]
14:19
al2o3-cr has joined #ruby
14:20
mwlang has joined #ruby
14:21
timmyBsd has joined #ruby
14:22
<
timmyBsd >
heyho, is there any possibilty to enable a shared ssl cached which is available for each openssl sslcontext?
14:22
william3 has quit [Ping timeout: 246 seconds]
14:22
n008f4g_ has joined #ruby
14:22
frem has joined #ruby
14:22
<
timmyBsd >
i want to built a api client, which needes ~200ms to open a strong ssl connection
14:23
noService has quit [Ping timeout: 246 seconds]
14:23
solars has quit [Ping timeout: 268 seconds]
14:23
<
timmyBsd >
is there any possibility to cache this, like the browsers it does
14:24
Xeago has quit [Remote host closed the connection]
14:25
DroidBurgundy has joined #ruby
14:26
kies has joined #ruby
14:26
<
jhass >
timmyBsd: you could look into typhoeus' hydra if you need to make a lot of calls fast, that uses libcurl in the background
14:26
smathy has joined #ruby
14:27
noService has joined #ruby
14:27
smathy_afk is now known as smathy
14:28
kareeoleez has quit [Remote host closed the connection]
14:28
karapetyan has joined #ruby
14:29
karmatr0n has joined #ruby
14:29
moos3 has quit [Quit: Lost terminal]
14:29
william3 has joined #ruby
14:29
kappy has joined #ruby
14:30
jhack has joined #ruby
14:30
thistle has quit [Remote host closed the connection]
14:31
noService has quit [Ping timeout: 246 seconds]
14:31
norc has quit [Ping timeout: 250 seconds]
14:32
troulouliou_div2 has joined #ruby
14:32
karapetyan has quit [Ping timeout: 240 seconds]
14:34
thistle has joined #ruby
14:35
teoric has joined #ruby
14:35
<
timmyBsd >
jhass: thanks a lot ;)
14:35
teoric has quit [Client Quit]
14:35
Xeago has joined #ruby
14:36
gagrio is now known as gagrio-lunch
14:37
bronson has quit [Remote host closed the connection]
14:37
minimalism has joined #ruby
14:37
idletask has joined #ruby
14:38
skade has quit [Quit: Computer has gone to sleep.]
14:39
nfk|laptop has quit [Read error: Connection reset by peer]
14:40
Xeago has quit [Remote host closed the connection]
14:40
jhack has quit [Quit: jhack]
14:41
lightheaded has joined #ruby
14:41
lightheaded has quit [Client Quit]
14:41
skade has joined #ruby
14:41
skade has quit [Client Quit]
14:41
kadoppe has joined #ruby
14:41
krz has quit [Read error: Connection reset by peer]
14:42
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:43
Xeago has joined #ruby
14:43
ferr has quit [Quit: WeeChat 1.4]
14:43
failshell has joined #ruby
14:44
jhack has joined #ruby
14:45
jhack has quit [Client Quit]
14:45
siaw has joined #ruby
14:45
ekinmur has joined #ruby
14:46
krz has joined #ruby
14:46
bronson has joined #ruby
14:46
n008f4g_ has quit [Ping timeout: 244 seconds]
14:47
pandaant has joined #ruby
14:47
kadoppe has quit [Ping timeout: 268 seconds]
14:49
<
failshell >
im trying to use the Aws::Signers::V4 class and its sign method to generate a proper signature to auth against the RDS REST API. anyone ever got that to work? i could use some help/code review
14:49
tax has quit [Ping timeout: 252 seconds]
14:49
aegis3121 has quit [Ping timeout: 248 seconds]
14:49
Jet4Fire has joined #ruby
14:49
<
failshell >
i keep getting an error saying the canonical string is wrong
14:50
the_drow has quit [Quit: This computer has gone to sleep]
14:50
abyx has quit [Ping timeout: 276 seconds]
14:51
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:51
abyx has joined #ruby
14:51
madgen has quit [Ping timeout: 252 seconds]
14:52
jhack has joined #ruby
14:52
agent_white has quit [Quit: brb]
14:52
bruno- has quit [Quit: Lost terminal]
14:52
agent_white has joined #ruby
14:52
kirun has joined #ruby
14:53
bruno- has joined #ruby
14:54
JakFrist has joined #ruby
14:55
Xeago has quit [Remote host closed the connection]
14:56
Xeago has joined #ruby
14:56
retro-cz has quit [Ping timeout: 260 seconds]
14:57
diegoaguilar has quit [Ping timeout: 260 seconds]
14:58
bruno- has quit [Ping timeout: 244 seconds]
14:59
Begi has joined #ruby
14:59
Begi has left #ruby [#ruby]
14:59
madgen has joined #ruby
15:00
failshell has quit []
15:01
tvw has quit [Ping timeout: 264 seconds]
15:01
bruno- has joined #ruby
15:01
Guest38_ has joined #ruby
15:02
CloCkWeRX has quit [Quit: Leaving.]
15:02
dopie_ has joined #ruby
15:02
aegis3121 has joined #ruby
15:02
tvw has joined #ruby
15:03
tax has joined #ruby
15:03
skade has joined #ruby
15:03
dopie_ has quit [Client Quit]
15:03
mtkd has quit [Ping timeout: 248 seconds]
15:04
Guest38_ has quit [Remote host closed the connection]
15:05
mtkd has joined #ruby
15:05
mark3 has quit [Remote host closed the connection]
15:05
dopie has quit [Quit: Leaving]
15:08
mark3 has joined #ruby
15:08
RegulationD has joined #ruby
15:09
diegoaguilar has joined #ruby
15:09
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
15:10
bronson has quit [Remote host closed the connection]
15:10
aganov has quit [Remote host closed the connection]
15:10
jamesbrink has quit [Quit: Connection closed for inactivity]
15:10
bronson has joined #ruby
15:11
elifoster has joined #ruby
15:11
polishdub has joined #ruby
15:11
rkazak has joined #ruby
15:12
x77686d has joined #ruby
15:12
agentmeerkat has joined #ruby
15:13
JakFrist has joined #ruby
15:14
shadeslayer has quit [Ping timeout: 244 seconds]
15:14
noway_ has joined #ruby
15:14
ChiefAlexander has quit [Remote host closed the connection]
15:15
AlexJakeGreen has quit [Remote host closed the connection]
15:15
I is now known as Guest78388
15:16
kareeoleez has joined #ruby
15:16
ChiefAlexander has joined #ruby
15:17
merida_ has joined #ruby
15:17
lightheaded has joined #ruby
15:17
william3 has quit [Ping timeout: 248 seconds]
15:18
william3 has joined #ruby
15:18
noway_ has quit [Ping timeout: 246 seconds]
15:19
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
15:19
merida has quit [Ping timeout: 240 seconds]
15:19
p0p0pre7 has joined #ruby
15:21
Devalo has joined #ruby
15:23
blackwell has quit [Ping timeout: 240 seconds]
15:23
kadoppe has joined #ruby
15:24
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
15:25
blackwell has joined #ruby
15:25
baweaver has joined #ruby
15:26
madgen has quit [Ping timeout: 244 seconds]
15:27
skade has quit [Quit: Computer has gone to sleep.]
15:28
anisha has quit [Ping timeout: 264 seconds]
15:28
shadeslayer has joined #ruby
15:28
skade has joined #ruby
15:29
B4daBing73 has joined #ruby
15:29
B4daBing73 has joined #ruby
15:29
kadoppe has quit [Ping timeout: 268 seconds]
15:29
platzhirsch has joined #ruby
15:29
LoneHerm_ has joined #ruby
15:30
bronson has quit [Remote host closed the connection]
15:30
antgel has quit [Ping timeout: 246 seconds]
15:30
CausaMortis has quit [Ping timeout: 252 seconds]
15:30
william3 has quit [Ping timeout: 246 seconds]
15:31
agentmee1kat has joined #ruby
15:32
davedev24 has joined #ruby
15:33
Snowy has quit [Remote host closed the connection]
15:33
agentmeerkat has quit [Ping timeout: 244 seconds]
15:33
william3 has joined #ruby
15:33
Snowy has joined #ruby
15:34
ljames has joined #ruby
15:34
LoneHerm_ has quit [Ping timeout: 244 seconds]
15:34
skade has quit [Quit: Computer has gone to sleep.]
15:34
skade has joined #ruby
15:34
tesuji has quit [Ping timeout: 246 seconds]
15:35
skade has quit [Client Quit]
15:35
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
15:36
GG has joined #ruby
15:36
GG has quit [Remote host closed the connection]
15:37
skade has joined #ruby
15:37
nofacade has joined #ruby
15:37
KensoDev has joined #ruby
15:38
Jet4Fire has quit []
15:38
ChiefAlexander has quit [Remote host closed the connection]
15:39
sandelius has joined #ruby
15:40
ssiris has joined #ruby
15:41
dionysus69 has quit [Ping timeout: 248 seconds]
15:41
s00pcan_ has joined #ruby
15:41
madgen has joined #ruby
15:42
blackmesa has joined #ruby
15:43
waxxy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
15:43
s00pcan has quit [Ping timeout: 240 seconds]
15:43
futilegames has quit [Quit: futilegames]
15:43
flashpoint9 has quit [Remote host closed the connection]
15:44
tagaulap has joined #ruby
15:44
marxarelli has joined #ruby
15:44
ChiefAlexander has joined #ruby
15:44
elaptics is now known as elaptics`away
15:45
platzhirsch has left #ruby [#ruby]
15:46
SCHAAP137 has quit [Remote host closed the connection]
15:46
thisirs has joined #ruby
15:46
[Butch] has joined #ruby
15:47
blackmesa has quit [Ping timeout: 246 seconds]
15:47
terlar has quit [Ping timeout: 244 seconds]
15:47
kristofferR has joined #ruby
15:47
william3 has quit [Ping timeout: 248 seconds]
15:48
rkazak has quit [Ping timeout: 244 seconds]
15:48
skade has quit [Quit: Computer has gone to sleep.]
15:49
davedev2_ has joined #ruby
15:49
flashpoint9 has joined #ruby
15:49
william3 has joined #ruby
15:49
heyjim has joined #ruby
15:49
Snowy has quit [Remote host closed the connection]
15:49
shadeslayer has quit [Changing host]
15:49
shadeslayer has joined #ruby
15:49
Couch has quit [Ping timeout: 248 seconds]
15:51
CoderPuppy has joined #ruby
15:52
davedev24 has quit [Ping timeout: 268 seconds]
15:52
skade has joined #ruby
15:52
macsteps has joined #ruby
15:52
darkf has quit [Quit: Leaving]
15:53
skade has quit [Client Quit]
15:53
cpup has quit [Ping timeout: 248 seconds]
15:54
nobitanobi has quit [Remote host closed the connection]
15:54
nobitanobi has joined #ruby
15:54
chouhoulis has quit [Remote host closed the connection]
15:55
bronson has joined #ruby
15:56
hinbody_ has joined #ruby
15:57
mostlybadfly has joined #ruby
15:58
iamarobot has joined #ruby
15:58
hinbody has quit [Disconnected by services]
15:58
hinbody_ is now known as hinbody
15:59
blackmesa has joined #ruby
15:59
<
iamarobot >
I have a string "Primary IP address: 192.168.0.1\nSecondary IP address: 192.168.0.2". What's the nicest way to extract the IP address into two strings, ip1 and ip2?
15:59
kits has quit [Quit: Leaving]
15:59
<
apeiros >
iamarobot: what have you tried so far?
15:59
vdamewood has quit [Quit: Life beckons.]
16:00
macsteps has quit [Remote host closed the connection]
16:00
<
apeiros >
(weird amount of spaces btw. - doesn't align, but has more than one)
16:00
bruno- has quit [Read error: Connection reset by peer]
16:01
amclain has joined #ruby
16:01
<
iamarobot >
apeiros: I'm afraid I've only had a few abortive attempts. I'll read baweaver's link (thanks!)
16:02
<
apeiros >
iamarobot: that's fine too. gist the one you considered to be the most promising
16:02
petertretyakov has quit [Quit: Be back later ...]
16:02
<
iamarobot >
apeiros: well, I got an IPv4 regex: "^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"
16:03
the_drow has joined #ruby
16:03
<
iamarobot >
And I was doing something like: "string1 =~ <thatregex>"
16:03
<
apeiros >
ok. and how did you apply it? (note that // is the regexp delimiter in ruby, and in //, it'd be \d, not \\d)
16:03
<
baweaver >
now look into string methods
16:03
<
apeiros >
>> Regexp.new("^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$")
16:03
<
apeiros >
^ iamarobot - comparison of regex literal and string representing a regex
16:04
mrgrieves has quit [Ping timeout: 250 seconds]
16:04
william3 has quit [Read error: Connection reset by peer]
16:04
<
baweaver >
&ri String#scan
16:04
<
apeiros >
the =~ method will only tell you whether an ipv4 is found in the string (+ the offset)
16:04
<
bougyman >
why does this need regex?
16:04
<
apeiros >
and baweaver was a bit faster to point out String#scan :)
16:04
aegis3121 has quit [Ping timeout: 260 seconds]
16:05
<
iamarobot >
aha, if it doesn't need regex, all the better.
16:05
mistermocha has joined #ruby
16:05
<
nchambers >
where is a good place to start learning ruby?
16:05
<
iamarobot >
I confess, I'm not a ruby programmer, but I find myself needing to use it at present.
16:05
marens has quit [Remote host closed the connection]
16:05
<
apeiros >
if it'd align… but without it aligning, I wonder about bougyman's regex-free solution :)
16:05
KensoDev has joined #ruby
16:05
<
iamarobot >
I'll look into string scan, thanks!
16:05
<
bougyman >
ruby -na -e 'case $F[0];when /^(Primary|Secondary)/;puts $F.last;end' /tmp/foo
16:06
nobitanobi has quit []
16:06
<
baweaver >
string.lines.split(/: +/).map { |(_,last)| last.strip }
16:06
bruno- has joined #ruby
16:06
nobitanobi has joined #ruby
16:06
<
apeiros >
those are both using a regex?
16:06
dionysus69 has joined #ruby
16:06
binaryplease1 has joined #ruby
16:06
<
baweaver >
psst, bougyman, that looks like regexen
16:06
<
bougyman >
apeiros: ok, well, I guess so.
16:06
Snowy has joined #ruby
16:06
mark3 has quit [Quit: Leaving.]
16:06
<
apeiros >
I have an 11 char solution ;-)
16:07
<
apeiros >
(not counting the `string.` part)
16:07
tagaulap has quit [Changing host]
16:07
tagaulap has joined #ruby
16:07
tagaulap has joined #ruby
16:07
<
iamarobot >
I hate all this regex stuff. It's so bloody unreadable :P
16:07
OTORelic has joined #ruby
16:07
bronson has quit [Remote host closed the connection]
16:07
<
baweaver >
str.scan(/(\d{,3}.{3}\d{,3})/) ?
16:07
<
iamarobot >
Perhaps just because I'm not used to reading it
16:07
<
apeiros >
iamarobot: only a matter of getting used to
16:07
ruby484 has joined #ruby
16:07
<
apeiros >
baweaver: .scan(/\S+$/)
16:08
<
bougyman >
not a space
16:08
<
apeiros >
non-whitespace
16:08
william3 has joined #ruby
16:08
<
baweaver >
but that doesn't extract only IPs
16:08
mistermo_ has joined #ruby
16:08
<
ruby484 >
does irc support code blocks
16:08
<
apeiros >
in the given example, it does
16:08
binaryplease has quit [Ping timeout: 260 seconds]
16:09
<
baweaver >
fine fine, so mine's more generic then
16:09
* baweaver
needs coffee
16:09
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
16:09
<
apeiros >
you mean, yours is more specific?
16:09
<
apeiros >
or more precise? not sure :D
16:09
<
baweaver >
generic in that it works on anything with IPs in it
16:09
<
ruby484 >
I'm trying to convert ruby to haml and I have an odd even table inside a form.
16:09
Xeago has quit [Remote host closed the connection]
16:09
<
ruby484 >
I'm trying to figure out the right syntax to do this
16:09
mistermocha has quit [Ping timeout: 252 seconds]
16:09
Xeago has joined #ruby
16:09
bluOxigen_ has joined #ruby
16:09
<
apeiros >
baweaver: ah, yes
16:10
Xeago has quit [Remote host closed the connection]
16:10
<
baweaver >
well, not the patch regex, the full IPv4, but you get the point
16:10
<
apeiros >
yupp, I did
16:10
<
ruby484 >
does anyone here know much about haml
16:10
<
baweaver >
nchambers: Eloquent Ruby, Ruby the Hard Way, The Well Grounded Rubyist, Ruby Monk
16:10
evidex has quit [Remote host closed the connection]
16:10
<
apeiros >
regexen don't free you from having to figure what precisely you want to match and what you don't want to match under which conditions :D
16:10
<
apeiros >
?links nchambers
16:10
NinjaPanzer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:10
<
nchambers >
thanks!
16:11
<
baweaver >
you and your fancy links
16:11
<
apeiros >
ruby484: "an even/odd table" doesn't really tell me what problem you run into
16:11
<
iamarobot >
baweaver, how would I use yours to assign the IP addresses? primary, secondary = string.lines.split(/: +/).map { |(_,last)| last.strip } doesn't work for me
16:11
<
apeiros >
ruby484: I do those in css, and haml won't give any additional problems with that…
16:11
malconis has quit [Ping timeout: 260 seconds]
16:12
malconis has joined #ruby
16:12
B4daBing73 has quit [Quit: Leaving]
16:12
nodejunkie has joined #ruby
16:12
<
baweaver >
>> "Primary IP address: 192.168.0.1\nSecondary IP address: 192.168.0.2".lines.map { |line| line.split(/: */).last.chomp }
16:13
* baweaver
*really* needs coffee
16:13
malconis has quit [Remote host closed the connection]
16:13
<
iamarobot >
baweaver: thanks!
16:13
andikr has quit [Remote host closed the connection]
16:13
bmf has joined #ruby
16:13
mistermo_ has quit [Ping timeout: 260 seconds]
16:13
<
baweaver >
well off I go, be back later.
16:13
OTORelic has quit [Ping timeout: 264 seconds]
16:13
<
iamarobot >
thanks for your help, baweaver and apeiros. Very much appreciated. I'll go read up on this stuff
16:13
edwinvdgraaf has quit [Read error: Connection reset by peer]
16:13
malconis has joined #ruby
16:13
iamarobot has quit [Quit: Page closed]
16:13
<
apeiros >
?coffee baweaver
16:13
<
ruby[bot] >
baweaver: here's a coffee, you seem to need it: ☕
16:14
edwinvdgraaf has joined #ruby
16:14
<
baweaver >
of course you do
16:14
nettoweb has joined #ruby
16:14
<
baweaver >
?cookie baweaver
16:14
<
ruby[bot] >
baweaver: here's your cookie:
16:14
<
baweaver >
and with that I'm off
16:15
baweaver has quit [Remote host closed the connection]
16:15
idletask has quit [Ping timeout: 264 seconds]
16:15
BTRE has quit [Quit: Leaving]
16:15
binaryplease1 is now known as binaryplease
16:17
dionysus69 has quit [Ping timeout: 260 seconds]
16:18
william3 has quit [Remote host closed the connection]
16:18
william3 has joined #ruby
16:19
edwinvdgraaf has quit [Ping timeout: 276 seconds]
16:19
nofacade has quit [Read error: Connection reset by peer]
16:19
dANOKELOFF has quit []
16:20
nofacade has joined #ruby
16:20
szulak has joined #ruby
16:21
diegoviola has joined #ruby
16:22
Guest64052 has quit [Remote host closed the connection]
16:22
Xeago has joined #ruby
16:23
idletask has joined #ruby
16:24
ruby484 has quit [Quit: Page closed]
16:24
marens has joined #ruby
16:24
ellen_ has quit [Quit: Connection closed for inactivity]
16:25
mistermocha has joined #ruby
16:26
mistermocha has quit [Remote host closed the connection]
16:27
mistermocha has joined #ruby
16:27
pandaant has quit [Quit: Lost terminal]
16:27
william3 has quit [Ping timeout: 246 seconds]
16:28
gigetoo has quit [Ping timeout: 244 seconds]
16:29
gigetoo has joined #ruby
16:29
Alayde has joined #ruby
16:30
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:30
cabargas has joined #ruby
16:31
Mon_Ouie has joined #ruby
16:31
perlgod has joined #ruby
16:31
SCHAAP137 has joined #ruby
16:31
perlgod has quit [Max SendQ exceeded]
16:32
cabargas has quit [Client Quit]
16:32
perlgod has joined #ruby
16:32
perlgod has quit [Client Quit]
16:32
ramfjord has joined #ruby
16:32
perlgod has joined #ruby
16:32
rclsilver has joined #ruby
16:32
senayar has quit []
16:33
PedramT has joined #ruby
16:33
Guest56641 has joined #ruby
16:33
<
rclsilver >
hllo, i've an array of dicts, and i would like to get items which respects this condition: v["environments"].empty?
16:33
<
rclsilver >
what is the best way to achieve this?
16:34
Devalo has quit [Remote host closed the connection]
16:35
mr_robot_ has joined #ruby
16:35
OTORelic has joined #ruby
16:35
mr_robot_ has quit [Client Quit]
16:36
<
yxhuvud >
rclsilver, some_array.select(&:empty?)
16:37
<
rclsilver >
ununsed_versions = all_versions.collect! { |v| v if v["environment_ids"].empty? } # if found this, and it works. this is a good way?
16:37
<
yxhuvud >
or some_array.select {|v| v['environments'].empty? }
16:37
PedramT has quit [Ping timeout: 264 seconds]
16:37
<
yxhuvud >
a bit redundant, but sure.
16:38
<
rclsilver >
select needs to have "true" to keep it in array, then, select! { |v| v["environment_ids"].empty? } should also works
16:39
noService has joined #ruby
16:40
blackmesa has quit [Ping timeout: 276 seconds]
16:40
ramfjord has quit [Ping timeout: 276 seconds]
16:42
dhollinger has joined #ruby
16:45
babblebre has joined #ruby
16:45
aufi has quit [Ping timeout: 240 seconds]
16:46
agentmee1kat is now known as agentmeerkat
16:49
CausaMortis has joined #ruby
16:49
jero__ has quit [Ping timeout: 244 seconds]
16:49
symm- has joined #ruby
16:50
anisha has joined #ruby
16:50
e4xit has joined #ruby
16:50
madgen has quit [Ping timeout: 276 seconds]
16:50
Xeago has quit [Read error: Connection reset by peer]
16:51
bronson has joined #ruby
16:51
infra-red has joined #ruby
16:51
Marsupermammal has joined #ruby
16:53
drptbl_ has joined #ruby
16:53
petertretyakov has joined #ruby
16:54
diegoviola has quit [Quit: WeeChat 1.4]
16:54
tomchapin has joined #ruby
16:54
TomyWork has quit [Ping timeout: 244 seconds]
16:55
rodfersou has joined #ruby
16:55
petertretyakov has quit [Client Quit]
16:56
pawnbox has quit [Remote host closed the connection]
16:56
treehug88 has joined #ruby
16:56
tvw has quit [Remote host closed the connection]
16:57
drptbl has quit [Ping timeout: 276 seconds]
16:57
akkmaxon has quit [Ping timeout: 246 seconds]
16:58
pawnbox has joined #ruby
17:00
agentmeerkat has quit [Ping timeout: 260 seconds]
17:02
skislak has quit [Ping timeout: 248 seconds]
17:02
davedev24 has joined #ruby
17:03
davedev2_ has quit [Ping timeout: 260 seconds]
17:03
evidex has joined #ruby
17:04
svkurowski has quit [Remote host closed the connection]
17:04
VeryBewitching has joined #ruby
17:04
<
VeryBewitching >
o/
17:04
blaxter has quit [Read error: Connection reset by peer]
17:05
svkurowski has joined #ruby
17:05
ChiefAlexander has quit [Read error: Connection reset by peer]
17:06
ChiefAlexander has joined #ruby
17:06
Guest78388 has quit [Quit: Leaving]
17:07
agentmeerkat has joined #ruby
17:10
Elysia has quit [Ping timeout: 248 seconds]
17:10
Snowy has quit [Remote host closed the connection]
17:11
<
zacts >
hi rubyists
17:11
Zarthus has quit [Quit: I can't go to hell. I'm all out of vacation days.]
17:11
St1gma has quit [Ping timeout: 264 seconds]
17:12
rodferso1 has joined #ruby
17:12
shinnya has joined #ruby
17:12
Kilo`byte has quit [Ping timeout: 260 seconds]
17:12
Zarthus has joined #ruby
17:13
St1gma has joined #ruby
17:13
Kilo`byte has joined #ruby
17:15
rodfersou has quit [Ping timeout: 268 seconds]
17:15
codecop has joined #ruby
17:15
baweaver has joined #ruby
17:15
dbohdan has quit [Ping timeout: 276 seconds]
17:16
aegis3121 has joined #ruby
17:16
dbohdan has joined #ruby
17:16
edwinvdgraaf has joined #ruby
17:17
LoneHermit has joined #ruby
17:18
PedramT has joined #ruby
17:18
finisherr has joined #ruby
17:18
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
17:19
karapetyan has joined #ruby
17:20
hollywood has quit [Ping timeout: 240 seconds]
17:20
karapetyan has quit [Remote host closed the connection]
17:20
edwinvdgraaf has quit [Ping timeout: 244 seconds]
17:20
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:20
Diabolik has joined #ruby
17:21
Kilo`byte has quit [Ping timeout: 248 seconds]
17:21
PedramT has quit [Remote host closed the connection]
17:21
baweaver has quit [Ping timeout: 244 seconds]
17:22
LoneHermit has quit [Ping timeout: 248 seconds]
17:22
dbohdan has quit [Ping timeout: 240 seconds]
17:22
merida has joined #ruby
17:22
spider-mario has joined #ruby
17:22
[Butch]_ has joined #ruby
17:22
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:22
Gasher has quit [Ping timeout: 244 seconds]
17:23
mikecmpbll has joined #ruby
17:23
funnel has quit [Ping timeout: 264 seconds]
17:23
dbohdan has joined #ruby
17:23
St1gma has quit [Ping timeout: 264 seconds]
17:23
Zarthus has quit [Quit: I can't go to hell. I'm all out of vacation days.]
17:24
[Butch] has quit [Ping timeout: 240 seconds]
17:24
[Butch]_ is now known as [Butch]
17:25
merida_ has quit [Ping timeout: 248 seconds]
17:25
Diabolik has quit [Ping timeout: 246 seconds]
17:27
Regulati_ has joined #ruby
17:27
czerasz has quit [Ping timeout: 260 seconds]
17:27
dbohdan has quit [Ping timeout: 260 seconds]
17:28
ChiefAlexander has quit [Remote host closed the connection]
17:28
ChiefAlexander has joined #ruby
17:29
dbohdan has joined #ruby
17:29
svkurowski has quit [Remote host closed the connection]
17:29
hollywood has joined #ruby
17:29
svkurowski has joined #ruby
17:29
DoubleMalt has quit [Remote host closed the connection]
17:29
funnel has joined #ruby
17:30
RegulationD has quit [Ping timeout: 240 seconds]
17:30
dopie has joined #ruby
17:30
Diabolik has joined #ruby
17:30
Zarthus has joined #ruby
17:31
Kilo`byte has joined #ruby
17:31
chouhoulis has joined #ruby
17:32
thisirs has quit [Quit: ERC (IRC client for Emacs 25.1.50.10)]
17:33
thisirs has joined #ruby
17:33
Elysia has joined #ruby
17:34
Mon_Ouie has quit [Quit: WeeChat 1.4]
17:34
Lomex has joined #ruby
17:34
Xeago has joined #ruby
17:35
baweaver has joined #ruby
17:35
Regulati_ has quit [Remote host closed the connection]
17:35
william3 has joined #ruby
17:35
Devalo has joined #ruby
17:35
St1gma has joined #ruby
17:35
blackmesa has joined #ruby
17:35
anisha has quit [Quit: This computer has gone to sleep]
17:35
evie_hammond has joined #ruby
17:36
Gasher has joined #ruby
17:36
Zai00 has joined #ruby
17:36
PedramT has joined #ruby
17:37
JakFrist has joined #ruby
17:37
cabargas has joined #ruby
17:38
Ishido has joined #ruby
17:38
cabargas has quit [Client Quit]
17:39
Mia has joined #ruby
17:39
Mia has quit [Changing host]
17:39
Mia has joined #ruby
17:39
Devalo has quit [Ping timeout: 244 seconds]
17:41
baweaver has quit [Remote host closed the connection]
17:41
Zai00 has quit [Ping timeout: 260 seconds]
17:41
shinnya has quit [Ping timeout: 244 seconds]
17:41
blackmesa has quit [Ping timeout: 246 seconds]
17:41
infernix has quit [Ping timeout: 264 seconds]
17:42
Cooooo has joined #ruby
17:45
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:45
St1gma has quit [Ping timeout: 264 seconds]
17:45
blandflakes_ has joined #ruby
17:45
blandflakes has quit [Disconnected by services]
17:45
blandflakes_ is now known as blandflakes
17:45
bruno- has quit [Read error: Connection reset by peer]
17:46
baweaver has joined #ruby
17:46
bruno- has joined #ruby
17:46
merida has quit [Remote host closed the connection]
17:46
Cohedrin has joined #ruby
17:48
St1gma has joined #ruby
17:48
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:48
infra-red has quit [Remote host closed the connection]
17:49
ascarter has joined #ruby
17:50
ascarter has quit [Client Quit]
17:50
ascarter has joined #ruby
17:51
Marsupermammal has joined #ruby
17:52
chouhoulis has quit [Remote host closed the connection]
17:52
chouhoulis has joined #ruby
17:53
firstdayonthejob has joined #ruby
17:53
kobain has joined #ruby
17:53
evidex has quit [Remote host closed the connection]
17:54
baweaver has quit [Remote host closed the connection]
17:54
karapetyan has joined #ruby
17:58
skade has joined #ruby
18:00
Devbuenuel has joined #ruby
18:00
akkmaxon has joined #ruby
18:01
Devalo has joined #ruby
18:01
infernix has joined #ruby
18:02
finisherr has quit [Ping timeout: 276 seconds]
18:02
nobitanobi has quit [Remote host closed the connection]
18:02
kadoppe has joined #ruby
18:02
karapetyan has quit [Remote host closed the connection]
18:03
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:03
niftylettuce has joined #ruby
18:05
bronson has quit [Remote host closed the connection]
18:05
Xeago has quit [Remote host closed the connection]
18:06
GodFather has quit [Ping timeout: 276 seconds]
18:06
kadoppe has quit [Ping timeout: 248 seconds]
18:07
dmr8 has joined #ruby
18:07
duckpupp1 has joined #ruby
18:07
MagePsycho has joined #ruby
18:07
Snowy has joined #ruby
18:07
shadowjack has joined #ruby
18:07
Eiam_ has joined #ruby
18:07
jt__ has joined #ruby
18:08
cwenner has joined #ruby
18:08
duckpuppy has quit [Ping timeout: 244 seconds]
18:08
noService has quit [Ping timeout: 246 seconds]
18:08
mikecmpbll has joined #ruby
18:10
nodejunkie has quit [Ping timeout: 252 seconds]
18:10
baweaver has joined #ruby
18:12
leftpad has quit [Remote host closed the connection]
18:12
leftpad has joined #ruby
18:14
matp has quit [Remote host closed the connection]
18:14
SHyx0rmZ has quit [Remote host closed the connection]
18:14
jaruga__ has joined #ruby
18:14
yfeldblum has joined #ruby
18:15
sauvin has quit [Read error: Connection reset by peer]
18:15
ramfjord has joined #ruby
18:17
troulouliou_div2 has quit [Ping timeout: 276 seconds]
18:17
statelesscode has joined #ruby
18:19
tagaulap has quit [Quit: Connection closed for inactivity]
18:19
Es0teric has joined #ruby
18:19
the_drow has quit [Quit: This computer has gone to sleep]
18:20
idletask has quit [Ping timeout: 260 seconds]
18:20
matp has joined #ruby
18:21
Cohedrin has quit [Ping timeout: 248 seconds]
18:22
Marsupermammal has joined #ruby
18:22
nofxx has quit [Ping timeout: 252 seconds]
18:22
mdih has joined #ruby
18:23
CausaMortis_ has joined #ruby
18:23
rbennacer has joined #ruby
18:24
nofxx has joined #ruby
18:24
nofxx has joined #ruby
18:25
jero__ has joined #ruby
18:28
Cohedrin has joined #ruby
18:28
RegulationD has joined #ruby
18:29
infra-red has joined #ruby
18:29
freerobby has quit [Quit: Leaving.]
18:30
blackmesa has joined #ruby
18:31
finisherr has joined #ruby
18:32
sandelius has joined #ruby
18:32
baweaver has quit [Remote host closed the connection]
18:33
LastWhisper____ has joined #ruby
18:33
platzhirsch has joined #ruby
18:34
djbkd has joined #ruby
18:34
infernix has quit [Ping timeout: 248 seconds]
18:35
siaw has left #ruby [#ruby]
18:35
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:37
goglosh has joined #ruby
18:38
idletask has joined #ruby
18:38
NinjaPanzer has joined #ruby
18:39
skade has quit [Quit: Computer has gone to sleep.]
18:39
pawnbox has quit [Remote host closed the connection]
18:40
<
goglosh >
I noticed some functional things are awkward in ruby
18:40
<
goglosh >
like recursion! (at least, recursion on lists(arrays))
18:41
gigetoo has quit [Ping timeout: 248 seconds]
18:41
<
Papierkorb >
recursion is generally not too great on MRI. But .. what's wrong with #map?
18:41
nofxx has quit [Ping timeout: 244 seconds]
18:41
LaT0rtue has joined #ruby
18:41
LaT0rtue has quit [Client Quit]
18:42
bronson has joined #ruby
18:42
conta has quit [Ping timeout: 252 seconds]
18:42
abyx has quit [Ping timeout: 244 seconds]
18:42
gigetoo has joined #ruby
18:42
terlar has joined #ruby
18:43
abyx has joined #ruby
18:43
infra-re_ has joined #ruby
18:43
Guest56641 has quit [Remote host closed the connection]
18:43
platzhirsch has left #ruby [#ruby]
18:44
<
goglosh >
I needed something different
18:44
cdg has quit [Remote host closed the connection]
18:44
<
goglosh >
[1, 1, 2, 3, 3, 3].chunk #=> [[1, 1], [2], [3, 3, 3]]
18:45
<
goglosh >
i had to rewrite it in a stateful fashion
18:45
pawnbox has joined #ruby
18:45
<
goglosh >
I'm wondering if there's a cleaner (more idiomatic) way to do that
18:45
djbkd has quit [Remote host closed the connection]
18:45
<
Papierkorb >
"stateful fashion"?
18:45
bruno- has quit [Read error: Connection reset by peer]
18:45
<
goglosh >
lemme find the code
18:46
djbkd has joined #ruby
18:46
bruno- has joined #ruby
18:46
<
Papierkorb >
>> [1,1,2,3,3,3].group_by{|a| a}.values
18:46
Cohedrin has joined #ruby
18:46
<
Papierkorb >
like this?
18:47
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:47
blaxter has joined #ruby
18:47
djbkd has quit [Read error: Connection reset by peer]
18:47
<
goglosh >
Papierkorb: MAN! exactly like that
18:47
djbkd has joined #ruby
18:47
<
Papierkorb >
Happy to help
18:47
djbkd has quit [Read error: Connection reset by peer]
18:47
infra-red has quit [Ping timeout: 276 seconds]
18:47
<
goglosh >
I mean look at what I did
18:47
<
goglosh >
messy stuff
18:48
<
goglosh >
well not messy but, like, a waste of silicon
18:48
blandflakes has joined #ruby
18:48
<
Papierkorb >
goglosh: I didn't look too much at your gist, but beware that [1,2,1] will give you [[1,1], [2]]
18:49
infra-re_ has quit [Remote host closed the connection]
18:49
<
Papierkorb >
goglosh: What do you need that array for? Do you want to know how many each item appears in the array?
18:49
infra-red has joined #ruby
18:50
karmatr0n has quit [Ping timeout: 250 seconds]
18:50
<
goglosh >
Papierkorb: well the problem was 'finding the longest sequence of repeated elements in an array'
18:50
<
Papierkorb >
>> [1,3,1,2,3,3].group_by{|a| a}.values
18:50
djbkd has joined #ruby
18:51
<
Papierkorb >
goglosh: I take ^ is not what you want then?
18:51
<
goglosh >
yeah, it doesn't work for the problem
18:51
<
goglosh >
I come from functional land
18:51
<
goglosh >
it's my first time with OOP actually
18:51
karapetyan has joined #ruby
18:51
<
goglosh >
so maybe my approach of breaking it down into smaller problems is not exactly
18:51
<
goglosh >
is not as good here
18:52
<
Papierkorb >
goglosh: Is this an educational thing for you or what's the ulterior purpose?
18:52
<
goglosh >
it's didactic yeah
18:52
<
goglosh >
I'm learning the language
18:52
<
adaedra >
>> [1, 2, 2, 3, 3, 3].slice_when { |a, b| a != b }.to_a
18:53
cpruitt has joined #ruby
18:53
<
adaedra >
Fun fact: I just learned about slice_when :p
18:53
<
goglosh >
[1, 2, 1].slice_when { |a, b| a != b }.to_a
18:53
<
goglosh >
>> [1, 2, 1].slice_when { |a, b| a != b }.to_a
18:54
<
goglosh >
adaedra: that's great
18:54
<
Papierkorb >
>> [1,3,1,2,3,3].chunk{|a| a}.map{|item, list| [ item, list.size ]}
18:54
<
goglosh >
like, sometimes, it's hard to find EXACTLY what you were looking for
18:54
<
adaedra >
There's sometimes a bit too many methods in Ruby to keep track of all of them.
18:54
<
adaedra >
&ri Array#slice_when
18:55
karmatr0n has joined #ruby
18:55
<
goglosh >
even though you know it MUST be there
18:55
bronson has quit [Remote host closed the connection]
18:55
<
goglosh >
oh my ri is broken
18:55
Snowy is now known as Sn0wy
18:55
<
adaedra >
fix your ri? what's the problem?
18:55
<
goglosh >
'nothing known about Array'
18:56
* adaedra
feeds some more documentation to `derpy
18:56
<
adaedra >
pacman -S ruby-doc # iirc
18:56
<
`derpy >
om nom nom
18:56
jaruga__ has quit [Quit: jaruga__]
18:56
cpruitt has quit [Read error: Connection reset by peer]
18:56
<
goglosh >
I feel dumbnow
18:57
<
goglosh >
I was all over google and stackoverflow and even installed rvm
18:57
<
Papierkorb >
goglosh: Are you using ruby from Arch? I don't have that package installed and ri works just fine for me..
18:57
<
adaedra >
Ah, if you're using rvm, it's another story
18:57
<
goglosh >
no I'm not
18:57
infra-red has quit [Remote host closed the connection]
18:57
cpruitt has joined #ruby
18:57
<
goglosh >
I got rvm because all answers were about rvm
18:58
<
goglosh >
and tried rvm docs generate and it said "it doesn't work with non-rvm rubies"
18:58
infra-red has joined #ruby
18:58
<
goglosh >
okay then, I wiped the ruby package and used rvm install ruby-head
18:58
<
Papierkorb >
goglosh: on Arch, if you just want to have the latest ruby, just use ruby from the arch repo
18:58
<
goglosh >
ping! here's your fresh ruby install, to generate docs run rvm docs generate
18:58
<
goglosh >
okay I did, and again 'doesn't work with non-rvm rubies'
18:59
<
goglosh >
I went full autist and wiped it
18:59
<
adaedra >
Because you didn't rvm use, I'd say.
18:59
<
Papierkorb >
reloaded your shell and everything? RVM does some funky stuff
18:59
<
goglosh >
anyway ri works now as expected!
18:59
<
goglosh >
Papierkorb: oh... no
18:59
<
goglosh >
anyway, now it's all good and well thanks to
18:59
<
adaedra >
you're using the same database as `derpy does now, congrats!
19:00
rbennacer has quit [Remote host closed the connection]
19:00
<
goglosh >
I'm kind of a mess with computers tbh
19:00
<
adaedra >
yet you successfully installed an Arch Linux.
19:00
ascarter has joined #ruby
19:00
leftpad has quit [Ping timeout: 244 seconds]
19:01
nofacade has quit [Ping timeout: 276 seconds]
19:01
<
Papierkorb >
Means that at if nothing else, you can read documentation and thus you'll be perfectly fine
19:03
_stu_ has quit [Quit: _stu_]
19:03
<
goglosh >
anyway, thanks guys
19:03
noService has joined #ruby
19:03
noService has quit [Changing host]
19:03
noService has joined #ruby
19:05
elifoster has quit [Ping timeout: 248 seconds]
19:05
infernix has joined #ruby
19:06
davedev2_ has joined #ruby
19:07
davedev24 has quit [Ping timeout: 244 seconds]
19:07
ctarx has joined #ruby
19:08
whathapp_ has joined #ruby
19:08
idletask has quit [Ping timeout: 244 seconds]
19:09
whathapp_ has quit [Quit: Leaving...]
19:09
whathappens has joined #ruby
19:09
solars has joined #ruby
19:10
davedev2_ has quit [Read error: Connection reset by peer]
19:10
davedev24 has joined #ruby
19:10
Cohedrin_ has joined #ruby
19:10
<
Gasher >
hello, I've used RVM but I've heard I shouldn't and it began not to work, so I tried ruby-install, but there is no such command as "use". does it ONLY install select Ruby versions? is there another thing like this in which I can choose my Ruby version?
19:10
aegis3121 has quit [Ping timeout: 244 seconds]
19:11
perlgod_ has joined #ruby
19:11
aegis3121 has joined #ruby
19:12
perlgod_ has quit [Max SendQ exceeded]
19:12
<
smathy >
Gasher, chruby or rbenv
19:12
perlgod_ has joined #ruby
19:13
perlgod has quit [Ping timeout: 260 seconds]
19:13
perlgod_ is now known as perlgod
19:13
<
Gasher >
well someone told me those two, I found ruby-install and confused it with chruby
19:14
<
Gasher >
they are very similar in their readmes
19:14
Cohedrin has quit [Ping timeout: 276 seconds]
19:14
yfeldblum has quit [Ping timeout: 268 seconds]
19:15
anisha has joined #ruby
19:15
freerobby has joined #ruby
19:16
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:16
failshell has joined #ruby
19:17
Marsupermammal has joined #ruby
19:17
<
Gasher >
chruby requires ruby-install and it doesn't work, trying rbenv
19:17
<
smathy >
You need ruby-install too.
19:17
<
havenwood >
Gasher: chruby doesn't require ruby-install
19:17
perlgod has quit [Client Quit]
19:17
blackmesa has quit [Quit: WeeChat 1.4]
19:18
Cohedrin has joined #ruby
19:18
<
havenwood >
Gasher: chruby can switch between any Rubies, no matter how you've installed them
19:18
<
havenwood >
Gasher: ruby-install can install Rubies for chruby, RVM, rbenv or with no switcher at all
19:18
<
Gasher >
I have ruby-install at the moment, but I can't use chruby, the only command I have in the shell is chruby-exec
19:18
<
yxhuvud >
gasher: ruby-install
*only* installs rubies, and chruby
*only* changes between installed rubies.
19:19
baweaver has joined #ruby
19:19
perlgod has joined #ruby
19:19
<
Gasher >
I don't see the point of that
19:19
<
Gasher >
does rbenv both things?
19:19
perlgod has quit [Max SendQ exceeded]
19:19
blackmesa has joined #ruby
19:20
Cohedrin_ has quit [Ping timeout: 260 seconds]
19:21
<
adaedra >
rbenv is, like chruby, a tool to switch versions.
19:21
<
Gasher >
can I get a thing that just does both? Jeez
19:21
<
adaedra >
because you have, one some systems (example: Arch and AUR, OS X and homebrew) other ways to install different ruby versions.
19:22
<
adaedra >
chruby's not difficult to install though.
19:22
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
19:22
idletask has joined #ruby
19:23
<
Gasher >
I couldn't care less about them, they can use their own thing if they want
19:23
baweaver has quit [Ping timeout: 250 seconds]
19:24
yqt has joined #ruby
19:24
<
adaedra >
Ok, see you when you'll be calm.
19:25
shadoi has joined #ruby
19:25
<
Gasher >
I am calm, it's just the way I express myself
19:26
<
Gasher >
just stating a fact
19:26
BTRE has joined #ruby
19:26
mg^ has quit [Ping timeout: 248 seconds]
19:27
mg^ has joined #ruby
19:27
jpfuentes2 has joined #ruby
19:30
karapetyan has quit [Remote host closed the connection]
19:31
schemanic has joined #ruby
19:31
blackmesa has quit [Quit: WeeChat 1.4]
19:31
karapetyan has joined #ruby
19:31
dc4 has quit [Ping timeout: 264 seconds]
19:31
naftilos76 has joined #ruby
19:32
naftilos76 has quit [Read error: Connection reset by peer]
19:32
failshell has quit []
19:32
dionysus69 has joined #ruby
19:33
karapetyan has quit [Remote host closed the connection]
19:33
akkmaxon has quit [Ping timeout: 260 seconds]
19:33
karapetyan has joined #ruby
19:33
<
schemanic >
i've written it in other ruby files the same way and got it to work but I cant find out what's wrong
19:33
baweaver has joined #ruby
19:33
djbkd has quit [Remote host closed the connection]
19:34
OTORelic has quit [Ping timeout: 264 seconds]
19:34
GodFather has joined #ruby
19:35
<
adaedra >
I don't see a -o switch in your code.
19:35
<
schemanic >
I'm sorry adaedra. It's -C now.
19:35
<
schemanic >
It was -o before
19:35
jenrzzz has joined #ruby
19:35
karapetyan has quit [Remote host closed the connection]
19:36
pawnbox has quit [Remote host closed the connection]
19:36
pawnbox has joined #ruby
19:37
n008f4g_ has joined #ruby
19:37
blackmesa has joined #ruby
19:37
goglosh has quit [Quit: leaving]
19:37
<
adaedra >
shadeslayer: it looks like you're trying to access something as a hash when it's actually an array.
19:37
<
adaedra >
schemanic: ^
19:38
baweaver has quit [Ping timeout: 252 seconds]
19:38
<
schemanic >
right but the object is most definitely a hash
19:38
nando293921 has joined #ruby
19:38
<
schemanic >
also I'm not trying to access something, I'm trying to add a new key
19:38
<
schemanic >
as a subkey of a key that exists
19:39
jaequery has joined #ruby
19:39
<
adaedra >
from what I see
19:39
<
adaedra >
config[:assets][:custom_file_directory] would be the culprit
19:40
<
schemanic >
the value of that key is a path
19:40
<
schemanic >
as in 'x/y/z'
19:40
baweaver has joined #ruby
19:40
<
adaedra >
Ah, it's a string.
19:40
<
adaedra >
So close, yet so far.
19:40
akkmaxon has joined #ruby
19:40
PedramT has quit [Remote host closed the connection]
19:40
nobitanobi has joined #ruby
19:41
<
schemanic >
adaedra, so whats the issue then? I don't understand
19:41
Devbuenuel has quit [Ping timeout: 244 seconds]
19:41
<
schemanic >
Am I not allowed to have a key with it's own value, and then have subkeys of it?
19:41
<
adaedra >
>> "you"[:cant] = "do that"
19:41
Devalo has quit [Remote host closed the connection]
19:41
karapetyan has joined #ruby
19:41
<
schemanic >
I see, so to have subkeys, I cant have parent keys with values
19:42
<
schemanic >
makes sense
19:42
<
adaedra >
because you don't really have "subkeys" – the value of the parent is a hash.
19:42
Sn0wy has quit [Remote host closed the connection]
19:44
sq271 has quit [Quit: leaving]
19:45
dionysus69 has quit [Remote host closed the connection]
19:46
dionysus69 has joined #ruby
19:47
edwinvdgraaf has joined #ruby
19:47
<
schemanic >
That makes it much clearer thanks!
19:47
CausaMortis_ has quit [Ping timeout: 244 seconds]
19:47
CausaMortis has quit [Ping timeout: 244 seconds]
19:48
IrishGringo has quit [Ping timeout: 268 seconds]
19:48
FooMunki has quit [Quit: FooMunki]
19:49
FooMunki has joined #ruby
19:49
rodferso1 has quit [Read error: Connection reset by peer]
19:50
stannard has quit [Remote host closed the connection]
19:51
stannard has joined #ruby
19:51
edwinvdgraaf has quit [Ping timeout: 246 seconds]
19:51
rodfersou has joined #ruby
19:53
djbkd has joined #ruby
19:53
ur5us has joined #ruby
19:54
yfeldblum has joined #ruby
19:55
babblebre has quit [Quit: Connection closed for inactivity]
19:55
tomchapin has joined #ruby
19:55
dc4 has joined #ruby
19:56
ascarter has joined #ruby
19:58
trinaldi has quit [Quit: WeeChat 1.5-dev]
20:00
bmf has quit [Ping timeout: 260 seconds]
20:00
aeterne has joined #ruby
20:01
bruno- has quit [Read error: Connection reset by peer]
20:01
dopie has quit [Quit: Lost terminal]
20:01
bruno- has joined #ruby
20:01
dopie has joined #ruby
20:01
PedramT has joined #ruby
20:02
dopie has quit [Client Quit]
20:02
krz has quit [Read error: Connection reset by peer]
20:02
Musashi007 has joined #ruby
20:03
niftylettuce has quit [Quit: Connection closed for inactivity]
20:03
finisherr has quit [Quit: finisherr]
20:03
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
20:03
dopie has joined #ruby
20:03
baweaver has quit [Remote host closed the connection]
20:04
solars has quit [Ping timeout: 276 seconds]
20:06
duckpupp1 has quit [Ping timeout: 248 seconds]
20:06
<
elusiveother >
does ruby assume pass by reference?
20:06
PedramT has quit [Remote host closed the connection]
20:08
ChiefAlexander has quit [Remote host closed the connection]
20:10
xaxisx has joined #ruby
20:10
Musashi007 has quit [Quit: Musashi007]
20:11
Es0teric has quit [Quit: Computer has gone to sleep.]
20:11
Es0teric has joined #ruby
20:12
hahuang61 has quit [Read error: Connection reset by peer]
20:12
banister has joined #ruby
20:12
finisherr has joined #ruby
20:12
rbennacer has joined #ruby
20:13
Cohedrin_ has joined #ruby
20:14
dmr8 has quit [Quit: Leaving]
20:14
Rutix has joined #ruby
20:14
Rutix has quit [Changing host]
20:14
Rutix has joined #ruby
20:14
hahuang61 has joined #ruby
20:14
<
mozzarella >
you shouldn't think of it this way
20:14
failshell has joined #ruby
20:14
Macaveli has joined #ruby
20:15
<
mozzarella >
they're references to objects, not references to variables, if that makes sense to you
20:15
n008f4g_ has quit [Ping timeout: 260 seconds]
20:16
Cohedrin has quit [Ping timeout: 268 seconds]
20:16
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
20:16
baweaver has joined #ruby
20:16
idletask has quit [Ping timeout: 268 seconds]
20:17
<
elusiveother >
essentially the same thing
20:17
n008f4g_ has joined #ruby
20:17
Macaveli has quit [Client Quit]
20:17
<
elusiveother >
i was just wanting to know if a = 1, and b = a, if i edit b, will a be edited too?
20:17
<
elusiveother >
and it does appear so
20:18
tvw has joined #ruby
20:18
<
eam >
elusiveother: what do you mean "edit?"
20:18
<
mozzarella >
you can't edit it
20:18
<
eam >
with integers as you've just used in your example -- you cannot change them
20:18
<
elusiveother >
modify, reassign a value to, etc
20:18
cdg has joined #ruby
20:18
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
20:18
cdg has quit [Read error: Connection reset by peer]
20:18
johnmilton has quit [Remote host closed the connection]
20:18
<
elusiveother >
so ruby is "sometimes" pass by value
20:18
polishdub has quit [Quit: Leaving]
20:19
codecop has quit [Remote host closed the connection]
20:19
<
elusiveother >
depending on what data type the object is
20:19
cdg has joined #ruby
20:19
<
mozzarella >
that's not even what it means
20:19
<
aegis3121 >
not really.
20:19
<
elusiveother >
which kindof voids the whole everything is an object
20:19
<
mozzarella >
"pass by" is used when refering to functions
20:19
<
eam >
elusiveother: all variables are references
20:19
eljimbo has quit [Quit: This computer has gone to sleep]
20:19
<
eam >
when you assign you change the reference
20:20
<
eam >
you will never modify an object with =
20:20
<
mozzarella >
if you want to mutate an object, you need to call methods on it
20:20
<
elusiveother >
so how does ruby handle storing strings?
20:20
<
eam >
elusiveother: the object representing the integer 1 is going to confuse you a bit because it's a singleton
20:21
<
eam >
and it's immutable
20:21
<
mozzarella >
strings are mutable
20:21
<
eam >
accordingly, Fixnum has no methods which mutate
20:21
polishdub has joined #ruby
20:22
millerti has joined #ruby
20:22
<
ruby[bot] >
elusiveother: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use
https://gist.github.com
20:22
<
elusiveother >
is what was confusing me
20:22
MagePsycho has quit [Quit: MagePsycho]
20:23
<
eam >
elusiveother: assignment always changes the reference, it's not a method on the object and will not mutate anything
20:23
thistle has quit [Remote host closed the connection]
20:23
karapetyan has quit [Remote host closed the connection]
20:23
<
eam >
<< is a method on String and will mutate the object
20:23
banister has joined #ruby
20:23
rkazak has joined #ruby
20:23
PedramT has joined #ruby
20:24
sepp2k has quit [Quit: Leaving.]
20:24
<
elusiveother >
so all variables are just references to objects where it depends on the data type of the object if that object will be changed or if the variable will simply point to a new object
20:24
DroidBur_ has joined #ruby
20:25
<
eam >
"where it depends" -> if you're talking about = then it never depends
20:25
<
elusiveother >
what of integers though?
20:25
<
eam >
if you're talking about methods, they can mutate their receiver / self
20:26
<
eam >
well, a class can simply not define any methods that mutate self, right?
20:26
<
eam >
1.next returns a new object 2, but there is no 1.next!
20:26
<
eam >
which we might imagine would modify self, like the C ++ increment operator
20:27
Es0teric has quit [Quit: Computer has gone to sleep.]
20:27
<
eam >
x << "str" mutates x, but x += "str" which is the same as x = x + "str" does not mutate x
20:28
DroidBurgundy has quit [Ping timeout: 250 seconds]
20:28
<
eam >
elusiveother: one reason integers don't allow mutation of self is to allow a more efficient internal storage of their object type
20:28
nando293921 has quit [Ping timeout: 260 seconds]
20:28
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
20:28
karapetyan has joined #ruby
20:29
dopie has quit [Quit: Lost terminal]
20:29
dopie has joined #ruby
20:30
gigetoo has quit [Ping timeout: 252 seconds]
20:30
gigetoo has joined #ruby
20:31
thistle has joined #ruby
20:31
Disavowed has joined #ruby
20:31
Madplatypus has joined #ruby
20:31
Silox| has joined #ruby
20:31
stannard has quit [Remote host closed the connection]
20:32
mtkd has quit [Ping timeout: 260 seconds]
20:32
idletask has joined #ruby
20:32
<
Disavowed >
Evening all. Does Ruby use a peephole optimiser for compiling bytecode?
20:33
ekinmur has joined #ruby
20:33
dopie has quit [Read error: Connection reset by peer]
20:33
<
eam >
Disavowed: well, jruby can!
20:33
<
Disavowed >
eam: It can?!
20:34
<
Disavowed >
I've some googling to do!
20:34
<
eam >
provided it's running on a jvm that does it, sure
20:34
dopie has joined #ruby
20:34
kadoppe has joined #ruby
20:34
<
Disavowed >
eam: Fascinating! Thank you!
20:35
<
Disavowed >
eam: Can I infer from that answer that CRuby doesn't?
20:35
infra-re_ has joined #ruby
20:35
<
eam >
I don't believe it does, but I'm very far from an authority on those parts of the internals
20:36
thistle has quit [Ping timeout: 248 seconds]
20:36
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
20:36
cwenner has quit [Ping timeout: 244 seconds]
20:36
_stu_ has joined #ruby
20:37
n008f4g_ has quit [Ping timeout: 268 seconds]
20:37
baweaver has quit [Remote host closed the connection]
20:38
<
Disavowed >
eam: No that's fine, you've been great! You wouldn't happen to know if there's anything in Ruby's standard library to access Abstract Syntax Trees or bytecode would you?
20:38
infra-red has quit [Ping timeout: 268 seconds]
20:38
<
Disavowed >
It looks like I have to get a gem called AST for the former, but it feels like something that's probably native and I'm just too new to know about it!
20:39
DroidBur_ has quit []
20:39
gnufied has quit [Ping timeout: 276 seconds]
20:39
shadowjack has quit [Quit: Leaving]
20:39
ChiefAlexander has joined #ruby
20:40
kadoppe has quit [Ping timeout: 276 seconds]
20:41
ChiefAlexander has quit [Remote host closed the connection]
20:42
stannard has joined #ruby
20:42
nobitanobi has quit [Remote host closed the connection]
20:42
<
eam >
Disavowed: the only thing I've played with is ripper, and I'm not sure that's what you're after
20:43
PedramT has quit []
20:43
<
eam >
see: ruby -rpp -rripper -e'pp Ripper.sexp "[1,2,3]"'
20:43
Sn0wy has joined #ruby
20:44
CausaMortis_ has joined #ruby
20:44
CausaMortis has joined #ruby
20:44
flashpoint9 has quit [Remote host closed the connection]
20:44
baweaver has joined #ruby
20:44
stannard has quit [Remote host closed the connection]
20:44
<
Disavowed >
eam: This looks exactly what I'm after! Thank you so much!
20:45
mikeiniowa has quit [Ping timeout: 250 seconds]
20:45
PedramT has joined #ruby
20:45
p0p0pre7 has quit [Ping timeout: 246 seconds]
20:48
Sn0wy has quit [Ping timeout: 244 seconds]
20:51
Asher has quit [Quit: Leaving.]
20:51
<
eam >
happy to help
20:52
thistle has joined #ruby
20:52
xaxisx has quit [Quit: xaxisx]
20:52
polysics has quit [Remote host closed the connection]
20:52
thistle has quit [Client Quit]
20:53
n008f4g_ has joined #ruby
20:53
jdm has quit [Remote host closed the connection]
20:54
CausaMortis_ has quit [Ping timeout: 244 seconds]
20:54
CausaMortis has quit [Ping timeout: 244 seconds]
20:54
LoneHerm_ has joined #ruby
20:54
spider-mario has quit [Remote host closed the connection]
20:54
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
20:55
Asher has joined #ruby
20:55
nobitanobi has joined #ruby
20:55
al2o3-cr has quit [Quit: WeeChat 1.4 %t]
20:55
bronson has joined #ruby
20:55
stannard has joined #ruby
20:56
al2o3-cr has joined #ruby
20:58
dcunit3d has joined #ruby
20:58
LoneHerm_ has quit [Ping timeout: 260 seconds]
20:59
stannard has quit [Remote host closed the connection]
20:59
johnmilton has joined #ruby
20:59
blackmesa has quit [Quit: WeeChat 1.4]
21:00
bronson has quit [Ping timeout: 248 seconds]
21:00
dc4 has quit [Ping timeout: 264 seconds]
21:00
baweaver has quit [Remote host closed the connection]
21:00
siaw has joined #ruby
21:00
tax has quit [Ping timeout: 248 seconds]
21:01
siaw has left #ruby [#ruby]
21:01
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
21:02
Gasher^ has joined #ruby
21:03
failshell has quit [Remote host closed the connection]
21:03
karapetyan has quit [Remote host closed the connection]
21:03
johnmilton has quit [Ping timeout: 250 seconds]
21:04
jhack has quit [Quit: jhack]
21:04
karapetyan has joined #ruby
21:04
jhack has joined #ruby
21:04
icey has quit [Remote host closed the connection]
21:05
Gasher has quit [Ping timeout: 250 seconds]
21:08
flughafen has quit [Ping timeout: 268 seconds]
21:08
tvw has quit [Remote host closed the connection]
21:08
dionysus69 has quit [Ping timeout: 276 seconds]
21:08
madgen has joined #ruby
21:09
flughafen has joined #ruby
21:09
akkmaxon has quit [Ping timeout: 260 seconds]
21:09
Karix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:10
finisherr has quit [Quit: finisherr]
21:10
goodroot has quit [Ping timeout: 250 seconds]
21:11
yfeldblum has quit [Remote host closed the connection]
21:12
Eiam_ has joined #ruby
21:12
finisherr has joined #ruby
21:12
idletask has quit [Ping timeout: 244 seconds]
21:13
nobitanobi has quit []
21:13
anisha has quit [Quit: This computer has gone to sleep]
21:13
Cohedrin has joined #ruby
21:14
blackgoat has joined #ruby
21:14
Zai00 has joined #ruby
21:14
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:14
Cohedrin_ has quit [Ping timeout: 244 seconds]
21:15
ldnunes has quit [Quit: Leaving]
21:15
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:20
skade has joined #ruby
21:20
Don_John has joined #ruby
21:20
Don_John has quit [Remote host closed the connection]
21:20
diegoaguilar has quit [Read error: Connection reset by peer]
21:21
diegoaguilar has joined #ruby
21:22
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:22
idletask has joined #ruby
21:23
william3 has quit [Remote host closed the connection]
21:23
schemanic has quit [Ping timeout: 246 seconds]
21:24
hinbody has quit [Quit: leaving]
21:25
rkazak has quit [Ping timeout: 240 seconds]
21:26
PedramT has quit []
21:27
frankier has quit [Ping timeout: 240 seconds]
21:27
icey has joined #ruby
21:30
terminalrecluse has joined #ruby
21:30
ramortegui has quit [Quit: Ex-Chat]
21:30
william3 has joined #ruby
21:30
terminalrecluse has quit [Client Quit]
21:31
infra-re_ has quit [Remote host closed the connection]
21:31
stannard has joined #ruby
21:32
_stu_ has quit [Quit: _stu_]
21:32
bluOxigen_ has quit [Ping timeout: 244 seconds]
21:34
william3 has quit [Remote host closed the connection]
21:35
Begi has joined #ruby
21:36
aupadhye has quit [Ping timeout: 248 seconds]
21:36
Dimik has joined #ruby
21:36
stannard has quit [Ping timeout: 244 seconds]
21:36
czerasz has joined #ruby
21:37
flashpoint9 has joined #ruby
21:38
william3 has joined #ruby
21:39
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:42
flashpoint9 has quit [Remote host closed the connection]
21:42
Begi has quit [Read error: Connection reset by peer]
21:43
Es0teric has joined #ruby
21:43
VeryBewitching has quit [Quit: Konversation terminated!]
21:43
jmignault has quit [Ping timeout: 250 seconds]
21:43
william3 has quit [Ping timeout: 248 seconds]
21:43
icey has quit [Remote host closed the connection]
21:43
last_staff has quit [Quit: last_staff]
21:45
lkba has joined #ruby
21:46
banister has joined #ruby
21:48
icey has joined #ruby
21:48
aegis3121 has quit [Ping timeout: 244 seconds]
21:48
swills has quit [Ping timeout: 276 seconds]
21:50
cloaked1 has joined #ruby
21:50
cloaked1 has joined #ruby
21:50
yfeldblum has joined #ruby
21:52
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:53
Lomex has quit [Remote host closed the connection]
21:53
skade has quit [Quit: Computer has gone to sleep.]
21:54
skade has joined #ruby
21:54
flashpoint9 has joined #ruby
21:54
NinjaPanzer has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:57
rodfersou has quit [Quit: leaving]
21:57
Es0teric has quit [Quit: Computer has gone to sleep.]
21:58
kareeoleez has quit [Remote host closed the connection]
21:58
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:58
thisirs has quit [Ping timeout: 248 seconds]
22:01
baweaver has joined #ruby
22:01
Xeago has joined #ruby
22:02
bruno- has quit [Read error: Connection reset by peer]
22:02
SCHAAP137 has quit [Quit: Leaving]
22:02
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:02
bruno- has joined #ruby
22:03
dvinciguerra_ has joined #ruby
22:05
baweaver has quit [Ping timeout: 248 seconds]
22:06
skade has quit [Quit: Computer has gone to sleep.]
22:06
firstdayonthejob has quit [Ping timeout: 246 seconds]
22:07
rbennacer has quit [Remote host closed the connection]
22:07
dvinciguerra has quit [Ping timeout: 260 seconds]
22:07
flashpoint9 has quit [Remote host closed the connection]
22:08
dhollinger has quit [Quit: WeeChat 1.4]
22:08
baweaver has joined #ruby
22:09
tax has joined #ruby
22:11
Keltia has quit [Changing host]
22:11
Keltia has joined #ruby
22:16
[Butch] has quit [Quit: I'm out . . .]
22:16
Disavowed has quit [Quit: leaving]
22:16
freerobby has quit [Ping timeout: 246 seconds]
22:16
nando293921 has joined #ruby
22:16
freerobby has joined #ruby
22:17
Es0teric has joined #ruby
22:17
Es0teric has quit [Max SendQ exceeded]
22:17
Es0teric has joined #ruby
22:17
Es0teric has quit [Max SendQ exceeded]
22:18
Es0teric has joined #ruby
22:19
charliesome_ has joined #ruby
22:20
d0nn1e has quit [Ping timeout: 250 seconds]
22:20
d5sx43 has joined #ruby
22:20
n008f4g_ has quit [Ping timeout: 276 seconds]
22:21
fowl has joined #ruby
22:21
<
fowl >
I sshed into my computer from my phone, what do I do next
22:21
<
agent_white >
DANCE
22:22
Gasher^ has quit [Ping timeout: 260 seconds]
22:23
karmatr0n has quit [Ping timeout: 260 seconds]
22:23
d0nn1e has joined #ruby
22:23
devbug has joined #ruby
22:24
chouhoulis has quit [Remote host closed the connection]
22:24
<
fowl >
It says commandment not found
22:24
dxb has quit [Quit: leaving]
22:24
jaequery has joined #ruby
22:25
<
fowl >
This is templeos support channel right
22:25
jhack has quit [Quit: jhack]
22:25
jaequery has quit [Max SendQ exceeded]
22:25
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:26
jaequery has joined #ruby
22:26
jaequery has quit [Max SendQ exceeded]
22:26
IrishGringo has joined #ruby
22:27
jaequery has joined #ruby
22:32
daivyk has joined #ruby
22:32
ChiefAlexander has joined #ruby
22:33
edwinvdgraaf has joined #ruby
22:33
dopie has quit [Quit: Lost terminal]
22:33
dopie has joined #ruby
22:35
terlar has quit [Ping timeout: 276 seconds]
22:35
ChiefAlexander_ has joined #ruby
22:36
Gasher has joined #ruby
22:36
Waqas has quit [Ping timeout: 244 seconds]
22:36
kirun has quit [Remote host closed the connection]
22:38
edwinvdgraaf has quit [Ping timeout: 268 seconds]
22:38
ChiefAlexander has quit [Ping timeout: 268 seconds]
22:38
zenlot6 has joined #ruby
22:39
percussionoid has joined #ruby
22:40
polishdub has quit [Quit: Leaving]
22:40
william3 has joined #ruby
22:40
zenlot has quit [Ping timeout: 260 seconds]
22:43
s1kx has joined #ruby
22:44
william3 has quit [Ping timeout: 252 seconds]
22:45
percussionoid has quit [Ping timeout: 250 seconds]
22:46
IrishGringo has quit [Ping timeout: 246 seconds]
22:47
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:47
Sn0wy has joined #ruby
22:48
najam has joined #ruby
22:48
najam has quit [Client Quit]
22:51
biberu has quit [Read error: Connection reset by peer]
22:51
Silox| has quit [Quit: Connection closed for inactivity]
22:52
Sn0wy has quit [Ping timeout: 268 seconds]
22:55
baweaver has quit [Remote host closed the connection]
22:55
LoneHerm_ has joined #ruby
22:56
najam has joined #ruby
22:56
Ox0dea has joined #ruby
22:57
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:58
jt__ has quit [Remote host closed the connection]
22:59
jt__ has joined #ruby
22:59
ChiefAlexander_ has quit [Read error: Connection reset by peer]
22:59
ChiefAlexander has joined #ruby
23:00
LoneHerm_ has quit [Ping timeout: 276 seconds]
23:00
skweek has joined #ruby
23:01
mistermo_ has joined #ruby
23:01
bruno- has quit [Read error: Connection reset by peer]
23:01
solocshaw has joined #ruby
23:01
mistermo_ has quit [Remote host closed the connection]
23:02
bruno- has joined #ruby
23:02
NinjaPanzer has joined #ruby
23:02
mistermo_ has joined #ruby
23:02
ur5us has quit [Remote host closed the connection]
23:03
mistermocha has quit [Ping timeout: 276 seconds]
23:03
jaequery has joined #ruby
23:04
jt__ has quit [Ping timeout: 260 seconds]
23:04
jaequery has quit [Client Quit]
23:04
freerobby has quit [Ping timeout: 244 seconds]
23:04
freerobby has joined #ruby
23:05
NinjaPanzer is now known as Invisible_NinjaP
23:05
ChiefAlexander has quit [Remote host closed the connection]
23:06
hinbody has joined #ruby
23:06
Invisible_NinjaP is now known as NinjaPanzer
23:07
flashpoint9 has joined #ruby
23:12
flashpoint9 has quit [Remote host closed the connection]
23:13
fir3starter has quit [Ping timeout: 276 seconds]
23:14
agent_white has quit [Quit: goinhome]
23:15
NinjaPanzer is now known as Invisible_NinjaP
23:15
_stu_ has joined #ruby
23:17
jt__ has joined #ruby
23:18
Invisible_NinjaP is now known as NinjaPanzer
23:18
DLSteve has joined #ruby
23:19
htmldrum has joined #ruby
23:19
ur5us has joined #ruby
23:19
kies has quit [Ping timeout: 244 seconds]
23:20
ramfjord has quit [Ping timeout: 240 seconds]
23:20
Sn0wy has joined #ruby
23:20
NinjaPanzer is now known as Invisible_NinjaP
23:21
_stu_ has quit [Quit: _stu_]
23:23
devbug has quit [Quit: Lances at dawn!]
23:25
gnufied has joined #ruby
23:25
Invisible_NinjaP is now known as NinjaPanzer
23:26
freerobby1 has joined #ruby
23:26
freerobby has quit [Read error: Connection reset by peer]
23:28
baweaver has joined #ruby
23:29
ekinmur has joined #ruby
23:29
ekinmur has quit [Client Quit]
23:30
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:31
workmad3 has quit [Ping timeout: 264 seconds]
23:31
tomchapin has joined #ruby
23:34
rahult has joined #ruby
23:34
NinjaPanzer is now known as Invisible_NinjaP
23:34
jhack has joined #ruby
23:35
abyx has quit [Ping timeout: 268 seconds]
23:36
Invisible_NinjaP is now known as NinjaPanzer
23:39
darkf has joined #ruby
23:40
zenlot has joined #ruby
23:41
zenlot6 has quit [Ping timeout: 260 seconds]
23:41
Ox0dea is now known as Ox0deb
23:41
william3 has joined #ruby
23:42
Balzrael has quit [Remote host closed the connection]
23:42
yqt has quit [Ping timeout: 260 seconds]
23:43
flashpoint9 has joined #ruby
23:43
rkazak has joined #ruby
23:44
e has quit [Quit: <uptime> >quotes himself in his quit message]
23:45
eggoez has quit [Ping timeout: 264 seconds]
23:45
mistermo_ has quit [Remote host closed the connection]
23:46
william3 has quit [Ping timeout: 248 seconds]
23:46
mistermocha has joined #ruby
23:48
diegoaguilar has quit [Remote host closed the connection]
23:48
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
23:49
madgen has quit [Ping timeout: 244 seconds]
23:50
diegoaguilar has joined #ruby
23:51
CloCkWeRX has joined #ruby
23:51
flashpoint9 has quit [Remote host closed the connection]
23:52
AmiMoench has joined #ruby
23:52
Ropeney has joined #ruby
23:52
Es0teric has quit [Quit: Computer has gone to sleep.]
23:52
swills has joined #ruby
23:53
cpruitt has quit [Quit: cpruitt]
23:53
Zai00 has quit [Quit: Zai00]
23:54
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
23:55
daytime has joined #ruby
23:56
wolffles has joined #ruby
23:57
diegoaguilar has quit [Quit: Leaving]
23:58
banister has quit [Remote host closed the connection]
23:59
banister has joined #ruby