havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Can't talk? Register/identify with Nickserv first! || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
NeverDie has quit [Quit: http://radiux.io/]
ryanlntn has joined #ruby
ta has joined #ruby
ivanskie has quit [Quit: Leaving]
renderful has quit [Ping timeout: 240 seconds]
unreal has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
drptbl has joined #ruby
ryanlntn has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
zotherstupidguy has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
agent_white has quit [Quit: leaving]
law has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
snockerton has quit [Quit: Leaving.]
<law> all, anyone ever dealt with this error message on OS X 10.10 before?
<law> dyld: lazy symbol binding failed: Symbol not found: _rb_funcallv
<law> "Referenced from: /Users/law/.rvm/gems/ruby-2.1.2@chef11/gems/ffi-1.9.6/lib/ffi_c.bundle"
Balzrael has quit [Quit: Leaving]
marr has quit [Ping timeout: 265 seconds]
<law> I'm not even using the ffi gem in the program I'm trying to run
<law> funnily enough, this was all working just fine on Friday. No updates or anything over the weekend, and lo this bites me in the backside on Monday morning
<law> this is ruby 2.1.2p95, on rvm 1.26.11
chipotle has joined #ruby
Azure has joined #ruby
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
<dorei> law: mondays are always a problem :p
<law> heh, apparently so
jcromartie has joined #ruby
soloone has quit [Ping timeout: 240 seconds]
jschmid has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
<law> I can run my program in pry no problem, which is super weird
moeabdol has quit [Read error: Connection reset by peer]
<dorei> hmm
jschmid has joined #ruby
vdamewood has quit [Ping timeout: 264 seconds]
<dorei> r u sure u dont have any weird in your LD_PRELOAD env vars
iwaffles has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<law> LD_PRELOAD isn't even set, as far as I can tell
Azure has quit [Max SendQ exceeded]
moeabdol has joined #ruby
elfuego has joined #ruby
iwaffles has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
dravine_ has joined #ruby
bruno- has quit [Quit: Lost terminal]
skweek has joined #ruby
dravine has quit [Ping timeout: 272 seconds]
dravine_ is now known as dravine
bruno- has joined #ruby
tomchapin has joined #ruby
vdamewood has joined #ruby
soloone has joined #ruby
bruno- is now known as Guest45394
blackjid has quit [Max SendQ exceeded]
workmad3_ has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
tkuchiki has quit [Remote host closed the connection]
blackjid has joined #ruby
tkuchiki has joined #ruby
Xeago has joined #ruby
drptbl has joined #ruby
JDiPierro has joined #ruby
drptbl has quit [Client Quit]
vF3hNGxc47h8 has joined #ruby
Azure has joined #ruby
wildlander has quit [Quit: Saliendo]
workmad3_ has quit [Ping timeout: 250 seconds]
doddok has quit [Quit: Leaving]
havenwood has joined #ruby
yqt has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
julieeharshaw has quit [Ping timeout: 255 seconds]
banjara has quit [Quit: Leaving.]
drewvanstone has quit [Ping timeout: 265 seconds]
Azure has quit [Max SendQ exceeded]
bayed has quit [Quit: Connection closed for inactivity]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has joined #ruby
Azure has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<shevy> hey it's early monday here!
<shevy> you need to let people wake up
<shevy> in 6 hours!
asxbr has quit [Quit: Textual IRC Client: www.textualapp.com]
NeverDie has joined #ruby
<shevy> I am on linux so I don't know what weirdness OS X has
julieeharshaw has joined #ruby
bronson has joined #ruby
asxbr has joined #ruby
<asxbr> hi guys... im trying to iterate on matrix rows... but when i do a foreach expression, it is iterating on each element (abstracting rows)
RegulationD has quit [Ping timeout: 252 seconds]
<dorei> is there a foreach in ruby?
<asxbr> is there an easier way to to it ?
<asxbr> for ... in @matrix
<shevy> where is the each
<shevy> :D
baweaver has quit [Remote host closed the connection]
<shevy> do you have a small example of your matrix? a gist?
bhaak has quit [Ping timeout: 252 seconds]
<shevy> usually dataset.each would be simpler
<shevy> if you have e. g. an array with a table-layout like a .csv file
<asxbr> i'll provide it
<asxbr> sec
<asxbr> ^^
<shevy> if you need an index, you can use .each_with_index
<havenwood> law: Does the error still occur after upgrading your Ruby to 2.1.7?
bhaak has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 240 seconds]
<asxbr> shevy: look it
<asxbr> i need the row like a vector
<asxbr> to work on it
CloCkWeRX has joined #ruby
<asxbr> for column i can use column_vector
pwnd_nsfw has quit [Ping timeout: 240 seconds]
<asxbr> but i'm not getting one fast way to rows :/
mary5030 has joined #ruby
sgambino has joined #ruby
bricker has quit [Quit: leaving]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kies has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 264 seconds]
drptbl has joined #ruby
Porfa has quit [Quit: Porfa]
pietr0 has quit [Quit: pietr0]
jcromartie has joined #ruby
renderful has joined #ruby
<asxbr> better rephrase my question
cassioscabral has quit [Quit: cassioscabral]
matp_ has joined #ruby
<asxbr> is there a direct way to iterate on matrix rows like a vector?
rushed has quit [Read error: Connection reset by peer]
maletor has quit []
rbowlby has joined #ruby
rushed has joined #ruby
<asxbr> the Matrix class provides to me column_vectors, returning the columns like vector
Log1x has quit [Ping timeout: 240 seconds]
<asxbr> but i'm not finding nothing to get rows as vector
<asxbr> :(
<bnagy> asxbr: row_vectors?
<havenwood> asxbr: @matrix.row_vectors
<bnagy> these docs are super hard to read
Azure has quit [Ping timeout: 264 seconds]
renderfu_ has quit [Ping timeout: 250 seconds]
<bnagy> with the words, and stuff
drptbl_ has joined #ruby
<asxbr> oh
tw1sted has quit [Quit: No Ping reply in 180 seconds.]
drptbl has quit [Ping timeout: 240 seconds]
<asxbr> thats it!
slackbotgz has joined #ruby
perry has quit [Ping timeout: 240 seconds]
<asxbr> thanks
matp has quit [Ping timeout: 264 seconds]
livcd has quit [Ping timeout: 255 seconds]
ghormoon has quit [Ping timeout: 255 seconds]
gnarf has quit [Ping timeout: 240 seconds]
Raboo has quit [Ping timeout: 252 seconds]
CrazyEddy has quit [Read error: Connection reset by peer]
<bnagy> np :)
tw1sted has joined #ruby
<bnagy> Matrix is kind of a crusty stdlib :\
_djbkd has quit [Quit: My people need me...]
Raboo has joined #ruby
livcd has joined #ruby
<havenwood> >> require 'matrix'; Matrix.instance_methods(false).grep /row/
<ruboto> havenwood # => [:rows, :row_count, :row_size, :row, :row_vectors] (https://eval.in/441030)
kies has joined #ruby
cassioscabral has joined #ruby
Azure has joined #ruby
pwnd_nsfw has joined #ruby
<havenwood> Just an N away from NMatrix: https://github.com/sciruby/nmatrix#readme
Log1x has joined #ruby
Log1x has joined #ruby
ghormoon has joined #ruby
perry has joined #ruby
mistergibson has quit [Read error: Connection reset by peer]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gnarf has joined #ruby
JDiPierro has joined #ruby
CrazyEddy has joined #ruby
wallerdev has joined #ruby
Rollabunna has joined #ruby
otacon- has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
EllisTAA has quit [Quit: EllisTAA]
icole` has quit [Ping timeout: 264 seconds]
sagittarian|2 has quit [Ping timeout: 272 seconds]
rbennacer has joined #ruby
matp_ is now known as matp
drptbl_ has quit [Quit: My MAC has gone to sleep. zZz..]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 264 seconds]
inteq has joined #ruby
Guest45394 has quit [Quit: Lost terminal]
tkuchiki has quit [Remote host closed the connection]
tuxero has quit [Ping timeout: 260 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
bruno-_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
bb010g has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Lucky__ has joined #ruby
eminencehc has quit [Remote host closed the connection]
duncannz has joined #ruby
slackbotgz has quit [Remote host closed the connection]
robh71 has joined #ruby
Guest76355 has joined #ruby
bootstrappm has left #ruby [#ruby]
ericjphillips has joined #ruby
redondo has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
kith_ is now known as kith
shadoi has quit [Ping timeout: 264 seconds]
bruno-_ has quit [Ping timeout: 255 seconds]
devoldmx has joined #ruby
redondo has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
JDiPierro has joined #ruby
haraoka has joined #ruby
solocshaw has joined #ruby
dorei has quit []
prereflect has joined #ruby
deject3d has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
prereflect has quit [Client Quit]
devbug has joined #ruby
p0wn3d has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
xxneolithicxx has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
bronson has joined #ruby
Ankhers has quit [Ping timeout: 246 seconds]
otacon- has quit [Ping timeout: 255 seconds]
elfuego has quit [Quit: elfuego]
p0wn3d has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
Ankhers has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
Spami has quit [Quit: This computer has gone to sleep]
opensource_ninja has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has quit [Ping timeout: 272 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
ramfjord has quit [Ping timeout: 244 seconds]
FernandoBasso has quit [Quit: WeeChat 1.3]
Rickmasta has joined #ruby
nopolitica has joined #ruby
Cyther_ has joined #ruby
ReK2 has quit [Ping timeout: 250 seconds]
shadoi has joined #ruby
law has left #ruby [#ruby]
nopolitica has quit [Client Quit]
tjbiddle has joined #ruby
reset has quit [Ping timeout: 244 seconds]
Cyther has quit [Ping timeout: 255 seconds]
JDiPierro has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dirtyonekanobi has quit [Quit: Connection closed for inactivity]
renderful has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
drewvanstone has joined #ruby
roxtrongo has joined #ruby
icole` has joined #ruby
benlieb has joined #ruby
Puffball has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
mary5030 has joined #ruby
phutchins1 has quit [Ping timeout: 240 seconds]
Guest76355 has quit [Ping timeout: 246 seconds]
sdwrage has joined #ruby
swgillespie has joined #ruby
chouhoulis has quit [Remote host closed the connection]
opensource_ninja has quit [Quit: opensource_ninja]
chouhoulis has joined #ruby
roxtrongo has quit [Ping timeout: 268 seconds]
icole` has quit [Ping timeout: 272 seconds]
Coldblackice has quit [Read error: Connection reset by peer]
xcesariox has joined #ruby
wallerdev has quit [Ping timeout: 240 seconds]
bmurt has quit []
mary5030 has quit [Ping timeout: 268 seconds]
scripore has joined #ruby
Hyperfocal has joined #ruby
Coldblackice has joined #ruby
mary5030 has joined #ruby
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
tjbiddle has quit [Quit: tjbiddle]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
p0wn3d has quit [Ping timeout: 252 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3_ has joined #ruby
<sp_> /4/3
slayerjain has joined #ruby
havenwood has joined #ruby
f3lp has joined #ruby
dravine_ has joined #ruby
Hyperfocal has left #ruby ["Textual IRC Client: www.textualapp.com"]
agent_meerkat has joined #ruby
`tim` has joined #ruby
dravine has quit [Ping timeout: 244 seconds]
dravine_ is now known as dravine
nateberkopec has quit [Quit: Leaving...]
chipotle has quit [Quit: cheerio]
workmad3_ has quit [Ping timeout: 265 seconds]
x-light has joined #ruby
tjbiddle has joined #ruby
slayerjain has quit [Client Quit]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
ericjphillips has quit [Quit: Leaving.]
f3lp has quit [Ping timeout: 246 seconds]
gambl0re has joined #ruby
InternetFriend has joined #ruby
bruno- has joined #ruby
Eiam_ has joined #ruby
x-light has quit [Quit: See Ya!]
yeticry has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
bklane has quit [Remote host closed the connection]
Contigi has joined #ruby
aaeron has quit [Quit: Leaving.]
dravine_ has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
dravine has quit [Ping timeout: 240 seconds]
dravine_ is now known as dravine
yeticry has joined #ruby
bmurt has joined #ruby
bronson has joined #ruby
_djbkd has joined #ruby
iamninja_ has quit [Ping timeout: 244 seconds]
mclee_ has quit [Ping timeout: 272 seconds]
reset has joined #ruby
Newtonianb has joined #ruby
mclee_ has joined #ruby
iamninja_ has joined #ruby
baweaver has joined #ruby
Rodya_ has quit [Quit: Leaving...]
lemur has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
baweaver_ has joined #ruby
EllisTAA has joined #ruby
Newtonianb has quit [Ping timeout: 268 seconds]
Newtonianb has joined #ruby
roxtrongo has joined #ruby
lemur has quit [Ping timeout: 246 seconds]
baweaver has quit [Ping timeout: 268 seconds]
deject3d has quit [Quit: Computer has gone to sleep.]
chipotle has joined #ruby
tokik_ has quit [Quit: leaving]
tokik has joined #ruby
mxrguspxrt has joined #ruby
tkuchiki has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
neohunter has joined #ruby
chipotle has quit [Quit: cheerio]
mxrguspxrt has quit [Ping timeout: 264 seconds]
neohunter has quit [Read error: Connection reset by peer]
arescorpio has joined #ruby
reset has quit [Quit: Linkinus - http://linkinus.com]
reset has joined #ruby
aaeron has joined #ruby
agent_meerkat has quit [Quit: Lost terminal]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
neohunter has joined #ruby
<neohunter> I'm using cap 2.3.0, this error appear (NoMethodError: undefined method `select!' for ["none"]:Array) with ruby 1.8.7-p374, but works with p370... gem list are exactly the same.. what could be?... or how i can debug that, there is no stacktrace or any file to log for, i tried runnign with -v same result
EllisTAA has quit [Quit: EllisTAA]
devoldmx has joined #ruby
<bnagy> neohunter: probably the core answer is get the heck off 1.8
<bnagy> 1.9 is pretty much eol, 1.8 is ancient
<neohunter> I can't is a web service used by a lot of people, we are creating an upgrade but i can just say, disable everything and send clients to competitors.
<neohunter> :)
bklane has joined #ruby
<bnagy> well select! vanished as a method at some point, maybe that was it
<bnagy> I guess fix the code
x-light has joined #ruby
<bnagy> 1.8 is full of security bugs as well, btw
Rollabunna has joined #ruby
xxneolithicxx has joined #ruby
renderful has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
davedev24 has quit []
gener1c has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 264 seconds]
<bnagy> hm.. actually it's kind of weird... it vanished from the docs
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy> 18>> [].methods.include? :select!
<ruboto> bnagy # => false (https://eval.in/441185)
<bnagy> 19>> [].methods.include? :select!
<ruboto> bnagy # => true (https://eval.in/441186)
<bnagy> kek
<bnagy> 18>> RUBY_VERSION
<ruboto> bnagy # => "1.8.7" (https://eval.in/441187)
<bnagy> fail
<bnagy> 18>> RUBY_PATCHLEVEL
<ruboto> bnagy # => 358 (https://eval.in/441188)
<neohunter> with 358 it was working
<eam> I wonder if select! has the same performance regression as reject!
bklane has quit [Remote host closed the connection]
<bnagy> neohunter: can you patch the code?
Rollabunna has quit [Ping timeout: 265 seconds]
renderful has quit [Ping timeout: 240 seconds]
<bnagy> just change blah.select! to blah = blah.select
<neohunter> I can monkey patch, but how i can know what file?
haraoka has quit [Ping timeout: 265 seconds]
<neohunter> its an error raised by capistriano
<bnagy> grep for it
gener1c_ has quit [Ping timeout: 264 seconds]
dopie has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
unclouded has joined #ruby
braincrash has quit [Quit: bye bye]
pwnd_nsfw has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
krz has joined #ruby
braincrash has joined #ruby
iateadonut has joined #ruby
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
agent_white has joined #ruby
<agent_white> Evenin'
bmurt has quit []
aaeron has quit [Quit: Leaving.]
Soda has joined #ruby
qpls has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
eminencehc has joined #ruby
ItSANgo has quit [Ping timeout: 264 seconds]
bklane has joined #ruby
hahuang65 has joined #ruby
aaeron has joined #ruby
aaeron1 has joined #ruby
redondo has quit [Ping timeout: 250 seconds]
aaeron has quit [Ping timeout: 260 seconds]
`tim` has joined #ruby
bruno- has joined #ruby
robh71 has joined #ruby
gix has quit [Ping timeout: 260 seconds]
robh71 has quit [Client Quit]
bmurt has quit []
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
p0wn3d has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
baweaver_ has quit [Read error: Connection reset by peer]
Rickmasta has joined #ruby
gix has joined #ruby
shadoi has quit [Quit: Leaving.]
baweaver has joined #ruby
Soda has quit [Remote host closed the connection]
aaeron1 has quit [Read error: Connection reset by peer]
dopieee has joined #ruby
arup_r has joined #ruby
lemur has joined #ruby
bmurt has joined #ruby
dopie has quit [Ping timeout: 272 seconds]
darkf has joined #ruby
baweaver has quit [Ping timeout: 246 seconds]
bmurt has quit [Client Quit]
pawnbox has joined #ruby
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
lemur has quit [Ping timeout: 246 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
RegulationD has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
Tempesta has joined #ruby
fedexo has joined #ruby
favadi has joined #ruby
EllisTAA has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
htmldrum has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
f3lp has joined #ruby
f3lp has quit [Read error: Connection reset by peer]
moloch__ is now known as zly
zly has quit [Changing host]
zly has joined #ruby
The_Phoenix has joined #ruby
baweaver has joined #ruby
hashrocket has quit [Quit: Connection closed for inactivity]
baweaver has quit [Client Quit]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 244 seconds]
mondayrain has joined #ruby
ramfjord has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0wn3d has quit [Ping timeout: 256 seconds]
reset has quit [Quit: Leaving...]
baweaver has joined #ruby
pawnbox has quit [Remote host closed the connection]
p0wn3d has joined #ruby
<joufflu> evening gov'na
zenguy_pc has joined #ruby
pwnd_nfsw has joined #ruby
workmad3_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 246 seconds]
Rickmasta has joined #ruby
zenguy_pc has quit [Max SendQ exceeded]
zenguy_pc has joined #ruby
pawnbox has joined #ruby
workmad3_ has quit [Ping timeout: 246 seconds]
_djbkd has quit [Remote host closed the connection]
wldcordeiro_ has quit [Quit: Konversation terminated!]
tlarevo has joined #ruby
gambl0re has quit [Remote host closed the connection]
gambl0re has joined #ruby
tlarevo has quit [Client Quit]
agent_white has quit [Read error: Connection reset by peer]
jdawgaz has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
rushed has quit [Quit: rushed]
agent_white has joined #ruby
rushed has joined #ruby
eminencehc has quit [Remote host closed the connection]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duncannz has quit [Remote host closed the connection]
rushed has quit [Client Quit]
Lucky__ has joined #ruby
amystephen has quit [Quit: amystephen]
Xiti has quit [Quit: Xiti]
p0wn3d has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
pawnbox has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
pawnbox has joined #ruby
Xiti has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Ping timeout: 256 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
rushed has joined #ruby
rushed has quit [Client Quit]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sargas has joined #ruby
noethics has quit [Quit: Leaving]
adam__ has joined #ruby
adam__ has quit [Client Quit]
jamesaxl|2 has joined #ruby
tkuchiki has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
fedexo has quit [Ping timeout: 246 seconds]
jamesaxl has quit [Ping timeout: 246 seconds]
jun has joined #ruby
bayed has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
freerobby has quit [Quit: Leaving.]
chouhoulis has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
yfeldblum has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 260 seconds]
<Sou|cutter> http://ruby-doc.com/docs/ProgrammingRuby/html/ref_c_string.html#String.to_str indicates that Exception implements #to_str however AFAICT going back to 1.9.3 that does not appear to be true
<Sou|cutter> does this happen in some extension module or something? Or is this just something that was changed after writing (but still very very long ago)
bigbadbear has quit [Ping timeout: 268 seconds]
astrobunny has quit [Ping timeout: 255 seconds]
pawnbox has joined #ruby
lemur has joined #ruby
baweaver has quit [Ping timeout: 246 seconds]
dikaio has joined #ruby
woodruffw has quit [Quit: And then he took off.]
sanjayu has joined #ruby
woodruffw has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
arescorpio has quit [Quit: Leaving.]
skweek has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
Newtonianb has quit [Ping timeout: 244 seconds]
x-light has quit [Ping timeout: 255 seconds]
<bnagy> that ref is from 1.6
devoldmx has joined #ruby
dravine has quit [Ping timeout: 264 seconds]
eGGsha has joined #ruby
skweek has joined #ruby
Rollabunna has joined #ruby
perry has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 246 seconds]
EllisTAA has quit [Quit: EllisTAA]
mary5030 has quit [Remote host closed the connection]
perry has joined #ruby
perry has quit [Changing host]
perry has joined #ruby
gustav_ has joined #ruby
mary5030 has joined #ruby
pawnbox has quit [Remote host closed the connection]
arooni has quit [Ping timeout: 240 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nofxx has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
nofxx has joined #ruby
gustav_ has quit [Ping timeout: 256 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
pawnbox has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
allomov has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
tejasmanohar_ has joined #ruby
tejasmanohar has quit [Ping timeout: 252 seconds]
tejasmanohar_ is now known as tejasmanohar
jenrzzz has quit [Ping timeout: 264 seconds]
Lucky__ has joined #ruby
skade has joined #ruby
skweek has joined #ruby
shoerain has joined #ruby
Kallis has joined #ruby
<shoerain> i think my google-fu is weak, how would I find a drawing library for ruby? I'm ideally looking for something like Processing in Java or Quil in Clojure. Outputting to bitmap or png would be great...
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
slayerjain has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 250 seconds]
tjbiddle has joined #ruby
Musashi007 has joined #ruby
dhjondoh has joined #ruby
jenrzzz has joined #ruby
x-light has joined #ruby
x-light has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 246 seconds]
jschmid has quit [Remote host closed the connection]
nahtnam has left #ruby [#ruby]
slayerjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
piotrj has joined #ruby
amclain has quit [Quit: Leaving]
Musashi007 has quit [Quit: Musashi007]
TomyLobo has joined #ruby
casadei has quit [Remote host closed the connection]
Anti-Pizza has joined #ruby
slayerjain has joined #ruby
vondruch has joined #ruby
piotrj has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
cFouts has quit [Quit: ZNC - http://znc.in]
bigbadbear has joined #ruby
pawnbox has joined #ruby
codenapper has joined #ruby
dathon has joined #ruby
bronson has joined #ruby
piotrj has joined #ruby
aganov has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
bigbadbear has quit [Ping timeout: 264 seconds]
sdrew has joined #ruby
yardenbar has joined #ruby
Rickmasta has joined #ruby
chouhoulis has quit [Remote host closed the connection]
workmad3_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
charliesome has joined #ruby
drewvanstone has quit [Ping timeout: 252 seconds]
Rutix has joined #ruby
Rutix has joined #ruby
workmad3_ has quit [Ping timeout: 252 seconds]
emilkarl has joined #ruby
yfeldblum has joined #ruby
Cyther has joined #ruby
Cyther_ has quit [Ping timeout: 240 seconds]
bklane has quit [Remote host closed the connection]
mondayrain has quit [Ping timeout: 246 seconds]
piotrj has quit [Remote host closed the connection]
lemur is now known as baweaver
piotrj has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
tjbiddle has quit [Ping timeout: 240 seconds]
iamninja_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lsmola has joined #ruby
sanjayu has quit [Remote host closed the connection]
vondruch has quit [Quit: Ex-Chat]
slayerjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gustav_ has joined #ruby
tjbiddle has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
codecop has joined #ruby
allomov has quit [Remote host closed the connection]
amystephen has joined #ruby
firstdayonthejob has joined #ruby
pokmo has left #ruby ["ciao"]
closer has quit [Ping timeout: 272 seconds]
gustav_ has quit [Ping timeout: 255 seconds]
vondruch has joined #ruby
closer has joined #ruby
amystephen has quit [Ping timeout: 256 seconds]
St1gma has quit [Ping timeout: 264 seconds]
eGGsha has joined #ruby
rbowlby has quit [Ping timeout: 240 seconds]
sanjayu has joined #ruby
ZucchiniZe has joined #ruby
riotjones has joined #ruby
existensil has quit [Ping timeout: 272 seconds]
n008f4g_ has quit [Ping timeout: 268 seconds]
andikr has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
Kallis has quit [Read error: Connection reset by peer]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
piotrj has quit [Remote host closed the connection]
tjbiddle has joined #ruby
moeabdol has quit [Ping timeout: 264 seconds]
swgillespie has joined #ruby
vF3hNGxc47h8 has quit [Ping timeout: 246 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
St1gma has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
existensil has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
araujo_ has joined #ruby
rbowlby has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pathfinder has joined #ruby
araujo has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 240 seconds]
SenpaiSilver has quit [Quit: Leaving]
Pumukel has joined #ruby
dikaio has joined #ruby
drewvanstone has joined #ruby
ndrei has joined #ruby
bronson has joined #ruby
relix has joined #ruby
devbug has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 256 seconds]
dathon has quit [Quit: Leaving.]
ndrei has joined #ruby
TomyLobo has quit [Ping timeout: 264 seconds]
rodfersou has joined #ruby
joufflu has quit [Read error: Connection reset by peer]
skeptics has joined #ruby
<skeptics> Hi
<skeptics> I am new to ruby
<ZucchiniZe> its an awesome language
<rapha> indeed it is
<ZucchiniZe> any of you taken a look at elixir?
<skeptics> The question is arrived in my mind why should I have to learn Ruby?
[k- has joined #ruby
Rickmasta has joined #ruby
<skeptics> Why Ruby?
Spami has joined #ruby
<[k-> do you have any other languages in mind?
Oka has quit [Quit: o/]
jun has quit [Remote host closed the connection]
anisha has joined #ruby
last_staff has joined #ruby
nfk|laptop has joined #ruby
<skeptics> Perl
firstdayonthejob has quit [Ping timeout: 268 seconds]
<baweaver> You don't _have_ to do anything
tagrudev has joined #ruby
<baweaver> depends entirely on what you _want_ to do
<[k-> do you have any previous experience?
yfeldblum has quit [Ping timeout: 240 seconds]
xcesariox has joined #ruby
sarlalian has quit [Quit: WeeChat 0.4.2]
pawnbox has quit [Read error: Connection reset by peer]
sarlalian has joined #ruby
TheHodge has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
Rollabunna has joined #ruby
yfeldblum has joined #ruby
karapetyan has joined #ruby
Burgestrand has joined #ruby
solars has joined #ruby
Rollabunna has quit [Ping timeout: 252 seconds]
eminencehc has joined #ruby
pawnbox has joined #ruby
BrazenBraden has joined #ruby
drewvanstone has quit [Ping timeout: 255 seconds]
piotrj has joined #ruby
pyon has quit [Ping timeout: 250 seconds]
SCHAAP137 has joined #ruby
<shevy> skeptics why perl
devoldmx has joined #ruby
gustav_ has joined #ruby
mxrguspxrt has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mxrguspx_ has joined #ruby
codenapper has quit []
Burgestrand has quit []
pawnbox has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
tomchapin has joined #ruby
gustav_ has quit [Ping timeout: 244 seconds]
mxrguspxrt has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
mxrguspx_ has quit [Client Quit]
arup_r has joined #ruby
Xeago has joined #ruby
jamesaxl|2 has quit [Ping timeout: 246 seconds]
tjbiddle has quit [Quit: tjbiddle]
tomchapin has quit [Read error: Connection reset by peer]
<skeptics> perl is good for makin hacks
<skeptics> Shevy
bruno- has joined #ruby
<yorickpeterse> morning
howdoi has joined #ruby
tomchapin has joined #ruby
Kendos-Kenlen has joined #ruby
allomov has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
trautwein has joined #ruby
skeptics has quit [Ping timeout: 272 seconds]
workmad3_ has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
piotrj has quit [Remote host closed the connection]
bronson has joined #ruby
SylarRuby has joined #ruby
ruurd has joined #ruby
workmad3_ has quit [Ping timeout: 240 seconds]
piotrj has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
niko has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hounddog has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
charliesome has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
charliesome has quit [Client Quit]
RegulationD has joined #ruby
herbst has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has quit [Ping timeout: 240 seconds]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
cih has joined #ruby
freezevee has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
last_staff has quit [Quit: last_staff]
htmldrum has quit [Ping timeout: 240 seconds]
ruurd has quit [Quit: ZZZzzz…]
The_Phoenix has quit [Quit: Leaving.]
joonty has joined #ruby
miah has quit [Quit: DevOps? DerpOps maybe!]
rdark has joined #ruby
pawnbox has joined #ruby
<adaedra> Hello
Xeago has joined #ruby
emilkarl has quit [Quit: emilkarl]
nfk|laptop has quit [Quit: yawn]
skade has joined #ruby
blaxter has joined #ruby
S_Walker has quit [Quit: ZNC - http://znc.in]
Kendos-Kenlen has quit [Ping timeout: 260 seconds]
pyon has joined #ruby
stan has joined #ruby
c0m0 has joined #ruby
Xeago has quit [Remote host closed the connection]
S_Walker has joined #ruby
gustav__ has joined #ruby
<shevy> dumdedum
devoldmx has joined #ruby
ruurd has joined #ruby
gagrio has joined #ruby
bestbrents has joined #ruby
Anti-Pizza has quit [Read error: Connection reset by peer]
bestbrents__ has quit [Ping timeout: 246 seconds]
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
<shevy> the path towards staticness commences
charliesome has joined #ruby
gustav__ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 256 seconds]
<arup_r> shevy: How did you reach to the changelog .. Were you reading Ruby source code ? :)
unshadow has joined #ruby
Burgestrand has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
charliesome has quit [Client Quit]
Xeago has joined #ruby
fluchtreflex has joined #ruby
fluchtreflex has joined #ruby
charliesome has joined #ruby
blaxter has quit [Ping timeout: 255 seconds]
Flying_Squirrel has joined #ruby
emilkarl has joined #ruby
fluchtreflex has quit [Client Quit]
<shevy> arup_r I use it like a news section
ryanlntn has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
FrankD has quit [Ping timeout: 244 seconds]
<arup_r> ok... shevy ..
dhjondoh has quit [Quit: dhjondoh]
sanjayu has quit [Ping timeout: 244 seconds]
haraoka has joined #ruby
oniMaker has joined #ruby
Kendos-Kenlen has joined #ruby
ta has quit [Remote host closed the connection]
fluchtreflex has joined #ruby
fluchtreflex has joined #ruby
Xeago has quit [Remote host closed the connection]
rbowlby has quit [Remote host closed the connection]
<shevy> it's like a readers digest
Xeago has joined #ruby
agent_white has quit [Quit: night]
blaxter has joined #ruby
bronson has joined #ruby
Zai00 has joined #ruby
auzty has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<tuor> hi, when i have a if statement with only one line in it (like: if true; do_this; end) but it's to long to write it on one line (more the 80 letters), should I write it with "if ...;..;end" or "... \;if ..." ?
bronson has quit [Ping timeout: 240 seconds]
sanjayu has joined #ruby
<tobiasvl> why do you have to have it on one line?
dionysus69 has quit [Ping timeout: 240 seconds]
<tobiasvl> and what do you mean by your second example? ;if ?
marr has joined #ruby
<shevy> if it is too long, chop it down
Juanchito has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
ryanlntn has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
southpawlar has joined #ruby
parduse has joined #ruby
pardusf has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
<tuor> It's just examples for what I meen.
jenrzzz has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
Balzrael has joined #ruby
<jhass> tuor: you should extract it to a method or two then
araujo_ has quit [Quit: Leaving]
araujo has joined #ruby
<tuor> This is a method from my code: https://gist.github.com/anonymous/3419030c49b780c29716
SylarRuby has quit [Remote host closed the connection]
sepp2k has joined #ruby
<tuor> line 14 was to long for writing it like 11 or 12.
araujo has quit [Max SendQ exceeded]
workmad3_ has joined #ruby
yardenbar has quit [Ping timeout: 256 seconds]
<tuor> jhass, can you explain what you meen (with the new code example), I don't understand it.
araujo has joined #ruby
<jhass> ?fake
<ruboto> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<jhass> oh, you updated, nvm
<jhass> mmh, does that even hit 80 cols?
<jhass> my personal hard limit is more like 120 btw
arup_r has quit [Remote host closed the connection]
<jhass> nope, longest is 78
jenrzzz has joined #ruby
<jhass> so personally I would keep it since my limit is 120 not 80, so I would even align the = and the if's of the other two lines to it
<tuor> the difference between the two pastes is what i meen. I would like to write like in the second one (on one line) but it's to long. So the question is: is it ok to write it like this: https://gist.github.com/anonymous/acdd9af77c53de966673
astrobunny has quit [Remote host closed the connection]
<jhass> but yeah, just break it into a regular if
<jhass> ah no, that's horrible
<jhass> do what you posted first, use a regular if
<tuor> jhass, OK. That was what I wanted to know. :)
workmad3_ has quit [Ping timeout: 250 seconds]
leafybasil has quit [Remote host closed the connection]
<tuor> I was not focusing on aligning, but shure.
leafybasil has joined #ruby
bruno- has joined #ruby
<jhass> however you could also do something like def set_connection_option(options, field); @connection[field] = options[field] if better_name_for_whatever_check_key_string_does(options, field); end
jenrzzz has quit [Ping timeout: 268 seconds]
dhjondoh has joined #ruby
tvw has joined #ruby
leafybasil has quit [Ping timeout: 268 seconds]
Rollabunna has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
[k- has quit [Ping timeout: 252 seconds]
<jhass> tuor: http://paste.mrzyx.de/pfan00ti4 makes it less crowded
dikaio has quit [Quit: ........]
poguez_ has quit [Quit: Connection closed for inactivity]
alexherbo2 has joined #ruby
yardenbar has joined #ruby
<tuor> jhass, the other lines need to be in the first if statement to. (check_key_string is a method which checks if the param1 is a hash, if the key param2 exists and if the value of the key param2 is a not empty string.) I don't know how to call it... It's because options can be set or not and if they are set, they should be the correct datatype.
<jhass> and then does what? raise an error?
Rollabunna has quit [Ping timeout: 255 seconds]
ponga has joined #ruby
moeabdol has joined #ruby
chthon has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
piotrj has quit [Remote host closed the connection]
<jhass> recursive, with an e at the end
piotrj has joined #ruby
Igorshp has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
<tuor> jhass, thx, it's changed.
<jhass> also connection with a single t btw
<jhass> so I'd strive for something like http://paste.mrzyx.de/p7pogod1y
<tuor> If there are any puts '...' remaining, there was just for testing stuff.
workmad3_ has joined #ruby
<jhass> Hash.new -> {}
<tuor> jhass, I'll need a moment understanding what you did.
<jhass> mkdir_p does the existence check for you already
<jhass> I added a layer of abstraction to the method to make it easier to follow
<tuor> ah yes I see. looks nice.
<jhass> get_templates_list -> templates_list no get_ prefixes
Porfa has joined #ruby
<jhass> https://gist.github.com/anonymous/2be41cd6f103611fc885#file-zabbixsync-rb-L235 just make that your default, it won't be evaluated if an argument is given
leafybasil has joined #ruby
<jhass> Array.new -> []
S_Walker has quit [Quit: ZNC - http://znc.in]
<shevy> a lambda!
leafybasil has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
<jhass> calling a method that sets @templates_list every time it's called and then relying on @templates_list being set is quite horrible, just return the value from that method
piotrj has quit [Remote host closed the connection]
BTRE has quit [Quit: Leaving]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
southpawlar has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
piotrj has joined #ruby
ta has joined #ruby
<tuor> jhass, ok the abstraction thing would be biger changes, so i begin with the other stuff. I'll be back.
Kendos-Kenlen has quit [Quit: Konversation terminated!]
[k- has joined #ruby
DoubleMalt has joined #ruby
pepperbreath has left #ruby [#ruby]
Flying_Squirrel has quit [Ping timeout: 264 seconds]
stamina has joined #ruby
Kendos-Kenlen has joined #ruby
codecop has quit [Ping timeout: 250 seconds]
codecop has joined #ruby
stamina has quit [Client Quit]
VaibhavRajput has joined #ruby
<VaibhavRajput> what is the different between file open with 'w' and FILE:RDWR mode
<shevy> what is FILE:RDWR
<[k-> readwrite is w+, or r+, or maybe a+
<[k-> a+ is append though
S_Walker has joined #ruby
<shevy> I found that I need only either w+ or a+
<canton7> 'w' is File::WRONLY|File::TRUNC|File::CREAT, apparently
drptbl has joined #ruby
<canton7> 'r+' is File::RDWR
slayerjain has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
<VaibhavRajput> Where will I get more details about File::WRONLY|File::TRUNC|File::CREAT
slayerjain has quit [Client Quit]
<ZucchiniZe> never fully learned ruby
<ZucchiniZe> it is awesome
codecop has quit [Ping timeout: 250 seconds]
liquidmetal has quit [Ping timeout: 246 seconds]
<jhass> VaibhavRajput: RDONLY open read only, WRONLY open write only, RDWR open for reading and writing, TRUNC truncate (=empty file), CREAT = create (create if not exists)
stamina has joined #ruby
<[k-> wronly: write only, trunc: truncate, creat: create
<[k-> oh you have already said it :(
<jhass> you're too slow
Burgestrand has quit []
<VaibhavRajput> jhass, Thanks :)
<arup_r> VaibhavRajput: There you go : http://ruby-doc.org/core-2.0.0/File/Constants.html
<[k-> i didn't even caps the words
allomov has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<VaibhavRajput> :)
<jhass> VaibhavRajput: but most people just use r, w, a, r+, rb, wb, w+b
<adaedra> [k-: can't beat german efficiency.
<jhass> ab I guess
<jhass> r being the default, so you rarely see it in code actually
Burgestrand has joined #ruby
piotrj has quit [Remote host closed the connection]
liquidmetal has joined #ruby
piotrj has joined #ruby
bronson has joined #ruby
piotrj has quit [Remote host closed the connection]
iamninja_ has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
<[k-> i use w+
iamninja_ has joined #ruby
northfurr has joined #ruby
<adaedra> I use what suits the situation.
lkba has quit [Ping timeout: 256 seconds]
emilkarl has quit [Quit: emilkarl]
codecop has joined #ruby
<jhass> adaedra: how dare you! being reasonable!
millerti has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 268 seconds]
ruurd has joined #ruby
<adaedra> sorry
RegulationD has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<VaibhavRajput> I have multiple thread which is writing and reading into the same file. I wanted to truncate file before writing into it at the same time other thread can read it. I have added File::LOCK_EX. The issue which I am facing is if two thread tries to write into same file the thread truncate the file write it successfully but the second one will just prepend the content followed by first thread content. gist : https://gist.github.com/rajp
<VaibhavRajput> utvai/e8b940555d3dfc71a02b
slayerjain has joined #ruby
Burgestrand has quit []
RegulationD has quit [Ping timeout: 244 seconds]
drbrain has quit [Ping timeout: 246 seconds]
emilkarl has joined #ruby
robbyoconnor has joined #ruby
drbrain has joined #ruby
rikkipitt has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
DoubleMalt has quit [Read error: Connection reset by peer]
Flying_Squirrel has joined #ruby
pawnbox has joined #ruby
jenrzzz has joined #ruby
sanjayu has quit [Ping timeout: 246 seconds]
psy_ has quit [Ping timeout: 252 seconds]
tsujp has joined #ruby
bruno- has joined #ruby
k3asd` has joined #ruby
vF3hNGxc47h8 has joined #ruby
rikkipitt has quit [Quit: Leaving...]
lolmaus has joined #ruby
bigbadbear has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
xxneolithicxx has joined #ruby
skade has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
<certainty> moin moin moin
<jhass> VaibhavRajput: wild guess, but seek to the start after obtaining the lock?
JaReAx has joined #ruby
moeabdol has joined #ruby
CloCkWeRX has joined #ruby
<jhass> or the end, rereading
<VaibhavRajput> jhass, can you please elaborate.
slayerjain has quit [Quit: Textual IRC Client: www.textualapp.com]
beast has joined #ruby
emilkarl has quit [Quit: emilkarl]
piotrj has joined #ruby
<jhass> f.seek(0, IO::SEEK_END)
bigbadbear has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
drptbl has joined #ruby
Kero has quit [Ping timeout: 265 seconds]
Kero has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
dmolina has joined #ruby
<tuor> jhass, so i did some changes: https://gist.github.com/anonymous/b63c98f2f204fd75ce98 (I don't know how to show diff between 2 pastes....)
<jhass> tuor: you simply edit the first one
<jhass> then you get revisions with diff
<tuor> jhass, ah.
<jhass> I still don't like calling it check_...
<jhass> it's not an action, you ask them for a true/false thing
drptbl has quit [Client Quit]
devoldmx has joined #ruby
<jhass> why do you assign @templates_list at all?
arup_r is now known as foo_bar
foo_bar is now known as cucumber_
cucumber_ is now known as quit_rails
alexherbo2 has quit [Ping timeout: 256 seconds]
<adaedra> quit_rails: what are you doing
<tuor> jhass, i didn't change the names of all the methods because i want to rethink about how to do it and then directly rewrite with better names.
<tuor> I just want to do all the other stuff first.
Coldblackice has quit [Ping timeout: 264 seconds]
<quit_rails> adaedra: nothing.. just bored.. :(
devoldmx has quit [Ping timeout: 250 seconds]
<adaedra> quit_rails: you do realize it's a bit annoying to have all your nick changes in all channels?
Rickmasta has joined #ruby
<tuor> To assign to @templates_list comes with how I used it befor. I just didn't removed it (because I don't checked if it's realy changed every where)
dravine has joined #ruby
<quit_rails> adaedra: not aware of.. sorry
ericjphillips has joined #ruby
<shevy> tuor I found that this can happen in big projects
<quit_rails> I was just testing the command.. how it works..
<shevy> like when you end up with 20 @instance vars, then change a lot of stuff... suddenly you realize that you only need 15 of them at maximum after the rewrite
piotrj has quit [Remote host closed the connection]
quit_rails has quit []
darkf has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
* tuor is working on list_templates.
tjbiddle has joined #ruby
Zai00 has quit [Quit: Zai00]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drewvanstone has joined #ruby
northfurr has quit [Quit: northfurr]
krz has quit [Quit: WeeChat 1.2]
<tuor> jhass, so the list_templates is cleaned a little bit up: https://gist.github.com/nod0n/e9db3cb04b4eb5557027
sanjayu has joined #ruby
darkf has joined #ruby
<jhass> cool
<tuor> I'll have a breake and then try to rewrite the options stuff. Cu later. Thx for your help jhass! :)
drewvanstone has quit [Ping timeout: 250 seconds]
piotrj has joined #ruby
piotrj has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 255 seconds]
postmodern has quit [Quit: Leaving]
piotrj has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
ruurd has quit [Quit: ZZZzzz…]
ruurd has joined #ruby
nofxx has quit [Remote host closed the connection]
y_gick has joined #ruby
<y_gick> ahhhhhhhhhhhhh
<y_gick> pinterest unveilled its API
<y_gick> :)))
<y_gick> goodbye headache with AJAX and reversing :)))
<[k-> copper later
<[k-> he wants to get poisoned???!
bronson has joined #ruby
arup_r has joined #ruby
y_gick has quit [Quit: WeeChat 1.1]
Voker57 has joined #ruby
sdothum has joined #ruby
alexherbo2 has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
AlexRussia has joined #ruby
ericjphillips has quit [Quit: Leaving.]
piotrj has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 246 seconds]
auzty has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
Cyther_ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
pawnbox has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Cyther has quit [Ping timeout: 268 seconds]
ljarvis has quit [Read error: Connection reset by peer]
keen___________0 has joined #ruby
ruurd has joined #ruby
diegobiavati has joined #ruby
keen____________ has quit [Ping timeout: 260 seconds]
tsujp has quit [Quit: tsujp is snoozing]
elfuego has joined #ruby
Anti-Pizza has joined #ruby
solocshaw has joined #ruby
psy_ has joined #ruby
davedev24 has joined #ruby
relix_ has joined #ruby
bruno- has joined #ruby
diegobiavati_ has joined #ruby
DaniG2k has joined #ruby
Rollabunna has joined #ruby
relix has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
charliesome has joined #ruby
darkf has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Ping timeout: 240 seconds]
<shevy> [k- less haskell, more ruby!
tkuchiki has quit [Remote host closed the connection]
scripore has joined #ruby
phutchins1 has joined #ruby
psy_ has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
tkuchiki has joined #ruby
psy_ has joined #ruby
cih has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 240 seconds]
FernandoBasso has joined #ruby
workmad3_ has quit [Quit: Lost terminal]
lkba has joined #ruby
varunwachaspati has joined #ruby
workmad3_ has joined #ruby
last_staff has joined #ruby
moeabdol has quit [Ping timeout: 272 seconds]
but3k4 has joined #ruby
piotrj has joined #ruby
lkba_ has quit [Ping timeout: 250 seconds]
bruno- has quit [Quit: Lost terminal]
bruno- has joined #ruby
Zai00 has joined #ruby
Burgestrand has joined #ruby
tkuchiki has quit [Remote host closed the connection]
darkf has joined #ruby
<[k-> I've not touched the computer, for longer than Ox0dea was gone
InternetFriend has joined #ruby
pepperbreath has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bazbing80 has quit [Quit: leaving]
<jhass> so, every expression in Ruby has a value right?
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
arturmartins has joined #ruby
but3k4 has joined #ruby
emilkarl has joined #ruby
JaRe_Ax has joined #ruby
<[k-> yes, an expression is not a statement
syath has joined #ruby
marens_ is now known as marens
cih has joined #ruby
<jhass> which statement (in Ruby) is not an expression?
<jhass> besides __END__, if you want to call that a statement
JaReAx has quit [Ping timeout: 256 seconds]
JaRe_Ax is now known as JaReAx
dhjondoh has quit [Quit: dhjondoh]
<[k-> i don't know any examples
ericjphillips has joined #ruby
<[k-> maybe quickref has something?
<jhass> but you still claim there are any?
darkf has quit [Ping timeout: 246 seconds]
quazimodo has joined #ruby
karapetyan has quit [Remote host closed the connection]
<[k-> if i claimed there weren't any, that might be wrong too
livcd has quit [Changing host]
livcd has joined #ruby
allomov has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<eam> jhass: well, there are all sorts of statements that aren't expressions (because they raise SyntaxError) right?
<jhass> well, syntactically valid of course
<eam> but it's syntactically valid to raise (and handle) SyntaxError in ruby because ruby is dynamic
ldnunes has joined #ruby
<eam> in some languages that's not the case
allomov has quit [Ping timeout: 250 seconds]
dhjondoh has joined #ruby
<[k-> maybe a raise is a statement
<jhass> &ri Kernel#raise
phutchins1 has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: joonty]
<jhass> but this brings us to my motivation
<jhass> raise (and Kernel#exit too) is a call, an expression. But what is its value?
<eam> exit! has no value
<eam> (to ruby)
JDiPierro has joined #ruby
<certainty> well any value i guess
allomov has joined #ruby
<[k-> bottom?
<certainty> yes
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tejasmanohar has quit [Quit: tejasmanohar]
Flying_Squirrel has quit [Ping timeout: 240 seconds]
<certainty> technically it's bottom
<eam> who's bottom?
favadi has joined #ruby
* shevy raises hand
<jhass> ?shevy
<ruboto> shevy is the hound of baskerville (see http://irclog.whitequark.org/ruby/2015-08-13#13699759)
<jhass> ruboto thinks otherwise
<certainty> bottom is a computation that never completes successfully. See https://wiki.haskell.org/Bottom
drptbl has joined #ruby
favadi has quit [Client Quit]
DaniG2k has quit [Quit: leaving]
<shevy> hmm is there a way to find out if a file is "binary or text file"? I need to do "cat input_file_here", but only if it is a text file, "cat foo.mp3" does not give me a lot of useful things
<jhass> file is pretty good in detecting ascii
Cyther has joined #ruby
quazimodo has quit [Ping timeout: 265 seconds]
tsujp has joined #ruby
Cyther_ has quit [Ping timeout: 264 seconds]
<Burgestrand> shevy: why only if it is a text file?
Xeago has quit [Remote host closed the connection]
<shevy> because when I display it on the commandline, "cat foo.mp3" yields nothing useful whereas "cat foo.txt" would
axiomatic_345 has joined #ruby
<Burgestrand> Maybe foo.txt is just gibberish?
<shevy> no
p0wn3d has joined #ruby
<Burgestrand> How do you know?
k3asd` has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
<shevy> do you store mp3 files in foo.txt or something?
Gnomethrower has quit [Max SendQ exceeded]
devoldmx has joined #ruby
<Burgestrand> Point being the extension is sufficient to know if it's printable?
joonty has joined #ruby
<shevy> of course
<certainty> xD
<Burgestrand> shevy: You can find out if it's a binary or text file by looking at the extension, so only cat files that aren't mp3!
prestorium has joined #ruby
<shevy> that is insane
<Burgestrand> So are platypuses.
dhjondoh has quit [Quit: dhjondoh]
<certainty> haha
<certainty> i like them
scripore has joined #ruby
scripore has quit [Remote host closed the connection]
bruno- has quit [Quit: Lost terminal]
workmad3_ has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
cih has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
cih_ has joined #ruby
konsolebox has quit [Max SendQ exceeded]
_el_fer_ has joined #ruby
konsolebox has joined #ruby
darkf has joined #ruby
dhjondoh has joined #ruby
platzhirsch has joined #ruby
tiredcat has joined #ruby
pawnbox has joined #ruby
OrbitalKitten has joined #ruby
amystephen has joined #ruby
rbennacer has joined #ruby
sanjayu has quit [Ping timeout: 260 seconds]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<shevy> fun note: http://help.collab.net/index.jsp?topic=/faq/svnbinary.html
ndrei has quit [Ping timeout: 246 seconds]
Jardayn has joined #ruby
axiomatic_345 has quit [Quit: Leaving]
andikr has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 256 seconds]
skade has quit [Quit: Computer has gone to sleep.]
elfuego has quit [Quit: elfuego]
Cyther_ has joined #ruby
Flying_Squirrel has joined #ruby
axiomatic_345 has joined #ruby
TvL2386 has joined #ruby
Cyther has quit [Ping timeout: 246 seconds]
cassioscabral has joined #ruby
DrCode has joined #ruby
Porfa has quit [Ping timeout: 255 seconds]
asxbr has joined #ruby
<oddmunds> shevy: so file(1)?
asxbr has quit [Client Quit]
The_Phoenix has joined #ruby
asxbr has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<certainty> +¹
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
favadi has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
k3asd` has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
relix_ has quit [Read error: Connection reset by peer]
The_Phoenix has quit [Max SendQ exceeded]
relix has joined #ruby
rbennacer has quit [Remote host closed the connection]
but3k4_ has joined #ruby
The_Phoenix has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
OrbitalKitten has quit [Read error: Connection reset by peer]
Klamber|ext has joined #ruby
<[k-> +²
DoubleMalt has joined #ruby
<shevy> oddmunds yeah
<tobiasvl> hey oddmunds
<Klamber|ext> Hey! I have a question about passing by values and references. I searched and found out that Ruby is pass by value. I can understand how that sometimes looks like pass by reference when you pass a object because you actually pass the "pointer" to a function. But is there a way to pass a variable to function and get a value back eg. pass by reference on variables. Or should I create a class just to hack around that ? (Ask if unclear)
<oddmunds> tobiasvl: heysways
bronson has joined #ruby
Anti-Pizza has quit [Quit: Quit]
pawnbox_ has joined #ruby
Burgestrand has quit []
<Klamber|ext> I want my function modify a variable passed to it.
jcromartie has joined #ruby
skweek has quit [Remote host closed the connection]
<shevy> Klamber|ext isn't that the default? anyway, you should always be able to clone strings for a new string object via .dup
pheuko has quit [Ping timeout: 240 seconds]
llua has left #ruby [#ruby]
<shevy> >> def foo(i); i << 'world'; end; i = 'Hello '; foo(i); i
<ruboto> shevy # => "Hello world" (https://eval.in/441592)
quazimodo has joined #ruby
workmad3_ has joined #ruby
<shevy> I still have not fully understood immutable strings
<[k-> like you don't with Unicode
pheuko has joined #ruby
pawnbox has quit [Ping timeout: 265 seconds]
emilkarl has quit [Quit: emilkarl]
bronson has quit [Ping timeout: 256 seconds]
<[k-> pass a variable to a function and get a value back?
yokel has joined #ruby
<Klamber|ext> [k-: For example... function returns some data, but I also pass a state parameter. I want to get the data returned by function and also read if state was changed.
<certainty> shevy: what's hard to understand about immutable strings? It's strings you can't mutate
<[k-> Klamber|ext: did you come from languages like haskell by any chance?
roxtrong_ has joined #ruby
<[k-> or are you embracing functional programming in Ruby
<Klamber|ext> [k-: Nope. Just used to pointers and sutch.
JaReAx has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
<adaedra> Klamber|ext: you can return multiple things in ruby, through an array.
JaReAx has joined #ruby
nateberkopec has joined #ruby
pheuko has quit [Ping timeout: 256 seconds]
<Klamber|ext> adaedra: array seems pretty hakish..
sdwrage has quit [Client Quit]
<[k-> but that's generally not how you do things in Ruby
<adaedra> it's common here
<adaedra> and you can do `data, state = calc_data(state)`
<[k-> you could use a hash, or a struct
<Klamber|ext> Would a state object work ?
<Klamber|ext> It should..
<Klamber|ext> I'll irb on it.. just a sec
<adaedra> It means you need to have a way of modifying the object in place.
roxtrongo has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
ndrei has joined #ruby
drewvanstone has joined #ruby
<[k-> how would you know the state has changed if the original state changed under your belt?
<[k-> you won't be able to compare them
<jhass> Klamber|ext: who said it's pass by value? it's entirely pass by reference
<[k-> true, false would be enough
atomical has joined #ruby
<jhass> well or all variables are pointers and they're passed by value if that fits your model better
<jhass> but the objects don't get copied
<oddmunds> in elixir, it's common to always return tuples like {:ok, data} = calc_data
<certainty> i think that what he was trying to say
bruno- has quit [Quit: Lost terminal]
Rickmasta has joined #ruby
<[k-> is that pattern matching on :ok?
<oddmunds> [k-: yeah
bruno- has joined #ruby
<Klamber|ext> hm.. Maybe I was thinking like C on that.. In Ruby you can raise exceptions, can't you ?
neohunter has quit [Ping timeout: 272 seconds]
<certainty> you can
<eam> certainty: exit! does complete successfully. But its side effect is that it terminates ruby and thus all values
<eam> it returns a non-ruby value to the parent process
moeabdol has joined #ruby
drewvanstone has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
<Klamber|ext> Well in my case I tested that I made a class and passed that alongside my other stuff to function then it becomes pretty easy..
<Klamber|ext> I might go with that right now..
Xeago has joined #ruby
<certainty> eam: yes exit does. I was referring to raise
<jhass> Klamber|ext: that sounds kinda like all your other stuff should be inside that class
decoponio has joined #ruby
<eam> ah
<jhass> or a couple of them
<Klamber|ext> jhass: Nope.
<[k-> we cant provide more help due to the lack of context so..
bmurt has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
<Klamber|ext> [k-: I understand. I was just asking if there is a way for the function to modify it's parameter so after function ends the parameter value changes remain.
<jhass> sorry but that wish demonstrates a severe lack of using OOP paradigms
`tim` has joined #ruby
<Klamber|ext> Like in other languages you can pass by reference or a pointer.
<Klamber|ext> jhass: That might be.
<[k-> it feels very awkward to me, does not fit in Ruby somehow
<jhass> hence the motivation for my "use more classes" statement
Rollabunna has joined #ruby
Porfa has joined #ruby
<jhass> a class is not just a struct you pass a around
skweek has joined #ruby
<jhass> well, not limited to
<Klamber|ext> not saying so..
<jhass> but yeah, probably can't argue this properly without context
DrCode has quit [Remote host closed the connection]
InternetFriend has joined #ruby
phutchins1 has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
Axy has joined #ruby
<Klamber|ext> For more context. I have a recursive function. I need to know if it's branches found something. There is always someting in the end of one branch. But as recursion starts to end it's cycles i want to know what branch had the thing i was searching. And to do that i thought i would passs a variable that gets changed to true or smth. So I would know after each recursive call if that branch is the link to the thing I'm looking for. That came out a
<adaedra> Return multiple things!
Rollabunna has quit [Ping timeout: 246 seconds]
pandaant has joined #ruby
<Klamber|ext> adaedra: And is that the right use of OO ?
<jhass> IRC has a message length limit of 510 bytes, that includes your prefix, so count with about 450
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
tsujp has quit [Quit: tsujp is snoozing]
<adaedra> The current branch is not really to be saved into the object?
<jhass> one could argue it is since you're returning an object that's a composition of the values you care about
Mia has quit [Ping timeout: 246 seconds]
SylarRuby has joined #ruby
<Klamber|ext> Eash brancjh link needs to know if it's on the path to "happyness" :D
<jhass> build a tree?
<jhass> mh, or a linked list rather
Burgestrand has joined #ruby
<Klamber|ext> I wish i had came out with that simple explanation. Yes a tree!
<jhass> so just build up an array of nodes that forms the path perhaps?
<Klamber|ext> Yes, pretty mutch.
JDiPierro has joined #ruby
felixr has joined #ruby
<Klamber|ext> But there is no need for the path to be saved in some different variable.
<jhass> so [node] + build_path(node)
<yorickpeterse> ergh, this idea of "MRI == not having to synchronize" is utterly broken
<yorickpeterse> e.g. seems concurrent-ruby also made that mistake
<Klamber|ext> Jup.
whippythellama has joined #ruby
cisco has joined #ruby
<jhass> then each_cons(2) == pairs with good links between them
malconis has joined #ruby
shinnya has joined #ruby
nfk|laptop has joined #ruby
<funkenstrahlen> hey, I got account.videos which returns a list of video objects. I know want to have a account.videos.contains for a video title which can be accessed by video.title
<funkenstrahlen> how can I do this in ruby syntax?
pheuko has joined #ruby
noethics has joined #ruby
soc42 has joined #ruby
<jhass> funkenstrahlen: .select or .find {|video| video.title == title } ?
<jhass> or .any?
<jhass> your question isn't too clear
Igorshp has quit [Remote host closed the connection]
favadi has joined #ruby
sgambino has joined #ruby
_el_fer_ has quit [Quit: Leaving]
[k-_ has joined #ruby
noethics has quit [Client Quit]
dirtyonekanobi has joined #ruby
<Klamber|ext> jhass: I'll keep that each_cons thingy in mind. (Ruby is new for me)
[k- has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
<jhass> Klamber|ext: just yields each n consecutive items
Flying_Squirrel has quit [Ping timeout: 240 seconds]
<funkenstrahlen> jhass: I want something like your .find example but with a simple true or false answer for 'does it contain the video.title video element'
<jhass> funkenstrahlen: that's any?
govg has joined #ruby
<shevy> certainty yeah so the above code would not work as-is right?
favadi has quit [Max SendQ exceeded]
<jhass> &ri Enumerable#any? @funkenstrahlen
<`derpy> funkenstrahlen: http://www.rubydoc.info/stdlib/core/Enumerable#any%3F-instance_method
catphish_ has joined #ruby
evanjs has joined #ruby
<catphish_> kinda specific question, does anyone know how to make OpenSSL::SSL::SSLContext honor the cipher order you give it?
unshadow has quit [Quit: leaving]
Pathfinder has quit [Remote host closed the connection]
moeabdol has joined #ruby
Pathfinder has joined #ruby
<funkenstrahlen> jhass `derpy thank you guys. have it working
<jhass> ?guys funkenstrahlen
<ruboto> funkenstrahlen, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<jhass> adaedra: does `derpy feel like a guy?
Burgestrand has quit []
Porfa has quit [Quit: Porfa]
<`derpy> Nope!
<shevy> funkenstrahlen is a mighty nick... almost as mighty as platzhirsch, flughafen and Papierkorb ... we also used to have brotspinne
casadei has joined #ruby
<Klamber|ext> jhass: Coming back from smoke, I relized that but still a useful thingy..
<shevy> smoking lowers coding productivity!
roxtrong_ has quit [Remote host closed the connection]
favadi has joined #ruby
<certainty> coding lowers smoking productivity!
<shevy> hah
<jhass> productivity lowers smoking coding!
ndrei has joined #ruby
Leef_ has joined #ruby
<adaedra> >> %w[smoking lowers coding productivity].shuffle
varunwachaspati has quit [Quit: Connection closed for inactivity]
<ruboto> adaedra # => ["productivity", "smoking", "lowers", "coding"] (https://eval.in/441616)
_el_fer_ has joined #ruby
<shevy> you coded yoda adaedra
Igorshp has joined #ruby
<adaedra> is it a valid sentence
<certainty> yoda never spoke in arrays
krz has joined #ruby
rbennacer has joined #ruby
<shevy> but in riddles!
Burgestrand has joined #ruby
imperator has joined #ruby
favadi has quit [Max SendQ exceeded]
Porfa has joined #ruby
<adaedra> nah
lxsameer has joined #ruby
lxsameer has joined #ruby
* `derpy does the bot dance
<certainty> that was the riddler
tno has joined #ruby
victortyau has joined #ruby
rbennacer has quit [Remote host closed the connection]
WajidKagzi has joined #ruby
ericjphillips has quit [Quit: Leaving.]
<Klamber|ext> Smoking is bad mkay..
rbennacer has joined #ruby
<WajidKagzi> could someone please help me with this problem
<shevy> oh a divmod question
<shevy> jhass is a divmod expert
jhass is now known as not_jhass
<WajidKagzi> i understand all of it except the a+b part at the last line
VaibhavRajput has quit [Ping timeout: 250 seconds]
<shevy> ok what should the output be? of the p divmod(15.5, -3.5)
rbennacer has quit [Read error: Connection reset by peer]
<shevy> let me fetch my irb calculator!!!
<WajidKagzi> well lets do divmod(6, 2)
ericjphillips has joined #ruby
YankNYC has joined #ruby
<WajidKagzi> answer should be [3, 0]
<shevy> ah yes
<WajidKagzi> based on the return statement
<WajidKagzi> and that is what it returns
DrCode has joined #ruby
<WajidKagzi> i just dont understand how a has a value of -2 at the end of the while loop
<platzhirsch> shevy: :D
not_jhass is now known as jhass
Pathfinder has quit [Remote host closed the connection]
<[k-_> >> 15.5 / -3.5
<ruboto> [k-_ # => -4.428571428571429 (https://eval.in/441617)
<[k-_> i thought that was three :/
<jhass> WajidKagzi: the a -=b is still executed, when a becomes negative, the loop stops
<jhass> not before, when
<WajidKagzi> oh i see
<shevy> [k-_ hah I thought so too! ... negative numbers trick me
dhjondoh has quit [Quit: dhjondoh]
<WajidKagzi> so it still executes until the statement is not true
<[k-_> hm, 15/3 is 5
<jhass> yes, and the a+b simply reverses that last execution
<WajidKagzi> okie dokie, cool beans
<WajidKagzi> thank you awesome rubyists
<WajidKagzi> @jhass and @shevy
<shevy> yep, he was a divmod expert
tno has quit [Quit: Ex-Chat]
tkuchiki has joined #ruby
<jhass> shevy: but it had nothing to do with divmod
Leef_ has quit [Quit: Leaving]
<shevy> only a real divmod expert would be able to realize that
<WajidKagzi> haha
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elfuego has joined #ruby
spcmastertim has joined #ruby
Flying_Squirrel has joined #ruby
d10n-work has joined #ruby
mary5030 has joined #ruby
CloCkWeRX has quit [Ping timeout: 252 seconds]
soc42 has quit [Remote host closed the connection]
govg has quit [Read error: Connection reset by peer]
axiomatic_345 has quit [Ping timeout: 246 seconds]
cih has joined #ruby
cih_ has quit [Read error: Connection reset by peer]
_el_fer_ has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 264 seconds]
valeri_ufo has quit [Ping timeout: 246 seconds]
WajidKagzi has quit [Quit: WeeChat 1.3]
valeri_ufo has joined #ruby
devdazed has joined #ruby
Xeago has joined #ruby
govg has joined #ruby
JDiPierro has quit [Remote host closed the connection]
govg has quit [Remote host closed the connection]
freezevee has quit []
vF3hNGxc47h8 has quit [Read error: Connection reset by peer]
vF3hNGxc47h8 has joined #ruby
bronson has joined #ruby
freerobby has joined #ruby
Burgestrand has quit []
chipotle has joined #ruby
govg has joined #ruby
<Porfa> hmmmm is it possible to advance a line/step in pry ? how?
umgrosscol has joined #ruby
<[k-_> step
<Porfa> :o whoa
<Porfa> thx
bronson has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
JDiPierro has joined #ruby
<jhass> Porfa: you might also like pry-byebug & pry-stack_explorer
beauby has joined #ruby
Norm has joined #ruby
<Norm> i’ve got multiple sources in my Gemfile (https://gist.github.com/anonymous/ebe34b14394d050773c1). in this example, my_custom_gem has dependencies that need to be pulled from rubygems.org
<Norm> but “bundle install” is complaining that it can’t find the dependencies in repo.example.com. it’s not going to the global repo
ngscheurich has joined #ruby
<Norm> the docs imply that it should look at the global source. am i missing something?
<jhass> Norm: iirc you have to explicitly list them in the global section
<Porfa> thank you for the suggestion jhass , checking it out now :D
TvL2386 has quit [Remote host closed the connection]
<Norm> jhass: hmm, that’s a bummer
<jhass> sounds cumbersome, but trying magic there made the resolution incredibly opaque and bug prone
CloCkWeRX has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
<jhass> Norm: mmh, bundle help gemfile still claims it falls back to the global source though
<Norm> jhass: yeah
<[k-_> there is also pry-timemachine i think
<jhass> might be a doc bug I guess
<[k-_> what's the pry time thinf
<jhass> Norm: yeah I'm there
<[k-_> oh it's pry-timetravel
yardenbar has joined #ruby
peteykun has quit [Quit: Leaving]
klingeldraht has quit [Read error: No route to host]
<jhass> and I can't spot an entry later reversing that change, mmh
<jhass> which version do you use?
Xeago has quit [Remote host closed the connection]
<Norm> 1.10.6 :)
<jhass> shrug, raise an issue
<jhass> and for now explicitly listing them global should work around
<Norm> yep, will do. thanks
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has quit [Remote host closed the connection]
dopieee has quit [Ping timeout: 250 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
favadi has joined #ruby
Xeago has joined #ruby
axiomatic_345 has joined #ruby
Xeago has quit [Remote host closed the connection]
jenrzzz has joined #ruby
favadi has quit [Max SendQ exceeded]
dhollinger has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
emilkarl has joined #ruby
pheuko has quit [Ping timeout: 240 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
arup_r has quit []
konsolebox has quit [Quit: Leaving]
betsoff has joined #ruby
devoldmx has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
nfk|laptop has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
hashrocket has joined #ruby
<theRoUS> suppose i want to create a gem that's subordinate to an existing namespace? specifically, there's already a 'gitolite' gem, but i want to port gitolite3's Gitolite::Easy to ruby.
devoldmx has quit [Ping timeout: 268 seconds]
dorei has joined #ruby
betsoff has quit [Quit: Page closed]
<theRoUS> is it acceptable practice to just lay claim to the Gitolite::Easy namespace (e.g., with 'bundle gem gitolite-easy') ?
<adaedra> I think so
<apeiros> theRoUS: IMO ask the author
Flying_Squirrel has quit [Ping timeout: 272 seconds]
<apeiros> theRoUS: also be prepared that the author (of gitolite) may override yours at any time
aganov has quit [Remote host closed the connection]
<theRoUS> apeiros: 's what i figured; contacting/coordinating with both would be polite :-)
niftylettuce has joined #ruby
unsymbol has quit [Quit: cheerio]
favadi has joined #ruby
unsymbol has joined #ruby
felixr has quit [Ping timeout: 240 seconds]
favadi has quit [Max SendQ exceeded]
southpawlar has joined #ruby
nfk|laptop has joined #ruby
icmax has joined #ruby
icmax has left #ruby [#ruby]
greenarrow has joined #ruby
Xeago has quit [Remote host closed the connection]
beauby has quit [Ping timeout: 240 seconds]
andyrs has joined #ruby
diegobiavati_ has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Quit: Leaving...]
yottanami has quit [Remote host closed the connection]
ngscheurich has quit [Ping timeout: 272 seconds]
diegobiavati has quit [Ping timeout: 265 seconds]
cornerma1 has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
<shevy> theRoUS should be trivial; I think you can check whether the Easy namespace exists, and if it does not, you can add to it, so you can guarantee that your modifications should not conflict with the default gitolite gem
diegobiavati_ has joined #ruby
diegobiavati has joined #ruby
Xeago has joined #ruby
mallu has joined #ruby
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
nateberkopec has joined #ruby
Siyfion has joined #ruby
Newtonianb has joined #ruby
skweek has quit [Remote host closed the connection]
pawnbox_ has quit [Remote host closed the connection]
bruno- has joined #ruby
<Porfa> hey, I'm cross helping on this one, i just don't get much feedback in the selenium channel, and since it's a well known gem i might get my help here… my question is: when i want to put text into a box i use .sendkeys, but it doesn't remove what's there, for that i have to .clear first.
<Porfa> my real question is, can i actually .sendkeys BEFORE the existing text?
<Porfa> i can put the existing text in a var, and send keys wtv + var, but I'm just wondering if there is another way
blizzy has quit [Ping timeout: 255 seconds]
<gregf_> s/ajudando/posting/ ;)
Anti-Pizza has joined #ruby
<[k-_> that kind of thing is called prepending
sanguisdex has quit [Quit: Leaving.]
<[k-_> you could look for synonyms
<shevy> well known gem hmm
mghaig has joined #ruby
<shevy> using variables to store stuff is good
momomomomo has joined #ruby
FernandoBasso1 has joined #ruby
dome22xl has joined #ruby
<[k-_> that is ugly though
cassioscabral has quit [Quit: cassioscabral]
noethics has joined #ruby
fastAndSlow has joined #ruby
mghaig has left #ruby [#ruby]
greenarrow has quit [Quit: Textual IRC Client: www.textualapp.com]
ruurd has quit [Ping timeout: 265 seconds]
A124 has quit [Ping timeout: 268 seconds]
ndrei has quit [Ping timeout: 240 seconds]
dopie has joined #ruby
lolmaus_ has joined #ruby
bigbadbear has joined #ruby
<shevy> just call the variable _
sanguisdex has joined #ruby
FernandoBasso has quit [Ping timeout: 255 seconds]
NeverDie has joined #ruby
imperator has left #ruby ["Leaving"]
tagrudev has quit [Remote host closed the connection]
cassioscabral has joined #ruby
tenderlove has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
last_staff has quit [Quit: last_staff]
ericjphillips has quit [Quit: Leaving.]
govg has quit [Ping timeout: 265 seconds]
sanguisdex has quit [Read error: Connection reset by peer]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
ericjphillips has joined #ruby
K1MOS has joined #ruby
varunwachaspati has joined #ruby
sanguisdex has joined #ruby
<K1MOS> question in php I can do $var[hostname] = array('lastSeen' => $var, 'counter' => $var[$hostname]['counter'] + 1); how would i do that in ruby
favadi has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
<apeiros> K1MOS: var[hostname] = {'last_seen' => var, 'counter' => var[hostname]['counter']+1}
<K1MOS> will that work in a while loop ?
<apeiros> though, if you have to ask this, you probably should consider reading a book before asking more questions
<apeiros> ok, definitively: read a book, or an online tutorial, or some other means of self-learning.
<K1MOS> I haven't touched ruby in about 3 years, so i'm rusty as all heck
RegulationD has joined #ruby
favadi has quit [Max SendQ exceeded]
<apeiros> I gladly help with actual problems. But I don't want to teach you ruby.
govg has joined #ruby
<moeabdol> I wonder if any one has read "Rails 4 Test Prescriptions" by Noel Rappin?
ruurd has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
bronson has joined #ruby
<apeiros> moeabdol: probably. likeliness of people over in #rubyonrails having read it is higher, though ;-)
<moeabdol> apeiros: already tried there...no luck :'(
bruno- has joined #ruby
<apeiros> moeabdol: well, what do you expect? it's a non-question.
favadi has joined #ruby
<apeiros> lots of "yes, me"?
lolmaus has joined #ruby
BaroMeter has joined #ruby
<moeabdol> apeiros: I was hoping to get a "was a great read" and ask about the code
bruno- has quit [Read error: Connection reset by peer]
<shevy> I did not read it \o/
<apeiros> then ask for whether somebody can recommend/disrecommend it
favadi has quit [Max SendQ exceeded]
<noethics> ruby
<apeiros> and/or if there's alternative books which can be recommended for <topic>
ruurd has quit [Max SendQ exceeded]
<moeabdol> apeiros: I already have the book, and read reviews about how good it "should" be
icmax has joined #ruby
<moeabdol> the thing is it seems like the book follows an example of one rails project
ndrei has joined #ruby
<moeabdol> and I want to follow the book
lolmaus_ has quit [Ping timeout: 240 seconds]
<moeabdol> and create a git repository of the project
bronson has quit [Ping timeout: 250 seconds]
<moeabdol> but I was wondering if the project can be diesected into different commits each being a chapter
skweek has joined #ruby
<icmax> What is a Mutex object used for?
<moeabdol> or different directories of chapters each has its own copy of the rails project
<moeabdol> I hope it makes sense!
bruno- has joined #ruby
<noethics> icmax, sychronization
<noethics> sync*
_joes_ has quit [Remote host closed the connection]
<icmax> noethics: How does it work?
<adaedra> Magic.
<apeiros> icmax: it blocks access for other threads
<apeiros> until the locking thread frees the lock again
Xeago has quit [Remote host closed the connection]
haraoka has quit [Ping timeout: 268 seconds]
favadi has joined #ruby
Xeago has joined #ruby
<noethics> note that mutexes aren't something specific to ruby
<noethics> you can find out "how they work" with a simple google search
favadi has quit [Max SendQ exceeded]
emilkarl has quit [Quit: emilkarl]
<apeiros> moeabdol: since I don't have the book - no idea, sorry.
fastAndSlow has quit [Quit: Lost terminal]
sanguisdex has quit [Quit: Leaving.]
<icmax> noethics: Ok.
<moeabdol> apeiros: thanks anyways :)
southpawlar has quit [Read error: Connection timed out]
icmax has left #ruby [#ruby]
agit0 has joined #ruby
nfk|laptop has quit [Quit: yawn]
FrankD has joined #ruby
slawrence00 has joined #ruby
sanguisdex has joined #ruby
agit0 has quit [Client Quit]
OrbitalKitten has joined #ruby
ehth77 has joined #ruby
spotted has joined #ruby
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spotted is now known as Deviad
<Deviad> Hello
<Klamber|ext> Hello, Deviad
<Deviad> I would like to know better how the whole thing of functions like .reverse! for example works
cschneid_ has joined #ruby
<Deviad> like s.reverse! is accepted and it actually changes s
momomomomo has quit [Ping timeout: 250 seconds]
<Deviad> while for to_sym it does not work
andyrs has quit [Quit: I'm leaving now, bye.]
momomomomo has joined #ruby
<shevy> it is mostly a convention for trailing !
yardenbar has quit [Ping timeout: 268 seconds]
havenwood has joined #ruby
<adaedra> methods ending by ! usually modify object in-place.
<apeiros> with to_sym, an additional limitation comes into play: strong typing
<apeiros> you can't change the class of an object in-place.
Flying_Squirrel has joined #ruby
<adaedra> when their counterpart without a ! will return a new, modified object, without modifying the origin.
allomov has quit [Remote host closed the connection]
<apeiros> and to_sym (except for Symbol#to_sym) returns an object of a different class. so that can't happen in-place.
riotjones has joined #ruby
<Deviad> OK I got it clear now
<Deviad> Ruby already does a great job considering that usually in other languages in case of arrays I can have only numbers or strings
<Deviad> Ruby accepts everything into an Array...
bklane has joined #ruby
<Deviad> you do not need to create new data structures like in java
InternetFriend has joined #ruby
InternetFriend has quit [Client Quit]
<Deviad> I mean a new abstract data type
<shevy> java is like the business side of OOP
cassioscabral has joined #ruby
<adaedra> Ruby is dynamically typed, Deviad
tiredcat has quit [Ping timeout: 252 seconds]
<shevy> ruby is the artist side of OOP
piotrj has quit [Remote host closed the connection]
eminencehc has joined #ruby
<Deviad> At the moment I am learning ruby through codecademy.com however I would not dislike having a book for university students like those there are out there by Deitel for Java
eminencehc has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby
TPBallbag has joined #ruby
Rollabunna has joined #ruby
renderful has joined #ruby
eminencehc has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 256 seconds]
<Deviad> Some of them are outdated, some of authors I dunno how much I can trust and if they teach me good programming principles...
<Deviad> some by authors*
Zarthus has quit [Quit: ZNC 1.7.x-git-196-5faaf67 - http://znc.in]
Zarthus has joined #ruby
southpawlar has joined #ruby
renderful has quit [Ping timeout: 250 seconds]
Rollabunna has quit [Ping timeout: 240 seconds]
SylarRuby has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
InternetFriend has joined #ruby
ericjphillips has quit [Quit: Leaving.]
<pipework> Deviad: There are books. Metaprogramming ruby, then The Well Grounded Rubyist, and mroe.
<pipework> more too
piotrj has joined #ruby
<havenwood> Deviad: The Second Edition of the Well-Grounded Rubyist is pretty recent.
<pipework> recent and decent!
<shevy> eam, did you know all of them?
felixr has joined #ruby
<shevy> Venus, Babycart and Inchworm. These make good interview questions.
FernandoBasso1 has quit [Quit: Leaving]
eminencehc has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
rpenguin has joined #ruby
rpenguin has left #ruby [#ruby]
eminencehc has joined #ruby
<Deviad> Are there any open source projects for beginners that I could contribute to in order to improve my skills?
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
momomomomo has joined #ruby
<adaedra> Deviad: lots on GitHub.
emilkarl has joined #ruby
chouhoulis has joined #ruby
pawnbox has joined #ruby
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
spcmastertim has quit [Remote host closed the connection]
axiomatic_345 has quit [Ping timeout: 240 seconds]
drewvanstone has joined #ruby
jobewan has joined #ruby
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cassioscabral has quit [Ping timeout: 255 seconds]
Flying_Squirrel has quit [Ping timeout: 255 seconds]
<[k-_> you can help shevy with his enormous like of stuff
<[k-_> s/like/pile
<eam> shevy: yes, ruby has secret operators too
diegobiavati has quit [Remote host closed the connection]
diegobiavati_ has quit [Read error: Connection reset by peer]
cassioscabral has joined #ruby
<[k-_> like what?
piotrj has quit [Remote host closed the connection]
[k-_ is now known as [k-
TomyLobo has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
drewvanstone has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dome22xl> It doesn' UFO's like the spaceship operator <=> but thats not exactly secret
<dome22xl> does*
<eam> [k-: well, a few are directly the same, like "bang bang"
<eam> >> !!5
<ruboto> eam # => true (https://eval.in/441666)
<[k-> those are secret??
<eam> [k-: not any more or less than in perl
<eam> this is just a list of usages that people gave names to
howdoi has quit [Quit: Connection closed for inactivity]
<eam> [*thing].each is probably one
rippa has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dome22xl> each is a control scructure not and operator
<eam> dome22xl: right, and isn't part of it
<eam> it's there as an example of why you'd use the [*] operator
<eam> (with any iterator)
spcmastertim has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
<dome22xl> Yes but operators are :===, :==, :<=>, :<, :<=, :>, :>= for example
<dome22xl> .each {|n| } is a scruture
SCHAAP137 has quit [Remote host closed the connection]
c0m0 has quit [Ping timeout: 240 seconds]
<eam> dome22xl: I don't think you're following the point here
<eam> none of these "secret operators" are operators
<eam> and .each isn't what we're discussing anyway
eGGsha has joined #ruby
catphish_ has left #ruby ["Leaving"]
DrCode has quit [Remote host closed the connection]
<dome22xl> Well there all methods realy
<eam> in ruby, some operators are defined as methods, yes
<eam> that's an implementation detail
rcvalle has joined #ruby
anisha has quit [Quit: Leaving]
<dome22xl> Yes are the are certains ones you can't override
<eam> and some operators are both methods and aren't methods, depending on particulars of syntax (like, positioning of whitespace)
<eam> it's really quite arbitrary
ngscheurich has joined #ruby
<dome22xl> see what your saying
roshanavand has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
davidhq has joined #ruby
FrankD has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
<[k-> ruby isn't too flexible though, no user defined operators, but that means codebases are much easier to work with
thebastl has joined #ruby
Igorshp has joined #ruby
solars has quit [Ping timeout: 240 seconds]
ericjphillips has joined #ruby
emilkarl has quit [Quit: emilkarl]
<eam> I call this one the "negative four" operator:
<eam> >> 1-------------------------1
<ruboto> eam # => 0 (https://eval.in/441667)
tiredcat has joined #ruby
<[k-> >> 1---1
<ruboto> [k- # => 0 (https://eval.in/441668)
<[k-> i call this one, the negative three
<[k-> ha! beat that!
<eam> this is the "I hella agree" operator:
<eam> >> ++++++1
<ruboto> eam # => 1 (https://eval.in/441669)
Cyther_ has quit [Ping timeout: 265 seconds]
Xeago has quit [Ping timeout: 256 seconds]
<[k-> >> ++--+$$
<eam> ": :" could be an operator
phutchins1 has quit [Ping timeout: 264 seconds]
<ruboto> [k- # => 10185 (https://eval.in/441670)
<eam> >> {a: :b}
<shevy> [k- hmm... my small projects don't really need any work ... and my big projects are either quite complicated, or in transition-phase of rewrites... nobody sane in mind wants to touch that until the code base is cleaner
<ruboto> eam # => {:a=>:b} (https://eval.in/441671)
karapetyan has joined #ruby
<eam> it's interesting that ruby requires whitespace between the ::
tiredcat has quit [Read error: Connection reset by peer]
symm- has joined #ruby
tiredcat has joined #ruby
bronson has joined #ruby
bklane has quit [Remote host closed the connection]
<eam> I wonder why :%{123} doesn't work
<eam> seems like it ought to
drewvanstone has joined #ruby
InternetFriend has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
<eam> >> % % % % % # the percent sign operator sequence
<ruboto> eam # => "%" (https://eval.in/441681)
<eam> >> % % % % % % % % # repeat as desired
<ruboto> eam # => "%" (https://eval.in/441682)
<eam> it's an operator of arbitrary length!
<adaedra> wat
benlieb has joined #ruby
<[k-> >> /(?<_>.*)/=~??;_+_+_+_+_+_+_*$$
shinnya has joined #ruby
<ruboto> [k- # => "??????????????????????????????????????????????????????????????????????????????????????????????????? ...check link for more (https://eval.in/441684)
<adaedra> oh, I see
<eam> % does everything
allcentury has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
lxsameer has quit [Quit: Leaving]
bronson has quit [Ping timeout: 246 seconds]
[Butch] has joined #ruby
diegobiavati has joined #ruby
pietr0 has joined #ruby
<[k-> >> /(?<_>.*)/=~??; "#{_}" '' "#{_}" '' "#{_}" '' "#{_}" '' "#{_}" '' * $$
<ruboto> [k- # => "??????????????????????????????????????????????????????????????????????????????????????????????????? ...check link for more (https://eval.in/441698)
RxDx has joined #ruby
ericjphillips has quit [Quit: Leaving.]
<RxDx> please, is there anyway to POST/PUT and entity parameter name without the _attributes suffix? I mean.. why do I have to send beer_attributes {name: "foo"} if I receive beer {name: "bar"}?
ericjphillips has joined #ruby
thebastl has quit [Remote host closed the connection]
BaroMeter has quit [Quit: Leaving]
<eam> >> %{#{%}#{%}#{%}#{%}#{%} -what- }}}}}}}}}}}
<ruboto> eam # => " -what- " (https://eval.in/441703)
thebastl has joined #ruby
jokester has quit [Quit: recharge]
Igorshp has quit [Remote host closed the connection]
<eam> 18>> ????::??
<ruboto> eam # => 58 (https://eval.in/441705)
<[k-> such mind trick
momomomomo has quit [Ping timeout: 268 seconds]
<[k-> very wow
<[k-> eam is best
<gregf_> o_O
<apeiros> >> ?:
<ruboto> apeiros # => ":" (https://eval.in/441706)
<apeiros> 18>> ?:
<ruboto> apeiros # => 58 (https://eval.in/441707)
<eam> apeiros: ;)
<[k-> %{ #{ (%} #stuff }) } }
<apeiros> eam: needs more !
<apeiros> and some %
<[k-> bang!
<[k-> >> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!nil^nil
<gregf_> >> ":".ord
<ruboto> [k- # => false (https://eval.in/441709)
<ruboto> gregf_ # => 58 (https://eval.in/441709)
platzhirsch has left #ruby [#ruby]
Igorshp has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
herbst has quit [Remote host closed the connection]
<apeiros> >> !!%?%%??!!%:!!::%!??!
<ruboto> apeiros # => /tmp/execpad-2405e9993b90/source-2405e9993b90:2: warning: string literal in condition ...check link for more (https://eval.in/441710)
<apeiros> bah, stupid warning.
<eam> >> [????::??, !????::??, !????::?? - ????::??]
<ruboto> eam # => /tmp/execpad-08d76451920a/source-08d76451920a:2: warning: string literal in condition ...check link for more (https://eval.in/441711)
<eam> 18>> [????::??, !????::??, !????::?? - ????::??]
<apeiros> 18>> !!%?%%??!!%:!!::%!??!
<ruboto> eam # => [58, 63, 58] (https://eval.in/441713)
<ruboto> apeiros # => /tmp/execpad-7a7b7a385e2f/source-7a7b7a385e2f:2: warning: string literal in condition ...check link for more (https://eval.in/441713)
<apeiros> what? that warning existed in 1.8 already?
A124 has joined #ruby
p0wn3d has quit [Quit: WeeChat 1.3]
TPBallbag is now known as snowy
<eam> apeiros: it's not a string in 18
snowy is now known as INFO_
casadei has quit [Remote host closed the connection]
p0wn3d has joined #ruby
<apeiros> %?!!? is one ;-)
Rollabunna has joined #ruby
<eam> ah
<eam> what I don't get is why !????::?? - ????::?? isn't 5
MVPhelp has quit [Remote host closed the connection]
<eam> must be precedence I'm missing
<eam> is the minus drawing the second part into the else of the ternary?
bricker has joined #ruby
<eam> it must be
RxDx has quit [Quit: This computer has gone to sleep]
INFO_ has quit []
<apeiros> don't ask me, I try to avoid ambiguous precedence :D
towski_ has joined #ruby
<adaedra> Never too much parenthesis.
<adaedra> too many*
<adaedra> ((((((((((Never.))))))))))
cmoel has joined #ruby
MVPhelp has joined #ruby
devoldmx has joined #ruby
eminencehc has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
casadei has joined #ruby
amclain has joined #ruby
skweek has joined #ruby
Soda has joined #ruby
wldcordeiro has quit [Ping timeout: 265 seconds]
elfuego has quit [Quit: elfuego]
shinnya has quit [Ping timeout: 252 seconds]
dome22xl has quit [Ping timeout: 272 seconds]
devoldmx has quit [Ping timeout: 256 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
bklane has joined #ruby
Guest___ has joined #ruby
Guest___ has quit [Client Quit]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ksteck has joined #ruby
farn has quit [Remote host closed the connection]
<shevy> what is with this ugly characters
<pipework> That's a bit judgemental for someone whose nick contains a y.
joonty has quit [Quit: joonty]
dfockler has joined #ruby
<[k-> ooooooo burn
<shevy> you have just become abyss's arch enemy!
<shevy> `derpy don't let this stand
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
<[k-> yorickpeterse surely wouldn't
<[k-> fight fight fight!
momomomomo has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
<`derpy> Oh, don't mind me, I'm just a bot.
sjums has joined #ruby
ecnalyr has joined #ruby
<Klamber|ext> Heh! adaedra, I think I know what you meant by returning multible things now. Remembered seeing it on some intro page.. a,b = m() Now that's real neat!
casadei has quit [Remote host closed the connection]
<adaedra> it is
rodfersou is now known as rodfersou|lunch
<adaedra> >> a, b = "Hello, world".split(/[, ]/); [a, b]
<ruboto> adaedra # => ["Hello", ""] (https://eval.in/441723)
<[k-> can you do that with hashes?
<adaedra> mh, close
<adaedra> that's a good question, [k-
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> >> a, b = { hello: "world" }
<ruboto> adaedra # => {:hello=>"world"} (https://eval.in/441724)
momomomomo has quit [Client Quit]
<adaedra> duh
<adaedra> >> a, b = { hello: "world" }; [a, b]
<ruboto> adaedra # => [{:hello=>"world"}, nil] (https://eval.in/441725)
<adaedra> :(
eminencehc has joined #ruby
<[k-> hm
<adaedra> >> a, b = { hello: "world", bonjour: "le monde" }; [a, b]
<ruboto> adaedra # => [{:hello=>"world", :bonjour=>"le monde"}, nil] (https://eval.in/441726)
<adaedra> nope, hash is one and doesn't split.
<[k-> >> a, b = [*{ hello: "world", bonjour: "le monde" }]; [a, b]
<ruboto> [k- # => [[:hello, "world"], [:bonjour, "le monde"]] (https://eval.in/441727)
VeryBewitching has joined #ruby
<[k-> i only wanted the values though
<`derpy> ah
<adaedra> wrong window
<adaedra> >> a, b = { hello: "world", bonjour: "le monde" }.values; [a, b]
<ruboto> adaedra # => ["world", "le monde"] (https://eval.in/441728)
<[k-> but that's so not nonalphanum
<adaedra> UGH
diegobiavati_ has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> wrong window?
<adaedra> no.
drewvans1one has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
SCHAAP137 has joined #ruby
slawrence00 has quit [Read error: Connection reset by peer]
diegobiavati has quit [Ping timeout: 265 seconds]
chipotle has quit [Quit: cheerio]
SenpaiSilver has joined #ruby
EllisTAA has joined #ruby
flyinprogrammer has joined #ruby
drewvanstone has quit [Ping timeout: 272 seconds]
Igorshp has quit []
joonty has joined #ruby
southpawlar has quit [Ping timeout: 244 seconds]
eminencehc has quit [Remote host closed the connection]
<shevy> wrong cat?
shoutsid06 has quit [Remote host closed the connection]
shoutsid has joined #ruby
<adaedra>
shoutsid has quit [Remote host closed the connection]
eminencehc has joined #ruby
shoutsid has joined #ruby
p0wn3d has quit [Ping timeout: 272 seconds]
<shevy> unicode cursing!
symm- has quit [Ping timeout: 252 seconds]
<eam> >> def f(x);x;end;"f(true)!f(not true)!f((not true))!f not true!f (not true)".split(?!).map { |exp| begin; eval exp; rescue Exception; "busted: "+exp;end }
<ruboto> eam # => [true, "busted: f(not true)", false, "busted: f not true", false] (https://eval.in/441732)
ramfjord has joined #ruby
<adaedra> I prefer cursing in French.
<adaedra> It's like wiping your ass with silk.
p0wn3d has joined #ruby
piotrj has joined #ruby
<eam> I prefer baby wipes
momomomomo has joined #ruby
<Porfa> damn i came across something i've never done before, i'll try to put it into words the best i can, so someone might point me in the right direction. I have an array with strings, the number of strings is random. now, for each occurence in the array, i need to perform a comand the problem for me is that each comand i perform, must change every time acording to the number of the string inside the array, for ie:
michaeldeol has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
agent_white has joined #ruby
agent_white has left #ruby [#ruby]
agent_white has joined #ruby
thebastl has quit [Ping timeout: 246 seconds]
shoutsid has quit [Ping timeout: 255 seconds]
hahuang61 has joined #ruby
jds has joined #ruby
diegobiavati_ has quit [Ping timeout: 265 seconds]
chthon has quit [Ping timeout: 244 seconds]
<bricker> Porfa: loop with an index, eg stuff.each.with_index { ... }
<Porfa> i guess this is a good time to learn this "index" thing
dathon has joined #ruby
<shevy> adaedra lol I will immortalize this quote in my IRC quotes database
<Porfa> hahaha
<shevy> Porfa well, via that index you can usually avoid "for" loops entirely
Xeago has joined #ruby
maletor has joined #ruby
<adaedra> shevy: why so? It's already here: http://www.imdb.com/title/tt0234215/quotes?ref_=tt_ql_3
InternetFriend has joined #ruby
<Porfa> how will i change the number in the command i must perform?
karapetyan has quit [Remote host closed the connection]
<shevy> adaedra lol
<shevy> Porfa what kind of question is that... do you have the number stored in a variable
<adaedra> (But I do understand the whole quote :> )
DoubleMalt has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
<Porfa> driver.find_element(:id, "f04_000***changinnumberhere***").send_keys(stuff[1])
<shevy> yeah so use a variable there Porfa
<eam> Porfa: number = 1234; string = "some stuff #{number}"
<[k-> Merovingian: I love French wine, like I love the French language. I have sampled every language, French is my favorite. Fantastic language. Especially to curse with. Nom de dieu de putain de bordel de merde de saloperie de connard d'enculer ta mère. It's like wiping your arse with silk. I love it.
mikecmpbll has quit [Ping timeout: 246 seconds]
<eam> Porfa: you can build strings out of other variables
<shevy> like eam just showed you \o/
<adaedra> Mh, there's a mistake in this quote though.
<[k-> wait, there was a ref?
<[k-> that didnt work in mobile!
<[k-> i had to search for it
<Porfa> thank you, ill read something now! :)
<[k-> what does that french mean?
<adaedra> er
<eam> what does any french mean, really
<adaedra> I'm not sure it's really translatable
<adaedra> It's a long cursing
<adaedra> All you need to know
Mojo_Nixon has joined #ruby
<adaedra> And listen Lambert Wilson recite it perfectly.
cassioscabral has quit [Quit: cassioscabral]
Mojo_Nixon has joined #ruby
Mojo_Nixon has quit [Client Quit]
<adaedra> eam: shoot, you guessed. I speak nonsense all day. :(
elfuego has joined #ruby
tkuchiki has quit [Remote host closed the connection]
rbowlby has joined #ruby
cassioscabral has joined #ruby
cassioscabral has quit [Client Quit]
quazimodo has joined #ruby
Zai00 has quit [Quit: Zai00]
tkuchiki has joined #ruby
wldcordeiro has joined #ruby
cassioscabral has joined #ruby
cisco has quit [Quit: Leaving.]
bronson has joined #ruby
felixr has quit [Ping timeout: 260 seconds]
ericjphillips has quit [Quit: Leaving.]
rushed has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
casadei has joined #ruby
codecop has joined #ruby
<shevy> le cursed baguette
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
barhum2013 has joined #ruby
<Deviad> Just a question: why movies.delete(title.downcase!.to_sym) does not work while title = gets.chomp.downcase! works?
tkuchiki has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<Deviad> I am following the course on codecademy and I was trying out different things
<Deviad> cos I figured out they skipped this step at this point
<eam> Deviad: what does downcase! return?
<eam> (try comparing with just downcase)
<Deviad> it should return a string where all the letters are lowercaps
<eam> Deviad: does it?
<shevy> Deviad why did you note use .downcase.
<eam> (the difference between *should* and *does* is where problems arise, so if you're asking a question, start by testing your assumptions)
<shevy> *not
<Deviad> because I do not want to create a copy of an object
snockerton has joined #ruby
<eam> Deviad: methods with ! typically modify the receiver, so they don't necessarily need to return anything
arturmartins has quit [Quit: Leaving...]
<shevy> Deviad your operation above will return nil
piotrj has quit [Remote host closed the connection]
EllisTAA has quit [Quit: EllisTAA]
piotrj has joined #ruby
shoutsid has joined #ruby
FernandoBasso has joined #ruby
pwnd_nfsw has quit [Ping timeout: 240 seconds]
<Deviad> shevy, that's exactly what it does, but I do not understand the reason
stamina has quit [Ping timeout: 240 seconds]
dmolina has quit [Quit: Leaving.]
<shevy> ok good though, you at least now know how to fix the problem :D
<Deviad> calling downcase before to_sym should be legit as I did not convert the string to a symbol yet
asxbr has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
<shevy> only if you would return the string object
poguez_ has joined #ruby
mwlang has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
firstdayonthejob has joined #ruby
m8 has joined #ruby
dolemite_ has joined #ruby
NeverDie has joined #ruby
joonty has quit [Quit: joonty]
dolemite_ has left #ruby ["Leaving"]
<eam> Deviad: downcase! does not always return a string
<eam> regular "downcase" does
<eam> Deviad: I know you're worried about making a copy -- you shouldn't be
tkuchiki has joined #ruby
<eam> ruby is not a language for efficiency
govg has quit [Ping timeout: 252 seconds]
<Deviad> Hehe :D :D
wallerdev has joined #ruby
<Deviad> I will need to take this course on codecademy 3 times before to remember all the syntax and progress to rails
hanmac has quit [Ping timeout: 240 seconds]
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
<Deviad> I always try to use do in if
dome22xl has joined #ruby
sargas has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
gregf has joined #ruby
<shevy> you can do .downcase!
<shevy> and then pass into movies.delete()
<Porfa> hmmm nut = "OMG" puts 'driver.find_element(:id, "f04_000#{unt}").send_keys(stuff[#{nut}])'
vF3hNGxc47h8 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
SylarRuby has joined #ruby
<shevy> what the hell is this Porfa
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Porfa> i want to print OMG but it's printing f04_000#{unt}
<Porfa> sorry if the copy paste was out of way, it was just a line i though it was ok
cih has quit [Ping timeout: 246 seconds]
chrisja has joined #ruby
pwnd_nfsw has joined #ruby
InternetFriend has joined #ruby
<shevy> no it is not the paste
<shevy> it is the content of the paste
<shevy> what is nut and why do you use unt
<Porfa> sorry, its all meant to be nut, I'm just nut i guess
<shevy> haha
eminencehc has quit [Remote host closed the connection]
<shevy> you should just use a full var
<shevy> (:id, "f04_000#{unt}")
<shevy> (:id, nut)
<Porfa> hmm i see, nice :)
<shevy> break things up into small chunks
<shevy> divide and conquer
<Porfa> thank you again for showing me the way into the light ;_;
<shevy> that is not the way
<shevy> that is just one little baby step
cassioscabral has quit [Quit: cassioscabral]
ponga has quit [Quit: Connection closed for inactivity]
renderful has joined #ruby
lsmola has quit [Ping timeout: 272 seconds]
banjara has joined #ruby
postmodern has joined #ruby
rippa has joined #ruby
piotrj has quit [Remote host closed the connection]
rindolf has joined #ruby
<rindolf> Hi all.
petricore has joined #ruby
eminencehc has joined #ruby
piotrj has joined #ruby
Jackneill has joined #ruby
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
hanmac has joined #ruby
cisco has joined #ruby
tfitts has joined #ruby
n008f4g_ has joined #ruby
pandaant has quit [Remote host closed the connection]
tejasmanohar has joined #ruby
beast has quit [Quit: Leaving]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> gandalf!
<tfitts> if I have [[1,2],[3,4],[5,2]] is there a single-line method that I can sum all of the first element, sum all of the second element, and then divide the resulting sum of the second by the first?
platzhirsch has joined #ruby
<wallerdev> probably, maybe show an example of the result you want
larissa has quit [Ping timeout: 246 seconds]
<rindolf> tfitts: does it have to be a single-line?
Alayde has joined #ruby
SebastianThorn has quit [Quit: Lost terminal]
<tfitts> rindolf: I guess not, but if not I could obviously just assign the variable to an array and then var.collect(&:first).sum / var.collect(&:last).sum
<tfitts> array to a variable*
davidhq has joined #ruby
<wallerdev> ohh
liquidmetal has quit [Quit: Leaving]
rushed has quit [Quit: rushed]
SebastianThorn has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
Oka has joined #ruby
larissa has joined #ruby
JDiPierro has joined #ruby
joonty has joined #ruby
<wallerdev> reduce { |(a, b), (c, d)| [(a + c), (b + d)] }.reduce(:/)
<wallerdev> or somethin
<eam> all this work to avoid using two variables to sum
<eam> I'm having sympathy pains for the cpu that has to run these
<wallerdev> lol
sargas has joined #ruby
havenwood has joined #ruby
theery has joined #ruby
<Porfa> I'm getting "#<Enumerator:0x000000023cbd68>" instead of the array value, how do i get the array value with array.each ?
<eam> to_a
<Porfa> hmmm
<Porfa> nice
<eam> but why are you using each, then?
<eam> why not just "array"
<wallerdev> lol
<Porfa> "TypeError: no implicit conversion of Array into String"
<wallerdev> now you have me imagining someone doing x = [1, 2, 3].each.to_a
<Porfa> haha
<Porfa> I'm just learning arrays
<Porfa> sorry
<eam> Porfa: no problem, my question was in earnest
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
cball has quit [Ping timeout: 246 seconds]
<eam> how are you using #each?
<tfitts> eam: I'm still working out how to do it fastest. I have 18000 records that I need to check revenue/profit on for the last month, of which only ~10% have sales in that last month
<Porfa> puts det1 + entrada.to_a + det2 + det3 < i need to get the value each time like this
<wallerdev> single line doesnt mean fastest lol
<Porfa> i had to chop down my strings to get the array value between them, and i can't get it in there
<tfitts> I know
<Porfa> i know
<tfitts> I'm testing a few different solutions
cassioscabral has joined #ruby
<wallerdev> just keep a running sum for each and divide at the end, should be fastest that way
<eam> tfitts: if efficiency is a concern, use two variables to hold each sum as you iterate once, and divide them at the end
<wallerdev> ^^
<wallerdev> or write inline c
<wallerdev> lol
<eam> fast math, go for fortran
govg has joined #ruby
karapetyan has joined #ruby
pwnd_nfsw has quit [Ping timeout: 246 seconds]
mghaig has joined #ruby
axiomatic_345 has joined #ruby
mghaig has quit [Client Quit]
mghaig has joined #ruby
rushed has joined #ruby
mghaig has left #ruby [#ruby]
paulcsmith has joined #ruby
<Porfa> damn
<Porfa> that's my gist!
tvw has quit [Remote host closed the connection]
<shevy> aha
<shevy> so you committed this bad code
<shevy> :)
<Porfa> damn i got the names wrong again
<shevy> haha
<shevy> sort your nuts out mate
<shevy> btw, keep a consistent indent
<shevy> it will make spotting errors simpler
piotrj has quit [Remote host closed the connection]
<Porfa> why is it such a bad code?
<Porfa> i guess it is because its not getting the job done, yeah
jpfuentes2 has joined #ruby
<shevy> the indent is very strange
evanjs_ has joined #ruby
<shevy> and the second half
evanjs has quit [Ping timeout: 244 seconds]
<shevy> you can get rid of that and just use a method
<shevy> driver.find_element(:id,"add").click
<shevy> ^^^ always the same
<shevy> driver.find_element(:id, "f04_0001").send_keys(stuff[1])
<shevy> driver.find_element(:id, "f04_0002").send_keys(stuff[2])
<shevy> ^^^ repetition
eminencehc has quit [Remote host closed the connection]
bronson has joined #ruby
<shevy> Porfa http://pastie.org/10450592 don't use that, it just serves to illustrate
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
ericjphillips has joined #ruby
piotrj has joined #ruby
FrankD has joined #ruby
skweek has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
<Porfa> shevy: i can read that code and i can understand what it does, it's beautifull
bronson has quit [Ping timeout: 244 seconds]
shoutsid has quit [Ping timeout: 256 seconds]
dathon has quit [Quit: Leaving.]
info_is_good has joined #ruby
camilasan has quit [Remote host closed the connection]
SylarRuby has quit []
<info_is_good> Hello, I'm trying to understand ruby's lambdas. How can I translate this, in JavaScript, to Ruby? (function(a){return function(b){return a+b}})(2)(3) -- outputs 5
<info_is_good> I've used the (lambda { ... }) syntax but got an error, unexpected '('
piotrj has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
karapetyan has quit [Remote host closed the connection]
rodfersou|lunch is now known as rodfersou
roshanavand has quit [Quit: Leaving]
<apeiros> info_is_good: only that part of your code won't allow us to tell you where the syntax error is.
dasher00 has joined #ruby
baweaver has joined #ruby
<info_is_good> apeiros: Okay, I've managed to get it to work (sorry). This is a Lambda Calculus → Ruby transmogrifier. I used the following syntax: (lambda { |a| (lambda { |b| a.call(a.call(a.call(b))) }) }).call((lambda { |a| (lambda { |b| a.call(a.call(a.call(b))) }) })).call(lambda { |a| a+1 }).call(0)
dstarh has joined #ruby
<info_is_good> Does it look alright? I.e., is the `.call` normal?
DrCode has joined #ruby
<jhass> >> ->(a) { ->(b) { a+b } }.(2).(3) # literal translation. Idiomatic ruby? nope, far away from it
<ruboto> jhass # => 5 (https://eval.in/441780)
<apeiros> .call is normal. but this isn't your example from above anymore?
<apeiros> .() which jhass just used is expanded to .call() btw.
<info_is_good> apeiros: it is another example, my bad. jhass that looks briefer, thanks
Flying_Squirrel has joined #ruby
peterhu has quit [Ping timeout: 260 seconds]
Lucky__ has joined #ruby
baweaver has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
darkf has quit [Quit: Leaving]
karapetyan has joined #ruby
Pathfinder_ has joined #ruby
symm- has joined #ruby
dfockler has quit [Remote host closed the connection]
anisha has joined #ruby
shoutsid has joined #ruby
Anti-Pizza has quit [Quit: Quit]
<info_is_good> (->(a){(->(b){a.(a.(a.(b)))})}).((->(a){(->(b){a.(a.(a.(b)))})})).(->(a){a+1}).(0) works perfectly. This is multiplication of 3 by 3 using functions. Very clean syntax, I like it. I'll add a transmogrifer to ruby to github.com/maiavictor/caramel. Thank you.
dravine_ has joined #ruby
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
blaxter has quit [Ping timeout: 272 seconds]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dravine has quit [Ping timeout: 272 seconds]
dravine_ is now known as dravine
tkuchiki has quit [Remote host closed the connection]
RxDx has joined #ruby
Xeago has quit [Remote host closed the connection]
Hounddog has quit [Remote host closed the connection]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
axiomatic_345 has quit [Quit: Leaving]
ericjphillips has quit [Quit: Leaving.]
pawnbox has quit [Remote host closed the connection]
prestorium has quit [Quit: Leaving]
fastAndSlow has joined #ruby
<RxDx> please, is there anyway to POST/PUT the entity parameter name (in json) without the _attributes suffix? I mean.. why do I have to send beer_attributes {name: "foo"} if I receive beer {name: "bar"}?
baweaver has joined #ruby
prestorium has joined #ruby
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as diegoviola
bb010g has joined #ruby
devdazed has quit [Ping timeout: 264 seconds]
Coldblackice has joined #ruby
dfockler has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
InternetFriend has joined #ruby
<apeiros> ?crosspost RxDx
<ruboto> RxDx, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
baweaver has quit [Remote host closed the connection]
jenrzzz has joined #ruby
<RxDx> apeiros, sorry
tfitts has quit [Ping timeout: 250 seconds]
joonty has quit [Quit: joonty]
tfitts has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
last_staff has joined #ruby
spider-mario has joined #ruby
stamina has joined #ruby
dionysus69 has joined #ruby
FrankD has quit [Ping timeout: 244 seconds]
Kendos-Kenlen has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
NeverDie has joined #ruby
pawnbox has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aaeron has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
InternetFriend has joined #ruby
leafybas_ has joined #ruby
Zai00 has joined #ruby
aaeron1 has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
gambl0re has quit [Ping timeout: 256 seconds]
<funkenstrahlen> looks like rubydoc.info is down?
Flying_Squirrel has quit [Ping timeout: 264 seconds]
aaeron has quit [Ping timeout: 246 seconds]
dome22xl has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
karapetyan has quit [Remote host closed the connection]
<jhass> nope
leafybasil has quit [Ping timeout: 246 seconds]
_djbkd has quit [Remote host closed the connection]
apt-get has joined #ruby
yqt has joined #ruby
gambl0re has joined #ruby
baweaver has joined #ruby
_djbkd has joined #ruby
Deviad has quit [Ping timeout: 244 seconds]
renderfu_ has joined #ruby
RxDx has quit [Quit: Leaving]
fastAndSlow has quit [Quit: Lost terminal]
roxtrongo has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
renderful has quit [Ping timeout: 252 seconds]
soulcake has quit [Max SendQ exceeded]
grill has joined #ruby
<grill> what is the proper way to document methods in ruby
soulcake has joined #ruby
soulcake has quit [Max SendQ exceeded]
wilbert has joined #ruby
uxp has quit [Remote host closed the connection]
<pipework> grill: By writing methods that don't need documentation, and failing that, by using rdoc or yard and filling out as much as you can.
kidoz has joined #ruby
aaeron1 has quit [Quit: Leaving.]
<havenwood> grill: The simplest, most readable code that possibly works.
<grill> good lord. what is this language? "we don't need documentation!"
grill has left #ruby [#ruby]
<pipework> Lul.
<havenwood> DRY.
<apeiros> scared 'em away
<havenwood> ;)
<pipework> I'd say that was for the better.
krz has quit [Quit: WeeChat 1.2]
<pipework> Let them go on their journey and come back when they're ready to be enlightened.
<havenwood> I admit I like comments on things worth commenting on.
<pipework> "# Dear havenwood, I believe this method will be quite to your liking"
<havenwood> pipework: :)
sargas has joined #ruby
Deviad has joined #ruby
cirenyc has joined #ruby
_el_fer_ has joined #ruby
eminencehc has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
<apeiros> I knew I had seen *!FUNKMASTAF@* before. prefixed from from yesterday…
bronson has joined #ruby
stamina has quit [Ping timeout: 246 seconds]
renderfu_ has quit []
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
yfeldblum has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
<rmrrn> okay
roxtrong_ has joined #ruby
ehth77 has left #ruby ["WeeChat 1.2"]
shoutsid has quit []
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
unreal has quit [Read error: Connection reset by peer]
devdazed has joined #ruby
unreal has joined #ruby
roxtrongo has quit [Ping timeout: 272 seconds]
rbowlby has quit [Remote host closed the connection]
renderful has joined #ruby
baweaver has quit [Remote host closed the connection]
Helheim has joined #ruby
InternetFriend has joined #ruby
kirun has joined #ruby
jackjackdripper has joined #ruby
cmoel has quit [Quit: Textual IRC Client: www.textualapp.com]
Pathfinder__ has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
arooni has joined #ruby
uxp has joined #ruby
unreal_ has joined #ruby
felixr has joined #ruby
Pathfinder_ has quit [Ping timeout: 256 seconds]
mallu has joined #ruby
unreal_ has quit [Client Quit]
Juanchito has quit [Quit: Connection closed for inactivity]
unreal has quit [Ping timeout: 268 seconds]
Pathfinder__ has quit [Ping timeout: 255 seconds]
rindolf has quit [Quit: http://www.shlomifish.org/ ; Yay! I'm a llama again.]
skullcrasher has quit [Quit: quit]
biesiad has joined #ruby
shinnya has joined #ruby
rdark has quit [Quit: leaving]
<Porfa> hello guys i need dire help ;_; i have do puts inside a loop, but it's printing the thing to the screen instead of the console
<pipework> Porfa: show us code
<Porfa> yes sir
evanjs has joined #ruby
<Porfa> gisting
evanjs_ has quit [Ping timeout: 244 seconds]
EllisTAA has joined #ruby
polishdub has joined #ruby
axiomatic_345 has joined #ruby
ruby-lang362 has joined #ruby
_djbkd has quit [Remote host closed the connection]
biesiad has left #ruby [#ruby]
* ruby-lang362 slaps Guest67071 around a bit with a large fishbot
diegobiavati has joined #ruby
ruby-lang362 has quit [Client Quit]
duoi has quit [Ping timeout: 246 seconds]
duoi has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
SenpaiSilver has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
borodin_ has joined #ruby
crdpink has joined #ruby
miah has joined #ruby
evanjs has quit [Remote host closed the connection]
<borodin_> probably obvious but I'm not getting it - does anyone know of a good page for "getting started with rbenv"? I am using puppet to install rbenv - it all worked, it even installed a ruby in /opt/rbenv/versions. But I can't figure out how to get rbenv to use this ruby.
tvw has joined #ruby
crdpink2 has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
<borodin_> i.e. I created a directory and added a .ruby-version file with 2.2.3 in it. I cd there and type rbenv local and it says "rbenv: version `2.2.3' is not installed (set by /home/goob/test/ruby/.ruby-version)"
Flying_Squirrel has joined #ruby
eminencehc has quit [Remote host closed the connection]
<tejasmanohar> anyone here use vagrant?
Klamber|ext has quit [Ping timeout: 272 seconds]
<tejasmanohar> i ran `vagrant init hashicorp/precise32 && vagrant up && vagrant ssh` ... then added some files etc but can't see my files in the host computer in the folder i ran those commands ^
<miah> tejasmanohar: try #vagrant
<tejasmanohar> trying to find out where it is O.o
dfockler has quit [Remote host closed the connection]
<tejasmanohar> yea, seems unresponsive :\
benlieb has quit [Quit: benlieb]
_djbkd has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
skullcrasher has joined #ruby
codecop has quit [Remote host closed the connection]
_djbkd has joined #ruby
baweaver has quit [Remote host closed the connection]
lolmaus has joined #ruby
ta has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 246 seconds]
eminencehc has joined #ruby
InternetFriend has joined #ruby
cih has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
Xeago has joined #ruby
pwnd_nsfw has joined #ruby
jackjackdripper has joined #ruby
barhum2013 has quit [Quit: barhum2013]
barhum2013 has joined #ruby
evanjs has joined #ruby
synasyn has joined #ruby
Flying_Squirrel has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
phreakocious has quit [Ping timeout: 256 seconds]
jamesaxl has joined #ruby
<borodin_> it's inserting the shims
phreakocious has joined #ruby
<borodin_> I'm missing how you tell rbenv which ruby to use, other than adding a .ruby-version file to every project
<borodin_> (which I'm doing but it isn't working
shadoi has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
aldodelgado has joined #ruby
Xeago has joined #ruby
phutchins1 has joined #ruby
stamina has joined #ruby
<synasyn> Hello, I am writing tests for a program calling AWS Ruby SDK v2. The calls to the AWS SDK are numerous and scattered everywhere. I would prefer to not mock the whole AWS SDK, as that would be very time consuming. I tried VCR, but it recorded the network delays and was very slow in testing. Is there any recommended libraries that would stub out the AWS SDK?
<synasyn> I did try monkey patching, but it is a slow and onerous process
speakingcode has quit [Ping timeout: 252 seconds]
Nowaker has left #ruby [#ruby]
cih has quit [Remote host closed the connection]
dmolina has joined #ruby
Flying_Squirrel has joined #ruby
skade has joined #ruby
glenab has joined #ruby
baweaver has joined #ruby
quazimodo has quit [Ping timeout: 268 seconds]
glenab has quit []
jenrzzz has joined #ruby
renderful has quit []
* woodruffw test
<apeiros> test failed. please reboot.
speakingcode has joined #ruby
diego2 has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 264 seconds]
Zai00_ has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
hectortrope has quit [Remote host closed the connection]
mxrguspxrt has joined #ruby
eminencehc has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
Zai00_ is now known as Zai00
arturmartins has joined #ruby
diego2 has quit [Client Quit]
bronson has joined #ruby
renderful has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
Zai00 has quit [Client Quit]
bruno- has joined #ruby
iamninja_ has joined #ruby
skweek has joined #ruby
bruno- is now known as Guest49012
Soda has quit [Remote host closed the connection]
SylarRuby has joined #ruby
evanjs has quit [Remote host closed the connection]
Zai00 has joined #ruby
sargas has quit [Quit: Leaving]
bronson has quit [Ping timeout: 268 seconds]
Zai00 has left #ruby [#ruby]
maikowblue has joined #ruby
<Deviad> Does anyone know what is wrong with this:
<Deviad> my_array.each { |x| puts x ? x % 2 == 0 : puts ""
<Deviad> }
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
leafybasil has quit [Remote host closed the connection]
momomomomo has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
BlkDynmt has joined #ruby
leafybasil has joined #ruby
biesiad has joined #ruby
info_is_good has quit [Quit: Page closed]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
barhum2013 has quit [Quit: barhum2013]
iateadonut has quit [Quit: Leaving.]
barhum2013 has joined #ruby
nfk has joined #ruby
hahuang61 has joined #ruby
phutchins1 has quit [Ping timeout: 240 seconds]
NeverDie has quit [Quit: http://radiux.io/]
gusTester has quit [Quit: Leaving.]
k3asd` has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
devoldmx has joined #ruby
gusTester has joined #ruby
ngscheur1 has joined #ruby
ngscheurich has quit [Ping timeout: 246 seconds]
p0wn3d has quit [Ping timeout: 252 seconds]
Jackneill has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: Leaving]
CloCkWeRX has quit [Ping timeout: 244 seconds]
<Deviad> my_array.each { |x| x.even? ? (puts x) : nil} ==> this is the right one
<Sou|cutter> probably the second puts?
unreal has joined #ruby
yardenbar has joined #ruby
NeverDie has joined #ruby
jdawgaz has joined #ruby
<Sou|cutter> the first version could print 2 empty lines for a falsy x
<Sou|cutter> I think
<Deviad> I was getting syntax errors from the compiler actually
<Sou|cutter> well read the errors to find out then?
devoldmx has quit [Ping timeout: 256 seconds]
<Sou|cutter> it's not very clearly written
<Deviad> It's just an exercise with ternary operators
joonty has joined #ruby
<Deviad> operator*
diegobiavati has quit [Remote host closed the connection]
peterhu has joined #ruby
<Deviad> my_array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
<Deviad> my_array.each { |x| x.even? ? (puts x) : nil}
atomical_ has joined #ruby
<Deviad> It should produce as output the even numbers
<Deviad> in the array
_djbkd has quit [Remote host closed the connection]
EllisTAA has quit [Ping timeout: 255 seconds]
<Sou|cutter> my_array.select(&:even?).each { |x| puts x }
InternetFriend has joined #ruby
barhum2013 has quit [Quit: barhum2013]
tkuchiki has joined #ruby
<Sou|cutter> my_array.each { |x| puts x if x.even? }
<Deviad> Well, the goal of the exercise was to use the short if
<Deviad> and apply it to that case, now if this is a good practice I ignore it
<eam> Deviad: use parens () to force precedence
atomical has quit [Ping timeout: 255 seconds]
nanoz has joined #ruby
bigbadbear has quit [Ping timeout: 268 seconds]
SylarRuby has quit []
kaspergrubbe has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
yalue has quit [Read error: Connection reset by peer]
momomomomo has quit [Ping timeout: 268 seconds]
momomomomo has joined #ruby
kaspergrubbe has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
futilegames has joined #ruby
ghr has joined #ruby
axiomatic_345 has quit [Ping timeout: 246 seconds]
timanema has joined #ruby
andyrs has joined #ruby
paulcsmith has quit [Read error: Connection reset by peer]
paulcsmith_ has joined #ruby
dfockler has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mikeric has joined #ruby
Newtonianb has quit []
syath has quit [Quit: WeeChat 1.2]
xblade has joined #ruby
k3asd` has quit [Remote host closed the connection]
moeabdol1 has joined #ruby
eminencehc has joined #ruby
_djbkd has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
karapetyan has joined #ruby
_djbkd has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
_djbkd has quit [Remote host closed the connection]
cball has joined #ruby
FernandoBasso has quit [Quit: Leaving]
sankaber has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
stamina has quit [Ping timeout: 252 seconds]
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
axiomatic_345 has joined #ruby
Alina-malina has quit [Ping timeout: 246 seconds]
jsaak has quit [Ping timeout: 246 seconds]
_aeris_ has quit [Ping timeout: 240 seconds]
bmurt has quit []
jsaak has joined #ruby
rapha has quit [Ping timeout: 246 seconds]
cih has joined #ruby
Alina-malina has joined #ruby
_aeris_ has joined #ruby
elfuego has quit [Read error: Connection reset by peer]
hectortrope has joined #ruby
stamina has joined #ruby
stonecolddevin has left #ruby [#ruby]
Feoh has joined #ruby
<Feoh> Folks.
n_blownapart has joined #ruby
<Feoh> Does anyone here happen to use robe mode for emacs for doing Ruby autocomplete?
leafybas_ has joined #ruby
<Feoh> Or know of a better way to do completion?
rapha has joined #ruby
Pathfinder_ has joined #ruby
dmolina has quit [Quit: Leaving.]
futilegames has left #ruby [#ruby]
dmolina1 has joined #ruby
dravine_ has joined #ruby
havenn has joined #ruby
leafybasil has quit [Ping timeout: 244 seconds]
Feoh has left #ruby ["ERC (IRC client for Emacs 25.0.50.1)"]
kadoppe has quit [Ping timeout: 252 seconds]
evanjs has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
ecnalyr has quit []
dravine has quit [Ping timeout: 264 seconds]
dravine_ is now known as dravine
kadoppe has joined #ruby
sankaber has quit [Ping timeout: 250 seconds]
benlieb has joined #ruby
momomomomo has quit [Ping timeout: 250 seconds]
<BrazenBraden> such annoyance. much frustration. wow. any idea at all why i keep getting the error libruby.so cannot open mysql2.so? all should be here: https://gist.github.com/brazenbraden/b4ef6839ac81fdd42a4a
pawnbox has quit [Remote host closed the connection]
sankaber has joined #ruby
EllisTAA has joined #ruby
phutchins1 has joined #ruby
finisherr has joined #ruby
pwnd_nsfw has joined #ruby
stamina has quit [Quit: WeeChat 1.3]
<Porfa> can i offer to show my tithes for exchange of lil something?
sankaber has quit [Read error: Connection reset by peer]
Guest49012 has quit [Quit: Lost terminal]
xblade has quit []
momomomomo has joined #ruby
Xeago has quit [Remote host closed the connection]
cordovafan8 has joined #ruby
bruno- has joined #ruby
freerobby has quit [Quit: Leaving.]
<cordovafan8> Hello. I'm looking for the default ruby error log file. Where might I find it? Even just the name of it would be great.
Deviad has quit [Ping timeout: 244 seconds]
spcmastertim has quit [Quit: Leaving]
bigbadbear has joined #ruby
sankaber has joined #ruby
<bricker> cordovafan8: default output is STDERR
Xeago has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
timanema has quit [Quit: leaving]
<cordovafan8> bricker: so if anything blows up it will show up in stderr? I guess everything went ok :)
<bricker> cordovafan8: yep :)
nettoweb has joined #ruby
<cordovafan8> sweet
<cordovafan8> thanks
sankaber has joined #ruby
phutchins1 has quit [Ping timeout: 240 seconds]
ekleog has quit [Ping timeout: 252 seconds]
ngscheur1 has quit [Ping timeout: 260 seconds]
cordovafan8 has left #ruby [#ruby]
axiomatic_345 has quit [Ping timeout: 246 seconds]
sanguisdex has quit [Quit: Leaving.]
<Porfa> can anyone help me out? my data is printed on the screen, but i want it to be sent to the interpreter...
Xeago has quit [Ping timeout: 256 seconds]
speakingcode has quit [Ping timeout: 260 seconds]
jds has quit [Quit: Connection closed for inactivity]
tvw has quit [Remote host closed the connection]
<pipework> Porfa: Please avail yourself about what puts does.
<Porfa> i knew i should have learned puts from an english blog
rushed has quit [Quit: rushed]
aldodelgado has quit [Quit: aldodelgado]
<Porfa> pipework: ok, puts does a newline
ngscheur1 has joined #ruby
bronson has joined #ruby
unreal has quit [Quit: Very funny Scotty. Now beam down my clothes!]
blackmesa has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
<Porfa> whats the problem? the thing is, the command that is commented ( puts driver.find_element(:id,"add").click ) actually works, i don't know why the other one doesnt
ekleog has joined #ruby
<pipework> Porfa: No, it does a lot more.
speakingcode has joined #ruby
<Papierkorb> is there a way to catch all ERRNO errors?
Spleeze has joined #ruby
solocshaw has joined #ruby
<Papierkorb> Stuff like Errno::ENOENT
<pipework> Papierkorb: What have you tried?
_djbkd has joined #ruby
scripore has joined #ruby
<Papierkorb> pipework: a plain rescue => err doesn't, iirc rescue Errno => .. didn't either
<pipework> Papierkorb: Did you try perhaps the whole constant?
<Papierkorb> rescuing from Errno::ENOENT works, but I want to catch all of them at once
<pipework> Errno is a namespace.
<pipework> To catch all of them you either need a list of all of them or you need a superclass of all them.
<pipework> Or superclasses.
jdawgaz has quit [Max SendQ exceeded]
TomyLobo has quit [Ping timeout: 265 seconds]
rushed has joined #ruby
hays has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
hays has joined #ruby
tuxero has joined #ruby
joonty has quit [Quit: joonty]
yardenbar has quit [Ping timeout: 268 seconds]
<Porfa> pipework: are you saying i shouldn't use puts?
JDiPierro has quit [Remote host closed the connection]
<pipework> Porfa: I'm saying you should figure out what it does and why you're using it and how it affects what you're trying to accomplish.
rhg1351 has joined #ruby
ngscheur1 has quit [Ping timeout: 264 seconds]
<Porfa> "Prints each argument with a new line appended at the end"
baweaver has quit [Remote host closed the connection]
NeverDie has joined #ruby
hlolli has joined #ruby
ngscheur1 has joined #ruby
<pipework> Porfa: Have you looked at the return value of puts?
<Porfa> pipework: but why one puts commands works and the other one doesn't?
<Porfa> how do i do that?
hlolli has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<Porfa> ok
skweek has quit [Ping timeout: 264 seconds]
tangentstorm has quit [Ping timeout: 264 seconds]
<pipework> Sorry, I mixed up gists.
<pipework> Porfa: https://gist.github.com/anonymous/e19cd23aaaea5048a2c1 that's you, I believe.
<Porfa> yes pipework
<pipework> So, your problem is that in the #each call, the driver.find… stuff doesn't seem to actually click anything?
<pipework> Even when it's not commented out.
xybre has quit [Ping timeout: 255 seconds]
Kendos-Kenlen has joined #ruby
Kendos-Kenlen has quit [Client Quit]
mwlang has quit [Quit: mwlang]
<Papierkorb> pipework: https://gist.github.com/Papierkorb/8760197afbe7cb0e6773 For some reason this code still raises an Errno::ENOENT error instead of an 'InternalError'. Am I doing something wrong there?
<Porfa> the line that is commented, it does everything it should, because for each $number it does that command, and the interpreter sends back "ok"
prestorium has quit [Quit: Leaving]
<pipework> When you say $number, what do you mean?
rhg1351 is now known as rhg135
<Porfa> but the one that is being built by vars, doesn't get sent to the interpreter, if i copy paste each one of them and enter them, they work, and "click" the things
Voker57 has quit [Read error: Connection reset by peer]
<Porfa> number = ALQDETALHESPB.count.to_i
<Porfa> that
<Porfa> sorry
<pipework> Ah, you shouldn't preface with $, because in ruby that means a global variable.
tkuchiki has joined #ruby
<Porfa> ok
zenguy_pc has quit [Read error: Connection reset by peer]
otacon- has joined #ruby
<pipework> Porfa: So when you say 'sent to the interpreter', what do you mean? You're printing out values to STDOUT, you're not sending them to the browser through the driver.
allcentury has quit [Ping timeout: 244 seconds]
axiomatic_345 has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
xcesariox has joined #ruby
<Porfa> this is sent to the interpreter --> puts driver.find_element(:id,"add").click
_el_fer_ has quit [Quit: Leaving]
<Porfa> how can i get the lines I'm generating sent to the interpreter pipework ?
<pipework> Porfa: Probably by looking for some methods you could call that let you send input through the driver.
<pipework> The 'puts' is just writing the result of the expressions to STDOUT, not to the browser.
GarethAdams has quit [Ping timeout: 256 seconds]
<Porfa> whats the difference between: puts driver.find_element(:id,"add").click
<Porfa> and driver.find_element(:id, "f04_0001").send_keys(ALQDETALHESPB[1])
<pipework> Porfa: What I just explained
n_blownapart has quit []
<Porfa> hmm
<pipework> Porfa: You may want to pick up a book that'll teach you ruby.
<pipework> Or something.
tkuchiki has quit [Ping timeout: 246 seconds]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nanoz has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
havenn has quit [Ping timeout: 264 seconds]
ldnunes has quit [Quit: Leaving]
tejasmanohar has quit [Remote host closed the connection]
last_staff has quit [Remote host closed the connection]
GarethAdams has joined #ruby
govg has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
tangentstorm has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
greymeister has joined #ruby
mikeric has quit []
<pipework> Papierkorb: I don't know what's wrong with it. Are you sure, because `rescue SystemCallError => err` should get the exception
NeverDie has quit [Quit: http://radiux.io/]
stamina has joined #ruby
xybre has joined #ruby
tejasmanohar has joined #ruby
havenn has joined #ruby
bronson has quit [Remote host closed the connection]
NeverDie has joined #ruby
evanjs has quit [Remote host closed the connection]
barhum2013 has joined #ruby
<atmosx> can you setup instance vars and make them accessible out of the initialize method?!
havenwood has quit [Ping timeout: 255 seconds]
key_ has quit [Read error: Connection reset by peer]
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
<dfockler> yeah
govg has joined #ruby
piotrj has joined #ruby
<atmosx> no, I mean
<atmosx> set them outside init
chrisja has quit [Quit: Lost terminal]
<atmosx> and still make them acessible
BlkDynmt has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikeric has joined #ruby
zenguy_pc has joined #ruby
FernandoBasso has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
freerobby has joined #ruby
<dfockler> hmm maybe not
Psi-Jack has left #ruby ["Konversation terminated!"]
SCHAAP137 has quit [Quit: Leaving]
xybre has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
<dfockler> atmosx: When you call initialize it destroys the values that were previously set in the instance var
<Papierkorb> pipework: aah it was also raised at another place
Rutix has quit []
<pipework> Papierkorb: That'll do it!
glenn_ has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dfockler> atmosx: scratch that, it defines the variables on whatever self is at the time, so they would get defined on the singleton_class
michaeldeol has quit [Ping timeout: 256 seconds]
<atmosx> dfockler: I was talking with this guy on twitter and I just wanted to be sure.
doddok has joined #ruby
apt-get has quit [Remote host closed the connection]
opensource_ninja has joined #ruby
lxsameer has joined #ruby
ksteck has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
mozzarella has quit [Quit: WeeChat 1.2]
axiomatic_345 has quit [Quit: Leaving]
ngscheur1 has quit [Ping timeout: 250 seconds]
agent_white has quit [Quit: leaving]
mozzarella has joined #ruby
paulcsmith_ has quit [Quit: Be back later ...]
paulcsmith_ has joined #ruby
baweaver has joined #ruby
dfockler has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 246 seconds]
JimmyNeutron has quit [Read error: Connection reset by peer]
mikeric has quit []
platzhirsch has left #ruby [#ruby]
jpfuentes2 has joined #ruby
arup_r has quit [Quit: Leaving]
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
paulcsmith_ has quit [Quit: Be back later ...]
_djbkd has quit [Remote host closed the connection]
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
bmurt has quit []
zendrix has joined #ruby
mary5030 has quit [Remote host closed the connection]
piotrj has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
cjbottaro has joined #ruby
riceandbeans has left #ruby [#ruby]
n008f4g_ has quit [Ping timeout: 250 seconds]
<shevy> yo people
<shevy> how is your rubies
gustav__ has joined #ruby
<shevy> is Porfa finally a guru
<Papierkorb> eating gems
<Porfa> ahhaah shevy
<Papierkorb> tons of them. expensive bastard.
<Porfa> I'm dying with that loop, i've reached a new place, but far from done
<Porfa> i can't now print the strings as i want them, but can't send them to the interpreter
bklane has quit [Remote host closed the connection]
<Porfa> i can*
victortyau has quit [Remote host closed the connection]
devoldmx has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
havenn has quit [Ping timeout: 260 seconds]
bklane has joined #ruby
<shevy> Papierkorb lol
<shevy> Porfa in ruby, you can always send stuff
<shevy> .send
decoponio has joined #ruby
rodfersou has quit [Quit: leaving]
htmldrum has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
rushed has joined #ruby
stamina has quit [Ping timeout: 252 seconds]
synasyn has quit [Quit: leaving]
tkuchiki has joined #ruby
pythoninthegrass has joined #ruby
pythoninthegrass has quit [Client Quit]
renderful has quit [Read error: Connection reset by peer]
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tkuchiki has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
wldcordeiro has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
failshell has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 272 seconds]
lxsameer has quit [Quit: Leaving]
moeabdol2 has joined #ruby
renderful has joined #ruby
cih has quit [Remote host closed the connection]
xMopxShell has quit [Ping timeout: 240 seconds]
umgrosscol has quit [Ping timeout: 255 seconds]
Rickmasta has joined #ruby
but3k4_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mweshi has joined #ruby
bkxd has joined #ruby
kirun has quit [Quit: Client exiting]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol1 has quit [Ping timeout: 250 seconds]
xMopxShell has joined #ruby
dhollinger has quit [Quit: Leaving]
malconis has quit [Remote host closed the connection]
cassioscabral has joined #ruby
bronson has joined #ruby
skweek has joined #ruby
renderful has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
hahuang61 has joined #ruby
allomov has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
dmolina1 has quit [Ping timeout: 256 seconds]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dfockler has joined #ruby
nettoweb has quit [Ping timeout: 272 seconds]
Brin has joined #ruby
dmolina has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
Brin has quit [Client Quit]
Porfa has quit [Quit: Porfa]
spider-mario has quit [Remote host closed the connection]
renderful has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
machinewar has joined #ruby
dirtyonekanobi has quit [Quit: Connection closed for inactivity]
machinewar has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
vikaton has joined #ruby
chubdub has joined #ruby
Flying_Squirrel has quit [Ping timeout: 268 seconds]
allomov has quit [Remote host closed the connection]
[k- has quit [Ping timeout: 264 seconds]
leafybas_ has quit [Remote host closed the connection]
jxv has joined #ruby
cisco has quit [Quit: Leaving.]
skade has quit [Quit: Computer has gone to sleep.]
m8 has quit [Quit: Sto andando via]
opensource_ninja has quit [Remote host closed the connection]
dome22xl has joined #ruby
casadei has joined #ruby
wilbert has quit [Ping timeout: 252 seconds]
opensource_ninja has joined #ruby
charliesome has joined #ruby
cschneid_ has quit [Remote host closed the connection]
Kendos-Kenlen has joined #ruby
rbowlby has joined #ruby
chubdub has quit [Quit: Page closed]
_djbkd has joined #ruby
malconis has joined #ruby
skade has joined #ruby
cmoel has joined #ruby
zendrix has quit []
Xeago has joined #ruby
djbkd_ has joined #ruby
_djbkd has quit [Remote host closed the connection]
jxv has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
WillAmes has quit [Remote host closed the connection]
WillAmes has joined #ruby
tkuchiki has joined #ruby
hahuang61 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
casadei has quit [Remote host closed the connection]
araujo has quit [Ping timeout: 252 seconds]
araujo_ has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
northfurr has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
malconis has quit [Ping timeout: 244 seconds]
modern has quit [Remote host closed the connection]
casadei has joined #ruby
hal_9000 has quit [Quit: hal_9000]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
michaeldeol has quit [Client Quit]
chipotle has joined #ruby
dramagods has joined #ruby
JimmyNeutron has joined #ruby
northfurr has quit [Client Quit]
havenwood has quit [Ping timeout: 256 seconds]
<dfockler> How does Ruby gems know that it needs to install a C extension?
tkuchiki has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<dfockler> ahh the gemspec
<dfockler> nevermind
<shevy> yeah
dopie has quit [Quit: This computer has gone to sleep]
michaeldeol has quit [Client Quit]
mweshi has quit [Quit: Textual IRC Client: www.textualapp.com]
leafybasil has joined #ruby
bklane has quit [Remote host closed the connection]
barhum2013 has quit [Quit: barhum2013]
aerozepplin has joined #ruby
jxv has joined #ruby
barhum2013 has joined #ruby
dfockler has quit [Remote host closed the connection]
Flying_Squirrel has joined #ruby
modern has joined #ruby
bklane has joined #ruby
Balzrael has quit [Quit: Leaving]
baweaver has joined #ruby
firstdayonthejob has quit [Ping timeout: 264 seconds]
`tim` has joined #ruby
Porfa has joined #ruby
michaeldeol has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
vdamewood has joined #ruby
<odigity2> How do I write a method that takes any kind of args and passes them on to another method, so it's like the caller called the second method with the same args?
<odigity2> I've been experimenting with *args and **kwargs, and I can't quite figure it out.
<drbrain> odigity2: def outer(*a) inner(*a) end
jobewan has quit [Quit: Leaving]
<drbrain> if there are keyword args or block, you can add those with , **k, &b
<odigity2> drbrain, I tried that but I'm getting a TypeError: is not a symbol nor a string
<adaedra> o_O
Ropeney has joined #ruby
<adaedra> full code?
<adaedra> >> def inner(*a); p a; end; def outer(*a); inner *a; end; outer 1, 2, 3
<ruboto> adaedra # => [1, 2, 3] ...check link for more (https://eval.in/441869)
greymeister has quit [Quit: greymeister]
<odigity2> The error is happening on line 3:
<drbrain> thanks adaedra
dorei has quit []
<adaedra> drbrain: for what?
<drbrain> adaedra: for the >>
<adaedra> odigity2: you just need the *args.
<adaedra> It will catch everything already.
<odigity2> FYI -- The inner function is defined as: def send(user:); end
<adaedra> >> def inner(*a); p a; end; def outer(*a); inner *a; end; outer 1, 2, 3, hello: :world
<ruboto> adaedra # => [1, 2, 3, {:hello=>:world}] ...check link for more (https://eval.in/441870)
<odigity2> I tried *args by itself, **kwargs by itself, and both together, and I always get that type error
djbkd_ has quit [Read error: Connection reset by peer]
<drbrain> odigity2: what are the arguments? for send, the first argument must be the method name you're sending to
<EllisTAA> i’m trying to set up a message feature, and i was wondering if has_many :conversations, as: :recipient, and has_many :conversations, as: :sender makes sense?
<odigity2> One of those two args are receiving a hash value, and it complains the hash is not a symbol or string
<adaedra> ?rails EllisTAA
<ruboto> EllisTAA, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
eminencehc has quit [Remote host closed the connection]
barhum2013 has quit [Quit: barhum2013]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<odigity2> drbrain, crap, do you think I'm running into issues with the native ruby .send() method? I'm not trying to call that, I'm trying to call my own send method (that has nothing to do with passing a message to an object, it's about sending mail)
<drbrain> I think that's the problem
<drbrain> try it without the wrapper first
<adaedra> heh
cmoel has quit [Quit: Textual IRC Client: www.textualapp.com]
<drbrain> mailer = …; mailer.send your, real, arguments
barhum2013 has joined #ruby
<odigity2> drbrain, nope -- I just replaced 'send' with 'foo' as the name for both the class and instance methods (the class method invokes the instance method), same error
<drbrain> then the send method on that class is probably ruby's send, not the method you think is send
eminencehc has joined #ruby
platzhirsch has joined #ruby
<drbrain> you can call .method(:send).owner and .source_location on the instance to figure out which #send you're calling
tkuchiki has joined #ruby
rushed has quit [Quit: rushed]
xybre has joined #ruby
tkuchiki has quit [Remote host closed the connection]
rbowlby has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Pathfinder_ has quit [Ping timeout: 240 seconds]
tenderlo_ has joined #ruby
`mrspock has joined #ruby
Keltia_ has joined #ruby
`mrspock has left #ruby [#ruby]
mikecmpbll has quit [Quit: i've nodded off.]
timmow has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rcvalle has quit [Quit: rcvalle]
nettoweb has joined #ruby
mikecmpbll has joined #ruby
yasu_ has joined #ruby
Radar_ has joined #ruby
perry has quit [Ping timeout: 246 seconds]
Esya- has quit [Ping timeout: 246 seconds]
clamstar has quit [Ping timeout: 246 seconds]
timmow_ has quit [Ping timeout: 246 seconds]
Radar has quit [Ping timeout: 246 seconds]
stuartb has quit [Ping timeout: 246 seconds]
yasu has quit [Ping timeout: 246 seconds]
chouhoul_ has quit [Ping timeout: 246 seconds]
Nilium has quit [Ping timeout: 246 seconds]
icedp has quit [Ping timeout: 246 seconds]
ianchentw has quit [Ping timeout: 246 seconds]
Jello_Raptor has quit [Ping timeout: 246 seconds]
Veejay has quit [Ping timeout: 246 seconds]
sugardrunk has quit [Ping timeout: 246 seconds]
tsunamie has quit [Ping timeout: 246 seconds]
tenderlove has quit [Ping timeout: 246 seconds]
kobain has quit [Ping timeout: 246 seconds]
rmrrn has quit [Ping timeout: 246 seconds]
qpls has quit [Ping timeout: 246 seconds]
DarthGandalf has quit [Ping timeout: 246 seconds]
davidcelis has quit [Ping timeout: 246 seconds]
vifino has quit [Ping timeout: 246 seconds]
Keltia has quit [Ping timeout: 246 seconds]
ltd has quit [Ping timeout: 246 seconds]
loop3r has quit [Ping timeout: 246 seconds]
PDI has quit [Ping timeout: 246 seconds]
joevandyk has quit [Ping timeout: 246 seconds]
Prira has quit [Ping timeout: 246 seconds]
<Porfa> better? :/
maikowblue_ has joined #ruby
<Porfa> damn
Spami has quit [Quit: This computer has gone to sleep]
kobain has joined #ruby
maikowblue has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 246 seconds]
kiper has quit [Ping timeout: 246 seconds]
russt has quit [Ping timeout: 246 seconds]
martinbjeldbak_ has quit [Ping timeout: 246 seconds]
wlanboy_ has quit [Ping timeout: 246 seconds]
mhenrixon has quit [Ping timeout: 246 seconds]
bradland has quit [Ping timeout: 246 seconds]
ajafo has quit [Ping timeout: 246 seconds]
jxie has quit [Ping timeout: 246 seconds]
benaiah has quit [Ping timeout: 246 seconds]
sluukkonen has quit [Ping timeout: 246 seconds]
Jello_Raptor_ has joined #ruby
tkuchiki has joined #ruby
ajafo has joined #ruby
dmolina has quit [Quit: Leaving.]
loop3r has joined #ruby
marens has quit [Read error: Connection reset by peer]
Raboo has quit [Ping timeout: 246 seconds]
veloutin has quit [Ping timeout: 246 seconds]
scroff has quit [Ping timeout: 246 seconds]
bankair has quit [Ping timeout: 246 seconds]
sugardrunk has joined #ruby
Nilium has joined #ruby
Jardayn has quit [Quit: Leaving]
veloutin has joined #ruby
vifino has joined #ruby
Raboo has joined #ruby
davidcelis has joined #ruby
yxhuvud has quit [Ping timeout: 246 seconds]
scroff has joined #ruby
stuartb has joined #ruby
ltd has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
<shevy> not sure
perry has joined #ruby
perry has quit [Changing host]
perry has joined #ruby
bankair has joined #ruby
jxie has joined #ruby
tsunamie has joined #ruby
PDI has joined #ruby
<shevy> your indent still seems inconsistent
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qpls has joined #ruby
yxhuvud has joined #ruby
DarthGandalf has joined #ruby
ndrei has joined #ruby
<shevy> you should try to put things on the same expression-level on the same indent level
joevandyk has joined #ruby
Esya| has joined #ruby
martinbjeldbak has joined #ruby
sluukkonen has joined #ruby
icedp has joined #ruby
benaiah has joined #ruby
wlanboy has joined #ruby
Prira has joined #ruby
vbatts|work has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
russt has joined #ruby
kiper has joined #ruby
rmrrn has joined #ruby
rmrrn has quit [Changing host]
rmrrn has joined #ruby
bradland has joined #ruby
Veejay has joined #ruby
marens has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
mhenrixon has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
skade has quit [Quit: Computer has gone to sleep.]
ericjphillips has joined #ruby
stardiviner has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
renanoronfle has joined #ruby
karapetyan has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Flying_Squirrel has quit [Ping timeout: 256 seconds]
<Porfa> https://gist.github.com/anonymous/204709baf66659761da5 better? still not working though
p0wn3d has joined #ruby
RegulationD has quit [Remote host closed the connection]
dramagods has quit []
clamstar has joined #ruby
theery has quit [Remote host closed the connection]
Spami has joined #ruby
sepp2k has quit [Quit: Leaving.]
RobertBirnie has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
devoldmx has joined #ruby
casadei has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
felixr has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 252 seconds]
devoldmx has quit [Ping timeout: 268 seconds]
aaeron has joined #ruby
bmurt has joined #ruby
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rohanezio has joined #ruby
<Rohanezio> Hey guys! I'm new to ruby and need some help if possible :)
<Porfa> how can i get data from an array and turn it into a var?
<Porfa> i want to run a loop and create vars for each element in the array
benlieb has quit [Quit: benlieb]
<Porfa> is there a public log of this channel? i want to look at my lines in a couple of years
pwnd_nsfw has quit [Ping timeout: 240 seconds]
<adaedra> Porfa: see topic.
<adaedra> ?code Rohanezio
<ruboto> Rohanezio, We can't help you without your code, please post it to https://gist.github.com
<otacon-> guys, suppose we have 5 classes which share the same intialize method. is *this alone* enough justification to create a superclass?
chipotle has quit [Quit: cheerio]
<adaedra> ?anyone Rohanezio
<ruboto> Rohanezio, Just ask your question, if anyone has or can, they will respond.
<adaedra> better
aerozepplin has quit [Read error: Connection reset by peer]
<Porfa> adaedra: nice
michaeldeol has joined #ruby
rushed has joined #ruby
<adaedra> otacon-: are these classes linked to each other?
<Rohanezio> Ok, so on a webpage, we have a scoreboard, and we need to split them apart so the two teams are seen as different columns instead of one huge column