jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<al2o3-cr> a snippets not allowed
<RickHull> L473 should be qctr += 1
<al2o3-cr> that end could be anywhere
blaines has joined #ruby
<zenspider> the ++ part is the only real invalid part
<zenspider> also, you should really use string interpolation
<zenspider> "string"+blah.to_s+"string" vs "string#{blah}string"
<al2o3-cr> or %
<zenspider> or that
Feyn has quit [Ping timeout: 260 seconds]
<kb3ien> WHY THE HELL IS THERE NO ++ in RUBY. Its been around since the SIXTIES.
<dfockler> += 1
<al2o3-cr> "a snippets not allowed" i'm really off now 'cringe' :(
<RickHull> SIXTIES++
benlieb has quit [Quit: benlieb]
<dfockler> SIXTIES++ == SEVENTIES
<al2o3-cr> rocking in a free world
scripore has joined #ruby
<pontiki> rust never sleeps
<al2o3-cr> there's colours on the street, red, white and blue...
dfockler has quit [Remote host closed the connection]
<al2o3-cr> you only sleep, when your dead
<zenspider> you're :P
RegulationD has joined #ruby
<al2o3-cr> shit :p
<zenspider> don't worry about it. you and ALL of reddit. :P
<Ox0dea> al2o3-cr: Whose dead?
albertjou has joined #ruby
ruby-lang785 has joined #ruby
<al2o3-cr> Ox0dea: nice try
Feyn has joined #ruby
<al2o3-cr> :P
<Ox0dea> I only sleep when my dead sleep?
<Ox0dea> There's not enough hours in a night.
<ruby-lang785> does anybody know of a good resource to learn about nesting blocks in ruby
<al2o3-cr> Ox0dea: give you'"re" fingers a rest :p
<al2o3-cr> i even get that wrong
<ruby-lang785> nesting blocks?
<al2o3-cr> and i'm english apparently :p
<Ox0dea> >> class Numeric; def +@; (self + 0.5).round end end; foo = 1; ++foo
<ruboto> Ox0dea # => 3 (https://eval.in/403617)
<Ox0dea> Whoops.
simplyianm has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
<al2o3-cr> ruby != die
<ruby-lang785> lol
simplyianm has joined #ruby
<al2o3-cr> ask matz, he's the genius :p
RegulationD has quit [Ping timeout: 252 seconds]
<al2o3-cr> c programmers be like wtf!
quimrstorres has quit [Remote host closed the connection]
<Ox0dea> >​> Ruby.dying?
<Ox0dea> ruboto doesn't want to answer.
sarkyniin has quit [Read error: Connection reset by peer]
aaeron has quit [Quit: Leaving.]
<al2o3-cr> >> Ruby.is_dead?
<ruboto> al2o3-cr # => uninitialized constant Ruby (NameError) ...check link for more (https://eval.in/403618)
<Ox0dea> Pleb.
ruby-lang785 has quit [Quit: Page closed]
RickHull has quit [Quit: RickHull]
Sypheren_ is now known as Sypheren
jackjackdripper1 has quit [Quit: Leaving.]
RickHull has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
<al2o3-cr> >> "Pleb".rotate(4)
<ruboto> al2o3-cr # => undefined method `rotate' for "Pleb":String (NoMethodError) ...check link for more (https://eval.in/403619)
sharpmachine has joined #ruby
yqt has joined #ruby
<al2o3-cr> >> "Pleb".chars.rotate(4)
<ruboto> al2o3-cr # => ["P", "l", "e", "b"] (https://eval.in/403620)
<al2o3-cr> hmmm..
chouhoulis has quit [Ping timeout: 244 seconds]
RickHull has quit [Client Quit]
aaeron has joined #ruby
<al2o3-cr> >> "Pleb".succ
<ruboto> al2o3-cr # => "Plec" (https://eval.in/403621)
<al2o3-cr> >> "Pleb".map(&:succ)
<ruboto> al2o3-cr # => undefined method `map' for "Pleb":String (NoMethodError) ...check link for more (https://eval.in/403622)
<al2o3-cr> >> "Pleb".split(//).map(&:succ)
<ruboto> al2o3-cr # => ["Q", "m", "f", "c"] (https://eval.in/403623)
RickHull has joined #ruby
<al2o3-cr> nearly :)
freerobby has quit [Quit: Leaving.]
Cache_Money has quit [Quit: Cache_Money]
CaryInVictoria has joined #ruby
<Ox0dea> String#chars is a thing, dammit!
<Ox0dea> I blame zenspider.
<al2o3-cr> I like split though
<Ox0dea> Aye, it's good for when you want to split.
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
christiandsg has quit [Remote host closed the connection]
benlovell has joined #ruby
<zenspider> I always get blamed
user1138 has quit [Ping timeout: 255 seconds]
<Ox0dea> Better than being git blame'd.
Musashi007 has joined #ruby
RickHull has quit [Quit: RickHull]
casadei_ has joined #ruby
mleung has quit [Quit: mleung]
RickHull has joined #ruby
fgo_ has joined #ruby
_ht has quit [Quit: Konversation terminated!]
<al2o3-cr> is there a better way then doing this -> "cheese".chars.map { |c| "\e[01;3#{rand(0..9)}m" << c }*''
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gambl0re has quit [Ping timeout: 264 seconds]
snockerton has quit [Quit: Leaving.]
user1138 has joined #ruby
htmldrum has joined #ruby
Musashi007 has quit [Client Quit]
bronson has quit [Remote host closed the connection]
albertjou has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
benlovell has quit [Ping timeout: 244 seconds]
ph8 has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
Fernando-Basso has quit [Quit: May the force be with you.]
RickHull has quit [Client Quit]
duderonomy has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
RickHull has joined #ruby
yoloats has joined #ruby
casadei_ has quit [Ping timeout: 244 seconds]
Azure has quit [Ping timeout: 244 seconds]
<yoloats> anyone in here familiar with net-ssh/sftp? Is it possible to initiate a SSH connection, iterate through files with SFTP and run commands like md5sum on them?
blackmes1 has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
j4cknewt has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
nofxx has quit [Ping timeout: 252 seconds]
CaryInVictoria has quit [Remote host closed the connection]
CaryInVictoria has joined #ruby
nfk has quit [Remote host closed the connection]
RickHull has quit [Client Quit]
<Ox0dea> al2o3-cr: 'foobar'.gsub(/./) { "\e[38;5;#{rand 256}m#$~" }
RickHull has joined #ruby
Azure has joined #ruby
<al2o3-cr> Ox0dea: nice :)
<al2o3-cr> very, nice
<Ox0dea> Danke.
RickHull has quit [Client Quit]
Cust0sLim3n has quit [Ping timeout: 246 seconds]
serivich has quit [Ping timeout: 244 seconds]
paulcsmith has joined #ruby
<al2o3-cr> Ox0dea: how'd you come up with awesomesource?
oo_ has joined #ruby
<Ox0dea> Qua?
startupality has quit [Quit: startupality]
Cust0sLim3n has joined #ruby
<al2o3-cr> scirracha
dorei has quit [Ping timeout: 265 seconds]
<Ox0dea> Bailamos.
<al2o3-cr> la pizza
bosma has quit [Quit: Leaving]
<Ox0dea> No puedo para mi pierna.
Sirupsen has joined #ruby
RickHull has joined #ruby
simplyianm has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
<al2o3-cr> non spirate vendendo sola pizza
vimz has quit [Quit: leaving]
oo_ has quit [Ping timeout: 244 seconds]
marr has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
CloCkWeRX has joined #ruby
simplyianm has joined #ruby
<Ox0dea> Watashi no piza wa doko desu ka.
eggoez has quit [Ping timeout: 244 seconds]
<al2o3-cr> yoloats: Net::SFTP.start(host, user, pass) { |conn| conn.dir.entries(path).each { |f| ... }}}}}}}}
<Ox0dea> mfw }}}}}}}}
<al2o3-cr> shush!
swills has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
eggoez has joined #ruby
<yoloats> Ox0dea so i can run something like md5sum in ... ?
Eddieh_ has joined #ruby
<Ox0dea> yoloats: Why not?
segy has quit [Quit: ZNC - http://znc.in]
<yoloats> i guess we'll find out
<Ox0dea> yoloats: Also, make your client highlight nicks in different colors. :P
segy has joined #ruby
arescorpio has joined #ruby
<al2o3-cr> yoloats: then prolly Digest::MD5.hexdigest(f) against your comparison
fgo_ has quit [Ping timeout: 244 seconds]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
j4cknewt has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
Mweshi_ has joined #ruby
michaeldeol has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Quit: Leaving.]
bhorn1|away has quit [Quit: ZNC - http://znc.in]
sshuff|gone has quit [Quit: ZNC - http://znc.in]
Averna has joined #ruby
Averna has left #ruby [#ruby]
baroquebobcat has joined #ruby
eggoez has quit [Ping timeout: 244 seconds]
mweshi has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
Igorshp has joined #ruby
webguynow has quit [Ping timeout: 255 seconds]
auzty has joined #ruby
webguynow has joined #ruby
<yoloats> ok
Obfuscate has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
gorums has left #ruby [#ruby]
dgutierrez1287 has joined #ruby
bungoman has joined #ruby
Igorshp has quit [Ping timeout: 246 seconds]
Hongo has joined #ruby
CloCkWeRX has joined #ruby
Hongo has left #ruby [#ruby]
Mendenhall has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
bricker has quit [Ping timeout: 240 seconds]
CaryInVictoria has quit [Remote host closed the connection]
j4cknewt has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
eggoez has joined #ruby
ScriptGeek has quit [Quit: Leaving.]
jeramyRR has joined #ruby
chipotle has joined #ruby
<al2o3-cr> can't believe my github *massive*
<al2o3-cr> might have to delete some :p
segy has joined #ruby
bungoman_ has joined #ruby
axisys has quit [Remote host closed the connection]
bungoman has quit [Ping timeout: 260 seconds]
htmldrum has quit [Ping timeout: 246 seconds]
bungoman_ has quit [Ping timeout: 255 seconds]
htmldrum has joined #ruby
<lampd1> so, my brain is failing me right now; might be the free oscon beer or it might just be that it's after 6
phoo1234567 has quit [Quit: Leaving]
<al2o3-cr> lampd1: sup!
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lampd1> but... what's a shorter way to do `promo_types = []; promotion_action_shipping_types { |h| promo_types << h.shipping_type }`
<al2o3-cr> lampd1: #map
<lampd1> i know i can use enum to just build that right in a var declaration
<Radar> mpa
<Radar> three chars and I can't spell it right
<lampd1> lolz
pengin has quit [Remote host closed the connection]
<lampd1> thx guys :)
<lampd1> thx guys :)
tkuchiki has joined #ruby
_blizzy_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<lampd1> silly con wifi
htmldrum has quit [Ping timeout: 246 seconds]
jeramyRR has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has joined #ruby
charliesome has quit [Quit: zzz]
robbyoconnor has joined #ruby
christiandsg has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
a346 has quit [Quit: a346]
bronson has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
towski__ has quit [Remote host closed the connection]
mike___1234 has quit [Ping timeout: 265 seconds]
jack_rabbit has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
jgpawletko has joined #ruby
amargherio has quit [Read error: Connection reset by peer]
ryez has joined #ruby
havenwood has joined #ruby
charliesome has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
Spleeze has quit [Ping timeout: 264 seconds]
_djbkd has quit [Quit: My people need me...]
waka has quit [Read error: Connection reset by peer]
waka has joined #ruby
Lucky_ has joined #ruby
fgo_ has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
lannonbr has joined #ruby
ryez has quit [Ping timeout: 246 seconds]
nitenq has quit [Quit: nitenq]
Spleeze has joined #ruby
casadei_ has joined #ruby
CaryInVictoria has joined #ruby
nitenq has joined #ruby
jbw__ has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
nitenq has quit [Client Quit]
jbw_ has quit [Ping timeout: 256 seconds]
Agoldfish has quit [Quit: G'Bye]
casadei_ has quit [Ping timeout: 240 seconds]
QualityAddict has joined #ruby
waka has quit [Read error: Connection reset by peer]
waka has joined #ruby
eminencehc has joined #ruby
blaines has joined #ruby
yb_drowe has quit [Quit: Zzzzzzz....]
tmtwd has quit [Ping timeout: 265 seconds]
gamename has joined #ruby
kies^ has joined #ruby
codecop has quit [Remote host closed the connection]
vdamewood has quit [Ping timeout: 265 seconds]
CaryInVictoria has quit [Remote host closed the connection]
devbug has joined #ruby
mike___1234 has joined #ruby
mdcox has quit [Quit: Lost terminal]
Stratege_ has joined #ruby
dfockler has joined #ruby
lkz0ne has joined #ruby
kies^ has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Quit: Leaving...]
blaines_ has joined #ruby
Stratege has quit [Ping timeout: 244 seconds]
yb_drowe has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
blaines has quit [Ping timeout: 255 seconds]
Stratege_ is now known as Stratege
sankaber has joined #ruby
tvw has quit []
dfockler has quit [Ping timeout: 252 seconds]
Kalov has quit [Quit: Leaving]
nateberkopec has quit [Ping timeout: 260 seconds]
scripore has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nofxx has joined #ruby
ddarkpassenger has joined #ruby
RegulationD has joined #ruby
felixjet has left #ruby ["Leaving"]
lkz0ne has quit [Quit: Leaving]
havenwood has quit [Read error: Connection reset by peer]
waka has quit [Read error: Connection reset by peer]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
zacts has joined #ruby
xcesariox has joined #ruby
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
<zacts> of course I realize I'll likely get a biased opinion here, but between ruby and python, which would be the easiest to learn first?
Yzguy has joined #ruby
<zacts> (if you were going to learn both eventually)
<Coraline> I've heard that python is annoying if you're used to Ruby
mandarinkin has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
helpa has quit [Remote host closed the connection]
<Coraline> But I am not speaking from experience
helpa has joined #ruby
<lampd1> zacts id really pick based on what you already know as well as what you want to do
xcesariox has joined #ruby
xcesariox has quit [Client Quit]
xcesariox has joined #ruby
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sharpmachine has quit [Remote host closed the connection]
maletor has quit []
<Ox0dea> lampd1: Why?
auzty has quit [Ping timeout: 240 seconds]
<Ox0dea> Coraline: Of what sort of annoyances have you been made aware?
<Ox0dea> zacts: Ruby.
yqt has quit [Ping timeout: 244 seconds]
<zacts> lampd1: I'm not familiar with ruby or perl at all
<zacts> I'm familiar with perl5
<zacts> and a bit of (scheme) lisp
<zacts> (Well, if you consider scheme to be lisp)
<zacts> also, I know very rudimentary emacs lisp, and vimL
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Coraline> I remember people not really liking whitespace significance
<zacts> so I'm assuming that ruby syntax is closer to perl, than python syntax is, in regards to perl
<Ox0dea> Coraline: Don't most decent people properly indent their code anyway?
<zacts> so syntactically perhaps I would find more similarities with ruby than with python, from what I already know...
<Ox0dea> zacts: Ruby = Smalltalk + Perl + Scheme, in order of influence.
<zacts> semantically Ruby is more OOPish? Python is more multi-paradigm?
<zacts> ah ok
<Ox0dea> zacts: Ruby is arguably the "most object-oriented" language now that Smalltalk's on its deathbed.
<Ox0dea> >> 42.is_a?(Object)
<ruboto> Ox0dea # => true (https://eval.in/403691)
<Ox0dea> >> Object.is_a?(Object)
<zacts> I'm thinking Ruby would be more familiar to me given that above informal definition of what ruby is
<ruboto> Ox0dea # => true (https://eval.in/403692)
<zacts> neato
Eddieh_ has quit [Remote host closed the connection]
<zacts> so personally, I think I'll work towards Ruby before python, since I want to learn both eventually (ruby for fun coding, and python if I want to ever do machine learning)
<zacts> but, this is just for future reference for myself
<zacts> :-D
<zacts> I'm still heavy into scheme
<Ox0dea> What does that mean?
<zacts> Ox0dea: what does what mean?
<Ox0dea> > heavy into scheme
malconis has joined #ruby
<zacts> oh, I'm reading the Structure and Interpretation of Computer Programs. I'm heavy into teaching myself and living with the scheme programming language as my primary language
oo_ has quit [Remote host closed the connection]
<Ox0dea> You'll probably want to focus strictly on SICP if you intend to get the most out of the experience.
<zacts> exactly that was my point
<zacts> thus "this is just for future reference, for myself"
<zacts> I was trying to say that currently I'm focusing on scheme almost exclusively, and that these Ruby questions are just for future reference
<zacts> anyway, thanks for the ideas
Mendenhall has quit [Ping timeout: 256 seconds]
oo_ has joined #ruby
freerobby has joined #ruby
Mweshi_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kully3xf has quit [Remote host closed the connection]
icosa1 has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
sharpmachine has joined #ruby
iceyec has quit [Quit: iceyec]
waka has joined #ruby
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyianm has quit [Remote host closed the connection]
cmoneylulz has joined #ruby
bradleyprice has joined #ruby
fgo has joined #ruby
fgo_ has quit [Ping timeout: 240 seconds]
CaryInVictoria has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
f3ttX] has quit [Remote host closed the connection]
baweaver has joined #ruby
casadei_ has joined #ruby
devbug has joined #ruby
workmad3 has joined #ruby
casadei_ has quit [Ping timeout: 255 seconds]
sharpmachine has quit [Remote host closed the connection]
benlovell has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
nahtnam has joined #ruby
CaryInVictoria has quit [Remote host closed the connection]
ddarkpassenger has joined #ruby
axisys has joined #ruby
s00pcan has quit [Ping timeout: 250 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlovell has quit [Ping timeout: 244 seconds]
towski_ has joined #ruby
shadoi has quit [Quit: Leaving.]
s00pcan has joined #ruby
christiandsg has joined #ruby
tjbiddle has joined #ruby
MrSamuel has joined #ruby
modern has quit [Read error: Connection reset by peer]
c_nick has joined #ruby
<c_nick> how to get "Me" from this string - "Hi,This,is,Me". i can go split('
<c_nick> but that seems inefficient
Channel6 has joined #ruby
bruno- has joined #ruby
<Aeyrix> "Hi,This,is,Me"[-2..-1]
cmoneylulz has quit [Remote host closed the connection]
<Ox0dea> Wow, such troll.
esantiago has joined #ruby
<Ox0dea> >> 'Hi,This,Is,Me'[/,(\w+)$/, 1] # c_nick
<ruboto> Ox0dea # => "Me" (https://eval.in/403700)
<Aeyrix> *shrugs*
jenrzzz has joined #ruby
ryez has joined #ruby
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
bruno- has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
segfalt has joined #ruby
benlovell has joined #ruby
a346 has joined #ruby
<Ox0dea> c_nick: The $ anchor tells the regular expression engine to start searching at the back of the string, so the efficiency is quite good.
dopie has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
swgillespie has joined #ruby
braincrash has quit [Quit: bye bye]
<Ox0dea> >> s = Time.now; ('x' * 1_000_000)[/$/]; Time.now - s
<ruboto> Ox0dea # => 0.055223338 (https://eval.in/403701)
<c_nick> Ox0dea: cool i ideally in C i used to do strchr(str, stringlenth - from where u want)
<Ox0dea> c_nick: Why not strrchr()?
<c_nick> Ox0dea: yes reverse string :)
<Ox0dea> No.
eggoez has joined #ruby
<Ox0dea> strrchr() is different in that it searches from the right, not that it reverses the string before searching.
<c_nick> Dont go on the exact syntax I dont quite remember hehe
<Ox0dea> Don't introduce a topic you're not ready to discuss? :P
tmtwd has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
blaines has joined #ruby
segfalt has quit [Ping timeout: 272 seconds]
CaryInVictoria has joined #ruby
djbkd_ has joined #ruby
braincrash has joined #ruby
<c_nick> lol
<c_nick> Ox0dea: strcpy(buf,strrchr(str, ',')+1);
<Ox0dea> c_nick: Looks good. :)
* c_nick misses C
blaines has quit [Client Quit]
bahar has quit [Ping timeout: 272 seconds]
<Ox0dea> Write a C extension?
sevenseacat has joined #ruby
<c_nick> Can i ? Didn't know i could
<Ox0dea> Of course.
<Ox0dea> And it's even quite pleasant.
<Aeyrix> You need to get permission first.
<Ox0dea> ^
devbug has quit [Ping timeout: 272 seconds]
jaycee has joined #ruby
Yzguy has quit [Quit: Zzz...]
* kb3ien misses ++
Yzguy has joined #ruby
<kb3ien> write a damn extension to increment whatever is there!
jenrzzz has joined #ruby
Musashi007 has joined #ruby
d0lph1n98 has joined #ruby
<Ox0dea> You can't modify immediate values in-place.
ledestin has joined #ruby
<kb3ien> well, not those. The ALU can't write back to the IVG.
<kb3ien> Write Only Memory....
<Ox0dea> ...?
arup_r has joined #ruby
<bnagy> stahp, it's too early for popcorn
Mendenhall has joined #ruby
<bnagy> Ox0dea: I thought you could, in theory, do that?
<bnagy> except it would increment like, all 4s everywhere
arup_r has quit [Remote host closed the connection]
<Ox0dea> bnagy: Nope; Fixnums are just tagged pointers in Ruby.
<bnagy> which probably has limited utility
<Aeyrix> Yeah I fucked it.
Rinzlit has joined #ruby
deepu has joined #ruby
<Ox0dea> You could, of course, obtain the variable's binding and do an eval in there, but that's just overwriting the old value.
<Rinzlit> Hey guys
<Rinzlit> I woke up
<Ox0dea> How come?
<Aeyrix> Neat.
<Rinzlit> To get back to where I let off :D :D :D
<Ox0dea> Do you have three faces?
<Rinzlit> No, but I feel like stabbing someone in the face 3 times
<Ox0dea> Who've ya got in mind?
<Rinzlit> Actually I don't have any specific people
<Rinzlit> So maybe just small children
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prefixed has joined #ruby
<Ox0dea> Why not large children and/or small adults?
<Rinzlit> Because small things are "fun" sized
<Ox0dea> That's size-ist.
<Ox0dea> Coraline!
<Rinzlit> Ah ha ha
<Rinzlit> Ah hah a I feel lucky
<Rinzlit> two of my servers are only different by 1
<Ox0dea> By one bit?
<Rinzlit> one ends with 28
<Rinzlit> one ends with 29
bmurt has joined #ruby
<Rinzlit> 38, and 39*
Contigi has joined #ruby
oo_ has quit [Remote host closed the connection]
kb3ien has quit [Ping timeout: 244 seconds]
<Ox0dea> We should be able to say `foo .= bar` instead of `foo = foo.bar`, in my opinion.
jbw_ has joined #ruby
<c_nick> Ox0dea: time for an extension ;)
<Ox0dea> c_nick: It would require a change in the parser.
<Ox0dea> And parse.y is an abyss from which precious few return unharmed.
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
jbw__ has quit [Ping timeout: 256 seconds]
<Rinzlit> So, my website can't find jquery...
<Ox0dea> Rinzlit: It's right where you left it.
a346 has quit [Quit: a346]
bmurt has quit []
<Rinzlit> yes, thats very kind of it to wait for me.
<Ox0dea> Who said it's waiting for you, though?
<Rinzlit> I did.
<Ox0dea> On what basis?
<c_nick> str = "123.456"p str[/\.\w+/,1]
<Rinzlit> Because I'ma fix this shyt
oo_ has joined #ruby
<Ox0dea> c_nick: You have to use parentheses to create a capture group.
<Ox0dea> That's what the 1 refers to.
jordanm has joined #ruby
<c_nick> Ah Ok
darkf has joined #ruby
s00pcan has quit [Ping timeout: 264 seconds]
<nofxx> What's the ruby way to :foo_bar or 'foo_bar' -> FooBar ?
casadei_ has joined #ruby
<nofxx> always confuse.. #classify is rails right?
dented42 has joined #ruby
malconis has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> nofxx: #constantize is ActiveSupport, yes.
<Ox0dea> Erm, and yes, as is #classify.
oo_ has quit [Remote host closed the connection]
s00pcan has joined #ruby
<Ox0dea> But that's more from singularizing plurals.
<nofxx> Ox0dea, ruby will be const_get, split capitalize join ?
devbug has joined #ruby
<Ox0dea> nofxx: You'd miss a few edge cases that way, but it'd mostly work.
jbw__ has joined #ruby
<nofxx> ah, nevermid, there's activesupport dependency here anyways
<nofxx> gonna use it
<Ox0dea> nofxx: You'll want #camelize, then.
<nofxx> Ox0dea, ty
<Ox0dea> Sure thing.
<nofxx> oh, good know
<nofxx> good to know*
jbw_ has quit [Ping timeout: 246 seconds]
JoshGlzBrk has joined #ruby
<c_nick> ty Ox0dea bbl
jenrzzz has quit [Ping timeout: 265 seconds]
c_nick has left #ruby [#ruby]
<Rinzlit> Ox0dea
<Rinzlit> I have a mystical question
<Rinzlit> Like spooky ghost
<Rinzlit> how the fk do I get "bower install"
<Rinzlit> to run
lessless has joined #ruby
xkickflip has quit [Ping timeout: 240 seconds]
<Ox0dea> Rinzlit: Does your browser force pages to close after a few minutes or something? :/
chipotle has quit [Quit: cheerio]
<havenwood> Rinzlit: Not with Ruby.
<Rinzlit> I was pretty sure this bower stuff was gems
<Rinzlit> but okay
<Rinzlit> and no I get pretty error messages on my website
chipotle has joined #ruby
<jordanm> bower is nodejs
<havenwood> Rinzlit: #Node.js
esantiago has quit [Quit: Saindo]
chipotle has quit [Max SendQ exceeded]
<Rinzlit> I prefer to only bother you guys though since I like you guys .-.
gix has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
<havenwood> Rinzlit: Don't go Nodeling if you don't want to hang with Nodelers.
<Rinzlit> btw I didn't use sudo
<Rinzlit> #WhyItFailed
<Ox0dea> This guy.
<prefixed> Ox0dea Did you expect this error message to occur when you suggested using NET::SFTP earlier?
<prefixed> `digest': can't convert Net::SFTP::Protocol::V01::Name into String (TypeError)
<Ox0dea> prefixed: No, sorry; I've never used Net::SFTP. :/
ryez has quit [Ping timeout: 246 seconds]
<prefixed> fuck
<Ox0dea> prefixed: The error message indicates that you're passing a not-String to #digest.
<prefixed> I am not sure that it's possible to run File methods over the SFTP connection
<prefixed> It doesn't appear to be the case
<Ox0dea> prefixed: Does that actually make sense to you, though?
<prefixed> No
<Ox0dea> > Read and write files using an IO-like interface
<prefixed> let's test this out and see wha thappens
gix has joined #ruby
bungoman has joined #ruby
<Ox0dea> prefixed: I learned how to use Net::SFTP to iterate over the entries in a given directory in about ten seconds...
<Rinzlit> O_o
<Rinzlit> Ox0dea heeelp Q_Q
<Rinzlit> rinzlit@KM301:~$ bower install
JoshGlzBrk has quit [Read error: Connection reset by peer]
<Rinzlit> ./usr/bin/env: node: No such file or directory
avahey has joined #ruby
aaeron has quit [Quit: Leaving.]
webguynow has quit [Ping timeout: 246 seconds]
icebourg has joined #ruby
<sevenseacat> whats that got to do with ruby?
webguynow has joined #ruby
<Rinzlit> Nothing,
<Ox0dea> You're very inconsiderate.
<Rinzlit> I am, but could you please help .-.
<Rinzlit> If you can't say no that is perfectly fine
<Rinzlit> but if you can help that would be wonderful
<Ox0dea> You would be much better served by a fishing pole than a fish.
<Ox0dea> But how fucking hard is it to figure out what "No such file or directory" means in 2015?!
<prefixed> Ox0dea sure. it's 100% possible to iterate over entries. however, I am not sure if it's possible to run ruby methods on them over the connection. I would think either A.) ruby would need to be installe don the target machine or B.) the file would need to be downloaded to the primary host to compute the md5 sum
Eiam_ has joined #ruby
<Ox0dea> prefixed: Net::SFTP::Operations::File seems to be the class you're looking for.
yb_drowe has quit [Quit: Zzzzzzz....]
mike___1234 has quit [Ping timeout: 246 seconds]
<prefixed> I'm confused as to how that'd work though. Do you follow my logic?
<Ox0dea> It should allow you to read, and thus checksum, the contents of files without explicitly downloadin them.
<Ox0dea> *downloading
<prefixed> hm. that's an interesting though
<prefixed> *thought
<Ox0dea> It confuses you that an FTP connection would be able to send you data, or--?
<prefixed> it confuses me that it'd be possible to do this without ruby being on the target machine or downloading the file in quesiton
<Ox0dea> Then you've fundamentally misunderstood the underlying principles of the thing.
<prefixed> I'm happy to hear that
d0lph1n98 has quit [Quit: leaving]
<Ox0dea> Net::SFTP knows how to connect to an FTP server and perform the operations specified by the relevant protocol(s), among which are reading and downloading the files found therein.
<Aeyrix> SFTP is not a Ruby thing.
<Aeyrix> That class is just a bunch of socket implementations that know how to speak the SFTP protocol.
Erika-Mustermann has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
<Aeyrix> Rinzlit: Isn't there a nodejs channel?
<baweaver> >> 'SFTP' == 'FTP' # ???
<ruboto> baweaver # => false (https://eval.in/403713)
<Aeyrix> Or did it fall to #iojs?
<Aeyrix> Or is it #nodejs again?
<Rinzlit> Aeyrix I'm in there right now
<Aeyrix> Rinzlit: So what're you asking here for?
<Aeyrix> baweaver: wat
<Rinzlit> Aeyrix oh idk usually since a majority of my problems are because I'm bad with linux
<baweaver> Net::SFTP connects to an FTP server quote above
<Ox0dea> baweaver: They're obviously different, but the distinction is of little relevance when trying to clarify the gist of the thing.
<baweaver> yeah, figured I was being slightly pedantic
<baweaver> Rinzlit: perhaps a good idea to _learn_ linux then?
<Aeyrix> Ox0dea: Pedanticism is a Rubyists second favourite hobby.
<Aeyrix> The first is circlejerking.
<Ox0dea> I approve, doubly so.
<Rinzlit> baweaver I plan on doing that once I get this job done .-.
<Aeyrix> Same.
<Ox0dea> Aeyrix: For reference, the word is "pedantry". ^_^
<Aeyrix> God dammit.
<Ox0dea> I'm So Meta Even This Acronym.
<baweaver> A group of pedants is an actually
auzty has joined #ruby
<Aeyrix> (NSFW language)
<Ox0dea> Wow, such nostalgic.
<Ox0dea> Many remindings, wow.
mesamoo has joined #ruby
Mendenhall has quit [Ping timeout: 255 seconds]
<Aeyrix> I still laugh every time.
<Aeyrix> He has my accent.
GryAway has joined #ruby
<Ox0dea> baweaver: The collective noun for jugglers is apparently "a neverthriving".
Muhannad has joined #ruby
GryAway has quit [Client Quit]
<Aeyrix> Language jugglers or? ;)
yb_drowe has joined #ruby
<Ox0dea> I expect the folks at Merriam-Webster aren't too bad off.
<Ox0dea> An improbability of GNUs, and yet here we are.
<Ox0dea> Thanks, rms.sexy.
CaryInVictoria has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 244 seconds]
<yoloats> YOLO
<yoloats> it worked
<yoloats> this is great
htmldrum has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
swgillespie has joined #ruby
<yoloats> oh
<yoloats> no it didn't
sharpmachine has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
Yzguy has quit [Quit: Zzz...]
htmldrum has quit [Ping timeout: 272 seconds]
_gautam_ has joined #ruby
Obfuscate has joined #ruby
<yoloats> wait a second. what's happening here. The files have different md5s. I literally just copied one file from one host to the other
sharpmachine has quit [Ping timeout: 240 seconds]
mike___1234 has joined #ruby
yb_drowe has quit [Quit: Zzzzzzz....]
duncannz has joined #ruby
simplyianm has joined #ruby
<Ox0dea> yoloats: `cmp a b` will tell you exactly where files a and b first differ.
<Ox0dea> My bet's on disparate lind endings.
<Ox0dea> *line
<yoloats> I wonder if net ssh is broken
bronson has joined #ruby
<Ox0dea> Just... compare the files?
simplyianm has quit [Ping timeout: 246 seconds]
<yoloats> doing it now
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
simplyianm has joined #ruby
<yoloats> what if it doesn't return anything?
Mendenhall has joined #ruby
<Ox0dea> yoloats: Then the files are byte-identical.
<yoloats> ok
<yoloats> wtf is going on here
<Ox0dea> Did you roll your own MD5?
<yoloats> I'm clearly doing something wrong with File
<Ox0dea> Yep.
<yoloats> no I'm using Digest::
bungoman has quit [Remote host closed the connection]
<yoloats> I just checked the md5s using md5sum
bronson has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> And they're the same, yes?
workmad3 has joined #ruby
<yoloats> yes
<Ox0dea> You must not be using the files' contents in your Ruby code.
<yoloats> yeah. that's what i'm thinking
<Rinzlit> Well
<Rinzlit> Its a sad day Ox0dea
<Rinzlit> all my effort was for not...
<Ox0dea> yoloats: Digest::MD5.hexdigest(File.read('foo'))
<Ox0dea> Rinzlit: *naught
<Rinzlit> too tired .-.
<Ox0dea> Or you just didn't know, which is also fine.
htmldrum has joined #ruby
<Rinzlit> well im just too tired for that im probably going to go back to sleep since I just got told bower is bad
<Rinzlit> and it probably doesn't work anyway
lxsameer has joined #ruby
lxsameer has joined #ruby
<yoloats> found it
lannonbr has quit [Quit: WeeChat 1.2]
scottschecter has joined #ruby
<yoloats> I was md5'ing the path string. gotta rtfm closer next time
oo_ has joined #ruby
danzilio has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
<Rinzlit> Well,
<Rinzlit> I guess its time to go buy a book about linux administration
<yoloats> at least it works now. this is going to be some good code
acke has joined #ruby
peter_paule has joined #ruby
<Ox0dea> yoloats: Why MD5?
<yoloats> high accuracy. low resource usage. super low collision rate
havenwood has quit [Ping timeout: 244 seconds]
<Ox0dea> "super low" is a stretch.
<yoloats> it's liek 2^-128, no?
<Ox0dea> I forget the specifics of crafting MD5 collisions, but it's embarrassingly easy on modern hardware.
<Ox0dea> It's unlikely you need to defend against "attacks" of that nature, but it's something to be mindful of.
oo_ has quit [Ping timeout: 255 seconds]
<yoloats> well yeah, but I'm only using it for file diffs in a CI environment
deepu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Ox0dea> Then CRC-32 would suffice?
<yoloats> possibly
sp1rs has joined #ruby
<yoloats> what's it collision rate like?
acke has quit [Ping timeout: 246 seconds]
<Ox0dea> Very high.
<Ox0dea> Comparatively, anyhow.
htmldrum has quit [Ping timeout: 240 seconds]
<Rinzlit> Why...
htmldrum has joined #ruby
<eam> Ox0dea: crafting, but it's still really good for accidental collisions
<Rinzlit> Why is every crowdfunding website with ruby
<Ox0dea> eam: Taking the characters at prime indices in the path and doing some DJB on the contents would probably serve in most circumstances.
schaerli has joined #ruby
<eam> FNV is quite good, and fast
peter_paule has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
jbw_ has joined #ruby
<Rinzlit> So...
<Rinzlit> Is there something I don't know about web development where ruby is really good?
cb_ has joined #ruby
cb_ has joined #ruby
<sevenseacat> probably a lot
jbw__ has quit [Ping timeout: 244 seconds]
<Rinzlit> lol, well I was hoping someone would tell me why xD
CaryInVictoria has joined #ruby
<Rinzlit> I mean I already know I don't know shit all about web development or programming
ohaibbq has joined #ruby
prefixed has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
htmldrum has quit [Ping timeout: 256 seconds]
<Aeyrix> Rinzlit: Ruby is really averaeg.
<Aeyrix> Everyone in this channel actually just spends their time talking shit about Ruby.
<baweaver> depends on what you want speed in
<Aeyrix> In complete seriousness, in my opinion Ruby is pretty awesome for:
<Rinzlit> Aeyrix from what I'm reading....
<Aeyrix> > Rapid prototyping
MrSamuel has quit [Quit: MrSamuel]
<baweaver> prototyping and development, ruby wins
<Rinzlit> I should actually go and learn ruby on rails
<Aeyrix> > Ease of reading, learning, and writing
<baweaver> execution speed, not a chance.
<Aeyrix> baweaver: Eh
<Aeyrix> rubinius
<Aeyrix> jruby
<Ox0dea> ...
<Aeyrix> not for web, Ox0dea
<Aeyrix> calm down
<Aeyrix> > compiling a rails app
<Aeyrix> "Ah fuck, I can't believe you just did that."
<baweaver> It can
RickHull has left #ruby [#ruby]
<Aeyrix> Rinzlit: Ruby on Rails (or, really, now just "Rails") is a web framework for Ruby.
<Aeyrix> If you want to use Ruby for the web, yeah go learn Rails.
<Aeyrix> But you gotta learn Ruby first.
<baweaver> before that
<baweaver> Linux
<baweaver> seeing as you've said that a few times already
<Rinzlit> Yeah, well I need to learn a lot of stuff
<Aeyrix> Lunix is a hacker operating system created by the communist terrorist Linorius Torivals.
<Rinzlit> wonderful....
_gautam_ has quit [Quit: Lingo: www.lingoirc.com]
freerobby has quit [Quit: Leaving.]
<Ox0dea> Linux Tortles Creationed the Linuz operations cystem to make life Hell for sysadmins like you.
simplyianm has quit []
<Rinzlit> So my list of shyt to learn: propery system administration, better CSS and HTML, PHP,Javascript, Ruby, then finally Rails
Mendenhall has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Quit: ciao.]
* baweaver grabs popcorn
<baweaver> take php off that list
<Rinzlit> You sure O_o?
<baweaver> yes
<Rinzlit> They recommended it for RoR
<baweaver> who are they
<Ox0dea> Sell your keyboard.
mistermocha has joined #ruby
<sevenseacat> php for rails...?
<Ox0dea> I swear.
<Rinzlit> Said it would probably be good to know a little bit of PHP
tkuchiki has quit [Remote host closed the connection]
<Aeyrix> sevenseacat: PHP on Pipes.
htmldrum has joined #ruby
<baweaver> they don;t say that
marr has joined #ruby
<baweaver> and if they do and I missed it, disregard strongly
<baweaver> as they're dangerously incompetent if that's the case.
<Rinzlit> Oh okay .-.
<Rinzlit> Well that makes my list a little nicer
<baweaver> that's akin to saying learn Basketball to get better at Soccer
<Rinzlit> So now my list : Be less of an idiot and use linux properly, get better at current job, learn ruby, then learn RoR, work on learning real javascript
<baweaver> they're both sports, they both have some similarities, but if you want to get good at one then just learn that.
schaerli has quit [Remote host closed the connection]
xaxisx has quit [Ping timeout: 244 seconds]
<Rinzlit> Well, I'm glad I have 3 monitors
Casty has quit [Quit: Textual IRC Client: www.textualapp.com]
<Rinzlit> lol and I was just going to talk to you guys and never learn ruby
<Rinzlit> ah ha ha....
<konsolebox> Rinzlit: you missed bash. unfortunately there are still many things that could easily be done in Bash than Ruby, but you would to use it, or mix it with other languages/tools.
riotjones has joined #ruby
<konsolebox> *you would have to know when
<Ox0dea> konsolebox: Ruby is arguably a superset of Bash, so I'm not sure I follow your logic.
<Rinzlit> konsolebox I think that will be a better problem when I actually learn something
* Rinzlit is currently a "programmer" like an air guitarist is a guitar player
<konsolebox> Ox0dea: do this in Ruby without using something that is not Ruby: make && make modules_install && make install
<konsolebox> Ox0dea: that's just a small example
<Ox0dea> konsolebox: make is not Bash.
jbw__ has joined #ruby
<konsolebox> Ox0dea: yeah, but it isn't Ruby either.
<Rinzlit> konsolebox its for websites though
<Ox0dea> konsolebox: But why did you offer it as a defense of Bash?
<Rinzlit> Thats all I want ruby for
<konsolebox> Rinzlit: because you mentioned system administration
danzilio has quit [Quit: Baiii!]
<Rinzlit> Oh, yeah I'm a systems admin for a financial company
<Rinzlit> A most worthless one
<Aeyrix> konsolebox: `make && make modules_install && make install`
<konsolebox> Ox0dea: because that's the first thing i could think of
<Aeyrix> konsolebox: Kernel.exec.
<Aeyrix> konsolebox: Not bash.
<Aeyrix> :>
<konsolebox> Aeyrix: you sure?
<Aeyrix> About 80% sure, yeah.
weemsledeux has joined #ruby
jbw_ has quit [Ping timeout: 246 seconds]
<Aeyrix> Checking meow.
<Aeyrix> Yep.
<konsolebox> >> Kernel.exec('echo $0')
<ruboto> konsolebox # => (https://eval.in/403719)
maletor has joined #ruby
chrissonar has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
<konsolebox> ok, not allowed, but well it's pretty obvious :)
<Aeyrix> Read up on Kernel#exec.
<konsolebox> Aeyrix: i don't have to.
<konsolebox> Aeyrix: for 1, that way of executing commands including && is not Ruby
<Aeyrix> I was actually still typing. :^)
* Aeyrix If the string from the first form (exec("command")) follows these simple rules:
* Aeyrix - no meta characters
* Aeyrix - no shell reserved word and no special built-in
* Aeyrix - Ruby invokes the command directly without shell
<Aeyrix> uhhhh
<Aeyrix> what
<konsolebox> Aeyrix: this is why i said "without using something that is not Ruby", because replies like the one you're making is easily called for.
<Aeyrix> Not sure why that went full /me/
<Ox0dea> konsolebox: Continuing the execution of some sequence if the previous invocation succeeded is, by your logic, something of which only Bash is capable?
<Ox0dea> Did you accidently go full retard?
<Aeyrix> Ox0dea: I think it was deliberate.
htmldrum has quit [Ping timeout: 244 seconds]
<Ox0dea> Aye, likely as not.
<konsolebox> Ox0dea: sigh.. of course captain obvious, it's an sh :)
aganov has joined #ruby
arooni-mobile has joined #ruby
<konsolebox> Ox0dea: so is that all? an ordinary sh is something not fit to compete with Ruby.
<Ox0dea> You're setting up a straw man, and I suspect you know as much.
t_ has quit [Read error: Connection reset by peer]
<Aeyrix> > arguing with Ox
<Aeyrix> > expecting to ever come out on top
<Ox0dea> <3
<Aeyrix> I learned my lesson day one.
maletor has quit [Ping timeout: 246 seconds]
<Ox0dea> I sometimes even lose to myself.
<Aeyrix> You should get that one checked. :^)
mistermocha has quit [Ping timeout: 250 seconds]
jaycee has quit [Ping timeout: 250 seconds]
baroquebobcat has joined #ruby
RobertBirnie has joined #ruby
sharpmachine has joined #ruby
mistermocha has joined #ruby
htmldrum has joined #ruby
icebourg has quit []
ScriptGeek has joined #ruby
<konsolebox> Ox0dea: i misread your last reply. what i'm implying was it's way simpler to have sequences like `make && ...` in Bash than doing that in Ruby. concept-wise when things get a little bigger it would still be simpler to do it in Bash in Ruby. way simpler most of the time.
lkba has joined #ruby
sharpmachine has quit [Ping timeout: 240 seconds]
iateadonut has joined #ruby
ReK2 has joined #ruby
ReK2 has joined #ruby
<Ox0dea> konsolebox: It's rather easy to foresee that this'll surely devolve into little more than an argument over semantics from which neither party is likely to gain any insight.
<Ox0dea> Bash and Ruby are both Turing-complete, and either can invoke the other. </case>
dhjondoh has joined #ruby
<konsolebox> Ox0dea: ok. and that is why i could tell that Bash is also necessary.
mistermocha has quit [Read error: Connection reset by peer]
<Ox0dea> I suspect we subscribe to differing definitions of "necessary".
htmldrum has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
mistermocha has joined #ruby
<agent_white> Evenin' folks
<Aeyrix> Yo.
tjbiddle has quit [Quit: tjbiddle]
htmldrum has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
tkuchiki has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mistermocha has quit [Ping timeout: 244 seconds]
<konsolebox> Ox0dea: different tastes with different perceptions. you can believe that yours is better if you like.
nahtnam has quit [Quit: Connection closed for inactivity]
<Ox0dea> konsolebox: Too soon on the ad hominem stuff.
<Rinzlit> So, I think I should drop some of my jobs, and dedicate some time to learning .-.
<Ox0dea> Rinzlit: Get the fuck off the Internet and read a book, dude.
<Ox0dea> Please?
<Rinzlit> Yeah I know right xD
<Aeyrix> They just bought some books.
<Ox0dea> Probably not.
<konsolebox> Ox0dea: nevertheless if you are a system admin, you can't avoid needing to learn shell scripting.
kies^ has joined #ruby
<Aeyrix> Actually, did.
<Rinzlit> I got the one from the guy Aeyrix linked
<Aeyrix> :>
<konsolebox> Ox0dea: and most practical scripting is a bash.
<Aeyrix> Radar owes me a finder's fee now.
<konsolebox> *is bash
scripore has quit [Quit: This computer has gone to sleep]
<Aeyrix> konsolebox: Shhhh.
<Radar> Aeyrix: np. You can have half of my royalties for that copy. Should be about $2.36.
<Aeyrix> This is a Ruby channel.
<Aeyrix> Radar: That figure makes me upset knowing how much effort you put into that book.
<Aeyrix> Jesus Christ.
<konsolebox> Aeyrix: neither of us would lower our pride :) just don't mind :)
<Radar> Aeyrix: This is why you should never ever ever do anything for people who's business it is to just PUBLISH your thing.
<Radar> See also: music industry
<Rinzlit> Well Ox0dea the system admin stuff is lower priority then web development
<Aeyrix> v true
<Rinzlit> But you guys made it very clear that I need to be able to at least use linux properly to even start the web servers for ruby
htmldrum has quit [Ping timeout: 244 seconds]
<Rinzlit> ah ha ha... -facepalm-
<Ox0dea> konsolebox: Please do quote me if you're able to find where I said anything to the contrary as regards Bash's utility as a language.
<Aeyrix> Rinzlit: mhm
<Ox0dea> But its power is as a "glue" for tying other programs together, a feat of which Ruby is just as capable, and generally in a more intuitive and programmer-friendly way.
<konsolebox> Ox0dea: it's about just me recommending bash, not about anything you said.
<Ox0dea> konsolebox: Recommending Bash over Ruby in the general case?
yardenbar has joined #ruby
<konsolebox> Ox0dea: did i say that?
<Aeyrix> S T O P
<Aeyrix> T
<Ox0dea> I'm asking if you intended to say that.
<Aeyrix> O
<Aeyrix> P
<konsolebox> Ox0dea: no.
<Ox0dea> konsolebox: Then when do you recommend using Bash instead of Ruby, or indeed any other language?
<Rinzlit> Rail cast isn't a 1 time fee
<Aeyrix> You two are more argumentative than I am, and I'm from England.
<Rinzlit> is monthly Aeyrix .-.
<Aeyrix> Rinzlit: It is. It says it isn't, but it is.
bluOxigen has joined #ruby
<Aeyrix> Basically the guy is on an extended vacation, so he's indefinitely extending the subscriptions for free.
<Rinzlit> I am reading 9$ per month .-.
<Rinzlit> He is dead?
<Rinzlit> -_______-
<Aeyrix> No.
<konsolebox> Ox0dea: i did recommend it over Ruby in some parts, but not on general case.
<Aeyrix> He's alive and well.
<Ox0dea> konsolebox: When?
<Ox0dea> Which parts?
<Aeyrix> He's just taking a break. He was very burned out.
mistym has quit [Ping timeout: 244 seconds]
<Aeyrix> @ryanbates, IIRC.
<Radar> @rbates
<Ox0dea> > mfw the englishman didnt use burnt
<konsolebox> Ox0dea: you missed bash. unfortunately there are _still_ many things that could easily be done in Bash than Ruby...
scripore has joined #ruby
jbw_ has joined #ruby
<Ox0dea> konsolebox: Yes, please enlighten me as to what those things are, specifically.
<konsolebox> Ox0dea: and wasn't i referring to the list?
<Ox0dea> Which list was that?
<konsolebox> Ox0dea: sigh.. this is not worth it :)
<Ox0dea> k
<agent_white> The need to install ruby. Each and every linux distro has pearl?
mark06 has joined #ruby
<Ox0dea> agent_white: LFS doesn't.
<Aeyrix> > pearl
<Radar> agent_white has become a Markov chain
<Aeyrix> lmao
jbw__ has quit [Ping timeout: 244 seconds]
<agent_white> Radar: :) Hehe I think I'll keep that trophy.
yoloats has quit [Ping timeout: 256 seconds]
<Ox0dea> agent_white: Is it your intention to claim that Perl is superior to Ruby because it's there by default in most cases?
<agent_white> Ox0dea: Did I say that?
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> agent_white: I asked if you did.
<Aeyrix> Ox0dea: pls no
<Rinzlit> Perl is on cpanel
casadei_ has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
<Ox0dea> I swear you must be a time traveler.
<agent_white> Ox0dea: I know. But I'm telling you that clearly that was not what I attempted to convey, in any way shape or form.
<agent_white> I was just saying, it's good to know some bash. Simple as that.
<Ox0dea> agent_white: Talking like a Markov chain does neither you nor your audience any great favor.
dagda1 has joined #ruby
arescorpio has quit [Quit: Leaving.]
<Ox0dea> And now you've switched from Perl to Bash?
<Aeyrix> >tfw Ox has gone full argument
<agent_white> Ox0dea: I know :) I spew random thoughts sometimes. My bad. I'll hush-up.
<Ox0dea> Would that I were so wise.
scripore has quit [Client Quit]
<konsolebox> Ox0dea: s/this is/you're/ :)
<Ox0dea> ...
<agent_white> Aeyrix: https://i.imgur.com/xm2czGX.jpg <- !
<Aeyrix> agent_white: My life story.
<Aeyrix> konsolebox: Highly rude.
<agent_white> \o/
<Aeyrix> Illegal, even.
<Ox0dea> Oh, I thought he was attempting to correct some grammatical mistake I'd made.
<Aeyrix> No, they were just being rude.
<Ox0dea> A symptom of defeat, in my experience.
<Aeyrix> Unfortunately I couldn't get !rude added into the bot due to horrendous creative oppression.
Soda has quit [Remote host closed the connection]
* Radar does not take the bait
t_ has joined #ruby
<Aeyrix> :D
havenwood has joined #ruby
tagrudev has joined #ruby
<konsolebox> Aeyrix: rude is such a relative term.
<Aeyrix> Neat.
<konsolebox> Ox0dea: i'm pretty much sure i'm far from defeated.
<Aeyrix> For fuck's sake will you please stop?
<Aeyrix> You're defeated in that you now look like a petty moron.
<Aeyrix> Ox isn't far behind, quit yammering about bullshit.
<Aeyrix> Offtopic is fine until you get into shittalking matches that rival my 4chan posts.
<ribbons> Aeyrix, we have an anon here eh?
<ribbons> shitposting by day, irc by night
<Aeyrix> I am the infamous fore-chain as heard on CNN.
astrobunny has joined #ruby
<Aeyrix> I actually just post on /vg/ and /g/ a lot. They're blue boards and pretty solid discussion goes on.
<Ox0dea> The only winning move is not to /b/.
<Rinzlit> Aeyrix im impressed xD
icosa1 has quit [Ping timeout: 272 seconds]
<Aeyrix> Rinzlit: ?
<Rinzlit> Are you really the infamouse fore-chain?
<Rinzlit> From CNN?
<Aeyrix> lol no
<Rinzlit> With the h4x0rs?
<Rinzlit> But anonmyus
<Aeyrix> I work in information security but I am not the infamous foru chain
<Ox0dea> Rinzlit: Aeyrix is the CTO at a 4chan 500 company.
<Aeyrix> > 4chan
<Aeyrix> > fortune
<Aeyrix> God that's incredible.
<Rinzlit> urmurgurd
<Rinzlit> rlly?
<Aeyrix> Rinzlit: http://elliot.pro/
<Aeyrix> I'm not much of a big name at all. :)
<Aeyrix> I just do my own thing quietly.
vdamewood has joined #ruby
<Rinzlit> actually ima stop before i get told to go to ruby off topc
<Rinzlit> So ruby stuff
<Aeyrix> Off topic is generally considered fine unless it turns into that mess above, or gets in the way of other people learning.
<Rinzlit> Oh okay xD
<Ox0dea> Aeyrix: Are you descended from Francis Bacon?
scripore has joined #ruby
<Aeyrix> Yes.
<Ox0dea> Fancy that.
<Rinzlit> Did you help make the bacon bit?
<Aeyrix> My surname is German for a type of smoked pork.
<Radar> Rinzlit: Not appropriate to link to that in this channel.
<Aeyrix> Too late.
<Aeyrix> My entire office is now around my screen.
<Aeyrix> Send help.
<Ox0dea> "Now hear, you blissful powers underground! Answer the call, send help. Bless the children. Give them triumph now."
braidn has quit [Ping timeout: 246 seconds]
<Rinzlit> lol i did that once...
<Rinzlit> on like my first week working with some people I spelled the company name wrong
<Rinzlit> and it pulled up that site xD
<Rinzlit> my boss saw
<Ox0dea> Which site?
<Rinzlit> lol the worst one xD
icosa1 has joined #ruby
<Ox0dea> Yeah, but there are so many.
<Rinzlit> his comment was I use the same site
<Rinzlit> Then said redtube was better
<Aeyrix> Honesty is the best policy.
<Rinzlit> then there were debates in the office for the next week
<Rinzlit> on what site people prefer...
jack_rabbit has quit [Ping timeout: 244 seconds]
<Aeyrix> > Not paying for premium
<bnagy> enough
safeforge has joined #ruby
<Radar> ^
<Ox0dea> v
<Rinzlit> lol i love where i work xD
<Rinzlit> even if they barely pay me lol
astrobun_ has joined #ruby
ScriptGeek has quit [Quit: Leaving.]
user1138 has quit [Ping timeout: 255 seconds]
riotjones has joined #ruby
<Ox0dea> Aeyrix: exploit.cat is kill. :(
<Aeyrix> Ox0dea: I took it down temporarily so I could get internet installed.
joshbamboo1 has quit [Read error: Connection reset by peer]
arooni-mobile has quit [Ping timeout: 244 seconds]
joshbamboo1 has joined #ruby
RegulationD has joined #ruby
oo_ has quit [Remote host closed the connection]
g3funk has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 240 seconds]
emilkarl has joined #ruby
<havenwood> Francis "Chunky" Bacon thus spake "Reading maketh a full [Rubyist]; conference a ready [Rubyist]; and writing an exact [Rubyist]."
RegulationD has quit [Ping timeout: 250 seconds]
usershell has joined #ruby
<Ox0dea> All hail.
<Ox0dea> Is it known whether _why ever visited #ruby-lang?
roolo has joined #ruby
acke has joined #ruby
dhjondoh1 has joined #ruby
<Aeyrix> Probably yes.
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
dhjondoh has quit [Ping timeout: 272 seconds]
sharpmachine has joined #ruby
hahuang65 has joined #ruby
sinkensabe has joined #ruby
riotjones has joined #ruby
symm- has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
workmad3 has joined #ruby
eGGsha has joined #ruby
sharpmachine has quit [Ping timeout: 252 seconds]
safeforge has quit [Remote host closed the connection]
msnyon has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
blaines has joined #ruby
serivich has joined #ruby
htmldrum has joined #ruby
schaerli has joined #ruby
yuji_shimoda_ has joined #ruby
oo_ has joined #ruby
yuji_shimoda_ has quit [Client Quit]
tagrudev has quit [Read error: Connection reset by peer]
tagrudev has joined #ruby
scripore has quit [Ping timeout: 246 seconds]
<Ox0dea> Erikusha, Kurisuto, Oparu, Mira.
<havenwood> Ox0dea: ooh, elixir is a hard one
<Ox0dea> Paisan, Hasuko, Rua, Shishapuro.
blaines has quit [Client Quit]
arup_r has joined #ruby
<Ox0dea> -ro
<Ox0dea> havenwood: Can "Erikusha" be improved upon?
t_ has quit [Read error: Connection reset by peer]
<Ox0dea> Waitosupeshi.
<Ox0dea> s/hi/u/
t_ has joined #ruby
aceRacer has joined #ruby
<aceRacer> hi
<Ox0dea> Hello.
mistermocha has joined #ruby
<havenwood> Ox0dea: irikutsuru
<Ox0dea> aceRacer: No, that's just inheritance.
<Ox0dea> havenwood: su > tsu there, surely.
<aceRacer> so class V1_1 inherits and then overrides the other classes ?
<Ox0dea> aceRacer: Aye, that does look pretty wonky.
<Ox0dea> It's to facilitate backward compatibility.
<aceRacer> yeah..
<Ox0dea> "Override" isn't quite the word for it.
<aceRacer> what is it called then?
CaryInVictoria has quit [Remote host closed the connection]
<havenwood> Ox0dea: tsuru sounds closer to me than suru, dunno
<aceRacer> backward compatibility :P
<Ox0dea> aceRacer: Are these classes being reopened here, or is this all there is to them?
mistermocha has quit [Ping timeout: 250 seconds]
<havenwood> イリクサー
<dubkoidragon> hey guys
<havenwood> dubkoidragon: hi
<dubkoidragon> anyone here that's ever worked with shoes??
<shevy> Ox0dea I don't know if he was on #ruby-lang but he used to be on #shoes. I remember because I talked to him back then
<dubkoidragon> whoa
<dubkoidragon> there a shoes chan
<dubkoidragon> lol
<dubkoidragon> thats a good coincidence
<havenwood> dubkoidragon: Shoes 4 \o/
<shevy> the original one... not that java-shoes :D
<Ox0dea> havenwood: The E in English's "elixir" is pronounced as a short I, but Japanese's i is pronounced like a long English E.
<havenwood> dubkoidragon: JRuby 9k released today. :)
stonith has quit [Remote host closed the connection]
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
<dubkoidragon> whats that
<dubkoidragon> haven:
<dubkoidragon> I've heard of JRuby but not sure what it is
<dubkoidragon> kk ill check that out
lessless has quit [Ping timeout: 260 seconds]
<havenwood> dubkoidragon: https://github.com/shoes/shoes4#readme
<Ox0dea> JRuby != J + Ruby.
<Ox0dea> But such a language would doubtless be rather interesting.
<havenwood> dubkoidragon: It's a top-notch implementation of the latest Ruby on the JVM.
stonith has joined #ruby
<dubkoidragon> oh cool,
<aceRacer> Ox0dea .. um, I wanted to monkey patch .. like in ruby they do, mention the class define a new method..
<dubkoidragon> so why is that better than ruby then
<dubkoidragon> i'm new here :/
<Ox0dea> aceRacer: That's just open classes, not necessarily monkey-patching.
<aceRacer> I never thought this way it would actually work.. looks like anything works ..
<aceRacer> ok
<Ox0dea> aceRacer: V1 and V1_1 are essentially just being used as namespaces, so they probably ought to be modules.
<Ox0dea> Unless they've got other definitions elsewhere and are indeed used as classes in some places.
<aceRacer> ok.. i see
<flughafen> oi oi oi!
<flughafen> sevenseacat: top of the morning to ya
lkba has quit [Remote host closed the connection]
<dubkoidragon> brb
<Radar> Ox0dea: Do you have one of your very strange gists somewhere? I want to scare someone
<Aeyrix> flughafen: on holiday, probably won't respond
<havenwood> dubkoidragon: It's usually the fastest implementation, has no GVL, and has access to the ecosystem.
<flughafen> shevy: plane took off this morning
<Ox0dea> Radar: The ones baweaver went about Muggling?
<Radar> Ox0dea: yes
<dubkoidragon> havenwood: k ill brb we'll talk mor
<baweaver> ?
<havenwood> muggling, hehe
<havenwood> nice
<Ox0dea> havenwood: I do the magic, baweaver undoes it in spectacularly impressive fashion.
<Ox0dea> Radar: Aeyrix's link to baweaver's Gists should do. :)
* Radar scares
<Ox0dea> Yay!
<Aeyrix> [ spookiness intensifies ]
<Ox0dea> Which're you gonna use?
* Ox0dea is fighting the urge to do another.
j4cknewt has quit [Remote host closed the connection]
<Ox0dea> Oh, wait!
Mendenhall has joined #ruby
<Ox0dea> I has one.
* baweaver ducks
* Radar puts up riot shield
<Ox0dea> I have to craft the upload to eval.in because it uses CRLF. :/
Kalov has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
kraljev11 has joined #ruby
<Ox0dea> It reads the maze dimensions from stdin. ^_^
stonith has quit [Remote host closed the connection]
<baweaver> ......
stonith has joined #ruby
stonith has quit [Changing host]
stonith has joined #ruby
<Radar> EPIC
jenrzzz has joined #ruby
hahuang65 has joined #ruby
* baweaver is debating using the vacation excuse
duderonomy has joined #ruby
<Ox0dea> Aeyrix: See above about CRLF. :/
<shevy> flughafen lol you are lying!
<Aeyrix> Ox0dea: Could you not make it take
kies^ has quit [Ping timeout: 240 seconds]
<Aeyrix> xxyy
<Aeyrix> ?
<flughafen> shevy: go and see
ScriptGeek has joined #ruby
<Ox0dea> Aeyrix: I despise arbitrary limits.
<Aeyrix> You have one anyway.
<Ox0dea> Do I?
mary5030 has joined #ruby
<Aeyrix> Yeah, I can't put any value in because it fuckin breaks.
<Ox0dea> So run the damned thing locally, where sane line endings ought to be in effect.
<Aeyrix> no u
<Ox0dea> baweaver: It's hardly as complex as I might've made it.
<Ox0dea> The PRNG is shit, and I also backed out of using Aldous-Broder as the carving algorithm. :/
<Ox0dea> It's a plain-ol' linear congruential generator, but the coefficients are too small for good randomness.
krz has joined #ruby
hololeap has quit [Ping timeout: 240 seconds]
AnoHito_ has quit [Quit: Leaving]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allomov has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
AnoHito has joined #ruby
kraljev11 has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
christiandsg has quit [Remote host closed the connection]
<baweaver> oi
<baweaver> cheater
<baweaver> I spy a 1
<Ox0dea> Really?
safeforge has joined #ruby
thinkswan has joined #ruby
davedev24 has quit [Remote host closed the connection]
<baweaver> 423rd character
<Ox0dea> Dammit.
<Ox0dea> It can be replaced with an underscore.
<Ox0dea> I hate that I missed that.
<baweaver> hehehe
solars has joined #ruby
<baweaver> well I need to get sleep but I have a good portion of it decomposed.
ohaibbq has quit [Quit: Leaving...]
<Ox0dea> Sweet dreams. :P
<baweaver> 'night
Violentr has joined #ruby
xkickflip has joined #ruby
<Ox0dea> Radar: To what end do you wish to frighten some poor soul away from ever learning Ruby?
<Ox0dea> Aeyrix: I enjoy the HN threads on Fortune.
oo__ has joined #ruby
schaerli has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
yfeldblum has joined #ruby
baweaver has quit [Remote host closed the connection]
j4cknewt has joined #ruby
irk has quit [Quit: Lost terminal]
CaryInVictoria has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<Radar> Ox0dea: People were discussing over in Slack about the nasty things you could do with Ruby.
jenrzzz has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
stonith has quit [Remote host closed the connection]
stonith has joined #ruby
stonith has quit [Changing host]
stonith has joined #ruby
<dubkoidragon> so from what I understand jruby requires one to know how to code in java
<Ox0dea> dubkoidragon: Incorrect.
<Ox0dea> "It's just Ruby."
<Ox0dea> Radar: Excellent. :)
<dubkoidragon> oh I see
<dubkoidragon> maybe I should get better at ruby though before I learn different versions fo it
Sirupsen has joined #ruby
<havenwood> The dev insists this is an email validation regexp but I keep getting some maze...
<Ox0dea> havenwood: Por que no los dos?
<Ox0dea> I've still got a non-alphanumeric quine to write.
<havenwood> \o/
stan has joined #ruby
<Ox0dea> I wonder if I could make it polyglottal with Perl.
CaryInVictoria has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
tjbiddle has joined #ruby
Juanchito has joined #ruby
<Radar> Ox0dea: People were discussing over in Slack about the nasty things you could do with Ruby.
<Radar> Whoops
<Radar> Sorry!
cornerma1 has joined #ruby
djbkd has joined #ruby
GeissT has quit [Quit: Bye!]
roolo has quit [Remote host closed the connection]
<Ox0dea> Radar: Did mine win?
thinkswan has quit [Quit: ...]
Synthead has quit [Ping timeout: 244 seconds]
<Radar> Ox0dea: I think everyone's either gone home or they're too horrified to speak abot it
<Aeyrix> Slackers.
<Aeyrix> :^)
stonith has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
sharpmachine has joined #ruby
cornerman has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kalov has quit []
jenrzzz has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
sharpmachine has quit [Ping timeout: 244 seconds]
blaines has joined #ruby
ERIK__ has quit [Read error: Connection reset by peer]
TomyWork has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
CaryInVictoria has joined #ruby
t_ has quit [Ping timeout: 265 seconds]
eminencehc has joined #ruby
Synthead has joined #ruby
allomov has quit [Remote host closed the connection]
soc42 has joined #ruby
msgodf has joined #ruby
workmad3 has joined #ruby
slowlag has joined #ruby
slowlag has quit [Remote host closed the connection]
Violentr has quit [Ping timeout: 252 seconds]
slowlag has joined #ruby
eminencehc has quit [Ping timeout: 240 seconds]
slowlag has quit [Remote host closed the connection]
keen__________29 has joined #ruby
towski_ has quit [Remote host closed the connection]
towski_ has joined #ruby
slowlag has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
slowlag has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 246 seconds]
keen__________28 has quit [Ping timeout: 264 seconds]
yardenbar has joined #ruby
Muhannad has quit [Ping timeout: 244 seconds]
anisha has joined #ruby
Macaveli has joined #ruby
mike___1234 has quit [Quit: Leaving]
agent_white has joined #ruby
htmldrum has quit [Remote host closed the connection]
mike___1234 has joined #ruby
htmldrum has joined #ruby
slowlag has joined #ruby
adaedra has quit [Ping timeout: 246 seconds]
irk has joined #ruby
i8igmac has quit [Ping timeout: 260 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slowlag has quit [Remote host closed the connection]
irk_ has joined #ruby
towski_ has quit [Ping timeout: 265 seconds]
irk has quit [Client Quit]
psy_ has quit [Ping timeout: 240 seconds]
apfeluser has joined #ruby
andikr has joined #ruby
adaedra has joined #ruby
CaryInVictoria has quit [Ping timeout: 240 seconds]
slowlag has joined #ruby
slowlag has quit [Remote host closed the connection]
ndrei has joined #ruby
schaerli has joined #ruby
eGGsha has joined #ruby
slowlag has joined #ruby
slowlag has quit [Remote host closed the connection]
tno has quit [Remote host closed the connection]
_ht has joined #ruby
livathinos has joined #ruby
elia has joined #ruby
apfeluser has quit [Ping timeout: 256 seconds]
t_ has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
j4cknewt has quit [Remote host closed the connection]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
tno has joined #ruby
TheHodge has joined #ruby
jbw__ has joined #ruby
Igorshp has joined #ruby
oo__ has quit [Remote host closed the connection]
jbw_ has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
jud has joined #ruby
quimrstorres has joined #ruby
hololeap has joined #ruby
quimrstorres has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
Iskarlar has joined #ruby
Igorshp has quit [Ping timeout: 240 seconds]
hololeap|2 has joined #ruby
Iskarlar has quit [Max SendQ exceeded]
Erika-Mustermann has quit [Ping timeout: 240 seconds]
aspiers has quit [Ping timeout: 240 seconds]
apfeluser has joined #ruby
apfeluser has quit [Client Quit]
nym has quit [Ping timeout: 240 seconds]
Hounddog has joined #ruby
thiagovsk has quit [Ping timeout: 240 seconds]
hashrocket has quit [Ping timeout: 240 seconds]
white_bear has joined #ruby
Erika-Mustermann has joined #ruby
mikecmpbll has joined #ruby
thiagovsk has joined #ruby
nym has joined #ruby
hololeap has quit [Ping timeout: 244 seconds]
hashrocket has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hounddog has quit [Ping timeout: 240 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Hounddog has joined #ruby
jenrzzz has joined #ruby
htmldrum has quit [Ping timeout: 264 seconds]
eGGsha has joined #ruby
ruurd has joined #ruby
dmolina has joined #ruby
blackmes1 has joined #ruby
dmolina has quit [Client Quit]
rdark has joined #ruby
benlovell has joined #ruby
htmldrum has joined #ruby
tomphp has joined #ruby
Synthead has quit [Ping timeout: 244 seconds]
Iskarlar has joined #ruby
msgodf has quit [Ping timeout: 240 seconds]
aspiers has joined #ruby
Feyn has quit [Ping timeout: 255 seconds]
Iskarlar has quit [Ping timeout: 255 seconds]
axl_ has joined #ruby
rdark has quit [Quit: leaving]
joonty has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
monod has joined #ruby
sharpmachine has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
franckverrot has joined #ruby
fella6s has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
dopieee has joined #ruby
tomphp_ has joined #ruby
sandelius has joined #ruby
sharpmachine has quit [Ping timeout: 260 seconds]
xkickflip_ has joined #ruby
<yorickpeterse> morning
arup_r has quit []
monod has quit [Quit: Sto andando via]
stoked has joined #ruby
Synthead has joined #ruby
tomphp has quit [Ping timeout: 255 seconds]
Musashi007 has joined #ruby
pontiki_ has joined #ruby
arup_r has joined #ruby
Violentr has joined #ruby
pipecloud has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
G_ has joined #ruby
pipework has quit [Ping timeout: 240 seconds]
alem0lars has quit [Ping timeout: 240 seconds]
white_bear has quit [Ping timeout: 240 seconds]
Olipro has quit [Ping timeout: 240 seconds]
silverdust has quit [Ping timeout: 240 seconds]
QualityAddict has quit [Ping timeout: 240 seconds]
fella5s has quit [Ping timeout: 240 seconds]
icosa1 has quit [Ping timeout: 240 seconds]
duncannz has quit [Ping timeout: 240 seconds]
pontiki has quit [Ping timeout: 240 seconds]
silverdust has joined #ruby
krz has quit [Ping timeout: 240 seconds]
dopie has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 240 seconds]
G has quit [Ping timeout: 240 seconds]
pipecloud is now known as pipework
alem0lars has joined #ruby
icosa1 has joined #ruby
silverdust is now known as Guest64571
michael_mbp has quit [Excess Flood]
xkickflip has quit [Ping timeout: 240 seconds]
xkickflip_ is now known as xkickflip
duncannz has joined #ruby
QualityAddict has joined #ruby
rdark has joined #ruby
nveselinov has joined #ruby
QualityAddict is now known as Guest97703
fumihiro has joined #ruby
Feyn has joined #ruby
htmldrum has joined #ruby
schaerli has quit [Remote host closed the connection]
Olipro has joined #ruby
j4cknewt has joined #ruby
michael_mbp has joined #ruby
Violentr has quit [Ping timeout: 240 seconds]
tomphp_ has quit [Ping timeout: 265 seconds]
<ljarvis> moin
Cust0sLim3n has quit [Ping timeout: 240 seconds]
dtcristo has joined #ruby
waka has quit [Read error: Connection reset by peer]
keen__________29 has quit [Read error: Connection reset by peer]
<lxsameer> guys how can to convert "0010" to 0b0010?
schaerli has joined #ruby
keen__________29 has joined #ruby
oo_ has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
<yorickpeterse> lxsameer: what have you tried?
<lxsameer> yorickpeterse: to_i(2) unpack ...
einarj has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
CaryInVictoria has joined #ruby
quimrstorres has joined #ruby
<adaedra> >> "0010".to_i(2)
<ruboto> adaedra # => 2 (https://eval.in/403835)
<adaedra> looks like it's working
quimrstorres has quit [Remote host closed the connection]
Mendenhall has quit [Ping timeout: 264 seconds]
<lxsameer> adaedra: not
<lxsameer> adaedra: i need the same sequence
<lxsameer> '0010' => 0b0010
<adaedra> >> "0010".to_i(2) == 0b0010
<ruboto> adaedra # => true (https://eval.in/403836)
yardenbar has quit [Ping timeout: 244 seconds]
<adaedra> or maybe it's not a number you want as output
<lxsameer> ow
<lxsameer> sorry
<ljarvis> >> 0b0010 == 2 # :)
<ruboto> ljarvis # => true (https://eval.in/403837)
<adaedra> 0b10 is just another way of saying 2 or 0x2
jenrzzz has quit [Ping timeout: 272 seconds]
thiagovsk has quit [Quit: Connection closed for inactivity]
Cust0sLim3n has joined #ruby
<TheBrayn> there are 10 kind of people in the world, those who understand binary and those who don't
mistermocha has joined #ruby
<dubkoidragon> haha nic one
<TheBrayn> and those who didn't know that this is a base-3 joke
CaryInVictoria has quit [Ping timeout: 240 seconds]
<adaedra> ?badumtss
<ruboto> I don't know anything about badumtss
<adaedra> ^ we need something here.
arturmartins has joined #ruby
<dubkoidragon> hey so I am playing with rails and I basically need to refresh my html by testing it. doed anyone know the easiest way i can turn my html code in my code editor to being viewed on my webbrowser
<adaedra> you just open the page on your webbrowser and hit F5/Cmd-R after changes
<adaedra> (With a running server, ofc)
<adaedra> also
<adaedra> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<dubkoidragon> oki will do
CloCkWeRX has joined #ruby
bradleyprice has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 264 seconds]
CloCkWeRX has quit [Client Quit]
omninonsense is now known as [spoiler]
nym has quit [Quit: Connection closed for inactivity]
tjbiddle has joined #ruby
dopieee has quit [Quit: This computer has gone to sleep]
oo__ has joined #ruby
msgodf has joined #ruby
quimrstorres has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
wildroman2 has joined #ruby
yardenbar has joined #ruby
oo_ has quit [Ping timeout: 246 seconds]
shredding has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
yardenbar has quit [Read error: Connection reset by peer]
white_bear has joined #ruby
dangerousdave has joined #ruby
xcesariox has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
dangerousdave has quit [Client Quit]
ruby922 has joined #ruby
bodgix has joined #ruby
arup_r has joined #ruby
schaerli has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
dmolina has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
MyMind has joined #ruby
allomov has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat1 has quit [Remote host closed the connection]
Sembei has quit [Ping timeout: 244 seconds]
krz has joined #ruby
leat1 has joined #ruby
Averna1 has joined #ruby
djbkd has joined #ruby
krz has quit [Read error: Connection reset by peer]
soc42 has quit [Remote host closed the connection]
G_ is now known as G
Averna1 has left #ruby [#ruby]
user1138 has joined #ruby
krz has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
senayar has quit [Remote host closed the connection]
schaerli has joined #ruby
j4cknewt has quit [Remote host closed the connection]
senayar has joined #ruby
dfockler has joined #ruby
hololeap|2 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Averna has joined #ruby
ruurd has joined #ruby
Sirupsen has joined #ruby
benlovell has quit [Ping timeout: 256 seconds]
DoubleMalt has joined #ruby
dfockler has quit [Ping timeout: 244 seconds]
yardenbar has joined #ruby
schaerli has quit [Remote host closed the connection]
msgodf has quit [Ping timeout: 246 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
aceRacer has quit [Ping timeout: 240 seconds]
sharpmachine has joined #ruby
mandarinkin has joined #ruby
eGGsha has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
aceRacer has joined #ruby
sharpmachine has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby
Mendenhall has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
dumdedum has joined #ruby
ducklobster has quit [Ping timeout: 246 seconds]
Averna has quit [Quit: Ex-Chat]
railsraider has joined #ruby
stamina has joined #ruby
sn0wb1rd has joined #ruby
Averna has joined #ruby
rikkipitt has joined #ruby
icosa1 has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
msgodf has joined #ruby
ruby922 has quit [Ping timeout: 246 seconds]
<Rinzlit> OMFG
<Rinzlit> OMFG
<Rinzlit> OMGGADKS:AFASKdf; asf asl;fmk sal;dfm kl;wjkl;fwafl;kdfawk
<Rinzlit> I went to go play league of legends come back try one last time
<Rinzlit> Magically works
<Rinzlit> Did the same thing I did the last 4 times
i8igmac has joined #ruby
<Rinzlit> omg...
CaryInVictoria has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
devbug has quit [Ping timeout: 252 seconds]
usershell has quit [Remote host closed the connection]
railsraider_ has joined #ruby
CaryInVictoria has quit [Ping timeout: 256 seconds]
<adaedra> calm down
<yorickpeterse> For a moment I thought that was spam
anisha has quit [Ping timeout: 256 seconds]
railsraider has quit [Ping timeout: 264 seconds]
railsraider_ is now known as railsraider
<ljarvis> it was
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DEA7TH_ has joined #ruby
<Rinzlit> adaedra any idea what that means .-.
<Rinzlit> I can only really follow guides and they said thats how you updated admin thingy
Averna has quit [Quit: Ex-Chat]
mistermocha has joined #ruby
railsForDaiz has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
<Rinzlit> Eh, I think I can work on it without that
troulouliou_div2 has joined #ruby
marienz has quit [Quit: upgrades]
shock_one has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troulouliou_div2 has quit [Remote host closed the connection]
<shock_one> Hi. Do you know any gem which would give me all possible names of a country? Like for "US" it would be ["The United States of America", "The United States", "USA", "US"...]
mistermocha has quit [Ping timeout: 265 seconds]
marienz has joined #ruby
<shock_one> Or, if it's easier, having a string like "Rua do Padre Luis Cabral,1015, 4150-464 Porto, Portugal", I'd like to know if it's located in PT. I do know that I'm looking for PT, not any other country.
htmldrum has joined #ruby
Pisuke has joined #ruby
schaerli has joined #ruby
camilasan has quit [Remote host closed the connection]
MyMind has quit [Ping timeout: 240 seconds]
stamina has quit [Quit: WeeChat 1.2]
startupality has quit [Quit: startupality]
startupality has joined #ruby
oo__ has quit [Remote host closed the connection]
anisha has joined #ruby
camilasan has joined #ruby
<yorickpeterse> shock_one: Not all possible ones, because that list could be infinite
<yorickpeterse> https://github.com/hexorx/countries but this has a decent chunk of data about every country
sdothum has joined #ruby
<yorickpeterse> e.g. we have a system (released literally only a few days ago) that currently maps 4313 different ways of writing countries/cities to the countries they belong to
<yorickpeterse> So US, USA, United States, America, etc all mapped to the US
startupality has quit [Client Quit]
<shock_one> yorickpeterse: is it open source?
<ljarvis> open to the entire office
<yorickpeterse> No
sevenseacat has quit [Quit: Me dun like you no more.]
astrobunny has joined #ruby
<shock_one> yorickpeterse: can I ask where did you get the data from?
<yorickpeterse> It's also not bulletproof, but for our dataset it matches 95% of our data
<ljarvis> :/
<yorickpeterse> shock_one: lots of different sources
astrobun_ has quit [Ping timeout: 240 seconds]
<yorickpeterse> it's a mixture of the united nations country list, a mixture of well known different spellings, a huge pile of location names that we already stored in raw form, etc
<yorickpeterse> e.g. the list also includes the top 20 cities for every country
<yorickpeterse> because we have a lot of data where it's just the city name
bruno- has joined #ruby
<shock_one> Thank you, yorickpeterse. Can you point me to at least one source of such data?
schaerli has quit [Remote host closed the connection]
<yorickpeterse> Depending on how you match things you might not need all alternative names
bruno- has quit [Ping timeout: 246 seconds]
<shock_one> Awesome, thank you again.
dubkoidragon has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
fella6s is now known as fella5s
s00pcan has quit [Ping timeout: 256 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
jolg42 has joined #ruby
serivichi has joined #ruby
last_staff has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
jolg42 has quit [Client Quit]
ArchRogem has joined #ruby
s00pcan has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
eGGsha has joined #ruby
blackmes1 has joined #ruby
Musashi007 has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
sandelius has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
s00pcan has quit [Ping timeout: 246 seconds]
sharpmachine has joined #ruby
s00pcan has joined #ruby
<Rinzlit> - t('.banner_words').each do |index, word|
<Rinzlit> Anyone know what I can replace so ruby can read it .-.
<yorickpeterse> It's not Ruby
<yorickpeterse> it's HAML
Mendenhall has quit [Ping timeout: 255 seconds]
<adaedra> Rinzlit: maybe you should learn some Ruby to begin with
<Rinzlit> adaedra whats HAML?
<Rinzlit> O_o
<Rinzlit> I'm sorry yorickpeterse
<adaedra> Hey Rinzlit, you know sysadmin best friend?
<adaedra> It works for developpers, too
<Rinzlit> Agent ranksack is more useful
<Rinzlit> But googles pretty good too
<Rinzlit> But I prefer duckduckgo tbh
sharpmachine has quit [Ping timeout: 240 seconds]
<adaedra> You should hang out with it more
railsForDaiz has quit [Ping timeout: 244 seconds]
AlexRussia has quit [Quit: WeeChat 1.3-dev]
serivichi has quit [Ping timeout: 244 seconds]
nofxx has quit [Ping timeout: 250 seconds]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joonty has quit [Quit: joonty]
Musashi007 has quit [Quit: Musashi007]
blackmesa has joined #ruby
aceRacer has quit [Remote host closed the connection]
shredding has quit [Ping timeout: 260 seconds]
CaryInVictoria has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
usershell has joined #ruby
CaryInVictoria has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
CloCkWeRX has joined #ruby
iinzg has joined #ruby
iinzg has quit [Read error: Connection reset by peer]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
anisha has joined #ruby
mistermocha has joined #ruby
konsolebox has quit [Quit: Leaving]
<agent_white> Ranksack? I haven't heard from him in ages.
nveselinov has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
CaryInVictoria has joined #ruby
oo_ has joined #ruby
Sembei has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
Pisuke has quit [Ping timeout: 244 seconds]
schaerli has joined #ruby
auzty has quit [Quit: Leaving]
bubbys has quit [Ping timeout: 250 seconds]
CaryInVictoria has quit [Ping timeout: 272 seconds]
mathie_ has quit [Quit: Quitting...]
mathie has joined #ruby
postmodern has quit [Quit: Leaving]
railsraider has quit [Quit: railsraider]
codecop has joined #ruby
bubbys has joined #ruby
prestorium has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
<Rinzlit> I must be honest this ubuntu server
<Rinzlit> Its an impressive troll
DoubleMalt has quit [Remote host closed the connection]
<ddv> Rinzlit: ?
<Rinzlit> I spent hours trying to get ruby gems working last night
<Rinzlit> About 9~
<Rinzlit> I gave up and went to play videogames ran 1 command to try again
<Rinzlit> It suddenly works
<ddv> Rinzlit: lol I can do it in 5 minutes
<ddv> pebcak
<Rinzlit> Try to repeat the process and it is broken again
<Rinzlit> Well, idk. all I do know is this server is more bipolar then my ex gf
<awk> erm, ruby noob... Dir.entries("*full*") what is the correct way to list the enteries for anything that contains full in it ?
[k- has joined #ruby
<ddv> Rinzlit: investigate
blackmesa has quit [Ping timeout: 255 seconds]
<Rinzlit> ddv: I'd love to but I don't know anything about Ruby, all I do know is a command worked after playing league of legends for 2 hours
<Rinzlit> That didn't work when I tried getting it to work for 6 hours
krz has quit [Read error: Connection reset by peer]
<[k-> >> %w!Rinzlit shevy Ox0dea!!
<ruboto> [k- # => /tmp/execpad-b44f9ecda85f/source-b44f9ecda85f:2: syntax error, unexpected '!', expecting keyword_end ...check link for more (https://eval.in/403955)
<adaedra> Based on your messages, League of Legens is the solution.
<[k-> guess that didn't work
<adaedra> Legends
<Rinzlit> Hey [k-
<jhass> awk: replace .entries with .glob
<ddv> Rinzlit: I would play some more LoL if I was you.
<adaedra> bim
nveselinov has joined #ruby
<Rinzlit> ddv: Maybe, but I don't want it to break
<[k-> oh, I needed to escape the !
<awk> jhass: glob doesn't return anything.
<ddv> [k-: why are you spamming the channel
anisha has quit [Quit: Leaving]
<awk> never mind...
<awk> I'm being an idiot
<apeiros> does the following pattern have a name? you have a parent class which takes a parameter (that parameter controls a couple of things - e.g. which server to contact, in what directory to store files). you have a subclasses for each allowed value of that parameter, which hard code that param.
<shevy> yay! \o/
phutchins has joined #ruby
<[k-> why are you so strict?
anisha has joined #ruby
<[k-> you are like jhass 4.0
bruno- has joined #ruby
<[k-> jhass: you have been outdone
Soda has joined #ruby
<jhass> [k-: you're proving his point...
<[k-> apeiros, seems like command sort of thing
serivichi has joined #ruby
krz has joined #ruby
<[k-> I'm pretty sure he is biased against me
<apeiros> [k-: yeah, in all instances the classes are workflow handling classes
<ddv> call it the apeiros design pattern
yfeldblum has quit [Ping timeout: 244 seconds]
peter_paule has joined #ruby
shoutsid has joined #ruby
Tritone has quit [Ping timeout: 246 seconds]
<agent_white> So what's the term for what apeiros wants? -- I'm just curious to know for if I have the same question in the future.
<[k-> link related
Tritone has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
<workmad3> apeiros: seems to be the reverse of https://sourcemaking.com/refactoring/replace-subclass-with-fields
codecop has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 244 seconds]
leat1 has quit [Remote host closed the connection]
<workmad3> which is also, oddly, one of the few refactorings that doesn't seem to have a standard reversal with it
presto has joined #ruby
tkuchiki has quit [Remote host closed the connection]
leat1 has joined #ruby
<[k-> look at my link >.>
sharpmachine has joined #ruby
prestorium has quit [Ping timeout: 260 seconds]
<agent_white> [k-: "
<agent_white> " you don't really need a design pattern, you just implement what you want to do"
<agent_white> So I'm assuming there's no specific pattern?
<[k-> no, there's a link to the book
presto is now known as prestorium
<agent_white> I saw that. But he didn't say "this pattern is called xyz, for more see ___".
<agent_white> Just... what I said above.
shoutsid has quit []
<[k-> I did say link related
<[k-> but the book!
<agent_white> Hahah. My expectations were too high. :(
<workmad3> [k-: that's about the factory method pattern though, which is a name for the pattern used to create the subclasses, not a name for the pattern of setting up subclasses like that
khando has joined #ruby
lala has quit [Quit: Connection closed for inactivity]
schaerli has quit [Remote host closed the connection]
<[k-> you could extend the factory method pattern
<workmad3> [k-: that's not how patterns work
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
sharpmachine has quit [Ping timeout: 244 seconds]
<[k-> how do they work then
doertedev has joined #ruby
<workmad3> [k-: patterns are names given to fairly common ways of solving specific problems... you don't 'extend a pattern' by making it mean something else or something new
Axy has joined #ruby
<workmad3> [k-: because then it no longer means the same thing, so it's no longer the same pattern
last_staff has quit [Quit: last_staff]
tomaz_b has joined #ruby
Mia has quit [Ping timeout: 246 seconds]
codenihal has joined #ruby
<workmad3> (I also love it when people say "Just implement what you want and don't use a pattern" as though these were two different things... the entire point of a pattern is to implement what you want, it's just that a common way of doing it has been given a name... if your code follows the common way of doing it, you've just followed the pattern, even if you don't know the name... But I know that what the author re
<workmad3> ally meant was "Don't use a library that provides some generic implementation code of e.g. Factory, just write the code for a Factory yourself)
allcentury has joined #ruby
<adaedra> just don't write code yourself, and no more problems.
<[k-> the world will work once again
<workmad3> adaedra: code that isn't written contains no bugs :)
<adaedra> exactly
<adaedra> 0 LOC * any % of bugged code is still 0 LOC
<[k-> I do not write buggy code!
<adaedra> wonder of english: on the above sentence, you can remove "buggy" without changing meaning.
peter_paule has quit [Ping timeout: 244 seconds]
mweshi has joined #ruby
<[k-> (in the current context)
stoffus has joined #ruby
scripore has joined #ruby
mweshi has quit [Max SendQ exceeded]
c355E3B has joined #ruby
towski_ has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mweshi has joined #ruby
<shevy> le baguette of le code
<adaedra> wow, that's so funny /s
tjbiddle has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
tjbiddle_ has joined #ruby
tjbiddle_ has quit [Client Quit]
<yorickpeterse> oui
ldnunes has joined #ruby
xaxisx has joined #ruby
serivichi has quit [Ping timeout: 265 seconds]
towski_ has quit [Ping timeout: 240 seconds]
Igorshp has quit [Remote host closed the connection]
MisterRusty has quit [Ping timeout: 272 seconds]
MisterRusty has joined #ruby
a346 has joined #ruby
safeforge has quit [Remote host closed the connection]
lkba has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
eGGsha has joined #ruby
hahuang61 has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]
mesamoo has quit [Ping timeout: 272 seconds]
<Darkwater> what would be the most ruby way to compress foo[:bar] == 5 or foo[:baz] == 5 or foo[:ban] == 5?
knrz has joined #ruby
<adaedra> foo.slice(:bar, :baz, :ban).include? 5 # but that requires a library to provide Hash#slice
codenihal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Darkwater> hm, that's a shame
<Darkwater> anything else?
<Darkwater> actually I guess a function like that would be the only option
<adaedra> not .include?, .value?, tho
<adaedra> Hash#slice is not difficult to reproduce, though.
<Darkwater> hm, I guess I could use #value? in this case
<Darkwater> thanks
<adaedra> if :bar, :baz and :ban are the only keys in the hash, sure, #value?
<Darkwater> well there are a couple of other keys as well, but it doesn't matter if they match
iceyec has joined #ruby
[k-_ has joined #ruby
<Darkwater> it would actually excend the functionality because I'm using this in a find block
<Darkwater> so I'm basically looking for an item with an id OR name specified by the user
<adaedra> I smell xy
<Darkwater> hm?
<adaedra> ?xy
<ruboto> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<Darkwater> oh
allcentury has quit [Ping timeout: 255 seconds]
<Darkwater> nah
ndrei has joined #ruby
CaryInVictoria has joined #ruby
<Darkwater> I'm happy with the solution I have now
dgutierrez1287 has joined #ruby
<[k-_> what's the point of an id if you are finding by name
Ropeney has joined #ruby
<Darkwater> the id is still used elsewhere
mistermocha has joined #ruby
krz has quit [Ping timeout: 264 seconds]
Igorshp has joined #ruby
CaryInVictoria has quit [Ping timeout: 240 seconds]
juanpaucar has joined #ruby
Averna has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
krz has joined #ruby
<workmad3> Darkwater: .values_at(:bar, :baz, :ban).include?(5)
benlovell has joined #ruby
<Darkwater> oh, cool
<Darkwater> thanks
<workmad3> adaedra: Hash#values_at is in core ruby ;)
kidoz has joined #ruby
gnzh has joined #ruby
<[k-_> bar, baz, ban :o
mistermocha has quit [Ping timeout: 240 seconds]
<gnzh> hello everyone, could sombody explain to me how to pass char* buffer in ruby ffi to c function? I get segfault :( not sure why. same stuff implemented in c just works.
davedev24 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> workmad3: ooooh
<adaedra> &ri Hash#values_at
<adaedra> OOOOOOH
eGGsha has joined #ruby
senayar has quit [Remote host closed the connection]
eGGsha is now known as eGGshke
senayar has joined #ruby
<workmad3> adaedra: I think it's a bit different from Hash#slice (which, iirc, returns a new Hash with those k-v pairs), but still useful
senayar has quit [Changing host]
senayar has joined #ruby
<adaedra> Ah, it just returns the values
<adaedra> logical
Spami has joined #ruby
DEA7TH_ has quit [Quit: DEA7TH_]
<workmad3> adaedra: yeah... and in the order of keys given (repititions allowed)
railsForDaiz has joined #ruby
<adaedra> still good to know
<adaedra> even if having a core Hash#slice would be good.
krz has quit [Ping timeout: 256 seconds]
bungoman has joined #ruby
oo_ has quit [Remote host closed the connection]
<[k-_> >> ->_,__{_[__]}({:a=>?b,:c=>?d,:d=>?e},[:a,:c])
<ruboto> [k-_ # => /tmp/execpad-dc65c3ab88e2/source-dc65c3ab88e2:2: syntax error, unexpected '(', expecting keyword_end ...check link for more (https://eval.in/403978)
blackmesa has joined #ruby
<workmad3> adaedra: makes your own Hash#slice even easier to implement though :) `class Hash; def slice(keys); keys.zip(values_at(keys)).to_h; end; end`
<adaedra> right
Zai00 has joined #ruby
<[k-_> >> (->_,__{_[__]})({:a=>?b,:c=>?d,:d=>?e},[:a,:c])
<ruboto> [k-_ # => /tmp/execpad-148135b700bb/source-148135b700bb:2: syntax error, unexpected '(', expecting keyword_end ...check link for more (https://eval.in/403979)
<[k-_> wat
<workmad3> >> ->(_,__{_[__]})({:a=>?b,:c=>?d,:d=>?e},[:a,:c])
<adaedra> ?experiments
<ruboto> I don't know anything about experiments
<ruboto> workmad3 # => /tmp/execpad-966e662514fe/source-966e662514fe:2: syntax error, unexpected '{', expecting ')' ...check link for more (https://eval.in/403980)
<adaedra> grmbl
eGGshke is now known as eGGsha
<awk> Guys, 1 little question https://gist.github.com/anonymous/411ad99261f1a28337ff .... that returns 5 (which is correct) however if I change xtrabackup_logfile to xtrabackup_logfile1234 and I puts validate without the count it returns only the other 4, if I use validate.count it still returns 5 .. i'm trying to give myself the count of what actually outputs
bruno- has quit [Ping timeout: 256 seconds]
sarkyniin has joined #ruby
<[k-_> experiment**
tsujp has joined #ruby
<workmad3> [k-_: ->(_,__){_[__]}.({:a=>?b,:c=>?d,:d=>?e},[:a,:c]) <-- there you go (not really sure what you're trying though)
davedev24 has quit [Ping timeout: 255 seconds]
MatrixBridge has quit [Read error: Connection reset by peer]
<[k-_> ah, the dot
freerobby has joined #ruby
<[k-_> this should work too: ->(_,__){_[__]}[{:a=>?b,:c=>?d,:d=>?e},[:a,:c]]
MatrixBridge has joined #ruby
krz has joined #ruby
<workmad3> [k-_: yeah, or .call({...}, [:a, :c])
<[k-_> (->_,__{__.map{|__|_[__]}})[{:a=>?b,:c=>?d,:d=>?e},[:a,:c]]
<[k-_> => ["b", "d"]
AugustoCesar has joined #ruby
dorei has joined #ruby
serivichi has joined #ruby
bungoman_ has joined #ruby
krz has quit [Client Quit]
tsujp has quit [Client Quit]
CloCkWeRX has left #ruby [#ruby]
schaerli has joined #ruby
davedev24 has joined #ruby
bungoman has quit [Ping timeout: 256 seconds]
ZeeNoodleyGamer has joined #ruby
bungoman_ has quit [Remote host closed the connection]
AugustoCesar has left #ruby [#ruby]
<oz> that's quite unreadable
tjbiddle has joined #ruby
<adaedra> that's the goal
<adaedra> [k-_ only writes code to be unreadable
htmldrum has quit [Ping timeout: 244 seconds]
<[k-_> i've made a name for myself this few days
hfp has quit [Ping timeout: 256 seconds]
<adaedra> kind of like a C++ developer
DEA7TH_ has joined #ruby
saintcajetan has quit []
iamninja has joined #ruby
hfp_work has quit [Ping timeout: 244 seconds]
Papierkorb has joined #ruby
saintcajetan has joined #ruby
Cust0sLim3n has quit [Ping timeout: 246 seconds]
sankaber has joined #ruby
pepperbreath has joined #ruby
atomical has joined #ruby
gnzh has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Ping timeout: 264 seconds]
sharpmachine has joined #ruby
Cust0sLim3n has joined #ruby
acovrig has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doertedev has quit [Quit: Lost terminal]
tjbiddle has joined #ruby
sharpmachine has quit [Ping timeout: 265 seconds]
hfp has joined #ruby
hfp_work has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
poguez_ has quit [Quit: Connection closed for inactivity]
allcentury has joined #ruby
<awk> Guys, 1 little question https://gist.github.com/anonymous/411ad99261f1a28337ff .... that returns 5 (which is correct) however if I change xtrabackup_logfile to xtrabackup_logfile1234 and I puts validate without the count it returns only the other 4, if I use validate.count it still returns 5 .. i'm trying to give myself the count of what actually outputs
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 240 seconds]
mhf has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
<apeiros> ?guys awk
<ruboto> awk, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
konsolebox has joined #ruby
usershell has quit [Ping timeout: 252 seconds]
<adaedra> guize
<awk> apeiros: well i'm from South Africa and thats how we refer to _everyone_
<[k-_> we already read your question
livathinos has quit [Ping timeout: 264 seconds]
<[k-_> it is best not to argue
Igorshp has quit [Remote host closed the connection]
railsForDaiz has quit [Max SendQ exceeded]
<knrz> @ruboto, guys is used to refer to a group of people irrespective of their gender https://en.wiktionary.org/wiki/guys#English
<[k-_> it is best not to argue.
<knrz> @k thanks for the heads up :)
<knrz> *@k-_
<[k-_> [k-_*
a346 has quit [Quit: a346]
Iskarlar has joined #ruby
but3k4 has joined #ruby
ruurd has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
Igorshp has joined #ruby
Siyfion has joined #ruby
vdamewood has quit [Quit: Life beckons.]
dling has quit []
mhf has joined #ruby
bhorn1|away has joined #ruby
bhorn1|away is now known as bhorn1
sshuff|gone has joined #ruby
thiagovsk has joined #ruby
khando has quit [Ping timeout: 252 seconds]
<apeiros> ?guys2 awk
<ruboto> awk, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
<apeiros> same @ knrz
Averna has quit [Quit: Ex-Chat]
<[k-_> apeiros: they stopped :(
DEA7TH_ has quit [Quit: DEA7TH_]
<apeiros> what do you mean, they stopped?
S_Walker has quit [Ping timeout: 244 seconds]
<knrz> @[k-_, @ruboto — thanks for letting me know/I'll keep that in mind from now on. sorry again; it's my first day on IRC
<apeiros> np
yoloats has joined #ruby
Cust0sLim3n has quit [Max SendQ exceeded]
syath has joined #ruby
htmldrum has joined #ruby
<awk> apeiros: apologies
prestorium has quit [Quit: Konversation terminated!]
prestorium has joined #ruby
<apeiros> awk: no need to apologize (at least not to me). just take note :)
<[k-_> we should only use guys2 in extreme situations
<apeiros> [k-_: I disagree.
<awk> sure
xaxisx has quit [Ping timeout: 244 seconds]
<apeiros> I use (and will continue to use) guys2 whenever somebody defends their use of guys, or wants to argue.
vimz has joined #ruby
<apeiros> it's just all too easy to say "no big deal" if you're not affected by it
blackmesa has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
fantazo has joined #ruby
<arup_r> Why my link is doing GET instead of PUT ? <%= link_to "Accept", {controller: "events", action: "accept", id: invite.id, method: :put} %>
<yorickpeterse> arup_r: because of method: :put
<yorickpeterse> oh wait
<yorickpeterse> heh
<yorickpeterse> the other way around
<arup_r> :p
<yorickpeterse> No idea in that case, might be worth asking in #rubyonrails
<DylanJ> arup_r: you're probably not including rails js
<DylanJ> and also
<DylanJ> method: :put goes outside the url param
tmtwd has joined #ruby
DEA7TH_ has joined #ruby
<DylanJ> since it's an attribute thats added to the element and then rails' js sees it and turns it into a put link
<arup_r> I tried outside ,, still doing GET
yeticry has joined #ruby
<DylanJ> show me what you have.
<arup_r> Don't get the "rails js" .. What you meant ?
<arup_r> ok sure
<DylanJ> i mean "jquery_ujs" in your application.js
<DylanJ> it's in there by default
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DylanJ> but if you dont include application.js on your page things like remote: true, or method: :put on links wont work.
<arup_r> Yes it is there
CaryInVictoria has joined #ruby
<DylanJ> okay then show me your link_to
chills42 has joined #ruby
ndrei has joined #ruby
<knrz> @[k-_ what's guys2?
<[k-_> ?justabot
<ruboto> I'm just a bot. You don't need to address me.
<acovrig> Is it possible to iterate over an array in irb without displaying it again at the end?
<knrz> huh.
<DylanJ> acovrig: i usally do whatever.things; 1
<apeiros> knrz: guys2 is a factoid in ruboto
<DylanJ> then it just prints 1 in my irb
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
PlasmaStar has quit [Ping timeout: 244 seconds]
PlasmaStar has joined #ruby
<acovrig> ["a","b","c"].each{|e| puts e} puts a, b, c on their own lines, then “=> ["a", "b", "c"]” at the end, can I have it not show that at the end?
<DylanJ> ["a","b","c"].each{|e| puts e}; 1
<knrz> @acovrig if you really want, ["a", "b", "c"].each { |e| puts e }; nil
<DylanJ> or that
chills42 has quit [Read error: Connection reset by peer]
<DylanJ> whatever the last statement is gets printed
CaryInVictoria has quit [Ping timeout: 246 seconds]
chills42 has joined #ruby
<DylanJ> arup_r: you're still putting method: :put in your url params.
<[k-_> the purpose of irb is to see the result, no?
<shevy> the purpose of irb is to write kickass code!
<arup_r> no changing one min
<acovrig> DylanJ, knrz: thanks, that works for the most part
<DylanJ> also what version of rails are you using arup_r? who the hell uses {controller: action:} for routes anymore?
<arup_r> Ohh! Sorry I didn't notice in which channel I am asking.. Sorry for thar
mistermocha has joined #ruby
vondruch has quit [Quit: Ex-Chat]
<acovrig> [k-_: yes, but I would like to see a element of a has without seeing the entire hash, because when it displays the hash at the end, it fills the screen and I have to scroll to see the original output
<arup_r> DylanJ: There is a reason.. which is my misunderdtanding.. I tought I need to send method: key with url_options: key... That's why I did it ..
<arup_r> Let me try ,... what you said
<acovrig> I’m looking to read the data in the hash, not just display it in a jumbled mess I have to read through
<DylanJ> link_to "my thing", {controller: 'a', action: 'b', id: 'c'}, method: :put
<arup_r> That ^^ worked
<arup_r> now checking with the path helper
Iskarlar has joined #ruby
bubbys has quit [Ping timeout: 265 seconds]
c0def00d has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arup_r> I tried with path helper with method: :put.. and that one didn't work as far as I remember.. Let me try again
knrz has quit [Quit: Textual IRC Client: www.textualapp.com]
Iskarlar_ has joined #ruby
centrx has joined #ruby
<c0def00d> hi ppl
<arup_r> all are working thanks DylanJ
hinbody has joined #ruby
<DylanJ> yeye. next time #rubyonrails
<c0def00d> Ruby beginner here: I’m working on a Rakefile where I’ve defined classes to abstract most of the work and I’d like to use the Rake DSL inside my class methods (desc, task and file). I’ve read on the Rake documentation that it should be possible using the Rake::DSL module, but can’t figure it out.
felixr has joined #ruby
<c0def00d> Can someone tell me how I would get it working?
<arup_r> DylanJ: sure.. I have not seen in which channel I am
rodfersou has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
<arup_r> It is good that I didn't ask in #css .. :p As I am now most of the times there only... made them annoyed on me hehehehe
bmurt has joined #ruby
serivichi has quit [Ping timeout: 265 seconds]
jpfuentes2 has joined #ruby
InternetFriend has joined #ruby
Cust0sLim3n has joined #ruby
Iskarlar has quit [Ping timeout: 265 seconds]
quimrstorres has quit [Remote host closed the connection]
Guest97703 has quit [Quit: Leaving]
bubbys has joined #ruby
ged has quit [Read error: Connection reset by peer]
eGGsha has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
ged has joined #ruby
f3ttX] has joined #ruby
rikkipitt has quit [Quit: Leaving...]
jerius has joined #ruby
lannonbr has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
<c0def00d> I tried using “include Rake::DSL” at several places, but it doesn’t seem to work
jerius has quit [Client Quit]
yoloats has quit [Remote host closed the connection]
nveselinov has quit [Quit: Connection closed for inactivity]
jerius has joined #ruby
khando has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
<DylanJ> c0def00d: my mind reading skills are pretty rusty. mind posting code?
<vimz> RSpec question https://gist.github.com/anonymous/45161665c88630a2a711 how do I store code in a variable using lets ?
rodfersou has quit [Quit: leaving]
khando has quit [Client Quit]
khando_ has joined #ruby
sp1rs has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
rodfersou has joined #ruby
<c0def00d> DylanJ: sure, let me write a simplified version of my problem :)
<DylanJ> vimz: is lets a thing? i've never seen "lets". "let" and "let!" though.. those are things.
bascht has quit [Ping timeout: 246 seconds]
aganov has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
fumihiro_ has joined #ruby
aganov has quit [Remote host closed the connection]
<c0def00d> Just try to “rake” the Rakefile to see the error
<c0def00d> NoMethodError: undefined method `task' for MyClass:Class
khando_ has quit [Client Quit]
khando has joined #ruby
<c0def00d> The documentation for the Rake::DSL module says:
<c0def00d> DSL is a module that provides #task, #desc, #namespace, etc. Use this when you'd like to use rake outside the top level scope.
blackmesa has quit [Ping timeout: 255 seconds]
fumihiro has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
allcentury has joined #ruby
serivich has joined #ruby
freeUmo has joined #ruby
khando has quit [Client Quit]
tvw has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<vimz> DylanJ sorry I meant let :P any ideas?
Siyfion has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodferso1 has joined #ruby
tomaz_b has quit [Ping timeout: 244 seconds]
Feyn has quit [Ping timeout: 265 seconds]
<DylanJ> c0def00d: you want to extend
<DylanJ> extend Rake::DSL or whatever it is
sharpmachine has joined #ruby
sevenseacat has joined #ruby
<c0def00d> Workks!
<vimz> RSpec folks: how do I store code in a variable using let ?
<c0def00d> Thanks, didn’t know about extend, I’ll have to read more baout it
<c0def00d> DylanJ: thanks! :)
<DylanJ> np
prestorium has quit [Ping timeout: 246 seconds]
<DylanJ> vimz: i have no idea what you're trying to tell us with your whack pseudo code.
rodfersou has quit [Ping timeout: 240 seconds]
<DylanJ> but let() goes outside of your it()/specify() blocks.
schaerli has joined #ruby
<vimz> I'll write it properly
tvw has quit []
sharpmachine has quit [Ping timeout: 240 seconds]
<DylanJ> vimz: i commented on your gist with an example
<[k-_> why doesnt this work: https://ideone.com/Ra0Bar
<sevenseacat> [k-_: is this a 'guess the error' game?
<sevenseacat> yep. not playing.
usershell has joined #ruby
<[k-_> The error is way below the bottom
<[k-_> at the bottom*
* sevenseacat adds that site to the blocklist
<shevy> this cat is wicked
<adaedra> [k-_: because it tries to do self.ok, and self is not A
dgutierrez1287 has quit [Remote host closed the connection]
failshell has joined #ruby
<adaedra> learn2scope
<apeiros> [k-_: "ok?" and "ok" are two different method names
riffraff has joined #ruby
mweshi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has joined #ruby
<apeiros> [k-_: and def self.ok? and def ok? define two different methods
<apeiros> [k-_: `module Foo; def self.ok?` --> Foo.ok?
tmtwd has quit [Ping timeout: 240 seconds]
<[k-_> ah, i missed that
<apeiros> [k-_: `module Foo; def ok?` --> can't be called without including it into a class, creating an instance of that class, and call it on that instance
<acovrig> I’m getting a confusing output from .sort: I get a-u just fine, but then it has h,m,m; why are those after u?
freeUmo has quit [Ping timeout: 256 seconds]
<[k-_> why would it call self.ok?
duggiefresh has joined #ruby
<adaedra> ah, it's ok?
jbw__ has quit [Ping timeout: 264 seconds]
<adaedra> ?code avdi
<ruboto> avdi, We can't help you without your code, please post it to https://gist.github.com
<adaedra> oops
<adaedra> ?code acovrig
<ruboto> acovrig, We can't help you without your code, please post it to https://gist.github.com
<adaedra> sorry, avdi
<dudedudeman> ha
mhib has joined #ruby
dhjondoh1 has quit [Remote host closed the connection]
eindoofus has joined #ruby
ducklobster has joined #ruby
veduardo_ has joined #ruby
tmtwd has joined #ruby
kobain has joined #ruby
ledestin has joined #ruby
prefixed has joined #ruby
<acovrig> adaedra: true, I figured it out though (and am saying dhu *sigh*): .each{|o| printf "%s %21s %s\n", o.id, o.title, o.uri}.sort; 1 would obviously not sort by title, since I’m printing the ID first…
quimrstorres has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
<adaedra> if you say so
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota_ has joined #ruby
<Yiota_> how do i fixi nvalid byte sequence in UTF-8 (ArgumentError) ?
<apeiros> acovrig: it's mostly not sort by it because .each does not return the block's values
<apeiros> >> [1,2,3].each { |x| 100 }
<ruboto> apeiros # => [1, 2, 3] (https://eval.in/404088)
<apeiros> additionally, printf returns nil, so the block's value would always be nil…
symm- has quit [Ping timeout: 246 seconds]
<adaedra> ?context Yiota_
<ruboto> Yiota_, Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
<acovrig> apeiros: true, I realized I could use .order().each… instead of trying to sort it after printing it.
veduardo_ has quit [Ping timeout: 244 seconds]
<Yiota_> there's a python script that's writing to CSV, there's the £ sign being written, whenever the ruby parser reads the £ sign it throws an invalid byte sequence error
<apeiros> acovrig: .order? you mean this stuff comes from a DB?
<acovrig> apeiros: yup
<apeiros> acovrig: um, yes, then *definitively* use .order.
jerius has quit [Quit: /part]
<acovrig> apeiros: I wasn’t thinking about it from a DB perspecrtive for some reason
dblessing has joined #ruby
<apeiros> Yiota_: so the CSV isn't utf-8, and you tell ruby to read it as utf-8.
<apeiros> (or it is simply broken utf-8…)
dling has joined #ruby
<vimz> Dylan J thanks for laying out the syntax, but how do I do that with code to be run, rather than just variables? Is this any clearer? https://gist.github.com/anonymous/45d73fc2e009e098e66d
jpfuentes2 has joined #ruby
<shevy> in a yaml file, if I have to store the number 80, should the content of the file be "80" or "80\n" or "---80\n"?
jerius has joined #ruby
schaerli has quit [Remote host closed the connection]
<shevy> I am so tempted to just leave it as 80
poguez_ has joined #ruby
<apeiros> shevy: the last one is incorrect
<shevy> I disliked it the most anyway!
<apeiros> "--- 80\n" (note the extra space) would work. also "---\n80\n"
<shevy> awww
<adaedra> you could ask ruby how it would do it
<DylanJ> apeiros: what does --- do in yaml?
<adaedra> >> require 'yaml'; 80.to_yaml
<ruboto> adaedra # => "--- 80\n...\n" (https://eval.in/404095)
<apeiros> DylanJ: document separator
<DylanJ> ah
<centrx> >> Ruby, how will you handle my yaml?
<ruboto> centrx # => /tmp/execpad-c1473525343d/source-c1473525343d:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/404096)
<apeiros> YAML.load_file e.g. only loads the first document in a file
<adaedra> bravo, centrx
fumihiro_ has quit [Quit: leaving]
bruno- has joined #ruby
<vimz> here is my question with syntax highlighting. dw, it's the last time I'm asking https://gist.github.com/anonymous/81a71fa7b80cec3cef33 How do I store ruby code using a let ?
troulouliou_div2 has joined #ruby
<apeiros> Yiota_: btw., https://gist.github.com/apeiros/39acc5b486f932403638 - feedback welcome.
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
malconis has joined #ruby
paulcsmith has joined #ruby
<i8igmac> im trying to clean up data before i insert into a database... what chars need removed?
<i8igmac> ' " ` |
tsunamie has joined #ruby
<i8igmac> only 4 chars?
<tsunamie> hi There
<adaedra> i8igmac: use prepared statements
<arup_r> i8igmac: didn't get yoy
<shevy> i8igmac umlauts!
<tsunamie> anyone know how I have a json template. I have an array within this json format. I want to take seperate json files and put them into the json template in a specific section. something like this http://stackoverflow.com/questions/13471066/is-there-an-easy-way-of-combining-two-json-files-or-splitting-one-json-in-ruby
arup_r has quit []
<adaedra> i8igmac: don't clean the characters yourself, let the database do it for you. This is not PHP4.
tkuchiki has joined #ruby
<i8igmac> im scraping data with ruby, then inserting into a DB
<adaedra> ok
nateberkopec has joined #ruby
<i8igmac> i believe only 4 chars above could cause problems when inserting a string to a DB
<i8igmac> mainly ` " '
CaryInVictoria has joined #ruby
<adaedra> if you use prepared statements, that will be taken care of automatically
<[k-_> where does this habit of `' come from
<i8igmac> data scraped from online source... tim's <=
denver has joined #ruby
<adaedra> what, [k-_
hsekami has joined #ruby
<[k-_> the habit of using ` to start a string
shakes has joined #ruby
senayar has quit [Remote host closed the connection]
<adaedra> who does that
christiandsg has joined #ruby
senayar has joined #ruby
zzak has quit []
zzak has joined #ruby
<[k-_> 21:54:40 i8igmac: mainly ` " '
joonty has joined #ruby
<hsekami> hello does anybody know any gems that could do Ruby background job/tasks in a given unix timestamp, it will execute at that particular time. otherwise it will run in background?
<i8igmac> no, the data scraped from a online source, "some string i need includes fancy chars"
<adaedra> i8igmac: what are you using to connect to the database
<adaedra> [k-_: `` in SQL is used for field names, not strings
<i8igmac> require 'mysql'
<adaedra> ok, mysql gem
<i8igmac> i guess there is a function that exist already
<i8igmac> mysql_sanitize()
<i8igmac> or something
CaryInVictoria has quit [Ping timeout: 250 seconds]
<adaedra> prepared statements
<i8igmac> i got it ,-)
JoshL has joined #ruby
livathinos has joined #ruby
<adaedra> apparently not
allcentury has quit [Ping timeout: 252 seconds]
<adaedra> grmbl, writing docs seems to be too much when you write mysql gem
sshuff|gone is now known as sshuff
A_ron has joined #ruby
<lannonbr> hsekami: is this what you want? https://github.com/javan/whenever
<i8igmac> its already prepared statement
ht has joined #ruby
tagrudev has quit [Remote host closed the connection]
<adaedra> ah
<i8igmac> you should use screws and nails when you build a house
ht is now known as Guest14145
_ht has quit [Ping timeout: 244 seconds]
<adaedra> wat
<hsekami> lannobr: i am looking at that now though, can i run just 1 off task? yet it will run in background if no tasks, and i can add jobs anytime without disrupting the app?
<i8igmac> you should tie your shoes before you run
<adaedra> wat
dede has joined #ruby
<i8igmac> lol
blueOxigen has joined #ruby
iamninja has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 244 seconds]
jonee has joined #ruby
mistermocha has joined #ruby
firevolt has quit []
firevolt has joined #ruby
iamninja has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
allcentury has joined #ruby
konsolebox has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
chills42 has quit [Remote host closed the connection]
<jonee> test
<Sp4rKy> Anyone using pathname.mountpoint? ? I have the same directory that seems to return true (which is correct) from irb and false from script
mistermocha has quit [Ping timeout: 250 seconds]
<adaedra> didn't work, jonee
cardoni has quit []
cardoni has joined #ruby
tkuchiki has quit [Remote host closed the connection]
krz has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> .....F
<[k-> only one more test to make it pass!
shakes has quit [Quit: Leaving]
A_ron has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has joined #ruby
werelivinginthef has joined #ruby
araujo has quit [Ping timeout: 246 seconds]
Guest24 has quit [Excess Flood]
lele has joined #ruby
Soda has quit [Remote host closed the connection]
schaerli has joined #ruby
christiandsg has quit [Remote host closed the connection]
nveselinov has joined #ruby
hsekami has quit []
bohallor has joined #ruby
<[k-> am I late to the party? JRuby 9000 released
christiandsg has joined #ruby
<adaedra> I heard that already
christiandsg has quit [Remote host closed the connection]
<havenwood> [k-_: yup!
allcentury has quit [Ping timeout: 260 seconds]
Tritone has quit []
RegulationD has joined #ruby
araujo has joined #ruby
galeido has joined #ruby
whiteline has quit [Quit: Leaving]
chrissonar has quit [Remote host closed the connection]
whiteline has joined #ruby
znz_jp has joined #ruby
freeUmo has joined #ruby
lampd1 has quit [Excess Flood]
allcentury has joined #ruby
schaerli has quit [Remote host closed the connection]
sharpmachine has joined #ruby
chills42 has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
sharpmachine has quit [Remote host closed the connection]
sharpmachine has joined #ruby
JoshL_ has joined #ruby
JoshL has quit [Ping timeout: 272 seconds]
sepp2k has quit [Quit: Leaving.]
bradleyprice has joined #ruby
code1o6 has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
deepu has joined #ruby
ERIK__ has joined #ruby
victortyau has joined #ruby
sarkyniin has quit [Ping timeout: 246 seconds]
dopie has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
atomical_ has joined #ruby
mary5030 has joined #ruby
Meeh has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 240 seconds]
Meeh has joined #ruby
lampd1 has joined #ruby
freeUmo has quit [Ping timeout: 246 seconds]
carlosoliveira has joined #ruby
Trynemjoel has joined #ruby
ndrei has joined #ruby
atomical has quit [Ping timeout: 255 seconds]
schaerli has joined #ruby
Sirupsen has joined #ruby
InternetFriend has joined #ruby
bigbadbear has joined #ruby
sarkyniin has joined #ruby
stoffus has quit [Ping timeout: 252 seconds]
Trynemjoel has quit [Ping timeout: 256 seconds]
agent_white has quit [Read error: Connection reset by peer]
bigbadbear has quit [Client Quit]
yb_drowe has joined #ruby
Trynemjoel has joined #ruby
christiandsg has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
charliesome has joined #ruby
lxsameer has quit [Quit: Leaving]
TinkerTyper has quit [Ping timeout: 264 seconds]
TinkerTyper has joined #ruby
stantonnet has quit [Ping timeout: 252 seconds]
freeUmo has joined #ruby
bigbadbear has joined #ruby
riotjones has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
stantonnet has joined #ruby
freerobby has joined #ruby
oddraisin has quit [Remote host closed the connection]
freerobby has quit [Client Quit]
troulouliou_div2 has quit [Quit: Leaving]
prestorium has joined #ruby
msgodf has quit [Remote host closed the connection]
konsolebox has joined #ruby
msgodf has joined #ruby
pontiki_ has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
pontiki has joined #ruby
Lord-Kamina has quit [Ping timeout: 264 seconds]
Siyfion has joined #ruby
danman has joined #ruby
fumihiro has joined #ruby
konsolebox has quit [Max SendQ exceeded]
prestorium has quit [Read error: Connection reset by peer]
prestorium has joined #ruby
konsolebox has joined #ruby
dmolina has quit [Quit: Leaving.]
decoponio has joined #ruby
<havenwood> [k-: It's not *over* 9000 yet though... *soon*
tkuchiki has quit [Remote host closed the connection]
chouhoulis has joined #ruby
schaerli has quit [Remote host closed the connection]
Seich has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gambl0re has joined #ruby
featheryahn_ has quit [Quit: Connection closed for inactivity]
Luun has joined #ruby
christiandsg has quit [Remote host closed the connection]
christiandsg has joined #ruby
umgrosscol has joined #ruby
Seich has joined #ruby
rippa has joined #ruby
christiandsg has quit [Remote host closed the connection]
grubernaut has quit []
grubernaut has joined #ruby
casadei_ has joined #ruby
<workmad3> havenwood: just need to wait for the first patch release, right?
<havenwood> workmad3: yup!
atomical has joined #ruby
Luun has quit [Client Quit]
paulcsmith has quit [Quit: Be back later ...]
<havenwood> workmad3: 9.0.0.1 should do the trick. :)
<havenwood> And every release thereafter.
<centrx> What happens if the first patch release turns out to the be less than 9000?
sharpmachine has quit [Remote host closed the connection]
<havenwood> Under 9000... same 'ole, same 'ole.
Luun has joined #ruby
tonini has quit []
Luun has left #ruby [#ruby]
paulcsmith has joined #ruby
tonini has joined #ruby
shlomo has joined #ruby
Luun has joined #ruby
Luun has left #ruby [#ruby]
Luun has joined #ruby
freeUmo has quit [Ping timeout: 244 seconds]
rideh has joined #ruby
allcentury has joined #ruby
<shlomo> Is there a built-in method for converting a String to an integer raising an error if the string does not consist solely of digits?
Kuntasser has joined #ruby
<adaedra> Integer()
<ljarvis> Integer()
<centrx> Potato()
yardenbar has quit [Quit: Leaving]
<havenwood> Integer allows non-digits though.
<adaedra> Po-tah-to, Po-tay-to
<havenwood> >> Integer(1.5)
<ruboto> havenwood # => 1 (https://eval.in/404172)
<havenwood> Ah, string.
<ljarvis> String to an Integer
<havenwood> nvm me, coffeetime!
<centrx> It's not his fault, it's the coffee!
<adaedra> >> Integer("potato")
<ruboto> adaedra # => invalid value for Integer(): "potato" (ArgumentError) ...check link for more (https://eval.in/404173)
prestorium has quit [Quit: Konversation terminated!]
<havenwood> Hem, I'd have expected potato to be 1.111, repeating of course.
gambl0re has quit [Read error: Connection reset by peer]
higuys has joined #ruby
prestorium has joined #ruby
<shlomo> It allows whitespace, but it's good for me. thanks
<havenwood> Let's see if coffee fixes this...
<Kuntasser> why would potato be 111 repeating?
* adaedra throws Kuntasser a potato
<shevy> do you expect a potato to count to higher than 1?
<Kuntasser> why do you expect a potato to count at all?
pdoherty has joined #ruby
<havenwood> Kuntasser: Probably a drunk potato.
araujo has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
Seich has quit [Ping timeout: 244 seconds]
<[k-_> >> Intege("LIFE")
<ruboto> [k-_ # => undefined method `Intege' for main:Object (NoMethodError) ...check link for more (https://eval.in/404187)
<[k-_> :(
<[k-_> i fail at typing
sinkensabe has quit [Remote host closed the connection]
Seich has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<ljarvis> at life
Encapsulation has joined #ruby
<[k-_> that's you
<[k-_> oooooo burn
ruby-lang081 has joined #ruby
<[k-_> rimshot.mp4
<ruby-lang081> hi
<adaedra> hi
livathinos has quit []
Trynemjoel has quit [Ping timeout: 240 seconds]
psy_ has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
Kuntasser has quit [Remote host closed the connection]
<ruby-lang081> First time on this channel and wondering if the right place for a complete newbie to RoR
Kully3xf has joined #ruby
<adaedra> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
snockerton has joined #ruby
acke has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
werelivinginthef has joined #ruby
<ruby-lang081> Let's leave Rails for now and just want to learn Ruby
<havenwood> ruby-lang081: Then here!
<centrx> Who would have thought that jewelry and railroads would come together in one framework?
sharpmachine has joined #ruby
tennis_ has joined #ruby
dwithers3 is now known as pl1ght
<havenwood> centrx: Episode 1 has some explaination.
JoshL_ is now known as JoshL
<ruby-lang081> To begin with the language, can people pls suggest three good resources for learning Ruby at beginner level
[H]unt3r has joined #ruby
<havenwood> ruby-lang081: Here are some links: http://ruby-community.com/pages/links
silkfox has joined #ruby
zuQe8 has joined #ruby
senayar has quit [Remote host closed the connection]
Seich has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
senayar has joined #ruby
<havenwood> centrx: Perhaps in Europe, where they have the speed trains.
<adaedra> wait, we have speed trains?
prestorium has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
<ljarvis> yes
<ljarvis> lots
<centrx> pssh speed trains for what? there's no where to go in Europe except Rome
senayar has joined #ruby
prestorium has joined #ruby
<ljarvis> :O
<kaspergrubbe> lol
<ljarvis> you heathen
Seich has joined #ruby
silkfox has quit [Client Quit]
silkfox has joined #ruby
omegamike has joined #ruby
<ruby-lang081> Did a ruby -v and have ruby 2.2.1p85 (2015-02-26 revision 49769) - is this the latest?
<adaedra> see topic
c0def00d has quit [Quit: c0def00d]
DroidBurgundy has joined #ruby
freeUmo has joined #ruby
CaryInVictoria has joined #ruby
Zai00 has joined #ruby
riotjones has joined #ruby
dfockler has joined #ruby
icebourg has joined #ruby
prestorium has quit [Ping timeout: 240 seconds]
danman has quit [Quit: danman]
<ruby-lang081> Appreciate the links guys - will definitely be returning back here again.
bigbadbear has quit [Quit: WeeChat 0.4.3]
ruby-lang081 has quit [Quit: Page closed]
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
rubie has quit [Remote host closed the connection]
freeUmo has quit [Ping timeout: 246 seconds]
krokuz has quit [Ping timeout: 260 seconds]
j4cknewt has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
aryaching has joined #ruby
stan has quit [Ping timeout: 246 seconds]
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
Trynemjoel has joined #ruby
rubie has joined #ruby
silkfox has quit [Quit: WeeChat 1.2]
eminencehc has joined #ruby
Igorshp has quit [Remote host closed the connection]
jbw has joined #ruby
Igorshp has joined #ruby
Igorshp has quit [Read error: No route to host]
ascarter has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
scripore has joined #ruby
Igorshp has joined #ruby
snockerton has quit [Quit: Leaving.]
Trynemjoel has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
dubkoidragon has joined #ruby
Trynemjoel has joined #ruby
rideh has quit [Quit: zap]
rcvalle has joined #ruby
snockerton has joined #ruby
bigbadbear has joined #ruby
anwers has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chills42 has quit [Remote host closed the connection]
ReK2GnULinuX has joined #ruby
ReK2GnULinuX has joined #ruby
bigbadbear has quit [Client Quit]
bigbadbear has joined #ruby
ReK2GnULinuX has quit [Client Quit]
Hounddog has quit [Read error: Connection reset by peer]
darkf has quit [Read error: Connection reset by peer]
anisha has quit [Quit: Leaving]
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
darkf has joined #ruby
esantiago has joined #ruby
connor_goodwolf has quit [Ping timeout: 264 seconds]
anwers is now known as NoShitSherlock
dgutierrez1287 has joined #ruby
rehat has joined #ruby
connor_goodwolf has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
ReK2 has quit [Ping timeout: 246 seconds]
rasalghul_ has joined #ruby
eGGsha has joined #ruby
arup_r has joined #ruby
stoked is now known as stonith
JoshL has quit [Read error: No route to host]
chouhoulis has quit [Remote host closed the connection]
JoshL has joined #ruby
Trynemjoel has joined #ruby
konsolebox has quit [Quit: Leaving]
eGGsha is now known as eGGshke
chouhoulis has joined #ruby
eGGshke has quit [Client Quit]
ada2358 is now known as adzuci
ruurd has joined #ruby
gorums has joined #ruby
freerobby has joined #ruby
eGGsha has joined #ruby
peter_paule has joined #ruby
dgutierrez1287 has quit [Ping timeout: 265 seconds]
hobodave has joined #ruby
acke has joined #ruby
alexclark has joined #ruby
hobodave has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
InternetFriend has joined #ruby
InternetFriend has quit [Client Quit]
blackmesa has joined #ruby
Ilyas has joined #ruby
eminencehc has quit [Remote host closed the connection]
mhib has quit [Ping timeout: 246 seconds]
peter_paule has quit [Ping timeout: 240 seconds]
safeforge has joined #ruby
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> he'll never be back :(
thiagovsk has quit []
white_bear has quit [Quit: leaving]
thiagovsk has joined #ruby
chrisseaton has quit []
chrisseaton has joined #ruby
towski_ has joined #ruby
jonee has quit [Ping timeout: 246 seconds]
Trynemjoel has quit [Ping timeout: 240 seconds]
InternetFriend has joined #ruby
ddarkpassenger has joined #ruby
juanpaucar has quit []
shlomo has quit [Quit: WeeChat 1.2]
pushpak has joined #ruby
MiracleBlue has quit []
tvw has quit []
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
MiracleBlue has joined #ruby
tvw has joined #ruby
Trynemjoel has joined #ruby
eGGsha is now known as eGGshke
<NoShitSherlock> what are some cool refactoring exercises in ruby?
<jhass> exercism.io and codewars have plenty (well, not refactoring but finding elegant solutions)
Cache_Money has joined #ruby
<esantiago> search for "Refactoring: Ruby Edition" book
<NoShitSherlock> i'd like to learn refactoring
InternetFriend has quit [Client Quit]
cstrahan has quit []
cstrahan has joined #ruby
pushpak has quit [Client Quit]
jbw_ has joined #ruby
davedev24 has quit [Remote host closed the connection]
<deepu> I asked this yesterday and read class:ERB but still no idea how to do this. Can someone please help? https://dpaste.de/MJji
mhib has joined #ruby
amclain has joined #ruby
alexclark has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jbw has quit [Ping timeout: 265 seconds]
<darix> deepu: do the loop in your template
Tamal has joined #ruby
symm- has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
<deepu> darix: can you please tell me how?
<deepu> I'm new to ERB
<shevy> ERB is just like regular ruby code
joonty has quit [Quit: joonty]
paulcsmith has joined #ruby
<darix> <% %>
<darix> also you want to use <%= %> for the parts you want to output
mistermocha has joined #ruby
ggolk has joined #ruby
CorySimmons has joined #ruby
skmp has quit []
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skmp has joined #ruby
Iskarlar_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Philipp__ has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
sarkyniin has quit [Ping timeout: 240 seconds]
ggolk has left #ruby [#ruby]
snockerton has quit [Quit: Leaving.]
<deepu> darix: I already have "<%= hostname %>"
benlieb has joined #ruby
senayar has quit []
Trynemjoel has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
djbender has quit []
djbender has joined #ruby
rfv has quit []
DEA7TH_ has quit [Quit: DEA7TH_]
andikr has quit [Remote host closed the connection]
rfv has joined #ruby
troulouliou_div2 has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
eGGshke is now known as eGGsha
jonee has joined #ruby
dubkoidragon has quit [Ping timeout: 265 seconds]
psy_ has quit [Read error: Connection reset by peer]
freeUmo has joined #ruby
msnyon has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
maletor has joined #ruby
maletor has quit [Client Quit]
davedev24 has joined #ruby
gizmore has joined #ruby
maletor has joined #ruby
pdoherty has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
NoShitSherlock has quit [Ping timeout: 246 seconds]
theery has joined #ruby
prefixed has quit [Changing host]
prefixed has joined #ruby
bricker has joined #ruby
DEA7TH_ has joined #ruby
felixr has quit [Ping timeout: 244 seconds]
shock_one has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
bcavileer has quit []
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bcavileer has joined #ruby
manveru has quit []
peter_paule has joined #ruby
manveru has joined #ruby
halfdan has quit []
ddarkpassenger has joined #ruby
halfdan has joined #ruby
charles81 has quit []
charles81 has joined #ruby
freeUmo has quit [Ping timeout: 244 seconds]
NeverDie has joined #ruby
sarkyniin has joined #ruby
freeUmo has joined #ruby
yqt has joined #ruby
eGGsha is now known as eGGshke
michaeldeol has joined #ruby
arup_r has joined #ruby
krokuz has joined #ruby
lolmaus has joined #ruby
rideh has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
eGGshke is now known as eGGsha
fantazo has quit [Quit: Verlassend]
scripore has quit [Quit: This computer has gone to sleep]
RobertBirnie has joined #ruby
spider-mario has joined #ruby
bradleyprice has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
scpike has quit [Quit: leaving]
ndrei has quit [Ping timeout: 240 seconds]
msgodf has quit [Ping timeout: 244 seconds]
eGGsha is now known as eGGshke
snockerton has joined #ruby
casadei_ has quit [Remote host closed the connection]
deimos has quit []
deimos has joined #ruby
kachi8_ has joined #ruby
pengin has joined #ruby
bryancp has quit []
shock_one has joined #ruby
bryancp has joined #ruby
jbw__ has joined #ruby
einarj has quit [Remote host closed the connection]
<vimz> is it possible to delete from an array using map? e.g. [:a,:b].map{ |v| v.reject! if v == :a } #=> [:b] | or is the ONLY real way to do it by having the entire array and calling a method just as reject or delete on the WHOLE array, e.g. [:a,:b].delete...
jbw_ has quit [Ping timeout: 240 seconds]
bohallor has quit [Ping timeout: 244 seconds]
eGGshke is now known as eGGsha
sdrew has joined #ruby
eminencehc has joined #ruby
Philipp__ has quit [Read error: Connection reset by peer]
<adaedra> what are you trying to do? remove elements depending on a block?
<adaedra> It's Array#reject iirc
JoshL has quit []
mary5030_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
<jhass> or Array#select if you'd have to negate
DEA7TH_ has quit [Quit: DEA7TH_]
chouhoul_ has joined #ruby
mikecmpbll has quit [Ping timeout: 246 seconds]
casadei_ has joined #ruby
msnyon has quit [Ping timeout: 244 seconds]
mary5030 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
<vimz> adaedra yes, remove elements depending on the block and the in-block value of v. just wondering if it can be done inside an existing loop or if I have to use a different loop on the whole array such as #reject or #delete
<jhass> vimz: maybe show your real code
schaerli has joined #ruby
<havenwood> vimz: There's no #map_reduce, if that's what you're asking.
spider-mario has joined #ruby
ndrei has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
<ElSif> but there is .map.inject
werelivinginthef has quit [Remote host closed the connection]
<ElSif> andi think #reduce is thing too?
freeUmo has quit [Ping timeout: 255 seconds]
<havenwood> ElSif: There's a #map and #reduce, sure.
<ElSif> yep :D
<jhass> reduce and inject are the same thing
<ElSif> makes sense
scripore has joined #ruby
<ElSif> though i usually end up using #each_with_object
<havenwood> vimz: No #filter_map either.
serivich has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
maZtah has quit []
hfp has quit [Ping timeout: 252 seconds]
<havenwood> I guess in Ruby it'd be #select_map or #find_all_map, which have been proposed but held up on naming disagreements.
alexclark has joined #ruby
djbkd has joined #ruby
maZtah has joined #ruby
connor_goodwolf has quit [Read error: Connection reset by peer]
nitenq has joined #ruby
<havenwood> I'd not be at all surprised if Ruby 3.0 got a #select_map, whatever the name for it. Though maybe not.
chills42 has joined #ruby
hfp_work has quit [Ping timeout: 264 seconds]
nveselinov has quit []
nveselinov has joined #ruby
polpak has joined #ruby
<vimz> jhass: wondering if delete_if could be created in this way?
<jhass> vimz: seriously, show your real code
connor_goodwolf has joined #ruby
<adaedra> delete_if? you mean reject!?
<vimz> jhass: that's it?
<vimz> jhass: it's irb :L
<jhass> ?
Sirupsen has joined #ruby
<jhass> so you don't have a real usecase, just fooling around?
msnyon has joined #ruby
<vimz> jhass yep
failshell has quit [Remote host closed the connection]
bb010g has quit []
elia has quit [Quit: Computer has gone to sleep.]
sdwrage has joined #ruby
Trynemjoel has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 250 seconds]
<havenwood> vimz: So do you want to map and filter in a single iteration? Or something else?
bb010g has joined #ruby
<jhass> k, the common patterns are .select { ... }.map { ... }, .map { ... }.select { ... } and .map { ... if ... }.compact
<jhass> depending on the usecase
<jhass> and .reject { } if you'd !... in the select
blackmesa has joined #ruby
lele is now known as Guest24
schaerli has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
linuxboytoo has joined #ruby
<vimz> havenwood I'd like to see how that could be done, yes :)
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
jerius_ has joined #ruby
baweaver has quit [Remote host closed the connection]
felixr has joined #ruby
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
mweshi has joined #ruby
msnyon has quit [Ping timeout: 256 seconds]
tjohnson has joined #ruby
bricker has quit [Ping timeout: 265 seconds]
jerius has quit [Ping timeout: 246 seconds]
mweshi has quit [Max SendQ exceeded]
dudoom has joined #ruby
psy has joined #ruby
mweshi has joined #ruby
shadoi has joined #ruby
rideh has quit [Quit: peace]
skyjumper has left #ruby [#ruby]
crazydiamond has quit [Remote host closed the connection]
UniHiir has joined #ruby
relix has joined #ruby
Tamal has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
felixr has quit [Ping timeout: 272 seconds]
klaas has quit [Remote host closed the connection]
n1ftyn8_ has quit []
lannonbr has joined #ruby
Ilyas_ has joined #ruby
<UniHiir> hi
hololeap has joined #ruby
psy has quit [Disconnected by services]
n1ftyn8_ has joined #ruby
psy_ has joined #ruby
Ilyas has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
Lord-Kamina has joined #ruby
chipotle has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
allomov has joined #ruby
dudoom has quit [Quit: Konversation terminated!]
rideh has joined #ruby
hfp has joined #ruby
glenab has joined #ruby
hfp_work has joined #ruby
UniHiir has left #ruby [#ruby]
sanguisdex has quit [Remote host closed the connection]
pizzaops has quit []
ndrei has joined #ruby
pizzaops has joined #ruby
CorySimmons has quit [Quit: Bye!]
platosha has quit [Quit: This computer has gone to sleep]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
andikr has joined #ruby
blaines has joined #ruby
<havenwood> vimz: Here's a little example: https://gist.github.com/havenwood/24a6a9fa42980d9489f6
chipotle has joined #ruby
vickleton has joined #ruby
usershel_ has joined #ruby
sanguisdex has joined #ruby
<havenwood> vimz: Elixir, for example, has that: http://elixir-lang.org/docs/v1.0/elixir/Enum.html#filter_map/3
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
jobewan has joined #ruby
freerobby has quit [Quit: Leaving.]
darkf has quit [Quit: Leaving]
chipotle has quit [Ping timeout: 244 seconds]
usershell has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 260 seconds]
sharpmachine has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
blaines has quit [Ping timeout: 255 seconds]
wallerdev has quit [Client Quit]
blaines has joined #ruby
djbkd has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
schaerli has joined #ruby
benlovell has joined #ruby
Tamal has joined #ruby
adambeynon has quit []
adambeynon has joined #ruby
towski_ has quit [Remote host closed the connection]
usershell has joined #ruby
usershel_ has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
klaas has joined #ruby
Eiam_ has joined #ruby
imperator has joined #ruby
Kully3xf has quit [Ping timeout: 240 seconds]
platosha has joined #ruby
schaerli has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
dfockler has joined #ruby
failshell has joined #ruby
swgillespie has joined #ruby
bricker has joined #ruby
alexclark has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
benlovell has quit [Ping timeout: 240 seconds]
dblessing has quit [Ping timeout: 244 seconds]
mistermo_ has joined #ruby
dented42 has joined #ruby
christiandsg has joined #ruby
alxndr has quit []
hellschreiber has quit []
alxndr has joined #ruby
usershell has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
bodgix has quit [Quit: Leaving.]
usershell has joined #ruby
DEA7TH_ has joined #ruby
<shevy> havenwood still writing elixir code?
hellschreiber has joined #ruby
alexclark has joined #ruby
bricker has quit [Client Quit]
bjeanes has quit []
<deepu> I admit I'm so clueless.. Can someone please help me with this? https://dpaste.de/MJji#L
bjeanes has joined #ruby
yb_drowe has quit [Quit: Zzzzzzz....]
Jackneill has joined #ruby
<havenwood> shevy: yup, alchemy!
Igorshp has quit [Remote host closed the connection]
higuys has quit []
gambl0re has joined #ruby
alexclark has quit [Client Quit]
sharpmachine has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
mistermo_ has quit [Ping timeout: 272 seconds]
lkba_ has joined #ruby
<wmoxam> deepu: it would help if you posted what output you are getting
<deepu> wmoxam: I am not sure how to call the ERB inside my loop
<deepu> thats where I need help.. how to call it from my loop and pass hostname and IP address to the template
usershel_ has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
usershel_ has quit [Remote host closed the connection]
usershel_ has joined #ruby
howdoi_ has quit [Quit: Connection closed for inactivity]
usershell has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 246 seconds]
jeregrine has quit []
avdi has quit []
imperator has left #ruby ["Leaving"]
avdi has joined #ruby
jeregrine has joined #ruby
roolo has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
<deepu> wmoxam: ?
allomov has quit [Remote host closed the connection]
zz_Outlastsheep is now known as Outlastsheep
denver has quit [Remote host closed the connection]
<wmoxam> deepu: it's pretty easily actually
vcoinminer has quit []
sshuff is now known as sshuff|gone
Soda has joined #ruby
vcoinminer has joined #ruby
<deepu> wmoxam: Can you please show me how?
fumihiro has quit [Ping timeout: 240 seconds]
harleypig has quit []
harleypig has joined #ruby
InternetFriend has joined #ruby
<deepu> wmoxam: I have added this inside my loop renderer = ERB.new(resource_template)
d10n-work has joined #ruby
<wmoxam> deepu: something like this should work: https://gist.github.com/wmoxam/2f7690e40a58ad56e879
<Ox0dea> [k-: `foo' is a really stupid convention for using "smart quotes" in ASCII. It needs to die.
<wmoxam> deepu: ERB needs a binding so it knows where to find the template variabler refs
<deepu> wmoxam: thank you.. let me take a look at it
eggoez has quit [Ping timeout: 240 seconds]
fumihiro has joined #ruby
alexclark has joined #ruby
Tirzah has joined #ruby
pusewicz has quit []
pusewicz has joined #ruby
Igorshp has joined #ruby
eggoez has joined #ruby
bronson has joined #ruby
werelivinginthef has joined #ruby
slowlag has joined #ruby
slowlag has quit [Remote host closed the connection]
platzhirsch has joined #ruby
sinkensabe has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
mweshi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<platzhirsch> How can I detect if a UTF-8 string contains characters which use more than two bytes?
rasalghul_ has quit [Ping timeout: 260 seconds]
blandflakes has joined #ruby
chouhoulis has joined #ruby
failshell has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Me dun like you no more.]
djbkd has joined #ruby
arup_r has quit [Quit: Leaving]
yqt has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 246 seconds]
platzhirsch has left #ruby [#ruby]
sgambino has joined #ruby
jhack has joined #ruby
<Ox0dea> chars.map(&:bytes).any? { |b| b.size > 2 }, in case he comes back.
<havenwood> each_char.any? { |char| char.bytesize > 1 }
<deepu> wmoxam: Thank you that is exactly what I needed... One quick question.. How do I add a new line at the end after username="test"/>
mhib has quit [Quit: Leaving]
<havenwood> Ox0dea: bytes
micalexander has joined #ruby
bronson has joined #ruby
<Ox0dea> havenwood: Yes?
<havenwood> Ox0dea: I mean #bytes
<Ox0dea> Yours is still better on account of being able to terminate early.
<havenwood> Ox0dea: bytes.any?
<wmoxam> deepu: you could join with a newline character
<havenwood> Ox0dea: mm, yeah not converting to bytes
kaleido has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
<wmoxam> deepu: or add one into the row templat
<Ox0dea> Or don't worry about formatting your HTML?
Mon_Ouie has quit [Quit: WeeChat 1.2]
<micalexander> I am trying to find a good example on how to create and interface to my app using a DSL kinda like how guard has its "guard do" blocks. Any recommendations?
<deepu> wmoxam: ok
christiandsg has quit [Remote host closed the connection]
dented42 has joined #ruby
eGGsha is now known as eGGshke
<Ox0dea> micalexander: &block + instance_exec, in a nutshell.
sgambino has quit [Client Quit]
failshell has joined #ruby
peter_paule has quit [Ping timeout: 264 seconds]
dojobo1 has joined #ruby
mollymorphic has joined #ruby
<micalexander> Ox0dea: yep been reading up on that and messing around with it but can't seem to find a way to have the guard syntax with out wrapping it in another method or storing it in a variable
rubie has quit [Remote host closed the connection]
roolo_ has joined #ruby
eGGshke is now known as eGGsha
<micalexander> Ox0dea: I want to be able to have a use config and to be able to read that config while going through each of the do blocks with out having to store them into a variable or wrapping them in another method
<micalexander> Ox0dea: *user
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
theery has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
theery has joined #ruby
autrilla has joined #ruby
<Ox0dea> micalexander: You know `guard` is a method in `guard to`, right?
sinkensabe has quit [Remote host closed the connection]
<Ox0dea> *`guard do`, that is.
roolo has quit [Ping timeout: 256 seconds]
theery_ has joined #ruby
theery has quit [Read error: Connection reset by peer]
Tirzah has quit []
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
<micalexander> Ox0dea: that is what I was thinking, I guess I really want to know how does it go through the file and store all of its configurations. Is that part of the DSL?
rubie has joined #ruby
casadei_ has quit [Remote host closed the connection]
hobodave has quit [Quit: Computer has gone to sleep.]
DEA7TH_ has quit [Quit: DEA7TH_]
shock_one has quit [Remote host closed the connection]
dojobo1 is now known as dojobo
lannonbr has quit [Quit: WeeChat 1.2]
blackmesa has quit [Ping timeout: 252 seconds]
Kully3xf has joined #ruby
marr has quit [Ping timeout: 240 seconds]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
christiandsg has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
felltir has joined #ruby
sharpmachine has quit [Remote host closed the connection]
sharpmachine has joined #ruby
bricker has joined #ruby
arup_r has joined #ruby
SirFunk has quit [Ping timeout: 255 seconds]
<benlieb> what’s the best way to make string equality work in rspec: I’m getting a failure on equals, even though the values are the same: https://gist.github.com/pixelterra/754c96ce0329c9e1fbd0
<Ox0dea> micalexander: You might find my pseudo-assembly DSL (https://gist.github.com/0x0dea/45aae87c0180d36b6f0c) enlightening.
<micalexander> Ox0dea: ok let me check it out
symm- has quit [Ping timeout: 255 seconds]
g3funk has quit [Ping timeout: 256 seconds]
Spami has quit [Quit: Leaving]
pengin has quit [Remote host closed the connection]
bohallor has joined #ruby
Gnubie__ has quit [Quit: No Ping reply in 180 seconds.]
<Ox0dea> micalexander: Essentially, you must capture the DSL "calls", and if your language is sufficiently dynamic, capturing "commands" and their arguments via method_missing is probably one of the easier approaches to the thing.
<benlieb> oh looks like I need eq not equal
<Ox0dea> benlieb: Aye.
<benlieb> grrr
<Ox0dea> #equal? compares object identity.
<micalexander> Ox0dea: hmm ok, reading through your code...
AlphaAtom has joined #ruby
Gnubie_ has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
iateadonut has left #ruby [#ruby]
baweaver has joined #ruby
Igorshp has quit [Remote host closed the connection]
SirFunk has joined #ruby
g3funk has joined #ruby
pfish has joined #ruby
<pfish> Where is attr_reader defined?
InternetFriend has joined #ruby
senayar has joined #ruby
<Ox0dea> >> Object.method(:attr_reader) # pfish
<ruboto> Ox0dea # => #<Method: Class(Module)#attr_reader> (https://eval.in/404307)
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kachi8 has joined #ruby
<pfish> thanks
<Ox0dea> pfish: Still writing PPR as a C extension?
allomov has joined #ruby
<pfish> yeah
<pfish> its going
baweaver has quit [Ping timeout: 244 seconds]
<pfish> it almost works now
<pfish> :
<pfish> ):)
senayar_ has joined #ruby
yb_drowe has joined #ruby
kachi8_ has quit [Ping timeout: 240 seconds]
ne1l has left #ruby ["Leaving"]
senayar has quit [Ping timeout: 246 seconds]
dumdedum has quit [Quit: foo]
yardenbar has joined #ruby
Rickmast_ has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
sshuff|gone is now known as sshuff
Rickmasta has joined #ruby
nofxx has joined #ruby
shock_one has joined #ruby
alexclark has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kachi8_ has joined #ruby
mistym has joined #ruby
Ilyas_ has quit [Read error: Connection reset by peer]
devbug has joined #ruby
Ilyas_ has joined #ruby
h0pkins has joined #ruby
kachi8 has quit [Ping timeout: 246 seconds]
usershell has joined #ruby
<shevy> code code code
towski_ has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
h0pkins is now known as ne1l
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
shock_one has quit [Ping timeout: 264 seconds]
ne1l has left #ruby [#ruby]
usershel_ has quit [Ping timeout: 246 seconds]
jerius_ has quit [Quit: /quit]
benlieb has quit [Quit: benlieb]
werelivinginthef has quit [Remote host closed the connection]
Kully3xf has quit [Read error: Connection reset by peer]
fumihiro has quit [Quit: leaving]
<rehat> new to ruby, when I do a puts on a object from "each do .." I get a <Enumerator> instead of the actual object class type
felltir has quit [Remote host closed the connection]
<jhass> rehat: to get an objects class call .class on it
baweaver has joined #ruby
dblessing has joined #ruby
leat1 has quit [Ping timeout: 256 seconds]
fumihiro has joined #ruby
casadei_ has joined #ruby
<rehat> jhass: I am
Eiam_ has joined #ruby
<jhass> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
sgambino has joined #ruby
fumihiro has quit [Client Quit]
hobodave has joined #ruby
<shevy> >> class Foo; end; foo = Foo.new; puts foo.class
<ruboto> shevy # => Foo ...check link for more (https://eval.in/404316)
<jhass> puts installer.project.targets.each
fumihiro has joined #ruby
fantazo has joined #ruby
<jhass> there you print the return value of .each
mistermocha has joined #ruby
<Ox0dea> rehat: do/end binds less tightly than {}.
<jhass> and that, yeah
<rehat> ahh thanks
<jhass> that means the block is passed to puts, not each
<Ox0dea> ^
jackjackdripper has quit [Quit: Leaving.]
<Ox0dea> puts installer.project.targets.map(&:class)
jackjackdripper has joined #ruby
firoxer has joined #ruby
<Ox0dea> rehat: I suspect you want to do more than just print within the inner block there, in which case you should nix the first `puts`.
kannan4k has joined #ruby
<rehat> yeah I just did and it worked, thanks
Alayde has quit [Quit: WeeChat 1.1.1]
balazs has joined #ruby
jerius has joined #ruby
dudoom has joined #ruby
chills42 has quit [Remote host closed the connection]
pengin has joined #ruby
DEA7TH_ has joined #ruby
<kannan4k> guys, I come from Python background. Here is a class in Ruby (https://gist.github.com/kannan4k/4ccb4dd1a30496fd56b6). can you please help me what is 'field' in there? and why data types specified over there?
mistermocha has quit [Ping timeout: 265 seconds]
<jhass> kannan4k: field is a method most likely defined in TSheets::Model
nym has joined #ruby
Eiam_ has quit [Ping timeout: 272 seconds]
<kannan4k> I need to convert this ^ to a Python class, can anyone write me a simple one with the above class, prolly with only one field
<kannan4k> jhass: oh let me check
chills42 has joined #ruby
<jhass> nope, as said field is some method, we don't know what it does
<jhass> oh and
<jhass> ?guys
<ruboto> we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
Alayde has joined #ruby
<yorickpeterse> I self identify as an airplane
<rehat> lol
<pfish> insert attack helicopter copypasta
<jhass> yorickpeterse: that's beautiful. So flughafen and you... ?
<shevy> ... kissing
mistym has quit [Ping timeout: 244 seconds]
arturmartins has quit [Quit: Leaving...]
acovrig has quit [Quit: acovrig]
snophey has joined #ruby
<shevy> kannan4k that must be a method called field which accepts at least 3 arguments
<kannan4k> jhass: sorry for that, i thought its like 'folks'
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
<jhass> for some it is but point is that for some it isn't
<shevy> last argument seems to be a Hash
sargas has joined #ruby
<yorickpeterse> jhass: flughafen?
<yorickpeterse> oh haha
<yorickpeterse> I keep forgetting there's an actual person with that nick
<jhass> how dismissive. And that from an airplane
<kannan4k> shevy, yeah you are right "def self.field fname, type, options = {}"
Outlastsheep is now known as zz_Outlastsheep
jhack has quit [Ping timeout: 244 seconds]
snophey has quit [Client Quit]
<Ox0dea> kannan4k: That methods accepts two arguments and an optional third.
<kannan4k> is there any guide like -Ruby for Python developers :D
<Ox0dea> *method
<shevy> does python have class methods?
snophey1 has joined #ruby
<dfockler> yeah
bruno- has joined #ruby
Mekkis has quit [Quit: ZNC - http://znc.in]
<jhass> mmh, okay that's a bit sparse maybe
workmad3 has quit [Ping timeout: 246 seconds]
JoshL has joined #ruby
Igorshp has quit [Remote host closed the connection]
yfeldblum has joined #ruby
s2013 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
havenwood has joined #ruby
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 260 seconds]
roolo has joined #ruby
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
bakednotfried has quit [Read error: Connection reset by peer]
werelivinginthef has joined #ruby
yfeldblu_ has joined #ruby
mjuszczak has joined #ruby
safeforge has quit [Remote host closed the connection]
roolo_ has quit [Ping timeout: 244 seconds]
arooni-mobile has joined #ruby
codecop has joined #ruby
Yiota_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
yfeldblum has joined #ruby
lannonbr has joined #ruby
InternetFriend has joined #ruby
darithorn has quit [Quit: Leaving]
dgutierrez1287 has joined #ruby
Soda has quit [Remote host closed the connection]
leat1 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fumihiro has quit [Quit: leaving]
wildroman2 has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 240 seconds]
quimrstorres has quit [Remote host closed the connection]
glenab has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 246 seconds]
podman has joined #ruby
[H]unt3r_ has joined #ruby
[H]unt3r has quit [Ping timeout: 244 seconds]
yardenbar has joined #ruby
[H]unt3r_ has quit [Client Quit]
nveselinov has quit [Quit: Connection closed for inactivity]
peter_paule has joined #ruby
jhack has joined #ruby
ascarter has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
christiandsg has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
balazs has quit []
<shevy> he could switch to ruby too!
lkba has joined #ruby
thelastinuit has joined #ruby
mjuszczak has quit []
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirun has joined #ruby
DEA7TH_ has quit [Quit: DEA7TH_]
usershell has quit [Ping timeout: 240 seconds]
Papierkorb has joined #ruby
safeforge has joined #ruby
toretore has quit [Quit: Leaving]
lkba_ has quit [Ping timeout: 250 seconds]
Mendenhall has joined #ruby
benjwadams has joined #ruby
<benjwadams> How can i determine if a string is a valid float and if not return nil
<benjwadams> besides regex
mjuszczak has joined #ruby
<benjwadams> .to_f returns 0.0, which is no good
quimrstorres has joined #ruby
gguggi has joined #ruby
usershell has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<yxhuvud> benjwadams, Float()
<benjwadams> I guess I could do `Float(str) rescue nil`
tvw has quit [Read error: Connection reset by peer]
bubbys has quit [Ping timeout: 264 seconds]
Eiam_ has joined #ruby
<yorickpeterse> What's wrong with using a regex?
<benjwadams> meh
tomaz_b has joined #ruby
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
micalexander has quit [Remote host closed the connection]
<benjwadams> it's boilerplate
<bougyman> yorickpeterse: reminds me of "What's wrong with using threads?" I got asked the other day.
<bougyman> "You just introduced at least 5 bugs"
<bougyman> regex is not much diff.
<yorickpeterse> well either you abuse exceptions as flow control or you use a regex
phutchins has quit [Ping timeout: 246 seconds]
<Ox0dea> I think this is one of the few cases which justifies doing the former.
sandelius has joined #ruby
roolo_ has joined #ruby
<bougyman> regex for a float is at least targeted enough to be mostly safe.
<bougyman> it all depends on the use case.
jhack has quit [Remote host closed the connection]
<Ox0dea> But why not just use the interpreter's definition of a valid Float?
<bougyman> hrm.
<bougyman> I though BigDecimal had a method for this.
<bougyman> I can't find it, tho.
<bougyman> it also returns 0.0 for an invalid float.
arturmartins has joined #ruby
workmad3 has joined #ruby
roolo has quit [Ping timeout: 255 seconds]
alexclark has joined #ruby
pengin has joined #ruby
shock_one has joined #ruby
arturmartins has quit [Read error: Connection reset by peer]
arturmartins has joined #ruby
Blaguvest has joined #ruby
roolo has joined #ruby
mjuszczak has quit []
robbyoconnor has quit [Ping timeout: 244 seconds]
safeforge has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
kinduff has joined #ruby
hobodave has joined #ruby
troulouliou_dev has joined #ruby
roolo_ has quit [Ping timeout: 250 seconds]
DEA7TH_ has joined #ruby
sharpmachine has quit [Remote host closed the connection]
kachi8_ has quit [Ping timeout: 255 seconds]
polpak has quit [Quit: Lost terminal]
shock_one has quit [Ping timeout: 244 seconds]
DEA7TH_ has quit [Client Quit]
yb_drowe has left #ruby ["PEACE OUT DAWGZ"]
workmad3 has quit [Ping timeout: 255 seconds]
sharpmachine has joined #ruby
<Ox0dea> >> require 'bigdecimal'; BigDecimal('foo')
<ruboto> Ox0dea # => #<BigDecimal:409e6570,'0.0',9(9)> (https://eval.in/404343)
prestorium has joined #ruby
Agoldfish has joined #ruby
snophey1 has quit [Remote host closed the connection]
slackbotgz has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
failshell has quit [Remote host closed the connection]
roolo_ has joined #ruby
shock_one has joined #ruby
benlovell has joined #ruby
mistermocha has joined #ruby
blackmesa has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
roolo has quit [Ping timeout: 255 seconds]
jhack has joined #ruby
mjuszczak has joined #ruby
felltir has joined #ruby
felltir has quit [Client Quit]
rced has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
benlovell has quit [Ping timeout: 264 seconds]
ruby-lang643 has joined #ruby
kachi8_ has joined #ruby
<ruby-lang643> hello there world
<ruby-lang643> hello
nitenq has quit [Quit: nitenq]
dented42 has joined #ruby
<rced> hello
intuxicated has joined #ruby
serivich has joined #ruby
michaeldeol has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
<ruby-lang643> hello in here
peter_paule has quit [Ping timeout: 246 seconds]
<shevy> hello out there
ruby-lang643 has quit [Client Quit]
InternetFriend has joined #ruby
dudoom has quit [Quit: Konversation terminated!]
<dfockler> hello every where
dudoom has joined #ruby
quimrstorres has joined #ruby
chinmay_dd has quit [Ping timeout: 256 seconds]
eminencehc has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
casadei_ has quit [Remote host closed the connection]
allomov has joined #ruby
freerobby has joined #ruby
ahhMichael has joined #ruby
ahhMichael has quit [Client Quit]
ahhMichael has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
sharpmachine has quit [Remote host closed the connection]
freerobby has quit [Read error: Connection reset by peer]
shock_one has quit [Remote host closed the connection]
sharpmachine has joined #ruby
perrier has quit [Read error: Connection reset by peer]
sharpmachine has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
juanpablo_ has joined #ruby
baweaver has joined #ruby
Mendenhall has quit [Ping timeout: 250 seconds]
alexclark has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
InternetFriend has quit [Quit: Textual IRC Client: www.textualapp.com]
alexclark has joined #ruby
edwardly has quit [Ping timeout: 244 seconds]
dseitz has joined #ruby
Guest64571 is now known as bl4ckdu5t
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
bl4ckdu5t is now known as silverdust
freerobby has quit [Read error: Connection reset by peer]
k3asd` has joined #ruby
cornerma1 has joined #ruby
Mekkis has joined #ruby
freerobby has joined #ruby
baweaver has quit [Ping timeout: 244 seconds]
christiandsg has joined #ruby
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
arturmartins has quit [Ping timeout: 240 seconds]
msnyon has joined #ruby
philn_ has joined #ruby
zuQe8 has quit [Ping timeout: 252 seconds]
rced has left #ruby [#ruby]
<bohallor> how does ruby (2.2) determine its loadpath? ($: variable)
jgpawletko has left #ruby [#ruby]
Mekkis has quit [Quit: ZNC - http://znc.in]
<Ox0dea> bohallor: Please clarify.
<Aria> There's an environment variable, plus some built in defaults.
<Aria> Plus command line arguments can alter it too
mistym has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<ElSif> http://phrogz.net/ProgrammingRuby/rubyworld.html <- more than that here but its all good info
<Ox0dea> Aria: Which environment variable is that?
quimrstorres has quit [Remote host closed the connection]
casadei_ has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
<bohallor> im changing the name of the ruby executable (to get a tweaked version of mri & normal ruby working on one machine) and this is messing up the load path (not being able to find the gem files)
serivich has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
<bohallor> also changing the ruby version name from ruby-> new name
<Aria> RUBYLIB
freerobby has quit [Read error: Connection reset by peer]
<Aria> Also RUBYOPT with -I flags in it
<Ox0dea> bohallor: You're building your modified MRI in its own directory, no?
peter_paule has joined #ruby
workmad3 has joined #ruby
jackjackdripper1 has joined #ruby
Alayde has joined #ruby
<bohallor> yes
apt-get_ has joined #ruby
freerobby has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<Ox0dea> Why not just tell chruby to look for Rubies in there?
<bohallor> own directory. local builds work fine with --disable gems
fantazo has joined #ruby
jackjackdripper has quit [Ping timeout: 244 seconds]
jackjackdripper1 has quit [Client Quit]
sarkyniin has quit [Ping timeout: 246 seconds]
Yiota has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
freerobby has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
arturmartins has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sargas has joined #ruby
kadoppe has quit [Ping timeout: 246 seconds]
<bohallor> didn't know chruby was a thing. ill look at just using that
freerobby has joined #ruby
<ElSif> there is also rvm >.>
<Ox0dea> ElSif: Please stop.
<ElSif> lol
<dfockler> chruby! chruby!
workmad3 has quit [Ping timeout: 255 seconds]
<ElSif> people really hate rvm these days huh?
<Ox0dea> It's shit.
<ElSif> ok
<ElSif> chruby is good i agree
riffraff has quit [Quit: This computer has gone to sleep]
freerobby has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
robbyoconnor has joined #ruby
swgillespie has quit [Client Quit]
<cout> ElSif: depends on whom you ask
<ElSif> im sure it does
senayar_ has quit [Remote host closed the connection]
freerobby has joined #ruby
robbyoconnor has quit [Client Quit]
havenwood has joined #ruby
<dfockler> everyone should use what they want
kadoppe has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
<miah> i use rvm on servers at work and 'Its Fine™', but i prefer and use chruby on my systems
allomov has quit [Remote host closed the connection]
zuQe8 has joined #ruby
freerobby has joined #ruby
<miah> actually, currently using rbenv on servers and it was a previous gig where we ran rvm.
n008f4g_ has joined #ruby
Mendenhall has joined #ruby
<miah> anyways. they all worked fine.
casadei_ has quit [Remote host closed the connection]
Igorshp has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
chills42 has quit [Remote host closed the connection]
freerobby has joined #ruby
jerius has quit [Quit: /quit]
benlovell has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.2]
<shevy> I compile from the source \o/
freerobby has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ruby
* ElSif highfives shevy
Guest14145 has quit [Quit: Konversation terminated!]
allomov has joined #ruby
<ElSif> of course, so do most of the tools like chruby and rvm
pengin has quit [Remote host closed the connection]
sargas has quit [Quit: Leaving]
freerobby has joined #ruby
casadei_ has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
polpak has joined #ruby
mike___1234 has quit [Ping timeout: 244 seconds]
wildroman2 has joined #ruby
<ElSif> sometimes i miss running gentoo T_T
freerobby has joined #ruby
Pupp3tm4st3r has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
esantiago has quit [Quit: Page closed]
bronson has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
yxhuvud has quit [Remote host closed the connection]
benlieb has joined #ruby
mkosaki has joined #ruby
symm- has joined #ruby
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang096 has joined #ruby
michael_mbp has quit [Excess Flood]
Musashi007 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
jxpx777 has joined #ruby
michael_mbp has joined #ruby
freerobby has joined #ruby
freeUmo has joined #ruby
<Ox0dea> ElSif: chruby doesn't do anything but change the current Ruby.
<ElSif> yea i get why it is different
DroidBurgundy has quit []
<ElSif> much less intrusive
<ElSif> i was just stating that there are options :)
<Ox0dea> shevy: You said you didn't do that not too long ago.
kinduff has quit [Quit: leaving]
wildroman2 has quit [Ping timeout: 240 seconds]
<Ox0dea> ElSif: Archer?
<ElSif> did i commit a phrasing violation?
alexclark has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Ox0dea> What'd you switch to from Gentoo?
<ElSif> arch
<ElSif> i got tired of having updates take half my battery life
<Ox0dea> Then a "yes" would've done. :p
ninji has joined #ruby
<ElSif> ah
<ElSif> lol
<ElSif> i thought you were making a silly cartoon comment
<havenwood> Do you want ants? Because that's how you get ants.
<cout> ElSif: I thought so too
<Ox0dea> ElSif: Do you use any git packages?
<shevy> Ox0dea didn't do what?
freerobby has quit [Read error: Connection reset by peer]
casadei_ has quit [Remote host closed the connection]
<Ox0dea> Compile from source.
alexclark has joined #ruby
<shevy> I'd never say anything like that because I always compile from source!
<Ox0dea> Even though you use 2.2.2?
<ElSif> shevy: Slacker?
<Ox0dea> shevy uses LFS.
<shevy> Ox0dea it was compiled from source
<shevy> no I do not
freerobby has joined #ruby
<Ox0dea> shevy: But... why?
<havenwood> Ox0dea: shevy even got a shoutout on RubyRogues for being the guy in #ruby that always recommends compiling from source, granted they transcribed it as "chevy"
<ElSif> shevy: as in git extensions?
<ElSif> i did that once :D
<ElSif> it was fun
<shevy> Ox0dea because it brings only advantages?
<ElSif> ... and broke within a week
<Ox0dea> havenwood: Huh, nice.
<ElSif> then i was like 'Aha! this is hard, so thats why people let others maintain their distro.'
<shevy> ElSif oh yeah, there is quite a bit of "hidden" knowledge
freerobby has quit [Read error: Connection reset by peer]
jerius has joined #ruby
maletor has quit [Read error: Connection reset by peer]
<ElSif> Ox0dea: *as in git extensions?
<shevy> ElSif, for instance right now I ponder about cfdg: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by cfdg)
<Ox0dea> ElSif: No, I meant -git packages from the AUR.
<ElSif> linked library issues D:
<ElSif> oh, ya
<ElSif> tons
<ElSif> i use yaourt to manage them
<shevy> oh yeah... I hate libtool
freerobby has joined #ruby
<shevy> one day I shall replace it with a ruby script
<Ox0dea> ElSif: Don't you hate that they build from scratch on every update?
<ElSif> sometimes yea :\
<ElSif> especially java ones
casadei_ has joined #ruby
<ElSif> probably mostly to me not caring to keep a good java env :P
Mekkis has joined #ruby
<ElSif> but PCGen needs it
<ElSif> and i need PCGen to live
<ElSif> ... and play dnd
<Ox0dea> I keep a directory of cloned repositories for packages I want HEAD for. :/
bronson has joined #ruby
zuQe8 has quit [Quit: Leaving]
freerobby has quit [Read error: Connection reset by peer]
tsvenson has quit [Ping timeout: 256 seconds]
<ElSif> ah, yea i did that, makes it much easier to bring back a stable env when something goes wrong
<ElSif> now im just too lazy i guess :(
drewo has joined #ruby
<Ox0dea> It's easy enough to be automatically notified of when a pull would be an update.
freerobby has joined #ruby
arooni-mobile has quit [Ping timeout: 244 seconds]
<ElSif> i still do it for a couple things, but only things that i really care what version im running
<Ox0dea> I looked for an AUR helper that didn't start from scratch for -git packages, but there weren't any. :/
<ElSif> and java is not one of those things :)
<Ox0dea> Fair enough.
neanderslob has joined #ruby
tsvenson has joined #ruby
<ElSif> yea, in not sure there are, it would be hard to manage changes that needed it to start from scratch versus those that didnt
<ElSif> cant blame them for being lazy
Trynemjoel has quit [Ping timeout: 240 seconds]
mike___1234 has joined #ruby
<shevy> laziness makes us write better programs!
freerobby has quit [Read error: Connection reset by peer]
usershell has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving]
freerobby has joined #ruby
Musashi007 has quit [Quit: Musashi007]
shinnya has joined #ruby
mistym has quit [Ping timeout: 244 seconds]
perrier has joined #ruby
Trynemjoel has joined #ruby
ledestin has joined #ruby
hal_9000 has joined #ruby
martinium has quit [Ping timeout: 252 seconds]
<ElSif> yea, i usually find that im mostly motivated by 'how can i go back to sleep and not worry about this'
drewo has quit [Ping timeout: 244 seconds]
eminencehc has joined #ruby
Mekkis has quit [Max SendQ exceeded]
slackbotgz has quit [Remote host closed the connection]
freerobby has quit [Client Quit]
drewo has joined #ruby
freerobby has joined #ruby
mistermocha has joined #ruby
<shevy> hehe
tsvenson has quit [Ping timeout: 264 seconds]
tsvenson_ has joined #ruby
<jhack> I need some help, im creating a cmd line blackjack game, and i have the cards in a global array, how would i set it so that the JQKA, are set into values when im adding the total?
<jhack> I'm trying to use .include and .push to check to see if these cards are in the hand and if they are, push a value into the hand
freerobby has quit [Read error: Connection reset by peer]
<jhack> something like this,
<jhack> if @hand.include?("J") == true || @hand.include?("Q") == true || @hand.include?("K") == true
<jhack> @hand.delete()
<jhack> @hand.push("10")
ruurd has joined #ruby
freerobby has joined #ruby
platosha has quit [Quit: This computer has gone to sleep]
<ElSif> you dont need the `== true`
platosha has joined #ruby
<jhack> ok
tomaz_b has quit [Quit: Leaving]
jerius has quit [Quit: /quit]
<ElSif> would you be able to gist your project?
freerobby has quit [Read error: Connection reset by peer]
drewo has quit [Ping timeout: 244 seconds]
<ElSif> im curious what your class structure is like
<jhack> yeah
Trynemjoel has quit [Ping timeout: 256 seconds]
allomov has quit [Remote host closed the connection]
<mozzarella> if ["J", "Q", "K"].all? { |x| @hand.include?(x) }
yfeldblum has quit [Ping timeout: 246 seconds]
<havenwood> s/all?/any?
<mozzarella> oh wait
<mozzarella> yeah
rideh has quit [Quit: zap]
freerobby has joined #ruby
<mozzarella> misread that as && instead of ||
Eiam_ has quit [Read error: Connection reset by peer]
<apeiros> !(%w[J Q K] & hand).empty?
freerobby has quit [Read error: Connection reset by peer]
<shevy> hehe
<shevy> it's getting shorter and shorter
Trynemjoel has joined #ruby
<Ox0dea> hand[/[JQK]/]
<apeiros> but I somewhat doubt that would work, given that a card is color + number
allomov has joined #ruby
<jhack> I'm only doing # right now apeiros
<ElSif> you could simplify your challenger here by creating a `Card` class
<ElSif> *challenge
wallerdev has joined #ruby
freerobby has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
<ElSif> and have it get the attributes `suite, value, face_value` or something like that
<Ox0dea> > $cards = [2,3,4,5,6,7,8,9,10,"J","Q","K","A"]
<apeiros> Card + Hand classes
kachi8_ has quit [Ping timeout: 244 seconds]
<Ox0dea> That's just... so wrong.
<ElSif> Hand would be good too
<ElSif> yea, you dont want to mix your data types definitely, you will end up with weird 'oh this is a number sometimes but a string other times' problems
mistermocha has quit [Ping timeout: 264 seconds]
<eam> Ox0dea: I wrote an entire chess program with a similar approach in high school
<eam> white was capital letters, black was lowercase
Musashi007 has joined #ruby
<Ox0dea> That's quite different.
freerobby has quit [Read error: Connection reset by peer]
<jhack> So, i'm putting my array into the Card class, and have value, face_value inside my intiialize?
<jhack> initialize
nofxx has quit [Ping timeout: 240 seconds]
<jhack> sorry, new to ruby here lol
<ElSif> sure, i would suggest having one be a ONLY stings, and one be ONLY numbers
<ElSif> *strings
<Ox0dea> jhack: Heterogenous data should be a necessary evil, not something you impose on yourself.
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<ElSif> unless you like hurting yourself....
<Ox0dea> There's always that.
<jhack> so... my values would be put into a value array and face_value be my strings (JQKA)
ascarter has joined #ruby
bronson has quit [Remote host closed the connection]
apt-get_ has quit [Quit: Quit]
freerobby has quit [Read error: Connection reset by peer]
<ElSif> I think that makes sense :)
<jhack> alright, thanks
<ElSif> np
sarkyniin has joined #ruby
rbowlby has joined #ruby
dudoom has quit [Quit: Konversation terminated!]
<Ox0dea> jhack: Using 'T' for 10 should simplify some things.
freerobby has joined #ruby
<ElSif> interesting, i like it
Musashi007 has quit [Client Quit]
<Ox0dea> It's a pretty standard representation.
freerobby has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
codecop has quit [Remote host closed the connection]
<jhack> i dont understand, why?
quimrstorres has quit [Remote host closed the connection]
<ElSif> people sure are smart :D
freerobby has joined #ruby
bronson has joined #ruby
sharpmachine has joined #ruby
<ElSif> because less logic to handle them
<ElSif> at least, probably more too
ruurd has quit [Quit: ZZZzzz…]
freerobby has quit [Read error: Connection reset by peer]
Mendenhall has quit [Ping timeout: 244 seconds]
ruurd has joined #ruby
andikr has quit [Remote host closed the connection]
phutchins has joined #ruby
freerobby has joined #ruby
<Ox0dea> jhack: Uniformity of representation if nothing else.
<Ox0dea> All the other ranks can be represented as strings of length 1; why not let 10 join the club?
ips|malc has joined #ruby
<ElSif> no pun intended?
freerobby has quit [Read error: Connection reset by peer]
<ElSif> i guess you didnt say `clubs` :P i should take a break
freerobby has joined #ruby
hanmac has joined #ruby
bradleyprice has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
syath has quit [Quit: WeeChat 1.2]
ruurd has quit [Quit: ZZZzzz…]
ruurd has joined #ruby
_cball has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
pengin has joined #ruby
eminencehc has quit [Remote host closed the connection]
sshuff is now known as sshuff|gone
leat1 has quit [Remote host closed the connection]
freerobby has joined #ruby
leat1 has joined #ruby
Trynemjoel has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
Mekkis has joined #ruby
Trynemjoel has joined #ruby
acke has quit [Remote host closed the connection]
<Ox0dea> jhack: Some things worth considering: https://gist.github.com/0x0dea/5eb9c574b790af39bf16
mweshi has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
zarubin_ has joined #ruby
mweshi has quit [Max SendQ exceeded]
Mekkis has quit [Client Quit]
Igorshp has quit [Remote host closed the connection]
freerobby has quit [Read error: Connection reset by peer]
bungoman has joined #ruby
mweshi has joined #ruby
zarubin_ is now known as stas
stas is now known as szarubin
ruurd has quit [Quit: ZZZzzz…]
symm- has quit [Quit: Leaving...]
bungoman has quit [Client Quit]
freerobby has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has joined #ruby
szarubin has quit [Client Quit]
sshuff|gone is now known as sshuff
<shevy> huh
<shevy> in your paste... do you use 0x0 Ox0dea?
freerobby has quit [Read error: Connection reset by peer]
<Ox0dea> Pardon?
<shevy> I thought you are Ox!
tmtwd has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
<shevy> but the gist is https://gist.github.com/0x0dea
rodferso1 has quit [Quit: leaving]
<Ox0dea> shevy: Blame some RFC.
<Ox0dea> I'd be 0x0dea here if I could.
<shevy> aha
ruurd has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
tsvenson__ has joined #ruby
tsvenson_ has quit [Ping timeout: 244 seconds]
theery_ has quit []
mweshi has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ninji has quit [Read error: Connection reset by peer]
ninji has joined #ruby
alexclark has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jenrzzz has quit [Ping timeout: 264 seconds]
freerobby has quit [Read error: Connection reset by peer]
dgutierrez1287 has joined #ruby
freerobby has joined #ruby
Pupp3tm4st3r has quit [Quit: Leaving...]
peter_paule has quit [Ping timeout: 265 seconds]
freerobby has quit [Client Quit]
troulouliou_dev has quit [Quit: Leaving]
pfish has quit [Quit: Page closed]
danzilio has joined #ruby
alexclark has joined #ruby
FernandoBasso has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has quit [Ping timeout: 255 seconds]
<jhack> Am i doing this right? I feel like i should be having the array outside the class, not sure though? https://gist.github.com/jhack32/98a536722f83763b51a9
phutchins has quit [Ping timeout: 256 seconds]
ldnunes has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
nitenq has joined #ruby
<jxf> jhack: There's a lot to talk about there, but generally I would have expected something like a Card object, a Deck object that holds all the possible cards, a Deck#shuffle that shuffles the cards, a Deck#take that takes the top card, and so on. Then your "Game" is a one or more Players and a Deck.
vickleton has quit [Remote host closed the connection]
Jackneill has quit [Remote host closed the connection]
nahtnam has joined #ruby
<jxf> jhack: There isn't any "one right way" to do it. Generally speaking, though, developers tend to favor solutions where the cost of making a change is small.
tmtwd has joined #ruby
<Ox0dea> jhack: Imagine how much your code would need to change if you wanted to add another player.
<nahtnam> How would I go about making my own cli interface gem? I know there is thor, but from what I can see, you have to run it with a `./`. I want to be able to run it like rails does, without the `./`
peter_paule has joined #ruby
<jhack> Okay, i'm gonna rewrite this into different classes
<Ox0dea> nahtnam: You add an "executable" to your gem's bin/ directory.
<havenwood> I know Crystal is of general interest to Rubyists for a variety of reasons. They just launched a bountysource to help fund ongoing development if anyone is interested in contributing: https://www.bountysource.com/teams/crystal-lang/fundraisers/702-crystal-language
<nahtnam> .
mary5030_ has quit [Remote host closed the connection]
<nahtnam> Ox0dea: Do you have an example?
<Ox0dea> nahtnam: Do you know about the shebang line?
<nahtnam> no
<Ox0dea> #!/usr/bin/env ruby
gusrub has joined #ruby
<Ox0dea> ^ That thing.
<nahtnam> That just runs ruby right?
<nahtnam> *the ruby command
<havenwood> nahtnam: Here's an example bin/ file: https://github.com/pry/pry/blob/master/bin/pry
jenrzzz has joined #ruby
<havenwood> nahtnam: and line in the gemspec: https://github.com/pry/pry/blob/master/pry.gemspec#L17
Guest38521 has joined #ruby
<havenwood> nahtnam: ^ one example
<nahtnam> havenwood: And then have the thor stuff in the lib folder?
<Ox0dea> jhack: Small, focused, composable pieces = <3
Guest38521 is now known as frem
dblessing has joined #ruby
<ElSif> technically #! tells ur terminal to run the file through a non-interactive shell (i believe)
usershell has joined #ruby
<jhack> Ox0dea: still a little confused as to how i would add my arrays from Card class into another array in a different class :x
fantazo has quit [Quit: Verlassend]
peter_paule has quit [Ping timeout: 240 seconds]
allomov has quit [Remote host closed the connection]
baweaver has joined #ruby
<Ox0dea> ElSif: It's actually the kernel that ultimately handles #!.
<ElSif> true! good point
borodin has joined #ruby
<ElSif> thanks for the link
DmitryM_ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
bahar has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
chipotle has joined #ruby
<DmitryM_> Hey gents, shot in the dark. When I debug Rails 4.x with Pry (binding.pry) and I terminate the debugging session with exit, the whole ruby process seems to hang (or block somewhere). This is with Ruby 2.1.2 on OS X. Any tips on how to start debugging this?
<Ox0dea> ?guys DmitryM_
<ruboto> DmitryM_, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
<DmitryM_> My appologies, ladies and gentlemen.
s00pcan has quit [Ping timeout: 244 seconds]
<havenwood> DmitryM_: You might also try in #RubyOnRails if you haven't already. Just them know it's a cross-post.
<DmitryM_> thanks, havenwood i tried #rails, but taht doesnt' exist
<Ox0dea> ?rails DmitryM_
<ruboto> DmitryM_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood> DmitryM_: Ah, yeah it's #RubyOnRails.
DmitryM_ is now known as DmitryM
<havenwood> Too bad #rails doesn't redirect.
lala has joined #ruby
s00pcan has joined #ruby
<apeiros> #rails does redirect
<apeiros> as does #ror
<borodin> having trouble with ruby seeing a gem I have installed - gem list zabbixapi shows it, find show's it's path, but when I do irb require "zabbixapi" I see errors that the gem is notavailable
<havenwood> DmitryM: Is something rescuing SystemExit or Exception?
<apeiros> or it did redirect
mjuszczak has quit []
<havenwood> apeiros: #rails just redirected me to ##namespace
<havenwood> apeiros: #ror worked
<apeiros> odd
Drewch has joined #ruby
<apeiros> same for me. wondered whether it was because I already joined #rubyonrails
last_staff has quit [Remote host closed the connection]
<havenwood> I hadn't joined #rubyonrails when it redirected me
ninji has quit [Quit: Leaving]
<DmitryM> havenwood: i'm not sure. once i exit the debugging session, the process just stops accepting connections on port 80.. I'm not sure where to go from there.
<borodin> can anyone tell me another gem that is normally loaded into ruby-1.8.6 (rhel default ruby) that I can compare this to?
bohallor has quit [Ping timeout: 252 seconds]
<Ox0dea> borodin: Did you require 'rubygems' first?
ScriptGeek has quit [Read error: Connection reset by peer]
<borodin> hmmm duhhhhh
Asher has quit [Read error: Connection reset by peer]
<Ox0dea> borodin: It's only a 1.8 thing, so you're forgiven. :P
Asher has joined #ruby
<jhass> 1.8.6 x_x
hinbody has quit [Read error: Connection reset by peer]
<havenwood> borodin: Ruby 1.8.6 is way past end-of-life. If you can, update to a currently-supported Ruby. Either Ruby 2.1 or Ruby 2.2.
ScriptGeek has joined #ruby
hinbody has joined #ruby
jenrzzz_ has quit [Ping timeout: 244 seconds]
<havenwood> borodin: The `require 'rubygems'` is just required pre-1.9.
<borodin> you're a sexy human being havenwood
<havenwood> o.O
<borodin> I have no doubt many humans want to reproduce with you and your mighty brain
<DmitryM> havenwood: i wonder if the connection gets into a bad state if i end up debugging for a while..
<DmitryM> if i exit right away everything works fine
<borodin> thanks again!
craysiii has joined #ruby
icebourg has quit [Ping timeout: 250 seconds]
myztic has joined #ruby
bronson has quit [Remote host closed the connection]
philn_ has quit [Ping timeout: 250 seconds]
Mekkis has joined #ruby
bronson has joined #ruby
imperator has joined #ruby
<imperator> hi folks
philn_ has joined #ruby
stantonnet has quit [Ping timeout: 250 seconds]
pocketprotector has quit [Ping timeout: 250 seconds]
hanmac has quit [Ping timeout: 246 seconds]
<imperator> on an http POST is there any reason not to set a default body of "" ?
<havenwood> imperator: hi
icebourg has joined #ruby
hanmac has joined #ruby
<imperator> i hit an issue with RestClient.post that is bugging me
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
stantonnet has joined #ruby
ruby-lang096 has quit [Ping timeout: 246 seconds]
carlosoliveira has quit [Quit: Connection closed for inactivity]
drewo has joined #ruby
jenrzzz has joined #ruby
pocketprotector has joined #ruby
rasalghul_ has joined #ruby
<dfockler> imperator: what is it doing?
<imperator> dfockler, not working ;)
<imperator> basically, i had a post fail because i didn't explicitly pass "" to the post method
<dfockler> when would you do a post and not have anything in it?
<imperator> when the rest api i'm using says i don't need anything
werelivinginthef has quit [Remote host closed the connection]
<dfockler> You need to change that REST api!
<havenwood> imperator: If Content-Langth is 0 I don't see any problem with a default Body of "".
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 246 seconds]
freeUmo has quit [Ping timeout: 244 seconds]
phutchins has joined #ruby
<imperator> dfockler, is the MS azure REST api
<havenwood> imperator: It'd likely work with more apps.
allcentury has joined #ruby
<craysiii> https://gist.github.com/craysiii/cb36c5fe33204bb4317f I am having an issue trying to sync up these two threads. In it's current state it ignores the sleep calls inside each thread. How can I get each thread to run at a certain interval?
hobodave has quit [Ping timeout: 255 seconds]
<havenwood> I mean technically I don't think an empty Body is required if the Content-Length is zero but yeah, it's not wrong and likely better for compatibility.
<havenwood> (I think.)
drewo has quit [Ping timeout: 250 seconds]
ahhMichael has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
paulcsmith has quit [Quit: Be back later ...]
<myztic> beginner question: want to use ruby as day to day scripting language, which resource to start with?
umgrosscol has quit [Quit: Quit]
<myztic> (total ruby beginner)
DEA7TH has joined #ruby
<jhass> myztic: what's your background?
<Senjai> Does anyone have any recommendation on how you could run full end-to-end tests on an architecture with several applications?
robbyoconnor has joined #ruby
<myztic> jhass: very little C and know my way around UNIX, but that's it
jenrzzz has quit [Ping timeout: 255 seconds]
<havenwood> myztic: Here are some links: http://ruby-community.com/pages/links
senayar has joined #ruby
<imperator> havenwood, i agree
<Senjai> In a way that we could trigger it before a deployment.. Currently looking into options atm
<jhass> myztic: might check Chris Pine's Learn to program to get the hang on OOP then
<havenwood> ^
<Antiarc> Senjai: What kind of application? Typical answer is a user-simulation driver that does acceptance testing
<Antiarc> ie, if it's a web app, capybara + rspec or whatever
<Senjai> Antiarc: It's a web app with a seperate frontend from the backend
<Senjai> the frontent requires the backend to be running
<Antiarc> Right, but the user will experience everything through the frontend, right?
<Senjai> Yes
<Antiarc> So you could write a test suite that does stuff in a headless browser and tests the results
<Senjai> Currently they stub out the API
<Senjai> Yes, but it needs to be done with real data
<Antiarc> capybara + rspec + poltergeist + phantomjs is my preferred stack
<Senjai> Righto, how do you reset or rollback the state of the database?
<Antiarc> That lets you actually drive a Real Browser and do Real Things with it and test the results
<Antiarc> Well, you would perform DB setup prior to your tests, in an isolated DB
<Senjai> Controlling the data source inbetween tests that are not running on the actual backend is proving difficult
<myztic> havenwood: thank you :)
<Senjai> Antiarc: Okay, so if I have an acceptance test to purchase a product that goes out of stock, I need that product to be in its original state after that test
skinofstars has joined #ruby
workmad3 has joined #ruby
<Antiarc> I would recommend using a separate test DB that simply sets up an item that is out of stock prior to the test
eminencehc has joined #ruby
skinofstars has left #ruby [#ruby]
Contigi has quit [Read error: Connection reset by peer]
<Senjai> Antiarc: I meant the act of adding an item to the cart, and having it go out of stock before you can checkout with it. We do use a seperate test db, but we still have to maintain the state of it
<Senjai> E.g. I'd like to rollback to the initial seeds after each acceptance test
a346 has joined #ruby
<Antiarc> IIRC AR provides something like that through the use of transactional fixtures?
<Senjai> If I was actually acceptance testing the backend, this would be easy because everything happens within the context of the database connection I control
<Senjai> Antiarc: But I cant access AR from the test stack ;)
Igorshp has joined #ruby
<Antiarc> Well, it wouldn't be too hard to provide setup/teardown steps for the test which set the state/restore the state, provided those interfaces exist
usershell has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
zapho53 has joined #ruby
<Senjai> Antiarc: They do not. I'm thinking I will have a seeds file for this specific set of testing, and dump the database and restore it from the SQL file after each test and restart the backend. Which is not fun.
duggiefresh has quit [Remote host closed the connection]
<Antiarc> Heh, no, it's not fun. But it may be effective.
<slash_nick> Senjai: dump db before tests... empty db and import dump on teardown?
<Antiarc> Acceptance testing is usually slow anyhow though
<Senjai> I may not have to restart the backend if I dont drop the database and instead just replace tables
<zapho53> Is there a way with middleman to avoid having all my images duplicated in source/ and build/ ?
<Senjai> iirc dropping and recreating the database borks AR connections
<Antiarc> Senjai: You could also use a separate DB per test, perhaps
Yzguy has joined #ruby
bigbadbear has quit [Ping timeout: 240 seconds]
<Senjai> Antiarc: That could get unweildy but thats also an option
<Senjai> Antiarc: I could also restore each database while another database takes the next test
<Antiarc> That way your test state would be isolated and inspectable, which would be handy
<Senjai> and alternate between databases
<Senjai> Bleh no, requires restarting the backend
jenrzzz has joined #ruby
<Senjai> which is slow, and probably is slower than postgres doing its thing
omegamike has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
<Antiarc> Well, if it proves too unweildy you might just do segmented testing - test that the frontend behaves like so when it receives this data, and test that the backend behaves this way when it receives this request, etc
<Antiarc> That's less comprehensive but it would be far easier to control
<Antiarc> (This is effectively how one tests functionality against a remote API, anyhow)
decoponio has quit [Quit: Leaving...]
tennis_ has quit [Remote host closed the connection]
zapho53 has quit [Quit: BitchX: the NEW form of birth control!]
yfeldblum has joined #ruby
sshuff is now known as sshuff|gone
gamename has joined #ruby
wildroman2 has joined #ruby
<Senjai> Antiarc: Yeah, but when we have control over the API we should also be able to do better than that.
lannonbr has quit [Quit: WeeChat 1.2]
<Senjai> Antiarc: I think the goal would be to only write tests independent of state for this kind of stuff
imperator has left #ruby ["Leaving"]
centrx has joined #ruby
<Antiarc> agreed - just noting that it's an option
<Senjai> If I have to manage the data source of another application, that would quickly get unwieldy
xkickflip has quit [Quit: xkickflip]
victortyau has quit [Quit: Leaving]
edwardly has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
<Senjai> Antiarc: Thanks for the dialogue. :)
edwardly has quit [Changing host]
edwardly has joined #ruby
<Antiarc> Good luck with it! It sounds arduous either way - hope you find a good solution!
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai> Yeah, it's definitely going to be a tough problem
<Senjai> To do it well
gamename has quit [Ping timeout: 244 seconds]
bhorn1 is now known as bhorn1|away
<nitenq> Is there a way to get the cpu % of use using ruby ? (on Mac)
alexclark has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
thiagovsk has quit [Quit: Connection closed for inactivity]
<jhass> nitenq: just the same way as for any other program
blue_deref has joined #ruby
<jhass> oh, I think I misread
swgillespie has joined #ruby
<nitenq> what ?
stantonnet has quit [Ping timeout: 256 seconds]
sgambino has quit [Read error: Connection reset by peer]
<jhass> nvm, requires someone knowing how to get a total on OS X
eindoofus has quit [Ping timeout: 244 seconds]
rbowlby_ has joined #ruby
ascarter has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
Yzguy has quit [Quit: Cya]
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshL has quit []
tubulife- has quit [Read error: Connection reset by peer]
rbowlby has quit [Ping timeout: 246 seconds]
Sirupsen has joined #ruby
<shevy> aha! jhass is not an OSX expert!
icebourg has quit []
fullofcaffeine has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
elia has joined #ruby
benlovell has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
DEA7TH has quit [Quit: DEA7TH]
Tamae has joined #ruby
tubulife- has joined #ruby
xkickflip has joined #ruby
riotjone_ has joined #ruby
Luun has quit [Quit: Luun]
kedare has quit [Ping timeout: 244 seconds]
kedare has joined #ruby
benlovell has quit [Ping timeout: 272 seconds]
c355E3B has quit [Quit: Connection closed for inactivity]
<jhass> shevy: did you steal captain obvious cape again?
Drewch has quit [Quit: Computer has gone to sleep.]
ruurd has joined #ruby
<shevy> I have a superman cape
kirun has quit [Quit: Client exiting]
arooni-mobile has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
<havenwood> El Capitan obvious.
ruurd has quit [Client Quit]
dojobo has quit [Quit: Leaving]
safeforge has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<drbrain> I need a ruby hero cape: http://empirecapes.com
tno has quit [Ping timeout: 246 seconds]
<havenwood> oh, wow
<shevy> lol
duoi has quit [Remote host closed the connection]
Ilyas_ has quit [Quit: Leaving]
Ilyas has joined #ruby
Mekkis has joined #ruby
Blaguvest has quit []
postmodern has joined #ruby
jackjackdripper has joined #ruby
duoi has joined #ruby
bmcginty has joined #ruby
DEA7TH has joined #ruby
allomov has joined #ruby
pengin has quit [Remote host closed the connection]
Musashi007 has joined #ruby
ruurd has joined #ruby
polpak has quit [Quit: Lost terminal]
benlovell has joined #ruby
Tamal has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
myztic has quit [Ping timeout: 250 seconds]
<apeiros> drbrain: capes are bad, m'kay? https://youtu.be/M68ndaZSKa8?t=2m
Mekkis has quit [Quit: ZNC - http://znc.in]
<drbrain> velcro will love those problems for non-superhero uses
Mekkis has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Mendenhall has joined #ruby
Drewch has joined #ruby
tno has joined #ruby
elia has quit [Quit: Computer has gone to sleep.]
nofxx has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
lionra has joined #ruby
nym has quit [Quit: Connection closed for inactivity]
elia has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
mistermocha has joined #ruby
cored has joined #ruby
drewo has joined #ruby
[k- has quit [Ping timeout: 246 seconds]
sharpmachine has quit [Remote host closed the connection]
hagabaka has quit [Ping timeout: 264 seconds]
krz has quit [Ping timeout: 244 seconds]
pengin has joined #ruby
Mekkis has quit [Quit: ZNC - http://znc.in]
spider-mario has quit [Read error: Connection reset by peer]
ERIK__ has quit [Quit: Leaving]
Mekkis has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drewo has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
hinbody has quit [Quit: leaving]
jonee has quit [Ping timeout: 244 seconds]
devbug has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
myztic has joined #ruby
k3asd` has quit [Ping timeout: 244 seconds]
devbug has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
htmldrum has joined #ruby
v4n has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
linuxboytoo has joined #ruby
hj2007 has joined #ruby
msnyon has quit [Read error: Connection reset by peer]
<hj2007> cannot understand the issue with rbenv. I'm getting "Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2" while "bundle install".
<hj2007> "rbenv version" returns 2.1.2, even .ruby-version file has 2.1.2
<centrx> but your Gemfile
<hj2007> centrx: Gemfile has ruby "2.1.2"
patrickanth0ny has joined #ruby
<centrx> sorry I don't know much about rbenv
<hj2007> I don't understand where the system is taking ruby version 2.0.0
linuxboytoo has quit [Read error: No route to host]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<centrx> The bundle script might be using ruby2.0
<hj2007> centrx: bundle script? what's that?
ixti has quit [Ping timeout: 244 seconds]
sdothum has joined #ruby
devbug has quit [Ping timeout: 246 seconds]
zendrix has joined #ruby
<centrx> hj2007, When you type 'bundle' that calls a script/executable, which may be using ruby2.0 instead of 2.1
usershell has joined #ruby
neoseeker191 has joined #ruby
<hj2007> centrx: I see
neoseeker191 has quit [Max SendQ exceeded]
connor_g1odwolf has joined #ruby
connor_g1odwolf has quit [Client Quit]
allomov has quit [Remote host closed the connection]
connor_g1odwolf has joined #ruby
connor_g1odwolf has quit [Client Quit]
connor_g1odwolf has joined #ruby
connor_goodwolf has quit [Ping timeout: 255 seconds]
connor_g1odwolf has quit [Client Quit]
zendrix has quit [Remote host closed the connection]
Lucky_ has joined #ruby
connor_goodwolf has joined #ruby
eggoez has quit [Ping timeout: 246 seconds]
jonee has joined #ruby
omegamike has joined #ruby
Rhidian has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sharpmachine has joined #ruby
eggoez has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
jackjackdripper has quit [Quit: Leaving.]
<prefixed> yo. is it possible to see if one (or more) strings from an array is a component of another string?
havenwood has quit [Ping timeout: 246 seconds]
aryaching has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
mike___1234 has quit [Ping timeout: 272 seconds]
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
Guest85414______ has quit []
hj2007 has quit [Quit: This computer has gone to sleep]
sinkensabe has joined #ruby
Guest85414______ has joined #ruby
<jhass> foo.any? {|a| string.include? a }
<centrx> prefixed, array_of_strings.any? { |s| other_string.include?(s) }
zendrix has joined #ruby
<centrx> dang too slow
kapowaz has quit []
danzilio has quit [Quit: My computer has fallen asleep!]
kapowaz has joined #ruby
<jhass> heh, basically same second
neanderslob has joined #ruby
<prefixed> what does that do?
<jhass> prefixed: look up the used methods and tell us!
omegamike has quit [Ping timeout: 260 seconds]
veduardo has joined #ruby
rbowlby has joined #ruby
<apeiros> Regexp.union(array) =~ string
esantiago has joined #ruby
<Rhidian> Hello
veduardo has quit [Client Quit]
<Rinzlit> I think I'm starting to get the hang of this ruby stuffz o-o
<Rhidian> I know this isn't the appropriate channel, but I already tried on on Ruby on Rails channel to no avail.
veduardo has joined #ruby
michael_mbp has quit [Excess Flood]
workmad3 has quit [Ping timeout: 246 seconds]
<esantiago> Rinzlit, did you complete your server configuration?
blackmesa has quit [Ping timeout: 265 seconds]
<jhass> Rhidian: you tried of you've been there for 2-4 hours
<jhass> *if
<Rhidian> I'm currently using the Cloud9 IDE, and I'm following http://guides.rubyonrails.org/getting_started.html guide, and whenever I try to connect to localhost:3000 I get the following error in chrome: This webpage is not available ERR_CONNECTION_REFUSED
rbowlby_ has quit [Ping timeout: 246 seconds]
<Rhidian> Eh, I have been searching for around 3 or so, I tried all the fixes I found online, but it hasn't worked :/
<prefixed> centrx so that method checks every string in the array against the "other_strung"
<prefixed> ?
Ilyas has quit [Read error: Connection reset by peer]
<centrx> prefixed, Yes
Juanchito has quit [Quit: Connection closed for inactivity]
<craysiii> Rhidian are you typing in localhost:3000 in your actual browser?
devbug has joined #ruby
<prefixed> and it returns true / false?
<Rhidian> Yes
GeissT has joined #ruby
<craysiii> since your IDE is online you should be accessing the running server from a url of some sort
michael_mbp has joined #ruby
<craysiii> localhost means the computer from which it was referenced
ELLIOTTCABLE has quit []
<craysiii> so that would be your computer. which the server does not live on
poguez_ has quit [Quit: Connection closed for inactivity]
<prefixed> I'm doing this: unless ignore_list.any? { |s| path.name.include?(s) } == true then
ELLIOTTCABLE has joined #ruby
<prefixed> for file names. so, if the ignore list contains /etc, no dirs containing /etc should be listed, right?
<Rhidian> I see, I've also been trying it on here: https://therails-rhidian.c9.io/
<Rhidian> So I'm on around section 5 of the getting started guide
kies^ has joined #ruby
s00pcan has quit [Ping timeout: 240 seconds]
<Rhidian> But, I haven't been seeing any other changes that i have made on https://therails-rhidian.c9.io/ other than "Hello Rails!"
c0ncealed has quit [Ping timeout: 252 seconds]
failshell has joined #ruby
snockerton has quit [Quit: Leaving.]
<craysiii> have the been frontend or backend changes?
prestorium has quit [Ping timeout: 244 seconds]
<craysiii> unless you changing a view you not really going to notice anything different
s00pcan has joined #ruby
NeverDie has quit [Quit: Textual IRC Client: www.textualapp.com]
NeverDie has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
safeforge has quit [Remote host closed the connection]
christiandsg has joined #ruby
ixti has joined #ruby
safeforge has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
joneshf-laptop has quit [Ping timeout: 264 seconds]
blandflakes has joined #ruby
<ght> Question: If I want to remove \t (tab) entries from a string, what is the recommended solution?
dfockler has quit [Remote host closed the connection]
<drbrain> remove completely? String#delete
<drbrain> replace with other characters? String#gsub or String#tr
ruurd has quit [Quit: ZZZzzz…]
<Rhidian> Umm its been front end mostly I think
<jxf> ruboto: >> "\t123\t456\tabcttt\n".delete("\t")
alexclark has joined #ruby
<jxf> >> "\t123\t456\tabcttt\n".delete("\t")
<ruboto> jxf # => "123456abcttt\n" (https://eval.in/404497)
<Rhidian> It's been stuff like "uncomment the # in Config/routes.rb"
prefixed has quit [Ping timeout: 255 seconds]
<drbrain> thanks jxf
Kyhz has joined #ruby
<ght> jxf: thank you
<ght> and thank you drbrain.
<craysiii> okay so Rhidian. When you uncommented it, did you go to the route after to see if the route worked?
<jxf> I tend to use gsub as a general-purpose for all transformations but #delete is probably better here
<jhack> Is this correct? def take(where)
<jhack> where.push @@deck.pop
<jhack> end
v4n has quit []
<jhack> I'm trying to remove the last card from an array and add it onto another array
devbug has quit [Ping timeout: 272 seconds]
<jxf> using @@ is almost never correct, so probably not
<jhack> ok
<jxf> jhack: I have no idea what this method is supposed to do, but whoever consumes it should probably just take the result of deck.pop and do what they like
Respek has joined #ruby
<Rhidian> On the guide it said to just chekc the localhost:3000, so I tried that and it worked
nym has joined #ruby
<Rhidian> Then I did the "Hello Rails" part, and that worked, but everything I've done after has not
<jxf> jhack: btw, you might like codereview.stackexchange.com
zendrix has quit [Remote host closed the connection]
<bricker> jhack: that looks correct
mollymorphic has quit [Quit: Lost terminal]
<jhack> I'm getting a undefined method `pop' for nil:NilClass (NoMethodError)
<jhack> -.-
<craysiii> i am really confused as how you got that page to load on localhost:3000 if you dont even have ruby on your computer.
<bricker> jhack: @@deck would only return nil if you explicitly set nil
<craysiii> or if you're doing it all in c9 rather.
mike___1234 has joined #ruby
safeforge has quit [Remote host closed the connection]
<jhack> it gives me the error when i'm not using @@
juanpablo_ has quit [Quit: (null)]
<bricker> jhack: also be aware that that method is very non-threadsafe
<Rhidian> I do have ruby on my computer
<bricker> jhack: what?
jobewan has quit [Ping timeout: 252 seconds]
juanpablo_ has joined #ruby
<Rhidian> But I'm trying out th guide online
juanpablo_ has quit [Read error: Connection reset by peer]
<craysiii> i thought you were using cloud9
<Rhidian> I think there might have been some sort of conflict with my computer and cloud9
ascarter has joined #ruby
<Rhidian> Yesterday, when I tried it out, I was trying to configure the roots, and it kept pointing to my computer rather than Cloud9
a346 has quit [Quit: a346]
dudoom has joined #ruby
pmarreck has quit []
AlphaAtom has quit [Read error: No route to host]
pmarreck has joined #ruby
<craysiii> doesnt cloud9 run in your browser? i thought it doesn't touch your machine unless via ssh. did you do that?
lannonbr has joined #ruby
AlphaAtom has joined #ruby
elia has quit [Quit: Computer has gone to sleep.]
<Rhidian> Yeah, hmm I don't think so
senayar has quit [Remote host closed the connection]
drewo has joined #ruby
pengin has quit [Remote host closed the connection]
deepu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<craysiii> okay so. any changes you make on cloud9 i assume will only be reflected through that url, https://therails-rhidian.c9.io/
zendrix has joined #ruby
baweaver has quit [Remote host closed the connection]
Kyhz has quit []
<Rhidian> Sorry Im not being of much help, I haven't done any programming before
mikecmpb_ has joined #ruby
robbyoconnor has joined #ruby
<craysiii> it's okay
dopie has quit [Quit: This computer has gone to sleep]
<Rhidian> but the thing was, when I completed some of the guide on cloud9, it affected localhost:3000 yesterday
workmad3 has joined #ruby
tno has quit [Remote host closed the connection]
<Rhidian> Then I deleted my ruby projects on my desktop because I couldn't do something about the root correctly, and now I can't connect to localhost
texasmade has joined #ruby
scottymeuk has quit [Ping timeout: 256 seconds]
pipework has quit [Ping timeout: 256 seconds]
EvilJStoker has quit [Ping timeout: 264 seconds]
Tarential has quit [Ping timeout: 256 seconds]
usershell has quit [Ping timeout: 250 seconds]
MVPhelp has quit [Ping timeout: 264 seconds]
anekos has quit [Ping timeout: 264 seconds]
marens_ has quit [Read error: Connection reset by peer]
marens has joined #ruby
hachiya has quit [Read error: Connection reset by peer]
anekos has joined #ruby
phreakocious has quit [Ping timeout: 264 seconds]
ashleyhindle has quit [Ping timeout: 264 seconds]
tekacs has quit [Ping timeout: 264 seconds]
MVPhelp has joined #ruby
mikecmpbll has quit [Ping timeout: 246 seconds]
lnx_ has quit [Ping timeout: 256 seconds]
elaptics has quit [Ping timeout: 256 seconds]
freedrull has quit [Ping timeout: 256 seconds]
p7r has quit [Ping timeout: 256 seconds]
<craysiii> if you deleted your ruby projects then there wouldn't be a rails app to start in the first place. you could have just stopped the local server. are you sure you deleted the files?
lnx has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ashleyhindle has joined #ruby
p7r has joined #ruby
freedrull has joined #ruby
drewo has quit [Ping timeout: 256 seconds]
elaptics has joined #ruby
pipework has joined #ruby
tekacs has joined #ruby
htmldrum has joined #ruby
rasalghul_ has quit [Ping timeout: 264 seconds]
<craysiii> what i meant by stopped the local server, is i think that you stopped and thats why you can't access localhost right now.
phreakocious has joined #ruby
EvilJStoker has joined #ruby
<Rhidian> oh that might be it
Mendenhall has quit [Ping timeout: 272 seconds]
pengin has joined #ruby
scottymeuk has joined #ruby
<Rhidian> I moved the files to 'trash' on my computer and emptied the bin, so im assuming it all deleted
hachiya has joined #ruby
<craysiii> well, you should be able to create a new rails app, and start over
myztic has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
c0ncealed has joined #ruby
<craysiii> > rails new projectname
dgutierrez1287 has joined #ruby
htmldrum has quit [Remote host closed the connection]
krainboltgreene has quit []
krainboltgreene has joined #ruby
htmldrum has joined #ruby
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 244 seconds]
sharpmachine has quit [Remote host closed the connection]
dudoom has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
meph has joined #ruby
im0b has quit []
rcvalle has quit [Quit: rcvalle]
im0b has joined #ruby
xkef has joined #ruby
sinkensabe has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
devbug has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
FernandoBasso has quit [Quit: May the force be with you.]
mistym has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]
neersighted has quit []
ph8 has quit [Ping timeout: 272 seconds]
xkef has quit [Client Quit]
htmldrum has quit [Ping timeout: 252 seconds]
alexclark has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
neersighted has joined #ruby
yizr has joined #ruby
htmldrum has joined #ruby
wallerdev has quit [Ping timeout: 265 seconds]
cored has quit [Quit: WeeChat 1.2]
allcentury has quit [Ping timeout: 246 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
seansith has left #ruby [#ruby]
<shevy> how to elegantly check whether a directory is empty?
CloCkWeRX has joined #ruby
<nofxx> shevy, Dir['/foo'].empty? afaik
<centrx> shevy, ls -l |wc -l && rm -rf * && ls -l |wc -l
<nofxx> centrx, oh, I tought I was in #php for a while
<shevy> centrx is drunk again
<centrx> my code works
<shevy> nofxx ok, thought there was some dedicated method... I was looking at things like File.zero? and such
<Rhidian> Yeah, I can create a project, I'm not sure if I should mix up online and local again though, haha.
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
htmldrum has quit [Ping timeout: 264 seconds]
ph8 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joshbamboo1 has quit [Quit: Leaving]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danzilio has joined #ruby
myztic has joined #ruby
<nofxx> shevy, yeah, waiting too for someone with a jedi way heh... but Dir# has only #exist? in his local_methods
<nofxx> maybe File
<shevy> haha jedi way
<shevy> nah it's ok, I settled for Dir now
<shevy> I love .start_with?
<shevy> anyone happens to know without googling when it was added?
bronson has joined #ruby
<centrx> May
<shevy> centrx is totally broken today :(
<shevy> can somebody fix him?
<centrx> Will code for spare parts
scripore has joined #ruby
baweaver has joined #ruby
WildBamboo-Josh has joined #ruby
chipotle has joined #ruby
<Ox0dea> shevy: grep -R start_with? ruby/doc
<Ox0dea> It was renamed from #startwith? on Sep. 27, 2006.
<shevy> I don't even know where my doc dir is
<Ox0dea> You don't have a local clone of ruby/ruby?
yizr has quit [Ping timeout: 260 seconds]
craysiii has left #ruby [#ruby]
<zenspider> % ri22 String | grep start
<zenspider> start_with?
<zenspider> oh. you're grepping the doc dir. it doesn't have shit in it
<shevy> whoa... 2006
<Ox0dea> zenspider: It's got changelogs?
<shevy> almost 10 years... did I really miss 10 years? hmmmmmm
<zenspider> it's got the old changelogs
omegamike has joined #ruby
<Ox0dea> Which is where I'd expect #start_with?'s addition to the language to be.
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]