apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
<apeiros> you asked that like 2417 hours ago and got an answer…
<ntzrmtthihu777> no, I didn't.
<apeiros> either you're confusing things or I don't know…
nomenkun has quit [Ping timeout: 256 seconds]
<apeiros> yes, you did. you had an array of filenames and code. same thing really.
Peej has joined #ruby
<apeiros> how you extract the data from a jar - that's something I hope you know since you already do that stuff
<apeiros> once extracted it's the same deal again: eval.
<ntzrmtthihu777> apeiros: not really. I think you misunderstood what I meant about the array, anyways, but this is not code you eval.
<apeiros> *sob*
bradsmit_ has quit [Remote host closed the connection]
<apeiros> well, whatever. this is too tedious for me. I'm out.
<ntzrmtthihu777> These are *objects*; they contain data about various parts of the game. say Map001.dat contains info on the layout of that map, what events are where, what sounds are linked to it.
<ntzrmtthihu777> apeiros: btw not trying to be an ass but you were quite adamant about saying what I was doing was impossible, lol.
jorge has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
<apeiros> I don't think I ever said it was impossible. in the opposite. I think it should be rather easy. and you not making progress is related to you making a whole lot of a mess of what is what and what is related to what.
ssvo has quit [Ping timeout: 248 seconds]
vikhyat_ has joined #ruby
<Nilium> Why does it matter if it's in a jar or not? O_o
JZTech101 has joined #ruby
bionoid has quit [Remote host closed the connection]
rodacato has joined #ruby
<Nilium> Just get the data out of the jar then load it. Or can you not pull it out of the jar (which seems unlikely)?
<ntzrmtthihu777> Nilium: I'd like, if possible, to keep this as a singular unit.
<Nilium> What does that mean?
<apeiros> Nilium: part of my point…
vikhyat has quit [Ping timeout: 248 seconds]
<Nilium> apeiros: Yeah, that's what I gathered from what you'd said
<apeiros> if you store *data*, it's marshal. prerequisite for Marshal.load is that all classes used are present (*code*)
<ntzrmtthihu777> Nilium: it means instead of Game.jar + a handfull of external files you have Game.jar with those files contained inside.
<apeiros> if you store *code*, you use eval
<Nilium> Yes, that's fine, but why can't you read the data from the jar then load it?
<ntzrmtthihu777> apeiros: as I've said, the classes are loaded.
mercwithamouth has quit [Ping timeout: 264 seconds]
ewnd9 has joined #ruby
<apeiros> and all the rest is ntzrmtthihu777 having to figure out what he has where, how to extract and that's it.
<ntzrmtthihu777> Nilium: this is what I'm asking.
<Nilium> Well can you read the data from the jar?
<ntzrmtthihu777> ... Nilium you are asking the question I am asking. I don't *know* if it can be done, which is why I'm asking.
Kruppe has quit [Remote host closed the connection]
<Nilium> Ok, ntzrmtthihu777, what's a jar file?
<Nilium> I know what a jar file is, but do you know what a jar file is?
<ntzrmtthihu777> a zip that generally contains meta-inf and classes.
smathieu has quit [Ping timeout: 264 seconds]
<Nilium> Ok, and if it's a zip file, can you read something inside the zip file?
<Nilium> The answer's yes, by the way.
<ntzrmtthihu777> Nilium: which is why I'm asking how.
<ntzrmtthihu777> a link would do wonderously, I learn far better from reading code examples and playing around with it than talking with people most times XD
Krajsnick has joined #ruby
<Nilium> Well, consult the jata.util.zip.ZipFile class documentation.
<Nilium> I can't give you a link, though, 'cause I'm consulting Dash.
<ntzrmtthihu777> Nilium: lol, thanks anyway. But I mean can you do that with ruby?
<Nilium> So, from the looks of things, it's about.. three calls to something.
<r0bgleeson> on jruby, sure
<Nilium> Can you use Java classes in jruby?
<apeiros> yes
<Nilium> I don't use jruby, so damned if I know, but I'd sort of assume you can because otherwise jruby being on the jvm would be completely useless.
<ntzrmtthihu777> Nilium: I don't know how to say what I'm thinking, but basically the only java I'm using is to extend the ruby a bit, lol.
<ntzrmtthihu777> Nilium: aint that the truth XD
mercwithamouth has joined #ruby
Krajsnick has quit [Remote host closed the connection]
<Nilium> Looks like step 1 is require 'java'
FredInDshell has quit [Ping timeout: 246 seconds]
<Nilium> And then step 2 is do stuff normally.
<Nilium> So, yeah, uh.. yeah. Seems pretty simple
crashfocus has joined #ruby
<ntzrmtthihu777> Nilium: been there, done that. and afaik require 'java' has been replaced with include Java :P
RichardBaker has joined #ruby
<Nilium> Whatever. I think the using-java-in-jruby bit is confirmed, so I'm not sure what you're stuck on.
<ntzrmtthihu777> but I'm looking for a pure ruby solution, if possible. if not I'll mosey on and trouble ya'll no more :P
<Nilium> A pure ruby solution?
<Nilium> Why? You're already tied to Java, you're not getting out of this one with your limbs intact, mate.
<Nilium> The facehugger's already jammed the alien wingwong down your throat, you're in it for the long haul.
airlok has joined #ruby
<ntzrmtthihu777> Nilium: yeah. what is the way, if any, you would call foo("Some.jar:/path/to/internal/file")
<ntzrmtthihu777> that's what my question boils down to. if there is no way, then nevermind, but hey, you never know till you ask XD
marr has quit [Ping timeout: 264 seconds]
FredInDshell has joined #ruby
<Nilium> def foo(*) ; end ; foo("blahblahblah")
<Nilium> In short, either make use of the Java stuff or start figuring out how to pull specific entries out of a zip file on your own.
<Nilium> I would recommend going with the ZipFile class in Java, like I mentioned, because the whole 'pure ruby' thing is stupid in your case.
crashfocus has quit [Ping timeout: 256 seconds]
<Nilium> I'm also not sure why you're opposed to using Java classes in the first place when I think I'd read that you're using lwjgl and such which suggests you have a weird aversion to Java for only one specific thing.
<ntzrmtthihu777> Nilium: has to do with how my script files are loaded, plus interfacing jruby with java is a bit tricky here XD
Mon_Ouie has quit [Ping timeout: 276 seconds]
<Nilium> Tricky how?
<Nilium> What about opening a file and using ZipFile is tricky? I don't even _like_ Java or use it regularly and this looks like a cakewalk to me. Also who the heck coined the term cakewalk?
<Nilium> Was someone actually walking on a cake?
<ntzrmtthihu777> Nilium: how to explain... dunno.
<Nilium> Apparently it's a type of dance.
arya_ has quit [Ping timeout: 246 seconds]
<Nilium> Someone must've run out of names for dances.
nfk has quit [Quit: yawn]
<ntzrmtthihu777> Nilium: actually cakewalk was a southern thing, best cakewalker (dance, as you said) recieved a cake (not like a sugary cake but like corncake)
<Nilium> I'd try to illustrate loading something in a jar file but jruby's boot time is horrifyingly bad
<Nilium> And the boot time is enough to make me lose interest the moment I start
<ntzrmtthihu777> lol. Its all pretty riviting to me.
brennanMKE has joined #ruby
<Nilium> Getting GL working with shaders and all that in MRI was riveting to me, but that's because I'm insane.
<ntzrmtthihu777> what I mean by tricky is, while its simple to call on existing java classes using jruby, writing your own classes isn't, lol.
chimkan has quit [Quit: chimkan]
<Nilium> I don't know what you mean by "writing your own classes isn't"
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
AlSquire has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
JZTech101 has joined #ruby
<ntzrmtthihu777> writing java classes for use in jruby isn't exactly simple.
<ntzrmtthihu777> its no cakewalk XD
nomenkun has joined #ruby
soulcake has quit [Ping timeout: 248 seconds]
bionoid has joined #ruby
soulcake has joined #ruby
emergion has joined #ruby
rodacato has quit [Remote host closed the connection]
<Nilium> Why would you need to write a Java class for this/
<Nilium> Pretend the slash is a question mark.
yfeldblum has quit [Ping timeout: 240 seconds]
chimkan has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
zomgbie has joined #ruby
freerobby has quit [Quit: Leaving.]
<ntzrmtthihu777> Nilium: defining certain functions from Lwjgl to match the game... Perhaps I could just write ruby code that does that, requiring the right classes... hmm.
vikhyat_ has quit [Remote host closed the connection]
vikhyat has joined #ruby
vikhyat has quit [Remote host closed the connection]
optimusprimem has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
<ntzrmtthihu777> apeiros> an object is NEVER in anything but the runtime. outside the runtime an object may be stored. but it's no longer an object. it's serialized data. and as far as I remember, jars are about *code*. code != objects.
Vivekananda has joined #ruby
<ntzrmtthihu777> oops, wrong channel XD
mwmnj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Karpuragauram has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
sam113101 is now known as sam113101_afk
sam113101_afk is now known as sam113101
zomgbie has quit [Ping timeout: 246 seconds]
Vivekananda has quit [Ping timeout: 256 seconds]
Karpuragauram has quit [Read error: Connection reset by peer]
Vivekananda has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
RichardBaker has quit [Quit: RichardBaker]
yfeldblum has joined #ruby
RichardBaker has joined #ruby
NealJ has joined #ruby
sam113101 is now known as sam113101_afk
lebek has quit [Ping timeout: 276 seconds]
rodacato has joined #ruby
sam113101_afk is now known as sam113101
RichardBaker has quit [Client Quit]
emergion has quit [Ping timeout: 260 seconds]
arya_ has joined #ruby
<ntzrmtthihu777> dang, you here or not?
<sam113101> me?
nfk has joined #ruby
cj3kim has joined #ruby
pupoque__ has quit [Remote host closed the connection]
pupoque_ has quit [Remote host closed the connection]
guiocavalcanti has quit [Remote host closed the connection]
S0da has quit [Remote host closed the connection]
threesome has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
emergion has joined #ruby
FredInDshell has quit [Ping timeout: 264 seconds]
havenn has joined #ruby
rbento has quit [Quit: Textual IRC Client: www.textualapp.com]
FredInDshell has joined #ruby
adeponte has joined #ruby
nomenkun has joined #ruby
FredInDshell has quit [Client Quit]
arya_ has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
jorge__ has joined #ruby
henn has quit [Ping timeout: 246 seconds]
LaPetiteFromage has joined #ruby
henn has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
jorge__ has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
meow has joined #ruby
meow has left #ruby [#ruby]
cj3kim has quit [Remote host closed the connection]
BRMatt has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Solnse has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
ffio has joined #ruby
arya_ has quit []
LaPetiteFromage has quit [Ping timeout: 240 seconds]
nari has joined #ruby
bradsmith has joined #ruby
henn has quit [Remote host closed the connection]
airlok has quit [Remote host closed the connection]
bradsmith has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
nbouscal has joined #ruby
ssvo has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
rezzack has quit [Quit: Leaving.]
cj3kim has joined #ruby
keen___ has joined #ruby
keen__ has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
mrommelf has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
amacgregor has quit [Ping timeout: 240 seconds]
<ntzrmtthihu777> yeah, lol
mercwithamouth has quit [Ping timeout: 240 seconds]
AzizLight has joined #ruby
prienge has joined #ruby
lewis has quit [Remote host closed the connection]
eka has joined #ruby
tgunr has quit [Quit: Nity nite]
cj3kim has quit [Remote host closed the connection]
lewis has joined #ruby
brisbin has quit [Quit: WeeChat 0.4.1]
zachrab_ has joined #ruby
zachrab_ has quit [Remote host closed the connection]
AzizLight has quit [Ping timeout: 256 seconds]
DanKnox is now known as DanKnox_away
amacgregor has joined #ruby
LaPetiteFromage has joined #ruby
brisbin has joined #ruby
lewis has quit [Ping timeout: 276 seconds]
ehaliewicz has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
zigomir has joined #ruby
adeponte has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
havenwood has joined #ruby
zachrab_ has joined #ruby
whowantstolivefo has quit [Ping timeout: 256 seconds]
tgunr has joined #ruby
uxp has quit [Ping timeout: 268 seconds]
havenwood has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
zachrab_ has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
LaPetiteFromage has quit [Ping timeout: 246 seconds]
zachrab_ has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
nomenkun has joined #ruby
zachrab_ has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
jorge_ has joined #ruby
LaPetiteFromage has joined #ruby
popl has joined #ruby
mvangala has joined #ruby
zachrab_ has joined #ruby
zachrab_ has quit [Remote host closed the connection]
mvangala_ has quit [Read error: Connection reset by peer]
zachrab_ has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
jorge_ has quit [Ping timeout: 264 seconds]
smathieu_ has joined #ruby
radic__ has quit [Ping timeout: 246 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
optimusprimem has quit [Remote host closed the connection]
mrommelf has quit [Remote host closed the connection]
smathieu_ has quit [Ping timeout: 276 seconds]
IceDragon has quit [Ping timeout: 276 seconds]
pitzips has quit [Ping timeout: 248 seconds]
IceDragon has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
jalcine has joined #ruby
ehaliewicz has quit [Ping timeout: 256 seconds]
airlok has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
radic__ has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
airlok has quit [Ping timeout: 256 seconds]
DefV has quit [Ping timeout: 264 seconds]
Jan_ has joined #ruby
robustus has joined #ruby
Jan_ is now known as Guest42307
ssvo has quit [Ping timeout: 264 seconds]
xcv has joined #ruby
airlok has joined #ruby
zachrab_ has quit [Remote host closed the connection]
Vivekananda has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
yshh has joined #ruby
GeissT has joined #ruby
rodacato has quit [Remote host closed the connection]
optimusprimem has joined #ruby
brisbin has quit [Read error: Connection reset by peer]
brisbin has joined #ruby
keen___ has quit [Ping timeout: 248 seconds]
cads has joined #ruby
freerobby has quit [Quit: Leaving.]
tommyvyo has quit [Quit:]
AzizLight has joined #ruby
dtcrshr has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
tbn has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
AzizLight has quit [Ping timeout: 240 seconds]
heftig has quit [Read error: Connection reset by peer]
heftig has joined #ruby
adeponte has joined #ruby
ner0x has joined #ruby
jenrzzz has joined #ruby
airlok has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 246 seconds]
tgunr has quit [Quit: Nity nite]
s2013 has quit [Ping timeout: 246 seconds]
adeponte has quit [Ping timeout: 264 seconds]
pierre1 has quit [Quit: Leaving]
jorge_ has joined #ruby
nomenkun has joined #ruby
zeromodulus has joined #ruby
dodosan has joined #ruby
bionoid has quit [Remote host closed the connection]
ffio has quit [Ping timeout: 248 seconds]
nomenkun has quit [Ping timeout: 248 seconds]
jorge_ has quit [Ping timeout: 256 seconds]
smathieu has joined #ruby
cHarNe2 has joined #ruby
IceDragon has quit [Quit: Space~~~]
n_blownapart has joined #ruby
tommyvyo has joined #ruby
dodosan has quit [Ping timeout: 246 seconds]
smathieu has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
ewnd9 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
ewnd9 has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
ewnd9 has joined #ruby
tommyvyo has quit [Ping timeout: 240 seconds]
mva3212 has joined #ruby
chimkan has quit [Quit: chimkan]
dhruvasagar has quit [Ping timeout: 240 seconds]
Deele has quit [Ping timeout: 240 seconds]
dodosan has joined #ruby
BlueShark has quit [Ping timeout: 256 seconds]
chimkan has joined #ruby
ssvo has joined #ruby
sayan has joined #ruby
baroquebobcat has joined #ruby
nouh has joined #ruby
Es0teric has joined #ruby
kaspergrubbe has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
cHarNe2 has quit [Read error: Operation timed out]
nouh is now known as youcallme
Es0teric has quit [Client Quit]
youcallme has quit [Remote host closed the connection]
nouh has joined #ruby
nouh is now known as blablahblahal
blablahblahal has quit [Remote host closed the connection]
cha1tanya has joined #ruby
nouh has joined #ruby
kaspergrubbe has quit [Ping timeout: 276 seconds]
nouh is now known as youcallme
youcallme has quit [Remote host closed the connection]
nouh has joined #ruby
kobain has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
YaNakilon has joined #ruby
kobain has joined #ruby
kobain has quit [Client Quit]
<nouh> yoyo
kobain has joined #ruby
kobain has quit [Excess Flood]
nouh has quit [Remote host closed the connection]
kobain has joined #ruby
kobain has quit [Excess Flood]
youcallme has joined #ruby
kobain has joined #ruby
kobain has quit [Remote host closed the connection]
swordsmanz has quit [Quit: swordsmanz]
kofno has joined #ruby
rippa has joined #ruby
Es0teric has joined #ruby
AzizLight has joined #ruby
ixti has quit [Quit: WeeChat 0.4.1]
codepython777 has joined #ruby
<codepython777> I've never done ruby. Can someone explain this line of code and how it works please : @colors = extr.get_colors(7, false).sort { |a, b| b.to_hsla[2] <=> a.to_hsla[2] }.map { |p| extr.to_hex(p) }
AzizLight has quit [Ping timeout: 246 seconds]
pierre1 has joined #ruby
n_blowna_ has joined #ruby
n_blownapart has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
airlok has joined #ruby
benlieb has quit [Quit: benlieb]
airlok has quit [Ping timeout: 240 seconds]
<ntzrmtthihu777> codepython777: *777 handshake* howya doin?
<youcallme> I want to give evil mode a try
Solnse has quit [Quit: Leaving.]
Es0teric has quit [Quit: Computer has gone to sleep.]
youcallme has quit [Remote host closed the connection]
youcallme has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
jorge has joined #ruby
<Kelet> codepython777, It sorts the colors by luminosity, and then converts the color to hex, presumably.
ehaliewicz has joined #ruby
youcallme has quit [Remote host closed the connection]
<Kelet> codepython777, Sort can take a block on how to compare two elemenets. In this case, they're comparing two elements by using <=>. <=> returns -1 if b < a, 0 if b == a, and 1 if b > a in this case.
nomenkun has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
<Kelet> codepython777, map creates a new array, where the elements are each element from the old array with the stuff in the {} applied to it.
Banistergalaxy has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
<Kelet> probably not the best explanation but ah well
freerobby has quit [Quit: Leaving.]
havenwood has joined #ruby
tommyvyo has joined #ruby
jorge has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
ffio has joined #ruby
brennanMKE has quit [Remote host closed the connection]
<codepython777> Kelet: Thanks
havenn has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
<Kelet> Oh and I assume a.to_hsla[2] returns luminosity, because hs[l]a
<Kelet> don't actually know if it does as im now familiar with extr or w/e that is
pierre1 has quit [Ping timeout: 256 seconds]
n_blowna_ has quit [Remote host closed the connection]
tomzx_mac has quit [Ping timeout: 276 seconds]
MarianM has joined #ruby
NealJ has quit [Quit: :c]
bionoid has joined #ruby
MarianM has quit [Client Quit]
nathancahill has joined #ruby
io_syl has quit [Quit: io_syl]
io_syl has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
codepython777 has quit [Quit: Leaving.]
sontek has left #ruby ["WeeChat 0.3.3"]
yshh has quit [Remote host closed the connection]
Es0teric has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Banistergalaxy has joined #ruby
codepython777 has joined #ruby
davedev24 has quit [Remote host closed the connection]
ILoveYou has quit [Ping timeout: 276 seconds]
uxp has joined #ruby
tgunr has joined #ruby
thinkclay has joined #ruby
pipework has joined #ruby
tgunr has quit [Client Quit]
n_blownapart has joined #ruby
zachrab_ has joined #ruby
<thinkclay> is there a way to call a method on an object as/with a symbol or string? object.:my_sym = '12456'
<bnagy> thinkclay: check out send
<bnagy> >> 'a'.send :upcase
<eval-in> bnagy => "A" (https://eval.in/39329)
<thinkclay> cool thx bnagy
<L8D> Is there anything in ruby that would let me parse a string that has escapes in them?
<L8D> something that would work like "\\n".prase #=> "\n"
baroquebobcat has joined #ruby
<bnagy> that's always tricky
<bnagy> cause the answer usually ends up being eval, which is a horrible answer
adeponte has joined #ruby
<L8D> :(
<popl> L8D: what are you trying to do?
<L8D> I'm writing an interpreter
mva3212 has quit [Ping timeout: 240 seconds]
Ripp__ has joined #ruby
mklappstuhl has joined #ruby
ehaliewicz has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
bradsmith has joined #ruby
nbouscal has joined #ruby
mklappstuhl has quit [Ping timeout: 248 seconds]
nbouscal has quit [Client Quit]
kofno has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 246 seconds]
henn has joined #ruby
jorge has joined #ruby
cj3kim has quit [Remote host closed the connection]
nomenkun has joined #ruby
TheBay has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
Banistergalaxy has joined #ruby
jorge has quit [Ping timeout: 248 seconds]
leonardo__ has joined #ruby
n_blownapart has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
smathieu has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Read error: Operation timed out]
yfeldblum has joined #ruby
optimusprimem has quit [Ping timeout: 240 seconds]
eoinkelly_ has joined #ruby
smathieu has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
ner0x has quit [Quit: Leaving]
cha1tanya has quit [Ping timeout: 248 seconds]
zachrab__ has joined #ruby
havenn has quit [Ping timeout: 256 seconds]
<zzak> what?
zachrab_ has quit [Read error: Connection reset by peer]
ffio has quit [Quit: WeeChat 0.4.1]
tgunr has joined #ruby
fridim_ has joined #ruby
abstrusenick has joined #ruby
rien has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
Jalada has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Quit: leaving]
emptynine has quit [Ping timeout: 245 seconds]
<rien> I can't install rmagick: http://pastebin.com/ZDrQ9UJX
Jalada has joined #ruby
<rien> can anyone help? the file MagickWand.h that it's looking for is in /opt/ImageMagick//include/ImageMagick-6/wand/MagickWand.h
Banistergalaxy has joined #ruby
<rien> but I don't know how to tell the "sudo gem install rmagick -v '2.12.0'" command that.
yfeldblum has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
<TheBay> hi,
<TheBay> how I can install Ruby 2.0.0 through RVM on Mac OS X ML
<TheBay> thx in advance
zeromodulus has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
d3 has joined #ruby
Es0teric has joined #ruby
platforms is now known as platforms_away
Banistergalaxy has quit [Ping timeout: 240 seconds]
henn has quit [Ping timeout: 264 seconds]
henn has joined #ruby
Banistergalaxy has joined #ruby
prienge has quit [Read error: Connection reset by peer]
prienge has joined #ruby
ssvo has quit [Ping timeout: 264 seconds]
henn has quit [Remote host closed the connection]
emptynine has joined #ruby
benlieb has joined #ruby
sleetdrop has joined #ruby
haxrbyte has joined #ruby
narcan has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
<ntzrmtthihu777> TheBay: rvm rocks, its easy.
TheBay has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
<rien> it really doesn't rock, plus it's unnecessary. if you want to keep rubies separate, just install them making sure you pass a --prefix argument to the ./configure command
<ntzrmtthihu777> rien: either way. He asked how to do it on rvm, and you just interjected your opinion.
<ntzrmtthihu777> damn, he left already.
<rien> ntzrmtthihu777: actually I missed that he mentioned "rvm" so I do apologize.
<ntzrmtthihu777> rien: eh, no biggie. I personally use rvm because I move between mri and jruby
haxrbyte has quit [Ping timeout: 240 seconds]
<zendeavor> sounds like a job for chruby
cj3kim has quit [Remote host closed the connection]
<rien> ntzrmtthihu777: I know nothing abour JRuby, but for instance, I switch between Ruby Enterprise Edition (1.8.7) and Ruby 2.0.0 and they're both installed at /opt/ree and /opt/ruby2 respectively. I compiled from source with the --prefix parameter, and I have a bash alias to switch rubies by prefixing the right path onto my PATH environment
airlok has joined #ruby
jonahR has joined #ruby
cha1tanya has joined #ruby
<ntzrmtthihu777> rien: heh. personally my distro's handling of ruby leaves much to desired. Rvm fixes that for me :P
pierre1 has joined #ruby
<r0bgleeson> ntzrmtthihu777: RVM fine if it works for you, I started with RVM, moved to rbenv+ruby-build, and now I'm at chruby+ruby-build.
<r0bgleeson> ntzrmtthihu777: I only moved from RVM because of an annoying edge case it didnt handle
lewis has joined #ruby
zubov has quit [Remote host closed the connection]
cj3kim has joined #ruby
pierre1 has quit [Remote host closed the connection]
pierre1 has joined #ruby
<rien> ntzrmtthihu777: I'm on a mac so I have no package manager :/
s2013 has joined #ruby
<r0bgleeson> homebrew ships ruby :]
<r0bgleeson> RVM tries to integrate with it now, to install dev dependencies for ruby
<r0bgleeson> not sure if thats going to turn out well or not
cj3kim has quit [Remote host closed the connection]
<r0bgleeson> sounds like a hard problem
airlok has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<rien> homebrew is giving me problems as I type here now...
haxrbyte_ has quit [Read error: Connection reset by peer]
Heero has joined #ruby
Heero has joined #ruby
<r0bgleeson> yeah, it hasnt been trouble free for me either but seems to cause less problems than macports
mary5030 has joined #ruby
cj3kim has joined #ruby
<rien> what's homebrew's path?
<ntzrmtthihu777> rien: a mac? care to test something for me?
<rien> I get so pissed when errors only tell me partial paths... Library/Formula/mysql.rb , where is that?
<rien> ntzrmtthihu777: go for it
ewnd9 has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
<r0bgleeson> rien: usually /usr/local
<ntzrmtthihu777> rien: I'm working on a jruby+lwjgl game, and have a method I can include the native dynlibs/dlls/sos for the associated os, but have not yet tested on a mac, care to give it a shot?
<rien> oh, /usr/local/Library/Formula/mysql.rb ... that wouldn't have been hard to print
<rien> r0bgleeson: yep, thanks :)
ewnd9 has joined #ruby
<ntzrmtthihu777> bleh. one thing I hate about mac, no offense, is the uppercase names mixed with lowercase in system paths, lol.
<rien> ntzrmtthihu777: I don't have jruby
<ntzrmtthihu777> rien: don't need it. just need java7.
<rien> ntzrmtthihu777: I'm not offended; I like it that way because it reminds me of Smalltalk
<r0bgleeson> ntzrmtthihu777: it can be annoying, but by default they're equivalent, the FS isn't case-sensitive unless you tell it to be
tkuchiki has joined #ruby
jorge has joined #ruby
<ntzrmtthihu777> r0bgleeson: is that so? interesting.
<rien> ntzrmtthihu777: if I won't have to install anything then sure, I guess. So what do you need from me?
<ntzrmtthihu777> rien: download a jar and run it with java. delete it when done.
sarkis has joined #ruby
<ntzrmtthihu777> you can bust it open and check its guts if you don't trust me ;)
<ntzrmtthihu777> oh! In fact I think I can produce an app bundle for that.
<ntzrmtthihu777> does the main app folder have to have the .app extension?
<r0bgleeson> yeah
cha1tanya has quit [Ping timeout: 240 seconds]
sayan has quit [Ping timeout: 256 seconds]
<r0bgleeson> then Contents/
<ntzrmtthihu777> gimme a sec while I recompile it.
<r0bgleeson> then a bunch of other stuff inside that
<r0bgleeson> later
nomenkun has joined #ruby
<ntzrmtthihu777> r0bgleeson: yeah, I know how the guts work, kinda, but I wasn't sure about the actual root folder naming convention :P
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
jorge has quit [Ping timeout: 276 seconds]
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathieu has joined #ruby
_Andres has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 256 seconds]
eldariof has joined #ruby
platforms_away is now known as platforms
tommyvyo has quit [Quit:]
krz has joined #ruby
smathieu has quit [Ping timeout: 256 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
dhruvasagar has joined #ruby
smp has joined #ruby
_Andres has joined #ruby
byprdct has joined #ruby
pierre1 has quit [Quit: Leaving]
<ntzrmtthihu777> ^ the app bundle. give it 2-3 min to finish uploading.
fridim_ has quit [Ping timeout: 276 seconds]
bionoid has quit [Remote host closed the connection]
<ntzrmtthihu777> its up. Thanks in advance for the testing.
adeponte has quit [Remote host closed the connection]
nathancahill has quit [Quit: nathancahill]
Banistergalaxy has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
sarkis has quit [Ping timeout: 264 seconds]
huoxito has joined #ruby
npulse has joined #ruby
adeponte has joined #ruby
bubbajones has quit [Ping timeout: 264 seconds]
ewnd9_ has joined #ruby
pierre1 has joined #ruby
<ntzrmtthihu777> :/ dang, don't tell me you all vanished?
amacgregor has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit:]
ewnd9 has quit [Ping timeout: 276 seconds]
sleetdrop has quit [Quit: Computer has gone to sleep.]
ryanf has left #ruby [#ruby]
v0n has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
Davey has joined #ruby
krz has joined #ruby
Kelet has quit [Read error: Connection reset by peer]
krz has quit [Client Quit]
saintcajetan has joined #ruby
krz has joined #ruby
huoxito has quit [Quit: Leaving]
n_blownapart has joined #ruby
zmike123 has joined #ruby
krz has quit [Client Quit]
n_blownapart has quit [Remote host closed the connection]
spectre| has joined #ruby
platforms is now known as platforms_away
druonysus has quit [Read error: Connection reset by peer]
pinage404 is now known as zz_pinage404
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
druonysus has joined #ruby
<zendeavor> good riddance
<ntzrmtthihu777> dang. don't suppose any other mac users here would be willing to test said app bundle?
spidergears has quit [Ping timeout: 276 seconds]
v0n has joined #ruby
airlok has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
Kelet has joined #ruby
pen has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Al_ has joined #ruby
krz has joined #ruby
kofno has joined #ruby
airlok has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
bubbajones has joined #ruby
bradsmith has quit [Remote host closed the connection]
bradsmith has joined #ruby
cha1tanya has joined #ruby
jorge has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
bradsmith has quit [Remote host closed the connection]
smp has quit [Quit: Leaving]
nomenkun has joined #ruby
bubbajones has quit [Ping timeout: 256 seconds]
kofno has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
zets2 has joined #ruby
corehook_ has joined #ruby
smathieu has joined #ruby
arya_ has joined #ruby
bradsmith has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
zets has quit [Ping timeout: 252 seconds]
jorge has quit [Ping timeout: 248 seconds]
smathieu has quit [Ping timeout: 256 seconds]
kreeves has quit [Ping timeout: 248 seconds]
lewis has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
xcv has quit [Remote host closed the connection]
maroloccio has joined #ruby
bubbajones has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Heero has quit [Read error: Connection reset by peer]
rosario has joined #ruby
spidergears has joined #ruby
Senjai has quit [Ping timeout: 240 seconds]
rickruby has joined #ruby
<rickruby> a bit confused with this piece of code:
<rickruby> p @possible_cell_values[row_index][cell_index]
<rickruby> gives me
<rickruby> [5, 6, 7, 9]
<rickruby> ok so I want to change the value
<rickruby> so I do @possible_cell_valuesp[row_index][cell_index] = [1,2,3]
<rickruby> but that results in undefined method `[]' for nil:NilClass (NoMethodError)
<popl> rickruby: typo
<rickruby> LOL
<rickruby> i just saw it too
arya_ has quit [Ping timeout: 264 seconds]
<rickruby> I should just talk to a rubber duck
<rickruby> lol
<rickruby> thanks
bubbajones has quit [Ping timeout: 248 seconds]
jonahR has quit [Quit: jonahR]
zmike123 has quit [Quit: ~]
aaroncm_ has joined #ruby
<rickruby> my sudoku solver has grown into a spaghetti mess of code... I can get it to solve easy puzzles and almost done adding logic to solve diabolic level puzzles, but it takes a long time to figure out what I was doing...
aaroncm has quit [Ping timeout: 246 seconds]
spinagon has joined #ruby
Astral__ has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
<ntzrmtthihu777> gotta love typos, lol.
arya_ has joined #ruby
<zendeavor> you should go back and reimplement now, instead of tacking on "smarter" logic
<rickruby> right now I have everything in one class dubbed "sudoku_solver"
<popl> heh
<rickruby> should I split into say, a class for the game board
<popl> definitely bad design
calmyournerves_ is now known as calmyournerves
<rickruby> another class for the solving logic ?
<popl> obviously
<zendeavor> divide it into logical pieces
<zendeavor> but do it with a design strategy in place, first
<zendeavor> determine which parts have what relationships
<zendeavor> don't codify anything until you have at least that part worked out on paper
nfk has quit [Quit: yawn]
Astral_ has quit [Ping timeout: 264 seconds]
<rickruby> I guess 3 classes would make the most sense: game board, solving logic, puzzles
<zendeavor> don't guess
<popl> spaghetti and meatballs
<popl> mmmm pasta
<zendeavor> otherwise you'll just end up pasting your existing code into classes
spinagon has quit [Ping timeout: 248 seconds]
npulse_ has joined #ruby
dash_ has joined #ruby
<zendeavor> to be perfectly fair, your existing code should simply be a reminder of how icky things turned out when you didn't plan ahead
<zendeavor> you'll be reimplementing the whole thing from scratch, probably
<rickruby> how do you know when your design is good enough to implement ?
dash_ has quit [Read error: Connection reset by peer]
d45h has joined #ruby
npulse has quit [Ping timeout: 276 seconds]
<zendeavor> you don't
<zendeavor> there's no such thing
nomenkun has joined #ruby
<zendeavor> "an artist's work is never done"
<zendeavor> you'll never finish designing the whole thing without writing code, or putting paint to canvas
ntzrmtthihu777 has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
<rickruby> I see, so its kind of trial and error
<zendeavor> but you can make some basic decisions and create some guidelines
<popl> rickruby: What do you know about design patterns?
<rickruby> nothing really
<zendeavor> define a strict line that disambiguates the role of each class
tatsuya_o has quit [Remote host closed the connection]
<rickruby> cool thanks :)
<rickruby> my eventual goal is to use rails to put my sudoku solver on the web, and solve diabolical level puzzles quickly for whoever uses it
s2013_ has joined #ruby
<popl> that's a cool goal
bubbajones has joined #ruby
<rickruby> and uses it as a training aid, seems better to learn by doing stuff
<rickruby> using*
<popl> some might say it's the only real way to learn
mary5030 has quit [Remote host closed the connection]
m104 has joined #ruby
s2013 has quit [Ping timeout: 246 seconds]
Al_ has quit [Quit: Al_]
<zendeavor> i like that goal; it's frustrating to look up sudoku solvers and only find golfed source code that i'd be afraid to compile and run
lemonsparrow has joined #ruby
bubbajones has quit [Ping timeout: 276 seconds]
<zendeavor> neat to look at, i guess
<zendeavor> still annoying if i ever want to try one out and see if i can stump it
<rickruby> yeah, I figure it might be something achievable by a newbie like me :)
cha1tanya has quit [Ping timeout: 248 seconds]
nicoulaj has joined #ruby
wallerdev has quit [Quit: wallerdev]
d45h has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
dash_ has joined #ruby
AzizLight has joined #ruby
airlok has joined #ruby
ananthakumaran has joined #ruby
wormwood has quit [Quit: WeeChat 0.4.0]
mary5030 has joined #ruby
marr has joined #ruby
m104 has quit [Quit: m104]
io_syl has quit [Quit: io_syl]
airlok has quit [Ping timeout: 256 seconds]
cha1tanya has joined #ruby
corehook_ has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
paul5 has joined #ruby
<paul5> ciao
<paul5> !list
pierre1 has quit [Quit: Leaving]
<paul5> !list
paul5 has left #ruby [#ruby]
bubbajones has joined #ruby
spider-mario has joined #ruby
byprdct has quit [Remote host closed the connection]
allanm has quit [Ping timeout: 256 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
allanm has joined #ruby
smathieu has joined #ruby
tacos1de has joined #ruby
brennanMKE has joined #ruby
nfk has joined #ruby
smathieu has quit [Ping timeout: 264 seconds]
eoinkelly_ is now known as eoinkelly
bluOxigen has joined #ruby
blackmesa has joined #ruby
brennanMKE has quit [Ping timeout: 248 seconds]
spectre|1 has joined #ruby
jonkri has quit [Ping timeout: 276 seconds]
lemonsparrow has quit [Ping timeout: 250 seconds]
spectre| has quit [Ping timeout: 246 seconds]
tommyvyo has quit [Quit:]
m104 has joined #ruby
threesome has joined #ruby
BlueShark has joined #ruby
cha1tanya has quit [Quit: cha1tanya]
wormwood has joined #ruby
m104 has quit [Ping timeout: 264 seconds]
pandawanda has quit [Quit: pandawanda]
vikhyat has joined #ruby
mary5030 has quit [Remote host closed the connection]
Skaflem has joined #ruby
Xeago has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
tommyvyo has joined #ruby
seriously_random has joined #ruby
<Nilium> Haha, I forgot to add frozen-ness checks to my 3D maths stuff.
<Nilium> How silly.
druonysuse has joined #ruby
Emmanuel_Chanel has joined #ruby
druonysus has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 264 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<seriously_random> how do you gsub "in_the" or "in_" from the beginning of the string? It's not .gsub('on_the|on_', '')
<seriously_random> err, .gsub('in_the|in_', '')
<Nilium> Well yeah, on_the and in_the are very different things >_>
<Nilium> Also, you're not using a regexp.
druonysuse has quit [Ping timeout: 256 seconds]
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Nilium> So, realistically, it's probably foo.gsub!(/^on_(the_)?/, '')
<canton7> unless the string has newlines in it, in which case you want \A instead of ^
<Nilium> I'd say something like lrn2regex but for the love of god please don't treat regular expressions as the hammer with which to beat all screws.
devoldmx3 has joined #ruby
Mon_Ouie has joined #ruby
arya_ has quit [Ping timeout: 276 seconds]
devoldmx27 has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
<seriously_random> dangit, not exactly what I want -- "in_" replace with "" and "in_the_" replace with "the "
<Nilium> Then do two separate replacements.
<Nilium> Or use a block.
devoldmx3 has quit [Ping timeout: 256 seconds]
<seriously_random> Nilium, can't you use gsub to replace two patterns with two other patterns?
sam19113 has joined #ruby
<seriously_random> gsub(pattern, replacement) <-- replacement can only be one thing?
<canton7> replacement is a string. it can use captures from pattern, but it is just a single string
<Nilium> You can do foo.gsub(/^on_(the_)?/, {'on_' => '', 'on_the_' => 'the '}) but it's really bloody ugly
<canton7> "in_the_test".sub(/^in_/, '').sub(/^the_/, 'the ')
dodosan has quit [Remote host closed the connection]
Taggg has joined #ruby
sam19113 has quit [Read error: Connection timed out]
Taggg has quit [Quit: Leaving]
r0bgleeson has quit [Ping timeout: 276 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
cj3kim has quit [Remote host closed the connection]
spectre|1 has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.1]
jorge has joined #ruby
<seriously_random> ok, regex is hard :). How do you match "a_" and "_" in a single string?
vikhyat has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
smathieu has joined #ruby
<canton7> hmm? example?
Davey has quit [Quit: Computer has gone to sleep.]
pupoque has joined #ruby
jorge has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
bigmac has quit [Quit: Leaving]
<seriously_random> canton7, got it: .gsub(/a_|_/, ' ')
<seriously_random> thought or "|" is either one or the other, but it replaces both
BizarreCake has joined #ruby
<canton7> did you want /a_?/
rickruby has quit [Remote host closed the connection]
eoinkelly has quit [Quit: eoinkelly]
<seriously_random> canton7, hopefully this explains what I was after: http://pastebin.com/BxJmns0H
smathieu has quit [Ping timeout: 264 seconds]
spectre| has joined #ruby
spectre|1 has joined #ruby
spectre| has quit [Read error: Connection reset by peer]
<canton7> personally I think it's clearer if you do it in 2 parts: remove the on_, and replace _ with ' '
<bnagy> just split on '_'
joshmyers has joined #ruby
<bnagy> >> "on_the_meaning_of_fish".split('_')[1..-1]
<eval-in> bnagy => ["the", "meaning", "of", "fish"] (https://eval.in/39359)
BlueShark is now known as BlueShark_
<bnagy> rejoin with space or use some other way
BlueShark_ is now known as BlueShark
<joshmyers> hey guys, silly question. If I have a = [ 'a', 'b', 'c' ] and b = [ 'b', 'c' ]. I want to reject whatever is in b so in this example it would end up a = [ 'a' ] ?
keen___ has joined #ruby
lkba has joined #ruby
<bnagy> >> %w(a b c) - %w(b c)
<eval-in> bnagy => ["a"] (https://eval.in/39360)
<joshmyers> cheers bnagy :)
<bnagy> it will remove all occurences of stuff in the second array though, which is not always what you want
s2013_ has quit [Ping timeout: 240 seconds]
guadix_ has joined #ruby
<joshmyers> hmm will have a play around by in this case, shouldnt matter
<joshmyers> thx
ntus1017 has joined #ruby
thinkclay has quit [Quit: Leaving.]
Scient has quit [Ping timeout: 245 seconds]
Niamkik_ has quit [Quit: Disconnecting from stoned server.]
Niamkik has joined #ruby
Scient has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
intuxicated has quit [Ping timeout: 256 seconds]
m104 has joined #ruby
sayan has joined #ruby
nkts has quit [Quit: -]
ppq_ has joined #ruby
guadix_ has quit [Quit: Saliendo]
ppq_ is now known as pupoque_
m104 has quit [Ping timeout: 256 seconds]
vikhyat has joined #ruby
intuxicated has joined #ruby
cj3kim has joined #ruby
rickruby has joined #ruby
timonv has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
r0bgleeson has joined #ruby
workmad3 has joined #ruby
vikhyat has quit [Remote host closed the connection]
m8 has joined #ruby
relix has joined #ruby
timonv has joined #ruby
cj3kim has quit [Ping timeout: 256 seconds]
intuxicated has quit [Ping timeout: 240 seconds]
adeponte has quit [Remote host closed the connection]
pupoque_ has quit [Ping timeout: 248 seconds]
pupoque has quit [Ping timeout: 276 seconds]
Squarepy_ has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
DonRichie has joined #ruby
fcanela has joined #ruby
elaptics`away is now known as elaptics
dv_ has quit [Read error: Operation timed out]
dv_ has joined #ruby
thinkclay has joined #ruby
airlok has joined #ruby
kilophoton has quit [Quit: kilophoton]
k610 has joined #ruby
spidergears has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 264 seconds]
Squarepy has quit [Quit: Leaving]
jbpros has joined #ruby
m104 has joined #ruby
airlok has quit [Ping timeout: 248 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
tacos1de has joined #ruby
jbpros has quit [Client Quit]
pupoque_ has joined #ruby
Krajsnick has joined #ruby
timonv has quit [Remote host closed the connection]
pupoque__ has joined #ruby
spidergears has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
YaNakilon has quit [Ping timeout: 246 seconds]
fcanela has quit [Ping timeout: 240 seconds]
spidergears has quit [Remote host closed the connection]
fcanela has joined #ruby
motto has joined #ruby
jorge has joined #ruby
spidergears has joined #ruby
m8 has quit [Ping timeout: 240 seconds]
m104 has quit [Ping timeout: 246 seconds]
thinkclay has quit [Quit: Leaving.]
pupoque_ has quit [Ping timeout: 246 seconds]
m8 has joined #ruby
smathieu has joined #ruby
motto has quit [Ping timeout: 256 seconds]
dodosan has joined #ruby
jorge has quit [Ping timeout: 276 seconds]
joshmyers is now known as bubu
<bubu> obviously not understanding group_by here
<bubu> am trying to get a count of type of instance
ebanoid has joined #ruby
<bubu> so per deployment, something like: 1 => ["m1.large"], 2 => ["m1.small"]
<bubu> any ideas where I am going wrong?
<Nilium> What are you expecting?
dodosan has quit [Ping timeout: 276 seconds]
ebanoid has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
<bubu> im going to do something else within the deployments loop
<bubu> but I'm wanting a count of instance type
tkuchiki has joined #ruby
<bubu> so expecting 1 => ["m1.large"], 2 => ["m1.small] for the baz deployment
<bubu> something like that
smathieu has quit [Ping timeout: 276 seconds]
<Nilium> So given the hash in your example, what's the key for m1.large?
<bubu> it could have multiple matching keys I guess...
<bubu> multiple instances could be of type m1.large
<bubu> I want a count of the instances of a certain type
TIJ has joined #ruby
<Nilium> To make this easier, let's say that given the example input of deployments and hash, what's the _exact_ output you want?
<Nilium> I don't mean in English or whatever, but just write out what you want it to be in Ruby.
<Nilium> Because otherwise you're just going to risk saying something different each time you explain it. So define it, then it's easier to work on.
krzkrz has joined #ruby
Hien has quit [Ping timeout: 245 seconds]
<bubu> ok thanks, sorry
<bubu> I want a count of the instances of a certain type
<bubu> soooo
motto has joined #ruby
<bubu> 1 => 'm1.large', 2 => m1.small
m8 has quit [Ping timeout: 240 seconds]
tommyvyo has quit [Quit:]
realDAB has joined #ruby
<Nilium> So what are 1 and 2 in those cases?
<bubu> the count of instances in a given deployment
<Nilium> So what if there are two large and two small?
<bubu> so if it's 2 and 2
<bubu> I would expect
<bubu> "m1.large" => 2 , "m1.small" => 2
<Nilium> Ok, well you just reversed your keys and values.
<bubu> yeah sorry about that, figured it makes more sense
<bubu> :(
mityaz has joined #ruby
monkegjinni has joined #ruby
ismlages has joined #ruby
iFire has quit [Read error: Connection reset by peer]
<Nilium> Anyway, the easy part now is to work backwards.
diegoviola has joined #ruby
Ripp__ has joined #ruby
nari has quit [Ping timeout: 264 seconds]
iFire has joined #ruby
<bubu> ok
prienge has quit [Read error: Connection reset by peer]
Hien has joined #ruby
prienge has joined #ruby
seriously_random has quit [Quit: Leaving]
mercwithamouth has joined #ruby
pupoque_ has joined #ruby
sayan has quit [Quit: Leaving]
<Nilium> Well, I wrote something to do it. I'm heading off to sleep.
kofno has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
amacgregor has joined #ruby
<bubu> ah sweet
<bubu> gnite!
<bubu> thanks dude!
<Nilium> Also added notable methods to the comment since you'll want to look those up.
kofno has quit [Ping timeout: 264 seconds]
adeponte has joined #ruby
<Nilium> You can usually achieve the same thing as each_with_object via reduce/inject, but it also requires an additional statement at the end of your block if said block doesn't already return the object you want.
kofno has joined #ruby
<Nilium> So I recommend each_with_object if the result object is always eql? to the input object.
<Nilium> Or just use each and modify some object in scope.
<Nilium> But yeah, sleep.
* Nilium wanders off
<bubu> lol
<bubu> sweet, thanks, playing aroung in pry with it now to understand better :)
<bubu> thanks again, gnite
kaspergrubbe has joined #ruby
pupoque__ has quit [Read error: Connection reset by peer]
pupoque_ has quit [Read error: Connection reset by peer]
pupoque__ has joined #ruby
pupoque_ has joined #ruby
nikeita has joined #ruby
adeponte has quit [Ping timeout: 256 seconds]
airlok has joined #ruby
ebanoid has joined #ruby
m104 has joined #ruby
nikeita has quit [Ping timeout: 256 seconds]
airlok has quit [Ping timeout: 248 seconds]
ntus1017 has quit [Remote host closed the connection]
nari has joined #ruby
relix has joined #ruby
keen___ has quit [Ping timeout: 276 seconds]
jalcine has quit [Excess Flood]
keen___ has joined #ruby
m104 has quit [Ping timeout: 276 seconds]
jalcine has joined #ruby
Speed has joined #ruby
cj3kim has joined #ruby
emergion has joined #ruby
Ripp__ has joined #ruby
jorge has joined #ruby
nomenkun has quit [Remote host closed the connection]
Krajsnick has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
amacgregor has quit [Ping timeout: 248 seconds]
jorge has quit [Ping timeout: 240 seconds]
TheFuzzball has joined #ruby
Squarepy_ has quit [Quit: Leaving]
timonv has joined #ruby
pupoque__ has quit [Read error: Operation timed out]
smathieu has joined #ruby
cj3kim has quit [Ping timeout: 264 seconds]
smathieu has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 264 seconds]
arya_ has joined #ruby
vikhyat has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
BRMatt has joined #ruby
anannie has joined #ruby
f1gjam has joined #ruby
ntus1017 has joined #ruby
Krajsnick has joined #ruby
<f1gjam> hey guys, I have this code: http://dpaste.com/1320547/ and I am trying to use "h" outside of the loop/method so I am trying to return it. This obviously isn't working, so I was wondering what is the best way to achieve this
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Deele has joined #ruby
<bubu> instance variable?
anannie has quit [Remote host closed the connection]
anannie_ has joined #ruby
poll876 has joined #ruby
m104 has joined #ruby
anannie_ is now known as anannie
ukandrewtayloruk has joined #ruby
anannie has quit [Changing host]
anannie has joined #ruby
Krajsnick has quit [Remote host closed the connection]
pupoque__ has joined #ruby
<ukandrewtayloruk> I'm a sysadmin that's new to supporting Ruby. I'm debugging a problem, but, I'm unclear as to some behaviour of native extensions. If a gem requires a binary to be built, what causes it to load that binary from a bundle over the system version. It doesn't seem to be consistent.
Akashic_Afk has joined #ruby
Krajsnick has joined #ruby
mneorr has joined #ruby
Krajsnick has quit [Remote host closed the connection]
m104 has quit [Ping timeout: 240 seconds]
threesome has quit [Ping timeout: 248 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
TIJ has quit [Ping timeout: 264 seconds]
motto has quit [Changing host]
motto has joined #ruby
motto is now known as m8
k610 has quit [Quit: Leaving]
jonkri has quit [Quit: jonkri]
<f1gjam> bubu will instance variable work even within the scope of loop etc..
<bubu> try it
<f1gjam> k, trying
razi has joined #ruby
<Mon_Ouie> ukandrewtayloruk: The compiled extension? The directories from which those are loaded is in $LOAD_PATH
<f1gjam> nope
<f1gjam> :(
<f1gjam> ok i guess illl have to play around to work it out
<f1gjam> thanks anyway
<Mon_Ouie> Rubygem takes care of changing it to allow you to load files from libraries
<ukandrewtayloruk> ah perfect; thank you
niklasb has joined #ruby
theKingLizard has joined #ruby
realDAB has quit [Quit: realDAB]
theKingLizard has left #ruby [#ruby]
VRAG has joined #ruby
habanany has joined #ruby
TIJ has joined #ruby
mneorr has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
ramblex has joined #ruby
sayan has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
AkashicLegend has quit [Ping timeout: 264 seconds]
pupoque_ has quit [Read error: Connection reset by peer]
pupoque__ has quit [Read error: Connection reset by peer]
VRAG has quit []
machuga|away is now known as machuga
arya_ has quit []
pupoque__ has joined #ruby
rippa has joined #ruby
relix has joined #ruby
platforms_away is now known as platforms
monkegji_ has joined #ruby
monkegjinni has quit [Read error: No route to host]
arya_ has joined #ruby
jorge has joined #ruby
pupoque_ has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jorge has quit [Ping timeout: 264 seconds]
amacgregor has joined #ruby
browndawg has joined #ruby
smathieu has joined #ruby
anannie has quit [Remote host closed the connection]
Guest79934 has joined #ruby
Guest79934 is now known as diegoviola
maxmanders has joined #ruby
yannick__ has joined #ruby
<yannick__> hey guys. i installed ruby in this way http://pastebin.com/Xt79eziT i compiled it on my own. can you tell me how i can uninstall ruby=
smathieu has quit [Ping timeout: 248 seconds]
<Smoochict> yannick__ you really should be using something like rvm or rbenv
<yannick__> Smoochict: rvm is also installed, check out the pastebin
<Smoochict> oh
<Smoochict> sorry lol
<Smoochict> just a guess, but does "make remove", "make uninstall" do anything?
<yannick__> Smoochict: how can i remothe these both?
<Smoochict> you can remove rvm using "rvm implode"
<Smoochict> i don't see any "make install" in that pastebin, so you probably can just remove rvm?
<yannick__> Smoochict: and how can i do that?
<Smoochict> do you want to remove RVM completely?
osvico has joined #ruby
<yannick__> Smoochict: yes i want to restart that process
<yannick__> becuase i compiled ruby and i guess it's better to sudo apt-get install ruby or using rvm
ntus1017 has quit [Remote host closed the connection]
<Smoochict> yannick__: run "rvm implode", but this process is irreversible
<Smoochict> you compiled ruby but you never "make install"d it
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<Smoochict> or maybe i am misinformed about the compilation/installation process ruby uses
monkegjinni has joined #ruby
monkegji_ has quit [Ping timeout: 248 seconds]
<yannick__> Smoochict: hmm ruby is still there /usr/local/bin/ruby
<yannick__> but rvm is gone
<Smoochict> run "ruby -v"?
<yannick__> Smoochict: it's the compiled version ruby 2.0.0p247 (2013-06-27 revision 41674) [armv6l-linux-eabihf]
<Smoochict> reinstall rvm
<Smoochict> and install ruby using rvm, and as long as your path puts RVM first.. you can just ignore that
<yannick__> Smoochict: but i don't need some trash on my computer
<Smoochict> i'm not sure then
<Smoochict> you'll hvae to find what it installed and where
<ukandrewtayloruk> I'm seeing really strange behaviour, we 'bundle install --deployment' on a build box, push to S3 then deploy to a new box to run. The build box and application box are from the same AMI (so same os, library etc etc). On the build box we have a small test script that exhibits a problem on the application box but not on the build box. "WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically
<ukandrewtayloruk> loaded 2.7.6". The boxes are both running the same version of ruby / ruby gems from RVM. Test runs fine from the working directory from which we build, and the tar.gz contains a nokogiri.so which md5sum matches the one in the build directory (as you would expect). I can only surmise that something on the deployed instance is forcing the app to run in a different way from when it runs on the build box. It's
<Smoochict> then remove them manually
<ukandrewtayloruk> clearly not loading the native extension but loading the system installed libxml2.so (which is 2.7.6 on both boxes)
whowantstolivefo has joined #ruby
cj3kim has joined #ruby
Smoochict has quit [Quit: Quit]
lebek has joined #ruby
Smoochict has joined #ruby
kofno has quit [Remote host closed the connection]
Nahra_ has quit [Quit: leaving]
TIJ has quit [Ping timeout: 240 seconds]
m104 has joined #ruby
Smoochict is now known as Guest76388
cj3kim has quit [Ping timeout: 245 seconds]
Guest76388 is now known as Smoochict
Smoochict has quit [Changing host]
Smoochict has joined #ruby
goshakkk has joined #ruby
Xeago has joined #ruby
m104 has quit [Ping timeout: 248 seconds]
<Smoochict> Hello
<shevy> hey Smoochict
<shevy> you have a truly strange nick
<Smoochict> ikr
pupoque_ has quit [Ping timeout: 248 seconds]
<shevy> ukandrewtayloruk perhaps you have multiple *xml*.so files
<Smoochict> smooch is my sisters dogs name, which is my other dogs (now deceased) puppy
<shevy> hehe
<Smoochict> i need to change my nick, but i just can't think of what to use :\
<Smoochict> DanielRb
Smoochict is now known as DanielRb
<ukandrewtayloruk> shevy: in vendor/bundle ?
freerobby has joined #ruby
<shevy> I used to pick a MUD character's name back in 1997 or something like that, eventually shortened it to "shevy" as that is shorter (I like short)
<shevy> ukandrewtayloruk no sorry, I have no idea about bundle, I was only referring to the *xml*.so
<shevy> you could try to find all *xml*.so on your machine
<ukandrewtayloruk> ah, no the system only has 2.7.6 (from yum)
<shevy> find / -name libxml2.so
<shevy> really?
<shevy> why is the nokogiri version built against 2.8.0?
<shevy> hmm I am using 2.9.1
xcthulhu has quit [Quit: xcthulhu]
<DanielRb> we should have a #ruby-offtopic channel of some sorts
yshh has joined #ruby
<shevy> that's #ruby :D
<ukandrewtayloruk> shevy: not sure 2.8.0 is just whats being built when i run the bundle install
<shevy> we just make a reference to ruby every now and then to stay ontopic still :P
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DanielRb> aha lol
<shevy> ukandrewtayloruk ok but... from somewhere that 2.8.0 must come right?
<shevy> if you say you only have 2.7.6
<ukandrewtayloruk> yes, 2.7.6 from system
<ukandrewtayloruk> I figured 2.8.0 was the version for nokogiri 1.6.0
<shevy> how did you install nokogir? was it a native install?
<shevy> *nokogiri
<ukandrewtayloruk> yes
<shevy> I am trying to install nokogiri 1.6.0 right now
kaspergrubbe has quit [Remote host closed the connection]
Nahra has joined #ruby
Nahra has joined #ruby
Nahra has quit [Changing host]
hashpuppy has joined #ruby
<shevy> ERROR: Error installing nokogiri: nokogiri requires Ruby version >= 1.9.2.
<shevy> and I cant compile 2.0x right now :(
<DanielRb> -v 'oldversion'?
DanielRb is now known as danielrb
rosario has quit [Quit: Leaving]
jalcine has quit [Excess Flood]
postmodern has quit [Quit: Leaving]
pupoque_ has joined #ruby
aibo has joined #ruby
khismetix has joined #ruby
hanmac has joined #ruby
monkegjinni has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<ukandrewtayloruk> this kind of demonstrates my problem
<ukandrewtayloruk> even if I remove the system 2.7.6 version, it still tries to load it over the version in vendor/bundle
jalcine has joined #ruby
aibo has left #ruby ["Leaving"]
atheotsky has joined #ruby
atheotsky has quit [Remote host closed the connection]
airlok has joined #ruby
monkegjinni has joined #ruby
kaspergrubbe has joined #ruby
<ukandrewtayloruk> if I copy out the 2.8.0 from vendor/bundle to /usr/lib64/libxml2.so.2.7.6 it works as expected
xcthulhu has joined #ruby
airlok has quit [Ping timeout: 248 seconds]
davedev24 has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
TheBay has joined #ruby
m104 has joined #ruby
monkegjinni has quit [Ping timeout: 276 seconds]
SHyx0rmZ has joined #ruby
<ukandrewtayloruk> AHHHH
<ukandrewtayloruk> I think I've sorted it!
realDAB has joined #ruby
<ukandrewtayloruk> bundle exec nokogiri -v
<ukandrewtayloruk> shows a libxml2_path that is only present on the 'build' box
<ukandrewtayloruk> I would have expected that path to be the vendor/bundle path
<ukandrewtayloruk> if I recreate the path with a copy of vendor bundle it works perfectly
m104 has quit [Ping timeout: 264 seconds]
<ukandrewtayloruk> Could this be a bug in bundler / nokogiri
<TheBay> anyone can help me with an issue installing Ruby through RVM on Mac OS X ML
khismetix has quit [Quit: Computer has gone to sleep.]
<danielrb> TheBay: what's the issue?
S0da has joined #ruby
jorge has joined #ruby
freerobby has quit [Quit: Leaving.]
<TheBay> hi danielrb
<danielrb> hi
<danielrb> i'm on ML, rvm works fine
<TheBay> Error running 'requirements_osx_port_libs_install autoconf automake libtool pkgconfig apple-gcc42 libiconv libyaml libffi readline libksba openssl curl-ca-bundle sqlite3 zlib gdbm ncurses',
<danielrb> do you have xcode installed?
<TheBay> yep
<TheBay> last version
<hanmac> infomation about nokogiri, isnt it that in the newest version the xml libs are inside of noko?
<TheBay> and if instead install Homebrew ?
JZTech101 has joined #ruby
<danielrb> try reinstalling rvm
pencilcheck has joined #ruby
pen has quit [Ping timeout: 264 seconds]
pupoque_ has quit [Ping timeout: 248 seconds]
<TheBay> danielrb: k ;)
<danielrb> you might need macports installed, i'm not sure
<ukandrewtayloruk> Hanmac: they're certainly present in the vendor/bundle/..../nokogiri directory but it seems Ruby / Nokogiri isn't looking there for them
jorge has quit [Ping timeout: 276 seconds]
pupoque__ has quit [Read error: Connection reset by peer]
* hanmac points and laugh about "last version" of compilers on mac ... it looks days until i finally have all compilers and libs i need for my "fun" on the very recent version
S0da has quit [Ping timeout: 264 seconds]
<TheBay> that's error appears when I try to install Ruby whitin RVM
S0da has joined #ruby
pupoque__ has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
<TheBay> $ install 2.0.0
prienge has quit [Read error: Connection reset by peer]
prienge has joined #ruby
danielrb is now known as [Daniel]
[Daniel] is now known as danielrb
* hanmac uses recent clang to build his ruby on mac (so he can test if this bindings works on clang too)
smathieu has quit [Ping timeout: 264 seconds]
Xiti has joined #ruby
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
<zendeavor> TheBay: #rvm
<TheBay> zendeavor: ty
jorge has joined #ruby
airlok has joined #ruby
airlok has quit [Remote host closed the connection]
Guest75556 has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
Guest75556 is now known as diegoviola
colonolGron has joined #ruby
m104 has joined #ruby
ewnd9_ has quit [Ping timeout: 276 seconds]
rodacato has joined #ruby
danielrb has left #ruby ["Quit.."]
m104 has quit [Ping timeout: 245 seconds]
spidergears has quit [Ping timeout: 276 seconds]
danielrb has joined #ruby
realDAB has quit [Quit: realDAB]
freerobby has joined #ruby
marr has quit [Ping timeout: 264 seconds]
pandawanda has joined #ruby
ewnd9_ has joined #ruby
mikecmpbll has joined #ruby
pandawanda has quit [Client Quit]
eldariof has quit [Ping timeout: 264 seconds]
TheBay has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
motto has joined #ruby
St_Marx has quit [Ping timeout: 240 seconds]
m8 has quit [Ping timeout: 264 seconds]
freerobby has quit [Ping timeout: 240 seconds]
ppq_ has joined #ruby
banisterfiend has joined #ruby
S0da has quit [Remote host closed the connection]
geggam_ has quit [Remote host closed the connection]
prienge has quit []
spidergears has joined #ruby
motto has quit [Read error: Connection reset by peer]
bubbajones has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
m8 has joined #ruby
habanany has quit [Ping timeout: 248 seconds]
m8 has quit [Changing host]
m8 has joined #ruby
workmad3 has joined #ruby
bubbajones has joined #ruby
realDAB has joined #ruby
realDAB has quit [Client Quit]
maz-dev has joined #ruby
ukandrewtayloruk has quit [Quit: ukandrewtayloruk]
jalcine has quit [Excess Flood]
realDAB has joined #ruby
m104 has joined #ruby
yacks has quit [Read error: Connection reset by peer]
ebanoid has quit [Quit: brbomgwtfbbq]
sepp2k has joined #ruby
cj3kim has joined #ruby
m104 has quit [Ping timeout: 240 seconds]
<pontiki> question: given a set of submodules that implement the same interface using different algorithms, how can I set up my rspecs to loop through the submodule names?
<apeiros_> you lost me at rspec
<pontiki> doesn't actually matter
<apeiros_> you loop through things by putting them into an array and using .each on that
<apeiros_> though I'd probably work with the modules directly instead of their names
<pontiki> sheesh
kobain has joined #ruby
jalcine has joined #ruby
realDAB has quit [Quit: realDAB]
GeissT has quit [Quit: MillBroChat AdIRC User]
cj3kim has quit [Ping timeout: 264 seconds]
<pontiki> array of modules: [M::Foo, M::Bar, M::Baz, M::Quuz].each {|m| module m ; ...} ?
<apeiros_> sure
<apeiros_> but why `module m`?
<apeiros_> just `m`
<apeiros_> or do you want to define/create new modules dynamically?
<pontiki> nope
emergion has quit [Quit: Computer has gone to sleep.]
r0bgleeson has quit [Ping timeout: 256 seconds]
<apeiros_> then just `m`
<pontiki> [M::Foo,...].each {|m| m.method1(1); m.method(2); m.method(3)} ?
<apeiros_> e.g. .each do |m| m.foo end # will invoke .foo on all modues
ILoveYou has joined #ruby
<apeiros_> yes. irb (or pry) is your friend. try it out.
xcv has joined #ruby
freerobby has joined #ruby
marr has joined #ruby
smathieu has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
realDAB has joined #ruby
cody-- has joined #ruby
ppq_ has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
spidergears has quit [Ping timeout: 256 seconds]
realDAB has quit [Client Quit]
smathieu has quit [Ping timeout: 240 seconds]
bubbajones has quit [Ping timeout: 246 seconds]
yacks has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
t_p has joined #ruby
bubbajones has joined #ruby
rickruby has quit [Remote host closed the connection]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
mneorr has joined #ruby
TheBay has joined #ruby
narcan has joined #ruby
Krajsnick has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
realDAB has joined #ruby
<TheBay> what is the best way to install Ruby in OS X ML ?
JZTech101 has joined #ruby
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
arya_ has joined #ruby
realDAB has quit [Client Quit]
f1gjam_uk has joined #ruby
f1gjam has quit [Ping timeout: 264 seconds]
f1gjam_uk is now known as f1gjam
threesome has joined #ruby
weblog has joined #ruby
schickung has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
ntus1017 has joined #ruby
m104 has joined #ruby
ppq_ has joined #ruby
<Xeago> TheBay: I would use a version manager and something like ruby-build
<Xeago> or the other alternatives
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
<TheBay> Xeago: k thx for reply
<TheBay> Xeago: I'm using Homebrew
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
sleetdrop has joined #ruby
<waxjar> chruby and ruby-install work like a charm
xcthulhu has quit [Ping timeout: 276 seconds]
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
lewis has joined #ruby
m104 has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
bubbajones has quit [Ping timeout: 256 seconds]
bubbajones has joined #ruby
nezumi has quit [Ping timeout: 240 seconds]
schickung has quit [Ping timeout: 256 seconds]
lewis has quit [Remote host closed the connection]
workmad3 has joined #ruby
Lewix has joined #ruby
xcthulhu has joined #ruby
bricker`LA has quit [Read error: Connection reset by peer]
_anildigital is now known as anildigital
bricker`LA has joined #ruby
lebek has joined #ruby
johnkary has joined #ruby
kofno has joined #ruby
lusory has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby
r0bgleeson has joined #ruby
anildigital is now known as _anildigital
s2013 has joined #ruby
ppq_ has quit [Read error: Connection reset by peer]
pupoque__ has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
krzkrz has quit [Quit: krzkrz]
mneorr has joined #ruby
wallerdev has joined #ruby
pupoque__ has joined #ruby
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
norm has quit [Read error: Connection reset by peer]
zz_pinage404 is now known as pinage404
norm has joined #ruby
krzkrz has joined #ruby
mneorr has quit [Read error: Operation timed out]
ppq_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
norm has quit [Read error: Connection reset by peer]
norm has joined #ruby
krzkrz has quit [Client Quit]
pinage404 is now known as zz_pinage404
bubbajones has quit [Ping timeout: 264 seconds]
leonardo__ has quit [Quit: Saindo]
krzkrz has joined #ruby
optimusprimem has joined #ruby
freerobby has joined #ruby
bubbajones has joined #ruby
yfeldblum has joined #ruby
kreeves has joined #ruby
<r0bgleeson> pontiki: did you get an answer?
zmike123 has joined #ruby
tatsuya_o has joined #ruby
<r0bgleeson> pontiki: you could (probably) define an anonymous class, which each test/example group would include a Module into, and then test its behavior
<r0bgleeson> rinse & repeat for the others
bubbajones has quit [Ping timeout: 246 seconds]
Skaflem has quit [Quit: Leaving]
zz_pinage404 is now known as pinage404
AlSquire has quit [Read error: No route to host]
bubbajones has joined #ruby
<r0bgleeson> pontiki: if the behavior is different for each module, i guess you probably want to test them individually
f0ster_ has joined #ruby
sergiocampama has joined #ruby
sergiocampama has quit [Client Quit]
sergiocampama has joined #ruby
blandflakes has joined #ruby
elaptics is now known as elaptics`away
AlSquire has joined #ruby
Lewix has quit [Remote host closed the connection]
krzkrz has quit [Quit: krzkrz]
sergiocampama has quit [Client Quit]
blip99 has joined #ruby
smathieu has joined #ruby
jalcine has quit [Excess Flood]
zmike123 has quit [Ping timeout: 276 seconds]
sergiocampama has joined #ruby
sambao21 has joined #ruby
<blip99> hi all, I have an array of strings where I need to prefix all elements with the same prefix. then later on I need to easily be able to change that prefix with another one
<blip99> my prefix ends with a dot
<blip99> e.g. prefix.element1_name prefix.element2_name
<blip99> how do you recommend i do this ?
cj3kim has joined #ruby
Lewix has joined #ruby
k610 has joined #ruby
dagnachew has joined #ruby
<dagnachew> hi all
<r0bgleeson> blip99: probably just use map()
<dagnachew> is there a ruby 2.0 book already ?
<sergiocampama> array.map{|string| prefix + string} to preppend the prefix
<waxjar> #map { |element| "prefix.#{element}" }.map { |element| element.gsub("prefix.", "new_prefix." } ?
smathieu has quit [Ping timeout: 240 seconds]
<blip99> ok i will read up on map, never used before. thanks
<r0bgleeson> its a method on Enumerable, very useful
<waxjar> map is like a persistent each
colonolGron has quit [Quit: Lost terminal]
contradictioned has joined #ruby
realDAB has joined #ruby
<sergiocampama> what do you mean by persistent? it doesnt change the original objects
wallerdev has quit [Quit: wallerdev]
spidergears has joined #ruby
<waxjar> very true, probably not the best fitting term
cj3kim has quit [Ping timeout: 246 seconds]
sergiocampama has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sergiocampama has joined #ruby
jonkri has quit [Quit: jonkri]
kaspergrubbe has quit [Remote host closed the connection]
<blip99> waxjar: when I do the following, it works but seems as if adds a new line ? it prints each array element on a seperate line
<blip99> waxjar: array.map! { |element| "prefix.#{element}" }
bubbajones has quit [Ping timeout: 256 seconds]
jalcine has joined #ruby
<blip99> nah it's just the way rails console prints it for some reason
sarkis has joined #ruby
fcanela has quit [Ping timeout: 264 seconds]
cads has quit [Quit: Leaving]
<blip99> waxjar: works perfectly, simple 1 liner. thank { |element| element.gsub("prefix.", "new_prefix." }s
sergiocampama has quit [Client Quit]
<blip99> *thanks
<waxjar> yw
<blip99> thanks guys. bye
xcv has quit [Remote host closed the connection]
blip99 has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
kirun has joined #ruby
kaspergrubbe has joined #ruby
sergiocampama has joined #ruby
fcanela has joined #ruby
bricker`LA has quit [Quit: leaving]
realDAB has quit [Quit: realDAB]
realDAB has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
spidergears has quit [Ping timeout: 246 seconds]
johnkary has quit [Quit: @johnkary]
realDAB has quit [Client Quit]
baroquebobcat has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dagnachew has quit [Quit: Leaving]
blackmesa has joined #ruby
zachrab__ has quit [Remote host closed the connection]
ppq_ has quit [Remote host closed the connection]
zachrab_ has joined #ruby
Kabaka has quit [Remote host closed the connection]
motto has joined #ruby
xcv has joined #ruby
zmike has joined #ruby
Kabaka has joined #ruby
noop has joined #ruby
m8 has quit [Ping timeout: 256 seconds]
bubbajones has joined #ruby
jasonsmr has joined #ruby
browndawg has left #ruby [#ruby]
ppq_ has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
blip99 has joined #ruby
realDAB has joined #ruby
tommyvyo has joined #ruby
ayonix has quit []
<blip99> waxjar: one more thing please, with the regular expression in gsub can i tell it to remove any prefix before the fullstop ? ie array.map! { |element| element.gsub("*.", "new_prefix.") }
<blip99> but this code doesn't work ^
<apeiros_> I wish people who use "doesn't work" as problem description had to pay a dollar every time…
realDAB has quit [Client Quit]
apeiros_ is now known as apeiros
tatsuya_o has quit [Remote host closed the connection]
<blip99> it does nothing to teh array
<hanmac> blip99 when you want A then you need to use A ... when you want Regexp than you need to use Regexp
h4mz1d has joined #ruby
<zendeavor> stop being sensible.
<hanmac> apeiros: thats how BillGates got rich ;P
<blip99> "*." is not the correct way to tell gsub "everything that ends with a full stop" right ?
osvico has quit [Ping timeout: 256 seconds]
realDAB has joined #ruby
Anderson has quit [Quit: Leaving]
<r0bgleeson> blip99: * isn't expanded in that string no
<hanmac> blip99: 1) "*." is not an valid regular expression ... 2) /.+\./ would be what you want 3) it would work with fnmatch but not with gsub because "*." are filesystem stuff
vlad_starkov has joined #ruby
ayonix has joined #ruby
rezzack has joined #ruby
wald0 has joined #ruby
<r0bgleeson> blip99: the only thing I know of that ever expands * is a String is Dir.glob
<r0bgleeson> in a String
<blip99> ok I get what you mean, I'm trying to form the correct regular expression
stayarrr has joined #ruby
<wald0> im reading the book "beginning ruby", which after to review all the other ones it looked to me the best option so far... im learning more and more things, but i have a question: where i can found a complete but compressed/short REFERENCE of ruby features/language ?
<linduxed> jhow would i create an alias for .new called .run?
<apeiros> /.+\./ misses anchors
<apeiros> otherwise it isn't about "ends with dot" at all
<r0bgleeson> linduxed: check out alias_method, you could also just def self.run(*args); new(*args); end
<apeiros> >> "foo.bar"[/.+\./]
<eval-in> apeiros => "foo." (https://eval.in/39390)
<linduxed> r0bgleeson: is one advised over the other?
realDAB has quit [Client Quit]
wallerdev has joined #ruby
<r0bgleeson> well, why are you doing this in the first place?
xcthulhu has quit [Quit: xcthulhu]
yacks has quit [Quit: Leaving]
osvico has joined #ruby
<hanmac> linduxed: class YourClass; class << self; alias run new; end; end
<wald0> there's no ruby reference?
<linduxed> i'm creating a helper class for some rspec tests. "Executable.new.do_something" is less clear than "Executable.run.do_something"
<r0bgleeson> its not unheard of for there to be multiple constructors on a class, but there is usually a reason.
<r0bgleeson> an alias doesn't add any new behavior
<r0bgleeson> and run() as a constructor doesn't make a lot of sense
kaspergrubbe has joined #ruby
<linduxed> r0bgleeson: well, my thought was that it shouldn't really be considered to be a constructor in this case
<linduxed> r0bgleeson: more like underlying functionality that makes the helper class "run"
St_Marx has joined #ruby
<r0bgleeson> hm okay, but what do you need the instance for?
sayan has quit [Ping timeout: 264 seconds]
<r0bgleeson> do you want a singleton?
stayarrr has quit [Read error: Connection reset by peer]
<r0bgleeson> so it's a side-effect method and the return value doesn't matter?
<r0bgleeson> i just wouldnt return the instance then
<wald0> for example im reading "array << newword" and later the equivalent "array.push("word")", but i dont found these things listed in a reference
yshh has quit [Remote host closed the connection]
swordsmanz has joined #ruby
<r0bgleeson> wald0: those methods are documented on Array
<r0bgleeson> they're actually aliases
<r0bgleeson> same thing
<wald0> r0bgleeson: thx, im looking to that link right now... its me or this looks better to any PDF book ? (these books looks like people that never programmed before)
mosca_ has joined #ruby
maroloccio has quit [Ping timeout: 248 seconds]
<linduxed> r0bgleeson: https://gist.github.com/6099083
<r0bgleeson> rubydoc.info has a nice UI
<linduxed> r0bgleeson: maybe that clears up why i'd want to do it
<apeiros> funny enough they are not aliases. but IMO you can just consider them to be.
<r0bgleeson> apeiros: oh they're not? o_O
<apeiros> r0bgleeson: yeah, << has arity 1, push has *
<apeiros> (-1)
fcanela has quit [Quit: Saliendo]
<apeiros> for whatever reason
<r0bgleeson> ah interesting
fridim_ has joined #ruby
<apeiros> can probably be considered an implementation detail, though
<r0bgleeson> linduxed: okay, so it looks like you're using run() to return new instances of your class, and that instance doesn't do anything until you call raw_output, so is run() going to call raw_output()? otherwise it doesnt make sense
<hanmac> there is also an difference ... a.push *b works, but a << *b makes an syntax error
joshu has quit [Quit: Computer has gone to sleep.]
<linduxed> r0bgleeson: in (so far) every usage this helper class will be called like "Executable.run.lines"
<wald0> looks like i have not enough brain-memory to remember all these things, is ruby meant to be programmed with a book in hand as reference to use?
workmad3 has quit [Ping timeout: 264 seconds]
<r0bgleeson> linduxed: I see. if it were me, id probably let run() do that for me, and leave new() if i want to use the (I assume) non-common case API
<r0bgleeson> linduxed: but as-is, it does what you want, unless you want to use alias/alias_method
<wald0> oreilly ruby pocket reference: 2007, for ruby 1.8 ? why not newer version?
jalcine has quit [Excess Flood]
h4mz1d has quit [Ping timeout: 246 seconds]
<r0bgleeson> wald0: nah not really
<linduxed> r0bgleeson: how would it be done with aliasing? i keep getting NameError for run
<linduxed> or new
<wald0> r0bgleeson: about which question? :)
realDAB has joined #ruby
ebanoid has joined #ruby
<r0bgleeson> linduxed: you need to do it on the singleton class
joshu has joined #ruby
<linduxed> r0bgleeson: oh ok
realDAB has quit [Client Quit]
<r0bgleeson> class << self
tomzx_mac has joined #ruby
<r0bgleeson> wald0: i dont think people use a ruby reference when writing ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<wald0> good to know, im trying to move out of bash and before C but i want to write fast code (not losing time searching in a book "how to do X")
<r0bgleeson> just use google
<r0bgleeson> best book there is
<wald0> true :)
tkuchiki has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
JZTech102 has joined #ruby
<r0bgleeson> linduxed: did you figure it out?
<linduxed> r0bgleeson: i had a look at how i'd do it, and since both of the solutions take three lines, i'm fine with the current implementation
<linduxed> r0bgleeson: thx though
<r0bgleeson> np
diegoviola has quit [Ping timeout: 256 seconds]
nathancahill has joined #ruby
JZTech101 has quit [Ping timeout: 276 seconds]
ewnd9_ has quit [Remote host closed the connection]
smathieu has joined #ruby
<hanmac> wald0 i often use ri oder ruby-doc
ewnd9 has joined #ruby
<zendeavor> wald0: don't rush
kofno has quit [Remote host closed the connection]
ravster has joined #ruby
<zendeavor> seaching in a book for "how to do X" is time very well-spent.
JZTech102 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
nezumi has joined #ruby
JZTech101 has joined #ruby
<r0bgleeson> a reference is probably pretty valuable when youre learning and encounter something you dont understand
jnoob22 has quit [Remote host closed the connection]
<r0bgleeson> didnt think of that, but i dont think there's anything like the "Pocketbook for C" for Ruby.
dagnachew has joined #ruby
jsaak has quit [Read error: Operation timed out]
jnoob22 has joined #ruby
smathieu has quit [Ping timeout: 248 seconds]
brennanMKE has joined #ruby
<dagnachew> does anyone has this book ? Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide
<r0bgleeson> I have Programming Ruby 1.9 book
<r0bgleeson> not 2.0
Lewix has quit [Remote host closed the connection]
<dagnachew> r0bgleeson, I bought that book to but since ruby 2.0 come out is it ok just to start with that book or there are some new stuff (offcourse) and syntax changes ?
<wald0> do you think guys that "Programming Ruby x.x" is a good book ? i have started reading it but not very convinced (not good practical examples and long reading for few learning)
cj3kim has joined #ruby
habanany has joined #ruby
<r0bgleeson> i thought it was good
<r0bgleeson> maybe its not
<r0bgleeson> i didnt finish it
<zendeavor> finish it.
IceDragon has joined #ruby
DeanH has joined #ruby
<zendeavor> you probably fancy yourself smarter than the book assumes you to be in the early chapters
cj3kim has quit [Read error: Connection reset by peer]
jalcine has joined #ruby
<r0bgleeson> dagnachew: yeah there's new stuff, keyword arguments / refinements are the big ones but i dont think 1.9 is that far apart, it'll get you a solid foundation
poll876 has quit []
<wald0> after other suggestions i moved to "beginning ruby" which convinced me pretty more in all the senses
<r0bgleeson> zendeavor: me? not at all, actually
<r0bgleeson> i just prefer reading online
<dagnachew> is it worrisome that there is only one ruby 2.0 book ? does it mean the language is fading ??
<r0bgleeson> ruby 2.0 is new
<zendeavor> ruby 2.0 is brand new
<dagnachew> wald0, that is a 2009 book :(
<zendeavor> no one's had time to write a book about it
<zendeavor> how many books are coming out about C ?
<zendeavor> think C is fading away?
<wald0> dagnachew: in any of the cases it convinced me pretty more than the others by its contents (make a look to the TOC and/or some excerpt), btw it says that is updated to 1.9
jnoob22 has quit [Ping timeout: 240 seconds]
<wald0> zendeavor: never!
<zendeavor> duh.
realDAB has joined #ruby
<dagnachew> I found on rubyweekly a link to a free kindle book that did the job http://www.amazon.com/dp/B00E25KVLW/ref=cm_sw_su_dp the kindle version has a good ruby tutorial
brennanMKE has quit [Ping timeout: 276 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
<r0bgleeson> "How to install Ruby" should be a separate book IMO
ppq_ has quit [Read error: Connection reset by peer]
pupoque__ has quit [Read error: Connection reset by peer]
<wald0> i wonder if there's any free book of ruby for my kindle..
<wald0> could be nice to have it
<r0bgleeson> wald0: i dont know for kindle, but i know a great free book about ruby/1.9
<dagnachew> ruby is changing every time it will be nice if there was an uptodate tutorial like python like this http://docs.python.org/3/tutorial/
<sergiocampama> i dont understand why people have such a hard time installing ruby
<r0bgleeson> sergiocampama: i just think its a waste of paper
<sergiocampama> rbenv takes you all the way with the installation
<dagnachew> why is that there is not an uptodate tutorial on ruby like this http://docs.python.org/3/tutorial/? ofcourse there are the great rdocs but what about a tutorial on ruby with the latest addons
<dagnachew> ?
nezumi has quit [Ping timeout: 246 seconds]
<zendeavor> because they're not familiar with make or compilers, and rvm and rbenv are so bloated as to be daunting
<wald0> thx, i will make a look
<zendeavor> dagnachew: teach yourself.
<r0bgleeson> dagnachew: ruby documentation isn't always that good
<sergiocampama> rbenv is not bloated... maybe rvm is.. but rbenv is pretty clean...
moshee- has quit [Ping timeout: 241 seconds]
<dagnachew> r0bgleeson, that link is dead
ppq_ has joined #ruby
<zendeavor> http://is.gd/s1gGQZ bloat
<r0bgleeson> dagnachew: works here, whats wrong with it?
<apeiros> it's more than 1 line of code! d'uh!
mosheee has joined #ruby
<zendeavor> sloc is meaningless
<wald0> r0bgleeson: is not there any preview of that book ? seems like it needs to be compiled or something
<r0bgleeson> zendeavor: i think rbenv went downhill once it added 'rbenv install', but when it was just rbenv + ruby-build(explicitly) it was a nice tool to use
<r0bgleeson> so now chruby+ruby-build is the exact same thing, except i can fuzzy match versions
<apeiros> ok. it's more than 256 byte of code! d'uh!
<zendeavor> it's not _bad_, it's just full of feature creep
<apeiros> *bytes
<r0bgleeson> wald0: ah yeah you need to build it
<r0bgleeson> his website is offline
<Xeago> r0bgleeson: since when does rbenv have install explicitly?
<r0bgleeson> but its worth building
rippa has joined #ruby
<r0bgleeson> Xeago: the command?
<Xeago> yes
<r0bgleeson> for a while
<Xeago> "One thing well. rbenv is concerned solely with switching Ruby versions. It's simple and predictable. A rich plugin ecosystem lets you tailor it to suit your needs. Compile your own Ruby versions, or use the ruby-build plugin to automate the process. Specify per-application environment variables with rbenv-vars. See more plugins on the wiki."
<Xeago> from their project page
<dagnachew> r0bgleeson, thakes for ever to load the book
realDAB has quit [Quit: realDAB]
anannie has joined #ruby
<r0bgleeson> Xeago: i donno, its definitely a command, i've used it
<r0bgleeson> and to my knowledge i didnt have any plugins unless homebrew installs them
Opettaja has joined #ruby
<sergiocampama> install is not bundled with rbenv-core, its a plugin
raul782 has joined #ruby
<r0bgleeson> hm
<Xeago> lists the commands known by rbenv
<Xeago> install is not there
<r0bgleeson> ah no
<sergiocampama> and actually, the install plugin is ruby-build
<r0bgleeson> found it
<r0bgleeson> yeah
<r0bgleeson> "nstall ruby-build, which provides an rbenv install command that simplifies the process of installing new Ruby versions."
LaPetiteFromage has joined #ruby
<r0bgleeson> so if i didnt use ruby-build as well, i wouldnt have it
<blip99> hi, can map be made to act on only the first n elements of an array of strings ?
<Xeago> I do think chruby is nice, especially because it doesn't require ruby to change rubies..
<r0bgleeson> yeah
viszu has joined #ruby
<r0bgleeson> slice the array first
<sergiocampama> i dont know what pros has chruby in favor of rbenv, AFAIK, rbenv does not hook into cd, or does it?
klip has quit [Read error: Connection reset by peer]
<sergiocampama> array[0..n-1].map...
yfeldblum has joined #ruby
<zendeavor> shims
<Xeago> sergiocampama: rbenv does not hook into anything, it does require ruby to run
<blip99> sergiocampama: oh that simple, thanks
<Xeago> which might be a pita
Vivekananda has joined #ruby
<Xeago> as you have a bootstrapping problem
<zendeavor> rvm2 intends to be pure ruby, or near it
<zendeavor> (and generate shell)
<sergiocampama> Xeago: does it? does ubuntu come with ruby? i've never had to sudo apt-get install ruby to use rbenv
<r0bgleeson> zendeavor: it also tries to integrate with your system package manager, which sounds like an ambitious goal
sayd has joined #ruby
<sergiocampama> it's too ambitious for what it actually does... which is set the correct path to find the correct ruby...
banisterfiend has joined #ruby
<r0bgleeson> rvm does a ton more than that
<zendeavor> feature creep
<zendeavor> still gets the job done
goshakkk has joined #ruby
<sayd> Hi, i am getting an error when I try to install boxen. I think its a bundler issue but i see a bundler 1.2.5 error even thought i want 1.3.5 to be used https://gist.github.com/marr/9efe59bc82e4bb78b438
<zendeavor> but, it's daunting for new users who aren't familiar with *nix
<r0bgleeson> i decided to try something else when i was told in order for .rvmrc changes to be picked between different git branches id need to rewrite git as a shell function
<r0bgleeson> tried rbenv, and it just worked.
<r0bgleeson> sayd: you might need to downgrade your rubygems version
<sergiocampama> or upgrade your ruby version...
<sergiocampama> if you can
<sergiocampama> i mean if you are allowed, not saying you can't :)
m104 has joined #ruby
<r0bgleeson> Gem::SourceIndex is one of the recent RG deaths I think
Mathieu_ has joined #ruby
nezumi has joined #ruby
spectre|1 has quit [Quit: Leaving.]
<sayd> well this boxen thing is supposed to take care of my environment stuff but i cant even get it installed
<wald0> what is the name of that irb "better" replacement?
<apeiros> pry
kaspergrubbe has joined #ruby
<apeiros> also install pry-doc
<wald0> and how to get irb in colors?
sergiocampama has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
<wald0> apeiros: is there any list of "what" things has better than irb ?
<zendeavor> curious.
spectre| has joined #ruby
<apeiros> wald0: ask banisterfiend
<r0bgleeson> wald0: you can code explore(show source code & docs for methods/modules/classes), switch contexts or scopes easily, so you can navigate complex objects, and invoke it at runtime in your program for debugging, plus much more
<zendeavor> navigating around state
<r0bgleeson> i highly recommend it
<zendeavor> that's far too convenient to be real
nezumi has quit [Ping timeout: 246 seconds]
<wald0> mmmh, sounds very good, im convinced :)
banisterfiend has quit [Remote host closed the connection]
<wald0> "im selled", this is a correct word in english saying a similar thing?
<r0bgleeson> im sold
<wald0> ah, that, thx :)
spectre| has quit [Ping timeout: 248 seconds]
<zendeavor> i'm sold
badquanta has joined #ruby
Grieg has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
sleetdrop has quit [Quit: Computer has gone to sleep.]
<sayd> when I gem install bundler I see: https://gist.github.com/marr/9efe59bc82e4bb78b438
<sayd> when I gem install bundler I see: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/rdoc.rb:280: warning: conflicting chdir during another chdir block
ananthakumaran has quit [Quit: Leaving.]
pinage404 is now known as zz_pinage404
<r0bgleeson> >> Dir.chdir("/") { Dir.chdir("/home") { } }
<eval-in> r0bgleeson => (https://eval.in/39394)
ntus1017_ has joined #ruby
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jacktrick has joined #ruby
eldariof has joined #ruby
<hanmac> sayd "i am sorry ... i am so sorry ... but your ruby version is dead"
anannie has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
banisterfiend has joined #ruby
<jacktrick> :(
<jacktrick> we can't rescue it?
<sayd> urg.. it seems as though boxen is a paradox then
DeanH has joined #ruby
<sayd> it doesnt work if rbenv is installed already, yet it cant install (afaict) with stock osx ruby
Lewix has quit [Read error: Connection reset by peer]
stoffus_ has joined #ruby
Lewix has joined #ruby
ntus1017 has quit [Ping timeout: 264 seconds]
sergiocampama has joined #ruby
stoffus_ has quit [Client Quit]
sergiocampama has quit [Remote host closed the connection]
<r0bgleeson> sayd: its 1.8 only?
<hanmac> sayd: use macports install rvm and then get an recent ruby
stoffus_ has joined #ruby
<hanmac> PS: before, install an recent compiler
sergiocampama has joined #ruby
mosca_ has quit [Ping timeout: 264 seconds]
Morrolan has quit [Quit: ZNC - http://znc.in]
<r0bgleeson> why would he install RVM if he has rbenv?
Es0teric has joined #ruby
xcv has quit [Remote host closed the connection]
<hanmac> r0bgleeson: thats the problem, he hasnt ;P
<sergiocampama> why would anyone install rvm?
<sayd> i havent installed rvm or rbenv yet
<sayd> bc rbenv comes with boxen
raul782 has quit [Remote host closed the connection]
blip99 has quit [Ping timeout: 276 seconds]
<r0bgleeson> its not a rvm vs rbenv war, but doing rvm now sounds like more work
<hanmac> sergiocampama: because i use it to install better ruby on this shitty macs ... where you only get recent software if you build everything yourself (even the compiler)
<sayd> also macports doesnt play well with brew
<sayd> which comes with boxen
kaspergrubbe has quit [Remote host closed the connection]
Morrolan has joined #ruby
<r0bgleeson> sayd: does boxen only work with ruby 1.8?
<sergiocampama> Hanmac: but rbenv works in your scenario too, or no?
banisterfiend has quit [Remote host closed the connection]
stoffus_ has left #ruby [#ruby]
sepp2k has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<sayd> r0bgleeson: no.. maybe it doesnt work with 1,8
baroquebobcat has quit [Client Quit]
DonRichie has quit [Read error: Connection reset by peer]
<r0bgleeson> sayd: try 1.9
DonRichie has joined #ruby
haxrbyte has joined #ruby
Lewix has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
nathancahill has quit [Quit: nathancahill]
stoffus has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
bradsmith has quit [Remote host closed the connection]
Morrolan has quit [Quit: ZNC - http://znc.in]
kofno has joined #ruby
davedev2_ has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
<sayd> r0bgleeson: how do i downgrade my rubygems version?
banisterfiend has joined #ruby
S0da has joined #ruby
nathancahill has joined #ruby
<r0bgleeson> sayd: gem update --system X.X.X
Senjai has joined #ruby
Senjai has joined #ruby
intuxicated has joined #ruby
voodoofish has quit [Ping timeout: 276 seconds]
smathieu has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
axeman- has joined #ruby
zmike has quit [Ping timeout: 264 seconds]
<sayd> so I apparently did sudo gem update --system
<sayd> how do know which version to use with that command?
ewnd9 has quit [Read error: Operation timed out]
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
m8 has joined #ruby
jalcine has quit [Excess Flood]
viszu has quit [Quit: Leaving.]
motto has quit [Ping timeout: 264 seconds]
<Lewix> sayd: it updates to the latest version
TheBay has quit [Remote host closed the connection]
sdegutis has joined #ruby
Morrolan has joined #ruby
<sdegutis> Hello.
<sdegutis> Is there any documentation on the C API besides just ruby.h?
urielable has joined #ruby
<r0bgleeson> README.ext
<r0bgleeson> and some blogs
<sdegutis> thanks
<sayd> do I put ~/.gem/bin in the gem_path
<sdegutis> hopefully this helps me find a better way to get rb_eval_string("self")
xeqtr has joined #ruby
TIJ has joined #ruby
urielable has quit [Read error: Connection reset by peer]
urielable has joined #ruby
<xeqtr> Hello. I'm quite new to ruby (been writing php for 15 years though). Is there an equal way of getting the path to the current directory (as __DIR__ for php)?
<xeqtr> Have googled for a bit without finding a good answer.
kaspergrubbe has quit [Remote host closed the connection]
<sdegutis> r0bgleeson: do you know if theres an alternative way to get the top level object than rb_eval_string("self")
lebek has joined #ruby
voodoofish has joined #ruby
<rippa> xeqtr: Dir.getwd ?
sdegutis has quit [Remote host closed the connection]
<r0bgleeson> sdegutis: umm, im not sure, id assume you can access TOPLEVEL_BINDING from C but I'm not actually sure
hanmac1 has joined #ruby
zmike has joined #ruby
<xeqtr> rippa, ooh, thank you kindly :-)
<sam113101> xeqtr: there's __dir__
Davey has joined #ruby
darkstar| has joined #ruby
Speed has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
<xeqtr> sam113101, hmm, didn't get it to work
<sam113101> which version of ruby are you using?
<darkstar|> hi this is probably more of a rails question but im having difficult organizing this https://gist.github.com/overhang/6099390 what im trying to dow is show today's tasks if the todays date match's the due date, and if there are no tasks for today i dont want the word today to show up
<xeqtr> btw, whats more common for Ruby? camelCase or underscore?
<xeqtr> sam113101, 1.9 i think
<sam113101> well you need 2.0 at least
<sam113101> under_score for everything and CamelCase for classes
jalcine has joined #ruby
<xeqtr> sam113101, aah okey
<hanmac1> xeqtr: and SRCEAM_CASE for other constants
hanmac1 is now known as Hanmac
phasma has left #ruby [#ruby]
<apeiros> CamelCase for all constants
<apeiros> it's all turtles anyway
<sergiocampama> isn't it UPPERCASE for constants?
<sergiocampama> like UPPERCASE_CONSTANT
benlieb has joined #ruby
intuxicated has quit [Quit: Leaving]
<sam113101> I think that's what he meant by scream case?
<apeiros> classnames are constants too
<apeiros> the only requirement for a constant is an uppercased first letter
<sergiocampama> yes, but classes are special in that way… by constants I mean like Math::PI
cj3kim has joined #ruby
<apeiros> sergiocampama: no, classes are NOT special that way.
nari has quit [Ping timeout: 256 seconds]
<apeiros> ordinary constants
<sergiocampama> i only meant in casing
<apeiros> that's by choice
<apeiros> I don't do that
pewpewpewpewpew has joined #ruby
<apeiros> I see no point. classes are objects too.
<sergiocampama> everything is an object
<apeiros> almost
<apeiros> variables aren't objects
<apeiros> methods aren't either (though, you can create one from them)
<apeiros> code itself isn't "objects" either
itcharlie has joined #ruby
urielable has quit [Read error: Connection reset by peer]
<r0bgleeson> variables ref objects, always
urielable has joined #ruby
<apeiros> ref != are
<sergiocampama> well, standard convention is ClassName::CONSTANT
<r0bgleeson> apeiros: i know, just saying
nezumi has joined #ruby
<pewpewpewpewpew> hey guys, I know that it will probably piss you off, but I'm a complete beginner and not a davy Mac user, trying to install ruby for the first time(on non-admin user account) and failing. could someone help me out?
<Hanmac> apeiros & sergiocampama & xeqtr i mean this:
<Hanmac> >> Float::INFINITY
<eval-in> Hanmac => Infinity (https://eval.in/39398)
<apeiros> sergiocampama: some people's convention is. there's plenty who use the same convention as I do.
<pewpewpewpewpew> *savy
<apeiros> pewpewpewpewpew: easiest way is probably to just follow http://rvm.io
sarkis has quit [Ping timeout: 256 seconds]
Lewix has quit [Remote host closed the connection]
scarolan_ has joined #ruby
codecop has joined #ruby
cj3kim has quit [Ping timeout: 246 seconds]
ori-l has joined #ruby
jnoob22 has joined #ruby
<sergiocampama> apeiros: it's not just some peoples convention, it's the language convention
<pewpewpewpewpew> apeiros: i tried it, but then the terminal spew out a message saying that i need Xcode and some tools. i don't think I can get them without having an access to admin acc
<sergiocampama> you can install Xcode by means of App Store… its free
jnoob22_ has joined #ruby
<apeiros> sergiocampama: "the language convention"
<sergiocampama> i don't know if you need admin to install it, but you could try...
<apeiros> >> Struct.new.is_a?(Struct)
<eval-in> apeiros => wrong number of arguments (0 for 1+) (ArgumentError) ... (https://eval.in/39399)
<apeiros> >> Struct.new(:a, :b).is_a?(Struct)
<eval-in> apeiros => false (https://eval.in/39400)
<apeiros> seems core ruby doesn't take that too strictly…
<r0bgleeson> oh yeah
<r0bgleeson> because its an anonymous class, right?
urielable has quit [Client Quit]
<apeiros> pewpewpewpewpew: yes, without admin tools you need a binary ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
<apeiros> gah
<apeiros> without compiler and other tools
<pewpewpewpewpew> what does that mean to me?
<r0bgleeson> >> Struct.new(:a).name
<eval-in> r0bgleeson => nil (https://eval.in/39401)
<r0bgleeson> ok
scarolan has quit [Ping timeout: 264 seconds]
<apeiros> pewpewpewpewpew: that I don't have knowledge which would help you
<sergiocampama> what? I'm not arguing about what is considered an object or not… I'm talking about what is the language convention for casing constants
<r0bgleeson> now i see why people prefer subclassing Struct directly.
<pewpewpewpewpew> apeiros: cheers for trying
pewpewpewpewpew has quit [Quit: Page closed]
<apeiros> sergiocampama: my example shows that it's not really a "language convention"
<r0bgleeson> sergiocampama: SCREAMING_SNAKE_CASE = if the constant does not reference a Class or Module, otherwise CamelCase.
IceDragon has quit [Quit: Space~~~]
<sergiocampama> r0bgleeson: that's what I'm saying
tatsuya_o has joined #ruby
<r0bgleeson> apeiros: from what ive heard subclassing Struct.new is suppose to be an anti-pattern for that very reason.
<sergiocampama> I'm not saying it is required to be that way, only that that is the way std lib is defined
realDAB has joined #ruby
<sergiocampama> or written
<Hanmac> the only rule is that constants need to begin with A-Z ... the other chars are indipent
jnoob22 has quit [Ping timeout: 264 seconds]
zachrab_ has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
Coolhand_ has quit [Quit: No Ping reply in 180 seconds.]
nathancahill has quit [Quit: nathancahill]
pencilcheck has quit [Remote host closed the connection]
Coolhand has joined #ruby
Banistergalaxy has joined #ruby
<apeiros> sergiocampama: do you use :: for method invocation?
<sergiocampama> when it is needed, yes
<apeiros> it is never needed
<r0bgleeson> its never needed
<apeiros> so can I conclude you never use it?
<sergiocampama> pew*5, maybe you could install with rvm in another computer and then copy?
rodacato has quit [Remote host closed the connection]
<sergiocampama> what about using methods from other modules?
<sergiocampama> like SomeModule::do_something
<apeiros> sergiocampama: nothing. . always works
<sergiocampama> even when I haven't included the module?
<apeiros> that's unrelated
AzizLight has quit [Quit: Lost terminal]
<r0bgleeson> you never need to use :: to invoke methods, you can always use .
* realDAB would like to see :: for method invocation removed from the language
scarolan_ has quit [Read error: Connection reset by peer]
<apeiros> I heard that they wanted to deprecate it
<apeiros> but I haven't seen anything done in that regard
<realDAB> yeah, i think i saw that somewhere
<apeiros> (and I agree, I'd like to see it removed too)
<r0bgleeson> there was a thread on ruby-lang about it
<realDAB> r0bgleeson: i remember a thread from several years ago -- it probably crops up periodically
<apeiros> well, but since he uses :: too… another question :)
<apeiros> sergiocampama: do you use tabs and spaces mixed for indentation?
<sergiocampama> ah, ok, now I get the :: stuff
spectre| has joined #ruby
<r0bgleeson> ruby-lang sure is slow
<apeiros> yes, it was a trap! and you foiled it, damit :D
<sergiocampama> 2 spaces for tabs
<apeiros> sergiocampama: well, you should use tabs and spaces mixed. because core & stdlib are written that way…
scarolan has joined #ruby
<sergiocampama> apeiros: you're just pushing it to the limit.. hahah
Ripp__ has joined #ruby
<apeiros> sergiocampama: of course :)
rien has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
<apeiros> all I say: conventions are fine. but some conventions change.
scarolan has quit [Client Quit]
<r0bgleeson> pretty sure :: for class methods was some sort of convention once upon a time
scarolan has joined #ruby
<apeiros> and in a language like ruby, I find the SHOUTING_CASE for "other" constants silly. even if core mostly does it that way.
ori-l has left #ruby ["Leaving..."]
<r0bgleeson> what convention do you use then apeiros
<r0bgleeson> for those constants
<apeiros> CamelCase for all constants
stoffus has quit [Quit: stoffus]
<r0bgleeson> ew
<r0bgleeson> :)
WhereIsMySpoon has quit [Ping timeout: 240 seconds]
<r0bgleeson> apeiros: what about VERSION? ;)
<apeiros> Version
<r0bgleeson> really? wow
nathancahill has joined #ruby
<r0bgleeson> its not a big deal but i find the different casing useful
<r0bgleeson> if you have Foo.constants, now you know what is and isn't a module right away
d3 has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<apeiros> ls Foo :-p
<r0bgleeson> heh true
<apeiros> and even before ls, I had my own little tools to inspect objects
habanany has quit [Ping timeout: 248 seconds]
<r0bgleeson> did you know that IRB can navigate state like pry?
<apeiros> depends on what you mean, but probably not
<r0bgleeson> you can 'cd' into objects in irb
<r0bgleeson> let me pull up the method
<apeiros> you mean with irb(obj) ?
<realDAB> r0bgleeson: irb object
<apeiros> i.e. nested sessions - that I knew
<r0bgleeson> exactly
<apeiros> it even has some kind of "process management"
<r0bgleeson> i only found out about that recently
<apeiros> but I never used that
<r0bgleeson> the only time i ever use irb now is on servers
<apeiros> anyway, playing FF VII atm :)
<r0bgleeson> enjoy
ssvo has joined #ruby
ebanoid has quit [Quit: brbomgwtfbbq]
Tricon has joined #ruby
Neomex has joined #ruby
maroloccio has joined #ruby
Neomex has quit [Client Quit]
noop has quit [Ping timeout: 264 seconds]
jacktrick has quit [Quit: Leaving]
noop has joined #ruby
davedev2_ has quit [Ping timeout: 276 seconds]
anannie has joined #ruby
_serial_ has joined #ruby
r4nd0m1 has joined #ruby
ebanoid has joined #ruby
<xeqtr> So i'm defining some variables in my main script which i wanna be able to use inside the different modules i'm writing. Do i have to send them along everytime or can i make them "global"
realDAB has quit [Quit: realDAB]
motto has joined #ruby
spidergears has joined #ruby
m8 has quit [Read error: Operation timed out]
stoffus has joined #ruby
xcv has joined #ruby
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zmike has quit [Read error: Operation timed out]
lkba has quit [Ping timeout: 240 seconds]
DrCode has quit [Ping timeout: 240 seconds]
ssvo has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Remote host closed the connection]
scarolan has quit [Quit: leaving]
Trynemjoel has quit [Ping timeout: 245 seconds]
scarolan has joined #ruby
scarolan has quit [Client Quit]
scarolan has joined #ruby
jonathanwallace has joined #ruby
cha1tanya has quit [Ping timeout: 256 seconds]
stoffus has quit [Quit: stoffus]
NealJ has joined #ruby
pitzips has joined #ruby
machuga is now known as machuga|away
cj3kim has joined #ruby
Trynemjoel has joined #ruby
DrCode has joined #ruby
sdegutis has joined #ruby
smathieu has joined #ruby
Astral__ has quit [Read error: Connection reset by peer]
noop has quit [Quit: Leaving]
pen has joined #ruby
krz has quit [Quit: krz]
axeman- has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 276 seconds]
badquanta has quit [Ping timeout: 276 seconds]
WhereIsMySpoon has joined #ruby
Hanmac1 has joined #ruby
darkstar| has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
badquanta has joined #ruby
yacks has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby
Evixion has joined #ruby
dodosan has joined #ruby
BizarreCake has quit [Read error: Operation timed out]
Nom- has quit [Ping timeout: 260 seconds]
johnkary has joined #ruby
jbpros has joined #ruby
RichardBaker has joined #ruby
Nom- has joined #ruby
<sdegutis> When receiving a VALUE in a C function, is there a way to make sure it doesn't get garbage collected, so I can add it to a C collection somewhere and use it later?
<sdegutis> Specifically it's a Lambda value but I don't think that matters.
yfeldblum has joined #ruby
lkba has joined #ruby
<anannie> Can someone please tell me why this weird error is popping up in the Ruby_Warrior game? https://gist.github.com/2x2l/6099734
<r0bgleeson> sdegutis: well, if you can't garbage collect a lambda you can't collect anything it closes over? but i think there is rb_gc_mark for that.
jbpros has quit [Ping timeout: 256 seconds]
<Hanmac1> sdegutis: rb_global_variable(&your_var)
<sdegutis> r0bgleeson: im thinking that when you call from Ruby a function defined in C, if you retain any of its arguments in C-land, Ruby won't know and will garbage-collect them as needed
nbouscal has joined #ruby
<sdegutis> so that if you create a lambda and only pass it to the function but never keep any references to it within Ruby, you probably need to mark it as "having a reference to it" from C-land
<r0bgleeson> and rb_global_variable calls rb_register_address it seems
<sdegutis> Hanmac1: rb_global_variable does this then?
<Hanmac1> yeah, but in one of my bindings i do it a bit different
<r0bgleeson> sdegutis: actually, I think you only need to worry about that when ruby doesn't know about the object, no?
<sdegutis> then how do you "un"-mark it, so the collector can free it up as needed?
<sdegutis> r0bgleeson: only when Ruby doesn't *care* about the objectanymore
blo has quit [Changing host]
blo has joined #ruby
<sdegutis> like if you do: foobar 'bla', lambda { puts 'this lambda is not referenced anymore after this call to foobar' }
<sdegutis> that call to 'foobar' is the only place the lambda is ever used, so its fair to garbage-collect it
<sdegutis> *unless* foobar keeps hold of the lambda by some permanent refernce
<sdegutis> which sounds like thats what 'rb_global_variable' does
<r0bgleeson> are you seeing a segfault?
<sdegutis> not yet
<Hanmac1> sdegutis: wait i want to show you how i did it
<sdegutis> ok Hanmac1
<Hanmac1> do you use some more complicated lib? like an GUI engine? if yes try to play that you store the VALUE object inside your c++ object as UserData pointer (with an holder class) ... with that you can add your VALUE into an Hash that holds all the protected objects (the hash is registerd with rb_global_variable) ... and when the C++ object deletes the userdata (and the holder), remove the VALUE object from the Hash again (maybe with some kind of R
<sdegutis> Hanmac1: basically im going to store some lambdas/procs/etc and call them later in the future at some unspecified time
<sdegutis> (they're callbacks)
<sdegutis> but the callbacks happen from within C
decoponio has quit [Quit: Leaving...]
<r0bgleeson> ah
anannie has quit [Ping timeout: 264 seconds]
<r0bgleeson> sounds like you're on the right path then
<sdegutis> i want to make sure they dont get collected before then
<r0bgleeson> but that means you'll need to manage their GC yourself, I think
<sdegutis> but i also want to make sure that they DO get collected when I'm done with them
<r0bgleeson> rb_gc_unmark
<sdegutis> and thats what im wondering how to do, and hoping someone in here can shed some light
<sdegutis> ah!
<sdegutis> perfect, thanks :)
<r0bgleeson> im not sure if thats right, im checking the docs too
<sdegutis> i couldnt find any docs :(
<sdegutis> besides the ones you told me
<sdegutis> ie this file
<r0bgleeson> oh by docs i mean the scattered blogs over the internet
<r0bgleeson> there's not a one good source for this i dont think
tommyvyo has quit [Quit:]
<r0bgleeson> but you wanna unmark the object
<r0bgleeson> so there should be a function for that (i'd assume)
<sdegutis> heh
<sdegutis> checking ruby.h
<r0bgleeson> rb_gc_unregister
<r0bgleeson> and rb_global_variable is rb_gc_register
<r0bgleeson> but check the docs, im not an expert on this stuff at all
<sdegutis> yep i found rb_gc_unregister_address() and rb_gc_register_address()
<sdegutis> right next to rb_global_variable()
<sdegutis> i dont get the relationship between rb_global_variable() and rb_gc_register_address()
anannie has joined #ruby
<sdegutis> googling
<r0bgleeson> it looks like rb_global_variable() just calls that
<Hanmac1> sdegutis: thats how my refcounting works: https://github.com/Hanmac/rwx/blob/master/ext/main.cpp#L23
tommyvyo has joined #ruby
<sdegutis> r0bgleeson: ah probably deprecated legacy naming
lebek has joined #ruby
<r0bgleeson> but id assume unregister will put it back for the GC, i dont know :P
<r0bgleeson> #ruby-lang is a channel who might have people more familiar with C APIs if you havent tried there yet
<anannie> https://gist.github.com/2x2l/6099734 <--- why does the first one throw the bizarre error and the second one works?
<Hanmac1> i dont use unregister because i dont know if the object isnt used more than once inside the lib
Hanmac1 is now known as Hanmac
<r0bgleeson> @health is nil, anannie
<r0bgleeson> it belongs to the class
<r0bgleeson> not the instance
<r0bgleeson> put it in initialize
<anannie> ah
<anannie> r0bgleeson: How does this work bt?
<anannie> * btw
<r0bgleeson> @health belongs to Player in your example(the class), but you use it in the scope of an instance of that class.
rippa has quit [Ping timeout: 248 seconds]
maroloccio has quit [Quit: WeeChat 0.4.0]
banisterfiend has joined #ruby
* Hanmac giggles because he know how to hide semi-named classes inside instances ;P
<anannie> Interesting. Thanks r0bgleeson!
maroloccio has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
_serial_ has quit [Read error: Operation timed out]
Es0teric has joined #ruby
xcthulhu has joined #ruby
mgorbach has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
nazty has joined #ruby
cHarNe2 has joined #ruby
marr has quit []
anannie has quit [Remote host closed the connection]
Mon_Ouie has quit [Read error: No route to host]
Mon_Ouie has joined #ruby
<xeqtr> I have several files named like rc_1.rb rc_2.rb etc and inside them i have two functions named apply_1() and undo_1(). I want to call the one sent along with an argument. I have this function that loads it from the arg but how do i actually run the function? http://pastie.org/8184363
m8 has joined #ruby
goganchic has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
goganchic has quit [Client Quit]
<r0bgleeson> xeqtr: you'd use send()
spidergears has quit [Ping timeout: 240 seconds]
LaPetiteFromage has joined #ruby
<xeqtr> r0bgleeson, yeah but on what, dont understand how to use it
motto has quit [Ping timeout: 240 seconds]
<xeqtr> r0bgleeson, tried this http://pastie.org/8184368
<xeqtr> r0bgleeson, but it complains about block something
<r0bgleeson> it takes the name of the method you want to call, your method name is dynamic, it comes from a string so ruby has to dispatch the call through send()
TIJ has quit [Ping timeout: 268 seconds]
m8 has quit [Read error: Connection reset by peer]
<r0bgleeson> instance_exec is not send
<r0bgleeson> send(), its a method
<sergiocampama> object.send("name")
jonahR has joined #ruby
<r0bgleeson> but you're at the toplevel in that example, so just a bare send()
benlieb has quit [Quit: benlieb]
marr has joined #ruby
eldariof has quit [Read error: Operation timed out]
spidergears has joined #ruby
comrade has joined #ruby
m8 has joined #ruby
mgorbach has quit [Quit: ZNC - http://znc.in]
comrade is now known as Guest49895
zets2 has quit [Ping timeout: 252 seconds]
mgorbach has joined #ruby
Guest49895 has quit [Client Quit]
<xeqtr> Woho! Got it to work
<xeqtr> Thank you kindly for the help!
<r0bgleeson> 18>> x = [1,2,3]; ["one", *x, *x]
<eval-in> r0bgleeson => /tmp/execpad-bf387776dadf/source-bf387776dadf:2: syntax error, unexpected ',', expecting ']' ... (https://eval.in/39402)
rondale_sc has joined #ruby
<r0bgleeson> 19>> x = [1,2,3]; ["one", *x, *x]
<eval-in> r0bgleeson => ["one", 1, 2, 3, 1, 2, 3] (https://eval.in/39403)
<r0bgleeson> 18>> x = [1,2,3]; ["one", *x, *x]
<eval-in> r0bgleeson => /tmp/execpad-9bf8da68a345/source-9bf8da68a345:2: syntax error, unexpected ',', expecting ']' ... (https://eval.in/39404)
<r0bgleeson> rondale_sc: ^
<rondale_sc> r0bgleeson: sucky
<rondale_sc> Alternative Array(something) << something_array << something_array
<rondale_sc> ?
<r0bgleeson> concat()
<r0bgleeson> 18>> x = [1,2,3]; x.concat(x)
<eval-in> r0bgleeson => [1, 2, 3, 1, 2, 3] (https://eval.in/39405)
<rondale_sc> Aren't << and concat aliased?
<waxjar> << is for a single element
<r0bgleeson> << is push, i thought
<rondale_sc> Ah
<r0bgleeson> 18>> x = [1,2,3]; x.concat(x,x)
<eval-in> r0bgleeson => wrong number of arguments (2 for 1) (ArgumentError) ... (https://eval.in/39406)
ehaliewicz has joined #ruby
<r0bgleeson> is there no one-liner for that on 1.8?
<r0bgleeson> 18>> x = [1,2,3]; [1,2,3].concat(x + x)
<eval-in> r0bgleeson => [1, 2, 3, 1, 2, 3, 1, 2, 3] (https://eval.in/39407)
rezzack has quit [Quit: Leaving.]
<rondale_sc> (Array(non_array_elem) << some_array << some_other_array).flatten is what I was looking at before
maxmanders has quit [Quit: Computer has gone to sleep.]
<r0bgleeson> what about that
smathieu has joined #ruby
<r0bgleeson> yeah thats wordy
<r0bgleeson> id try slim it down if possible
<sergiocampama> 18>> x = [1,2,3]; x*2
<eval-in> sergiocampama => [1, 2, 3, 1, 2, 3] (https://eval.in/39408)
<r0bgleeson> 18>> x = [1,2,3]; [1,2,3].concat(x*2)
<eval-in> r0bgleeson => [1, 2, 3, 1, 2, 3, 1, 2, 3] (https://eval.in/39409)
<rondale_sc> Maybe just Array(possible_array) + [1,2,3]
<r0bgleeson> well, in your example you had [1,*x,*x]?
<sergiocampama> 18>>[1,2,3] + [4,5,6]
<eval-in> sergiocampama => [1, 2, 3, 4, 5, 6] (https://eval.in/39410)
<rondale_sc> r0bgleeson: Yes
<r0bgleeson> so Array(possible_array) + [1,2,3] isnt the same?
mgorbach has quit [Quit: ZNC - http://znc.in]
<rondale_sc> r0bgleeson: YEah, that should work;l.
<rondale_sc> The other way was prettier
<rondale_sc> :(
<r0bgleeson> yeah
Emmanuel_Chanel has quit [Quit: Leaving]
<r0bgleeson> convince banister to drop 1.8 :P
mgorbach has joined #ruby
<rondale_sc> r0bgleeson: Didn't you already add an Issue for that?
<r0bgleeson> no that was for ruby 1.0 support
<rondale_sc> lol
ILoveYou[ has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
xcv has quit [Remote host closed the connection]
Czupa has joined #ruby
ILoveYou has quit [Ping timeout: 276 seconds]
xcv has joined #ruby
mklappstuhl has joined #ruby
jasonsmr has quit [Quit: Lost terminal]
xcv has quit [Remote host closed the connection]
trepidaciousMBR has joined #ruby
benlieb has joined #ruby
rondale_sc has quit [Quit: leaving]
workmad3 has joined #ruby
ukandrewtayloruk has joined #ruby
ukandrewtayloruk has quit [Client Quit]
tatsuya_o has joined #ruby
nanothief_ has joined #ruby
ehaliewi` has joined #ruby
Taranis_ has joined #ruby
ehaliewicz has quit [Read error: No route to host]
nanothief has quit [Read error: Connection reset by peer]
realDAB has joined #ruby
rondale_sc has joined #ruby
Taranis has quit [Read error: Connection reset by peer]
realDAB has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
norm__ has joined #ruby
norm has quit [Ping timeout: 240 seconds]
norm__ is now known as norm
<sayd> when i run gem env gempath, i see: gem env gempath
<sayd> /Users/dmarr/.gem/ruby/1.8:/Library/Ruby/Gems/1.8:/Users/dmarr/.gem:/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
Guest88661 is now known as nitrodex
motto has joined #ruby
<sayd> and im getting a bundler error is 1.2.5 related which is in an earlier path than 1.3.5 which is installed in ~/.gem
DanKnox_away is now known as DanKnox
jarray52 has quit [Quit: Leaving.]
<sayd> so my question is can i update the path?
lunarjar has quit [Quit: Bye]
m8 has quit [Ping timeout: 240 seconds]
lunarjar has joined #ruby
whowantstolivefo has quit [Ping timeout: 276 seconds]
johnkary has quit [Quit: @johnkary]
<zendeavor> echo $GEM_PATH ?
<zendeavor> or is it a problem with $PATH
randomautomator has joined #ruby
<sayd> both seem ok
fschuindt has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
denysonique has quit [Ping timeout: 260 seconds]
Hanmac1 has joined #ruby
heidar has quit [Ping timeout: 260 seconds]
jarray52 has joined #ruby
rubyguy has quit [Ping timeout: 264 seconds]
Domon has quit [Ping timeout: 245 seconds]
chuk has quit [Ping timeout: 245 seconds]
<zendeavor> hash -r
<joshu> hi guys
Hanmac has quit [Ping timeout: 268 seconds]
sambao21 has joined #ruby
Xiti` has joined #ruby
Zespre has quit [Ping timeout: 264 seconds]
czchen has quit [Ping timeout: 264 seconds]
<xeqtr> why do i get #<Enumerator:0x00000001291e80> when i try to print a number?
ehaliewi` has quit [Remote host closed the connection]
<workmad3> xeqtr: code please
<zendeavor> "4"
trepidaciousMBR has quit [Quit: trepidaciousMBR]
<xeqtr> the original filename is rc_2.rb and i'm removing .rb and rc_
Kar- has joined #ruby
<workmad3> xeqtr: think again
<workmad3> xeqtr: look at line 4 and spot the error ;)
Xiti has quit [Ping timeout: 248 seconds]
Shirakawasuna has joined #ruby
poga has joined #ruby
adeponte has joined #ruby
<xeqtr> Bah! rookie misstake
<xeqtr> haha thanks
intuxicated has joined #ruby
<xeqtr> How can i increase that number that i get out? wanna do +1 but i get can't convert Fixnum into String
realDAB has joined #ruby
<xeqtr> never mind
randomautomator has quit [Remote host closed the connection]
<xeqtr> found the .to_i
kofno has quit [Remote host closed the connection]
trepidaciousMBR has joined #ruby
randomautomator has joined #ruby
kofno has joined #ruby
druonysus has joined #ruby
TIJ has joined #ruby
<workmad3> xeqtr: .to_i.succ ;)
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
<r0bgleeson> mhm
JZTech101 has joined #ruby
<r0bgleeson> next time i see myself doing += 1 ill use that
randomautomator has quit [Ping timeout: 245 seconds]
dodosan has quit [Remote host closed the connection]
Czupa has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
elaptics`away is now known as elaptics
jonathanwallace has quit [Ping timeout: 240 seconds]
ravster has left #ruby [#ruby]
eoinkelly has joined #ruby
trepidaciousMBR has quit [Quit: trepidaciousMBR]
mosca_ has joined #ruby
<workmad3> r0bgleeson: tbh, I don't use .succ when what I expect are numbers... I see .succ as more use where all you want is something that has a natural successor (so more general than just numbers) but that successor may not be a +1 increment :)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niftylettuce has quit [Ping timeout: 245 seconds]
rndstr has quit [Ping timeout: 245 seconds]
lectrick has quit [Ping timeout: 245 seconds]
JoeTheGuest has quit [Ping timeout: 245 seconds]
bluehavana has quit [Ping timeout: 245 seconds]
kapowaz has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
pcarrier has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
motto has quit [Read error: Connection reset by peer]
motto has joined #ruby
yannick__ has quit [Ping timeout: 264 seconds]
ssvo has joined #ruby
ebanoid has quit [Quit: brbomgwtfbbq]
<xeqtr> Can i set a variable just inside the module that is reachable from outside?
k610 has quit [Quit: Leaving]
dtcrshr has joined #ruby
realDAB has quit [Quit: realDAB]
<r0bgleeson> workmad3: makes sense
<r0bgleeson> >> "a".succ
<eval-in> r0bgleeson => "b" (https://eval.in/39411)
<sam113101> xeqtr: you mean, ModuleName::variablename?
DeanH has quit [Read error: Connection reset by peer]
<r0bgleeson> >> "1".succ
<eval-in> r0bgleeson => "2" (https://eval.in/39412)
<wald0> im using debian wheezy, how much worth is to use ruby 2.0 than 1.9 ?, i mean, there's much "worth" improvings needed? so i would like to stick at the default "stable" debian system as possible
relix has joined #ruby
<xeqtr> sam113101, solved it :-)
rippa has joined #ruby
dash_ has quit [Quit: dash_]
<workmad3> >> "0".succ
<eval-in> workmad3 => "1" (https://eval.in/39413)
<workmad3> >> "10".succ
<eval-in> workmad3 => "11" (https://eval.in/39414)
<workmad3> awesome :)
<workmad3> never knew that worked :)
<Hanmac1> >> :z.succ
<eval-in> Hanmac1 => :aa (https://eval.in/39415)
Hanmac1 is now known as Hanmac
fschuindt has quit [Ping timeout: 246 seconds]
<sam113101> >> "9".succ
<eval-in> sam113101 => "10" (https://eval.in/39416)
<Hanmac> as you guys can see, Symbol succ's ;P
<workmad3> "1.0.1".succ
<workmad3> >> "1.0.1".succ
<eval-in> workmad3 => "1.0.2" (https://eval.in/39417)
<workmad3> :D
<workmad3> >> "rc_1.0.0.rb".succ
<eval-in> workmad3 => "rc_1.0.0.rc" (https://eval.in/39418)
<sam113101> >> "1.0.9".succ
<eval-in> sam113101 => "1.1.0" (https://eval.in/39419)
<sam113101> what the fuck
Davey has joined #ruby
<workmad3> >> "rc_1.0.0".succ
<eval-in> workmad3 => "rc_1.0.1" (https://eval.in/39420)
<Hanmac> sam113101: wtf i am very supriced :D
<workmad3> ok, .succ just became a lot more useful than I ever realised
TIJ has quit [Quit: Konversation terminated!]
lacko has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
<Hanmac> workmad3: Symbol does succ too ;P
r4nd0m1 has quit []
sambao21 has quit [Ping timeout: 268 seconds]
benlieb has quit [Quit: benlieb]
realDAB has joined #ruby
m8 has joined #ruby
<lacko> hey guys, im using the xml builder but i get error saying that the Builder constant is uninitialized. do you know what could cause this?
<Hanmac> lacko did you forget to require the gem before using?
motto has quit [Ping timeout: 240 seconds]
smathieu_ has joined #ruby
<lacko> no i didnt forget
RichardBaker has quit [Quit: RichardBaker]
m104 has quit [Quit: m104]
<Hanmac> lacko, what rubyversion?
<lacko> 1.8.7
urielable has joined #ruby
bubu has quit [Remote host closed the connection]
<Hanmac> lacko thats the problem, 1.8.7 is dead
spectre| has quit [Quit: Leaving.]
<Hanmac> (there is a timer inside the progamm, it did stop working after a given day)
<r0bgleeson> a 1.8.7 timer?
<wald0> how much worth is using 2.0 over 1.9 ?
smathieu_ has quit [Ping timeout: 264 seconds]
<lacko> well thats the end of my trust in apt and synaptic :D
<lacko> thx for help
<Hanmac> lacko use rvm and install ruby-head
<r0bgleeson> wald0: use both
urielable has quit [Read error: Connection reset by peer]
urielable has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<Hanmac> wald0 there are some cool functions in 2.0 like prepend, but most of the features maybe can be emulated
<wald0> r0bgleeson: the thing is that i would like to stick at debian wheezy (ships with ruby 1.9), in order to be compatible with the system and also to try to package apps in the future made in ruby
jasonsmr has joined #ruby
pipework has quit [Remote host closed the connection]
<Hanmac> wald0 there are some changes in 2.0 that may break older code so you may need to be careful, but you can write your code so it works with both unless you need 2.0 features
jbpros has joined #ruby
poga has quit [Remote host closed the connection]
johnkary has joined #ruby
realDAB has quit [Quit: realDAB]
zachrab_ has joined #ruby
blip- has joined #ruby
lacko has quit [Quit: Lost terminal]
Lewix has joined #ruby
nicoulaj has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
Vivekananda has quit [Ping timeout: 248 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
sergiocampama has quit [Quit: sergiocampama]
eoinkelly has quit [Quit: eoinkelly]
eoinkelly has joined #ruby
araujo has quit [Ping timeout: 268 seconds]
codepython777 has quit [Quit: Leaving.]
pskosinski has joined #ruby
araujo has joined #ruby
f0ster_ has quit [Ping timeout: 240 seconds]
nathancahill has quit [Ping timeout: 240 seconds]
Vivekananda has joined #ruby
klip has joined #ruby
nkts has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
blip- has quit [Ping timeout: 246 seconds]
nathancahill has joined #ruby
arya__ has joined #ruby
denysonique has joined #ruby
Vivekananda has quit [Client Quit]
Vivekananda has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 276 seconds]
adambeynon has joined #ruby
cj3kim has quit [Remote host closed the connection]
adambeynon has quit [Client Quit]
jbpros has quit [Quit: jbpros]
johnkary has quit [Quit: @johnkary]
zigomir has joined #ruby
rippa has quit [Read error: Connection reset by peer]
staafl has joined #ruby
yannick__ has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<yannick__> hey guys, how can i execute bundle install with sudo permissions?
<yannick__> sudo: bundle: command not found
razi has quit [Ping timeout: 248 seconds]
<workmad3> yannick__: you probably don't want to do that
tatsuya_o has quit [Remote host closed the connection]
<workmad3> yannick__: chances are you want to do a bundle install --path vendor/bundle or a bundle install --deployment
rodacato has joined #ruby
Elico has joined #ruby
kofno has quit [Remote host closed the connection]
lacko has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
<yannick__> workmad3: i wanna execute: sudo -u git -H /home/pi/.rvm/gems/ruby-2.0.0-p247/bin/bundle install --deployment --without development test postgres unicorn aws
arya__ has quit [Ping timeout: 240 seconds]
<yannick__> workmad3: /usr/bin/env: ruby_noexec_wrapper: No such file or directory
Vivekananda has joined #ruby
<lacko> hey im trying to use xmlbuilder but i always get error saying that Builder constant is uninitialised, do you have any idea what could be a problem?
khismetix has joined #ruby
johnkary has joined #ruby
cjs226 has quit [Ping timeout: 256 seconds]
apeiros has quit [Remote host closed the connection]
<yannick__> workmad3: why did you write "bundle install --deployment"?
lnormous has joined #ruby
apeiros has joined #ruby
pipework has joined #ruby
mercwithamouth has joined #ruby
vlad_starkov has joined #ruby
dtcrshr has quit [Remote host closed the connection]
<Elico> hey trying to parse a xml file but Im a bit stuck on something please take a peek.
<Elico> http://pastebin.centos.org/3529/ this is the file and I want to get into the url element and verify that the type is http -i and get the element text. Thanks.
ILoveYou[ has quit [Ping timeout: 246 seconds]
trepidaciousMBR has joined #ruby
cjs226 has joined #ruby
jnoob22_ has quit [Remote host closed the connection]
jnoob22 has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
<yannick__> workmad3: ?
johnkary has quit [Quit: @johnkary]
Xeago has quit [Remote host closed the connection]
jnoob22 has quit [Ping timeout: 260 seconds]
[1]Encosi has joined #ruby
staafl has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
smathieu has quit [Ping timeout: 268 seconds]
Encosi has quit [Ping timeout: 246 seconds]
[1]Encosi is now known as Encosi
khismetix has quit [Ping timeout: 264 seconds]
staafl has joined #ruby
Liothen has joined #ruby
zigomir_ has joined #ruby
<lacko> hey im trying to use xmlbuilder but i always get error saying that Builder constant is uninitialised, do you have any idea what could be a problem?
zigomir has quit [Ping timeout: 276 seconds]
Kricir has quit [Remote host closed the connection]
xeqtr has quit [Read error: Operation timed out]
Hanmac has joined #ruby
sergiocampama has joined #ruby
Norrin has quit [Ping timeout: 246 seconds]
awc737 has quit [Ping timeout: 246 seconds]
SegFaultAX has quit [Ping timeout: 246 seconds]
NimeshNeema has quit [Ping timeout: 246 seconds]
sdegutis has quit [Remote host closed the connection]
Rylai has quit [Ping timeout: 246 seconds]
prezJFK has joined #ruby
Rylai has joined #ruby
Norrin has joined #ruby
phite has quit [Ping timeout: 246 seconds]
Hanmac1 has quit [Ping timeout: 264 seconds]
phite has joined #ruby
iliketurtles has joined #ruby
RichardBaker has joined #ruby
khismetix has joined #ruby
awc737 has joined #ruby
SegFaultAX has joined #ruby
mosca_ has quit [Ping timeout: 246 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
lacko has quit [Quit: Lost terminal]
kaspergrubbe has quit [Remote host closed the connection]
sambao21 has joined #ruby
sergiocampama has quit [Quit: sergiocampama]
brennanMKE has joined #ruby
tatsuya_o has joined #ruby
sambao21 has quit [Client Quit]
sergiocampama has joined #ruby
Domon has joined #ruby
khismetix has quit [Ping timeout: 248 seconds]
jasonsmr has quit [Quit: Lost terminal]
rubyguy has joined #ruby
kirun has quit [Quit: Client exiting]
heidar has joined #ruby
dtcrshr has joined #ruby
lebek has quit [Ping timeout: 240 seconds]
rezzack has joined #ruby
chuk has joined #ruby
sergiocampama has quit [Quit: sergiocampama]
Zespre has joined #ruby
czchen has joined #ruby
trepidaciousMBR has quit [Quit: trepidaciousMBR]
tatsuya_o has quit [Ping timeout: 264 seconds]
_whitelogger has joined #ruby
obs has joined #ruby
dagnachew has quit [Quit: Leaving]
RichardBaker has quit [Quit: RichardBaker]
headius has joined #ruby
khismetix has joined #ruby
arya_ has joined #ruby
dagnachew has joined #ruby
blaxter_ has joined #ruby
Gardel has left #ruby [#ruby]
Gardel has joined #ruby
rien has joined #ruby
elaptics is now known as elaptics`away
<rien> join #ror
* rien apologizes
badquanta has quit [Ping timeout: 264 seconds]
zigomir_ has quit [Ping timeout: 276 seconds]
rodacato has quit [Remote host closed the connection]
bluehavana has joined #ruby
niftylettuce has joined #ruby
Krajsnick has quit [Remote host closed the connection]
urielable has quit [Quit: Leaving.]
JoeTheGuest has joined #ruby
kapowaz has joined #ruby
k0rupted__ has joined #ruby
k0rupted has quit [Ping timeout: 260 seconds]
k0rupted_ has quit [Ping timeout: 276 seconds]
ewnd9 has joined #ruby
k0rupted has joined #ruby
lectrick has joined #ruby
Tricon has quit [Remote host closed the connection]
wald0 has quit [Read error: Connection reset by peer]
rndstr has joined #ruby
codecop has quit [Read error: Connection reset by peer]
xcv has joined #ruby
prezJFK has quit [Remote host closed the connection]
ntus1017_ has quit [Remote host closed the connection]
tjbiddle has joined #ruby
ewnd9 has quit [Ping timeout: 248 seconds]
sarkis has joined #ruby
blip- has joined #ruby
Kar- has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 276 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
QKO has quit [Ping timeout: 264 seconds]
realDAB has joined #ruby
ILoveYou has joined #ruby
QKO has joined #ruby
smathieu has joined #ruby
popl has joined #ruby
xcv has quit [Remote host closed the connection]
scarolan has quit [Ping timeout: 268 seconds]
codepython777 has joined #ruby
xcv has joined #ruby
ILoveYou has quit [Read error: Connection reset by peer]
BillCriswell has joined #ruby
rodacato has joined #ruby
xcv has quit [Remote host closed the connection]
bigmac has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
cHarNe2 has quit [Ping timeout: 264 seconds]
Opettaja has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
gstamp has joined #ruby
blaxter_ has quit [Quit: foo]
rezzack1 has joined #ruby
pupoque_ has joined #ruby
rezzack has quit [Ping timeout: 276 seconds]
staafl has quit [Quit: Leaving]
brennanMKE has quit [Remote host closed the connection]
khismetix has quit [Ping timeout: 268 seconds]
khismetix has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
rrecio has joined #ruby
Kricir has joined #ruby
m8 has quit [Quit: Sto andando via]
rodacato has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
Kricir has quit [Ping timeout: 268 seconds]
sdegutis has joined #ruby
sdegutis has joined #ruby
emergion has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
v0n has joined #ruby
S0da has quit [Read error: Connection reset by peer]
BRMatt has quit [Ping timeout: 276 seconds]
dagnachew has quit [Quit: Leaving]
scarolan has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
Hanmac1 has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
v0n has quit [Ping timeout: 240 seconds]
LaPetiteFromage has joined #ruby
* zendeavor punts rien
Emmanuel_Chanel has joined #ruby
emergion has joined #ruby
ramblex has quit [Quit: Leaving]
brennanMKE has joined #ruby
Tricon has joined #ruby
anonymuse has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
keen___ has quit [Ping timeout: 246 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
Vivekananda has quit [Ping timeout: 276 seconds]
<matti> This one is from banisterfiend
<matti> Ops
zachrab_ has quit [Remote host closed the connection]
<banisterfiend> matti: ?
<matti> banisterfiend: I am just helping someone on #ruby-lang.
<matti> banisterfiend: I was giving this person link to your blog about C API and Procs'
<banisterfiend> oh ok
<matti> Sorry.
<banisterfiend> oh hehe
<banisterfiend> that's > 4 years old i think
keen___ has joined #ruby
<matti> But describes nicely how to save Proc for future use ;]
<matti> In C extension.
v0n has joined #ruby
<matti> Which is what he wanted, I think.
<sdegutis> hi
<sdegutis> ive been in here all along
<matti> Oh, speaking of a devil -> sdegutis
<matti> sdegutis: Hahah
Mathieu_ has quit [Ping timeout: 256 seconds]
<sdegutis> i went to ruby-lang on recommendation of r0bgleeson
<matti> sdegutis: Sorry, I should have known ;]
<sdegutis> matti: :)
emergion has quit [Ping timeout: 260 seconds]
mityaz has quit [Quit: See ya!]
seitensei has joined #ruby
<sdegutis> well matti since you're on a roll, is rb_protect the easiest way to rescue ruby-exceptions when doing rb_eval_string() ?
LaPetiteFromage has joined #ruby
love_color_text has joined #ruby
<matti> Haha.
predator217 has joined #ruby
jp- has joined #ruby
<matti> I am going to sleep in a second, its 1 am here.
<sdegutis> k
<sdegutis> nite
<rrecio> whats the difference between this channel and ruby-lang?
<matti> sdegutis: Check rb_eval_string_protect(...)
<zendeavor> one's about developing with ruby, one's about ruby development
r0bgleeson has quit [Ping timeout: 264 seconds]
<sdegutis> woot
<sdegutis> rb_eval_string_protect ftw
<sdegutis> zendeavor: which is which?
<sdegutis> i dont know where to ask these questions
predator117 has quit [Ping timeout: 248 seconds]
keen___ has quit [Ping timeout: 260 seconds]
<matti> sdegutis: There is a side effect of calling rb_protect too much/many time.
<zendeavor> string parsing
<matti> sdegutis: It used to be that VM was starting GC sometimes right after.
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<sdegutis> matti: ahh
Neomex has joined #ruby
t_p has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<matti> sdegutis: It might have been a bug or else ;p
nari has joined #ruby
<matti> No idea.
ruby_lover has joined #ruby
Xeago has joined #ruby
<ruby_lover> Hi , I have an array of Objects , each object has an attribute name....I want to check if the names returned are the ones desired in Rpec
<ruby_lover> how can I do this
<ruby_lover> any ideas?
tyman has joined #ruby
smathieu has joined #ruby
r0bgleeson has joined #ruby
babykosh has joined #ruby
blip- has quit [Ping timeout: 264 seconds]
iliketurtles has quit [Quit: zzzzz…..]
rodacato has joined #ruby
Lewix has quit [Remote host closed the connection]
keen___ has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]