00:00
emocakes has joined #ruby
00:00
Shidash has joined #ruby
00:01
<
blackmesa >
it seems not correct value
00:01
_solomon_ has joined #ruby
00:01
_solomon_ has quit [Client Quit]
00:01
<
Hanmac >
1024 B == 1 KiB OR 1000 B == 1 KB but NOT 1024 B == 1 KB ... there is an Standard for that since more than TEN years ... but the railsts does not care
00:01
interactionjaxsn has joined #ruby
00:01
d4heyDU has quit [Ping timeout: 272 seconds]
00:02
shinobi_one has quit [Quit: shinobi_one]
00:02
<
bnagy >
keep carrying that torch Hanmac
00:02
<
bnagy >
one day someone else will give a shit :)
00:02
Macaveli has joined #ruby
00:03
macmarti_ has quit [Remote host closed the connection]
00:03
jkhwan has joined #ruby
00:03
shinobi_one has joined #ruby
00:04
marr has quit [Ping timeout: 240 seconds]
00:04
<
bnagy >
I mainly think it's funny cause I'm old enough to remember when the outrage was the other way because disk manufacturers were ripping us off with our 20MB hard disks with (*MB = 1000000 bytes) in tiny print
00:04
<
lewellyn >
Hanmac: and that standard of "more than ten years" won't change how i've done things for 30.
00:05
saltnvinegar has joined #ruby
00:05
_solomon has quit [Ping timeout: 264 seconds]
00:05
gasbakid_ has quit [Read error: Connection reset by peer]
00:05
<
xiphias >
no such file to load -- singleton (LoadError)
00:05
<
xiphias >
any reason that would happen
00:05
<
lewellyn >
30 years ago, the 24 bytes was worth a lot more, too.
00:05
saltnvinegar has quit [Client Quit]
00:06
aley has quit [Quit: aley]
00:07
benwoody has quit [Quit: benwoody]
00:08
aspires has quit []
00:09
aley has joined #ruby
00:09
nobitanobi has joined #ruby
00:09
Shidash has quit [Ping timeout: 252 seconds]
00:10
<
Hanmac >
yeah, everything was bigger and better in the past ... even kilobytes ;P
00:10
<
xibalba >
30 years ago i was a zygote
00:11
bradhe has joined #ruby
00:12
Macaveli has quit [Quit: Computer has gone to sleep.]
00:13
brianpWins has joined #ruby
00:13
pskosinski_ has joined #ruby
00:13
vlad_starkov has joined #ruby
00:14
sheap has quit [Quit: Lost terminal]
00:15
adkron has quit [Ping timeout: 246 seconds]
00:15
callum_ has quit [Ping timeout: 272 seconds]
00:15
noyb has quit [Ping timeout: 264 seconds]
00:16
nateberkopec has quit [Quit: Leaving...]
00:16
iliketur_ has quit [Quit: zzzzz…..]
00:16
pskosinski has quit [Ping timeout: 264 seconds]
00:16
shinobi_one has quit [Quit: shinobi_one]
00:17
<
havenwood >
xiphias: if the file your trying to load can't be found in relation to a path in $LOAD_PATH
00:17
b00stfr3ak has quit [Ping timeout: 264 seconds]
00:18
<
bnagy >
singeton is stdlib though
00:19
<
havenwood >
oh, right..
00:19
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:19
<
bnagy >
my money is on 'unusual ruby runtime'
00:19
<
IceDragon >
Hanmac: does ruby have something like a Array#zip_map ?
00:19
<
IceDragon >
something like this: zip_map = ->(o, m) { o.zip(m).map { |(x, y)| yield x, y} }
00:19
dhruvasagar has joined #ruby
00:19
<
Hanmac >
IceDragon: not that i know
00:20
skofo has quit [Ping timeout: 245 seconds]
00:20
psyl0n has quit [Remote host closed the connection]
00:20
<
IceDragon >
so I could do [1, 2, 3].zip_map([2, 3, 4], &:+)
00:20
<
IceDragon >
shorthand vector math
00:20
whunt has quit [Quit: Computer has gone to sleep.]
00:20
<
IceDragon >
-.- guess I'll just have to settle for my implementation then...
00:20
psyl0n has joined #ruby
00:20
<
bnagy >
IceDragon: a) it's too trivial to even put in the class and b) Vector
00:21
mikeg has joined #ruby
00:21
<
IceDragon >
I thought so :P
00:21
<
IceDragon >
I just keep coming up with odd methods all the time
00:22
<
Hanmac >
IceDragon: hm only that may work:
00:22
<
Hanmac >
>> [1, 2, 3].to_enum(:zip,[2, 3, 4]).map{|x,y|x+y}
00:22
skofo has joined #ruby
00:22
Kricir has quit [Ping timeout: 264 seconds]
00:23
<
bnagy >
require 'matrix'; Vector[1,2,3] + Vector[2,3,4]
00:23
hololeap has joined #ruby
00:23
<
bnagy >
>> require 'matrix'; Vector[1,2,3] + Vector[2,3,4]
00:24
vlad_starkov has quit [Remote host closed the connection]
00:24
Mars` has quit [Remote host closed the connection]
00:24
shinobi_one has joined #ruby
00:25
Mars` has joined #ruby
00:25
lfox has joined #ruby
00:25
Mars` has quit [Read error: Connection reset by peer]
00:25
hashpuppy has joined #ruby
00:25
Mars` has joined #ruby
00:25
emocakes has quit [Quit: Leaving...]
00:25
mikeg has quit [Ping timeout: 246 seconds]
00:26
slippyd has joined #ruby
00:26
slippyd has quit [Client Quit]
00:27
Beoran__ has quit [Read error: Connection reset by peer]
00:27
Beoran_ has joined #ruby
00:27
pskosinski_ has quit [Quit: Til rivido Idisti!]
00:28
<
IceDragon >
bnagy: I'll be using custom classes that are not scalar's (such as other Vectors, and some other magical classes that I will not speak of)
00:29
shinobi_one has quit [Client Quit]
00:29
Hanmac1 has joined #ruby
00:29
jonathanwallace has quit [Ping timeout: 245 seconds]
00:29
noyb has joined #ruby
00:29
<
IceDragon >
I could do something like this: Array<Vector2> + Array<Vector2>
00:30
Hanmac has quit [Ping timeout: 246 seconds]
00:30
MattStratton has joined #ruby
00:32
GoodTimes has quit []
00:32
MattStratton has quit [Client Quit]
00:32
<
rjhunter >
IceDragon: if you're coding this to learn, cool, but re-implementing matrix and vector arithmetic yourself seems like a waste for production code.
00:33
h0rrorvacui has joined #ruby
00:33
<
IceDragon >
I've already done it before, then after finishing it I realized that ruby had a Vector..
00:34
mr_red has quit [Ping timeout: 272 seconds]
00:34
<
IceDragon >
And I find it fun to re-implement something over and over again, each time finding a new way to solve the same old problem
00:34
<
IceDragon >
its one of the pleasures of being a hobbyist coder
00:35
mansi has joined #ruby
00:35
<
havenwood >
>> class Array; def zip_map array, method; zip(array).map { |pair| pair.inject method } end end; [1, 2, 3].zip_map [2, 3, 4], :+
00:36
falood has joined #ruby
00:37
Shidash has joined #ruby
00:37
jkline has quit [Quit: jkline]
00:38
<
IceDragon >
ahhh :) very nice havenwood, you don't mind if I snatch that do you?
00:39
<
havenwood >
IceDragon: feel free
00:39
<
IceDragon >
heh heh :)
00:40
reset has quit [Quit: Leaving...]
00:40
mikepack_ has joined #ruby
00:41
bradhe has quit [Remote host closed the connection]
00:41
charliesome has quit [Read error: Operation timed out]
00:42
Shidash has quit [Ping timeout: 272 seconds]
00:43
mlpinit has quit [Quit: Leaving...]
00:43
predator217 has joined #ruby
00:43
mikepack has quit [Ping timeout: 246 seconds]
00:44
mrsolo has quit [Quit: This computer has gone to sleep]
00:44
dwgill has joined #ruby
00:44
Vivekananda has joined #ruby
00:44
benlieb has quit [Quit: benlieb]
00:45
mikepack_ has quit [Ping timeout: 245 seconds]
00:46
nateberkopec has joined #ruby
00:46
predator117 has quit [Ping timeout: 272 seconds]
00:46
Solnse has joined #ruby
00:48
zz_tsykoduk is now known as tsykoduk
00:48
bricker has quit [Quit: leaving]
00:48
DropsOfSerenity has joined #ruby
00:48
Kricir has joined #ruby
00:49
MrZYX is now known as MrZYX|off
00:49
dwgill__ has joined #ruby
00:49
dwgill_ has joined #ruby
00:49
thelorax123 has quit [Remote host closed the connection]
00:49
dwgill_ has quit [Remote host closed the connection]
00:49
dwgill__ has quit [Client Quit]
00:49
dwgill has quit [Quit: Leaving]
00:50
dwgill has joined #ruby
00:50
dwgill has quit [Client Quit]
00:50
dwgill has joined #ruby
00:51
nateberkopec has quit [Ping timeout: 252 seconds]
00:51
thelorax123 has joined #ruby
00:54
robustus has quit [Ping timeout: 245 seconds]
00:56
lbwski has joined #ruby
00:56
robustus has joined #ruby
00:56
cameronbarton has quit [Quit: cameronbarton]
00:57
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:58
jonathanwallace has joined #ruby
01:02
sarlalian has quit [Quit: WeeChat 0.4.0]
01:02
sarlalian has joined #ruby
01:04
jkline has joined #ruby
01:05
iliketur_ has joined #ruby
01:05
fgo has joined #ruby
01:06
jibi has quit [Quit: .]
01:06
sparrovv has quit [Quit: sparrovv]
01:07
mark06 has joined #ruby
01:08
emocakes has joined #ruby
01:09
Monie has joined #ruby
01:09
_HolyCow1 has joined #ruby
01:10
blackmesa has quit [Ping timeout: 240 seconds]
01:12
jacobsmith has joined #ruby
01:12
bradhe has joined #ruby
01:12
_HolyCow has quit [Ping timeout: 265 seconds]
01:13
jonathanwallace has quit [Ping timeout: 248 seconds]
01:13
jrhe has quit [Read error: Connection reset by peer]
01:13
jrhe has joined #ruby
01:14
vlad_starkov has joined #ruby
01:14
mark_locklear has joined #ruby
01:14
falood has quit [Remote host closed the connection]
01:15
akonny has quit [Quit: akonny]
01:16
bradhe has quit [Ping timeout: 240 seconds]
01:17
Kricir has quit [Remote host closed the connection]
01:17
Kricir has joined #ruby
01:17
Fezzler has joined #ruby
01:17
zastern has joined #ruby
01:17
rubybot has joined #ruby
01:18
Fezzler has quit [Client Quit]
01:18
iliketur_ has quit [Quit: zzzzz…..]
01:19
lrfurtado2 has joined #ruby
01:19
yfeldblum has joined #ruby
01:19
<
lrfurtado2 >
rot13 test
01:19
bradhe has joined #ruby
01:20
colonolGron has quit [Quit: leaving]
01:20
yfeldblum has quit [Remote host closed the connection]
01:20
paul_k has quit [Remote host closed the connection]
01:20
havenwood has quit [Remote host closed the connection]
01:20
yfeldblum has joined #ruby
01:21
rubybot has quit [Remote host closed the connection]
01:22
havenwood has joined #ruby
01:22
rubybot has joined #ruby
01:23
rubybot has quit [Remote host closed the connection]
01:23
rubybot has joined #ruby
01:24
<
lrfurtado2 >
rot13 lala
01:24
harrymoreno has joined #ruby
01:24
rubybot has quit [Remote host closed the connection]
01:24
charliesome has joined #ruby
01:25
rubybot has joined #ruby
01:25
Vivekananda has quit [Remote host closed the connection]
01:25
<
lrfurtado2 >
rot13 lala
01:25
rubybot has quit [Remote host closed the connection]
01:26
Jetchisel has joined #ruby
01:26
aley has quit [Quit: aley]
01:27
maletor has quit [Quit: Computer has gone to sleep.]
01:27
tsykoduk is now known as zz_tsykoduk
01:27
DonRichie has quit [Ping timeout: 252 seconds]
01:27
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:28
DonRichie has joined #ruby
01:28
endash has joined #ruby
01:28
rubybot has joined #ruby
01:28
emocakes has quit [Read error: Connection reset by peer]
01:28
<
lrfurtado2 >
this is a test
01:28
emocakes has joined #ruby
01:28
jkline has quit [Quit: jkline]
01:28
jrhe has quit [Ping timeout: 245 seconds]
01:29
rubybot has quit [Remote host closed the connection]
01:29
workmad3 has joined #ruby
01:30
mjs2600 has joined #ruby
01:30
cmarques has joined #ruby
01:31
cmarques has quit [Remote host closed the connection]
01:31
joshmyers has quit [Remote host closed the connection]
01:31
cmarques has joined #ruby
01:32
mois3x has joined #ruby
01:32
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
01:32
mois3x has quit [Remote host closed the connection]
01:32
bigoldrock has quit [Ping timeout: 248 seconds]
01:32
talntid has quit []
01:36
dhruvasagar has quit [Ping timeout: 248 seconds]
01:37
bradhe has quit [Remote host closed the connection]
01:37
jkline has joined #ruby
01:38
robbyoconnor has joined #ruby
01:38
AlSquire has quit [Quit: This computer has gone to sleep]
01:38
Lewix has quit [Remote host closed the connection]
01:38
cmarques has quit []
01:39
cmarques has joined #ruby
01:40
<
terrellt >
What is define_instance_method vs define_method?
01:41
rubybot has joined #ruby
01:41
athst has quit [Quit: athst]
01:42
moted has quit [Quit: moted]
01:42
adrock has joined #ruby
01:42
bradhe has joined #ruby
01:42
mrsolo has joined #ruby
01:42
Mars` has quit [Remote host closed the connection]
01:42
<
adrock >
Has anyone looked at this vulnerability: Heap Overflow in Floating Point Parsing (CVE-2013-4164)
01:43
<
adrock >
essentially, a specially crafted string, converted to a float, can cause a heap overflow
01:43
Mars` has joined #ruby
01:43
<
adrock >
I'm trying to think of how I might write a WAF rule to block this
01:43
<
adrock >
vulnerable code looks like this: untrusted_data.to_f
01:44
<
bnagy >
sadly it also works when you JSON.parse crafted floats
01:44
<
adrock >
yep, JSON.parse untrusted_data
01:45
<
adrock >
how might you match on something like this for a WAF rule?
01:45
<
bnagy >
so anything they can post etc which you're going to jsonparse, cookies blah blah
01:45
havenwood has quit [Remote host closed the connection]
01:45
s2013 has joined #ruby
01:45
hiyosi has quit [Read error: Operation timed out]
01:45
<
adrock >
pretty much, anything is vuln
01:46
Kricir has quit [Remote host closed the connection]
01:46
havenwood has joined #ruby
01:46
<
bnagy >
I can't think of any approach for a waf that's even vaguely reasonable :/
01:46
<
adrock >
prolly more common when accepting JSON
01:46
<
bnagy >
upgrade interpreter
01:46
<
bnagy >
or rip that dangerous behaviour
01:46
vlad_starkov has quit [Read error: Connection reset by peer]
01:47
<
bnagy >
or block \d+\.\d+ XD
01:47
cmarques has quit []
01:47
<
adrock >
hmm, never thought of that
01:47
<
bnagy >
and then get owned by encoding tricks :(
01:47
aspires has joined #ruby
01:47
nateberkopec has joined #ruby
01:47
cmarques has joined #ruby
01:48
Mars` has quit [Ping timeout: 272 seconds]
01:48
<
bnagy >
jruby isn't vuln afaik
01:48
Reach has joined #ruby
01:49
lbwski has quit [Ping timeout: 252 seconds]
01:49
rubybot has quit [Remote host closed the connection]
01:49
valesk has joined #ruby
01:49
markvilla has joined #ruby
01:50
havenwood has quit [Ping timeout: 245 seconds]
01:50
cmarques has quit [Remote host closed the connection]
01:50
lethjakman has quit [Ping timeout: 252 seconds]
01:52
nateberkopec has quit [Ping timeout: 272 seconds]
01:53
markvilla has quit [Client Quit]
01:53
mojjojo has joined #ruby
01:54
havenwood has joined #ruby
01:55
jonathanwallace has joined #ruby
01:55
mark06 has left #ruby [#ruby]
01:56
mark_locklear has quit [Ping timeout: 252 seconds]
01:57
rubybot has joined #ruby
01:59
awpti_ has quit [Ping timeout: 245 seconds]
02:00
iliketur_ has joined #ruby
02:00
awpti_ has joined #ruby
02:00
mjs2600 has quit [Remote host closed the connection]
02:00
DrShoggoth has quit [Read error: Connection reset by peer]
02:00
rubybot has quit [Remote host closed the connection]
02:01
ravster has joined #ruby
02:02
bradhe has quit [Remote host closed the connection]
02:02
hiyosi has joined #ruby
02:04
motto has quit [Quit: Sto andando via]
02:04
DropsOfSerenity has joined #ruby
02:05
CripperZ is now known as N00D
02:07
stringoO has joined #ruby
02:08
mrsolo has quit [Quit: This computer has gone to sleep]
02:09
ephemerian has quit [Quit: Leaving.]
02:10
Lobster_ has quit [Quit: Lobster_]
02:11
rubybot has joined #ruby
02:11
rubybot has quit [Remote host closed the connection]
02:12
purdy has joined #ruby
02:13
rubybot has joined #ruby
02:13
rubybot has quit [Remote host closed the connection]
02:14
rubybot has joined #ruby
02:14
zastern has quit []
02:14
Es0teric has quit [Ping timeout: 272 seconds]
02:14
paolooo has joined #ruby
02:14
vlad_starkov has joined #ruby
02:15
Thana` has joined #ruby
02:15
lbwski has joined #ruby
02:15
ItSANgo has quit [Quit: Leaving...]
02:16
iliketur_ has quit [Quit: zzzzz…..]
02:17
Kricir has joined #ruby
02:17
rubybot has quit [Remote host closed the connection]
02:17
Es0teric has joined #ruby
02:17
Voodoofish4301 has quit [Quit: Leaving.]
02:17
Es0teric has quit [Max SendQ exceeded]
02:17
mojjojo has quit [Quit: mojjojo]
02:17
randomnick_ has quit [Quit: Leaving]
02:18
Es0teric has joined #ruby
02:18
emocakes has quit [Quit: Leaving...]
02:20
stringoO has quit [Quit: stringoO]
02:20
Solnse has quit [Ping timeout: 252 seconds]
02:22
rubybot has joined #ruby
02:22
rubybot has quit [Remote host closed the connection]
02:23
rubybot has joined #ruby
02:23
rubybot has quit [Remote host closed the connection]
02:24
rubybot has joined #ruby
02:25
rubybot has quit [Remote host closed the connection]
02:25
realDAB has joined #ruby
02:25
rubybot has joined #ruby
02:25
<
RubyPanther >
well, all input should be parsed, rather than being converted
02:25
<
RubyPanther >
IMO those would all be bugs already even without the exploit
02:26
DropsOfSerenity has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
02:26
<
RubyPanther >
File that under "are you sure you didn't know better?"
02:26
rubybot has quit [Remote host closed the connection]
02:27
DropsOfSerenity has joined #ruby
02:27
kevind has quit [Quit: kevind]
02:27
rubybot has joined #ruby
02:27
rubybot has quit [Remote host closed the connection]
02:27
realDAB has quit [Client Quit]
02:28
nobitanobi has quit [Ping timeout: 245 seconds]
02:28
DropsOfSerenity has quit [Read error: Connection reset by peer]
02:29
DropsOfSerenity has joined #ruby
02:30
rubybot has joined #ruby
02:30
<
rubybot >
TWITTER: <lrfurtado2> #rubylang lala
02:30
mojjojo has joined #ruby
02:30
Tearan has quit [Read error: Connection reset by peer]
02:30
mojjojo has quit [Client Quit]
02:30
rubybot has quit [Remote host closed the connection]
02:31
falood has joined #ruby
02:31
DropsOfSerenity has quit [Read error: Connection reset by peer]
02:31
zz_jrhorn424 is now known as jrhorn424
02:32
jaimef has quit [Excess Flood]
02:33
jaimef has joined #ruby
02:33
adkron has joined #ruby
02:35
rubybot has joined #ruby
02:36
rubybot has quit [Remote host closed the connection]
02:37
ewnd9 has joined #ruby
02:37
lbwski has quit [Ping timeout: 272 seconds]
02:39
nfk has quit [Ping timeout: 252 seconds]
02:39
evenix has joined #ruby
02:39
burlyscudd1 has quit [Quit: Leaving.]
02:43
jacobsmith has quit [Ping timeout: 246 seconds]
02:45
emocakes has joined #ruby
02:46
nowthatsamatt has quit [Quit: nowthatsamatt]
02:46
vlad_starkov has quit [Read error: Connection reset by peer]
02:46
nateberkopec has joined #ruby
02:48
eka has quit [Quit: Computer has gone to sleep.]
02:49
araujo has quit [Read error: Connection reset by peer]
02:50
jkline has quit [Quit: jkline]
02:50
braincra- has joined #ruby
02:50
araujo has joined #ruby
02:52
nateberkopec has quit [Ping timeout: 272 seconds]
02:53
braincrash has quit [Ping timeout: 272 seconds]
02:54
Mars` has joined #ruby
02:54
yfeldblum has quit [Remote host closed the connection]
02:56
noyb has quit [Ping timeout: 246 seconds]
02:56
ravster has quit [Quit: Leaving.]
02:56
phinfonet has quit [Quit: exitiing]
02:57
Hanmac has joined #ruby
02:58
Mars` has quit [Ping timeout: 240 seconds]
02:59
Hanmac1 has quit [Ping timeout: 252 seconds]
03:00
smathieu has quit [Remote host closed the connection]
03:00
smathieu has joined #ruby
03:00
iliketur_ has joined #ruby
03:00
ixti has quit [Quit: WeeChat 0.4.2]
03:01
havenwood has quit [Read error: Connection reset by peer]
03:01
robbyoconnor has quit [Ping timeout: 245 seconds]
03:01
IceDragon has quit [Quit: Space~~~]
03:01
havenwood has joined #ruby
03:02
robbyoconnor has joined #ruby
03:02
noob101 has joined #ruby
03:02
aspires has quit []
03:02
<
noob101 >
What is the shortcut to comment out code?
03:03
<
valesk >
at least in sublime
03:04
<
noob101 >
notepad++
03:04
<
havenwood >
same in textmate
03:04
<
noob101 >
I am using any suggestions?
03:04
<
valesk >
probably the same then
03:04
<
valesk >
highlight and ctrl+/
03:04
<
valesk >
otherwise it's in your preferences or settings somewhere
03:04
smathieu has quit [Ping timeout: 246 seconds]
03:05
<
noob101 >
its not working
03:05
<
noob101 >
what preferences where can i look
03:05
evenix has quit [Remote host closed the connection]
03:05
<
valesk >
Try ctrl+q
03:06
<
noob101 >
valesk ur the man
03:06
<
noob101 >
thanks man
03:07
<
valesk >
I've got a question for you ruby fellas
03:07
<
valesk >
is .to_a specifically for creating numerical strings?
03:07
<
valesk >
and .split for text?
03:08
<
bnagy >
eh? how does to_a create 'numerical strings'?
03:08
<
valesk >
Uhhh I mean
03:08
rjhunter has quit [Remote host closed the connection]
03:08
<
valesk >
(0..9).to_a
03:09
FCrick has joined #ruby
03:09
<
bnagy >
to_a will work on all enumerators and a few other things as well
03:09
<
bnagy >
>> ('a'..'c').to_a
03:09
ItSANgo has joined #ruby
03:09
<
bnagy >
nothing to do with numbers
03:10
voodootaco has quit [Quit: Leaving]
03:11
<
valesk >
For some reason that didn't click, okay gotcha.
03:13
ldnunes has quit [Quit: Leaving]
03:13
xk_id has quit [Quit:
03:14
serp` has joined #ruby
03:14
serp` has quit [Client Quit]
03:15
vlad_starkov has joined #ruby
03:16
xk_id has joined #ruby
03:16
smathieu has joined #ruby
03:17
bean has joined #ruby
03:19
Davey has joined #ruby
03:19
_maes_ has joined #ruby
03:20
radic has quit [Disconnected by services]
03:20
radic_ has joined #ruby
03:21
ewnd9 has quit [Ping timeout: 245 seconds]
03:22
estebistec has joined #ruby
03:22
smathieu has quit [Remote host closed the connection]
03:23
smathieu has joined #ruby
03:23
thelorax123 has quit [Remote host closed the connection]
03:25
thelorax123 has joined #ruby
03:25
lukec has quit [Quit: lukec]
03:27
smathieu has quit [Ping timeout: 246 seconds]
03:30
rien has quit [Ping timeout: 246 seconds]
03:31
macmartine has joined #ruby
03:32
rubybot has joined #ruby
03:33
rubybot has quit [Remote host closed the connection]
03:33
jkhwan has quit [Remote host closed the connection]
03:34
jkhwan has joined #ruby
03:35
noob101 has quit [Ping timeout: 250 seconds]
03:36
Vivekananda has joined #ruby
03:38
adkron has quit [Ping timeout: 246 seconds]
03:38
alvaro_o has quit [Quit: Ex-Chat]
03:38
jkhwan has quit [Ping timeout: 272 seconds]
03:39
reset has joined #ruby
03:39
emocakes has quit [Quit: Leaving...]
03:39
freerobby has joined #ruby
03:40
Lewix has joined #ruby
03:40
Lewix has joined #ruby
03:40
Lewix has quit [Changing host]
03:41
araujo has quit [Quit: Leaving]
03:41
Lewix has quit [Remote host closed the connection]
03:44
robbyoconnor has quit [Ping timeout: 245 seconds]
03:45
postmodern has quit [Quit: Leaving]
03:45
Lewix has joined #ruby
03:46
postmodern has joined #ruby
03:46
havenwood has quit [Remote host closed the connection]
03:46
lmickh has joined #ruby
03:46
zerign has joined #ruby
03:46
vlad_starkov has quit [Read error: Connection reset by peer]
03:46
tweetbot198 has joined #ruby
03:46
emocakes has joined #ruby
03:46
tweetbot198 has quit [Remote host closed the connection]
03:46
havenwood has joined #ruby
03:46
nateberkopec has joined #ruby
03:48
adkron has joined #ruby
03:48
tweetbot94 has joined #ruby
03:49
kcombs has quit [Remote host closed the connection]
03:49
havenwood has quit [Read error: Connection reset by peer]
03:51
blandflakes has quit [Disconnected by services]
03:51
nateberkopec has quit [Ping timeout: 272 seconds]
03:52
fgo has quit [Remote host closed the connection]
03:52
estebistec has quit [Remote host closed the connection]
03:53
tweetbot94 has quit [Remote host closed the connection]
03:54
rubybot has joined #ruby
03:55
ewnd9 has joined #ruby
03:56
fflush has quit [Changing host]
03:56
fflush has joined #ruby
03:56
rezzack has quit [Ping timeout: 245 seconds]
03:56
burlyscudd has joined #ruby
03:57
Solnse has joined #ruby
03:59
nari_ has joined #ruby
04:01
purdy has quit [Ping timeout: 260 seconds]
04:01
lethjakman has joined #ruby
04:02
burlyscudd has quit [Quit: Leaving.]
04:03
reset has quit [Quit: Leaving...]
04:03
lrfurtado2 has quit [Quit: Leaving]
04:03
reset has joined #ruby
04:04
stevenhaddox has quit []
04:07
tkuchiki has joined #ruby
04:08
reset has quit [Ping timeout: 272 seconds]
04:09
matheuscaceres has joined #ruby
04:09
Lewix has quit [Quit: Leaving...]
04:09
Lewix has joined #ruby
04:09
Lewix has quit [Client Quit]
04:09
rjhunter has joined #ruby
04:10
Lewix has joined #ruby
04:11
paul_k has joined #ruby
04:11
rubybot has quit [Remote host closed the connection]
04:12
clop2 has joined #ruby
04:12
<
clop2 >
any recommendations for a basic lexer/parser library to use?
04:13
<
clop2 >
(for writing a new language)
04:13
orionstein_away is now known as orionstein
04:14
zerign has quit [Read error: Connection reset by peer]
04:14
iliketur_ has quit [Quit: zzzzz…..]
04:14
zerign has joined #ruby
04:14
vlad_starkov has joined #ruby
04:14
rjhunter has quit [Ping timeout: 272 seconds]
04:15
iliketur_ has joined #ruby
04:15
rubybot has joined #ruby
04:16
smathieu has joined #ruby
04:16
<
rubybot >
TWITTER: <lrfurtado2> #rubylang lala2
04:17
charliesome has quit [Ping timeout: 245 seconds]
04:17
cordoval has joined #ruby
04:17
<
cordoval >
anyone knows why after doing gem install bundler and installing rbenv i still get bundle not found?
04:17
heidi has quit [Quit: Leaving.]
04:17
rjhunter has joined #ruby
04:19
freerobby has quit [Quit: Leaving.]
04:20
charliesome has joined #ruby
04:22
rjhunter has quit [Ping timeout: 272 seconds]
04:23
fgo has joined #ruby
04:23
funburn has joined #ruby
04:23
smathieu has quit [Remote host closed the connection]
04:23
<
postmodern >
cordoval, you have to run `rbenv rehash` after everytime you install something
04:23
orionstein is now known as orionstein_away
04:23
zerign has quit [Quit: Leaving]
04:24
smathieu has joined #ruby
04:27
fgo has quit [Ping timeout: 265 seconds]
04:27
zz_tsykoduk is now known as tsykoduk
04:28
smathieu has quit [Ping timeout: 246 seconds]
04:30
Vivekananda has quit [Read error: Connection reset by peer]
04:31
<
cordoval >
postmodern: i did
04:31
<
cordoval >
still it does not find it
04:31
<
cordoval >
zsh: command not found: bundle
04:32
<
postmodern >
cordoval, did you add ~/.rbenv/shims to PATH like the README instructs?
04:33
Kricir has quit [Remote host closed the connection]
04:34
bradhe has joined #ruby
04:35
paolooo has quit [Ping timeout: 250 seconds]
04:35
macmartine has quit [Remote host closed the connection]
04:36
R33C3 has joined #ruby
04:37
tsykoduk is now known as zz_tsykoduk
04:37
noop has joined #ruby
04:38
paolooo has joined #ruby
04:39
julian-delphiki has joined #ruby
04:39
bean__ has joined #ruby
04:40
<
cordoval >
export RBENV_ROOT=/usr/local/var/rbenv
04:40
<
cordoval >
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
04:40
<
cordoval >
postmodern: i added these two
04:40
bean__ has quit [Changing host]
04:40
bean__ has joined #ruby
04:40
fschuindt has joined #ruby
04:40
matheuscaceres has quit [Quit: matheuscaceres]
04:40
<
shevy >
we need a ruby-alike shell that can compete with bash and zsh
04:41
<
jrhorn424 >
shevy i was just thinking that last week. seen any promising projects?
04:41
bean has quit [Ping timeout: 240 seconds]
04:42
<
cordoval >
i installed it with brew
04:42
<
postmodern >
shevy, there's rush and fresh
04:42
<
postmodern >
cordoval, skip step 1
04:42
<
cordoval >
i am sorry i don't follow your last comments, can you please help me fix this install that was done with brew?
04:42
capicue has quit [Quit: Leaving...]
04:42
<
cordoval >
so i do step 2 of this even though it was installed with brew?
04:43
tharindu has joined #ruby
04:43
Kricir has joined #ruby
04:43
bean__ is now known as bean
04:43
yfeldblum has joined #ruby
04:43
<
shevy >
jrhorn424 nope, only "ruby shells" but the syntax is annoying compared to bash and zsh
04:44
julian-delphiki has quit [Ping timeout: 252 seconds]
04:44
<
shevy >
myproj['**/*.rb'].search(/^\s*class/).lines.size <--- example in rush
04:44
<
shevy >
find myproj -name \*.rb | xargs grep '^\s*class' | wc -l <--- shell equivalent
04:44
vpretzel has quit [Quit: Adios!]
04:44
<
shevy >
both are awful
04:45
<
jrhorn424 >
any project would have a long way to catch up to old terminals, one would think. then there's pry, and that fancy new fish shell and hterm.
04:45
<
shevy >
fish has some cool ideas
04:45
yfeldblum has quit [Remote host closed the connection]
04:45
<
jrhorn424 >
so i'm not sure whether to be optimistic or not.
04:45
<
shevy >
I like that they want to be more newbie friendly
04:45
<
shevy >
never heard of hterm before
04:46
yfeldblum has joined #ruby
04:46
<
jrhorn424 >
i believe it's integrated with webkit
04:46
Solnse has quit [Ping timeout: 252 seconds]
04:46
<
jrhorn424 >
style your term with CSS or something. render images natively. kinda neat.
04:46
nateberkopec has joined #ruby
04:46
vlad_starkov has quit [Read error: Connection reset by peer]
04:48
sam113101 has joined #ruby
04:48
<
shevy >
a javascript console?
04:48
nateberkopec has quit [Read error: Connection reset by peer]
04:48
JJMalina has joined #ruby
04:48
jacobsmith has joined #ruby
04:49
<
jrhorn424 >
that's right, my mistake
04:50
macmartine has joined #ruby
04:51
lukec has joined #ruby
04:51
ppppaul has joined #ruby
04:51
evenix has joined #ruby
04:51
jrhorn424 is now known as zz_jrhorn424
04:53
fgo has joined #ruby
04:53
JJMalina has quit [Ping timeout: 272 seconds]
04:55
<
shevy >
I did not know that webkit comes with its own shell
04:55
noop has quit [Ping timeout: 272 seconds]
04:55
<
shevy >
CSS is pretty cool
04:55
<
cordoval >
postmodern: :(
04:55
noop has joined #ruby
04:55
<
shevy >
Imagine if I would run a shell, both either as a window in xorg-server, or in my browser for my own use. that would be awesome
04:55
h0rrorvacui has quit [Quit: Leaving]
04:56
tharindu has quit [Read error: Connection reset by peer]
04:56
burlyscudd has joined #ruby
04:57
joshwines_ has quit [Ping timeout: 245 seconds]
04:57
nari_ has quit [Read error: Operation timed out]
04:57
lukec has quit [Quit: lukec]
04:57
bradhe has quit [Remote host closed the connection]
04:58
tharindu has joined #ruby
04:58
Vivekananda has joined #ruby
04:59
Kricir has quit [Remote host closed the connection]
04:59
Astralum has quit [Read error: Connection reset by peer]
04:59
tommyvyo has joined #ruby
05:00
Astralum has joined #ruby
05:00
burlyscudd has quit [Ping timeout: 246 seconds]
05:01
macmartine has quit [Remote host closed the connection]
05:01
capicue has joined #ruby
05:01
emocakes has quit [Quit: Leaving...]
05:03
Davey has quit [Quit: Computer has gone to sleep.]
05:03
decoponio has joined #ruby
05:03
Davey has joined #ruby
05:04
bradhe has joined #ruby
05:05
lukec has joined #ruby
05:06
Nilium has quit [Ping timeout: 246 seconds]
05:07
Nilium has joined #ruby
05:10
Vivekananda has quit [Ping timeout: 240 seconds]
05:11
paul_k has quit [Remote host closed the connection]
05:11
fgo has quit [Remote host closed the connection]
05:11
noop has quit [Ping timeout: 246 seconds]
05:12
BraddPitt has joined #ruby
05:12
fgo has joined #ruby
05:12
BraddBitt has quit [Ping timeout: 245 seconds]
05:13
N00D is now known as CripperZ
05:14
endash has quit [Quit: endash]
05:14
iliketur_ has quit [Quit: zzzzz…..]
05:14
<
shevy >
how do I get the type of an entry in /dev ?
05:15
<
shevy >
example, there is /dev/vcsa
05:15
<
shevy >
File.file? 'vcsa' # => false
05:15
ewnd9 has quit [Remote host closed the connection]
05:15
<
shevy >
File.directory? 'vcsa' # => false
05:15
<
shevy >
File.ftype 'vcsa' # => "characterSpecial"
05:15
vlad_starkov has joined #ruby
05:16
ewnd9 has joined #ruby
05:17
jkline has joined #ruby
05:17
<
valesk >
I need halp I"m a scrubadubdub
05:17
smathieu has joined #ruby
05:17
Vivekananda has joined #ruby
05:18
Kricir has joined #ruby
05:18
<
shevy >
what is a scrubaduba
05:18
tharindu has quit [Quit: Leaving...]
05:18
CripperZ is now known as N00D
05:18
rjhunter has joined #ruby
05:18
<
valesk >
Scrub-uh-dub-dub
05:19
<
valesk >
Explained in the editor
05:19
<
valesk >
I'm extremely unaware of how to access another hashes info within a hash.
05:19
adkron has quit [Ping timeout: 272 seconds]
05:20
heidi has joined #ruby
05:20
<
shevy >
wow... there is a haskell shell called "hell"
05:20
noop has joined #ruby
05:20
<
bnagy >
EXTREME UNAWARENESS
05:20
<
valesk >
EXTREMEEEEEEEEE
05:21
slash_nick is now known as slash_bro
05:21
<
valesk >
I'm not just unaware.. I'm extremely unaware.
05:21
<
valesk >
Are you aware?
05:21
<
bnagy >
hsh[:a][:b][:thing]
05:21
<
shevy >
valesk I dont get it. can't you simplify... you have 3 hashes, now you want to rearrange them or build a new one right?
05:21
jkhwan has joined #ruby
05:21
tommyvyo has quit [Read error: No route to host]
05:22
<
shevy >
yeah... params is your aggregate hash
05:22
<
shevy >
simply reshuffle the data, valesk as bnagy showed you, [] is used to access a key, and []= is used to set/assign a key
05:22
<
shevy >
there is also .merge or .update I think
05:22
robbyoconnor has joined #ruby
05:22
<
shevy >
hash[key] = value
05:22
<
shevy >
hash[key1][key2] = value
05:23
jkhwan has quit [Remote host closed the connection]
05:23
rjhunter has quit [Ping timeout: 252 seconds]
05:23
jkhwan has joined #ruby
05:24
tharindu has joined #ruby
05:25
tommyvyo has joined #ruby
05:27
<
shevy >
valesk you must read how to use hashes in ruby
05:27
<
valesk >
Yeah I'm trying to figure it out.
05:27
<
shevy >
if :foo confuses you, you can think of it as 'foo' too
05:28
jkhwan has quit [Ping timeout: 272 seconds]
05:28
<
shevy >
>> hash = {}; hash[:foo] = 'valesk is gonna rock the house'; hash[:foo]
05:28
noop has quit [Ping timeout: 246 seconds]
05:28
<
shevy >
>> hash = {}; hash[:foo][:bar] = 'valesk is gonna rock the house'; hash[:foo][:bar]
05:28
d4heyDU has joined #ruby
05:29
Kricir has quit [Remote host closed the connection]
05:29
noop has joined #ruby
05:29
<
shevy >
>> hash = {}; hash[:foo] = {}; hash[:foo][:bar] = 'valesk is gonna rock the house'; hash[:foo][:bar]
05:29
<
shevy >
valesk, apparently you need the first :foo to return a hash too, so you have a hash inside a hash
05:29
hamakn has joined #ruby
05:29
tharindu has quit [Ping timeout: 264 seconds]
05:30
<
shevy >
in irb you can use pp hash to show the proper datastructure of your hash very conveniently
05:30
funburn has quit [Quit: funburn]
05:30
<
valesk >
This is great! Thank you all. I'll report my outcome in a bit.
05:31
<
valesk >
Following that railstutorial and doing the exercises. You all deserve cake for explaining things.
05:34
Davey has quit [Quit: Computer has gone to sleep.]
05:35
jonathanwallace has quit [Ping timeout: 245 seconds]
05:35
lukec has quit [Quit: lukec]
05:35
ylluminate has joined #ruby
05:36
fgo has quit [Remote host closed the connection]
05:36
jacobsmith has quit [Ping timeout: 245 seconds]
05:37
kevind has joined #ruby
05:38
bmock has joined #ruby
05:38
bmock is now known as saikobee
05:38
saikobee is now known as bmock
05:38
bmock has left #ruby [#ruby]
05:40
kevind has quit [Client Quit]
05:41
s2013 has quit [Ping timeout: 272 seconds]
05:42
Lewix has quit [Remote host closed the connection]
05:43
xue has joined #ruby
05:44
unstable has joined #ruby
05:45
unstable has left #ruby [#ruby]
05:46
vlad_starkov has quit [Read error: Connection reset by peer]
05:46
nateberkopec has joined #ruby
05:47
robbyoconnor has quit [Quit: Konversation terminated!]
05:48
ppppaul has quit [Ping timeout: 246 seconds]
05:49
tharindu has joined #ruby
05:50
maek has joined #ruby
05:51
halfie has joined #ruby
05:51
sam113101 has quit [Quit: WeeChat 0.4.2]
05:51
lukec has joined #ruby
05:51
xk_id has quit [Quit:
05:52
iajrz_ has joined #ruby
05:52
nateberkopec has quit [Ping timeout: 272 seconds]
05:52
<
maek >
Is RubyConstant being used?
05:52
<
maek >
in test_constants_become_symbols?
05:52
xk_id has joined #ruby
05:54
tharindu has quit [Ping timeout: 272 seconds]
05:55
Es0teric has quit [Quit: Computer has gone to sleep.]
05:56
mesamoo has joined #ruby
05:57
burlyscudd has joined #ruby
05:58
noop has quit [Ping timeout: 264 seconds]
05:58
noop has joined #ruby
05:59
bugsinlights has joined #ruby
06:00
jonathanwallace has joined #ruby
06:01
zz_scottstamp is now known as scottstamp
06:01
Apane has quit [Ping timeout: 246 seconds]
06:01
burlyscudd has quit [Ping timeout: 272 seconds]
06:02
Kricir has joined #ruby
06:03
lethjakman has quit [Ping timeout: 264 seconds]
06:04
lethjakman has joined #ruby
06:05
dzhulk has joined #ruby
06:05
<
shevy >
when I have a big project... is there a simply way to find out where "def foo" was defined in?
06:05
jonathanwallace has quit [Ping timeout: 241 seconds]
06:06
<
shevy >
maek I dont know what these test-methods do. apparently it is passed in this: assert_equal __(true), all_symbols_as_strings.include?(__("RubyConstant")), as a string
06:06
<
maek >
shevy: so the Symbols.all_symbols is the key. its showing that the RubyConstant is actually store as a symbol
06:06
<
shevy >
valesk, can you please add questions in #ruby and not in PRIVMSG?
06:07
<
maek >
shevy: thank you for looking :D
06:07
cordoval has quit []
06:07
<
shevy >
valesk the reason is that I must click on the privmsg/query, and then again to #ruby, which makes 2 extra clicks, compared to 0 extra clicks here in #ruby
06:07
<
valesk >
Must be quite the finger workout. I didn't wanna flood the channel due to my limited understanding.
06:07
R33C3 has quit [Read error: Connection reset by peer]
06:07
R33C3 has joined #ruby
06:08
<
shevy >
no, you can just link the pastie here
06:08
iliketur_ has joined #ruby
06:08
<
shevy >
it's an awful pastie site
06:08
<
shevy >
I can not copy paste your code! :(
06:08
arietis has joined #ruby
06:09
<
shevy >
valesk can you give the desired output of the hash
06:09
<
valesk >
Directions are in the comments at the bottom.
06:09
<
shevy >
I dont understand these :)
06:09
BizarreCake has joined #ruby
06:10
<
shevy >
I have no idea where :father and :child come from
06:10
<
shevy >
you basically have 3 hashes, that have the names of some person
06:10
<
valesk >
It's just an exercise probably trying to teach me nested hashes?
06:10
<
shevy >
there is nothing special about nested hashes
06:10
<
valesk >
I'm just running an exercise from railstutorial and would like to do it the way he's asking.
06:11
<
shevy >
a hash in a hash you still access with []
06:11
scottstamp is now known as zz_scottstamp
06:11
<
shevy >
ok let me ask valesk
06:11
<
shevy >
valesk, do you use irb ?
06:12
<
shevy >
ok start it
06:12
maek has left #ruby [#ruby]
06:12
<
shevy >
copy paste the three Person hashes in it
06:12
<
shevy >
then do: Person1.keys # => [:first, :last]
06:12
<
shevy >
now you know how to obtain the keys from a hash
06:12
mansi has quit [Remote host closed the connection]
06:12
<
shevy >
when you create the params hash, populate it
06:12
<
shevy >
params[:father] = Person1,
06:12
smathieu has quit [Remote host closed the connection]
06:13
<
shevy >
params[:father] = Person1
06:13
<
shevy >
without the ,
06:13
<
RubyPanther >
omg, everything is an object! it is like unix, but prettier.
06:13
<
shevy >
params[:mother] = Person2
06:13
<
shevy >
now you have your pointers
06:13
<
valesk >
The only problem I was having is the params[:father] being populated
06:13
<
valesk >
that's all it takes?
06:13
smathieu has joined #ruby
06:13
<
shevy >
do: p params
06:13
<
shevy >
once you populated it
06:13
<
valesk >
my god I've been overthinking this.
06:14
thenickperson has joined #ruby
06:14
<
shevy >
a hash is nothing other than key->value datastructure
06:14
<
shevy >
even when it is nested, it's still that way
06:14
alexparker has joined #ruby
06:14
<
shevy >
but deeply nested hashes suck
06:14
Kricir has quit [Remote host closed the connection]
06:15
<
valesk >
So that was a nested hash right?
06:15
<
RubyPanther >
everything is a member of a set, even a set.
06:15
nari_ has joined #ruby
06:15
vlad_starkov has joined #ruby
06:15
<
shevy >
RubyPanther is a member of the set cat-family
06:15
<
shevy >
and of the subset zenspider-enemies
06:15
<
valesk >
God damn, I now want to throw things out the window.
06:15
<
valesk >
Thanks shevy, my bad for the PM
06:16
<
RubyPanther >
I was in the forest today in panther country, but I didn't get eaten.
06:16
<
alexparker >
does attr_accessor not allow you to use the setter within the class?
06:16
<
shevy >
valesk this happens when the brain does not find the easy solution, it goes round and round, happens to me a lot too
06:16
<
thenickperson >
@alexparker you should be able to
06:16
<
shevy >
alexparker what do you mean. attr_accessor :foo is the same as doing "def foo" etc... so sure it works
06:17
<
shevy >
valesk that's why I try to keep hashes simple and not too nested, otherwise I confuse myself
06:17
<
valesk >
Confusion is no good.
06:17
<
valesk >
Is there a reason I cannot access params[:father][:first][:last]? I can access params[:father][:first] just fine.
06:18
smathieu has quit [Ping timeout: 265 seconds]
06:18
<
valesk >
Just returns nil
06:18
osvico has quit [Ping timeout: 246 seconds]
06:18
<
shevy >
alexparker you must try to understand the ruby parser
06:18
<
shevy >
alexparker in your method you do this: quantity = difference
06:19
<
shevy >
alexparker the parser thinks you want to use a local variable quantity here
06:19
<
shevy >
if you preprend self.quantity, it becomes explicit
06:19
rjhunter has joined #ruby
06:20
<
alexparker >
shevy i love you
06:20
<
alexparker >
thank you
06:20
<
shevy >
or, you avoid = here
06:20
<
shevy >
then you would call a method called quantity()
06:20
<
shevy >
but I guess you don't want that as it also is a getter here, without accepting arguments
06:20
<
alexparker >
but quantity() is only available if i define it right?
06:20
<
shevy >
I am very oldschool, I often used set_quantity in such cases :\
06:21
osvico has joined #ruby
06:21
<
alexparker >
haha ok cool
06:21
<
shevy >
but you did that with attr_accessor already
06:21
<
shevy >
attr_accessor combines attr_writer and attr_reader
06:21
<
shevy >
valesk well
06:22
<
shevy >
valesk ask yourself whether this could work
06:22
<
shevy >
params[:father][:first][:last]
06:22
<
shevy >
params[:father][:first]
06:22
R33C3 has quit [Remote host closed the connection]
06:22
<
valesk >
First name.
06:22
<
alexparker >
but attr_writer creates the method def quantity=()
06:22
rippa has joined #ruby
06:22
<
alexparker >
quantity=(arg)
06:22
<
alexparker >
not quantity(arg)
06:22
<
alexparker >
right?
06:22
<
shevy >
valesk, no that is not the answer.. let me ask more correctly. what exactly does this give you, what kind of object?
06:23
fgo has joined #ruby
06:23
<
shevy >
valesk you can find out the type by doing .class method on that result
06:23
<
shevy >
yeah alexparker
06:23
thenickperson has quit [Quit: Page closed]
06:23
<
shevy >
alexparker it's always best to ask whether you need such simple methods
06:23
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
06:23
<
shevy >
for getters, I often do it
06:23
<
shevy >
but for writers, I sometimes need more complicated methods that do sanity checks before
06:24
lethjakm1 has joined #ruby
06:24
<
valesk >
shevy: a string, fine sir
06:24
<
shevy >
def quantity=(i); i = DEFAULT_VALUE if i.nil?; @quantity = i; end
06:24
rjhunter has quit [Ping timeout: 264 seconds]
06:24
lethjakman has quit [Ping timeout: 264 seconds]
06:24
<
shevy >
valesk ok. then you have a string here, not a hash, yes?
06:24
<
shevy >
so calling [:last] on your string object makes not much sense
06:24
tommyvyo has quit [Read error: Connection reset by peer]
06:24
tommyvyo has joined #ruby
06:24
tommyvyo has joined #ruby
06:24
tommyvyo has quit [Changing host]
06:25
<
shevy >
string objects have the [] method but it works differently
06:25
<
shevy >
>> string = 'abc'; string[1,1]
06:25
xk_id has quit [Quit:
06:25
<
shevy >
valesk for this to work, you would have to change your data structure to return a hash there, when doing: params[:father][:first]
06:26
<
shevy >
but I wonder about the point of that
06:26
<
shevy >
because [:first] should return a string right?
06:26
<
shevy >
so it makes no sense to want to return a hash here
06:26
codeFiend has quit [Quit: codeFiend]
06:26
<
shevy >
:first should be the first name of the father, a string. not a sub-hash
06:27
lfox has quit [Quit: ZZZzzz…]
06:27
<
valesk >
Meaning the exercise doesn't make sense to tell me to do that?
06:27
<
shevy >
this makes absolutely no sense
06:27
xk_id has joined #ruby
06:27
<
shevy >
how many fathers do you have?
06:28
<
shevy >
params[:father][:first][:last]
06:28
<
shevy >
and what should this return anyway
06:28
machi has joined #ruby
06:28
xk_id has quit [Client Quit]
06:28
<
shevy >
I even doubt this is part of the exercise!
06:28
<
valesk >
Lol, I was just curious as to why it wouldn't work.
06:28
<
valesk >
Never asked me to do it.
06:28
<
valesk >
And you helped me! Yet again!
06:29
kiesow has joined #ruby
06:29
<
shevy >
in ruby there are really only 3 main data objects you should know
06:29
<
shevy >
Array, String, Hash
06:29
<
shevy >
that's 90% of ruby
06:29
<
shevy >
symbols like :foo are just a bit string-like
06:30
<
valesk >
Sending you bitcoins
06:30
<
valesk >
Feed me knowledge
06:30
<
shevy >
but they are unique and thus take less memory when ruby uses them, whereas strings are always different objects, with different .object_id
06:30
<
shevy >
no that's important, people often wonder about symbols and are curious, but symbols are boring
06:30
<
shevy >
best forget that they are cool. they suck
06:30
<
shevy >
strings on the other hand are cool
06:31
<
shevy >
I am working through a rails tutorial :(
06:31
Macaveli has joined #ruby
06:32
<
shevy >
"bundle install" must be the slowest thing that has ever been written in ruby...
06:32
smathieu has joined #ruby
06:32
<
jalcine >
1.5 has parallel installation support
06:33
<
rubybot >
TWITTER: <y0t4> %w[ ] みたいなやつ、ruby2.0.0からでした。サーバの方がruby1.9.3だったので$ sudo rbenv install 2.0.0-p0実行してローカルと環境を同じに。 #okidevops
06:35
paolooo has quit [Quit: Page closed]
06:35
nisstyre has quit [Quit: Leaving]
06:36
<
shevy >
jalcine what is that? the "parallel installation support"
06:36
<
shevy >
rubybot stop spamming
06:37
mengu has joined #ruby
06:40
<
jalcine >
shevy: like it'd install multiple gems at the same time
06:41
<
jalcine >
makes sense since the resolution of gem deps are done before the fetching
06:41
mengu has quit [Remote host closed the connection]
06:41
Macaveli has quit [Quit: Computer has gone to sleep.]
06:41
Soda has quit [Remote host closed the connection]
06:42
smathieu has quit [Remote host closed the connection]
06:42
arietis has quit [Quit: Computer has gone to sleep.]
06:42
smathieu has joined #ruby
06:44
smathieu has quit [Read error: Connection reset by peer]
06:44
smathieu has joined #ruby
06:44
zipper has joined #ruby
06:44
iajrz_ has quit [Ping timeout: 248 seconds]
06:45
rjhunter has joined #ruby
06:46
vlad_starkov has quit [Read error: Connection reset by peer]
06:46
osvico has quit [Ping timeout: 246 seconds]
06:46
nateberkopec has joined #ruby
06:48
xk_id has joined #ruby
06:48
smathieu has quit [Ping timeout: 248 seconds]
06:49
wereHamster has quit [Read error: Operation timed out]
06:49
ZadYree has quit [Read error: Operation timed out]
06:49
arietis has joined #ruby
06:49
d4heyDU has quit [Quit: d4heyDU]
06:50
tharindu has joined #ruby
06:50
jacobsmith has joined #ruby
06:51
arefaslani has joined #ruby
06:51
nateberkopec has quit [Ping timeout: 265 seconds]
06:52
asuka has quit [Ping timeout: 246 seconds]
06:53
asuka has joined #ruby
06:53
wereHamster has joined #ruby
06:54
capicue_ has joined #ruby
06:54
capicue has quit [Read error: Connection reset by peer]
06:54
tharindu has quit [Ping timeout: 245 seconds]
06:55
xue has quit [Ping timeout: 264 seconds]
06:55
interactionjaxsn has quit [Remote host closed the connection]
06:55
interactionjaxsn has joined #ruby
06:55
arefasla_ has joined #ruby
06:55
arefaslani has quit [Ping timeout: 264 seconds]
06:55
jacobsmith has quit [Ping timeout: 272 seconds]
06:56
xue has joined #ruby
06:57
burlyscudd has joined #ruby
06:57
ZadYree has joined #ruby
06:57
Monie has joined #ruby
06:58
burlyscudd1 has joined #ruby
06:59
interactionjaxsn has quit [Ping timeout: 252 seconds]
07:00
asuka has quit [Ping timeout: 245 seconds]
07:01
asuka has joined #ruby
07:01
burlyscudd has quit [Ping timeout: 245 seconds]
07:01
jonathanwallace has joined #ruby
07:01
Nilium has quit [Ping timeout: 246 seconds]
07:02
fgo has quit [Ping timeout: 252 seconds]
07:03
burlyscudd1 has quit [Ping timeout: 240 seconds]
07:03
stkowski has quit [Quit: stkowski]
07:03
thelorax123 has quit [Remote host closed the connection]
07:05
thelorax123 has joined #ruby
07:06
jonathanwallace has quit [Ping timeout: 240 seconds]
07:09
lethjakm1 is now known as lethjakman
07:09
bugsinlights has quit [Remote host closed the connection]
07:10
Nilium has joined #ruby
07:13
xk_id has quit [Quit:
07:13
mansi has joined #ruby
07:14
dwgill has quit [Ping timeout: 252 seconds]
07:14
robbyoconnor has joined #ruby
07:14
vlad_starkov has joined #ruby
07:16
arefasla_ has quit [Ping timeout: 265 seconds]
07:18
mansi has quit [Ping timeout: 240 seconds]
07:18
dwgill has joined #ruby
07:19
axilla has quit [Ping timeout: 252 seconds]
07:19
Gooder has joined #ruby
07:20
kiesow has quit [Remote host closed the connection]
07:21
ewnd9 has quit [Remote host closed the connection]
07:21
ewnd9 has joined #ruby
07:21
joshwines_ has joined #ruby
07:22
hedrix has joined #ruby
07:23
zipper has quit [Ping timeout: 272 seconds]
07:23
zipper has joined #ruby
07:23
yeboot has quit [Read error: Operation timed out]
07:25
aagdbl1 has joined #ruby
07:26
fgo has joined #ruby
07:28
Kricir has joined #ruby
07:28
lethjakman has quit [Ping timeout: 272 seconds]
07:29
CreativeEmbassy has joined #ruby
07:30
dwgill has quit [Ping timeout: 245 seconds]
07:31
dwgill has joined #ruby
07:31
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:32
ghr has joined #ruby
07:33
CreativeEmbassy has quit [Client Quit]
07:38
Astral_ has joined #ruby
07:38
sheepman has quit [Ping timeout: 240 seconds]
07:39
dwgill has quit [Quit: Leaving]
07:39
utkarsh has quit [Ping timeout: 245 seconds]
07:40
Lorn has joined #ruby
07:40
tonni has quit [Read error: Connection reset by peer]
07:40
tonni has joined #ruby
07:41
sheepman has joined #ruby
07:41
rjhunter has quit [Remote host closed the connection]
07:41
sam113101 has joined #ruby
07:42
Astralum has quit [Ping timeout: 272 seconds]
07:43
Astral_ has quit [Ping timeout: 245 seconds]
07:43
falood has quit [Remote host closed the connection]
07:43
arefaslani has joined #ruby
07:44
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:44
falood has joined #ruby
07:44
tonni_ has joined #ruby
07:45
psyprus has quit [Read error: Connection reset by peer]
07:46
psyprus has joined #ruby
07:46
vlad_starkov has quit [Read error: Connection reset by peer]
07:46
tonni has quit [Ping timeout: 252 seconds]
07:46
utkarsh has joined #ruby
07:47
nateberkopec has joined #ruby
07:47
Nilium has quit [Ping timeout: 240 seconds]
07:48
falood has quit [Ping timeout: 246 seconds]
07:49
banister has joined #ruby
07:50
claymore has joined #ruby
07:50
tharindu has joined #ruby
07:51
nateberkopec has quit [Ping timeout: 245 seconds]
07:52
carraroj has joined #ruby
07:54
ru has joined #ruby
07:55
tharindu has quit [Ping timeout: 240 seconds]
07:57
burlyscudd has joined #ruby
07:57
robonerd has quit [Ping timeout: 265 seconds]
07:57
sergicles has quit [Quit: sergicles]
07:58
ppppaul has joined #ruby
07:58
robonerd has joined #ruby
07:59
carraroj has quit [Ping timeout: 264 seconds]
08:00
tjaco has joined #ruby
08:00
emocakes has joined #ruby
08:00
arefaslani has quit [Ping timeout: 272 seconds]
08:01
lukec has quit [Quit: lukec]
08:01
burlyscudd has quit [Ping timeout: 245 seconds]
08:05
jgrevich has quit [Quit: jgrevich]
08:07
replay has quit [Ping timeout: 248 seconds]
08:09
kpmjf has quit [Ping timeout: 272 seconds]
08:10
hedrix has quit [Remote host closed the connection]
08:11
rjhunter has joined #ruby
08:11
workmad3 has quit [Ping timeout: 252 seconds]
08:12
older has joined #ruby
08:14
Macaveli has joined #ruby
08:14
mansi has joined #ruby
08:14
mauro_ has joined #ruby
08:14
mauro_ has quit [Remote host closed the connection]
08:14
smathieu has joined #ruby
08:14
vlad_starkov has joined #ruby
08:16
Macaveli has quit [Read error: Connection reset by peer]
08:16
vlad_starkov has quit [Read error: Connection reset by peer]
08:16
araujo has joined #ruby
08:17
apeiros has joined #ruby
08:17
psyprus has quit [Read error: Connection reset by peer]
08:18
Gonzih has quit [Ping timeout: 245 seconds]
08:18
mansi has quit [Ping timeout: 248 seconds]
08:19
smathieu has quit [Ping timeout: 264 seconds]
08:19
Gonzih has joined #ruby
08:20
Macaveli has joined #ruby
08:20
older has quit [Remote host closed the connection]
08:20
Nilium has joined #ruby
08:22
peloso has joined #ruby
08:22
Elhu has joined #ruby
08:23
psyprus has joined #ruby
08:23
jhaals has joined #ruby
08:25
jhaals has quit [Client Quit]
08:26
pello has joined #ruby
08:27
carraroj has joined #ruby
08:27
Macaveli has quit [Read error: Connection reset by peer]
08:30
evenix has quit [Remote host closed the connection]
08:31
dodosan has joined #ruby
08:31
sergicles has joined #ruby
08:32
Lewix has joined #ruby
08:34
m__s_ has joined #ruby
08:34
heidi has quit [Quit: Leaving.]
08:36
relix has joined #ruby
08:37
dodosan has quit [Remote host closed the connection]
08:37
capicue_ has quit [Quit: Leaving...]
08:38
Astralum has joined #ruby
08:39
Emmanuel_Chanel has quit [Quit: Leaving]
08:39
Nilium has quit [Ping timeout: 246 seconds]
08:43
zipper has quit [Ping timeout: 252 seconds]
08:43
kitak has joined #ruby
08:44
zipper has joined #ruby
08:44
vlad_starkov has joined #ruby
08:45
tharindu has joined #ruby
08:46
skaflem has joined #ruby
08:46
TomRone has quit [Ping timeout: 252 seconds]
08:46
nateberkopec has joined #ruby
08:47
zipper has quit [Client Quit]
08:47
zipper has joined #ruby
08:48
Nilium has joined #ruby
08:48
zipper has quit [Client Quit]
08:49
TomRone has joined #ruby
08:49
kitak_ has joined #ruby
08:49
ppppaul has quit [Ping timeout: 245 seconds]
08:50
ppppaul has joined #ruby
08:52
nateberkopec has quit [Ping timeout: 272 seconds]
08:53
kitak has quit [Ping timeout: 246 seconds]
08:56
Elhu has quit [Quit: Computer has gone to sleep.]
08:57
burlyscudd has joined #ruby
08:57
akonny has joined #ruby
08:57
banghouse2 has joined #ruby
09:01
burlyscudd has quit [Ping timeout: 240 seconds]
09:02
iliketur_ has quit [Quit: zzzzz…..]
09:05
Emmanuel_Chanel has joined #ruby
09:07
iliketur_ has joined #ruby
09:07
iliketur_ has quit [Remote host closed the connection]
09:07
Elhu has joined #ruby
09:08
Elhu has quit [Client Quit]
09:09
valesk has quit [Quit: No Ping reply in 180 seconds.]
09:09
valesk has joined #ruby
09:10
harrymoreno has quit [Quit: harrymoreno]
09:12
tvw has joined #ruby
09:14
mansi has joined #ruby
09:15
sparrovv has joined #ruby
09:15
smathieu has joined #ruby
09:16
xue has quit [Read error: Connection reset by peer]
09:16
xue has joined #ruby
09:18
iliketur_ has joined #ruby
09:18
mansi has quit [Ping timeout: 245 seconds]
09:20
smathieu has quit [Ping timeout: 252 seconds]
09:24
Soda has joined #ruby
09:25
robonerd has quit [Ping timeout: 272 seconds]
09:26
robonerd has joined #ruby
09:26
Tuxist has joined #ruby
09:27
tk__ has joined #ruby
09:28
workmad3 has joined #ruby
09:30
kitak_ has quit [Remote host closed the connection]
09:30
ru has quit [Quit: leaving]
09:31
jkline has quit [Quit: jkline]
09:32
yfeldblum has quit [Ping timeout: 272 seconds]
09:32
sparrovv has quit [Quit: sparrovv]
09:33
phil_b has joined #ruby
09:33
jbpros has joined #ruby
09:33
workmad3 has quit [Ping timeout: 245 seconds]
09:35
pello has quit [Quit: pello]
09:36
adambeynon has joined #ruby
09:37
noname001__ has joined #ruby
09:37
jbpros has quit [Client Quit]
09:37
mesamoo has quit [Ping timeout: 245 seconds]
09:37
mesamoo has joined #ruby
09:37
phil_b has quit [Quit: Leaving]
09:38
jibi has joined #ruby
09:40
pello has joined #ruby
09:40
zoee has joined #ruby
09:40
zipper has joined #ruby
09:41
FCrick has quit [Remote host closed the connection]
09:42
popl has joined #ruby
09:42
popl has joined #ruby
09:42
popl has quit [Changing host]
09:42
Czupa has joined #ruby
09:43
sparrovv has joined #ruby
09:44
shredding has joined #ruby
09:44
sayan has joined #ruby
09:45
bluOxigen has joined #ruby
09:46
phil_b has joined #ruby
09:46
nateberkopec has joined #ruby
09:47
axilla has joined #ruby
09:47
vlad_starkov has quit [Read error: Connection reset by peer]
09:48
phil_b has quit [Client Quit]
09:48
phil_b has joined #ruby
09:48
matematikaadit has joined #ruby
09:51
nateberkopec has quit [Ping timeout: 245 seconds]
09:52
lmwood has joined #ruby
09:54
<
rubybot >
TWITTER: <bouzuya> なぜか/usr/local/bin/bundleがいて、なぜかruby1.9.1を見ていたせいで、思ったとおりに動かないという。ごちゃごちゃ入った環境はやめよう。
09:55
mesamoo has quit [Ping timeout: 272 seconds]
09:57
burlyscudd has joined #ruby
09:57
wallerdev has joined #ruby
09:58
banghouse2 has quit [Remote host closed the connection]
09:59
ppppaul has quit [Ping timeout: 245 seconds]
10:01
Macaveli has joined #ruby
10:01
burlyscudd has quit [Ping timeout: 246 seconds]
10:01
jonathanwallace has joined #ruby
10:01
verywiseman has joined #ruby
10:02
blackmesa has joined #ruby
10:02
Mon_Ouie has quit [Ping timeout: 246 seconds]
10:03
noop has quit [Ping timeout: 248 seconds]
10:04
Soda has quit [Remote host closed the connection]
10:06
jonathanwallace has quit [Ping timeout: 248 seconds]
10:10
Deele has quit [Ping timeout: 260 seconds]
10:13
hogeo has joined #ruby
10:14
Macaveli has quit [Remote host closed the connection]
10:14
MrZYX|off is now known as MrZYX
10:15
vlad_starkov has joined #ruby
10:15
orionstein_away is now known as orionstein
10:16
smathieu has joined #ruby
10:16
Tuxist has quit [Remote host closed the connection]
10:17
shredding has quit [Quit: shredding]
10:18
lkba has quit [Ping timeout: 245 seconds]
10:20
Vivekananda has quit [Remote host closed the connection]
10:21
hogeo has quit [Remote host closed the connection]
10:21
smathieu has quit [Ping timeout: 272 seconds]
10:21
valesk has quit [Quit: No Ping reply in 180 seconds.]
10:21
valesk has joined #ruby
10:24
pello has quit [Quit: pello]
10:25
orionstein is now known as orionstein_away
10:25
zipper has quit [Ping timeout: 265 seconds]
10:26
carraroj has quit [Read error: Operation timed out]
10:27
zipper has joined #ruby
10:28
Kricir has quit [Remote host closed the connection]
10:30
Tuxist has joined #ruby
10:30
sparrovv has quit [Quit: sparrovv]
10:31
sparrovv has joined #ruby
10:31
shime has joined #ruby
10:32
<
shime >
can someone provide me with some guideliness on when to use post installation message in gems?
10:32
Apane has joined #ruby
10:32
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
10:32
<
shime >
I find it really annoying how HTTParty abuses that with something like: "You party hard when you HTTParty!"
10:32
<
apeiros >
shime: if possible - never.
10:33
<
shime >
aperios: that's what I thought
10:33
<
apeiros >
shime: nicks can be tab-completed in almost all irc clients.
10:33
sparrovv has left #ruby [#ruby]
10:33
<
shime >
apeiros: lol
10:33
<
shime >
apeiros: I learn something new every day
10:34
bluOxigen has quit [Ping timeout: 252 seconds]
10:34
<
apeiros >
today you learnt two things even! that my nick ain't aperios and tab-completion :-p
10:34
<
shime >
apeiros: :D
10:34
sparrovv has joined #ruby
10:34
lbwski has joined #ruby
10:35
<
emocakes >
aperios: ?
10:35
<
shime >
apeiros: thanks for the sanity check!
10:36
ua_ has joined #ruby
10:36
<
shime >
apeiros: let's not include changelog in the post installation message
10:37
Apane has quit [Ping timeout: 245 seconds]
10:37
io_syl has joined #ruby
10:37
<
apeiros >
yeah. IMO only really important things should go into the post installation message.
10:37
<
shime >
apeiros: I second that
10:38
aryaching has quit []
10:39
ua has quit [Ping timeout: 272 seconds]
10:39
<
emocakes >
aperios: I third that
10:40
fgo has quit [Remote host closed the connection]
10:41
tjaco has quit [Read error: Operation timed out]
10:42
io_syl has quit [Ping timeout: 272 seconds]
10:42
Speed has joined #ruby
10:43
<
rjhunter >
shime: the last time i checked, HTTParty went further than abusing post_install_message -- it actually had "native extensions" (a Makefile that printed the "party hard" message)
10:43
liamkeily has joined #ruby
10:44
* rjhunter
is glad to see that the abuse has been toned down to just a field rather than a whole subsystem
10:45
<
shime >
rjhunter: mind = blown
10:45
eka has joined #ruby
10:46
vlad_starkov has quit [Read error: Connection reset by peer]
10:46
nateberkopec has joined #ruby
10:46
dzhulk1 has joined #ruby
10:48
<
shime >
ok, so the reasoning behind the HTTParty post-install annoyance is "can't have a party without a bit of noise"
10:48
dzhulk has quit [Ping timeout: 272 seconds]
10:49
zipper has quit [Ping timeout: 246 seconds]
10:49
VTLob has joined #ruby
10:51
fgo has joined #ruby
10:51
mojjojo has joined #ruby
10:52
nateberkopec has quit [Ping timeout: 265 seconds]
10:54
<
rjhunter >
Looking back through the history of HTTParty, it seems I must have been mistaken. I can't find where it used to have a native extension.
10:54
<
rjhunter >
I'm sure I saw
*something* like that and I can't think of what it would have been apart from HTTParty.
10:54
* rjhunter
apologises to HTTParty (a little bit)
10:55
jibi has quit [Quit: .]
10:55
wallerdev has quit [Quit: wallerdev]
10:57
burlyscudd has joined #ruby
10:59
<
DouweM >
newrelic_rpm's post_install message annoys me as well :/ I'd go crazy if every gem output its changelog
10:59
VTLob has quit [Quit: VTLob]
11:01
burlyscudd has quit [Ping timeout: 246 seconds]
11:01
<
shime >
DouweM: they basically use post-installation message to output the changelog
11:01
Czupa has quit [Remote host closed the connection]
11:01
jonathanwallace has joined #ruby
11:03
<
shime >
DouweM: but the argument for it is "you guys are drama queens, use --quiet with bundler"
11:03
<
shime >
DouweM: and don't worry about any post installation messages :/
11:04
xue has quit [Ping timeout: 265 seconds]
11:04
<
DouweM >
that makes me angry
11:06
<
DouweM >
I want to post a PR to newrelic_rpm to remove the post-install changelog, but I don't want to get into this whole discussion :/
11:06
<
shime >
DouweM: if you don't do it, I'll do it
11:06
jonathanwallace has quit [Ping timeout: 265 seconds]
11:06
<
DouweM >
I'll +1 you :)
11:07
<
shime >
DouweM: ok, I'll do it later
11:09
charliesome has joined #ruby
11:11
fgo has quit [Remote host closed the connection]
11:13
aagdbl1 has quit [Ping timeout: 248 seconds]
11:13
aagdbl has quit [Ping timeout: 240 seconds]
11:13
phus1on has joined #ruby
11:14
nfk has joined #ruby
11:14
kiri has quit [Read error: Operation timed out]
11:14
kiri has joined #ruby
11:14
shime has quit [Ping timeout: 272 seconds]
11:15
liamkeily has quit [Ping timeout: 272 seconds]
11:15
vlad_starkov has joined #ruby
11:15
mansi has joined #ruby
11:17
smathieu has joined #ruby
11:17
mojjojo has quit [Quit: mojjojo]
11:17
jragon has joined #ruby
11:17
jragon has quit [Changing host]
11:17
jragon has joined #ruby
11:18
depesz has joined #ruby
11:19
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
11:19
<
depesz >
hi. i'm starting to learn ruby, and hit a potentially simple problem. some page suggested that I do "gem install ..". OK, I installed it. But how do I get documentation for this gem? (preferably in command line, without having to use web browser).
11:19
znode has joined #ruby
11:19
shredding has joined #ruby
11:20
<
MrZYX >
have a look at the ri tool
11:20
<
depesz >
example that I have is "rmail" - i know name of gem, how can I get its documentation based on gem name?
11:20
<
depesz >
=$ ri rmail
11:20
<
depesz >
.rmail not found, maybe you meant:
11:20
<
MrZYX >
another good CLI tool is pry+pry-doc
11:20
mansi has quit [Ping timeout: 272 seconds]
11:21
<
depesz >
MrZYX: any hint on how to get ri show me rmail documentation?
11:21
smathieu has quit [Ping timeout: 252 seconds]
11:22
<
MrZYX >
ri RMail seems to do something
11:22
<
jrobeson >
depesz, read the man page for ri
11:22
<
MrZYX >
you give class/module/method names to ri, not gem names
11:23
<
jrobeson >
lots of useful options to filter the output
11:23
<
depesz >
MrZYX: yeah. hmm .. ok. this makes me ask next question - how do I get class/module/method name, when all I have is gem name?
11:23
<
jrobeson >
depesz, it'll become clear if you read the man page for ri
11:23
<
depesz >
jrobeson: the man is rather short, and doesn't say anything about gems
11:23
<
jrobeson >
or the help
11:23
<
jrobeson >
ri --help
11:23
<
apeiros >
depesz: ri is my favorite tool. alternatively look at rdoc.info, it lists the docs by gem name
11:23
liamkeily has joined #ruby
11:24
<
jrobeson >
ri <gemname> says it will work
11:24
<
depesz >
jrobeson: ri <gemname> doesn't work, at least for rmail
11:24
<
depesz >
apeiros: yeah - it will probably be mine too, i just need to learn how to use it.
11:25
<
depesz >
the problem I'm having is "mapping" gem name to something that is usable with ri.
11:25
<
MrZYX >
so does ri RMail work?
11:25
<
apeiros >
depesz: understandable
11:25
<
depesz >
MrZYX: it does.
11:25
sparrovv has quit [Quit: sparrovv]
11:25
<
depesz >
MrZYX: but, as I wrote - is just causes me to ask - how to I get proper capitalization from gem name to something usable for ri?
11:26
<
MrZYX >
mmh, via experience :P
11:26
<
depesz >
well, yeah - i don't have one.
11:26
<
DouweM >
depesz: usually gem names are snake_case, module names are CamelCase
11:26
<
depesz >
so far the only way i see working is: ri -l | grep -i rmail
11:26
<
depesz >
DouweM: *usually*. rmail, for example, isn't :(
11:27
leflaw has joined #ruby
11:27
<
MrZYX >
in the mean time I'd say leave a browser open and click the Documentation link at rubygems.org/gems/<gemname> to get an entry point
11:27
jberlinsky has joined #ruby
11:27
VTLob has joined #ruby
11:27
<
DouweM >
depesz: well, the R prefix is an exception sometimes used to indicate it's a Ruby library. rmagick <> RMagick is the same
11:27
<
depesz >
MrZYX: yeah, well - i don't really like using web browser when coding. too much context-switching for my taste
11:27
<
depesz >
DouweM: that's good to know. thanks.
11:27
<
phrozen77 >
depesz: you might want to look into "Dash" if you're on Mac OS
11:28
<
depesz >
ok. so it looks like CamelCase'in, with optional "R" prefix, and in worst case ri -l | grep -i ... - are the best options.
11:28
<
depesz >
phrozen77: i'm not.
11:28
dzhulk1 has quit [Ping timeout: 246 seconds]
11:28
<
DouweM >
or just open the gem's source and see what its root class is called
11:28
codeFiend has joined #ruby
11:28
<
depesz >
DouweM: that's also an option. how do I find it?
11:28
<
DouweM >
bundle open rmail
11:29
<
depesz >
-bash: bundle: command not found :(
11:29
<
DouweM >
you don't have bundler?
11:29
<
DouweM >
you should
11:29
<
DouweM >
if you're not in a Rails app it may not be needed
11:29
<
DouweM >
`gem` probably has a similar command to open the source
11:29
<
depesz >
i don't plan on writing any rails code, at least in foreseeable future
11:30
<
DouweM >
no problem, I forgot in what channel I was for a second there. I'm currently finding gem's open command
11:30
<
MrZYX >
vim $(gem which rmail) :P
11:30
<
DouweM >
yup, I was checking if which existed :)
11:30
<
depesz >
MrZYX: that's interesting. does that mean that gem can contain only 1 file?
11:31
<
depesz >
yeah 0- the rmail.rb file (returned by which) just requires bunch of other files
11:31
<
MrZYX >
but in the most cases it should put a file with the same name into the loadpath, so require 'rmail' for example works
11:33
mojjojo has joined #ruby
11:33
<
depesz >
ok. with all these I think i'm almost set. though it would be cool to find a way to list all files that "belong" to given gem
11:33
<
matti >
depesz: O. Nie wiedzialem ze robisz cos w Ruby :)
11:33
<
depesz >
matti: just starting.
11:34
keen____ has joined #ruby
11:34
<
DouweM >
in the result of `gem which`, you'll see a `path/lib/whatever.rb`. open the folder path
11:34
<
DouweM >
depesz: that's where all its files are. otherwise, check the github repo
11:34
iliketur_ has quit [Quit: zzzzz…..]
11:34
tk__ has quit [Quit: ばいばい]
11:34
<
MrZYX >
find $(dirname $(gem which rmail)) alias that away and you should be set for > 90% of all gems
11:34
<
matti >
depesz: Milo Cie widziec, BTW. :P
11:35
keen___ has quit [Ping timeout: 264 seconds]
11:35
<
depesz >
MrZYX: not really fan of "solution for 90% of cases"
11:35
<
depesz >
I have the feeling that, for example, sup gem would fit in the other 10% :)
11:36
<
DouweM >
depesz: the file `gem which [x]` returns will always be
*in* the gem's source path, so just read that and see what looks like it could be the gem's source path
11:36
<
DouweM >
but I guess I'm spoiled with `bundle open` which always opens the source path
11:36
SHyx0rmZ has joined #ruby
11:36
jhaals has joined #ruby
11:37
shredding has quit [Quit: shredding]
11:37
<
depesz >
DouweM: well - gem which sup, shows /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup.rb
11:37
<
depesz >
and I know for a fact that gem sup also installs (and uninstalls) files outside of /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/
11:37
<
DouweM >
then gems/sup-0.15.0 is the path you're looking for
11:37
<
depesz >
outside of /var even
11:37
<
MrZYX >
depesz: I'd say learn to deal with problems when they arise, rather than trying to find the 1000% perfect solution upfront for everything
11:38
<
depesz >
MrZYX: well - ok. ihave the problem now - how do I find all files that belong to sup?
11:40
<
depesz >
and again the requirement of using webbrowser :)
11:40
sergicles has quit [Quit: sergicles]
11:40
<
depesz >
i think i'm really spoiled by perl :(
11:41
<
DouweM >
i wonder how well GitHub would work in lynx
11:41
<
popl >
Probably not very.
11:41
dzhulk has joined #ruby
11:41
sergicles has joined #ruby
11:42
sn0wb1rd has quit [Ping timeout: 252 seconds]
11:42
<
MrZYX >
depesz: how sure are you the gem installs files outside $GEM_HOME?
11:42
<
depesz >
MrZYX: 100%
11:42
<
MrZYX >
what files?
11:42
xue has joined #ruby
11:43
<
depesz >
MrZYX: do: /usr/local/bin/sup* at the very least
11:43
<
depesz >
not sure if anything else.
11:43
<
MrZYX >
just installed
11:43
<
MrZYX >
don't have that
11:43
sn0wb1rd has joined #ruby
11:44
<
apeiros >
gem can/will install executables outside of $GEM_HOME
11:44
<
MrZYX >
well I don't install gems as root :P
11:45
<
depesz >
then it's hardly surprising that it didn't install in /usr/local/bin.
11:45
<
apeiros >
however, I use rvm, and all my stuff is in my home dir
11:45
<
depesz >
i didn't start yet using rvm. i'm just learning. and rvm seems to be next level stuff
11:46
<
apeiros >
rvm is 1 line to install + 2 lines to know
11:46
vlad_starkov has quit [Read error: Connection reset by peer]
11:46
<
apeiros >
(rvm install WHICH_RUBY & rvm use WHICH_RUBY)
11:46
<
MrZYX >
hm, actually sup didn't install, the compile failed it seems
11:46
nateberkopec has joined #ruby
11:48
p7r has joined #ruby
11:49
carraroj has joined #ruby
11:49
carraroj has quit [Client Quit]
11:52
nateberkopec has quit [Ping timeout: 264 seconds]
11:52
carraroj has joined #ruby
11:53
falood has joined #ruby
11:54
pello has joined #ruby
11:55
bluOxigen has joined #ruby
11:55
AlSquire has joined #ruby
11:55
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:55
ewnd9 has quit [Remote host closed the connection]
11:55
carraroj has quit [Client Quit]
11:56
Mon_Ouie has joined #ruby
11:57
burlyscudd has joined #ruby
11:57
kraljev2 has joined #ruby
11:58
<
kraljev2 >
Can someone remind me what do I have to include
11:58
<
kraljev2 >
for 3/2 to return 1.5
11:58
<
shevy >
I just discovered accidentally that
11:58
<
apeiros >
there's nothing which does that.
11:58
<
shevy >
require 'foo '
11:58
<
shevy >
is not the same as
11:58
<
shevy >
require 'foo'
11:58
<
kraljev2 >
apeiros, yes it is
11:58
<
apeiros >
mathn sadly will turn 3/2 to return a Rational
11:58
<
shevy >
kraljev2, make one to float. 3/2.0
11:58
<
apeiros >
but nothing will turn it into a float division.
11:59
<
apeiros >
(nothing in stdlib, that is)
11:59
<
kraljev2 >
thank you!
11:59
raphaelivan has joined #ruby
11:59
Ivo has joined #ruby
11:59
<
apeiros >
3.fdiv(2) # => 1.5
11:59
<
apeiros >
else as shevy pointed out - one of the operands must be a float.
11:59
<
kraljev2 >
then it's easier to write 3.0/2
11:59
<
shevy >
I find 3/2.0 easier :D :D :D :D
12:00
<
kraljev2 >
on secoud thought, me too :)
12:00
<
shevy >
though perhaps that depends on how the brain is wired
12:00
<
shevy >
mine reads from left to right, so the operation last seems easier for my brain
12:01
<
withnale >
Anyone used aruba inprocess with gli?
12:01
burlyscudd has quit [Ping timeout: 252 seconds]
12:01
mojjojo has quit [Quit: mojjojo]
12:02
blackmesa has quit [Ping timeout: 240 seconds]
12:02
mojjojo has joined #ruby
12:02
phansch has joined #ruby
12:02
<
shevy >
never heard that
12:03
chihhsin has quit [Quit: leaving]
12:03
kirun has joined #ruby
12:03
rjhunter has quit [Remote host closed the connection]
12:04
mojjojo has quit [Client Quit]
12:04
spider-mario has joined #ruby
12:05
mojjojo has joined #ruby
12:05
mojjojo has quit [Client Quit]
12:05
<
shevy >
undefined method `attr_my_accessor' for ConfreeGenerator:Class
12:05
<
shevy >
all my old custom modifications...
12:05
<
shevy >
those were the days
12:05
DouweM has quit [Ping timeout: 264 seconds]
12:06
mojjojo has joined #ruby
12:06
<
kraljev2 >
can i define block for #+
12:07
<
kraljev2 >
var+3 { ... }
12:07
phus1on has quit [Quit: .]
12:08
fgo has joined #ruby
12:08
<
apeiros >
symbolic methods don't take blocks in their sugared form
12:08
chihhsin has joined #ruby
12:09
<
apeiros >
you'd have to use send, which somewhat defeats the purpose of symbolic methods.
12:09
chihhsin has quit [Client Quit]
12:10
chihhsin has joined #ruby
12:10
mojjojo has quit [Client Quit]
12:11
<
kraljev2 >
you can call #step on Range, which makes arbitrary number of steps
12:11
<
shevy >
kraljev2 yeah but how do you want to do this for a #+
12:11
<
kraljev2 >
but how can I divide the interval on, let's say N subintervals
12:12
<
shevy >
hmm ... #each_slice perhaps?
12:12
<
shevy >
#step allows more arguments btw
12:12
<
kraljev2 >
(0..1).divide(10) => 0, 0.1, 0.2
12:12
<
shevy >
>> 0.step(100, 5) { |x| puts x }
12:12
<
shevy >
eval-in! eval that!
12:12
fgo has quit [Ping timeout: 241 seconds]
12:13
<
shevy >
how should this work kraljev2
12:13
<
kraljev2 >
coool, you can call on Fixnum
12:13
<
kraljev2 >
I didn't know that!
12:13
xue has quit [Ping timeout: 248 seconds]
12:13
<
Hanmac >
kraljev2: var.+(3) {} works
12:13
<
shevy >
you tell ruby here to step between 0 and 1 or?
12:13
<
kraljev2 >
that's cool
12:13
<
shevy >
but in what substeps are you telling it to do that kraljev2
12:13
<
kraljev2 >
10 equally spaced
12:13
<
kraljev2 >
or n equally spaced in general
12:14
<
shevy >
but you dont do that
12:14
<
shevy >
>> (0..1).to_a.size
12:14
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
12:14
lbwski has quit [Ping timeout: 252 seconds]
12:14
<
shevy >
your interval has only 2 members!
12:14
<
shevy >
cool, I just discovered a funny error message with that :D
12:14
<
Hanmac >
>> (0..1).step(Rational(1,10)).to_a
12:14
<
eval-in >
Hanmac => [0, (1/10), (1/5), (3/10), (2/5), (1/2), (3/5), (7/10), (4/5), (9/10), (1/1)] (
https://eval.in/72735)
12:15
<
shevy >
>> (0.0..1.0).to_a
12:15
* Hanmac
is now very rational
12:15
<
shevy >
Hanmac, how is your brain able to memorize all that?
12:15
vlad_starkov has joined #ruby
12:16
mansi has joined #ruby
12:16
<
shevy >
>> (0..1).step(0.1).to_a
12:16
<
eval-in >
shevy => [0.0, 0.1, 0.2, 0.30000000000000004, 0.4, 0.5, 0.6000000000000001, 0.7000000000000001, 0.8, 0.9, 1.0] (
https://eval.in/72737)
12:16
<
shevy >
kraljev2 look, ruby hates 0.3 :(
12:16
<
shevy >
Hanmac's solution should be more correct I suppose
12:17
timonv has joined #ruby
12:17
smathieu has joined #ruby
12:17
<
kraljev2 >
yes, but here are parameters the endpoints A and B, and number of intervals N
12:17
<
Hanmac >
a little bit shorter /wo range
12:17
<
Hanmac >
>> 0.step(1,Rational(1,10)).to_a
12:17
<
eval-in >
Hanmac => [0, (1/10), (1/5), (3/10), (2/5), (1/2), (3/5), (7/10), (4/5), (9/10), (1/1)] (
https://eval.in/72738)
12:18
<
kraljev2 >
>> a = 1; b=2; n=10; (n+1).times.map { |i| a+(i+1.0)*(b-a)/n }
12:18
<
eval-in >
kraljev2 => [1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1] (
https://eval.in/72739)
12:18
xue has joined #ruby
12:18
<
waxjar >
>> x = 1..10; x.step(x.count / 10).to_a
12:18
sparrovv has joined #ruby
12:18
<
kraljev2 >
a = 1; b=3; n=10; (n+1).times.map { |i| a+1.0*(i)*(b-a)/n }
12:18
<
kraljev2 >
>> a = 1; b=3; n=10; (n+1).times.map { |i| a+1.0*(i)*(b-a)/n }
12:18
<
eval-in >
kraljev2 => [1.0, 1.2, 1.4, 1.6, 1.8, 2.0, 2.2, 2.4, 2.6, 2.8, 3.0] (
https://eval.in/72742)
12:19
<
shevy >
kraljev2 what are you working on btw?
12:19
<
kraljev2 >
like this, can you make it simpler? a, b and n are parameters
12:19
<
shevy >
kraljev2 just write a method for that
12:19
<
kraljev2 >
just subdividing [a,b] interal into n pieces
12:19
<
shevy >
Hanmac, go make it shorter :P
12:20
<
kraljev2 >
>> a = 0; b=100; n=10; (n+1).times.map { |i| a+1.0*(i)*(b-a)/n }
12:20
<
eval-in >
kraljev2 => [0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0] (
https://eval.in/72744)
12:20
<
Hanmac >
kraljev2 & shevy like that?
12:20
<
Hanmac >
>> a = 1; b=2; n=10; a.step(b,Rational(b - a,n)).to_a
12:20
<
eval-in >
Hanmac => [1, (11/10), (6/5), (13/10), (7/5), (3/2), (8/5), (17/10), (9/5), (19/10), (2/1)] (
https://eval.in/72745)
12:20
<
Hanmac >
for better viewing i map it to float:
12:20
<
Hanmac >
>> a = 1; b=2; n=10; a.step(b,Rational(b - a,n)).map(&:to_f)
12:20
<
eval-in >
Hanmac => [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0] (
https://eval.in/72747)
12:21
mansi has quit [Ping timeout: 272 seconds]
12:21
<
shevy >
pretty cool
12:21
<
shevy >
Hanmac is a hidden genius
12:21
mojjojo has joined #ruby
12:21
<
kraljev2 >
I'm just going to redefine Range#/
12:21
rubybot has quit [Remote host closed the connection]
12:21
<
kraljev2 >
(1..2)/10
12:22
relix has joined #ruby
12:22
smathieu has quit [Ping timeout: 272 seconds]
12:23
rubybot has joined #ruby
12:23
mojjojo has quit [Client Quit]
12:23
bluenemo has joined #ruby
12:23
coffeina has joined #ruby
12:23
mojjojo has joined #ruby
12:24
<
rubybot >
TWITTER: <MorenaManca> #Ruby : #Berlusconi leccava genitali a #BelenRodriguez mentre Nicole Minetti gli praticava sesso orale”. #italiavaaputtane #bungabunga
12:25
sparrovv has quit [Quit: sparrovv]
12:25
sparrovv has joined #ruby
12:26
<
rubybot >
TWITTER: <itimajotim> Syrian mediator Lakhdar Brahimi held talks with Sigueme Y Te Sigo Iranian
http://t.co/sWqCxmEDJd #ruby
12:26
<
Mon_Ouie >
What's up with that bot?
12:26
mojjojo has quit [Client Quit]
12:26
depesz has left #ruby [#ruby]
12:27
tonni_ has quit [Read error: Connection reset by peer]
12:27
ehaliewicz has quit [Ping timeout: 252 seconds]
12:27
sparrovv has quit [Client Quit]
12:28
tonni has joined #ruby
12:28
<
rubybot >
TWITTER: <TopOnlineMMORPG> She is #based on the Lady #from
12:29
tonni_ has joined #ruby
12:29
tonni has quit [Read error: Connection reset by peer]
12:29
depesz has joined #ruby
12:29
<
depesz >
ok. another doc-related question. where/how can I find manual to "File.open"?
12:29
sparrovv has joined #ruby
12:30
sparrovv has quit [Client Quit]
12:30
<
depesz >
sorry - tested on wrong machine, with broken install. ri File.open works.
12:30
zoee has quit [Quit: This computer has gone to sleep]
12:31
eliasp has quit [Ping timeout: 248 seconds]
12:31
sparrovv has joined #ruby
12:31
Czupa has joined #ruby
12:31
<
rubybot >
TWITTER: <DwanaHutchings> 5.40 Carat Gemstone Rough ! Natural Ruby Corundum !! Free Combine $0.99
http://t.co/QY0rPg7tBm #ruby #jewelry
12:31
lkba has joined #ruby
12:31
blueOxigen has joined #ruby
12:32
dzhulk has quit [Quit: Leaving.]
12:32
pello has left #ruby [#ruby]
12:33
<
rubybot >
TWITTER: <amit_tushar> RT @Mumbairb: Next #Ruby Meetup will be held at The Playce Mulund on 30th Nov at 12pm #mumbairb
12:33
sparrovv has quit [Client Quit]
12:33
mojjojo has joined #ruby
12:33
sparrovv has joined #ruby
12:34
<
rubybot >
TWITTER: <victor_haz> RT @_metalslug_: Heap Overflow in #Ruby Floating Point Parsing (CVE-2013-4164)
https://t.co/Pft046UmFi
12:34
<
canton7 >
apeiros, Mon_Ouie, mind muting rubybot?
12:35
<
rubybot >
TWITTER: <simicdsgn> Time to put the learning goggles on. #Ruby #RoR
12:35
bluOxigen has quit [Ping timeout: 272 seconds]
12:35
tharindu has quit [Quit: Leaving...]
12:35
blueOxigen has quit [Ping timeout: 245 seconds]
12:36
<
fflush >
please keep it rubybot running
12:36
<
rubybot >
TWITTER: <gaetanomaisto> #Ruby e #decadenza , l’offensiva continua. #Letta al guinzaglio più di prima
http://t.co/c5CptKhgVY
12:37
<
fflush >
I will throttle it
12:37
tonni has joined #ruby
12:37
rubybot has quit [Remote host closed the connection]
12:38
<
shevy >
then I google :-)
12:38
<
shevy >
depesz, haha I always wonder about this too
12:38
<
shevy >
depesz, some methods in ruby are just aliases though
12:38
rubybot has joined #ruby
12:38
<
shevy >
no idea with ri, I stopped using it 8 years ago
12:38
vlad_starkov has quit [Remote host closed the connection]
12:38
vlad_starkov has joined #ruby
12:39
<
waxjar >
maybe have it follow some interesting people instead of relaying any tweet that contains the word "ruby".
12:39
<
fflush >
I changed the query from #ruby to #rubygems
12:40
<
fflush >
to #rubylang OR #ruby1.8 OR #ruby1.9 OR #ruby2.0 OR @rubygems OR @rubygems_status
12:40
<
fflush >
this should lower the noise
12:40
tonni_ has quit [Ping timeout: 252 seconds]
12:41
<
shevy >
#ruby1.8 still? ;-)
12:41
<
shevy >
twitters from the grave...
12:41
<
canton7 >
fflush, have you asked the mods if they mind having a bot spamming the channel?
12:42
<
fflush >
canton7: no :)
12:43
<
fflush >
like I said it wont flood anymore
12:43
<
canton7 >
fflush, probably a good idea. If I was modding, I wouldn't allow it even posting occasionally
12:44
krz has joined #ruby
12:44
<
shevy >
let's keep rubybot and ban fflush :-)
12:45
<
fflush >
with query change I did I believe the info will be usefull. but thanks for your feedback.
12:45
krz has quit [Client Quit]
12:46
<
canton7 >
I suspect people who are interested in twitter are already getting the tweets they're interested in, and those who aren't, aren't
12:46
timonv has quit [Remote host closed the connection]
12:46
nateberkopec has joined #ruby
12:47
<
MrZYX >
canton7: just do it like me: put the bot on ignore ;)
12:47
timonv has joined #ruby
12:47
<
fflush >
MrZYX: right answer :)
12:47
<
canton7 >
It's a bit harsh to make the other 773 members of this channel do that :P
12:48
timonv has quit [Read error: Connection reset by peer]
12:48
<
MrZYX >
770, 5-us two-itself-fflush-eval-in :P
12:49
<
Hanmac >
i think eval-in has the bot already on the ignore list xD
12:50
sheepman has quit [Ping timeout: 240 seconds]
12:51
yjmsf20_ has joined #ruby
12:51
<
canton7 >
yeah good point!
12:51
nateberkopec has quit [Ping timeout: 265 seconds]
12:53
Asher has quit [Read error: Connection reset by peer]
12:53
Asher has joined #ruby
12:53
hogeo has joined #ruby
12:54
sparrovv has quit [Quit: sparrovv]
12:54
postmodern has quit [Quit: Leaving]
12:56
shterrett has joined #ruby
12:56
Czupa has quit [Quit: Wychodzi]
12:56
timonv has joined #ruby
12:57
sheepman has joined #ruby
12:57
burlyscudd has joined #ruby
12:59
yjmsf20 has quit [Disconnected by services]
13:01
darkstar| has joined #ruby
13:01
yjmsf20_ is now known as yjmsf20
13:01
ldnunes has joined #ruby
13:01
burlyscudd has quit [Ping timeout: 264 seconds]
13:01
fixl has quit [Remote host closed the connection]
13:02
ravster has joined #ruby
13:02
ewnd9 has joined #ruby
13:03
mjs2600 has joined #ruby
13:03
sparrovv has joined #ruby
13:03
kiri has quit [Ping timeout: 248 seconds]
13:03
jrhe has joined #ruby
13:04
<
shevy >
I never ignore anything
13:04
R33C3 has joined #ruby
13:04
<
shevy >
but I often idle so
13:04
<
shevy >
it's like an ignore
13:05
mojjojo has quit [Quit: mojjojo]
13:05
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
13:06
kiri has joined #ruby
13:07
Hanmac1 has joined #ruby
13:08
timonv has quit [Read error: Connection reset by peer]
13:08
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
13:08
phinfonet has joined #ruby
13:08
R33C3 has quit [Read error: Connection reset by peer]
13:08
timonv has joined #ruby
13:09
ldnunes has quit [Remote host closed the connection]
13:09
Hanmac has quit [Ping timeout: 272 seconds]
13:10
osvico has joined #ruby
13:11
sayan has quit [Ping timeout: 272 seconds]
13:11
vlad_starkov has quit [Remote host closed the connection]
13:12
vlad_starkov has joined #ruby
13:13
shime_ has joined #ruby
13:13
otherj has joined #ruby
13:14
vlad_starkov has quit [Read error: Connection reset by peer]
13:14
carraroj has joined #ruby
13:16
mansi has joined #ruby
13:17
tjaco has joined #ruby
13:17
vlad_starkov has joined #ruby
13:18
smathieu has joined #ruby
13:18
ewnd9 has quit [Ping timeout: 248 seconds]
13:19
vlad_starkov has quit [Remote host closed the connection]
13:20
vlad_starkov has joined #ruby
13:20
R33C3 has joined #ruby
13:21
mansi has quit [Ping timeout: 265 seconds]
13:22
R33C3 has quit [Read error: Connection reset by peer]
13:22
verywiseman has quit [Read error: Connection reset by peer]
13:22
Linux_Extremist has joined #ruby
13:22
ldnunes has joined #ruby
13:23
smathieu has quit [Ping timeout: 272 seconds]
13:24
noob101 has joined #ruby
13:24
<
noob101 >
Can someone help me with my code?
13:25
<
MrZYX >
hard to tell
13:25
<
MrZYX >
nobody knows your code
13:25
verywiseman has joined #ruby
13:26
<
noob101 >
Sorry I will display it now.
13:26
<
noob101 >
Give me a second
13:26
R33C3 has joined #ruby
13:26
R33C3 has quit [Read error: Connection reset by peer]
13:27
<
waxjar >
noob101 just ask your question, if someone is able to help you they will :)
13:27
<
noob101 >
I am trying to make a loop
13:28
carraroj has quit [Ping timeout: 264 seconds]
13:28
shredding has joined #ruby
13:29
vlad_sta_ has joined #ruby
13:30
darkstar| has quit [Remote host closed the connection]
13:32
vlad_sta_ has quit [Read error: Connection reset by peer]
13:32
<
shterrett >
noob101: over an array?
13:33
nmjkio9090 has joined #ruby
13:33
vlad_starkov has quit [Ping timeout: 265 seconds]
13:34
nmjkio9090 has left #ruby [#ruby]
13:34
<
noob101 >
shterrett hold on
13:34
carraroj has joined #ruby
13:35
dr_bob has joined #ruby
13:35
jhaals has joined #ruby
13:35
dr_bob has left #ruby [#ruby]
13:36
maxxe has joined #ruby
13:37
jhaals has quit [Client Quit]
13:37
maxxe has left #ruby [#ruby]
13:37
<
noob101 >
I need help creating a loop
13:38
<
noob101 >
join/ #programming
13:38
mojjojo has joined #ruby
13:39
<
MrZYX >
loop do; puts "question"; answer = gets.chomp; break if answer == "yeah" || answer == "no"; end
13:39
jlebrech has joined #ruby
13:40
<
noob101 >
MrZYX, can you modify my code?
13:40
einarj has joined #ruby
13:40
aflag has joined #ruby
13:41
<
MrZYX >
nah, I fear I'd end up rewriting it with things you haven't learned yet ;P
13:42
enebo has joined #ruby
13:42
<
shterrett >
I'd use an until loop
13:42
<
noob101 >
Can you put it in the link and show me the code
13:42
<
aflag >
hello. I did a little profile in my site and I found out that, by using obj.send, I'm making my views terrible slow. In order to save work, I'd like to keep using some sort of reflection, is there something like .send but faster? Even if it's more restrictive, I may be able to work with it.
13:42
<
MrZYX >
noob101: you should really do it yourself
13:42
<
shterrett >
until ["Yeah", "Nah"].include? response
13:42
<
shterrett >
response = gets.chomp
13:43
yjmsf20 has quit [Ping timeout: 272 seconds]
13:43
<
aflag >
all I access are fields, maybe I could transform my object into a json
13:43
Clooth has joined #ruby
13:43
<
shterrett >
noob101: he's right; the best way to learn it is to build (and break) it yourself
13:43
machi has quit [Remote host closed the connection]
13:44
machi has joined #ruby
13:44
<
shterrett >
aflag: why are you using send?
13:46
pedrocr has joined #ruby
13:46
<
pedrocr >
system() seems to fail silently on Linux if the command line is too long
13:46
<
pedrocr >
anyone know a way around this?
13:46
Xeago has joined #ruby
13:46
nateberkopec has joined #ruby
13:47
<
AntelopeSalad >
is it normal to take 10 minutes+ (ongoing) to rvm upgrade ruby?
13:47
<
aflag >
because I wanted to create a page dinamically with the fields a given person has. For instance, if he has a last name, I want to show it, otherwise, I want to put something else in place. So I wrote a for loop and created each block of the profile using send
13:47
<
AntelopeSalad >
it's stuck making a new gemset for one of my projects, it looks frozen
13:47
<
MrZYX >
pedrocr: hmm: Errno::E2BIG: Argument list too long - echo
13:47
<
aflag >
in retrospect I would be better off with a less dynamic interface
13:48
<
pedrocr >
MrZYX, I'm not getting that
13:48
atmosx has joined #ruby
13:48
<
shterrett >
aflag: can you show me code? I'm thinking you should wrap your model in a presenter so that youc an call name, and then either return person.name or something else.
13:48
mesamoo has joined #ruby
13:49
<
MrZYX >
pedrocr: so does using ` or %x fit into your usecase?
13:49
einarj has quit [Remote host closed the connection]
13:49
<
kraljev2 >
is there a simple way for Array.max to return index
13:49
machi has quit [Ping timeout: 272 seconds]
13:49
<
pedrocr >
MrZYX, I've never used those
13:49
einarj has joined #ruby
13:49
<
kraljev2 >
[1,3,4,1].max_index #=> 2
13:50
Davey has joined #ruby
13:50
ewnd9 has joined #ruby
13:50
<
pedrocr >
MrZYX, I've fixed in by replacing system "cat #{huge_list_of_files} | my_command" with IO.popen("my_comand") {|c| huge_list_of_files.each|f| c.write f.read}
13:50
<
MrZYX >
kraljev2: class Array; def max_index; index(max); end; end; :P
13:50
<
pedrocr >
MrZYX, basically reimplementing cat in ruby, it's probably fast enough though
13:51
<
MrZYX >
pedrocr: check File.read, might clean up your code a bit
13:51
nateberkopec has quit [Ping timeout: 248 seconds]
13:51
<
kraljev2 >
Hey, this question I really need answered
13:52
<
pedrocr >
MrZYX, yep, I did File.read(f) not f.read as that wouldn't work obviously
13:52
<
kraljev2 >
is there a simple way to transform this function
13:52
<
kraljev2 >
def /(n)
13:52
<
kraljev2 >
(n+1).times.map { |i|
13:52
<
kraljev2 >
first + 1.0*(last-first)*i/n
13:52
<
kraljev2 >
to an iterator
13:52
<
lessless >
How to include a module that extends classmethods into other module ?
13:52
<
aflag >
not sure if it helps a lot
13:52
<
kraljev2 >
that means i can either pass a block or call to_a
13:52
<
lessless >
How to include a module that extends classmethods into other module
13:52
<
lessless >
oops, sorry
13:53
<
MrZYX >
kraljev2: map -> each, yield the value, do return to_enum(:/) unless block_given? in the first line
13:53
Clooth has quit [Quit: Leaving...]
13:54
einarj has quit [Ping timeout: 252 seconds]
13:55
shevy has quit [Ping timeout: 272 seconds]
13:55
<
shterrett >
aflag: I'd definitely start with defining some sort of presenter. Initialize it with your lawyer, and then create a method for each attribute you'll be sending. Have that method return exactly what you want. Then pass the presenter into display_attributes. You'll still be using send at that point, but it will clean up and encapsulate your logic, and it's a good first step.
13:56
Clooth has joined #ruby
13:56
lmickh has quit [Ping timeout: 264 seconds]
13:56
<
shterrett >
If you don't know what the attributes will be, I don't think there's a way to avoid using send. Though you may want to check out public_send. Same thing, but only allows access to public methods.
13:57
<
aflag >
shterrett: all right, I'll look into that, thanks
13:57
burlyscudd has joined #ruby
13:57
matematikaadit has quit [Remote host closed the connection]
13:57
ValicekB has quit [Ping timeout: 246 seconds]
13:58
<
shterrett >
The next thing I'd look at is using a tempting engine (erb or haml). I don't know that it'll be faster either, but it will make generating your html much easier. You don't actually have to be in Rails to use them; I built a tool for my wife that used erb templates to create LaTeX source code.
13:58
yjmsf20 has joined #ruby
13:58
<
Hanmac1 >
kraljev2:
13:58
<
Hanmac1 >
>> [1,3,4,1].each_with_index.max_by(&:first).last
13:58
Hanmac1 is now known as Hanmac
13:58
adkron has joined #ruby
13:59
hogeo has quit [Read error: Connection reset by peer]
13:59
nebula__ has joined #ruby
13:59
<
shterrett >
it actually probably would be faster to use templating than to concatenate all those strings (aflag)
14:00
shime_ has quit [Ping timeout: 245 seconds]
14:00
vlad_starkov has joined #ruby
14:00
mjs2600 has quit [Remote host closed the connection]
14:00
<
waxjar >
anyone know of a nice library to safely evaluate arithmetic strings like "1 + 2 * 8^4" ?
14:01
IceDragon has joined #ruby
14:01
burlyscudd has quit [Ping timeout: 264 seconds]
14:01
aagdbl has joined #ruby
14:01
aagdbl1 has joined #ruby
14:01
znode has quit [Read error: Connection reset by peer]
14:02
znode has joined #ruby
14:02
sputnik13 has joined #ruby
14:02
aagdbl1 has quit [Client Quit]
14:02
<
Hanmac >
>> class Range; def /(n); return to_enum(__method__,n) unless block_given?; first.step(last,Rational(last - first,n)) {|x| yield x};end;end; (0..1)./(10).to_a
14:02
<
eval-in >
Hanmac => [0, (1/10), (1/5), (3/10), (2/5), (1/2), (3/5), (7/10), (4/5), (9/10), (1/1)] (
https://eval.in/72778)
14:02
xue has quit [Ping timeout: 265 seconds]
14:03
vlad_starkov has quit [Read error: Connection reset by peer]
14:03
<
MrZYX >
if you don't want to give a block, ((0..1)/10).to_a actually works ;D
14:03
noop has joined #ruby
14:04
<
kraljev2 >
this is great
14:05
<
Hanmac >
popl: today i give him what he want, maybe tomorrow i will give him what he need ;P
14:06
liamkeily has quit [Ping timeout: 245 seconds]
14:07
<
popl >
Hanmac: Sounds like a threat.
14:07
vlad_starkov has joined #ruby
14:07
<
Hanmac >
popl: read the Discworld books from Terry Pratchett, then you understand what i mean
14:07
coffeina has quit [Quit: Wychodzi]
14:08
<
IceDragon >
O: soon very soon we can replace this line: 'to_enum(__method__, n)' with: 'enum def method ...'
14:08
shevy has joined #ruby
14:08
<
IceDragon >
;-; 2.1 where arth though
14:08
ValicekB has joined #ruby
14:08
bluenemo has quit [Remote host closed the connection]
14:09
nerocrux has joined #ruby
14:09
nerocrux has quit [Client Quit]
14:09
<
Hanmac >
IceDragon: hm ruby may not know what params should be go into the to_enum ... i mean it may know about
__method__ but not about the other args
14:10
peloso has quit [Remote host closed the connection]
14:10
mojjojo has quit [Quit: mojjojo]
14:11
* Hanmac
is now known as true
14:11
<
IceDragon >
how about enum('02') def method ; something similar to the rb_scan_args from the C-API
14:11
Elhu has joined #ruby
14:11
mikecmpbll has joined #ruby
14:11
<
IceDragon >
heaven help us if its a variable argument enum...
14:12
Soda has joined #ruby
14:12
adamsen has joined #ruby
14:13
leflaw has quit [Read error: Connection reset by peer]
14:14
<
Hanmac >
hm havenwood is not online currently .. that breaks my joke ;P
14:14
machi has joined #ruby
14:15
vlad_starkov has quit [Read error: Connection reset by peer]
14:15
<
shevy >
Hanmac.nil?
14:15
znode has quit [Remote host closed the connection]
14:15
<
IceDragon >
shevy: only when he passes on as a great guru.
14:15
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
14:15
<
shevy >
IceDragon.cold?
14:15
<
IceDragon >
sorta.. the sun is killin meh
14:15
znode has joined #ruby
14:16
<
shevy >
be lucky, here in central europe the weather is shitty and it's already darkening at 15:15 o clock :(
14:16
jbpros has joined #ruby
14:17
mansi has joined #ruby
14:17
<
MrZYX >
IceDragon: def enum(method_name); method = instance_method(method_name); define_method(method_name) { |*args| return to_enum(method_name, *args) unless block_given?; method.bind(self).call(*args); }; end ? :P Or however that stuff was used
14:17
shterrett has quit [Quit: shterrett]
14:18
<
Hanmac >
shevy when its to cold outside i have a pc game for you, called "little inferno" ;P
14:18
<
IceDragon >
MrXYZ: I guess we could do that!
14:18
mengu has joined #ruby
14:18
jonathanwallace has joined #ruby
14:19
smathieu has joined #ruby
14:19
liamkeily has joined #ruby
14:19
machi has quit [Ping timeout: 264 seconds]
14:20
<
shevy >
Hanmac the things you know scare me
14:20
<
MrZYX >
IceDragon: probably need to explicitly capture the block and pass it along
14:20
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
14:20
* Hanmac
is currently holding a book with the Title: "
14:21
* Hanmac
... "Things that scare shevy - Vol3"
14:21
timonv has quit [Read error: Connection reset by peer]
14:21
noob101 has quit [Ping timeout: 250 seconds]
14:22
mansi has quit [Ping timeout: 272 seconds]
14:22
* IceDragon
scoots away from Hanmac
14:22
<
IceDragon >
I hope he doesn't have one for IceDragons...
14:23
<
IceDragon >
MrZYX: just add it to the define_method block
14:23
jbpros has quit [Ping timeout: 272 seconds]
14:23
smathieu has quit [Ping timeout: 240 seconds]
14:24
kiba` has joined #ruby
14:24
kraljev2 has quit [Ping timeout: 245 seconds]
14:25
adkron has quit [Ping timeout: 252 seconds]
14:26
* IceDragon
curls up in corner rocking
14:26
kiba has quit [Ping timeout: 245 seconds]
14:26
<
IceDragon >
scary... scary
14:26
* IceDragon
hugs shevy
14:26
<
IceDragon >
Hanmac is scaring meh
14:27
yjmsf20 has quit [Quit: leaving]
14:28
vlad_starkov has joined #ruby
14:28
Elhu has quit [Quit: Computer has gone to sleep.]
14:28
gr33n7007h has joined #ruby
14:28
gr33n7007h has quit [Changing host]
14:28
gr33n7007h has joined #ruby
14:28
foxtrot101 has joined #ruby
14:29
jibi has joined #ruby
14:29
foxtrot101 has left #ruby [#ruby]
14:29
Clooth has quit [Quit: Leaving...]
14:29
timonv has joined #ruby
14:30
Tuxist has quit [Read error: Connection reset by peer]
14:32
AndChat- has joined #ruby
14:32
lkba has quit [Read error: Connection reset by peer]
14:33
MrZYX is now known as MrZYX|off
14:33
verywiseman has quit [Ping timeout: 245 seconds]
14:34
mikecmpbll has quit [Quit: Computer has gone to sleep.]
14:34
vlad_starkov has quit [Ping timeout: 265 seconds]
14:34
mikecmpbll has joined #ruby
14:34
timonv has quit [Read error: Connection reset by peer]
14:35
Reach has quit [Remote host closed the connection]
14:35
timonv has joined #ruby
14:35
mikecmpbll has quit [Client Quit]
14:35
MrZYX|off is now known as MrZYX
14:36
mikecmpbll has joined #ruby
14:36
aagdbl has quit [Quit: Leaving.]
14:36
mikecmpbll has quit [Client Quit]
14:37
kslksa09 has joined #ruby
14:37
tjaco has quit [Ping timeout: 264 seconds]
14:37
mikecmpbll has joined #ruby
14:38
mikecmpbll has quit [Client Quit]
14:38
sparrovv has quit [Quit: sparrovv]
14:39
mikecmpbll has joined #ruby
14:39
pzin_ has quit [Ping timeout: 246 seconds]
14:40
falood has quit [Remote host closed the connection]
14:42
einarj has joined #ruby
14:43
<
shevy >
Hanmac, do you often use methods that make use of blocks?
14:44
<
Hanmac >
hm i try as often as i can
14:44
<
Hanmac >
for sample when you have selfclosing stuff
14:45
mengu has quit [Remote host closed the connection]
14:46
nateberkopec has joined #ruby
14:49
noob101 has joined #ruby
14:49
<
noob101 >
I am trying to make a loop. Can someone please help me by filling in the code where the comment says by the link?
https://eval.in/72769
14:50
foxtrot101 has joined #ruby
14:50
Astralum has quit [Ping timeout: 252 seconds]
14:50
jhaals has joined #ruby
14:50
Thana` has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
14:50
Thanatermesis has joined #ruby
14:50
<
shevy >
yeah Hanmac I just felt dirty
14:51
<
shevy >
def foo(a,b,c,d)
14:51
einarj has quit [Remote host closed the connection]
14:51
<
shevy >
and on top of that... extra parameters to this method via {}
14:51
<
shevy >
noob101 loop {puts 'hi there'; sleep 1}
14:51
<
shevy >
^^^ a loop in ruby
14:51
einarj has joined #ruby
14:51
nateberkopec has quit [Ping timeout: 246 seconds]
14:53
<
MrZYX >
noob101: show us your previous attempts
14:53
<
apeiros >
canton7: since fflush is the channel owner, I will not mute rubybot
14:53
<
Hanmac >
shevy: show me your dirty code ;P
14:53
<
shevy >
Hanmac it's too embarassing! :(
14:53
<
apeiros >
fflush: however, I concur with canton7 that it's rather annoying :-/
14:54
<
shevy >
Hanmac I pass in a hash to a method and fill in the string that gets generated with expanded key-value pairs
14:54
<
shevy >
but the problem I had is...
14:54
foxtrot101 has quit [Client Quit]
14:54
<
shevy >
it was an afterthought
14:54
mengu has joined #ruby
14:54
banister has quit [Ping timeout: 265 seconds]
14:55
fayimora has joined #ruby
14:55
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
14:56
einarj has quit [Ping timeout: 265 seconds]
14:56
<
shevy >
if I would start from scratch, perhaps I would do it differently
14:56
<
shevy >
noob101 you don't use any loop. start irb and write loop {puts 'hi there'; sleep 1}
14:56
Linux_Extremist has quit [Quit: Leaving]
14:57
burlyscudd has joined #ruby
14:57
nateberkopec has joined #ruby
14:58
fayimora has quit [Client Quit]
14:59
shredding has quit [Quit: shredding]
14:59
noob101 has quit [Ping timeout: 250 seconds]
15:01
nebula__ is now known as xue
15:01
xue is now known as nebula__
15:01
burlyscudd has quit [Ping timeout: 246 seconds]
15:01
drumusician has joined #ruby
15:04
Lewix has quit [Remote host closed the connection]
15:05
fayimora has joined #ruby
15:06
<
canton7 >
apeiros, ah so he is, I missed that in the mods list
15:06
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:06
Czupa has joined #ruby
15:06
sparrovv has joined #ruby
15:08
Clooth has joined #ruby
15:08
nowthatsamatt has joined #ruby
15:09
jonathanwallace has quit [Ping timeout: 272 seconds]
15:09
lbwski has joined #ruby
15:12
paolooo has joined #ruby
15:13
IcyDragon has joined #ruby
15:13
atmosx has quit [Quit: Lost in trance]
15:13
IceDragon has quit [Ping timeout: 264 seconds]
15:14
havenwood has joined #ruby
15:15
machi has joined #ruby
15:15
mengu has quit [Remote host closed the connection]
15:16
znode_ has joined #ruby
15:16
yacks has quit [Quit: Leaving]
15:16
liamkeily has quit [Quit: WeeChat 0.4.1]
15:16
liamkeily has joined #ruby
15:17
mansi has joined #ruby
15:17
lbwski has quit [Quit: leaving]
15:18
<
rubybot >
TWITTER: <dllmomi> ruby2.0ももうp353まできたのか
15:18
znode has quit [Ping timeout: 265 seconds]
15:19
aryaching has joined #ruby
15:19
smathieu has joined #ruby
15:19
machi has quit [Ping timeout: 240 seconds]
15:20
marr has joined #ruby
15:21
hiyosi has quit [Quit: WeeChat 0.4.1]
15:21
mansi has quit [Ping timeout: 245 seconds]
15:21
myappleguy has joined #ruby
15:23
soulcake has quit [Read error: Connection reset by peer]
15:24
smathieu has quit [Ping timeout: 264 seconds]
15:24
soulcake has joined #ruby
15:25
mojjojo has joined #ruby
15:25
hiyosi has joined #ruby
15:25
mojjojo has quit [Client Quit]
15:26
zipper has joined #ruby
15:26
lukec has joined #ruby
15:26
sedai has joined #ruby
15:29
sedai has quit [Client Quit]
15:29
Xaitec has joined #ruby
15:30
joonty_ has joined #ruby
15:30
vlad_starkov has joined #ruby
15:30
endash has joined #ruby
15:31
joonty has quit [Ping timeout: 252 seconds]
15:31
thelorax123 has quit [Remote host closed the connection]
15:33
thelorax123 has joined #ruby
15:33
sparrovv has quit [Quit: sparrovv]
15:33
vlad_starkov has quit [Read error: Connection reset by peer]
15:34
liamkeily has quit [Quit: WeeChat 0.4.1]
15:34
nobitanobi has joined #ruby
15:34
liamkeily has joined #ruby
15:35
leflaw has joined #ruby
15:38
sambao21 has joined #ruby
15:38
verywiseman has joined #ruby
15:38
IcyDragon has quit [Ping timeout: 272 seconds]
15:39
timonv has quit [Read error: Connection reset by peer]
15:40
rainbowdash` is now known as Mapley
15:40
Mapley is now known as rainbowdash`
15:40
osvico has quit [Ping timeout: 272 seconds]
15:41
lfox has joined #ruby
15:41
Clooth has quit [Quit: Leaving...]
15:42
freerobby has joined #ruby
15:43
sparrovv has joined #ruby
15:44
sepp2k has joined #ruby
15:44
jonathanwallace has joined #ruby
15:45
shredding has joined #ruby
15:45
osvico has joined #ruby
15:46
mengu has joined #ruby
15:46
zipper has quit [Ping timeout: 240 seconds]
15:48
nateberkopec has quit [Quit: Leaving...]
15:49
carraroj has quit [Ping timeout: 246 seconds]
15:49
zipper has joined #ruby
15:50
closures999 has joined #ruby
15:51
mikecmpbll has quit [Quit: Computer has gone to sleep.]
15:51
cads has joined #ruby
15:51
Elhu has joined #ruby
15:53
gyre007 has joined #ruby
15:53
mengu__ has joined #ruby
15:53
mengu has quit [Read error: No route to host]
15:54
IceDragon has joined #ruby
15:54
shredding has quit [Quit: shredding]
15:54
workmad3 has joined #ruby
15:54
mansi has joined #ruby
15:55
mikecmpbll has joined #ruby
15:56
tharindu has joined #ruby
15:56
lmickh has joined #ruby
15:57
burlyscudd has joined #ruby
15:57
jibi has quit [Quit: .]
16:00
Astralum has joined #ruby
16:01
burlyscudd has quit [Ping timeout: 240 seconds]
16:01
liamkeily has quit [Quit: WeeChat 0.4.1]
16:01
liamkeily has joined #ruby
16:02
einarj has joined #ruby
16:03
tommyvyo has joined #ruby
16:04
mojjojo has joined #ruby
16:04
Xeago has quit [Remote host closed the connection]
16:04
lfox has quit [Quit: ZZZzzz…]
16:05
zipper has quit [Ping timeout: 272 seconds]
16:05
zipper has joined #ruby
16:06
mikecmpbll has quit [Quit: Computer has gone to sleep.]
16:06
lyanchih has joined #ruby
16:07
phil_b has quit [Ping timeout: 246 seconds]
16:07
einarj has quit [Ping timeout: 272 seconds]
16:09
Elhu has quit [Quit: Computer has gone to sleep.]
16:10
shime_ has joined #ruby
16:11
mojjojo has quit [Quit: mojjojo]
16:11
psyl0n has joined #ruby
16:12
mojjojo has joined #ruby
16:14
R33C3 has joined #ruby
16:14
vlad_starkov has joined #ruby
16:14
R33C3 has quit [Read error: Connection reset by peer]
16:16
_solomon has joined #ruby
16:16
machi has joined #ruby
16:17
vlad_starkov has quit [Read error: Connection reset by peer]
16:17
orionstein_away is now known as orionstein
16:17
ambushsabre has joined #ruby
16:17
_solomon has quit [Client Quit]
16:17
robonerd has quit [Ping timeout: 240 seconds]
16:17
_solomon has joined #ruby
16:18
jibi has joined #ruby
16:18
AndChat- has quit [Quit: Bye]
16:18
lkba has joined #ruby
16:18
robonerd has joined #ruby
16:19
_solomon has quit [Client Quit]
16:19
Elico has quit [Quit: Elico]
16:19
mojjojo has quit [Quit: mojjojo]
16:19
lmickh has quit [Quit: lmickh]
16:20
mojjojo has joined #ruby
16:20
mansi has quit [Remote host closed the connection]
16:20
Solnse has joined #ruby
16:20
smathieu has joined #ruby
16:20
machi has quit [Ping timeout: 246 seconds]
16:21
myappleguy has quit [Ping timeout: 248 seconds]
16:21
sputnik13 has joined #ruby
16:22
danielcharles has quit [Quit: leaving]
16:22
phinfone_ has joined #ruby
16:22
knightwrestle has joined #ruby
16:23
phinfonet has quit [Ping timeout: 240 seconds]
16:23
Hanmac has quit [Quit: Leaving.]
16:23
larissa has joined #ruby
16:23
Hanmac has joined #ruby
16:23
shredding has joined #ruby
16:25
swills has joined #ruby
16:25
smathieu has quit [Ping timeout: 248 seconds]
16:25
<
swills >
if I run ruby -E:UTF-8, shouldn't it try to output UTF-8?
16:25
s2013 has joined #ruby
16:26
zipper has quit [Ping timeout: 265 seconds]
16:26
<
swills >
instead i'm getting unable to convert U+00E1 from UTF-8 to US-ASCII and it skips the file
16:26
zipper has joined #ruby
16:26
lyanchih has quit [Quit: lyanchih]
16:27
s2013 is now known as s2013{Texas}
16:27
<
swills >
err -EUTF-8
16:27
workmad3 has quit [Ping timeout: 248 seconds]
16:28
orionstein is now known as orionstein_away
16:28
lyanchih has joined #ruby
16:30
Apane has joined #ruby
16:35
arefaslani has joined #ruby
16:36
gyre007 has quit [Remote host closed the connection]
16:36
gyre007 has joined #ruby
16:38
sergicles has left #ruby [#ruby]
16:38
akonny has quit [Quit: akonny]
16:39
freerobby has quit [Quit: Leaving.]
16:39
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
16:39
stevenhaddox has joined #ruby
16:40
stevenhaddox has quit [Client Quit]
16:40
mojjojo has quit [Quit: mojjojo]
16:41
einarj has joined #ruby
16:41
gyre007 has quit [Ping timeout: 272 seconds]
16:41
<
shevy >
UTF is the devil
16:42
shime_ has quit [Quit: Lost terminal]
16:42
<
MrZYX >
no, all other encodings are the devil :P
16:42
<
waxjar >
there can only be one devil
16:42
sergicles has joined #ruby
16:43
<
Hanmac >
shevy: no, my C-Macros are the devil ;P
16:43
<
Hanmac >
thats why i call programing also "deviloping" ;P
16:44
knightwrestle_ has joined #ruby
16:44
Linux_Extremist has joined #ruby
16:45
freerobby has joined #ruby
16:45
drumusician has quit [Ping timeout: 272 seconds]
16:45
knightwrestle has quit [Ping timeout: 252 seconds]
16:46
mjs2600 has joined #ruby
16:47
paolooo has quit [Quit: Page closed]
16:47
mklappstuhl has joined #ruby
16:47
taion809 is now known as zz_taion809
16:48
<
apeiros >
swills: with -E:enc you only set the internal encoding
16:48
<
apeiros >
sounds like either your default_external is US-ASCII, or something sets it explicitly
16:49
<
apeiros >
shevy: stop being afraid of things you don't understand and instead learn them :-p
16:49
<
apeiros >
encodings aren't hard.
16:49
forced_request has joined #ruby
16:49
<
apeiros >
understanding when which is used and how stuff is being converted sometimes is, though.
16:49
arefaslani has quit [Remote host closed the connection]
16:49
mojjojo has joined #ruby
16:50
liamkeily has quit [Quit: WeeChat 0.4.1]
16:51
liamkeily has joined #ruby
16:51
tommyvyo has quit [Ping timeout: 272 seconds]
16:51
IceDragon has quit [Ping timeout: 252 seconds]
16:51
IceDragon has joined #ruby
16:52
<
swills >
apiyeah, i realized i needed to set -EUTF-8
16:52
<
swills >
apeiros: ^^
16:52
<
swills >
apeiros: locale is all C
16:52
<
swills >
apeiros: thing is, i thought setting -EUTF-8 should set the external encoding
16:53
<
swills >
but it seems like setting the LC_TYPE environment variable or one of the other environment variables is the only thing that has an effect
16:53
<
swills >
-E doesn't seem to do what I think it should, so i guess i'm misunderstanding
16:54
<
swills >
if i set LC_CTYPE=UTF-8 i get no issues. if i say -EUTF-8, i get the same issues as I do if I don't set -E
16:54
mikecmpbll has joined #ruby
16:55
<
MrZYX >
I'd say then just set LC_CTYPE
16:55
knightwrestle has joined #ruby
16:55
<
swills >
but shouldn't -E work?
16:56
myappleguy has joined #ruby
16:57
burlyscudd has joined #ruby
16:57
jonahR has joined #ruby
16:58
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
16:58
jonathanwallace has quit [Read error: Operation timed out]
16:58
knightwrestle_ has quit [Ping timeout: 272 seconds]
16:58
xk_id has joined #ruby
16:59
KiwiHeretic has joined #ruby
16:59
lmickh has joined #ruby
16:59
Clooth has joined #ruby
16:59
liamkeily has quit [Quit: WeeChat 0.4.1]
16:59
myappleguy1 has joined #ruby
17:00
liamkeily has joined #ruby
17:00
KiwiHeretic has left #ruby ["Leaving"]
17:00
myappleguy has quit [Read error: Connection reset by peer]
17:01
jonathanwallace has joined #ruby
17:01
adambeynon has joined #ruby
17:01
burlyscudd has quit [Ping timeout: 252 seconds]
17:03
tommyvyo has joined #ruby
17:04
liamkeily has quit [Client Quit]
17:04
TMM has joined #ruby
17:04
TMM has joined #ruby
17:04
TMM has quit [Changing host]
17:04
liamkeily has joined #ruby
17:05
mjs2600 has quit [Remote host closed the connection]
17:05
snuffeluffegus has joined #ruby
17:06
gr33n7007h has quit [Remote host closed the connection]
17:06
benzrf has joined #ruby
17:07
zipper has quit [Ping timeout: 245 seconds]
17:07
mikecmpbll has quit [Quit: Computer has gone to sleep.]
17:07
<
benzrf >
there is a thing called 'hy' that is a lisp that compiles to python
17:07
<
benzrf >
is there something similar for ruby?
17:07
<
benzrf >
i feel like it would be nearly as easy if not easier cuz of the existing 'everything is an object' setup
17:07
knightwrestle has left #ruby [#ruby]
17:07
<
benzrf >
*everything is an expr
17:07
Xaitec has quit [Ping timeout: 252 seconds]
17:10
Xaitec has joined #ruby
17:10
Speed has joined #ruby
17:11
zipper has joined #ruby
17:11
benzrf has left #ruby [#ruby]
17:14
Clooth has quit [Quit: Leaving...]
17:14
vlad_starkov has joined #ruby
17:16
xue has joined #ruby
17:16
jhaals has joined #ruby
17:16
amund_ has joined #ruby
17:16
phinfonet has joined #ruby
17:17
machi has joined #ruby
17:17
vlad_starkov has quit [Read error: Connection reset by peer]
17:17
liamkeily has quit [Quit: WeeChat 0.4.1]
17:18
liamkeily has joined #ruby
17:18
jhaals has quit [Client Quit]
17:18
nebula__ has quit [Ping timeout: 246 seconds]
17:18
realDAB has joined #ruby
17:18
realDAB has quit [Client Quit]
17:18
phipes has joined #ruby
17:19
phinfone_ has quit [Ping timeout: 246 seconds]
17:20
falood has joined #ruby
17:20
anderson has quit [Quit: Leaving]
17:20
jkhwan has joined #ruby
17:20
d2dchat has joined #ruby
17:20
einarj has quit [Remote host closed the connection]
17:21
smathieu has joined #ruby
17:21
anderson has joined #ruby
17:21
machi has quit [Ping timeout: 248 seconds]
17:21
ddd has joined #ruby
17:23
liamkeily has quit [Ping timeout: 272 seconds]
17:23
noob101 has joined #ruby
17:24
sn0wb1rd has quit [Ping timeout: 265 seconds]
17:24
Xaitec has quit [Remote host closed the connection]
17:25
sn0wb1rd has joined #ruby
17:26
smathieu has quit [Ping timeout: 246 seconds]
17:26
<
matti >
MrZYX: ? ;]
17:27
sparrovv has quit [Quit: sparrovv]
17:27
jamesaanderson has joined #ruby
17:27
<
MrZYX >
South Park reference :P
17:28
<
noob101 >
I need help with my code. It won't run...
17:28
<
noob101 >
My code^ help me please
17:29
<
shevy >
noob101 say something
17:29
sr78ger has joined #ruby
17:29
jonathanwallace has quit [Quit: WeeChat 0.4.1]
17:29
<
shevy >
earth to noob101
17:29
<
shevy >
earth to noob101 hello
17:29
<
MrZYX >
noob101: you're never refreshing user_input inside the loop
17:29
phipes has quit [Remote host closed the connection]
17:30
zipper has quit [Ping timeout: 240 seconds]
17:30
<
MrZYX >
and user_input != "Yeah" || user_input != "Nah" is always true
17:30
<
MrZYX >
since if user_input is "Yeah" it's not "Nah" and vice versa
17:30
yxhuvud has quit [Read error: Operation timed out]
17:30
charliesome has joined #ruby
17:31
<
MrZYX >
user_input != "Yeah" || "Nah" is equivalent to user_input != ("Yeah" || "Nah") is equivalent to user_input != "Yeah"
17:32
yxhuvud has joined #ruby
17:32
noyb has joined #ruby
17:32
TMM has quit [Quit: Ex-Chat]
17:33
<
noob101 >
MrZYX ooh thanks
17:34
ravster has quit [Quit: Leaving.]
17:34
havenwood has quit []
17:34
sr78ger has quit [Quit: Qui]
17:34
freerobby has quit [Quit: Leaving.]
17:34
zipper has joined #ruby
17:36
stevenhaddox has joined #ruby
17:36
nateberkopec has joined #ruby
17:37
VTLob has quit [Quit: VTLob]
17:37
zoee has joined #ruby
17:37
<
noob101 >
MrZYX, ooooooh, thanks a lot!
17:38
mklappstuhl has quit [Remote host closed the connection]
17:39
intuxicated has joined #ruby
17:39
jhaals has joined #ruby
17:39
mikecmpbll has joined #ruby
17:39
intuxicated has quit [Read error: Connection reset by peer]
17:40
<
ddd >
noob101, try to think of the shortest equivilent to what your idea is. write it a few times, each time getting shorter
*but still working*
17:40
<
ddd >
it helps. if for no other reason than you learn multiple incantations for a specific need :)
17:41
mklappstuhl has joined #ruby
17:42
marr has quit [Ping timeout: 240 seconds]
17:42
jhaals has quit [Client Quit]
17:44
d2dchat has quit [Remote host closed the connection]
17:45
Elhu has joined #ruby
17:45
mklappstuhl has quit [Remote host closed the connection]
17:45
smathieu has joined #ruby
17:46
zipper has quit [Read error: Connection reset by peer]
17:46
myappleguy1 has quit [Ping timeout: 252 seconds]
17:46
zipper_ has joined #ruby
17:47
gyre007 has joined #ruby
17:49
d2dchat has joined #ruby
17:49
d2dchat has quit [Remote host closed the connection]
17:51
ace_striker has joined #ruby
17:52
chomskiii has quit [Read error: Connection reset by peer]
17:53
gyre007 has quit [Ping timeout: 272 seconds]
17:53
chomskiii has joined #ruby
17:53
R33C3 has joined #ruby
17:53
chihhsin has quit [Read error: Connection reset by peer]
17:54
jacobsmith has joined #ruby
17:55
yjmsf20 has joined #ruby
17:55
nateberkopec has quit [Quit: Leaving...]
17:55
Elhu has quit [Quit: Computer has gone to sleep.]
17:56
mikecmpbll has quit [Quit: Computer has gone to sleep.]
17:57
burlyscudd has joined #ruby
17:57
heidi has joined #ruby
17:57
Elhu has joined #ruby
17:58
heidi has quit [Client Quit]
17:58
jhaals has joined #ruby
17:58
xue has quit [Quit: Konversation terminated!]
17:59
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
17:59
sr78ger has joined #ruby
18:00
ewnd9 has quit [Ping timeout: 246 seconds]
18:01
burlyscudd has quit [Ping timeout: 272 seconds]
18:03
Thanatermesis has quit [Ping timeout: 252 seconds]
18:03
robonerd has quit [Quit: zzz]
18:04
tommyvyo has quit [Read error: Connection reset by peer]
18:04
tommyvyo has joined #ruby
18:04
tommyvyo has quit [Changing host]
18:04
tommyvyo has joined #ruby
18:05
freerobby has joined #ruby
18:07
jamesaanderson has joined #ruby
18:07
jkhwan has quit [Remote host closed the connection]
18:07
Tylertwo has joined #ruby
18:08
dmerrick has joined #ruby
18:08
Tylertwo has left #ruby [#ruby]
18:08
jkhwan has joined #ruby
18:08
dmerrick has quit [Client Quit]
18:08
Elhu has quit [Quit: Computer has gone to sleep.]
18:08
atmosx has joined #ruby
18:08
noob101 has quit [Ping timeout: 250 seconds]
18:08
Monie has joined #ruby
18:09
s2013 has joined #ruby
18:09
zipper_ has quit [Ping timeout: 264 seconds]
18:09
zipper has joined #ruby
18:10
freerobby has quit [Ping timeout: 264 seconds]
18:10
smathieu has quit [Remote host closed the connection]
18:10
smathieu has joined #ruby
18:10
s2013{Texas} has quit [Ping timeout: 245 seconds]
18:11
smathieu has quit [Read error: Connection reset by peer]
18:11
smathieu has joined #ruby
18:12
colonolGron has joined #ruby
18:12
InFlightMovies has joined #ruby
18:12
InFlightMovies has quit [Client Quit]
18:12
nateberkopec has joined #ruby
18:12
jkhwan has quit [Ping timeout: 272 seconds]
18:12
CaptainJet has joined #ruby
18:13
Spleeze has quit [Quit: QUIT]
18:13
ambushsabre has joined #ruby
18:13
divi has joined #ruby
18:14
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:14
zipper has quit [Ping timeout: 252 seconds]
18:14
xk_id has quit [Quit:
18:14
vlad_starkov has joined #ruby
18:15
Thanatermesis has joined #ruby
18:15
Spleeze has joined #ruby
18:16
vlad_starkov has quit [Read error: Connection reset by peer]
18:17
jhaals has joined #ruby
18:17
sayan has joined #ruby
18:17
machi has joined #ruby
18:17
mjs2600 has joined #ruby
18:18
pyx has joined #ruby
18:18
jhaals has quit [Client Quit]
18:18
divi has quit [Ping timeout: 265 seconds]
18:18
xk_id has joined #ruby
18:19
pyx has quit [Client Quit]
18:19
chihhsin has joined #ruby
18:20
s2013 has quit [Ping timeout: 272 seconds]
18:21
codeFiend has quit [Quit: codeFiend]
18:22
machi has quit [Ping timeout: 245 seconds]
18:22
sr78ger has quit [Quit: Qui]
18:22
psyl0n has quit [Remote host closed the connection]
18:23
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:24
stevenhaddox has quit []
18:25
mjs2600 has quit [Remote host closed the connection]
18:26
noyb has quit [Ping timeout: 246 seconds]
18:27
nari_ has quit [Ping timeout: 252 seconds]
18:29
mojjojo has quit [Quit: mojjojo]
18:29
myappleguy1 has joined #ruby
18:29
amund_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:30
mojjojo has joined #ruby
18:31
mjs2600 has joined #ruby
18:31
einarj has joined #ruby
18:32
mjs2600 has quit [Remote host closed the connection]
18:34
nomenkun has joined #ruby
18:35
yfeldblu_ has joined #ruby
18:35
smathieu has quit [Remote host closed the connection]
18:36
sayan has quit [Ping timeout: 246 seconds]
18:36
smathieu has joined #ruby
18:37
einarj has quit [Ping timeout: 252 seconds]
18:37
nomenkun has quit [Read error: Connection reset by peer]
18:38
stevenhaddox has joined #ruby
18:38
charliesome has joined #ruby
18:39
nomenkun has joined #ruby
18:39
wallerdev has joined #ruby
18:40
smathieu has quit [Ping timeout: 265 seconds]
18:40
Kricir has joined #ruby
18:42
banister has joined #ruby
18:42
nobitanobi has quit [Ping timeout: 272 seconds]
18:42
nomenkun has quit [Read error: Connection reset by peer]
18:43
nomenkun has joined #ruby
18:43
drumusician has joined #ruby
18:45
thelorax123 has quit [Remote host closed the connection]
18:45
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:45
colonolGron has quit [Quit: Lost terminal]
18:47
thelorax123 has joined #ruby
18:49
bluOxigen has joined #ruby
18:50
jkline has joined #ruby
18:51
ddd has quit [Quit: to install VirtualBox]
18:52
sr78ger has joined #ruby
18:52
aspires has joined #ruby
18:53
mojjojo has quit [Quit: mojjojo]
18:54
tommyvyo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:54
nfk has quit [Quit: yawn]
18:54
mikecmpbll has joined #ruby
18:55
mojjojo has joined #ruby
18:56
psyl0n has joined #ruby
18:56
gtc has quit [Quit: Lost terminal]
18:56
tharindu has quit [Quit: Leaving...]
18:57
gtc has joined #ruby
18:57
burlyscudd has joined #ruby
18:57
sr78ger has quit [Ping timeout: 272 seconds]
18:57
tharindu has joined #ruby
18:57
Davey has quit [Quit: Computer has gone to sleep.]
18:57
verywiseman has quit [Ping timeout: 265 seconds]
18:58
jkhwan has joined #ruby
18:58
noop has quit [Ping timeout: 272 seconds]
18:59
Tranquillity has joined #ruby
18:59
CaptainJet has quit []
19:01
tkuchiki has quit [Remote host closed the connection]
19:01
mojjojo has quit [Quit: mojjojo]
19:01
falood has quit [Remote host closed the connection]
19:01
burlyscudd has quit [Ping timeout: 272 seconds]
19:03
wallerdev has quit [Quit: wallerdev]
19:03
ddd has joined #ruby
19:04
jkline has quit [Quit: jkline]
19:06
freerobby has joined #ruby
19:06
CaptainJet has joined #ruby
19:06
Speed has left #ruby ["WeeChat 0.4.2"]
19:06
jamesaanderson has joined #ruby
19:07
osvico has quit [Ping timeout: 246 seconds]
19:08
mikecmpbll has quit [Quit: Computer has gone to sleep.]
19:08
freerobby1 has joined #ruby
19:08
freerobby has quit [Read error: Connection reset by peer]
19:08
Tranquillity has quit []
19:08
Tranquility_ has joined #ruby
19:09
xk_id has quit [Quit:
19:09
workmad3 has joined #ruby
19:10
Hanmac1 has joined #ruby
19:11
Hanmac has quit [Ping timeout: 252 seconds]
19:11
tskogber1 has joined #ruby
19:12
freerobby1 has quit [Ping timeout: 240 seconds]
19:12
Tranquility_ is now known as Tranquillity
19:12
tskogberg has quit [Ping timeout: 245 seconds]
19:13
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
19:13
stringoO has joined #ruby
19:14
vlad_starkov has joined #ruby
19:14
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
19:14
aagdbl has joined #ruby
19:15
lyanchih has quit [Quit: lyanchih]
19:15
kiba` is now known as kiba
19:15
pedrocr has quit [Quit: Ex-Chat]
19:16
dmiller has joined #ruby
19:17
vlad_starkov has quit [Read error: Connection reset by peer]
19:17
aspires has quit []
19:17
matchaw_ has quit [Read error: Operation timed out]
19:17
SHyx0rmZ has quit [Ping timeout: 272 seconds]
19:18
matchaw has joined #ruby
19:18
machi has joined #ruby
19:20
stringoO has quit [Read error: Connection reset by peer]
19:20
machi has quit [Read error: Connection reset by peer]
19:20
machi has joined #ruby
19:21
phansch has quit [Quit: Leaving]
19:21
stringoO has joined #ruby
19:21
phansch has joined #ruby
19:22
shredding has quit [Quit: shredding]
19:22
estebistec has joined #ruby
19:23
Astral_ has joined #ruby
19:23
jbpros has joined #ruby
19:24
fridim_ has joined #ruby
19:24
nomenkun has quit [Remote host closed the connection]
19:24
nomenkun has joined #ruby
19:25
machi has quit [Ping timeout: 245 seconds]
19:25
SHyx0rmZ has joined #ruby
19:26
Astralum has quit [Ping timeout: 252 seconds]
19:27
zarubin has quit [Remote host closed the connection]
19:27
charliesome has joined #ruby
19:27
rubybot has quit [Remote host closed the connection]
19:28
jkhwan has quit [Remote host closed the connection]
19:28
havenwood has joined #ruby
19:29
jkhwan has joined #ruby
19:29
coffeina has joined #ruby
19:29
nomenkun has quit [Ping timeout: 272 seconds]
19:29
nisstyre has joined #ruby
19:29
mattattaque_ has joined #ruby
19:30
mattattaque_ has quit [Remote host closed the connection]
19:30
jeffdb has joined #ruby
19:32
jeffdb has quit [Client Quit]
19:32
jeffdb has joined #ruby
19:32
<
icy` >
how many spaces does your tab give?
19:32
<
icy` >
i'm preferring 2 spaces to the point that 4-spaced code sometimes annoys me o.O
19:33
Czupa has quit [Remote host closed the connection]
19:33
jkhwan has quit [Ping timeout: 272 seconds]
19:34
myappleguy1 has quit [Ping timeout: 272 seconds]
19:34
Czupa has joined #ruby
19:34
snuffeluffegus has quit [Quit: Leaving]
19:35
stringoO has quit [Read error: Connection reset by peer]
19:36
stringoO has joined #ruby
19:36
smathieu has joined #ruby
19:37
wallerdev has joined #ruby
19:38
<
ddd >
yeah no physical tabs. set tabs to 2 spaces. actual spaces
19:38
Barrin6 has joined #ruby
19:38
<
ddd >
thats the Ruby standard
19:39
aspires has joined #ruby
19:40
lkba has quit [Ping timeout: 252 seconds]
19:40
pskosinski has joined #ruby
19:40
zipper has joined #ruby
19:40
Kricir has quit [Remote host closed the connection]
19:41
smathieu has quit [Ping timeout: 245 seconds]
19:41
<
workmad3 >
soft-tab ftw1
19:41
zarubin has joined #ruby
19:42
jkhwan has joined #ruby
19:42
mjs2600 has joined #ruby
19:42
aspires has quit [Client Quit]
19:43
jonahR has quit [Ping timeout: 245 seconds]
19:43
decoponio has quit [Quit: Leaving...]
19:44
mjs2600 has quit [Remote host closed the connection]
19:45
jacobsmith has quit [Ping timeout: 272 seconds]
19:45
zoee has quit [Quit: This computer has gone to sleep]
19:46
closures999 has quit []
19:46
<
Barrin6 >
talking about sublime text ddd?
19:46
jkhwan has quit [Ping timeout: 272 seconds]
19:46
aagdbl has quit [Quit: Leaving.]
19:47
carraroj has joined #ruby
19:47
SL-RHanson has quit [Quit: Leaving]
19:49
freerobby has joined #ruby
19:50
liamkeily has joined #ruby
19:50
xp_prg has quit [Quit: This computer has gone to sleep]
19:51
shredding has joined #ruby
19:52
deanrock0_ has quit [Remote host closed the connection]
19:52
deanrock0_ has joined #ruby
19:52
Ox6abe has joined #ruby
19:53
freerobby has quit [Ping timeout: 246 seconds]
19:53
Es0teric has joined #ruby
19:53
noname001__ has quit [Ping timeout: 246 seconds]
19:54
Es0teric has quit [Max SendQ exceeded]
19:55
deanrock0_ has quit [Client Quit]
19:55
noname001__ has joined #ruby
19:56
mikecmpbll has joined #ruby
19:56
sepp2k has quit [Ping timeout: 264 seconds]
19:56
workmad3 has quit [Ping timeout: 248 seconds]
19:56
deanrock has joined #ruby
19:56
<
icy` >
yeah no actual \t
19:57
burlyscudd has joined #ruby
19:57
<
icy` >
i mean sometimes i look at C++ code with four spaces and I want to make it two
19:57
Ambit has joined #ruby
19:57
<
shevy >
i sometimes look at C++ code and I want to delete it
19:58
Ox6abe has quit [Remote host closed the connection]
19:58
<
shevy >
python code often has those 4 spaces
19:59
<
pontiki >
but they are spaces, yes? not tab-stops?
19:59
stringoO has quit [Read error: Connection reset by peer]
19:59
petey has joined #ruby
20:00
stringoO has joined #ruby
20:00
zarubin has quit [Remote host closed the connection]
20:01
burlyscudd has quit [Ping timeout: 240 seconds]
20:01
<
waxjar >
tabs should never have been invented. there wouldn't be a problem :P
20:01
<
waxjar >
or less of a problem at least, im sure it would be about the amount of spaces instead
20:02
<
yxhuvud >
as long as they don't do as the C people at work who do 4 spaces for one level of indentation, and a tab for two. x_x
20:02
<
pontiki >
oh, yes, those arguments have been had as well
20:02
mojjojo has joined #ruby
20:02
<
pontiki >
yxhuvud: emacs used to work that way (it still might have a mode where that happens)
20:02
<
waxjar >
what's 3 levels? 4 spaces and a tab?
20:03
Astral_ has quit [Ping timeout: 265 seconds]
20:03
<
yxhuvud >
pontiki: yes, that is the origin of it
20:03
<
shevy >
why were tabs invented?
20:03
sepp2k has joined #ruby
20:04
<
pontiki >
think on the old typewriters
20:04
<
pontiki >
tab stops were how you set columns and stuff on a manual
20:04
lkba has joined #ruby
20:04
Lewix has joined #ruby
20:04
skaflem has quit [Quit: Leaving]
20:05
aflag has quit [Ping timeout: 240 seconds]
20:05
<
pontiki >
what i'm not clear on is how that sort of thing got translated into the current situation
20:05
timonv has joined #ruby
20:05
<
pontiki >
but i do remember some really odd-ball early word processor things
20:06
edwin__ has joined #ruby
20:06
freerobby has joined #ruby
20:06
zarubin has joined #ruby
20:06
<
atmosx >
Anyone familiar with capybara and sinatra (rspec) ?
20:06
<
edwin__ >
guys need help with a text_area in RoR
20:06
<
pontiki >
and a single character representing 8 spaces, surely this must be a win, yes?
20:06
iliketur_ has joined #ruby
20:06
<
edwin__ >
Urgebt pls
20:07
<
waxjar >
try #rubyonrails :)
20:07
mikecmpbll has quit [Quit: Computer has gone to sleep.]
20:07
shredding has quit [Quit: shredding]
20:08
liamkeily has quit [Quit: WeeChat 0.4.1]
20:08
mojjojo has quit [Quit: mojjojo]
20:08
<
atmosx >
waxjar: yap I'm on it
20:09
liamkeily has joined #ruby
20:09
mojjojo has joined #ruby
20:10
adamsen has quit [Remote host closed the connection]
20:10
timonv has quit [Read error: Connection reset by peer]
20:10
swingha has joined #ruby
20:10
Shidash has joined #ruby
20:10
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
20:10
gigetoo has quit [Remote host closed the connection]
20:10
freerobby has quit [Ping timeout: 248 seconds]
20:10
preller has joined #ruby
20:12
livingood has joined #ruby
20:12
timonv has joined #ruby
20:13
gigetoo has joined #ruby
20:13
tharindu has quit [Quit: Leaving...]
20:13
thelorax123 has quit [Remote host closed the connection]
20:14
vlad_starkov has joined #ruby
20:15
enebo has quit [Quit: enebo]
20:15
thelorax123 has joined #ruby
20:16
thesheff17_ has joined #ruby
20:16
thesheff17_ has quit [Read error: Connection reset by peer]
20:16
marr has joined #ruby
20:16
reset has joined #ruby
20:16
vlad_starkov has quit [Read error: Connection reset by peer]
20:16
axilla has quit [Ping timeout: 272 seconds]
20:17
adkron has joined #ruby
20:18
drumusician has quit [Ping timeout: 248 seconds]
20:19
osvico has joined #ruby
20:20
burlyscudd has joined #ruby
20:21
burlyscudd has quit [Client Quit]
20:21
machi has joined #ruby
20:22
BizarreCake has quit [Quit: Leaving]
20:22
pwh has joined #ruby
20:22
brian___ has joined #ruby
20:22
timonv has quit [Remote host closed the connection]
20:22
zipper has quit [Ping timeout: 246 seconds]
20:23
zipper has joined #ruby
20:23
shredding has joined #ruby
20:24
mikecmpbll has joined #ruby
20:25
mojjojo has quit [Quit: mojjojo]
20:26
machi has quit [Ping timeout: 272 seconds]
20:27
yacks has joined #ruby
20:28
postmodern has joined #ruby
20:30
stringoO has quit [Read error: Connection reset by peer]
20:30
atno has quit [Remote host closed the connection]
20:30
freerobby has joined #ruby
20:30
stringoO has joined #ruby
20:31
jalcine has quit [Excess Flood]
20:32
jkhwan has joined #ruby
20:32
Ox6abe has joined #ruby
20:33
brianpWins has quit [Quit: brianpWins]
20:33
stringoO has quit [Client Quit]
20:34
xiphias has quit [Remote host closed the connection]
20:35
zarubin has quit [Remote host closed the connection]
20:35
nomenkun has joined #ruby
20:36
asccigcc has joined #ruby
20:36
asccigcc has quit [Client Quit]
20:37
bluOxigen has quit [Ping timeout: 246 seconds]
20:37
smathieu has joined #ruby
20:37
asteros has joined #ruby
20:38
thegwumpus_ has joined #ruby
20:38
thegwumpus_ has quit [Remote host closed the connection]
20:39
maletor has joined #ruby
20:39
liamkeily has quit [Ping timeout: 272 seconds]
20:39
thegwumpus_ has joined #ruby
20:39
thegwumpus_ has quit [Remote host closed the connection]
20:39
ehaliewicz has joined #ruby
20:40
thegwumpus_ has joined #ruby
20:41
nomenkun has quit [Ping timeout: 272 seconds]
20:42
jacobsmith has joined #ruby
20:42
smathieu has quit [Ping timeout: 245 seconds]
20:42
jkhwan has quit [Remote host closed the connection]
20:42
jkhwan has joined #ruby
20:43
aspires has joined #ruby
20:45
jalcine has joined #ruby
20:45
Ox6abe has quit [Remote host closed the connection]
20:45
smathieu has joined #ruby
20:46
atno has joined #ruby
20:46
Ambit has quit [Read error: Connection reset by peer]
20:47
jacobsmith has quit [Ping timeout: 265 seconds]
20:47
zipper has quit [Ping timeout: 246 seconds]
20:47
zipper has joined #ruby
20:48
relix has joined #ruby
20:48
jkline has joined #ruby
20:48
Jetchisel has joined #ruby
20:48
jbrechtel has joined #ruby
20:49
Lewix has quit [Remote host closed the connection]
20:50
fungoat has joined #ruby
20:50
smathieu has quit [Ping timeout: 245 seconds]
20:50
jkline has quit [Client Quit]
20:51
Xeago has joined #ruby
20:52
Ox6abe has joined #ruby
20:53
ddd has quit [Quit: Leaving]
20:53
fungoat has quit [Client Quit]
20:54
mikepack has joined #ruby
20:55
Ox6abe has quit [Remote host closed the connection]
20:55
liamkeily has joined #ruby
20:56
noyb has joined #ruby
20:57
dmiller has quit [Quit: Leaving...]
20:57
Ox6abe has joined #ruby
20:58
Xeago has quit [Ping timeout: 265 seconds]
20:59
mikecmpbll has quit [Quit: Computer has gone to sleep.]
20:59
freerobby has quit [Quit: Leaving.]
21:00
freerobby has joined #ruby
21:00
Xeago has joined #ruby
21:00
Solnse has quit [Ping timeout: 252 seconds]
21:01
adambeynon has joined #ruby
21:02
Xeago_ has joined #ruby
21:03
zipper has quit [Ping timeout: 245 seconds]
21:03
zipper has joined #ruby
21:04
thegwumpus_ has quit [Remote host closed the connection]
21:04
estebistec has quit [Remote host closed the connection]
21:04
thegwumpus_ has joined #ruby
21:04
thegwumpus_ has quit [Remote host closed the connection]
21:05
thegwumpus_ has joined #ruby
21:05
Xeago has quit [Ping timeout: 241 seconds]
21:07
sam113101 has quit [Quit: WeeChat 0.4.2]
21:07
lukec has quit [Quit: lukec]
21:08
jkline has joined #ruby
21:08
osvico has quit [Ping timeout: 245 seconds]
21:08
mebus has joined #ruby
21:08
<
mebus >
Hi! I changed the template in ruby on rails, but it doesn't seem to change in the web. do I have to clear a cash or something?
21:08
mikepack has quit [Remote host closed the connection]
21:09
Elhu has joined #ruby
21:10
<
Hanmac1 >
mebus: #rubyonrails
21:10
Hanmac1 is now known as Hanmac
21:11
noyb has quit [Ping timeout: 246 seconds]
21:12
mikecmpbll has joined #ruby
21:13
Elhu has quit [Client Quit]
21:14
vlad_starkov has joined #ruby
21:16
rrichardsr3 has joined #ruby
21:16
zz_jrhorn424 is now known as jrhorn424
21:16
mikecmpbll has quit [Client Quit]
21:16
vlad_starkov has quit [Read error: Connection reset by peer]
21:17
brianpWins has joined #ruby
21:17
Elhu has joined #ruby
21:19
adkron has quit [Ping timeout: 272 seconds]
21:19
jrhe has quit [Read error: Connection reset by peer]
21:19
jrhe has joined #ruby
21:21
phansch has quit [Quit: Leaving]
21:21
burlyscudd has joined #ruby
21:21
Ox6abe has quit [Remote host closed the connection]
21:21
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:22
machi has joined #ruby
21:22
Kricir has joined #ruby
21:22
Davey has joined #ruby
21:22
rrichardsr3 has quit [Quit: -- I'm out --]
21:22
wald0 has joined #ruby
21:23
<
wald0 >
#!/usr/bin/env ruby
21:23
rrichardsr3 has joined #ruby
21:23
rrichardsr3 has quit [Client Quit]
21:23
<
wald0 >
how i can force that to use version 1.8 for a specific user (or a specific application) ?
21:23
charliesome has joined #ruby
21:23
<
wald0 >
i mean, without modifying that entry, since its an application provided by the OS, not user-installed
21:23
rrichardsr3 has joined #ruby
21:24
rrichardsr3 has quit [Client Quit]
21:24
<
apeiros >
you can't
21:24
<
apeiros >
you can only ensure it's run by that version
21:24
<
apeiros >
i.e., abort if it's not 1.8
21:24
Mars` has joined #ruby
21:24
rh1n0 has joined #ruby
21:25
<
MrZYX >
wald0: first of all be aware that 1.8 has an unpatched security issue
21:25
adkron has joined #ruby
21:25
<
apeiros >
you can use .ruby-version in your project for users who use rvm or another version manager which supports it
21:25
jkline has quit [Quit: jkline]
21:25
Czupa has quit [Read error: Connection reset by peer]
21:25
<
wald0 >
im trying to install rbot in my server
21:25
<
MrZYX >
you can also manually modify the PATH variable to make sure it's the first version in the path
21:25
<
wald0 >
but seems like it only works with ruby 1.8, not 1.9
21:25
sheap has joined #ruby
21:26
burlyscudd has quit [Ping timeout: 252 seconds]
21:26
machi has quit [Ping timeout: 240 seconds]
21:26
<
jbrechtel >
wald0: As MrZYX said, modify the path for that user to make sure the ruby 1.8 binary is first.
21:26
<
apeiros >
use something which was not written in the last millennium then?
21:27
<
jbrechtel >
Do you know if you have Ruby 1.8 installed?
21:27
<
wald0 >
apeiros: well, i needed a bot and i found one in ruby which sounded good :)
21:27
<
apeiros >
wald0: cinch
21:27
zipper has quit [Ping timeout: 245 seconds]
21:28
timonv has joined #ruby
21:28
zipper has joined #ruby
21:28
<
wald0 >
framework? mmh, its not a "ready to use" one ?
21:28
Mars` has quit [Remote host closed the connection]
21:28
<
jbrechtel >
Best bet is to find something that works on a modern Ruby though.
21:29
Mars` has joined #ruby
21:29
<
MrZYX >
first thing I get when I google "rbot": "rbot is a ruby IRC bot. Think of him as a ruby bot framework with a highly modular design based around plugins"
21:29
adkron has quit [Ping timeout: 245 seconds]
21:30
<
wald0 >
mmh, the thing is that i dont have time to customize it :), just wanted to install and "users will play/configure it from the channel"
21:31
<
MrZYX >
to be honest if you have no time/joy in twaking it, you may not be the best person to run it ;)
21:31
<
wald0 >
there's nobody else :/
21:31
<
wald0 >
MrZYX: wanna be you ? :)
21:31
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:32
<
MrZYX >
already have mine (yes, multiple) :P
21:32
<
icy` >
you're looking for irc bot?
21:33
Elhu has quit [Quit: Computer has gone to sleep.]
21:33
<
wald0 >
im checking the code, it seems nice and short, but maybe not very featured ? (checking the examples dir)
21:33
Davey has quit [Quit: Computer has gone to sleep.]
21:33
nomenkun has joined #ruby
21:33
<
MrZYX >
the power comes through plugins
21:33
<
wald0 >
i need specially it for answer user's questions, without require to call his name, just react to words, with regex if possible :)
21:34
Mars` has quit [Ping timeout: 264 seconds]
21:34
macmartine has joined #ruby
21:34
Hanmac1 has joined #ruby
21:34
<
icy` >
there's also the irc chan #cinch
21:34
<
MrZYX >
well, then just add a bunch of on /yourregex)/ your_answer
21:35
<
wald0 >
> A Cinch plugin for Let Me Google That For You!
21:35
<
wald0 >
lol this sounds useful for a channel
21:36
derp has joined #ruby
21:36
derp has left #ruby [#ruby]
21:36
mikeg has joined #ruby
21:36
Hanmac has quit [Ping timeout: 240 seconds]
21:39
workmad3 has joined #ruby
21:39
quarters has joined #ruby
21:39
KeiKun has joined #ruby
21:40
Al_ has joined #ruby
21:41
Lewix has joined #ruby
21:42
harrymoreno has joined #ruby
21:46
smathieu has joined #ruby
21:47
<
mebus >
Hanmac1: thanks.
21:47
mebus has left #ruby [#ruby]
21:47
kiri has quit [Ping timeout: 272 seconds]
21:48
nateberkopec has quit [Quit: Leaving...]
21:49
Hanmac1 is now known as Hanmac
21:51
smathieu has quit [Ping timeout: 246 seconds]
21:51
Al_ has quit [Read error: Connection reset by peer]
21:52
Al_ has joined #ruby
21:52
CaptainJet has quit [Ping timeout: 264 seconds]
21:52
kiri has joined #ruby
21:52
fmoli has joined #ruby
21:52
<
KeiKun >
is there better way to remove old Ruby...
21:52
aspires has quit []
21:52
phinfone_ has joined #ruby
21:52
<
KeiKun >
i tried "yum remove ruby" yet it says no ruby is installed
21:53
<
KeiKun >
with RVM "it says rvm is not a command -bash"
21:53
phinfonet has quit [Ping timeout: 265 seconds]
21:53
<
KeiKun >
yet it installed it via "yum install rvm"
21:53
matchaw has quit [Remote host closed the connection]
21:54
CaptainJet has joined #ruby
21:55
matchaw has joined #ruby
21:55
echevemaster has quit [Remote host closed the connection]
21:56
xp_prg has joined #ruby
21:56
workmad3 has quit [Ping timeout: 264 seconds]
21:57
zipper has quit [Ping timeout: 252 seconds]
21:58
zipper has joined #ruby
21:58
platzhirsch has joined #ruby
21:58
asteros has quit [Quit: asteros]
21:58
kslksa09 has quit [Ping timeout: 252 seconds]
21:58
asteros has joined #ruby
21:59
matchaw has quit [Remote host closed the connection]
21:59
<
jrobeson >
i didn't know rvm had an rpm
22:00
<
jrobeson >
good to know i guess
22:00
matchaw has joined #ruby
22:00
sparrovv has joined #ruby
22:01
ru has joined #ruby
22:02
jonahR has joined #ruby
22:03
fantom-ukraine has joined #ruby
22:03
axilla has joined #ruby
22:03
kobain has joined #ruby
22:04
fantom-ukraine has left #ruby [#ruby]
22:04
brianpWins has quit [Quit: brianpWins]
22:05
nomenkun has quit [Remote host closed the connection]
22:05
carraroj has quit [Quit: Konversation terminated!]
22:05
nomenkun has joined #ruby
22:06
nomenkun has quit [Read error: Connection reset by peer]
22:06
jkline has joined #ruby
22:06
Guazi has joined #ruby
22:06
jkline has quit [Client Quit]
22:06
<
platzhirsch >
The only thing I came up with is an assignment in the elsif branch, but I don't find this very elegant
22:07
mando has joined #ruby
22:07
<
apeiros >
platzhirsch: classes to the rescue
22:07
<
platzhirsch >
apeiros: abstract it away
22:07
ner0x has joined #ruby
22:08
<
apeiros >
create a class which takes the data on initialize, has instance methods for .valid? and normalize_extras
22:08
<
apeiros >
and - like through a miracle - you can use ivars to store intermediary stuff
22:08
jonahR has quit [Quit: jonahR]
22:09
<
platzhirsch >
apeiros: thanks, that is pretty obvious. Ruby makes me forget all my modeling skills
22:09
<
apeiros >
yw. too many people hesitate to create small classes.
22:11
Raboo has quit [Ping timeout: 245 seconds]
22:13
iliketur_ has quit [Quit: zzzzz…..]
22:13
<
emocakes >
there is even a class for true or false
22:13
<
emocakes >
trueclass
22:14
vlad_starkov has joined #ruby
22:14
mikeg has quit [Remote host closed the connection]
22:15
shredding has quit [Quit: shredding]
22:16
vlad_starkov has quit [Read error: Connection reset by peer]
22:16
nisstyre has quit [Read error: Connection reset by peer]
22:18
mesamoo has quit [Quit: Konversation terminated!]
22:19
<
platzhirsch >
boggle boggle
22:19
Al_ has quit [Read error: Connection reset by peer]
22:19
orionstein_away is now known as orionstein
22:20
Al_ has joined #ruby
22:20
xk_id has joined #ruby
22:20
Al_ has quit [Client Quit]
22:21
nateberkopec has joined #ruby
22:22
KeiKun has left #ruby ["Leaving"]
22:22
burlyscudd has joined #ruby
22:22
machi has joined #ruby
22:23
nateberkopec has quit [Read error: Connection reset by peer]
22:23
Raboo has joined #ruby
22:23
nateberkopec has joined #ruby
22:24
brianpWins has joined #ruby
22:24
aspires has joined #ruby
22:25
agent_white has quit [Quit: Lost terminal]
22:25
thelorax123 has quit [Read error: Connection reset by peer]
22:25
asteros has quit [Quit: asteros]
22:26
asteros has joined #ruby
22:26
psyl0n has quit [Remote host closed the connection]
22:26
burlyscudd has quit [Ping timeout: 246 seconds]
22:27
thelorax123 has joined #ruby
22:27
machi has quit [Ping timeout: 272 seconds]
22:28
nateberkopec has quit [Ping timeout: 245 seconds]
22:30
mojjojo has joined #ruby
22:30
orionstein is now known as orionstein_away
22:30
sheap has quit [Quit: Lost terminal]
22:30
adambeynon has joined #ruby
22:33
charliesome has joined #ruby
22:34
jbpros has quit [Quit: jbpros]
22:34
_reset has joined #ruby
22:35
lethjakman has joined #ruby
22:36
tankard has joined #ruby
22:36
nomenkun has joined #ruby
22:37
reset has quit [Ping timeout: 272 seconds]
22:38
erichmenge has quit [Quit: Arrivederci!]
22:39
erichmenge has joined #ruby
22:39
Mars` has joined #ruby
22:40
skofo has quit [Ping timeout: 252 seconds]
22:40
nomenkun has quit [Ping timeout: 246 seconds]
22:40
monkegjinni has joined #ruby
22:41
monkegjinni has quit [Remote host closed the connection]
22:42
Tearan has joined #ruby
22:42
siefca has joined #ruby
22:43
kirun has quit [Quit: Client exiting]
22:44
tankard has left #ruby [#ruby]
22:44
tommyvyo has joined #ruby
22:44
Mars` has quit [Ping timeout: 265 seconds]
22:44
bean__ has joined #ruby
22:45
fbernier has quit [Read error: Connection reset by peer]
22:45
fbernier_ has joined #ruby
22:45
<
siefca >
is there a way to overwrite a module method (defined in its singleton class) present in some module without aliasing (i would like to be able to call super in this method)?
22:47
platzhirsch has left #ruby [#ruby]
22:47
coffeina has quit [Quit: Wychodzi]
22:47
smathieu has joined #ruby
22:48
Hanmac1 has joined #ruby
22:48
<
Hanmac1 >
siefca: prepend into the singleton class
22:49
<
bnagy >
so you have a method
_on_ a module like MyMod.blah and you want to override it to call blah in the class it has been included into?
22:49
Guazi has quit [Remote host closed the connection]
22:50
<
siefca >
bnagy: I have SomeModule.blah and I want to modify it, but avoid aliasing
22:50
<
atmosx >
anyone familiar with capybara? :-p and sinatra
22:50
peterwal1er78 has quit [Remote host closed the connection]
22:50
Astralum has joined #ruby
22:50
Lewix has quit [Remote host closed the connection]
22:50
Hanmac has quit [Ping timeout: 265 seconds]
22:51
swingha has quit [Quit: WeeChat 0.4.2]
22:51
<
siefca >
Hanmac1: can it be done without prepending?
22:51
<
Hanmac1 >
siefca & bnagy:
22:51
<
Hanmac1 >
>> module A; def self.meth; "meth"; end;end; module M; def meth; p "before", super, "after";end;end;module A; class << self; prepend M; end;end; A.meth
22:51
Hanmac1 is now known as Hanmac
22:52
Astral_ has joined #ruby
22:52
<
Hanmac >
siefca: not without making your code much more worse
22:52
jkhwan has quit [Remote host closed the connection]
22:52
jkhwan has joined #ruby
22:52
smathieu has quit [Ping timeout: 265 seconds]
22:53
<
bnagy >
what is this prepend sorcery??
22:53
<
Hanmac >
its like include but reverse ;P
22:53
<
MrZYX >
siefca: what's your usecase for that?
22:53
<
siefca >
MrZYX: Hi :D
22:53
<
apeiros >
bnagy: ruby 2.0 stuff
22:54
<
siefca >
MrZYX: I'm trying to put some stuff in Ncurses.initscr
22:54
Astral__ has joined #ruby
22:54
<
MrZYX >
I think I'd rather wrap it instead of monkey patching
22:54
<
siefca >
MrZYX: I have to simulate some method from Ncurses::Form if it doesn't exist
22:55
Astralum has quit [Ping timeout: 265 seconds]
22:55
<
siefca >
MrZYX: But I cannot even test if the method exists before Ncurses.initscr is called. It dynamically registers all methods upon initialization.
22:55
Linux_Extremist has quit [Quit: Leaving]
22:55
jonahR has joined #ruby
22:56
<
siefca >
MrZYX: So I thought I'll add some initialization just after initscr was called, I thought about creating initscr with 'super' on top of it
22:57
stevenha_ has joined #ruby
22:57
yfeldblu_ has quit [Quit: Leaving...]
22:57
<
siefca >
MrZYX: since I don't like aliasing, I asked if it's possible
22:57
vlad_starkov has joined #ruby
22:57
<
siefca >
MrZYX: Problem is in modules the lookup order is reversed so the method I'm trying to overwrite will always be called first
22:57
emocakes has quit [Quit: Leaving...]
22:58
timonv has quit [Remote host closed the connection]
22:58
Astral_ has quit [Ping timeout: 246 seconds]
22:58
<
siefca >
MrZYX: Prepend solves it but I have to be 1.8 compliant
22:58
Astralum has joined #ruby
22:58
<
MrZYX >
1.8 has a unpatched security issue
22:59
<
bnagy >
s/a /at least one gigantic /
22:59
<
apeiros >
+ is >5y old
22:59
yfeldblum has joined #ruby
22:59
<
siefca >
That's open source, compliance is for users
23:00
<
siefca >
I'm using 2.0 at my comp
23:00
Astral_ has joined #ruby
23:00
iliketur_ has joined #ruby
23:00
<
MrZYX >
so forcing your users to use a newer ruby by not supporting 1.8 could be called a security feature :P
23:00
<
siefca >
Not my project
23:01
jonahR has quit [Ping timeout: 272 seconds]
23:01
Astral__ has quit [Ping timeout: 265 seconds]
23:02
s2013 has joined #ruby
23:02
`MArceLL` has joined #ruby
23:02
brianpWins has quit [Quit: brianpWins]
23:02
stevenha_ has quit []
23:03
dgfdgf has quit [Ping timeout: 246 seconds]
23:03
stevenha_ has joined #ruby
23:03
replay has joined #ruby
23:04
ace_striker has quit [Ping timeout: 250 seconds]
23:04
Raboo has quit [Read error: Operation timed out]
23:04
Astralum has quit [Ping timeout: 272 seconds]
23:04
ace_striker has joined #ruby
23:05
Astral_ has quit [Ping timeout: 245 seconds]
23:05
jkhwan has quit [Remote host closed the connection]
23:06
jkhwan has joined #ruby
23:06
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:06
mengu__ has quit []
23:07
Kricir has quit [Remote host closed the connection]
23:07
keyvan has quit [Changing host]
23:07
keyvan has joined #ruby
23:07
keyvan has joined #ruby
23:07
keyvan has quit [Changing host]
23:08
sam113101 has joined #ruby
23:09
Hanmac1 has joined #ruby
23:09
jrhe_ has joined #ruby
23:09
jrhe_ has left #ruby [#ruby]
23:09
Hanmac has quit [Ping timeout: 240 seconds]
23:09
Hanmac1 is now known as Hanmac
23:09
jrhe has quit [Read error: Connection reset by peer]
23:10
mjs2600 has joined #ruby
23:10
rjhunter has joined #ruby
23:11
jkhwan has quit [Ping timeout: 272 seconds]
23:12
jragon has quit [Ping timeout: 272 seconds]
23:13
jkhwan has joined #ruby
23:16
rainbowdash` has quit [Ping timeout: 252 seconds]
23:16
AlSquire has quit [Quit: This computer has gone to sleep]
23:16
liamkeily has quit [Ping timeout: 265 seconds]
23:17
stevenha_ is now known as shadowpony
23:17
shadowpony is now known as shaddow_pony
23:17
shaddow_pony is now known as shadowpony
23:19
fontle has joined #ruby
23:20
aspires has quit []
23:21
burlyscudd has joined #ruby
23:21
shadowpony is now known as shaddow_pony
23:22
mjs2600 has quit [Remote host closed the connection]
23:22
thegwumpus_ has quit [Remote host closed the connection]
23:22
Mapley has joined #ruby
23:22
Mapley is now known as Guest66951
23:22
nateberkopec has joined #ruby
23:23
bootcoder has quit [Quit: Konversation terminated!]
23:23
bootcoder has joined #ruby
23:23
machi has joined #ruby
23:24
<
RubyPanther >
It is weird to expect updates to ancient versions
23:25
zipper has quit [Quit: Lost terminal]
23:25
mjs2600 has joined #ruby
23:25
raphaelivan has quit [Ping timeout: 248 seconds]
23:25
burlyscudd has quit [Ping timeout: 272 seconds]
23:26
Guest66951 has quit [Changing host]
23:26
Guest66951 has joined #ruby
23:26
Guest66951 has joined #ruby
23:26
Guest66951 has quit [Changing host]
23:26
Guest66951 is now known as Mapley
23:26
Lewix has joined #ruby
23:27
segfalt has joined #ruby
23:27
nateberkopec has quit [Ping timeout: 265 seconds]
23:28
machi has quit [Ping timeout: 246 seconds]
23:28
shaddow_pony has quit []
23:28
emocakes has joined #ruby
23:28
Hanmac1 has joined #ruby
23:29
stevenha_ has joined #ruby
23:30
smlgs has joined #ruby
23:30
Hanmac has quit [Ping timeout: 265 seconds]
23:31
Hanmac1 is now known as Hanmac
23:33
R33C3 has quit [Remote host closed the connection]
23:34
mojjojo has quit [Quit: mojjojo]
23:36
nomenkun has joined #ruby
23:37
stevenha_ has quit [Quit: Zzzz]
23:38
nomenkun has quit [Read error: Connection reset by peer]
23:38
mjs2600 has quit [Remote host closed the connection]
23:38
nomenkun has joined #ruby
23:38
anderson has quit [Ping timeout: 240 seconds]
23:38
marr has quit [Ping timeout: 246 seconds]
23:39
robbyoconnor has quit [Read error: Operation timed out]
23:39
popl has joined #ruby
23:39
popl has joined #ruby
23:39
popl has quit [Changing host]
23:39
_reset has quit [Quit: Leaving...]
23:39
Hanmac has quit [Ping timeout: 246 seconds]
23:40
claymore has quit [Quit: Leaving]
23:40
Hanmac has joined #ruby
23:41
eeriegeek has quit [Remote host closed the connection]
23:41
jberlinsky has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
23:41
R33C3 has joined #ruby
23:41
psyl0n has joined #ruby
23:42
vlad_starkov has quit [Remote host closed the connection]
23:43
nomenkun has quit [Ping timeout: 272 seconds]
23:43
rickruby has quit [Remote host closed the connection]
23:43
kiwi_10697 has joined #ruby
23:44
lmwood has quit [Read error: Connection reset by peer]
23:44
kiwi_10697 has quit [Read error: Connection reset by peer]
23:45
tommyvyo has quit [Read error: No route to host]
23:45
tommyvyo has joined #ruby
23:45
tommyvyo has quit [Changing host]
23:45
tommyvyo has joined #ruby
23:45
rakun has joined #ruby
23:46
Soda has quit [Read error: Connection reset by peer]
23:47
echevemaster has joined #ruby
23:47
edwin__ has quit [Quit: Ex-Chat]
23:48
smathieu has joined #ruby
23:48
vxxr has joined #ruby
23:49
lnormous has joined #ruby
23:51
brianpWins has joined #ruby
23:51
eeriegeek has joined #ruby
23:52
smathieu has quit [Ping timeout: 246 seconds]
23:53
fontle has quit [Remote host closed the connection]
23:53
MrZYX is now known as MrZYX|off
23:54
skofo has joined #ruby
23:54
sparrovv has quit [Quit: sparrovv]
23:55
rakun has quit [Ping timeout: 245 seconds]
23:56
realDAB has joined #ruby
23:56
rakun has joined #ruby
23:57
burlyscudd has joined #ruby
23:57
mando has quit [Remote host closed the connection]
23:58
mando has joined #ruby
23:58
brianpWins has quit [Quit: brianpWins]
23:59
brianpWins has joined #ruby