apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
quitobro_ has quit [Remote host closed the connection]
ghr has joined #ruby
mary5030 has quit [Remote host closed the connection]
dekz__ has joined #ruby
dekz__ is now known as dekz
jamto11 has quit [Remote host closed the connection]
rainmanjam has quit [Remote host closed the connection]
xeno has quit [Ping timeout: 245 seconds]
kevind has quit [Quit: kevind]
Stalkr_ has quit [Quit: Leaving...]
jorts has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 245 seconds]
IceDragon has quit [Ping timeout: 245 seconds]
tylersm__ has quit [Remote host closed the connection]
tylersmith has joined #ruby
nisstyre has quit [Ping timeout: 268 seconds]
dstynchula has quit []
shutch has quit [Ping timeout: 240 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
postmodern has quit [Quit: Leaving]
flowerhack has joined #ruby
pel_daniel1 has left #ruby [#ruby]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Sawbones has joined #ruby
bklane has quit [Quit: Leaving...]
tylersmith has quit [Ping timeout: 240 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
olivier_bK has quit [Ping timeout: 246 seconds]
pietr0 has quit [Quit: pietr0]
tvw has quit []
roolo has quit [Quit: Leaving...]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
zerun0 has joined #ruby
pinage404 has joined #ruby
Vlat- has quit [Quit: Vlat-]
kobain has joined #ruby
jamto11 has joined #ruby
zachallett has quit [Remote host closed the connection]
evenix has joined #ruby
monkegjinni has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
x1337807x has quit [Ping timeout: 265 seconds]
werdnativ_ has joined #ruby
coderxin has joined #ruby
CyborgCygnus has joined #ruby
mikepack_ has joined #ruby
newUser1234 has quit [Remote host closed the connection]
werdnativ_ has quit [Client Quit]
werdnativ has quit [Ping timeout: 264 seconds]
petey has joined #ruby
jzig has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
mikepack_ has quit [Remote host closed the connection]
mikepack_ has joined #ruby
mikepack_ has quit [Remote host closed the connection]
jzig has quit [Remote host closed the connection]
jzig_ has joined #ruby
juarlex has quit [Remote host closed the connection]
agent_white has joined #ruby
<agent_white> Evenin folks
<havenwood> g'eve
mikepack has quit [Ping timeout: 252 seconds]
<benzrf> hej da
<benzrf> havenwood: any luck o.o
<havenwood> benzrf: nada
<benzrf> dag
<havenwood> didn't try of os x, but os x was abort, abort abort
<havenwood> off of*
Beoran_ has quit [Ping timeout: 246 seconds]
yasushi has quit [Remote host closed the connection]
<havenwood> benzrf: i get the concenpt, but yeah the OS X implementation just isn't quite there yet
<havenwood> at least not on latest OS X
SCommette has joined #ruby
olivier_bK has joined #ruby
<benzrf> :I
<havenwood> benzrf: to be fair, i'm out and about and running a dev version of OS X
<benzrf> right now you can do this:
nanoyak has quit [Quit: Computer has gone to sleep.]
<benzrf> $ [run script for doing the thing]
<benzrf> $ cd quick_test/SomeClass
dseitz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> $ vim some_methods.rb
<benzrf> [write some methods, save]
<benzrf> $ pry-remote-em
end_guy has quit [Ping timeout: 265 seconds]
kori has quit [Remote host closed the connection]
<havenwood> em?
<benzrf> > SomeClass.new.a_method
<benzrf> havenwood: eventmachine
<benzrf> it allows multiple conns
<havenwood> right
<havenwood> but i thought, nvm
<benzrf> [this is what you can do atm]
<benzrf> [not what it is complete]
ezrios has joined #ruby
arubin has joined #ruby
anoldhacker has joined #ruby
<havenwood> benzrf: so whatcha gunna call the pry plugin?
coderxin has quit [Ping timeout: 264 seconds]
b00stfr3ak has quit [Ping timeout: 240 seconds]
<havenwood> :)
end_guy has joined #ruby
a13x212 has left #ruby [#ruby]
f0ster has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 264 seconds]
LadyRainicorn has joined #ruby
<havenwood> benzrf: i just took a code-spike stab at pry extensions with pry-drb, i need to give that some love and make it proper: https://github.com/havenwood/pry-drb#readme
jlast has quit [Remote host closed the connection]
<benzrf> code-spike?
eynj has joined #ruby
<havenwood> benzrf: a one-off script i wrote that i mentioned at a pry meetup at rubyconf in miami and cirwin convinced me to gemify the next day
<benzrf> o=
<benzrf> what do?
edwardly has joined #ruby
<havenwood> benzrf: starts a drb server to persist hash-like values across pry sessions, nothing fancy
francisfish has joined #ruby
<benzrf> neat.
luckyruby has quit [Remote host closed the connection]
<havenwood> benzrf: but uses DRb's fanciness
Abyss__ has quit [Ping timeout: 265 seconds]
<benzrf> anyway quick isnt gonna be a pry plugin
<havenwood> aha
<havenwood> benzrf: ah right, can be used for lots of things
<havenwood> huh
<benzrf> to be precise, you'll do `quick pry' and itll open a pry in the module your pwd corresponds toastyne_
<benzrf> *to
Abyss__ has joined #ruby
<benzrf> *each module will have a binding stored on it so that you can have persistent vars
<benzrf> also planning on integration with dmtcp
<benzrf> so that you can freeze and thaw projects
<havenwood> nifty
<benzrf> persisting state for the length of your usage
<benzrf> :-)
<benzrf> it's meant to be a dev env, not a tool
<benzrf> smalltalk-style
<havenwood> kinda reminds me of Maglev Gemstone, yeah smalltalk
<benzrf> atm the way it works is that you can create .rb files in any dir
<benzrf> dir structure corresponds to module-constant hierarchy
<benzrf> plus special dirs for singleton classes
Beoran_ has joined #ruby
<havenwood> i'm pretty curious if MagLev is going to go forward as a thriving project or die on the vine.
<benzrf> whenever a .rb file is written, the code in it is module-exec'd in the module it's stored in
<havenwood> hmm
<benzrf> unless there's a syntax error
<benzrf> it also disallows having anything except for method decls unless the file is called 'header.rb' atm
<benzrf> to encourage having code that can be reloaded non-effectually
endash_ has joined #ruby
<benzrf> it also spawns a read-only whatever.in_use.rb file that contains the last evalled version of whatever.rb
<benzrf> so that you can see if it got loaded
rm_ has quit [Remote host closed the connection]
<benzrf> presumably usable to make plugins or whatever
awarner has quit [Read error: Connection reset by peer]
<bawNg> I just started getting weird rack errors when trying to do tiny file uploads via HTTP POST... Anyone ever seen errors like "No such file or directory - /tmp/RackMultipart20140327-59318-1cfcqyd.lock"?
rm__ has joined #ruby
<benzrf> bawNg: dont suppose it could be a threading thing
awarner has joined #ruby
<benzrf> wait no
<bawNg> benzrf: No, this is a single threaded application
Sawbones has quit [Remote host closed the connection]
r0nin has joined #ruby
Sawbones has joined #ruby
<wallerdev> your names are too similar
nisstyre has joined #ruby
<benzrf> i saw bawNg and i first thought "bnagy's alt nick"
patrick99e99 has joined #ruby
<benzrf> havenwood: also also planning to add some kind of simple api for evaluating code snippest
<benzrf> *snippets
<benzrf> that way, editor plugins for testing code as you write it
predator217 has joined #ruby
<hfp> Hey guys
<benzrf> within an actual env that has the vars you ned
<benzrf> *nee
<benzrf> d
<anoldhacker> I've been looking into DCI (Data Context Interaction — http://www.artima.com/articles/dci_vision.html.) I don't like what I'm seeing out there, so I'm rolling my own. There is a problem, however. I have determined that I need to use wrapper objects, and these suffer from identity disorder. My solution is to make them VERY thin. In particular, I want to redefine all of the identity methods. ( https://gist.github.com/student/979729
<benzrf> basically im just swiping as many Smalltalk/SLIME features as I can think of ways to impl
<benzrf> =]
jamto11 has quit [Remote host closed the connection]
<bawNg> I think I fixed the exception by resetting perms of /tmp
rm__ has quit [Ping timeout: 240 seconds]
<bawNg> Strange that something messed with the /tmp perms
<anoldhacker> Someone did a b….a….d thing….
r0nin has quit [Ping timeout: 245 seconds]
Sawbones has quit [Ping timeout: 240 seconds]
predator117 has quit [Ping timeout: 264 seconds]
patrick99e99 has quit [Ping timeout: 252 seconds]
<bawNg> Still can't get my file uploads working for larger than microscopic files, but it seems to be something related to nginx
rm__ has joined #ruby
petey has quit [Remote host closed the connection]
<bawNg> I always up the client upload file size limit on nginx when I install it, but for some reason it doesn't seem to be taking affect in this case
CaptainJet has quit [Ping timeout: 240 seconds]
<anoldhacker> As in a config setting that limits file size?
petey has joined #ruby
<bawNg> Which is odd, considering I'm pretty sure it works fine for other applications using nginx on this same box
<hfp> Hi guys! In the following: https://eval.in/127491, in the method brightness_index, can I use @r, @g, @b and r, g, b as variable names interchangeably? Is one better than the other? It seems to work with both but would there be any subtlety I missed?
<anoldhacker> I would try changing another parameter. See if it is reading the file that you think it is.
CaptainJet has joined #ruby
<bawNg> It's not reading a file, it doesn't seem to be reaching my application code at all
<bawNg> And it also doesn't log anything in nginx' error or access log
lolmaus has joined #ruby
<bawNg> Nginx just gives a response 500 if the file is bigger than a few, or maybe even under a KB
<anoldhacker> If it isn't getting to your application code, how does it know what to do with the request?
lukec has quit [Quit: lukec]
rh1n0 has joined #ruby
<anoldhacker> Unless it is just choking on the request.
<bawNg> Exactly... something very odd is going on
kitak has joined #ruby
<anoldhacker> If so, then there is probably some config outside your application to adjust.
<havenwood> hfp: There is indeed some subtlety, especially when multithreading. I guess it doesn't matter till it matters? I can't think of a concise explaination.
<bawNg> A file under 1KB works fine
<bawNg> Everything else doesn't even reach my application
<bawNg> But like I said, my upload file size limit on nginx is file, and even by default it isn't anywhere close to as small as 1KB
<bawNg> So something else is going on, something I've never seen before
zenojis has joined #ruby
petey has quit [Ping timeout: 264 seconds]
<hfp> havenwood: I see. So I should be using the argument variables, not the instance variables? Why are they even set then if we don't need them? Is it so that I can access them from outside the class with Object.r, Object.g and Object.b ?
mikepack has joined #ruby
MattStratton has joined #ruby
gr33n7007h has quit [Ping timeout: 265 seconds]
<havenwood> hfp: If the whole instance should know about it, an instance variable lets that happen without needing to pass local variables around as arguments.
Avahey_ has joined #ruby
<havenwood> hfp: but sometimes passing them around is exactly what you need
<havenwood> depends
yfeldblu_ has joined #ruby
juanmnl has joined #ruby
<hfp> hmm...
dik_dak has quit [Quit: Leaving]
ioNull has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 265 seconds]
<havenwood> hfp: You *can* access instance variables outside the class, but you have to do it manually unless they're exposed by method/attr.
<havenwood> hfp: usually, you use public methods and don't dip in an get instance variables that aren't exposed - but ya can
<havenwood> s/an/and
mikepack has quit [Ping timeout: 268 seconds]
<juanmnl> hi, noob here, i'm trying to populate a db with an object "chapter" that has a "number" attribute. Each object should have only one number. I tried number = (0..12) but it doesn't work. What should i do? tx :)
<benzrf> hfp: basically, store something in an ivar if it would make sense for the object to 'know' about it
vlad_starkov has quit [Remote host closed the connection]
<benzrf> hfp: if you were to receive this object from an API, would you expect to have to put that data into it?
<benzrf> or would it be already in there?
<bawNg> Found the issue
lethjakman has quit [Quit: WeeChat 0.4.0]
<bawNg> /dev/sda1 9.2G 8.8G 0 100% /
<benzrf> bawNg: lol
<bawNg> :P
<havenwood> bawNg: hehe
<benzrf> juanmnl: number attribute?
JJMalina has joined #ruby
ioNull has joined #ruby
mven_ has joined #ruby
<benzrf> juanmnl: you mean with attr_accessor or the like?
<havenwood> juanmnl: what ought `number ==`?
smathieu has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 268 seconds]
whomp has joined #ruby
smathieu has joined #ruby
<bawNg> Best part is, it's nginx's log that filled up /
Davey is now known as Eomar
Ziarkaen has quit [Read error: Connection reset by peer]
<benzrf> http://www.gifsound.com/?gif=media.tumblr.com/ba0ff72e7b393f5d933051656fdfeb48/tumblr_inline_mry1bpCONm1qz4rgp.gif&v=IaZMST-vHfM&s=31
suffice_ has joined #ruby
<juanmnl> i may have explained wrong. I have a chapter that has a title and a number:integer, i'm using a factory to populate the db. I want to create 12 chapters with the number filled up in sequence ch1(number=0)...ch12(number=11)
njs126 has quit [Ping timeout: 268 seconds]
<juanmnl> hope it's clearer, doing my best with english :P
freeone3000 has quit [Quit: Konversation terminated!]
<benzrf> chapters.each_with_index {|ch, n| ch.number = n}
<hfp> benzrf: I don't understand what you mean by "if you were to receive this object from an API, would you expect to have to put that data into it?"
<juanmnl> benzrf: tx i'll try that!
robustus has quit [Ping timeout: 252 seconds]
jgrevich2 has joined #ruby
nomadic_ has joined #ruby
flagg0204_ has joined #ruby
<benzrf> hfp: ok, you're considering whether to store data in an ivar or whether to thread it in and out, right?
markisonfire has quit [Quit: markisonfire]
<hfp> benzrf: I'm not sure what threading it in and out means... "I'm the guy who is learning Ruby" as per shevy's designation
gigetoo has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
toastyne_ has quit [Remote host closed the connection]
<hfp> In the eval.in I pasted, I was wondering what difference it made to refer to the r, g and b variables as @r, @g and @b vs r,g and b
Vovko has quit [Remote host closed the connection]
nateberkopec has quit [*.net *.split]
Sthebig has quit [*.net *.split]
camt has quit [*.net *.split]
suffice has quit [*.net *.split]
yalue has quit [*.net *.split]
flagg0204 has quit [*.net *.split]
jgrevich has quit [*.net *.split]
WillAmes has quit [*.net *.split]
mven has quit [*.net *.split]
nomadic has quit [*.net *.split]
yfeldblu_ has quit [*.net *.split]
zenojis has quit [*.net *.split]
CyborgCygnus has quit [*.net *.split]
agent_white has quit [*.net *.split]
kobain has quit [*.net *.split]
anoldhacker has quit [*.net *.split]
Hobogrammer_ has quit [*.net *.split]
1JTAAWJ07 has quit [*.net *.split]
abra has quit [*.net *.split]
andy__ has quit [*.net *.split]
dekz has quit [*.net *.split]
nbezzala has quit [*.net *.split]
cover has quit [*.net *.split]
SonicX has quit [*.net *.split]
pfg has quit [*.net *.split]
reset has quit [*.net *.split]
stephenmac7 has quit [*.net *.split]
danno1 has quit [*.net *.split]
Kruppe has quit [*.net *.split]
davedev24 has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
dawkirst has quit [*.net *.split]
nuck has quit [*.net *.split]
braincrash has quit [*.net *.split]
njection_ has quit [*.net *.split]
weems has quit [*.net *.split]
Photism2 has quit [*.net *.split]
rek2p0wn has quit [*.net *.split]
xMopxShell has quit [*.net *.split]
cschneid has quit [*.net *.split]
Liothen has quit [*.net *.split]
MindfulMonk has quit [*.net *.split]
freggles has quit [*.net *.split]
zeropx has quit [*.net *.split]
osvico has quit [*.net *.split]
emdub has quit [*.net *.split]
SevereOverfl0w has quit [*.net *.split]
ValicekB has quit [*.net *.split]
nopc0de has quit [*.net *.split]
mjmac has quit [*.net *.split]
artgoeshere has quit [*.net *.split]
parduse has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
gizmore has quit [*.net *.split]
Foo2 has quit [*.net *.split]
jonatasdp has quit [*.net *.split]
jcarouth has quit [*.net *.split]
Mongey has quit [*.net *.split]
peterhu has quit [*.net *.split]
thesheff17 has quit [*.net *.split]
naw has quit [*.net *.split]
thoraxe has quit [*.net *.split]
PhilK has quit [*.net *.split]
aetaric has quit [*.net *.split]
psyprus has quit [*.net *.split]
ConstantineXVI has quit [*.net *.split]
dmarr has quit [*.net *.split]
seich- has quit [*.net *.split]
xiphias has quit [*.net *.split]
nifty has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
Paradox has quit [*.net *.split]
epochwolf has quit [*.net *.split]
awkisopen has quit [*.net *.split]
seemant has quit [*.net *.split]
lfox has quit [*.net *.split]
Nightmare has quit [*.net *.split]
csq has quit [*.net *.split]
TheLarkInn has quit [*.net *.split]
kenichi has quit [*.net *.split]
oso96_2000 has quit [*.net *.split]
gstamp has quit [*.net *.split]
cibs has quit [*.net *.split]
eshy has quit [*.net *.split]
karupanerura has quit [*.net *.split]
robustus has joined #ruby
<hfp> In the brightness_index methos
<hfp> method
weems has joined #ruby
parduse has joined #ruby
cschneid has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
derek_c has joined #ruby
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
havenwood has quit []
agent_white has joined #ruby
jrendell has joined #ruby
<benzrf> hfp: ah
<benzrf> hfp: did you get the gist then
Mapley has quit [Changing host]
Mapley has joined #ruby
<hfp> Kinda, what do you mean by the object should know about it or not?
matcouto has joined #ruby
Mapley has quit [Changing host]
Mapley has joined #ruby
<wallerdev> dat netsplit lol
meatherly has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
r0nin has joined #ruby
ioNull_ has joined #ruby
r0nin has quit [Read error: Connection reset by peer]
yalue has joined #ruby
kpshek has joined #ruby
r0nin has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
ioNull has quit [Ping timeout: 268 seconds]
<benzrf> hfp: well
<benzrf> if you think of an object as an entity that you can ask questions and give commands (by sending messages, aka calling methods)
<hfp> yes
<benzrf> then the entity's knowledge is the data stored in its ivars
<benzrf> so when considering whether to put something in an ivar or trust the user to provide it
whomp has quit [Ping timeout: 264 seconds]
<benzrf> consider how you would expect to use it if you didn't know the internal bits
<benzrf> or what you would expect the object to know
<wallerdev> +1
CyborgCygnus has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
ValicekB has joined #ruby
yfeldblum has joined #ruby
<hfp> Ah, I think I get it. If I set ivar in the initialize method, then the vars are passed when the object is created, as in `Foo = Bar.new(:a, :b, :c)`. Then I would have to turn these variables into ivars in the initialize method so other methods could be called as `Foo.coolmethod` rather than `Foo.coolmethid(:a, :b, :c)`, right?
<benzrf> more or less
<benzrf> any method can set ivars
spyderman4g63 has joined #ruby
<hfp> Ok it's just that once you set an ivar with a particular method then other methods can access it yes?
<benzrf> yep
<benzrf> if you think of an object as a little box with methods as levers on the outside, ivars are like a filing cabinet on the inside
<hfp> If you don't then you have to pass the variables for every method every time
<benzrf> right
mr_snowf1ake has joined #ruby
ctp has joined #ruby
coderxin has joined #ruby
rvraghav93 has quit [Ping timeout: 245 seconds]
<benzrf> if you don't store enough in ivars, you end up with a bunch of methods that might as well be global
<benzrf> *dont store anything
cndiv has joined #ruby
<benzrf> if you store all data ever in ivars, the object becomes single-use and inflexible
viscera has joined #ruby
n1tr0g has joined #ruby
CyborgCygnus has quit [Quit: Leaving]
<benzrf> try to strike a happy medium :)
<hfp> Ok. Just one thing doesn't addup yet in my mind. In the eval.in I pasted, whether I use ivars or r, g and b in the brightness_index method doesn't seem to make any difference. I don't understand why.
rahult is now known as rahult_
CyborgCygnus has joined #ruby
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
quitobro has joined #ruby
<benzrf> repaste?
quitobro has quit [Remote host closed the connection]
oneawayman has joined #ruby
<benzrf> hfp: aha i see
<benzrf> hfp: method calls on self with no arguments look exactly like ivars
spyderman4g63 has quit [Ping timeout: 240 seconds]
<benzrf> if you call a method without using a dot, it means on self
cndiv has quit [Client Quit]
<benzrf> so foo() is the same as self.foo()
<benzrf> (except that you can do the former to call private methods, but not the latter)
sputnik13 has joined #ruby
greggroth has joined #ruby
coderxin has quit [Ping timeout: 252 seconds]
Hobogrammer has joined #ruby
terrellt has joined #ruby
<benzrf> attr_reader automatically generates methods that return the value of an ivar
<benzrf> for example:
sputnik13 has quit [Client Quit]
sputnik1_ has joined #ruby
sputnik1_ is now known as sputnik13
<benzrf> >> class Foo; attr_reader :some_ivar; def initialize(si); @some_ivar = si; end; end; f = Foo.new(3); f.some_ivar
<eval-in> benzrf => 3 (https://eval.in/127495)
<benzrf> saying 'attr_reader :bluh' has the same result as 'def bluh; @bluh; end;'
<benzrf> so the 'r' in your method is actually calling the r method on self that attr_reader created
<benzrf> because there is no r variable in scope there
<benzrf> if you took away the attr_reader, you'd have to use @r only
incade has joined #ruby
<hfp> What about that line `( 299 * @r + 587 * @g + 114 * @b) / 1000`
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
subbyyy_ has quit [Read error: Operation timed out]
<hfp> whether I use @r, @g and @b or r, g and b seems to give the same result
<benzrf> that's what i just explained!
<benzrf> >.<
<hfp> Ah yes I just got it
<benzrf> haha
yfeldblum has quit [Read error: Connection reset by peer]
<hfp> so the @r = r etc in initialize is not necessary, correct?
<benzrf> no, it is
<benzrf> why wouldnt it be?
<benzrf> in that case r IS a var, because it got setient
<benzrf> *set
<benzrf> ruby looks for a var first, then a method
tylersmith has joined #ruby
<benzrf> >> def foo; 3; end; foo = 4; foo
<eval-in> benzrf => 4 (https://eval.in/127497)
Vovko has joined #ruby
<benzrf> however
<benzrf> >> def foo; 3; end; foo
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eval-in> benzrf => 3 (https://eval.in/127498)
<LadyRainicorn> That is weird. Variables are supposed to take on different values depending on what their name is.
rahult_ is now known as rahult
<benzrf> yo LadyRainicorn wanna try out Quick
<benzrf> :y
felixjet has joined #ruby
<LadyRainicorn> x = 5; y = 5; x + 1 # => 6; y + 1 # => :kitty!
<LadyRainicorn> ^ expected behavior
r0nin has quit [Remote host closed the connection]
<LadyRainicorn> lolruby
vlad_starkov has joined #ruby
<benzrf> LadyRainicorn: wat
<hfp> ?
incade has quit [Ping timeout: 240 seconds]
frem has quit [Quit: Connection closed for inactivity]
* LadyRainicorn is being insane.
<benzrf> 09:35 < benzrf> yo LadyRainicorn wanna try out Quick
<LadyRainicorn> Quick?
<benzrf> my new project o3o
<LadyRainicorn> oh what is that?
lkba has joined #ruby
<LadyRainicorn> Is it quick?
<benzrf> only if you already have libfuse-dev installed
juanmnl has left #ruby ["Textual IRC Client: www.textualapp.com"]
<benzrf> are you on loonix?
newUser1234 has joined #ruby
<LadyRainicorn> yess
smathieu has quit [Remote host closed the connection]
ehc has joined #ruby
<benzrf> sweet
andy_ has joined #ruby
andy_ is now known as Guest96020
smathieu has joined #ruby
<wallerdev> trying to scam more people with your virus benzrf ?
<wallerdev> we all know its a dogecoin mining program
aspires has quit []
CyborgCygnus has quit [Quit: Rage Quit]
<LadyRainicorn> DogeCoin.mkblock(reward: 10e20)
vlad_starkov has quit [Ping timeout: 252 seconds]
<benzrf> read the src
CyborgCygnus has joined #ruby
<benzrf> it's <300 lines
<benzrf> so far
<benzrf> also i refuse to touch dogecoin
quitobro has joined #ruby
<benzrf> if i dont use it i can pretend its not real
<benzrf> LadyRainicorn: u cloned =3
<wallerdev> im pretty sure flash player is a secret bitcoin miner, no other reason for using the cpu it does
lukec has joined #ruby
<hfp> benzrf: so what I understand so far. The initialize method of a class is the once that receives the arguments when you call new(), right? And if you don't assign these arguments to ivars in initialize, then other methods can't access them. attr_reader allows you to access the values of the variables without writing a specific method, attr_* does it for you. Did I get everything ok?
Guest96020 has quit [Remote host closed the connection]
<LadyRainicorn> benzrf: Why would you do that? Dogecoin is such wow!
Port3M5[Work] has quit [Read error: Operation timed out]
<LadyRainicorn> VERY COIN SUCH WOW
<wallerdev> sounds right to me
<LadyRainicorn> much moneyz
ehc has quit [Client Quit]
<benzrf> hfp: almost
<wallerdev> my 401k is in dogecoin
<CaptainJet> conspiracy theory:
<benzrf> hfp: you can read any ivar regardless of attr_*
<benzrf> hfp: attr_* generates methods for accessing ivars
<CaptainJet> ever since bitcoin was announced, adobe flash player was updated to mine from every user's computer
<CaptainJet> adobe is now owner of 31% of the bitcoins in the world
<benzrf> that way code outside of the object can see what's in ivars or set it
<hfp> benzrf: so even without attr_* you can still call Foo.var and it will return whatever var is equal too within the object?
<wallerdev> :p
Port3M5[Work] has joined #ruby
<benzrf> hfp: no, that's what attr_* does
<benzrf> but from _inside_ you can do @var regardless
njs126 has joined #ruby
<LadyRainicorn> With the competence of Flash, they are probably mining a private altcoin.
<hfp> benzrf: hmmm
<hfp> benzrf: so this shouldn't return nil then https://eval.in/127500
<LadyRainicorn> It makes sense since the issue predates Bitcoin.
<LadyRainicorn> FLASHCOIN - THE REAL INNOVATOR
greggroth has quit [Ping timeout: 268 seconds]
<hfp> benzrf: or it's not what you meant?
<wallerdev> using attr is kinda useless, i just use obj.instance_variable_get(:@my_var)
<benzrf> wallerdev: shut up
<wallerdev> lol
<benzrf> hfp: dont listen!!
<LadyRainicorn> haha
<benzrf> hfp: no, you're not setting @a
<wallerdev> you need to assign the variables in initialize
quitobro has quit [Ping timeout: 245 seconds]
<wallerdev> @a = a
<wallerdev> @b = b, etc
<benzrf> a the argument to initialize is just a variable you can see from initialize
<benzrf> nothing happens to it
patrick99e99 has joined #ruby
<LadyRainicorn> I prefer to use obj.instance_eval('@a')
smathieu has quit [Remote host closed the connection]
<LadyRainicorn> attr_accessor be damned.
<hfp> benzrf: Ok so if I don't assign them to ivars in initialize they are "lost"
<hfp> attr_* also depends on @vars, I get it now
<benzrf> right =)
<wallerdev> i prefer eval("obj.instance_eval('@a')")
<benzrf> attr_* just creates new methods in the class
<benzrf> attr_reader :foo is EXACTLY the same as
<benzrf> def foo
<benzrf> @foo
<benzrf> end
<benzrf> at least, in how the result works
<hfp> benzrf: I think I saw somewhere that you could do attr_something and avoid the setting of ivars in initialize together, which one was it?
crystal77 has quit [Quit: Computer has gone to sleep.]
<hfp> together = altogether
<benzrf> that would be Struct
<hfp> Did I dream it or is there such a thing?
rvraghav93 has joined #ruby
<hfp> attr_struct?
<benzrf> Struct.new creates a new class
<wallerdev> lol
njs126 has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
senayar_ has joined #ruby
<benzrf> Struct.new(:a, :b, :something_else) results in a class whose instances have the methods a, a=, b, b=, something_else, and something_else=
<LadyRainicorn> attr really should have default values.
<wallerdev> >> MyClass = Struct.new(:a, :b, :c); x = MyClass.new(1, 2, 3); x.c
<eval-in> wallerdev => 3 (https://eval.in/127504)
m0s is now known as m0s^away
<benzrf> also, initialize is defined to do what wallerdev just demonstrated
<benzrf> hfp: so you can create a class that way, then extend ItS______
<benzrf> *it
1JTAAWMDK has joined #ruby
bricker`LA has joined #ruby
Photism2 has joined #ruby
Sthebig_ has joined #ruby
dawkirst has joined #ruby
gizmore has joined #ruby
SevereOverfl0w has joined #ruby
mjmac has joined #ruby
dmarr has joined #ruby
Kruppe has joined #ruby
stephenmac7 has joined #ruby
csq has joined #ruby
anoldhacker has joined #ruby
SonicX has joined #ruby
nbezzala has joined #ruby
artgoeshere has joined #ruby
naw has joined #ruby
smathieu has joined #ruby
aetaric has joined #ruby
abra has joined #ruby
tkuchiki has joined #ruby
seich- has joined #ruby
njection has joined #ruby
Paradox has joined #ruby
emdub has joined #ruby
nuck has joined #ruby
braincrash has joined #ruby
zenojis has joined #ruby
cover has joined #ruby
PhilK has joined #ruby
Nightmare has joined #ruby
nifty has joined #ruby
xiphias has joined #ruby
thesheff17 has joined #ruby
nopc0de has joined #ruby
kenichi has joined #ruby
ConstantineXVI has joined #ruby
Liothen has joined #ruby
yfeldblum has joined #ruby
thoraxe has joined #ruby
peterhu has joined #ruby
lfox has joined #ruby
jcarouth has joined #ruby
cjk101010 has joined #ruby
zeropx has joined #ruby
freggles has joined #ruby
epochwolf has joined #ruby
xMopxShell has joined #ruby
psyprus has joined #ruby
rek2p0wn has joined #ruby
pfg has joined #ruby
1JTAAWJ07 has joined #ruby
1JTAAWLWX has joined #ruby
seemant has joined #ruby
DarkFoxDK has joined #ruby
dekz has joined #ruby
TheLarkInn has joined #ruby
Mongey has joined #ruby
danno1 has joined #ruby
awkisopen has joined #ruby
ioNull_ has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
<hfp> Ok I think I mostly get it now, thanks
<wallerdev> freenode pls
robert_ has joined #ruby
<wallerdev> you probably dont wnat to use Struct for anything besides the simplest things
njection has quit [Max SendQ exceeded]
absolutezeroff has quit [Remote host closed the connection]
snackerJack has joined #ruby
zenojis has quit [Max SendQ exceeded]
Hobogrammer has quit [Ping timeout: 264 seconds]
Sthebig_ has quit [Changing host]
Sthebig_ has joined #ruby
mansi has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 268 seconds]
Sthebig_ is now known as Sthebig
MindfulMonk has joined #ruby
newUser1234 has quit [Remote host closed the connection]
zenojis has joined #ruby
newUser1234 has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn> def attr_accessor(var) define_method(var){|v=:UNDEFINED| v==:UNDEFINED ? $ivars[self][var] : ($ivars[self][var] = v)} end
Vovko has quit []
snackerJack has left #ruby [#ruby]
IceDragon has quit [Ping timeout: 252 seconds]
<wallerdev> that clears things up
<wallerdev> lol
<hfp> LadyRainicorn: You're making my brain hurt
<LadyRainicorn> :3
<hfp> Installing required packages: gcc46.
<hfp> This is taking for eveeeeeeeer
<LadyRainicorn> I should make /r/lolruby.
mansi has joined #ruby
derek_c has joined #ruby
Foo4 has joined #ruby
* LadyRainicorn recently discovered /r/lolphp.
<LadyRainicorn> It is one of my new favorite subreddits.
smathieu has quit [Remote host closed the connection]
jeregrine has quit [Quit: Connection closed for inactivity]
smathieu has joined #ruby
dseitz has joined #ruby
n1tr0g has quit [Quit: n1tr0g]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
froy has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
toastynerd has joined #ruby
njs126 has joined #ruby
<benzrf> LadyRainicorn: try quick already >:o
ghr has joined #ruby
MatthewsFace has joined #ruby
rahult has quit [Ping timeout: 268 seconds]
Slavox|AFK is now known as Slavox
toastynerd has quit [Remote host closed the connection]
sambao21 has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
jrendell has quit [Ping timeout: 252 seconds]
hobodave has joined #ruby
ioNull has joined #ruby
oso96_2000 has joined #ruby
eshy has joined #ruby
karupanerura has joined #ruby
cibs has joined #ruby
gstamp has joined #ruby
<benzrf> LadyRainicorn: did u clone the repo
wald0 has quit [Quit: Lost terminal]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<LadyRainicorn> yes
dseitz has quit [Ping timeout: 255 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
m0s^away is now known as m0s
<benzrf> k so bundle install o=
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
quitobro has joined #ruby
skkeeper has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
<benzrf> LadyRainicorn: ...any luck
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
<LadyRainicorn> Oh, what is it supposed to do exactly?
njection has joined #ruby
thomasxie has joined #ruby
<benzrf> did the gems install?
dx7 has quit [Remote host closed the connection]
skkeeper has joined #ruby
sambao21 has quit [Client Quit]
dx7 has joined #ruby
<benzrf> LadyRainicorn: did the bundle install
m0s is now known as m0s^away
<LadyRainicorn> What's brb and pry-remote-em for?
CyborgCygnus has quit [Ping timeout: 252 seconds]
quitobro has quit [Remote host closed the connection]
DouweM has quit [Ping timeout: 264 seconds]
<benzrf> the former isnt used yet
<benzrf> LadyRainicorn: the latter is for pry-remoting over emergion
<benzrf> *EM
michael_lee has joined #ruby
<benzrf> LadyRainicorn: if the bundle is installed u may proceed to 'cd lib/quick && mkdir quick_test && curl http://bpaste.net/raw/194161/ | ruby'
<LadyRainicorn> Do you know about const_set?
sambao21 has joined #ruby
<benzrf> no wait
<benzrf> wrong link
<benzrf> LadyRainicorn: yea
<benzrf> why?
<benzrf> w/e that link will work
<LadyRainicorn> The first method defined is for setting constants.
<benzrf> ?
<benzrf> in fs?
Spami has quit [Quit: This computer has gone to sleep]
<LadyRainicorn> Yes.
<benzrf> oh wait
<benzrf> no these are constant methods
<LadyRainicorn> And they're global constants too.
<benzrf> no, they are not.
<LadyRainicorn> oh nvm, just define is globalish
<benzrf> ;p
coderxin has joined #ruby
<benzrf> 10:23 < benzrf> LadyRainicorn: if the bundle is installed u may proceed to 'cd lib/quick && mkdir quick_test && curl http://bpaste.net/raw/194161/ | ruby'
oneawayman has quit [Ping timeout: 240 seconds]
kacperix has quit [Ping timeout: 264 seconds]
ephemerian has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
coderxin has quit [Ping timeout: 265 seconds]
JJMalina has quit [Quit: Leaving...]
snkcld has quit [Quit: leaving]
freerobby has joined #ruby
bline79_ has joined #ruby
circuit has joined #ruby
<bline79_> I need to capture multi-line output from IO.popen.. is this possible?
<LadyRainicorn> Yes.
<kies> LadyRainicorn, omg /r/lolphp is hilarious
<LadyRainicorn> I know :3
<bline79_> I'm having trouble figuring out how to pull that off
<benzrf> LadyRainicorn: does it mount proply
ziyadb_ has quit [Quit: Connection closed for inactivity]
sambao21 has quit [Quit: Computer has gone to sleep.]
Slavox is now known as Slavox|AFK
<LadyRainicorn> IO.popen('echo sup; echo bitches').read
Hanmac1 has joined #ruby
chuk has quit [Quit: This computer has gone to sleep]
byprdct has joined #ruby
rh1n0 has quit [Quit: Hopefully you don't see this...]
<LadyRainicorn> I haven't gotten to installing FUSE yet.
<bline79_> I mean. I run a command IO.open ("tsung-recorder start") for example.. I want to evaluate the second line that is returned from that command and run some regex on it
saarinen has joined #ruby
Davedo has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
<benzrf> pfft
Hanmac has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
unixpro1970 has joined #ruby
marcdel_ has joined #ruby
flowerhack has quit [Quit: Connection closed for inactivity]
sambao21 has quit [Client Quit]
m0s^away is now known as m0s
marcdel has quit [Ping timeout: 240 seconds]
Slavox|AFK is now known as Slavox
sepp2k has quit [Quit: Leaving.]
<LadyRainicorn> bline79_: IO.popen('printf "rainbows\nunicorns!\n"').read.lines[1] =~ /(unicorns)!/
crystal77 has joined #ruby
bubblehead has quit [Remote host closed the connection]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar_ has quit [Remote host closed the connection]
mr_red has quit [Ping timeout: 264 seconds]
mr_red has joined #ruby
patrick99e99 has joined #ruby
rvraghav93_ has joined #ruby
krz has joined #ruby
rvraghav93 has quit [Ping timeout: 268 seconds]
jamto11 has joined #ruby
thomasxie has quit [Quit: Leaving.]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
byprdct_ has joined #ruby
<bline79_> such a headache with this.. even io.popen hangs when I run my command.. in the cli, the command requires you to press return to get back to a usable shell
jlast has joined #ruby
<bline79_> system runs it just fine, but it can't see the command output.. just returns bolean value
larissa has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
mikehaas763 has joined #ruby
<mikehaas763> Hi, what's the difference between config.vm.network "private_network", ip: "192.168.33.10" and config.vm.network "private_network", :ip => "192.168.33.10"
<mikehaas763> or will the 2nd one not even do what I want it to do
jamto11 has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
m0s is now known as m0s^away
<bline79_> wow, a friend gave me a nice solution :)
bline79_ has quit [Quit: leaving]
toastynerd has joined #ruby
mikepack has joined #ruby
wallerdev has quit [Quit: wallerdev]
LadyRainicorn has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
wallerdev has joined #ruby
<arubin> mikehaas763: ip: is shorhand for :ip =>
<mikehaas763> So it represents the same type of data structure, just syntactic sugar? I'm not a ruby person, just haven't had the time
<arubin> Yes.
<benzrf> mikehaas763: yea
doodlehaus has quit [Remote host closed the connection]
narcan has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
mansi has quit [Remote host closed the connection]
<mikehaas763> Well now I'm just curious, what's the use case for the lengthier one?
Celm has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
jaywastaken has quit [Quit: This computer has gone to sleep]
jaywastaken has joined #ruby
<arubin> mikehaas763: Hashes pairs are defined with key => value. Ruby 1.9 added sugar for keys that are symbols (:ip is a symbol).
endash_ has quit [Quit: endash_]
endash_ has joined #ruby
<arubin> Using symbols as keys is common, and most people use the new syntax.
<benzrf> mikehaas763: so if you wanted to use strings or numbers, you need to use =>
<benzrf> {'foo' => 'bar'}
byprdct_ has quit [Quit: leaving]
<benzrf> => is sometimes known as a hash rocket
montyboy has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
<mikehaas763> Ok. So in the reading I just did it seems like a symbol if it were compared to more traditional C like languages is sorta kinda like an enum?
byprdct_ has joined #ruby
<benzrf> basically
charliesome has quit [Read error: Connection reset by peer]
<benzrf> mikehaas763: the general idea is that sometimes you care about the actual contents of a string, and sometimes you just care what it's equal to
<benzrf> i.e. like in an enum
nbezzala has quit [Remote host closed the connection]
charliesome has joined #ruby
<benzrf> in ruby, strings are mutable and non-interned (because mutable)
<benzrf> symbols are internally represented as ints, and there's a lookup table for the textual representation of each number
<benzrf> symbols are immutable and automatically interned
<benzrf> >> :foo.equal? :foo
<eval-in> benzrf => true (https://eval.in/127541)
<benzrf> Object#equal? is a test for identity
<benzrf> like 'is' in python, or == in java
benlieb has joined #ruby
quitobro has joined #ruby
CpuID has joined #ruby
zachallett has joined #ruby
jaywastaken has quit [Quit: This computer has gone to sleep]
quitobro has quit [Client Quit]
jaywastaken has joined #ruby
matcouto has joined #ruby
sayem has joined #ruby
meatherly has quit [Remote host closed the connection]
tomshafer has quit [Remote host closed the connection]
ioNull_ has joined #ruby
greggroth has joined #ruby
tomshafer has joined #ruby
havenwood has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
petey has joined #ruby
<mikehaas763> Cool, thanks for the knowledge. Unfortunately I can guarantee because of all I've got on my plate ATM I won't be able to start using ruby for at least a year. I got probably ~5 hours into ruby monk once upon a time but feel like I forgot everything since.
Vlat- has joined #ruby
ioNull has quit [Ping timeout: 268 seconds]
CyborgCygnus has joined #ruby
byprdct__ has joined #ruby
<byprdct__> .
tomshafer has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
maletor has joined #ruby
sayem has quit [Remote host closed the connection]
ioNull_ has quit [Ping timeout: 240 seconds]
beneggett has joined #ruby
yacks has joined #ruby
rezzack has quit [Quit: Leaving.]
Hobogrammer has joined #ruby
ioNull has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
axsuul has quit [Read error: No route to host]
spyderman4g63 has joined #ruby
derek_c has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
lukec has joined #ruby
coderxin has joined #ruby
terrellt has quit [Quit: Copywight 2007 Elmer Fudd. All wights wesewved.]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
crystal77 has joined #ruby
jaywastaken has quit [Quit: This computer has gone to sleep]
spyderman4g63 has quit [Ping timeout: 264 seconds]
coderxin has quit [Ping timeout: 268 seconds]
sailias has quit [Ping timeout: 245 seconds]
Solnse has quit [Ping timeout: 240 seconds]
Eomar is now known as Davey
radic has quit [Ping timeout: 246 seconds]
abdulsattar has joined #ruby
_justin has joined #ruby
chrisseaton has joined #ruby
ioNull_ has joined #ruby
radic has joined #ruby
sambao21_ has joined #ruby
Davedo has joined #ruby
agjacome has quit [Quit: leaving]
Sawbones has joined #ruby
ioNull has quit [Ping timeout: 268 seconds]
juanmnl has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<juanmnl> hello, anyone knows the channel for rails? #rubyonrails doesn't seem to work
<centrx> juanmnl, You need register/identify your nick to enter #rubyonrails
emergion has quit [Quit: Connection closed for inactivity]
derek_c has quit [Ping timeout: 264 seconds]
<juanmnl> oh! ok, thanks centrx :)
echevemaster has quit [Quit: Leaving]
circuit has quit [Quit: Lost terminal]
greggroth has quit [Ping timeout: 240 seconds]
twiceaday has quit [Ping timeout: 246 seconds]
twiceaday has joined #ruby
juanmnl has left #ruby ["Textual IRC Client: www.textualapp.com"]
greggroth has joined #ruby
rvraghav93_ has quit [Read error: Connection reset by peer]
arietis has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
ioNull_ has quit [Quit: Textual IRC Client: www.textualapp.com]
m0s^away is now known as m0s
rvraghav93 has joined #ruby
dekz has quit [Quit: Connection closed for inactivity]
bahar has quit [Ping timeout: 268 seconds]
lukec has quit [Quit: lukec]
toastynerd has quit [Remote host closed the connection]
charlies_ has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
bahar has joined #ruby
patrick99e99 has joined #ruby
lukec has joined #ruby
agent_white has joined #ruby
m104 has joined #ruby
m104 has quit [Max SendQ exceeded]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
rvraghav93 has quit [Ping timeout: 268 seconds]
mikehaas763 has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 240 seconds]
sambao21_ has quit [Quit: Computer has gone to sleep.]
rvraghav93 has joined #ruby
MatthewsFace has joined #ruby
m0s is now known as m0s^away
m104 has joined #ruby
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 240 seconds]
byprdct_ has quit [Quit: Lost terminal]
axsuul has joined #ruby
rvraghav93_ has joined #ruby
bahar has quit [Ping timeout: 245 seconds]
rvraghav93 has quit [Ping timeout: 245 seconds]
byprdct__ has quit [Quit: Lost terminal]
dukz has joined #ruby
saarinen has quit [Quit: saarinen]
zachallett has quit [Remote host closed the connection]
bahar has joined #ruby
browndawg1 has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dukz has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
patrick99e99 has joined #ruby
DallasG has joined #ruby
dukz has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
derek_c has joined #ruby
ghr has joined #ruby
juanmnl has joined #ruby
jorts has joined #ruby
rvraghav93 has joined #ruby
Sawbones has quit [Ping timeout: 252 seconds]
rvraghav93_ has quit [Ping timeout: 252 seconds]
Deele has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
chiw has joined #ruby
hakunin_ has joined #ruby
funburn has quit [Quit: funburn]
pagios has quit [Ping timeout: 246 seconds]
rcs has quit [Ping timeout: 246 seconds]
jorts has quit [Client Quit]
paulfm has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 264 seconds]
dukz_ has joined #ruby
bmn has quit [Ping timeout: 246 seconds]
kung has quit [Ping timeout: 240 seconds]
m104 has quit [Quit: bye]
paulfm has joined #ruby
hakunin has quit [Ping timeout: 246 seconds]
mikemac has joined #ruby
braincrash has joined #ruby
Hien_ has quit [Ping timeout: 246 seconds]
crazymykl has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 252 seconds]
pontiki has quit [Ping timeout: 260 seconds]
Hien has joined #ruby
robbyoconnor has joined #ruby
tomshafer has joined #ruby
pagioss has joined #ruby
rcs has joined #ruby
_justin has quit [Quit: _justin]
sambao21 has joined #ruby
decoponio has joined #ruby
Celm has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
Celm has quit [Remote host closed the connection]
michaeldeol has joined #ruby
_justin has joined #ruby
bmn has joined #ruby
1JTAAWMDK has quit [Remote host closed the connection]
andy___ has joined #ruby
andy___ is now known as Guest74198
tectonic has joined #ruby
dukz_ has quit [Remote host closed the connection]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lukec has quit [Quit: lukec]
dukz has joined #ruby
perldork has joined #ruby
perldork has quit [Remote host closed the connection]
tectonic has quit [Client Quit]
Guest74198 has quit [Ping timeout: 245 seconds]
perldork has joined #ruby
tectonic has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
unixpro1970 has quit [Quit: Computer has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
dukz has quit [Ping timeout: 240 seconds]
cover has quit [Read error: Connection reset by peer]
cover has joined #ruby
MatthewsFace has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
cover has quit [Remote host closed the connection]
funburn has joined #ruby
_justin has quit [Quit: _justin]
kidoz has quit [Quit: Ухожу я от вас]
coderxin has joined #ruby
unixpro1970 has joined #ruby
alexju has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
echointhemist has joined #ruby
echointhemist has left #ruby [#ruby]
chrisseaton has quit []
coderxin has quit [Ping timeout: 245 seconds]
rvraghav93_ has joined #ruby
rvraghav93 has quit [Ping timeout: 245 seconds]
kevinykchan has quit [Read error: Connection reset by peer]
rockosays has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rockosays has left #ruby [#ruby]
kevinykchan has joined #ruby
iliketurtles has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
CpuID2 has joined #ruby
CpuID2 has quit [Changing host]
CpuID2 has joined #ruby
<anoldhacker> Anyone here from the core team?
vlad_starkov has joined #ruby
<viscera> this has probably been asked a million times, but why are #ruby and #ruby-lang two distinct channels instead of one forwarding to the other?
yfeldblum has quit [Ping timeout: 265 seconds]
CpuID has quit [Ping timeout: 240 seconds]
<anoldhacker> I would presume that #ruby-lang is oriented more towards language development.
greggroth has quit [Ping timeout: 245 seconds]
<anoldhacker> I've posted a question to https://www.ruby-forum.com/topic/4484730. I would really appreciate it if someone familiar with ruby internals would answer.
<viscera> that was my first thought, but there's nothing in the channel topics that indicates that. also, ruby-lang.org points to #ruby-lang as "a wonderful way to chat with fellow rubyists", yet #ruby is more popular
<agent_white> ^
<agent_white> Kinda odd. I have no idea why they would split it up. We are cooler anyways.
vlad_starkov has quit [Ping timeout: 245 seconds]
<viscera> it's going to irk me, i guarantee it ;)
tomshafer has quit []
<agent_white> viscera: Largely though, lack-of-response is due to your timing joining the channel. It's bedtime for much of the US, and the Euro's don't hop on for another ~4 hours.
Slavox is now known as Slavox|AFK
<viscera> agent_white: i haven't had a lack of response...
<agent_white> viscera: Ohhh! Well then... I dunno!
<viscera> i just noticed that both exist and are seeminly redundant
<viscera> seemingly**
njection has quit [Remote host closed the connection]
njection has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
m0s^away is now known as m0s
<CaptainJet> you could always just be in both irc channels
<CaptainJet> like i am
<viscera> that's what i'm doing
<CaptainJet> makes it easier to time asking a question
<CaptainJet> if one has people talking, use that one, if not, use #ruby
<CaptainJet> i default to here over #ruby-lang
<viscera> yeah, that's similar to what i do with debian channels (they're split over freenode and oftc networks)
afex has quit [Ping timeout: 268 seconds]
jorts has joined #ruby
jamto11 has joined #ruby
DallasG has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
DallasG has joined #ruby
Slavox|AFK is now known as Slavox
jamto11 has quit [Ping timeout: 240 seconds]
n1tr0g has joined #ruby
davedev24 has quit [Remote host closed the connection]
m0s is now known as m0s^away
ItS______ has quit [Quit: Leaving...]
mikepack has joined #ruby
connor_goodwolf has quit [Quit: Lost terminal]
gilcosson has joined #ruby
Lewix has joined #ruby
slawrence has joined #ruby
dseitz has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
viscera has quit [Quit: viscera]
diegoviola has joined #ruby
1JTAAWJ07 has quit [Ping timeout: 265 seconds]
freerobby has quit [Quit: Leaving.]
bjeanes has joined #ruby
endash has quit [Read error: No route to host]
endash_ is now known as endash
jorts has quit [Quit: jorts]
kpshek has quit []
muscle-man has quit [Quit: WeeChat 0.4.3]
mansi has quit [Ping timeout: 245 seconds]
rvraghav93_ has quit [Read error: Operation timed out]
peret has joined #ruby
endash_ has joined #ruby
zigomir has joined #ruby
rvraghav93 has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
Celm has joined #ruby
abdulsattar has quit [Ping timeout: 252 seconds]
njection has quit []
Burgestrand has joined #ruby
havenwood has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
njection has joined #ruby
petey has quit [Ping timeout: 240 seconds]
sincereness has joined #ruby
shadoi1 has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<sincereness> If I have an array of elements how to i remove the doubles or tripes of a certain entires?
<sincereness> elements*
kevinykchan has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
Xiti` has joined #ruby
aagdbl has joined #ruby
Xiti` has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
compleatang has quit [Remote host closed the connection]
Xiti has quit [Ping timeout: 252 seconds]
michael_lee has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
<agent_white> sincereness: arr = arr.uniq!
bahar has quit [Ping timeout: 265 seconds]
<agent_white> sincereness: Though that will make sure ALL elements are unique.
<sincereness> kk ill try it 1 sec
<agent_white> sincereness: Rather, the assignment is not needed if you use the bang on the end. so either `arr = arr.uniq` or `arr.uniq!`
unixpro1970 has quit [Quit: Computer has gone to sleep. ZZZzzz…]
unixpro1970 has joined #ruby
CyborgCygnus has quit [Ping timeout: 268 seconds]
bahar has joined #ruby
havenwood has quit [Remote host closed the connection]
chris_thomson has quit [Quit: Zzz...]
thesheff17_ has joined #ruby
havenwood has joined #ruby
andy__ has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
spyderman4g63 has joined #ruby
thesheff17 has quit [Disconnected by services]
thesheff17_ is now known as thesheff17
abdulsattar has joined #ruby
coderxin has joined #ruby
<sincereness> it worked when i did arr = arr.uniq but i cant append another method on that
<sincereness> why?
idoru has quit [Read error: Connection timed out]
<sincereness> for example arr.uniq.first throws method error
havenwood has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby
larissa has quit [Quit: Leaving]
andy__ has quit [Ping timeout: 252 seconds]
spyderman4g63 has quit [Ping timeout: 240 seconds]
saarinen has quit [Client Quit]
kenneth has joined #ruby
coderxin has quit [Ping timeout: 245 seconds]
<centrx> sincereness, Is the array empty?
<centrx> sincereness, Even if it's empty that shouldn't be an error. Show actual code
<sincereness> no
<chichou> even if the array is empty it should work
<sincereness> ok
<sincereness> gimmi a sec
freerobby has joined #ruby
<chichou> maybe you typed arr.uniq!.first ?
<chichou> if arr is already uniq it returns nil
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sincereness> yea its late so ill fix it tomorrow lol
vlad_starkov has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
SCommette has joined #ruby
benlieb_ has joined #ruby
mrnugget has joined #ruby
evenix has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 268 seconds]
freerobby1 has quit [Ping timeout: 252 seconds]
evenix has joined #ruby
idiocrash has joined #ruby
benlieb has quit [Ping timeout: 240 seconds]
benlieb_ is now known as benlieb
rvraghav93 has quit [Ping timeout: 264 seconds]
tesuji has joined #ruby
nari has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
sincereness has quit [Quit: Page closed]
m0s^away is now known as m0s
jeffreyio has joined #ruby
rvraghav93 has joined #ruby
s3ri0us has joined #ruby
s3ri0us has quit [Quit: leaving]
tylersmith has quit [Remote host closed the connection]
pfg has joined #ruby
tylersmith has joined #ruby
sski has joined #ruby
eynj has left #ruby [#ruby]
DallasG has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
idiocrash has quit [Quit: Textual IRC Client: www.textualapp.com]
idiocrash has joined #ruby
abdulsattar has quit [Ping timeout: 265 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
m0s is now known as m0s^away
tylersmith has quit [Ping timeout: 252 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Es0teric has joined #ruby
ktosiek_ has quit [Ping timeout: 240 seconds]
rainmanjam has joined #ruby
werdnativ has joined #ruby
papercode has joined #ruby
browndawg1 has left #ruby [#ruby]
byprdct has quit [Disconnected by services]
mansi has joined #ruby
SonicX has quit [Remote host closed the connection]
ghr has joined #ruby
sputnik1_ has joined #ruby
toastynerd has joined #ruby
sputnik1_ is now known as sputnik13net
mansi has quit [Ping timeout: 265 seconds]
incade has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
davy has joined #ruby
sigurding has joined #ruby
Celm has joined #ruby
havenwood has joined #ruby
SCommette has quit [Quit: SCommette]
rvraghav93 has quit [Ping timeout: 264 seconds]
agent_white has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
kitak has quit [Remote host closed the connection]
Celm has quit [Ping timeout: 265 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
CyborgCygnus has joined #ruby
rvraghav93 has joined #ruby
havenwood has quit [Ping timeout: 268 seconds]
dzhulk has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
kitak has joined #ruby
agent_white has joined #ruby
toastynerd has quit [Remote host closed the connection]
tylersmith has joined #ruby
makara has joined #ruby
tylersmi_ has joined #ruby
dzhulk has quit [Ping timeout: 240 seconds]
papercode has quit [Quit: WeeChat 0.4.3]
maroloccio has joined #ruby
dzhulk has joined #ruby
thoraxe has quit [Ping timeout: 265 seconds]
tylersmith has quit [Ping timeout: 268 seconds]
heftig has quit [Quit: Quitting]
derek_c has quit [Ping timeout: 252 seconds]
cj3kim has quit [Remote host closed the connection]
tylersmi_ has quit [Ping timeout: 252 seconds]
coderxin has joined #ruby
toretore has joined #ruby
ItSANgo_ has joined #ruby
abdulsattar has joined #ruby
rahult has joined #ruby
cj3kim has joined #ruby
dukz has joined #ruby
coderxin has quit [Ping timeout: 268 seconds]
rahult has quit [Ping timeout: 252 seconds]
carif has joined #ruby
thesheff17 has quit [Ping timeout: 252 seconds]
MindfulMonk has quit [Ping timeout: 265 seconds]
SevereOverfl0w has quit [Ping timeout: 265 seconds]
idiocrash has quit [Quit: Textual IRC Client: www.textualapp.com]
toastynerd has joined #ruby
freerobby has joined #ruby
tcstar has quit [Quit: Leaving]
GreatSUN has joined #ruby
<GreatSUN> hi all
<GreatSUN> I just came across some problem I have in Ruby 1.9.3p429
tagrudev has joined #ruby
<GreatSUN> in ruby 1.8 I wrote some class/module that helps to install/load gems
<GreatSUN> it was working like a charm
<GreatSUN> now, I am doing the same in ruby 1.9, but I experience problems
unixpro1970 has quit [Quit: Computer has gone to sleep. ZZZzzz…]
<GreatSUN> it seams the classes defined in the gems are not defined correctly
<GreatSUN> any ideas why this could be?
freerobby has quit [Ping timeout: 240 seconds]
JasmeetQA has joined #ruby
toastynerd has quit [Ping timeout: 268 seconds]
armyriad has joined #ruby
<agent_white> !code
<agent_white> GreatSUN: We need your code to help you.
<agent_white> GreatSUN: 1.8 is ancient and unsupported... you should DEFINITELY update.
<agent_white> Like.. 2.1.0-kinda update.
unixpro1970 has joined #ruby
<GreatSUN> agent_white: This is where I am out... I am not able to change given ruby version on my own :-(
<GreatSUN> agent_white: there is lots of code....
<agent_white> GreatSUN: Something-something due to work? :/
<agent_white> GreatSUN: And that LOTS of code should be updated!
<GreatSUN> agent_white: yeah
<chichou> updating from 1.8 to 2.1 isn't a little bit rude ? :)
<agent_white> chichou: Being stuck in 1.8 is :(
<GreatSUN> chichou: I would have said, that they should have been updating all the time
sigurding has quit [Quit: sigurding]
Macaveli has joined #ruby
<agent_white> GreatSUN: Well... shit. You really should inform your peers that 1.8 is unsupported... not "stable"
<GreatSUN> but the topic was and is kinda "never touch a running system"
phansch has joined #ruby
<agent_white> :/
<GreatSUN> agent_white: no problem about 1.8
<chichou> no problem ? do you use unofficial patch ?
<GreatSUN> agent_white: but the 1.9.3p429 is doing something I don't understand
<agent_white> GreatSUN: Anyways! Just a note. But if you post your code, code since if it's changed since porting it to 1.9, and a full stack trace, someone can help you!
<GreatSUN> chichou: I don't have a lot of problems with it, a lot of workarounds in place, yes...
rvraghav93_ has joined #ruby
rvraghav93 has quit [Ping timeout: 252 seconds]
<GreatSUN> agent_white: thats a really big thing then
diegoviola has quit [Quit: WeeChat 0.4.3]
<agent_white> GreatSUN: Yep! Otherwise, we can't help!
<GreatSUN> agent_white: I thought there might be some logical thing begind
<GreatSUN> behind
<GreatSUN> something that someone else experienced
<chichou> a lot of things changed from 1.8 to 1.9
davy has quit [Remote host closed the connection]
slawrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GreatSUN> agent_white: the thing is, that I just have problems with one gem atm...
m0s^away is now known as m0s
<GreatSUN> chef
<agent_white> GreatSUN: Well... you're basically saying "Hey! My knee hurts and I switched to Nike
<chichou> chef support 1.8 ?
<agent_white> "Can someone tell my why my knee hurts?!"
<agent_white> GreatSUN: We just need code.
<agent_white> to help you.
<GreatSUN> and this seams to be cause it is loading sub-parts additionally, but ruby 1.9 loads everything again
anarang has joined #ruby
<GreatSUN> and it has something like an Immutable class
<agent_white> GreatSUN: Hold your breath until you have a gist with CODE for us, a STACK TRACE, and what you expect but are given.
<GreatSUN> after this errors with a typeerror, it seams the gem is not in place correctly
<agent_white> Otherwise, you are wasting your breath.
toastynerd has joined #ruby
<GreatSUN> agent_white: I will try to create something more easy
<agent_white> GreatSUN: Just make it reproduceable.
<GreatSUN> cause if I just copy paste my code this is about 500 lines of code at least
<agent_white> GreatSUN: Enough code to reproduce it will suffice.
<GreatSUN> I bet
<agent_white> GreatSUN: Anything less than that and we cannot help you.
<GreatSUN> :D
<agent_white> ;)
jamto11 has joined #ruby
<Macaveli> Morning Friends
cj3kim_ has joined #ruby
Mon_Ouie has joined #ruby
<chichou> hi
toastynerd has quit [Remote host closed the connection]
derek_c has joined #ruby
dukz has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 240 seconds]
juanmnl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has quit [Quit: Leaving.]
jamto11 has quit [Ping timeout: 240 seconds]
thoraxe has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
sensen has joined #ruby
tvw has joined #ruby
<maletor> In Ruby, how do i double fork out of a process so I'm reparented to init?
m0s is now known as m0s^away
rainmanjam has quit [Remote host closed the connection]
noop has joined #ruby
<chichou> you mean as a daemon ?
jzig_ has quit [Remote host closed the connection]
<maletor> chichou: Ya.
jzig has joined #ruby
matcouto has quit [Quit: Textual IRC Client: www.textualapp.com]
zerun0 has quit [Read error: Connection reset by peer]
<maletor> chichou: I want to run a process separate from my Ruby process so when I restart the other process it doesn't interfere. It doesn't necessarily have to run forever which is what daemons do, right?
<Hanmac1> i think there is a gem for that called demonize or something similar
<chichou> maybe Process.daemon can help you
<maletor> chichou: I've been reading a little about it, but doesn't that daemonize the current process? I want a new process group.
mikepack has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
<maletor> i.e. init
kitak has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
kitak has joined #ruby
Bounga has quit [Quit: Bounga]
zerun0 has joined #ruby
zerun0 has quit [Read error: Connection reset by peer]
mclee_ is now known as mclee
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jzig has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
hermanmunster has quit [Remote host closed the connection]
<chichou> daemon attach it to daemon group
iliketurtles has quit [Quit: zzzzz…..]
whomp has joined #ruby
<chichou> maletor: or system backgrounds or whatever, as far I understand
apeiros has quit [Ping timeout: 268 seconds]
luckyruby has joined #ruby
bal has joined #ruby
kung has joined #ruby
michaeldeol has joined #ruby
chiw has quit [Ping timeout: 264 seconds]
tesuji has quit [Ping timeout: 240 seconds]
coderxin has joined #ruby
derek_ has joined #ruby
cj3kim has joined #ruby
petey has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
CpuID3 has joined #ruby
Xeago_ has joined #ruby
CpuID2 has quit [Ping timeout: 265 seconds]
Celm has joined #ruby
derek_ has quit [Client Quit]
mrnugget has quit [Quit: mrnugget]
cj3kim_ has quit [Ping timeout: 240 seconds]
<agent_white>
<GreatSUN> agent_white: I just found the problem
<agent_white> GreatSUN: Good to hear!
Mon_Ouie has quit [Ping timeout: 268 seconds]
havenwood has joined #ruby
<GreatSUN> not really dependent to the ruby version, but a recent change that ruby 1.8 seams not to error on
<GreatSUN> so it was a developer issue which didn't appear in ruby 1.8 :D
petey has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
Xeago has quit [Ping timeout: 268 seconds]
<agent_white> GreatSUN: :D Well make sure to prepare for the changes in 1.9, nonetheless.
tkuchiki has quit [Remote host closed the connection]
<GreatSUN> agent_white: I am already
<agent_white> Good deal :)
tkuchiki has joined #ruby
<GreatSUN> agent_white: the main things I am really disappointed of are in the gems
<GreatSUN> for example the mysql gem
<GreatSUN> (mysql2 for 1.9)
<GreatSUN> some methods are just deleted
olivier_bK has quit [Ping timeout: 246 seconds]
Celm has quit [Ping timeout: 265 seconds]
<GreatSUN> so you have to make a switch for the gem installation, requirement, the connection building and the query actions
<GreatSUN> a lot of if's
<agent_white> maletor: So you mean forking?
workmad3 has joined #ruby
<maletor> agent_white: maybe?
<agent_white> maletor: NVM. Didn't see your previous text.
havenwood has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abdulsattar has quit [Ping timeout: 265 seconds]
<agent_white> maletor: Like chichou said... http://ruby-doc.org/core-1.9.3/Process.html#method-c-daemon
<agent_white> Maybe ;)
<maletor> I should be able to use posix-spawn with pgroup: true
<maletor> that'll do the job
kung has quit [Ping timeout: 252 seconds]
<chichou> GreatSUN: any reason to not use bundler ?
roolo has joined #ruby
kung has joined #ruby
rahult has joined #ruby
nomenkun has quit [Remote host closed the connection]
<GreatSUN> chichou: bundler supports mysql/mysql2 switch based on ruby version?
aganov has joined #ruby
funburn has quit [Quit: funburn]
nomenkun has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
michaeldeol has joined #ruby
chiw has joined #ruby
sputnik13net has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nomenkun has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
kung has quit [Ping timeout: 240 seconds]
workmad3 has quit [Read error: Operation timed out]
apeiros has joined #ruby
jzig has joined #ruby
<chichou> nop but you can use rbenv
maletor has quit [Quit: Computer has gone to sleep.]
relix has joined #ruby
pfg has joined #ruby
abdulsattar has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
smathieu has quit [Ping timeout: 240 seconds]
jzig has quit [Ping timeout: 265 seconds]
dagobah has joined #ruby
agent_white has quit [Quit: night]
jprovazn has joined #ruby
freerobby has joined #ruby
chiw has quit [Read error: Connection reset by peer]
chiw has joined #ruby
skammer has joined #ruby
browndawg has joined #ruby
dukz has joined #ruby
mehlah has joined #ruby
derek_c has quit [Ping timeout: 265 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
viscera has joined #ruby
freerobby has quit [Ping timeout: 268 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has joined #ruby
klaut has joined #ruby
shutch has joined #ruby
zigomir has quit [Ping timeout: 245 seconds]
ayaz has joined #ruby
m0s^away is now known as m0s
monkegjinni has joined #ruby
fabrice31 has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
claymore has joined #ruby
chiw has quit [Read error: Connection reset by peer]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lolmaus has quit [Ping timeout: 245 seconds]
cj3kim has quit [Remote host closed the connection]
chiw has joined #ruby
coderxin has quit [Read error: No route to host]
andrewlio has joined #ruby
coderxin has joined #ruby
arturaz has joined #ruby
yacks has quit [Remote host closed the connection]
rvraghav93_ has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
monkegjinni has quit [Remote host closed the connection]
lolmaus has joined #ruby
monkegjinni has joined #ruby
blackmesa has joined #ruby
tectonic has quit []
vlad_starkov has quit [Remote host closed the connection]
chiw has quit [Read error: Connection reset by peer]
chiw has joined #ruby
NovapaX has joined #ruby
vlad_starkov has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
whomp has quit [Ping timeout: 252 seconds]
coderxin has quit [Ping timeout: 265 seconds]
m0s is now known as m0s^away
coderxin has joined #ruby
lolmaus_ has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
gilcosson has quit [Ping timeout: 245 seconds]
abdulsattar has quit [Ping timeout: 268 seconds]
decoponio has quit [Quit: My PC will restart]
CpuID3 has quit [Quit: This computer has gone to sleep]
lolmaus has joined #ruby
<pipework> Guest91413: Nope, but you can not use rbenv and use rvm or chruby+ruby-install instead.
idoru has joined #ruby
<pipework> GreatSUN: ^
senayar has joined #ruby
ephemerian has joined #ruby
lolmaus_ has quit [Read error: Operation timed out]
werdnativ has quit [Quit: werdnativ]
sputnik1_ has joined #ruby
nolic has joined #ruby
<GreatSUN> pipework: I think I don't get your sentence. What could I use instead?
zigomir has joined #ruby
sputnik1_ has quit [Client Quit]
jeffreyio has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 268 seconds]
<chichou> I prefer rbenv as it's less "intrusive" but it's a personal choice :)
coderxin_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 264 seconds]
<chichou> and don'tnow about chruby, will take a look at it
CpuID has joined #ruby
<GreatSUN> chichou: bad luck... I can not work with it... They are using rvm stuff here and rbenv is incompatible with it
<GreatSUN> :-(
<chichou> oh use rvm so :)
Celm has joined #ruby
<chichou> as I said, it's more a preference than a technical choice
coderxin has quit [Ping timeout: 268 seconds]
<GreatSUN> but anyhow, this is only about require and/or install of gems, isn't it?
decoponio has joined #ruby
<toretore> yes
<GreatSUN> this doesn't solve my problems with things like mysql/mysql2 where you have to create instance different, use different methods and stuff
<chichou> oh
wallerdev has quit [Quit: wallerdev]
<chichou> you will have to get rid of this mess :)
<GreatSUN> chichou: yes, I would like to be updated to ruby 2.1 and to be unresponsible for ruby 1.8
<GreatSUN> :D
phansch has quit [Quit: WeeChat 0.4.2]
havenwood has joined #ruby
<GreatSUN> sounds like a dream for me atm
<toretore> it's not difficult to switch from 1.8 to 1.9
<chichou> try to get to 1.9.3 first it's the most difficult part ;)
prs has joined #ruby
<chichou> toretore: for me it was :(
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
<toretore> maybe just go straight to 2.0 and don't have to deal with encoding issues as much
<chichou> GreatSUN: are your application over some framework or just pure ruby ?
Celm has quit [Ping timeout: 265 seconds]
einarj has joined #ruby
axsuul has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
cj3kim has joined #ruby
senayar has quit [Remote host closed the connection]
funburn has joined #ruby
roolo has quit [Quit: Leaving...]
gaussblurinc has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<GreatSUN> chichou: different things... basic automation stuff is done via chef, then we have ruby scripts and self written libraries for a lot of things
<GreatSUN> I myself am maintaining about 16.000 lines of code
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<chichou> omg :)
patrick99e99 has joined #ruby
<chichou> sometime it's easier to restart from scratch
senayar has joined #ruby
coderxin has joined #ruby
_Andres has joined #ruby
mrnugget has joined #ruby
camt has joined #ruby
whomp has joined #ruby
<GreatSUN> chichou: it's not, there is a lot of different stuff... for example a mysql server installation cookbook
<GreatSUN> the libraries that are helping a lot if it comes to different OS and stuff
coderxin_ has quit [Ping timeout: 240 seconds]
<chichou> GreatSUN: but why do you want to do your switch stuff ? you want to keep code compatible with multiple versions of ruby ?
dukz has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 265 seconds]
popl has joined #ruby
popl has joined #ruby
<GreatSUN> chichou: I have to, else I have to write and maintain two different versions and explain the users which version to use and stuff
<GreatSUN> so that would be a lot of more work to do
dukz has joined #ruby
<chichou> For that, I would use git and support branch for example
<chichou> I mean, it's not your code responsibility to manage version but I guess it's much more complex in your project :)
jzig has joined #ruby
whomp has quit [Ping timeout: 252 seconds]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
phansch has joined #ruby
coderxin_ has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
jzig has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
coderxin has quit [Ping timeout: 252 seconds]
sk87 has joined #ruby
oso96_2000 is now known as oso|away
olivier_bK has joined #ruby
havenwood has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
dukz has quit [Remote host closed the connection]
<GreatSUN> chichou: yes, it is and there is lots of guys using the code that have no clue
nfk has joined #ruby
<GreatSUN> that doesn't make things easier
lolmaus has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> GreatSUN: What versions of ruby are you using?
<chichou> good luck then, I wish I never have to work on some project like that :)
lolmaus has joined #ruby
coderxin has joined #ruby
mbuf has joined #ruby
nvrch has joined #ruby
bas has quit [Quit: z]
connor_goodwolf has joined #ruby
coderxin_ has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
TMM has quit [Quit: Ex-Chat]
m0s^away is now known as m0s
<GreatSUN> pipework: atm 1.8.7 and 1.9.3
Abyss__ has quit [Read error: Connection reset by peer]
<pipework> GreatSUN: oh my.
poikon has joined #ruby
Abyss__ has joined #ruby
<GreatSUN> chichou: I wished I could work on some nice project as lead architect ;-)
dukz has joined #ruby
<GreatSUN> chichou: Have been writing at least 7000 lines of code in the last 1 1/2 year
jamto11 has joined #ruby
<GreatSUN> pipework: yes, please, give me sympathy
AlexRussia has joined #ruby
<pipework> You have a good amount of it.
<GreatSUN> pipework: thanks :-)
obs has joined #ruby
havenwood has quit [Remote host closed the connection]
dukz has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
jeffreyio has joined #ruby
pfg has joined #ruby
timonv has joined #ruby
ghr has joined #ruby
abdulsattar has joined #ruby
m0s is now known as m0s^away
pfg has quit [Client Quit]
mikepack has quit [Ping timeout: 240 seconds]
ktosiek has joined #ruby
poikon has quit [Remote host closed the connection]
LiohAu has joined #ruby
LekeFly has joined #ruby
elaptics`away is now known as elaptics
mansi has joined #ruby
LiohAu has quit [Ping timeout: 240 seconds]
Merks has joined #ruby
mercwithamouth has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
CpuID has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 265 seconds]
LiohAu has joined #ruby
ikaros has joined #ruby
roolo has joined #ruby
dukz has joined #ruby
RealMarc is now known as Marc
petey has joined #ruby
Marc is now known as Guest76715
mercwithamouth has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
rm__ has quit [Remote host closed the connection]
Advocation has joined #ruby
rm_ has joined #ruby
shutch has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
Advocation has quit [Client Quit]
petey has quit [Ping timeout: 240 seconds]
<shevy> pipework please give me sympathy
<pipework> shevy: I have no more to give.
rm_ has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
nateberkopec has joined #ruby
dzhulk has left #ruby [#ruby]
Advocation has joined #ruby
TMM has joined #ruby
canton7 has quit [Remote host closed the connection]
rdark has joined #ruby
nateberkopec has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
heftig has joined #ruby
spyderman4g63 has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
klaut has quit [Remote host closed the connection]
YamakasY has joined #ruby
claymore has quit [Quit: Leaving]
kitak has joined #ruby
matcouto has joined #ruby
pagioss has quit [Ping timeout: 246 seconds]
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
harshada has joined #ruby
LekeFly has joined #ruby
pagioss has joined #ruby
jzig has joined #ruby
<harshada> Hey Plz Help FileHandler.loadDataSet not reading string value from input file showing "NaN"
<harshada> => {0=>NaN, 1=>NaN, 2=>1234.0}
spyderman4g63 has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
cj3kim has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
<shevy> harshada what is FileHandler
mupkoo has joined #ruby
LekeFly has quit [Client Quit]
LekeFly has joined #ruby
AlSquire has joined #ruby
<harshada> @shevy: Actually Its in JRuby
CyborgCygnus has quit [Quit: Rage Quit]
LekeFly has quit [Client Quit]
freerobby has joined #ruby
CyborgCygnus has joined #ruby
LekeFly has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
timonv has quit [Remote host closed the connection]
mbuf has quit [Quit: Leaving]
flowerpot has joined #ruby
timonv has joined #ruby
flowerpot has quit [Client Quit]
hermanmunster has joined #ruby
ace_striker has quit [Ping timeout: 245 seconds]
cj3kim has quit [Ping timeout: 265 seconds]
<Hanmac1> harshada: first there is #jruby channel, second what do you got and what do you want? NaN as Float is valid or do you want "NaN" as String?
Stalkr_ has joined #ruby
CaptainJet has quit []
<apeiros> harshada: also note that "actually it's in jruby" does not answer the question of shevy.
<shevy> harshada aha, can't help you there, I have only good old compiled-from-source mruby :)
freerobby has quit [Ping timeout: 265 seconds]
Advocation has quit [Quit: Advocation]
1JTAAWLWX has quit [Remote host closed the connection]
predator217 has quit [Ping timeout: 264 seconds]
timonv has quit [Ping timeout: 252 seconds]
jason__ has joined #ruby
<pipework> shevy: You use mruby?
schaary|afk is now known as schaary
jason__ has quit [Remote host closed the connection]
<pipework> So when can we expect RubyOS?
jason__ has joined #ruby
abdulsattar has quit [Quit: Leaving]
rahult has joined #ruby
aloshkarev has joined #ruby
<shevy> pipework mruby ain't finished
<pipework> so?
<pipework> Actually, it's reached 1.9
pfg has joined #ruby
<pipework> 1.0
DouweM has joined #ruby
m0s^away is now known as m0s
<harshada> @shevy: I asked same que in jruby but no body response der so I asked here.. I am expecting output as => {0=>Harshada, 1=>Ghodke, 2=>1234.0}
<shevy> pipework nah, it is far from complete anywhere near
<pipework> shevy: It's 1.0
<toretore> harshada: show code
<tobiasvl> harshada: do you mean {0=>"Harshada", 1=>"Ghodke", 2=>1234.0} ?
robbyoconnor has quit [Read error: Connection reset by peer]
<shevy> it's at about 0.0.2
<harshada> tobiasvl: Yes
<tobiasvl> you want to get strings, unless it's a float
<pipework> shevy: It's as complete as it should be for a release.
<tobiasvl> now you just get floats
robbyoconnor has joined #ruby
<shevy> pipework it's like some years left to go
pfg has quit [Client Quit]
<harshada> input_file = java.io.File.new('test.csv'.to_java)
<pipework> shevy: I don't think years are a measure of completeness.
<harshada> f1 = FileHandler.loadDataset(input_file, ",")
<pipework> OS/2 is extra super complete by that measure.
<shevy> no, that is totally unusable
<pipework> shevy: I don't think the author agrees.
<shevy> that's ok, authors are often biased
<pipework> It's probably just not as full of an implementation as you'd need to be able to do anything interesting with it.
<aagdbl> harshada, what is FIleHandler? It's not a standard Ruby class
<shevy> just look at the rubinius authors
<pipework> shevy: But the creator of the language would have a good idea after writing and working on Cruby.
<pipework> He's on round two.
<pipework> You're on round... zero?
ctp has quit [Quit: Leaving...]
<harshada> aagdbl: its in java.. I am coding in JRuby
<harshada> @aagdbl: So using FileHandler.LoadDataset
shaunbaker has joined #ruby
<shevy> pipework I am at about 2% completion
<aagdbl> ah. i have no idea then. maybe you should try getting it to work in native java code first to iron out any java api issues
<pipework> shevy: I don't think you're qualified to present any interesting data on that.
<tobiasvl> harshada: but what are you using to map stuff to the hash? is that what loadDataset does?
<pipework> It's complete enough for mruby, even if it's not reached feature parity with cruby.
<aagdbl> also, you dont have to use Java apis. you can use plain old ruby File
jlebrech has joined #ruby
ktosiek has quit [Read error: Connection reset by peer]
ktosiek has joined #ruby
skammer has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3]
predator117 has joined #ruby
relix has joined #ruby
m0s is now known as m0s^away
shaunbak_ has joined #ruby
shaunbaker has quit [Read error: Connection reset by peer]
abdulsattar has joined #ruby
arnis has joined #ruby
klaut has joined #ruby
mansi has joined #ruby
fabrice31 has quit [Remote host closed the connection]
canton7 has joined #ruby
cj3kim has joined #ruby
jason__ has quit [Remote host closed the connection]
timonv has joined #ruby
jason_ has joined #ruby
lolmaus_ has joined #ruby
aaronmcadam has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
aaronmcadam has quit [Remote host closed the connection]
fabrice31 has joined #ruby
dukz has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
lolmaus has quit [Ping timeout: 252 seconds]
poikon has joined #ruby
dukz has joined #ruby
tobago has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
jlebrech has quit [Quit: Konversation terminated!]
luckyruby has quit [Remote host closed the connection]
ahawkins has joined #ruby
davedev24 has joined #ruby
dukz has quit [Ping timeout: 252 seconds]
maximski has joined #ruby
robustus|Off has joined #ruby
pfg has joined #ruby
jason_ has quit [Ping timeout: 264 seconds]
robustus has quit [Ping timeout: 255 seconds]
DaniG2k has joined #ruby
Celm has joined #ruby
LekeFly has quit [Remote host closed the connection]
jespada has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
LekeFly has joined #ruby
hiall has joined #ruby
RaptorJesus has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
coderxin_ has joined #ruby
monkegjinni has joined #ruby
sensen has quit [Ping timeout: 245 seconds]
sensen has joined #ruby
fabrice31 has quit [Remote host closed the connection]
mupkoo has quit [Remote host closed the connection]
Celm has quit [Ping timeout: 251 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
aloshkarev has quit [Quit: aloshkarev]
nateberkopec has joined #ruby
coderxin has quit [Ping timeout: 245 seconds]
DouweM has quit [Quit: Leaving...]
chiw has quit [Read error: Connection reset by peer]
chiw has joined #ruby
nomenkun has joined #ruby
JJMalina has joined #ruby
nateberkopec has quit [Read error: No route to host]
Advocation has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
arietis has joined #ruby
rindolf has joined #ruby
<rindolf> Hi all.
<rindolf> (puts "Hello") for 1 .. 10 -> this does nothing in irb (using ruby-2.0.0.p451-1.mga5). Why?
kobain has quit []
<apeiros> why should it do something?
<apeiros> actually, I'm rather surprised it doesn't give you a syntax error
Zai00 has joined #ruby
<rindolf> apeiros: well, I want to run puts 10 times.
<apeiros> rindolf: I suggest you use valid ruby syntax then. above isn't.
<apeiros> e.g. 10.times do puts "hello" end
<Hanmac1> shevy: i have a suprise for you, i am currently working on rwx again ;P
Hanmac1 is now known as Hanmac
<rindolf> apeiros: ah.
<rindolf> apeiros: so Ruby does not have a foreach statement modifier like Perl does?
<apeiros> it doesn't have an inline-one
<rindolf> apeiros: inline one?
jzig has joined #ruby
<apeiros> your construct is an inline for
fabrice31 has joined #ruby
<rindolf> apeiros: by statement modifier, I mean something like puts "x" if foo > 5;
<apeiros> k, then your statement modifier is my inline-for
mansi has joined #ruby
<apeiros> and no, it doesn't have that
<apeiros> also it's `for x in expr`, not just `for expr`
<ghr> 10.times { puts 'Hello' }
<apeiros> ghr: already suggested ;-)
<shevy> Hanmac \o/
<shevy> I am getting bored with ruby-gnome
<Hanmac> shevy one of the craziest things: some methods has a freaky comment/code ratio ;P .... (20 lines rdoc documentation, 4 lines code ) ;D
<ghr> apeiros ah yes
jlebrech has joined #ruby
<ghr> if you really did want a range you can do
<ghr> (1..10).each { puts 'hello' }
cj3kim has joined #ruby
freerobby has joined #ruby
nomenkun_ has joined #ruby
<Hanmac> apeiros: you mean like that? (beware bad code)
<Hanmac> >> puts "ups" while ((i ||= 0); i += 1) < 5
<eval-in> Hanmac => ups ... (https://eval.in/127640)
jzig has quit [Ping timeout: 265 seconds]
<apeiros> Hanmac: I mean what like that?
lolmaus_ has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
<Hanmac> i made something similar to for as a statement modifier
MindfulMonk has joined #ruby
SevereOverfl0w has joined #ruby
pfg has joined #ruby
hamakn has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
cj3kim has quit [Read error: Connection reset by peer]
mansi has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
freerobby has quit [Ping timeout: 252 seconds]
<rindolf> apeiros: «for x in 1..10 { puts x }» ==> this does not appear to work either. Only «for x in 1..10 do puts x end»
<apeiros> rindolf: so you discovered that your alternative syntax is not valid.
<apeiros> rindolf: you might also go an search for how rubys syntax actually looks instead of randomly trying out ideas. just a suggestion.
<rindolf> apeiros: I did, but I was under an impression that { ...} and do ... end were equivalent.
CyborgCygnus has quit [Remote host closed the connection]
<apeiros> rindolf: they are - for blocks. for/in is not a method and does not take a block.
fgo has joined #ruby
<apeiros> and most people use it without do
<apeiros> same for while/until
mansi has quit [Ping timeout: 240 seconds]
<rindolf> apeiros: OK, thanks.
klaut_ has joined #ruby
DouweM has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klaut has quit [Ping timeout: 240 seconds]
andy__ has joined #ruby
nomenkun_ has quit [Quit: Leaving...]
unixpro1970 has quit [Ping timeout: 265 seconds]
mupkoo has joined #ruby
mehlah has quit [Quit: Leaving...]
Speed has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
skammer_ has joined #ruby
skammer has quit [Ping timeout: 268 seconds]
jamto11 has joined #ruby
monkegji_ has joined #ruby
mupkoo has quit [Ping timeout: 255 seconds]
monkegjinni has quit [Ping timeout: 240 seconds]
mounibec has joined #ruby
mounibec has left #ruby [#ruby]
mikepack has joined #ruby
p8952 has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby
browndawg has joined #ruby
AlexRussia has joined #ruby
roolo has joined #ruby
ktosiek has quit [Read error: Operation timed out]
tvw has quit []
evenix has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
evenix has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
mupkoo has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
deadlock has quit [Ping timeout: 264 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
poikon has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
yasushi has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
sski has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
JJMalina has quit [Quit: Leaving...]
sski has joined #ruby
evenix has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
evenix has joined #ruby
camilasan has joined #ruby
LekeFly has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
cj3kim has quit [Read error: Connection reset by peer]
yasushi has quit [Ping timeout: 255 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
DouweM has quit [Quit: Leaving...]
camilasan has joined #ruby
momomomomo has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
sski has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
mengu has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
petey has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
poikon has joined #ruby
camilasan has joined #ruby
fabrice31 has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
sensen has quit [Ping timeout: 265 seconds]
DouweM has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
camilasan has joined #ruby
petey has quit [Ping timeout: 265 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
Deele has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
perldork has quit [Remote host closed the connection]
camilasa_ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
poikon has quit [Remote host closed the connection]
camilasan has joined #ruby
poikon has joined #ruby
jottr_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
camilasan has quit [Read error: Connection reset by peer]
WormDrink has quit [Ping timeout: 252 seconds]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
browndawg1 has joined #ruby
jottr_ is now known as elementz
camilasa_ has quit [Read error: Connection reset by peer]
browndawg has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
fannye has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
poikon has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
monkegji_ has quit [Remote host closed the connection]
poikon has joined #ruby
camilasa_ has joined #ruby
monkegjinni has joined #ruby
spyderman4g63 has joined #ruby
poikon has quit [Remote host closed the connection]
ctp has joined #ruby
camilas__ has joined #ruby
poikon has joined #ruby
digifiv5e has joined #ruby
camila___ has joined #ruby
momomomomo has quit [Quit: momomomomo]
shaunbak_ has quit [Remote host closed the connection]
eka has joined #ruby
camil____ has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
camilasa_ has quit [Ping timeout: 240 seconds]
camilasa_ has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
spyderman4g63 has quit [Ping timeout: 255 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
jzig has joined #ruby
camilas__ has quit [Ping timeout: 240 seconds]
nvrch has quit [Quit: nvrch]
camilasa_ has joined #ruby
funburn has quit [Read error: Connection reset by peer]
Xeago_ has quit [Remote host closed the connection]
camilasa_ has quit [Read error: Connection reset by peer]
camila___ has quit [Ping timeout: 240 seconds]
camilasa_ has joined #ruby
Xeago has joined #ruby
viscera has quit [Quit: viscera]
funburn has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camil____ has quit [Ping timeout: 240 seconds]
camilasa_ has joined #ruby
WormDrink has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
mrnugget has quit [Quit: mrnugget]
camilasan has joined #ruby
jason_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<elementz> Hi, I am having trouble understanding wether my javascript assets are properly loading when using sprockets.
camilasan has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
djancak has quit [Ping timeout: 252 seconds]
<elementz> erm, wrong channel. sorry...
camilasan has joined #ruby
djancak has joined #ruby
djancak has quit [Changing host]
djancak has joined #ruby
Xeago has quit [Ping timeout: 255 seconds]
camilasa_ has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
camilas__ has joined #ruby
shaunbaker has joined #ruby
<elementz> I would like to run bower commands from within a rake task. How would I write a rake task which executes e.g. 'bower install'? I've tried like so http://sprunge.us/ZWEX . When running rake middleman:update I get the following error: "undefined local variable or method `clean' for main:Object"
freerobby has quit [Ping timeout: 268 seconds]
camila___ has joined #ruby
<elementz> So I am obviously doing it wrong, but how would I run arbitrary commands from rake then?
endash has quit [Quit: endash]
endash_ is now known as endash
<canton7> sh "arbitrary command"
<j416> elementz: the Rakefile is ruby, so you can't just throw shell commands into it and assume them being run
<j416> ^
<canton7> or system(), or exec(), or %x{..}, or `...`
<canton7> sh is a method provided by rake which does some nice stuff iirc
camil____ has joined #ruby
<j416> nice stuff
<elementz> canton7: good to know
<j416> like run shell commands? w
cj3kim has quit [Ping timeout: 240 seconds]
cami_____ has joined #ruby
danshultz has joined #ruby
camilasan has quit [Ping timeout: 268 seconds]
<elementz> canton7: what about bundler commands? Would it be recommended to use 'sh' as well? Or would there be some method that I could run that would execute bundler tasks for me?
camilasan has joined #ruby
camilasa_ has quit [Ping timeout: 268 seconds]
<canton7> bundler almost certainly exposes stuff for rake
<canton7> let me have a look
strg has joined #ruby
camilasa_ has joined #ruby
jason_ has quit [Ping timeout: 255 seconds]
camilas__ has quit [Ping timeout: 268 seconds]
camilas__ has joined #ruby
doodlehaus has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
camila___ has quit [Ping timeout: 268 seconds]
camila___ has joined #ruby
funburn has quit [Quit: funburn]
<canton7> hmm, they mainly seem to be to do with building gems
camil____ has quit [Ping timeout: 268 seconds]
cbreeze has joined #ruby
camil____ has joined #ruby
kaspergr_ has joined #ruby
camil____ has quit [Read error: Connection reset by peer]
camilasan has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
cami_____ has quit [Ping timeout: 268 seconds]
sski has joined #ruby
<elementz> canton7: ok, I'll try via sh then. thx though
mrnugget has joined #ruby
camilasan has joined #ruby
camilasa_ has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilas__ has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camila___ has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 265 seconds]
lemonsparrow has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
<canton7> to do a clean, try Bundler.load.clean ?
<canton7> got that from trawling the sauce
<canton7> probably safer to use sh though
camilasan has joined #ruby
tkuchiki_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
funburn has joined #ruby
DaniG2k has quit [Quit: leaving]
camilasan has joined #ruby
senayar_ has joined #ruby
skammer_ is now known as skammer|afk
camilasan has quit [Read error: Connection reset by peer]
skammer|afk is now known as skammer_
camilasan has joined #ruby
senayar_ has quit [Client Quit]
camilasan has quit [Read error: Connection reset by peer]
fbernier has joined #ruby
camilasan has joined #ruby
senayar_ has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 265 seconds]
senayar has quit [Ping timeout: 240 seconds]
<elementz> yep. sh is working fine.
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
DallasG has joined #ruby
tkuchiki_ has quit [Ping timeout: 265 seconds]
northfurr has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
doodlehaus has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 252 seconds]
larissa has joined #ruby
<AlexRussia> hm
<AlexRussia> someone know solution for it: i should in intaller some ruby program for windows(with included mri and some lib).its possible?
bluOxigen has joined #ruby
Xeago has joined #ruby
francisfish has quit []
rahult is now known as rahult_
rahult_ is now known as rahult
circuit has joined #ruby
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has joined #ruby
dblessing has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cj3kim has joined #ruby
oneawayman has joined #ruby
nari has quit [Ping timeout: 245 seconds]
patrick99e99 has joined #ruby
roolo has quit [Quit: Leaving...]
cj3kim has quit [Ping timeout: 265 seconds]
spyderman4g63 has joined #ruby
andikr has quit [Remote host closed the connection]
dangerousdave has joined #ruby
mupkoo has quit []
sambao21 has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
aaronmcadam has quit [Quit: Leaving...]
mark_locklear has joined #ruby
aaronmcadam has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
aaronmcadam has joined #ruby
popl has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
geoffw8_ has joined #ruby
robbyoconnor has quit [Read error: Operation timed out]
robbyoconnor has joined #ruby
zerun0 has joined #ruby
spicerack has joined #ruby
MattStratton has joined #ruby
<benzrf> hows it going ruby users
DouweM has quit [Quit: Leaving...]
rvraghav93 has joined #ruby
jollyy has joined #ruby
tkuchiki has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
scttnlsn has quit [Ping timeout: 246 seconds]
claymore has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
jollyy_ has joined #ruby
poikon has quit [Read error: Connection reset by peer]
linojon has joined #ruby
victorbjelkholm has joined #ruby
poikon has joined #ruby
jollyy has quit [Ping timeout: 265 seconds]
jollyy_ is now known as jollyy
nvrch has joined #ruby
anarang has quit [Ping timeout: 265 seconds]
scttnlsn has joined #ruby
harshada has quit [Remote host closed the connection]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
montyboy has joined #ruby
freerobby has joined #ruby
roolo has joined #ruby
noop has quit [Ping timeout: 252 seconds]
funburn has quit [Quit: funburn]
<benzrf> hey
<benzrf> is there any significant semantic difference between:
mansi has joined #ruby
cj3kim has joined #ruby
<benzrf> Object.new.extend(some_class)
<benzrf> *module
<benzrf> Class.new.include(some_module).new
freerobby has quit [Ping timeout: 265 seconds]
chrisseaton has joined #ruby
flowerpot has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
sailias has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
flori has quit [Ping timeout: 240 seconds]
cj3kim has quit [Ping timeout: 265 seconds]
<apeiros> benzrf: depends on what you consider significant :)
anarang has joined #ruby
<apeiros> in both cases you will be able to use some_module's instance methods on the newly created object
kaspergrubbe has joined #ruby
jlast has joined #ruby
DallasG has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rmorello has joined #ruby
mercwithamouth has joined #ruby
rvraghav93_ has joined #ruby
rvraghav93 has quit [Read error: Operation timed out]
jkamenik has joined #ruby
kaspergr_ has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
flori has joined #ruby
jamto11 has joined #ruby
JBreit has joined #ruby
JasmeetQA1 has joined #ruby
rrios has joined #ruby
jollyy_ has joined #ruby
flowerpot has quit [Ping timeout: 265 seconds]
JasmeetQA has quit [Ping timeout: 240 seconds]
<rrios> Hello. I was reading the inject documentation and it says that if "you do not explicitly specify an initial value for memo, then uses the first element of collection is used [sic] as the initial value of memo". But how do I specify an initial value for memo?
mikepack has joined #ruby
gilcosson has joined #ruby
<rrios> inject, in the case, being a method from Enumerable
DouweM has joined #ruby
freerobby has quit [Ping timeout: 255 seconds]
jollyy has quit [Ping timeout: 255 seconds]
jollyy_ is now known as jollyy
noop has joined #ruby
kitak has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 255 seconds]
JasmeetQA has joined #ruby
northfurr has joined #ruby
northfurr has joined #ruby
northfurr has quit [Changing host]
abdulsattar has joined #ruby
Sawbones has joined #ruby
hamakn has joined #ruby
<apeiros> rrios: by passing it as the first argument
robbyoconnor has quit [Read error: Connection reset by peer]
<apeiros> >> [1,2,3].inject(10, :+)
<eval-in> apeiros => 16 (https://eval.in/127658)
<apeiros> >> [1,2,3].inject(:+)
<eval-in> apeiros => 6 (https://eval.in/127659)
robbyoconnor has joined #ruby
axsuul has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
JasmeetQA1 has quit [Ping timeout: 252 seconds]
sk87 has joined #ruby
eichenwald has joined #ruby
DouweM has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 265 seconds]
krz has quit [Quit: WeeChat 0.4.3]
LekeFly_ has joined #ruby
blackmesa has joined #ruby
freerobby has joined #ruby
<rrios> apeiros: Thx
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IceDragon has joined #ruby
LekeFly has quit [Ping timeout: 265 seconds]
phansch has quit [Ping timeout: 252 seconds]
jlebrech has quit [Ping timeout: 268 seconds]
bynaryshef has joined #ruby
larissa has quit [Quit: Leaving]
phansch has joined #ruby
<Hanmac> rrios: it makes a difference when the array can be empty
<Hanmac> >> [[].inject(:+), [].inject(0,:+)]
<eval-in> Hanmac => [nil, 0] (https://eval.in/127666)
cj3kim has joined #ruby
cover has joined #ruby
bynaryshef has quit [Client Quit]
cj3kim has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
DouweM has joined #ruby
CreativeEmbassy has joined #ruby
<momomomomo> apeiros: +1 simple easy explanation
<momomomomo> why don’t we have eval-in in #rubyonrails :/
sk87 has quit [Quit: Textual IRC Client: www.textualapp.com]
<Hanmac> because we are awesome? ;P
<benzrf> momomomomo: cuz sinatra rools rails droolz woot woot
<momomomomo> :*(
<certainty> drools? isn't that a rules engine
<momomomomo> lol rules is so last year get on gorules
sk87 has joined #ruby
chris_thomson has joined #ruby
<certainty> the rules of go?
Frank13760 has joined #ruby
<momomomomo> joking
IceDragon has quit [Ping timeout: 268 seconds]
flowerpot has joined #ruby
kevind has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
anarang has quit [Ping timeout: 265 seconds]
noop has quit [Ping timeout: 264 seconds]
dx7 has quit [Remote host closed the connection]
schaary is now known as schaary|afk
anarang has joined #ruby
User458764 has joined #ruby
jaywastaken has joined #ruby
jaywastaken has joined #ruby
LekeFly_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ziyadb_ has joined #ruby
yfeldblum has joined #ruby
kaspergr_ has joined #ruby
lolmaus has quit [Ping timeout: 265 seconds]
aagdbl has quit [Quit: Leaving]
anarang has quit [Ping timeout: 240 seconds]
chrisseaton has quit []
noop has joined #ruby
anarang has joined #ruby
simono has joined #ruby
kaspergrubbe has quit [Ping timeout: 252 seconds]
iamdoo2 has joined #ruby
snath has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
Sawbones has quit []
<benzrf> apeiros: about the new class vs extend thing
dik_dak has joined #ruby
<benzrf> what, exactly, will be the semantic difference?
predator117 has joined #ruby
shterrett has joined #ruby
okdas has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
Lewix has quit [Remote host closed the connection]
chris_thomson has quit [Quit: Zzz...]
anarang has quit [Ping timeout: 255 seconds]
Frank13760 has left #ruby [#ruby]
noop has quit [Ping timeout: 255 seconds]
mrnugget has quit [Ping timeout: 265 seconds]
kpshek has joined #ruby
alexju has joined #ruby
IceDragon has joined #ruby
blackhair has joined #ruby
Xiti has joined #ruby
monkegjinni has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
petey has joined #ruby
zachallett has joined #ruby
robbyoconnor has joined #ruby
senayar_ has quit [Remote host closed the connection]
bthesorceror has joined #ruby
blackhair has left #ruby [#ruby]
lyanchih__ has joined #ruby
absolutezeroff has joined #ruby
anarang has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
simono has quit [Ping timeout: 255 seconds]
senayar has joined #ruby
noop has joined #ruby
rvraghav93_ has quit [Ping timeout: 240 seconds]
petey has quit [Ping timeout: 240 seconds]
JBreit has left #ruby ["Leaving"]
doodlehaus has joined #ruby
razibog has joined #ruby
mansi has joined #ruby
monkegjinni has quit [Remote host closed the connection]
lukec has joined #ruby
monkegjinni has joined #ruby
dEPy has joined #ruby
cpruitt has joined #ruby
petey has joined #ruby
cj3kim has joined #ruby
anarang has quit [Ping timeout: 265 seconds]
jollyy has quit [Quit: jollyy]
rvraghav93 has joined #ruby
noop has quit [Ping timeout: 255 seconds]
nari has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
monkegjinni has quit [Ping timeout: 240 seconds]
kpshek has quit []
jlebrech has joined #ruby
cj3kim has quit [Ping timeout: 268 seconds]
sski has quit [Remote host closed the connection]
codabrink has joined #ruby
andikr has joined #ruby
afreidah has joined #ruby
iamdoo2 has quit [Remote host closed the connection]
simono has joined #ruby
kpshek has joined #ruby
rrios has quit [Ping timeout: 255 seconds]
Zai00 has quit [Quit: Zai00]
pauld has joined #ruby
jamto11 has joined #ruby
Zai00 has joined #ruby
User458764 is now known as User458764_NotHe
snath has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
phansch has joined #ruby
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
anarang has joined #ruby
enebo has joined #ruby
momomomomo has left #ruby [#ruby]
noop has joined #ruby
rvraghav93 has quit [Ping timeout: 264 seconds]
<pauld> 1
LekeFly has joined #ruby
sethetter has joined #ruby
<sethetter> Would adding 'Kernel.exit(0)' at the end of a ruby cgi script help ensure no defunct processes?
lemonsparrow has quit [Ping timeout: 245 seconds]
DallasG has joined #ruby
Jetchisel has joined #ruby
DallasG has quit [Client Quit]
rvraghav93 has joined #ruby
meatherly has joined #ruby
DallasG has joined #ruby
sailias has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 240 seconds]
jlast has quit [Remote host closed the connection]
<benzrf> >> begin; exit; rescue SystemExit; end; puts 'foo'
<eval-in> benzrf => foo ... (https://eval.in/127670)
FiXion has left #ruby [#ruby]
<benzrf> >> begin; exit!; rescue SystemExit; end; puts 'foo'
<eval-in> benzrf => (https://eval.in/127671)
<benzrf> i think exit! raises fatal
jlast has joined #ruby
maasha has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
LekeFly has quit [Ping timeout: 252 seconds]
LekeFly has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yacks has joined #ruby
freerobby has quit [Quit: Leaving.]
makara has quit [Ping timeout: 264 seconds]
<maasha> hi
LekeFly has quit [Client Quit]
shterrett has quit [Quit: shterrett]
kaspergrubbe has joined #ruby
camilasan has quit [Remote host closed the connection]
sailias has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_lee has joined #ruby
cj3kim has joined #ruby
camilasan has joined #ruby
Foo4 has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
bal has quit [Quit: bal]
camilasan has quit [Read error: Connection reset by peer]
kaspergr_ has quit [Ping timeout: 255 seconds]
camilasan has joined #ruby
bal has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
hermanmunster has quit []
sk87 has joined #ruby
mansi has joined #ruby
charliesome has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
rudisimo has joined #ruby
mounibec has joined #ruby
evenix has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
sailias has quit [Ping timeout: 268 seconds]
<maasha> O_o
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
<maasha> o_O
sprocket has joined #ruby
anoldhacker has quit [Quit: Leaving.]
<sprocket> hello all
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<sprocket> does anybody have any tips for debugging a SystemStackError (stack level too deep)?
crystal77 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<sprocket> i was in the process of upgrading a rails 2 application to rails 4, and this error's popped up when the .save! method is called on one of my active record models
camilasan has joined #ruby
sski has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<apeiros> benzrf: a) where the module ends up (class vs. singleton_class), b) the callback on the module (self.included vs. self.extended), c) the creation of a "throw-away" class
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<benzrf> kk
LekeFly has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
Vlat- has quit [Quit: Vlat-]
spstarr_work has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
SCommette has joined #ruby
<spstarr_work> Question: if I have a hash, say @myhash = { :city = "", :province = "" } and its inside a class, why doesn't ruby allow me to do this in a method in class: @myHash[:city] = "My New City" ?
camilasan has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<spstarr_work> since the hash is an instance variable of the class why doesn't that work?
* spstarr_work is new to ruby
<spstarr_work> so im trying to understand why this is complex to update a hash value
camilasan has joined #ruby
<Mon_Ouie> How does it not
arietis has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie> How does it not work?*
camilasan has quit [Read error: Connection reset by peer]
<spstarr_work> undefined method `[]' for nil:NilClass (NoMethodError) is the error
rahult is now known as rahult_
camilasan has joined #ruby
<shevy> spstarr_work you dont have a hash there
mercwithamouth has joined #ruby
dx7 has joined #ruby
<spstarr_work> shevy: er isn't that a hash with symbols w/ new style?
camilasan has quit [Read error: Connection reset by peer]
<Mon_Ouie> First you're not setting if you get that error, you're just getting
geopet has joined #ruby
<Mon_Ouie> Oh, that's true, your syntax is wrong too, but that should even be a syntax error
camilasan has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
ffranz has joined #ruby
<shevy> spstarr_work you assign a hash somewhere else, sure. but in your given object, you simply do not have a hash at all
<Mon_Ouie> "Old" style is {:city => "", :province => ""}, new style is {city: "", province: ""}
<spstarr_work> oh NO '='
camilasan has quit [Read error: Connection reset by peer]
<spstarr_work> @myHash = { city: "", ... }
yasushi has joined #ruby
<spstarr_work> i have it w/o equals though
camilasan has joined #ruby
r_rios has joined #ruby
<Mon_Ouie> And it says you're trying to call "[]" on nil, which means it hasn't been initialized the way you seem to expect it.
<Mon_Ouie> Where is that line located, and where are you using it?
camilasan has quit [Read error: Connection reset by peer]
rrios has joined #ruby
<Mon_Ouie> (where are you using the hash, I mean)
<spstarr_work> oh in a method of this class
matcouto has quit [Ping timeout: 252 seconds]
camilasan has joined #ruby
<Mon_Ouie> And where's @myHash = …?
Shidash has joined #ruby
<spstarr_work> in the class
danman_ has joined #ruby
Merks has quit []
camilasan has quit [Read error: Connection reset by peer]
<Mon_Ouie> Not in a method, in the class itself directly? i.e. class Foo; @myHash = …; end?
<spstarr_work> class Foobar ---> @myHash = { city: "", .... } ............ end
<spstarr_work> yes
<Mon_Ouie> Yeah, that's your problem
<spstarr_work> ??
camilasan has joined #ruby
<Mon_Ouie> You should do initialization in the initialize method
<shevy> spstarr_work who taught you to put the hash outside of a method?
<Mon_Ouie> @foo = bar sets the instance variable called '@foo' of self to bar
camilasan has quit [Read error: Connection reset by peer]
<spstarr_work> shevy: just experimenting as i learn language
<Mon_Ouie> But self within the class block is not an instance of the class, it is the class itself
lyanchih__ has quit [Quit: lyanchih__]
camilasan has joined #ruby
gilcosson has quit [Ping timeout: 268 seconds]
<shevy> spstarr_work hmm but you must have read about @ivars somewhere
<spstarr_work> so the hash should be just initialized as (0)
<Mon_Ouie> (Also, that block is only ever run once, when you create the class)
<spstarr_work> @myHash = Hash.new(0) ?
camilasan has quit [Read error: Connection reset by peer]
Jetchisel has quit [Ping timeout: 252 seconds]
<spstarr_work> and then actually initialize it elsewhere?
lyanchih__ has joined #ruby
pu22l3r has joined #ruby
<spstarr_work> well set the keys for it even
camilasan has joined #ruby
<spstarr_work> i thought you'd want to create the hash with keys but have no values
<Mon_Ouie> Hm? You just need to put initialization code in the initialize method, which is run every time you create a new instance of your class
JasmeetQA has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
<shevy> spstarr_work you are making up things as you go :)
<spstarr_work> yep
camilasan has joined #ruby
quatron has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<shevy> for instance
<shevy> why do you use Hash.new(0) suddenly
<spstarr_work> yes it works if set in initialize()
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has joined #ruby
<spstarr_work> but that seems different in structure
<shevy> sure it's different now
<shevy> you invoke it inside of a method now
<spstarr_work> ive typically set instance variables *IN* the class outside of any constructor...
camilasan has quit [Read error: Connection reset by peer]
<shevy> no worries
<shevy> we all do plenty of mistakes when we are young
<spstarr_work> well to empty/null etc and any structs to null for the elements
camilasan has joined #ruby
<spstarr_work> so ruby seems to say no to this ;)
<spstarr_work> well to hashes
<shevy> of course it does
camilasan has quit [Read error: Connection reset by peer]
<Mon_Ouie> >> empty_hash = {}; empty_hash[:foo]
<eval-in> Mon_Ouie => nil (https://eval.in/127675)
<shevy> ruby is right
<shevy> it's simply that you tried to use something in ruby that did not work as you expected it to work
mounibec has quit [Quit: mounibec]
DallasG has left #ruby ["Textual IRC Client: www.textualapp.com"]
camilasan has joined #ruby
<spstarr_work> right, ruby has different structure
<Mon_Ouie> If you try and access a value that's not present in the hash it returns nil
<spstarr_work> so does ruby have the ability to create a hash with keys but leave it uninitialized values?
camilasan has quit [Read error: Connection reset by peer]
<shevy> uninitialized?
camilasan has joined #ruby
<shevy> what is that
<shevy> in the context of a hash
<spstarr_work> yeah like something like this:
<shevy> foo = nil
workmad3 has quit [Ping timeout: 255 seconds]
lmickh has joined #ruby
<shevy> is that uninitialized for you?
<shevy> hash = {}; hash[:bla] = nil
camilasan has quit [Read error: Connection reset by peer]
<spstarr_work> myHash = { something: nil, something_else: nil }
<shevy> how about this
Foo6 has joined #ruby
<shevy> obviously
<shevy> the keys all point to nil
<spstarr_work> so i should be able to have this in the class body
<Mon_Ouie> nil is the object we use to represent the absence of a value. It's not uninitialized then though, it's initialized to nil
camilasan has joined #ruby
<shevy> I would not call these "uninitialized" though
toastynerd has joined #ruby
LekeFly has joined #ruby
<Mon_Ouie> You can have it there, but it doesn't to what you think
<shevy> Hash also has .default method btw to designate a default
sailias has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
mounibec has joined #ruby
<shevy> >> hash = Hash.new; hash.default = "We go fishing."; hash[:yo]
<eval-in> shevy => "We go fishing." (https://eval.in/127679)
simono has quit [Ping timeout: 264 seconds]
<spstarr_work> I mean this: class MyClass @myHash = { city: nil, province: nil, country: nil } ..................... end
<Mon_Ouie> Your class itself *is* an object too, and by setting an ivar within the class block, you set an ivar of the class itself
<shevy> god
camilasan has joined #ruby
<shevy> why are you again doing this outside of a method
camilasan has quit [Read error: Connection reset by peer]
<spstarr_work> because you can set instance variables like this and it works?
<spstarr_work> @myVariable = nil
<shevy> didn't we correct your earlier mistake already?
hrs has joined #ruby
camilasan has joined #ruby
dx7 has quit [Remote host closed the connection]
<shevy> now you just repeat what we corrected already :(
<Mon_Ouie> It's hard to tell the difference between @foo = nil and doing nothing
<spstarr_work> so you should *not* put instance variables of any kind in the class body but in initialize() only
<shevy> learning progress: 0%
monkegjinni has joined #ruby
<shevy> you can of course
mary5030 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<shevy> but it works on the class instance
claymore has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
<DouweM> spstarr_work: it's no "you should not", it just doesn't do what you think it does
<Mon_Ouie> Because if you try and read an ivar that hasn't been set before it just evaluates to nil
dx7 has joined #ruby
_Andres has quit [Quit: jazz]
vlad_starkov has joined #ruby
simono has joined #ruby
<benzrf> Mon_Ouie: oh hey didnt you make pry-remote-em?
camilasan has joined #ruby
<benzrf> or was it just pry-remote?
<Mon_Ouie> benzrf: Nope, just pry-remote
<shevy> spstarr_work think of it this way - you want your object to have certain values stored in @ivars, ok? so for this, you use these only inside of methods, ok?
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf> hmmm
<spstarr_work> yes
gigetoo has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 240 seconds]
Solnse has joined #ruby
camilasa_ has joined #ruby
sailias has quit [Client Quit]
jollyy has joined #ruby
geoffw8_ has quit [Quit: Connection closed for inactivity]
Foo6 has quit [Ping timeout: 252 seconds]
<shevy> the first method that will be called for you to use or change is the initialize() method, when an object is instantiated via .new
<spstarr_work> and to me anything in the class body with @ is an @ivar so 'logically' I thought ruby would accept variable definitions
<shevy> I usually have as one of the first methods one called reset(), which resets the object, but also initializes it
camilas__ has joined #ruby
garndt has joined #ruby
<Mon_Ouie> >> class Foo; @foo = 3; end; Foo.instance_variables
<shevy> ok so you must have read this somewhere
<eval-in> Mon_Ouie => [:@foo] (https://eval.in/127680)
<shevy> or did you make it up :)
<Mon_Ouie> It does set an instance variable but not on the object you want
jobewan has joined #ruby
<spstarr_work> Mon_Ouie: I don't mean static
<shevy> what means "static"
<spstarr_work> unless this is STATIC if in class body and not in initialize() ?
kaspergr_ has joined #ruby
camila___ has joined #ruby
<DouweM> spstarr_work: it's in relation to `self`, which is the class object when you're inside the class definition
<DouweM> inside an instance method, it's an instance
hrs has quit [Client Quit]
gigetoo has joined #ruby
<shevy> you use very strange terminology
MatthewsFace has joined #ruby
<Mon_Ouie> Don't use terminology that comes from another language to talk about it, it makes things harder
<spstarr_work> class Foo; @foo = 3; end -> puts Foo.foo < - prints 3
<shevy> spstarr_work look at this: class Foo; @foo = 5; def initialize; @foo = 6; end; end <--- what do you think will @foo be?
<shevy> no spstarr_work
<DouweM> spstarr_work: it's a var, not a method
camil____ has joined #ruby
<shevy> >> class Foo; @foo = 3; end; puts Foo.foo
<eval-in> shevy => undefined method `foo' for Foo:Class (NoMethodError) ... (https://eval.in/127682)
<Mon_Ouie> No, that would print an error. You'd need to create a reader to see it.
elementz has quit [Ping timeout: 268 seconds]
<shevy> spstarr_work that example was an error
<spstarr_work> shevy: @foo would be 6
<DouweM> >> class Foo; @foo = 3; end; Foo.instance_variable_get(:@foo)
<eval-in> DouweM => 3 (https://eval.in/127683)
<shevy> spstarr_work are you absolutely sure :)
cj3kim has joined #ruby
<spstarr_work> lol :D
cami_____ has joined #ruby
<DouweM> shevy: your @foo is ambiguous in your question
<shevy> DouweM really :P
<DouweM> shevy: there are two @foo's, and one of them is in deed 6
<shevy> precisely
<DouweM> ambiguous questions don't help :P
camilasan has quit [Ping timeout: 268 seconds]
<spstarr_work> what!
<shevy> they would
<DouweM> that!
<shevy> because now he understands it is not the same
<Mon_Ouie> Well actually with just that snippet of code, one of the foos doesn't exist yet
<DouweM> I doubt that
toastynerd has quit [Remote host closed the connection]
camilasan has joined #ruby
<Mon_Ouie> And there can be many of the "second" foo if you create many instances
camilasa_ has quit [Ping timeout: 268 seconds]
<spstarr_work> class foo; @foo = 3; def initialize @foo = 10; end end <-- these are _two_ different instance variables >
<DouweM> Mon_Ouie: you and your "well actually"s :P
<spstarr_work> ?
<shevy> don't let DouweM doubte you spstarr_work :)
<DouweM> I'm the supreme doubter
camilasan has quit [Read error: Connection reset by peer]
<DouweM> spstarr_work: yesss
kaspergrubbe has quit [Ping timeout: 240 seconds]
<DouweM> spstarr_work: or rather, 1 + as many instances of Foo are around
<spstarr_work> DouweM: doesn't that defeat the purpose of a class instance variable?
camilasan has joined #ruby
<spstarr_work> its global scope to the instance of the class
<DouweM> spstarr_work: Foo is an object itself, so @foo within class Foo... end; is bound to that object Foo
<shevy> >> class Foo; @foo = 5; def initialize; @foo = 6; end; end; Foo.instance_variable_get :@foo
<eval-in> shevy => 5 (https://eval.in/127685)
<shevy> it's 5!
<DouweM> spstarr_work: what purpose is defeated?
camilasan has quit [Read error: Connection reset by peer]
camilas__ has quit [Ping timeout: 268 seconds]
XenoWolf has joined #ruby
<spstarr_work> shevy: so @foo in the class body is 'static'
<shevy> hehe
Xeago_ has joined #ruby
<shevy> you and your static terminology :)
<DouweM> >> class Foo; @foo = 5; def initialize; @foo = 6; end; end; [Foo.instance_variable_get(:@foo), Foo.nwq.instance_variable_get(:@foo)]
<eval-in> DouweM => undefined method `nwq' for Foo:Class (NoMethodError) ... (https://eval.in/127687)
bline79 has quit [Quit: leaving]
<DouweM> >> class Foo; @foo = 5; def initialize; @foo = 6; end; end; [Foo.instance_variable_get(:@foo), Foo.new.instance_variable_get(:@foo)]
<eval-in> DouweM => [5, 6] (https://eval.in/127688)
<spstarr_work> (why didn't we just use a different symbol for that!)
connor_goodwolf has quit [Quit: leaving]
<shevy> spstarr_work, class Foo; @bla = x; end <--- is very rarely used, it is not very useful
<DouweM> spstarr_work: it's similar to what's called static in other languages, I guess
camilasan has joined #ruby
camila___ has quit [Ping timeout: 268 seconds]
<spstarr_work> !!!!
<DouweM> spstarr_work: why would we? Foo and Foo.new re both objects
<Mon_Ouie> Also what do you call "class instance variable"? Because a class instance variable in Ruby is the instance variable of a class itself, i.e. @foo = 3 (and not @foo = 10) in your example
camilasan has quit [Read error: Connection reset by peer]
connor_goodwolf has joined #ruby
<spstarr_work> Mon: self
<DouweM> classes aren't some special construct in Ruby, they're interfaced with just like objects.
<spstarr_work> 'this'
nateberkopec has joined #ruby
Foo7 has joined #ruby
danman__ has joined #ruby
<shevy> spstarr_work ok but self depends on the context too
camilasan has joined #ruby
<DouweM> they are of course special, but you can work with them like objects
<spstarr_work> for each Foo instance you have a variable 'foo' which has a value per instance but separate
<apeiros> shevy: I use class Foo; @bla = x; end quite often
<DouweM> right
camilasan has quit [Read error: Connection reset by peer]
<apeiros> shevy: and I find it very useful
camil____ has quit [Ping timeout: 268 seconds]
<shevy> apeiros what for
<DouweM> and because what you refer to as Foo is just an instance of the Class class, it can have instance variables as well
<apeiros> most often, multiton patterns and config
camilasan has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
cami_____ has quit [Ping timeout: 268 seconds]
camilasan has quit [Read error: Connection reset by peer]
simono_ has joined #ruby
camilasan has joined #ruby
<spstarr_work> right, but in every single language ive used, class Foo; @myInstanceVariable = 100; end ........... puts Foo.instance_variable_get(:@myInstanceVariable) 'should' print 100
<DouweM> which it does
<shevy> hehehe
<DouweM> >> class Foo; @myInstanceVariable = 100; end; Foo.instance_variable_get(:@myInstanceVariable)
camilasan has quit [Read error: Connection reset by peer]
<eval-in> DouweM => 100 (https://eval.in/127693)
jobewan has quit [Quit: Leaving]
jobewan has joined #ruby
danman_ has quit [Ping timeout: 265 seconds]
etqqkoiflwhb has joined #ruby
camilasan has joined #ruby
<spstarr_work> oh so you have to use a builtin instance_variable_get()
lolmaus has joined #ruby
Xeago has quit [Ping timeout: 268 seconds]
<DouweM> and indeed, Ruby does a lot of things different from other language you may have used
<DouweM> spstarr_work: no you don't
<shevy> spstarr_work why do you want to use instance variable get
<DouweM> I mean, that just reads the instance var from within that object
<shevy> spstarr_work why do you make it so hard and keep on wanting to use ivars outside of a method
camilasa_ has joined #ruby
<DouweM> it's nothing special with class instance vars or other instance vars
<spstarr_work> we're going off the original issue (which is fixed with def initialize()) but now im curious of why this is 'different'
rayners has joined #ruby
simono has quit [Ping timeout: 265 seconds]
claymore has joined #ruby
sailias1 has joined #ruby
<DouweM> spstarr_work: let's start from the beginning. `class Foo; self; end` What is the value of self there?
munix has joined #ruby
<spstarr_work> nil
<DouweM> And that's where the confusion starts
camilas__ has joined #ruby
<DouweM> No, it's not! It's the Foo class itself
<DouweM> the Foo class is just another object, with a #new method etc
<shevy> spstarr_work ruby would not work if self would be nil at that point
jorts has joined #ruby
evenix has joined #ruby
mounibec has quit [Quit: mounibec]
<DouweM> within the class def, self is the class we're in
<spstarr_work> self; isn't an instance variable in class Foo
camila___ has joined #ruby
<shevy> self is special
Foo7 has quit [Ping timeout: 240 seconds]
<DouweM> you can read @foo like self.ivars["foo"], if ivars were a Hash
<shevy> it's not called @self after all
<DouweM> It's always in relation to self
<spstarr_work> ruby supports 'self' like python?
<DouweM> which is the class within the class def
<spstarr_work> self == this?
<DouweM> it's not like python
<DouweM> it's just the this keyword, basically
<shevy> self can be this or that
<spstarr_work> so then: is this not legal:
<etqqkoiflwhb> DouweM: self isn;t a keyword
camil____ has joined #ruby
<spstarr_work> class Foo; self.myInstanceVariable = nil; end ?
<shevy> of course self is a keyword http://ruby-doc.org/docs/keywords/1.9/
<DouweM> etqqkoiflwhb: what would you call it?
<DouweM> spstarr_work: now you're calling a method called `myInstanceVariable=`.
<shevy> spstarr_work that is just a method
<DouweM> spstarr_work: but @ does indeed work on self
cami_____ has joined #ruby
<shevy> spstarr_work you just called it myInstanceVariable :)
<shevy> def this_is_not_a_method
cami_____ has quit [Remote host closed the connection]
<etqqkoiflwhb> shevy: oh, isn;t it implicity passed as a method parameter?
cami_____ has joined #ruby
nolic has quit [Ping timeout: 252 seconds]
<etqqkoiflwhb> implicitly*
<spstarr_work> ok so thats very pythonisk
<shevy> etqqkoiflwhb I don't know how it works internally
camilasan has quit [Ping timeout: 268 seconds]
<shevy> some C guru can explain
<DouweM> etqqkoiflwhb: that would still make it a keyword
rahult has joined #ruby
<spstarr_work> but in python self.foobar may refer to a method or variable instance
<spstarr_work> of the instance of a class
camilasa_ has quit [Ping timeout: 268 seconds]
<spstarr_work> 'this'
<shevy> what do you mean with "refer"?
hobodave has quit [Quit: Computer has gone to sleep.]
<shevy> in ruby you could return an @ivar or whatever another method returns
Mon_Ouie has quit [Ping timeout: 240 seconds]
camilas__ has quit [Ping timeout: 268 seconds]
<DouweM> spstarr_work: you understand that `Foo` is an object just like some var `foo`? You understand that `self` is the class within the class def, and an instance within the methods? You understand that @ refers to that same `self`? You understand that any object can have ivars, and that because classes are objects too, so can they?
<DouweM> If you understand all that, I don't see where any remaining confusion comes from
<shevy> you can use class methods too, Foo.bla()
ahawkins_ has joined #ruby
mounibec has joined #ruby
ahawkins has quit [Read error: Operation timed out]
<shevy> DouweM did you not say before that he is confused? :P
<spstarr_work> I know that 'self' means 'this' or the current instance that is instantiated from a Foo object
camila___ has quit [Ping timeout: 268 seconds]
<shevy> why does it have to be instantiated
Frank13760 has joined #ruby
<DouweM> self just refers to the current context. it needs to be an object, which the class Foo is an example of
<spstarr_work> if its not then its a static class
camil____ has quit [Ping timeout: 268 seconds]
<spstarr_work> right
Frank13760 has quit [Client Quit]
<DouweM> there's no "static" in Ruby
<shevy> hehe
<DouweM> there's just methods on objects
<shevy> he likes the word
<DouweM> a class method on a class is just a method on an object
<spstarr_work> i come from a C world in past
<DouweM> because the class is an object
<shevy> it is hard coded in his neuronal CPU
<DouweM> I know C, forget everything you know about C :P
meatherly has quit [Remote host closed the connection]
<spstarr_work> hehe
<DouweM> You don't need no stinking static keyword
meatherly has joined #ruby
<DouweM> classes are objects
<DouweM> methods are methods
<shevy> DouweM is a class in ruby static?
meatherly has quit [Remote host closed the connection]
<DouweM> nah
<shevy> if he does not understand us
<spstarr_work> so then what is this called:
<shevy> we will try to understand him
<DouweM> shevy: you know what static methods are?
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
Celm has joined #ruby
meatherly has joined #ruby
<shevy> DouweM methods that can not change!
<spstarr_work> puts Foo.instance_variable_get(:@myInstanceVariable) ?
<spstarr_work> if you didn't instantiate an instance from class Foo
<shevy> spstarr_work I call that a class method
<DouweM> shevy: they're methods on the class, so SomeClass.staticMethod
<shevy> ohhhh
Frank13760 has joined #ruby
<DouweM> shevy: pretty much a class method indee
<DouweM> d
<shevy> so when he says static
Frank13760 has left #ruby [#ruby]
<shevy> he means class methods
<DouweM> yeah
<DouweM> spstarr_work: that's the instance_variable_get method that you're calling on the object Foo
<shevy> spstarr_work write out that word once :)
rahult has quit [Ping timeout: 265 seconds]
<DouweM> but again, there are no class methods in Ruby, just methods on objects
<DouweM> classes are objects
<spstarr_work> DouweM: that method is built-in to all classeses though
jph98 has joined #ruby
<shevy> spstarr_work, btw, this method is defined here: http://apidock.com/ruby/Object/instance_variable_get
Xiti has quit [Quit: Leaving]
<DouweM> it's built into the root Object class from which almost all objects inherit
<shevy> yeah, defined in class Object
<shevy> and Object is like your mother
maasha has quit [Ping timeout: 245 seconds]
<DouweM> the Class class, of which Foo is an instance, included
Xiti has joined #ruby
<DouweM> So any object has that method
<shevy> everything good comes from class Object
<DouweM> and because Foo is just an object, so does it
<spstarr_work> that assumes you created a new instance though in that example
<DouweM> spstarr_work: a new instance?
<shevy> spstarr_work in that example, yeah
<DouweM> spstarr_work: Foo is already an instance
<shevy> but you can call it on Foo too
<shevy> you can call it pretty much everywhere!
<DouweM> spstarr_work: Foo is an instance of Class. `foo = Foo.new` is an instance of Foo
<spstarr_work> DouweM: sure '1' instance by default
<shevy> everything is an object!!!
thesheff17 has joined #ruby
<DouweM> You can actually fo zFoo = Class.new`
roolo has quit [Quit: Leaving...]
<DouweM> *do
<shevy> god that is a horrible name
<DouweM> spstarr_work: 1 instance of what?
<DouweM> shevy: blame my keyboard
<shevy> I think he meant the string '1'
<DouweM> I'm dying
<DouweM> seriously
<DouweM> someone save me
<shevy> lol
<shevy> no!
<shevy> die
<DouweM> omg!
<shevy> and let me watch :)
<DouweM> after all that I've done for you!
<shevy> sorry, I joined the evil part of the world soon after birth
<DouweM> ooOOOooh is that how we're gonna play this
<spstarr_work> DouweM: Foo.instance_variable_get(:@bar)
Advocation has quit [Quit: Advocation]
<DouweM> spstarr_work: yeah. let's get back to that.
<shevy> yes, on Foo
<DouweM> playtime is over, shevy
<shevy> but you could also do: foo = Foo.new; foo.instance_variable etc...
<spstarr_work> right but thats an instance of Foo
meatherl_ has joined #ruby
<shevy> yeah
<DouweM> Yes!
<DouweM> Which means that you're talking to different instance variables
meatherly has quit [Ping timeout: 240 seconds]
<DouweM> The one on Foo vs the one on `foo = Foo.new`
<shevy> because these are different objects!
<spstarr_work> explicitly doing Foo.instance_variable_get()... to me is 'static'
<shevy> hey
<shevy> write out after me:
<spstarr_work> as you have no instance of Foo actually created
skammer_ is now known as skammer|afk
<shevy> class method
<shevy> write it out now
<spstarr_work> ok so class method == static method
<spstarr_work> basically
hamakn has quit [Remote host closed the connection]
<shevy> well that is a progress :)
arietis has joined #ruby
Xiti` has joined #ruby
<shevy> DouweM he used the term class method for the first time now, I think we made some progress finally
<DouweM> haha
rainmanjam has joined #ruby
<DouweM> *high five*
Xiti` has quit [Read error: Connection reset by peer]
<shevy> *low kick*
<DouweM> class method == static method, sure
hamakn has joined #ruby
<DouweM> but there is no difference between a class method and an instance method
<DouweM> because (listen up kids) classes are instances too
<shevy> now you confuse him
<spstarr_work> DouweM: but thats misleading if you can do this?? Foo.myClassMethod()
<DouweM> there's just an "object method"
<DouweM> and classes are objects just like instances
<spstarr_work> where myClassMethod is defined in class Foo def myClassMethod .. end; end
<shevy> and now DouweM is making up new terms :(
<DouweM> spstarr_work: you can't do that
Xiti has quit [Ping timeout: 240 seconds]
<tobiasvl> a class is an instance of the class Class. so a class method is an instance method on the Class instance
<shevy> I thought everything is an object in ruby, now we have "object methods" suddenly ;(
<DouweM> spstarr_work: because that's a method defined for instances of Foo
<DouweM> tobiasvl: <3
<spstarr_work> DouweM: ok so thats illegal
arturaz has quit [Ping timeout: 265 seconds]
<DouweM> spstarr_work: I mean I won't call the police
<tobiasvl> haha
<shevy> spstarr_work one way to define a class method is via "self.", like: def self.bla
<benzrf> DouweM: classes are just objects that can create other objects
<DouweM> But you can't call a method defined for instances of Foo, on Foo
<spstarr_work> I see so 'class methods' are really built-in methods ruby provides to any Class object
<benzrf> * that was @ spstarr_work
<DouweM> benzrf: yupyup
<benzrf> my bad
<spstarr_work> or can you make your own class methods?
<DouweM> jesus benzrf get your act together
<tobiasvl> class << self
<shevy> yeah spstarr_work
<spstarr_work> ahhhh
<DouweM> spstarr_work: either `def self.class_method; whatever; end`
<shevy> spstarr_work you only have to define it on your class (or module)
<benzrf> spstarr_work: all objects have a special unique class just for them that you don't normally seemant
<benzrf> spstarr_work: it is called the singleton class
m0s^away is now known as m0s
<DouweM> or, indeed `class Foo; class << self; def class_method; whatever; end; end; end`
<spstarr_work> oh boy.. thats confusing for where self was different in python ;(
<tobiasvl> EIGENCLASS tyvm
<shevy> seemant? lol
<benzrf> if you put a method in it, it will ONLY be in that one object
<shevy> your tab completion is so awesome benzrf
<DouweM> benzrf: duuude
<DouweM> benzrf: don't go make this more difficult :P
<benzrf> spstarr_work: if you do 'class << some_object'
rrios has quit [Ping timeout: 265 seconds]
r_rios has quit [Ping timeout: 265 seconds]
<DouweM> benzrf: we just got him to understand the term "method"
end_guy has quit [Ping timeout: 265 seconds]
<benzrf> spstarr_work: the code in that block goes into the singleton class for some_object
dx7 has quit [Read error: Connection reset by peer]
<shevy> DouweM stop trying to make complicated stuff too simple!
<spstarr_work> benzrf: a singleton class was 'static' to me
<benzrf> spstarr_work: or if you do 'def foo.bar'
dx7 has joined #ruby
<shevy> DouweM try to explain a monad in one sentence
<spstarr_work> non-instanced
<benzrf> that defines bar in foo's singleton class
<DouweM> shevy: I'd sooner kill myself
<spstarr_work> DouweM: a method was always a function inside a class
SCommette has quit [Quit: SCommette]
<spstarr_work> regardless of static or instantiated class
arubincloud has joined #ruby
<benzrf> monads are functors except that the function you map can add to the structure of the thing you're mapping it over.
<benzrf> shevy: do i win
mounibec has quit [Quit: mounibec]
<spstarr_work> MyClass.MyMethodName or MyClass.myVariable
<shevy> I don't even know what a functor is
<benzrf> spstarr_work: ruby's object model is v different from python's
skammer|afk is now known as skammer_
<tobiasvl> poor spstarr_work
<DouweM> benzrf: you win one internet
<benzrf> DouweM: B)
<spstarr_work> benzrf: so im finding out.....
demas has joined #ruby
<spstarr_work> and its hurting
<spstarr_work> :)
<benzrf> spstarr_work: :o
<shevy> spstarr_work nono
<shevy> spstarr_work these are just methods
<tobiasvl> spstarr_work: soon you will be assimilated
<tobiasvl> one of us
<tobiasvl> one of us
<benzrf> personally i find ruby's nicer to work withnale_
<DouweM> spstarr_work: it's easier :P everything is an object! now let's party!
<benzrf> *with
end_guy has joined #ruby
<shevy> lol
<shevy> I love this tab completion
lolmaus_ has joined #ruby
<benzrf> DouweM: python has that too
mengu has quit [Remote host closed the connection]
<spstarr_work> I See what you're saying
demas has quit [Remote host closed the connection]
<DouweM> benzrf: I know
<DouweM> but I want to party
<benzrf> spstarr_work: every object has a singleton class and a regular class
<spstarr_work> ruby does NOT allow you to expose instance variables directly
<benzrf> spstarr_work: if i say 'foo = "bar"'
<shevy> spstarr_work yeah you must use methods
<benzrf> spstarr_work: foo's class is String
<DouweM> spstarr_work: you need to define getter/setter methods
eichenwald has quit [Quit: eichenwald]
<benzrf> spstarr_work: but foo also has a special class that is its own and none other
<spstarr_work> hence get_instance_variable() built-in class method
<DouweM> spstarr_work: or reader/writer as they're called in Ruby
doodlehaus has quit [Ping timeout: 240 seconds]
<benzrf> spstarr_work: and if you stick methods in that class, ONLY foo will have those methods
<DouweM> spstarr_work: you don't ever use that though
<benzrf> spstarr_work: no other strings
bilbo_swaggins has joined #ruby
<DouweM> spstarr_work: it's just there for introspection
<shevy> he got rid of the term 'static'! I am happy :)
<DouweM> shevy: :)
<spstarr_work> lol :)
jrhe has joined #ruby
<spstarr_work> static == singleton class really
mrgoodcat has joined #ruby
roolo has joined #ruby
<spstarr_work> when you really want to be specific ;p
<benzrf> nonono
<shevy> hmm
<benzrf> >> "foo".singleton_class.superclass
<eval-in> benzrf => String (https://eval.in/127703)
<benzrf> strictly speakingcode
<benzrf> *speaking
lolmaus has quit [Ping timeout: 268 seconds]
alexju has quit [Remote host closed the connection]
<mrgoodcat> is anybody else having trouble using 'gem install' right now?
<benzrf> foo's actual class is its singleton class
<shevy> spstarr_work not sure, you can define a singleton method on an object instance too
<benzrf> and its singleton class is a subclass of String
<benzrf> :u
<spstarr_work> !
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> a few builtin kinds of objects dont have singleton classes, including symbols and fixnums
<benzrf> >> 3.singleton_class
<eval-in> benzrf => can't define singleton (TypeError) ... (https://eval.in/127704)
* spstarr_work rubs eyes and cries
<DouweM> benzrf: you should've stayed quiet until we got him to understand the implications of a class just being an object
<DouweM> :'(
<benzrf> o=
<benzrf> that's true in python as well tho
lolmaus_ has quit [Read error: Connection reset by peer]
<shevy> spstarr_work,
<shevy> >> class Foo; end; foo = Foo.new; def foo.yo; puts 'hi from yo'; end; foo.yo
<eval-in> shevy => hi from yo ... (https://eval.in/127705)
<DouweM> yeah but he's from the magical world of C
<benzrf> ohhh
<spstarr_work> actually do we have URLs or tutorials for C --> ruby converts?
<DouweM> and C-likes
<spstarr_work> it would be nice to see how this maps
<spstarr_work> :)
<shevy> spstarr_work sadly no
<shevy> only in japanese
<benzrf> spstarr_work: when you say 'def foo.bar', it defines the method bar in foo's singleton class
<shevy> or 10 years old
<DouweM> spstarr_work: just view it as a whole different beast :P
<benzrf> spstarr_work: you can also do 'class << foo; end;
<DouweM> forget everything you've learned up to this point
lolmaus has joined #ruby
<shevy> lol
<benzrf> and that's foo's singleton class
<shevy> <DouweM> forget everything you've learned up to this point <-- epic quote
<benzrf> spstarr_work: so for example
gilcosson has joined #ruby
<spstarr_work> benzrf: right foo.bar is a 'class method' for Foo
<benzrf> no it is not!
<shevy> !
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
<benzrf> foo.bar is a method on foo's singleton class
<shevy> it's on your object foo
<spstarr_work> er
kaspergrubbe has joined #ruby
<benzrf> >> foo = "bar"; class << foo; def baz; 3; end; end; foo.baz
<shevy> but forget singletons
<eval-in> benzrf => 3 (https://eval.in/127706)
<DouweM> benzrf: you're aware that a lot of people have trouble understanding singleton classes, *especially* when they're just starting out with Ruby? :p
<shevy> who mentioned singletons first anyway
<DouweM> +1 shevy
<DouweM> fucken benzrf
<spstarr_work> class Foo; def Foo.myclassInstanceMethod end; end; ... Foo.myclassInstanceMethod ?
<spstarr_work> or no
<benzrf> spstarr_work: yes
<spstarr_work> ooh
<shevy> <spstarr_work> static == singleton class really
<DouweM> spstarr_work: sure, but you could also use self. here
<shevy> aha!
<benzrf> spstarr_work: every object has its own special class separate from every other object's class
<DouweM> shevy: but it's not!
<shevy> spstarr_work was the first to mention singletons!
<spstarr_work> or def self.myclassInstanceMethod ?
<spstarr_work> same thing in this aspect ?
<shevy> so he confused himself
<DouweM> spstarr_work: either, because self == Foo at that point
<DouweM> shevy: a skill I admire
* spstarr_work smile
<shevy> DouweM lol
<benzrf> spstarr_work: when you say that foo is an instance of string, what you really mean is that foo is an instance of its own unique class that is a subclass of string
<benzrf> spstarr_work: this lets objects have their own methods that other objects 'of the same class' dont
<benzrf> spstarr_work: like a 'baz' method on only oen string
<benzrf> *one
cj3kim has joined #ruby
<shevy> btw spstarr_work are you at work?
<spstarr_work> yes and about to get lunch ;)
<shevy> ah ok
<benzrf> spstarr_work: def foo.bar is defining bar in foo's 'real' class, which is a subclass of String
arietis has quit [Quit: Computer has gone to sleep.]
<DouweM> shevy: good question
<shevy> DouweM I just thought he has enough time to learn ruby at work, that would be quite a feat
<benzrf> spstarr_work: in a class block, 'self' is the class
<shevy> I never have enough time for anything at work :(
<spstarr_work> benzrf: right for the singleton class of 'foo' only
<benzrf> right
<spstarr_work> an INSTANCE of foo would not have bar() as a method
<benzrf> spstarr_work: so 'def self.something' defines the method 'something' on the singleton class of self, which is the class you're writing
<spstarr_work> only the singleton ('static') class
* spstarr_work runs
<spstarr_work> 'static :D
<spstarr_work> i have static shock
<DouweM> nonono
<benzrf> never use static when talking about ruby
<DouweM> lose hat
<DouweM> eh
<benzrf> it has nothing to do with anything
<DouweM> *that
maletor has joined #ruby
<DouweM> static != singleton
<benzrf> and nothing in ruby is like static in java
<DouweM> static isn't a thing in Ruby
kaspergr_ has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Read error: Operation timed out]
bluOxigen has quit [Read error: Connection reset by peer]
<benzrf> lose the comparison o-o
<DouweM> look what you've done, you broke him :(
<shevy> damn it
<benzrf> oh nooo
<shevy> he uses the old word again
SCommette has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
<DouweM> yeah all our hard work
* DouweM hold shevy and sobs
<spstarr_work> ok so let me ask you this
<benzrf> spstarr_work: rubies are not like coffee
vlad_starkov has quit [Remote host closed the connection]
<spstarr_work> why is singleton != static in ruby?
<mrgoodcat> is rubygems.org broken right now? or does it frequently slow down?
<shevy> !!!
<benzrf> spstarr_work: they aren't related
<DouweM> spstarr_work: there's no static in ruby
<shevy> lol
<benzrf> spstarr_work: that's like asking why isn't def like class
<benzrf> they're just
<spstarr_work> benzrf: what do you mean 'not related'
<DouweM> spstarr_work: singleton class is a whole different concept
<benzrf> different things
toastynerd has joined #ruby
<benzrf> there's no reason why they SHOULD be related
<benzrf> they have nothing to do with each other
<shevy> spstarr_work singleton is unique
<spstarr_work> but outside of ruby singleton == static is it not or am I mixing up something altogether?
<benzrf> no
Foo1 has joined #ruby
<DouweM> mixups all around
<shevy> what is the difference
<benzrf> spstarr_work: a singleton class is just a class for a specific object
<benzrf> instead of a group of objects
werdnativ has joined #ruby
petey has quit [Remote host closed the connection]
doodlehaus has joined #ruby
<spstarr_work> benzrf: right but a singleton is a class for when the class has NO instances
<DouweM> NO
<benzrf> no
<spstarr_work> ??
petey has joined #ruby
<benzrf> 11:20 < benzrf> spstarr_work: a singleton class is just a class for a specific object
<DouweM> let's forget singleton classes for now...
<benzrf> 11:20 < benzrf> instead of a group of objects
<benzrf> any object in ruby has its own class that no other object has
<benzrf> every string is actually an instance of a special unique class just for that string
<DouweM> I know experienced Ruby devs who have a hard time wrapping their head around the subject
<benzrf> which is a subclass of String
<DouweM> he really doesn't need to know that at this point
Vovko has joined #ruby
<benzrf> kk
<DouweM> spstarr_work: are you clear on the ivar thing from before?
<spstarr_work> yes i have that working in my test code ;)
<DouweM> spstarr_work: do you understand that a class is just another object?
maletor has quit [Client Quit]
<DouweM> spstarr_work: an instance of Class, to be precise
mikecmpbll has joined #ruby
<bilbo_swaggins> So what is it called when I do
<spstarr_work> DouweM: an instance of a Class or of Class?
<DouweM> spstarr_work: well, if you have any other questions on that, let us know. if you feel comfortable dealing with the class hierarchy stuff in Ruby, come back for benzrf's class on singleton classes
bluOxigen has joined #ruby
<bilbo_swaggins> class Foo; def self.bar; :baz; end; end; Foo.bar
LekeFly has joined #ruby
<bilbo_swaggins> >> class Foo; def self.bar; :baz; end; end; Foo.bar
<eval-in> bilbo_swaggins => :baz (https://eval.in/127709)
<DouweM> spstarr_work: of Class, literally. Class is the a class, of which all classes are instances
<bilbo_swaggins> I think that's what he means by "static"
<DouweM> yeah it is
<benzrf> DouweM: =p
<DouweM> but we got past that, until benzrf started messing with his head again
<spstarr_work> DouweM: i get that 'Class' itself is a object of ruby in this case a built-in
mehlah has quit [Read error: Connection reset by peer]
<DouweM> spstarr_work: sure
<spstarr_work> and any NEW clas you create inherits from base 'Class'
<bilbo_swaggins> Someone said something that made it ambiguous
<benzrf> spstarr_work: Class is an instance of itself
<spstarr_work> effectively hence get_instance_variable()
<benzrf> spstarr_work: no, new classes are subclasses of Object
<spstarr_work> is a method of base 'Class'
<benzrf> spstarr_work: classes are INSTANCES of Class
renklaf_ has quit [Remote host closed the connection]
<benzrf> spstarr_work: 'foo' is an instance of String
Xiti has joined #ruby
bthesorceror has quit [Remote host closed the connection]
<benzrf> spstarr_work: and Object is an instance of Class
yfeldblum has joined #ruby
LekeFly has quit [Client Quit]
<spstarr_work> i guess I need to see the heirchy of this
<spstarr_work> but i need to grab lunch :)
<benzrf> spstarr_work: kk
<DouweM> see ya later :)
<benzrf> bye o=
petey has quit [Ping timeout: 240 seconds]
<DouweM> I'm taking this opportunity to watch the americans
<DouweM> the show that is
bthesorc_ has joined #ruby
browndawg1 has quit [Quit: Leaving.]
Salve has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
gilcosson has quit [Remote host closed the connection]
browndawg has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
Salve has quit [Client Quit]
tagrudev has quit [Quit: Me = Awesome]
TorpedoSkyline_ has quit [Quit: ZNC - http://znc.in]
mehlah has joined #ruby
<bilbo_swaggins> okay now that we're done, please explain the difference between a Proc and a Lambda, like I'm five
victorbjelkholm_ has joined #ruby
<bilbo_swaggins> Or like I'm 4 even.
jonatasdp has joined #ruby
User458764 has joined #ruby
<DouweM> well for starters, one is longer than the other
toastynerd has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
User458764 has quit [Client Quit]
<bilbo_swaggins> Truth.reveal
<benzrf> bilbo_swaggins: it is quite simple
_tpavel has joined #ruby
<benzrf> bilbo_swaggins: a lambda acts exactly like a method
<benzrf> bilbo_swaggins: a proc acts exactly like a bloc
<benzrf> k
victorbjelkholm_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 265 seconds]
<benzrf> so 'next' in code going into a proc will work
victorbjelkholm_ has joined #ruby
<benzrf> it will not in a lambda
<benzrf> oh wait wut
anoldhacker has joined #ruby
<benzrf> i guess it will o.o
Advocation has joined #ruby
<DouweM> and return from a proc will break out of your method
<bilbo_swaggins> but a lambda can scope instance variables?
<benzrf> >.>
lolmaus_ has joined #ruby
<DouweM> benzrf: hehe, so much for quite simple :)
<benzrf> ok it is OTHERWISE quite simple ;-;
lolmaus has quit [Ping timeout: 240 seconds]
<benzrf> bilbo_swaggins: the two main diffs are:
<bilbo_swaggins> yeah I'd heard a similar explanation, but it didn't quite click
<bilbo_swaggins> okay go
patrick99e99 has joined #ruby
poikon_ has joined #ruby
<benzrf> 1. procs are flexible about how arguments work, lambdas arent
axl_ has joined #ruby
<benzrf> give too many to a block/proc, theyre discarded
<benzrf> too few, nils for the rest
<benzrf> lists are destructured into args
<benzrf> lambda arguments work exactly like methods
danman_ has joined #ruby
afreidah1 has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
newUser1234 has joined #ruby
<benzrf> 2. lambda control keywords work like in methods, not like in blocks
<benzrf> bilbo_swaggins: 'return' in a block returns from the method that the block was defined in
kaspergrubbe has joined #ruby
<benzrf> bilbo_swaggins: 'return' in a lambda returns from the lambda
lolmaus_ has quit [Read error: Connection reset by peer]
poikon has quit [Read error: Connection reset by peer]
<benzrf> bilbo_swaggins: and i think a few other kwds like break work differently
mrgoodcat has left #ruby [#ruby]
<anoldhacker> I have a question for someone familiar with ruby internals @ https://www.ruby-forum.com/topic/4484730. I would really appreciate a response.
lolmaus has joined #ruby
peret has quit [Remote host closed the connection]
armyriad has quit [Read error: Operation timed out]
etqqkoiflwhb has joined #ruby
tvw has quit []
armyriad has joined #ruby
danman__ has quit [Ping timeout: 240 seconds]
<benzrf> anoldhacker: redefining __send__ and __object_id__ might be dangerous
<benzrf> equal? might be ok
gilcosson has joined #ruby
timonv has quit [Remote host closed the connection]
<bilbo_swaggins> I will spend some time today exploring the arcanities of function-objects
<benzrf> oh fuckin boy
<DouweM> benzrf is right
<anoldhacker> I'm actually planning on leaving __send__ alone.
<benzrf> kk
<DouweM> don't mess with __ methods, #equal? is fine
<benzrf> ^rule of thumpba_
<benzrf> *thumb
<benzrf> glah
timonv has joined #ruby
<DouweM> why do you want to override __object_id__ ?
froy has joined #ruby
afreidah has quit [Ping timeout: 265 seconds]
flowerpot has quit [Quit: leaving]
<bilbo_swaggins> has anyone found this worthwhile?
<bilbo_swaggins> in a language like Ruby, I mean
MatthewsFace has quit [Quit: This computer has gone to sleep]
<anoldhacker> Because roles need to be really thin wrappers. I'm wanting to override all identity methods to avoid having an identity crisis.
bilbo_swaggins is now known as bilbo_bbl
<DouweM> anoldhacker: if you want to be able to put them in hashes, you can override #hash
<benzrf> bilbo_bbl: just learn haskell already o-o
<benzrf> shevy: functors are so easy
<DouweM> lol
<anoldhacker> Yep. & #eql? to make it all work.
<benzrf> shevy: they are just things where it makes sense to apply a function to 'their insides'
<benzrf> shevy: i.e. map
<benzrf> shevy: Array is a functor where 'fmap' is #map
spicerack has joined #ruby
<benzrf> shevy: Hash could be a functor where 'fmap' is map over the values
<DouweM> I really liked writing Haskell
noop has quit [Ping timeout: 265 seconds]
anarang has quit [Quit: Leaving]
freeone3000 has joined #ruby
mrnugget has joined #ruby
<benzrf> shevy: DB queries can be functorized by making 'fmap' work on the results, once you run the query
<benzrf> shevy: Procs are functors if you apply the block to their 'future result'
<benzrf> that is, compose em
<bilbo_bbl> I have a hard time balancing practical projects with heavy theory
nomenkun has quit [Remote host closed the connection]
<bilbo_bbl> I sort of jump around a lot
<bilbo_bbl> and never finish things
<benzrf> bilbo_bbl: learn haskell
<benzrf> its fun
Snafu777 has joined #ruby
<bilbo_bbl> but sure I want to learn Haskell
timonv has quit [Ping timeout: 240 seconds]
<anoldhacker> #__object_id__ is a bit of a special thing. Since Role is inheriting from BasicObject, this is gonna happen. I'm just nervous about it.
<bilbo_bbl> alright I'll take that endorsement
lw has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<benzrf> bilbo_bbl: haskell is fun the same way abstract math is fun
lw has quit [Client Quit]
<benzrf> bilbo_bbl: do u like abstract math
nomenkun has joined #ruby
<DouweM> anoldhacker: why do you think you need to override it?
<benzrf> :-D
<DouweM> anoldhacker: just leave it alone and come back when it gives you trouble
kevind_ has joined #ruby
<DouweM> which it probably won't
alexju has joined #ruby
<benzrf> anoldhacker: i keep reading ur nick as 'arnoldhacker'
<bilbo_bbl> thanks benzrf.
<DouweM> me too
<bilbo_bbl> bbl
<anoldhacker> :P
<freeone3000> In a ruby script, Net::SSH.start() throws Errno::ETIMEDOUT, while in irb, with the same arguments, it does not. What is the difference?
<benzrf> anoldhacker: maybe make it an_old_hacker
<bilbo_bbl> benzrf: I loved discrete math
rippa has joined #ruby
hobodave has joined #ruby
<benzrf> freeone3000: the rest of the script
<benzrf> bilbo_bbl: learn haskell
<bilbo_bbl> calculus I was always too lazy to get into
<benzrf> it will explode your braincrash
<benzrf> *brain
<bilbo_bbl> but I've been more interested in lately
nari has quit [Ping timeout: 268 seconds]
<benzrf> it has static typing but it doesnt suck
sigurding has joined #ruby
<freeone3000> benzrf: That's an oddly specific error for some random line a few dozen lines up to interfere, especially with this being the first invocation of Net::SSH.
<bilbo_bbl> Ruby is the most typed untyped language ever
<benzrf> bilbo_bbl: 90% of errors in haskell are type errors
<anoldhacker> There are times to wait & see & times to aggressively chase corner cases. Something weird like trying to add DCI to a language feels very much like a time to chase corner cases to me.
<bilbo_bbl> I could stand some inferred static typing
<benzrf> bilbo_bbl: haskell has nearly perfect inference
<benzrf> :-D
<bilbo_bbl> Most of my Ruby bugs are type errors
<benzrf> it's good practice to write the types of top-level functions, but everything else is normally inferred
<DouweM> anoldhacker: :) I've warned you, I'd stay away from __ methods. But hey, try it and maybe you won't crash and burn
<bilbo_bbl> or, sorry, "class" errors
<benzrf> bilbo_bbl: haskell has higher-order functions out the wazoo
<bilbo_bbl> sweet
<benzrf> your wazoo will be full of functions
<benzrf> do you want this y/n
<bilbo_bbl> I don't know
sigurding has quit [Client Quit]
kevind has quit [Ping timeout: 265 seconds]
kevind_ is now known as kevind
maletor has joined #ruby
Advocation has quit [Quit: Advocation]
freezey has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
<benzrf> replicate <$> readLn <*> pure 'y'
<benzrf> Prelude Control.Applicative> replicate <$> readLn <*> pure 'y'
<benzrf> 35
<benzrf> "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
<spstarr_work> food == good
elementz has joined #ruby
tonni_ has quit [Quit: Leaving...]
nomenkun has quit [Ping timeout: 268 seconds]
lolmaus has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
lolmaus has joined #ruby
rvraghav93 has quit [Ping timeout: 255 seconds]
rvraghav93 has joined #ruby
timonv has joined #ruby
siwica has joined #ruby
bthesorc_ has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
brandon_1 has quit [Ping timeout: 264 seconds]
<freeone3000> https://gist.github.com/freeone3000/651a0294ea97e8186419 is my code. Why does the script give me an Errno:ETIMEDOUT on line 40 of noctilucent_builder.rb but not on line 34 of irb.rb?
workmad3 has joined #ruby
cj3kim has joined #ruby
<DouweM> strange
tylersmith has joined #ruby
zachallett has quit [Remote host closed the connection]
cj3kim has quit [Read error: Connection reset by peer]
abdulsattar has joined #ruby
sputnik1_ has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
okdas has joined #ruby
sleepee has joined #ruby
sleepee has quit [Read error: Connection reset by peer]
brandon__ has joined #ruby
prs has quit [Ping timeout: 260 seconds]
prs has joined #ruby
skammer_ is now known as skammer|afk
petey has joined #ruby
skammer|afk is now known as skammer_
Speed has quit [Ping timeout: 264 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
lolmaus has quit [Read error: Connection reset by peer]
phansch has joined #ruby
yfeldblum has joined #ruby
lolmaus has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Voodoofish430 has joined #ruby
sputnik1_ is now known as sputnik13net
andy__ has quit [Remote host closed the connection]
gilcosson has quit [Remote host closed the connection]
<olivier_bK> how i can get all params between /exportStats and <br/>
<bilbo_bbl> thanks again benzrf. I'll learn me a haskell for great good and tackle sinatra at the same time
havenwood has joined #ruby
juarlex has joined #ruby
<benzrf> B)
<benzrf> bilbo_bbl: take it in bites
<bilbo_bbl> I copied your chat lines into some notes
<benzrf> dont expect to grok monads in ur first week
<bilbo_bbl> righto
ikaros has quit [Quit: Ex-Chat]
petey_ has joined #ruby
fieldfirst has joined #ruby
LekeFly has joined #ruby
LekeFly has quit [Client Quit]
shashank_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
geggam has joined #ruby
shashank_ has quit [Client Quit]
senayar_ has joined #ruby
lolmaus has joined #ruby
shashank_ has joined #ruby
Es0teric has joined #ruby
shashank_ has quit [Remote host closed the connection]
pietr0 has joined #ruby
petey has quit [Ping timeout: 268 seconds]
Macaveli has quit [Ping timeout: 252 seconds]
senayar has quit [Ping timeout: 255 seconds]
gilcosson has joined #ruby
monkegjinni has quit [Remote host closed the connection]
r0nin has joined #ruby
monkegjinni has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
agarie has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
r0nin has quit [Remote host closed the connection]
lolmaus has quit [Read error: Connection reset by peer]
jzig has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
lolmaus has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
prs has quit [Ping timeout: 260 seconds]
lolmaus has joined #ruby
gilcosson has quit [Remote host closed the connection]
peret has joined #ruby
monkegjinni has quit [Ping timeout: 268 seconds]
gilcosson has joined #ruby
alexju has quit [Remote host closed the connection]
lolmaus_ has joined #ruby
gilcosson has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
CreativeEmbassy has joined #ruby
<jlebrech> is there a function to turn: %{a 1 b 2 c 3} into {'a' => 1, 'b' => 2, 'c' => 3}?
bthesorceror has joined #ruby
lolmaus has quit [Ping timeout: 268 seconds]
cover has quit [Ping timeout: 265 seconds]
mercwithamouth has joined #ruby
CaptainJet has joined #ruby
djbender has joined #ruby
djbender has quit [Client Quit]
r_rios has joined #ruby
djbender has joined #ruby
rrios has joined #ruby
<jlebrech> i mean %w{}
prs has joined #ruby
aspires has joined #ruby
freezey has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 265 seconds]
freezey has joined #ruby
shlant has joined #ruby
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
<havenwood> >> %w{a 1 b 2 c 3}.each_slice(2).map { |k, v| [k, v.to_i] }.to_h
<eval-in> havenwood => {"a"=>1, "b"=>2, "c"=>3} (https://eval.in/127727)
mikepack has joined #ruby
cj3kim has joined #ruby
enebo has quit [Quit: enebo]
CaptainJet has quit [Read error: Connection reset by peer]
danman__ has joined #ruby
<havenwood> jlebrech: ^ but simpler if you don't need to turn the value from a String into a Fixnum.
tobago has quit [Remote host closed the connection]
<jlebrech> spatting into hash does it
r0nin has joined #ruby
<benzrf> havenwood: or you could just do:
rm_ has joined #ruby
<benzrf> Prelude Control.Applicative> replicate <$> readLn <*> pure 'y'
<benzrf> 35
<benzrf> "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
anoldhacker1 has joined #ruby
<benzrf> oops
<havenwood> :O
<benzrf> >> Hash[*%w{a 1 b 2 c 3}]
<eval-in> benzrf => {"a"=>"1", "b"=>"2", "c"=>"3"} (https://eval.in/127728)
maletor has joined #ruby
<DouweM> benzrf: nice
<juni0r> Hash[*%w{a 1 b 2 c 3}] ?
<havenwood> benzrf: like i said, value into an int
<DouweM> I had forgotten Hash took an arglist of key/value pairs
danman_ has quit [Ping timeout: 252 seconds]
<benzrf> havenwood: >:(
<havenwood> benzrf: but sure, could then map
<benzrf> >> Hash[*%w{a 1 b 2 c 3}].map!
<eval-in> benzrf => undefined method `map!' for {"a"=>"1", "b"=>"2", "c"=>"3"}:Hash (NoMethodError) ... (https://eval.in/127729)
<jlebrech> :)
<benzrf> dang
CaptainJet has joined #ruby
<canton7> mapping the values then makes it a bit more ugly, as you get arrays back
nolic has joined #ruby
danman_ has joined #ruby
anoldhacker has quit [Ping timeout: 240 seconds]
cj3kim has quit [Ping timeout: 255 seconds]
<havenwood> #map_pair, #map_key, and #map_value would come in handy
chrisramon has joined #ruby
apeiros has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
jds has quit [Quit: Connection closed for inactivity]
maletor_ has joined #ruby
chrisramon has quit [Client Quit]
lolmaus_ has quit [Read error: Connection reset by peer]
chrisramon has joined #ruby
apeiros has joined #ruby
danman__ has quit [Ping timeout: 265 seconds]
einarj has quit [Remote host closed the connection]
lolmaus has joined #ruby
<canton7> aha, I see you're the author of the top google result for those :P
<canton7> yeah, very handy, agreed
CaptainJet has quit [Ping timeout: 265 seconds]
gilcosson has joined #ruby
maletor__ has joined #ruby
mostlybadfly has joined #ruby
freerobby has quit [Quit: Leaving.]
maletor has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
aganov has quit [Quit: Leaving]
CaptainJet has joined #ruby
chrisseaton has joined #ruby
fabrice31 has quit [Remote host closed the connection]
cover has joined #ruby
aspires_ has joined #ruby
patrick99e99 has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
maletor_ has quit [Ping timeout: 265 seconds]
rm_ has quit [Remote host closed the connection]
zarul has joined #ruby
anoldhacker1 has left #ruby [#ruby]
newUser1234 has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
aspires has quit [Ping timeout: 240 seconds]
lolmaus has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
saarinen has joined #ruby
<benzrf> havenwood: damn straight they would
prs has quit [Changing host]
prs has joined #ruby
lolmaus has joined #ruby
doodleha_ has joined #ruby
saarinen has quit [Client Quit]
lolmaus has quit [Read error: Connection reset by peer]
tgkokk has joined #ruby
<DouweM> yeah, very useful
doodlehaus has quit [Ping timeout: 240 seconds]
oneawayman has quit [Ping timeout: 255 seconds]
lolmaus has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
sigurding has joined #ruby
etqqkoiflwhb has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
ffranz has quit [Ping timeout: 268 seconds]
<benzrf> ok u know what node.js needs
<benzrf> delimited continuations
fgo has quit [Remote host closed the connection]
* spstarr_work subclasses DouweM
lukec has quit [Quit: lukec]
<benzrf> class Spstarr < DouweM
marcdel_ has quit []
<DouweM> :D
<benzrf> def at_work?
<benzrf> @nick.end_with? 'work'
<benzrf> e
<benzrf> end
<benzrf> oops
maletor has joined #ruby
JarJarBinks has quit [Ping timeout: 255 seconds]
rm_ has quit [Ping timeout: 264 seconds]
cndiv has joined #ruby
Squarepy has joined #ruby
JarJarBinks has joined #ruby
maletor_ has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 255 seconds]
maletor__ has quit [Ping timeout: 265 seconds]
saarinen has joined #ruby
bilbo_bbl is now known as lex_functor
<benzrf> lex_functor: lex more like lens
<benzrf> B) B) B)
<benzrf> bbl
<lex_functor> you love it, don't lie
benzrf is now known as benzrf|offline
maletor has quit [Ping timeout: 268 seconds]
rh1n0 has joined #ruby
kaspergrubbe has quit []
wallerdev has quit [Quit: wallerdev]
lolmaus has quit [Read error: Connection reset by peer]
skammer has joined #ruby
skammer_ has quit [Ping timeout: 268 seconds]
lolmaus has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
<shlant> hey ruby crew. This is kind of chef-heavy stuff, but I was wondering why this doesn't work and if it's even possible: https://gist.github.com/MrMMorris/678f577074747e698655
sethetter has left #ruby [#ruby]
spacemud has joined #ruby
<shlant> basically I want to be able to handle no key, single key value and multiple key value
lolmaus has joined #ruby
<shlant> in reference to up/down
<spstarr_work> benzrf|offline: hehe
cami_____ has quit []
maletor_ has quit [Read error: Connection reset by peer]
zigomir has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 265 seconds]
juarlex_ has joined #ruby
maletor has joined #ruby
SCommette has quit [Quit: SCommette]
danman_ has quit [Quit: danman_]
zachallett has joined #ruby
SCommette has joined #ruby
juarlex has quit [Ping timeout: 252 seconds]
bklane has joined #ruby
cj3kim has joined #ruby
abdulsattar has joined #ruby
<bklane> I am using a phantomjs gem for scraping and keep getting the error: 'OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read finished A: decryption failed or bad record mac', anyone know how to solve it?
gilcosson has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
<bklane> I'm hosting on heroku, (unsure if that makes a difference)
yasushi has quit [Remote host closed the connection]
ffranz has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
toastynerd has joined #ruby
<xybre> bklane: HAve you checked to see what the input its processing is?
davy has joined #ruby
<bklane> xybre: yup, im scraping something thats identical for each page, on a single domain yet it will randomly run that error when the jobs are being processed in DelayedJobs
<bklane> I just re-run the jobs and they will process but want to try to stop it from happening to begin with
bricker has joined #ruby
iliketurtles has joined #ruby
sabooky has joined #ruby
<sabooky> If I have a method that takes arguments and a block, is there a way to pass the block using curly braces on one line?
<sabooky> my_method arg1, arg2, {my block}
<xybre> bklane: Basically what I'm asking is that since its an SSL decryption error, maybe you're not getting the payload you expect, so you should look at the raw payload.
davy_ has joined #ruby
<sabooky> Or do i have to use do/end syntax
<xybre> sabooky: Yeah, but you have to use parens.
cj3kim has quit [Ping timeout: 265 seconds]
Advocation has joined #ruby
<xybre> sabooky: my_method(arg1, arg2){ my_block }
lolmaus has quit [Read error: Connection reset by peer]
maletor has quit [Read error: Connection reset by peer]
r_rios has quit [Remote host closed the connection]
rrios has quit [Remote host closed the connection]
markisonfire has joined #ruby
Spami has joined #ruby
freeone3000 has quit [Ping timeout: 255 seconds]
lkba has joined #ruby
iliketurtles has quit [Client Quit]
alexju has joined #ruby
lolmaus has joined #ruby
<bklane> xybre: if im doing a get request for a page, should i use http or https?
strg has quit [Quit: Linkinus - http://linkinus.com]
davy has quit [Ping timeout: 265 seconds]
Jeticus has joined #ruby
maletor has joined #ruby
r_rios has joined #ruby
greggroth has joined #ruby
rrios has joined #ruby
kitak has joined #ruby
<sabooky> xybre: Thanks, yeah that worked. Had a brain glitch since it was a ruby dsl. Thanks!
<bklane> xybre: yup thats the problem, the site redirects to https and when i do a request with https it works fine but on the http request it sometimes fails
wallerdev has joined #ruby
CaptainJet has quit [Ping timeout: 268 seconds]
<bklane> thank you
crystal77 has quit [Quit: Computer has gone to sleep.]
<xybre> bklane: :D
<xybre> sabooky: Its all good :)
CreativeEmbassy has joined #ruby
Speed has joined #ruby
chuk_ has joined #ruby
papercode has joined #ruby
ce_afk is now known as cescalante
lolmaus has quit [Read error: Connection reset by peer]
dagobah has quit [Quit: Leaving...]
subbyyy_ has joined #ruby
jespada has quit [Quit: Leaving]
kitak has quit [Ping timeout: 260 seconds]
dkamioka has joined #ruby
greggroth has quit [Ping timeout: 265 seconds]
oneawayman has joined #ruby
iliketurtles has joined #ruby
maletor has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 255 seconds]
YamakasY has quit [Ping timeout: 268 seconds]
gilcosson has joined #ruby
Macaveli has joined #ruby
YamakasY has joined #ruby
danno1 has quit [Read error: Connection reset by peer]
danno1 has joined #ruby
flowerhack has joined #ruby
f0ster has joined #ruby
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
rm_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
timonv has quit [Remote host closed the connection]
apeiros has joined #ruby
greenrose has quit []
freerobby has joined #ruby
timonv has joined #ruby
<havenwood> f0ster: File.delete '-rf ~'
<havenwood> :P
sailias1 has quit [Read error: Operation timed out]
andikr has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
cndiv has quit [Quit: WeeChat 0.4.3]
tvw has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
<f0ster> haha, from ruby
tnk1 has joined #ruby
maletor has quit [Read error: Connection reset by peer]
petey_ has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 255 seconds]
tnk1 has quit [Client Quit]
northfurr has quit [Ping timeout: 268 seconds]
petey has joined #ruby
gilcosson has quit [Remote host closed the connection]
tgkokk has quit [Read error: Connection reset by peer]
tnk1 has joined #ruby
f0ster has quit [Changing host]
f0ster has joined #ruby
<RubyPanther> I was building mruby for android yesterday and the android toolchain did indeed take a ~ literally, and created a dir called ~ in the localdir, I just took a deep breath and said rm -rf ./\~
<f0ster> and that worked?
<RubyPanther> yeah, the ./ is probably not needed but I wanted to protect myself from my own mistakes ;)
browndawg has quit [Read error: Connection timed out]
<matti> RubyPanther: And then you by accident made space between . and /
<matti> ;]
rabeldable has joined #ruby
<RubyPanther> matti: mistakes can be deadly, I did stare at the screen for a few seconds before pressing enter
<matti> ;]
<matti> I am sure you did.
klaut_ has quit [Remote host closed the connection]
<RubyPanther> What is worse on a new sysadmin is creating too many files in a dir for bash to list, because it breaks rm using wildcards
petey has quit [Ping timeout: 265 seconds]
browndawg has joined #ruby
<RubyPanther> you can still delete them with a glob... using Ruby (or Perl)
<matti> RubyPanther: Or using find, or using xargs.
centrx has joined #ruby
<RubyPanther> xargs is less help unless you're also using find because you can't give ls a glob, bash still has to handle the args
alk_ has left #ruby [#ruby]
<RubyPanther> They should succeed, but they'll probably also cry and worry they picked the wrong new job ;)
nanoyak has joined #ruby
<matti> Its actually more fun to see a developer who is trying to troubleshoot issues on Linux box.
deadlock has joined #ruby
tcstar has joined #ruby
<RubyPanther> Well, in that case you might stump them and waste a whole week
yacks has quit [Quit: Leaving]
<matti> Indeed
<matti> ;]
dkamioka has quit [Remote host closed the connection]
cj3kim has joined #ruby
<RubyPanther> You can probably do that much damage just with a carefully exported env var
<matti> RubyPanther: Interesting would be also: make wchar literal file name and then flip back to LA_ALL/LANG = C
<matti> RubyPanther: And ask people to remove it ;]
m0s has quit [Quit: ZNC - http://znc.in]
razrunelord has joined #ruby
<razrunelord> How do I make ruby not display floats in exponential format?
doodlehaus has joined #ruby
<RubyPanther> razrunelord: make them smaller
rm_ has quit [Read error: Connection timed out]
<RubyPanther> razrunelord: also, define "display"
m0s^away has joined #ruby
browndawg has quit [Max SendQ exceeded]
rh1n0 has quit [Quit: im out!]
<matti> RubyPanther: I had a Senior developer failing to notice "logout" in his .bashrc :)
<razrunelord> 1.111111111111111e+129 I don't want this RubyPanther
m0s^away is now known as m0s
<matti> razrunelord: "%.2f" ;P
Ziarkaen has joined #ruby
m0s has left #ruby [#ruby]
rm_ has joined #ruby
rm_ has quit [Remote host closed the connection]
<matti> RubyPanther: chattr +i file.txt and giving them full sudo/root access and asking "get rid of it". Also fun.
browndawg has joined #ruby
<matti> Ahh
rm_ has joined #ruby
davy_ has quit [Remote host closed the connection]
doodleha_ has quit [Ping timeout: 265 seconds]
<sabooky> Not sure if this is the correct channel to ask this in but.. is there a way to `bundle install` only one group?
smathieu has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
<Senjai> sabooky: You mean when you have groups segregated in a gemfile like rails app?
<RubyPanther> >> "%f" % 99999999999999999999999999999999999999999.1
danshultz has quit [Remote host closed the connection]
<eval-in> RubyPanther => "100000000000000000620008645040778319495168.000000" (https://eval.in/127753)
<sabooky> Senjai: Correct
jamto11 has quit []
danshultz has joined #ruby
tgkokk has joined #ruby
<Senjai> sabooky: It installs the group depending on what RAILS_ENV is set to.
nvrch has quit [Quit: nvrch]
<sabooky> Senjai: It's not a rails app, but iirc rails does a similar thing with bundle groups
<RubyPanther> razrunelord: As a float they're the same and it doesn't (can't!) matter, but as a string you need to format with sprintf aka %
browndawg has quit [Max SendQ exceeded]
<Senjai> sabooky: Rails uses RAILS_ENV to determine the group, I'd look into how it does it
<razrunelord> Thanks RubyPanther got it!
<Senjai> as I'm not suire
<Senjai> RAILS_ENV=production bundle install only installs the production group and any ungrouped gems
davy has joined #ruby
m0s has joined #ruby
<matti> RubyPanther: With the floats you reminded me about Calculator Unboxing video ;]
<sabooky> Senjai: Okay, I'll check the rails code to see if I find any clues in there.
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
jorts has quit [Quit: jorts]
<matti> RubyPanther, razrunelord: https://www.youtube.com/watch?v=wyl-V0mrEio
juarlex_ has quit [Remote host closed the connection]
jorts has joined #ruby
coderxin_ has quit [Ping timeout: 252 seconds]
rm_ has quit [Ping timeout: 265 seconds]
patrick99e99 has joined #ruby
browndawg has joined #ruby
juarlex has joined #ruby
browndawg has quit [Max SendQ exceeded]
mikecmpbll has quit [Quit: i've nodded off.]
r_rios has quit [Remote host closed the connection]
rrios has quit [Read error: Connection reset by peer]
ahawkins_ is now known as ahawkins
ascarter has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
timonv has joined #ruby
enebo has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
jaywastaken has quit [Quit: This computer has gone to sleep]
dstynchula has joined #ruby
vlad_starkov has joined #ruby
browndawg has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
browndawg has quit [Max SendQ exceeded]
certaint1 has joined #ruby
r_rios has joined #ruby
rrios has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
contradictioned_ has joined #ruby
browndawg has quit [Max SendQ exceeded]
centrx has quit [Quit: All this computer hacking is making me thirsty]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
TMM has quit [Quit: Ex-Chat]
maletor has joined #ruby
certainty has quit [Ping timeout: 245 seconds]
contradictioned has quit [Ping timeout: 245 seconds]
f0ster has quit [Remote host closed the connection]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
shaunbaker has quit [Remote host closed the connection]
nanoyak has quit [Read error: Connection reset by peer]
Ziarkaen has quit [Read error: Operation timed out]
greggroth has joined #ruby
senayar has joined #ruby
nanoyak has joined #ruby
vlad_starkov has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
vlad_starkov has quit [Remote host closed the connection]
x1337807x has joined #ruby
vlad_starkov has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
bluOxigen has joined #ruby
<spstarr_work> so
<spstarr_work> can you even do this in ruby
<spstarr_work> MyClass.instance_variable_get(:@aHash[:company])
<spstarr_work> assuming you 'did' create a instance hash variable
jeebster has joined #ruby
<spstarr_work> it says thats not valid
senayar has quit [Ping timeout: 240 seconds]
<DouweM> spstarr_work: that makes little sense :)
<lex_functor> Any of y'all in the Central Valley, CA, region? I'd like to organize a meetup for Rubyists near me.
<DouweM> the variable is still named @aHash
<DouweM> the [:company] part is then a call on the returned Hash
<lex_functor> there are some existing hacker spaces here, including ruby events
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> :@aHash[:company] # is not valid
<apeiros> I guess you meant MyClass.instance_variable_get(:@aHash)[:company]
ascarter has joined #ruby
<spstarr_work> ahh
<spstarr_work> interesting
<apeiros> also, probably rather an_instance_of_my_class.instance_variable_get…
<DouweM> spstarr_work: `:@aHash` is just a symbol argument to instance_variable_get, which will have it looked up the ivar by that name and return it
<apeiros> (it's possible on the class too, but much less likely that that's what you actually want)
<DouweM> spstarr_work: on that returned ivar value, the Hash in this case, you can call the :company lookup
<spstarr_work> yeah that works
<spstarr_work> interesting
greggroth has quit [Ping timeout: 264 seconds]
Burgestrand has joined #ruby
elaptics is now known as elaptics`away
<DouweM> apeiros: this is related to what we were talking about with spstarr_work earlier today. he was actually looking for an ivar on the class then :)
tkuchiki has quit [Remote host closed the connection]
dkamioka_ has joined #ruby
<apeiros> ok
<spstarr_work> DouweM: that is interesting
<spstarr_work> so could you set the ivar of a class within a method?
Ziarkaen has joined #ruby
rmorello has joined #ruby
sambao21 has joined #ruby
Jeticus has quit [Read error: Connection reset by peer]
lyanchih__ has quit [Ping timeout: 268 seconds]
Xeago_ has quit [Remote host closed the connection]
<spstarr_work> @myHash[:company] = "Foobar" <-- set an instantiated instance variable myHash's w/ symbol company value Foobar
<DouweM> spstarr_work: sure: `self.class.instance_variable_set(:@ivar_name, "value")` but don't do that :P
iliketurtles has quit [Quit: zzzzz…..]
olivier_bK has quit [Ping timeout: 268 seconds]
<spstarr_work> DouweM: i mean within an instantiated class method though
Xeago has joined #ruby
<DouweM> spstarr_work: you can't directly access any object's instance variables, so not your class's either
<spstarr_work> I See, only via the approach you list above
<DouweM> spstarr_work: if you want your instances to read one of their class's instance variables, use a getter method
juanmnl has joined #ruby
<spstarr_work> or via a setter/getter method within the class
Xeago has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
<spstarr_work> ya
<DouweM> yup :)
CaptainJet has joined #ruby
rm_ has joined #ruby
* spstarr_work is building up various examples so i can see how ruby does things
rh1n0 has joined #ruby
Xeago has joined #ruby
<spstarr_work> ie
<spstarr_work> def self.classInstanceMethod return "Only available as class method, singleton" end
<spstarr_work> puts MyClass.classInstanceMethod()
<DouweM> spstarr_work: side note: teach yourself now to use snake_case rather than camelCase
<DouweM> for methods and variables that is
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM> classes are still CamelCase
<sigurding> short question: if I execute “bundle exec monitoring” I get a /forwardable.rb:186: stack level too deep (SystemStackError). Aborting with STRG + C shows me: https://gist.github.com/jhiemer/2a223fcd419b22a3cb44. Anyone has an idea?
<spstarr_work> i noticed Ruby enforces CamelCase
<spstarr_work> for ClassName
<DouweM> and drop the () at the end of that method. No args, no parentheses
dkamioka_ has quit [Ping timeout: 255 seconds]
<spstarr_work> thats a habit that dies hard :)
<spstarr_work> ()
<DouweM> spstarr_work: it needs to have a capital initial letter, but the rest can be as ugly as you like
<Senjai> spstarr_work: Sorry? You can do Classname if you really wanted.
<spstarr_work> sure
rm__ has joined #ruby
<spstarr_work> but 'C'
<Senjai> Thats not camel case
<Senjai> thats capitalization.
<Burgestrand> sigurding: is monitoring trying to load monitoring?
<DouweM> constants need a capital letter, and a classname is a constant
<spstarr_work> DouweM: that explained the error ruby told me
poikon_ has quit [Remote host closed the connection]
Shidash has joined #ruby
<spstarr_work> i always kept () at end of methods to indicate it is a method
<Senjai> I mean afaik you could do something like: my_class = Class.new do ... end
<Senjai> my_class.new
<spstarr_work> not a variable
<Senjai> but thats not a good idea
cj3kim has joined #ruby
osvico has joined #ruby
<Senjai> spstarr_work: You should look up the ruby style guide on github
bklane has quit [Remote host closed the connection]
<Burgestrand> sigurding: it’s not a lot to go on, but chances are that the generated file from bundler is not at fault, but the actual ruby script being executed by that load
rm___ has joined #ruby
<Senjai> spstarr_work: Everything in ruby is an object. So there is no reason to differentiate a "variable" from a "method"
rm_ has quit [Ping timeout: 252 seconds]
<Senjai> spstarr_work: my_class is an object that takes no arguments. my_class(thing) is an object that takes one argument
rm___ is now known as Guest22679
bklane has joined #ruby
<sigurding> Burgestrand: I am able to run the execution script via ruby monitor.rb without any issue
<DouweM> Senjai: I wouldn't go mixing objects with variables with methods
tjr9898 has joined #ruby
<spstarr_work> Senjai: I guess thats the confusion Im trying to unconfuse
<Burgestrand> sigurding: perhaps spelunking would be a good idea. If you replace the “load” at line 16 in that file with “puts”, should give you a hint of what file it is trying to load.
cj3kim has quit [Read error: Connection reset by peer]
<spstarr_work> I mean I get that "foo bar".length()
<Senjai> DouweM: Well, a variable in ruby is something =
<spstarr_work> literal string is an object too
<Senjai> something="hello"
<Senjai> something is an object and a variable
<Burgestrand> sigurding: (and run it again, of course, to have it print the file path)
<spstarr_work> or 100.repeat(100)
<Senjai> all variables in ruby are objects
circuit has quit [Quit: OHHHHHHH]
<DouweM> variables refer to objects, the variable itself isn't an object :/
<DouweM> methods aren't objects either
<Burgestrand> sigurding: I am *guessing* that the path resolves to the same file, and if that is the case the reason is probably has to do with something else in your setup
<DouweM> they're, well, methods
<sigurding> Burgestrand: it references to itself
rm__ has quit [Ping timeout: 255 seconds]
<spstarr_work> Senjai: but for code legibility
<Senjai> DouweM: "hello".class ?
rm_ has joined #ruby
<Senjai> DouweM: All methods return objects
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<DouweM> that's not the same thing
<DouweM> not trying to be pedantic, but you confused me
CaptainJet has quit [Ping timeout: 255 seconds]
<Burgestrand> sigurding: some more context is necessary :)
banister has joined #ruby
jollyy has quit [Quit: jollyy]
<Senjai> DouweM: Right, but for the sake of getting used to ruby, you can make that assumption
<spstarr_work> seeing myClass.getThisString (while the name of the method may imply its a method or if ruby does like C++ does and denotes m_methodName)
<sigurding> Burgestrand: ok, wait a sec
<Senjai> DouweM: Given that a method in ruby will always return an object
mikecmpbll has joined #ruby
<DouweM> Senjai: sure, but I'd make that distinction. a lot of things *are* objects, but not everything in the language syntax is
asteros has joined #ruby
<DouweM> spstarr_work: is that a question?
<spstarr_work> DouweM: yea
bklane_ has joined #ruby
<Senjai> DouweM: A method is a block of reuseable code that always returns an object
<Burgestrand> DouweM: do you have an example of that? I don’t disagree, I’m just curious about which kind of semantics you two are discussing.
Guest22679 has quit [Ping timeout: 268 seconds]
bklane has quit [Ping timeout: 240 seconds]
<DouweM> Burgestrand: I was responding to Senjai's "spstarr_work: Everything in ruby is an object. So there is no reason to differentiate a "variable" from a "method"" and "spstarr_work: my_class is an object that takes no arguments. my_class(thing) is an object that takes one argument"
Macaveli has quit [Ping timeout: 252 seconds]
r_rios has quit [Ping timeout: 264 seconds]
rrios has quit [Ping timeout: 264 seconds]
Frank13760 has joined #ruby
certaint1 is now known as certainty
geopet has quit []
<DouweM> Burgestrand: IMO those statements only make things more confusing to someone trying to wrap their head around Ruby syntax en semantics
<Senjai> There is no reason to differentiate a method from a variable as a user, because they will both always return objects
<Burgestrand> DouweM: I see your pain point :)
<sigurding> I updated it with all relevant information regarding bundler
Frank13760 has left #ruby [#ruby]
patrick99e99 has joined #ruby
jorts_ has joined #ruby
<Burgestrand> I suppose a more correct way of saying it is: all expressions in ruby return an object
<spstarr_work> Senjai: they might but visually looking at code
<Mon_Ouie> Senjai: You can't assign a method to something. That makes them very different already.
<DouweM> Burgestrand: +1
p8952 has quit [Quit: Leaving]
m0s is now known as m0s^away
juanmnl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Mon_Ouie> Also variables are lexically scoped, methods are dynamically scoped
rrios has joined #ruby
r_rios has joined #ruby
jorts has quit [Ping timeout: 255 seconds]
jorts_ is now known as jorts
CaptainJet has joined #ruby
_tziOm has quit [Ping timeout: 252 seconds]
<Burgestrand> sigurding: ah, you have a binstub for a gem you are actively developing?
<sigurding> Burgestrand: yes!
chrisseaton has quit []
<DouweM> spstarr_work: got a specific question?
Zai00 has quit [Quit: Zai00]
<spstarr_work> DouweM: none right now, more experimenting :)
<Burgestrand> sigurding: I’m not sure you’re intended to have a binstub for the same gem you’re developing, but I would say it’s enough to warrant a visit to the bundler issue tracker / IRC (if there is one) or similar. Why do you have a binstub for the project you are currently working on? ^^
heftig has quit [Quit: Quitting]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oneawayman has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Read error: Connection reset by peer]
<spstarr_work> neat puts MyClass.instance_variable_get(:@aHash).values
maletor has quit [Quit: Computer has gone to sleep.]
jhass|off is now known as jhass
<spstarr_work> so that implicitly is a hash returning all values from it
crystal77 has joined #ruby
sailias has joined #ruby
<Burgestrand> spstarr_work: what is implicit about it?
<DouweM> spstarr_work: the instance_variable_get(...) returns the actual Hash object and from that point you can call any method on it you want
<DouweM> it's about as explicit as it gets, indeed :P
<sigurding> Burgestrand: honestly: I am beginner and I followed this: http://rails-bestpractices.com/blog/posts/8-using-bundler-and-rvm-to-build-a-rubygem
<spstarr_work> right
<spstarr_work> er explicit
<spstarr_work> ;)
sambao21 has quit [Quit: Computer has gone to sleep.]
AlexRussia has quit [Remote host closed the connection]
<spstarr_work> mixed up my plicits
<spstarr_work> :P
patrick99e99 has quit [Ping timeout: 265 seconds]
<Burgestrand> sigurding: I’ll have a quick read, see if I can follow :)
rdark has quit [Quit: leaving]
AlexRussia has joined #ruby
<Burgestrand> sigurding: I can’t see anything about binstubs in it though!
sabooky has quit [Ping timeout: 245 seconds]
<sigurding> Burgestrand: ok, perhaps I need to ask something: where to you see the binstubs etc?
greggroth has joined #ruby
michaeldeol has joined #ruby
Frank13760 has joined #ruby
crystal77 has quit [Client Quit]
sailias has quit [Client Quit]
mehlah has quit [Quit: Leaving...]
robbyoconnor has quit [Excess Flood]
gvhv has joined #ruby
bklane_ has quit [Quit: Leaving...]
gvhv has left #ruby [#ruby]
<Burgestrand> sigurding: by binstubs I refer to the generated file by bundler (the one that contained “load Gem…”). Those files are generally generated using bundler when working in projects to ensure that when you type “some_command”, that “some_command” loads the right version of the gem from the start. Because you had such a file (that is causing the loading of itself), I assume that you’ve at some point generated binstubs using
<Burgestrand> the bundler command
robbyoconnor has joined #ruby
<Burgestrand> sigurding: i.e. something like “bundle install --binstubs”
Frank13760 has left #ruby [#ruby]
<sigurding> Burgestrand: yes correct
<Burgestrand> sigurding: doing the same with a new imaginary gem to try to get a feeling for what I should tell you to do ;)
<Burgestrand> (I am doing the same…)
sailias has joined #ruby
jastora has joined #ruby
aaronmcadam has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
<Burgestrand> sigurding: how are you executing the “monitoring” command, and from which folder?
wallerdev has quit [Quit: wallerdev]
_tpavel has quit [Quit: Leaving]
etqqkoiflwhb has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
rudisimo has quit []
<sigurding> Burgestrand: I am executing from the project base dir
testcore has joined #ruby
<Burgestrand> sigurding: alright! So you want your gem to install a command “monitoring” when somebody installs your gem?
<sigurding> an in this directory I am starting it via “bundle exec monitoring”
<sigurding> Burgestrand: exactly, this should be the project to executre
<sigurding> execute
toastynerd has joined #ruby
jrendell has joined #ruby
jrendell has quit [Client Quit]
danshult_ has quit [Remote host closed the connection]
jrendell has joined #ruby
<Burgestrand> sigurding: alright, I don’t think you should be using binstubs for this development. You can stop bundler from creating binstubs every time you do “bundle install” if you edit the file “.bundle/config” and remove the BUNDLE_BIN line
danshult_ has joined #ruby
rm_ has quit [Read error: Connection timed out]
greggroth has quit [Ping timeout: 240 seconds]
<Burgestrand> sigurding: next up after that is removing all stuff inside your_gem/bin, except the “monitoring” file, which is the one where you should write your command code
VTLob has joined #ruby
rm_ has joined #ruby
noop has joined #ruby
danshultz has quit [Ping timeout: 268 seconds]
crystal77 has joined #ruby
sepp2k has joined #ruby
<sigurding> Burgestrand: all done!
Patteh has quit [Quit: leaving]
timonv has quit [Remote host closed the connection]
Patteh has joined #ruby
<Burgestrand> sigurding: finally, you should make sure your command file is executable by doing “chmod +x bin/monitoring”
doodleha_ has joined #ruby
timonv has joined #ruby
<Burgestrand> sigurding: and at the top of the file, it is good practice to write the line “#!/usr/bin/env ruby”, which will use the current ruby from the environment if nothing else is specified somewhere else (for example, if your users are using bundler)
<sigurding> Burgestrand: ok done!
<sigurding> would you not recommend to use bundler?
<Burgestrand> sigurding: you should can use bundler, but only for things that bundler should be used for :)
GreatSUN has quit [Ping timeout: 245 seconds]
<Burgestrand> sigurding: when you do “bundle install --binstubs”, bundler will overwrite bin/monitoring with a bundler-generated file
<sigurding> Burgestrand: ok, and that’s something bundler should not be used for?
brianpWins has joined #ruby
<spstarr_work> ah
<spstarr_work> @@
<Burgestrand> sigurding: and if bundler overwrites bin/monitoring with it’s own file, you cannot place *your* code in it, because it will always be overwritten
benzrf|offline is now known as benzrf
Xeago has quit [Remote host closed the connection]
<spstarr_work> class variables
<Burgestrand> spstarr_work: be careful with those
<benzrf> hej da
jorts has quit [Quit: jorts]
<Burgestrand> spstarr_work: they are inherited :)
brianpWins has quit [Client Quit]
<benzrf> spstarr_work: they have weird semantics that may be confusing at first
danshult_ has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
<spstarr_work> Burgestrand: even singletons?
wallerdev has joined #ruby
danshultz has joined #ruby
brianpWins has joined #ruby
<Burgestrand> spstarr_work: you can use regular @variables in the class scope as well
<spstarr_work> yes
<Burgestrand> spstarr_work: most of the time, that is also what you should be using ;)
doodlehaus has quit [Ping timeout: 268 seconds]
jorts has joined #ruby
<Burgestrand> spstarr_work: I will give you an example with your singleton
<spstarr_work> but i thought class variables were of scope at the class level like self.myMethod being a class method
freezey has quit [Remote host closed the connection]
jorts has quit [Client Quit]
maasha has joined #ruby
<sigurding> Burgestrand: did all the stuff, but still getting the error
shevy has joined #ruby
<Burgestrand> spstarr_work: http://ideone.com/AOv1TQ
<toretore> spstarr_work: rule of thumb: don't use class vars unless you have a good reason to
<benzrf> god damn
timonv has quit [Ping timeout: 265 seconds]
<maasha> evening
<benzrf> i need fixes for pry-remote-em
<benzrf> :|
<Burgestrand> sigurding: generating example gem with custom command for you!
jaywastaken has joined #ruby
jaywastaken has quit [Changing host]
jaywastaken has joined #ruby
<sigurding> Burgestrand: thx!
<spstarr_work> any reason why ruby mixed up things with self and @@ ?
jorts has joined #ruby
<DouweM> spstarr_work: @@ is class variables, @ is instance variables where the instance can still be a class
momomomomo has joined #ruby
<DouweM> spstarr_work: they have different semantics, and you should generally use the latter
<spstarr_work> so we should have done away with '@@' and just used self.classVariable ?
<Burgestrand> spstarr_work: I will give you counter-example, too :)
<Burgestrand> spstarr_work: http://ideone.com/lgJTJx
monkegjinni has joined #ruby
<Burgestrand> spstarr_work: @@ is inherited to subclasses (one crazy thing), but @ is not
mark_locklear has quit [Quit: Leaving]
<spstarr_work> it is not crazy to me from a class-level
<DouweM> spstarr_work: there is no self.classVariable, that's just a method called classVariable
<spstarr_work> DouweM: right but mixing self.method and @@variable seems weird
<DouweM> spstarr_work: if it is a getter, it can return the value of @classVariable, but it's important to see the distinction
p8952 has joined #ruby
<DouweM> spstarr_work: don't use @@variable at all
simono_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<spstarr_work> no common one way to denote 'class method/variable'
<DouweM> how do you mean?
<DouweM> a method is object.method, an instance variable is @ivar
<spstarr_work> well, @@foobar is a class variable and self.myMethod is a class method
<DouweM> the latter is just a method on a class, but sure
<DouweM> a variable isn't the same thing as a method, so why would you want a common way to denote them?
obs has quit [Quit: Konversation terminated!]
chrisramon has quit [Quit: chrisramon]
shevy has quit [Ping timeout: 264 seconds]
<DouweM> if you have a getter for the variable, that's still just a method
chuk_ has quit [Quit: Leaving]
<DouweM> which only happens to return the value of that variable
shevy has joined #ruby
<spstarr_work> right
<spstarr_work> i experimented with that and saw what happens
freezey has joined #ruby
ziyadb_ has quit [Quit: Connection closed for inactivity]
IcyDragon has joined #ruby
IceDragon has quit [Disconnected by services]
reset has joined #ruby
IcyDragon is now known as IceDragon
shanlar has quit [Ping timeout: 240 seconds]
<Burgestrand> sigurding: main interesting code is in bin/custom_command
maletor has joined #ruby
<Burgestrand> sigurding: when users install that gem, they will have the custom_command command available
<Burgestrand> sigurding: during development, to test it out yourself, you can use “bundle exec bin/custom_command”
shlant has quit [Read error: Operation timed out]
alexblackie has joined #ruby
kenneth has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
shlant has joined #ruby
<sigurding> Burgestrand: thx, I will try it myself :)
rm_ has quit [Read error: Connection timed out]
<sigurding> need to grab some food and a take a deeper look a it
<sigurding> *at
<Burgestrand> sigurding: I will go to the store real quick (5 min), but I’ll be here :)
jottr has joined #ruby
<sigurding> Burgestrand: great! thx a lot for your patience
robbyoconnor has quit [Ping timeout: 255 seconds]
rm_ has joined #ruby
petey has joined #ruby
elementz has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby
roolo has quit [Quit: Leaving...]
shlant has quit [Ping timeout: 255 seconds]
djbender has quit [Quit: djbender]
CorySimmons has joined #ruby
djbender has joined #ruby
Xeago has joined #ruby
TheLarkInn has quit [Quit: Leaving.]
jastora has left #ruby [#ruby]
n1tr0g has quit [Quit: n1tr0g]
carraroj has joined #ruby
CorySimmons has quit [Client Quit]
Adawerk__ has joined #ruby
mven_ has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Excess Flood]
monkegji_ has joined #ruby
claymore has quit [Quit: Leaving]
robbyoconnor has joined #ruby
petey has quit [Remote host closed the connection]
diegoviola has joined #ruby
afex has joined #ruby
werdnativ has left #ruby [#ruby]
shlant has joined #ruby
petey has joined #ruby
root_empire has joined #ruby
monkegjinni has quit [Ping timeout: 268 seconds]
r0nin has quit [Remote host closed the connection]
Wolland has joined #ruby
bluenemo has joined #ruby
sigurding has quit [Quit: sigurding]
<shevy> test
jprovazn has quit [Quit: Odcházím]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<alexblackie> yep
petey_ has joined #ruby
sepp2k1 has joined #ruby
michael_lee has quit [Ping timeout: 265 seconds]
renier has joined #ruby
sepp2k has quit [Ping timeout: 265 seconds]
petey has quit [Ping timeout: 268 seconds]
eynj has joined #ruby
<renier> hey, looking for comments on this. https://gist.github.com/renier/9815009 Is there a better way to pick up files for rake package? Also, can the loop be better? Thanks!
cpruitt has quit [Quit: cpruitt]
iceden|2 has joined #ruby
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
nisstyre has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
<Burgestrand> renier: bundler uses git to list files. I’m not sure I think it’s a better way; it can be annoying at times, but I wanted to let you know that’s how they do it.
root_empire has quit [Read error: Connection reset by peer]
Bumptious has quit [Remote host closed the connection]
<Burgestrand> renier: that way they can avoid the need to parse the .gitignore, and their way also respects the global .gitignore file.
Advocation has quit [Quit: Advocation]
TheLarkInn has joined #ruby
<renier> Burgestrand, good point. thanks. they use git ls-files
Xeago has quit [Remote host closed the connection]
cpruitt has joined #ruby
rm_ has quit [Read error: Connection timed out]
smathieu has quit [Remote host closed the connection]
jorts has quit [Quit: jorts]
pfg has joined #ruby
rm_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
Frank13760 has joined #ruby
Frank13760 has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
jorts has joined #ruby
asteros has quit [Quit: asteros]
<renier> Burgestrand, hey, so since my gemspec already uses the git method for filling out the files attribute, I can use spec.files and that's it
iceden|2 is now known as iceden
<renier> saves a lot of code. thx for the pointer
<Burgestrand> renier: :)
razibog has quit [Quit: Leaving.]
bline79 has joined #ruby
hiall has quit [Ping timeout: 265 seconds]
axl_ has joined #ruby
toastynerd has joined #ruby
aspires_ has quit []
rindolf has left #ruby ["Leaving"]
afex has quit [Ping timeout: 268 seconds]
alexju has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
<spstarr_work> nice
<spstarr_work> so just like python i can do crazy things...
<spstarr_work> puts MyClass.instance_variable_get(:@aHash)[:company].to_s.upcase[1,4].reverse
Frank13760 has joined #ruby
<spstarr_work> since verything is an object...
Frank13760 has left #ruby [#ruby]
YamakasY has quit [Remote host closed the connection]
ghr has joined #ruby
afex has joined #ruby
<wallerdev> i wouldnt call that just like python
toastynerd has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
<spstarr_work> method.method.method.method.method
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
<spstarr_work> from each object returned
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<spstarr_work> you do the same in Qt
petey_ has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
jorts has quit [Quit: jorts]
cgore has joined #ruby
jphjk has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
kirun has joined #ruby
afreidah1 has quit [Ping timeout: 255 seconds]
bawNg has quit [Quit: No Ping reply in 180 seconds.]
jollyy has joined #ruby
victorbjelkholm_ has quit [Quit: Leaving]
jorts has joined #ruby
bawNg has joined #ruby
sambao21 has joined #ruby
axl_ has quit [Quit: axl_]
meatherl_ has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
meatherly has joined #ruby
afreidah1 has joined #ruby
derek_c has joined #ruby
pfg has joined #ruby
danshult_ has joined #ruby
rm_ has quit [Read error: Connection timed out]
zalmoxes has joined #ruby
rm_ has joined #ruby
inkblots has joined #ruby
danshultz has quit [Ping timeout: 255 seconds]
danno1 has quit [Ping timeout: 265 seconds]
dzhulk has joined #ruby
alexju has joined #ruby
victorbjelkholm has quit [Ping timeout: 265 seconds]
<shevy> python qt?
dzhulk has left #ruby [#ruby]
Atw has joined #ruby
<shevy> Hanmac, work hard on rxw! we can't let python get away with all GUIs
rm__ has joined #ruby
Celm has quit [Remote host closed the connection]
<shevy> I am still trying to update my ancient ruby gnome scripts, they used to work fine in 2007 and 2008 but now no longer work that great :(
michaeldeol has joined #ruby
RaptorJesus has joined #ruby
Celm has joined #ruby
meatherly has quit [Ping timeout: 265 seconds]
<RubyPanther> shevy: I don't think Gtk has changed any, probably something else
m8 has joined #ruby
jphjk has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 255 seconds]
<shevy> oh but there are RubyPanther
atno has quit [Ping timeout: 268 seconds]
<shevy> ruby accesskey.rb
<shevy> [NOTE]
<shevy> You may have encountered a bug in the Ruby interpreter or extension libraries.
<shevy> Bug reports are welcome.
<shevy> :)
rm_ has joined #ruby
freezey has quit [Remote host closed the connection]
davy has quit [Remote host closed the connection]
<spstarr_work> shevy: didn't I tell you not to use nightly builds of ruby? ;)
<RubyPanther> yeah, I'm going with "Ruby bug"
coderxin has joined #ruby
coderxin has quit [Client Quit]
<shevy> spstarr_work hmm let me try with different ruby versions
<RubyPanther> I do all my guis in Gtk, I gave up Tk completely, and Qt, "hahahahahahahaha" is as far I get ;)
jds has joined #ruby
rm__ has quit [Ping timeout: 268 seconds]
<spstarr_work> Qt bindings for ruby :P
<spstarr_work> i know they exist
<spstarr_work> they must
chrisramon has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lmickh has quit [Read error: Operation timed out]
<shevy> yeah but the author vanished
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bluenemo has quit [Read error: Connection reset by peer]
jorts has quit [Quit: jorts]
<spstarr_work> shevy: what?
speakingcode has quit [Ping timeout: 252 seconds]
<spstarr_work> :(
dkamioka has joined #ruby
asteros has joined #ruby
<RubyPanther> They are assumed to exist, but Rubyists are smart enough to choose a quality API
Zai00 has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
lmickh has joined #ruby
bluenemo has joined #ruby
speakingcode has joined #ruby
<RubyPanther> So nobody really knows for sure
* spstarr_work snickers
Zai00 has quit [Client Quit]
<shevy> spstarr_work it was rdale, he even was on freenode irc
<shevy> #qtruby still exists
<shevy> qtruby looked much better than ruby-gnome too
cpruitt has quit [Quit: cpruitt]
<shevy> but without a developer, it is dead
noop has quit [Ping timeout: 265 seconds]
jorts has joined #ruby
<spstarr_work> hmm
<pipework> Unless somehow they wrote it in a way that's actually fairly complete.
<shevy> the best would be to use an agnostic UI though
* spstarr_work prepares to go $HOME
<pipework> spstarr_work: ::1?
cpruitt has joined #ruby
greggroth has joined #ruby
afex has quit [Ping timeout: 255 seconds]
Bira has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
ctp_ has joined #ruby
cescalante is now known as ce_afk
sigurding has joined #ruby
decoponio has quit [Quit: Don't lose your way...(Kill La Kill OST)]
chichou has joined #ruby
atno has joined #ruby
jeebster has quit [Quit: Leaving.]
<AlexRussia> hi people!
<AlexRussia> I again should in your help!
newbie1r has joined #ruby
<shevy> please no
<AlexRussia> okay, target in it: i get big text, included some vcards....
<AlexRussia> shevy: ???
ctp has quit [Ping timeout: 240 seconds]
YamakasY_ has joined #ruby
<AlexRussia> question: how diffrent text to parts, if i know some string-diffrent?
michaeldeol has joined #ruby
ctp_ has quit [Ping timeout: 255 seconds]
camilasan has joined #ruby
<toretore> lol
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AlexRussia> maybe, some method for it....i don't have make own for and some tricks
<jhass> I think he want's to extract vcards from a textblob
<toretore> AlexRussia: show some code perhaps?
axsuul has joined #ruby
<jhass> AlexRussia: can you provide example input?
ce_afk is now known as cescalante
ziyadb_ has joined #ruby
<toretore> code > words
meatherly has joined #ruby
<AlexRussia> jhass: i want diffrent text by some key.....to parts
tziOm has joined #ruby
havenwood has quit []
<jhass> AlexRussia: provide example input and expected output at least
SonicX has joined #ruby
<toretore> AlexRussia: explain with code and data
arietis has quit [Quit: Computer has gone to sleep.]
<AlexRussia> jhass: you want see my now code?
<AlexRussia> jhass: and example data input?
<jhass> that and what you expect to have, for example the result array you would like to have
zigomir has joined #ruby
cpruitt has quit [Quit: cpruitt]
chuk_ has joined #ruby
geopet has joined #ruby
<AlexRussia> jhass: now i get one string and using it like data, but i should in some string, where included not one data, should diffrent it, yah, i think, diffrent to array by data.
<AlexRussia> jhass: wait some time
<shevy> lol
<shevy> show code man !
afex has joined #ruby
<jhass> shevy: don't plenk, man!
greggroth has quit [Ping timeout: 268 seconds]
axl_ has joined #ruby
<AlexRussia> shevy: jhass code now https://gist.github.com/AlexTalker/9794342
bthesorceror has quit [Remote host closed the connection]
<shevy> jhass it is a visual beautification to enhance the readability of the important words I have to write
<AlexRussia> wait, paste data
<jhass> shevy: you're french?
bthesorceror has joined #ruby
<shevy> AlexRussia this is not good
<AlexRussia> shevy: mmm?
<shevy> it's not good
<shevy> file.close
<shevy> ARGV.each
<shevy> not good
<AlexRussia> shevy: OO
<AlexRussia> shevy: w h y?
<shevy> so I take you have a file called telephons.txt
grayWolf has joined #ruby
jollyy has quit [Ping timeout: 265 seconds]
<shevy> AlexRussia your intent is not clear in your code
<AlexRussia> shevy: no, telephons is file for results
S0da has joined #ruby
<shevy> ok you want to create a new file
SiliconDon has joined #ruby
asteros has quit [Quit: asteros]
<toretore> the code looks fine
<toretore> what is the actual problem?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<AlexRussia> toretore: in diffrent string
sambao21 has quit [Quit: Computer has gone to sleep.]
<toretore> i don't know what that means
<shevy> lol
<AlexRussia> toretore: i try rephrase
Speed has quit [Ping timeout: 240 seconds]
grayWolf is now known as Speed
<AlexRussia> jhass: shevy data, should for work new version https://gist.github.com/9816231
SiliconDon has quit [Client Quit]
<AlexRussia> jhass: shevy like it, ofc, is example :P
axsuul has quit [Read error: Connection reset by peer]
<toretore> it's obvious you're trying to process a bunch of vcard files, extract a phone number and put the numbers into a new file
axsuul has joined #ruby
jollyy has joined #ruby
<AlexRussia> toretore: toooo right
SiliconDon has joined #ruby
<toretore> but i don't understand what you're asking about
<AlexRussia> toretore: is for my some friend....
<toretore> try explaining with code instead
jaywastaken has quit [Quit: This computer has gone to sleep]
sambao21 has joined #ruby
<toretore> code is much easier to understand
<AlexRussia> toretore: oh....every vrards concatenated in ONE file.But vcardigan unsupport this style, i think
<toretore> you want to have one file with multiple vcards in it?
davy has joined #ruby
<AlexRussia> toretore: one file with ultiple vcards is like input....
<jhass> I think he has that and wants to parse it
<AlexRussia> multiple*
CreativeEmbassy has joined #ruby
Squarepy has quit [Quit: Leaving]
<shevy> lol
<AlexRussia> jhass: yah, parse by vcards for using it in vcardigan
<shevy> AlexRussia, write in simple english.
jaywastaken has joined #ruby
jaywastaken has joined #ruby
jaywastaken has quit [Changing host]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<AlexRussia> shevy: O_O, i write in RUSSIAN english :P
asteros has joined #ruby
BuSerD has joined #ruby
jackneill has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<droptone> Question: I have a hash and I want to set a value to the sum of two strings, with a space in between. For example, MyHash = { 'Value1" => AnotherVar["Address1"] + " " + AnotherVar["Address2"] }
<shevy> yeah, that is bad, the way to think in russian is different to writing in english, it's like matz speaking english while he continues to think in japanese
<droptone> What would the proper syntax be for that statement?
<shevy> droptone that should work
<AlexRussia> shevy: :)
petey has joined #ruby
<droptone> that's it? ok, thank you.
<shevy> if AnotherVar is a hash
<shevy> and if it has these two keys
<shevy> and if they are strings
<shevy> :)
<AlexRussia> jhass: but how to parse it O_O?
<jhass> AlexRussia: File.foreach(input_file, "END:VCARD").each do |vcard_data| vcard = parse vcar_data; extract_from vcard; end;
Authenticator has joined #ruby
<AlexRussia> ou
<shevy> jhass how does parse() and extract_from() look like? :P
<jhass> shevy: use your imagination
<shevy> hehehe
bthesorceror has quit [Remote host closed the connection]
davy has quit [Read error: Connection reset by peer]
davy_ has joined #ruby
<AlexRussia> jhass: then in vcard_data saved one vcard without every vcards in file?
<Mon_Ouie> EIMAG: No error actually occurred, but the result has to be imagined by the user.
drumusician has joined #ruby
<shevy> jhass can you translate that question please
rm_ has joined #ruby
SonicX has quit [Remote host closed the connection]
<jhass> shevy: still processing...
AlSquire has joined #ruby
<shevy> AlexRussia what do you want to save in the file?
<jhass> AlexRussia: vcard_data will be one unparsed vcard to pass to vcardigan
<AlexRussia> jhass: thanks diasporian!
<shevy> diasporian?
<shevy> jhass: thanks omelette!
yfeldblum has quit [Ping timeout: 268 seconds]
<AlexRussia> shevy: try google diaspora*
r0nin has joined #ruby
atno has quit [Ping timeout: 268 seconds]
alvaro_o has joined #ruby
Silicon|Don has joined #ruby
AlSquire has quit [Client Quit]
jollyy has quit [Quit: jollyy]
Silicon|Don has quit [Remote host closed the connection]
SiliconDon_ has joined #ruby
bthesorc_ has joined #ruby
jaywastaken has quit [Quit: This computer has gone to sleep]
SiliconDon_ has quit [Client Quit]
derek_c has quit [Ping timeout: 240 seconds]
_Andres has joined #ruby
chichou has quit [Remote host closed the connection]
bthesorc_ has quit [Remote host closed the connection]
juarlex has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 264 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
smathieu has joined #ruby
dblessing has quit [Quit: dblessing]
Es0teric has joined #ruby
r0nin has quit [Ping timeout: 265 seconds]
axsuul has quit [Ping timeout: 265 seconds]
<AlexRussia> lol, this is crazy, but ./test.rb:13:in `block in <main>': undefined method `first' for nil:NilClass (NoMethodError)
<AlexRussia> code here https://gist.github.com/9816592
shanlar has joined #ruby
centrx has joined #ruby
<jhass> well, vcard.tlf returns nil then
toastynerd has joined #ruby
yfeldblum has joined #ruby
<AlexRussia> jhass: this is stopped program?O_O
dkamioka has quit [Remote host closed the connection]
x1337807x has joined #ruby
<Hanmac> droptone: AnotherVar.values_at("Address1", "Address2").join(" ")
smathieu has quit [Remote host closed the connection]
kirun_ has joined #ruby
chipotle has joined #ruby
<AlexRussia> jhass: i can using this exception for output error and continue parsing?
rayners has quit [Ping timeout: 255 seconds]
abdulsattar has quit [Ping timeout: 265 seconds]
<jhass> I'd just check if vcard.tlf returns nil
<AlexRussia> vcard.tlf.nil? yah?
<jhass> or just if vcard.tlf; do_stuff; end
nanoyak has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
bthesorceror has joined #ruby
atno has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
davy_ has quit [Read error: Connection reset by peer]
davy_ has joined #ruby
tvw has quit []
tvw has joined #ruby
sambao21 has quit [Ping timeout: 268 seconds]
r0nin_ has joined #ruby
petey has quit [Remote host closed the connection]
SiliconDon has quit [Quit: Textual IRC Client: www.textualapp.com]
m8 has quit [Quit: Sto andando via]
petey has joined #ruby
SiliconDon has joined #ruby
benzrf|offline is now known as benzrf
Xeago has joined #ruby
Wolland has quit []
<AlexRussia> jhass: ou, i find bug
Spami has joined #ruby
<benzrf> hej da
<AlexRussia> jhass: we parsing by 'END:VCARD', in file 2 vcards, but in each 3!
kirun__ has joined #ruby
<AlexRussia> jhass: lulz-lulz
freezey has joined #ruby
smathieu has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
kirun__ has quit [Client Quit]
jlast has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 255 seconds]
nisstyre has quit [Quit: bai]
senayar has joined #ruby
petey has quit [Ping timeout: 240 seconds]
petey has joined #ruby
kirun_ has quit [Ping timeout: 264 seconds]
<AlexRussia> jhass: don't worry, if vcard.tlf fix it
<AlexRussia> 'if vcard.tlf'
YamakasY_ has quit [Quit: The best revenge is massive success...]
derek_c has joined #ruby
michael_lee has joined #ruby
axl_ has quit [Quit: axl_]
sambao21 has joined #ruby
Xeago has quit [Ping timeout: 255 seconds]
smathieu has quit [Remote host closed the connection]
jlast has joined #ruby
smathieu has joined #ruby
mary5030_ has joined #ruby
abdulsattar has joined #ruby
mary5030_ has quit [Remote host closed the connection]
smathieu has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
mary5030_ has joined #ruby
sdelmore has joined #ruby
Xeago has joined #ruby
agjacome has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
Dreamer3 has joined #ruby
certainty is now known as certainty|vacati
klaas_ has joined #ruby
rh1n0 has quit [Ping timeout: 264 seconds]
Hobogrammer has joined #ruby
b00stfr3ak has quit [Ping timeout: 255 seconds]
klaas_ is now known as klaas
yalue has quit [Quit: Leaving]
weems has quit [Read error: Connection reset by peer]
weems has joined #ruby
robbyoconnor has quit [Read error: Operation timed out]
endash_ has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<AlexRussia> File.exist?(file_name) returned bool, true if file exist, else false
<AlexRussia> ?
mr_snowf1ake has joined #ruby
<jhass> it does that, yes
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
itadder has joined #ruby
jeebster has joined #ruby
chichou has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<shevy> AlexRussia seems logical, doesn't it? :)
iceden has joined #ruby
<jhass> probably not in russian english shevy
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
petey has quit [Remote host closed the connection]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<shevy> lol
<shevy> AlexRussia what is "logical" in russian?
petey has joined #ruby
funktor has joined #ruby
axsuul has joined #ruby
<AlexRussia> shevy: logical?O_O you about boolean?
maximski_ has joined #ruby
<shevy> AlexRussia no, the russian word
<Authenticator> Is there a way to stop SimpleCov from reporting for a given process? It's failing my forking tests when I run them with coverage on. I'm already setting a CommandName based on the PID...
fieldfirst has quit [Ping timeout: 240 seconds]
lapinferoce has joined #ruby
<AlexRussia> shevy: логический
<shevy> I cant read that
<shevy> ес
maximski has quit [Ping timeout: 268 seconds]
senayar_ has joined #ruby
patrick99e99 has joined #ruby
shutch has joined #ruby
petey has quit [Ping timeout: 268 seconds]
kirun has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
SiliconDon has quit []
patrick99e99 has quit [Ping timeout: 252 seconds]
tcstar has quit [Read error: Connection reset by peer]
SiliconDon has joined #ruby
pauld has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.3]
meatherly has joined #ruby
funktor has quit [Remote host closed the connection]
rezzack has joined #ruby
Vovko has quit []
<lapinferoce> join #github
Hobogrammer has quit [Quit: WeeChat 0.4.3]
lapinferoce has left #ruby ["Konversation terminated!"]
shadoi1 has quit [Quit: Leaving.]
agjacome has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
cgore has quit [Remote host closed the connection]
r0nin_ has quit [Remote host closed the connection]
petey has joined #ruby
popl has joined #ruby
popl has joined #ruby
pontiki has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
agjacome has joined #ruby
Ziarkaen has quit [Remote host closed the connection]
mrnugget has quit [Quit: mrnugget]
dapz has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<sigurding> what are alternatives to bundler?
skammer has joined #ruby
carif has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
carif has joined #ruby
itadder has quit [Remote host closed the connection]
carif has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
Hobogrammer has joined #ruby
wallerdev has quit [Quit: wallerdev]
meatherly has quit [Ping timeout: 265 seconds]
<centrx> sigurding, To do what?
carif has joined #ruby
<sigurding> centrx: I am trying to build an executable gem, which should automatically load all dependencies, when it’s installed
wallerdev has joined #ruby
danshult_ has quit [Remote host closed the connection]
carif has quit [Read error: Connection reset by peer]
<centrx> sigurding, bundler doesn't do that?
carif has joined #ruby
danshultz has joined #ruby
newbie1r has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
carif has quit [Read error: Connection reset by peer]
<sigurding> centrx: it does, but it also means, that bundler needs to be installed before, or?
carif has joined #ruby
<centrx> I'm not familiar enough to say how you would do it
Burgestrand has quit [Quit: Burgestrand]
axsuul has quit [Ping timeout: 255 seconds]
skammer has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass> sigurding: what do you mean by load? require?
axl_ has quit [Ping timeout: 252 seconds]
doodleha_ has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
<sigurding> this is my gemspec.
skammer has joined #ruby
doodlehaus has joined #ruby
hfp has quit [Ping timeout: 245 seconds]
<sigurding> the user should be able to install the gem on linux/windows and execute monitoring
<jhass> RubyGems will automatically install dependencies listed in your gemspec
<jhass> I think you want to add some bin_file'ish stuff, let me look it up
e^0 has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
<AlexRussia> jhass: thanks and shevy also ;)
<jhass> sigurding: ah, no executables, you already have that
<jhass> sigurding: not sure where your problem is
hfp has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
<sigurding> jhass: ok so the gemspec files is enough to resolve the dependencies during install?
<jhass> yes
<sigurding> jhass: sounds great, is there any way to test this in an rvm enviroment?
<jhass> sure, just make a new gemset
<jhass> (and empty / pristine your global one if you got related stuff installed there)
sambao21 has joined #ruby
greggroth has joined #ruby
freezey has quit [Remote host closed the connection]
cpruitt has joined #ruby
newbie|7 has joined #ruby
agarie has quit [Ping timeout: 255 seconds]
freezey has joined #ruby
chrisramon has quit [Quit: chrisramon]
Snafu777 has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
tgkokk has quit [Ping timeout: 240 seconds]
cpruitt has quit [Client Quit]
fannye has quit [Read error: Connection reset by peer]
Speed has quit [Ping timeout: 240 seconds]
asteros has quit [Quit: asteros]
cpruitt has joined #ruby
chipotle has quit [Quit: cya]
funburn has joined #ruby
roolo has joined #ruby
greggroth has quit [Ping timeout: 265 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
pu22l3r has joined #ruby
dkamioka has joined #ruby
kirun has quit [Quit: Client exiting]
pu22l3r has quit [Read error: Connection reset by peer]
freezey has quit [Ping timeout: 264 seconds]
nowthatsamatt has joined #ruby
bline79 has quit [Quit: Lost terminal]
pu22l3r has joined #ruby
e^0 is now known as ffio
inkblots has quit [Read error: Connection reset by peer]
abdulsattar has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
freezey has joined #ruby
asteros has joined #ruby
maasha has quit [Quit: Page closed]
r_rios has quit [Read error: Operation timed out]
rrios has quit [Read error: Operation timed out]
newbie|7 has quit [Ping timeout: 268 seconds]
CorySimmons has joined #ruby
sailias has quit [Quit: Leaving.]
Cydrobolt has joined #ruby
benlieb has joined #ruby
THAiSi has joined #ruby
agjacome has quit [Quit: leaving]
Bira has quit [Ping timeout: 265 seconds]
garndt has quit [Quit: Connection closed for inactivity]
bthesorceror has quit [Remote host closed the connection]
ghr has joined #ruby
zachallett has quit [Remote host closed the connection]
derek_c has quit [Ping timeout: 265 seconds]
axsuul has quit [Ping timeout: 264 seconds]
THAiSi has left #ruby [#ruby]
<lex_functor> AlexRussia: what sound is ч
<lex_functor> I can at least sound out the other characters
mansi has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 268 seconds]
freggles has quit [Remote host closed the connection]
mansi has joined #ruby
jkamenik has quit [Quit: Leaving.]
hfp_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
bluenemo has quit [Ping timeout: 255 seconds]
S0da has quit [Read error: Connection reset by peer]
hfp has quit [Ping timeout: 245 seconds]
hfp_ is now known as hfp
popl has quit [Quit: Touch the frog.]
Shidash has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 252 seconds]
Killa has joined #ruby
kpshek has quit []
iliketurtles has joined #ruby
SiliconDon has quit []
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
wallerdev has quit [Quit: wallerdev]
oneawayman has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
mengu has joined #ruby
<Killa> Hi. I am trying to measure memory footprint of my rails app, I'm measuring the overall kilobytes of the process with method found at https://gist.github.com/pvdb/6240788#file-process_rss, which is returning "203,628 kilobytes". I would expect all of that to be stored in objects, but ObjectSpace.count_objects[:TOTAL] returns only 792372 objects. Every object weights 40 bytes, which sums up to ~30 megabytes of objects. Do I calculate the obje
sambao21 has quit [Quit: Computer has gone to sleep.]
<Killa> Can anyone tell where should I look for the missing memory?
Shidash has joined #ruby
<LiquidInsect> where are you getting 40 bytes from?
CorySimmons has quit [Quit: Zzz...]
bluenemo has joined #ruby
<Killa> LiquidInsect: I've read that somewhere. Is that not accurate?
sambao21 has joined #ruby
funktor has joined #ruby
<RubyPanther> Killa: That is not accurate, check.
<LiquidInsect> yeah...
<LiquidInsect> 40 bytes might be the overhead alone
echevemaster has joined #ruby
<LiquidInsect> not counting additional instance variables, the actual data in each
zigomir has quit [Ping timeout: 265 seconds]
<RubyPanther> objects take up a varying amount of memory. Fact.
lex_functor has quit [Quit: Leaving]
viscera has joined #ruby
<LiquidInsect> having no idea what your objects are, I can't tell you how big each one would be
<LiquidInsect> yes
chipotle has joined #ruby
nanoyak has joined #ruby
<Killa> The page you mentioned and countless different, where they say, that ruby objects weight 5 words
<LiquidInsect> ok
<LiquidInsect> but that's just
<LiquidInsect> Object.new
<toretore> a string is a single object, but it's not going to be a constant 40 bytes
<LiquidInsect> like, empty
<LiquidInsect> right
<RubyPanther> And many objects will only be represented in ObjectSpace by some overhead, a pointer, and a pointer to a C function that frees whatever memory the object uses.
cover has quit [Ping timeout: 265 seconds]
smathieu has quit [Remote host closed the connection]
<Killa> allright than, so I am calculating the memory in a wrong way
<Killa> cool, that's something : ]
smathieu has joined #ruby
eka has joined #ruby
<Killa> so, that also means I can judge the memory footprint of methods by number of allocated objects, right?
<RubyPanther> Killa: What I do for overall usage is I turn off all my swap, and then measure resident memory
<Killa> cant*
chrisramon has joined #ruby
<LiquidInsect> depending on your ruby version, you might want to ask ObjectSpace how big your objects are http://ruby-doc.org/stdlib-2.1.0/libdoc/objspace/rdoc/ObjectSpace.html
asteros has quit [Quit: asteros]
<LiquidInsect> memsize_of(obj) → Integer
funburn has quit [Quit: funburn]
bluenemo has quit [Ping timeout: 264 seconds]
<RubyPanther> Right, you can't judge the memory footprint of methods through any sort of rule of thumb, only through measuring actual memory usage according to the operating system
smathieu has quit [Remote host closed the connection]
jackneill has quit [Ping timeout: 240 seconds]
chrisramon has quit [Client Quit]
derek_c has joined #ruby
smathieu has joined #ruby
<Killa> I guess I will have to play with new features from 2.1.0
senayar_ has quit [Remote host closed the connection]
<Killa> Thanks a lot, everyone
chipotle has quit [Client Quit]
CorySimmons has joined #ruby
beneggett has joined #ruby
chipotle has joined #ruby
asteros has joined #ruby
wallerdev has joined #ruby
chichou has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
greggroth has joined #ruby
Jabberish has quit [Read error: Connection reset by peer]
djbender has quit [Quit: djbender]
alexju has quit [Remote host closed the connection]
alexju has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hobodave has quit [Quit: Computer has gone to sleep.]
alexju has quit [Remote host closed the connection]
dmead has joined #ruby
<dmead> hey boys and girls
<Authenticator> Does anyone know how to disable SimpleCov in a subprocess? My forking tests are dying with coverage on.
tjr9898 has quit [Remote host closed the connection]
<dmead> if i want to call another process and collect it's output as it happens, whats the best thing to do?
CorySimmons has quit [Quit: Bye!]
<jhass> dmead: IO.popen I guess
<apeiros> dmead: or Kernel#spawn
tjr9898 has joined #ruby
<jhass> that is if as it goes means you don't want to block until it exited
greggroth has quit [Ping timeout: 255 seconds]
<benzrf> hmmmmmm
hopkin has quit []
<benzrf> anybody know if there's a remote pry derivative that allows for multiple conns that DOESNT require eventmachine?
<benzrf> id rather use celluloid i think
shlant has quit [Ping timeout: 255 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
<apeiros> funny that a remote pry solution would use EM
<apeiros> given that EM is pretty invasive
Lewix has joined #ruby
<benzrf> yeah :[
<jamto11> does anyone know how to turn a time like this "2014-03-19 05:00:00 +0100" to "2014-03-19 06:00:00" ?
<benzrf> i would just use remote-pry but it doesnt really support doing anything but suspending
bluenemo has joined #ruby
<toretore> pry-remote-em is made specifically for em apps
<benzrf> hmmmm
<apeiros> toretore: ah, lol, yeah ok, I guess that makes sense :D
<benzrf> the thing is that if i spin off multiple remote-pry's in threads, they dont play well
<benzrf> they take over each others stdouts, and stuff
<toretore> jamto11: first, convert the string into a Time, then use Time#strftime to create the string you want
<dmead> k thanks
<toretore> benzrf: what are you using it for?
<benzrf> Quick
chichou has joined #ruby
wallerdev has quit [Quit: wallerdev]
<jamto11> i have tried that but havent been able to get the +0100 at the end to change the rest of the time
<apeiros> man! I really should work on my sill automaton. procrastinating this for like forever :-S
cescalante is now known as ce_afk
<apeiros> *silly
<benzrf> it's owrking OK right now
<benzrf> *working
Lewix has quit [Remote host closed the connection]
<benzrf> but my current solution feels a tad messy o.o
mansi has quit [Read error: Connection reset by peer]
<benzrf> anyway...
smathieu has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has quit [Quit: Konversation terminated!]
<toretore> jamto11: explain "tried"
<toretore> code pls
mansi has joined #ruby
smathieu has joined #ruby
Stalkr_ has joined #ruby
<jhass> jamto11: also how are those two equivalent? is the second one supposed to be in UTC+2?
havenwood has joined #ruby
<toretore> you have a cet time represented in a string and you want to create another string representing that time as utc without tz information
<toretore> oh
x1337807x has quit [Ping timeout: 264 seconds]
<toretore> it's not utc
x1337807_ has joined #ruby
<jhass> not, that'd be 4:00
<benzrf> i need some way to start a remote-pry-em client, but have it send a command or two before giving a prompt to a user
<toretore> fuckin timezones
<benzrf> anybody know if theres a hook for that?
<apeiros> ruby Time + timezones = mess
Es0teric has quit [Ping timeout: 240 seconds]
<jamto11> the thing is it used to be utc zulu then i changed it to non-utc, but i cant get rid of the fuken +400
<apeiros> sadly, rubys time classes still suck.
<apeiros> somebody should pay me to finish chronos :-p
<jamto11> because redshift's convert_timezone thing ignores that
<toretore> jamto11: you are not making any sense
Speed has joined #ruby
<jhass> apeiros: do some crowdfunding! :P
<apeiros> jhass: NO TIME!
michael_lee has quit [Ping timeout: 255 seconds]
<apeiros> I hate time, really. I mean, my lack of it :(
<jamto11> ill make a gist
jollyy has joined #ruby
<benzrf> redshift ftw
newUser1234 has joined #ruby
bluenemo has quit [Ping timeout: 255 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
ianfleeton has joined #ruby
cover has joined #ruby
Es0teric has joined #ruby
jamesaanderson has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<havenwood> >> -Rational(Time.now) + Rational(Time.now)
<eval-in> havenwood => (54143/1000000000) (https://eval.in/127817)
Hanmac1 has joined #ruby
<havenwood> would be nice if Benchmark supported printing the time taken and returning the return value
<bricker> >> Infinity / 0
<eval-in> bricker => uninitialized constant Infinity (NameError) ... (https://eval.in/127819)
<bricker> :(
<havenwood> >> Float::INFINITY / 0
<eval-in> havenwood => Infinity (https://eval.in/127820)
<bricker> :O
Hanmac has quit [Ping timeout: 265 seconds]
<benzrf> >> Float::INFINITY * 0
<eval-in> benzrf => NaN (https://eval.in/127821)
aspires has joined #ruby
<bricker> WHAT
Olipro has quit [Ping timeout: 246 seconds]
<havenwood> >> 1.upto(Float::INFINITY * 0).take nil.object_id
<eval-in> havenwood => [1, 2, 3, 4] (https://eval.in/127822)
lukec has joined #ruby
<bricker> Shouldn't inifinity * 0 just be 0? I'm no expert in theoretical mathematics, but that one seems obvious to me.
<benzrf> nope
<bricker> benzrf: why?
<benzrf> >> nil.object_id
<eval-in> benzrf => 4 (https://eval.in/127823)
Xeago has quit [Remote host closed the connection]
<benzrf> bricker: because (/0) is equal to (*infinity)
tonni has joined #ruby
<benzrf> therefore (*0) is equal to (/infinity)
<benzrf> obviously it should be one
<benzrf> =3
zachallett has joined #ruby
<bricker> you just blew my mind son
<bricker> havenwood: you win the award for "most pointless line of code"
<jhass> >> [0**Float::INFINITY, 0**Float::INFINITY, Float::INFINITY**Float::INFINITY, 0**0]
<eval-in> jhass => [0.0, 0.0, Infinity, 1] (https://eval.in/127824)
rvraghav93_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<toretore> anyone have experience with the bunny amqp client? is there a way to get blocking behavior on Queue#pop ?
quatron has joined #ruby
rvraghav93 has quit [Ping timeout: 265 seconds]
TigerWolf has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Remote host closed the connection]
<havenwood> bricker: \o/
<benzrf> toretore: why not use 0mq
mr_snowf1ake has quit [Ping timeout: 264 seconds]
<toretore> stop it with the zmq shit already
<benzrf> toretore: but it is good
<jamto11> https://gist.github.com/jamesjtong/9819670 timezone problem if anyone has time. thanks
jaywastaken has joined #ruby
jaywastaken has joined #ruby
jaywastaken has quit [Changing host]
toastynerd has quit [Remote host closed the connection]
greggroth has joined #ruby
CpuID has joined #ruby
<chichou> jamto11: It looks like you set timezone to UTC+1
jamesaanderson has quit [Quit: Textual IRC Client: www.textualapp.com]
<toretore> Time.iso8601('2014-03-19T04:00:00.000Z').strftime('%Y-%m-%d %H:%M:%S')
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bricker> jamto11: so, just to be clear, you want to convert the time to UTC and then add two hours to it?
<jamto11> js autoconverts the frontend to zulu time and i need to handle it on the backend
wallerdev has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<toretore> jamto11: so what is the *real* time?
<jhass> jamto11: converts it from what?
<toretore> you don't have your data in order
sambao21 has joined #ruby
macmartine has joined #ruby
<bricker> omg is this fullcalender... if it is I had this problem like 6 years ago
<jhass> jamto11: and by convert you mean overrides the timezone without adjusting the time or really converting it?
<jamto11> it really converts it
mehlah has joined #ruby
<jamto11> datepicker
<toretore> jamto11: then why are you adding 2 hours to it?
<chichou> I've done Time.parse time and it returned what you need
<jamto11> sorry its supposed to be 4:00
<toretore> i have no idea what it is you're doing here
<toretore> you have an iso8601 formatted time
_riz_ has joined #ruby
<toretore> and then?
Olipro has joined #ruby
echevemaster has quit [Quit: Leaving]
<toretore> you want a string that says "2014-03-19 04:00:00 +0000" ?
<_riz_> I'm not sure this is the right way to ask this question, but does anyone know the difference between $stdout.puts and puts ?
<toretore> from one that says "2014-03-19T04:00:00.000Z" ?
greggroth has quit [Ping timeout: 265 seconds]
<chichou> puts default to STDOUT
<shevy> _riz_ I think these would seem the same
<shevy> STDOUT is just assigned to $stdout
<_riz_> I would think puts, by default, would use stdout, but I'm having a hard time grabbing it when overriding $stdout.write
<shevy> aha
<jamto11> the iso8601 worked lol..
<jamto11> thanks
<_riz_> shevy, chichou yeah, that's what I would have thought
<shevy> well
<shevy> .write seems to be like print
<toretore> _riz_: what are you trying to achieve?
<_riz_> what I'm doing is trying to split stdout
<_riz_> like "tee"
<_riz_> where it goes both to stdout and a file
<shevy> hmm
<toretore> _riz_: for what reason?
<_riz_> what I've done works for $stdout.puts but not puts
<benzrf> gah
<_riz_> (also apparently not for stuff called with ``)
<benzrf> how do =[
<toretore> replace STDOUT with a proxy that forwards to both $stdout and your file
nisstyre has joined #ruby
jlast has quit [Remote host closed the connection]
<toretore> it's a bad idea, but that's how you'd do it
<_riz_> Where can I read more about STDOUT?
<toretore> it's just a constant containing the same IO as $stdout
<Mon_Ouie> $stdout is the one you have to change
<toretore> yeah, might be the other way around
<Mon_Ouie> STDOUT being a constant it should not be changed
toastynerd has joined #ruby
<benzrf> <$ is a thing in haskell
<_riz_> what I really want is a ruby implementation of dup2
<benzrf> they dont have $> tho
<benzrf> afaik
<_riz_> but googling has come up empty
<_riz_> (well, actually, with the technique I'm using)
banister has joined #ruby
<havenwood> think of STDOUT as the placeholder, and $stdout as the thing to fiddle with. capturing output from subshells is tricky, good ways to do it with IO.pipe
bhaak has quit [Ping timeout: 252 seconds]
iliketurtles has quit [Quit: zzzzz…..]
<havenwood> _riz_: RubyTapas episode 29 (which unfortunately is not one of the free ones) covers the issue really nicely.
Shidash has quit [Ping timeout: 265 seconds]
supermarin has joined #ruby
derek_c has quit [Ping timeout: 240 seconds]
greggroth has joined #ruby
iliketurtles has joined #ruby
<havenwood> We should ask Avdi to add that one to the free list, because it does come up and I don't know of another good writeup on the subject.
sigurding has quit [Quit: sigurding]
patrick99e99 has joined #ruby
evenix has quit [Remote host closed the connection]
chris_thomson has joined #ruby
<havenwood> Though if the $9 for all episodes is a hardship just send a postcard asking for it free. There's a nice Ruby tradition of "free if you send a postcard asking" that helps for those short on cash! :)
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegji_ has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Killa has quit [Quit: Page closed]
wallerdev has quit [Quit: wallerdev]
snath has quit [Ping timeout: 265 seconds]
brianpWins has quit [Quit: brianpWins]
patrick99e99 has quit [Ping timeout: 255 seconds]
bthesorceror has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf> Mon_Ouie: you there?
axsuul has joined #ruby
benlieb has quit [Quit: benlieb]
brianpWins has joined #ruby
sigurding has joined #ruby
<xybre> benzrf: What is <$ other than unggogleable?
greggroth has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
<benzrf> v <$ f = fmap (const v) f
monkegjinni has quit [Ping timeout: 264 seconds]
<havenwood> I was gunna say, in Ruby nothing.. :P
rahult has joined #ruby
zachallett has quit [Read error: Connection reset by peer]
<havenwood> my brain transposed to $< initially though, AFGF!
zachallett has joined #ruby
<benzrf> haha
<benzrf> <$ can be handy
oneawayman has quit [Ping timeout: 240 seconds]
<benzrf> it looks wrong to me though
<benzrf> i feel like the arrow should be toward the functor
rahult_ has joined #ruby
<benzrf> plus the unwrapped side is the side toward the functor
linojon has quit [Quit: linojon]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
jorts has quit [Ping timeout: 265 seconds]
jorts has joined #ruby
p4tuxx is now known as p4tux
snath has joined #ruby
mansi_ has joined #ruby
rahult has quit [Ping timeout: 240 seconds]
mansi has quit [Read error: Connection reset by peer]
<bricker> <$ is an ice cream cone obviously
<shevy> lol
<havenwood> bricker: money flavored
<Mon_Ouie> benzrf: Yes?
<havenwood> benzrf: No!
<Mon_Ouie> xybre: hoogle
<xybre> Mon_Ouie: whoogle?
mansi_ has quit [Remote host closed the connection]
<Mon_Ouie> hoogle!
<benzrf> Mon_Ouie: hey, i dont suppose theres any way you could somehow fix pry-remote to be able to have multiple servers running at once?
<benzrf> >->
wallerdev has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
<Mon_Ouie> You can have multiple ones listening to different ports (not with a single call to pry_remote though)
<benzrf> u sure?
<benzrf> i think i tried that and it bugged out
<xybre> Mon_Ouie: Interesting. I wonder what it says about a language that is so symbol ehavy that it requires a special search engine.
<benzrf> xybre: it's really not
<benzrf> xybre: the special search engine is so you can search types and stuff
f0ster has joined #ruby
<benzrf> symbols are a bonus
<benzrf> the majority of haskell code is no more symbolly than RubyPanther
<benzrf> *ruby
<benzrf> unless you're using lens with all the operators or something o=
<RubyPanther> And I'm not very symbolly
derek_c has joined #ruby
maroloccio has quit [Ping timeout: 252 seconds]
maroloccio2 has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
<benzrf> Mon_Ouie: yeah
workmad3 has joined #ruby
<Mon_Ouie> benzrf: Maybe you created them all in the same thread and so you had to wait for one to finish before the other started? You'd need to run each call to pry remote in a separate thread
<xybre> benzrf: I just see a lot of stuff like (a : t@(b:_)) = (a+b)
<benzrf> if i start multiple concurrent pry-remotes
<benzrf> the second connection fails to load properly
greggroth has joined #ruby
<RubyPanther> In fact I cringe whenever I see symbol used as data and converted to a string and displayed to a user, "Aiiiiiieeeeeeeeeeeeeeee"
<benzrf> and the 'connected' message shows up in the first one
<benzrf> xybre: that's just pattern matching
<benzrf> xybre: like destructuring assignment
juarlex has joined #ruby
<benzrf> a:b matches a list where a is the first element and b is the rest
mansi has quit [Ping timeout: 265 seconds]
sdelmore has quit [Quit: Leaving.]
<benzrf> the @ is for pulling part of a pattern into a var
<benzrf> given:
<benzrf> (a:t@(b:_)) = [1, 2, 3, 4]
<benzrf> a == 1
<Mon_Ouie> Hm, I don't know why it happens. I'm starting to feel like using DRb for that was a bad idea, makes it harder to understand those types of issues.
<benzrf> t == [2, 3, 4]
<benzrf> b == 2
<benzrf> Mon_Ouie: hmmm
charliesome has joined #ruby
<xybre> Ah okay, pattern matching syntax. Like Ocaml. It's so dense yet sparse on semantic content that it throws me off out of context.
<xybre> I'm actually pretty fond of data destructuring, but it always feels weird to actually do.
<xybre> I can never decide if I want more than Ruby has or not.
<benzrf> xybre: do some haskell and you will find that the answer is you do
<benzrf> =)
<benzrf> haskell has general immutability and lack of side effects tho
jason__ has joined #ruby
<benzrf> so destructuring is pretty damn important
<benzrf> it's the only primitive way to take data out of something
petey has quit [Ping timeout: 268 seconds]
thesheff17 has quit [Quit: Leaving]
<xybre> I also don't like how many operations it sometimes takes in Ruby to do something that I know is conceptually simple.
chipotle_ has joined #ruby
greggroth has quit [Ping timeout: 264 seconds]
<viscera> 11 "getting started" guides, and no way to distinguish which is best... i think i should probably use Why's for the lulz
brunoro has joined #ruby
<xybre> There's a lot of invisible, but real temporary objects being created and immediately GC'd. It jsut sorta bugs me.
Fire-Dragon-DoL has joined #ruby
<benzrf> viscera: what other langs do you know?
sigurding has quit [Quit: sigurding]
<xybre> I like Why's guide personally. But some people like super format stuff.
<viscera> benzrf: little bits of lots...
Fire-Dragon-DoL has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
<benzrf> viscera: python?
<benzrf> java?
<benzrf> C?
<apeiros> xybre: the moment you worry about such things is the moment you lost
<benzrf> haskell?
workmad3 has quit [Ping timeout: 265 seconds]
Fire-Dragon-DoL has joined #ruby
<havenwood> potion?
<benzrf> xybre: haskell has some interesting abstractions
<benzrf> like monads =D
<viscera> python, java, C, bash, asm, perl
jorts has quit [Quit: jorts]
<benzrf> neat.
chipotle_ has quit [Read error: Connection reset by peer]
<benzrf> viscera: any lisp?
<apeiros> xybre: focus on understandable, maintainable and readable code. care about performance when it's too slow.
<viscera> a little
chipotle_ has joined #ruby
<benzrf> viscera: ok, you probably already know most of the basic concepts in ruby
zxq9 has quit [Quit: Konversation terminated!]
teddyp1cker has joined #ruby
<benzrf> viscera: ruby's OOP is more like java's than python's
jorts has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
<benzrf> but it's still fairly different
jason__ has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 264 seconds]
<havenwood> Ruby's OOP is more like OOP than Java's. :P
jason__ has joined #ruby
<benzrf> viscera: ruby objects have an internal set of instance variables, like attributes on python objects, but you can only see them from inside methods
<benzrf> viscera: foo.bar is ALWAYS a method call
<xybre> apeiros: I understand. And most of those temp variables are small and have very little impact so I don't worry about them too much, but it lends itself to some seriously procedural code, or else dense and unreadable object diving. A specific example of this is dealing with large amounts of semistructured data, API responses or legacy databases, dump files, etc.
<benzrf> viscera: syntax is fairly perlish; you can leave off parens on methods, there's 'unless', and there's postfix if/unless
<benzrf> viscera: as in lisp, everything is an expression.
<benzrf> for example:
<benzrf> def foo(n)
<benzrf> if n > 3
<benzrf> true
<benzrf> else
<benzrf> false
<apeiros> xybre: that's what I'm saying - focus on the code, not on its performance implications.
<benzrf> end
funktor has quit [Remote host closed the connection]
<benzrf> end
<benzrf> obviously you'd just write n > 3
<benzrf> but the point is that the if is an expression
<apeiros> benzrf: >3 lines go to paste service
<benzrf> apeiros: right sorry
<benzrf> viscera: like in lisp, the result of a block of code is the last expr in it
zxq9 has joined #ruby
<benzrf> viscera: also like in lisp, a lot of methods take functions, which you pass as 'blocks'
<benzrf> which are basically similar to lambdas
chipotle has joined #ruby
toastynerd has quit [Remote host closed the connection]
<benzrf> >> [1, 2, 3].map {|n| n + 3}
<eval-in> benzrf => [4, 5, 6] (https://eval.in/127856)
afreidah1 has quit [Ping timeout: 240 seconds]
chipotle has quit [Read error: Connection reset by peer]
<benzrf> Mon_Ouie: since im having issues with multiple pry-remotes, and I kinda wanna not use EM, got any suggestions for what I should do?
<viscera> benzrf: okay... thanks...
chipotle has joined #ruby
<benzrf> viscera: ;p
<benzrf> viscera: feel free to try _why's
teddyp1cker has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
<benzrf> viscera: it gives a fairly good general feel
<benzrf> viscera: but it's a bit light on detailed explanations of how things work
<viscera> benzrf: i started with it years ago, but then got sidetracked and/or lost interest, as i do
<havenwood> viscera: be sure to read it along with the soundtrack
<benzrf> havenwood: huh
chipotle_ has quit [Ping timeout: 265 seconds]
jason__ has quit [Ping timeout: 255 seconds]
<Mon_Ouie> I'm not really sure, loading pry-remote-em probably is the only way without writing your own code but if you don't want to use EM then…
<xybre> apeiros: I can honestly say I've never had an issue with invisible objects outside of an n++ scenario, but the resulting code doesn't end end looking clean or OO.
crystal77 has quit [Quit: Computer has gone to sleep.]
Shidash has joined #ruby
<apeiros> xybre: somehow I feel like we're talking at cross-purposes :-(
<benzrf> Mon_Ouie: :[
toastynerd has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<benzrf> Mon_Ouie: wanna see what I'm using it for?
mengu has quit [Remote host closed the connection]
chipotle_ has joined #ruby
<apeiros> xybre: if you end up with code not looking clean/OO you don't do what I suggest to do - that is focusing on the code, to get it readable.
<Mon_Ouie> Yeah, I'm curious about that
zxq9 has quit [Remote host closed the connection]
_maes_ has joined #ruby
CpuID has joined #ruby
jason__ has joined #ruby
<benzrf> Mon_Ouie: are you on osx or loonix?
<Mon_Ouie> The latter
CpuID has quit [Client Quit]
mercwithamouth has joined #ruby
mehlah has quit [Quit: Leaving...]
zxq9 has joined #ruby
<benzrf> Mon_Ouie: [package manager install] libfuse-dev if you dont have it
<benzrf> then git clone https://github.com/benzrf/quick
<Mon_Ouie> Aha, that description sounds cool
<benzrf> =3
<benzrf> its p incomplete atmosx
<benzrf> *atm
banister has joined #ruby
<benzrf> hej da banister
<banister> sup
dapz has quit [Read error: Connection reset by peer]
<benzrf> bugging more people to look @ quick
<benzrf> :-D
<xybre> apeiros: Hmm, perhaps. What I'm saying is that I don't like the data constructs Ruby gives me because they are both ugly and inefficient. If they were not ugly or not inefficient it wouldn't bug me so much.
<banister> benzrf cool
CreativeEmbassy has quit [Quit: FO SHO]
<apeiros> xybre: then make proper classes
<apeiros> relying on just hashes and arrays is probably what makes your code ugly
chipotle has quit [Ping timeout: 268 seconds]
<benzrf> Mon_Ouie: once you bundle install, you should be able to `require './service'; Quick::Service.run`
ce_afk is now known as cescalante
chipotle_ is now known as chipotle
<benzrf> oh wait
<benzrf> Mon_Ouie: gotta pass it a dirname to mount on my bad
<banister> benzrf Mon_Ouie is a french magician
<banister> the rimbaud of ruby (as he's known around the mean streets of brugges)
<benzrf> !!!
<benzrf> oops i mean <!DOCTYPE html>
<benzrf> </haml_joke>
derek_c has quit [Quit: Leaving]
<xybre> apeiros: Classes are porrly suited to semistructured data. Especially if the data changes a lot. Whats required then is to write a DSL which walks an AST of parsed information since Ruby's built in data types are not up to the task.
<Mon_Ouie> Btw, I tried it with a directory that didn't exist (I thought it would create the directory itself too) and I can't ^C it
msmith_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
<graft> benzrf: there's no need for closing tags, just un-indent.
<apeiros> xybre: instead of whining about lacking datatypes - why not go and build them?
<benzrf> Mon_Ouie: oopsie
sailias has joined #ruby
<banister> xybre what datatype are u looking for (that exists in another language)
<slash_nick> graft: outdent you mean?
<benzrf> Mon_Ouie: the correct way to shut it down is as follows:
<benzrf> require 'brb'; quick = BrB::Tunnel.create(nil, 'brb://localhost:6200', verbose: true); quick.stop
<xybre> I'm hardly whining. The problem is not the data types.
<benzrf> Mon_Ouie: i am using brb atm because EM :\
<xybre> It is possible to create a class per "node" and try to have that class understand itself, tokenize and associate a class with each node and then recusively call its nested nodes in the same fasion. I've done this, but its a lot of excessive overhead.
andy___ has joined #ruby
<benzrf> xybre: use haskell :D :D :D
bilbo_swaggins has joined #ruby
<benzrf> xybre: it is absolutely ideal for this
<benzrf> parsec is fantastic for parsing, and ADTs sound like something youd want
andy___ is now known as Guest13621
<benzrf> Mon_Ouie: got it running on an extant dir?
jhass is now known as jhass|off
axsuul has quit [Ping timeout: 268 seconds]
<Mon_Ouie> Yes, I tried pry-remote-em to connect, doesn't seem to output correctly though
<Mon_Ouie> undefined method `<<' for #<PryRemoteEm::Server::EM_CONNECTION_CLASS:0x00000004f0ed40>
TigerWolf has joined #ruby
Avahey_ has joined #ruby
<xybre> benzrf: Right and for data structure exploration functional languages shine. Haskell and Ocaml are ones I've explored as being good tools for that job, and I'm currently writing a bit in Rebol which is quite nice if less well known.
<Mon_Ouie> (when I try to eval anything)
danno1 has joined #ruby
<benzrf> ive heard of rebol
<benzrf> Mon_Ouie: huh
<benzrf> Mon_Ouie: it works on my end o-o
cescalante is now known as ce_afk
<benzrf> Mon_Ouie: wheres the error originating from?
<Mon_Ouie> It does run the code though, if I try to use puts it will display it on the process that started the server
freezey has quit [Remote host closed the connection]
<bilbo_swaggins> xybre, what do you mean by exploration?
<benzrf> huh...
jobewan has quit [Quit: Leaving]
<bilbo_swaggins> exploring new ideas?
<Mon_Ouie> I can't easily tell, if I puts $! it's already gone
<benzrf> Mon_Ouie: i have == 0.75
<benzrf> *0.7.5
itadder has joined #ruby
<Mon_Ouie> [pry-remote-em] remote is PryRemoteEm 0.7.5 pryem
<benzrf> huh...
<benzrf> Mon_Ouie: anyway.
nateberkopec has quit [Quit: Leaving...]
<benzrf> Mon_Ouie: if you cd into the mount dir, you should see the module hierarchy as directories
parduse has quit [Ping timeout: 252 seconds]
<Mon_Ouie> Oh! That's neat
<xybre> bilbo_swaggins: given a large set of semistructured data, find the paths to the values you want, and then use thsoe paths to extract the values you need. An example of this would be some of the traditional web services that dump large data sets with no standard conventions. Pretty much any AST fits this specification as well. Old databases, proprietary file formats, all sorts of fun stuff.
<benzrf> if you create any .rb file in a dir, all of the code in it will be evalled in that dir's corresponding module each time you save
<benzrf> HOWEVER
<benzrf> if the file is not named header.rb, the code will be rejected if it is not only method defs
cpruitt has quit [Quit: cpruitt]
<benzrf> so that you dont accidentally do effectful stuff
nanoyak has quit [Quit: Computer has gone to sleep.]
<benzrf> try making a new class in your pry, then editing methods in it live =D
<Mon_Ouie> What about meta programming stuff?
<benzrf> ill work something out later -.-
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
<benzrf> ITF there will be support for things like opening up a pry in the current dir's module
<benzrf> including onto a persistent instance
<benzrf> and the big one is
* benzrf drum rolls
<benzrf> integration with dmtcp
<benzrf> =]
pu22l3r has quit [Remote host closed the connection]
S0da has joined #ruby
r0nin has joined #ruby
Xeago has joined #ruby
binaryplease has joined #ruby
<benzrf> Mon_Ouie: anyway, what kinda project will have significant amounts of code outside of method defs?
<benzrf> Mon_Ouie: i guess something small in sinatra maybe?
pu22l3r has joined #ruby
<Mon_Ouie> Well it could have helpers like attr_accessor that it defines and uses
<benzrf> yeah, so put those in header.rb
<benzrf> d:
<benzrf> probably not a ton of em
bricker has quit [Quit: leaving]
<Mon_Ouie> Oh, ok, I'd missed that bit
VTLob has quit [Quit: VTLob]
<benzrf> kk
<benzrf> also gonna be a thing:
<benzrf> easy api for eval in the running process
nisstyre has quit [Quit: WeeChat 0.4.3]
<benzrf> vim plugin?
SCommette has quit [Quit: SCommette]
pu22l3r has quit [Remote host closed the connection]
<benzrf> Mon_Ouie: btw, you can see what version of each file was most recently evaled by looking at the autocreated foo.in_use.rb file for foo.rb
smathieu has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<benzrf> it gets updated when code from foo.rb is loaded, stays the same when not
<benzrf> potentially also useful for indicating whether changes are currently reflected in the process
crystal77 has joined #ruby
smathieu has joined #ruby
jorts has quit [Quit: jorts]
m0s^away is now known as m0s
<Mon_Ouie> I don't know if it's related to fuse but if you try to ls a module that doesn't contain any classes it says 'no such file or directory'
Xeago has quit [Ping timeout: 265 seconds]
bilbo_swaggins has left #ruby ["Leaving"]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathieu has quit [Remote host closed the connection]
<benzrf> oh?
<benzrf> example?
smathieu has joined #ruby
ahawkins has quit [Quit: leaving]
sputnik13net has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Mon_Ouie> ls <that dir>/Object => ls: cannot access tmp/Object: No such file or directory
greggroth has joined #ruby
<benzrf> o-O
<benzrf> is it still running?
<Mon_Ouie> Yes, it does have an error, not sure if it's related
northfurr has joined #ruby
funburn has joined #ruby
<Mon_Ouie> ERROR: Exception #<NoMethodError: undefined method `[]' for nil:NilClass> not an Errno:: !respond_to?(:errno)
jorts has joined #ruby
<benzrf> o_o
<benzrf> line origin?
<Mon_Ouie> Comes from getxattr in fuse, the call comes from quick/service.rb:22:in `block in run' in your code
<benzrf> kk
freerobby has quit [Quit: Leaving.]
alexherbo2 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachallett has quit [Remote host closed the connection]
macmartine has quit [Remote host closed the connection]
<benzrf> uh?
<benzrf> hmm
crystal77 has quit [Client Quit]
<benzrf> aha
<benzrf> is your default ls different from just ls --color=auto
hfp has quit [Remote host closed the connection]
<Mon_Ouie> ls: aliased to ls --color=aut
siwica has quit [Quit: siwica]
<benzrf> hmm
<Mon_Ouie> (well I didn't past the 'o' but you've probably guessed it's there)
nanoyak has joined #ruby
<benzrf> haha
arubincloud has quit []
<benzrf> yeah the issue is that i misimpl'd a method
<benzrf> [i think!]
rainmanjam has quit [Remote host closed the connection]
tectonic has joined #ruby
michaeldeol has joined #ruby
<benzrf> Mon_Ouie: it expects a hash from xattr but it got nil
<benzrf> :{
Voodoofish430 has quit [Quit: Leaving.]
jrhe has quit [Quit: Connection closed for inactivity]
apeiros has quit [Remote host closed the connection]
Vovko has joined #ruby
msmith_ has quit [Remote host closed the connection]
apeiros has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
nbezzala has joined #ruby
crystal77 has joined #ruby
Guest13621 has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 240 seconds]
yasushi has joined #ruby
tjr9898 has joined #ruby
tjr9898_ has joined #ruby
kevind has quit [Quit: kevind]
_riz_ has left #ruby ["Leaving"]
nowthatsamatt has quit [Quit: nowthatsamatt]
r0nin has quit [Remote host closed the connection]
tjr9898__ has joined #ruby
<shevy> hmm
<shevy> in a client like irssi, how do you colourize something like yo
<benzrf> yo
brianpWins has joined #ruby
<Mon_Ouie> There's a mode in here that disables the colors, isn't there?
<benzrf> hello brianpWins
<shevy> hmm
<Mon_Ouie> Yes, it's mode +c
tjr9898 has quit [Ping timeout: 265 seconds]
Xiti has quit [Ping timeout: 265 seconds]
<shevy> I am working on a minimal ruby IRC client, I wonder if and how I should enable colour support
<xybre> shevy: In a terminal?
mikepack_ has joined #ruby
<shevy> no, only for IRC
<shevy> got the terminals well covered already :)
lkba has quit [Ping timeout: 255 seconds]
sprocket has left #ruby [#ruby]
<shevy> well; so that others on IRC can see the colours
mansi has joined #ruby
<xybre> You mean so I can type [red]this text is red[\red] or something?
Xiti has joined #ruby
<benzrf> Mon_Ouie: i fixed that thing btw
<benzrf> not pushed yet
newUser1234 has quit [Remote host closed the connection]
ValicekB has joined #ruby
shlant has joined #ruby
<shevy> xybre precisely!
<shevy> though typing [red] is probably not so convenient?
newUser1234 has joined #ruby
shlant has left #ruby [#ruby]
<Mon_Ouie> Here in weechat it's C-c c [color code number] (and e.g. C-c b for bold)
Vovko has quit []
greggroth has quit [Ping timeout: 240 seconds]
<shevy> aha ok
workmad3 has joined #ruby
nateberkopec has joined #ruby
<xybre> shevy: And Irssi mentions it allows MIRC color types and to referene this document http://www.irssi.org/documentation/formats
<benzrf> in irssi it is just ^C<code>
hfp`away has joined #ruby
<benzrf> ^B is bold
flowerhack has quit [Quit: Connection closed for inactivity]
abra has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 255 seconds]
mikepack_ has quit [Ping timeout: 255 seconds]
<Mon_Ouie> (I'm not sure the one for the color is that practical. I don't think many people use colors often enough they'd remember what they are). Allowing the first letter instead of the number could help.
abra has joined #ruby
Hobogrammer_ has joined #ruby
greggroth has joined #ruby
<xybre> I'd say skip adding colors to messages.
newUser1234 has quit [Ping timeout: 240 seconds]
<xybre> I used mIRC back in the day and everyone did it. Totally sucked. I wouldn't mind parsing a subset of markdown for bold and italics though, like how google does.
<benzrf> xybre: irssi displays _underscored_ and *starred* words underscored and bold, but not whole phrases
monkegjinni has joined #ruby
hfp`away has quit [Ping timeout: 245 seconds]
<xybre> benzrf: Thats neat, I wonder how hard it would be to make weechat do that.
Hobogrammer has quit [Ping timeout: 240 seconds]
<Riking> So I just ran into something really weird
<benzrf> _this is not underlined though_ *and this is not bolded*
<benzrf> :I
<benzrf> Riking: pls tell us more
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Riking> ruby -v was returning 1.9.1
<Riking> and if I ran bundle install, it installed gems into the 1.9.1 directory
roolo has quit [Quit: Leaving...]
<Riking> I ran sudo update-alternatives --config ruby, and changed to 2.0
andrewlio has quit [Remote host closed the connection]
<Riking> If I ran bundle install again, it still used the 1.9.1 directory
<Riking> So I thought, "Well, bundler does stuff with gems, and I'm pretty sure gem is a command, so let's see if gem has a version, too!"
lmickh has quit [Remote host closed the connection]
<Riking> sudo update-alternatives --config gem, and yes, there was a 1.9.1 and a 2.0. Switched it to 2.0.
<shevy> yeah Mon_Ouie, I guess colours are used only very rarely on IRC
<Riking> Ran bundle install again, and it was still using 1.9.1
<shevy> but I think I will add support for it just so that this feature is implemented, even if nobody uses it anyway
<brianpWins> benzrf: hey
Celm has quit [Remote host closed the connection]
<Riking> ...aaaand I just checked and I have ruby-bundler ("Transitional dummy package") installed. silly me
<Riking> which was probably it
momomomomo has quit [Quit: momomomomo]
<Riking> I did gem install bundler and all happy now
<benzrf> Riking: lol
<Riking> now let's see if rubymine is still on 1.9.1
itadder has quit [Remote host closed the connection]
klaut has quit [Read error: Connection reset by peer]
<Riking> Sdk: ruby-2.0.0-p299 yay
klaut has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
<shevy> upgrade man
<shevy> ruby 2.1.1p76 (2014-02-24 revision 45161) [i686-linux]
aspires has quit []
rvraghav93_ has quit [Read error: Connection reset by peer]
ianfleeton has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
mame0 has quit [Remote host closed the connection]
Celm has joined #ruby
rvraghav93 has joined #ruby
parduse has quit [Ping timeout: 240 seconds]
aspires has quit [Client Quit]
davy_ has quit [Remote host closed the connection]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
ce_afk is now known as cescalante
rabeldable has quit [Quit: Leaving.]
aspires has joined #ruby
Hobogrammer_ has quit [Ping timeout: 240 seconds]
tvw has quit []
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crystal77 has quit [Quit: Computer has gone to sleep.]
rvraghav93_ has joined #ruby
twiceaday has quit [Ping timeout: 252 seconds]
twiceaday has joined #ruby
rvraghav93 has quit [Ping timeout: 240 seconds]
aspires has quit [Client Quit]
parduse has quit [Ping timeout: 265 seconds]
kitak has joined #ruby
monkegjinni has quit [Remote host closed the connection]
aspires has joined #ruby
monkegjinni has joined #ruby
havenwood has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
bhaak has joined #ruby
YamakasY has joined #ruby
aspires has quit [Client Quit]
rvraghav93 has joined #ruby
supermarin has quit []
monkegjinni has quit [Ping timeout: 265 seconds]
habanany has joined #ruby
simono has joined #ruby
Eiam has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
rvraghav93_ has quit [Ping timeout: 264 seconds]
alexblackie has quit [Quit: ZNC - http://znc.in]
habanany has quit [Client Quit]
jcalado has quit [Ping timeout: 252 seconds]
jcalado has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
bilbo_swaggins has joined #ruby
aspires has joined #ruby
ixx has quit [Ping timeout: 252 seconds]
xxi has joined #ruby
bilbo_swaggins has quit [Client Quit]
stnly has quit [Ping timeout: 252 seconds]
stnly has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
Hobogrammer_ has joined #ruby
patrick99e99 has joined #ruby
nfk has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has joined #ruby
yano has quit [Remote host closed the connection]
cescalante is now known as ce_afk
nanashiRei has quit [Ping timeout: 252 seconds]
ce_afk is now known as cescalante
newUser1234 has joined #ruby
dstynchula has quit []
Guest76715 has quit [Ping timeout: 252 seconds]
rvraghav93_ has joined #ruby
victorbjelkholm has joined #ruby
goldenwest has joined #ruby
<goldenwest> I can't seem to get Curses::Window#bkgdset to work with color
axsuul has joined #ruby
rvraghav93 has quit [Ping timeout: 268 seconds]
Marc has joined #ruby
farn has quit [Quit: farn]
Marc is now known as Guest9187