00:00
kgrz has joined #ruby-lang
00:00
lewix has joined #ruby-lang
00:02
ruby-lang835 has joined #ruby-lang
00:03
thagomizer has quit [Quit: Leaving.]
00:04
lcdhoffman has joined #ruby-lang
00:04
|jemc| has quit [Ping timeout: 244 seconds]
00:05
kgrz has quit [Ping timeout: 260 seconds]
00:05
<
ruby-lang835 >
Does any body here has experience on upgrading rails 3.2 to rails 4.
00:05
simi has quit [Ping timeout: 260 seconds]
00:06
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:11
ruby-lang835 has quit [Ping timeout: 246 seconds]
00:16
amsi has quit [Ping timeout: 260 seconds]
00:16
amsi has joined #ruby-lang
00:16
skammer3 has quit [Ping timeout: 245 seconds]
00:19
arooni-mobile has quit [Ping timeout: 260 seconds]
00:20
tylersmith has quit [Remote host closed the connection]
00:20
Averna has joined #ruby-lang
00:20
sharpmachine has quit [Remote host closed the connection]
00:27
mattyohe has quit [Quit: Connection closed for inactivity]
00:27
torrieri has joined #ruby-lang
00:30
wallerdev has quit [Quit: wallerdev]
00:31
wallerdev has joined #ruby-lang
00:32
Iskarlar has joined #ruby-lang
00:33
imkmf has joined #ruby-lang
00:35
faces has quit [Ping timeout: 246 seconds]
00:35
face has joined #ruby-lang
00:36
rcvalle has quit [Quit: rcvalle]
00:37
justinmburrous has joined #ruby-lang
00:39
spastorino has quit [Quit: Connection closed for inactivity]
00:42
justinmburrous has quit [Ping timeout: 272 seconds]
00:45
benlovell has quit [Ping timeout: 260 seconds]
00:49
mistym has quit [Remote host closed the connection]
00:49
charliesome has joined #ruby-lang
00:49
imperator has quit [Quit: Valete!]
00:53
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:57
amsi has quit [Quit: Leaving]
01:04
snsei has joined #ruby-lang
01:07
haraoka has joined #ruby-lang
01:07
hahuang65 has quit [Ping timeout: 258 seconds]
01:07
wallerdev has quit [Quit: wallerdev]
01:09
snsei has quit [Ping timeout: 272 seconds]
01:09
mistym has joined #ruby-lang
01:09
Asher has joined #ruby-lang
01:11
mikecmpbll has quit [Quit: i've nodded off.]
01:11
iliketurtles has quit [Quit: zzzzz…..]
01:13
skammer3 has joined #ruby-lang
01:18
skammer3 has quit [Ping timeout: 272 seconds]
01:21
mattyohe has joined #ruby-lang
01:21
yfeldblum has quit [Remote host closed the connection]
01:26
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:27
levifig has quit [Ping timeout: 245 seconds]
01:28
jdecuirm has joined #ruby-lang
01:28
yfeldblum has joined #ruby-lang
01:28
snsei has joined #ruby-lang
01:28
yfeldblu_ has joined #ruby-lang
01:29
yfeldblum has quit [Remote host closed the connection]
01:29
[dmp] has quit [Ping timeout: 246 seconds]
01:30
levifig has joined #ruby-lang
01:30
[dmp] has joined #ruby-lang
01:30
[dmp] has joined #ruby-lang
01:30
[dmp] has quit [Changing host]
01:35
tkuchiki has joined #ruby-lang
01:37
lcdhoffman has quit [Quit: lcdhoffman]
01:37
|jemc| has joined #ruby-lang
01:38
imkmf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:38
lcdhoffman has joined #ruby-lang
01:42
imkmf has joined #ruby-lang
01:43
tylersmith has joined #ruby-lang
01:43
mistym has quit [Remote host closed the connection]
01:51
benlovell has joined #ruby-lang
01:53
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:54
arBmind1 has joined #ruby-lang
01:55
face has quit [Ping timeout: 260 seconds]
01:55
jbardin has quit [Quit: jbardin]
01:55
arBmind has quit [Ping timeout: 250 seconds]
01:55
face has joined #ruby-lang
01:55
jhass is now known as jhass|off
01:56
havenwood has quit [Remote host closed the connection]
01:56
benlovell has quit [Ping timeout: 272 seconds]
02:01
kgrz has joined #ruby-lang
02:02
oleo__ has joined #ruby-lang
02:02
oleo is now known as Guest49063
02:03
tpope_ is now known as tpope
02:05
kgrz has quit [Ping timeout: 240 seconds]
02:05
Guest49063 has quit [Ping timeout: 240 seconds]
02:13
skammer3 has joined #ruby-lang
02:15
mistym has joined #ruby-lang
02:16
kgrz has joined #ruby-lang
02:18
skammer3 has quit [Ping timeout: 245 seconds]
02:20
justinmburrous has joined #ruby-lang
02:20
kgrz has quit [Ping timeout: 260 seconds]
02:26
amerine has joined #ruby-lang
02:30
tectonic has joined #ruby-lang
02:46
__butch__ has joined #ruby-lang
02:46
__butch__ has quit [Client Quit]
02:51
lcdhoffman has quit [Quit: lcdhoffman]
02:52
iliketurtles has joined #ruby-lang
02:56
havenwood has joined #ruby-lang
03:01
imperator has joined #ruby-lang
03:02
Musashi007 has quit [Quit: Musashi007]
03:04
SuMo_D has quit [Remote host closed the connection]
03:05
Musashi007 has joined #ruby-lang
03:05
kgrz has joined #ruby-lang
03:10
wonderred has joined #ruby-lang
03:14
justinmburrous has quit [Remote host closed the connection]
03:14
skammer3 has joined #ruby-lang
03:14
justinmburrous has joined #ruby-lang
03:19
justinmburrous has quit [Read error: No route to host]
03:19
skammer3 has quit [Ping timeout: 244 seconds]
03:19
justinmburrous has joined #ruby-lang
03:21
iliketurtles has quit [Quit: zzzzz…..]
03:32
koderok has joined #ruby-lang
03:32
stardiviner has joined #ruby-lang
03:35
justinmburrous has quit [Remote host closed the connection]
03:35
jo__ has joined #ruby-lang
03:35
justinmburrous has joined #ruby-lang
03:36
justinmburrous has quit [Read error: No route to host]
03:36
emmesswhy has joined #ruby-lang
03:37
lewix is now known as Lewiz
03:37
justinmburrous has joined #ruby-lang
03:37
Lewiz is now known as Lewix
03:40
koderok has quit [Quit: koderok]
03:40
<
imperator >
File.exist? supposed to return false on a dead link, right?
03:41
<
womble >
imperator: I don't think it's defined either way.
03:42
<
womble >
It gives me false, at any rate.
03:44
<
imperator >
i think that's the defined behavior, thanks
03:44
<
imperator >
(based on a jruby bug fix)
03:45
nathanstitt has quit [Quit: I growing sleepy]
03:49
<
headius >
imperator: small world...I used a patch for that bug in my oss talk
03:50
gix has quit [Ping timeout: 240 seconds]
03:51
kwd has joined #ruby-lang
03:51
wonderred has quit [Ping timeout: 250 seconds]
03:55
<
imperator >
headius, i need to fix it for windows :)
03:55
gix has joined #ruby-lang
03:56
wonderred has joined #ruby-lang
03:57
justinmburrous has quit [Remote host closed the connection]
04:01
RobertBirnie has joined #ruby-lang
04:02
emmesswhy has quit [Quit: Leaving]
04:05
emilsoman has joined #ruby-lang
04:07
ledestin_ has joined #ruby-lang
04:09
ledestin has quit [Ping timeout: 272 seconds]
04:09
ledestin_ is now known as ledestin
04:12
arooni-mobile has joined #ruby-lang
04:14
<
headius >
imperator: yay!
04:15
skammer3 has joined #ruby-lang
04:20
skammer3 has quit [Ping timeout: 250 seconds]
04:29
nonmadden has joined #ruby-lang
04:29
Lewix has quit [Remote host closed the connection]
04:31
kyb3r_ has joined #ruby-lang
04:31
Lewix has joined #ruby-lang
04:33
Lewix has quit [Remote host closed the connection]
04:36
koderok has joined #ruby-lang
04:36
koderok has quit [Client Quit]
04:36
tectonic has quit []
04:37
imperator has quit [Quit: Valete!]
04:37
wonderred has quit [Ping timeout: 260 seconds]
04:44
justinmburrous has joined #ruby-lang
04:44
clauswitt has joined #ruby-lang
04:50
sharpmachine has joined #ruby-lang
04:54
Musashi007_ has joined #ruby-lang
04:55
Musashi007 has quit [Read error: Connection reset by peer]
04:55
Musashi007_ is now known as Musashi007
04:58
Suchit has joined #ruby-lang
04:59
justinmburrous has quit [Remote host closed the connection]
05:01
Suchit has quit [Read error: Connection reset by peer]
05:01
Suchit_ has joined #ruby-lang
05:03
JoshuaPaling has joined #ruby-lang
05:05
jdecuirm has quit [Ping timeout: 245 seconds]
05:07
kgrz has quit [Remote host closed the connection]
05:09
arooni-mobile has quit [Ping timeout: 272 seconds]
05:09
lsegal has joined #ruby-lang
05:12
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:15
shubhamgoyal has quit [Remote host closed the connection]
05:15
shubhamgoyal has joined #ruby-lang
05:16
clauswitt has joined #ruby-lang
05:16
skammer3 has joined #ruby-lang
05:17
clauswitt has quit [Client Quit]
05:18
jdecuirm has joined #ruby-lang
05:20
shubhamgoyal has quit [Ping timeout: 258 seconds]
05:21
skammer3 has quit [Ping timeout: 244 seconds]
05:21
matp has quit [Quit: ZZZzzz…]
05:24
michaeldeol has joined #ruby-lang
05:24
jxie has quit [Ping timeout: 272 seconds]
05:25
jxie has joined #ruby-lang
05:26
JohnBat26 has joined #ruby-lang
05:29
oleo__ has quit [Quit: Verlassend]
05:31
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:34
havenwood has quit []
05:34
nonmadden has quit [Quit: Leaving...]
05:36
justinmburrous has joined #ruby-lang
05:38
sharpmachine has quit [Remote host closed the connection]
05:41
justinmburrous has quit [Ping timeout: 258 seconds]
05:43
allomov has quit [Remote host closed the connection]
05:44
shubhamgoyal has joined #ruby-lang
05:44
kgrz has joined #ruby-lang
05:45
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:46
kgrz_ has joined #ruby-lang
05:46
kgrz has quit [Read error: Connection reset by peer]
05:49
Suchit_ has quit [Read error: Connection reset by peer]
05:49
Suchit_ has joined #ruby-lang
05:52
torrieri has quit [Quit: Leaving...]
05:53
AKASkip has joined #ruby-lang
05:55
justinmburrous has joined #ruby-lang
05:55
lsegal has quit [Read error: Connection reset by peer]
05:55
lsegal has joined #ruby-lang
05:58
snsei has quit [Remote host closed the connection]
06:00
iliketurtles has joined #ruby-lang
06:01
yfeldblu_ has quit [Remote host closed the connection]
06:03
snsei_ has joined #ruby-lang
06:07
iliketurtles has quit [Quit: zzzzz…..]
06:09
AKASkip has quit [Ping timeout: 260 seconds]
06:09
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
06:10
ammar___ has quit [Quit: leaving]
06:10
justinmburrous has quit [Remote host closed the connection]
06:11
justinmburrous has joined #ruby-lang
06:11
justinmburrous has quit [Read error: Connection reset by peer]
06:12
justinmburrous has joined #ruby-lang
06:13
ammar has joined #ruby-lang
06:14
gianlucadv has joined #ruby-lang
06:15
schaerli has joined #ruby-lang
06:17
skammer3 has joined #ruby-lang
06:18
clauswitt has joined #ruby-lang
06:18
danijoo has quit [Read error: Connection reset by peer]
06:18
danijoo_ has joined #ruby-lang
06:19
michaeldeol has joined #ruby-lang
06:20
nofxx has quit [Ping timeout: 246 seconds]
06:22
matp has joined #ruby-lang
06:22
snsei_ has quit [Remote host closed the connection]
06:22
skammer3 has quit [Ping timeout: 258 seconds]
06:28
allomov has joined #ruby-lang
06:31
allomov has quit [Remote host closed the connection]
06:36
koderok has joined #ruby-lang
06:40
shubhamgoyal has quit [Remote host closed the connection]
06:42
druznek has joined #ruby-lang
06:43
AKASkip has joined #ruby-lang
06:54
benlovell has joined #ruby-lang
06:54
justinmburrous has quit [Remote host closed the connection]
06:54
mistym has quit [Remote host closed the connection]
06:57
shubhamgoyal has joined #ruby-lang
06:58
thomasxie has joined #ruby-lang
06:58
justinmburrous has joined #ruby-lang
07:01
tylersmith has quit [Remote host closed the connection]
07:02
Averna has quit [Quit: Leaving.]
07:02
tylersmith has joined #ruby-lang
07:06
snoopybbt has quit [Ping timeout: 245 seconds]
07:06
tylersmith has quit [Ping timeout: 255 seconds]
07:08
snoopybbt has joined #ruby-lang
07:11
AmBienCeD has quit [Write error: Broken pipe]
07:11
danromano has quit [Excess Flood]
07:11
AmBienCeD has joined #ruby-lang
07:11
AmBienCeD has joined #ruby-lang
07:11
AmBienCeD has quit [Changing host]
07:11
danromano has joined #ruby-lang
07:11
Blaguvest has joined #ruby-lang
07:11
jxie has quit [Read error: Connection reset by peer]
07:12
schaerli has quit [Remote host closed the connection]
07:12
solars has joined #ruby-lang
07:13
schaerli has joined #ruby-lang
07:13
lcdhoffman has joined #ruby-lang
07:13
justinmburrous has quit [Remote host closed the connection]
07:14
jxie has joined #ruby-lang
07:17
elia has joined #ruby-lang
07:18
skammer3 has joined #ruby-lang
07:19
Iskarlar has joined #ruby-lang
07:20
schaerli has quit [Remote host closed the connection]
07:20
schaerli has joined #ruby-lang
07:21
danijoo_ has quit [Ping timeout: 250 seconds]
07:22
tbuehlmann has joined #ruby-lang
07:22
emmesswhy has joined #ruby-lang
07:22
elia has quit [Quit: Computer has gone to sleep.]
07:23
skammer3 has quit [Ping timeout: 272 seconds]
07:23
justinmburrous has joined #ruby-lang
07:27
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:27
rolfb has joined #ruby-lang
07:27
rolfb has quit [Remote host closed the connection]
07:29
ad_boot has joined #ruby-lang
07:30
lcdhoffman has quit [Quit: lcdhoffman]
07:33
elia has joined #ruby-lang
07:34
apeiros has joined #ruby-lang
07:35
_ht has joined #ruby-lang
07:35
charliesome has quit [Quit: zzz]
07:37
danijoo has joined #ruby-lang
07:37
yfeldblu_ has joined #ruby-lang
07:38
emrox has joined #ruby-lang
07:39
justinmburrous has quit [Remote host closed the connection]
07:39
justinmburrous has joined #ruby-lang
07:40
arBmind1 has quit [Quit: Leaving.]
07:42
yfeldblu_ has quit [Ping timeout: 260 seconds]
07:42
Suchit_ has quit [Read error: Connection reset by peer]
07:42
Suchit_ has joined #ruby-lang
07:44
justinmburrous has quit [Ping timeout: 250 seconds]
07:44
charliesome has joined #ruby-lang
07:46
|jemc| has quit [Ping timeout: 272 seconds]
07:46
sheldonh has joined #ruby-lang
07:47
<
sheldonh >
does rvm have a one-liner equivalent for: rvm use $(cat .ruby-version)@$(cat .ruby-gemset) --create
07:52
shubhamgoyal has quit [Read error: Connection reset by peer]
07:52
justinmburrous has joined #ruby-lang
07:52
shubhamgoyal has joined #ruby-lang
07:55
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:56
shubhamgoyal has quit [Ping timeout: 260 seconds]
07:57
ikrima has joined #ruby-lang
07:57
Newbie0086 has joined #ruby-lang
07:58
Iskarlar has joined #ruby-lang
08:01
michd is now known as MichD
08:05
shubhamgoyal has joined #ruby-lang
08:08
justinmburrous has quit [Remote host closed the connection]
08:16
thomasxie has quit [Ping timeout: 260 seconds]
08:16
<
yorickpeterse >
morning
08:17
justinmburrous has joined #ruby-lang
08:18
skammer3 has joined #ruby-lang
08:20
chouhoulis has quit [Remote host closed the connection]
08:20
emmesswhy has quit [Quit: This computer has gone to sleep]
08:23
emilsoman has quit [Quit: Leaving.]
08:23
skammer3 has quit [Ping timeout: 244 seconds]
08:25
apeiros_ has joined #ruby-lang
08:27
fullybaked has joined #ruby-lang
08:27
fullybaked has left #ruby-lang [#ruby-lang]
08:28
apeiros__ has joined #ruby-lang
08:28
apeiros has quit [Ping timeout: 246 seconds]
08:28
shubhamg_ has joined #ruby-lang
08:30
apeiros_ has quit [Ping timeout: 245 seconds]
08:31
shubhamgoyal has quit [Ping timeout: 260 seconds]
08:33
justinmburrous has quit [Remote host closed the connection]
08:36
<
maloik >
zzz broken computer is broken
08:37
charliesome has quit [Quit: zzz]
08:37
Suchit_ has quit [Read error: Connection reset by peer]
08:37
Suchit_ has joined #ruby-lang
08:37
charliesome has joined #ruby-lang
08:38
charliesome has quit [Client Quit]
08:38
<
maloik >
also, I think yorickpeterse cursed me... ever since his baruco lightning talk about oga my nokogiri has been acting up
08:38
Suchit__ has joined #ruby-lang
08:38
yfeldblum has joined #ruby-lang
08:38
Suchit_ has quit [Read error: Connection reset by peer]
08:41
chussenot has joined #ruby-lang
08:41
<
yorickpeterse >
justice has been served
08:41
yfeldblum has quit [Remote host closed the connection]
08:42
<
maloik >
colleagues are working on a security tool, just made an issue 'replace nokogiri' :D
08:42
yfeldblum has joined #ruby-lang
08:43
<
maloik >
sounds like a good plan if they intend to install it on a bunch of servers
08:43
apeiros__ is now known as apeiros
08:46
snoopybbt has quit [Ping timeout: 245 seconds]
08:48
<
yorickpeterse >
oh boy, pre 1.0 software in a security tool :P
08:50
skammer3 has joined #ruby-lang
08:53
arBmind has joined #ruby-lang
08:54
emilsoman has joined #ruby-lang
08:55
skammer3 has quit [Ping timeout: 272 seconds]
08:57
skade has joined #ruby-lang
09:03
justinmburrous has joined #ruby-lang
09:05
marr has joined #ruby-lang
09:10
ledestin_ has joined #ruby-lang
09:12
ledestin has quit [Ping timeout: 250 seconds]
09:12
ledestin_ is now known as ledestin
09:15
dangerousdave has joined #ruby-lang
09:15
Musashi007 has quit [Quit: Musashi007]
09:18
justinmburrous has quit [Remote host closed the connection]
09:19
justinmburrous has joined #ruby-lang
09:22
mikecmpbll has joined #ruby-lang
09:24
justinmburrous has quit [Ping timeout: 272 seconds]
09:25
<
maloik >
I imagine by the time we're at 1.0 ourselves you'll be there too :-)
09:26
<
yorickpeterse >
actually, 1.0 should be there before the end of the year
09:26
<
yorickpeterse >
soon ™
09:26
imperator has joined #ruby-lang
09:29
<
apeiros >
yorickpeterse: oga is pure ruby, right?
09:30
justinmburrous has joined #ruby-lang
09:30
Newbie0086 has quit [Quit: 离开]
09:30
jo__ has quit [Quit: Connection closed for inactivity]
09:32
jhass|off is now known as jhass
09:32
gjaldon has joined #ruby-lang
09:32
t4nk692 has joined #ruby-lang
09:33
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:34
mkaesz has joined #ruby-lang
09:36
<
yorickpeterse >
apeiros: mostly
09:36
<
yorickpeterse >
The XML lexer is partially C/Java
09:36
<
yorickpeterse >
but it only takes a second or so to compile
09:37
charliesome has joined #ruby-lang
09:38
gjaldon has quit []
09:38
schaerli has quit [Remote host closed the connection]
09:38
t4nk692 has quit [Ping timeout: 246 seconds]
09:39
dangerousdave has joined #ruby-lang
09:40
seank_ has quit [Read error: No route to host]
09:40
seank_ has joined #ruby-lang
09:41
TheToad has joined #ruby-lang
09:42
Demannu_ has joined #ruby-lang
09:42
haraoka has quit [Ping timeout: 272 seconds]
09:43
rtl_ has joined #ruby-lang
09:43
benlovel1 has joined #ruby-lang
09:44
hagabaka has quit [Write error: Broken pipe]
09:44
AmBienCeD has quit [Write error: Broken pipe]
09:45
justinmburrous has quit [Remote host closed the connection]
09:46
ramblinpeck has quit [Ping timeout: 467 seconds]
09:46
ramblinpeck has joined #ruby-lang
09:46
imajes has quit [Ping timeout: 467 seconds]
09:46
hagabaka has joined #ruby-lang
09:46
postmodern has quit [Quit: Leaving]
09:46
imajes has joined #ruby-lang
09:47
Demannu has quit [Write error: Broken pipe]
09:47
benlovell has quit [Write error: Broken pipe]
09:47
rtl has quit [Write error: Broken pipe]
09:47
AmBienCeD has joined #ruby-lang
09:48
thomasxie has joined #ruby-lang
09:48
ikrima has quit [Ping timeout: 263 seconds]
09:50
t4nk820 has joined #ruby-lang
09:50
<
t4nk820 >
testing...
09:50
<
t4nk820 >
Aha, I'm back!
09:50
<
yorickpeterse >
quick, hide
09:52
<
t4nk820 >
Muhahahaha, hide your kinds, hide your wife/wives!
09:52
ledestin_ has joined #ruby-lang
09:53
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:54
kyb3r_ has quit [Read error: Connection reset by peer]
09:54
ledestin has quit [Ping timeout: 272 seconds]
09:54
ledestin_ is now known as ledestin
09:55
arBmind has quit [Ping timeout: 272 seconds]
09:56
<
yorickpeterse >
kinds?
09:56
<
yorickpeterse >
can't really hide all of humanity
09:57
<
t4nk820 >
Use private, that works.
09:58
sepp2k has joined #ruby-lang
10:01
dangerousdave has joined #ruby-lang
10:01
<
imperator >
you're back....from what?
10:02
<
t4nk820 >
From the future.
10:02
arBmind has joined #ruby-lang
10:02
<
t4nk820 >
I knew you would write that.
10:03
ryba has joined #ruby-lang
10:06
<
t4nk820 >
Quick question: I'm trying to install the ruby-nxt library, but there is no gemfile. Any suggestions?
10:07
<
imperator >
looks quite old
10:08
<
t4nk820 >
Is that a bad sign?
10:08
stamina has joined #ruby-lang
10:09
<
imperator >
t4nk820, do a "gem search -r lego"
10:09
<
imperator >
one of those looks like it might be current, and what you want
10:10
TheToad has quit [Read error: Connection reset by peer]
10:11
AmBienCeD has quit [Write error: Broken pipe]
10:12
<
t4nk820 >
Hmm, thank you!
10:12
AmBienCeD has joined #ruby-lang
10:12
AmBienCeD has joined #ruby-lang
10:13
<
t4nk820 >
Actually, I can't use that. I need the microphone support, wich doesn't seem to be implemented yet. Thus, I'll ned ruby-nxt.
10:15
<
t4nk820 >
Still, I only get the 503 when trying gem install ruby-nxt. Should I wait until I get home?
10:18
schaerli has joined #ruby-lang
10:20
sarkyniin has joined #ruby-lang
10:20
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:21
jsaak has quit [Ping timeout: 250 seconds]
10:24
skammer3 has joined #ruby-lang
10:26
<
darix >
t4nk820: which command exactly gives you 503?
10:27
<
t4nk820 >
gem install ruby-nxt
10:30
<
imperator >
hm, so there is a ruby-nxt gem
10:31
shubhamg_ has quit [Remote host closed the connection]
10:31
<
imperator >
t4nk820, which platform are you on?
10:31
shubhamgoyal has joined #ruby-lang
10:36
shubhamgoyal has quit [Ping timeout: 260 seconds]
10:37
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
10:38
dangerou_ has joined #ruby-lang
10:39
pskosinski has joined #ruby-lang
10:39
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
10:42
thomasxie has quit [Ping timeout: 240 seconds]
10:44
AmBienCeD has quit [Write error: Broken pipe]
10:48
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:48
kith_ has joined #ruby-lang
10:49
kith has quit [Disconnected by services]
10:49
chussenot has quit [Quit: chussenot]
10:49
kith_ is now known as kith
10:51
chussenot has joined #ruby-lang
10:54
skammer3 has quit [*.net *.split]
10:54
tkuchiki has quit [*.net *.split]
10:54
ta has quit [*.net *.split]
10:54
Caius has quit [*.net *.split]
10:54
hellome has quit [*.net *.split]
10:54
jkyle has quit [*.net *.split]
10:54
hakunin has quit [*.net *.split]
10:56
ryba has quit [Quit: Odcházím]
10:56
robbyoconnor has quit [Ping timeout: 258 seconds]
10:57
dangerou_ has joined #ruby-lang
10:58
benlovel1 has quit [Ping timeout: 272 seconds]
10:59
supergeek has joined #ruby-lang
11:00
justinmburrous has joined #ruby-lang
11:02
mkaesz has quit [Remote host closed the connection]
11:02
apeiros has quit [Remote host closed the connection]
11:03
apeiros has joined #ruby-lang
11:04
imperator has quit [Quit: Valete!]
11:07
apeiros has quit [Ping timeout: 244 seconds]
11:07
dagda1_ has quit [Read error: Connection reset by peer]
11:08
dagda1 has joined #ruby-lang
11:08
x0f_ has joined #ruby-lang
11:08
supergeek has quit [Quit: Goodbye, cruel world.]
11:08
AmBienCeD has joined #ruby-lang
11:08
Caius has joined #ruby-lang
11:08
ta has joined #ruby-lang
11:08
hakunin has joined #ruby-lang
11:08
skammer3 has joined #ruby-lang
11:08
jkyle has joined #ruby-lang
11:08
hellome has joined #ruby-lang
11:08
tkuchiki has joined #ruby-lang
11:08
hellome has quit [Max SendQ exceeded]
11:08
skammer has joined #ruby-lang
11:09
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:09
skade has quit [Quit: Computer has gone to sleep.]
11:10
skammer3 has quit [Quit: WeeChat 1.0]
11:10
tkuchiki has quit [Remote host closed the connection]
11:12
x0f has quit [Ping timeout: 272 seconds]
11:15
kirin` has quit [Ping timeout: 245 seconds]
11:15
marr has joined #ruby-lang
11:15
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:15
justinmburrous has quit [Remote host closed the connection]
11:16
kirin` has joined #ruby-lang
11:17
AmBienCeD has quit [Write error: Broken pipe]
11:17
danijoo has quit [Ping timeout: 250 seconds]
11:18
migbar has joined #ruby-lang
11:18
Forgetful_Lion has joined #ruby-lang
11:18
AmBienCeD has joined #ruby-lang
11:18
AmBienCeD has joined #ruby-lang
11:20
Lewix has joined #ruby-lang
11:21
danijoo has joined #ruby-lang
11:22
dangerou_ has joined #ruby-lang
11:23
yfeldblum has quit [Ping timeout: 260 seconds]
11:24
druznek has quit [Ping timeout: 245 seconds]
11:25
clauswitt has joined #ruby-lang
11:28
toretore has joined #ruby-lang
11:29
fusillicode has joined #ruby-lang
11:30
thomasxie has joined #ruby-lang
11:30
hellangel7 has joined #ruby-lang
11:30
fusillicode1 has joined #ruby-lang
11:31
benlovell has joined #ruby-lang
11:32
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:33
fusillicode has quit [Ping timeout: 246 seconds]
11:33
darkness has joined #ruby-lang
11:34
darkness is now known as Guest69152
11:34
Guest69152 has quit [Max SendQ exceeded]
11:35
Guest69152 has joined #ruby-lang
11:35
hellangel7 has quit [Ping timeout: 272 seconds]
11:36
ldnunes has joined #ruby-lang
11:36
dangerousdave has joined #ruby-lang
11:42
shubhamgoyal has joined #ruby-lang
11:43
skade has joined #ruby-lang
11:46
shubhamgoyal has quit [Ping timeout: 272 seconds]
11:48
emrox has joined #ruby-lang
11:51
justinmburrous has joined #ruby-lang
11:52
chills42 has joined #ruby-lang
11:52
arooni-mobile has joined #ruby-lang
11:57
yalue has joined #ruby-lang
11:57
matp has quit [Ping timeout: 272 seconds]
11:59
t4nk820 has quit [Ping timeout: 246 seconds]
12:01
mkaesz has joined #ruby-lang
12:02
hellangel7 has joined #ruby-lang
12:04
Guest69152 has quit [Ping timeout: 272 seconds]
12:06
justinmburrous has quit [Remote host closed the connection]
12:06
tkuchiki has joined #ruby-lang
12:06
justinmburrous has joined #ruby-lang
12:08
mkaesz has quit [Remote host closed the connection]
12:11
justinmburrous has quit [Ping timeout: 245 seconds]
12:15
arooni-mobile has quit [Ping timeout: 258 seconds]
12:20
chouhoulis has joined #ruby-lang
12:21
cornerma1 has joined #ruby-lang
12:22
mkaesz has joined #ruby-lang
12:24
cornerman has quit [Ping timeout: 250 seconds]
12:24
cornerma1 is now known as cornerman
12:25
chouhoulis has quit [Ping timeout: 272 seconds]
12:25
justinmburrous has joined #ruby-lang
12:25
skade has quit [Read error: Connection reset by peer]
12:26
skade has joined #ruby-lang
12:30
dorei has joined #ruby-lang
12:32
Demannu_ is now known as Demannu
12:32
tkuchiki has quit [Remote host closed the connection]
12:33
mkaesz has quit [Remote host closed the connection]
12:36
ad_boot has quit [Remote host closed the connection]
12:37
tkuchiki has joined #ruby-lang
12:39
sarkyniin has quit [Quit: Quitte]
12:39
[spoiler] has joined #ruby-lang
12:39
mkaesz has joined #ruby-lang
12:41
justinmburrous has quit [Remote host closed the connection]
12:44
relix has joined #ruby-lang
12:45
skammer has quit [Ping timeout: 260 seconds]
12:46
relix has quit [Client Quit]
12:47
emilsoman has quit [Quit: Leaving.]
12:47
emilsoman has joined #ruby-lang
12:48
emilsoman has quit [Client Quit]
12:49
t4nk347 has joined #ruby-lang
12:50
Forgetful_Lion has quit [Remote host closed the connection]
12:52
druznek has joined #ruby-lang
12:52
davispuh has joined #ruby-lang
12:53
arooni-mobile has joined #ruby-lang
12:56
<
t4nk347 >
How do I declare that a variable only takes numbers, without using the #to_i afterwards?
12:58
justinmburrous has joined #ruby-lang
12:58
<
yorickpeterse >
You don't, Ruby isn't statically typed
12:59
<
t4nk347 >
Oh. So I can't use like x.to_i = 1 ?
12:59
<
oddmunds >
no, use: x = 1
12:59
malconis has joined #ruby-lang
13:00
malconis has quit [Remote host closed the connection]
13:01
<
t4nk347 >
And then x.to_i ?
13:01
<
oddmunds >
what are you trying to achieve?
13:01
<
oddmunds >
you could just use x
13:01
<
oddmunds >
(maybe i'm not understanding what you're trying to do)
13:02
<
t4nk347 >
Not trying anything. Just making a theory.
13:02
scampbell has joined #ruby-lang
13:03
<
oddmunds >
you could use x.to_i to make sure what comes out is a Fixnum
13:04
malconis has joined #ruby-lang
13:06
emilsoman has joined #ruby-lang
13:06
jo__ has joined #ruby-lang
13:07
skammer has joined #ruby-lang
13:07
wolves_cs has joined #ruby-lang
13:07
arooni-mobile has quit [Ping timeout: 240 seconds]
13:08
gjaldon has joined #ruby-lang
13:09
miqui has joined #ruby-lang
13:10
SuMo_D has joined #ruby-lang
13:10
AmBienCeD has quit [Write error: Broken pipe]
13:11
ta__ has joined #ruby-lang
13:11
ta has quit [Ping timeout: 249 seconds]
13:12
shubhamgoyal has joined #ruby-lang
13:13
<
t4nk347 >
Alright. Now I know that I cannot declare the type of the variables. They are omnipotent. Thanks.
13:13
justinmburrous has quit [Remote host closed the connection]
13:14
<
oddmunds >
hehe, np
13:14
chouhoulis has joined #ruby-lang
13:15
chouhoul_ has joined #ruby-lang
13:15
chouhoulis has quit [Read error: Connection reset by peer]
13:15
chouhoul_ has quit [Remote host closed the connection]
13:15
apeiros has joined #ruby-lang
13:16
chouhoulis has joined #ruby-lang
13:17
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:18
arBmind has quit [Quit: Leaving.]
13:21
oleo has joined #ruby-lang
13:21
dangerousdave has joined #ruby-lang
13:22
t4nk347 has quit [Ping timeout: 246 seconds]
13:24
apeiros has quit [Remote host closed the connection]
13:24
nofxx has joined #ruby-lang
13:24
apeiros has joined #ruby-lang
13:26
rcvalle has joined #ruby-lang
13:29
justinmburrous has joined #ruby-lang
13:29
apeiros has quit [Ping timeout: 272 seconds]
13:29
rsl has joined #ruby-lang
13:29
skade has quit [Read error: Connection reset by peer]
13:30
skade has joined #ruby-lang
13:34
Blaguvest has quit []
13:38
yfeldblum has joined #ruby-lang
13:39
charliesome has quit [Quit: zzz]
13:40
torrieri has joined #ruby-lang
13:41
apeiros has joined #ruby-lang
13:42
hellangel7 has quit [Ping timeout: 272 seconds]
13:42
mkaesz has quit [Ping timeout: 260 seconds]
13:42
yfeldblum has quit [Ping timeout: 258 seconds]
13:45
justinmburrous has quit [Remote host closed the connection]
13:45
justinmburrous has joined #ruby-lang
13:46
gjaldon has quit [Remote host closed the connection]
13:47
hellangel7 has joined #ruby-lang
13:47
crunk_bear has joined #ruby-lang
13:48
pskosinski has joined #ruby-lang
13:49
Suchit__ has quit [Quit: Computer has gone to sleep.]
13:50
shinnya has joined #ruby-lang
13:50
justinmburrous has quit [Ping timeout: 260 seconds]
13:52
justinmburrous has joined #ruby-lang
13:53
kgrz_ has quit [Remote host closed the connection]
13:54
kgrz has joined #ruby-lang
13:55
arooni-mobile has joined #ruby-lang
13:58
kgrz has quit [Ping timeout: 240 seconds]
13:59
apeiros_ has joined #ruby-lang
14:00
apeiros has quit [Ping timeout: 272 seconds]
14:00
arooni-mobile has quit [Ping timeout: 245 seconds]
14:04
danromano has quit [Ping timeout: 272 seconds]
14:05
<
yorickpeterse >
Today I'm playing the game "Is this code used yes or no, and do I need to update it"
14:05
sheldonh has quit [Quit: enough r&d, time for some r&r]
14:05
<
yorickpeterse >
So far the verdict is "fukit git rm it"
14:05
JohnBat26 has quit [Read error: Connection reset by peer]
14:06
gjaldon has joined #ruby-lang
14:08
justinmburrous has quit [Remote host closed the connection]
14:10
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:11
emilsoman has quit [Quit: Leaving.]
14:11
snsei has joined #ruby-lang
14:13
skade has quit [Quit: Computer has gone to sleep.]
14:13
charliesome has joined #ruby-lang
14:14
snoopybbt has joined #ruby-lang
14:14
bradcliffe has joined #ruby-lang
14:15
snoopybbt has quit [Read error: Connection reset by peer]
14:16
snoopybbt has joined #ruby-lang
14:23
danromano has joined #ruby-lang
14:24
skammer has quit [Ping timeout: 272 seconds]
14:25
AKASkip has quit [Ping timeout: 240 seconds]
14:26
nathanstitt has joined #ruby-lang
14:26
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
14:28
arBmind has joined #ruby-lang
14:29
JohnBat26 has joined #ruby-lang
14:31
chouhoulis has quit [Remote host closed the connection]
14:32
chouhoulis has joined #ruby-lang
14:32
yfeldblum has joined #ruby-lang
14:33
AmBienCeD has joined #ruby-lang
14:36
snsei has quit [Remote host closed the connection]
14:37
loincloth has joined #ruby-lang
14:37
yfeldblum has quit [Ping timeout: 244 seconds]
14:37
chouhoulis has quit [Ping timeout: 272 seconds]
14:43
whippythellama has joined #ruby-lang
14:46
banisterfiend has quit [Read error: Connection reset by peer]
14:46
banister has joined #ruby-lang
14:46
banister has quit [Max SendQ exceeded]
14:47
banister has joined #ruby-lang
14:47
banister has quit [Max SendQ exceeded]
14:47
banister has joined #ruby-lang
14:48
banister has quit [Max SendQ exceeded]
14:48
dstynchula has joined #ruby-lang
14:48
dstynchula has left #ruby-lang [#ruby-lang]
14:48
justinmburrous has joined #ruby-lang
14:48
banister has joined #ruby-lang
14:48
banister has quit [Max SendQ exceeded]
14:49
banister has joined #ruby-lang
14:49
banister has quit [Max SendQ exceeded]
14:50
banister has joined #ruby-lang
14:50
banister has quit [Max SendQ exceeded]
14:50
mistym has joined #ruby-lang
14:50
banister has joined #ruby-lang
14:50
banister has quit [Max SendQ exceeded]
14:51
gjaldon has quit [Remote host closed the connection]
14:51
gjaldon has joined #ruby-lang
14:52
dangerousdave has joined #ruby-lang
14:53
banister has joined #ruby-lang
14:53
mistym has quit [Remote host closed the connection]
14:53
snsei has joined #ruby-lang
14:54
enebo has joined #ruby-lang
14:55
oleo__ has joined #ruby-lang
14:55
bradcliffe has quit [Remote host closed the connection]
14:55
snsei has quit [Remote host closed the connection]
14:55
charliesome has quit [Quit: zzz]
14:56
gjaldon has quit [Ping timeout: 260 seconds]
14:57
oleo is now known as Guest59953
14:57
Guest59953 has quit [Ping timeout: 240 seconds]
14:57
clauswitt has joined #ruby-lang
14:58
rippa has joined #ruby-lang
15:00
benlovell has quit [Ping timeout: 250 seconds]
15:01
tbuehlmann has quit [Quit: Leaving]
15:03
justinmburrous has quit [Remote host closed the connection]
15:04
kgrz has joined #ruby-lang
15:07
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:08
shinnya has quit [Ping timeout: 246 seconds]
15:08
hellangel7 has quit [Remote host closed the connection]
15:10
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
15:10
koderok has quit [Quit: koderok]
15:11
mistym has joined #ruby-lang
15:11
snsei has joined #ruby-lang
15:13
schaerli has quit [Remote host closed the connection]
15:13
justinmburrous has joined #ruby-lang
15:14
<
eristic >
Hi everyone. If I want User.find and User.all methods without resorting to a database, how would you suggest I go about it? Is this a situation for a class variable?
15:15
<
ljarvis >
eristic: a class method, probably. It really depends on what you're trying to do
15:15
solars has quit [Ping timeout: 258 seconds]
15:16
snsei has quit [Remote host closed the connection]
15:16
d-ash has joined #ruby-lang
15:17
dangerousdave has joined #ruby-lang
15:17
dangerousdave has quit [Client Quit]
15:18
<
eristic >
ljarvis: What I'm thinking is that I want to be able to confirm uniqueness of a user by name, and look them up. I'm aiming for a hash with the name as a key.
15:19
gjaldon has joined #ruby-lang
15:20
centrx has joined #ruby-lang
15:21
centrx has quit [Client Quit]
15:21
centrx has joined #ruby-lang
15:22
<
ljarvis >
(this is just an example, I don't necessarily condone the use of this code as it is)
15:25
<
eristic >
ljarvis: I shall contemplate this.
15:26
Xzyx987X has quit [Ping timeout: 258 seconds]
15:26
yfeldblum has joined #ruby-lang
15:28
<
yorickpeterse >
Problem: some code does not do X
15:28
<
yorickpeterse >
Solution: lets just call that method multiple times in different places
15:28
<
yorickpeterse >
surely that will fix it
15:28
<
ljarvis >
I've missed you Yorick
15:28
<
yorickpeterse >
ignoring that it's already called in a before hook
15:28
<
yorickpeterse >
ljarvis: (¯ε¯ )
15:28
d-ash is now known as drew2
15:29
justinmburrous has quit [Remote host closed the connection]
15:29
<
yorickpeterse >
also found some code that basically did this:
15:29
<
yorickpeterse >
foo.update_attributes(....)
15:29
<
yorickpeterse >
foo.save
15:29
<
yorickpeterse >
foo.save
15:29
<
yorickpeterse >
'cause 1 save is not enoguh!
15:29
<
yorickpeterse >
* enough
15:29
<
ljarvis >
it's.. beautiful
15:30
<
ericwood >
we had someone do eval(params[:type]) instead of a whitelist with ActiveRecord::Base.const_get()
15:30
<
ericwood >
A++++ would remote code execute again
15:30
<
ljarvis >
mother of god
15:30
momomomomo has joined #ruby-lang
15:30
|jemc| has joined #ruby-lang
15:30
<
ljarvis >
some things are silly, that's plain fucked up
15:30
<
ericwood >
I've seen some shit, man
15:31
<
yorickpeterse >
Ruby really should emit a warning whenever somebody uses const_get in a Rails app
15:31
<
ericwood >
my most recent fave: def foo(options = {})
15:31
<
ljarvis >
how do these people get jobs, seriously
15:31
spastorino has joined #ruby-lang
15:31
<
yorickpeterse >
"WARNING: YOU PROBABLY JUST WANT TO USE A HASH INSTEAD OF USING USER INPUT"
15:31
danromano has quit [Ping timeout: 246 seconds]
15:31
<
ericwood >
where it fails because "options" is supposed to be a string
15:31
yfeldblum has quit [Ping timeout: 260 seconds]
15:31
<
ericwood >
I had to grep for examples of its usage to see
15:31
<
ericwood >
"oh cool I know that pattern"
15:31
<
yorickpeterse >
ljarvis: their employers lack the pedantics required to spot these problems
15:31
* ericwood
calls method, watches it fail spectacularly
15:32
* ericwood
reads examples, realizes the default value and variable name have no bearing on reality
15:32
drew2 has quit [Quit: WeeChat 0.3.7]
15:32
<
ericwood >
I'd give an excuse but this was from a long long time ago and said people no longer work here
15:32
<
ljarvis >
so story, when I first started my previous job, I was so nervous coding with someone breathing down my back, I refactored some code that used any?(&:zero?) to handle nil values and wrote it: any? { |c| c.respond_to?(:zero?) && c.zero? }
15:32
<
ljarvis >
it wasn't a fun moment
15:32
<
ericwood >
which is good because we'd give them an asswhooping if they were still around
15:34
<
yorickpeterse >
ljarvis: meh, that's not really that bad
15:34
<
yorickpeterse >
The canonical Ruby way is as following:
15:34
d-ash has joined #ruby-lang
15:34
<
yorickpeterse >
values.compact.any?(&:zero?)
15:34
danromano has joined #ruby-lang
15:34
<
yorickpeterse >
better always call compact
15:34
<
yorickpeterse >
For best measurement, call it multiple times
15:34
<
yorickpeterse >
values.compact.any?(&:zero?).compact # darn those pesky nils, we should've had monads instead!
15:35
d-ash has quit [Client Quit]
15:35
<
yorickpeterse >
The pedantics police makes no exceptions
15:35
drew2 has joined #ruby-lang
15:36
<
yorickpeterse >
While we're at it, the results of some refactoring plus moving this big fat app over to Dotenv:
15:36
<
yorickpeterse >
"Showing 84 changed files with 754 additions and 5,130 deletions."
15:37
<
yorickpeterse >
The amount of hidden credentials was....interesting
15:37
<
yorickpeterse >
(as in, hidden in random files)
15:37
<
ljarvis >
lol @ that PR
15:38
<
yorickpeterse >
Yeah the PR is stupid simple, but I've had too many drive-by commits so I'd like people to learn
15:38
<
yorickpeterse >
"here I fixed this for you" "can you change X?" "lol no"
15:38
justinmburrous has joined #ruby-lang
15:38
<
ljarvis >
your project, nothing wrong with your response
15:38
momomomomo has quit [Quit: momomomomo]
15:38
<
yorickpeterse >
Having said that, I've had plenty of people actually put some solid effort into their changes
15:46
danromano has quit [Ping timeout: 260 seconds]
15:47
symm- has joined #ruby-lang
15:49
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
15:52
__butch__ has joined #ruby-lang
15:53
justinmburrous has quit [Remote host closed the connection]
15:54
cmhobbs has joined #ruby-lang
15:56
dangerousdave has joined #ruby-lang
15:56
gss has joined #ruby-lang
15:57
chussenot has quit [Ping timeout: 246 seconds]
15:58
dagda1 has joined #ruby-lang
15:59
solars has joined #ruby-lang
15:59
danromano has joined #ruby-lang
15:59
imkmf has joined #ruby-lang
16:04
s1kx has quit [Quit: Leaving]
16:05
snoopybbt has quit [Quit: leaving]
16:05
thomasxie has quit [Remote host closed the connection]
16:06
gjaldon has quit [Remote host closed the connection]
16:06
schaerli has joined #ruby-lang
16:07
momomomomo has joined #ruby-lang
16:10
jo__ has quit [Quit: Connection closed for inactivity]
16:11
jo__ has joined #ruby-lang
16:11
hellangel7 has joined #ruby-lang
16:11
__butch__ has quit [Quit: Leaving.]
16:12
hellangel7 has quit [Max SendQ exceeded]
16:13
hellangel7 has joined #ruby-lang
16:13
davispuh has quit [K-Lined]
16:14
hellangel7 has quit [Max SendQ exceeded]
16:14
momomomomo has quit [Quit: momomomomo]
16:15
Iskarlar has quit [Ping timeout: 272 seconds]
16:15
michaeldeol has joined #ruby-lang
16:15
mistym has quit [Remote host closed the connection]
16:17
jayne has quit [Read error: Connection reset by peer]
16:17
jayne has joined #ruby-lang
16:17
__butch__ has joined #ruby-lang
16:18
dwknoxy has joined #ruby-lang
16:20
amsi has joined #ruby-lang
16:20
iliketurtles has joined #ruby-lang
16:22
wizonesolutions has quit [Remote host closed the connection]
16:22
beawesomeinstead has quit [Remote host closed the connection]
16:22
jo__ has quit [Remote host closed the connection]
16:22
spastorino has quit [Remote host closed the connection]
16:22
bcardarella has quit [Remote host closed the connection]
16:22
ramblinpeck has quit [Remote host closed the connection]
16:22
nomadicoder has quit [Remote host closed the connection]
16:22
akahn has quit [Write error: Broken pipe]
16:22
<
[spoiler] >
yorickpeterse, I'd ask them to do that, too lmao
16:22
<
[spoiler] >
Also, good work on oga, I remember when you were just starting it :D
16:22
tectonic has joined #ruby-lang
16:22
<
[spoiler] >
It feels like I'm watching someone raise a child
16:24
tectonic has quit [Client Quit]
16:25
iliketurtles has quit [Quit: zzzzz…..]
16:25
koderok has joined #ruby-lang
16:26
koderok has quit [Remote host closed the connection]
16:26
justinmburrous has joined #ruby-lang
16:29
elia has quit [Quit: Computer has gone to sleep.]
16:29
RobertBirnie has joined #ruby-lang
16:31
mistym has joined #ruby-lang
16:33
<
darix >
[spoiler]: at least he wasnt breast feeding it in public.
16:36
arBmind has quit [Quit: Leaving.]
16:40
schaerli has quit [Remote host closed the connection]
16:41
justinmburrous has quit [Remote host closed the connection]
16:42
thagomizer has joined #ruby-lang
16:42
bcardarella has joined #ruby-lang
16:43
akahn has joined #ruby-lang
16:43
clauswitt has joined #ruby-lang
16:43
beawesomeinstead has joined #ruby-lang
16:44
stamina has quit [Quit: WeeChat 1.0.1]
16:44
elia has joined #ruby-lang
16:45
tkuchiki has quit [Remote host closed the connection]
16:45
momomomomo has joined #ruby-lang
16:45
tylersmith has joined #ruby-lang
16:48
jxpx777 has joined #ruby-lang
16:48
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
16:48
chancancode has joined #ruby-lang
16:50
emilsoman has joined #ruby-lang
16:53
nomadicoder has joined #ruby-lang
16:53
uberjar has joined #ruby-lang
16:53
AlJaMa has left #ruby-lang ["Bye!"]
16:54
<
uberjar >
hi. is there a way to remove the first x items from an Array ? (mutate the array)
16:54
jlpeters_ has joined #ruby-lang
16:54
<
uberjar >
Array#take! does not exist :(
16:54
momomomomo has quit [Quit: momomomomo]
16:55
spastorino has joined #ruby-lang
16:55
wizonesolutions has joined #ruby-lang
16:55
<
[spoiler] >
uberjar, mutate the array in place or, just get a new array?
16:55
<
uberjar >
mutate please
16:56
<
uberjar >
I want to get the first 30 and have the remainder left in the array
16:56
<
[spoiler] >
there's delete_at
16:57
chouhoulis has joined #ruby-lang
16:57
<
uberjar >
I thought delete_at was for 1 item
16:57
<
uberjar >
can I pass it a range ?
16:57
<
[spoiler] >
30.times {|i| arr.delete_at i}
16:57
<
[spoiler] >
or slice
16:57
<
[spoiler] >
Array#slice!
16:57
allolex_ has joined #ruby-lang
16:58
<
[spoiler] >
Array#slice! 0..30
16:58
<
uberjar >
ok, I'll use a loop
16:58
<
uberjar >
OUUHhhhhh
16:58
<
uberjar >
that looks like what I"m looking for
16:58
ramblinpeck has joined #ruby-lang
16:59
<
[spoiler] >
maybe (not 100% sure) using the 2-parameter version might be faster `Array#slice 0, 30`
16:59
<
uberjar >
yep Array#slice! is 100% exactly what I needed
16:59
<
[spoiler] >
sorry, I meant slice!
16:59
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:59
uberjar has quit [Quit: cheers]
16:59
chills42 has quit [Ping timeout: 258 seconds]
17:00
loincloth has quit [Read error: Connection reset by peer]
17:00
imperator has joined #ruby-lang
17:01
loincloth has joined #ruby-lang
17:01
<
[spoiler] >
nah it should be about the sameish, from looking at the implementation
17:01
jo__ has joined #ruby-lang
17:03
arBmind has joined #ruby-lang
17:03
chills42 has joined #ruby-lang
17:03
arBmind has quit [Client Quit]
17:05
jbardin has joined #ruby-lang
17:05
GBrawl has joined #ruby-lang
17:05
elia has quit [Quit: Computer has gone to sleep.]
17:08
wallerdev has joined #ruby-lang
17:08
hahuang65 has joined #ruby-lang
17:11
symm- has quit [Quit: Leaving...]
17:14
yfeldblum has joined #ruby-lang
17:14
matp has joined #ruby-lang
17:14
iliketurtles has joined #ruby-lang
17:17
seanosaur has joined #ruby-lang
17:18
AKASkip has joined #ruby-lang
17:19
yfeldblum has quit [Ping timeout: 244 seconds]
17:20
thagomizer has quit [Quit: Leaving.]
17:20
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:22
chouhoulis has quit [Remote host closed the connection]
17:22
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
17:24
justinmburrous has joined #ruby-lang
17:24
clauswitt has joined #ruby-lang
17:25
chills42 has quit [Remote host closed the connection]
17:26
emmesswhy has joined #ruby-lang
17:28
robbyoconnor has joined #ruby-lang
17:28
Musashi007 has joined #ruby-lang
17:30
chills42 has joined #ruby-lang
17:30
p0pe has joined #ruby-lang
17:31
chussenot has joined #ruby-lang
17:34
druznek has quit [Ping timeout: 245 seconds]
17:37
emilsoman has quit [Quit: Leaving.]
17:38
chris2 has quit [Remote host closed the connection]
17:39
justinmburrous has quit [Remote host closed the connection]
17:40
Voker57 has joined #ruby-lang
17:41
p0pe has quit [Quit: Page closed]
17:46
wolves_cs has joined #ruby-lang
17:46
justinmburrous has joined #ruby-lang
17:48
tectonic has joined #ruby-lang
17:48
seanosaur has quit []
17:49
chris2 has joined #ruby-lang
17:49
jhass is now known as jhass|off
17:54
emmesswhy has quit [Quit: This computer has gone to sleep]
17:56
emmesswhy has joined #ruby-lang
18:01
Austin__ has joined #ruby-lang
18:02
justinmburrous has quit [Remote host closed the connection]
18:02
MichD is now known as michd
18:09
yfeldblum has joined #ruby-lang
18:09
imperator has quit [Quit: Valete!]
18:10
chouhoulis has joined #ruby-lang
18:11
jhass|off is now known as jhass
18:12
postmodern has joined #ruby-lang
18:13
yfeldblum has quit [Ping timeout: 250 seconds]
18:14
Austin__ has quit [Quit: Leaving.]
18:14
emilsoman has joined #ruby-lang
18:14
seank__ has joined #ruby-lang
18:14
Austin__ has joined #ruby-lang
18:15
dangerousdave has joined #ruby-lang
18:16
thagomizer has joined #ruby-lang
18:17
seank_ has quit [Ping timeout: 260 seconds]
18:18
skammer has joined #ruby-lang
18:19
<
yorickpeterse >
[spoiler]: 9 months now
18:19
<
yorickpeterse >
224 days
18:19
<
yorickpeterse >
so basically yes, a babby :P
18:20
Austin__ has quit [Quit: Leaving.]
18:21
Austin__ has joined #ruby-lang
18:21
bruno- has joined #ruby-lang
18:22
nofxx_ has joined #ruby-lang
18:23
momomomomo has joined #ruby-lang
18:24
klmlfl has joined #ruby-lang
18:26
nofxx has quit [Ping timeout: 245 seconds]
18:28
loincloth has quit [Remote host closed the connection]
18:28
gjaldon has joined #ruby-lang
18:29
robbyoconnor has quit [Ping timeout: 246 seconds]
18:29
gjaldon has quit [Client Quit]
18:31
justinmburrous has joined #ruby-lang
18:32
lcdhoffman has joined #ruby-lang
18:34
oleo__ has quit [Quit: Verlassend]
18:34
michd is now known as MichD
18:36
iliketurtles has joined #ruby-lang
18:36
emilsoman has quit [Quit: Leaving.]
18:42
a1digital has joined #ruby-lang
18:44
momomomomo has quit [Quit: momomomomo]
18:44
emmesswhy has quit [Quit: Leaving]
18:44
seank__ has quit [Remote host closed the connection]
18:45
seank_ has joined #ruby-lang
18:45
tkuchiki has joined #ruby-lang
18:46
apeiros_ has quit [Remote host closed the connection]
18:46
apeiros has joined #ruby-lang
18:46
a1digital has left #ruby-lang [#ruby-lang]
18:47
justinmburrous has quit [Remote host closed the connection]
18:50
tkuchiki has quit [Ping timeout: 245 seconds]
18:50
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:51
apeiros has quit [Ping timeout: 272 seconds]
18:51
momomomomo has joined #ruby-lang
18:51
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:54
gss_ has joined #ruby-lang
18:55
Musashi007 has quit [Read error: Connection reset by peer]
18:55
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:55
Xzyx987X has joined #ruby-lang
18:55
lun_ has joined #ruby-lang
18:55
gss_ has left #ruby-lang [#ruby-lang]
18:56
Musashi007 has joined #ruby-lang
18:57
gss has quit [Ping timeout: 244 seconds]
18:57
kgrz has quit [Ping timeout: 258 seconds]
18:59
havenwood has joined #ruby-lang
19:00
pskosinski_ has joined #ruby-lang
19:01
dagda1 has joined #ruby-lang
19:02
chussenot has quit [Quit: chussenot]
19:02
yalue has quit [Quit: Leaving]
19:02
gss has joined #ruby-lang
19:03
<
yorickpeterse >
blegh, backups suck
19:03
gss has left #ruby-lang [#ruby-lang]
19:03
<
yorickpeterse >
especially when juggling with encrypted drives
19:03
<
yorickpeterse >
also my naming is a bit confusing I think
19:03
oleo has joined #ruby-lang
19:03
<
yorickpeterse >
I have two drives: Nebula and Nova. Nova has a backup of Nebula, in a directory called nebula
19:03
<
yorickpeterse >
so you get shit like nova/nebula/super-secret-stuff
19:04
<
yorickpeterse >
but nebula doesn't have a backup of nova
19:04
pskosinski has quit [Ping timeout: 245 seconds]
19:04
<
yorickpeterse >
Once upon a time I used GPG for encryption. Then my key expired
19:04
<
yorickpeterse >
._.
19:04
<
yorickpeterse >
(for backing up data)
19:05
dagda1 has quit [Ping timeout: 245 seconds]
19:05
emilsoman has joined #ruby-lang
19:06
Xzyx987X has quit [Ping timeout: 245 seconds]
19:07
druznek has joined #ruby-lang
19:08
wallerdev has quit [Quit: wallerdev]
19:09
iliketurtles has quit [Quit: zzzzz…..]
19:09
chussenot has joined #ruby-lang
19:09
dagda1 has joined #ruby-lang
19:10
karamazov has joined #ruby-lang
19:10
dagda1 has quit [Read error: Connection reset by peer]
19:11
dagda1 has joined #ruby-lang
19:11
Xzyx987X has joined #ruby-lang
19:15
havenwood has quit []
19:15
loincloth has joined #ruby-lang
19:16
kgrz has joined #ruby-lang
19:16
justinmburrous has joined #ruby-lang
19:16
apeiros has joined #ruby-lang
19:16
robbyoconnor has joined #ruby-lang
19:17
emilsoman has quit [Quit: Leaving.]
19:19
dangerousdave has joined #ruby-lang
19:21
schaerli has joined #ruby-lang
19:23
sarkyniin has joined #ruby-lang
19:24
imperator has joined #ruby-lang
19:25
robbyoconnor has quit [Quit: Konversation terminated!]
19:25
<
imperator >
apparently redefining File.exist? is trickier than I thought
19:26
iliketurtles has joined #ruby-lang
19:30
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:30
klmlfl_ has joined #ruby-lang
19:30
klmlfl_ has quit [Remote host closed the connection]
19:31
klmlfl_ has joined #ruby-lang
19:31
justinmburrous has quit [Remote host closed the connection]
19:31
klmlfl has quit [Read error: Connection reset by peer]
19:32
dangerousdave has joined #ruby-lang
19:35
* yorickpeterse
dusts off a kitchen towel and slaps it at imperator
19:38
sepp2k has quit [Quit: Konversation terminated!]
19:40
pskosinski_ is now known as pskosinski
19:40
karamazov has quit []
19:43
<
[spoiler] >
imperator, why'd you do that at all, though?
19:44
ohsix has quit [Quit: Reconnecting]
19:44
ohsix has joined #ruby-lang
19:44
<
yorickpeterse >
they've gone mad
19:44
amsi has quit [Ping timeout: 258 seconds]
19:44
Lewix has quit [Remote host closed the connection]
19:46
Lewix has joined #ruby-lang
19:46
symm- has joined #ruby-lang
19:47
<
[spoiler] >
That's a plausible explanation :D
19:53
yfeldblum has joined #ruby-lang
19:54
michaeldeol has joined #ruby-lang
19:54
_ht has quit [Remote host closed the connection]
19:56
<
imperator >
[spoiler], trying to comply with the spec for File.exist on stale links
19:56
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
19:57
sepp2k has joined #ruby-lang
19:59
sharpmachine has joined #ruby-lang
19:59
[spoiler] has quit [Remote host closed the connection]
20:01
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:02
druznek has quit [Ping timeout: 260 seconds]
20:03
pr0ton_ has joined #ruby-lang
20:04
jbardin has quit [Quit: jbardin]
20:05
schaerli has quit [Remote host closed the connection]
20:06
chills42 has quit [Ping timeout: 244 seconds]
20:06
scampbell has quit [Remote host closed the connection]
20:07
justinmburrous has joined #ruby-lang
20:08
tectonic has joined #ruby-lang
20:09
tectonic has quit [Max SendQ exceeded]
20:09
imkmf has quit [Ping timeout: 245 seconds]
20:09
jbardin has joined #ruby-lang
20:09
momomomomo has quit [Quit: momomomomo]
20:11
Austin__ has quit [Quit: Leaving.]
20:12
elia has joined #ruby-lang
20:12
wallerdev has joined #ruby-lang
20:14
sarkyniin has quit [Quit: Quitte]
20:15
elia has quit [Client Quit]
20:18
pr0ton_ has quit [Quit: pr0ton_]
20:19
sharpmachine has quit [Remote host closed the connection]
20:19
shashwat001_ has joined #ruby-lang
20:20
GBrawl has quit [Quit: Computer has gone to sleep.]
20:20
<
shashwat001_ >
anyone there?
20:20
<
shashwat001_ >
hey I had ruby 1.9.1 installed along with rubygem
20:20
<
shashwat001_ >
I wanted to upgrade to ruby 1.9.3
20:21
<
shashwat001_ >
so I completely uninstalled ruby and rubygem
20:21
<
shashwat001_ >
from apt-get
20:22
justinmburrous has quit [Remote host closed the connection]
20:22
iliketurtles has quit [Quit: zzzzz…..]
20:23
GBrawl_ has joined #ruby-lang
20:24
momomomomo has joined #ruby-lang
20:24
Phrogz_ has joined #ruby-lang
20:24
Phrogz_ is now known as Phrogz
20:26
Lewix has quit [Remote host closed the connection]
20:30
druznek has joined #ruby-lang
20:30
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
20:32
justinmburrous has joined #ruby-lang
20:33
Lewix has joined #ruby-lang
20:34
imkmf has joined #ruby-lang
20:35
elia has joined #ruby-lang
20:36
michaeldeol has joined #ruby-lang
20:36
charliesome has joined #ruby-lang
20:37
Phrogz_ has joined #ruby-lang
20:37
Phrogz has quit [Disconnected by services]
20:37
Phrogz_ is now known as Phrogz
20:37
<
Phrogz >
>> module MyMod; class Bar; def doit; end; end; end; mod = 'MyMod'; klass='Bar'; meth='doit'; Object.const_get("#{mod}::#{klass}").instance_methods.include?( meth.to_sym )
20:37
<
Phrogz >
oops, wrong channel, sorry
20:37
sharpmachine has joined #ruby-lang
20:38
florinandrei has joined #ruby-lang
20:40
<
florinandrei >
when calculating avg = average(datapoints) sometimes some data points are nil, and that makes the average bad
20:41
<
florinandrei >
is there a way to kill the nil points before they reach the average() calculation?
20:41
<
florinandrei >
or before they even reach "unless datapoints.empty?" - that would be great, because all data points = nil means I don't have any data points, and I want that condition to trigger
20:42
nemec_ has joined #ruby-lang
20:42
parenjitsu has joined #ruby-lang
20:42
<
florinandrei >
(in case it's not already obvious, I'm new to Ruby)
20:43
iliketurtles has joined #ruby-lang
20:43
<
wallerdev >
thats a lot of code
20:44
<
wallerdev >
>> [nil, 2, 3, 4, nil].compact
20:44
<
darix >
wallerdev: you stole my example!
20:44
emmesswhy has joined #ruby-lang
20:44
<
darix >
>> [nil,1,2,3,nil,4].compact
20:45
<
darix >
florinandrei: there
20:45
emmesswhy has quit [Client Quit]
20:45
nemec has quit [Ping timeout: 246 seconds]
20:46
symm- has quit [Ping timeout: 272 seconds]
20:46
tkuchiki has joined #ruby-lang
20:47
justinmburrous has quit [Remote host closed the connection]
20:48
druznek has quit [Quit: Leaving]
20:48
druznek has joined #ruby-lang
20:48
druznek has quit [Read error: Connection reset by peer]
20:50
<
Voker57 >
can I submit a Proc to a function that takes a block?
20:50
<
florinandrei >
the problem is, metric looks like this:
20:50
<
florinandrei >
{"target"=>"aws.aws.us-west-1.
www.us-west-1-001.os.cpu.user ", "datapoints"=>[[0.25, 1412714520], [0.25, 1412714580], [0.25, 1412714640], [0.0, 1412714700], [nil, 1412714760]]}
20:51
tkuchiki has quit [Ping timeout: 250 seconds]
20:51
<
florinandrei >
.compact alone doesn't seem to do anything
20:51
<
apeiros >
Voker57: yes, use & to tell ruby to treat it as a block
20:51
<
apeiros >
>> iter = proc { |x| x + 2 }; [1,2,3].map(&iter)
20:51
<
florinandrei >
the solution must be somewhere in .collect()
20:51
<
florinandrei >
I must tell .collect{} to avoid collecting the nil points
20:52
amsi has joined #ruby-lang
20:52
<
darix >
florinandrei: that would be a start
20:52
<
florinandrei >
darix: but how?
20:53
<
darix >
i dont know. you could tell it to treat nil as 0
20:53
<
darix >
find out
*why* the value is nil and fix that
20:53
charliesome has quit [Quit: zzz]
20:53
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:54
<
florinandrei >
the value is nil because the data backend is lagging a bit
20:54
<
darix >
e.g. error out in the collection phase
20:54
benanne has joined #ruby-lang
20:54
<
darix >
so dont store stuff into your DB in that case?
20:55
<
florinandrei >
that's a change orders of magnitude bigger than fixing a bit of code
20:55
<
florinandrei >
I was hoping some of the Ruby experts here could guide this newbie
20:55
<
darix >
either skip them when rendering or when collecting
20:56
<
Phrogz >
florinandrei: mycollection.compact.collect{ ... }
20:56
<
darix >
-datapoints = metric['datapoints'].collect {|p| p[0].to_f}
20:56
<
Phrogz >
Oh, sorry, I'm now reading above.
20:56
<
Phrogz >
datapoints = metric['datapoints'].reject{ |a,b| a.nil? }.collect{ ... }
20:56
<
darix >
+datapoints = metric['datapoints'].reject {|e| e[0].nil? or e[1].nil? }.collect {|p| p[0].to_f}
20:57
<
Phrogz >
florinandrei: Are you averaging the first value, or the last value, or both?
20:57
<
florinandrei >
okay, that looks more promising, Phrogz and darix. let me test it
20:57
<
Phrogz >
You could also metric['datapoints'].map(&:first).compact
20:58
<
Phrogz >
(If you only care about the first value, for example.)
20:58
<
florinandrei >
Phrogz: it's a handful of values usually, the average is across all of them.
20:58
<
darix >
Phrogz: you forgot the .map(&:to_f)
20:58
<
Phrogz >
florinandrei: You have pairs of values in there; are you using both of them?
20:59
<
florinandrei >
the average is on the first value. the second value is just a timestamp in seconds since Unix epoch
20:59
<
Phrogz >
florinandrei: Then points = metric['datapoints'].map(&:first).compact; average = points.inject(:+)/points.length.to_f
21:00
<
Phrogz >
Or, if you want to treat the nils as 0 values: points = metric['datapoints'].map(&:first).map(&:to_f); average = points.inject(:+) / points.length
21:00
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:00
<
florinandrei >
nil is currently treated as zero somehow (don't know how) and that's what I need to avoid
21:00
<
darix >
Phrogz: but points = metric['datapoints'].map(&:first).map(&:to_f) would be pretty close to the original code no?
21:01
<
Phrogz >
darix: Perhaps I missed it. In any case, florinandrei wants them ignored, which the .map(&:first).compact will do.
21:01
<
darix >
florinandrei: but it would be more correct than what you do now
21:01
<
darix >
Phrogz: see there ;)
21:02
iliketurtles has quit [Quit: zzzzz…..]
21:04
<
florinandrei >
wow, this seems to work!
21:04
<
florinandrei >
datapoints = metric['datapoints'].map(&:first).compact
21:04
<
Phrogz >
Amazing :)
21:04
<
florinandrei >
darix: wait, is there a problem with that change?
21:05
<
Phrogz >
FYI, that is a shorter way of writing: metric['datapoints'].map{ |value_and_timestamp| value_and_timestamp.first }.compact
21:05
dagda1 has joined #ruby-lang
21:05
<
darix >
if the rest of the code assumes that it is the value for every 5 minute
21:07
<
florinandrei >
um... there are no assumptions. the data store collects data a a fixed frequency (1 min in my case, but it doesn't matter). this Ruby script then grabs the last few points (configurable via -p) and performs averages on the collected chunk
21:08
<
florinandrei >
the assumption is that data points are at fixed intervals, but size of interval, and number of collected points are not assumed anywhere
21:09
<
florinandrei >
I just run it as check-stats.rb -p -5mins and it grabs the last 5 items
21:09
<
florinandrei >
but I could change the interval if I need to
21:10
gianlucadv has quit [Ping timeout: 258 seconds]
21:10
<
florinandrei >
Phrogz: so if all data points are null, then it would trigger "unless datapoints.empty?" below, right?
21:11
<
florinandrei >
I mean, it would skip that part
21:12
sharpmachine has quit [Remote host closed the connection]
21:16
ldnunes has quit [Quit: Leaving]
21:16
elia has quit [Quit: Computer has gone to sleep.]
21:16
crunk_bear has quit [Ping timeout: 246 seconds]
21:17
emmesswhy has joined #ruby-lang
21:19
MichD is now known as michd
21:20
__butch__ has quit [Quit: Leaving.]
21:21
klmlfl has joined #ruby-lang
21:22
sharpmachine has joined #ruby-lang
21:23
sleepee has joined #ruby-lang
21:23
dangerousdave has joined #ruby-lang
21:24
klmlfl_ has quit [Ping timeout: 240 seconds]
21:26
<
florinandrei >
well, I've done some tests and it seems to work as expected. Thanks everyone!
21:27
Asher has quit [Quit: Leaving.]
21:30
bruno- has quit [Ping timeout: 246 seconds]
21:30
arBmind has joined #ruby-lang
21:30
jdecuirm has quit [Ping timeout: 258 seconds]
21:30
jdecuirm has joined #ruby-lang
21:33
chouhoul_ has joined #ruby-lang
21:34
solars has quit [Ping timeout: 245 seconds]
21:35
Voker57 has quit [Read error: Connection reset by peer]
21:36
chouhoulis has quit [Ping timeout: 244 seconds]
21:37
Phrogz_ has joined #ruby-lang
21:37
Phrogz has quit [Disconnected by services]
21:37
Phrogz_ is now known as Phrogz
21:44
chussenot has quit [Quit: chussenot]
21:49
tmatthews0020 has joined #ruby-lang
21:51
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:52
dangerousdave has joined #ruby-lang
21:53
malconis_ has joined #ruby-lang
21:54
charliesome has joined #ruby-lang
21:55
kwd has joined #ruby-lang
21:55
migbar has quit [Remote host closed the connection]
21:55
migbar has joined #ruby-lang
21:56
malconis has quit [Ping timeout: 272 seconds]
21:56
bruno- has joined #ruby-lang
21:57
Asher has joined #ruby-lang
21:58
amsi has quit [Ping timeout: 245 seconds]
21:59
amsi has joined #ruby-lang
22:00
migbar has quit [Ping timeout: 272 seconds]
22:01
florinandrei has left #ruby-lang ["Leaving"]
22:01
tmatthews0020 has left #ruby-lang [#ruby-lang]
22:02
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:03
dangerousdave has joined #ruby-lang
22:04
Asher has quit [Ping timeout: 272 seconds]
22:04
kwd has quit [Ping timeout: 272 seconds]
22:05
Asher has joined #ruby-lang
22:09
iliketurtles has joined #ruby-lang
22:13
fusillicode has joined #ruby-lang
22:13
fusillicode has quit [Client Quit]
22:14
kwd has joined #ruby-lang
22:14
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:15
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:16
fusillicode1 has quit [Ping timeout: 272 seconds]
22:18
skammer1 has joined #ruby-lang
22:18
cmhobbs has quit [Ping timeout: 245 seconds]
22:19
momomomomo has quit [Quit: momomomomo]
22:20
JonaiLive has joined #ruby-lang
22:21
JohnBat26 has quit [Ping timeout: 240 seconds]
22:21
michaeldeol has joined #ruby-lang
22:21
araujo has quit [Ping timeout: 272 seconds]
22:21
waxjar has quit [Ping timeout: 272 seconds]
22:22
skammer has quit [Ping timeout: 272 seconds]
22:23
chouhoul_ has quit [Remote host closed the connection]
22:24
chouhoulis has joined #ruby-lang
22:24
JonaiLive_ has joined #ruby-lang
22:24
waxjar has joined #ruby-lang
22:25
araujo has joined #ruby-lang
22:26
JonaiLive has quit [Ping timeout: 246 seconds]
22:27
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:27
justinmburrous has joined #ruby-lang
22:28
lun_ has quit [Remote host closed the connection]
22:28
whippythellama has quit [Quit: whippythellama]
22:29
JonaiLive_ has quit [Ping timeout: 246 seconds]
22:29
shashwat001_ has quit [Quit: Leaving]
22:31
dabradley has quit [Ping timeout: 246 seconds]
22:32
apeiros has quit [Ping timeout: 250 seconds]
22:33
apeiros has joined #ruby-lang
22:36
florinandrei has joined #ruby-lang
22:37
nathanstitt has quit [Quit: I growing sleepy]
22:40
EvilJStoker has quit [Ping timeout: 260 seconds]
22:42
EvilJStoker has joined #ruby-lang
22:42
justinmburrous has quit [Remote host closed the connection]
22:43
dabradley has joined #ruby-lang
22:44
loincloth has quit [Remote host closed the connection]
22:47
tkuchiki has joined #ruby-lang
22:47
justinmburrous has joined #ruby-lang
22:52
tkuchiki has quit [Ping timeout: 260 seconds]
22:55
sharpmachine has quit [Remote host closed the connection]
22:57
chouhoulis has quit [Ping timeout: 272 seconds]
22:57
spastorino has quit [Quit: Connection closed for inactivity]
22:58
emmesswhy has quit [Quit: Leaving]
23:02
justinmburrous has quit [Remote host closed the connection]
23:05
benanne has quit [Quit: kbai]
23:06
seank_ has quit [Read error: Connection reset by peer]
23:07
seank_ has joined #ruby-lang
23:08
imkmf has quit [Ping timeout: 245 seconds]
23:11
klmlfl has quit [Remote host closed the connection]
23:18
enebo has quit [Quit: enebo]
23:18
skammer1 has quit [Ping timeout: 258 seconds]
23:20
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
23:20
justinmburrous has joined #ruby-lang
23:21
thomasxie has joined #ruby-lang
23:21
torrieri has quit [Quit: Leaving...]
23:22
iliketurtles has quit [Quit: zzzzz…..]
23:26
marr has quit [Ping timeout: 272 seconds]
23:26
imkmf has joined #ruby-lang
23:32
emmesswhy has joined #ruby-lang
23:34
justinmburrous has quit [Remote host closed the connection]
23:36
toretore has quit [Quit: This computer has gone to sleep]
23:38
iliketurtles has joined #ruby-lang
23:39
RobertBirnie has quit [Ping timeout: 272 seconds]
23:40
<
florinandrei >
in a loop, I have this line:
23:40
<
florinandrei >
message += "#{msg} "
23:40
<
florinandrei >
after the loop, message is printed as all those msg chunks separated by whitespace
23:40
<
florinandrei >
if I do this instead:
23:40
<
florinandrei >
message += "#{msg}\n"
23:41
<
florinandrei >
then at the end the msg chunks are separated by newline when printed out
23:41
<
florinandrei >
so far so good
23:41
<
florinandrei >
but if I do this:
23:41
<
florinandrei >
message += "#{msg}#{config[:separator]}"
23:41
<
florinandrei >
and pass the separator as a command line flag (--separator "\n")
23:42
<
florinandrei >
then the msg chunks are separated by a backslash and the letter n
23:42
<
florinandrei >
why?
23:42
<
whitequark >
because your shell does not interpret escape sequences like \n
23:42
<
whitequark >
it just treats it as a backslash and letter n, as you noticed.
23:43
<
whitequark >
essentially, writing \n in a ruby double-quoted string and \n in shell has completely different meanings.
23:43
<
florinandrei >
so how can I pass any separator I want as a command line option? I don't want to hardcode \n as a separator, I want to choose later
23:44
sleepee has quit [Quit: Leaving]
23:45
<
whitequark >
that's surprisingly problematic
23:46
<
florinandrei >
also, I still don't understand why message += "#{msg}\n" actually prints the msg chunks separated by newline
23:48
<
whitequark >
you can force your (bash) shell to interpret the escape by using $'\n' instead of just "\n"
23:48
AKASkip has quit [Ping timeout: 244 seconds]
23:48
jonr22 has joined #ruby-lang
23:49
justinmburrous has joined #ruby-lang
23:55
torrieri has joined #ruby-lang
23:55
|jemc| has quit [Ping timeout: 272 seconds]
23:56
rkazak has joined #ruby-lang
23:58
imkmf has quit [Ping timeout: 245 seconds]
23:58
jonr22 has left #ruby-lang [#ruby-lang]
23:59
jhass is now known as jhass|off