00:03
laszlokorte has quit [Remote host closed the connection]
00:03
laszlokorte has joined #ruby-lang
00:05
Cherrum has quit [Read error: Connection reset by peer]
00:06
Cherrum has joined #ruby-lang
00:06
gmci has quit [Read error: Connection reset by peer]
00:08
fgomez has joined #ruby-lang
00:09
gmci has joined #ruby-lang
00:14
jxie has quit [Ping timeout: 246 seconds]
00:16
jxie has joined #ruby-lang
00:19
Defusal has joined #ruby-lang
00:20
robbyoconnor has quit [Read error: Connection reset by peer]
00:20
robbyoconnor has joined #ruby-lang
00:21
robbyoconnor has quit [Read error: Connection reset by peer]
00:21
robbyoconnor has joined #ruby-lang
00:23
robbyoconnor has quit [Read error: Connection reset by peer]
00:23
robbyoconnor has joined #ruby-lang
00:24
qwerxy has quit [Quit: offski]
00:26
TheNullByte has quit [Quit: TheNullByte]
00:27
TheNullByte has joined #ruby-lang
00:27
esad has joined #ruby-lang
00:27
CarlB_the_great has quit [Remote host closed the connection]
00:30
CarlB_the_great has joined #ruby-lang
00:33
sepp2k1 has quit [Remote host closed the connection]
00:37
banisterfiend has joined #ruby-lang
00:41
WillMarshall has joined #ruby-lang
00:43
havenn has joined #ruby-lang
00:44
zarubin has quit []
00:46
Hakon has quit [Quit: Leaving...]
00:48
Jake232 has quit [Ping timeout: 244 seconds]
00:48
havenn has quit [Remote host closed the connection]
00:50
CarlB_the_great has quit [Remote host closed the connection]
00:52
malev has quit [Remote host closed the connection]
00:54
chimkan has quit [Remote host closed the connection]
00:54
chimkan has joined #ruby-lang
00:57
banisterfiend has quit [Remote host closed the connection]
00:59
ryanf has joined #ruby-lang
01:00
andoyasushi has joined #ruby-lang
01:00
tenderlove has quit [Remote host closed the connection]
01:02
tenderlove has joined #ruby-lang
01:04
ivanoats has joined #ruby-lang
01:04
ivanoats has joined #ruby-lang
01:04
chimkan has quit [Quit: chimkan]
01:05
chimkan has joined #ruby-lang
01:09
CarlB_the_great has joined #ruby-lang
01:11
bougyman has joined #ruby-lang
01:13
CarlB_th_ has joined #ruby-lang
01:14
CarlB_the_great has quit [Ping timeout: 264 seconds]
01:20
tomzx_ has joined #ruby-lang
01:23
CarlB_th_ has quit []
01:28
t36717 has quit [Remote host closed the connection]
01:28
t96116 has joined #ruby-lang
01:31
kain has quit [Remote host closed the connection]
01:31
kain has joined #ruby-lang
01:31
dous has quit [Remote host closed the connection]
01:32
dous has joined #ruby-lang
01:32
dous has quit [Changing host]
01:32
dous has joined #ruby-lang
01:36
dous has quit [Ping timeout: 246 seconds]
01:39
billyoc has joined #ruby-lang
01:42
TheNullByte has quit [Quit: TheNullByte]
01:45
savage- has joined #ruby-lang
01:46
lcdhoffman has quit [Quit: lcdhoffman]
01:48
Tearan has joined #ruby-lang
01:55
Tearan has quit [Quit: Sleepy Badger....]
01:57
kingCrawlerx has quit [Quit: Computer has gone to sleep]
01:59
Dreamer3 has joined #ruby-lang
02:03
lsegal has joined #ruby-lang
02:04
jxie has quit [Quit: leaving]
02:06
kain has quit [Quit: exit]
02:08
guns has joined #ruby-lang
02:08
tjadc has quit [Remote host closed the connection]
02:24
Dreamer3 has quit [Quit: Leaving...]
02:24
Dreamer3 has joined #ruby-lang
02:25
Dreamer3 has quit [Client Quit]
02:25
Dreamer3 has joined #ruby-lang
02:35
jxie has joined #ruby-lang
02:37
jxie has quit [Read error: Connection reset by peer]
02:40
jxie has joined #ruby-lang
02:44
jxie_ has joined #ruby-lang
02:45
jxie has quit [Ping timeout: 268 seconds]
02:54
r0bby has joined #ruby-lang
02:55
robbyoconnor has quit [Ping timeout: 240 seconds]
02:56
r0bby has quit [Excess Flood]
02:57
r0bby has joined #ruby-lang
02:57
r0bby has quit [Read error: Connection reset by peer]
02:57
r0bby has joined #ruby-lang
02:58
r0bby has quit [Read error: Connection reset by peer]
02:58
r0bby has joined #ruby-lang
02:59
tomzx_ has quit [Ping timeout: 276 seconds]
02:59
r0bby has quit [Client Quit]
02:59
plusk has joined #ruby-lang
03:07
gsav has joined #ruby-lang
03:08
plusk has left #ruby-lang [#ruby-lang]
03:11
billyoc has quit [Read error: Connection reset by peer]
03:12
billyoc has joined #ruby-lang
03:12
arooni-mobile has joined #ruby-lang
03:15
andoyasushi_ has joined #ruby-lang
03:16
CapnKernul has quit [Quit: Leaving...]
03:17
andoyasushi has quit [Ping timeout: 255 seconds]
03:24
gsav has quit [Read error: Connection reset by peer]
03:27
CarlB_the_great has joined #ruby-lang
03:35
CapnKernul has joined #ruby-lang
03:35
andoyasushi_ has quit [Ping timeout: 252 seconds]
03:36
CapnKernul has quit [Client Quit]
03:41
anjen has joined #ruby-lang
03:43
andoyasushi has joined #ruby-lang
03:49
anjen has quit [Quit: anjen]
03:51
jxie has joined #ruby-lang
03:52
jxie_ has quit [Ping timeout: 240 seconds]
03:52
kingCrawlerx has joined #ruby-lang
03:53
gmci has quit [Quit: Computer has gone to sleep.]
03:53
andoyasushi has quit [Ping timeout: 244 seconds]
03:54
gsav has joined #ruby-lang
03:54
arooni-mobile has quit [Ping timeout: 246 seconds]
03:59
darkf has quit [Ping timeout: 246 seconds]
03:59
gsav has quit [Read error: Connection reset by peer]
04:00
gsav has joined #ruby-lang
04:01
darkf has joined #ruby-lang
04:06
Axsuul has quit [Remote host closed the connection]
04:07
andoyasushi has joined #ruby-lang
04:07
t96116 has quit [Remote host closed the connection]
04:07
t73417 has joined #ruby-lang
04:07
banisterfiend has joined #ruby-lang
04:12
andoyasushi has quit [Ping timeout: 272 seconds]
04:20
S2kx has quit [Read error: Connection reset by peer]
04:20
S2kx has joined #ruby-lang
04:20
jxie has quit [Read error: Connection reset by peer]
04:21
Nisstyre_ has quit [Quit: Leaving]
04:26
jxie has joined #ruby-lang
04:29
burgestrand has quit [Quit: Leaving.]
04:31
Nisstyre_ has joined #ruby-lang
04:35
CarlB_the_great has quit [Remote host closed the connection]
04:39
woollyams has joined #ruby-lang
04:42
Axsuul has joined #ruby-lang
04:42
ivanoats has quit [Remote host closed the connection]
04:44
nXqd has joined #ruby-lang
04:52
CarlB_th_ has joined #ruby-lang
04:55
CarlB_th_ has quit [Remote host closed the connection]
05:02
kingCrawlerx has quit [Quit: Computer has gone to sleep]
05:03
fgomez has quit [Remote host closed the connection]
05:04
cantonic has quit [Ping timeout: 245 seconds]
05:05
justinmcp has quit [Ping timeout: 245 seconds]
05:07
justinmcp has joined #ruby-lang
05:10
justinmc_ has joined #ruby-lang
05:11
justinm__ has joined #ruby-lang
05:11
robbyoconnor has joined #ruby-lang
05:13
justinmcp has quit [Ping timeout: 240 seconds]
05:14
justinmc_ has quit [Ping timeout: 244 seconds]
05:20
WillMarshall has quit [Quit: Computer has gone to sleep.]
05:24
burgestrand has joined #ruby-lang
05:24
burgestrand1 has joined #ruby-lang
05:24
burgestrand1 has quit [Remote host closed the connection]
05:25
burgestrand1 has joined #ruby-lang
05:25
billyoc has quit [Quit: nap time]
05:28
burgestrand has quit [Ping timeout: 252 seconds]
05:29
s1n4 has joined #ruby-lang
05:34
dc5ala has joined #ruby-lang
05:38
sailias has quit []
05:38
krz has joined #ruby-lang
05:39
mistym has quit [Remote host closed the connection]
05:45
s1n4 has quit [Quit: Lost terminal]
05:45
|Vargas| has joined #ruby-lang
05:45
|Vargas| has quit [Changing host]
05:45
|Vargas| has joined #ruby-lang
05:46
burgestrand1 is now known as burgestrand
05:50
fgomez has joined #ruby-lang
05:51
stepnem has joined #ruby-lang
05:52
nXqd has quit [Ping timeout: 240 seconds]
05:55
JoelMcCracken has joined #ruby-lang
05:58
areil has joined #ruby-lang
05:59
cantonic has joined #ruby-lang
06:02
burgestrand has quit [Quit: Leaving.]
06:02
andoyasushi has joined #ruby-lang
06:03
acyed has joined #ruby-lang
06:05
nXqd has joined #ruby-lang
06:17
nXqd has quit [Ping timeout: 264 seconds]
06:17
deryl has quit [Quit: deryl]
06:18
tenderlove has quit [Remote host closed the connection]
06:18
nXqd has joined #ruby-lang
06:24
JohnBat26 has joined #ruby-lang
06:25
kitallis has joined #ruby-lang
06:31
savage- has quit [Remote host closed the connection]
06:47
rue|w has joined #ruby-lang
06:49
Fullmoon has quit [Quit: Fullmoon]
06:53
<
yorickpeterse >
#pry ##proggit Morning
06:54
<
yorickpeterse >
gah fuck
06:54
<
oddmunds >
yorickpeterse: good morning!
06:56
u2609 has joined #ruby-lang
07:01
JoelMcCracken has quit [Ping timeout: 244 seconds]
07:01
t73417 has quit [Remote host closed the connection]
07:02
t43712 has joined #ruby-lang
07:02
Hakon has joined #ruby-lang
07:03
kitallis has quit [Quit: Computer has gone to sleep.]
07:03
kitallis has joined #ruby-lang
07:03
kitallis has quit [Client Quit]
07:03
kitallis has joined #ruby-lang
07:03
kitallis has quit [Remote host closed the connection]
07:03
Hakon has quit [Client Quit]
07:04
qwerxy has joined #ruby-lang
07:06
tenderlove has joined #ruby-lang
07:07
woollyams has quit [Quit: Computer has gone to sleep.]
07:09
jxie has quit [Ping timeout: 248 seconds]
07:10
d3vic3 has joined #ruby-lang
07:11
kitallis has joined #ruby-lang
07:11
jxie has joined #ruby-lang
07:14
AlHafoudh has joined #ruby-lang
07:15
tenderlove has quit [Ping timeout: 246 seconds]
07:16
Craig` has joined #ruby-lang
07:19
d3vic3 has quit [Quit: leaving]
07:20
<
Craig` >
http://pastie.org/4654798 can I make this so all I have to type is server_ping?, ctcp_ping?, version_request? not having to say s.server_ping? etc
07:22
runeb has joined #ruby-lang
07:22
u2609 has quit [Remote host closed the connection]
07:23
jbsan has quit [Quit: jbsan]
07:25
solars has joined #ruby-lang
07:31
Madis has joined #ruby-lang
07:31
Theueip has quit [Quit: Leaving...]
07:32
manveru has left #ruby-lang [#ruby-lang]
07:32
manveru has joined #ruby-lang
07:33
zenspider has joined #ruby-lang
07:33
qwerxy has quit [Quit: offski]
07:36
<
manveru >
Craig`: not without changing self, and then you'd have trouble trying to call ctcp_pong, version, privmsg etc
07:36
<
Craig` >
manveru, okay thanks it wasn't too big a deal.
07:36
<
zenspider >
anyone have experience with the IO language?
07:36
JohnBat26 has joined #ruby-lang
07:38
thone has joined #ruby-lang
07:38
Fullmoon has joined #ruby-lang
07:40
t43712 has quit [Remote host closed the connection]
07:40
t94687 has joined #ruby-lang
07:41
thone_ has quit [Ping timeout: 245 seconds]
07:46
Fullmoon has quit [Ping timeout: 272 seconds]
07:47
ryanf has quit [Quit: leaving]
07:48
vesan has quit [Ping timeout: 260 seconds]
07:53
Fullmoon has joined #ruby-lang
07:57
diegoviola has quit [Ping timeout: 252 seconds]
08:02
dc5ala has quit [Quit: Ex-Chat]
08:03
jxie has quit [Quit: leaving]
08:03
dhruvasagar has joined #ruby-lang
08:04
dhruvasagar has quit [Remote host closed the connection]
08:04
<
Craig` >
http://pastie.org/4654948 .. this works fine I was just wondering if I was doing anything that was considered bad practice. My ruby fu is still weak but i'm putting bits and pieces together
08:05
<
Craig` >
sorry I missed a lot of code out, the variable irc is just an instance of IRC
08:05
Fullmoon has quit [Ping timeout: 246 seconds]
08:07
JoelMcCracken has joined #ruby-lang
08:11
tallship has quit [Remote host closed the connection]
08:11
tallship has joined #ruby-lang
08:11
tenderlove has joined #ruby-lang
08:12
JoelMcCracken has quit [Ping timeout: 260 seconds]
08:12
<
masterkorp >
zenspider: only on women
08:13
WillMarshall has joined #ruby-lang
08:14
Craig` has left #ruby-lang ["Leaving"]
08:14
Fullmoon has joined #ruby-lang
08:15
Criztian has joined #ruby-lang
08:16
tenderlove has quit [Ping timeout: 244 seconds]
08:16
WillMarshall has quit [Client Quit]
08:16
Fullmoon_ has joined #ruby-lang
08:17
Hakon has joined #ruby-lang
08:17
jxie has joined #ruby-lang
08:18
Hakon has quit [Client Quit]
08:19
Fullmoon__ has joined #ruby-lang
08:19
Fullmoon has quit [Ping timeout: 276 seconds]
08:19
Fullmoon__ is now known as Fullmoon
08:19
Fullmoon has quit [Read error: Connection reset by peer]
08:19
jaimef has joined #ruby-lang
08:21
Fullmoon_ has quit [Ping timeout: 246 seconds]
08:21
Hakon has joined #ruby-lang
08:22
rolfb has joined #ruby-lang
08:22
jxie has quit [Ping timeout: 264 seconds]
08:23
Fullmoon has joined #ruby-lang
08:24
jxie has joined #ruby-lang
08:26
t94687 has quit [Remote host closed the connection]
08:26
t73276 has joined #ruby-lang
08:29
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
08:30
qwerxy has joined #ruby-lang
08:32
Fullmoon_ has joined #ruby-lang
08:33
deryl has joined #ruby-lang
08:33
Fullmoon has quit [Ping timeout: 246 seconds]
08:35
vmoravec has joined #ruby-lang
08:37
Fullmoon_ has quit [Ping timeout: 276 seconds]
08:38
chimkan has quit [Quit: chimkan]
08:38
Fullmoon has joined #ruby-lang
08:38
cdt has joined #ruby-lang
08:40
charliesome has joined #ruby-lang
08:40
havenn has joined #ruby-lang
08:41
Fullmoon_ has joined #ruby-lang
08:41
rohit has joined #ruby-lang
08:42
toretore has joined #ruby-lang
08:43
Fullmoon has quit [Ping timeout: 246 seconds]
08:43
Fullmoon_ is now known as Fullmoon
08:45
jxie has quit [Ping timeout: 248 seconds]
08:45
diegoviola has joined #ruby-lang
08:50
Fullmoon_ has joined #ruby-lang
08:51
Fullmoon has quit [Ping timeout: 246 seconds]
08:51
Fullmoon_ is now known as Fullmoon
08:51
jxie has joined #ruby-lang
08:54
ruurd has joined #ruby-lang
08:54
Hakon has quit [Ping timeout: 245 seconds]
08:59
Fullmoon has quit [Ping timeout: 272 seconds]
09:00
workmad3 has joined #ruby-lang
09:01
chendo_ has quit [Ping timeout: 246 seconds]
09:01
t73276 has quit [Remote host closed the connection]
09:01
t25078 has joined #ruby-lang
09:02
Fullmoon has joined #ruby-lang
09:02
jxie has quit [Ping timeout: 260 seconds]
09:04
Fullmoon_ has joined #ruby-lang
09:04
jxie has joined #ruby-lang
09:07
Fullmoon has quit [Ping timeout: 246 seconds]
09:08
Fullmoon_ has quit [Ping timeout: 246 seconds]
09:10
rohit has quit [Ping timeout: 255 seconds]
09:11
u2609 has joined #ruby-lang
09:11
banisterfiend has quit [Read error: Connection reset by peer]
09:12
tenderlove has joined #ruby-lang
09:13
tbuehlmann has joined #ruby-lang
09:14
Fullmoon has joined #ruby-lang
09:15
u2609 has quit [Ping timeout: 245 seconds]
09:15
Fullmoon_ has joined #ruby-lang
09:15
krz has quit [Quit: krz]
09:17
havenn has quit [Remote host closed the connection]
09:17
Theueip has joined #ruby-lang
09:17
tenderlove has quit [Ping timeout: 276 seconds]
09:18
Fullmoon__ has joined #ruby-lang
09:19
Hakon has joined #ruby-lang
09:19
Fullmoon has quit [Ping timeout: 272 seconds]
09:19
Fullmoon__ is now known as Fullmoon
09:19
banisterfiend has joined #ruby-lang
09:19
Fullmoon_ has quit [Ping timeout: 246 seconds]
09:22
rohit has joined #ruby-lang
09:24
NOKAH has joined #ruby-lang
09:24
Hakon has quit [Ping timeout: 244 seconds]
09:27
chendo_ has joined #ruby-lang
09:27
chendo_ has quit [Changing host]
09:27
chendo_ has joined #ruby-lang
09:28
jxie has quit [Ping timeout: 248 seconds]
09:30
jxie has joined #ruby-lang
09:30
NOKAH has left #ruby-lang [#ruby-lang]
09:32
Fullmoon_ has joined #ruby-lang
09:33
ramonmaruko has quit [Quit: Leaving.]
09:34
justinm__ has quit [Remote host closed the connection]
09:34
Fullmoon has quit [Ping timeout: 246 seconds]
09:34
Fullmoon_ is now known as Fullmoon
09:36
chendo_ has quit [Ping timeout: 246 seconds]
09:38
deryl has quit [Quit: deryl]
09:38
tgriffin2081 has quit []
09:39
dhruvasagar has joined #ruby-lang
09:39
chendo_ has joined #ruby-lang
09:39
chendo_ has quit [Changing host]
09:39
chendo_ has joined #ruby-lang
09:40
ramonmaruko has joined #ruby-lang
09:45
darkf has quit [Read error: Connection reset by peer]
09:45
darkf has joined #ruby-lang
09:45
rohit has quit [Ping timeout: 245 seconds]
09:47
Fullmoon_ has joined #ruby-lang
09:49
Fullmoon has quit [Ping timeout: 276 seconds]
09:49
Fullmoon_ is now known as Fullmoon
09:49
darkf has quit [Ping timeout: 264 seconds]
09:53
Fullmoon_ has joined #ruby-lang
09:55
Fullmoon has quit [Ping timeout: 246 seconds]
09:55
Fullmoon_ is now known as Fullmoon
09:55
runeb has quit [Remote host closed the connection]
09:55
justinmcp has joined #ruby-lang
09:56
ramonmaruko has quit [Remote host closed the connection]
09:56
runeb has joined #ruby-lang
09:56
runeb has quit [Remote host closed the connection]
09:58
ramonmaruko has joined #ruby-lang
09:59
sepp2k has joined #ruby-lang
09:59
Fullmoon_ has joined #ruby-lang
10:00
Fullmoon has quit [Ping timeout: 276 seconds]
10:00
Fullmoon_ is now known as Fullmoon
10:00
Hakon has joined #ruby-lang
10:00
zmack has joined #ruby-lang
10:02
Fullmoon_ has joined #ruby-lang
10:04
Fullmoon has quit [Ping timeout: 246 seconds]
10:04
Fullmoon_ is now known as Fullmoon
10:05
s1n4 has joined #ruby-lang
10:05
s1n4 is now known as Guest69498
10:06
andoyasushi has quit [Ping timeout: 264 seconds]
10:07
Guest69498 has quit [Changing host]
10:07
Guest69498 has joined #ruby-lang
10:08
Guest69498 has quit [Client Quit]
10:09
_s1n4_ has joined #ruby-lang
10:09
t25078 has quit [Remote host closed the connection]
10:09
t5630 has joined #ruby-lang
10:11
x0F_ has joined #ruby-lang
10:11
x0F_ has quit [Changing host]
10:11
x0F_ has joined #ruby-lang
10:11
x0F has quit [Disconnected by services]
10:12
x0F_ is now known as x0F
10:12
gmci has joined #ruby-lang
10:12
tenderlove has joined #ruby-lang
10:14
yats has joined #ruby-lang
10:17
tenderlove has quit [Ping timeout: 264 seconds]
10:20
Fullmoon has quit [Ping timeout: 246 seconds]
10:21
Fullmoon has joined #ruby-lang
10:24
Hakon has quit [Ping timeout: 240 seconds]
10:25
tbuehlmann has quit [Remote host closed the connection]
10:31
jbsan has joined #ruby-lang
10:31
ruurd has quit [Quit: Leaving...]
10:31
th3hunt has joined #ruby-lang
10:33
chendo_ has quit [Ping timeout: 260 seconds]
10:34
jbsan has quit [Client Quit]
10:35
jbsan has joined #ruby-lang
10:36
chendo_ has joined #ruby-lang
10:36
jbsan has quit [Client Quit]
10:40
dreinull has joined #ruby-lang
10:40
ruurd has joined #ruby-lang
10:41
heftig has quit [Ping timeout: 245 seconds]
10:44
Fullmoon has quit [Ping timeout: 276 seconds]
10:45
Fullmoon has joined #ruby-lang
10:47
diegoviola has quit [Ping timeout: 244 seconds]
10:48
wallerdev has quit [Quit: wallerdev]
10:48
lele|w has quit [Ping timeout: 272 seconds]
10:48
heftig has joined #ruby-lang
10:48
Fullmoon_ has joined #ruby-lang
10:50
Fullmoon__ has joined #ruby-lang
10:50
Fullmoon has quit [Ping timeout: 246 seconds]
10:50
Fullmoon__ is now known as Fullmoon
10:52
Hakon has joined #ruby-lang
10:52
Fullmoon__ has joined #ruby-lang
10:52
woollyams has joined #ruby-lang
10:53
Fullmoon_ has quit [Ping timeout: 240 seconds]
10:54
Fullmoon has quit [Ping timeout: 246 seconds]
10:55
Fullmoon has joined #ruby-lang
10:56
Fullmoon__ has quit [Ping timeout: 246 seconds]
11:01
jxie has quit [Ping timeout: 248 seconds]
11:03
dynamix has joined #ruby-lang
11:03
dynamix has quit [Client Quit]
11:04
mr_dynamix has joined #ruby-lang
11:04
runeb has joined #ruby-lang
11:06
_s1n4_ is now known as s1n4
11:13
tenderlove has joined #ruby-lang
11:15
JohnBat26 has joined #ruby-lang
11:15
tbuehlmann has joined #ruby-lang
11:16
woollyams has quit [Quit: Computer has gone to sleep.]
11:17
tenderlove has quit [Ping timeout: 240 seconds]
11:18
jxie has joined #ruby-lang
11:19
Axsuul has quit [Ping timeout: 244 seconds]
11:21
Fullmoon has quit [Ping timeout: 246 seconds]
11:21
Fullmoon has joined #ruby-lang
11:21
neocoin has quit [Remote host closed the connection]
11:22
justinmcp has quit [Remote host closed the connection]
11:25
zmack has quit [Remote host closed the connection]
11:30
dous has joined #ruby-lang
11:30
rolfb has quit [Read error: Connection reset by peer]
11:31
t5630 has quit [Remote host closed the connection]
11:32
t8182 has joined #ruby-lang
11:33
justinmcp has joined #ruby-lang
11:33
rolfb has joined #ruby-lang
11:34
Fullmoon has quit [Ping timeout: 272 seconds]
11:34
Hakon has quit [Quit: Leaving...]
11:35
Fullmoon has joined #ruby-lang
11:38
abrausch has joined #ruby-lang
11:39
Fullmoon has quit [Ping timeout: 246 seconds]
11:41
Fullmoon has joined #ruby-lang
11:45
Fullmoon has quit [Ping timeout: 246 seconds]
11:45
Fullmoon_ has joined #ruby-lang
11:46
dhruvasagar has quit [Ping timeout: 246 seconds]
11:47
dhruvasagar has joined #ruby-lang
11:48
plusk has joined #ruby-lang
11:54
lcdhoffman has joined #ruby-lang
11:55
Fullmoon_ has quit [Ping timeout: 246 seconds]
11:57
Fullmoon has joined #ruby-lang
11:58
djinni` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
12:00
Fullmoon_ has joined #ruby-lang
12:01
djinni` has joined #ruby-lang
12:02
Fullmoon has quit [Ping timeout: 246 seconds]
12:02
Fullmoon_ is now known as Fullmoon
12:04
dhruvasagar has quit [Ping timeout: 252 seconds]
12:05
dhruvasagar has joined #ruby-lang
12:07
m3nd3s has joined #ruby-lang
12:08
Fullmoon has quit [Ping timeout: 246 seconds]
12:08
mr_dynamix has quit [Quit: mr_dynamix]
12:10
Fullmoon has joined #ruby-lang
12:11
neocoin has joined #ruby-lang
12:11
mr_dynamix has joined #ruby-lang
12:12
m3nd3s has quit [Ping timeout: 252 seconds]
12:14
tenderlove has joined #ruby-lang
12:14
t8182 has quit [Remote host closed the connection]
12:14
t58371 has joined #ruby-lang
12:14
vmoravec has quit [Quit: Leaving]
12:15
carloslopes has joined #ruby-lang
12:18
tenderlove has quit [Ping timeout: 255 seconds]
12:26
jbsan has joined #ruby-lang
12:26
Future[Chimp] has joined #ruby-lang
12:29
laszlokorte_ has joined #ruby-lang
12:31
laszlokorte has quit [Ping timeout: 245 seconds]
12:32
Fullmoon has quit [Ping timeout: 246 seconds]
12:34
Fullmoon has joined #ruby-lang
12:35
dous_ has joined #ruby-lang
12:35
dous_ has quit [Changing host]
12:35
dous_ has joined #ruby-lang
12:35
runeb has quit [Remote host closed the connection]
12:37
Fullmoon_ has joined #ruby-lang
12:37
dous has quit [Ping timeout: 244 seconds]
12:37
hollymann has joined #ruby-lang
12:39
Fullmoon has quit [Ping timeout: 246 seconds]
12:39
Fullmoon_ is now known as Fullmoon
12:39
runeb has joined #ruby-lang
12:40
jxie has quit [Quit: leaving]
12:41
jbsan has quit [Quit: jbsan]
12:42
<
mfn >
mrmm .. when I match a node like doc.css('br+br+strong+br+br') in Nokogiri, the result contains the last node and I need the first one. Should I just result_node.prev.prev.prev.prev or is there a smarter way?
12:43
Fullmoon has quit [Ping timeout: 246 seconds]
12:45
u2609 has joined #ruby-lang
12:45
jbsan has joined #ruby-lang
12:45
<
canton7 >
afaik css doesn't have a way of selecting the first br in that scenario. you might have more luck with xpath (which is more powerful)
12:46
<
mfn >
Unfortunately I don't have a clue about xpath .. I mean, yeah, I know what "./foo" mean and things such "./foo[@attr='bla']" but that's about it ...
12:47
<
canton7 >
yeah same, which is why I can't be more helpful :(
12:47
<
injekt >
mfn: do you have example html?
12:47
Fullmoon has joined #ruby-lang
12:49
<
mfn >
injekt: "<font size=\"2\" face=\"Microsoft Sans Serif\">Some foo bar text<br><br><strong>somtething</strong><br><br>\r\n\t\t some other foobartext</font>"
12:49
<
injekt >
and you want what?
12:50
<
mfn >
find <br><br><strong>somtething</strong><br><br> ; handle the stuff before this pattern; do something with the pattern, handle the stuff after the pattern
12:51
<
mfn >
In the end this gets converted to <p>Some foo bar text</p><headline>somtehing</headline<p>\r\n\t\t some other foobartext</p>
12:52
<
mfn >
my current pattern match looks like this: if result = n.css('br + br + strong + br + br') and result.length > 0 ; start_node = result[0].prev.prev.prev.prev
12:52
Fullmoon has quit [Client Quit]
12:52
<
mfn >
no problem figuring this out; but if there's a smarter way I'm all for it
12:53
<
injekt >
that's some retarded markup
12:53
<
mfn >
no objection from my side
12:53
<
injekt >
where are you parsing this from?
12:53
zmack has joined #ruby-lang
12:54
vmoravec has joined #ruby-lang
12:54
<
mfn >
company internal
13:00
josh^ has quit [Remote host closed the connection]
13:01
yats has quit [Read error: Connection reset by peer]
13:02
jbsan has quit [Quit: jbsan]
13:04
yats has joined #ruby-lang
13:05
vmoravec has quit [Quit: Leaving]
13:07
<
injekt >
mfn: does that do what you want?
13:08
_malte has joined #ruby-lang
13:08
runeb has quit [Remote host closed the connection]
13:11
ephemerian has joined #ruby-lang
13:14
tenderlove has joined #ruby-lang
13:16
justinmcp has quit [Remote host closed the connection]
13:17
<
hollymann >
hey everyone. I'm looking for a gem with NTLM + WinRM support, unfortunately git zenchild/winrm doesn't support NTLM auth. Are there any good gems for it?
13:17
<
mfn >
injekt: I try to understand the xpath expressions .. never seens "following", looks powerful
13:18
<
injekt >
mfn: xpath is extremely powerful
13:19
tenderlove has quit [Ping timeout: 264 seconds]
13:19
<
masterkorp >
Do you guys recomend any library to read parse logs ?
13:20
<
injekt >
masterkorp: what kind of logs?
13:20
ramonmaruko has quit [Remote host closed the connection]
13:20
<
masterkorp >
injekt: ruby on rails logs
13:21
Future[Chimp] has left #ruby-lang ["Leaving"]
13:23
<
rue|w >
There’s a CommonLogger middlewarez
13:23
<
injekt >
so I recommend searching for 'parse common log format'
13:23
<
injekt >
rue|w: exactly..
13:23
<
injekt >
masterkorp: I personally wouldn't write/use something in ruby for this unless my logs are tiny, though
13:24
<
injekt >
depends what you're trying to do
13:24
ramonmaruko has joined #ruby-lang
13:25
<
masterkorp >
injekt: well we have a liveblog rails app
13:25
Defusal_ has joined #ruby-lang
13:25
Defusal_ has quit [Changing host]
13:25
Defusal_ has joined #ruby-lang
13:25
<
masterkorp >
i am trying to get nagios to check the publishing latency from nagios
13:25
<
masterkorp >
to get warning, and errors warning on out monitoring
13:25
<
injekt >
nagios can't do this itself?
13:26
u2609 has quit [Remote host closed the connection]
13:27
vmoravec has joined #ruby-lang
13:28
Defusal has quit [Ping timeout: 240 seconds]
13:28
mistym has joined #ruby-lang
13:28
mistym has quit [Changing host]
13:28
mistym has joined #ruby-lang
13:28
Defusal has joined #ruby-lang
13:28
Defusal has quit [Changing host]
13:28
Defusal has joined #ruby-lang
13:28
voker57 has quit [Read error: Connection reset by peer]
13:29
Defusal_ has quit [Ping timeout: 260 seconds]
13:31
Theueip has quit [Quit: Leaving...]
13:32
chimkan_ has joined #ruby-lang
13:32
znake has joined #ruby-lang
13:33
znake has quit [Remote host closed the connection]
13:33
znake has joined #ruby-lang
13:34
shevy has joined #ruby-lang
13:34
<
mfn >
injekt: thanks, I think that's very useful. I'll have to adapt it a bit, but gives me a good head start where to look at xpath exactly!
13:34
JoelMcCracken has joined #ruby-lang
13:34
m3nd3s has joined #ruby-lang
13:34
znake has quit [Client Quit]
13:35
znake has joined #ruby-lang
13:37
Theueip has joined #ruby-lang
13:38
runeb has joined #ruby-lang
13:40
m3nd3s has quit [Read error: Operation timed out]
13:42
znake has left #ruby-lang [#ruby-lang]
13:43
deryl has joined #ruby-lang
13:44
lcdhoffman has quit [Quit: lcdhoffman]
13:44
m3nd3s has joined #ruby-lang
13:46
znake has joined #ruby-lang
13:46
runeb- has joined #ruby-lang
13:46
runeb- is now known as runeb
13:46
runeb has quit [Killed (niven.freenode.net (Nickname regained by services))]
13:47
znake has quit [Client Quit]
13:49
kingCrawlerx has joined #ruby-lang
13:59
CarlB_the_great has joined #ruby-lang
13:59
rue|w has quit [Remote host closed the connection]
14:00
m3nd3s has quit [Read error: Connection timed out]
14:01
t58371 has quit [Remote host closed the connection]
14:02
t56222 has joined #ruby-lang
14:02
m3nd3s has joined #ruby-lang
14:03
lcdhoffman has joined #ruby-lang
14:03
lcdhoffman has quit [Client Quit]
14:11
yats has quit [Read error: Connection reset by peer]
14:11
yats has joined #ruby-lang
14:13
nXqd has quit [Ping timeout: 245 seconds]
14:14
CarlB_the_great has quit [Remote host closed the connection]
14:14
tenderlove has joined #ruby-lang
14:17
jbsan has joined #ruby-lang
14:17
<
mfn >
doh, this isn't valid ruby: if 1\n or 2\n puts "foo"\n end .. the "or" needs to be on the same line as the "1" ...
14:19
<
canton7 >
yeah, or you need a \ before the newline
14:19
tenderlove has quit [Ping timeout: 264 seconds]
14:20
<
canton7 >
otherwise ruby looks at the first line, sees a complete expression, evaluates it, proceeds to the next line, and hits something unexpected
14:20
anannie has joined #ruby-lang
14:20
<
mfn >
ah, I see. thank you
14:20
<
canton7 >
if the 'or' is on the first line, ruby can tell that the expression isn't yet complete, so looks on the next line for the rest of it
14:21
<
canton7 >
it's the price you pay for not having to stick a semicolon at the end of every line
14:21
<
anannie >
I have a very silly question, in ruby can the I use multiple elsifs for a single if?
14:22
<
mfn >
if foo\n elsif bar\n elsif baz\n else zap\n end
14:22
<
anannie >
mfn: I was getting a strange error, thought it might be wiser to ask. Thanks
14:22
<
canton7 >
anannie, what error?
14:23
<
anannie >
canton7: that the end isn't properly defined even though I'm quite sure I've closed everything inside. (it's a series of nested ifs...) It must be my bad. I'll go and check my work again. Sorry I'm new to programming.
14:24
<
mfn >
anannie: try to run with 'ruby -w', it might tell you about wrong indentation and give you a hint where a missing end is or so
14:24
d3vic3 has joined #ruby-lang
14:24
<
anannie >
mfn: Found it... I had forgotten an e somewhere.
14:26
CarlB_the_great has joined #ruby-lang
14:29
rippa has joined #ruby-lang
14:30
CarlB_the_great has quit [Remote host closed the connection]
14:30
nXqd has joined #ruby-lang
14:35
erichmenge has joined #ruby-lang
14:35
CarlB_the_great has joined #ruby-lang
14:37
_malte has quit [Remote host closed the connection]
14:38
CarlB_th_ has joined #ruby-lang
14:40
CarlB_the_great has quit [Ping timeout: 272 seconds]
14:43
_malte has joined #ruby-lang
14:45
dhruvasagar has quit [Ping timeout: 276 seconds]
14:46
t56222 has quit [Remote host closed the connection]
14:46
vesan has joined #ruby-lang
14:46
t85467 has joined #ruby-lang
14:47
abrausch has quit [Quit: abrausch]
14:52
m3nd3s has quit [Remote host closed the connection]
14:54
|Vargas| has quit [Quit: ...]
14:54
arooni-mobile has joined #ruby-lang
14:55
s1n4 has quit [Quit: leaving]
15:05
TheNullByte has joined #ruby-lang
15:05
S2kx has quit [Quit: Leaving]
15:05
S1kx has joined #ruby-lang
15:05
S1kx has quit [Changing host]
15:05
S1kx has joined #ruby-lang
15:07
arooni-mobile has quit [Read error: Connection reset by peer]
15:07
_malte has quit [Remote host closed the connection]
15:09
lcdhoffman has joined #ruby-lang
15:09
Constant_ has joined #ruby-lang
15:09
Constant_ has quit [Client Quit]
15:09
jxie has joined #ruby-lang
15:15
tenderlove has joined #ruby-lang
15:17
sailias has joined #ruby-lang
15:19
justinmcp has joined #ruby-lang
15:19
plusk has quit [Quit: plusk]
15:19
tenderlove has quit [Ping timeout: 240 seconds]
15:20
plusk has joined #ruby-lang
15:22
plusk has quit [Client Quit]
15:22
sailias1 has joined #ruby-lang
15:23
justinmcp has quit [Ping timeout: 244 seconds]
15:24
sailias2 has joined #ruby-lang
15:25
arooni-mobile has joined #ruby-lang
15:25
sailias has quit [Read error: Operation timed out]
15:27
arooni-mobile has quit [Read error: Connection reset by peer]
15:27
sailias1 has quit [Ping timeout: 246 seconds]
15:29
sailias2 has quit []
15:30
m3nd3s has joined #ruby-lang
15:32
vesan has quit [Read error: Connection reset by peer]
15:33
zmack has quit [Remote host closed the connection]
15:33
guns has quit [Ping timeout: 244 seconds]
15:38
slyphon has quit [Ping timeout: 245 seconds]
15:38
areil has quit [Remote host closed the connection]
15:39
vesan has joined #ruby-lang
15:43
chimkan_ has quit [Quit: chimkan_]
15:43
hollymann has quit [Quit: hollymann]
15:43
slyphon has joined #ruby-lang
15:47
Tearan has joined #ruby-lang
15:48
slyphon has quit [Ping timeout: 245 seconds]
15:51
chimkan_ has joined #ruby-lang
15:51
DEac- has joined #ruby-lang
15:52
deryl has quit [Ping timeout: 255 seconds]
15:57
deryl has joined #ruby-lang
16:02
Tearan has quit [Quit: Sleepy Badger....]
16:05
JoelMcCracken has quit [Ping timeout: 246 seconds]
16:07
lsegal has joined #ruby-lang
16:09
ruurd has quit [Quit: Leaving...]
16:09
Carnage\ has joined #ruby-lang
16:11
Theueip has quit [Quit: Leaving...]
16:12
TheNullByte has quit [Quit: TheNullByte]
16:13
solars has quit [Ping timeout: 260 seconds]
16:15
tenderlove has joined #ruby-lang
16:16
sailias has joined #ruby-lang
16:20
tenderlove has quit [Ping timeout: 240 seconds]
16:22
CarlB_th_ has quit []
16:22
tjadc has joined #ruby-lang
16:22
tjadc has quit [Remote host closed the connection]
16:24
zmack has joined #ruby-lang
16:26
sailias has quit []
16:28
Hakon has joined #ruby-lang
16:33
neocoin has quit [Remote host closed the connection]
16:34
sepp2k has quit [Ping timeout: 246 seconds]
16:37
yats has quit [Ping timeout: 246 seconds]
16:38
Leeky_afk is now known as Leeky
16:39
sailias has joined #ruby-lang
16:43
cdt has quit [Quit: Ex-Chat]
16:47
mr_dynamix has quit [Quit: mr_dynamix]
16:47
slyphon has joined #ruby-lang
16:48
Axsuul has joined #ruby-lang
16:48
macmartine has joined #ruby-lang
16:50
sepp2k has joined #ruby-lang
16:50
shevy has quit [Ping timeout: 264 seconds]
16:51
diegoviola has joined #ruby-lang
16:52
macmartine has quit [Client Quit]
16:54
rue|w has joined #ruby-lang
16:58
slyphon has quit [Ping timeout: 245 seconds]
17:03
shevy has joined #ruby-lang
17:07
codewrangler has joined #ruby-lang
17:09
yxhuvud has joined #ruby-lang
17:11
kingCrawlerx has quit [Quit: Computer has gone to sleep]
17:13
CarlB_th_ has joined #ruby-lang
17:15
macmartine has joined #ruby-lang
17:16
tenderlove has joined #ruby-lang
17:17
plusk has joined #ruby-lang
17:19
benanne has joined #ruby-lang
17:20
tenderlove has quit [Ping timeout: 246 seconds]
17:25
tenderlove has joined #ruby-lang
17:28
sakkemo has joined #ruby-lang
17:34
Leeky is now known as Leeky_afk
17:36
qwerxy has quit [Quit: offski]
17:38
kain has joined #ruby-lang
17:39
TheNullByte has joined #ruby-lang
17:39
t85467 has quit [Remote host closed the connection]
17:40
t11134 has joined #ruby-lang
17:51
TheNullByte has quit [Quit: TheNullByte]
17:52
savage- has joined #ruby-lang
17:53
jaska has quit [Ping timeout: 265 seconds]
17:54
TheNullByte has joined #ruby-lang
17:54
jaska has joined #ruby-lang
17:56
tenderlove has quit [Remote host closed the connection]
17:57
savage- has quit [Remote host closed the connection]
17:59
CarlB_th_ has quit [Remote host closed the connection]
18:00
carloslopes has quit [Quit: Leaving.]
18:01
djinni` has quit [Ping timeout: 246 seconds]
18:02
djinni` has joined #ruby-lang
18:03
kingCrawlerx has joined #ruby-lang
18:03
plusk has quit [Ping timeout: 246 seconds]
18:03
jxie has quit [Ping timeout: 246 seconds]
18:06
canton7 has quit [Ping timeout: 246 seconds]
18:07
carloslopes1 has joined #ruby-lang
18:07
qwerxy has joined #ruby-lang
18:07
qwerxy has quit [Client Quit]
18:07
jxie_ has joined #ruby-lang
18:07
hramrach has quit [Ping timeout: 276 seconds]
18:07
m3nd3s has quit [Remote host closed the connection]
18:10
m3nd3s has joined #ruby-lang
18:10
solars has joined #ruby-lang
18:12
ryanf has joined #ruby-lang
18:12
t11134 has quit [Remote host closed the connection]
18:12
t22296 has joined #ruby-lang
18:13
sailias has quit [Quit: Leaving.]
18:13
s1n4 has joined #ruby-lang
18:16
kain has quit [Remote host closed the connection]
18:16
kain has joined #ruby-lang
18:24
kingCrawlerx has quit [Quit: Computer has gone to sleep]
18:25
Mellett68 has joined #ruby-lang
18:26
m3nd3s has quit [Read error: Connection timed out]
18:27
flak has joined #ruby-lang
18:27
flak is now known as Guest35822
18:29
m3nd3s has joined #ruby-lang
18:29
Bosox20051 has joined #ruby-lang
18:30
Bosox20051 has quit [Remote host closed the connection]
18:30
CarlB_the_great has joined #ruby-lang
18:31
rippa has quit [Ping timeout: 276 seconds]
18:34
m3nd3s has joined #ruby-lang
18:35
neocoin has joined #ruby-lang
18:43
plusk has joined #ruby-lang
18:44
plusk has quit [Client Quit]
18:44
qwerxy has joined #ruby-lang
18:44
plusk has joined #ruby-lang
18:44
TheNullByte has quit [Quit: TheNullByte]
18:44
plusk has quit [Client Quit]
18:46
m3nd3s has quit [Remote host closed the connection]
18:46
qwerxy has quit [Client Quit]
18:49
Guest35822 has left #ruby-lang [#ruby-lang]
18:51
billyoc has joined #ruby-lang
18:51
qwerxy has joined #ruby-lang
18:52
rippa has joined #ruby-lang
18:56
rippa is now known as spinagon
18:56
m3nd3s has joined #ruby-lang
18:57
spinagon is now known as rippa
18:57
qwerxy has quit [Quit: offski]
18:58
qwerxy has joined #ruby-lang
18:59
voker57 has joined #ruby-lang
18:59
voker57 has quit [Changing host]
18:59
voker57 has joined #ruby-lang
19:00
qwerxy has quit [Client Quit]
19:02
deryl has quit [Quit: Time To Go, Too Bad, So Sad!]
19:04
qwerxy has joined #ruby-lang
19:05
canton7 has joined #ruby-lang
19:07
diegovio1a has joined #ruby-lang
19:08
diegoviola has quit [Ping timeout: 240 seconds]
19:08
diegovio1a is now known as diegoviola
19:08
t22296 has quit [Remote host closed the connection]
19:08
t57601 has joined #ruby-lang
19:09
vlad_starkov has joined #ruby-lang
19:09
rue|w has quit [Remote host closed the connection]
19:09
qwerxy has quit [Quit: offski]
19:09
ylluminate has joined #ruby-lang
19:11
TheNullByte has joined #ruby-lang
19:12
deryl has joined #ruby-lang
19:12
a3li has quit [Ping timeout: 246 seconds]
19:12
m3nd3s has quit [Read error: Connection timed out]
19:13
TheNullByte has quit [Client Quit]
19:13
Mellett68 has joined #ruby-lang
19:14
_malte has joined #ruby-lang
19:14
TheNullByte has joined #ruby-lang
19:15
m3nd3s has joined #ruby-lang
19:17
CarlB_the_great has quit [Remote host closed the connection]
19:17
chimkan_ has quit [Quit: chimkan_]
19:17
qwerxy has joined #ruby-lang
19:18
a3li has joined #ruby-lang
19:22
yxhuvud has quit [Ping timeout: 245 seconds]
19:24
burgestrand has joined #ruby-lang
19:25
s1n4 has left #ruby-lang ["leaving"]
19:26
benanne has quit [Quit: kbai]
19:27
qwerxy has quit [Quit: offski]
19:29
havenn has joined #ruby-lang
19:31
Denommus has joined #ruby-lang
19:31
<
Denommus >
is there a prevision for Ruby 2.0? I'm anxyous for the new GC
19:32
m3nd3s has quit [Read error: Connection timed out]
19:33
Bwild has quit [Quit: leaving]
19:33
TheNullByte has quit [Quit: TheNullByte]
19:34
brianpWins has joined #ruby-lang
19:35
TheNullByte has joined #ruby-lang
19:35
m3nd3s has joined #ruby-lang
19:36
rue|w has joined #ruby-lang
19:37
Bwild has joined #ruby-lang
19:37
<
havenn >
Denommus: Yes, you can use Ruby-2.0.0.dev or the GC changes are available as a backported patch for 1.9.3
19:37
rue|w has quit [Remote host closed the connection]
19:38
dhruvasagar has joined #ruby-lang
19:38
yorickpeterse has quit [Quit: System going down for a reboot]
19:40
<
havenn >
Denommus: If you use RVM: rvm install 1.9.3 --patch falcon
19:42
cantonic has quit [Quit: cantonic]
19:43
cantonic has joined #ruby-lang
19:45
cantonic has quit [Client Quit]
19:47
kith has joined #ruby-lang
19:47
Jotade11 has joined #ruby-lang
19:48
yorickpeterse has joined #ruby-lang
19:49
neocoin has quit [Remote host closed the connection]
19:49
neocoin has joined #ruby-lang
19:49
neocoin has quit [Remote host closed the connection]
19:49
_malte has quit [Remote host closed the connection]
19:49
neocoin has joined #ruby-lang
19:50
neocoin has quit [Remote host closed the connection]
19:52
cantonic has joined #ruby-lang
19:53
m3nd3s has quit [Read error: Connection timed out]
19:56
erichmenge has joined #ruby-lang
19:56
m3nd3s has joined #ruby-lang
19:57
abrausch has joined #ruby-lang
19:59
cantonic has quit [Quit: cantonic]
20:00
cantonic has joined #ruby-lang
20:03
abrausch has quit [Ping timeout: 246 seconds]
20:03
abrausch has joined #ruby-lang
20:06
wallerdev has joined #ruby-lang
20:07
qwerxy has joined #ruby-lang
20:09
cantonic has quit [Quit: cantonic]
20:10
cantonic has joined #ruby-lang
20:12
m3nd3s has quit [Read error: Connection timed out]
20:14
m3nd3s has joined #ruby-lang
20:14
t57601 has quit [Remote host closed the connection]
20:14
t84226 has joined #ruby-lang
20:16
m3nd3s has quit [Read error: Connection reset by peer]
20:16
m3nd3s has joined #ruby-lang
20:18
benanne has joined #ruby-lang
20:19
Mellett68` has joined #ruby-lang
20:19
Mellett68 has quit [Ping timeout: 246 seconds]
20:20
rippa has quit [Ping timeout: 264 seconds]
20:20
_malte has joined #ruby-lang
20:22
havenn has quit [Remote host closed the connection]
20:22
m3nd3s has quit [Read error: Operation timed out]
20:23
CarlB_the_great has joined #ruby-lang
20:24
_malte has quit [Ping timeout: 246 seconds]
20:27
m3nd3s has joined #ruby-lang
20:28
Mellett68` has left #ruby-lang [#ruby-lang]
20:29
plusk has joined #ruby-lang
20:29
zmack has quit [Ping timeout: 240 seconds]
20:29
Mellett68 has joined #ruby-lang
20:32
billyoc has quit [Remote host closed the connection]
20:40
TheNullByte has quit [Quit: TheNullByte]
20:43
plusk has quit [Ping timeout: 246 seconds]
20:43
m3nd3s has quit [Read error: Connection timed out]
20:43
methods has joined #ruby-lang
20:44
<
methods >
isn't there a way to switch to a different yaml parser ?
20:44
MouseTheLuckyDog has joined #ruby-lang
20:45
<
MouseTheLuckyDog >
I hjave a class A which inherits from Hash. I want to call the method []= in Hash from a method in A how do I do it?
20:45
lcdhoffman has quit [Quit: lcdhoffman]
20:46
<
lianj >
MouseTheLuckyDog: self[:foo] = :bar, or send(:[]=, :foo, :bar)
20:46
m3nd3s has joined #ruby-lang
20:46
erichmenge has joined #ruby-lang
20:47
CarlB_the_great has quit [Remote host closed the connection]
20:47
macmartine has joined #ruby-lang
20:48
rue|w has joined #ruby-lang
20:49
qwerxy has quit [Quit: offski]
20:49
<
MouseTheLuckyDog >
lianj: I'm pretty sure that won't work. The method I'm defining in A is []=.
20:50
neocoin has joined #ruby-lang
20:50
macmartine has quit [Client Quit]
20:51
<
injekt >
MouseTheLuckyDog: def []=(a, b); super(b, a); end
20:52
rue|w has quit [Ping timeout: 245 seconds]
20:53
<
methods >
i could swear there was a way to change to a better yaml parser
20:53
plusk has joined #ruby-lang
20:53
<
injekt >
iirc yajl is the fasted impl at the moment
20:54
<
methods >
yea i just moved to a new system and I'm getting problems with files that have ` in them or other things
20:55
<
injekt >
eh all the parsers should support the same standard
20:56
alex_kira has quit [Remote host closed the connection]
20:59
TheNullByte has joined #ruby-lang
20:59
plusk has quit [Quit: plusk]
20:59
qwerxy has joined #ruby-lang
21:03
m3nd3s has quit [Read error: Connection timed out]
21:04
<
methods >
how would i install another parser ?
21:07
jammi has quit [Ping timeout: 252 seconds]
21:07
m3nd3s has joined #ruby-lang
21:08
jammi has joined #ruby-lang
21:08
<
Mon_Ouie >
Install the gem and see the docs for how to use it
21:09
qwerxy has quit [Quit: offski]
21:10
plusk has joined #ruby-lang
21:10
neocoin has quit [Remote host closed the connection]
21:13
cantonic has quit [Quit: cantonic]
21:15
cantonic has joined #ruby-lang
21:18
alex_kira has joined #ruby-lang
21:19
qwerxy has joined #ruby-lang
21:20
woollyams has joined #ruby-lang
21:20
_malte has joined #ruby-lang
21:22
laszlokorte_ has quit [Quit: laszlokorte_]
21:23
m3nd3s has quit [Read error: Connection timed out]
21:24
erichmenge has quit [Quit: Be back later]
21:25
voker57 has quit [Remote host closed the connection]
21:25
_malte has quit [Ping timeout: 252 seconds]
21:26
kingCrawlerx has joined #ruby-lang
21:27
m3nd3s has joined #ruby-lang
21:27
TheNullByte has quit [Quit: TheNullByte]
21:29
woollyams has quit [Quit: Computer has gone to sleep.]
21:30
methods has left #ruby-lang [#ruby-lang]
21:30
erichmenge has joined #ruby-lang
21:31
carloslopes1 has quit [Quit: Leaving.]
21:33
erichmenge has quit [Client Quit]
21:33
nXqd has quit [Ping timeout: 252 seconds]
21:33
neocoin has joined #ruby-lang
21:35
laszlokorte has joined #ruby-lang
21:35
tbuehlmann has quit [Remote host closed the connection]
21:38
Tearan has joined #ruby-lang
21:39
abstr4ct has quit [Read error: Connection reset by peer]
21:41
abrausch has quit [Quit: abrausch]
21:43
m3nd3s has quit [Read error: Connection timed out]
21:46
m3nd3s has joined #ruby-lang
21:46
m3nd3s has quit [Remote host closed the connection]
21:51
chimkan has joined #ruby-lang
21:51
Jotade11 has joined #ruby-lang
21:53
chimkan has quit [Client Quit]
21:53
Denommus has quit [Remote host closed the connection]
21:54
chimkan has joined #ruby-lang
21:54
justinmcp has joined #ruby-lang
21:56
stepnem has quit [Ping timeout: 264 seconds]
21:57
_CUCK_ has joined #ruby-lang
21:57
_CUCK_ has left #ruby-lang [#ruby-lang]
21:58
<
mfn >
I don't unterstand the doc for Array#sample from
http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-sample : "The elements are chosen by using random and unique indices into the array in order to ensure that an element doesn’t repeat itself unless the array already contained duplicate elements." Given my array would be [1,2,2,3].sample , would I now have a 25% of getting a '2' or 33%? I'd need 25%,
21:58
<
mfn >
but got confused with that sentence ...
22:01
TheNullByte has joined #ruby-lang
22:03
alex_kira has quit [Ping timeout: 276 seconds]
22:05
anannie has quit [Ping timeout: 240 seconds]
22:06
<
whitequark >
> 500.times.map { [1,2,2,3].sample }.group_by { |x| x }.inject({}) { |h,(k,v)| h[k] = v.length; h } => {2=>264, 1=>121, 3=>115}
22:06
<
whitequark >
therefore, 33%.
22:06
plusk has quit [Quit: plusk]
22:07
<
whitequark >
I guess that the "random and unique" part means that the probability of receiving each particular element is truly the same, i.e. it's not selected with a simple modulus operation
22:07
<
whitequark >
with which you'd get unfairly low probabilites for last elements in non-power of 2 sized arrays
22:08
CarlB_the_great has joined #ruby-lang
22:08
<
whitequark >
(your PRNG is most certainly giving out values in range of [0;2^32), and if v is from those range, the probability of v % 10 being equal to 9 is not the same as being equal to 1.
22:09
deryl has quit [Quit: deryl]
22:09
deryl has joined #ruby-lang
22:09
<
mfn >
nice codesample, thanks .. will use an index then
22:10
gix has quit [Ping timeout: 246 seconds]
22:11
<
whitequark >
the implementation is a little bit unobvious, through
22:11
<
mfn >
yeah, I looked at it through ruby-doc but didn't make sense to me
22:12
<
mfn >
imho the should have not done the "unique" thing; I could have used [1,2,2,3].unique.sample for that
22:12
solars has quit [Ping timeout: 272 seconds]
22:13
<
whitequark >
wait, you were wrong and I was, too
22:13
<
whitequark >
for the [1,2,2,3] example you could either have 50% chance for getting '2' or 33% one
22:13
<
mfn >
your sample indicated 50% for 2 and 25% for the others each, doesn't it
22:13
<
whitequark >
and ruby exhibits the 50% one
22:14
<
whitequark >
so it doesn't uniq elements prior to sampling
22:14
<
whitequark >
so I don't see how the "unique" thing in ruby's sample, whatever it is, correlates with .uniq.sample
22:15
qwerxy has quit [Quit: offski]
22:15
gix has joined #ruby-lang
22:15
<
mfn >
me neither. Array#sample is as useful as it could be to me
22:16
lcdhoffman has joined #ruby-lang
22:16
<
heftig >
the unique thing refers to sample(3) or whatever
22:16
<
heftig >
it will not choose the same element multiple times
22:16
t84226 has quit [Remote host closed the connection]
22:17
havenn has joined #ruby-lang
22:17
t83823 has joined #ruby-lang
22:17
<
heftig >
so [1,2,2,3].sample(2) will choose two elements with distinct indexes
22:17
<
heftig >
so you can get [2,2] but not [1,1]
22:20
<
whitequark >
oh, I see
22:21
_malte has joined #ruby-lang
22:22
toretore has quit [Quit: Leaving]
22:23
Criztian has quit [Read error: Connection reset by peer]
22:23
alex_kira has joined #ruby-lang
22:23
mztriz has joined #ruby-lang
22:25
havenn has quit [Remote host closed the connection]
22:25
_malte has quit [Ping timeout: 246 seconds]
22:26
solars has joined #ruby-lang
22:30
<
lianj >
mztriz: a, b = d.sample(2); [a, s.sample, b].join
22:31
<
lianj >
mztriz: because of a = [ "string" ]; a[0] << " foo"; a
22:32
josh^ has joined #ruby-lang
22:33
<
mztriz >
thanks lianj
22:33
macmartine has joined #ruby-lang
22:34
havenn has joined #ruby-lang
22:35
havenn has quit [Remote host closed the connection]
22:41
qwerxy has joined #ruby-lang
22:42
solars has quit [Ping timeout: 248 seconds]
22:42
chimkan has quit [Ping timeout: 244 seconds]
22:42
chimkan__ has joined #ruby-lang
22:52
Madis has quit [Quit: ChatZilla 0.9.88.2 [Firefox 11.0/20120313180949]]
22:54
tsou has quit [Ping timeout: 245 seconds]
23:03
qwerxy has quit [Quit: offski]
23:06
benanne has quit [Quit: kbai]
23:08
woollyams has joined #ruby-lang
23:10
tsou has joined #ruby-lang
23:11
m3nd3s_ has joined #ruby-lang
23:15
woollyams has quit [Ping timeout: 252 seconds]
23:17
ephemerian has quit [Quit: Leaving.]
23:18
alex_kira has quit [Remote host closed the connection]
23:19
laszlokorte has quit [Quit: laszlokorte]
23:20
savage- has joined #ruby-lang
23:20
woollyams has joined #ruby-lang
23:22
_malte has joined #ruby-lang
23:26
_malte has quit [Ping timeout: 246 seconds]
23:27
CarlB_the_great has quit [Remote host closed the connection]
23:28
TheNullByte has quit [Quit: TheNullByte]
23:30
Hakon has quit [Quit: Leaving...]
23:30
Rich_Morin has joined #ruby-lang
23:31
alex_kira has joined #ruby-lang
23:31
TheNullByte has joined #ruby-lang
23:38
chimkan__ has quit [Quit: chimkan__]
23:42
vlad_starkov has quit [Remote host closed the connection]
23:51
stardiviner has joined #ruby-lang
23:57
neocoin has left #ruby-lang [#ruby-lang]