apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
sepp2k1 has joined #ruby
redondos has quit [Excess Flood]
jonahR_ has quit [Quit: ¡Adios amigos, me fui para el carajo!]
phinfonet has quit [Read error: Connection reset by peer]
redondos has joined #ruby
sepp2k has quit [Ping timeout: 255 seconds]
joaoh82 has joined #ruby
<bricker`work> ViperChief: more or less, you seem to understand
Royalb15 has joined #ruby
soulcake has quit [Ping timeout: 255 seconds]
Caius has quit [Ping timeout: 255 seconds]
Authenticator has joined #ruby
terrellt has quit [Ping timeout: 252 seconds]
Sc0rp10n has quit [Ping timeout: 272 seconds]
gondalier has joined #ruby
<bricker`work> Multiplies all number 1-100 sequentually (1*2*3*4*5...), turns the resulting number into a string, splits it into an array (each digit is an element), then adds each digit to the next, and returns an integer
dc has joined #ruby
fantazo has quit [Ping timeout: 240 seconds]
phinfonet has joined #ruby
felixdd has joined #ruby
<bricker`work> 648... how anticlimactic
santana has joined #ruby
teddyp1cker has joined #ruby
Caius has joined #ruby
alexandrite has joined #ruby
soulcake has joined #ruby
joaoh82 has quit [Ping timeout: 244 seconds]
blasius has joined #ruby
Neomex has joined #ruby
datafirm has joined #ruby
fschuindt has quit [Quit: Textual IRC Client: www.textualapp.com]
dda has joined #ruby
timonv has joined #ruby
yubrew has joined #ruby
cpruitt has joined #ruby
ejnahc has quit [Remote host closed the connection]
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
ghr has joined #ruby
<benzrf> they say that clean code is when you check the implementation of something and your reaction is 'hmm, seems about right'
cpruitt has quit [Client Quit]
teddyp1cker has quit [Ping timeout: 240 seconds]
ejnahc has joined #ruby
Takle_ has quit [Remote host closed the connection]
<shevy> clean code is beautiful
<benzrf> clean code is obvious code
agrinb has joined #ruby
<benzrf> it's beautiful in a very practical way
<shevy> like haskell
<benzrf> hmm
<benzrf> not necessarily
mikecmpbll has quit [Quit: ciao.]
enape_101 has joined #ruby
<benzrf> haskell is also good for writing code that is beautiful in an /impractical/ way
<benzrf> stuff that's elegant but inefficient
<dda> Saying that haskell is beautiful is like saying that oil paintings are beautiful. (As with any other language)
yubrew has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 240 seconds]
banister has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
Hobogrammer has quit [Ping timeout: 264 seconds]
<shevy> god, paintings are so stupid
<shevy> why paint if you can videotape the shit
Veidit has quit [Read error: Connection reset by peer]
Veidit has joined #ruby
dik_dak has quit [Quit: Leaving]
zcreative has joined #ruby
<dda> Oh, well. What if the image doesn't exist outside someone's mind?
zcreative has quit [Client Quit]
kilk_ has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Ping timeout: 264 seconds]
crudson has quit [Quit: q term]
Stalkr^ has quit [Quit: Leaving...]
blasius has quit [Remote host closed the connection]
pika_pika has quit [Ping timeout: 240 seconds]
jpena has quit [Ping timeout: 244 seconds]
sonofflynn has quit [Quit: Later...]
tkuchiki has joined #ruby
xcv has quit [Remote host closed the connection]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
S4R4 has quit [Quit: leaving]
lw has quit [Quit: s]
benlieb has quit [Quit: benlieb]
razrunelord has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<bricker`work> woa dude
sonofflynn has joined #ruby
<shevy> so painting fantasy
ra4king has quit [Ping timeout: 264 seconds]
ddv has quit [Ping timeout: 245 seconds]
<shevy> female barbarians with big boobs slaying dragons
zz_karupa is now known as karupa
timgauthier has joined #ruby
bmurt has quit []
alexju has quit [Remote host closed the connection]
ddv has joined #ruby
hermanmunster has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razrunelord has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
zorak8 has quit [Quit: Saliendo]
Gaddel has joined #ruby
zorak has joined #ruby
<Gaddel> is there an elegant way to permute first-letter uppercasing? description of the problem: http://bpaste.net/show/asPzR7aLIRi5kyIkZ7i2/
blasius_ has joined #ruby
havenwood has quit [Remote host closed the connection]
zorak is now known as zorak8
zorak8 has quit [Client Quit]
crudson has joined #ruby
zorak8 has joined #ruby
<Gaddel> could ary.permutation or ary.product be used here?
dvabr has quit [Quit: Textual IRC Client: www.textualapp.com]
lukec has quit [Quit: lukec]
nobitanobi has quit [Remote host closed the connection]
benlieb has joined #ruby
lw has joined #ruby
mgberlin has joined #ruby
ehc has quit [Quit: ehc]
benlieb has quit [Client Quit]
senayar has joined #ruby
hermanmunster has quit [Ping timeout: 255 seconds]
MrJoshua has joined #ruby
b00stfr3ak has quit [Ping timeout: 255 seconds]
Rollabunna has joined #ruby
mgberlin has quit [Ping timeout: 272 seconds]
joaoh82 has joined #ruby
saarinen has quit [Quit: saarinen]
banister is now known as banisterfiend
tier has joined #ruby
jpena has joined #ruby
havenwood has joined #ruby
Rollabunna has quit [Ping timeout: 272 seconds]
joaoh82 has quit [Ping timeout: 255 seconds]
ixti has quit [Quit: WeeChat 0.4.3]
huginn has joined #ruby
x1337807x has joined #ruby
sevenseacat has joined #ruby
oo_ has joined #ruby
Bumptious has quit [Remote host closed the connection]
huginn has left #ruby [#ruby]
cgore has joined #ruby
emergion has joined #ruby
cgore has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
mgberlin has joined #ruby
ver is now known as repl
Hobogrammer has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]
earthquake has joined #ruby
bradleyprice has quit [Remote host closed the connection]
tus has quit []
bradleyprice has joined #ruby
senayar has quit [Remote host closed the connection]
larissa has joined #ruby
senayar has joined #ruby
Soliah has joined #ruby
senayar has quit [Remote host closed the connection]
sepp2k1 has quit [Read error: Connection reset by peer]
asteve has joined #ruby
Soliah has quit [Client Quit]
jaimef has joined #ruby
mikesplain has joined #ruby
fluve has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradleyprice has quit [Ping timeout: 244 seconds]
blasius_ has quit [Remote host closed the connection]
moritzschaefer has joined #ruby
tkuchiki has quit [Remote host closed the connection]
rgrinberg has quit [Quit: Leaving.]
mikesplain has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
dc has quit [Remote host closed the connection]
PanPan has joined #ruby
jpena has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
axl_ has joined #ruby
charliesome has joined #ruby
dorei has quit []
moritzschaefer has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
axl_ has quit [Client Quit]
Gil has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
danijoo has joined #ruby
havenn has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 264 seconds]
alexandrite has quit [Ping timeout: 264 seconds]
andrewjanssen has quit [Quit: Leaving...]
joaoh82 has joined #ruby
baroquebobcat has quit [Client Quit]
jpena has joined #ruby
lukec has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
Gil has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
marr has quit [Ping timeout: 264 seconds]
santana has quit [Remote host closed the connection]
Takle has joined #ruby
<Rylee> so, rubyists
<Rylee> what is your preferred method of storing a config file and why?
<Rylee> (e.g. YAML, JSON, etc)
<Nilium> INI or YAML. Because I have to write the stupid things.
chris349 has joined #ruby
<chris349> Does anyone know what is the correct way to install the gems for system-wide usage instead of the default of per-user?
echevemaster has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
<Nilium> gem install --no-user-install
<Nilium> If your GEM_HOME is the user directory, this is meaningless and you have no choice.
kaspergrubbe has quit []
Megadan has quit [Remote host closed the connection]
<chris349> The problem is when I run bundle install it gives an error that says to run bundle install --no-deployment but when I run that it gives an error to run bundle update minitest instead but that command gives me the same error that says to run bundle install --no-deployment
<chris349> I also dont quite understand the error: Run `bundle install` elsewhere because I cd .. and run bundle install but it gives an error that Gemfile not found and when I cd back it gives the same error.
gondalier has quit []
Takle has quit [Ping timeout: 244 seconds]
echevemaster has joined #ruby
tkuchiki has joined #ruby
Lucky__ has quit [Ping timeout: 264 seconds]
<chris349> So basically bundle install --deployment only works once and then to update it is an issue.
tier has quit []
shevy has quit [Ping timeout: 244 seconds]
figgleberry has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
blasius has joined #ruby
gondalier has joined #ruby
blasius has quit [Remote host closed the connection]
tkuchiki has quit [Quit: Leaving...]
blasius has joined #ruby
gondalier has quit [Client Quit]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
robustus has quit [Ping timeout: 252 seconds]
GriffinHeart has joined #ruby
mikepack has quit [Remote host closed the connection]
tkuchiki has joined #ruby
robustus has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
mgorbach has joined #ruby
atraylen has joined #ruby
gondalier has joined #ruby
crudson has quit [Remote host closed the connection]
blasius has quit [Ping timeout: 272 seconds]
Neomex has quit [Quit: Leaving]
lukec has quit [Quit: lukec]
danman has joined #ruby
Guest91369 has quit [Quit: Leaving]
GriffinHeart has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
bricker`work has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
crudson has joined #ruby
bklane has joined #ruby
shevy has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
troyready has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
Spami_ has joined #ruby
jcromartie has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
hermanmunster has joined #ruby
Hanmac has joined #ruby
Eyez has joined #ruby
fgo has quit [Remote host closed the connection]
<Gaddel> Rylee: INI for very basic configs, YAML for anything above that
jpena has quit [Ping timeout: 245 seconds]
dawkirst has joined #ruby
ra4king has joined #ruby
ra4king1 has joined #ruby
ra4king has quit [Remote host closed the connection]
ra4king1 has quit [Client Quit]
ra4king has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
Eyez has quit [Remote host closed the connection]
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
dawkirst has quit [Ping timeout: 244 seconds]
nanoyak has joined #ruby
lukec has joined #ruby
linojon has quit [Quit: linojon]
lw has quit [Quit: s]
fgo has joined #ruby
katzekintosh has joined #ruby
danman has quit [Ping timeout: 255 seconds]
katzekintosh has quit [Client Quit]
blasius has joined #ruby
katzilla has joined #ruby
ovoraptor has joined #ruby
ovoraptor has quit [Excess Flood]
dvabr has joined #ruby
naqR0M has quit [Read error: Connection reset by peer]
dvabr has left #ruby [#ruby]
Bumptious has joined #ruby
earthquake has quit [Quit: earthquake]
ovoraptor has joined #ruby
earthquake has joined #ruby
chipotle has joined #ruby
benlieb has joined #ruby
ovoraptor is now known as ovalraptor
yubrew has joined #ruby
timonv has joined #ruby
djbkd has quit [Remote host closed the connection]
katzilla has quit [Quit: This computer has gone to sleep]
bmurt has joined #ruby
ovalraptor has quit [Remote host closed the connection]
djbkd has joined #ruby
katzilla has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 240 seconds]
reset has quit [Quit: Leaving...]
danijoo has joined #ruby
reset has joined #ruby
fgo has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 255 seconds]
pietr0 has joined #ruby
pietr0 has quit [Client Quit]
ovoraptor has joined #ruby
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gondalier has quit []
yetanotherdave has quit [Ping timeout: 240 seconds]
ovoraptor has quit [Read error: Connection reset by peer]
ovoraptor has joined #ruby
x1337807x has joined #ruby
teddyp1cker has joined #ruby
mikepack has joined #ruby
Gil has joined #ruby
reset has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
noober3 has joined #ruby
pikapp has joined #ruby
teddyp1cker has quit [Ping timeout: 244 seconds]
Gil has quit [Ping timeout: 264 seconds]
lukec has quit [Quit: lukec]
katzilla has quit [Quit: Leaving]
goleldar has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
krz has joined #ruby
djbkd has joined #ruby
alexju has joined #ruby
ovoraptor has quit [Remote host closed the connection]
foobarbaz has joined #ruby
wallerdev has quit [Quit: wallerdev]
<foobarbaz> Hi guys, was just wondering what `def call(*) self end` does?
<foobarbaz> What's the signicance of the star as the argument name?
danman has joined #ruby
<foobarbaz> is that some sort of variadic notation perhaps?
freerobby has joined #ruby
ovoraptor has joined #ruby
Skyler has joined #ruby
iceden has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
<Skyler> sup noobs. how's it feel to be slower than Java, but less beautifil and practicle than Lisp?
<Skyler>
binaryhat has joined #ruby
<foobarbaz> *obligatory brackets lisp joke*
fgo has joined #ruby
MZAWeb_ has quit [Ping timeout: 252 seconds]
<Skyler> seriously. If you're going to drink the dynamic coolaid you might as well use lisp which and get a 50x speed up over ruby. More flexible language too.
danman has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Remote host closed the connection]
<Skyler> Or better yet use Java and be object oriented.
<Skyler> Java is so object oriented that twitter dropped ruby and started using java.
<Skyler> what do you have to say about that?
<Skyler> yeah, that's what I thought
<Skyler> Skyler out.
<sevenseacat> trollololol
Skyler has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
aspires has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
<benzrf> what a crappy troll
pikapp has quit [Ping timeout: 240 seconds]
tiguser has quit [Ping timeout: 245 seconds]
razrunelord has joined #ruby
Rojo has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
mgberlin has quit [Remote host closed the connection]
chris3492 has joined #ruby
bmurt has quit []
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razrunelord has quit [Ping timeout: 240 seconds]
<foobarbaz> Particularly as they were using Scala?
<foobarbaz> Anyways..
<foobarbaz> Is there anything special about the symbol * in `def call(*) self end`
pontiki has joined #ruby
ikilledthecat has joined #ruby
chris349 has quit [Ping timeout: 264 seconds]
andrewjanssen has joined #ruby
andrewjanssen has quit [Client Quit]
wallerdev has joined #ruby
ovoraptor has quit [Ping timeout: 272 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
brian___ has joined #ruby
karmatr0_ has joined #ruby
lukec has joined #ruby
Rollabunna has joined #ruby
benzrf is now known as benzrf|offline
karmatr__ has joined #ruby
gondalier has joined #ruby
atraylen has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
_maes_ has joined #ruby
lw has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
gondalier has quit [Client Quit]
binaryhat has quit [Quit: Leaving]
karmatr0_ has quit [Ping timeout: 264 seconds]
definiv has joined #ruby
Rollabunna has quit [Ping timeout: 272 seconds]
dseitz has joined #ruby
nanoyak has joined #ruby
fold has joined #ruby
kireevco has quit [Quit: Leaving.]
noober3 has quit [Quit: Take my advice. I don't use it anyway]
lesilu has quit [Quit: HydraIRC -> http://www.hydrairc.com <- It'll be on slashdot one day...]
dda has quit [Ping timeout: 240 seconds]
stantona has joined #ruby
kireevco has joined #ruby
dseitz has left #ruby ["Textual IRC Client: www.textualapp.com"]
nanoyak has quit [Ping timeout: 264 seconds]
kireevco has quit [Client Quit]
yubrew has joined #ruby
stantona has quit [Ping timeout: 240 seconds]
ndrei_ has quit [Ping timeout: 255 seconds]
lw has quit [Quit: s]
blasius has quit [Remote host closed the connection]
lw has joined #ruby
hamakn has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
<Gaddel> foobarbaz: I'm pretty sure I know the general use of it but I'm researching
<foobarbaz> :P
<foobarbaz> cheers
<foobarbaz> Researching these ruby symbols is a pain haha
<Gaddel> I'm much better with Python, and there it's used to force certain args to be keyword args
<Gaddel> but a * ("splat") with absolutely no other arguments...I'm honestly not sure
yubrew has quit [Ping timeout: 245 seconds]
<foobarbaz> yeah, splat is what i came up with
<foobarbaz> But there was no name given to it
<foobarbaz> so i wasn't sure
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Gaddel> for example in python you can do def func(a, b, *, c=6). if it was (a, b, c=6) then someone doing func(1, 2, 3) would set c to 3, while that's impossible with the nameless splat.
<Gaddel> I'm guessing it has a similar use case for ruby. but that doesn't make sense when no other arguments are being used.
pvb has joined #ruby
<Gaddel> upon testing in irb that is indeed the case
<Gaddel> sort of
_2_ has joined #ruby
<Gaddel> actually nevermind, ruby keyword args/opts can't be reached positionally think
coderhs has quit [Ping timeout: 240 seconds]
<Gaddel> at least in 2.0
andrewjanssen has joined #ruby
<Gaddel> so using the def meth(a: 1) syntax makes that a moot point
_2_ has quit [Client Quit]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scx_ has joined #ruby
alexandrite has joined #ruby
<alexandrite> rl
<alexandrite> hi
<Gaddel> yeah I'm as stumped as you are. I don't see the point of using the nameless splat in any circumstance. clearly we're missing something.
<Gaddel> and this isn't like perl where you can use shift to grab each argument
Ankhers has quit [Remote host closed the connection]
<foobarbaz> Gaddel: it's from a book
<foobarbaz> there's no real context to it tbh
Ankhers has joined #ruby
ikilledthecat has quit [Ping timeout: 240 seconds]
scx has quit [Ping timeout: 255 seconds]
<foobarbaz> Gaddel: http://pastebin.com/7A8mqnau
<Gaddel> finally found a sort of explanation
<Gaddel> that makes some sense
e^0 has joined #ruby
<Gaddel> i think it only ever makes sense if super is being used
<foobarbaz> which it isn't in this scenario haha
<foobarbaz> hm!
braincrash has quit [Quit: bye bye]
danijoo has quit [Read error: Connection reset by peer]
definiv has quit [Quit: Out]
dda has joined #ruby
mgberlin has joined #ruby
<foobarbaz> Why do methods come up as symbols?
<Gaddel> yeah, my only guess is that it's basically intended to be filler or something. it has no actual meaning in the book example
danijoo has joined #ruby
<foobarbaz> "".methods returns a bunch of symbols like => [:<=>, :==, :===, :eql?, :hash, :casecmp, :+, :*, .... ]
<foobarbaz> Gaddel: Thanks! :)
Gil has joined #ruby
<Gaddel> are you trying to understand what symbols are, or just why those method names are symbols?
mikesplain has joined #ruby
<foobarbaz> why method names are symbols
<foobarbaz> Can i do something like "some_string"[:length]
<Gaddel> it's sort of a ruby convention to represent "names" of any kind as symbols
<foobarbaz> or something whacky
<Gaddel> in this case it's basically just the way methods are...symbolized
<Gaddel> you can convert between methods and symbols rather easily, but they're not interchangeable
<Gaddel> method(:meth_name) will let you call that method
<foobarbaz> :o
<Gaddel> there's also some other fancy syntax involving &, which lets you convert between procs and blocks
Zenigor has joined #ruby
larissa has quit [Quit: Leaving]
<Gaddel> method() is used for top-level methods. so you could do something like method(:puts).call(1) (or method(:puts)[1]), as .[] is an alias for .call)
lw has quit [Quit: s]
ghr has joined #ruby
Gil has quit [Ping timeout: 240 seconds]
Arkaniad has quit [Ping timeout: 245 seconds]
braincrash has joined #ruby
<Gaddel> you can also pass an object's own method as a block argument using a symbol as well
fgo has quit []
mikesplain has quit [Ping timeout: 240 seconds]
bklane has quit [Remote host closed the connection]
<Gaddel> for example, ["abc", "d", "efgh"].map(&:length)
fgo has joined #ruby
<Gaddel> which is equivalent to ["abc", "d", "efgh"].map { |element| element.length }
hamakn has joined #ruby
bklane has joined #ruby
x1337807x has joined #ruby
<Gaddel> it's also customary to use symbols as hash keys, values for enums, and other similar cases where something is considered a name, parameter, or key
jaequery has joined #ruby
<foobarbaz> it's interesting that you suggest symbols key hash keys
<foobarbaz> So I should be doing {key: "value"}
<foobarbaz> then?
<Gaddel> it's so customary that ruby 2.0 made some special syntax for it
GriffinHeart has joined #ruby
<Gaddel> normally you would have to do { :key => "value" } but they added the { key: "value" } syntax for cases where the key is a symbol
<foobarbaz> See before i thought that was just normal JSON :P
<foobarbaz> Is there a way to deal with people accidentally checking the map with
<foobarbaz> "key"
<foobarbaz> ?
<foobarbaz> map = {key: "value"}
<foobarbaz> map["key"] will fail
<foobarbaz> Understandably... But also annoyingly..
bwlang has joined #ruby
<Gaddel> it will, yes. if you're wrapping it somehow you can run .intern on the argument first.
sorpaas has joined #ruby
dc has joined #ruby
<Gaddel> which is an alias for .to_sym
<foobarbaz> lol, ruby actually interns strings?
<Gaddel> symbols are interned strings
<Gaddel> with a special syntax
<foobarbaz> ohhhh
<Gaddel> so if you have an array of 8 billion symbols, all :abc, only one object will be stored
<Gaddel> this also makes them efficient when used as hash keys
mgberlin has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 272 seconds]
<foobarbaz> Is there a REPL bot here?
<foobarbaz> >> 1
<bwlang> i have a rake task that’s leaking memory… CaliperExperiment.order(:id).find_each {|c| c.well_set && c.well_set.save}. it’s up to 10G now… what am i doing wrong?
<eval-in> foobarbaz => 1 (https://eval.in/164096)
ahofmann has joined #ruby
sorpaas has left #ruby [#ruby]
<Gaddel> >> "abc".intern
<eval-in> Gaddel => :abc (https://eval.in/164097)
mgberlin has joined #ruby
<foobarbaz> >> "abc".intern == :abc
<eval-in> foobarbaz => true (https://eval.in/164098)
sorpaas has joined #ruby
<bwlang> tried adding GC.start in the each, but that does not seem to help.
<foobarbaz> >> :abc == "abc".intern
<eval-in> foobarbaz => true (https://eval.in/164099)
<foobarbaz> Hm, Ruby is more interesting than i thought :D
x1337807x has quit [Max SendQ exceeded]
bklane has quit [Ping timeout: 244 seconds]
<Gaddel> :abc.equal? "abc".intern
<Gaddel> >> :abc.equal? "abc".intern
<eval-in> Gaddel => true (https://eval.in/164100)
chrishough has quit [Quit: chrishough]
Zenigor has quit [Remote host closed the connection]
<Gaddel> .equal? can be used to compare object identities. that means the 2 values are stored at the same memory address.
<Gaddel> >> "abc".equal? "abc"
<eval-in> Gaddel => false (https://eval.in/164101)
<Gaddel> as you can see, interning is not done for regular strings
<foobarbaz> hmm
GriffinHeart has quit [Ping timeout: 272 seconds]
<foobarbaz> Why?
<foobarbaz> :)
<foobarbaz> Why are strings mutable? :(
<Gaddel> strings were designed as mutable for whatever reason
<Gaddel> it makes certain kinds of text processing a bit simpler, I think
<Gaddel> I sort of prefer Python's system of all strings being immutable, with no version of mutable strings (except for raw byte arrays)
tectonic has joined #ruby
<foobarbaz> Most languages have immutable strings though?
<Gaddel> correct
<foobarbaz> JavaScript, Java, Scala, C#
<Gaddel> Ruby sacrifices some performance for some added elegance in this case
<foobarbaz> Even PHP :P
jack_rabbit_ has joined #ruby
lukec has quit [Quit: lukec]
jack_rabbit_ has quit [Read error: Connection reset by peer]
<foobarbaz> ah, fair enough
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<foobarbaz> Hasn't been a problem so far, but i'm only a week into ruby haha
mercwithamouth has quit [Ping timeout: 240 seconds]
<Gaddel> it can sometimes be nice having the ability to do "s.gsub!(/\n/\r\n/)"
ndrei has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
<eam> sacrifices performance?
agrinb has joined #ruby
<foobarbaz> Silly question - is `def self.foo etc() end` a static method?
rgrinberg has joined #ruby
jack_rabbit has quit [Quit: SIGSEGV (core dumped)]
jack_rabbit has joined #ruby
mercwithamouth has joined #ruby
<Gaddel> eam: performance is gained when doing lots of concatenating or other scenarions in languages with immutable strings that create lots of new copies of strings, but keeping them immutable means easy auto-interning and string pooling
<Gaddel> it varies depending on use case
<Gaddel> foobarbaz: self means different things depending on the context. in the context of a class, in the first level of the class, then yes it basically means a static method.
earthquake has quit [Quit: earthquake]
ahofmann has quit [Quit: Computer has gone to sleep.]
jaequery has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
figgleberry has quit [Ping timeout: 244 seconds]
<foobarbaz> awesome, thanks Gaddel
<foobarbaz> Do you recommend any books? :)
<foobarbaz> On Ruby ;)
agrinb has quit [Ping timeout: 244 seconds]
<Gaddel> nope, sorry. other people here would probably have some good recommendations. I've yet to read a ruby book.
axsuul has joined #ruby
Gooder has joined #ruby
Arkaniad has joined #ruby
<foobarbaz> heh
<foobarbaz> I'm just doing compilers atm to try and learn
<foobarbaz> Staying away from RoR now
alexandrite_ has joined #ruby
<foobarbaz> What do you use ruby for Gaddel ?
<Gaddel> nothing at the moment, really. I've done some simple sinatra web apps and basic scripts. I'm a Python developer (sort of) by trade.
onewheelskyward has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
yfeldblum has joined #ruby
kenneth has joined #ruby
dawkirst has joined #ruby
alexandrite has quit [Ping timeout: 264 seconds]
havenn has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 264 seconds]
maestrojed has joined #ruby
Gooder has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
diegoviola has joined #ruby
Rojo has quit [Ping timeout: 255 seconds]
Gooder has joined #ruby
Veidit has quit [Read error: Connection reset by peer]
franka_ has quit [Ping timeout: 245 seconds]
dawkirst has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
Veidit has joined #ruby
Fire-Dragon-DoL has joined #ruby
alexandrite_ is now known as jacknife
MrJoshua has quit [Read error: Connection reset by peer]
bwlang has quit [Quit: bwlang]
MrJoshua has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
autonomousdev has quit [Quit: Textual IRC Client: www.textualapp.com]
chris3492 has quit [Quit: Leaving]
kireevco has joined #ruby
blasius has joined #ruby
fgo has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
rgrinberg has quit [Quit: Leaving.]
rgrinberg has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
shalicke has quit [Read error: Connection reset by peer]
bklane has joined #ruby
lukec has joined #ruby
enape_101 has quit [Ping timeout: 264 seconds]
<isomorphismes> got a design question
Fire-Dragon-DoL has quit [Quit: Leaving.]
blasius has quit [Ping timeout: 244 seconds]
<isomorphismes> http://github.com/kenpratt/wikipedia-client/blob/master/lib/wikipedia.rb He's hard-coded en.wikipedia org and I want to add in an option that makes it en, ru, de, az, cs, etc
mradmacher has joined #ruby
dapz has joined #ruby
<foobarbaz> Gaddel: Ah, cool! :)
<isomorphismes> Clearly all I have to do is make a hash { :english => 'en', :russian => 'ru', ...} --- but design pattern wise, where should I put that?
coderhs has joined #ruby
<foobarbaz> isomorphismes: What is line 27 about?
<isomorphismes> oh and thanks everyone who's been helping me finish the ruby koans, here. Finished them the other day and very grateful for all the help I received here.
<foobarbaz> is that a weird function call or something?
rgrinberg has quit [Client Quit]
<isomorphismes> foobarbaz: Is that a rhetorical question? I'm not sure what you're getting at.
Bumptious has joined #ruby
<Gaddel> foobarbaz: that's an example of ruby DSL
<foobarbaz> :o
<Gaddel> using the magic of instance_eval and blocks
<foobarbaz> For someone who doesn't use Ruby, you know a lot of ruby ;)
Channel6 has joined #ruby
<Gaddel> I'm not even sure how I know the amount I do
<foobarbaz> haha
<Gaddel> my university offered a Rails class which I just took but it didn't cover any of the advanced language stuff
Fire-Dragon-DoL has joined #ruby
rgrinberg has joined #ruby
<foobarbaz> Awesome!
<foobarbaz> My university taught me nothing! yay
<foobarbaz> :]
<isomorphismes> lol
<Gaddel> almost all of the classes in my degree were useless from a programming and professional perspective, with maybe the exception of that one class
<sara2010> any one there !
<Gaddel> I actually work in information security though, not programming
<Gaddel> sara2010: yes
<foobarbaz> isomorphismes: def self.find( page, options = {}, language = :english)
freerobby has quit [Quit: Leaving.]
<foobarbaz> So offer configurable language, but default to english so you don't break existing code?
<foobarbaz> Then shove in a map like you said
<foobarbaz> I have to hold back my Java enterprise knowledge when thinking of Ruby
<foobarbaz> I'd get rid of the static method access, and favour DI <3
jacknife is now known as xxEmOv4mPiReXx
<isomorphismes> foobarbaz: is that good design pattern wise?
<foobarbaz> Then write an interace for interacting with a generic web page
<foobarbaz> Then use the strategy pattern to make it externally configurable
<isomorphismes> like I don't want him to feel like I've just mucked up something. Maybe I should create a separate file?
<foobarbaz> provide implementations for each english type
<foobarbaz> language type*
<foobarbaz> Oh Java <3
<isomorphismes> definitely default to english
<isomorphismes> DI = ?
<isomorphismes> static method access = ?
<isomorphismes> what is the strategy pattern?
<Gaddel> isomorphismes: where do you want these options to be passed exactly?
<foobarbaz> I'd want to be able to create a client in a specific language, and keep it that way TBH
<foobarbaz> Rather than keep passsing it in as a method param
<isomorphismes> Gaddel: as far as I know it only needs to go to that one spot.
<foobarbaz> # basically just a wrapper for doing
<foobarbaz> # client = Wikipedia::Client.new
<isomorphismes> Maybe I need to make my own fork and clone to my computer while I work this otu and make sure it doesn't break things. ....
<foobarbaz> yeah, you'll change the Client class
teddyp1cker has joined #ruby
<Gaddel> you see the Configure method, right?
<isomorphismes> foobarbaz: well we don't know for example that let's say "Header" isn't parsed differently in Russian
Cache_Money has joined #ruby
<isomorphismes> Gaddel: yea, this is a design question
<Gaddel> you could just extend/change that to take language 'en' instead of domain '...'
<foobarbaz> `@client ||= Wikipedia::Client.new`
<Gaddel> well personally I find his current use of DSL for the configuration way, way overengineered and silly
<foobarbaz> That's cool
datafirm has joined #ruby
<isomorphismes> Gaddel: what do you mean?
<Gaddel> since I'm pedantic I'd probably overhaul and rewrite most of that
Gil has joined #ruby
<foobarbaz> It's very cutesy though
<isomorphismes> well I want him to accept my pull requewt
<isomorphismes> that's my main goal -- for him not to feel like I've done something untoward
nesoi has joined #ruby
<isomorphismes> but I dont really know what standards are
<Gaddel> basically I see no reason why all the config options can't just be a hash passed to the constructor. or even if they aren't, .configure should simply accept a hash.
mikesplain has joined #ruby
<isomorphismes> Gaddel: ok. But wouldn't it be ugly to place that in this file? This file doesn't seem like a "configuration place" really...
<Gaddel> but regardless, if you want him to take the commit then you'll want to edit https://github.com/kenpratt/wikipedia-client/blob/master/lib/wikipedia/client.rb
MrJoshua has quit [Quit: MrJoshua]
<pontiki> fork it, branch it, test it, pr it -- daft punk opensource
<isomorphismes> thanks Gaddel
<Gaddel> and replace/add support for the :language option
<isomorphismes> haha
<Gaddel> as for where to store the hash that maps :english to "en"...
<Gaddel> probably a new protected method in that file
Takle has joined #ruby
<Gaddel> actually, better as a constant
<Gaddel> right under BASE_URL
<Gaddel> LANGUAGE_MAP = { english: "en", ... }
teddyp1cker has quit [Ping timeout: 272 seconds]
Gil has quit [Ping timeout: 255 seconds]
mikesplain has quit [Ping timeout: 245 seconds]
x1337807x has quit [Ping timeout: 245 seconds]
<Gaddel> and then modify url_for to construct the domain as "domain = LANGUAGE_MAP[options[:language]]"
arrubin has quit [Quit: Textual IRC Client: www.textualapp.com]
<isomorphismes> thankyou Gaddel
<Gaddel> there may be a better way to do it...I don't really code any Ruby at all, and this was just at a quick glance
<Gaddel> but that's probably a good way to do it while integrating with the current project
dc has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 244 seconds]
lw has joined #ruby
bluOxigen has joined #ruby
<foobarbaz> Gaddel: I agree with you on this matter too
whowantstolivef3 has joined #ruby
<Gaddel> if you want to retain backwards compatibility, leave the domain option and do a check for if the domain option was set. if it was use that, and if not look for the language option.
<foobarbaz> I am not a ruby guy either, however :)
ponga has joined #ruby
yfeldblu_ has joined #ruby
enape_101 has joined #ruby
lukec has quit [Quit: lukec]
<foobarbaz> If i've defined a module in a different file, do i still need to do require_relational 'filename' ?
<foobarbaz> require_relative *
whowantstolivefo has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
felixdd has quit [Ping timeout: 255 seconds]
<foobarbaz> "This may be useful during a development phase, for accessing test data, or even for accessing files that are "locked" away inside a project, not intended for outside use."
<foobarbaz> Gaddel: these are just straight up ruby classes i don't mind people having access to
pontiki has quit [Ping timeout: 245 seconds]
<foobarbaz> Is there a ruby convention i'm not aware of perhaps?
<foobarbaz> Do I need to place everything under a folder called 'src' or such perhaps?
<Gaddel> sort of. it varies depending on the size of the project, version control system, etc.
<Gaddel> typically there'll be a lib and a bin folder. you can look at some popular ruby projects on github to get an idea
<Gaddel> i'll be heading out now. see ya guys.
Gaddel has quit []
fgo has joined #ruby
mgberlin has quit [Ping timeout: 240 seconds]
pontiki has joined #ruby
agrinb has joined #ruby
<sara2010> any one help ?
lkba has quit [Read error: Connection reset by peer]
Ankhers has quit [Remote host closed the connection]
testcore has quit [Remote host closed the connection]
sorpaas has quit [Ping timeout: 240 seconds]
testcore has joined #ruby
Ankhers has joined #ruby
razrunelord has joined #ruby
lkba has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
MrJoshua has joined #ruby
mikepack has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 240 seconds]
mgberlin has joined #ruby
ehc has joined #ruby
MatthewsFace has joined #ruby
chrishough has joined #ruby
lw has quit [Quit: s]
chris349 has joined #ruby
razrunelord has quit [Ping timeout: 264 seconds]
sugihara has joined #ruby
JohnBat26 has joined #ruby
axsuul has joined #ruby
kireevco has quit [Quit: Leaving.]
jtiggo has joined #ruby
<isomorphismes> thanks foobarbaz
<foobarbaz> sara2010: sorry, what was the question? :)
Rollabunna has joined #ruby
dr0ff has joined #ruby
<sara2010> foobarbaz ... http://pastebin.centos.org/10076/
havenwood has joined #ruby
<sara2010> i m using centos !
<foobarbaz> D:
<isomorphismes> sara2010: that webpage doesn't load for me
dc has joined #ruby
<isomorphismes> isup.me/pastebin.centos.org
<foobarbaz> what do you get with `ruby --version` and `gem --version` ?
ehc has quit [Quit: ehc]
<foobarbaz> isomorphismes: worked for me
iliketurtles has joined #ruby
<havenwood> didn't work for me
<isomorphismes> isup.me says it's down
<isomorphismes> well this is weird
<foobarbaz> gem install rails
<foobarbaz> ERROR: http://rubygems.org/ does not appear to be a repository
<havenwood> gist.github.com
<foobarbaz> ERROR: could not find gem rails locally or in a repository
<foobarbaz> it's only 3 lines.
<havenwood> sara2010: does updating RubyGems work?: gem update --system
dc has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cya]
anarang has joined #ruby
dc has joined #ruby
teddyp1cker has joined #ruby
absolutezeroff has joined #ruby
<havenwood> the current proper source is https not http
jrhe has quit [Quit: Connection closed for inactivity]
Rollabunna has quit [Ping timeout: 272 seconds]
<foobarbaz> havenwood: Good catch :)
<foobarbaz> Didn't notice that difference when I did, gem sources
<havenwood> if it isn't an old RubyGems the other way the http could get there would be a gemrc file
<havenwood> sara2010: but i'd be interested too in the versions foobarbaz asked
chris349 has quit [Quit: Leaving]
<havenwood> i don't know why i'm talking like yoda >.>
<Hanmac> havenwood: watched DoctorWho? or AT?
<havenwood> the latter
axsuul has quit [Ping timeout: 240 seconds]
brian___ has quit [Quit: brian___]
techsethi has joined #ruby
bklane has quit [Quit: Leaving...]
toastynerd has joined #ruby
axsuul has joined #ruby
rgrinberg has quit [Quit: Leaving.]
phinfonet has quit []
oo_ has joined #ruby
<sara2010> foobarbaz .. gem -v
<sara2010> 1.3.6
<sara2010> foobarbaz .. ruby -v
<sara2010> ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
anarang has quit [Quit: Leaving]
<sevenseacat> ouch
absolutezeroff has quit [Remote host closed the connection]
Tricon has quit [Quit: Leaving...]
blasius has joined #ruby
<mozzarella> that would explain her nickname
<sevenseacat> lol
pontiki has quit [Ping timeout: 264 seconds]
rgrinberg has joined #ruby
<mozzarella> it's time to let it go, 2010 was a terrible year anyway
pontiki has joined #ruby
dawkirst has joined #ruby
<sara2010> foobarbaz !
blasius has quit [Ping timeout: 244 seconds]
e^0 has quit [Quit: WeeChat 0.4.3]
axsuul_ has joined #ruby
mgberlin has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
blasius has joined #ruby
JokerDoom has joined #ruby
aganov has joined #ruby
GriffinHeart has joined #ruby
testcore has quit [Remote host closed the connection]
MrJoshua has quit [Quit: MrJoshua]
testcore has joined #ruby
blasius has quit [Ping timeout: 240 seconds]
__JokerDoom has quit [Ping timeout: 240 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
Kryptonical has joined #ruby
mikepack has joined #ruby
GriffinHeart has quit [Ping timeout: 244 seconds]
enape_101 has quit [Ping timeout: 245 seconds]
scx has joined #ruby
scx_ has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
aspires has quit []
Gil has joined #ruby
Shidash has joined #ruby
mikesplain has joined #ruby
tobago has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
Gil has quit [Read error: No route to host]
Gil_ has joined #ruby
karmatr__ has quit []
ghr has joined #ruby
fgo has joined #ruby
Gil_ has quit [Read error: Connection timed out]
mikesplain has quit [Ping timeout: 255 seconds]
rezzack has quit [Ping timeout: 255 seconds]
Gil has joined #ruby
Channel6 has quit [Quit: Leaving]
techsethi has quit [Quit: techsethi]
Cache_Money has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
mikepack has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
timgauthier has joined #ruby
tiguser has joined #ruby
zigomir has joined #ruby
techsethi has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
ikilledthecat has joined #ruby
dc has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
axsuul_ has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
ksinkar has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
techsethi has quit [Client Quit]
markour has quit [Quit: WeeChat 0.3.7]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agrinb has quit [Ping timeout: 255 seconds]
jtiggo has quit []
jaequery has joined #ruby
fgo has quit [Remote host closed the connection]
axsuul has joined #ruby
dapz has joined #ruby
timonv has joined #ruby
ta has quit [Remote host closed the connection]
Gil has quit [Remote host closed the connection]
ta has joined #ruby
Gil has joined #ruby
axsuul has quit [Ping timeout: 255 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 240 seconds]
jaequery has joined #ruby
sski has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
Jayson_Virissimo has joined #ruby
predator117 has quit [Ping timeout: 244 seconds]
predator117 has joined #ruby
ta has quit [Ping timeout: 240 seconds]
Gil has quit [Ping timeout: 272 seconds]
fold has quit [Ping timeout: 245 seconds]
duncannz has joined #ruby
sski has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
tagrudev has joined #ruby
JohnBat26 has quit [Ping timeout: 240 seconds]
rrios has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
r_rios has quit [Ping timeout: 255 seconds]
heftig has quit [Quit: Quitting]
kireevco has quit [Client Quit]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
_justin has joined #ruby
Bosox20051 has quit [Ping timeout: 240 seconds]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
iliketurtles has joined #ruby
dda has quit [Quit: logging out.]
apeiros has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
apeiros has joined #ruby
ta has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
sigurding has joined #ruby
blasius has joined #ruby
ndrei has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
Jayson_Virissimo has quit [Quit: Leaving]
apeiros has quit [Ping timeout: 244 seconds]
skylite has joined #ruby
dilated_dinosaur has quit [Ping timeout: 240 seconds]
dc has joined #ruby
blasius has quit [Ping timeout: 244 seconds]
iliketurtles has quit [Quit: zzzzz…..]
dc has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
ta has quit [Ping timeout: 240 seconds]
mikesplain has joined #ruby
djbkd has quit [Remote host closed the connection]
axsuul has joined #ruby
Macaveli has joined #ruby
ta has joined #ruby
ra4king1 has joined #ruby
_justin has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
Shidash has quit [Ping timeout: 272 seconds]
ponga has quit [Remote host closed the connection]
jprovazn has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
ra4king has quit [Disconnected by services]
ra4king1 is now known as ra4king
mikesplain has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
Ankhers has joined #ruby
MrDoctor has joined #ruby
abi-hto has quit [Ping timeout: 240 seconds]
dilated_dinosaur has joined #ruby
_justin has joined #ruby
NukePuppy has joined #ruby
timgauthier has quit [*.net *.split]
sigurding has quit [*.net *.split]
yfeldblu_ has quit [*.net *.split]
Caius has quit [*.net *.split]
soulcake has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
ejnahc has quit [*.net *.split]
PanPan has quit [*.net *.split]
Mongey has quit [*.net *.split]
kies has quit [*.net *.split]
dmyers has quit [*.net *.split]
blackgoat has quit [*.net *.split]
ninegrid has quit [*.net *.split]
sara2010 has quit [*.net *.split]
tsunamie has quit [*.net *.split]
ccooke has quit [*.net *.split]
axilla has quit [*.net *.split]
hackeron has quit [*.net *.split]
kith has quit [*.net *.split]
sumark has quit [*.net *.split]
descala has quit [*.net *.split]
segmond has quit [*.net *.split]
magicien has quit [*.net *.split]
markl3ster has quit [*.net *.split]
netf has quit [*.net *.split]
peckermanzzz has quit [*.net *.split]
timfoo has quit [*.net *.split]
tyfighter has joined #ruby
mengu has quit [Remote host closed the connection]
danielpclark is now known as tomblery
shevy has joined #ruby
anarang has joined #ruby
linojon has joined #ruby
Deejay has joined #ruby
Deejay is now known as Guest28201
ta has quit [Read error: Connection reset by peer]
zigomir has quit [Remote host closed the connection]
timgauthier has joined #ruby
ejnahc has joined #ruby
PanPan has joined #ruby
dmyers has joined #ruby
kies has joined #ruby
tsunamie has joined #ruby
kith has joined #ruby
Caius has joined #ruby
descala has joined #ruby
sara2010 has joined #ruby
markl3ster has joined #ruby
Mongey has joined #ruby
ninegrid has joined #ruby
sumark has joined #ruby
segmond has joined #ruby
hackeron has joined #ruby
peckermanzzz has joined #ruby
tkuchiki has joined #ruby
axilla has joined #ruby
netf has joined #ruby
soulcake has joined #ruby
ccooke has joined #ruby
yfeldblu_ has joined #ruby
magicien has joined #ruby
blackgoat has joined #ruby
timfoo has joined #ruby
ejnahc has quit [Max SendQ exceeded]
tsunamie has quit [Max SendQ exceeded]
ejnahc has joined #ruby
zigomir has joined #ruby
kwd has joined #ruby
tsunamie has joined #ruby
apeiros has joined #ruby
tomblery is now known as danielpclark
MrDoctor has quit [Remote host closed the connection]
MrDoctor has joined #ruby
bradleyprice has joined #ruby
yubrew has joined #ruby
zigomir has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
razrunelord has joined #ruby
m8 has quit [Quit: Sto andando via]
yubrew has quit [Ping timeout: 240 seconds]
ta has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
agrinb has quit [Ping timeout: 255 seconds]
xcv has joined #ruby
spicerack has joined #ruby
relix has joined #ruby
fgo has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
fluve has quit []
alem0lars has joined #ruby
apeiros has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
apeiros has joined #ruby
ohcibi has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Guest28201 has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby
klaut has joined #ruby
NukePuppy has quit [Ping timeout: 272 seconds]
Deejay_ has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
ehlovader has quit [Ping timeout: 276 seconds]
ponga has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
jeet1 has joined #ruby
IceDragon has quit [Quit: Space~~~]
ponga has quit [Ping timeout: 240 seconds]
Kricir has quit []
ikilledthecat has quit [Ping timeout: 245 seconds]
phoo1234567 has quit [Remote host closed the connection]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
sski has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
Morkel has joined #ruby
timonv has joined #ruby
Rydekull has quit [Changing host]
Rydekull has joined #ruby
noop has joined #ruby
jaequery has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
axsuul has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> tagrudev: yolo
<tagrudev> certainty, sup
kilk_ has joined #ruby
<certainty> starting work, awake since 4:40, tired as hell. That's sums it up. What about you?
* apeiros wonders how cats greet… yolnt?
Takle has joined #ruby
fabrice31 has joined #ruby
felixdd has joined #ruby
alem0lars has quit [Quit: Going AFK...]
blasius has joined #ruby
alem0lars has joined #ruby
bw_ has left #ruby [#ruby]
blasius_ has joined #ruby
blasius has quit [Read error: Connection reset by peer]
subraminion has joined #ruby
kilk_ has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
MrDoctor has quit [Remote host closed the connection]
tessi_zz is now known as tessi
MrDoctor has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
coderhs has joined #ruby
sarkis has quit [Ping timeout: 272 seconds]
MrDoctor has quit [Read error: No route to host]
danielpclark has quit [Remote host closed the connection]
MrDoctor_ has joined #ruby
blasius_ has quit [Ping timeout: 244 seconds]
datafirm has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
mikesplain has joined #ruby
mikepack has joined #ruby
mikesplain has quit [Read error: Connection reset by peer]
mikespla_ has joined #ruby
<Hanmac> apeiros: i have seen it with my cats, they greet eachother with "nyaa~" ;P
zigomir has joined #ruby
sigurding has joined #ruby
ghr has joined #ruby
datafirm has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
shevy has joined #ruby
Ankhers has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 240 seconds]
pu22l3r_ has joined #ruby
Ankhers has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
ponga has joined #ruby
ponga has quit [Client Quit]
mikespla_ has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
greenarrow has joined #ruby
kilk_ has joined #ruby
rasta-man has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
<RubyPanther> they have to really love each other to get a head-bump
bradleyprice has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
gsvolt has quit [Ping timeout: 252 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby
Hanmac1 has joined #ruby
ta has quit [Read error: Connection reset by peer]
MrDoctor_ has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 244 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
Takle has joined #ruby
tyfighter has quit [Quit: tyfighter]
atraylen has joined #ruby
agrinb has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
r00ster has joined #ruby
bradleyprice has quit [Ping timeout: 244 seconds]
shevy has quit [Ping timeout: 240 seconds]
Deejay_ has quit [Quit: Computer has gone to sleep.]
tectonic has quit []
agrinb has quit [Ping timeout: 240 seconds]
sarkis has joined #ruby
atraylen has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
LekeFly has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
hermanmunster has left #ruby [#ruby]
hermanmunster has joined #ruby
sarkis has quit [Ping timeout: 240 seconds]
LekeFly has quit [Ping timeout: 240 seconds]
bradleyprice has joined #ruby
rasta-man has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
mengu has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
cina has joined #ruby
djbkd has joined #ruby
isthisreallife has joined #ruby
himsin has joined #ruby
LiohAu has joined #ruby
cina has quit [Client Quit]
shevy has joined #ruby
alex88 has joined #ruby
sepp2k has joined #ruby
timonv has joined #ruby
ta has joined #ruby
dr0ff has left #ruby [#ruby]
moritzschaefer has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
Eyes has quit [Ping timeout: 264 seconds]
shredding has joined #ruby
dumdedum has joined #ruby
timonv_ has joined #ruby
fgo has joined #ruby
Takle has quit [Remote host closed the connection]
hermanmunster has quit [Remote host closed the connection]
hermanmunster has joined #ruby
bradleyprice has quit [Ping timeout: 264 seconds]
timonv has quit [Ping timeout: 272 seconds]
minda has joined #ruby
<minda> can we use a when do statement?
<minda> when input a > 5 do a * 50
<Edelwin> if then ?
<minda> oh
<minda> what is when used for?
holden247 has joined #ruby
holden247 has left #ruby [#ruby]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elaptics`away is now known as elaptics
hermanmunster has quit [Ping timeout: 272 seconds]
<minda> what's wrong with my code?
Takle has joined #ruby
<DefV> minda: var is a String
Kryptonical has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
<DefV> and =< is not valid (it's a duck-face). <= is what you want
ghr has joined #ruby
<DefV> it should be
<DefV> var = gets.to_i
Derander has quit [Excess Flood]
<minda> thank you
neque has joined #ruby
<minda> is there a way that someone could get tested if they're stupid or not?
Eyes has joined #ruby
Takle has quit [Remote host closed the connection]
<DefV> yes, it's called IRC
<sevenseacat> o.O
<DefV> testing so far shows you are
<DefV> but it's not 100% conclusive yet
<Edelwin> :')
sigurding has quit [Quit: sigurding]
<Edelwin> +1
<Hanmac1> otherwise:
<Hanmac1> >> val = 2; ["Number is negative.", "Number is zero.", "Number is positive."][(val <=> 0) + 1]
<eval-in> Hanmac1 => "Number is positive." (https://eval.in/164146)
Hanmac1 is now known as Hanmac
ikaros has joined #ruby
<DefV> Hanmac: oh boy
<minda> wow that looks good and complicated
<minda> i'd like to be officially called a retard, if i can
LekeFly has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
kp666 has joined #ruby
alem0lars has quit [Quit: Going AFK...]
r00ster has quit [Quit: Peace]
mikecmpbll has joined #ruby
minda has quit [Quit: minda]
datafirm has joined #ruby
MrDoctor has joined #ruby
sigurding has joined #ruby
alem0lars has joined #ruby
mikesplain has joined #ruby
techsethi has joined #ruby
isthisreallife has quit [Ping timeout: 244 seconds]
mehlah has joined #ruby
senayar has joined #ruby
datafirm has quit [Ping timeout: 240 seconds]
<apeiros> Hanmac: I expected your solution to be the hackier one :)
<apeiros> >> val = 2; ["Number is zero.", "Number is positive.", "Number is negative."][(val <=> 0)]
<eval-in> apeiros => "Number is positive." (https://eval.in/164151)
Darryl has joined #ruby
<apeiros> >> val = -2; ["Number is zero.", "Number is positive.", "Number is negative."][(val <=> 0)]
<eval-in> apeiros => "Number is negative." (https://eval.in/164152)
<apeiros> no +1 needed ;-D
<Hanmac> damm yeah you are right ;D
<sevenseacat> val = 0; ["Number is zero.", "Number is positive.", "Number is negative."][(val <=> 0)]
<certainty> >> val = 0; ["Number is zero.", "Number is positive.", "Number is negative."][(val <=> 0)]
<eval-in> certainty => "Number is zero." (https://eval.in/164153)
<Hanmac> but the () is also not nedded for you
<sevenseacat> nice
mikesplain has quit [Ping timeout: 240 seconds]
<apeiros> Hanmac: true
<certainty> great minds think alive, ^5 sevenseacat
rgrinberg has quit [Quit: Leaving.]
<certainty> erm alike
<certainty> but i bet alive as well :D
Jamo has quit [Disconnected by services]
<sevenseacat> :P
jamo_ is now known as Jamo
<Hanmac> >> val = 0; "Number is %s." % ["zero", "positive", "negative"][val <=> 0]
<Hanmac> did i broke the bot again?
codecop has quit [Remote host closed the connection]
<certainty> eval-in is a sissy
_justin has quit [Quit: _justin]
Takle has joined #ruby
Jamo has quit [Quit: leaving]
Jamo has joined #ruby
jamo_ has joined #ruby
thomasxie has joined #ruby
techsethi has quit [Ping timeout: 240 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
techsethi has joined #ruby
timonv_ has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
Derander has joined #ruby
Derander has quit [Excess Flood]
sheperson has joined #ruby
Xeago has joined #ruby
dmyers has quit [Quit: dmyers]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Derander has joined #ruby
rgrinberg has joined #ruby
thomasxie1 has joined #ruby
havenwood has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has joined #ruby
WishBoy has joined #ruby
moritzschaefer has quit [Ping timeout: 244 seconds]
pen_ has joined #ruby
MrDoctor has quit [Remote host closed the connection]
MrDoctor has joined #ruby
thomasxie has quit [Ping timeout: 245 seconds]
Xeago_ has joined #ruby
Zai00 has joined #ruby
ephemerian has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
razrunelord has joined #ruby
pencilcheck has quit [Ping timeout: 272 seconds]
techsethi has quit [Ping timeout: 244 seconds]
Zai00 has quit [Client Quit]
thomasxie1 has quit [Client Quit]
agrinb has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
sarkis has joined #ruby
thomasxie has quit [Remote host closed the connection]
techsethi has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
olivier_bK has joined #ruby
thomasxie has joined #ruby
thomasxie has quit [Remote host closed the connection]
MrDoctor has quit [Ping timeout: 240 seconds]
dayepa has quit [Ping timeout: 240 seconds]
WishBoy has quit []
lkba has quit [Ping timeout: 240 seconds]
Morkel_ has joined #ruby
razrunelord has quit [Ping timeout: 240 seconds]
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
sarkis has quit [Ping timeout: 255 seconds]
Port3M5 has joined #ruby
boris has joined #ruby
dayepa has joined #ruby
dayepa has quit [Read error: Connection reset by peer]
subraminion has quit [Quit: Computer has gone to sleep.]
subraminion has joined #ruby
Port3M5[Work] has quit [Ping timeout: 272 seconds]
dayepa has joined #ruby
Rollabunna has joined #ruby
CorpusCallosum has joined #ruby
enape_101 has joined #ruby
djbkd has joined #ruby
workmad3 has joined #ruby
moted has quit [Ping timeout: 264 seconds]
Rollabunna has quit [Ping timeout: 240 seconds]
postmodern has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
lkba has joined #ruby
enape_101 has quit [Ping timeout: 264 seconds]
djbkd has quit [Ping timeout: 255 seconds]
benlieb has quit [Quit: benlieb]
moritzschaefer has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
ohcibi has joined #ruby
jeet2 has joined #ruby
MrDoctor has joined #ruby
Kryptonical has joined #ruby
ringarin has joined #ruby
mijicd has joined #ruby
jeet1 has quit [Ping timeout: 245 seconds]
Joulse has quit [Quit: Joulse]
Joulse has joined #ruby
Joulse has quit [Client Quit]
_justin has joined #ruby
Joulse has joined #ruby
havenwood has joined #ruby
mercerist has joined #ruby
Zai00 has joined #ruby
mengu has quit [Remote host closed the connection]
AlSquire has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
mijicd has quit [Quit: leaving]
dilated_dinosaur has quit [Ping timeout: 264 seconds]
mijicd has joined #ruby
blasius has joined #ruby
marr has joined #ruby
subraminion has quit [Quit: Lingo - http://www.lingoirc.com]
nszceta has joined #ruby
echevemaster has quit [Quit: Leaving]
blasius has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
rgrinberg has quit [Quit: Leaving.]
Deejay_ has joined #ruby
mikepack has joined #ruby
senayar has quit [Remote host closed the connection]
datafirm has joined #ruby
Kryptonical has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
mikesplain has joined #ruby
grieg has joined #ruby
blackmesa has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
brasten has joined #ruby
abuzze has joined #ruby
andrewlio has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
mikesplain has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
dilated_dinosaur has joined #ruby
flughafen has quit [Quit: WeeChat 0.4.1]
ndrei has joined #ruby
rdark has joined #ruby
benlieb has joined #ruby
cephalostrum has quit [Ping timeout: 240 seconds]
Port3M5 has quit [Ping timeout: 264 seconds]
iaj has quit [Ping timeout: 264 seconds]
dawkirst has quit [Remote host closed the connection]
alexandrite_ has joined #ruby
mehlah has quit [Quit: Linkinus - http://linkinus.com]
cephalostrum has joined #ruby
jottr has joined #ruby
sevenseacat has quit [Quit: Leaving.]
coderhs has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
coderhs has joined #ruby
mehlah has joined #ruby
xxEmOv4mPiReXx has quit [Ping timeout: 264 seconds]
agrinb has joined #ruby
dawkirst has joined #ruby
mercerist has quit [Ping timeout: 240 seconds]
sarkis has joined #ruby
agrinb has quit [Ping timeout: 264 seconds]
alem0lars has quit [Quit: Going AFK...]
Port3M5 has joined #ruby
jeet3 has joined #ruby
dANOKELOFF has joined #ruby
pen_ has quit [Remote host closed the connection]
pencilcheck has joined #ruby
sarkis has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
jeet2 has quit [Ping timeout: 240 seconds]
rdark_ has joined #ruby
karupa is now known as zz_karupa
brunops has quit [Ping timeout: 264 seconds]
moritzschaefer has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
jheg has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
datafirm has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
rajni has joined #ruby
sigurding has quit [Quit: sigurding]
qba73 has joined #ruby
<rajni> Hello there, can you check if this synthax is correct: ssh_info[:private_key_path].map { |p| "-i '#{Vagrant::Util::Platform.cygwin_path(p)}'" } the fnction exists but it returns nothing..
<rajni> p is a windows path
sigurding has joined #ruby
dANOKELO_ has joined #ruby
charliesome has joined #ruby
jeet4 has joined #ruby
Takle has quit [Remote host closed the connection]
dANOKELOFF has quit [Ping timeout: 240 seconds]
brunops has joined #ruby
AndChat| has joined #ruby
skaflem has joined #ruby
jeet3 has quit [Ping timeout: 240 seconds]
<canton7> rajni, that's syntactically correct. what makes you say it returns nothing?
lkba has quit [Ping timeout: 240 seconds]
<canton7> is ssh_info[:private_key_path] an array?
forcefsck has joined #ruby
pencilcheck has quit []
pencilcheck has joined #ruby
decoponio has joined #ruby
rajni has quit [Ping timeout: 246 seconds]
pencilcheck has quit [Client Quit]
dapz has quit [Ping timeout: 240 seconds]
pencilcheck has joined #ruby
greenarr_ has joined #ruby
pencilcheck is now known as pen
greenarrow has quit [Read error: No route to host]
relix has joined #ruby
forcefsck has quit [Client Quit]
chth0n has joined #ruby
Takle has joined #ruby
thomasxie has joined #ruby
thomasxie has quit [Remote host closed the connection]
yubrew has joined #ruby
AndChat| has quit [Ping timeout: 240 seconds]
* pontiki waves
ayaz has joined #ruby
<sara2010> hmmm
<gregf_> >> val=2; puts "number is %s" % ([ "0", "+ve", "-ve" ][val <=> 0]);
benlieb has quit [Quit: benlieb]
<sara2010> hi ayaz !
blasius has joined #ruby
zarubin has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
<Hanmac> charliesome: the bot does not like us anymore :(
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
<charliesome> >> "han" + "mac: fixed"
<eval-in> charliesome => "hanmac: fixed" (https://eval.in/164265)
blasius has quit [Ping timeout: 240 seconds]
<Hanmac> yeay
<gregf_> >> [0,1,-2].each { |val| "#{val} is %s" % ([ "0", "+ve", "-ve" ][val <=> 0]) }
<eval-in> gregf_ => [0, 1, -2] (https://eval.in/164266)
<DefV> haha
<workmad3> >> "han" "mac" ": " "hi :)"
<eval-in> workmad3 => "hanmac: hi :)" (https://eval.in/164267)
<Hanmac> gregf_ you need map not each
<workmad3> gregf_: .each always returns the collection it's called on
<gregf_> ah ok
alem0lars has quit [Quit: Going AFK...]
banister has joined #ruby
<gregf_> er, but it works from the cmd prompt :/
<DefV> only the return value is printed
<workmad3> gregf_: in irb, did you by any chance do 'puts ...' inside the block? :)
<gregf_> ah yeah ;)
<workmad3> gregf_: and then at the end, you got a '=> [0, 1, -2]' I bet ;)
banisterfiend has quit [Ping timeout: 244 seconds]
<gregf_> workmad3: nope :/
ghr has quit []
ghr has joined #ruby
<gregf_> [0,1,-2].each { |val| puts "#{val} is %s" % ([ "0", "+ve", "-ve" ][val <=> 0]) }; <<= 0 is 0, 1 is +ve, -2 is -ve
banister_ has joined #ruby
<Hanmac> yeah you forgot the puts
<gregf_> >> [0,1,-2].each { |val| puts "#{val} is %s" % ([ "0", "+ve", "-ve" ][val <=> 0]) }
<eval-in> gregf_ => 0 is 0 ... (https://eval.in/164268)
<gregf_> hmm
mikesplain has joined #ruby
<gregf_> Hanmac, workmad3: ta
banister has quit [Read error: Connection reset by peer]
iaj has joined #ruby
Joulse has quit [Quit: Joulse]
mengu has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
chrishough has quit [Quit: chrishough]
cover has joined #ruby
jeet has joined #ruby
<gregf_> print (("0","+ve","-ve")[$_ <=> 0]) for -1..1; <== thats in perl :/ quite similar
jeet4 has quit [Ping timeout: 272 seconds]
fgo has quit [Remote host closed the connection]
<workmad3> gregf_: for -1..1; puts #{val} is %s" % ([ "0", "+ve", "-ve" ][i]); end is also valid ruby
<workmad3> >> for -1..1; puts #{val} is %s" % ([ "0", "+ve", "-ve" ][i]); end
<eval-in> workmad3 => /tmp/execpad-3cdaad6822ef/source-3cdaad6822ef:2: syntax error, unexpected .., expecting :: or '[' or '.' ... (https://eval.in/164272)
<workmad3> apart from where I screw up the syntax :)
<workmad3> >> for -1..1; puts "#{val} is %s" % ([ "0", "+ve", "-ve" ][i]); end
<workmad3> for i in -1..1
<workmad3> oops
mercerist has joined #ruby
<matti> How is for like this valid ruby?
<matti> Better ;]
<workmad3> matti: because I suck? :)
Rollabunna has joined #ruby
franka_ has joined #ruby
<matti> workmad3: <3 <3
<sara2010> matti ... :$
<matti> workmad3: In order to uplift your self esteem, a manadatory kiten photo: http://i.crackedcdn.com/phpimages/article/9/7/6/41976.jpg?v=1
<matti> sara2010: Hi.
<matti> sara2010: I am going into a meetig in 5 min. Have you made any progress since yesterday?
ponga has quit [Remote host closed the connection]
treehug88 has joined #ruby
<sara2010> matti .. yah i change OS , and
<matti> LOL
<sara2010> now mostaly its complete
<matti> Cool.
<sara2010> got error again!
blackmesa has quit [Ping timeout: 240 seconds]
banister has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
<matti> Oh noes, an error!
agrinb has joined #ruby
bookies has joined #ruby
<matti> sara2010: What sort of error? ;]
<bookies> is there a way to check if the number i get back is rounded?
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
<csmrfx> bookies: what is the object type
<matti> sara2010: Holy fuck.
<bookies> its decimal. I want to know when it returns a float like 3.1 and when it returns whole number like 3
<matti> sara2010: Is that Windows?
<csmrfx> bookies can you do .class on it?
<sara2010> matti .. yes
<csmrfx> > n = 10.0; n.class
<csmrfx> >> n = 10.0; n.class
<eval-in> csmrfx => Float (https://eval.in/164273)
<csmrfx> >> n = 10; n.class
<eval-in> csmrfx => Fixnum (https://eval.in/164274)
<bookies> csmrfx: it returns, float.
<matti> sara2010: I will use a bit more artistic expression in this case to show you my disapproval: https://i.imgur.com/MHuW96t.gif
<matti> sara2010: Good luck!
<csmrfx> bookies also you can test
razrunelord has joined #ruby
<csmrfx> >> n = 10; n.class == Float
<eval-in> csmrfx => false (https://eval.in/164275)
mercerist has quit [Ping timeout: 240 seconds]
banister has quit [Ping timeout: 240 seconds]
sarkis has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
<sara2010> matti .. come soon i m waiting
<Hanmac> sara2010 first: ruby1.8.7 is outdated and buried multible times, 2) the project needs active support ( a rails component) but does not require it correctly ... and for rails there is #rubyonrails
<bookies> i am not trying to understand what class is. I am trying to check if the number returned will be whole or not. For example if it returns 3 I will print "Whole number!" if it has a decimal point like 3.1 I will print "Its now a whole number." Is there a way to check the returned number for doing so?
<matti> sara2010: I am not going to help you.
<csmrfx> bookies: ok, second part then:
<csmrfx> bookies: install ri
mercwithamouth has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
<csmrfx> bookies: once you got ri: $ ri Float
bookies has left #ruby [#ruby]
<csmrfx> bookies: and $ ri Fixnum
<sara2010> Hanmac .. hmmm should i update ruby !
<csmrfx> there you can see all the methods you can throw at these type of numbers
<Hanmac> yes you should
<sara2010> Hanmac .. which version !
<Hanmac> 2.1.2 is currently recent
razrunelord has quit [Ping timeout: 240 seconds]
<sara2010> Hanmac .. any switch for update
postmodern has quit [Quit: Leaving]
<Hanmac> like you installed the old version, install the new one
sarkis has quit [Ping timeout: 244 seconds]
troulouliou_dev has joined #ruby
<sara2010> Hanmac . thanks letme update
ponga has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
datafirm has joined #ruby
Trudko has joined #ruby
JBreit has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
sevenseacat has joined #ruby
lalli has joined #ruby
<lalli> how to remove array from another array? like [1,2,3]-[2,3] = [1]
coderhs has quit [Ping timeout: 240 seconds]
<lalli> wtf it works that way
<tobiasvl> hehe
oo_ has quit [Remote host closed the connection]
emdub_ has quit [Quit: .]
oo_ has joined #ruby
emdub has joined #ruby
jheg has quit [Quit: jheg]
cover has quit [Remote host closed the connection]
phutchins has joined #ruby
emdub has quit [Client Quit]
coderhs has joined #ruby
emdub has joined #ruby
jheg has joined #ruby
fgo has joined #ruby
mattstratton has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
sheperson has quit [Ping timeout: 240 seconds]
banister has joined #ruby
alexandrite_ has quit [Ping timeout: 264 seconds]
felixdd has quit [Ping timeout: 272 seconds]
sepp2k has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 255 seconds]
kyb3r_ has quit [Quit: Leaving]
rdark_ has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
ndrei has joined #ruby
Deele has joined #ruby
blueOxigen has quit [Ping timeout: 244 seconds]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawkirst has quit [Remote host closed the connection]
rdark has joined #ruby
mercwithamouth has joined #ruby
MZAWeb_ has joined #ruby
ponga has quit [Remote host closed the connection]
<shevy> >> [1,2,1,2,3]-[2,3]
<eval-in> shevy => [1, 1] (https://eval.in/164280)
mercerist has joined #ruby
<shevy> lalli it kinda eliminates all occurances though
<shevy> *occurrences
mikepack has joined #ruby
fgo has joined #ruby
cloud|droid has joined #ruby
bradleyprice has joined #ruby
cibs has quit [*.net *.split]
minecoins has quit [*.net *.split]
eshy has quit [*.net *.split]
zz_karupa has quit [*.net *.split]
datafirm has quit [Ping timeout: 240 seconds]
mikesplain has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
cibs has joined #ruby
zz_karupa has joined #ruby
eshy has joined #ruby
minecoins has joined #ruby
cibs has quit [Max SendQ exceeded]
cibs has joined #ruby
mbwe has quit [Quit: WeeChat 0.4.2]
mikesplain has quit [Ping timeout: 240 seconds]
jespada has joined #ruby
himsin_ has joined #ruby
<jheg> o>
fgo has quit [Remote host closed the connection]
himsin has quit [Ping timeout: 244 seconds]
himsin_ is now known as himsin
<jheg> Math.sqrt(400) <= is the .sqrt part of that called a class?
<sevenseacat> no, a method
<jheg> I thought it was I'm trying trying to get my head around naming conventions
<jheg> Trying to grasp what part is the class
<jheg> if .sqrt is a method of the Math module where does class come into it?
shredding has quit [Quit: shredding]
dawkirst has joined #ruby
<sara2010> Hanmac ... i update ruby
<Hanmac> jheg is a singleton method or a class method ... Module can have that too
jottr has quit [Ping timeout: 245 seconds]
<Hanmac> sara2010 iconv is outdated in ruby1.9+, means your project must be updated to your newer ruby too
<Macaveli> >> [1,2,1,2,3]-[2,3]
<eval-in> Macaveli => [1, 1] (https://eval.in/164281)
agrinb has joined #ruby
yfeldblum has joined #ruby
weeb1e has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
<jheg> Hanmac: the type of method determines if its a class or a singleton?
yfeldblu_ has joined #ruby
<Hanmac> jheg: singleton/class are the same meaning, ... a class can have a singleton/class method or and a instance method with the same name
<Mon_Ouie> The only thing you can call a method on is an object. A module or a class is just a slightly special kind of object.
<Mon_Ouie> (But it's not special with respect to how calling methods on it works)
sigurding has quit [Quit: sigurding]
yfeldblum has quit [Ping timeout: 244 seconds]
agrinb has quit [Ping timeout: 244 seconds]
sarkis has joined #ruby
cloud|droid has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<jheg> thanks guys
dawkirst has quit [Remote host closed the connection]
cloud|droid has joined #ruby
tsupertramp has joined #ruby
tsupertramp has quit [Client Quit]
r_rios has joined #ruby
yfeldblu_ has quit [Ping timeout: 264 seconds]
rrios has joined #ruby
dawkirst has joined #ruby
abra has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
<banister> Mon_Ouie Are you a fan of monoids?
sarkis has quit [Ping timeout: 240 seconds]
<Mon_Ouie> I don't know understand why people make such a fuss about them being awesome, they don't seem to be such a big deal to me
cloud|droid has quit [Client Quit]
kwd has quit [Quit: kwd]
ldnunes has joined #ruby
vifino has joined #ruby
seanosaur has joined #ruby
<shevy> "Worse, the slow and fragmented adoption of Python 3 over Python 2, particularly across Linux distributions"
djbkd has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
nszceta has quit []
djbkd has quit [Ping timeout: 264 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
klaut has quit [Remote host closed the connection]
seanosaur has left #ruby [#ruby]
klaut has joined #ruby
dawkirst has quit [Remote host closed the connection]
banister has joined #ruby
dawkirst has joined #ruby
lkba has joined #ruby
chipotle has joined #ruby
abra has quit [Ping timeout: 244 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
andrewlio has quit [Quit: Leaving.]
dangerousdave has joined #ruby
phoo1234567 has joined #ruby
perlsyntax has joined #ruby
moritzs has joined #ruby
abra has joined #ruby
MrDoctor has quit []
Joulse has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I don't quite get the UK spelling
<shevy> in cmake Copyright.txt you have:
<certainty> it's easy. Just a U and a K
<shevy> "CMake in source and binary form. Some source files contain additional"
<shevy> hmm
<shevy> why do they use two ' ' after a '.' ?
<certainty> they like to plenk
<shevy> "A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT"
<certainty> hmm no then they would put them in front of the .
<shevy> it is inconsistent because in the same file, when they use all UPCASED variant, they don't use two ' ' after the '.'
<certainty> obviously the rule is that two whitespaces follow a dot unless the sentence was all uppercase. :D
<canton7> shevy, that's not a UK thing. it's a old-school thing
Bumptious has quit [Remote host closed the connection]
cHarNe2 has joined #ruby
Bumptious has joined #ruby
<cHarNe2> any better way then this to remove the first word and the first underscore? "refer_gone_for_the_day".split("_")[1..-1].join("_")
blasius has joined #ruby
<certainty> >> "refer_gone_for_the_day".gsub(/^refer_(.*)$/,'\1')
<eval-in> certainty => "gone_for_the_day" (https://eval.in/164295)
<certainty> just different, not better maybe
<certainty> oh it's not always refer i guess :)
<certainty> the same idea applies though
<canton7> >> "refer_gone_for_the_day".sub(/^.*?_/, '')
<eval-in> canton7 => "gone_for_the_day" (https://eval.in/164296)
<canton7> >> "refer_gone_for_the_day".split('_', 2)[1]
<eval-in> canton7 => "gone_for_the_day" (https://eval.in/164297)
<canton7> 2 more ways
mijicd has quit [Remote host closed the connection]
<certainty> >> "refer_gone_for_the_day".split('_', 2).pop
<eval-in> certainty => "gone_for_the_day" (https://eval.in/164298)
<certainty> a variation
chipotle has quit [Quit: cya]
tessi is now known as tessi_zz
mikepack has joined #ruby
blasius has quit [Ping timeout: 240 seconds]
datafirm has joined #ruby
techsethi has quit [Quit: techsethi]
JBreit has left #ruby ["Leaving"]
techsethi has joined #ruby
sugihara has quit [Quit: Leaving...]
zorak8 has quit [Ping timeout: 240 seconds]
Arkaniad has quit [Ping timeout: 240 seconds]
paulfm has joined #ruby
jcromartie has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
mikesplain has joined #ruby
jeet1 has joined #ruby
KanKava has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
willbarrettdev has joined #ruby
brian___ has joined #ruby
jeet has quit [Ping timeout: 244 seconds]
boris has quit [Remote host closed the connection]
enape_101 has joined #ruby
tessi_zz is now known as tessi
mikesplain has quit [Ping timeout: 240 seconds]
_justin has quit [Ping timeout: 255 seconds]
pu22l3r_ has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
workmad3 is now known as wm3|away
brian___ has quit [Client Quit]
treehug88 has quit []
michaelpjohnson has quit [Remote host closed the connection]
fgo has joined #ruby
enape_101 has quit [Ping timeout: 240 seconds]
<Hanmac> certainty: why not?
<Hanmac> >> "refer_gone_for_the_day"[/_(.*)/,1]
<eval-in> Hanmac => "gone_for_the_day" (https://eval.in/164303)
dangerousdave has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 240 seconds]
predator117 has joined #ruby
jheg has quit [Quit: jheg]
dangerousdave has joined #ruby
jxf has joined #ruby
earthquake has joined #ruby
perlsyntax has left #ruby ["Textual IRC Client: www.textualapp.com"]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has joined #ruby
andrewlio has joined #ruby
yfeldblum has joined #ruby
garndt has joined #ruby
_justin has joined #ruby
emergion has quit [Quit: Connection closed for inactivity]
shredding has joined #ruby
jheg has joined #ruby
Rahul_Roy has joined #ruby
Stalkr^ has joined #ruby
Arkaniad has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
agrinb has joined #ruby
Stalkr^ has quit [Changing host]
Stalkr^ has joined #ruby
olivier_bK has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 0.4.3]
olivier_bK has joined #ruby
razrunelord has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
sarkis has joined #ruby
bmurt has joined #ruby
<cHarNe2> thanks guys, will check them all out :)
terlar has joined #ruby
fella5s has quit [Ping timeout: 240 seconds]
banister has joined #ruby
Takle has quit [Remote host closed the connection]
razrunelord has quit [Ping timeout: 244 seconds]
doodlehaus has joined #ruby
sarkis has quit [Ping timeout: 264 seconds]
ringarin has quit [Quit: Leaving]
wm3|away has quit [Ping timeout: 245 seconds]
kp666 has quit [Read error: Connection reset by peer]
kp666 has joined #ruby
banister has quit [Ping timeout: 272 seconds]
banister has joined #ruby
datafirm has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
tirnnnnot has joined #ruby
<tirnnnnot> FUCK RUBY
<tirnnnnot> FUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBY
<tirnnnnot> FUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBY
<tirnnnnot> FUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBYFUCK RUBY
tirnnnnot has quit [Killed (idoru (Spam is off topic on freenode.))]
niko has joined #ruby
yubrew has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
earthquake has quit [Quit: earthquake]
rdark has joined #ruby
himsin has quit [Read error: Connection reset by peer]
kp666 has quit [Ping timeout: 244 seconds]
thomasxie has joined #ruby
<jheg> just onto reading about passing blocks into methods but struggling to understand the power of it
thomasxie has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 240 seconds]
zoraj has joined #ruby
shvelo has joined #ruby
<jheg> this tutorial states you can see the myriad of possibilities that come into play wen using blocks but I just don't get it http://www.gotealeaf.com/books/ruby/read/more_stuff#blocksandprocs
<tobiasvl> what don't you get?
<jheg> its like i've created a method that does nothing other than call the block I've passed into the method
<jheg> when I could have just written the block
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has joined #ruby
<jheg> and bypassed the method
joaoh82 has quit []
dangerou_ has joined #ruby
<tobiasvl> not sure what you mean. what are you trying to do?
<canton7> yeah, that doesn't sound right
mgomezch has joined #ruby
<jheg> well I'm following the tutorial in that link and struggling to understand when I would use what is obviously a powerful important part of the language
himsin has joined #ruby
Takle has joined #ruby
_justin has quit [Quit: _justin]
dangerousdave has quit [Ping timeout: 264 seconds]
<canton7> jhass|off, it gives you some examples? iterating an array, manipulating an array, there are things like manipulating a file, etc etc
<canton7> >> [1, 2, 3].map{ |x| x * 2 }
<eval-in> canton7 => [2, 4, 6] (https://eval.in/164319)
fella5s has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
<canton7> good man
willb1 has quit [Ping timeout: 252 seconds]
<apeiros> jheg: ["hi", "there", "this is fun"].sort_by { |word| word.length }
<apeiros> writing "just the block" here would be rather a lot of work. writing a proper and efficient sorting algorithm isn't easy.
doodlehaus has quit [Remote host closed the connection]
<apeiros> jheg: and for simpler things like canton7's example of map - sure, you could write:
<apeiros> >> res = []; [1,2,3].each do |num| res << num * 2 end; res # instead of
<apeiros> >> [1,2,3].map { |x| x*2 }
<eval-in> apeiros => [2, 4, 6] (https://eval.in/164324)
<eval-in> apeiros => [2, 4, 6] (https://eval.in/164325)
<apeiros> but the latter is a) more concise (and the larger your code-base becomes, the happier you are about concise code!)
<apeiros> and b) reveals intent better ("concise" actually implies that)
<apeiros> oh, and c) not that relevant IMO, but it can be better optimized by the language.
himsin has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 245 seconds]
<jheg> i'm just trying to digest this :)
Bumptious has quit [Remote host closed the connection]
<jheg> sorry canton7 I didn't realise that was for me I thought you were talking to jhass
<jheg> yeah it does give examples any on..
<canton7> oops, tab-completion went weong
oo_ has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 264 seconds]
willbarrettdev has quit [Quit: Leaving]
<jheg> the examples in the tutorial
<jheg> ^
<canton7> yeah, that one's a very trivial example
<canton7> it has no useful purpose, other than to give a very basic example of how to pass/call a block
Alina-malina has quit [Ping timeout: 240 seconds]
<jheg> it doesn't really give me a real world example does it?
Joulse has quit [Quit: Joulse]
<shevy> hmm
<canton7> the [1, 2, 3, 4, 5].each do |number| .... end bit is a real-world example ;)
<shevy> jheg the various different methods in ruby stdlib will have different ratios of when they are used
<shevy> some like .each and .map are used very often
<shevy> jheg as for your example of taking a block via (&block) I am not sure; personally I almost never used it, I seem to be fine just using yield
<jheg> yeah its the creation of a method that is just calling the block that is passed into it I'm struggling to grasp
<niluje> segfault when running gollum: http://blackhole.brmzkw.info/2014-06-18/segfault.txt
<niluje> if someone has an idea
<niluje> (OSX, ruby 2.0.0p247)
<jheg> I can see how the .each part is useful but not why it needed to go through the method as a block
jeet1 has quit [Ping timeout: 272 seconds]
<canton7> jheg, the take_block *has no real-world use*. don't try and assign it one. it is JUST to show you how to take/call a block. you can use this understanding to build more complex methods
<canton7> (which do actually have some use)
<canton7> jheg, just in case you hadn't realised: the stuff passed to [1, 2, 3, 4, 5].each .... end is a block ;)
<jheg> yeah I totally get that part
<canton7> which bit don't you get then? :P
<jheg> lol
<jheg> I'm thinking :)
rrios has quit [Remote host closed the connection]
<jheg> well in this instance ...
<shevy> jheg well, if you have a real problem to use, then write code to solve it; just because a feature is available does not automatically mean it is required or will give you real advantages
<shevy> take @@variables
anarang has quit [Ping timeout: 240 seconds]
<shevy> they are very useless in 95% of the use cases where they are used
<shevy> or take autoload
noop has quit [Ping timeout: 272 seconds]
<shevy> so many use it but the creator of the language ruby hates it: https://www.ruby-forum.com/topic/3036681
sinkensabe has joined #ruby
dc has joined #ruby
<shevy> jheg if I look at that code I first go "wtf"
noop has joined #ruby
dmyers has joined #ruby
<jheg> the code in my link or your link?
anisha__ has joined #ruby
<shevy> your link, the first part
<shevy> apeiros wrote something very good:
techsethi has quit [Quit: techsethi]
<shevy> <apeiros> and b) reveals intent better ("concise" actually implies that)
<canton7> jheg, I missed that - which bit don't you get?
<shevy> jheg btw in ruby, every method always accepts one block passed to it
Zenigor has joined #ruby
<shevy> and do/end to a method is like {}, save for lesser precedence
<jheg> so the tutorial is using part one as an example of passing a block to the method but I don't understand why when what I have written in part two is more concise and without the uneccesary code
blasius has joined #ruby
<shevy> I don't even get the intent you try in the first part
<jheg> its from here
<jheg> the second block of code
<canton7> jheg, you have to learn to walk before you can run. the tutorial would be doing a shit job if it dived in the deep end, teaching you how to write complex methods assuming you know how blocks work, without teaching you how blocks work
<shevy> in the second example you simply seem to iterate over an array and write stuff
lxsameer has quit [Quit: Leaving]
dawkirst has quit [Remote host closed the connection]
<shevy> jheg I think he only wants to show you how to use blocks like arguments: " Blocks, like parameters, can be passed into a method just like normal variables. - See more at: http://www.gotealeaf.com/books/ruby/read/more_stuff#blocksandprocs"
<canton7> jheg, the same applies throughout any sort of education. you have to learn a bunch of stuff which doesn't seem to be of any use, before you can learn how it all stitches together to actually be of use
djcp has joined #ruby
<shevy> ooops sorry
rdark has quit [Ping timeout: 240 seconds]
djcp has left #ruby [#ruby]
yfeldblum has joined #ruby
<shevy> should have been only: "Blocks, like parameters, can be passed into a method just like normal variables."
danshultz has quit [Quit: ZNC - http://znc.in]
<canton7> jheg, and you said "yeah I totally get that part" in relation to your simplistic example.... so what don't you get?
danshultz has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
<shevy> hey
Zenigor has quit [Remote host closed the connection]
<shevy> the tutorial could be shit too after all ;)
jeet3 has joined #ruby
willbarrettdev has joined #ruby
<canton7> it could :P
dawkirst has joined #ruby
dc has quit [Ping timeout: 272 seconds]
sorpaas has joined #ruby
<shevy> it even tries to teach jheg how to use procs: proc = Proc.new do |number|
<jheg> What I meant canton7 is that I understand what a block I just didn't understand what the tutorial was trying to teach me in that example
jprovazn has quit [Quit: Leaving]
rdark has joined #ruby
<jheg> other than blocks can be passed into methods like variables/arrays etc
<shevy> simplest explanation: the author of the tutorial did a bad job explaining!
sorpaas has quit [Client Quit]
<canton7> jheg, it's teaching you how to write a method which 1) accepts a block, and 2) call sit
<canton7> that's ALL
<shevy> cat.sit
<shevy> I am calling sit
<jheg> yeah in that case I feel much better
<jheg> haha
<canton7> ;)
sorpaas has joined #ruby
<shevy> jheg, I give you another example
<shevy> in ruby-gnome, the bindings to gnome/gtk, you often use proc callbacks when a user presses a button for instance
tiguser has quit [Ping timeout: 264 seconds]
<shevy> or achieves the same functionality in a top drop-down menu
<shevy> you don't necessarily have to use that
<DefV> shevy: you'll have better luck calling dog.sit
<shevy> or I give you yet another example, from rack
<DefV> cat.sit; cat.sitting? # => false
<DefV> cat.gives_a_fuck? # => false
<DefV> cat.fucks_given # => 0
<shevy> from rack test/spec_utils.rb:
<shevy> test_target4 = proc{|e| [200,{'Content-Type'=>'text/plain', 'Content-Length'=>'0'},['']] }
<shevy> rack is kinda built around a proc :P
jmeeuwen has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
Alina-malina has joined #ruby
<jheg> shevy are you purposefully trying to make my head explode over this coffee table ;)
Joulse has joined #ruby
<shevy> lib/rack/lint.rb: headers['rack.hijack'] = proc do |io|
<shevy> jheg do you know rack?
<sevenseacat> lol at the cat examples
<shevy> jheg the main point comes down to a simple 2 or 3 entries-Array
mengu has quit [Remote host closed the connection]
<jheg> no I don't I'm just starting to learn the very basics of the language before doing a course
<shevy> app = proc do |env|
<shevy> [ 200, {'Content-Type' => 'text/plain'}, ["a"] ]
<shevy> end
<shevy> that's a "rack app" in principle
fgo has quit [Remote host closed the connection]
<DefV> a shitty one at best
<shevy> hehehe
mgorbach has joined #ruby
Nebneb has joined #ruby
<shevy> oh man
<shevy> that page even has an example like this:
<shevy> end.to_app
<jheg> well I truly appreciate all your time in trying to help a novice understand better
asteve has joined #ruby
tier has quit [Remote host closed the connection]
dawkirst has quit [Read error: Connection timed out]
joaoh82 has joined #ruby
<shevy> you need to keep it simple jheg
niluje has left #ruby ["WeeChat 0.3.7"]
<jheg> simple is good
dawkirst has joined #ruby
ta has quit [Remote host closed the connection]
joaoh82_ has joined #ruby
<jheg> its difficult when you are reading tutorials and having to interpret them without being sat next to someone you can ask for clarification
<jheg> so this chan helps a lot
<shevy> some tutorials stink
felixdd has joined #ruby
jmeeuwen has joined #ruby
<jheg> I like this one
<jheg> I've followed all the way until this point
<certainty> Hanmac: because i'm not used to using String#[] for these kinds of things. But it's nice
<jheg> but most of the examples I could relate to something I could actually use
<jheg> I couldn't for that last one
<shevy> did you read this one as well jheg? https://pine.fm/LearnToProgram/?Chapter=01
tiguser has joined #ruby
<dideler|work> what exactly is rack? what use case would you use it for? simplify writing an api?
<shevy> dideler|work dunno... but you can put stuff in between requests, so it's a bit like unix pipe filtering
<shevy> like that .upcase example
<jheg> shevy: no i didn't is it good?
<shevy> when you serve all content upcased (how useful!)
thesheff17 has quit [Ping timeout: 240 seconds]
<shevy> jheg I liked it when I started with ruby; it's a bit outdated by now perhaps but most things should still work
<shevy> since you are reading about blocks and procs
<shevy> jheg have a look at https://pine.fm/LearnToProgram/?Chapter=10 as well after you finished your current tutorial
<jheg> Thanks will give it read
<shevy> that chapter is about blocks and procs
<jheg> *them
<shevy> but please don't use variables like he does
tier has joined #ruby
<shevy> doYouLike = Proc.new # omg
Nebneb has quit []
<shevy> doYouLike.call 'chocolate'
<shevy> the author is a bit weird
<shevy> not only does he use strange names for variables, he also omits () in method definitions
<shevy> -
<shevy> def profile descriptionOfBlock, &block
joaoh82 has quit [Ping timeout: 244 seconds]
krz has joined #ruby
<sevenseacat> arrr that annoys me
spicerack has joined #ruby
<jheg> ha
<shevy> admittedly quite some people omit the ()
<shevy> but to also combine them with some snakeCased variable names
Nebnev has joined #ruby
<shevy> that is quite rare...
mjsmith2 has joined #ruby
Trudko has quit [Read error: Connection reset by peer]
<shevy> I'm gonna change ruby
<shevy> class NEW_CONVENTION
<shevy> FollowMe = true
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<shevy> def now! yeahThere, &manThisIsCool
<shevy> end.unless ARGV.empty?
<shevy> end
<shevy> oh... I could probably do something additionally after the end
Trudko has joined #ruby
<shevy> end unless false
<shevy> hahaha
philes has joined #ruby
sailias has joined #ruby
jeet4 has joined #ruby
alinou has joined #ruby
wm3|away has joined #ruby
<alinou> hi guys i am trying to do sudo gem install guard and error is coming ERROR: Error installing guard:celluloid requires Ruby version >= 1.9.2.
<Macaveli> Can't you make this shorter? This code is probably not working https://gist.github.com/YOUConsulting/0939cd8dc20d139493b1
<shevy> alinou you did not tell us which ruby version you use
<Macaveli> But they are so many lines wasted just because the first line is different
philes has left #ruby [#ruby]
jeet3 has quit [Ping timeout: 245 seconds]
<alinou> shevy, thanks for help ruby -v shows ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
jherbst has joined #ruby
<dideler|work> alinou: are you using something like rvm or rbenv?
dblessing has joined #ruby
<alinou> dideler|work , yes i have installed rvm
<dideler|work> alinou: try just `gem install guard`, minus the sudo
datafirm has joined #ruby
<Macaveli> Cork, hi
<alinou> dideler|work , ok let me try it
<shevy> alinou then there must be another problem because that error would never show up if you'd have a ruby version above 1.9.2; so yeah dideler|work already showed it
chipotle has joined #ruby
<shevy> so it must be finding the wrong version on your system
<Cork> Macaveli: hi?
<Macaveli> Can't you make something like this work? https://gist.github.com/YOUConsulting/0939cd8dc20d139493b1
jeet4 has quit [Ping timeout: 245 seconds]
<Macaveli> just the first do is different
moritzs has joined #ruby
<shevy> how should anyone shorten this conglomeration of mess
doodlehaus has joined #ruby
phinfonet has joined #ruby
<alinou> dideler|work , now i am getting this error ERROR: While executing gem ... (Gem::FilePermissionError)
<alinou> You don't have write permissions into the /var/lib/gems/1.8 directory.
cpruitt has joined #ruby
teddyp1cker has joined #ruby
sorpaas has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
momomomomo has joined #ruby
<shevy> aha
<shevy> debian
<shevy> poor soul
vpretzel has joined #ruby
<shevy> btw
<shevy> 1.8 sounds wrong for past 1.9.x versions
ged has quit [Quit: WeeChat 0.4.3]
<shevy> If I were you, I would decide: either you stick to debian ruby, or you stick to rvm/rbenv/chruby/source compile
<shevy> if you don't stick to debian, eliminate all of what it has, including /var/lib/gems
<Macaveli> shevy, it is "shortened" as an example
<Macaveli> this is how it looks in full
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<alinou> shevy, Thank you for your help
<shevy> Macaveli let's count: you call a method called where() twice, with a hash and then you assign inside an if clause
<shevy> if foo = bla()
<shevy> this style of code is awful Macaveli
<shevy> and your way to indent your code confuses me too
<shevy> Macaveli why do you have to assign to attribute in an if clause?
<Macaveli> the code is working fine just stick to the part : "Is it possible to put an if statement in the where class"
<Macaveli> in the where
mbwe has joined #ruby
Takumo is now known as Rob_Ford
<shevy> the example at https://gist.github.com/YOUConsulting/dd7c5f3430e2608a01df is 1000x less confusing
ehc has joined #ruby
almostwhitehat has joined #ruby
dc has joined #ruby
<Macaveli> yes but is it possible to shorten it
<Macaveli> it's practacly the same code
<Macaveli> instead for the where statement
karmatr0n has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<shevy> sounds like the perfect job for a method
peterhu has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
jackneill has joined #ruby
<shevy> that way you would not have to keep duplicate code
peterhu has joined #ruby
joaoh82_ has quit [Remote host closed the connection]
<Mon_Ouie> Or you can just change the key depending on candidate_type == "I"
<Mon_Ouie> key = candidate_type == "I" ? :required_internal : :required
<Macaveli> looks awesome Mon_Ouie
jottr has joined #ruby
marc_online_ has joined #ruby
blasius has quit [Remote host closed the connection]
rdark_ has joined #ruby
mikespla_ has joined #ruby
JohnBat26 has joined #ruby
marc_online_ has quit [Client Quit]
<Hanmac> Macaveli: you need to remember that (attribute.to_sym) might be a memory leak ...
<Macaveli> Hanmac, why is that?
sethetter has left #ruby [#ruby]
<Macaveli> this is in my Rails#Validation
blasius_ has joined #ruby
<Hanmac> Symbols are reacted but not deleted ... so when they come from user input it might like a said a memory leak
benzrf|offline is now known as benzrf
<Hanmac> created
Asher1 has joined #ruby
jph98 has joined #ruby
RaCx has joined #ruby
<Macaveli> they do not come from user :p
rdark has quit [Ping timeout: 240 seconds]
jheg has quit [Quit: jheg]
hermanmunster has joined #ruby
fgo has joined #ruby
hamakn has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 264 seconds]
andrewlio has quit [Quit: Leaving.]
Zenigor has joined #ruby
blasius_ has quit [Remote host closed the connection]
pvb has quit [Ping timeout: 240 seconds]
Bumptious has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Joulse has quit [Quit: Joulse]
thllm011 has joined #ruby
freerobby has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Bumptious has quit [Client Quit]
ta has joined #ruby
MatthewsFace has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 244 seconds]
alin_ has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
shevy has quit [Ping timeout: 245 seconds]
teddyp1cker has joined #ruby
joaoh82 has joined #ruby
parduse has quit []
enebo has joined #ruby
parduse has joined #ruby
oo_ has joined #ruby
parduse has quit [Client Quit]
boris has joined #ruby
parduse has joined #ruby
thllm011 has left #ruby [#ruby]
jmurray has joined #ruby
jottr has joined #ruby
alinou has quit [Ping timeout: 255 seconds]
teddyp1cker has quit [Client Quit]
pu22l3r has joined #ruby
benzrf is now known as benzrf|offline
Fire-Dragon-DoL1 has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
tkuchiki has quit [Remote host closed the connection]
michaelchum has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 272 seconds]
mikespla_ has quit []
pu22l3r has quit [Remote host closed the connection]
Trudko has quit [Read error: Connection reset by peer]
lemur has joined #ruby
<daxroc> Morning all
Nebnev has quit [Ping timeout: 244 seconds]
<daxroc> I'm getting ".rvm/gems/ruby-1.9.3-p545/bin/ruby_executable_hooks:15: stack level too deep (SystemStackError)" not sure why. How do I find what's causing that ?
kirun has joined #ruby
rayners has joined #ruby
<Hanmac> daxroc: some function calls itself
datafirm has quit [Ping timeout: 244 seconds]
jheg has joined #ruby
hobodave has joined #ruby
yfeldblum has joined #ruby
shevy has joined #ruby
pvb has joined #ruby
kevind has joined #ruby
fold has joined #ruby
<daxroc> Hanmac: any other reason you would get that, I've commented all the code in the definitions and still get it ?
jhass|off is now known as jhass
<shevy> http://www.google.com/trends/explore#q=ruby%2C%20perl%2C%20python&cmpt=q
<shevy> lol
<shevy> do they really include monty python in these results
mary5030 has joined #ruby
LekeFly_ has joined #ruby
tobago has quit [Remote host closed the connection]
<norm> i know i can pass a value to suspended fiber using fiber.resume, is there a way to pass an exception and have it raised within the fiber?
eka has joined #ruby
mary5030 has quit [Remote host closed the connection]
wm3|away is now known as workmad3
yfeldblum has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
jottr_ has joined #ruby
RaCx has joined #ruby
LekeFly has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 264 seconds]
<Hanmac> daxroc: show me your ruby_executable_hooks file
<Hanmac> (did you change something on it?)
<daxroc> huh
pvb has quit [Quit: Leaving]
<tenseiten> wow
ffranz has joined #ruby
dgutierrez1287 has joined #ruby
felixdd has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
pu22l3r has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
Nebnev has joined #ruby
jobewan has joined #ruby
fgo has joined #ruby
tagrudev has quit [Remote host closed the connection]
<shevy> yeah
<shevy> show Hanmac some of your hookers
andrewlio has joined #ruby
Fire-Dragon-DoL1 has quit [Ping timeout: 264 seconds]
<daxroc> Hanmac no, not that I know of
mengu has quit [Remote host closed the connection]
centrx has joined #ruby
beneggett has joined #ruby
ksinkar has quit [Quit: Konversation terminated!]
tkuchiki has joined #ruby
axl_ has joined #ruby
jheg has quit [Quit: jheg]
fgo has quit [Ping timeout: 264 seconds]
yubrew has joined #ruby
r_rios has quit [Ping timeout: 245 seconds]
jheg has joined #ruby
sigurding has quit [Quit: sigurding]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
enape_101 has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
<shevy> we must overcome perl!!!
mr_foobar has joined #ruby
ixti has joined #ruby
snath has quit [Ping timeout: 240 seconds]
<mr_foobar> Hi, what is aj simple way to turn a hash into a class? e.g. user_hash[:name] should be accessible using user.name, user.name=, ...
<lemur> OpenStruct.new(hash)
<lemur> or Virtus if you want more horsepower there.
<mr_foobar> thanks. I can also add methods to that later on, right? a "real" class
<shevy> awww you are a lemur
<shevy> they are so cute
<mr_foobar> shevy: I respectfully agree
apeiros has quit [Remote host closed the connection]
<lemur> Indeed
razrunelord has joined #ruby
<shevy> mr_foobar yes
<shevy> record = OpenStruct.new
<mr_foobar> shevy: cool
<shevy> record.name = "John Smith"
<lemur> @shevy: people still use SourceForge?
aganov has quit [Quit: Leaving]
<shevy> record.animal_type = 'lemur'
jonludlam has quit [Quit: Coyote finally caught me]
apeiros has joined #ruby
<shevy> lemur yeah, if only for legacy, lots of software projects are still on there
<mr_foobar> gotta love legacy code
<lemur> Then their popularity index isn't exactly all that useful
<shevy> well perhaps sufficient to establish general trends
<Veidit>
sevenseacat has quit [Remote host closed the connection]
hamakn has joined #ruby
<lemur> When GitHub became popular, that index was doomed to become irrelevant.
Zenigor has quit [Remote host closed the connection]
<jhass> mr_foobar: if you're going to add methods to an OpenStruct though and that maybe even for lots of objects / at different times in your programs runtime consider writing a small class instead which constructor takes that hash
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<lemur> considering JavaScript is ranked below both Ruby and Perl
sarkis has joined #ruby
<mr_foobar> jhass: yes, so I create a class, for example "User", the initializer takes a hash as parameter, and then does something like self = OpenStruct.new hash ?
razrunelord has quit [Ping timeout: 240 seconds]
<lemur> class Foo
<lemur> def initialize(params={})
Zenigor has joined #ruby
knigitz has quit []
<lemur> @name = params[:name]
<lemur> end
<lemur> end
<jhass> no, at most you'd shortcut something like hash.each do |key, value| instance_variable_set("@#{key}", value); end
geggam has joined #ruby
<mr_foobar> lemur: there are 52 keys thought
<mr_foobar> *though
apeiros has quit [Ping timeout: 255 seconds]
<mr_foobar> not just name
<lemur> Best to be explicit on what's allowed then
treehug88 has joined #ruby
<jhass> mr_foobar: what kind of methods do you want to add to that data?
<lemur> Otherwise you might have other problems.
<shevy> thing is, OpenStruct makes it a million times easier than having to do instance-variable_set manually
oo_ has quit [Remote host closed the connection]
<lemur> Just get Virtus out
<shevy> sounds like a beer
<shevy> or energy drink
<lemur> If you need this a lot and have a bunch of nested object classes, it wins
<shevy> "Virtus - get some refreshing virtue back in your life!"
<jhass> thing is adding singleton methods to lots of objects you create during runtime may significantly slow down your program
<shevy> because people use ruby for its uber-C like speed
<jhass> thus "significantly"
<lemur> If you're lazy like me though: https://github.com/baweaver/valor
<shevy> thus "use case"
<shevy> valor of a beaver?
<mr_foobar> jhass: well, I want to model a hydrant. I already have the data like manufacturer, pressure, ... as a hash. But I want it as a class that pretends to be like an activerecord model
oo_ has joined #ruby
<lemur> Takes JSON and makes virtus classes for you
<lemur> Virtus
<shevy> a hydrant?! isn't that a thing that gives you water??
<lemur> definitely virtus
<mr_foobar> jhass: and I want to be able to add methods like .pressure_to_low?
<mr_foobar> shevy: yes that
<shevy> lol
<shevy> better hydrant than infant!
<jhass> mr_foobar: maybe subclassing OpenStruct works
<jhass> I never tried
<shevy> btw mr_foobar I would write pressure_too_low? :)
<lemur> Virtus would allow you to add methods like that
<shevy> Virtus... written by a water loving beaver ...
<lemur> OpenStruct is good for simple serialization
<mr_foobar> shevy: oops, my keyboard failed
<lemur> that one was Solnic, not me
CorpusCallosum has quit [Ping timeout: 255 seconds]
<shevy> aaaah
<mr_foobar> shevy: damn USB connections are so unreliable
<shevy> so on IRC you are a lemur, in reallife you are a beaver
spastorino has joined #ruby
kilk_ has quit [Ping timeout: 255 seconds]
<shevy> mr_foobar I fault my code
<mr_foobar> shevy: called justin?
<shevy> I mean, my cat
<shevy> no please
<lemur> I just happened to make a library that generates the classes for you from raw JSON
<shevy> a beaver, the cute animal
<lemur> baweaver - ba weaver - brandon a weaver
freerobby1 has joined #ruby
freerobby has quit [Ping timeout: 244 seconds]
<shevy> brandon the beaver!
kilk_ has joined #ruby
<mr_foobar> lemur: cool, can I take a look at it?
freerobby has joined #ruby
<mr_foobar> ty
<lemur> baweaver is still online considering I always forget to log off
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
BradLsys has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
freerobby1 has quit [Ping timeout: 240 seconds]
<shevy> beavers for president
anisha__ has quit [Quit: Leaving]
Macaveli has quit [Ping timeout: 252 seconds]
blasius has joined #ruby
Fire-Dragon-DoL has joined #ruby
noop has quit [Ping timeout: 240 seconds]
thesheff17 has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
arrubin has joined #ruby
tier has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
xerxas has joined #ruby
NukePuppy has joined #ruby
gruz0[russia] has joined #ruby
jaequery has joined #ruby
lolmaus has joined #ruby
LiohAu has quit [Quit: LiohAu]
jaequery has quit [Max SendQ exceeded]
jheg has quit [Quit: jheg]
ta has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
seanosaur has joined #ruby
jaequery has joined #ruby
tier has joined #ruby
jaequery has quit [Max SendQ exceeded]
mikesplain has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
toastynerd has joined #ruby
jaequery has quit [Max SendQ exceeded]
jfran has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
seanosaur has left #ruby [#ruby]
jaequery has joined #ruby
jrhe has joined #ruby
LekeFly_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tungd has joined #ruby
dawkirst has joined #ruby
stantona has joined #ruby
seanosaur has joined #ruby
xcv has quit [Remote host closed the connection]
paulfm has quit [Read error: Connection reset by peer]
terrellt has joined #ruby
terrellt has quit [Remote host closed the connection]
paulfm has joined #ruby
yfeldblum has joined #ruby
terrellt has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
dawkirst has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
mikepack has joined #ruby
minda has joined #ruby
axl_ has quit [Quit: axl_]
ta has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
JohnBat26 has quit [Ping timeout: 264 seconds]
neonblurb has joined #ruby
papercode has quit [Ping timeout: 252 seconds]
ta has quit [Remote host closed the connection]
neonblurb has left #ruby [#ruby]
havenwood has joined #ruby
joaoh82 has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
mijicd has joined #ruby
shredding has quit [Quit: shredding]
yfeldblum has quit [Ping timeout: 255 seconds]
almostwhitehat has quit [Ping timeout: 272 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
mikepack has quit [Ping timeout: 240 seconds]
almostwhitehat has joined #ruby
axl_ has joined #ruby
moted has joined #ruby
dawkirst has joined #ruby
banister has quit [Ping timeout: 264 seconds]
dc has quit []
dawkirst has quit [Client Quit]
axl_ has quit [Client Quit]
Takle has quit [Remote host closed the connection]
moritzs has joined #ruby
r_rios has joined #ruby
vifino_ has joined #ruby
dc has joined #ruby
dc has quit [Remote host closed the connection]
vifino has quit [Ping timeout: 244 seconds]
endash has joined #ruby
DarthGandalf has quit [Ping timeout: 252 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mongey has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
tungd has quit [Read error: Connection reset by peer]
banister has joined #ruby
toastynerd has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
fgo has joined #ruby
snath has joined #ruby
<foobarbaz> If we do; object = Object.clone
<foobarbaz> object["foo"] = proc { |n| n + 1 }
xcv has joined #ruby
<foobarbaz> Is that a method? or what is that?
<jhass> "that" ?
<jhass> I suspect you're not really doing Object.clone
timgauthier has quit [Ping timeout: 255 seconds]
treehug8_ has joined #ruby
<foobarbaz> oh, Object is a custom object
<foobarbaz> not.. some sort of ruby object
<foobarbaz> Apologies :)
<csmrfx> hqhq
<jhass> foobarbaz: so which part are you're wondering about?
<foobarbaz> Yeah, it was Object.new too :(
<csmrfx> and, did you really want .dup
<csmrfx> oh ok
<foobarbaz> I just mistook the Object class to be something ruby related
rebelshrug has joined #ruby
<foobarbaz> thanks :)
kireevco has joined #ruby
<csmrfx> foobarbaz: try $ ri Object
<jhass> your code does literally Object.new.clone ?
<csmrfx> haha
fgo has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
xcv_ has joined #ruby
abra has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
terrell_t has joined #ruby
axl_ has joined #ruby
treehug88 has quit [Ping timeout: 264 seconds]
xcv has quit [Ping timeout: 255 seconds]
abra has joined #ruby
<centrx> >> Object.new.clone; puts "mission accomplished"
<eval-in> centrx => mission accomplished ... (https://eval.in/164382)
mradmacher has quit [Ping timeout: 244 seconds]
<pontiki> how topical
hermanmunster has quit [Remote host closed the connection]
stantona has quit [Remote host closed the connection]
<csmrfx> but, why?
<Sigma00> well if I use Object.new.clone and use that instead, my code is immediately thread safe! What, pass by ref? Yeah we do that, but we copied at the start! IT'S SAFE /s
terrellt has quit [Ping timeout: 240 seconds]
<csmrfx> are you serious
mehlah has quit [Quit: Leaving...]
* pontiki gives Sigma00 a stiff bourbon
<csmrfx> so its for jruby?
<pontiki> drink that, you'll feel better
<Sigma00> /s means sarcasm <_< also csmrfx: you need to start reading nicks
<pontiki> workmad3 makes me use that </sarcasm> :P
benzrf is now known as benzrf|offline
* csmrfx feels so unsafe for never having used clone
<csmrfx> I have been duped into using old duped objects
jaimef has quit [Excess Flood]
<Sigma00> if any of you thought that Object.new.clone was proper usage...
<pontiki> indupitably!
<csmrfx> </sarmasc>
tessi is now known as tessi_zz
razrunelord has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maestrojed has joined #ruby
jaimef has joined #ruby
stantona has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
rippa has joined #ruby
dangerousdave has joined #ruby
stantona_ has joined #ruby
Morkel has quit [Quit: Morkel]
aspires has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has joined #ruby
seanosaur is now known as seanosaur[HOU]
seanosaur[HOU] is now known as seanosaur
mr_foobar has quit [Quit: WeeChat 0.3.8]
razrunelord has quit [Ping timeout: 272 seconds]
Joulse has joined #ruby
stantona has quit [Ping timeout: 255 seconds]
joaoh82 has joined #ruby
neque has quit [Quit: neque]
enebo has quit [Quit: enebo]
datafirm has quit [Ping timeout: 272 seconds]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
jaequery has joined #ruby
tessi_zz is now known as tessi
brandonjmckay has joined #ruby
brandonjmckay has quit [Client Quit]
iliketurtles has joined #ruby
djbkd has joined #ruby
hobodave has joined #ruby
jaequery has quit [Client Quit]
joaoh82_ has joined #ruby
<DefV> I think foobarbaz is a JS programmer
joaoh82 has quit [Ping timeout: 245 seconds]
<DefV> form what I can gather from his question
<DefV> that's how you'd do it in JS :-)
dumdedum has quit [Ping timeout: 240 seconds]
<foobarbaz> DefV: That's what my question came from :P
<foobarbaz> But it was all just a misunderstanding to begin with haha
Sc0rp10n has joined #ruby
arya_ has joined #ruby
<AlHafoudh> hi
Takle has quit [Remote host closed the connection]
rgrinberg has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
<AlHafoudh> how would you write AREL query to get all posts and last comment along with them as single SQL query
Skei has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
<jhass> #rubyonrails may have more expertise on that one
<Skei> Morning, all. Basic question : on OSX, I've just run "gem install bundler", but I can't find the thing to put it into my PATH, so I can't call bundle commands. Any thoughts ? Thanks !
mityaz has joined #ruby
RaCx has joined #ruby
<jhass> AlHafoudh: I don't think you need Arel for that one though, something like Post.includes(:comments) should suffice
<AlHafoudh> jhass: lets imagine I have many comments :)
<AlHafoudh> i am thinking of group by
<jhass> so?
anaeem1 has joined #ruby
<jhass> your Post model should have a has_many :comments, or has_many :comments, through: whatever
SCHAAP137 has joined #ruby
testcore has quit [Quit: [BX] Tickle-Me Elmo uses BitchX. *giggle* *giggle* *giggle*]
_maes_ has joined #ruby
moted has quit [Quit: moted]
moted has joined #ruby
<centrx> AlHafoudh, SQL is not the best for that sort of thing unless you use window functions/ranking functions, which are not in Arel
FancyCamel has joined #ruby
<FancyCamel> Uh, hi everyone. :|
<FancyCamel> Anyone care to help a noob out a bit? :D
<centrx> !ask
<jhass> FancyCamel: you won't find out without asking an actual question
foobarbaz has quit [Quit: Page closed]
<Skei> Found it :)
<FancyCamel> Haha I was just making sure people weren't afk. :)
rezzack has joined #ruby
<FancyCamel> I'm just trying to go through the Getting Started tutorial, and it suggests doing "rails server" but I'm getting an error that it could not find a Javascript runtime
jxf has quit [Ping timeout: 244 seconds]
<centrx> FancyCamel, For Rails, try #rubyonrails
<FancyCamel> Oh, I'm sorry. :x
<centrx> FancyCamel, You may need to Register/Identify your nick with Freenode in order to enter that channel
binaryhat has joined #ruby
amargherio has joined #ruby
mikepack has joined #ruby
<FancyCamel> Uh, is it ./join #rubyonrails ? I don't use this stuff often.
<centrx> Yes
<jhass> FancyCamel: /msg NickServ help after you have registered /join #rubyonrails (without a dot in front)
<FancyCamel> Thanks :)
rgrinberg has quit [Quit: Leaving.]
kilk_ has quit [Ping timeout: 240 seconds]
xcv_ has quit [Remote host closed the connection]
axl_ has joined #ruby
baroquebobcat has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
yeticry_ has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
xcv has joined #ruby
jheg has joined #ruby
saarinen has quit [Quit: saarinen]
krz has quit [Quit: WeeChat 0.4.3]
timonv has quit [Remote host closed the connection]
Takle has joined #ruby
yeticry has joined #ruby
wallerdev has joined #ruby
Takle has quit [Remote host closed the connection]
dANOKELO_ has quit []
codeurge has joined #ruby
bricker`work has joined #ruby
r_rios has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
timonv_ has joined #ruby
binaryhat has quit [Quit: Leaving]
Sc0rp10n has quit [Ping timeout: 264 seconds]
coderhs has joined #ruby
toastynerd has joined #ruby
terrell_t is now known as terrellt
agrinb has quit [Remote host closed the connection]
tessi is now known as tessi_zz
timonv_ has quit [Ping timeout: 244 seconds]
IceDragon has joined #ruby
rgrinberg has joined #ruby
___mb has joined #ruby
jerius has joined #ruby
Zenigor has quit [Remote host closed the connection]
dda has joined #ruby
jaequery has joined #ruby
mjsmith2 has joined #ruby
jaequery has quit [Max SendQ exceeded]
RaCx has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
jerius_ has joined #ruby
mityaz has quit [Quit: See ya!]
jaequery has joined #ruby
andrewjanssen has joined #ruby
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
lord4163 has quit [Ping timeout: 245 seconds]
poguez_ has joined #ruby
jaequery has quit [Max SendQ exceeded]
ikaros has quit [Quit: Ex-Chat]
jaequery has joined #ruby
Zenigor has joined #ruby
jaequery has quit [Max SendQ exceeded]
lord4163 has joined #ruby
edwx has joined #ruby
jaequery has joined #ruby
blasius has quit [Remote host closed the connection]
lkba has joined #ruby
jerius has quit [Ping timeout: 272 seconds]
IceDragon_ has joined #ruby
dgaffney has joined #ruby
<dgaffney> Man, didn't realize rubyforge was going away...
Joulse has quit [Quit: Joulse]
IceDragon has quit [Ping timeout: 240 seconds]
jespada has quit [Ping timeout: 264 seconds]
s_ has joined #ruby
axl_ has quit [Quit: axl_]
diegoviola has joined #ruby
dangerousdave has quit [Ping timeout: 240 seconds]
brasten_ has joined #ruby
<edwx> try this site www.SoccerTips4Sure.com very profesional, nice earnings
dgutierrez1287 has joined #ruby
edwx has quit [Killed (idoru (Spam is off topic on freenode.))]
Sc0rp10n has joined #ruby
brasten has quit [Ping timeout: 272 seconds]
brasten_ is now known as brasten
treehug8_ has quit []
Rahul_Roy has quit [Quit: Connection closed for inactivity]
dangerousdave has joined #ruby
alex88 has quit [Quit: Leaving...]
razrunelord has joined #ruby
fgo has joined #ruby
tessi_zz is now known as tessi
timonv has joined #ruby
razrunelord has quit [Remote host closed the connection]
Rob_Ford is now known as Takumo
sailias has quit [Quit: Leaving.]
kenneth has joined #ruby
freerobby has quit [Quit: Leaving.]
<lectrick> Does anyone have a good argument for (static) type systems in languages? I know Ruby isn't one of them, looking for arguments that aren't simply a matter of preference
axl_ has joined #ruby
blackmesa has joined #ruby
<Edelwin> lectrick: a better control over memory allocation
fgo has quit [Ping timeout: 255 seconds]
<Edelwin> useful if you have to word with embeded systems
<lectrick> ok that's one
baroquebobcat has quit [Quit: baroquebobcat]
<jhass> compile time method checking, even for very rare codepaths
<lectrick> and I presume there's a bit more speed possible since the compiler knows the types before runtime
baroquebobcat has joined #ruby
<lectrick> jhass: well if you have a test suite covering all your codepaths, wouldn't that be almost as good? :)
<eam> lectrick: safety
michaelchum has quit [Quit: Connection closed for inactivity]
razrunelord has joined #ruby
<jhass> yes but as you're saying "almost" and you have to have that suite
ephemerian has quit [Quit: Leaving.]
<jhass> I'd really like to see the type interference stuff to succeed in the future
mikecmpbll has quit [Ping timeout: 264 seconds]
seanosaur has quit []
jheg has quit [Read error: Connection reset by peer]
xcv has quit [Remote host closed the connection]
seanosaur has joined #ruby
jheg has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codeurge has joined #ruby
<pontiki> lectrick: Sandi Metz covers both points of view in POODR, tho coming out in favor of dynamic typing, obvs
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
agrinb has joined #ruby
<lectrick> pontiki: still working through POODR :)
qba73 has quit []
<pontiki> iirc, it's around chapter 5?
yfeldblum has joined #ruby
DarthGandalf has joined #ruby
<lectrick> will whip out my kindle in a bit... laptop battery about to die and want to stretch it
tectonic has joined #ruby
spider-mario has joined #ruby
<shevy> stretch it real good man
s_ has quit [Remote host closed the connection]
<shevy> jhass I forgot if I already asked, are you using rubygems.org as author of gems?
<csmrfx> lectrick: faster
<pontiki> yes, lectrick "Static versus Dynamic Typing" in chapter 5 on duck typing
<csmrfx> uh, faster to interpret
<jhass> shevy: I do but not much stuff up there
<csmrfx> and, thats kinda weird one
greenarr_ has quit [Quit: 500]
xcv has joined #ruby
datafirm has joined #ruby
troyready has joined #ruby
jailbot has joined #ruby
<jailbot> hey
wallerdev has quit [Quit: wallerdev]
<jailbot> is there an easy way to get the next/previous object in a collection?
emsilva has joined #ruby
<banister> jailbot each_slice
<banister> jailbot no, each_cons
zigomir has quit [Remote host closed the connection]
IceDragon_ is now known as IceDragon
zigomir has joined #ruby
zigomir has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
<lectrick> each_cons ... hmmm, what's use case for repeating elements of a collection? http://www.ruby-doc.org/core-2.1.0/Enumerable.html#method-i-each_cons
bradleyprice has joined #ruby
<shevy> jailbot depends on the object at hand; Enumerable has .next
Takle has joined #ruby
<lectrick> i.e., [1,2,3], then [2,3,4] etc. in a list of 1 to 10
<jailbot> yeaaahhhhh
<shevy> >> x = "cat".each_char; x.next
<eval-in> shevy => "c" (https://eval.in/164409)
Deejay_ has quit [Quit: Computer has gone to sleep.]
<jailbot> so i’ve got a list of objects with a due_at attribute
<shevy> >> x = "cat".each_char; x.next; x.next
<eval-in> shevy => "a" (https://eval.in/164410)
stantona_ has quit [Remote host closed the connection]
tectonic has quit [Read error: Connection reset by peer]
<jailbot> trying to make sure that the next object’s due_at is not before the current object
<shevy> lectrick dunno... perhaps a game of blackjack or some poker game
<jhass> jailbot: just sort it?
<jhass> .sort_by(&:due_at)
<jailbot> but they belong to a stage
jheg has quit [Quit: jheg]
<jailbot> you see this is bad
<jailbot> not sure how to handle it
RaCx has quit [Ping timeout: 240 seconds]
<jailbot> but im just going to give it an error or something
yfeldblum has quit [Read error: Connection reset by peer]
seanosaur is now known as seanosaur[HOU]
mmoretti has joined #ruby
seanosaur[HOU] is now known as seanosaur
RaCx has joined #ruby
wald0 has quit [Ping timeout: 245 seconds]
hermanmunster has joined #ruby
bradleyprice has quit [Ping timeout: 244 seconds]
jespada has joined #ruby
gregf_ has quit [Quit: leaving]
seanosaur is now known as seanosaur[HOU]
rezzack has quit [Quit: Leaving.]
wald0 has joined #ruby
RaCx has quit [Client Quit]
techsethi has joined #ruby
brasten has quit [Quit: brasten]
RaCx has joined #ruby
olivier_bK has quit [Ping timeout: 244 seconds]
hermanmunster has quit [Ping timeout: 272 seconds]
blasius has joined #ruby
mmoretti has quit [Remote host closed the connection]
maximski has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
mmoretti has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
chth0n has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
wallerdev has joined #ruby
merceris_ has joined #ruby
r_rios has joined #ruby
mercerist has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
nicksanford has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
mercerist has joined #ruby
JohnBat26 has joined #ruby
sinkensa_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
norm has quit [Ping timeout: 240 seconds]
eka has joined #ruby
stantona has joined #ruby
merceris_ has quit [Ping timeout: 264 seconds]
deric_skibotn has joined #ruby
Takle has quit [Remote host closed the connection]
stantona has quit [Remote host closed the connection]
stantona has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
St_Marx has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 240 seconds]
<jailbot> so if I were to update the attribute of a object
<jailbot> would I do that in the controller
St_Marx has joined #ruby
<jhass> yes, most likely. See #rubyonrails for such questions
hpoydar has quit [Remote host closed the connection]
Spami_ has joined #ruby
axl_ has quit [Quit: axl_]
Gil has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
tvw has quit []
IceDragon has joined #ruby
razrunelord has quit []
chrishough has joined #ruby
dapz has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
Takle has joined #ruby
jpena has joined #ruby
stantona has quit [Remote host closed the connection]
gondalier has joined #ruby
datafirm has quit [Ping timeout: 245 seconds]
Spami_ has quit [Quit: Leaving]
andrewjanssen has quit [Quit: Leaving...]
elaptics is now known as elaptics`away
Xeago has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
enebo has joined #ruby
axsuul has joined #ruby
toordog_ has joined #ruby
nicksanford has quit [Remote host closed the connection]
toordog has quit [Ping timeout: 240 seconds]
nicksanford has joined #ruby
gondalier has quit [Client Quit]
gondalier has joined #ruby
andrewjanssen has joined #ruby
maximski has quit []
Hobogrammer has quit [Ping timeout: 264 seconds]
nicksanford has quit [Remote host closed the connection]
jprovazn has joined #ruby
paulfm has quit [Ping timeout: 240 seconds]
jailbot is now known as lordflapjack
senayar has quit [Remote host closed the connection]
dangerou_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
Sc0rp10n has quit [Quit: Leaving]
Mongey has joined #ruby
jpena has quit [Read error: Connection reset by peer]
hpoydar has joined #ruby
paulfm has joined #ruby
musl_ has quit [Quit: WeeChat 0.4.3]
lmickh has joined #ruby
jahkobi has joined #ruby
sski has quit [Remote host closed the connection]
<___mb> Hi, when you TDD, how often do you commit ? after each passing test ? after each method being tested is done ? random ?
sski has joined #ruby
fgo has joined #ruby
aspires has quit []
mjsmith2 has quit [Remote host closed the connection]
rrios has joined #ruby
mrsolo has joined #ruby
goleldar has joined #ruby
tier has quit [Remote host closed the connection]
<csmrfx> ___mb: when suitable
Bosox20051 has joined #ruby
fgo has quit [Read error: No route to host]
mjsmith2 has joined #ruby
<csmrfx> but, usually I work on a feature or a task, so once those are completed, or if time constraint is reached and meaningful work has been done
<pontiki> there are two schools of thought: commit early and often, hold off on commits until you're done
d has joined #ruby
gondalier has quit []
codeurge has quit [Quit: Quit.]
d is now known as Guest84271
<csmrfx> then again, when using git, you might have your own branch and commit every change to code
<pontiki> usually i make many commits, but then squish them before pushing them up to my fork
axsuul has quit [Ping timeout: 240 seconds]
\13k has joined #ruby
<pontiki> so the PR to the hub doesn't have a huge pile of commits
r_rios has quit [Ping timeout: 244 seconds]
Guest84271 has quit [Client Quit]
yacks has quit [Ping timeout: 252 seconds]
mjsmith2_ has joined #ruby
Spami_ has joined #ruby
sski has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
xcv has quit [Remote host closed the connection]
<___mb> ok thanks
echevemaster has joined #ruby
aspires has joined #ruby
Deejay has joined #ruby
jheg_ has joined #ruby
blasius has quit []
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Deejay is now known as Guest25324
agent_white has joined #ruby
robertodecurnex has joined #ruby
gondalier has joined #ruby
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
mjsmith2 has quit [Ping timeout: 240 seconds]
treehug88 has joined #ruby
kireevco has joined #ruby
<agent_white> Mornin folks
axsuul has joined #ruby
hpoydar has quit [Remote host closed the connection]
Bosox20051 has quit [Ping timeout: 244 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
leeve has joined #ruby
Hobogrammer has joined #ruby
axsuul_ has joined #ruby
dwts has quit [Ping timeout: 252 seconds]
davidvl has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
dwts has joined #ruby
axsuul has quit [Ping timeout: 245 seconds]
maximski has joined #ruby
jheg_ has quit [Remote host closed the connection]
dmyers has quit [Quit: dmyers]
gondalier has quit []
robertodecurnex has quit [Remote host closed the connection]
jheg_ has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
ascarter has joined #ruby
papercode has joined #ruby
papercode has quit [Remote host closed the connection]
papercode has joined #ruby
timonv has joined #ruby
tris has joined #ruby
rdark_ has quit [Quit: leaving]
absolutezeroff has joined #ruby
Vivekananda has joined #ruby
mrsolo has left #ruby ["Leaving"]
jeregrine has joined #ruby
rayners has quit [Ping timeout: 264 seconds]
perlsyntax has joined #ruby
zigomir has joined #ruby
hpoydar has joined #ruby
SBoolean has joined #ruby
* agent_white pats the crickets
Rahul_Roy has joined #ruby
Takle has quit [Remote host closed the connection]
bradleyprice has joined #ruby
Macaveli has joined #ruby
timonv has quit [Remote host closed the connection]
Guest25324 has quit [Ping timeout: 240 seconds]
* shevy pats the balls
RaCx has quit [Quit: Computer has gone to sleep.]
AlSquire has quit [Quit: This computer has gone to sleep]
perlsyntax has left #ruby ["Textual IRC Client: www.textualapp.com"]
zoraj_ has joined #ruby
lordflapjack has quit [Remote host closed the connection]
nicksanford has joined #ruby
senayar has joined #ruby
techsethi has quit [Quit: techsethi]
andrewjanssen has quit [Quit: Leaving...]
Rollabunna has quit [Remote host closed the connection]
dh64 has joined #ruby
AlSquire has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
stantona has joined #ruby
zoraj has quit [Ping timeout: 240 seconds]
AlSquire has quit [Client Quit]
davidvl has quit [Quit: This computer has gone to sleep]
reset has joined #ruby
stantona has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
Macaveli has quit [Remote host closed the connection]
Xeago has joined #ruby
enape_101 has quit [Ping timeout: 240 seconds]
senayar has quit [Ping timeout: 245 seconds]
nicksanford has quit [Remote host closed the connection]
jheg_ has quit [Quit: jheg_]
tier has joined #ruby
eka has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
andrewjanssen has quit [Client Quit]
stantona has joined #ruby
bradleyprice has joined #ruby
djbkd has quit [Quit: My people need me...]
andrewjanssen has joined #ruby
brunops has quit [Quit: leaving]
baroquebobcat has quit [Quit: baroquebobcat]
noop has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
tier has quit [Remote host closed the connection]
timonv has joined #ruby
tier has joined #ruby
baroquebobcat has joined #ruby
davidvl has joined #ruby
terrellt has quit [Remote host closed the connection]
terrellt has joined #ruby
tkuchiki has quit [Remote host closed the connection]
enape_101 has joined #ruby
brunops has joined #ruby
baroquebobcat has quit [Client Quit]
gondalier has joined #ruby
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
fantazo has joined #ruby
jonahR has joined #ruby
RaCx has joined #ruby
Georg3 has joined #ruby
eka has quit [Read error: Connection reset by peer]
mmoretti has quit [Quit: Leaving...]
phutchins has quit [Ping timeout: 240 seconds]
eka has joined #ruby
jheg_ has joined #ruby
* shevy pats agent_white's crickets
predator117 has left #ruby [#ruby]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has joined #ruby
maestrojed has joined #ruby
Logico has joined #ruby
dapz has joined #ruby
jtiggo has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
yacks has joined #ruby
hpoydar has quit [Remote host closed the connection]
frem has joined #ruby
diegovio1 has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
musl has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
b00stfr3ak has joined #ruby
djbkd has joined #ruby
axsuul_ has quit [Read error: Connection reset by peer]
mercerist has quit [Quit: Computer has gone to sleep.]
axsuul has joined #ruby
* agent_white hands shevy cricket-feed
rgrinberg has quit [Quit: Leaving.]
Xeago has quit [Read error: Connection reset by peer]
hpoydar has joined #ruby
chipotle has quit [Quit: cya]
razrunelord has joined #ruby
<centrx> Get a room you two
nanoyak has joined #ruby
chrishough has quit [Quit: chrishough]
jonno11 has joined #ruby
axsuul has quit [Ping timeout: 272 seconds]
<shevy> why
Notte has joined #ruby
<shevy> you wanna join as well?
timonv has quit [Remote host closed the connection]
* agent_white hands centrx a cricket
<shevy> lol
timonv has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
* csmrfx orders the exterminator
<shevy> cricket is a weird sport
enape_101 has quit [Ping timeout: 272 seconds]
<banister> anyone know why this doesn't properly uniq the output? http://cl.ly/image/19431O0r0t1U
senayar has joined #ruby
sigurding has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
gondalier has quit []
<csmrfx> banister: it gets called 4 times
Zamerick has joined #ruby
vifino_ has quit [Quit: Ze Cat now leaves...]
<csmrfx> (guess)
testcore has joined #ruby
<csmrfx> maybe #bash
vifino has joined #ruby
<banister> csmrfx how come?
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
Fire-Dragon-DoL has quit [Quit: Leaving.]
orionstein_away has joined #ruby
<jameyd> hey peoples, i have a hopefully quick question about accessibility of methods within different scopes, in this case using rspec
ringarin has joined #ruby
orionstein_away is now known as orionstein
<csmrfx> banister: thats the only reason I can think og
diegovio1 is now known as diegoviola
<jameyd> the refinery_login_with :refinery_superuser line is fine, but if i put it inside an it block, like line 5, i no longer can access that method
<csmrfx> banister: maybe test by sorting the awk output first
zoraj_ has quit [Remote host closed the connection]
jxf has joined #ruby
Xeago has joined #ruby
senayar has quit [Ping timeout: 255 seconds]
chrishough has joined #ruby
<csmrfx> banister did you man uniq
Logico has left #ruby ["Saindo"]
<csmrfx> uniq checks the adjacent lines
<csmrfx> not all lines
timonv has quit [Remote host closed the connection]
gondalier has joined #ruby
jheg_ has quit [Quit: jheg_]
mercerist has joined #ruby
sigurding has quit [Quit: sigurding]
<csmrfx> why doesn't my git have "recent" ;__;
kenneth has joined #ruby
sheperson has joined #ruby
jheg_ has joined #ruby
djbkd has quit [Remote host closed the connection]
banister is now known as banisterfiend
arrubin has left #ruby [#ruby]
wmoxam has joined #ruby
xcv has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
rgrinberg has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
boris has quit [Remote host closed the connection]
djbkd has joined #ruby
hermanmunster has joined #ruby
mikepack has quit [Remote host closed the connection]
xcv has quit [Ping timeout: 240 seconds]
enape_101 has joined #ruby
davidvl has quit [Quit: This computer has gone to sleep]
hermanmunster has quit [Read error: No route to host]
hermanmu_ has joined #ruby
Zamerick has quit [Quit: Leaving]
ferr has joined #ruby
Zamerick has joined #ruby
baroquebobcat has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
frem has quit [Ping timeout: 255 seconds]
<___mb> Hi, I'm new to RSpec and I'm having a problem using doubles in the following test: http://pastebin.com/T96FBfFF could anybody have a look at it ? thanks
karmatr0n has quit [Remote host closed the connection]
blackmesa has joined #ruby
tessi is now known as tessi_zz
<jhass> did you try allow(object).to receive(:A) ?
<jhass> also use #public_send to call methods dynamically
<jhass> as a style note, leave of empty parens
hermanmu_ has quit [Read error: No route to host]
hermanmunster has joined #ruby
davidvl has joined #ruby
WormDrink has quit [Ping timeout: 240 seconds]
<jhass> you can also setup an expectation that a particular method is called with expect(object).to receive(:method)
xcv has joined #ruby
stantona has quit [Remote host closed the connection]
<___mb> the problem is that I get unexpect calls on respond_to?, and when I allow respond_to?, i have to problem that i want to handle two cases (:A and :B) for the return value
datafirm has joined #ruby
<___mb> then yes, i'll use expect(object).to receive(:method)
<jhass> allow(object).to receive(:respond_to?).with(:A).and_return(false)
<jhass> allow(object).to receive(:respond_to?).with(:B).and_return(true)
<shevy> hmm
<shevy> if I have an improper path like:
<shevy> /foo/bar/bla/../configuration/
<shevy> and I don't like the .. there
<shevy> is there a simple way to sanitize that?
<jhass> File.expand_path
hermanmunster has quit [Read error: No route to host]
<shevy> okies thanks
<eam> shevy: no, actually there isn't
hermanmunster has joined #ruby
<eam> it can't be done in the abstract
grieg has quit [Quit: Leaving]
<eam> the only way .. can be culled is to resolve a path against a particular filesystem
<jhass> >> File.expand_path("/foo/bar/bla/../configuration/")
<eval-in> jhass => "/foo/bar/configuration" (https://eval.in/164492)
<eam> jhass: yeah but that may return something different on my system is what I'm saying
<jhass> how so?
<eam> if bla is a symlink
sinkensa_ has quit [Remote host closed the connection]
bosworth has joined #ruby
<eam> it has to stat()-walk the entire path
<eam> .. can only be resolved against particular filesystems
<eam> it's not an abstract cleanup like /./
<jhass> I think expand_path does that if possible
<eam> it might -- just saying, it's actually kind of a complex problem
<shevy> let's keep it simple!
x1337807x has joined #ruby
hermanmunster has quit [Read error: No route to host]
Xeago has quit [Remote host closed the connection]
hermanmunster has joined #ruby
<eam> there's a class of lexical cleanups for file paths which are safe and abstract, and some which aren't
bline79 has joined #ruby
bline79 has quit [Quit: leaving]
Xeago has joined #ruby
bline79 has joined #ruby
bline79 has quit [Client Quit]
decoponio has quit [Quit: Leaving...]
isthisreallife has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
cpruitt has joined #ruby
Xeago has joined #ruby
sepp2k has joined #ruby
rrios has quit [Ping timeout: 240 seconds]
joaoh82_ has quit [Remote host closed the connection]
hermanmunster has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
djbkd has quit [Remote host closed the connection]
<___mb> thanks jhass it works well
aspires has quit []
jxf has quit [Ping timeout: 240 seconds]
jahkobi has quit [Quit: jahkobi]
timgauthier has joined #ruby
jahkobi has joined #ruby
bosworth has left #ruby [#ruby]
bosworth has joined #ruby
Takle has joined #ruby
godd2 has joined #ruby
jheg_ has quit [Quit: jheg_]
bosworth has quit []
ferr has quit [Quit: Konversation terminated!]
ferr has joined #ruby
djbkd has joined #ruby
<godd2> Is it generally better to make a class out of a Struct.new or just make a normal class with instance variables?
hobodave has quit [Read error: Connection reset by peer]
bosworth has joined #ruby
gondalier has quit []
yetanotherdave has joined #ruby
<jhass> there's no 'generally' to that decision
hobodave_ has joined #ruby
<godd2> Is it a "whatever you want" thing ore a "depends on the circumstances" kinda deal?
<jhass> the later
alexandrite has joined #ruby
<jhass> a bit of the former though, a taste decision certainly plays a role
bosworth has quit [Client Quit]
bosworth has joined #ruby
<godd2> Well seeing as I'd have no way of knowing which applies in this case, which would I be statistically safer in choosing?
doodleha_ has joined #ruby
<godd2> to preface, its a little gem that will never be used. its not for work or anything
<jhass> if you're not adding any methods to it, it's pretty much a no-brainer, just Foo = Struct.new(:foo, :bar)
MrRojojojo has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
frem has joined #ruby
doodlehaus has quit [Ping timeout: 244 seconds]
razrunelord has quit [Remote host closed the connection]
<godd2> ah ok so the beefiness of the class is a consideration, and the slimmer, the more likely I'm going to want a struct.
dangerousdave has quit [Read error: Connection reset by peer]
useanalias has joined #ruby
hairyhen1erson has quit [Remote host closed the connection]
dangerousdave has joined #ruby
icole has joined #ruby
<jhass> I also tend to base the decision on whether the class is mainly there to hold data or mainly to hold logic
<centrx> godd2, Is it primarily a data store of attributes (why not use a hash?), or a class with behavior
chipotle has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
chipotle has quit [Client Quit]
echevemaster has quit [Ping timeout: 240 seconds]
<godd2> It's just a Sentence object which will hold a Syntax object.
sailias has joined #ruby
<godd2> so I'm thinking jsut class Sentence < Struct.new(:syntax); def initialize; self.syntax = Syntax.new; end; end
<centrx> Will other classes be accessing the syntax of the sentence?
<jhass> some people say you should avoid the class Name < Struct.new construct
Advocation has joined #ruby
joaoh82 has joined #ruby
<godd2> centrx only to look at it for debugging perhaps
<havenwood> it's better to `Sentence = Struct.new(:syntax); def initialize`
<havenwood> godd2: for sanity's sake
<jhass> and Struct.new takes a block in which you can define methods
<jhass> also I'd never use a Struct for a single attribute
<havenwood> godd2: the messed up #ancestors is just a side effect of doing a strange thing in the first place
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
Eroc has joined #ruby
Eroc has left #ruby [#ruby]
szarubin has joined #ruby
yfeldblum has quit [Remote host closed the connection]
MrRojojojo has quit [Ping timeout: 245 seconds]
zarubin has quit [Ping timeout: 240 seconds]
Notte has quit [Remote host closed the connection]
<godd2> jhass well I'd want to have the sentence to have a #to_s also, like this: https://gist.github.com/nicklink483/1fbcb607fa32d4e1dcfc
rh1n0 has joined #ruby
yfeldblum has joined #ruby
rh1n0 has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
<godd2> havenwood, jhass I'll be sure to use the '= Struct.new' version from now on
<jhass> I see no reason to use a Struct there, a normal class is just one more line
ferr has quit [Quit: Konversation terminated!]
<godd2> But I thought you said that if there are no methods, then just make a struct?
<jhass> there are more methods than attributes
mradmacher has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> and the first thing I said was that the decision is mainly good judgment, later criteria are simply to aid in that
stantona has joined #ruby
paulfm has quit []
<godd2> fair enough, so is a good conclusion that in this case it doesnt matter what route I take?
<havenwood> i agree that class makes more sense here
sameerynho has joined #ruby
alvaro_o has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
<jhass> actually, if you're unsure pick a class, nobody will be confused if you used a class where a struct would be a shortcut. Not so the other way around
maletor has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
Tricon has joined #ruby
maletor has joined #ruby
emdub has quit [Remote host closed the connection]
<godd2> what do you mean that people would be confused?
stantona has quit [Ping timeout: 244 seconds]
emdub has joined #ruby
<jhass> if I'd encounter what you posted in production code I'd be confused about the reasoning for using Struct there
blackmesa has quit [Ping timeout: 244 seconds]
nfk has joined #ruby
mark_locklear has joined #ruby
futuredale has joined #ruby
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
<godd2> What I mean is, what's confusing about it?
r_rios has joined #ruby
<jhass> I'd see no benefit, so it'll make me think of it where normally I wouldn't need to think about the code
emdub has quit [Remote host closed the connection]
emdub has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
Deejay has joined #ruby
<godd2> ah ok
TDJACR has quit [Ping timeout: 260 seconds]
dik_dak has joined #ruby
Deejay is now known as Guest10567
havenwood has quit [Remote host closed the connection]
Georg3 has quit [Quit: Georg3]
nanoyak has joined #ruby
stantona has joined #ruby
andrewjanssen has joined #ruby
fgo has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
olivier_bK has joined #ruby
nanoyak has quit [Client Quit]
TDJACR has joined #ruby
nanoyak has joined #ruby
CorpusCallosum has joined #ruby
<shevy> he does not like to think :-)
Advocation has quit [Quit: Advocation]
<godd2> How much my code makes a developer think is a point of cosideration I'm willing to take on advisement
fgo has quit [Ping timeout: 255 seconds]
<godd2> especially if it's entirely likely that I'm the developer who will be doing the future thinking
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<terrellt> Should totally use a class.
karmatr0n has joined #ruby
sheperson has quit [Ping timeout: 244 seconds]
enape_101 has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
hobodave_ has quit [Quit: Computer has gone to sleep.]
maletor has quit [Ping timeout: 255 seconds]
RaCx has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 272 seconds]
senayar has joined #ruby
chipotle has joined #ruby
maletor has joined #ruby
rezzack has joined #ruby
rezzack has quit [Client Quit]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rezzack has joined #ruby
Gil has quit [Remote host closed the connection]
RaCx has joined #ruby
echevemaster has joined #ruby
Gil has joined #ruby
codabrink has quit [Ping timeout: 252 seconds]
paulfm has joined #ruby
jxf has joined #ruby
codabrink has joined #ruby
techsethi has joined #ruby
Advocation has joined #ruby
jackneill has quit [Ping timeout: 240 seconds]
senayar has quit [Ping timeout: 272 seconds]
RaCx has quit [Ping timeout: 245 seconds]
pothibo has joined #ruby
___mb has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
Advocation has quit [Client Quit]
Gil has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
shvelo has quit [Ping timeout: 272 seconds]
gondalier has joined #ruby
seanosaur[HOU] is now known as seanosaur
RaCx has joined #ruby
kireevco has quit [Quit: Leaving.]
noop has joined #ruby
eka has quit [Ping timeout: 240 seconds]
ferr has joined #ruby
icole has quit [Remote host closed the connection]
sheperson has joined #ruby
blueOxigen has joined #ruby
blackmesa has joined #ruby
eka has joined #ruby
skaflem has quit [Quit: Leaving]
<havenwood> hem, project euler got hacked: https://projecteuler.net
momomomomo has quit [Quit: momomomomo]
toastynerd has quit [Remote host closed the connection]
fold has quit [Ping timeout: 255 seconds]
ferr has quit [Client Quit]
Georg3 has joined #ruby
john____ has joined #ruby
sameerynho has quit [Quit: Leaving]
<jtiggo> havenwood: yea, not cool. i was using it to up my ruby skills
bluOxigen has quit [Ping timeout: 255 seconds]
razrunelord has joined #ruby
<godd2> You can still view the problems with the waybackmachine
<godd2> And I'll bet you can find answers to check your work with some googling
eka has quit [Read error: Connection reset by peer]
<havenwood> godd2: what i wanna know is the ones i haven't done :P
<havenwood> oh well, i'll redo
eka has joined #ruby
sheperson has quit [Ping timeout: 240 seconds]
sheperson has joined #ruby
sheperson has quit [Client Quit]
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
useanalias has left #ruby ["Leaving"]
baroquebobcat has quit [Quit: baroquebobcat]
<jtiggo> godd2: thanks for the info
Notte has joined #ruby
toastynerd has joined #ruby
hobodave has joined #ruby
baroquebobcat has joined #ruby
<AlexRussia> hm
<AlexRussia> remember me, who tell me didn't this? https://github.com/rubygems/rubygems/pull/945
havenwood has quit [Remote host closed the connection]
Nebnev has quit [Ping timeout: 272 seconds]
vpretzel has quit [Remote host closed the connection]
noop has quit [Read error: Connection reset by peer]
dapz has joined #ruby
jxf has quit [Ping timeout: 244 seconds]
vpretzel has joined #ruby
eka_ has joined #ruby
beneggett has joined #ruby
shvelo has joined #ruby
shvelo has quit [Changing host]
shvelo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jonahR has quit [Remote host closed the connection]
Georg3 has quit [Quit: Georg3]
jonahR has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
stantona has quit [Remote host closed the connection]
jonahR_ has joined #ruby
eka has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
codeurge has joined #ruby
dangerousdave has joined #ruby
timonv has joined #ruby
jonahR has quit [Ping timeout: 272 seconds]
eka_ has quit [Ping timeout: 240 seconds]
enebo has quit [Quit: enebo]
hobodave has quit [Quit: Computer has gone to sleep.]
Georg3 has joined #ruby
aesptux has joined #ruby
sandbags has joined #ruby
sandbags has joined #ruby
hobodave has joined #ruby
eka has joined #ruby
x1337807x has joined #ruby
jobewan has quit [Quit: Leaving]
postmodern has joined #ruby
kireevco has joined #ruby
JohnBat26 has quit [Ping timeout: 244 seconds]
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
ringarin has quit [Ping timeout: 244 seconds]
timonv has quit [Ping timeout: 245 seconds]
jxf has joined #ruby
Zai00 has joined #ruby
mattmcclure has joined #ruby
eka_ has joined #ruby
eka has quit [Ping timeout: 240 seconds]
bricker`work is now known as bricker
djbkd has quit [Remote host closed the connection]
lemur has joined #ruby
bricker is now known as bricker`work
noop has joined #ruby
fgo has joined #ruby
iliketurtles has joined #ruby
Takle has joined #ruby
axsuul has joined #ruby
benzrf|offline is now known as benzrf
toastynerd has quit [Remote host closed the connection]
senayar has joined #ruby
Zai00 has quit [Quit: Zai00]
lemur has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
jtiggo has quit []
fgo has quit [Ping timeout: 240 seconds]
joaoh82 has quit []
baroquebobcat has joined #ruby
brasten has joined #ruby
toastynerd has joined #ruby
chrishough has quit [Quit: chrishough]
axsuul has quit [Ping timeout: 264 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
senayar has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
stantona has joined #ruby
xcv_ has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
r_rios has quit [Ping timeout: 240 seconds]
andrewjanssen has quit [Quit: Leaving...]
Steve21 has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
andrewjanssen has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
pu22l3r has joined #ruby
ctp has joined #ruby
xcv has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
hermanmunster has joined #ruby
icole has joined #ruby
andrewjanssen has quit [Client Quit]
dangerousdave has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
Steve21 has quit [Quit: Steve21]
freerobby has joined #ruby
freerobby has quit [Client Quit]
dangerousdave has joined #ruby
Takle has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
sinkensabe has quit [Ping timeout: 272 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
r_rios has joined #ruby
jprovazn has quit [Quit: Odcházím]
RaCx has joined #ruby
djbkd has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
bmurt has quit []
Guest10567 has quit [Quit: Computer has gone to sleep.]
dgutierrez1287 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
andrewjanssen has quit [Client Quit]
Zenigor has quit [Remote host closed the connection]
aesptux has quit [Remote host closed the connection]
Zamerick has quit [Quit: Leaving]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
aesptux has joined #ruby
aesptux has quit [Read error: Connection reset by peer]
BradLsys has quit [Quit: Leaving]
aesptux has joined #ruby
WormDrink has joined #ruby
sailias has quit [Quit: Leaving.]
<shvelo> congrats, that's over 100 consecutive join/quit messages
<jhass> congrats, a smart client can hide them
fresham has joined #ruby
<shvelo> yeah but it's sad
<jhass> you're new to IRC, right?
<shvelo> jhass, why?
<jhass> it's perfectly normal
<shvelo> I've been using IRC since Gaben created the universe
simoz111116 has joined #ruby
mark_locklear has quit [Ping timeout: 245 seconds]
<Georg3> Good afternoon gentlemen.
Fractional has joined #ruby
tier has quit []
john____ has quit []
scx_ has joined #ruby
danman has joined #ruby
treehug8_ has joined #ruby
<tsunamie> sorry I forgot the cdomand I can run on the command line which would tell me the files encoding?
iliketurtles has quit [Quit: zzzzz…..]
<jhass> `file` prints that in some circumstances
<apeiros> file. but it only can make an educated guess
AlSquire has joined #ruby
paulfm has quit []
zorak has joined #ruby
<tsunamie> it told me what ruby thought the file encoding is
<apeiros> guesses are *not* reliable. do *not* use them if you can have a better source of information.
<apeiros> ruby doesn't think anything.
<apeiros> ruby uses exactly the encoding you tell it to use. either explicitly or via its defaults.
joaoh82 has joined #ruby
scx has quit [Ping timeout: 240 seconds]
trybeee has joined #ruby
treehug88 has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
<tsunamie> so there is no command that ruby can run to check what a file encoding is? or what it thinks it is?
<tsunamie> as I don't want to have to know the file encoding by running something like File.open(filename, "r:ASCII-8BIT") do |file|
<apeiros> a file does NOT contain information about its encoding. and no, ruby itself does not ship with code to make guesses on the encoding of a file.
<tsunamie> I want to be able to run a command and find out what the file encoding is and then process it based on that
<apeiros> *sob*
<tsunamie> apeiros, thank fair enought
dangerousdave has quit [Ping timeout: 244 seconds]
<tsunamie> apeiros, hehe I can symethize
<apeiros> I repeat: you. can. not. get. the. file. encoding. all you can do is get educated guesses. the linux `file` command will do that.
yfeldblu_ has joined #ruby
eka_ has quit [Read error: Connection reset by peer]
<apeiros> you have to take precautions so you *know* the encoding. that means the source of the file has to tell you the encoding and you store it along with the file or similar.
dangerousdave has joined #ruby
eka has joined #ruby
<jhass> tsunamie: what he's telling you is that you should fix the process you obtain the files from to deliver a consistent or at least a known encoding
Steve21 has joined #ruby
eka has quit [Read error: Connection reset by peer]
<tsunamie> jhass, I get that, however if the file is a 3rd party that dictates standards then I can't really push them to confirm to mine. However I understand what you mean
eka has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<apeiros> tsunamie: if they dictate standards, I *SURE* hope those standards include the encoding.
<jhass> sad standards that don't even dictate the encoding
<apeiros> and if not, hit them with a bat, or a club. I'll gladly lend you the one I use for such things.
<tsunamie> apeiros, it does, they have been changing it fdor some reason
<eam> jhass: so, most of them then
yfeldblum has quit [Ping timeout: 240 seconds]
<apeiros> hopefully from <random legacy encoding> to <unicode based encoding like utf-8 or -16>
r_rios has quit [Ping timeout: 240 seconds]
<tsunamie> apeiros, I have asked why, however no answer in my support ticket :(
<eam> for example, what encoding is this text from IRC you're reading right now?
<apeiros> eam: irc standard? haha, good one :D
<eam> ;-)
<jhass> yeah, IRC totally is what I call a sad standard
<eam> I mean there's a super clear standard: it's a bunch of bytes
<apeiros> also: fuck everybody who doesn't use utf-8 on irc :-p
<tsunamie> anywaqy thanks guys, really helpful stuff. Gues I will have to work something out
<godd2> tsunamie the reason you can't know the encoding of a file by looking at it is because even if the file tells you what encoding it is, those bytes it is using to do so could randomly and coincidentally be bytes that should be interpreted a different way by another encoding.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alin_ has quit [Quit: Leaving]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tsunamie> godd2, ty
dgutierrez1287 has quit [Ping timeout: 264 seconds]
Tricon has quit [Quit: Leaving...]
<apeiros> godd2: file formats which contain encoding information do so in a robust format (usually)
matkal has joined #ruby
b00stfr3ak has quit [Ping timeout: 244 seconds]
<jhass> hm, I need to get a font for the unicode 7 emoji set
<matkal> is it possible for me do an OAUth API authentication from a ruby script
b00stfr3ak has joined #ruby
<matkal> ?
<jhass> matkal: yes
<matkal> how?
cocotton has joined #ruby
<jhass> see oauth gem (or oauth2 if that's what you're using)
<apeiros> mmmmh, soon I'll get around to implement fleets and exploration in my nice little starbase orion clone :D
<matkal> the API is using OAuth1
techsethi has quit [Quit: techsethi]
baroquebobcat has quit [Quit: baroquebobcat]
christickner has joined #ruby
<matkal> i belive that as i send a request the user is suppose to fill in user credentials in case of a web app. How does this work from a background script
iliketurtles has joined #ruby
maximski has quit []
<godd2> apeiros: are you doing it in ruby? if so, are you using the gosu gem?
ldnunes has quit [Quit: Leaving]
<christickner> Hi all, I have a MYSQL dump file - I need to do a regular expression replace on it - when I do this with one of my dbs, I get a "invalid byte sequence in UTF-8" error. I have tried the /u modifier. Running out of ideas. Using 2.1
aspires has joined #ruby
xcv_ has quit [Remote host closed the connection]
<apeiros> godd2: doing it in JS
<jhass> christickner: you're sure that dump is in UTF-8 and so is all data in it?
<apeiros> godd2: coincidentally will make it easier to run AI tournaments (because I can run the AIs in isolated VMs)
<matkal> Any ideas on OAuth from background script please
jheg_ has joined #ruby
kyb3r_ has joined #ruby
cocotton has quit [Remote host closed the connection]
<christickner> jhass: perhaps all data is not .. there are some binary blobs in there
<christickner> jhass: lets assume it is not, how can I proceed?
<jhass> you're unable to import it as it is?
noop has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
cocotton has joined #ruby
<christickner> jhass: Importing is not the issue ... its the sqldump.gsub that throws
<jhass> import and then fix the data inside the db
pu22l3r has quit [Ping timeout: 244 seconds]
sigurding has joined #ruby
<christickner> jhass: not a bad idea, but my db is rather large and the regex replaces can happen in any table and any column
lmickh has quit [Remote host closed the connection]
<christickner> jhass: is there any way to do this on the sql string?
mary5030 has quit [Remote host closed the connection]
r_rios has joined #ruby
<jhass> you probably could try it line by line and swallow the error
<jhass> what are you doing there anyway?
Gil has joined #ruby
fresham has left #ruby [#ruby]
nanoyak has joined #ruby
<christickner> We want a quick and dirty was to replace URLs in the CMS DB... so its quite ugly, but we can live with that... this happens in a capistrano task
<jhass> that doesn't sound like "any table/any column" to me
tus has joined #ruby
spider-mario has quit [Remote host closed the connection]
Skei has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
<godd2> yea christickner why dont you just dump field that will have the urls you're concerned with
cocotton has quit [Remote host closed the connection]
<godd2> unless the urls are the thing causing the problem
Georg3 has quit [Ping timeout: 272 seconds]
amargherio has quit [Remote host closed the connection]
Gil has quit [Ping timeout: 240 seconds]
jerius_ has quit []
senayar has joined #ruby
<christickner> yeah. cool, thanks for the tips. will probably go that route.
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nebnev has joined #ruby
testcore has quit [Quit: [BX] Everybody was Kung Fu fighting!]
djbkd has quit [Remote host closed the connection]
bdnelson has joined #ruby
<shevy> undefined method `e'
<shevy> hmm
<shevy> how to catch that? if self.respond_to? :e ?
<jhass> no need for the self. even
cocotton_ has joined #ruby
<shevy> really? hmm lemme test
<godd2> is it happening inside a method_missing?
cocotton_ has quit [Remote host closed the connection]
<shevy> cool
cocotton has joined #ruby
<shevy> if respond_to? :e
<shevy> seems to work
hpoydar has quit [Remote host closed the connection]
chrishough has joined #ruby
andrewlio has quit [Quit: Leaving.]
ari-_-e has joined #ruby
jheg_ has quit [Quit: jheg_]
djbkd has joined #ruby
senayar has quit [Ping timeout: 272 seconds]
mradmacher has quit [Ping timeout: 264 seconds]
vinleod has joined #ruby
jerius has joined #ruby
mjsmith2_ has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
alexandrite has quit [Ping timeout: 264 seconds]
gondalier has quit []
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
Eyes has quit [Quit: X probably crashed]
frem has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
frem has joined #ruby
<lagweezle> Using rspec 3 and I'm wondering how I go about mocking out this call --> RestClient.post notification_uri, body.to_json, :authorization => "Bearer #{config.hipchat_v2_api_oauth_token}", :content_type => :json, :accept => :json
Xeago has quit [Remote host closed the connection]
<lagweezle> Or rather, stubbing out ...
nanoyak has quit [Quit: Computer has gone to sleep.]
<jhass> webmock or just allow(RestClient).to receive(:post).and_return(double)
<lagweezle> webmock?
ctp has joined #ruby
marr has quit []
jerius has quit [Client Quit]
<lagweezle> Ah. I see... Thank you Googles.
<jhass> !gem webmock
<jhass> !ping
andrewjanssen has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
sonofflynn has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
dda has quit [Quit: logging out.]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
<bricker`work> jhass: wrong channel :)
<jhass> no, we got helpa here now
<bricker`work> we do?
<bricker`work> neat
<bricker`work> !botsnack
bricker`work is now known as bricker
<bricker> !botsnack
<helpa> Nom nom. Thanks, bricker!
<bricker> :o
jfran has joined #ruby
seanosaur has quit [Remote host closed the connection]
<shevy> !botsex
scx_ has quit [Ping timeout: 264 seconds]
<lagweezle> helpa?
K3dare has quit [Ping timeout: 272 seconds]
<bricker> !helpa
<helpa> Stack overflow at line: 0
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lagweezle> jhass: Hmm is there a means to dump out what the stubbed method actually was called with?
scx has joined #ruby
<jhass> maybe, but nothing I'm immediately aware of. I mean you can just def RestClient.post(*args); p args; end
<jhass> if you want to assert the args or differentiate the return value based on them use .with
shvelo has quit [Ping timeout: 240 seconds]
K3dare has joined #ruby
almostwhitehat has quit [Quit: almostwhitehat]
SBoolean has quit [Remote host closed the connection]
<lagweezle> The '.with' I'm seeing and I think I understand. Was just hoping for a means to figure out what is being sent to it presently.
<lagweezle> Nice for when I'm exploring things and confused (which is often ;).
<jhass> well as said, just override it and let it print
andrewjanssen has quit [Ping timeout: 240 seconds]
cocotton has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
Georg3 has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
gondalier has joined #ruby
troyready has quit [Quit: Leaving]
zorak has quit [Ping timeout: 245 seconds]
Stalkr^ has quit [Quit: Leaving...]
shvelo has joined #ruby
NukePuppy has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
willbarrettdev has quit [Quit: Leaving]
aspires has quit []
* lagweezle nods
<lagweezle> Thank you very much! :)
moritzs has joined #ruby
christickner has quit [Quit: christickner]
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kilk_ has joined #ruby
brasten has quit [Quit: brasten]
minus78_ has joined #ruby
<minus78_> hello
brasten has joined #ruby
spicerack has joined #ruby
<minus78_> Sorry for my english, I want learn Ruby, but I don't understand :variable . The :variable contain a memory adress ?.
<godd2> do you mean the symbol?
baroquebobcat has quit [Quit: baroquebobcat]
<godd2> :variable is an object called a Symbol. It acts like a string in a lot of ways, and it's often used in code for naming things like methods
razrunelord has quit [Remote host closed the connection]
cobakobodob has quit [Ping timeout: 264 seconds]
jespada has quit [Quit: Leaving]
icole has quit [Remote host closed the connection]
<pipework> minus78_: Look up Symbol in ruby documentation.
aspires has joined #ruby
<pipework> It's like an atom.
razrunelord has joined #ruby
hpoydar has joined #ruby
<shevy> what documentation
AlSquire has quit [Quit: This computer has gone to sleep]
<minus78_> Yes, I mean symbol, but when I write for example h = {:v => 16} and b = {:v => 17} why I don't obtain h[:v] = 17, because :v has a same object_id
<benzrf> minus78_: those are 2 different hashes
<benzrf> minus78_: you need to unlearn your c stuff
jhass is now known as jhass|off
chipotle has quit [Quit: cya]
treehug8_ has quit []
<benzrf> :v is *not* being bound to 16
<benzrf> or 17
Georg3 has quit [Quit: Georg3]
<benzrf> :v itself is just a value
<benzrf> minus78_: think of it like this
diegoviola has quit [Remote host closed the connection]
<shevy> minus78_ it is not a variable
baroquebobcat has joined #ruby
<benzrf> minus78_: if you have a tree and a way of numerically addressing nodes in it
<eam> { x => y } returns a Hash which has a key of x mapped to a value of y
<Senjai> :v is an instance of Symbol
<eam> x and y can be anything
<benzrf> minus78_: you would not get the same value from looking up the same address in 2 different trees
saarinen has quit [Quit: saarinen]
<benzrf> minus78_: :v is an abstract value that h uses as a key to 16
alexandrite has joined #ruby
<benzrf> :v itself is not being pointed to anything
<benzrf> minus78_: you need to forget about memory locations and object_id's
karmatr0n has quit []
<benzrf> ruby is significantly higher level :i
<godd2> minus78_ the reason they have the same object_id is to save memory space when you're dealing with lots of symbols.
xerxas has quit [Quit: Connection closed for inactivity]
zorak has joined #ruby
icole has joined #ruby
<benzrf> minus78_: i should also warn you that ruby uses pointer-like assignment and arguments
<pipework> I bet someone has written something like "Ruby for C developers"
<eam> he doesn't need to forget about object_id, that's fine
<eam> the important part is that there are two separate hash objects
jahkobi has quit [Quit: jahkobi]
<eam> which each do something different given identical inputs
nowthatsamatt has quit [Quit: nowthatsamatt]
<pipework> I gnu it.
<shevy> you guys overwhelm him
rebelshrug has joined #ruby
razrunelord has quit [Ping timeout: 272 seconds]
dblessing has quit [Quit: dblessing]
<benzrf> pipework: i thought you gnu better
<shevy> he is now all shy and quiet
<pipework> I blame shevy.
<eam> way to go shevy
<benzrf> shevy boooo
alexandrite has quit [Remote host closed the connection]
<shevy> perhaps he will be silent for the rest of his life
aspires has quit []
<shevy> minus78_ can you help the people here by saying that you understand symbol now?
<eam> I mean, maybe he always has been silent
<eam> and can only type on irc
<eam> silently
<shevy> perhaps we can quiz him
<shevy> perhaps not
<shevy> :(
<minus78_> Tanks, I understand
<eam> I have a question for you guys: what is the absolute worst thing that ruby does
<shevy> \o/
<shevy> eam documentation
axsuul has joined #ruby
saarinen has joined #ruby
<shevy> hmm
alexandrite has joined #ruby
<ari-_-e> implicit context
<godd2> GIL
<pipework> eam: Anyone can use it.
<shevy> lol
<eam> hahahaha
<shevy> that's the best answer
<benzrf> eam: oh god so much to choose from
<benzrf> uuuuuuhhh
yubrew has quit [Remote host closed the connection]
dangerousdave has joined #ruby
<benzrf> blocks are special syntax, maybe
<shevy> I understand GIL but I don't quite understand what is mean with implicit context
dangerou_ has quit [Read error: Connection reset by peer]
<benzrf> hmm
<pipework> shevy: Lexical scope, I think.
<benzrf> i want to moan about no first class functions
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> pipework: do u mean dynamic scope
<benzrf> cuz lexical scope is generally 'normal' behavior
<pipework> benzrf: fuck if i know
<shevy> sounds pythonic, those first class functions
<godd2> shevy maybe he means the way certain constructs grab up local variables implicitly in different ways?
<pipework> I think it's a great thing that ruby doesn't have first class functions, only member functions.
<benzrf> pipework: whats the diff
<eam> no variable declaration
<benzrf> how are those mutually exclusive
<pipework> benzrf: I don't really know, honestly.
xcv has joined #ruby
<pipework> ari-_-e: slowbro
<godd2> wait, it's a complaint that self is constextual? in an object oriented language?
<pipework> idk.
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LnL has quit [Read error: Connection reset by peer]
LnL_ has joined #ruby
<shevy> I have no idea
<shevy> and that article in broken english sure does not help me understand either
<pipework> shevy: Now you know how I feel when chatting to you. :(
doodleha_ has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
<shevy> man
<shevy> my english is better than your japanese pipework
olivier_bK has quit [Ping timeout: 240 seconds]
<pipework> shevy: It's true.
<benzrf> enlgihs
<pipework> My alcoholism is more depressing than your presence here.
<shevy> I used to be able to count from 1 up to 10 in japanese
<ari-_-e> godd2: the main problem is that these implicit contexts can be changed without your knowledge
<benzrf> ari-_-e: use haskell
<shevy> alcohol is a good thing, just look at beer in bavaria
<benzrf> it has almost no implicit stuff!
<benzrf> \o/
<ari-_-e> making it impossible to tell what is going on in many cases without digging into the code of the libraries you're using
<benzrf> it doesnt even have implicit side effects, that's how good it is
timonv has joined #ruby
<benzrf> dang!
<pipework> ari-_-e: I don't really have as hard a time I guess.
<ari-_-e> benzrf: that's not at all what I'm talking about
<benzrf> ari-_-e: i am mostly being facetious
<shevy> Even the japanese find such bavarians great: http://goo.gl/jocwy2
vifino has quit [Quit: Ze Cat now leaves...]
RaCx has quit [Ping timeout: 272 seconds]
karmatr0n has joined #ruby
hobodave has quit [Ping timeout: 240 seconds]
Gil_ has joined #ruby
minda has left #ruby [#ruby]
karmatr0n has quit [Client Quit]
<ari-_-e> pipework: many people seem to be able to tolerate the so-called "DSL"s that people create in ruby by abusing its metaprogramming facilities
<ari-_-e> I can not
tcstar has quit [Ping timeout: 244 seconds]
<pipework> ari-_-e: Sounds like a 'you' problem.
<eam> >> Ƽ = 4; Ƽ
<eval-in> eam => 4 (https://eval.in/164557)
ascarter has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<godd2> >> a = true and false; a
<eval-in> godd2 => true (https://eval.in/164560)
<ari-_-e> pipework: it's really a "people who want to understand how their tools work" problem
mercerist has quit [Quit: Computer has gone to sleep.]
<pipework> ari-_-e: I don't man, I never had a problem looking at the source to DSLs.
<pipework> Probably just a "I don't want to spend the time to figure this out" problem.
dangerousdave has quit [Ping timeout: 264 seconds]
<godd2> Class is a Module, but Module is a Class, but Class is an Object, but Object is a Class
<pipework> Class is a Class
RaCx has joined #ruby
<shevy> it depends a lot on the DSL in question
<shevy> I seem to mostly just get away with yaml
hpoydar has quit [Remote host closed the connection]
<shevy> when the DSL becomes its own programming language than something is strange
thesheff17 has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
<shevy> *then
<shevy> pipework see? I noticed my mistake
<pipework> Yeah, we should all just make our own hardware.
<pipework> shevy: 0 fucks given either way
<shevy> perhaps!
timonv has quit [Ping timeout: 272 seconds]
<shevy> I mean can you become as large as intel?
Gil_ has quit [Ping timeout: 240 seconds]
<shevy> eventually we can 3D print our hardware
<shevy> i486
<shevy> those machines used to have the better games :(
<pipework> Can we 3d print a way for you to be funny?
<pipework> I'd kickstarter that.
bdnelson has quit [Quit: Textual IRC Client: www.textualapp.com]
emsilva has quit [Quit: Keep Walking (Computer Slept!)]
<eam> apply black ice defender to the burn
<shevy> how is 3d printing helping there pipework
atomic has joined #ruby
workmad3 has joined #ruby
<atomic> hi, anyone using the aws-sdk to create rds instances?
<pipework> shevy: It was the topic. My desire is a way for you to be funny in any medium.
<minus78_> thanks, and I continue to learn ruby and after I test Ruby on Rails, I come back here, if I have another problem, good bye
<shevy> pipework 3D printing is serious business man, it is not funny
mikesplain has quit [Ping timeout: 264 seconds]
enape_101 has joined #ruby
<pipework> shevy: It is funny. Soon I shall invest in a rather high quality 3d printer.
Nebnev has quit [Ping timeout: 255 seconds]
minus78_ has quit [Quit: Page closed]
<shevy> oh
<shevy> I found a good pic... a moment
<shevy> hmm
<shevy> that dog is actually quite cute
sigurding has quit [Quit: sigurding]
aesptux has quit []
Jammaloo has joined #ruby
zorak is now known as zorak8
zorak8 has quit [Quit: Saliendo]
zorak8 has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
geggam has quit [Quit: commute]
jahkobi has joined #ruby
riotjones has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
<Steve21> anyone help me out with testing a ruby app that is leveaging github api?
kireevco has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
kireevco has joined #ruby
tcstar has joined #ruby
blueOxigen has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
gondalier has quit []
shevy has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
davidvl has quit [Quit: This computer has gone to sleep]
Kryptonical has joined #ruby
joaoh82 has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 240 seconds]
Steve21 has quit [Quit: Steve21]
chipotle has joined #ruby
Wolland has joined #ruby
gondalier has joined #ruby
dorei has joined #ruby
gondalier has quit [Client Quit]
gondalier has joined #ruby
gondalier has quit [Max SendQ exceeded]
fgo has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
hpoydar has joined #ruby
gondalier has joined #ruby
mercerist has joined #ruby
hermanmunster has joined #ruby
xcv has quit [Remote host closed the connection]
yubrew has joined #ruby
hermanmu_ has joined #ruby
marr has joined #ruby
andrewjanssen has joined #ruby
definiv has joined #ruby
definiv has quit [Client Quit]
fgo has quit [Ping timeout: 272 seconds]
hermanmunster has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cya]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
shvelo has quit [Ping timeout: 245 seconds]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zigomir has quit [Remote host closed the connection]
RandyT has quit [Ping timeout: 264 seconds]
dapz has joined #ruby
zigomir has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
hermanmu_ has quit [Ping timeout: 240 seconds]
andrewlio has joined #ruby
shevy has joined #ruby
kevind has quit [Quit: kevind]
zigomir has quit [Ping timeout: 244 seconds]
cobakobodob has joined #ruby
baroquebobcat has joined #ruby
klaut has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
blackmesa has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Gaddel has joined #ruby
simoz111116 has quit [Ping timeout: 240 seconds]
GeekOnCoffee has quit [Ping timeout: 240 seconds]
kilk_ has quit [Quit: Leaving]
Rix has quit [Ping timeout: 252 seconds]
GeekOnCoffee has joined #ruby
renderful has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
elaptics`away is now known as elaptics
razrunelord has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
razrunelord has quit [Client Quit]
Jammaloo has quit [Ping timeout: 245 seconds]
orionstein is now known as orionstein_away
jfran has joined #ruby
GeekOnCoffee has quit [Ping timeout: 244 seconds]
RandyT has joined #ruby
aspires has joined #ruby
chrishough has quit [Quit: chrishough]
chrishough has joined #ruby
frem has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
GeekOnCoffee has joined #ruby
ovoraptor has joined #ruby
joaoh82 has joined #ruby
asteve has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
mr_snowf1ake has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has quit [Client Quit]
workmad3 has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
hermanmunster has quit [Ping timeout: 245 seconds]
scx_ has joined #ruby
end_guy has quit [Ping timeout: 264 seconds]
dgaffney has quit [Remote host closed the connection]
rgrinberg has quit [Quit: Leaving.]
ovoraptor has quit [Remote host closed the connection]
emsilva has joined #ruby
sandbags has quit []
chrishough has joined #ruby
ovoraptor has joined #ruby
scx has quit [Ping timeout: 255 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgrinberg has joined #ruby
loadhigh has joined #ruby
raluxgaza has joined #ruby
scx has joined #ruby
<benzrf> >> const
<eval-in> benzrf => undefined local variable or method `const' for main:Object (NameError) ... (https://eval.in/164595)
<benzrf> o wait
<benzrf> nyeh
joaoh82 has quit [Ping timeout: 264 seconds]
end_guy has joined #ruby
leeve has quit [Ping timeout: 260 seconds]
<raluxgaza> Anyone read The Well Grounded Rubyist 2nd edition yet?
<raluxgaza> is it any good?
<raluxgaza> The first edition was very good
scx_ has quit [Ping timeout: 255 seconds]
comma8 has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
ovoraptor has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
nicksanford has joined #ruby
axsuul has joined #ruby
raluxgaza has quit [Remote host closed the connection]
<mbwe> raluxgaza: is it good also for a beginner to learn ruby or is it more like for an advanced audiance
Rix has joined #ruby
Gil has joined #ruby
whirlpool has joined #ruby
comma8 has joined #ruby
Sc0rp10n has joined #ruby
dh64 has quit [Ping timeout: 272 seconds]
terrellt has quit [Ping timeout: 240 seconds]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
Gil has quit [Ping timeout: 255 seconds]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
chrishough has quit [Ping timeout: 245 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
hpoydar has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
bradleyprice has quit [Ping timeout: 240 seconds]
nicksanford has quit [Remote host closed the connection]
goleldar has quit []
Stalkr^ has joined #ruby
chrishough has joined #ruby
loadhigh has left #ruby [#ruby]
loadhigh has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> why do instance_eval and class_eval have the wrong name?
marc_online_ has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
senayar has joined #ruby
yubrew has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
mercerist has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
danijoo has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
benlieb_ has joined #ruby
gondalier has quit []
yubrew has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
cocotton_ has joined #ruby
gondalier has joined #ruby
stantona has quit [Ping timeout: 244 seconds]
nicksanford has joined #ruby
benlieb has quit [Ping timeout: 264 seconds]
benlieb_ is now known as benlieb
fgo has quit [Ping timeout: 272 seconds]
marc_online_ has quit [Quit: Marc_Online_]
mijicd has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
cocotton has quit [Ping timeout: 240 seconds]
aspires has quit []
vinleod has joined #ruby
thesheff17 has joined #ruby
agrinb has quit [Remote host closed the connection]
terrellt has joined #ruby
aspires has joined #ruby
nicksanford has quit [Remote host closed the connection]
r_rios has quit [Ping timeout: 245 seconds]
_maes_ has quit [Ping timeout: 240 seconds]
r_rios has joined #ruby
ndrei has joined #ruby
joaoh82 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has joined #ruby
snath has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
andrewlio has quit [Quit: Leaving.]
Takle has joined #ruby
jrmithdobbs has joined #ruby
jxf has quit [Ping timeout: 272 seconds]
ecksit has joined #ruby
kirun has quit [Quit: Client exiting]
aspires has quit []
bluehavana has joined #ruby
atomic has quit [Quit: Lost terminal]
marc_online_ has joined #ruby
gigetoo has quit [Remote host closed the connection]
gigetoo has joined #ruby
snath has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
moritzs has quit [Ping timeout: 240 seconds]
datafirm has quit [Quit: Computer has gone to sleep.]
chipotle has joined #ruby
datafirm has joined #ruby
troyready has joined #ruby
bahar has quit [Quit: ZNC - http://znc.in]
marc_online_ has quit [Quit: Leaving]
codeurge has joined #ruby
chrishough has quit [Ping timeout: 264 seconds]
marc_online_ has joined #ruby
timonv has joined #ruby
agrinb has joined #ruby
Marc_Onl1 has joined #ruby
<godd2> shevy how do you mean?
Marc_Onl1 has quit [Client Quit]
dmyers has joined #ruby
dapz has joined #ruby
djbkd has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 240 seconds]