00:00
dikaio has quit [Remote host closed the connection]
00:00
dikaio has joined #ruby
00:01
pawnbox has quit [Remote host closed the connection]
00:02
djbkd has quit [Ping timeout: 244 seconds]
00:03
Trynemjoel has quit [Ping timeout: 244 seconds]
00:04
firstdayonthejob has quit [Ping timeout: 244 seconds]
00:04
bry4n_ has joined #ruby
00:05
davedev24 has quit [Remote host closed the connection]
00:05
ziyadb has joined #ruby
00:08
moos3 has joined #ruby
00:08
Trynemjoel has joined #ruby
00:09
bry4n_ has quit [Ping timeout: 240 seconds]
00:11
devbug_ has joined #ruby
00:12
sandstrom has quit [Quit: My computer has gone to sleep.]
00:12
BSaboia has quit [Ping timeout: 246 seconds]
00:13
sandstrom has joined #ruby
00:15
ReK2 has quit [Remote host closed the connection]
00:15
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
00:15
swills has joined #ruby
00:16
ReK2 has joined #ruby
00:17
freerobby has joined #ruby
00:18
marbles has joined #ruby
00:19
CloCkWeRX has joined #ruby
00:20
krz has joined #ruby
00:21
ReK2 has quit [Remote host closed the connection]
00:22
fullofcaffeine has quit [Remote host closed the connection]
00:22
ReK2 has joined #ruby
00:24
moeabdol has quit [Ping timeout: 244 seconds]
00:24
tvon has quit [Remote host closed the connection]
00:25
tvon has joined #ruby
00:25
rmulligan has joined #ruby
00:28
anton1x has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
00:28
Trynemjoel has quit [Ping timeout: 244 seconds]
00:29
sandstrom has quit [Quit: My computer has gone to sleep.]
00:29
tvon has quit [Ping timeout: 252 seconds]
00:29
Chagel has joined #ruby
00:30
rmulligan has quit [Ping timeout: 252 seconds]
00:30
sandstrom has joined #ruby
00:31
spider-mario has quit [Remote host closed the connection]
00:31
Trynemjoel has joined #ruby
00:34
TomyLobo has quit [Ping timeout: 244 seconds]
00:35
Chagel has quit [Ping timeout: 276 seconds]
00:35
kirun has quit [Remote host closed the connection]
00:35
bjpenn has quit [Ping timeout: 264 seconds]
00:37
poerror has quit [Ping timeout: 240 seconds]
00:38
djbkd has joined #ruby
00:38
bjpenn has joined #ruby
00:40
perturbation has joined #ruby
00:40
merqlove has joined #ruby
00:42
djbkd has quit [Ping timeout: 248 seconds]
00:43
dikaio has quit [Remote host closed the connection]
00:43
djbkd has joined #ruby
00:43
dikaio has joined #ruby
00:44
quazimodo has quit [Ping timeout: 264 seconds]
00:44
myntcake has quit [Quit: Leaving]
00:45
shellie_ has quit [Quit: leaving]
00:45
sandstrom has quit [Quit: My computer has gone to sleep.]
00:46
diegoviola has joined #ruby
00:46
poerror has joined #ruby
00:47
sandstrom has joined #ruby
00:47
rubie has joined #ruby
00:50
bithon has joined #ruby
00:51
uglybandersnatch has joined #ruby
00:52
rubie has quit [Ping timeout: 252 seconds]
00:53
lictor36 has quit [Quit: lictor36]
00:53
vdamewood has joined #ruby
00:54
dikaio has quit [Remote host closed the connection]
00:55
dikaio has joined #ruby
00:55
moos3 has quit [Ping timeout: 244 seconds]
00:55
uglybandersnatch has quit [Ping timeout: 244 seconds]
00:55
bronson has joined #ruby
00:58
_blizzy_ has quit [Ping timeout: 268 seconds]
00:58
x77686d has quit [Quit: x77686d]
00:59
poerror has quit [Ping timeout: 252 seconds]
01:00
edwinvdgraaf has joined #ruby
01:00
rubie has joined #ruby
01:01
bronson has quit [Ping timeout: 252 seconds]
01:01
davee_ has quit [Ping timeout: 252 seconds]
01:02
pawnbox has joined #ruby
01:02
sandstrom has quit [Quit: My computer has gone to sleep.]
01:02
j3r0 has quit [Ping timeout: 276 seconds]
01:04
sandstrom has joined #ruby
01:05
dikaio has quit [Remote host closed the connection]
01:05
edwinvdgraaf has quit [Ping timeout: 244 seconds]
01:06
dikaio has joined #ruby
01:06
davedev24 has joined #ruby
01:07
pawnbox has quit [Ping timeout: 264 seconds]
01:08
duckpuppy has joined #ruby
01:10
davedev24 has quit [Ping timeout: 240 seconds]
01:10
_blizzy_ has joined #ruby
01:12
krz has quit [Read error: Connection reset by peer]
01:12
elifoster has quit [Ping timeout: 260 seconds]
01:13
intrigueD has quit [Remote host closed the connection]
01:13
duckpuppy has quit [Ping timeout: 246 seconds]
01:15
Abrin_AWAY has joined #ruby
01:17
rubie has quit [Remote host closed the connection]
01:18
ur5us has joined #ruby
01:19
sandstrom has quit [Quit: My computer has gone to sleep.]
01:19
rmulligan has joined #ruby
01:20
sandstrom has joined #ruby
01:20
djbkd has quit [Remote host closed the connection]
01:21
eregi has quit [Quit: Lost terminal]
01:21
ur5us has quit [Remote host closed the connection]
01:22
freerobby has quit [Quit: Leaving.]
01:23
djbkd has joined #ruby
01:23
djbkd has quit [Remote host closed the connection]
01:24
djbkd has joined #ruby
01:24
nando293921 has joined #ruby
01:24
rmulligan has quit [Ping timeout: 250 seconds]
01:25
bronson has joined #ruby
01:28
mallu has joined #ruby
01:28
zotherstupidguy has joined #ruby
01:29
marr has quit [Ping timeout: 260 seconds]
01:29
CloCkWeRX has quit [Ping timeout: 264 seconds]
01:29
hnagamin has joined #ruby
01:30
kam270 has joined #ruby
01:30
rmulligan has joined #ruby
01:32
pawnbox has joined #ruby
01:32
davee_ has joined #ruby
01:35
al2o3-cr has quit [Ping timeout: 260 seconds]
01:35
sandstrom has quit [Quit: My computer has gone to sleep.]
01:37
triangles has joined #ruby
01:37
sandstrom has joined #ruby
01:37
pawnbox has quit [Ping timeout: 276 seconds]
01:38
rhg331 has joined #ruby
01:40
al2o3-cr has joined #ruby
01:40
triangles has quit [Read error: Connection reset by peer]
01:40
triangles has joined #ruby
01:42
triangles2 has joined #ruby
01:42
zotherstupidguy has quit [Ping timeout: 240 seconds]
01:43
CloCkWeRX has joined #ruby
01:45
triangles has quit [Ping timeout: 240 seconds]
01:45
rmulliga` has joined #ruby
01:46
moos3 has joined #ruby
01:47
triangles2 has quit [Ping timeout: 240 seconds]
01:47
hxegon has quit [Quit: BRB]
01:48
dikaio has quit [Remote host closed the connection]
01:49
dikaio has joined #ruby
01:51
nando293921 has quit [Ping timeout: 244 seconds]
01:51
moos3 has quit [Ping timeout: 268 seconds]
01:52
sandstrom has quit [Quit: My computer has gone to sleep.]
01:53
sandstrom has joined #ruby
01:53
interpelex has joined #ruby
01:54
chipotle has joined #ruby
01:54
bricker has quit [Ping timeout: 244 seconds]
01:54
bithon has quit [Quit: WeeChat 1.4]
01:55
poerror has joined #ruby
01:55
htmldrum has joined #ruby
01:56
rmulligan has quit [Remote host closed the connection]
01:56
rmulliga` has quit [Remote host closed the connection]
01:57
Cohedrin has joined #ruby
01:58
Cohedrin_ has quit [Ping timeout: 264 seconds]
01:59
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:59
SCHAAP137 has quit [Remote host closed the connection]
01:59
nando293921 has joined #ruby
02:00
rmulligan has joined #ruby
02:00
htmldrum has quit [Ping timeout: 240 seconds]
02:02
LoneHermit has joined #ruby
02:02
hinbody has joined #ruby
02:03
edwinvdgraaf has joined #ruby
02:04
rmulligan has quit [Ping timeout: 250 seconds]
02:05
rubie has joined #ruby
02:05
bry4n_ has joined #ruby
02:07
triangles has joined #ruby
02:07
edwinvdgraaf has quit [Ping timeout: 260 seconds]
02:08
ddd has joined #ruby
02:08
<
ddd >
I just drank 5 liters of tea
02:09
blackmesa has quit [Ping timeout: 244 seconds]
02:09
elifoster has joined #ruby
02:10
bry4n_ has quit [Ping timeout: 264 seconds]
02:12
rmulligan has joined #ruby
02:12
Azure has quit [Remote host closed the connection]
02:13
ddd has quit [Quit: Leaving]
02:15
Azure has joined #ruby
02:17
Azure has quit [Remote host closed the connection]
02:17
davee_ has quit [Ping timeout: 248 seconds]
02:18
Azure has joined #ruby
02:18
Azure has quit [Remote host closed the connection]
02:18
pwnd_nsfw has quit [Quit: Leaving]
02:19
i8igmac has joined #ruby
02:19
Azure has joined #ruby
02:20
fullofca_ has joined #ruby
02:20
pwnd_nsfw has joined #ruby
02:20
ledestin has joined #ruby
02:21
ebbflowgo has quit [Quit: ebbflowgo]
02:21
Azure has quit [Remote host closed the connection]
02:21
davedev24 has joined #ruby
02:21
diegoviola has quit [Quit: WeeChat 1.4]
02:22
pawnbox has joined #ruby
02:26
tvon has joined #ruby
02:26
johnmilton has quit [Ping timeout: 260 seconds]
02:26
pawnbox has quit [Ping timeout: 244 seconds]
02:27
Mia has quit [Read error: Connection reset by peer]
02:29
poerror has quit [Ping timeout: 248 seconds]
02:29
jyaworski has joined #ruby
02:29
rmulligan has quit [Remote host closed the connection]
02:29
rmulligan has joined #ruby
02:30
Jardayn has quit [Ping timeout: 268 seconds]
02:30
jenrzzz has joined #ruby
02:31
tvon has quit [Ping timeout: 268 seconds]
02:33
retornam has joined #ruby
02:33
nanoz has joined #ruby
02:33
bricker has joined #ruby
02:33
Azure has joined #ruby
02:34
zotherstupidguy has joined #ruby
02:34
ziyadb has quit [Quit: Connection closed for inactivity]
02:34
retornam has quit [Remote host closed the connection]
02:36
sandstrom has quit [Quit: My computer has gone to sleep.]
02:36
cdg has joined #ruby
02:37
sandstrom has joined #ruby
02:37
gregf has quit [Quit: WeeChat 1.4]
02:38
LoneHermit has quit [Remote host closed the connection]
02:38
norc_ has joined #ruby
02:38
johnmilton has joined #ruby
02:39
stardiviner has joined #ruby
02:39
LoneHerm_ has joined #ruby
02:39
Sucks has joined #ruby
02:40
rmulligan has quit [Ping timeout: 240 seconds]
02:41
cdg has quit [Ping timeout: 268 seconds]
02:42
norc__ has quit [Ping timeout: 240 seconds]
02:42
pawnbox has joined #ruby
02:46
chipotle has quit [Quit: cheerio]
02:46
cpruitt has quit [Read error: Connection reset by peer]
02:46
cpruitt has joined #ruby
02:46
pawnbox has quit [Ping timeout: 244 seconds]
02:51
DmitryBochkarev has joined #ruby
02:51
arescorpio has joined #ruby
02:51
merqlove has quit [Quit: Connection closed for inactivity]
02:52
sandstrom has quit [Quit: My computer has gone to sleep.]
02:54
sandstrom has joined #ruby
02:54
chipotle has joined #ruby
02:54
tjohnson has quit [Quit: Connection closed for inactivity]
02:54
baweaver has quit [Remote host closed the connection]
02:58
zotherstupidguy has quit [Ping timeout: 244 seconds]
02:59
bry4n_ has joined #ruby
03:02
elifoster has quit [Ping timeout: 276 seconds]
03:03
SenpaiSilver has quit [Quit: Leaving]
03:04
bjpenn has quit [Ping timeout: 246 seconds]
03:04
bry4n_ has quit [Ping timeout: 248 seconds]
03:05
blackmesa has joined #ruby
03:05
quazimodo has joined #ruby
03:06
systemsgotyou has joined #ruby
03:07
<
systemsgotyou >
whats the most used ruby stack?
03:07
shinnya has quit [Ping timeout: 244 seconds]
03:09
moos3 has joined #ruby
03:09
sandstrom has quit [Quit: My computer has gone to sleep.]
03:09
duckpuppy has joined #ruby
03:10
sandstrom has joined #ruby
03:11
blackmesa has quit [Ping timeout: 246 seconds]
03:14
duckpuppy has quit [Ping timeout: 244 seconds]
03:14
moos3 has quit [Ping timeout: 252 seconds]
03:20
pateussy has joined #ruby
03:21
<
pateussy >
what is the best linux env to learn programming?
03:21
<
nofxx >
pateussy, archlinux, everything is up to date, less stumbling on version s**
03:22
<
nofxx >
up to date/bleeding edge heh
03:22
zotherstupidguy has joined #ruby
03:22
<
Nilium >
You probably won't see much difference for learning.
03:22
<
nofxx >
gentoo too, more compiling only
03:22
<
pateussy >
i just downloaded fedora and it's booting in emergency mode
03:22
<
pateussy >
keep in mind i only want to run a vm
03:22
<
nofxx >
Nilium, disagree... most (read deb* crap) you'll find ruby 1.8, or worst
03:22
<
pateussy >
i'd like to have my windows partition untouched
03:22
<
nofxx >
not that hard to update, but extra step
03:23
pawnbox has joined #ruby
03:23
<
Nilium >
nofxx: That's generally the case for most distros' package managers: they're outdated and they install things in weird places because nobody has a standard FS structure.
03:24
<
nofxx >
yup...other point I like about arch Nilium. KISS.
03:24
<
Nilium >
That's more or less why I use FreeBSD.
03:25
<
Nilium >
May not be bleeding edge, but it sure is consistent.
03:25
Sucks has quit [Remote host closed the connection]
03:25
<
pateussy >
i just hate the system program problem detected error i get under ubuntu
03:26
fullofcaffeine has joined #ruby
03:26
<
pateussy >
i install a bunch of things and then i end up getting that error
03:26
sandstrom has quit [Quit: My computer has gone to sleep.]
03:26
<
Nilium >
Anyway, if it's in a VM, just a pick a bunch of them and see what sticks.
03:26
<
pateussy >
ubuntu sucks for me
03:26
<
Nilium >
Arch is a good option, Gentoo's good for getting more familiar with system setup, Slackware is for psychopaths like me, etc.
03:27
<
pateussy >
i would like to be able to program in ruby python javascript node etc
03:27
<
Nilium >
Could also try smaller distros like Alpine Linux.
03:27
zotherstupidguy has quit [Quit: WeeChat 1.3]
03:27
pawnbox has quit [Ping timeout: 248 seconds]
03:27
sandstrom has joined #ruby
03:28
<
nofxx >
why do you need windows nowdays anyway? Some game not on steamos?
03:28
bronson has quit [Remote host closed the connection]
03:28
<
pateussy >
i love windowws
03:28
* Nilium
doesn't think this is really important.
03:29
<
pateussy >
for me it is as i might break my hdd
03:29
<
Nilium >
Not in a VM you won't.
03:29
<
pateussy >
not in a vm but in windows i will
03:29
<
pateussy >
in ubuntu i always get system program problem detected error
03:29
<
Nilium >
Probably not.
03:29
fullofca_ has quit [Ping timeout: 268 seconds]
03:30
hxegon has joined #ruby
03:30
<
Nilium >
Either way, just run it in a VM for now and avoid telling people you use Windows 'cause everyone with their "you need to use X as your OS" will come out of the woodwork and it's just annoying after years of hearing it.
03:30
<
Nilium >
Well, hearing and reading it.
03:30
<
Ox0dea >
X is a windowing system.
03:31
lessless has joined #ruby
03:31
* Nilium
sets Ox0dea in a small hole
03:31
<
Ox0dea >
If I fits, I sits.
03:31
Sucks has joined #ruby
03:31
mallu has joined #ruby
03:32
User458764 has joined #ruby
03:32
ensyde_ has joined #ruby
03:33
cpruitt has quit [Quit: cpruitt]
03:34
CloCkWeRX has quit [Ping timeout: 240 seconds]
03:34
_blizzy_ has quit [Ping timeout: 240 seconds]
03:36
_blizzy_ has joined #ruby
03:38
moeabdol has joined #ruby
03:40
fedexo has joined #ruby
03:40
kval has joined #ruby
03:40
kval has quit [Remote host closed the connection]
03:41
emax_ has joined #ruby
03:41
davedev24 has quit []
03:42
<
emax_ >
So I'm trying to build an app where users can register, login, and then view/watch movies on the site. What would be a cost-effective hosting service to use for something like that?
03:42
moeabdol has quit [Ping timeout: 244 seconds]
03:42
sandstrom has quit [Quit: My computer has gone to sleep.]
03:44
mnrmnaugh has quit [Read error: Connection reset by peer]
03:44
sandstrom has joined #ruby
03:44
<
_blizzy_ >
emax_, Heroku is free, but it only runs like 18(?) hours a day. it takes a while to load if the website is "sleeping". there's also DigitalOcean, which is like $5 a month.
03:44
devbug_ has quit [Ping timeout: 248 seconds]
03:44
<
emax_ >
Thanks _blizzy_. Is there a cap on data usage?
03:45
<
_blizzy_ >
emax_, IDK really.
03:46
mnrmnaugh has joined #ruby
03:47
rubie has quit [Remote host closed the connection]
03:49
aclearman037 has joined #ruby
03:50
fullofcaffeine has quit [Remote host closed the connection]
03:50
edwinvdgraaf has joined #ruby
03:50
snguyen has quit [Read error: Connection reset by peer]
03:50
fullofcaffeine has joined #ruby
03:52
bronson has joined #ruby
03:52
gerry__ has joined #ruby
03:53
aclearman037 has quit [Client Quit]
03:54
emax_ has quit [Ping timeout: 252 seconds]
03:54
SenpaiSilver has joined #ruby
03:54
edwinvdgraaf has quit [Ping timeout: 240 seconds]
03:55
fullofcaffeine has quit [Ping timeout: 252 seconds]
03:55
baweaver has joined #ruby
03:55
freerobby has joined #ruby
03:56
htmldrum has joined #ruby
03:59
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
03:59
sandstrom has quit [Quit: My computer has gone to sleep.]
04:00
baweaver has quit [Ping timeout: 250 seconds]
04:00
elifoster has joined #ruby
04:01
sandstrom has joined #ruby
04:01
s00pcan has quit [Ping timeout: 264 seconds]
04:01
htmldrum has quit [Ping timeout: 250 seconds]
04:01
gerry__ has quit [Quit: Lost terminal]
04:02
pawnbox has joined #ruby
04:02
s00pcan has joined #ruby
04:04
dn5 has quit [Ping timeout: 276 seconds]
04:05
braincrash has quit [Quit: bye bye]
04:06
programmerq has quit [Ping timeout: 248 seconds]
04:07
dopie has quit [Quit: Lost terminal]
04:07
pawnbox has quit [Ping timeout: 248 seconds]
04:07
blackmesa has joined #ruby
04:08
aspiers has quit [Ping timeout: 276 seconds]
04:09
woodruffw has quit [Ping timeout: 250 seconds]
04:09
houhouli_ has joined #ruby
04:09
haraoka has joined #ruby
04:12
swedishfish has quit [Ping timeout: 276 seconds]
04:12
houhoulis has quit [Ping timeout: 248 seconds]
04:14
devbug_ has joined #ruby
04:14
blackmesa has quit [Ping timeout: 260 seconds]
04:15
braincrash has joined #ruby
04:16
sandstrom has quit [Quit: My computer has gone to sleep.]
04:16
duncannz has joined #ruby
04:16
barajasfab has joined #ruby
04:17
barajasfab has quit [Read error: Connection reset by peer]
04:18
sandstrom has joined #ruby
04:18
programmerq has joined #ruby
04:20
devbug_ has quit [Ping timeout: 268 seconds]
04:21
Sucks has quit [Remote host closed the connection]
04:23
nerium has quit [Quit: nerium]
04:23
mallu has left #ruby [#ruby]
04:23
mallu has joined #ruby
04:23
Chagel has joined #ruby
04:25
<
mallu >
count = ARGV[0]
04:25
<
mallu >
count_array = [*1..count]
04:25
<
mallu >
I am getting " bad value for range (ArgumentError)"
04:25
LoneHerm_ has quit [Read error: Connection reset by peer]
04:25
<
mallu >
but in irb irb(main):001:0> count = 10
04:25
<
mallu >
irb(main):002:0> array_new = [*1..count]
04:25
<
mallu >
=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
04:26
<
mallu >
so what am I doing wrong?
04:26
poerror has joined #ruby
04:26
<
mozzarella >
maybe count is actually a string? lol
04:26
<
mozzarella >
>> [*1..'2']
04:26
freerobby has quit [Quit: Leaving.]
04:27
jam__ has joined #ruby
04:28
tvon has joined #ruby
04:29
<
mozzarella >
mallu: [*1..count.to_i]
04:30
LoneHermit has joined #ruby
04:30
yqt has quit [Ping timeout: 252 seconds]
04:32
jam__ has quit [Ping timeout: 260 seconds]
04:32
Xiti has joined #ruby
04:33
pawnbox has joined #ruby
04:33
tvon has quit [Ping timeout: 244 seconds]
04:33
sandstrom has quit [Quit: My computer has gone to sleep.]
04:33
armyriad has quit [Ping timeout: 268 seconds]
04:33
treaki_ has joined #ruby
04:34
bronson has quit [Remote host closed the connection]
04:34
sandstrom has joined #ruby
04:36
devbug has quit [Ping timeout: 276 seconds]
04:36
treaki__ has quit [Ping timeout: 250 seconds]
04:37
pawnbox has quit [Ping timeout: 248 seconds]
04:37
rhg135 has joined #ruby
04:40
woodruffw has joined #ruby
04:40
devbug has joined #ruby
04:40
rmulligan has joined #ruby
04:41
ensyde_ has quit [Ping timeout: 244 seconds]
04:43
cpup has quit [Ping timeout: 268 seconds]
04:44
bjpenn has joined #ruby
04:44
woodruffw has quit [Ping timeout: 246 seconds]
04:44
cpup has joined #ruby
04:45
aspiers has joined #ruby
04:45
solocshaw has quit [Ping timeout: 260 seconds]
04:48
stardiviner has quit [Ping timeout: 252 seconds]
04:49
RegulationD has joined #ruby
04:50
sandstrom has quit [Quit: My computer has gone to sleep.]
04:50
woodruffw has joined #ruby
04:50
fexilal has quit [Ping timeout: 244 seconds]
04:50
arescorpio has quit [Quit: Leaving.]
04:51
sandstrom has joined #ruby
04:51
hxegon is now known as hxegon_AFK
04:52
hxegon_AFK is now known as hxegon
04:53
uglybandersnatch has joined #ruby
04:53
rubie has joined #ruby
04:54
RegulationD has quit [Ping timeout: 264 seconds]
04:55
armyriad has joined #ruby
04:55
`tim` has joined #ruby
04:57
moos3 has joined #ruby
04:57
gix has quit [Ping timeout: 276 seconds]
04:57
uglybandersnatch has quit [Ping timeout: 240 seconds]
05:00
poerror has quit [Ping timeout: 264 seconds]
05:00
bry4n_ has joined #ruby
05:01
gix has joined #ruby
05:02
moos3 has quit [Ping timeout: 268 seconds]
05:02
pawnbox has joined #ruby
05:05
SenpaiSilver has quit [Quit: Leaving]
05:05
bry4n_ has quit [Ping timeout: 246 seconds]
05:06
sandstrom has quit [Quit: My computer has gone to sleep.]
05:06
hxegon has quit [Quit: BRB]
05:07
pawnbox has quit [Ping timeout: 244 seconds]
05:07
sandstrom has joined #ruby
05:09
woodruffw has quit [Ping timeout: 248 seconds]
05:10
duckpuppy has joined #ruby
05:10
blackmesa has joined #ruby
05:11
SenpaiSilver has joined #ruby
05:11
nirix_ is now known as nirix
05:13
bronson has joined #ruby
05:15
duckpuppy has quit [Ping timeout: 250 seconds]
05:16
TTilus has quit [Ping timeout: 244 seconds]
05:17
nanoz has quit [Read error: Connection reset by peer]
05:17
basic has joined #ruby
05:17
blackmesa has quit [Ping timeout: 246 seconds]
05:20
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
05:21
edwinvdgraaf has joined #ruby
05:22
jyaworski has quit [Quit: jyaworski]
05:23
sandstrom has quit [Quit: My computer has gone to sleep.]
05:24
sandstrom has joined #ruby
05:25
TTilus has joined #ruby
05:26
edwinvdgraaf has quit [Ping timeout: 264 seconds]
05:26
moeabdol has joined #ruby
05:29
everchange has joined #ruby
05:29
barajasfab has joined #ruby
05:31
everchange has quit [Client Quit]
05:31
jyaworski has joined #ruby
05:31
moeabdol has quit [Ping timeout: 250 seconds]
05:33
pawnbox has joined #ruby
05:35
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
05:37
pawnbox has quit [Ping timeout: 244 seconds]
05:38
jenrzzz has quit [Ping timeout: 264 seconds]
05:39
sandstrom has quit [Quit: My computer has gone to sleep.]
05:40
haraoka has quit [Ping timeout: 244 seconds]
05:41
sandstrom has joined #ruby
05:44
jbrhbr has joined #ruby
05:47
baweaver has joined #ruby
05:51
safe has quit [Read error: Connection reset by peer]
05:51
intrigueD has joined #ruby
05:52
devbug has quit [Ping timeout: 248 seconds]
05:52
Chagel has quit [Ping timeout: 244 seconds]
05:53
Chagel has joined #ruby
05:53
rmulligan has quit [Ping timeout: 268 seconds]
05:53
jenrzzz has joined #ruby
05:55
slv33 has joined #ruby
05:55
slv33 has left #ruby [#ruby]
05:56
eccentric has joined #ruby
05:56
sandstrom has quit [Quit: My computer has gone to sleep.]
05:57
devbug has joined #ruby
05:57
htmldrum has joined #ruby
05:58
sandstrom has joined #ruby
05:58
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
05:58
rlpowell has left #ruby [#ruby]
05:59
CloCkWeRX has joined #ruby
05:59
amincd has joined #ruby
05:59
LoneHermit has quit [Remote host closed the connection]
06:00
krz has joined #ruby
06:00
intrigueD has quit [Remote host closed the connection]
06:00
swein has joined #ruby
06:01
eccentric is now known as afterparty
06:01
bjpenn has quit [Ping timeout: 252 seconds]
06:02
<
amincd >
it evaluates to [nil, nil, 4]. I don't get where the a[1] comes from
06:02
armyriad has quit [Ping timeout: 252 seconds]
06:02
jyaworski has quit [Quit: jyaworski]
06:02
htmldrum has quit [Ping timeout: 276 seconds]
06:02
<
amincd >
doesn't a.call(a, 2) just assign each param to the params in the block?
06:03
blackgoat has joined #ruby
06:03
<
amincd >
ah nevermind, i got it..
06:03
intrigueD has joined #ruby
06:03
<
amincd >
sometimes you just have to talk something out
06:03
CloCkWeRX has quit [Ping timeout: 240 seconds]
06:03
amincd has quit [Client Quit]
06:04
pateussy has quit [Ping timeout: 252 seconds]
06:04
adgtl has joined #ruby
06:04
johnmilton has quit [Remote host closed the connection]
06:05
devbug has quit [Ping timeout: 260 seconds]
06:07
nando293921 has quit [Quit: Lost terminal]
06:07
dikaio has joined #ruby
06:08
swein has quit [Remote host closed the connection]
06:08
intrigueD has quit [Remote host closed the connection]
06:08
bjpenn has joined #ruby
06:10
jbrhbr has quit [Quit: Leaving.]
06:11
User458764 has joined #ruby
06:13
pawnbox has joined #ruby
06:13
sandstrom has quit [Quit: My computer has gone to sleep.]
06:13
blackmesa has joined #ruby
06:14
elifoster has quit [Ping timeout: 264 seconds]
06:14
sandstrom has joined #ruby
06:15
jbrhbr has joined #ruby
06:16
dnewkerk has quit [Quit: dnewkerk]
06:17
vikaton has quit [Quit: Connection closed for inactivity]
06:17
pawnbox has quit [Ping timeout: 246 seconds]
06:18
Xiti has quit [Quit: Xiti]
06:18
CloCkWeRX has joined #ruby
06:19
Macaveli has joined #ruby
06:20
blackmesa has quit [Ping timeout: 248 seconds]
06:20
nando293921 has joined #ruby
06:25
jbrhbr has quit [Quit: Leaving.]
06:26
ElSif has quit [Ping timeout: 246 seconds]
06:26
merida has joined #ruby
06:27
armyriad has joined #ruby
06:27
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
06:27
krz has quit [Ping timeout: 276 seconds]
06:28
jam__ has joined #ruby
06:28
stardiviner has joined #ruby
06:29
jbrhbr has joined #ruby
06:29
jbrhbr has quit [Client Quit]
06:30
sandstrom has quit [Quit: My computer has gone to sleep.]
06:30
tvon has joined #ruby
06:30
nando293921 has quit [Quit: Lost terminal]
06:31
sandstrom has joined #ruby
06:32
robbyoconnor has joined #ruby
06:32
jam__ has quit [Ping timeout: 244 seconds]
06:32
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
06:33
davee_ has joined #ruby
06:33
dikaio has joined #ruby
06:33
rippa has joined #ruby
06:33
adgtl has quit [Remote host closed the connection]
06:34
tvon has quit [Ping timeout: 248 seconds]
06:39
elifoster has joined #ruby
06:40
robbyoconnor has quit [Quit: Konversation terminated!]
06:40
y2mq37 has quit [Ping timeout: 268 seconds]
06:41
fedexo has quit [Ping timeout: 250 seconds]
06:42
govg has joined #ruby
06:42
jbrhbr has joined #ruby
06:42
govg is now known as Guest27423
06:43
pawnbox has joined #ruby
06:45
arlek has quit [Read error: Connection reset by peer]
06:45
adgtl has joined #ruby
06:45
moos3 has joined #ruby
06:46
merida has quit [Ping timeout: 260 seconds]
06:46
sandstrom has quit [Quit: My computer has gone to sleep.]
06:47
pawnbox has quit [Ping timeout: 244 seconds]
06:48
LoneHerm_ has joined #ruby
06:48
sandstrom has joined #ruby
06:50
moos3 has quit [Ping timeout: 244 seconds]
06:56
adgtl_ has joined #ruby
06:56
adgtl has quit [Read error: Connection reset by peer]
06:56
adgtl_ has quit [Remote host closed the connection]
06:56
poerror has joined #ruby
06:57
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
06:57
Eccentric2 has joined #ruby
06:59
afterparty has quit [Ping timeout: 260 seconds]
06:59
djbkd has quit [Quit: Leaving...]
06:59
adgtl has joined #ruby
07:00
Mr0rris0 has quit [Read error: Connection reset by peer]
07:00
jbrhbr has quit [Quit: Leaving.]
07:01
tvw has joined #ruby
07:01
bry4n_ has joined #ruby
07:02
quakephil_ has quit [Remote host closed the connection]
07:02
quakephil has joined #ruby
07:03
sandstrom has quit [Quit: My computer has gone to sleep.]
07:05
sandstrom has joined #ruby
07:05
bry4n_ has quit [Ping timeout: 250 seconds]
07:06
elifoster has quit [Ping timeout: 276 seconds]
07:07
jbrhbr has joined #ruby
07:11
phatypus has joined #ruby
07:11
duckpuppy has joined #ruby
07:13
Mr0rris0 has joined #ruby
07:13
minimalism has quit [Quit: minimalism]
07:14
shinnya has joined #ruby
07:14
moeabdol has joined #ruby
07:15
stien has joined #ruby
07:15
adgtl has quit [Remote host closed the connection]
07:15
duckpuppy has quit [Ping timeout: 244 seconds]
07:16
chipotle has quit [Quit: cheerio]
07:16
pawnbox has joined #ruby
07:16
blackmesa has joined #ruby
07:18
clorisu has joined #ruby
07:18
<
clorisu >
is there a rails chat?
07:18
Channel6 has quit [Read error: Connection reset by peer]
07:18
bjpenn has quit [Ping timeout: 268 seconds]
07:18
clorisu has left #ruby ["Leaving"]
07:19
moeabdol has quit [Ping timeout: 276 seconds]
07:19
hk238 has joined #ruby
07:19
triangles has quit [Quit: Leaving]
07:19
sandstrom has quit [Quit: My computer has gone to sleep.]
07:21
davee_ has quit [Remote host closed the connection]
07:21
sandstrom has joined #ruby
07:21
hxegon has joined #ruby
07:21
opencard has joined #ruby
07:21
hk238 has quit [Client Quit]
07:22
Ishido has joined #ruby
07:22
hk238 has joined #ruby
07:22
opencard has quit [Quit: opencard]
07:23
Eccentric2 has quit [Read error: Connection reset by peer]
07:23
blackmesa has quit [Ping timeout: 244 seconds]
07:23
hk238 has quit [Client Quit]
07:23
rubie has quit [Remote host closed the connection]
07:24
hk238 has joined #ruby
07:24
<
Ox0dea >
mallu: Give this a go: snaps.snapshots[0].tags.each_with_object({}) { |t, h| h[t.key] = t.value }
07:24
<
mozzarella >
mallu: snaps.snapshots[0].tags.find { |t| t.key == 'Environment' }.value
07:25
<
mallu >
mozzarella: thank you
07:26
<
mallu >
Ox0dea: thanks but that gives not just environment value
07:26
ponga has joined #ruby
07:28
<
Ox0dea >
mallu: Sure, but here's hoping you need a more general approach at some point. :)
07:28
<
mallu >
Ox0dea: yes I do and thank you very much
07:28
<
Ox0dea >
Happy to help.
07:29
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
07:29
bjpenn has joined #ruby
07:29
adgtl has joined #ruby
07:30
poerror has quit [Ping timeout: 250 seconds]
07:30
LoneHerm_ has quit [Read error: Connection reset by peer]
07:32
jenrzzz has quit [Ping timeout: 248 seconds]
07:33
guest19083 has joined #ruby
07:34
guest19083 has left #ruby [#ruby]
07:34
LoneHerm_ has joined #ruby
07:35
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:35
sauvin has quit [Read error: Connection reset by peer]
07:36
adgtl has quit [Remote host closed the connection]
07:36
sandstrom has quit [Quit: My computer has gone to sleep.]
07:36
tvon has joined #ruby
07:37
jbrhbr has quit [Quit: Leaving.]
07:37
LoneHerm_ has quit [Remote host closed the connection]
07:37
sandstrom has joined #ruby
07:38
kirillzh has joined #ruby
07:38
sauvin has joined #ruby
07:38
ariel_17 has quit [Ping timeout: 268 seconds]
07:39
User458764 has joined #ruby
07:42
phatypus has quit [Quit: .>]
07:44
<
mallu >
some of them doesn't have Environments
07:44
<
Ox0dea >
mallu: desc = n.tags.find { |t| t.key == 'Enviornment' }&.value
07:44
<
Ox0dea >
Assuming you're on 2.3+.
07:45
j3r0 has joined #ruby
07:45
<
Ox0dea >
mallu: In that case, you'll have to say something like `if foo = n.tags.find { |t| t.key == 'Enviornment' }; desc = foo.value; end`.
07:46
blackgoat has quit [Quit: WeeChat 1.4]
07:47
<
mallu >
Ox0dea: the unless condition I have works too though.. how is this better than unless? Not arguing .. just trying to understand
07:48
<
toretore >
yours doesn't work
07:48
<
Ox0dea >
mallu: #each returns the receiver; your code isn't doing what you think it is.
07:49
<
Ox0dea >
A "fix" would be to s/each/find/, but then why repeat yourself? That's the question my suggestion answers with "you shouldn't".
07:49
sauvin has quit [Remote host closed the connection]
07:50
sauvin has joined #ruby
07:50
skade has joined #ruby
07:50
yardenbar has joined #ruby
07:50
<
Ox0dea >
Not sure what to make of the "..", but I'd be happy to address any confusion.
07:51
lxsameer has joined #ruby
07:52
<
toretore >
desc = n.tags.inject(nil){|v,t| t.key == 'Environment' ? t.value : v }
07:53
Abrin_AWAY has quit [Ping timeout: 276 seconds]
07:53
<
mallu >
Ox0dea: .. was 'thinking' but I think I got it
07:53
sandstrom has quit [Quit: My computer has gone to sleep.]
07:53
<
mallu >
thank you both Ox0dea toretore
07:53
<
Ox0dea >
Sure thing.
07:54
<
Ox0dea >
Some folks advise against assignment in conditionals, but it's often a perfectly reasonable thing to do.
07:54
sandstrom has joined #ruby
07:55
skade has quit [Ping timeout: 252 seconds]
07:58
moeabdol has joined #ruby
07:58
htmldrum has joined #ruby
07:59
vikas027 has joined #ruby
08:03
htmldrum has quit [Ping timeout: 246 seconds]
08:03
barajasfab has quit [Remote host closed the connection]
08:03
armyriad has quit [Ping timeout: 244 seconds]
08:03
moeabdol has quit [Ping timeout: 248 seconds]
08:03
armyriad has joined #ruby
08:09
sandstrom has quit [Quit: My computer has gone to sleep.]
08:09
r3nrut has joined #ruby
08:09
ohaibbq has quit [Read error: Connection reset by peer]
08:10
Guest13710 has joined #ruby
08:10
ohaibbq has joined #ruby
08:10
sandstrom has joined #ruby
08:14
vdamewood has quit [Quit: Life beckons.]
08:15
dionysus69 has joined #ruby
08:16
hxegon has quit [Quit: BRB]
08:17
gbgdev has quit [Remote host closed the connection]
08:18
Norrin has joined #ruby
08:19
DmitryBochkarev has joined #ruby
08:19
Don_John has quit [Read error: Connection reset by peer]
08:19
blackmesa has joined #ruby
08:25
the_drow has joined #ruby
08:26
blackmesa has quit [Ping timeout: 248 seconds]
08:26
sandstrom has quit [Quit: My computer has gone to sleep.]
08:26
thevaliantx has joined #ruby
08:27
poerror has joined #ruby
08:27
sandstrom has joined #ruby
08:28
robbyoconnor has joined #ruby
08:29
jam__ has joined #ruby
08:29
nettoweb has joined #ruby
08:29
ur5us has joined #ruby
08:30
<
bjpenn >
where can i figure out what "describe" does
08:31
mistermo_ has joined #ruby
08:33
nettoweb has quit [Client Quit]
08:33
jam__ has quit [Ping timeout: 244 seconds]
08:33
skade has joined #ruby
08:33
moos3 has joined #ruby
08:34
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
08:35
flak has joined #ruby
08:36
bricker_ has joined #ruby
08:36
Keltia_ has joined #ruby
08:36
bjpenn_ has joined #ruby
08:37
kedare1 has joined #ruby
08:37
Fire-Dragon-DoL- has joined #ruby
08:38
skakri` has joined #ruby
08:38
danjack_ has joined #ruby
08:38
ljarvis_ has joined #ruby
08:38
mgorbach_ has joined #ruby
08:38
jlyndon_ has joined #ruby
08:38
moos3 has quit [Ping timeout: 244 seconds]
08:38
jokke1 has joined #ruby
08:38
Fire-Dragon-DoL has quit [Ping timeout: 246 seconds]
08:38
jlyndon has quit [Ping timeout: 246 seconds]
08:38
shelling__ has quit [Ping timeout: 246 seconds]
08:38
yonatankoren has quit [Ping timeout: 246 seconds]
08:38
bestie has joined #ruby
08:38
bestie has quit [Ping timeout: 246 seconds]
08:38
atom3 has joined #ruby
08:38
mgorbach has quit [Ping timeout: 246 seconds]
08:38
bjpenn has quit [Read error: Connection reset by peer]
08:38
Fire-Dragon-DoL- is now known as Fire-Dragon-DoL
08:38
Asher has quit [Read error: Connection reset by peer]
08:38
Keltia has quit [Read error: Connection reset by peer]
08:38
kedare has quit [Read error: Connection reset by peer]
08:38
jpinnix_______ has quit [Ping timeout: 246 seconds]
08:38
skakri has quit [Ping timeout: 246 seconds]
08:38
rippa has quit [Ping timeout: 246 seconds]
08:38
jokke has quit [Ping timeout: 246 seconds]
08:38
danjack has quit [Ping timeout: 246 seconds]
08:38
ljarvis has quit [Ping timeout: 246 seconds]
08:38
shelling__ has joined #ruby
08:38
bricker has quit [Read error: Connection reset by peer]
08:38
atom3_ has quit [Ping timeout: 246 seconds]
08:38
linduxed has quit [Ping timeout: 246 seconds]
08:38
robbyoconnor has quit [Write error: Connection reset by peer]
08:38
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
08:38
bestie has quit [Changing host]
08:38
bestie has joined #ruby
08:38
shelling__ has quit [Changing host]
08:38
shelling__ has joined #ruby
08:39
shevy has quit [Ping timeout: 246 seconds]
08:39
ghormoon has quit [Ping timeout: 246 seconds]
08:39
dellavg has quit [Ping timeout: 246 seconds]
08:39
robbyoconnor has joined #ruby
08:39
ghormoon has joined #ruby
08:39
mgorbach_ is now known as mgorbach
08:39
shevy has joined #ruby
08:39
artmann has quit [Ping timeout: 246 seconds]
08:39
jpinnix_______ has joined #ruby
08:39
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
08:39
jlyndon_ is now known as jlyndon
08:40
Asher has joined #ruby
08:40
artmann has joined #ruby
08:40
krz has joined #ruby
08:40
dellavg has joined #ruby
08:40
crameth has joined #ruby
08:41
linduxed has joined #ruby
08:41
red_horned_rihno has joined #ruby
08:42
sandstrom has quit [Quit: My computer has gone to sleep.]
08:44
sandstrom has joined #ruby
08:45
j3r0 has quit [Quit: Leaving]
08:45
phatypus has joined #ruby
08:45
helper has joined #ruby
08:46
skade has quit [Quit: Computer has gone to sleep.]
08:47
davee_ has joined #ruby
08:50
RegulationD has joined #ruby
08:53
DmitryBochkarev has joined #ruby
08:54
firstdayonthejob has joined #ruby
08:55
uglybandersnatch has joined #ruby
08:56
RegulationD has quit [Ping timeout: 276 seconds]
08:56
DmitryBochkarev has quit [Client Quit]
08:56
DmitryBochkarev has joined #ruby
08:57
lessless has joined #ruby
08:57
edwinvdgraaf has joined #ruby
08:59
Guest27423 has quit [Quit: leaving]
08:59
sandstrom has quit [Quit: My computer has gone to sleep.]
08:59
uglybandersnatch has quit [Ping timeout: 248 seconds]
09:00
govg has joined #ruby
09:00
govg is now known as Guest68598
09:01
sandstrom has joined #ruby
09:01
poerror has quit [Ping timeout: 260 seconds]
09:02
hgl has joined #ruby
09:02
bry4n_ has joined #ruby
09:02
edwinvdgraaf has quit [Ping timeout: 248 seconds]
09:03
Guest68598 has quit [Client Quit]
09:04
mistermo_ has quit [Remote host closed the connection]
09:04
govg_ has joined #ruby
09:04
duncannz has quit [Quit: Leaving]
09:06
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
09:06
bry4n_ has quit [Ping timeout: 250 seconds]
09:08
govg_ has quit [Client Quit]
09:11
duckpuppy has joined #ruby
09:12
govg has joined #ruby
09:12
govg is now known as Guest44372
09:13
krz has quit [Ping timeout: 260 seconds]
09:13
nanoz has joined #ruby
09:13
hinbody has quit [Ping timeout: 250 seconds]
09:14
ziyadb has joined #ruby
09:15
Dimik has quit [Ping timeout: 276 seconds]
09:16
duckpuppy has quit [Ping timeout: 244 seconds]
09:16
sandstrom has quit [Quit: My computer has gone to sleep.]
09:17
DoubleMalt has joined #ruby
09:17
mostlybadfly has quit [Quit: Connection closed for inactivity]
09:17
sandstrom has joined #ruby
09:19
ledestin has joined #ruby
09:19
devbug has joined #ruby
09:23
blackmesa has joined #ruby
09:23
devbug has quit [Read error: No route to host]
09:23
Guest44372 has quit [Quit: leaving]
09:24
intrigueD has joined #ruby
09:25
devbug has joined #ruby
09:25
govg_ has joined #ruby
09:26
helper has quit [Ping timeout: 240 seconds]
09:27
toretore has quit [Ping timeout: 276 seconds]
09:28
helper has joined #ruby
09:28
Chagel has quit [Ping timeout: 252 seconds]
09:29
phatypus has quit [Quit: .>]
09:29
govg_ is now known as govg
09:30
jenrzzz has joined #ruby
09:30
poerror has joined #ruby
09:32
devbug has quit [Read error: Connection reset by peer]
09:33
sandstrom has quit [Quit: My computer has gone to sleep.]
09:33
roshanavand has joined #ruby
09:33
JohnBat26 has joined #ruby
09:34
sandstrom has joined #ruby
09:34
devbug has joined #ruby
09:35
jenrzzz has quit [Ping timeout: 248 seconds]
09:40
krz has joined #ruby
09:42
govg has quit [Quit: leaving]
09:42
devbug has quit [Read error: Connection reset by peer]
09:43
govg has joined #ruby
09:44
devbug has joined #ruby
09:45
pawnbox has quit [Remote host closed the connection]
09:46
cpup has quit [Ping timeout: 268 seconds]
09:47
infra-red has joined #ruby
09:47
mistermo_ has joined #ruby
09:48
cpup has joined #ruby
09:49
govg has quit [Quit: leaving]
09:49
sandstrom has quit [Quit: My computer has gone to sleep.]
09:50
govg has joined #ruby
09:50
n008f4g_ has joined #ruby
09:51
sandstrom has joined #ruby
09:53
pawnbox has joined #ruby
09:54
Chagel has joined #ruby
09:54
uglybandersnatch has joined #ruby
09:57
devbug has quit [Ping timeout: 268 seconds]
09:58
mistermo_ has quit [Remote host closed the connection]
09:58
shunya has joined #ruby
09:58
moos3 has joined #ruby
09:59
htmldrum has joined #ruby
09:59
devbug has joined #ruby
10:00
Cork has quit [Quit: .]
10:01
Neo_ has joined #ruby
10:01
User458764 has joined #ruby
10:02
hgl has quit [Read error: Connection reset by peer]
10:03
mdw has joined #ruby
10:03
moos3 has quit [Ping timeout: 260 seconds]
10:04
htmldrum has quit [Ping timeout: 246 seconds]
10:05
devbug has quit [Read error: Connection reset by peer]
10:05
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
10:06
zapata has quit [Ping timeout: 260 seconds]
10:06
sandstrom has quit [Quit: My computer has gone to sleep.]
10:06
Mia has joined #ruby
10:07
Guest13710 has quit [Ping timeout: 276 seconds]
10:07
devbug has joined #ruby
10:07
DmitryBochkarev has joined #ruby
10:07
shunya has joined #ruby
10:07
sandstrom has joined #ruby
10:08
Chagel has quit [Ping timeout: 252 seconds]
10:08
edwinvdgraaf has joined #ruby
10:08
shunya has quit [Client Quit]
10:09
ohaibbq has quit [Read error: Connection reset by peer]
10:09
DmitryBochkarev has quit [Client Quit]
10:09
ohaibbq has joined #ruby
10:11
hgl has joined #ruby
10:11
Cork has joined #ruby
10:12
Mon_Ouie has joined #ruby
10:13
robbyoconnor has quit [Read error: Connection reset by peer]
10:14
thevaliantx has quit [Ping timeout: 264 seconds]
10:15
baweaver has quit [Remote host closed the connection]
10:15
helper has quit [Remote host closed the connection]
10:16
mistermocha has quit [Remote host closed the connection]
10:17
devbug has quit [Read error: Connection reset by peer]
10:18
zapata has joined #ruby
10:18
robbyoconnor has joined #ruby
10:21
darkf has quit [Quit: Leaving]
10:21
ur5us has quit [Remote host closed the connection]
10:21
thevaliantx has joined #ruby
10:23
sandstrom has quit [Quit: My computer has gone to sleep.]
10:24
sandstrom has joined #ruby
10:26
poerror has quit [Ping timeout: 264 seconds]
10:29
mdw has quit [Ping timeout: 276 seconds]
10:29
jam___ has joined #ruby
10:31
mdw has joined #ruby
10:34
dgncn has quit [Excess Flood]
10:34
jam___ has quit [Ping timeout: 248 seconds]
10:35
the_drow has quit [Quit: This computer has gone to sleep]
10:36
dgncn has joined #ruby
10:38
thevaliantx has quit [Quit: Leaving]
10:39
kron4eg has joined #ruby
10:39
sandstrom has quit [Quit: My computer has gone to sleep.]
10:41
Chagel has joined #ruby
10:41
achamian has joined #ruby
10:42
bjpenn_ has quit [Ping timeout: 244 seconds]
10:42
sandstrom has joined #ruby
10:44
n008f4g_ has quit [Ping timeout: 240 seconds]
10:46
bkxd has joined #ruby
10:47
bkxd has quit [Client Quit]
10:47
bkxd has joined #ruby
10:47
n008f4g_ has joined #ruby
10:48
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
10:49
_blizzy_ has quit [Quit: Leaving]
10:49
Eaven has joined #ruby
10:49
houhouli_ has quit [Remote host closed the connection]
10:50
roshanavand has quit [Quit: This computer has gone to sleep]
10:50
Neo_ has quit [Ping timeout: 252 seconds]
10:51
hgl has quit [Ping timeout: 248 seconds]
10:52
bjpenn has joined #ruby
10:53
roshanavand has joined #ruby
10:53
Tempesta_ has quit [Quit: See ya!]
10:53
Tempesta has joined #ruby
10:56
htmldrum has joined #ruby
10:56
sepp2k has joined #ruby
10:58
Tempesta has quit [Client Quit]
10:58
Tempesta has joined #ruby
10:59
kron4eg has quit [Quit: quit]
10:59
uglybandersnatch has quit [Ping timeout: 260 seconds]
10:59
hgl has joined #ruby
11:00
DoubleMalt has quit [Remote host closed the connection]
11:00
last_staff has joined #ruby
11:00
woodruffw has joined #ruby
11:02
htmldrum has quit [Ping timeout: 276 seconds]
11:03
krz has quit [Ping timeout: 244 seconds]
11:05
hgl has quit [Max SendQ exceeded]
11:06
hgl has joined #ruby
11:08
julieeharshaw has quit [Ping timeout: 240 seconds]
11:08
hgl has quit [Client Quit]
11:08
nerium has joined #ruby
11:08
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
11:08
roshanavand has quit [Quit: This computer has gone to sleep]
11:10
the_drow has joined #ruby
11:11
julieeharshaw has joined #ruby
11:12
duckpuppy has joined #ruby
11:13
jbrhbr has joined #ruby
11:13
Xeago has joined #ruby
11:13
roshanavand has joined #ruby
11:15
nofxx has quit [Ping timeout: 244 seconds]
11:15
baweaver has joined #ruby
11:16
roshanavand has quit [Client Quit]
11:16
spider-mario has joined #ruby
11:17
mistermocha has joined #ruby
11:17
duckpuppy has quit [Ping timeout: 252 seconds]
11:20
baweaver has quit [Ping timeout: 248 seconds]
11:21
poerror has joined #ruby
11:22
User458764 has joined #ruby
11:22
mistermocha has quit [Ping timeout: 250 seconds]
11:23
abhiii5459_ has joined #ruby
11:24
moeabdol has joined #ruby
11:26
poerror has quit [Ping timeout: 252 seconds]
11:27
nwhirschfeld has quit [Read error: Connection reset by peer]
11:28
intrigueD has quit [Remote host closed the connection]
11:28
dionysus69 has quit [Ping timeout: 240 seconds]
11:30
n008f4g_ has quit [Ping timeout: 264 seconds]
11:30
j2k has quit [Quit: bai]
11:30
poerror has joined #ruby
11:32
gregf has joined #ruby
11:34
j2k has joined #ruby
11:36
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
11:39
pawnbox_ has joined #ruby
11:42
pawnbox has quit [Ping timeout: 268 seconds]
11:44
htmldrum has joined #ruby
11:44
Chagel has quit [Ping timeout: 240 seconds]
11:45
n008f4g_ has joined #ruby
11:46
moos3 has joined #ruby
11:48
mary5030 has joined #ruby
11:50
robbyoconnor has quit [Ping timeout: 264 seconds]
11:51
steffkes has joined #ruby
11:51
steffkes has joined #ruby
11:51
moos3 has quit [Ping timeout: 244 seconds]
11:52
lxsameer has quit [Ping timeout: 264 seconds]
11:52
nanoz has quit [Ping timeout: 244 seconds]
11:53
mary5030 has quit [Ping timeout: 250 seconds]
11:54
red_horned_rihno has quit [Read error: Connection reset by peer]
11:55
red_horned_rihno has joined #ruby
11:56
Chagel has joined #ruby
11:57
nwhirschfeld has joined #ruby
11:58
pawnbox_ has quit [Remote host closed the connection]
11:58
pawnbox has joined #ruby
12:00
htmldrum has quit [Ping timeout: 240 seconds]
12:00
bronson has quit [Remote host closed the connection]
12:01
bjpenn has quit [Ping timeout: 250 seconds]
12:04
sonOfRa has quit [Quit: Bye!]
12:05
sonOfRa has joined #ruby
12:05
ruby-lang049 has joined #ruby
12:07
ruby-lang049 has quit [Client Quit]
12:07
ruby-lang796 has joined #ruby
12:07
rooose has quit [Ping timeout: 244 seconds]
12:08
moeabdol has quit [Read error: Connection reset by peer]
12:09
moeabdol1 has joined #ruby
12:10
steffkes has quit [Ping timeout: 252 seconds]
12:12
ruby-lang796 has quit [Ping timeout: 252 seconds]
12:12
kirun has joined #ruby
12:15
rdark has joined #ruby
12:15
sonOfRa has quit [Quit: Bye!]
12:15
sonOfRa has joined #ruby
12:16
y2mq37 has joined #ruby
12:17
mdw has quit [Ping timeout: 248 seconds]
12:19
mdw has joined #ruby
12:20
creat has quit [Changing host]
12:20
creat has joined #ruby
12:21
<
shevy >
it is so quiet here on Sundays
12:27
davee_ has quit [Ping timeout: 276 seconds]
12:27
steffkes has joined #ruby
12:27
Xeago has quit [Remote host closed the connection]
12:28
Xeago has joined #ruby
12:28
Xeago has quit [Remote host closed the connection]
12:30
jam__ has joined #ruby
12:32
sdothum has joined #ruby
12:33
<
Zarthus >
shevy: irc in general tends to be dead on sundays
12:34
jenrzzz has joined #ruby
12:34
Puffball has quit [Ping timeout: 244 seconds]
12:34
steffkes has quit [Read error: Connection reset by peer]
12:35
jam__ has quit [Ping timeout: 260 seconds]
12:36
yeticry has joined #ruby
12:36
sesquipedalian has quit [Ping timeout: 244 seconds]
12:38
jenrzzz has quit [Ping timeout: 244 seconds]
12:39
skweek has joined #ruby
12:45
Aviio has joined #ruby
12:47
Aviio has left #ruby [#ruby]
12:50
rippa has joined #ruby
12:50
steffkes has joined #ruby
12:51
IrishGringo has joined #ruby
12:51
moeabdol1 has quit [Quit: WeeChat 1.4]
12:52
RegulationD has joined #ruby
12:53
DoubleMalt has joined #ruby
12:54
mdw has quit [Ping timeout: 250 seconds]
12:54
roshanavand has joined #ruby
12:54
biberu has joined #ruby
12:55
bricker_ has quit [Ping timeout: 276 seconds]
12:55
govg has quit [Quit: leaving]
12:56
FooMunki has joined #ruby
12:56
martinb has joined #ruby
12:56
gaf_ has quit [Ping timeout: 276 seconds]
12:57
RegulationD has quit [Ping timeout: 276 seconds]
12:57
nerium has quit [Quit: nerium]
12:59
FooMunki has quit [Read error: Connection reset by peer]
12:59
Narzew has joined #ruby
12:59
synthroid has joined #ruby
13:00
yardenbar has quit [Ping timeout: 268 seconds]
13:01
bronson has joined #ruby
13:02
gaf_ has joined #ruby
13:03
`tim` has joined #ruby
13:03
`tim` has quit [Client Quit]
13:03
bry4n_ has joined #ruby
13:04
sesquipedalian has joined #ruby
13:05
Musashi007 has joined #ruby
13:05
nerium has joined #ruby
13:06
ejdzes has joined #ruby
13:06
bkxd has quit [Ping timeout: 244 seconds]
13:06
bronson has quit [Ping timeout: 252 seconds]
13:07
neversleepz has joined #ruby
13:07
Musashi007 has quit [Client Quit]
13:07
martinb has quit [Remote host closed the connection]
13:08
bry4n_ has quit [Ping timeout: 248 seconds]
13:08
User458764 has joined #ruby
13:10
krz has joined #ruby
13:13
duckpuppy has joined #ruby
13:15
TomyLobo has joined #ruby
13:15
codecop has joined #ruby
13:15
skweek has quit [Ping timeout: 260 seconds]
13:16
krz has quit [Ping timeout: 246 seconds]
13:16
baweaver has joined #ruby
13:17
roshanavand has quit [Quit: This computer has gone to sleep]
13:17
agit0 has joined #ruby
13:17
neversleepz has quit [Ping timeout: 260 seconds]
13:17
duckpuppy has quit [Ping timeout: 248 seconds]
13:17
Prominent has joined #ruby
13:18
reaVer has quit [Remote host closed the connection]
13:19
<
apeiros >
it's all on slack now
13:20
roshanavand has joined #ruby
13:21
Rinalds has joined #ruby
13:22
crameth_ has joined #ruby
13:22
baweaver has quit [Ping timeout: 250 seconds]
13:23
crameth has quit [Ping timeout: 244 seconds]
13:25
Prominent has quit [Ping timeout: 268 seconds]
13:27
blackmesa has quit [Ping timeout: 276 seconds]
13:28
reaVer has joined #ruby
13:28
aryaching has joined #ruby
13:29
n008f4g_ has quit [Ping timeout: 264 seconds]
13:29
neversleepz has joined #ruby
13:29
ropeney has joined #ruby
13:29
Prominent has joined #ruby
13:30
cpup has quit [Ping timeout: 244 seconds]
13:30
cpup has joined #ruby
13:30
lxsameer has joined #ruby
13:31
ropeney has quit [Client Quit]
13:31
adgtl has joined #ruby
13:31
adgtl has joined #ruby
13:31
adgtl has quit [Remote host closed the connection]
13:33
tomphp has joined #ruby
13:33
Prominent_ has joined #ruby
13:33
adgtl has joined #ruby
13:34
Prominent has quit [Ping timeout: 240 seconds]
13:34
moos3 has joined #ruby
13:35
jenrzzz has joined #ruby
13:36
sandstrom has quit [Quit: My computer has gone to sleep.]
13:37
sandstrom has joined #ruby
13:37
Omni_ has quit [Ping timeout: 276 seconds]
13:38
r3nrut has quit [Read error: Connection reset by peer]
13:38
Snowy has joined #ruby
13:38
r3nrut has joined #ruby
13:39
jenrzzz has quit [Ping timeout: 244 seconds]
13:40
moos3 has quit [Ping timeout: 276 seconds]
13:40
IrishGringo has quit [Ping timeout: 250 seconds]
13:40
roshanavand has quit [Quit: This computer has gone to sleep]
13:41
poerror has quit [Ping timeout: 244 seconds]
13:41
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:42
moos3 has joined #ruby
13:44
Faris has joined #ruby
13:44
tvon has quit [Remote host closed the connection]
13:45
LoneHermit has joined #ruby
13:45
tvon has joined #ruby
13:46
tvon has quit [Remote host closed the connection]
13:46
aryaching_ has joined #ruby
13:46
tvon has joined #ruby
13:47
moos3 has quit [Ping timeout: 248 seconds]
13:47
aryaching has quit [Ping timeout: 248 seconds]
13:48
DmitryBochkarev has joined #ruby
13:49
roshanavand has joined #ruby
13:50
LoneHermit has quit [Ping timeout: 252 seconds]
13:50
blackmesa has joined #ruby
13:52
sandstrom has quit [Quit: My computer has gone to sleep.]
13:53
fexilal has joined #ruby
13:54
sandstrom has joined #ruby
13:56
Snowy has quit [Remote host closed the connection]
14:00
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
14:01
chipotle has joined #ruby
14:02
neversleepz has joined #ruby
14:02
IrishGringo has joined #ruby
14:02
lxsameer has quit [Ping timeout: 276 seconds]
14:03
rdark has quit [Ping timeout: 276 seconds]
14:04
aryaching has joined #ruby
14:06
aryaching_ has quit [Ping timeout: 276 seconds]
14:07
idle_task has joined #ruby
14:07
symm- has quit [Ping timeout: 252 seconds]
14:08
idletask has quit [Disconnected by services]
14:08
idle_task is now known as idletask
14:09
sandstrom has quit [Quit: My computer has gone to sleep.]
14:10
sandstrom has joined #ruby
14:11
kfpratt has quit [Remote host closed the connection]
14:13
mdw has joined #ruby
14:14
Snowy has joined #ruby
14:14
tvon has quit [Remote host closed the connection]
14:15
tvon has joined #ruby
14:18
freerobby has joined #ruby
14:18
Chagel has quit [Ping timeout: 252 seconds]
14:19
srkkkadnn has joined #ruby
14:19
tvon has quit [Ping timeout: 246 seconds]
14:20
Chagel has joined #ruby
14:21
Eaven has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:22
<
Mon_Ouie >
&ri Array#map
14:22
fexilal has quit [Read error: Connection reset by peer]
14:23
<
Mon_Ouie >
Well, you don't have an array, but it's still Enumerable#map
14:24
<
srkkkadnn >
Mon_Ouie: what you mean by "&ri Array#map"
14:25
<
Mon_Ouie >
Look at the link that `derpy (which is a bot) posted after I said that
14:25
chipotle has quit [Quit: cheerio]
14:26
neversleepz has quit [Ping timeout: 248 seconds]
14:26
aryaching has quit [Ping timeout: 250 seconds]
14:26
aryaching_ has joined #ruby
14:26
<
Papierkorb >
Mon_Ouie, srkkkadnn, at least rubocop will complain when you do "10.times.map", and suggest you to use Array.new(10){} instead
14:26
<
Papierkorb >
>> Array.new(10){|i| i * 2}
14:27
<
Papierkorb >
But I like the x.times.map one more too.
14:27
User458764 has joined #ruby
14:27
<
srkkkadnn >
Mon_Ouie: ok, I guess I got it, or correct me if I'm wrong.
14:28
<
srkkkadnn >
We should use map! and can change the looping-array(enum) itself ..
14:29
<
srkkkadnn >
but map conceptually should return same len(input) == len(output) .. so, if we want to use it differently then use reduce() ?
14:29
<
Papierkorb >
Prefer #map (non-bang version) over #map! (bang-version)
14:29
<
Mon_Ouie >
That doesn't right. Can you show what that would look like in actual code?
14:29
<
Mon_Ouie >
(You can't do 10.times.map! { … })
14:30
<
srkkkadnn >
hmm .. you right.
14:30
<
srkkkadnn >
but it could be done with Array.new(10){} .. 10.times was just meant to loop.
14:31
<
srkkkadnn >
Since most of the time, we write functions which does something(loop) and then return some result ..
14:31
jam__ has joined #ruby
14:31
<
srkkkadnn >
I'm just looking, how this could be written elegantly.
14:31
<
Mon_Ouie >
Then see the example Papierkorb wrote above
14:33
aryaching_ has quit [Ping timeout: 260 seconds]
14:34
aryaching has joined #ruby
14:35
<
srkkkadnn >
Papierkorb: thanks for the example.
14:35
<
srkkkadnn >
it's neat.
14:35
jam__ has quit [Ping timeout: 244 seconds]
14:35
jenrzzz has joined #ruby
14:36
<
srkkkadnn >
At times, I've to return vars like task.
14:36
<
Mon_Ouie >
tasks = Array.new(10) { … }
14:37
<
Mon_Ouie >
The call to Array.new replaces the whole loop
14:37
<
Mon_Ouie >
Oh wait, misread that
14:37
<
Papierkorb >
Or "tasks += Array.new(...){..}" if you want to append.
14:37
<
Mon_Ouie >
I would use Array#flat_map
14:37
<
Papierkorb >
srkkkadnn: Also, prefer do .. end for multiline blocks and {...} for blocks which end on the same line
14:37
poerror has joined #ruby
14:38
<
Papierkorb >
Oh right Mon_Ouie, #flat_map is much better for this
14:38
tvon has joined #ruby
14:38
<
srkkkadnn >
Papierkorb: multiline point taken.
14:38
<
srkkkadnn >
and I'm reading about flat_map now.
14:38
<
shevy >
what's with this mat_flap here
14:39
Prominent_ has quit [Ping timeout: 260 seconds]
14:39
<
Papierkorb >
srkkkadnn: Also, I'd actually refactor that method to have a (private?) method which processes only one rule, which I then call in the rules.each block. That forces you to only think about this single item, because most likely you don't actually care that there are other rules in that block
14:40
bricker has joined #ruby
14:40
jenrzzz has quit [Ping timeout: 240 seconds]
14:40
<
Papierkorb >
Probably not for a one-liner, but likely for 3+ liners
14:42
<
srkkkadnn >
Papierkorb: certainly that would be better .. but as you said - not for 1-liner and it's 1-liner. Secondly .. this will placed at compute intensive-place, so want to optimize and putting a function call will add context switch(stack)
14:43
<
srkkkadnn >
how flat_map would be helpful .. we don't want to flatten anything here.
14:43
<
Papierkorb >
Why not? Have you benchmarked it srkkkadnn?
14:43
<
Papierkorb >
srkkkadnn: And what is the "compute-intensive" part?
14:44
<
srkkkadnn >
Papierkorb: pardon, actually I've not benchmarked .. it's all theoretical.
14:44
<
Papierkorb >
The 'benchmark' library, part of the standard distribution, can help you
14:44
<
srkkkadnn >
I'm on it.
14:44
<
srkkkadnn >
and by compute-intensive I meant, this block will be called for every DB-transaction.
14:45
<
Papierkorb >
Most likely the #flat_map won't do any harm in terms of computation time
14:45
r3nrut has quit [Read error: Connection reset by peer]
14:45
r3nrut has joined #ruby
14:45
<
Papierkorb >
srkkkadnn: That sounds really like a premature optimization
14:46
infra-re_ has joined #ruby
14:46
infra-red has quit [Read error: Connection reset by peer]
14:46
<
Papierkorb >
srkkkadnn: If things get slow, it won't be because of #flat_map, but most likely because of whatever else code you're running in there. In that case, consider offloading the task building somewhere else.
14:46
<
srkkkadnn >
Papierkorb: you could be right, it's a premature-optimization. :)
14:46
Prominent_ has joined #ruby
14:48
moos3 has joined #ruby
14:49
shellie_ has joined #ruby
14:49
r3nrut has quit [Read error: Connection reset by peer]
14:50
r3nrut has joined #ruby
14:51
krz has joined #ruby
14:51
cdg has joined #ruby
14:52
roshanavand has quit [Quit: This computer has gone to sleep]
14:52
aryaching_ has joined #ruby
14:53
aryaching has quit [Ping timeout: 240 seconds]
14:53
RegulationD has joined #ruby
14:55
htmldrum has joined #ruby
14:55
JohnBat26 has quit [Read error: Connection reset by peer]
14:56
JohnBat26 has joined #ruby
14:57
reaVer has quit [Remote host closed the connection]
14:58
RegulationD has quit [Ping timeout: 250 seconds]
14:58
uglybandersnatch has joined #ruby
14:59
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
14:59
htmldrum has quit [Ping timeout: 260 seconds]
15:00
moos3 has quit [Ping timeout: 244 seconds]
15:00
roshanavand has joined #ruby
15:01
JohnBat26 has quit [Read error: Connection reset by peer]
15:02
JohnBat26 has joined #ruby
15:02
kam270 has quit [Quit: Leaving]
15:02
uglybandersnatch has quit [Ping timeout: 248 seconds]
15:03
cdg has quit [Remote host closed the connection]
15:04
blackmesa has quit [Ping timeout: 252 seconds]
15:04
bry4n_ has joined #ruby
15:07
reaVer has joined #ruby
15:07
hahuang65 has quit [Ping timeout: 268 seconds]
15:08
Timberwo|f has joined #ruby
15:09
Xiti has joined #ruby
15:09
bry4n_ has quit [Ping timeout: 264 seconds]
15:09
freerobby has quit [Quit: Leaving.]
15:10
Faris has quit [Remote host closed the connection]
15:11
Mon_Ouie has quit [Ping timeout: 276 seconds]
15:12
<
srkkkadnn >
results:
15:12
<
srkkkadnn >
build_1: 1.260000 0.110000 1.370000 ( 1.392506)
15:12
poerror has quit [Ping timeout: 260 seconds]
15:12
<
srkkkadnn >
build_2: 1.240000 0.080000 1.320000 ( 1.330387)
15:12
pawnbox has quit [Remote host closed the connection]
15:13
<
Papierkorb >
srkkkadnn: Of course it's slower, it's moving arrays around more afterall, but on 500k calls it's only 60ms slower
15:13
<
Papierkorb >
>> (1 - (1.330387 / 1.392506)) * 100
15:13
<
Papierkorb >
srkkkadnn: That's 4.5% slower.
15:14
<
srkkkadnn >
you are right, that's why I said .. theoretically it should be slower and hence should be avoided at compute-intensive place.
15:14
duckpuppy has joined #ruby
15:14
Snowy has quit [Read error: Connection reset by peer]
15:14
JohnBat26 has quit [Read error: Connection reset by peer]
15:14
<
Papierkorb >
I'm just saying, be sure that it's actually "computationally intensive", or otherwise "time critical", before doing such optimizations
15:15
JohnBat26 has joined #ruby
15:15
<
srkkkadnn >
Papierkorb: point taken. :)
15:15
Snowy has joined #ruby
15:16
<
srkkkadnn >
Papierkorb: I started all this .. because I've seen .tap .. and thought, using tap you can send results back of same block.
15:16
adgtl has quit [Remote host closed the connection]
15:17
dtordable has quit [Remote host closed the connection]
15:17
<
srkkkadnn >
so I thought, if this could be done otherwise.
15:17
bricker has quit [Ping timeout: 260 seconds]
15:17
pawnbox has joined #ruby
15:18
duckpuppy has quit [Ping timeout: 248 seconds]
15:20
mistermocha has joined #ruby
15:21
krz has quit [Ping timeout: 260 seconds]
15:22
Chagel has quit [Ping timeout: 244 seconds]
15:23
skweek has joined #ruby
15:24
krz has joined #ruby
15:24
mistermocha has quit [Ping timeout: 250 seconds]
15:25
jokke1 is now known as jokke
15:26
tomatoes has joined #ruby
15:26
aryaching_ has quit [Ping timeout: 248 seconds]
15:27
rooose has joined #ruby
15:27
tvon has quit [Remote host closed the connection]
15:28
srkkkadnn has quit [Quit: Page closed]
15:28
tvon has joined #ruby
15:28
krz has quit [Ping timeout: 260 seconds]
15:30
r3nrut has quit [Read error: Connection reset by peer]
15:30
r3nrut has joined #ruby
15:31
SCHAAP137 has joined #ruby
15:32
LoneHermit has joined #ruby
15:32
tvon has quit [Ping timeout: 244 seconds]
15:32
liquid-silence has joined #ruby
15:33
<
liquid-silence >
hi all, does anyone here understand JWT?
15:33
poerror has joined #ruby
15:33
CloCkWeRX has quit [Quit: Leaving.]
15:33
<
liquid-silence >
I am at the end of my capacity with the signature for this
15:33
rubie has joined #ruby
15:33
<
liquid-silence >
and cannot for the life of me figure out why the signature is not valid when hitting the 3rd part service
15:33
bricker has joined #ruby
15:33
Mon_Ouie has joined #ruby
15:34
hahuang65 has joined #ruby
15:34
Xiti has quit [Read error: Connection reset by peer]
15:35
<
shevy >
is jwt not java
15:35
<
liquid-silence >
nah
15:35
<
liquid-silence >
JSON Web Token
15:35
<
liquid-silence >
although I have a java lib that create the token correctly
15:35
<
liquid-silence >
the lib is encrypted so I cannot view the code
15:37
LoneHermit has quit [Ping timeout: 276 seconds]
15:37
hxegon has joined #ruby
15:38
blandflakes has joined #ruby
15:40
krz has joined #ruby
15:41
sepp2k1 has joined #ruby
15:41
pawnbox has quit [Remote host closed the connection]
15:41
minimalism has joined #ruby
15:42
tvon has joined #ruby
15:42
araujo has quit [Quit: Leaving]
15:43
sepp2k has quit [Ping timeout: 244 seconds]
15:46
pawnbox has joined #ruby
15:47
pawnbox has quit [Remote host closed the connection]
15:47
shinnya has quit [Ping timeout: 248 seconds]
15:47
chipotle has joined #ruby
15:47
aryaching has joined #ruby
15:48
poerror has quit [Ping timeout: 244 seconds]
15:50
rvchangue has quit [Quit: dead]
15:51
IrishGringo has quit [Ping timeout: 248 seconds]
15:52
davedev24 has joined #ruby
15:52
Prominent_ has quit [Ping timeout: 244 seconds]
15:53
DiCablo has joined #ruby
15:53
Prominent_ has joined #ruby
15:54
y2mq37 has quit [Quit: Leaving]
15:57
nettoweb has joined #ruby
15:57
liquid-silence has quit [Read error: Connection reset by peer]
16:00
pawnbox has joined #ruby
16:00
blackmesa has joined #ruby
16:01
ljames has joined #ruby
16:04
liquid-silence has joined #ruby
16:04
liquid-silence has joined #ruby
16:04
tomphp has joined #ruby
16:05
gbgdev has joined #ruby
16:06
liquid-silence has quit [Read error: Connection reset by peer]
16:06
darkf has joined #ruby
16:11
chipotle has quit [Quit: cheerio]
16:12
johnmilton has joined #ruby
16:13
the_drow has quit [Quit: This computer has gone to sleep]
16:15
liquid-silence has joined #ruby
16:15
liquid-silence has joined #ruby
16:15
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
16:17
rubie has quit [Remote host closed the connection]
16:18
stevenxl has joined #ruby
16:18
drptbl has joined #ruby
16:19
<
stevenxl >
hello everyone. I am trying to send a string to an API that will use that string as the "from" field in an email. (I am using Mandrill).
16:19
DiCablo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:19
<
stevenxl >
Unfortunately, The string I am trying to send has invalid characters. For example "bs, ms <support@example.com>"
16:19
<
stevenxl >
The "," after
16:20
<
stevenxl >
The "," after "bs" is invalid. How can I escape it so that it is valid?
16:20
drptbl has quit [Client Quit]
16:20
drptbl has joined #ruby
16:20
<
j2k >
stevenxl Why is it invalid?
16:21
<
stevenxl >
j2k: I believe that the SMTP standards don't allow certain characters in that from field. One of those characters is the comma.
16:23
<
stevenxl >
My problem is that I want to turn "bs, ms, mba" into "bs\, ms\, mba", with the hope that the backslash characters will escape the comma and it can be used in the from field."
16:23
<
stevenxl >
I am having trouble achieving that.
16:23
moeabdol has joined #ruby
16:24
User458764 has joined #ruby
16:24
ziyadb has quit [Quit: Connection closed for inactivity]
16:27
<
stevenxl >
Ah I got it!
16:27
<
stevenxl >
Thanks folks!
16:28
Prominent_ has quit [Ping timeout: 260 seconds]
16:29
despai has joined #ruby
16:31
stevenxl has quit [Quit: leaving]
16:32
jam__ has joined #ruby
16:32
Abrin_AWAY has joined #ruby
16:32
aufi has joined #ruby
16:32
LoneHerm_ has joined #ruby
16:33
blackmesa has quit [Ping timeout: 250 seconds]
16:33
arquebus has joined #ruby
16:34
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
16:34
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:35
Mon_Ouie has quit [Ping timeout: 244 seconds]
16:35
fedexo has joined #ruby
16:36
aclearman037 has joined #ruby
16:36
jam__ has quit [Ping timeout: 252 seconds]
16:36
finisherr_ has joined #ruby
16:37
LoneHerm_ has quit [Ping timeout: 240 seconds]
16:37
rubie has joined #ruby
16:37
Rodya_ has joined #ruby
16:37
jenrzzz has joined #ruby
16:38
liquid-silence has quit [Read error: Connection reset by peer]
16:42
jenrzzz has quit [Ping timeout: 250 seconds]
16:43
skarn has left #ruby ["Leaving"]
16:44
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
16:47
Snowy has quit [Remote host closed the connection]
16:48
d0nn1e has quit [Ping timeout: 248 seconds]
16:49
drptbl has joined #ruby
16:50
hxegon is now known as hxegon_AFK
16:50
nanoz has joined #ruby
16:51
d0nn1e has joined #ruby
16:52
hxegon_AFK has quit [Quit: BRB]
16:52
achamian has quit [Remote host closed the connection]
16:55
al2o3-cr has quit [Ping timeout: 276 seconds]
16:55
JohnBat26 has quit [Read error: Connection reset by peer]
16:56
JohnBat26 has joined #ruby
16:58
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
16:58
ponga has quit [Quit: Connection closed for inactivity]
17:02
al2o3-cr has joined #ruby
17:02
hxegon has joined #ruby
17:02
nettoweb has joined #ruby
17:03
adgtl has joined #ruby
17:03
bronson has joined #ruby
17:05
bry4n_ has joined #ruby
17:08
Prominent_ has joined #ruby
17:08
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
17:08
bronson has quit [Ping timeout: 252 seconds]
17:08
symm- has joined #ruby
17:09
adgtl has quit [Read error: No route to host]
17:09
adgtl has joined #ruby
17:10
bry4n_ has quit [Ping timeout: 250 seconds]
17:10
ariel_17 has joined #ruby
17:10
bronson has joined #ruby
17:13
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
17:13
yardenbar has joined #ruby
17:14
johnmilton has quit [Ping timeout: 264 seconds]
17:14
Rodya_ has quit [Remote host closed the connection]
17:14
chipotle has joined #ruby
17:15
duckpuppy has joined #ruby
17:16
red_horned_rihno has quit [Ping timeout: 244 seconds]
17:17
tvon has quit [Remote host closed the connection]
17:17
red_horned_rihno has joined #ruby
17:17
tvon has joined #ruby
17:17
Rodya_ has joined #ruby
17:19
arlek has joined #ruby
17:19
duckpuppy has quit [Ping timeout: 244 seconds]
17:19
baweaver has joined #ruby
17:20
arlek has quit [Read error: Connection reset by peer]
17:20
binaryplease has joined #ruby
17:20
al2o3-cr1 has joined #ruby
17:21
red_horned_rihno has quit [Ping timeout: 244 seconds]
17:21
al2o3-cr has quit [Ping timeout: 276 seconds]
17:21
<
havenwood >
'hellooooo'.squeeze 'o'
17:22
tvon has quit [Ping timeout: 244 seconds]
17:22
dikaio has joined #ruby
17:22
solars has quit [Ping timeout: 244 seconds]
17:23
diegoviola has joined #ruby
17:23
baweaver has quit [Ping timeout: 250 seconds]
17:24
gizmore has joined #ruby
17:24
al2o3-cr1 is now known as al2o3-cr
17:25
yardenbar has quit [Ping timeout: 246 seconds]
17:26
r3nrut has quit [Read error: Connection reset by peer]
17:27
johnmilton has joined #ruby
17:27
<
Zarthus >
havenwood: that's neat.
17:27
<
Zarthus >
I wonder... what use it has.
17:28
<
havenwood >
>> require 'base64'; require 'json'; token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJhaW0iOnRydWV9.'; header, payload, signature = token.split('.').map { |part| JSON.parse Base64.decode64 part }
17:28
<
shevy >
Zarthus for instance you have a path like this: "/tmp////foo.txt".squeeze '/' # => "/tmp/foo.txt"
17:28
LuckyABA has joined #ruby
17:29
<
Zarthus >
shevy: \o/
17:29
<
havenwood >
liquid-silence left, but NONE is an easy signature to reason about ;)
17:29
tvon has joined #ruby
17:29
Abrin_AWAY has quit [Ping timeout: 276 seconds]
17:31
intrigueD has joined #ruby
17:31
arlek has joined #ruby
17:31
tomatoes has quit [Ping timeout: 250 seconds]
17:33
tildes has joined #ruby
17:34
dikaio_ has joined #ruby
17:34
dikaio has quit [Read error: Connection reset by peer]
17:35
kellabyte has left #ruby [#ruby]
17:36
yeticry has quit [Ping timeout: 252 seconds]
17:37
yeticry has joined #ruby
17:38
jbrhbr has quit [Quit: Leaving.]
17:39
mrgrieves has joined #ruby
17:39
barajasfab has joined #ruby
17:40
adgtl has quit [Ping timeout: 252 seconds]
17:42
dikaio_ has quit [Remote host closed the connection]
17:42
adgtl has joined #ruby
17:42
adgtl has joined #ruby
17:43
chipotle has quit [Quit: cheerio]
17:43
dikaio has joined #ruby
17:43
poerror has joined #ruby
17:44
dikaio has quit [Remote host closed the connection]
17:44
symm- has quit [Ping timeout: 244 seconds]
17:45
yeticry has quit [Ping timeout: 260 seconds]
17:45
dikaio has joined #ruby
17:45
binaryplease has quit [Quit: WeeChat 1.4]
17:46
jbrhbr has joined #ruby
17:47
yeticry has joined #ruby
17:47
dikaio has quit [Remote host closed the connection]
17:48
dikaio has joined #ruby
17:49
adgtl has quit [Read error: Connection reset by peer]
17:49
poerror has quit [Ping timeout: 260 seconds]
17:49
dikaio has quit [Remote host closed the connection]
17:50
dikaio has joined #ruby
17:50
hinbody has joined #ruby
17:50
DiCablo has joined #ruby
17:50
symm- has joined #ruby
17:51
jam__ has joined #ruby
17:51
adgtl has joined #ruby
17:52
chouhoulis has joined #ruby
17:53
fullofcaffeine has joined #ruby
17:54
mwlang has joined #ruby
17:55
yeticry has quit [Ping timeout: 260 seconds]
17:56
yeticry has joined #ruby
17:58
adgtl has quit [Remote host closed the connection]
17:58
govg has joined #ruby
18:00
tvon has quit [Remote host closed the connection]
18:00
tvon has joined #ruby
18:01
mrgrieves has quit [Ping timeout: 264 seconds]
18:01
yeticry has quit [Ping timeout: 260 seconds]
18:02
yeticry has joined #ruby
18:05
adgtl has joined #ruby
18:05
User458764 has joined #ruby
18:05
tvon has quit [Ping timeout: 244 seconds]
18:05
tvon has joined #ruby
18:06
Guest45 has joined #ruby
18:09
adgtl has quit [Ping timeout: 244 seconds]
18:09
aclearman037 has joined #ruby
18:10
Guest45 has quit [Client Quit]
18:12
crowell has quit [Ping timeout: 248 seconds]
18:13
bnagy has quit [Ping timeout: 260 seconds]
18:13
kirillzh has joined #ruby
18:14
dikaio has quit [Remote host closed the connection]
18:14
dikaio has joined #ruby
18:15
aclearma_ has joined #ruby
18:16
aclearman037 has quit [Ping timeout: 248 seconds]
18:16
cpruitt has joined #ruby
18:17
LoneHermit has joined #ruby
18:18
Guest13710 has joined #ruby
18:18
cpruitt has quit [Client Quit]
18:18
davedev24 has quit [Remote host closed the connection]
18:19
Spami has joined #ruby
18:19
mdw has joined #ruby
18:19
anisha has joined #ruby
18:22
davedev24 has joined #ruby
18:24
niksrc has joined #ruby
18:25
bnagy has joined #ruby
18:26
Spami has quit [Quit: This computer has gone to sleep]
18:26
crowell has joined #ruby
18:29
symm- has quit [Ping timeout: 248 seconds]
18:32
fostertheweb has joined #ruby
18:32
B4daBing73 has joined #ruby
18:32
fostertheweb has quit [Client Quit]
18:33
tvon has quit [Remote host closed the connection]
18:33
LoneHermit has quit [Remote host closed the connection]
18:33
tildes has quit [Remote host closed the connection]
18:33
tvon has joined #ruby
18:34
tomphp has joined #ruby
18:35
Guest13710 has quit [Ping timeout: 248 seconds]
18:35
chipotle has joined #ruby
18:36
skweek has quit [Ping timeout: 244 seconds]
18:37
shanemcd has joined #ruby
18:38
tvon has quit [Ping timeout: 244 seconds]
18:38
LoneHermit has joined #ruby
18:38
shanemcd has left #ruby [#ruby]
18:39
anisha has quit [Ping timeout: 240 seconds]
18:39
jenrzzz has joined #ruby
18:40
fullofcaffeine has quit [Remote host closed the connection]
18:40
RegulationD has joined #ruby
18:40
anisha has joined #ruby
18:42
dionysus69 has joined #ruby
18:42
baweaver has joined #ruby
18:44
fullofcaffeine has joined #ruby
18:44
workmad3 has joined #ruby
18:44
jenrzzz has quit [Ping timeout: 240 seconds]
18:44
RegulationD has quit [Ping timeout: 246 seconds]
18:45
chipotle has quit [Quit: cheerio]
18:46
Puffball has joined #ruby
18:48
Rodya_ has quit [Remote host closed the connection]
18:49
Xeago has joined #ruby
18:50
aryaching has quit [Read error: No route to host]
18:50
despai has quit [Quit: This computer has gone to sleep]
18:51
tvon has joined #ruby
18:51
dikaio has quit [Remote host closed the connection]
18:52
symm- has joined #ruby
18:52
dikaio has joined #ruby
18:53
davedev24 has quit [Remote host closed the connection]
18:53
achamian has joined #ruby
18:54
Nightmare is now known as HaythamKenway
18:56
Spami has joined #ruby
18:57
dionysus69 has quit [Ping timeout: 240 seconds]
18:57
achamian has quit [Ping timeout: 244 seconds]
19:00
uglybandersnatch has joined #ruby
19:00
aufi has quit [Ping timeout: 260 seconds]
19:00
tristanp has joined #ruby
19:01
abhiii5459_ has quit [Ping timeout: 252 seconds]
19:02
blackmesa has joined #ruby
19:04
haxrbyte has joined #ruby
19:04
mdw_ has joined #ruby
19:04
<
shevy >
when is the next ruby conference with matz in 2016
19:04
uglybandersnatch has quit [Ping timeout: 260 seconds]
19:04
niksrc has quit [Quit: Leaving]
19:05
mdw__ has joined #ruby
19:05
Omni has joined #ruby
19:05
Omni is now known as Guest27224
19:05
mdw has quit [Ping timeout: 244 seconds]
19:05
Rodya_ has joined #ruby
19:06
bry4n_ has joined #ruby
19:07
n008f4g_ has joined #ruby
19:08
dgncn has quit [Excess Flood]
19:09
mdw_ has quit [Ping timeout: 268 seconds]
19:09
`tim` has joined #ruby
19:09
nanoz has quit [Quit: <3]
19:09
_blizzy_ has joined #ruby
19:09
`tim` has quit [Client Quit]
19:09
infra-re_ has quit []
19:09
`tim` has joined #ruby
19:10
dgncn has joined #ruby
19:10
bry4n_ has quit [Ping timeout: 246 seconds]
19:11
haxrbyte has quit [Ping timeout: 244 seconds]
19:11
`tim` has quit [Read error: Connection reset by peer]
19:12
`tim` has joined #ruby
19:13
rubie has quit [Remote host closed the connection]
19:13
chipotle has joined #ruby
19:14
dikaio has quit [Ping timeout: 240 seconds]
19:14
jenrzzz has joined #ruby
19:15
duckpuppy has joined #ruby
19:16
rubie has joined #ruby
19:18
gundoc has joined #ruby
19:19
jenrzzz has quit [Ping timeout: 240 seconds]
19:19
skweek has joined #ruby
19:20
duckpuppy has quit [Ping timeout: 248 seconds]
19:21
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:22
B4daBing73 has quit [Quit: Leaving]
19:23
Blaguvest has joined #ruby
19:27
lxsameer has joined #ruby
19:30
mallu has joined #ruby
19:30
LoneHermit has quit [Remote host closed the connection]
19:31
dikaio has joined #ruby
19:31
dikaio has quit [Max SendQ exceeded]
19:32
Rodya_ has quit [Remote host closed the connection]
19:32
arlek has quit [Ping timeout: 248 seconds]
19:32
dikaio has joined #ruby
19:32
intrigueD has quit [Remote host closed the connection]
19:33
ohaibbq has quit [Ping timeout: 268 seconds]
19:34
crowell has quit [Ping timeout: 240 seconds]
19:34
nofxx has joined #ruby
19:34
nofxx has joined #ruby
19:36
dionysus69 has joined #ruby
19:37
finisherr_ has quit [Ping timeout: 276 seconds]
19:38
finisherr has joined #ruby
19:38
despai has joined #ruby
19:39
crowell has joined #ruby
19:41
fullofcaffeine has quit [Remote host closed the connection]
19:43
Abrin_AWAY has joined #ruby
19:43
fullofcaffeine has joined #ruby
19:44
Prominent_ has quit [Ping timeout: 244 seconds]
19:45
poerror has joined #ruby
19:45
<
danjack_ >
>>> "HELLO"
19:45
<
danjack_ >
Noat, may, fault
19:47
rubie has quit [Remote host closed the connection]
19:47
dikaio has quit [Remote host closed the connection]
19:47
<
mallu >
never mind... +=
19:47
Abrin_AWAY has quit [Ping timeout: 244 seconds]
19:48
dikaio has joined #ruby
19:48
bjpenn has joined #ruby
19:48
Spami has quit [Quit: This computer has gone to sleep]
19:49
Rodya_ has joined #ruby
19:50
Rodya_ has quit [Remote host closed the connection]
19:52
dikaio has quit [Client Quit]
19:52
lxsameer has quit [Ping timeout: 244 seconds]
19:52
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
19:52
Mon_Ouie has joined #ruby
19:53
Guest13710 has joined #ruby
19:53
yqt has joined #ruby
19:54
achamian has joined #ruby
19:54
rubie has joined #ruby
19:54
djbkd has joined #ruby
19:54
synthroid has quit []
19:55
bricker has quit [Ping timeout: 240 seconds]
19:55
ziyadb has joined #ruby
19:55
<
hanmac >
shevy i noticed that in my ruby test "=+" works the same as "+=" but i am sure it should not ... or?
19:56
skweek has quit [Ping timeout: 240 seconds]
19:56
<
danjack_ >
1 =+ variable
19:56
<
danjack_ >
you want to tell me that that works?
19:57
<
shevy >
hanmac what the
19:57
<
shevy >
what is happening
19:57
<
shevy >
is this madness year
19:58
<
shevy >
jedi such as yoda!!!!
19:58
davedev24 has joined #ruby
19:58
<
hanmac >
>> count = 0;count =+ 1; p count
19:58
<
hanmac >
count = 0;count += 1; p count
19:58
<
shevy >
"This is not the page you have been looking for"
*hand wave*
19:58
<
Mon_Ouie >
>> count = 1; count =+ 1; count
19:58
<
hanmac >
>> count = 0;count += 1; p count
19:59
<
danjack_ >
count = (+(1))
19:59
<
danjack_ >
=+ is not an operator
19:59
<
danjack_ >
the + gets interpreted as a positive sign
19:59
achamian has quit [Ping timeout: 244 seconds]
19:59
<
hanmac >
ahh good, i i used bad variables for test ing ;P
19:59
<
danjack_ >
this just assigns a postive 1 to the variable
19:59
<
hanmac >
for a moment i thought it did work
20:00
<
shevy >
I did not read the =+ from Mon_Ouie
20:00
<
shevy >
my brain replaced this automatically with a +=
20:00
<
baweaver >
>> count = 2; count =+ 1; count
20:00
<
danjack_ >
you silly boys
20:00
<
danjack_ >
>> "shevy " * 10
20:00
anisha has quit [Ping timeout: 268 seconds]
20:00
<
shevy >
danjack_ you are jackcom right :)
20:01
<
baweaver >
have to be auth'd to the nickserv to do that.
20:01
<
baweaver >
are you now...
20:01
<
shevy >
ruboto was a much nicer but
20:01
<
shevy >
erm... *bot
20:02
<
baweaver >
because if you WERE jackcom, that'd be ban evasion
20:03
anisha has joined #ruby
20:04
<
danjack_ >
i said yes o "have to be auth'd to the nickserv to do that."
20:04
<
danjack_ >
i dont know who jackcom is
20:04
poguez_ has joined #ruby
20:05
Dimik has joined #ruby
20:06
icarus has joined #ruby
20:06
mdw__ has quit [Quit: Sleeping Zzzzz]
20:06
<
baweaver >
ah, carry on then.
20:07
adgtl has joined #ruby
20:07
adgtl has joined #ruby
20:08
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
20:09
pawnbox has quit [Remote host closed the connection]
20:09
pawnbox has joined #ruby
20:09
symm- has quit [Ping timeout: 248 seconds]
20:10
pawnbox has quit [Remote host closed the connection]
20:10
jam__ has quit [Remote host closed the connection]
20:12
adgtl has quit [Ping timeout: 244 seconds]
20:13
<
mallu >
I'm new to ruby/programming trying to create multiple methods. If I remove methods this scripts work. I'm getting "aws_snapshot.rb:27:in `snapshot_description': undefined local variable or method `resp' for main:Object (NameError)"
20:14
<
mallu >
how do I pass resp variable from one method to another?
20:14
blackmesa has quit [Ping timeout: 268 seconds]
20:14
pawnbox has joined #ruby
20:14
TvL2386 has joined #ruby
20:15
govg has quit [Ping timeout: 240 seconds]
20:15
<
hanmac >
mallu checkout "local variable" vs "instance variable"
20:15
<
bronson >
IO.sysopen is blocking (!?). Anyone know how I can open an IO nonblocking?
20:15
blackmesa has joined #ruby
20:16
<
bronson >
mallu: either declare resp outside the methods or make it a global $resp
20:16
rooose has quit [Ping timeout: 260 seconds]
20:16
haxrbyte has joined #ruby
20:17
haxrbyte has quit [Remote host closed the connection]
20:17
elifoster has joined #ruby
20:17
haxrbyte has joined #ruby
20:20
symm- has joined #ruby
20:20
dionysus69 has quit [Ping timeout: 244 seconds]
20:21
mrgrieves has joined #ruby
20:22
mdw has joined #ruby
20:22
<
danjack_ >
I just discovered Hash.new(default_value)
20:22
<
danjack_ >
midn blown
20:22
govg has joined #ruby
20:23
haxrbyte has quit [Ping timeout: 276 seconds]
20:23
Guest13710 has quit [Ping timeout: 252 seconds]
20:24
Guest13710 has joined #ruby
20:25
pawnbox has quit [Remote host closed the connection]
20:26
gundoc has quit [Ping timeout: 252 seconds]
20:27
<
adaedra >
there's the version with the block which is also good.
20:28
TvL2386 has quit [Ping timeout: 276 seconds]
20:28
mwlang has quit [Quit: mwlang]
20:29
rubie has quit [Remote host closed the connection]
20:30
fullofcaffeine has quit [Ping timeout: 250 seconds]
20:31
fullofcaffeine has joined #ruby
20:31
LoneHerm_ has joined #ruby
20:32
Don_John has joined #ruby
20:33
Prominent_ has joined #ruby
20:33
Rinalds has quit [Ping timeout: 248 seconds]
20:34
Snowy has joined #ruby
20:35
icarus has quit [Ping timeout: 276 seconds]
20:36
LoneHerm_ has quit [Ping timeout: 240 seconds]
20:37
Guest13710 has quit [Ping timeout: 264 seconds]
20:37
houhoulis has joined #ruby
20:40
davee_ has joined #ruby
20:41
RegulationD has joined #ruby
20:42
rooose has joined #ruby
20:45
floatingpoint has joined #ruby
20:45
RegulationD has quit [Ping timeout: 276 seconds]
20:46
mrgrieves has quit [Ping timeout: 252 seconds]
20:48
rubie has joined #ruby
20:51
Rodya_ has joined #ruby
20:53
<
hanmac >
mallu: you need to call snapshot_list from inside the loop in snapshot_description with n as parameter
20:53
tristanp has quit [Remote host closed the connection]
20:53
bjpenn has quit [Ping timeout: 268 seconds]
20:55
htmldrum has joined #ruby
20:55
SCHAAP137 has quit [Remote host closed the connection]
20:57
Rodya_ has quit [Ping timeout: 276 seconds]
20:57
chipotle_ has joined #ruby
20:57
<
mallu >
hanmac: so in snapshot_description .. I call snapshot_list(n) ?
20:57
chipotle has quit [Ping timeout: 248 seconds]
20:58
jam__ has joined #ruby
20:58
terlar has joined #ruby
20:59
<
hanmac >
yeah, inside the each loop
20:59
skweek has joined #ruby
21:02
Guest13710 has joined #ruby
21:03
ivanskie has joined #ruby
21:06
finisherr has quit [Quit: finisherr]
21:07
bry4n_ has joined #ruby
21:07
rubie has quit [Remote host closed the connection]
21:07
finisherr has joined #ruby
21:09
jbrhbr has joined #ruby
21:09
<
mallu >
hanmac: thank you but when I call snap = Snapshot.new
21:09
<
mallu >
snap.snapshot_list how do I pass arguments for snapshot_list?
21:09
<
danjack_ >
is there a way to get the age of an object?
21:09
fullofcaffeine has quit [Remote host closed the connection]
21:10
hinbody has quit [Ping timeout: 244 seconds]
21:10
finisherr has quit [Client Quit]
21:11
bry4n_ has quit [Ping timeout: 268 seconds]
21:14
DoubleMalt has quit [Remote host closed the connection]
21:14
rubie has joined #ruby
21:15
poerror has quit [Ping timeout: 260 seconds]
21:16
blackmesa has quit [Ping timeout: 248 seconds]
21:16
n_blownapart has joined #ruby
21:16
duckpuppy has joined #ruby
21:17
hxegon has quit [Quit: BRB]
21:17
codecop has quit [Remote host closed the connection]
21:18
rubie has quit [Ping timeout: 252 seconds]
21:18
rubie_ has joined #ruby
21:18
hxegon has joined #ruby
21:19
<
mallu >
hanmac: this is the error "`snapshot_list': wrong number of arguments (0 for 1) (ArgumentError)
21:19
<
mallu >
from aws_snapshot.rb:67:in `<main>"
21:21
duckpuppy has quit [Ping timeout: 276 seconds]
21:21
htmldrum has quit [Ping timeout: 276 seconds]
21:21
chouhoulis has quit [Remote host closed the connection]
21:22
moeabdol1 has joined #ruby
21:22
poerror has joined #ruby
21:22
norc_ has quit [Ping timeout: 244 seconds]
21:22
rubie_ has quit [Ping timeout: 252 seconds]
21:23
freerobby has joined #ruby
21:24
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
21:24
moeabdol has quit [Ping timeout: 248 seconds]
21:25
Narzew has quit [Read error: Connection reset by peer]
21:25
pawnbox has joined #ruby
21:26
hxegon is now known as hxegon_AFK
21:27
krz has quit [Ping timeout: 244 seconds]
21:27
hxegon_AFK is now known as hxegon
21:28
Prominent_ has quit [Quit: Leaving]
21:28
poerror has quit [Ping timeout: 252 seconds]
21:29
despai has quit [Quit: This computer has gone to sleep]
21:29
mrgrieves has joined #ruby
21:30
pawnbox has quit [Ping timeout: 268 seconds]
21:30
poerror has joined #ruby
21:30
<
adam| >
mallu: `n` isn't in that method scope.
21:30
krz has joined #ruby
21:30
<
adam| >
mallu: What are you trying to achieve?
21:31
<
mallu >
adam|: correct.. how do I pass n from snapshot_description to snapshot_list?
21:31
<
mallu >
adam|: I want to be able to list snapshots from snapshot_description method
21:32
jaruga has joined #ruby
21:32
jaruga is now known as jaruga_
21:32
Guest13710 has quit [Ping timeout: 244 seconds]
21:33
deduped has joined #ruby
21:33
<
adam| >
mallu: Hard to follow your code, but you likely want another block, where you iterate over @resp.snapshots again.
21:34
despai has joined #ruby
21:35
<
mallu >
adam|: Can you please tell me how do you make it better? I was hoping not to repeat the code
21:37
ecksit has joined #ruby
21:37
ecksit has quit [Max SendQ exceeded]
21:37
intrigueD has joined #ruby
21:38
ecksit has joined #ruby
21:39
stannard has joined #ruby
21:40
n008f4g_ has quit [Ping timeout: 260 seconds]
21:40
tomphp has joined #ruby
21:40
hxegon is now known as hxegon_AFK
21:45
ivanskie has quit [Read error: No route to host]
21:45
hxegon_AFK is now known as hxegon
21:46
ivanskie has joined #ruby
21:46
n008f4g_ has joined #ruby
21:47
bjpenn has joined #ruby
21:48
stannard has quit [Remote host closed the connection]
21:48
mrgrieves has quit [Ping timeout: 250 seconds]
21:48
<
mallu >
adam|: thank you
21:48
<
adam| >
mallu: That said, you should likely have a class level method that fetches the snapshots and then maps them into Snapshot objects. During that initialization you could setup the description.
21:50
mdw has quit [Quit: Sleeping Zzzzz]
21:50
achamian has joined #ruby
21:51
Rodya_ has joined #ruby
21:51
Cohedrin has joined #ruby
21:52
nibbo_ has quit [Ping timeout: 244 seconds]
21:53
A124 has quit [Quit: '']
21:53
edwinvdgraaf has quit [Remote host closed the connection]
21:54
poerror has quit [Ping timeout: 276 seconds]
21:54
A124 has joined #ruby
21:55
achamian has quit [Ping timeout: 260 seconds]
21:55
freerobby has quit [Quit: Leaving.]
21:56
terlar has quit [Ping timeout: 246 seconds]
21:56
ensyde_ has joined #ruby
21:56
skade has joined #ruby
21:58
blandflakes has joined #ruby
21:58
poerror has joined #ruby
21:59
nibbo has joined #ruby
22:00
n_blownapart has quit []
22:03
mostlybadfly has joined #ruby
22:05
tristanp has joined #ruby
22:07
dikaio has joined #ruby
22:07
fullofca_ has joined #ruby
22:08
sarbs has quit [Ping timeout: 244 seconds]
22:09
Spami has joined #ruby
22:10
adgtl has joined #ruby
22:10
ecksit has quit [Ping timeout: 268 seconds]
22:10
kirun has quit [Quit: Client exiting]
22:12
blackmesa has joined #ruby
22:12
anisha has quit [Ping timeout: 276 seconds]
22:13
ecksit has joined #ruby
22:13
uglybandersnatch has joined #ruby
22:14
adgtl has quit [Ping timeout: 244 seconds]
22:15
Spami has quit [Quit: This computer has gone to sleep]
22:17
bjpenn_ has joined #ruby
22:17
sepp2k has joined #ruby
22:18
sepp2k1 has quit [Ping timeout: 252 seconds]
22:19
sandstrom has quit [Quit: My computer has gone to sleep.]
22:19
last_staff1 has joined #ruby
22:19
Tempesta_ has joined #ruby
22:19
guardian has quit [Ping timeout: 252 seconds]
22:19
skydiver_ has quit [Ping timeout: 252 seconds]
22:19
Authenticator has quit [Ping timeout: 252 seconds]
22:20
LoneHermit has joined #ruby
22:20
bjpenn has quit [Ping timeout: 252 seconds]
22:20
crowell has quit [Ping timeout: 252 seconds]
22:20
Puffball has quit [Ping timeout: 252 seconds]
22:20
bronson has quit [Ping timeout: 252 seconds]
22:20
last_staff has quit [Ping timeout: 252 seconds]
22:20
Tempesta has quit [Ping timeout: 252 seconds]
22:20
s00pcan has quit [Ping timeout: 252 seconds]
22:20
Azure has quit [Ping timeout: 252 seconds]
22:20
last_staff1 is now known as last_staff
22:20
rooose has quit [Read error: Connection reset by peer]
22:20
bronson has joined #ruby
22:20
Synthead has quit [Ping timeout: 252 seconds]
22:20
crowell has joined #ruby
22:20
crowell has quit [Changing host]
22:20
crowell has joined #ruby
22:21
Puffball has joined #ruby
22:21
s00pcan has joined #ruby
22:21
decoponio has quit [Quit: Leaving...]
22:23
Azure has joined #ruby
22:24
nettoweb has joined #ruby
22:24
htmldrum has joined #ruby
22:24
nettoweb has quit [Client Quit]
22:25
pawnbox has joined #ruby
22:25
LoneHermit has quit [Ping timeout: 244 seconds]
22:25
_djbkd has joined #ruby
22:27
barajasfab has quit [Quit: Leaving]
22:28
tristanp has quit [Read error: Connection reset by peer]
22:29
tristanp has joined #ruby
22:30
pawnbox has quit [Ping timeout: 244 seconds]
22:31
workmad3 has quit [Ping timeout: 276 seconds]
22:32
Snowy has quit [Read error: Connection reset by peer]
22:33
Snowy has joined #ruby
22:33
marr has joined #ruby
22:33
tvw has joined #ruby
22:33
crystal77 has joined #ruby
22:34
tristanp has quit [Read error: Connection reset by peer]
22:36
skydiver_ has joined #ruby
22:37
devgiant has joined #ruby
22:37
terlar has joined #ruby
22:38
krz has quit [Read error: Connection reset by peer]
22:39
devgiant has quit [Client Quit]
22:39
tristanp has joined #ruby
22:39
quazimodo has quit [Ping timeout: 260 seconds]
22:40
terlar has quit [Client Quit]
22:41
zenlot6 has joined #ruby
22:41
terlar has joined #ruby
22:42
zenlot has quit [Ping timeout: 240 seconds]
22:42
RegulationD has joined #ruby
22:42
tristanp has quit [Read error: No route to host]
22:42
jenrzzz has joined #ruby
22:42
Snowy has quit [Quit: ragequit]
22:43
hxegon has quit [Quit: BRB]
22:44
Macaveli has joined #ruby
22:46
toretore has joined #ruby
22:46
RegulationD has quit [Ping timeout: 276 seconds]
22:47
terlar has quit [Ping timeout: 246 seconds]
22:48
bjpenn_ has quit [Ping timeout: 276 seconds]
22:48
robbyoconnor has joined #ruby
22:48
Rodya_ has quit [Remote host closed the connection]
22:48
robbyoconnor has quit [Changing host]
22:48
robbyoconnor has joined #ruby
22:51
pabs has quit [Ping timeout: 248 seconds]
22:51
Xeago has quit [Remote host closed the connection]
22:54
ejdzes has quit [Quit: leaving]
22:54
quazimodo has joined #ruby
22:55
pawnbox has joined #ruby
22:56
Spami has joined #ruby
22:56
nando293921 has joined #ruby
22:56
pabs has joined #ruby
23:00
pawnbox has quit [Ping timeout: 264 seconds]
23:00
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
23:00
B4daBing73 has joined #ruby
23:01
Spami has quit [Client Quit]
23:02
nando293921 has quit [Ping timeout: 244 seconds]
23:03
Spami has joined #ruby
23:05
moos3 has joined #ruby
23:05
mdw has joined #ruby
23:06
Blaguvest has quit [Ping timeout: 240 seconds]
23:07
bry4n_ has joined #ruby
23:08
Rodya_ has joined #ruby
23:10
al2o3-cr1 has joined #ruby
23:11
fedexo has quit [Ping timeout: 268 seconds]
23:11
al2o3-cr is now known as Guest66006
23:11
Guest66006 has quit [Ping timeout: 240 seconds]
23:11
sepp2k has quit [Read error: Connection reset by peer]
23:12
al2o3-cr1 has quit [Client Quit]
23:12
bry4n_ has quit [Ping timeout: 240 seconds]
23:12
nando293921 has joined #ruby
23:12
bricker has joined #ruby
23:12
al2o3-cr1 has joined #ruby
23:13
vikas027 has joined #ruby
23:13
chouhoulis has joined #ruby
23:13
al2o3-cr1 is now known as al2o3-cr
23:15
jenrzzz has quit [Ping timeout: 260 seconds]
23:16
jaruga_ has quit [Quit: jaruga_]
23:16
jolts has joined #ruby
23:16
Synthead has joined #ruby
23:17
duckpuppy has joined #ruby
23:18
poerror has quit [Ping timeout: 240 seconds]
23:19
vikas027 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:19
chouhoulis has quit []
23:20
moeabdol2 has joined #ruby
23:20
fullofca_ has quit [Remote host closed the connection]
23:20
Authenticator has joined #ruby
23:21
fullofcaffeine has joined #ruby
23:21
Jet4Fire has joined #ruby
23:21
duckpuppy has quit [Ping timeout: 240 seconds]
23:22
jbrhbr has quit [Ping timeout: 260 seconds]
23:22
jbrhbr has joined #ruby
23:23
moeabdol1 has quit [Ping timeout: 276 seconds]
23:23
Jet4Fire has quit [Client Quit]
23:23
terlar has joined #ruby
23:24
kam270 has joined #ruby
23:24
moos3 has quit [Ping timeout: 276 seconds]
23:24
B4daBing73 has quit [Quit: Leaving]
23:26
fullofcaffeine has quit [Ping timeout: 276 seconds]
23:26
al2o3-cr1 has joined #ruby
23:27
al2o3-cr is now known as Guest73273
23:27
al2o3-cr1 is now known as al2o3-cr
23:27
Tempesta_ has quit [Quit: See ya!]
23:27
Tempesta has joined #ruby
23:27
chouhoulis has joined #ruby
23:29
Guest73273 has quit [Ping timeout: 264 seconds]
23:30
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:31
quazimodo has quit [Read error: No route to host]
23:31
ivanskie has joined #ruby
23:31
Cyrus has quit [Quit: Leaving]
23:32
matp has joined #ruby
23:32
terlar has quit [Ping timeout: 268 seconds]
23:33
rubie has joined #ruby
23:36
poerror has joined #ruby
23:36
jbrhbr has quit [Ping timeout: 244 seconds]
23:36
hinbody has joined #ruby
23:38
despai has quit [Quit: Leaving]
23:38
roshanavand has quit [Quit: This computer has gone to sleep]
23:39
Eaven has joined #ruby
23:40
davee_ has quit [Quit: Leaving]
23:40
symm- has quit [Ping timeout: 248 seconds]
23:42
<
pizzaops >
Silly question maybe - RubyMine, when linting my code, is telling me that using Class variables (@@) is bad style. I'm not really clear on why though. I have things I need to store, and use several times throughout the class, that never change in a instance of the class. I just need them in variables so that I don't have to manually write that code over and
23:42
<
pizzaops >
Am I supposed to wrap them in a method instead or something? Why?
23:42
Rodya_ has quit [Remote host closed the connection]
23:42
Rodya_ has joined #ruby
23:44
<
Ox0dea >
pizzaops: Why not a constant?
23:45
<
pizzaops >
Hmm. Sure, I could use a constant. But I don't entirely get what's
*wrong* with class variables, still.
23:46
davee_ has joined #ruby
23:47
mistermocha has joined #ruby
23:48
<
Ox0dea >
I think that's surprising, and it's got pretty sharp teeth.
23:49
<
Ox0dea >
Class variables are usually "fine" if you don't intend to mess with them any, but then why not use a constant?
23:49
jbrhbr has joined #ruby
23:49
elifoster has quit [Ping timeout: 248 seconds]
23:50
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:50
<
pizzaops >
Ox0dea: the behavior in your example makes perfect sense to me...isn't one of the main points of inheritance that you can also override parts the parent?
23:51
<
Ox0dea >
pizzaops: I would expect C and D to be able to have their own versions of @@v there.
23:51
<
pizzaops >
i misrea da bit
23:52
<
Ox0dea >
Honestly, Ruby gives us the power to look at everything in the system as globally mutable, but some constructs make it a little harder to do, and there's surely some value in that.
23:53
mdw has quit [Quit: Sleeping Zzzzz]
23:53
<
Ox0dea >
Class variables are not one of those constructs. :P
23:55
tristanp has joined #ruby
23:56
<
pizzaops >
Yeah that's a fair point.
23:56
poerror has quit [Ping timeout: 244 seconds]
23:57
weemsledeux has joined #ruby
23:58
firstdayonthejob has quit [Ping timeout: 246 seconds]