00:00
elia has quit [Quit: Computer has gone to sleep.]
00:01
marr has quit [Ping timeout: 244 seconds]
00:04
enebo has quit [Quit: enebo]
00:08
StephenOTT has joined #ruby-lang
00:10
rmcafee has joined #ruby-lang
00:11
rmcafee has quit [Client Quit]
00:14
duderonomy has quit [Read error: No route to host]
00:14
j4cknewt has quit [Remote host closed the connection]
00:15
workmad3 has joined #ruby-lang
00:16
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:19
michaeldeol has joined #ruby-lang
00:20
workmad3 has quit [Ping timeout: 256 seconds]
00:23
baweaver has quit [Read error: Connection reset by peer]
00:24
baweaver has joined #ruby-lang
00:25
rcvalle has quit [Quit: rcvalle]
00:26
michaeldeol has quit [Ping timeout: 252 seconds]
00:27
StephenOTT has quit [Quit: StephenOTT]
00:31
StephenOTT has joined #ruby-lang
00:33
StephenOTT has joined #ruby-lang
00:41
enebo has joined #ruby-lang
00:42
ryba_ has joined #ruby-lang
00:45
enebo has quit [Client Quit]
00:53
|jemc| has quit [Ping timeout: 256 seconds]
00:53
|jemc| has joined #ruby-lang
00:56
thelastinuit has quit [Read error: Connection reset by peer]
01:06
stardiviner has joined #ruby-lang
01:08
delongG has quit [Remote host closed the connection]
01:09
delongG has joined #ruby-lang
01:09
mkosaki has quit [Quit: Leaving...]
01:10
delongG has quit [Remote host closed the connection]
01:11
sankaber has joined #ruby-lang
01:12
stardiviner has quit [Ping timeout: 256 seconds]
01:12
hendranata_ has joined #ruby-lang
01:13
hahuang65 has joined #ruby-lang
01:15
mkosaki has joined #ruby-lang
01:16
StephenOTT has quit [Quit: StephenOTT]
01:17
dvlwrk has joined #ruby-lang
01:17
Musashi007 has joined #ruby-lang
01:19
charliesome has joined #ruby-lang
01:21
Olipro has joined #ruby-lang
01:25
stardiviner has joined #ruby-lang
01:32
rbowlby_ has joined #ruby-lang
01:34
rbowlby has quit [Ping timeout: 256 seconds]
01:35
ascarter has joined #ruby-lang
01:39
tenderlove has quit [Remote host closed the connection]
01:39
jgpawletko has joined #ruby-lang
01:40
ascarter has quit [Ping timeout: 272 seconds]
01:47
ascarter has joined #ruby-lang
01:50
djbkd has quit [Remote host closed the connection]
01:53
wallerdev has quit [Ping timeout: 256 seconds]
01:54
rbowlby_ has quit [Remote host closed the connection]
01:58
stardiviner has quit [Ping timeout: 256 seconds]
01:58
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
02:04
workmad3 has joined #ruby-lang
02:09
workmad3 has quit [Ping timeout: 245 seconds]
02:11
stardiviner has joined #ruby-lang
02:11
vulix has left #ruby-lang [#ruby-lang]
02:12
baweaver has quit [Remote host closed the connection]
02:12
baweaver has joined #ruby-lang
02:14
ascarter has joined #ruby-lang
02:16
ascarter_ has joined #ruby-lang
02:16
stardiviner has quit [Ping timeout: 272 seconds]
02:17
djbkd has joined #ruby-lang
02:17
baweaver has quit [Ping timeout: 265 seconds]
02:18
ascarter has quit [Ping timeout: 250 seconds]
02:23
CamonZ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:28
stardiviner has joined #ruby-lang
02:29
toretore has quit [Quit: This computer has gone to sleep]
02:29
tkuchiki has joined #ruby-lang
02:30
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
02:32
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:32
tkuchiki has quit [Remote host closed the connection]
02:34
stardiviner has quit [Ping timeout: 272 seconds]
02:38
mkosaki has quit [Ping timeout: 256 seconds]
02:38
matp has joined #ruby-lang
02:39
ledestin has joined #ruby-lang
02:42
tkuchiki has joined #ruby-lang
02:43
Musashi007 has quit [Quit: Musashi007]
02:44
crankharder has quit [Remote host closed the connection]
02:46
stardiviner has joined #ruby-lang
02:46
crankharder has joined #ruby-lang
02:47
bb010g has joined #ruby-lang
02:51
stardiviner has quit [Ping timeout: 256 seconds]
02:51
shinnya has quit [Ping timeout: 256 seconds]
02:55
Musashi007 has joined #ruby-lang
03:03
sross07 has quit [Read error: Connection reset by peer]
03:03
sross07 has joined #ruby-lang
03:06
djbkd has quit [Remote host closed the connection]
03:13
mkosaki has joined #ruby-lang
03:23
skade has joined #ruby-lang
03:26
michaeldeol has joined #ruby-lang
03:27
jgpawletko has quit [Quit: jgpawletko]
03:27
tenderlove has joined #ruby-lang
03:29
hagabaka has quit [Quit: No Ping reply in 210 seconds.]
03:29
bennyklotz has quit [Ping timeout: 256 seconds]
03:30
bennyklo1z has quit [Ping timeout: 272 seconds]
03:30
bennyklotz has joined #ruby-lang
03:31
bennyklo1z has joined #ruby-lang
03:32
tenderlove has quit [Ping timeout: 264 seconds]
03:33
djbkd has joined #ruby-lang
03:33
_djbkd has joined #ruby-lang
03:34
chadrien has quit [Ping timeout: 248 seconds]
03:34
tkuchiki has quit [Remote host closed the connection]
03:35
tkuchiki has joined #ruby-lang
03:35
chadrien has joined #ruby-lang
03:36
Musashi007 has quit [Quit: Musashi007]
03:39
jhn has joined #ruby-lang
03:40
tkuchiki has quit [Ping timeout: 272 seconds]
03:40
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:41
djbkd has quit [Ping timeout: 255 seconds]
03:42
bungoman has joined #ruby-lang
03:46
malconis has joined #ruby-lang
03:47
mkosaki has quit [Ping timeout: 244 seconds]
03:48
coffeejunk has quit [Ping timeout: 250 seconds]
03:49
coffeejunk has joined #ruby-lang
03:49
mkosaki has joined #ruby-lang
03:50
michaeldeol has joined #ruby-lang
03:52
tkuchiki has joined #ruby-lang
03:53
workmad3 has joined #ruby-lang
03:55
gix has quit [Ping timeout: 244 seconds]
03:56
ascarter_ has joined #ruby-lang
03:58
workmad3 has quit [Ping timeout: 265 seconds]
03:58
scampbell has quit [Remote host closed the connection]
03:59
scampbell has joined #ruby-lang
04:00
gix has joined #ruby-lang
04:02
ur5us has quit [Remote host closed the connection]
04:04
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
04:04
tkuchiki has quit [Remote host closed the connection]
04:05
tkuchiki has joined #ruby-lang
04:08
tkuchiki has quit [Read error: Connection reset by peer]
04:08
tkuchiki has joined #ruby-lang
04:09
matp has quit [Ping timeout: 255 seconds]
04:20
hahuang65 has quit [Quit: WeeChat 1.1.1]
04:20
cornerma1 has joined #ruby-lang
04:20
hahuang65 has joined #ruby-lang
04:21
ascarter has joined #ruby-lang
04:21
LMity has joined #ruby-lang
04:22
ascarter has quit [Max SendQ exceeded]
04:22
tkuchiki has quit [Remote host closed the connection]
04:23
ascarter has joined #ruby-lang
04:23
ascarter_ has quit [Ping timeout: 240 seconds]
04:23
cornerman has quit [Ping timeout: 248 seconds]
04:24
cornerma1 is now known as cornerman
04:24
ascarter has quit [Max SendQ exceeded]
04:24
matp has joined #ruby-lang
04:25
ascarter has joined #ruby-lang
04:25
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
04:27
gwendall_ has quit [Remote host closed the connection]
04:28
LMity has quit [Ping timeout: 255 seconds]
04:28
malconis has joined #ruby-lang
04:28
malconis has quit [Client Quit]
04:32
hakunin has quit []
04:32
ascart___ has joined #ruby-lang
04:33
bungoman has quit [Remote host closed the connection]
04:35
ascarter_ has joined #ruby-lang
04:36
ascarter has quit [Ping timeout: 264 seconds]
04:38
ascart___ has quit [Ping timeout: 264 seconds]
04:45
hakunin has joined #ruby-lang
04:45
shinnya has joined #ruby-lang
04:54
revath has joined #ruby-lang
04:58
malconis has joined #ruby-lang
05:02
malconis has quit [Client Quit]
05:02
banister has quit [Read error: Connection reset by peer]
05:03
fusillicode1 has joined #ruby-lang
05:06
fusillicode has quit [Ping timeout: 244 seconds]
05:08
skade has quit [Remote host closed the connection]
05:14
ascarter has joined #ruby-lang
05:16
ascarte__ has joined #ruby-lang
05:17
ascarter_ has quit [Ping timeout: 256 seconds]
05:17
rbowlby has joined #ruby-lang
05:17
ascarte__ has quit [Max SendQ exceeded]
05:18
havenwood has quit [Read error: Connection reset by peer]
05:19
havenwood has joined #ruby-lang
05:19
ascarter has quit [Ping timeout: 276 seconds]
05:23
pwnz0r has joined #ruby-lang
05:27
skade has joined #ruby-lang
05:27
skade has quit [Remote host closed the connection]
05:28
CamonZ has joined #ruby-lang
05:34
bennyprofane has joined #ruby-lang
05:34
skade has joined #ruby-lang
05:35
skade has quit [Remote host closed the connection]
05:36
riotjones has joined #ruby-lang
05:36
arBmind has joined #ruby-lang
05:41
riotjones has quit [Ping timeout: 250 seconds]
05:41
<
bennyprofane >
Noob question. I just started reading the book Learn Ruby the Hard Way. There's a question where you are supposed to use both ARGV and gets.chomp(). Why does my script give an error when I use command line arguments but if I don't enter any CLI args it runs fine? here's the pastebin for my script
http://pastebin.com/bhjPaAGh
05:42
workmad3 has joined #ruby-lang
05:43
skade has joined #ruby-lang
05:44
hahuang65 has quit [Ping timeout: 276 seconds]
05:44
skade has quit [Remote host closed the connection]
05:44
malconis has joined #ruby-lang
05:45
malconis has quit [Client Quit]
05:46
malconis has joined #ruby-lang
05:47
malconis has quit [Client Quit]
05:47
workmad3 has quit [Ping timeout: 264 seconds]
05:51
revath has quit [Ping timeout: 250 seconds]
05:52
djbkd has joined #ruby-lang
05:52
bennyprofane has left #ruby-lang [#ruby-lang]
05:54
riotjones has joined #ruby-lang
05:55
skade has joined #ruby-lang
05:56
arBmind has quit [Quit: Leaving.]
05:56
skade has quit [Remote host closed the connection]
05:56
djbkd has quit [Ping timeout: 244 seconds]
05:56
michael_mbp has quit [Excess Flood]
05:58
michael_mbp has joined #ruby-lang
06:00
symm- has quit [Ping timeout: 245 seconds]
06:01
charliesome has quit [Quit: zzz]
06:05
yfeldblum has quit [Ping timeout: 256 seconds]
06:07
scampbell has quit [Remote host closed the connection]
06:07
skade has joined #ruby-lang
06:08
ta has joined #ruby-lang
06:09
revath has joined #ruby-lang
06:13
skade has quit [Remote host closed the connection]
06:13
ta has quit [Remote host closed the connection]
06:14
ged has quit [Ping timeout: 264 seconds]
06:14
skade has joined #ruby-lang
06:15
stonith has quit [Ping timeout: 256 seconds]
06:15
stonith has joined #ruby-lang
06:15
stonith has quit [Changing host]
06:15
stonith has joined #ruby-lang
06:15
skade has quit [Remote host closed the connection]
06:19
Mon_Ouie has quit [Ping timeout: 264 seconds]
06:21
revath has quit [Ping timeout: 250 seconds]
06:22
fusillicode1 has quit [Ping timeout: 240 seconds]
06:25
skade has joined #ruby-lang
06:25
hagabaka has joined #ruby-lang
06:27
stardiviner has joined #ruby-lang
06:29
<
wnd >
I'm afraid I don't have an answer to the actual question but $stdin.gets seems to do the trick
06:30
jas02 has joined #ruby-lang
06:30
coffeejunk has quit [Remote host closed the connection]
06:30
kerunaru has joined #ruby-lang
06:30
coffeejunk has joined #ruby-lang
06:30
jas02 has quit [Client Quit]
06:37
revath has joined #ruby-lang
06:37
pwnz0r has quit [Remote host closed the connection]
06:38
pwnz0r has joined #ruby-lang
06:39
skade has quit [Quit: Computer has gone to sleep.]
06:41
houhoulis has joined #ruby-lang
06:42
fsvehla has joined #ruby-lang
06:42
solars has joined #ruby-lang
06:43
pwnz0r has quit [Ping timeout: 250 seconds]
06:45
revath has quit [Ping timeout: 265 seconds]
06:48
duderonomy has joined #ruby-lang
06:48
charliesome has joined #ruby-lang
06:49
ur5us has joined #ruby-lang
06:51
ta has joined #ruby-lang
06:53
jas02 has joined #ruby-lang
06:58
ta has quit [Remote host closed the connection]
06:59
_djbkd has quit [Remote host closed the connection]
07:02
revath has joined #ruby-lang
07:04
leat2 has quit [Ping timeout: 240 seconds]
07:09
djbkd has joined #ruby-lang
07:09
ur5us has quit [Remote host closed the connection]
07:10
djbkd_ has quit [Read error: Connection reset by peer]
07:12
leat2 has joined #ruby-lang
07:13
revath has quit [Ping timeout: 276 seconds]
07:14
relix has joined #ruby-lang
07:14
x44x45x41x4E has joined #ruby-lang
07:18
Iskarlar has joined #ruby-lang
07:19
Miphix has quit [Read error: Connection reset by peer]
07:22
marr has joined #ruby-lang
07:22
leat2 has quit [Remote host closed the connection]
07:23
leat2 has joined #ruby-lang
07:24
houhoulis has quit [Remote host closed the connection]
07:26
revath has joined #ruby-lang
07:28
Miphix has joined #ruby-lang
07:28
RickHull has left #ruby-lang [#ruby-lang]
07:28
skade has joined #ruby-lang
07:30
workmad3 has joined #ruby-lang
07:31
revath has quit [Ping timeout: 240 seconds]
07:34
rickrobs_ has quit [Ping timeout: 276 seconds]
07:36
elia has joined #ruby-lang
07:36
djbkd has quit [Remote host closed the connection]
07:36
workmad3 has quit [Ping timeout: 276 seconds]
07:37
workmad3 has joined #ruby-lang
07:38
fusillicode has joined #ruby-lang
07:41
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
07:41
leat2 has quit [Ping timeout: 264 seconds]
07:42
ur5us has joined #ruby-lang
07:46
tkuchiki has joined #ruby-lang
07:48
leat2 has joined #ruby-lang
07:48
revath has joined #ruby-lang
07:49
michael_mbp has quit [Excess Flood]
07:53
michael_mbp has joined #ruby-lang
07:53
leat2 has quit [Ping timeout: 248 seconds]
07:54
gwendall has joined #ruby-lang
07:55
leat2 has joined #ruby-lang
07:58
Musashi007 has joined #ruby-lang
08:01
yfeldblum has joined #ruby-lang
08:07
<
maloik >
Going all (tumbleweed) in RoR again :( sigh
08:08
<
maloik >
dunno what it is but my questions pretty much always get ignored entirely
08:09
<
ledestin >
maloik they don't know how to handle non-newb questions?
08:10
<
maloik >
quite possibly
08:10
<
ledestin >
I don't really follow, but there's a google group for RoR
08:10
<
ljarvis >
maloik: what's the question?
08:10
j4cknewt has joined #ruby-lang
08:10
<
ledestin >
I had an impression that it's not that bad
08:12
mikecmpbll has joined #ruby-lang
08:12
<
maloik >
that explains is
08:12
rickrobs has joined #ruby-lang
08:13
<
maloik >
not entirely sure it's possible actually
08:13
yfeldblum has quit [Read error: Connection reset by peer]
08:13
<
ljarvis >
maloik: I think the old implementation is better
08:14
yfeldblum has joined #ruby-lang
08:14
<
ljarvis >
making a scope instance dependant isn't a good idea
08:14
<
maloik >
I know but that was only my first attempt
08:14
<
maloik >
I'm trying to remove that dependency but I'm not sure how
08:14
<
ljarvis >
the method idea looks good to me
08:14
<
maloik >
but n+1 queries :-(
08:15
<
ljarvis >
right, i'd store the root subdomain id on domain then
08:15
<
ljarvis >
that'd fix any query concerns
08:16
<
maloik >
yea it would, but not super excited about that either
08:16
<
ljarvis >
what's your reservation about it?
08:16
<
maloik >
oh well, I guess I'll have to choose between the best of the worst options then :D
08:16
dvlwrk has quit [Ping timeout: 245 seconds]
08:16
<
ljarvis >
that's the best option by a mile if you care about querying :)
08:16
Musashi007 has quit [Quit: Musashi007]
08:16
<
maloik >
mostly that it felt redundant
08:17
workmad3 has quit [Ping timeout: 256 seconds]
08:17
<
maloik >
I suppose it did cause I thought there may be a way to fix the association
08:17
<
ljarvis >
"but n+1 queries :-(" <- this makes it not redundant
08:18
tkuchiki has quit [Remote host closed the connection]
08:18
<
ljarvis >
anyway, if a root subdomain is any domain that does not have a value, why not just use that and select it by distinct domain_id
08:20
<
yorickpeterse >
morning
08:22
djbkd has joined #ruby-lang
08:22
michael_mbp has quit [Excess Flood]
08:22
<
|jemc| >
yorickpeterse: good morning... and that's how I know I must be up too late >_<
08:25
michael_mbp has joined #ruby-lang
08:26
crdpink2 has quit [Ping timeout: 265 seconds]
08:27
djbkd has quit [Ping timeout: 264 seconds]
08:28
<
maloik >
ljarvis: mostly cause I tried to quickly select all domains without a root subdomain
08:28
<
maloik >
(working on a fix of bad data in the db)
08:38
djbkd has joined #ruby-lang
08:43
djbkd has quit [Ping timeout: 272 seconds]
08:44
harly has joined #ruby-lang
08:47
gwendall_ has joined #ruby-lang
08:47
|jemc| has quit [Ping timeout: 250 seconds]
08:49
gwendall has quit [Ping timeout: 272 seconds]
08:51
Guest20 has joined #ruby-lang
08:54
ur5us has quit [Remote host closed the connection]
08:54
Obfuscate has quit [Quit: Expecting a prolonged power outage.]
08:57
workmad3 has joined #ruby-lang
08:58
<
maloik >
ljarvis: apparently... this works: has_one :root_subdomain, -> { where(value: nil) }, class_name: 'Subdomain'
08:58
<
maloik >
rails magic...
08:58
ta has joined #ruby-lang
08:58
<
maloik >
it just knows it has to select on rows where subdomain.domain_id = id
08:59
gwendall_ has quit [Remote host closed the connection]
09:01
kr3ssh has joined #ruby-lang
09:02
sross07 has quit [Read error: Connection reset by peer]
09:02
sross07 has joined #ruby-lang
09:08
gwendall has joined #ruby-lang
09:09
mikecmpb_ has joined #ruby-lang
09:09
<
yorickpeterse >
allrighty, today I get to deploy 2 months of work spread across 5 applications
09:09
<
yorickpeterse >
what could go wrong
09:12
mikecmpbll has quit [Ping timeout: 256 seconds]
09:12
<
maloik >
why not wait until friday? :P
09:16
<
yorickpeterse >
I'm not
_that_ crazy
09:16
<
yorickpeterse >
Allright, time to play highway to the dangerzone
09:17
stan_ has joined #ruby-lang
09:21
havenwood has quit [Remote host closed the connection]
09:24
<
darix >
yorickpeterse: so queue top gun soundtrack?
09:27
<
harly >
so you've been deploying and testing internally for 2 months, what could go wrong? :)
09:27
<
yorickpeterse >
darix: good thinking
09:28
k3asd` has joined #ruby-lang
09:29
nofxx has quit [Ping timeout: 244 seconds]
09:31
<
ljarvis >
maloik: yeah it was the scope that was breaking it, using a scope with an argument means you have to build an instance which obviously removes all the good stuff
09:32
<
maloik >
yea I got that, I just didn't realize it would work without it
09:33
OnBrokenWings has joined #ruby-lang
09:36
<
ljarvis >
rails magic, not even once
09:43
allomov has quit [Remote host closed the connection]
09:46
piotrj has joined #ruby-lang
09:51
ItSANgo_ has quit [Quit: Leaving...]
09:51
ryba_ has quit [Ping timeout: 256 seconds]
09:54
ur5us has joined #ruby-lang
09:59
Musashi007 has joined #ruby-lang
10:02
ItSANgo has joined #ruby-lang
10:02
j4cknewt has quit []
10:05
solars has quit [Quit: WeeChat 0.4.2]
10:05
solars has joined #ruby-lang
10:07
hendranata_ has quit [Ping timeout: 276 seconds]
10:10
allomov has joined #ruby-lang
10:11
ryba_ has joined #ruby-lang
10:12
kr3ssh has quit [Ping timeout: 252 seconds]
10:13
ArchRogem has joined #ruby-lang
10:14
Guest20 has quit [Read error: Connection reset by peer]
10:17
Musashi007 has quit [Quit: Musashi007]
10:18
kr3ssh has joined #ruby-lang
10:19
Musashi007 has joined #ruby-lang
10:25
stardiviner has joined #ruby-lang
10:26
LMity has joined #ruby-lang
10:33
banister has joined #ruby-lang
10:33
LMity has quit [Ping timeout: 276 seconds]
10:35
tkuchiki has joined #ruby-lang
10:35
skade has quit [Quit: Computer has gone to sleep.]
10:39
pwnz0r has joined #ruby-lang
10:42
chinmay_dd has joined #ruby-lang
10:43
pwnz0r has quit [Ping timeout: 256 seconds]
10:45
piotrj has quit [Remote host closed the connection]
10:46
piotrj has joined #ruby-lang
10:46
piotrj has quit [Read error: Connection reset by peer]
10:47
piotrj has joined #ruby-lang
10:47
chinmay_dd has quit [Ping timeout: 256 seconds]
10:49
x44x45x41x4E is now known as [Away]x44x45x41x
10:50
skade has joined #ruby-lang
10:50
k3asd` has quit [Quit: Lost terminal]
10:51
Guest64608 has joined #ruby-lang
10:51
thelastinuit has joined #ruby-lang
10:52
[Away]x44x45x41x is now known as x44x45x41x4E
10:54
sideshowcoder_ is now known as sideshowcoder
10:55
vondruch_ is now known as vondruch
10:59
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:04
banister has joined #ruby-lang
11:11
<
ljarvis >
hmm indeed
11:11
OnBrokenWings has quit [Quit: Leaving]
11:12
skade has joined #ruby-lang
11:19
ascarter has joined #ruby-lang
11:19
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:23
ascarter has quit [Client Quit]
11:23
charliesome has quit [Quit: zzz]
11:26
sarkyniin has joined #ruby-lang
11:27
fumduq has quit [Ping timeout: 252 seconds]
11:27
workmad3 has quit [Ping timeout: 245 seconds]
11:27
fumduq has joined #ruby-lang
11:29
workmad3 has joined #ruby-lang
11:30
charliesome has joined #ruby-lang
11:32
Musashi007 has quit [Quit: Musashi007]
11:32
piotrj has quit [Remote host closed the connection]
11:32
ur5us has quit [Remote host closed the connection]
11:35
ADot has joined #ruby-lang
11:39
gwendall has quit [Remote host closed the connection]
11:40
ADot has quit [Quit: Leaving.]
11:41
leat2 has quit [Ping timeout: 248 seconds]
11:41
bruno- has quit [Ping timeout: 265 seconds]
11:42
Mon_Ouie has joined #ruby-lang
11:53
chinmay_dd has joined #ruby-lang
11:55
Mon_Ouie has quit [Ping timeout: 252 seconds]
11:57
piotrj has joined #ruby-lang
11:57
leat2 has joined #ruby-lang
11:58
ruby-lang827 has joined #ruby-lang
12:06
gwendall has joined #ruby-lang
12:06
ur5us has joined #ruby-lang
12:07
leat2 has quit [Remote host closed the connection]
12:07
leat2 has joined #ruby-lang
12:08
toretore has joined #ruby-lang
12:11
b_hoffman has joined #ruby-lang
12:11
ur5us has quit [Ping timeout: 255 seconds]
12:14
djbkd has joined #ruby-lang
12:16
alestuber has joined #ruby-lang
12:17
leat2 has quit [Remote host closed the connection]
12:17
leat2 has joined #ruby-lang
12:18
godzillaenlacasa has quit [Quit: Peace Out Peeps!]
12:19
djbkd has quit [Ping timeout: 264 seconds]
12:19
alestuber has quit [Remote host closed the connection]
12:20
alestuber has joined #ruby-lang
12:21
reaction has joined #ruby-lang
12:21
CamonZ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
12:21
stardiviner has quit [Ping timeout: 252 seconds]
12:22
alestuber has quit [Remote host closed the connection]
12:22
yfeldblum has quit [Ping timeout: 256 seconds]
12:22
alestuber has joined #ruby-lang
12:23
ruby-lang827 has quit [Ping timeout: 246 seconds]
12:27
leat2 has quit [Remote host closed the connection]
12:28
leat2 has joined #ruby-lang
12:29
piotrj has quit [Remote host closed the connection]
12:30
piotrj has joined #ruby-lang
12:31
x44x45x41x4E has quit [Remote host closed the connection]
12:32
imperator has joined #ruby-lang
12:35
Guest64608 has quit [Quit: Leaving]
12:35
stardiviner has joined #ruby-lang
12:36
victortyau has joined #ruby-lang
12:36
rikkipitt has joined #ruby-lang
12:37
setanta_ has joined #ruby-lang
12:40
elia_ has joined #ruby-lang
12:42
alestuber has quit [Read error: Connection reset by peer]
12:43
charliesome has quit [Quit: zzz]
12:44
elia has quit [Ping timeout: 252 seconds]
12:46
sankaber has joined #ruby-lang
12:47
alestuber has joined #ruby-lang
12:47
workmad3 has quit [Ping timeout: 248 seconds]
12:48
apt-get_ has joined #ruby-lang
12:51
sarkyniin has quit [Ping timeout: 240 seconds]
12:53
alestuber has quit [Remote host closed the connection]
12:55
simplon has joined #ruby-lang
13:01
alestuber has joined #ruby-lang
13:01
nertzy has joined #ruby-lang
13:01
ir2ivps3_ has quit [Ping timeout: 245 seconds]
13:03
dorei has joined #ruby-lang
13:08
simplon has quit [Quit: leaving]
13:08
b_hoffman has quit [Read error: Connection reset by peer]
13:09
b_hoffman has joined #ruby-lang
13:09
Musashi007 has joined #ruby-lang
13:13
rmcafee has joined #ruby-lang
13:14
<
yorickpeterse >
deploy all the things!
13:14
<
yorickpeterse >
so far nothing broke
13:14
<
yorickpeterse >
I remain skeptical
13:15
revath has quit [Ping timeout: 256 seconds]
13:16
CamonZ has joined #ruby-lang
13:21
tenderlove has joined #ruby-lang
13:22
chinmay_dd has quit [Ping timeout: 250 seconds]
13:26
tenderlove has quit [Ping timeout: 250 seconds]
13:26
nertzy has quit [Quit: This computer has gone to sleep]
13:28
bungoman has joined #ruby-lang
13:32
ir2ivps3_ has joined #ruby-lang
13:35
apt-get__ has joined #ruby-lang
13:39
apt-get_ has quit [Ping timeout: 276 seconds]
13:41
workmad3 has joined #ruby-lang
13:41
piotrj has quit [Remote host closed the connection]
13:42
piotrj has joined #ruby-lang
13:52
malconis has joined #ruby-lang
13:53
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:54
alestuber has quit [Ping timeout: 255 seconds]
13:55
michael_mbp has quit [Excess Flood]
13:56
michael_mbp has joined #ruby-lang
14:00
skade has joined #ruby-lang
14:00
allomov has quit [Remote host closed the connection]
14:00
alestuber has joined #ruby-lang
14:02
allomov has joined #ruby-lang
14:03
piotrj has quit [Remote host closed the connection]
14:03
piotrj has joined #ruby-lang
14:05
bungoman has quit [Remote host closed the connection]
14:07
rikkipit_ has joined #ruby-lang
14:07
enebo has joined #ruby-lang
14:07
rikkipitt has quit [Ping timeout: 248 seconds]
14:07
bruno- has joined #ruby-lang
14:08
|jemc| has joined #ruby-lang
14:08
havenwood has joined #ruby-lang
14:10
yagooar has joined #ruby-lang
14:11
yagooar has quit [Client Quit]
14:12
bungoman has joined #ruby-lang
14:12
whippythellama has joined #ruby-lang
14:13
k3asd` has joined #ruby-lang
14:15
riotjones has quit [Remote host closed the connection]
14:15
kr3ssh has quit [Ping timeout: 276 seconds]
14:15
sgambino has joined #ruby-lang
14:20
alestuber has quit [Read error: Connection reset by peer]
14:20
|jemc| has quit [Quit: WeeChat 1.1.1]
14:21
|jemc| has joined #ruby-lang
14:22
tenderlove has joined #ruby-lang
14:24
bungoman has quit [Remote host closed the connection]
14:24
bungoman has joined #ruby-lang
14:25
alestuber has joined #ruby-lang
14:25
joaomdmoura has joined #ruby-lang
14:26
kr3ssh has joined #ruby-lang
14:26
Musashi007 has quit [Quit: Musashi007]
14:28
bungoman has quit [Ping timeout: 240 seconds]
14:29
Mon_Ouie has joined #ruby-lang
14:38
harly has quit [Quit: Leaving]
14:39
joaomdmoura has quit [Read error: Connection reset by peer]
14:40
joaomdmoura has joined #ruby-lang
14:41
cpt_yossarian has quit [Quit: And then he took off.]
14:45
bungoman has joined #ruby-lang
14:48
tkuchiki has quit [Remote host closed the connection]
14:48
tkuchiki has joined #ruby-lang
14:48
dzejrou has joined #ruby-lang
14:50
kr3ssh has quit [Quit: Lost terminal]
14:50
__butch__ has joined #ruby-lang
14:50
reaction has quit [Quit: Page closed]
14:50
apt-get_ has joined #ruby-lang
14:52
apt-get__ has quit [Ping timeout: 244 seconds]
14:52
piotrj has quit [Remote host closed the connection]
14:53
piotrj has joined #ruby-lang
14:53
tkuchiki has quit [Ping timeout: 265 seconds]
14:55
seank___ has quit []
14:56
tkuchiki has joined #ruby-lang
14:57
seank__ has joined #ruby-lang
14:58
alestuber has quit [Ping timeout: 250 seconds]
14:59
Musashi007 has joined #ruby-lang
14:59
__butch__ has quit [Quit: Leaving.]
14:59
ItSAN____ has joined #ruby-lang
15:00
ItSANgo has quit [Ping timeout: 244 seconds]
15:02
alestuber has joined #ruby-lang
15:02
loincloth has quit []
15:05
Lewix has joined #ruby-lang
15:07
elia_ has quit [Read error: Connection reset by peer]
15:11
rikkipit_ has quit [Quit: Leaving...]
15:12
jgpawletko has joined #ruby-lang
15:13
jas02 has quit [Quit: jas02]
15:14
elia has joined #ruby-lang
15:15
riotjones has joined #ruby-lang
15:20
k3asd` has quit [Ping timeout: 265 seconds]
15:20
k3asd` has joined #ruby-lang
15:20
solars has quit [Ping timeout: 265 seconds]
15:21
riotjones has quit [Ping timeout: 276 seconds]
15:23
leat2 has quit [Ping timeout: 256 seconds]
15:24
iamninja has joined #ruby-lang
15:26
arBmind has joined #ruby-lang
15:28
leat2 has joined #ruby-lang
15:29
skade has quit [Quit: Computer has gone to sleep.]
15:32
allomov has quit [Remote host closed the connection]
15:34
alestuber has quit [Ping timeout: 244 seconds]
15:36
droidburgundy has joined #ruby-lang
15:37
allomov has joined #ruby-lang
15:38
leat2 has quit [Remote host closed the connection]
15:38
leat2 has joined #ruby-lang
15:38
alestuber has joined #ruby-lang
15:39
joaomdmoura has quit [Remote host closed the connection]
15:39
workmad3 has quit [Ping timeout: 256 seconds]
15:40
joaomdmoura has joined #ruby-lang
15:40
workmad3 has joined #ruby-lang
15:42
joaomdmoura has quit [Remote host closed the connection]
15:44
elia_ has joined #ruby-lang
15:48
brownbathrobe has joined #ruby-lang
15:48
elia has quit [Ping timeout: 264 seconds]
15:49
shinnya has quit [Ping timeout: 252 seconds]
15:54
revath has joined #ruby-lang
15:54
michael_mbp has quit [Excess Flood]
15:54
chouhoul_ has joined #ruby-lang
15:55
michael_mbp has joined #ruby-lang
15:56
|jemc|_ has joined #ruby-lang
15:57
|jemc| has quit [Ping timeout: 256 seconds]
15:58
chouhoulis has quit [Ping timeout: 244 seconds]
15:58
allomov has quit [Remote host closed the connection]
15:59
victortyau has quit [Quit: Leaving]
16:00
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
16:01
tkuchiki has quit [Remote host closed the connection]
16:01
michaeldeol has joined #ruby-lang
16:01
tkuchiki has joined #ruby-lang
16:02
michaeldeol has quit [Client Quit]
16:03
aeze has joined #ruby-lang
16:03
michaeldeol has joined #ruby-lang
16:04
allomov has joined #ruby-lang
16:06
tkuchiki has quit [Ping timeout: 245 seconds]
16:07
ur5us has joined #ruby-lang
16:08
Mon_Ouie has quit [Ping timeout: 264 seconds]
16:10
Mon_Ouie has joined #ruby-lang
16:11
|jemc|_ has quit [Ping timeout: 256 seconds]
16:11
alestuber has quit [Ping timeout: 252 seconds]
16:11
ur5us has quit [Ping timeout: 256 seconds]
16:12
rcvalle has joined #ruby-lang
16:14
thelastinuit has joined #ruby-lang
16:14
alestuber has joined #ruby-lang
16:14
skade has joined #ruby-lang
16:14
djbkd has joined #ruby-lang
16:14
thelastinuit has quit [Client Quit]
16:15
arBmind has quit [Read error: Connection reset by peer]
16:18
malconis has quit [Ping timeout: 264 seconds]
16:19
djbkd has quit [Ping timeout: 255 seconds]
16:22
|jemc|_ has joined #ruby-lang
16:23
melter has quit [Quit: Client exiting]
16:24
bungoman has quit [Remote host closed the connection]
16:26
bungoman has joined #ruby-lang
16:30
mikecmpb_ has quit [Quit: i've nodded off.]
16:31
LMity has joined #ruby-lang
16:32
michaeldeol has quit [Ping timeout: 240 seconds]
16:32
fusillicode has quit [Ping timeout: 276 seconds]
16:33
momomomomo has joined #ruby-lang
16:35
atomical has quit [Ping timeout: 248 seconds]
16:37
arBmind has joined #ruby-lang
16:37
[k- has joined #ruby-lang
16:38
SylarRuby has joined #ruby-lang
16:40
LMity has quit [Ping timeout: 256 seconds]
16:41
cornerma1 has joined #ruby-lang
16:41
alestuber has quit [Read error: Connection reset by peer]
16:42
k3asd`_ has joined #ruby-lang
16:42
joaomdmoura has joined #ruby-lang
16:43
micmus has joined #ruby-lang
16:44
cornerman has quit [Ping timeout: 264 seconds]
16:44
cornerma1 is now known as cornerman
16:45
workmad3 has quit [Ping timeout: 248 seconds]
16:45
k3asd` has quit [Ping timeout: 264 seconds]
16:45
workmad3 has joined #ruby-lang
16:45
alestuber has joined #ruby-lang
16:47
joaomdmoura has quit [Ping timeout: 265 seconds]
16:47
Lewix has quit [Remote host closed the connection]
16:48
piotrj has quit [Remote host closed the connection]
16:48
apt-get_ has quit [Remote host closed the connection]
16:48
piotrj has joined #ruby-lang
16:49
fsvehla has quit [Quit: fsvehla]
16:50
shazaum has joined #ruby-lang
16:51
fsvehla has joined #ruby-lang
16:52
momomomomo has quit [Quit: momomomomo]
16:53
lian_ has joined #ruby-lang
16:53
__butch__ has joined #ruby-lang
16:53
lian_ is now known as lianj
16:53
piotrj has quit [Ping timeout: 256 seconds]
16:54
lianj has quit [Changing host]
16:54
lianj has joined #ruby-lang
16:55
fsvehla has quit [Client Quit]
16:56
Musashi007 has quit [Quit: Musashi007]
16:56
mikecmpbll has joined #ruby-lang
16:58
wallerdev has joined #ruby-lang
17:03
fsvehla has joined #ruby-lang
17:04
elia_ has quit [Quit: Computer has gone to sleep.]
17:05
alestuber has quit [Ping timeout: 248 seconds]
17:05
stan_ has quit [Ping timeout: 265 seconds]
17:06
fsvehla has quit [Client Quit]
17:07
ldnunes has joined #ruby-lang
17:09
alestuber has joined #ruby-lang
17:09
atomical has joined #ruby-lang
17:09
ryba_ has quit [Ping timeout: 256 seconds]
17:10
ascarter has joined #ruby-lang
17:11
ascarter has quit [Max SendQ exceeded]
17:11
atomical has quit [Client Quit]
17:11
rmcafee has quit [Quit: rmcafee]
17:11
ascarter has joined #ruby-lang
17:12
rmcafee has joined #ruby-lang
17:12
atomical has joined #ruby-lang
17:20
dzejrou has quit [Read error: Connection reset by peer]
17:21
gwendall has quit [Remote host closed the connection]
17:21
shinnya has joined #ruby-lang
17:22
dzejrou has joined #ruby-lang
17:22
Lewix has joined #ruby-lang
17:22
malconis has joined #ruby-lang
17:24
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
17:28
skade has quit [Ping timeout: 252 seconds]
17:30
skade has joined #ruby-lang
17:30
bin7me has joined #ruby-lang
17:32
elev has joined #ruby-lang
17:33
<
elev >
What is the site that you guys can see my code
17:33
<
elev >
without have to paste all in?
17:34
<
elev >
gist yeah thanjs
17:34
<
elev >
what is wrong
17:34
<
havenwood >
elev: not saved with a .rb extension so no syntax highlighting
17:35
<
elev >
saved as easyquiz.rb
17:35
<
havenwood >
elev: other than that :P, you haven't defined `question2` and `question3`
17:35
<
elev >
what you mean?
17:35
<
havenwood >
elev: i just meant in the gist. you have gistfile1.txt so no syntax highlighting.
17:36
<
elev >
I started ruby 1 week ago lol I dont understand
17:36
<
elev >
I made it in sublime
17:36
<
elev >
saved it as quiz.rb
17:36
<
elev >
run it it terminal
17:36
<
havenwood >
elev: You're using the bareword `question2` in the Array, right? Is it set earlier or this is the first time you've used `question2`?
17:36
<
havenwood >
>> question2
17:36
<
elev >
what is wrong with question 2?
17:37
<
elev >
its till later
17:37
<
havenwood >
elev: what's the Error you're seeing when you run your code?
17:37
<
elev >
same as he pasted
17:37
<
elev >
undefined local variable or method `question2'
17:38
<
elev >
why is question 2 wrong and not 3?
17:38
<
havenwood >
elev: It doesn't get to 3.
17:38
<
elev >
but it gets to 2?
17:38
wallerdev has quit [Quit: wallerdev]
17:39
wallerdev has joined #ruby-lang
17:39
<
havenwood >
elev: Yeah, you defined the local variable `question1` with `question1 = ...`. So no problem there.
17:39
SylarRuby has quit [Remote host closed the connection]
17:39
<
elev >
So I have to delete question 2?
17:39
<
elev >
in the arra?
17:39
<
havenwood >
elev: Unlike instance variables, etc a local variable will raise a NameError instead of returning nil when undefined.
17:40
<
elev >
so what should i do?
17:40
<
havenwood >
elev: There needs to be a method or local variable named `question2` before you try using it.
17:40
<
elev >
and a question 3?
17:40
<
havenwood >
elev: yup
17:40
<
elev >
the same way as I did with 1?
17:41
<
havenwood >
elev: That's what I'd expect, but depends on what you're doing. Do you know what class `question1` is?
17:41
<
elev >
I just want to make a quiz
17:41
<
havenwood >
elev: ask it: question1.class #=> Hash
17:41
<
havenwood >
elev: questions.class #=> Array
17:41
<
elev >
question1 = { question: "What is the capital of England?", answers: ["Berlin", "Oslo", "London"], correct_answer: 2
17:42
<
elev >
questions = [ question1, question2, question3
17:42
<
elev >
]thast all my code
17:42
<
elev >
I try out and I come back later
17:42
<
elev >
thanks for help
17:42
<
havenwood >
elev: So your problem is just that you're calling local variables before defining them. Good luck!
17:42
<
elev >
havenwood you work here?
17:43
gwendall has joined #ruby-lang
17:44
baweaver has joined #ruby-lang
17:44
<
havenwood >
elev: I do work related stuff in other channels on irc but no, I don't work for #ruby-lang or anything if that's what you mean?
17:46
Iskarlar has joined #ruby-lang
17:46
<
elev >
why are you helping here ?
17:46
djbkd has joined #ruby-lang
17:47
<
pipework >
elev: He helps in many channels. He's a great person in general and you should count your lucky stars (github or celestial) to have his help. :)
17:47
<
elev >
so he dont get paid?
17:47
<
elev >
not you either?
17:48
<
pipework >
I voluntarily help people. This is mostly a help channel, but it's also social.
17:48
<
havenwood >
pipework: :)
17:48
<
elev >
I am only 14 year old I am new to irc
17:48
<
elev >
but I fint it very helpful :)
17:48
<
pipework >
This channel and the ethos that it keeps is one that reflects only part of the open source community at large.
17:49
banister has joined #ruby-lang
17:49
banister has quit [Max SendQ exceeded]
17:49
<
pipework >
elev: Cheers, and good luck in your exploits and adventures. :D
17:49
hahuang65 has joined #ruby-lang
17:49
<
elev >
now I tet my code xd
17:49
<
pipework >
havenwood: Is it rude to say 'cheers' to someone who might not be able to drink the kind of beverages one usually associates with that phrase?
17:50
fusillicode has joined #ruby-lang
17:50
<
elev >
pipework how old are you?
17:50
<
pipework >
elev: 23 years ginger.
17:50
<
elev >
or mostly people around here?
17:51
hrendalf has joined #ruby-lang
17:51
allomov has quit [Remote host closed the connection]
17:52
cornerma1 has joined #ruby-lang
17:52
joaomdmoura has joined #ruby-lang
17:52
djbkd_ has joined #ruby-lang
17:53
cornerman has quit [Ping timeout: 272 seconds]
17:53
cornerma1 is now known as cornerman
17:54
<
elev >
wrong with this code?
17:54
alestuber has quit [Ping timeout: 255 seconds]
17:54
<
yxhuvud >
inconsistent indentation
17:55
<
yxhuvud >
also, you lack a couple of commas
17:56
<
elev >
now I comma all
17:56
<
elev >
what does inconsistent indentation
17:56
<
yxhuvud >
you use different amount of spaces on different lines
17:56
<
pipework >
elev: The spaces in front of lines of code.
17:56
<
pipework >
elev: You need commas after the values if it's not the last value in the hash.
17:57
<
elev >
where do I need commas?
17:57
<
pipework >
elev: No, on the end of the line.
17:58
djbkd_ has quit [Ping timeout: 256 seconds]
17:59
alestuber has joined #ruby-lang
18:01
postmodern has joined #ruby-lang
18:01
<
havenwood >
pipework: hehe, we can wish just the merriment for now - spirits of just that sort
18:01
<
elev >
whats wrong in my code now
18:01
<
havenwood >
elev: Edit the Gist instead of creating new ones. See the Gist filename in the upper left? Save it with a .rb extension.
18:02
<
elev >
ut wut was wrong?
18:02
<
havenwood >
elev: What does the Error say?
18:02
<
elev >
ruby easyquiz.rb
18:02
<
elev >
easyquiz.rb:9: syntax error, unexpected tIDENTIFIER, expecting '}'
18:02
<
elev >
answers: ["Berlin", "Oslo", "London"]
18:02
<
havenwood >
elev: Like yxhuvud said, missing commas, indentation, etc.
18:03
<
elev >
missing now too?
18:04
<
elev >
where should the commas be?
18:04
<
yxhuvud >
elev: the error you get is what you get when you lack one, and you get it where the parser expects one
18:04
<
elev >
so wat should I do?
18:05
<
havenwood >
elev: Have you edited the gist with all the suggestions so far?
18:05
<
yxhuvud >
read the code, carefully
18:05
<
elev >
I dont understand where you want the comms to be havenwood
18:06
<
havenwood >
elev: Between each element of an Array and between each key/value pair of a Hash.
18:06
<
elev >
havenwood can you just make it for me
18:06
<
elev >
I dont understand englich either
18:06
<
havenwood >
elev: Never!
18:07
<
pipework >
elev: We tend to prefer to help you help yourself.
18:07
<
elev >
in this code:
18:07
<
elev >
question3 = {
18:07
<
elev >
question: "Whats the real name of mafia boy?"
18:07
<
elev >
answers: ["James bond", "Michael Calce", "Vandetta"],
18:07
<
elev >
correct_answer: 1
18:07
<
elev >
}where should commas been?
18:07
<
havenwood >
elev: What are the key/value pairs?
18:09
<
elev >
dont even know what that means
18:11
<
elev >
dont know where the commas should be
18:11
lytol has joined #ruby-lang
18:11
k3asd`_ has quit [Ping timeout: 240 seconds]
18:11
<
havenwood >
elev: Did you succeed in the exercises? How'd the commas work there?
18:13
<
elev >
why is a fucking comma so imporant? xd
18:13
momomomomo has joined #ruby-lang
18:14
<
elev >
it said nothing about commas there havenwood
18:14
brownbathrobe has quit [Remote host closed the connection]
18:15
atomical has quit [Read error: Connection reset by peer]
18:15
<
havenwood >
elev: But it does show key-value pair examples galore. A comma between each pair. Some languages like Clojure treat such commas as entirely optional. The Ruby parser insists!
18:15
atomical_ has joined #ruby-lang
18:16
<
elev >
I think I figured it out
18:16
<
elev >
coma after every ]
18:17
<
elev >
no comma after question key
18:17
brownbathrobe has joined #ruby-lang
18:17
bungoman has quit [Remote host closed the connection]
18:18
atomical has joined #ruby-lang
18:18
atomical_ has quit [Read error: Connection reset by peer]
18:19
hrendalf has quit [Read error: Connection reset by peer]
18:20
symm- has joined #ruby-lang
18:20
workmad3 has quit [Ping timeout: 244 seconds]
18:21
allomov has joined #ruby-lang
18:22
elev has quit [Quit: Lost terminal]
18:22
djbkd_ has joined #ruby-lang
18:22
piotrj has joined #ruby-lang
18:23
bungoman has joined #ruby-lang
18:23
allomov has quit [Remote host closed the connection]
18:25
danzilio has joined #ruby-lang
18:25
bungoman_ has joined #ruby-lang
18:27
djbkd_ has quit [Ping timeout: 272 seconds]
18:29
bungoman has quit [Ping timeout: 245 seconds]
18:30
elia has joined #ruby-lang
18:30
bungoman_ has quit [Ping timeout: 272 seconds]
18:36
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:38
hrendalf has joined #ruby-lang
18:40
Mon_Ouie has quit [Ping timeout: 256 seconds]
18:40
bungoman has joined #ruby-lang
18:43
lytol has quit [Remote host closed the connection]
18:44
cpt_yossarian has joined #ruby-lang
18:44
k3asd` has joined #ruby-lang
18:49
yfeldblum has joined #ruby-lang
18:53
banister has joined #ruby-lang
18:54
SylarRuby has joined #ruby-lang
18:54
RickHull has joined #ruby-lang
18:56
k3asd` has quit [Ping timeout: 255 seconds]
18:58
skade has quit [Quit: Computer has gone to sleep.]
18:59
SylarRuby has quit [Ping timeout: 244 seconds]
18:59
Lewix has joined #ruby-lang
19:02
allomov has joined #ruby-lang
19:03
k3asd` has joined #ruby-lang
19:10
atomical has joined #ruby-lang
19:12
revath has quit [Ping timeout: 255 seconds]
19:14
bin7me has quit [Read error: Connection reset by peer]
19:15
surrounder has quit [Quit: WeeChat 1.1.1]
19:15
atomical has quit [Read error: Connection reset by peer]
19:15
surrounder has joined #ruby-lang
19:16
atomical has joined #ruby-lang
19:18
alestuber has quit [Ping timeout: 252 seconds]
19:19
chouhoul_ has quit [Remote host closed the connection]
19:20
chouhoulis has joined #ruby-lang
19:20
shazaum has quit [Ping timeout: 256 seconds]
19:21
jacaballero has joined #ruby-lang
19:22
rmcafee has quit [Quit: rmcafee]
19:22
kadoppe has quit [Ping timeout: 272 seconds]
19:23
alestuber has joined #ruby-lang
19:25
kadoppe has joined #ruby-lang
19:26
skade has joined #ruby-lang
19:27
jacaballero has joined #ruby-lang
19:27
symm- has quit [Ping timeout: 250 seconds]
19:29
wallerdev has quit [Quit: wallerdev]
19:30
joaomdmoura has quit [Remote host closed the connection]
19:30
koos303 has joined #ruby-lang
19:31
elia has quit [Quit: Computer has gone to sleep.]
19:32
bungoman has quit [Remote host closed the connection]
19:34
bungoman has joined #ruby-lang
19:34
sarkyniin has joined #ruby-lang
19:35
chinmay_dd has joined #ruby-lang
19:35
b_hoffman has quit [Quit: b_hoffman]
19:37
jacaballero is now known as jacaballero[away
19:37
jgpawletko has quit [Quit: jgpawletko]
19:39
jacaballero[away is now known as jacaballero
19:39
revath has joined #ruby-lang
19:39
leat2 has quit [Ping timeout: 256 seconds]
19:40
alestuber has quit [Ping timeout: 256 seconds]
19:40
chinmay_dd has quit [Quit: Leaving]
19:41
chinmay_dd has joined #ruby-lang
19:41
chinmay_dd_ has joined #ruby-lang
19:41
chinmay_dd_ has quit [Remote host closed the connection]
19:41
chinmay_dd_ has joined #ruby-lang
19:41
chinmay_dd_ has quit [Remote host closed the connection]
19:42
chinmay_dd_ has joined #ruby-lang
19:42
chinmay_dd_ has quit [Client Quit]
19:44
alestuber has joined #ruby-lang
19:44
djbkd has quit [Remote host closed the connection]
19:45
chinmay_dd has quit [Ping timeout: 256 seconds]
19:45
joaomdmoura has joined #ruby-lang
19:45
LBo has quit [Ping timeout: 240 seconds]
19:46
unsymbol has quit [Ping timeout: 240 seconds]
19:46
chamblin has joined #ruby-lang
19:48
lele is now known as Guest24
19:48
skade has quit [Read error: Connection reset by peer]
19:48
skade has joined #ruby-lang
19:48
baweaver has quit [Remote host closed the connection]
19:48
unsymbol has joined #ruby-lang
19:49
LBo has joined #ruby-lang
19:49
lytol has joined #ruby-lang
19:49
symm- has joined #ruby-lang
19:49
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:52
brownbathrobe has quit [Remote host closed the connection]
19:55
koos303 has quit [Quit: sanks for all de vis]
19:58
jgpawletko has joined #ruby-lang
19:58
iamninja has quit [Read error: Connection reset by peer]
19:58
deol has joined #ruby-lang
19:58
iamninja has joined #ruby-lang
19:59
workmad3 has joined #ruby-lang
19:59
leat2 has joined #ruby-lang
20:01
gwendall has quit [Remote host closed the connection]
20:02
gwendall has joined #ruby-lang
20:02
deol is now known as michaeldeol
20:03
b_hoffman has joined #ruby-lang
20:06
brownbathrobe has joined #ruby-lang
20:06
gwendall has quit [Ping timeout: 272 seconds]
20:07
djbkd has joined #ruby-lang
20:08
bzb has joined #ruby-lang
20:11
n3b has quit [Ping timeout: 246 seconds]
20:11
rtl_ is now known as rtl
20:14
victortyau has joined #ruby-lang
20:15
victortyau has quit [Read error: Connection reset by peer]
20:15
n3b has joined #ruby-lang
20:20
dik_dak has joined #ruby-lang
20:21
tenderlove has quit [Quit: Leaving...]
20:21
sarkyniin has quit [Read error: Connection reset by peer]
20:21
sarkyniin has joined #ruby-lang
20:24
tenderlove has joined #ruby-lang
20:24
alestuber has quit [Ping timeout: 248 seconds]
20:25
Lewix has quit [Remote host closed the connection]
20:26
momomomomo has quit [Quit: momomomomo]
20:27
wallerdev has joined #ruby-lang
20:29
alestuber has joined #ruby-lang
20:31
delongG has joined #ruby-lang
20:31
b_hoffman has quit [Quit: b_hoffman]
20:33
mahlon has joined #ruby-lang
20:33
skade has quit [Quit: Computer has gone to sleep.]
20:34
workmad3 has quit [Ping timeout: 256 seconds]
20:40
baweaver has joined #ruby-lang
20:41
b_hoffman has joined #ruby-lang
20:41
danzilio has quit [Ping timeout: 272 seconds]
20:42
rikkipitt has joined #ruby-lang
20:43
leat2 has quit [Ping timeout: 264 seconds]
20:44
allomov has quit [Remote host closed the connection]
20:44
momomomomo has joined #ruby-lang
20:47
alestuber has quit [Read error: Connection reset by peer]
20:48
bruno- has quit [Read error: Connection reset by peer]
20:49
bruno- has joined #ruby-lang
20:50
brownbathrobe has quit [Remote host closed the connection]
20:51
SylarRuby has joined #ruby-lang
20:53
jgpawletko has quit [Quit: jgpawletko]
20:53
alestuber has joined #ruby-lang
20:54
arBmind has quit [Quit: Leaving.]
20:56
jacaballero has joined #ruby-lang
20:56
ur5us has joined #ruby-lang
20:58
rbowlby has quit [Remote host closed the connection]
20:59
rbowlby has joined #ruby-lang
21:03
CrimsonSunrise has joined #ruby-lang
21:04
aeze has quit [Ping timeout: 264 seconds]
21:05
gwendall has joined #ruby-lang
21:06
elia has joined #ruby-lang
21:07
danzilio has joined #ruby-lang
21:07
<
CrimsonSunrise >
Hello. It's my first time here and I was wondering if I can ask questions in here.
21:08
delongG has quit [Remote host closed the connection]
21:08
alestuber has quit [Ping timeout: 256 seconds]
21:08
OnBrokenWings has joined #ruby-lang
21:09
<
havenwood >
CrimsonSunrise: Hi. Yeah this is a great place for Ruby questions.
21:10
dzejrou has quit [Ping timeout: 264 seconds]
21:10
bb010g has quit [Quit: Connection closed for inactivity]
21:11
<
CrimsonSunrise >
havenwood: My question may or may not be highly "zen" or not. Let's say that I'm kind of struggling with learning Ruby and I wasn wondering how one keeps himself interested on the language as per se, especially when you don't uderstand the documentation or you find that tutorials for what you're looking for are vague and don't tell you much.
21:11
duderonomy has joined #ruby-lang
21:12
delongG has joined #ruby-lang
21:12
<
havenwood >
CrimsonSunrise: I enjoy the tight feedback loop and adventure of exploring Ruby in the Pry REPL.
21:13
alestuber has joined #ruby-lang
21:13
rikkipitt has quit [Quit: Leaving...]
21:13
micmus has quit [Quit: Leaving]
21:14
<
jacaballero >
@CrimsonSunrise: Hi! Is Ruby the first programming language you learn?
21:14
bzb has quit [Quit: I hate to quit but my bladder's full. :-(]
21:14
baweaver has quit [Remote host closed the connection]
21:14
ldnunes has quit [Quit: Leaving]
21:15
shazaum has joined #ruby-lang
21:15
<
yorickpeterse >
If you want it to be
21:15
<
CrimsonSunrise >
jacaballero: Technically yes. I "tried" other languages and only stick with Ruby because it made sense with the bit of Haskell I was studying before that.
21:15
<
jacaballero >
Do you have a specific project you want to develop?
21:16
<
yorickpeterse >
eh?
21:17
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:17
<
CrimsonSunrise >
jacaballero: Not really.
21:20
<
jacaballero >
CrimsonSunrise I would recommend you to find something to focus on, let's say a game or a little notebook app. This way you can start at your own step and look for help when you are stuck. If you are having trouble with sintaxis and Ruby's general structure I would recommend starting here:
http://www.codecademy.com/tracks/ruby
21:22
bruno- has quit [Ping timeout: 250 seconds]
21:23
<
CrimsonSunrise >
jacaballero: I guess game development would be one of the objectives, along with web stuff (not necessarily related to Rails)
21:23
<
yorickpeterse >
oh heh, I missed the initial question
21:23
<
yorickpeterse >
derp
21:23
piotrj has quit [Remote host closed the connection]
21:26
melter has joined #ruby-lang
21:29
piotrj has joined #ruby-lang
21:31
lytol has joined #ruby-lang
21:31
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:31
<
CrimsonSunrise >
jacaballero: I'll take a look at those right now.
21:31
allomov has joined #ruby-lang
21:32
malconis has joined #ruby-lang
21:32
malconis has quit [Client Quit]
21:32
OnBrokenWings has quit [Quit: Leaving]
21:34
<
darix >
yorickpeterse: will do next week
21:35
iamninja has quit [Read error: Connection reset by peer]
21:35
<
yorickpeterse >
darix: ok
21:36
iamninja has joined #ruby-lang
21:39
ta has quit [Remote host closed the connection]
21:40
<
CrimsonSunrise >
Is there a good windows substitute for Sublime Text that does syntax highlighting for Ruby?
21:41
momomomomo has quit [Quit: momomomomo]
21:41
<
wallerdev >
doesnt sublime text work on windows
21:41
sarkyniin has quit [Ping timeout: 248 seconds]
21:41
<
CrimsonSunrise >
wallerdev: It does, but it doesn't highlight the syntax properly.
21:42
<
wallerdev >
what does it highlight wrong?
21:42
<
CrimsonSunrise >
wallerdev: It's more like what it should highlight but it doesn't.
21:43
<
wallerdev >
well what does it do wrong?
21:43
<
wallerdev >
genuinely curious haha
21:43
chouhoul_ has joined #ruby-lang
21:43
baweaver has joined #ruby-lang
21:44
<
CrimsonSunrise >
wallerdev: Isntance variables for example.
21:44
<
CrimsonSunrise >
*Instance
21:44
<
darix >
wallerdev: it does
21:45
<
wallerdev >
you mean it puts them the same color as something else so they're hard to tell apart or what? maybe a screenshot would be most clear
21:46
chouhoulis has quit [Ping timeout: 240 seconds]
21:46
ta has joined #ruby-lang
21:46
<
CrimsonSunrise >
wallerdev: It keeps most things, like methods and stuff like that as standard white text.
21:47
<
wallerdev >
are you in ruby mode?
21:47
<
CrimsonSunrise >
But I'm talking about bare Sublime Text 2 without any packages installed.
21:47
<
CrimsonSunrise >
Yex
21:47
<
darix >
CrimsonSunrise: make sure it is really in ruby mode
21:47
<
CrimsonSunrise >
Yes
21:47
<
darix >
CrimsonSunrise: i use it on windows and linux and it works just fine
21:47
<
wallerdev >
doesnt sound right, maybe you just need to configure the colors somewhere
21:47
<
wallerdev >
try a different theme maybe?
21:47
revath has quit [Ping timeout: 250 seconds]
21:48
<
CrimsonSunrise >
Or maybe I should use a Ruby IDE instead...But all of them are paid.
21:49
<
pipework >
Not true.
21:49
<
wallerdev >
use whatever works best for you
21:49
<
wallerdev >
i use textmate which is basically the same as sublime
21:50
b_hoffman has quit [Quit: b_hoffman]
21:50
<
darix >
CrimsonSunrise: maybe give sublime 3 a try
21:51
<
CrimsonSunrise >
darix: Isn't the development of Sublime 3 dead?
21:51
hrendalf has quit [Remote host closed the connection]
21:53
<
CrimsonSunrise >
jacaballero: ST2 or ST3?
21:54
elia has quit [Quit: Computer has gone to sleep.]
21:54
<
jacaballero >
I use 3
21:55
elia has joined #ruby-lang
21:55
<
darix >
CrimsonSunrise: naw.
21:55
fusillicode has quit [Ping timeout: 264 seconds]
21:56
__butch__ has quit [Quit: Leaving.]
21:57
alestuber has quit [Ping timeout: 250 seconds]
21:58
alestuber has joined #ruby-lang
21:59
djbkd_ has joined #ruby-lang
22:01
nertzy has joined #ruby-lang
22:02
b_hoffman has joined #ruby-lang
22:02
sarkyniin has joined #ruby-lang
22:02
mdarby has joined #ruby-lang
22:04
djbkd_ has quit [Ping timeout: 264 seconds]
22:04
piotrj has quit [Remote host closed the connection]
22:04
<
CrimsonSunrise >
Just curious about something. How hard would it be to interface between Ruby and Haskell?
22:06
<
jacaballero >
If using HTTP reqs, pretty easy.
22:06
<
darix >
CrimsonSunrise: depends
22:07
<
CrimsonSunrise >
darix: On what?
22:08
<
darix >
as jacaballero said ... if you can use network with some easy inter op data format
22:08
<
darix >
let's say json e.g.
22:10
<
CrimsonSunrise >
darix: Something like JRuby?
22:10
ta has quit [Remote host closed the connection]
22:11
<
headius >
can haskell export C functions?
22:11
<
headius >
from a haskell lib
22:12
<
CrimsonSunrise >
headius: That I don't know.
22:13
<
headius >
I'm not sure Haskell plays well with others in general
22:14
<
yorickpeterse >
it certainly doesn't play well with the eyes
22:14
* yorickpeterse
runs
22:14
<
darix >
i always wonder people try to use haskell for real life stuff and not just academics
22:14
baweaver has quit [Remote host closed the connection]
22:14
sarkyniin has quit [Ping timeout: 248 seconds]
22:14
<
yorickpeterse >
darix: hey careful now, we don't want to throw you on the pyre
22:15
<
CrimsonSunrise >
darix: Well, I had a colleague developing a database system in Haskell
22:15
<
darix >
yorickpeterse: i was amused when i watched a presentation about a guy developing a bittorrent tool in haskell
22:15
<
darix >
highly optimized and all
22:16
<
darix >
he used an unoptimized erlang implementation which blow the haskell out of the water
22:16
nertzy has quit [Quit: This computer has gone to sleep]
22:17
<
yorickpeterse >
Never used Haskell so I can't talk about the performance, but the syntax makes me want to wash my eyes with bleach
22:17
<
CrimsonSunrise >
darix: Well, Erlang is the king of parallel processing it seems.
22:17
<
yorickpeterse >
Though Erlang also has a wacky syntax
22:17
<
CrimsonSunrise >
yorickpeterse: Really? I thought it was simple and concise
22:17
<
CrimsonSunrise >
Or maybe LYAH explains it well.
22:18
joaomdmoura has quit [Remote host closed the connection]
22:18
workmad3 has joined #ruby-lang
22:18
<
darix >
yorickpeterse: elixir ;)
22:19
<
yorickpeterse >
seens it
22:19
nertzy has joined #ruby-lang
22:19
<
yorickpeterse >
at least Erlang the Movie 2 was good
22:19
<
yorickpeterse >
Ruby really lacks such a masterpiece
22:21
rbowlby has quit [Remote host closed the connection]
22:21
rbowlby has joined #ruby-lang
22:22
jgpawletko has joined #ruby-lang
22:22
alestuber has quit [Ping timeout: 256 seconds]
22:22
<
pipework >
Wait, there was a followup movie?
22:22
<
pipework >
yorickpeterse: Why do you feel that it's wonky?
22:23
<
CrimsonSunrise >
yorickpeterse: Considering the number of films called 'Ruby', it's not hard to see why.
22:23
workmad3 has quit [Ping timeout: 250 seconds]
22:24
<
jacaballero >
yorickpeterse ^ lol
22:25
<
yorickpeterse >
pipework: mainly due to the "syntax noise"
22:25
<
yorickpeterse >
e.g. too many special syntax constructs
22:25
<
yorickpeterse >
I've really come to appreciate smalltalk style languages where there's hardly any syntax to begin with
22:25
<
pipework >
yorickpeterse: Oh, gotcha. Nothing much in term of specifics that I might be able to appreciate an argument about?
22:25
<
pipework >
I can see your general argument. I don't find it offputting or too weird, though I can see it being 'much'.
22:25
<
yorickpeterse >
Outside of that I love Erlang as a concept
22:26
<
yorickpeterse >
it's probably one of the few languages that gets concurrency right
22:26
<
yorickpeterse >
I think Joe Armstrong at some point said something along the lines of "If I would redesign Erlang today I'd probably use syntax similar to Elixir"
22:27
alestuber has joined #ruby-lang
22:27
<
pipework >
He has a lot of great articles too.
22:27
baweaver has joined #ruby-lang
22:27
<
darix >
yorickpeterse: ejabberd just added support elixir. and i know at least one ejabberd dev, who gets drawn to elixir now.
22:27
Mon_Ouie has joined #ruby-lang
22:27
Mon_Ouie has joined #ruby-lang
22:27
<
darix >
more compact code for the same problem
22:28
<
yorickpeterse >
pipework: he's a pretty funny person too
22:28
<
pipework >
darix: elixir has nice vm bytecode emission.
22:28
<
CrimsonSunrise >
At lest it's not OCaml...
22:28
<
pipework >
CrimsonSunrise: OCaml is super cool, but the syntax is even harer.
22:28
<
yorickpeterse >
let x = 10 in
22:28
<
yorickpeterse >
"IN WHAT?"
22:28
<
pipework >
Though not as hard as haskell, imo.
22:28
<
darix >
didnt he write a C parser in erlang once
22:28
<
darix >
which then outputs clang intermediate code to do the rest in Clang
22:28
<
darix >
(llvm to be more correct)
22:29
<
CrimsonSunrise >
pipework: I think, apart from Perl and Malboge, F# is worse.
22:30
setanta_ has quit [Quit: Leaving]
22:30
bruno- has joined #ruby-lang
22:31
<
darix >
thats the one
22:33
<
darix >
did you see the presentation of testing car software with quickcheck?
22:33
nertzy has quit [Quit: This computer has gone to sleep]
22:33
sarkyniin has joined #ruby-lang
22:33
<
yorickpeterse >
hm, C and uncidode
22:33
<
yorickpeterse >
* unicode
22:33
<
yorickpeterse >
always fun
22:34
<
yorickpeterse >
especially walking through a string without burning yourself 15 times
22:34
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:34
<
CrimsonSunrise >
and gosu didn't install properly. what to do?
22:34
<
pipework >
CrimsonSunrise: Fix it or don't and get a drink.
22:35
<
pipework >
(fix || dont) && drink
22:35
bruno- has quit [Ping timeout: 240 seconds]
22:35
<
CrimsonSunrise >
pipework: Or it doesn't work with Ruby 2.2, I suppose.
22:36
<
darix >
CrimsonSunrise: without knowing the exact error
22:36
<
darix >
hard to tell
22:37
LMity has joined #ruby-lang
22:37
<
CrimsonSunrise >
darix: I opened 'irb' and typed 'require 'gosu'' and it said it couldn't load it about 8 times. And that's it.
22:37
Musashi007 has joined #ruby-lang
22:38
nofxx has joined #ruby-lang
22:38
nofxx has joined #ruby-lang
22:38
bruno- has joined #ruby-lang
22:38
ruby-lang658 has joined #ruby-lang
22:39
<
ruby-lang658 >
hey guys!
22:39
<
ruby-lang658 >
anybody in here?
22:39
<
ruby-lang658 >
oh damn :(
22:40
<
ruby-lang658 >
two nos, that's worse than one! :-\
22:40
<
ruby-lang658 >
can anybody help me here with an idiom?
22:41
<
bnagy >
if it's a gist give us a gist link
22:41
<
bnagy >
if you use bitly I just assume it's spam or malware
22:41
LMity has quit [Ping timeout: 252 seconds]
22:41
<
darix >
bnagy: or both
22:42
bruno- has quit [Ping timeout: 248 seconds]
22:42
<
CrimsonSunrise >
Are there any game libraries for Ruby 2.x? Gosu doesn't seem to be compatible.
22:42
<
ruby-lang658 >
it aint dude, just don't want links directly to my GH account
22:43
<
ruby-lang658 >
for real
22:43
bruno- has joined #ruby-lang
22:43
<
bnagy >
then just use the non-account linked paste, for real, yo, dog
22:43
<
ruby-lang658 >
"trust me", said one guy on the internet :)
22:46
Lewix has joined #ruby-lang
22:46
<
darix >
it doesnt have your username in the url
22:46
<
darix >
in the gist page
22:46
<
darix >
it shows it :p
22:47
<
ruby-lang658 >
darix no prob with that
22:47
b_hoffman has quit [Quit: b_hoffman]
22:48
bungoman has quit [Remote host closed the connection]
22:48
<
ruby-lang658 >
made an edit to include a comment though
22:50
b_hoffman has joined #ruby-lang
22:52
ruby-lang658 has quit [Ping timeout: 246 seconds]
22:53
b_hoffman has quit [Client Quit]
22:57
b_hoffman has joined #ruby-lang
22:59
SilverFang has joined #ruby-lang
22:59
whippythellama has quit [Quit: whippythellama]
23:02
CrimsonSunrise has quit [Ping timeout: 255 seconds]
23:02
mcclurmc has quit []
23:03
lytol has quit [Remote host closed the connection]
23:03
enebo has quit [Quit: enebo]
23:04
alestuber has quit [Ping timeout: 244 seconds]
23:05
ruby-lang847 has joined #ruby-lang
23:05
<
ruby-lang847 >
hey, it's me again, guys, I was asking about the gist
23:06
<
ruby-lang847 >
network fail
23:06
mcclurmc has joined #ruby-lang
23:08
b_hoffman has quit [Quit: b_hoffman]
23:09
<
ruby-lang847 >
can you give me some feedback on this?
23:10
harlen has joined #ruby-lang
23:10
<
bnagy >
I still can't see it
23:10
alestuber has joined #ruby-lang
23:11
funnel has quit [Ping timeout: 265 seconds]
23:12
<
havenwood >
ruby-lang847: ^
23:12
funnel has joined #ruby-lang
23:13
<
ruby-lang847 >
thats the one havenwood
23:13
<
havenwood >
ruby-lang847: consider what that #each is returning
23:13
<
havenwood >
>> [1, 2, 3].each { |n| n + 42 }
23:15
k3asd` has quit [Ping timeout: 256 seconds]
23:16
<
ruby-lang847 >
yeah, I'm getting it now, havenwood
23:16
<
bnagy >
... after all that it was one line you wanted us to look at?
23:16
<
ruby-lang847 >
so i need another enumerator, that's it
23:17
<
ruby-lang847 >
yeah bnagy, sorry :(
23:17
danzilio has quit [Quit: Baiii!]
23:17
<
ruby-lang847 >
I was banging my head against the wall, it's getting late and I was lsing patience
23:17
<
bnagy >
each is for operating on a collection but leaving it unchanged. map is for transformations.
23:17
djbkd_ has joined #ruby-lang
23:18
<
bnagy >
it doesn't look like you need the initial map, tbh
23:18
baweaver has quit [Remote host closed the connection]
23:19
<
bnagy >
what do you want your output to look like? ( or what's the plain-english version of what your code should do )
23:20
SilverFang has quit [Quit: Leaving]
23:21
djbkd_ has quit [Ping timeout: 250 seconds]
23:23
wallerdev has quit [Ping timeout: 276 seconds]
23:26
delongG has quit [Remote host closed the connection]
23:27
charliesome has joined #ruby-lang
23:27
shazaum has quit [Quit: This computer has gone to sleep]
23:29
Lewix has quit [Remote host closed the connection]
23:29
baweaver has joined #ruby-lang
23:29
delongG has joined #ruby-lang
23:29
SylarRuby has quit [Remote host closed the connection]
23:33
Crowgirl has joined #ruby-lang
23:34
<
Crowgirl >
Hello, I'm a Ruby n00b.
23:37
<
bnagy >
Crowgirl: hi. There are lots of people here, but most of them only kick into action when there's an actual question being asked.
23:38
<
Crowgirl >
I need some help with dotenv.
23:38
<
Crowgirl >
I just need very simple help.
23:38
<
Crowgirl >
Would someone like to see my two scripts?
23:39
<
Crowgirl >
The help I need is with the first few lines of each script.
23:39
<
yorickpeterse >
Crowgirl: best to just drop them in something like gist.github.com and ask ahead
23:39
<
Crowgirl >
ask ahead?
23:39
<
baweaver >
Just ask the question without all the introduction
23:39
<
yorickpeterse >
As in, ask what you need help with instead of asking "Can somebody help me"
23:39
<
Crowgirl >
Ahead of what? I can open github in my web browser...
23:40
<
Crowgirl >
I'm working on a Twitter bot. There are two scripts, a bot script, and an env script with contains Twitter API tokens.
23:40
<
baweaver >
It's a turn of phrase, which basically means just ask the question you have
23:40
<
baweaver >
instead of typing out a long introduction to things
23:41
<
baweaver >
On IRC it's not necessary to ask permission to ask a question
23:41
<
Crowgirl >
The purpose of the env script is to contain the API tokens, while the bot script calls env.txt for the values of the tokens. It's a security measure.
23:42
<
Crowgirl >
I have no idea how to change the beginning of the bot script so that it references env.txt properly. Help!
23:42
<
harlen >
put the relevant information, code, errors, expected behavior and actual behiavior it in a gist. paste the link. then type give a 1 line description.
23:42
<
yorickpeterse >
and make sure your tokens are not in the gist :P
23:42
<
Crowgirl >
So, I should go to github and upload them there?
23:43
<
yorickpeterse >
you don't need an account for it
23:43
<
Crowgirl >
Okay, just a moment...
23:43
<
yorickpeterse >
Having said that, do you mean Dotenv is not loading the file?
23:43
<
yorickpeterse >
Because I think by default it only searches for ".env"
23:43
<
yorickpeterse >
and you have to explicitly tell it where to load data from otherwise
23:43
<
Crowgirl >
I haven't run anything yet, no errors to report.
23:43
<
yorickpeterse >
Which you can do using Dotenv.load("path/to/dotenv.txt")
23:44
elia has quit [Quit: Computer has gone to sleep.]
23:47
alestuber has quit [Ping timeout: 248 seconds]
23:49
bungoman has joined #ruby-lang
23:49
<
Crowgirl >
Okay, I uploaded it to github as bots SECURE.rb
23:49
<
Crowgirl >
Thanks everyone.
23:50
<
Crowgirl >
As I said, I haven't run anything yet. I just need to know how to change the beginning of the bot script so that it calls env.txt
23:50
<
yorickpeterse >
Crowgirl: see above, that's probably what you need to add
23:51
<
Crowgirl >
All tokens have been removed, hence I titled the new files SECURE.
23:51
<
Crowgirl >
Thank you, but I already have that in a separate tutorial.
23:51
<
yorickpeterse >
Crowgirl: you'll need to share the link
23:52
<
Crowgirl >
That's not quite the help that I need. Do you see what I uploaded to github now?
23:52
<
Crowgirl >
I can paste the hyperlink to the tutorial webpage that confused me. Shall I?
23:52
Musashi007 has quit [Quit: Musashi007]
23:52
<
yorickpeterse >
What I meant was, if you uplodated it to gist.github.com there's no way for people to just know the link so they can see what you're doing
23:53
<
Crowgirl >
Oh... Oops.
23:53
Musashi007 has joined #ruby-lang
23:53
<
yorickpeterse >
Ah, Twitter ebooks
23:53
<
Crowgirl >
Yes, yorick.
23:53
alestuber has joined #ruby-lang
23:54
bungoman has quit [Ping timeout: 264 seconds]
23:54
<
yorickpeterse >
So Dotenv sets its variables in "environment variables"
23:54
<
yorickpeterse >
You can access these from Ruby using "ENV"
23:54
<
yorickpeterse >
e.g. if you run a script using something like this:
23:54
<
Crowgirl >
And this is what the tutorial said that confused me:
23:54
<
yorickpeterse >
FOO=10 ruby some_script.rb
23:54
<
Crowgirl >
While you have bots.rb open, tell the program how and where to find the keys later by adding a couple lines before your secrets, and changing what comes after the equals signs:
23:54
<
yorickpeterse >
Then in Ruby you can do ENV['FOO'] and you'll get "10"
23:54
<
Crowgirl >
require 'dotenv'
23:54
<
Crowgirl >
Dotenv.load(".env")
23:54
<
Crowgirl >
CONSUMER_KEY = ENV['EBOOKS_CONSUMER_KEY']
23:54
<
Crowgirl >
CONSUMER_SECRET = ENV['EBOOKS_CONSUMER_SECRET']
23:54
<
Crowgirl >
OAUTH_TOKEN = ENV['EBOOKS_OAUTH_TOKEN']
23:54
<
Crowgirl >
OAUTH_TOKEN_SECRET = ENV['EBOOKS_OAUTH_TOKEN_SECRET']
23:54
<
Crowgirl >
What do I enter as the strings in the above?
23:54
<
yorickpeterse >
If the file ".env" specifies the variables in the form of "EBOOKS_CONSUMER_KEY=VALUE_HERE" that should work
23:55
<
Crowgirl >
My env.txt is fine, the strings contain the tokens.
23:55
<
Crowgirl >
My question is, what do I change in what I just pasted above here?
23:56
<
Crowgirl >
Okay, one moment...
23:56
<
yorickpeterse >
So in your case you'd have CONSUMER_KEY = ENV['EBOOKS_CONSUMER_KEY'] like you pasted above
23:56
<
Crowgirl >
I put '10' as the string for each? Really?!
23:57
<
Crowgirl >
Oh, I leave that alone, then?
23:57
<
yorickpeterse >
Then do the same for CONSUMER_SECRET and the others
23:57
sarkyniin has quit [Quit: Quit]
23:57
<
yorickpeterse >
err wait
23:58
<
yorickpeterse >
missing one crucial bit
23:58
<
Crowgirl >
What does the tutorial author mean by "changing what comes after the equals signs" then?
23:58
<
Crowgirl >
One moment...
23:58
rcvalle has quit [Quit: rcvalle]
23:59
<
yorickpeterse >
They probably mean updating the credentials in the ".env" file to use your actual credentials
23:59
<
Crowgirl >
Okay yorick, I looked. so leave the beginning of the bots script as is?
23:59
<
yorickpeterse >
No, check the script I showed above
23:59
<
yorickpeterse >
in particular lines 8 to 10
23:59
<
Crowgirl >
Oh okay. The tutorial author did a really poor job explaining it. Thanks.
23:59
<
yorickpeterse >
oh and line 4
23:59
<
Crowgirl >
Okay, just a sec...