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