apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 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
mary5030 has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
aspires has joined #ruby
SilkFox has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
<mallu> can someone tell me why do I need "then" http://pastie.org/9671442
jasooon has quit [Ping timeout: 265 seconds]
robustus has quit [Ping timeout: 255 seconds]
<shevy> mallu no that is not what this error message says, read it again
suzylee has joined #ruby
<zenspider> 2 chars are wrong in that code
Takumo has quit [Ping timeout: 240 seconds]
SilkFox has quit [Ping timeout: 265 seconds]
<zenspider> and 7 can be omitted
<shevy> mallu by the way, you can do: if object.nil? to query for a nil state
suzylee has left #ruby ["Leaving"]
<mallu> ok.. so it will be if "#{publish2}".nil?
robustus has joined #ruby
<zenspider> querying for a nil state is usually a design smell
<zenspider> no, because "..." is always a string
<mallu> let me try that
<shevy> mallu without the #{}
<zenspider> and strings are never nil
<zenspider> uh
<zenspider> without the quotes too
<mallu> oh .. ok.. thanks shevy
Takumo has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julieeharshaw has quit [Remote host closed the connection]
aspires has quit []
tonini has joined #ruby
<shevy> erb is so ugly
<lupine> haml uber alles
<zenspider> I was JUST about to say that haml was worse
<lupine> no, haml is more beautiful
<zenspider> then go code in python
<lupine> I don't like python
<shevy> if you compete with the super ugly, being ugly would be relatively better
<lupine> I do like haml
<shevy> k
<shevy> haml is also ugly
<lupine> visually, python's prolific use of underscores bothers me
<shevy> %section.container
<shevy> %h1= post.title
<shevy> the % and the = !!!
aspires has joined #ruby
<zenspider> I'd rather stab my own hand then work in haml again
<shevy> it's an improve compared to erb indeed :)
<lupine> aesthetics is always controversial
timonv_ has joined #ruby
<shevy> <h2><%= post.subtitle %></h2>
<lupine> haml is very beautiful for xmlish stuff
<shevy> you can apply absolute criteria - like the amount of characters required to convey an idea
<zenspider> aesthetics? semantics...
aspires has quit [Client Quit]
<shevy> like XML <foo>bar</foo> vs. yaml foo: bar
<lupine> and if you disagree, you're obviously a brain-dead moron who shouldn't be permitted an opinion
<lupine> so hah
<zenspider> If I can't move a block of code around and have it Just Work™, then the language pretty much is guaranteed to suck
<zenspider> indentation based syntax falls into the "pretty much guaranteed to suck" camp by definition
ixti has quit [Ping timeout: 244 seconds]
<lupine> it's a valid disadvantage
aspires has joined #ruby
<lupine> in practice, it rarely affects, me, and when it does, block tabs help immensely
tonini has quit [Ping timeout: 250 seconds]
<lupine> meanwhile, in erb, I frequently get mismatched block start/ends
<lupine> (the builtin python and go templating languages have the same problem)
Synthead has quit [Ping timeout: 256 seconds]
<zenspider> shevy: in racket: (xexpr->string '(foo bar))
<shevy> is this lisp
<shevy> my poor eyes :(
<zenspider> scheme, but yeah
timonv_ has quit [Ping timeout: 244 seconds]
<zenspider> outputs: "<foo>&bar;</foo>"
<zenspider> > (xexpr->string '(foo (bar "baz"))) => "<foo><bar>baz</bar></foo>"
pietr0 has quit [Quit: pietr0]
<zenspider> imo, that's about as clean as you can get
tokik has joined #ruby
TPBallbag has joined #ruby
<lupine> I could never balance the brackets properly in lisp
<mallu> shevy: it is still failing http://pastie.org/9671455
TPBallbag has quit [Remote host closed the connection]
<shevy> mallu you need to have clear thoughts leading to clear code in ruby
<shevy> a construct such as:
<shevy> ( if publish2.nil? ).to_s;
<shevy> could not have happend when you would have had clear thoughts
MageJames has joined #ruby
rkalfane has joined #ruby
MageJames has left #ruby [#ruby]
<shevy> it actually is the first time that I see someone try ( if condition ).to_s
<mg^^> send that to thedailywtf
magic is now known as Auv5
<shevy> mallu go and remove the () part and try again
<mallu> actually.. I'm not doing that.. i'm using chef anf it is doing that.. my code is <%= if publish2 != nil -%>
<zenspider> lupine: then get a real text editor. with paredit in emacs I _can't_ misbalance them, even if I wanted to (which, is sometimes a problem)
<zenspider> shevy: that's from the erb code
<zenspider> and as I said before: 2 chars need to change for that code to be correct
<shevy> mallu didn't I already tell you to use .nil? instead?
<zenspider> but mallu is ignoring me, so mallu will stay in the dark until they get some clarity
Azure has quit [Quit: Blue Sky Fish]
<mallu> zenspider I am not ignoring.. can you please be more specific
<zenspider> no. you need to think this out
<mallu> which 2 chrs I need to change
<mallu> zenspider ok :)
djstorm has quit [Ping timeout: 258 seconds]
<mallu> i think i know.. =
<mallu> and -
<mallu> is that correct?
<lupine> zenspider, I am glued to the hip to gedit, and will brook no alternative
<lupine> at the hip*
freezey has joined #ruby
<zenspider> don't think I've tried gedit...
<mallu> zenspider remove = and - ?
<shevy> if you remove two characters from zenspider
<shevy> you end up with enspidr
<zenspider> not zenspid ?
Rydekull has quit [Ping timeout: 255 seconds]
<lupine> you won't be impressed by it ^^
<mg^^> I was think enspier
<zenspider> that's... ugh. all the gnome stuff suffers from bad font rendering. or just bad fonts? I can't tell
<shevy> well I was thinking I could rescue the meaning of the spider if I just get rid of 'e'
Auv5 is now known as magic
<mallu> shevy I want to assign the value if publish2 is not nil? How do you do that with not_nil?
<tier> based on that code you don't even need the nil...
<shevy> mallu I do not even understand the question
Cheezebox has quit []
<shevy> value = 'bla' unless publish2.nil?
Rydekull has joined #ruby
jimmyhoughjr has joined #ruby
<mallu> got it.. use unless
<shevy> but I usually use if
<shevy> it is more lightweight to my poor old non-programmer brain
j_mcnally has joined #ruby
<zenspider> again, .nil? is a smell
* mg^^ reads up on eRuby
tvw has quit []
<mg^^> non-nil values are truty
<mg^^> unless they are fals
<mg^^> e
<shevy> mg^^ hey... are you magnesium?
mikeg has joined #ruby
<zenspider> how many typos?
<zenspider> all the typos
<mg^^> wow, suddenly I am dropping packets from my brain
<shevy> yeah
<zenspider> tcp > udp
<shevy> stop drinking beer!
<mg^^> it's the end of the work day
<shevy> then your intelligence should return back to normal anyway
<mg^^> and I've just been debugging an issue with our Spacewalk server for the last 2 hours
mg^^ is now known as mg^gone
mikeg has quit [Remote host closed the connection]
gregf has joined #ruby
<mg^gone> I can take the hit... good (insert your day/night period here) all
<mg^gone> hint
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
daynaskully has quit [Quit: quit]
* mg^gone hopes he can drive home and not miss a red light or something
RichardLitt has quit [Quit: RichardLitt]
reinaldob has quit [Remote host closed the connection]
j_mcnally has quit [Ping timeout: 240 seconds]
<tier> mallu: why use the .nil at all?
<tier> if publish2 will equate to true if publish2 has a value
jenrzzz has joined #ruby
<shevy> because he is not thinking
<shevy> he just randomly types things
<mallu> tier.. i see
<mallu> I just started with ruby guys
Spami has joined #ruby
<mallu> still learning
<tier> no worries, just remember... seek simplicity :)
<mallu> thanks tier
NoNMaDDeN has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
<tier> you're welcome. did you ever get your search working in that recipe or did you end up including the partial search cookbook?
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
sevenseacat has joined #ruby
sevenseacat has left #ruby [#ruby]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevenseacat has joined #ruby
ta has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
Takumo has quit [Ping timeout: 265 seconds]
davidhq has joined #ruby
niklasb_ has joined #ruby
davidhq has quit [Client Quit]
byprdct has quit []
FooMunki has quit [Quit: FooMunki]
dopie has quit [Read error: Connection reset by peer]
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
charliesome has joined #ruby
Takumo has joined #ruby
niklasb has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
d0ugb has joined #ruby
TPBallbag has joined #ruby
<pontiki> aloha
d0ugb has quit [Remote host closed the connection]
bricker`work has quit [Quit: leaving]
t_mmyv has quit [Quit: Textual IRC Client: www.textualapp.com]
ubra has left #ruby [#ruby]
jasooon has joined #ruby
cmckee has quit [Ping timeout: 245 seconds]
Azure has quit [Quit: Blue Sky Fish]
FooMunki has joined #ruby
TPBallbag has quit [Ping timeout: 255 seconds]
soasme has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
cmckee has joined #ruby
tier has quit [Remote host closed the connection]
Channel6 has joined #ruby
ejnahc has quit [Ping timeout: 255 seconds]
Notte has joined #ruby
fuhgeddaboudit has joined #ruby
yetanotherdave has quit [Ping timeout: 258 seconds]
FooMunki has quit [Quit: FooMunki]
kireevco has quit [Read error: Connection reset by peer]
kireevco1 has joined #ruby
cmckee has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
Notte has quit [Ping timeout: 255 seconds]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
aclearma_ has joined #ruby
davidhq has joined #ruby
mary5030 has joined #ruby
aclearma_ has quit [Client Quit]
aclearma_ has joined #ruby
aclearma_ has quit [Client Quit]
Takle has quit [Remote host closed the connection]
aclearma_ has joined #ruby
jottr has quit [Read error: Connection reset by peer]
cmckee has joined #ruby
jottr_ has joined #ruby
rahult has joined #ruby
sarmiena_ has joined #ruby
<sarmiena_> i came across this article explaining how to use postgres listen/notify using ActiveRecord: http://www.debugarea.com/2013/09/23/rails-listen-notify-with-postgres/
aclearma_ has quit [Client Quit]
<sarmiena_> but is there a way to implement this without AR?
moritzs has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 258 seconds]
rahult has quit [Client Quit]
mattmcclure has quit [Quit: Connection closed for inactivity]
Rollabunna has joined #ruby
rahult has joined #ruby
Azure has joined #ruby
<zenspider> sarmiena_: given that the implemented it in AR, wouldn't that imply that it was possible to do it elsewhere? it's SOFTware after all.
cashnguns has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmckee has quit [Ping timeout: 246 seconds]
davidhq has joined #ruby
<sarmiena_> zenspider: yeah i guess you’re right. just thought there might be a less over-architected way of achieving similar without having to reverse engineer the monster that is AR
medo has left #ruby [#ruby]
<sarmiena_> the script i want to write only needs to do listen, not the million other things AR does
MatthewsFace has joined #ruby
D9 has joined #ruby
troyready has quit [Ping timeout: 245 seconds]
ajk1 has joined #ruby
d0ugb has joined #ruby
d0ugb has quit [Remote host closed the connection]
weemsledeux has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
maletor_ has joined #ruby
<ajk1> anyone familiar with nokogiri
arescorpio has joined #ruby
<ajk1> im having some issues parsing an html page
mistermocha has joined #ruby
cmckee has joined #ruby
msmith has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
msmith has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest57421
sarmiena_ has quit [Quit: sarmiena_]
cmckee has quit [Ping timeout: 258 seconds]
nobitanobi has quit [Remote host closed the connection]
ejnahc has joined #ruby
helpa has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 246 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jshultz has quit [Quit: Connection closed for inactivity]
davidhq has joined #ruby
reinaldob has joined #ruby
end_guy has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
testcore has quit [Ping timeout: 246 seconds]
DrCode has joined #ruby
fuhgeddaboudit has joined #ruby
aspires has quit []
rahult is now known as rahult_
cmckee has joined #ruby
mistermocha has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 255 seconds]
davidhq has quit [Ping timeout: 244 seconds]
reinaldob has quit [Ping timeout: 246 seconds]
atmosx has quit [Ping timeout: 246 seconds]
Zesty has joined #ruby
mary5030 has joined #ruby
niklasb_ has quit [Ping timeout: 260 seconds]
testcore has joined #ruby
cmckee has quit [Client Quit]
eikood has joined #ruby
end_guy has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d0ugb has joined #ruby
atmosx has joined #ruby
d0ugb has quit [Remote host closed the connection]
<tmoore> ajk1: answered you in #nokogiri
maestrojed has quit [Quit: Computer has gone to sleep.]
sailias has quit [Quit: Leaving.]
mistermocha has joined #ruby
coderhs has joined #ruby
Fire-Dragon-DoL has joined #ruby
djbkd has quit [Quit: My people need me...]
kireevco1 has quit [Read error: Connection reset by peer]
eikood has quit [Quit: Leaving]
kireevco has joined #ruby
d0ugb has joined #ruby
d0ugb has quit [Remote host closed the connection]
TPBallbag has joined #ruby
mary5030 has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 246 seconds]
hamakn has quit [Remote host closed the connection]
tyll_ has joined #ruby
TPBallbag has quit [Ping timeout: 240 seconds]
goshdarnyou has joined #ruby
rockdon_ has joined #ruby
rockdon_ has quit [Client Quit]
LexRussia has quit [Ping timeout: 272 seconds]
nonks has joined #ruby
timonv_ has joined #ruby
rockdon_ has joined #ruby
<Fire-Dragon-DoL> is this behavior normal with ruby and "protected" ? https://gist.github.com/Fire-Dragon-DoL/675a69a698105088c3e3
<Fire-Dragon-DoL> I expected it to work (c#/java works fine)
mistermocha has quit [Remote host closed the connection]
<rockdon_> anyone know of a way to unmarshall .net remoting messages in ruby?
tyll has quit [Ping timeout: 244 seconds]
testcore has quit [Ping timeout: 246 seconds]
DrCode has quit [Ping timeout: 246 seconds]
atmosx has quit [Ping timeout: 246 seconds]
end_guy has quit [Ping timeout: 246 seconds]
sarmiena_ has joined #ruby
freezey has quit [Remote host closed the connection]
Sutffness has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
Stuffness has joined #ruby
<zenspider> sarmiena_: huh? Why would you have to reverse engineer active record?
timonv_ has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
<zenspider> Fire-Dragon-DoL: "expected it to work" is not descriptive
<Fire-Dragon-DoL> zenspider: I expected the spaceship operator to run value <=> other.value, but it looks it can't run other.value (because it's protected)
kireevco has quit [Quit: Leaving.]
i8igmac has joined #ruby
davidhq has joined #ruby
nobitanobi has quit [Remote host closed the connection]
mistermocha has joined #ruby
hamakn has joined #ruby
cmxu has joined #ruby
nobitanobi has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
nobitanobi has quit [Remote host closed the connection]
radic has joined #ruby
skolman has joined #ruby
skolman has quit [Remote host closed the connection]
AmBienCeD has quit [Ping timeout: 244 seconds]
NoNMaDDeN has joined #ruby
msmith has quit [Remote host closed the connection]
AmBienCeD has joined #ruby
skolman has joined #ruby
coderhs has quit [Read error: No route to host]
coderhs has joined #ruby
radic_ has quit [Ping timeout: 245 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
coderhs has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
msmith has joined #ruby
d0ugb has joined #ruby
skolman has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
d0ugb has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 265 seconds]
helpa has joined #ruby
RichardLitt has joined #ruby
skolman_ has joined #ruby
benzrf is now known as benzrf|offline
i8igmac has quit [Read error: No route to host]
mistermocha has quit [Remote host closed the connection]
willywos has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0ugb has joined #ruby
Asher has quit [Quit: Leaving.]
skolman_ has quit [Ping timeout: 272 seconds]
diegoviola has quit [Ping timeout: 258 seconds]
diegovio1 has joined #ruby
magic__ has joined #ruby
reinaldob has joined #ruby
d0ugb has quit [Remote host closed the connection]
<waxjar> Fire-Dragon-DoL: i tried out your example but i can't reproduce the error
msmith has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
magic_ has quit [Ping timeout: 245 seconds]
treehug88 has quit []
reinaldob has quit [Ping timeout: 244 seconds]
starkhallo is now known as starkhalo
Takle has joined #ruby
ndrei has joined #ruby
<Fire-Dragon-DoL> waxjar: you are right, I forgot protected on subclasses too: https://gist.github.com/Fire-Dragon-DoL/675a69a698105088c3e3
mistermocha has joined #ruby
melik has quit [Quit: (null)]
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has joined #ruby
wallerdev has quit [Quit: wallerdev]
<waxjar> ah i see, that makes sense
casual has quit [Ping timeout: 265 seconds]
<waxjar> they're two different classes after all
ikanobori_ has quit [Ping timeout: 265 seconds]
casual has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
skolman has joined #ruby
cmxu has joined #ruby
ikanobori_ has joined #ruby
benzrf|offline is now known as benzrf
<ajk1> @tmoore thank you!
<Fire-Dragon-DoL> waxjar: well, those are subclasses, I expected it to work, sigh
cashnguns has quit [Read error: Connection reset by peer]
diegovio1 is now known as diegoviola
rahult_ is now known as rahult
<waxjar> if you didn't redefine them it wouldn't be a problem
<waxjar> you can have #value call a private method that you implement separately for each subclass
davedev24_ has quit []
Avahey has joined #ruby
tonybird has joined #ruby
nonks has quit [Quit: WeeChat 1.0]
benzrf is now known as benzrf|offline
<Fire-Dragon-DoL> waxjar: you mean that if I remove #value from the "root" class, it works fine?
<Fire-Dragon-DoL> mh, no looks it doesn't
skolman has quit [Ping timeout: 272 seconds]
<Fire-Dragon-DoL> waxjar: sorry, must go to bed, really tired, I'll keep checking it tomorrow
Fire-Dragon-DoL has quit [Quit: Leaving.]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
maletor_ has quit [Quit: Computer has gone to sleep.]
tonini has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
jimbach has quit [Remote host closed the connection]
rahult is now known as rahult_
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
chipotle has quit [Quit: cya]
robbyoconnor has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
VanillaGoat__ has joined #ruby
aspires has quit []
stunder has quit [Ping timeout: 244 seconds]
tonini has quit [Ping timeout: 250 seconds]
braincrash has quit [Quit: bye bye]
Joufflu has joined #ruby
VanillaGoat_ has quit [Ping timeout: 265 seconds]
c0rn has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
havenwood has joined #ruby
jimmyhoughjr has joined #ruby
tkuchiki has joined #ruby
braincrash has joined #ruby
ramfjord has joined #ruby
j_mcnally has joined #ruby
kireevco has quit [Quit: Leaving.]
ramfjord has quit [Client Quit]
rahult_ is now known as rahult
rahult is now known as rahult_
rahult_ is now known as rahult
rahult is now known as rahult_
rahult_ is now known as rahult
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Rollabunna has joined #ruby
Axy has quit [Ping timeout: 244 seconds]
arup_r has joined #ruby
cmckee has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
c0rn has quit []
nobitanobi has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
Axy has joined #ruby
Mia has quit [Ping timeout: 244 seconds]
D9 has quit [Quit: Leaving]
yfeldblum has quit [Remote host closed the connection]
kireevco has joined #ruby
<SirFunk> Hi there. I have a question about class inheritance. How do i handle the case where I have a class "class Foo < Bar; def whatever end end" and in another file I want to make a class namespaced inside of that like: "class Foo; class Baz; end; end"
<SirFunk> ruby seems to take issue since the class is defined with inheritance one place and not the ohter
nobitanobi has quit [Remote host closed the connection]
mxrguspxrt has joined #ruby
<tmoore> SirFunk make sure you load the first one first
<SirFunk> tmoore: that does seem to work. Is there another solution? These files get autoloaded (padrino app)
nobitanobi has joined #ruby
<tmoore> Sorry it *does* work but you want another solution? You can make sure the first file is loaded first by requiring it at the top of the second file.
<SirFunk> I meant that it seems to work when loaded in that order.
yfeldblum has joined #ruby
mxrguspxrt has quit [Ping timeout: 244 seconds]
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Photism has joined #ruby
rahult is now known as rahult_
maletor_ has joined #ruby
<tmoore> so load them in that order :-)
<tmoore> the other solution would be to put the superclass everywhere I suppose
<tmoore> not sure if that would work really
<SirFunk> yeah I was wondering about that
<SirFunk> we'll probably just end up requiring the inherited one at the top of all the others
<tmoore> really, you always want to load the definition of a thing before you use it
krz has joined #ruby
<SirFunk> yeah, the 'sub classes' arent really using it
<SirFunk> we're just trying to use it for name spacing to keep things easy to follow
Azure has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby
Azure has joined #ruby
peterhu has quit [Quit: leaving]
peterhu has joined #ruby
BTRE has quit [Quit: Leaving]
ramfjord has joined #ruby
rahult_ is now known as rahult
freezey_ has joined #ruby
timonv_ has joined #ruby
arup_r has quit [Quit: Leaving.]
renlo has joined #ruby
<renlo> How long would you say it would take someone who is capable in python to get up in running in ruby enough to take on something like rails?
<MatthewsFace> I hated rails
<renlo> ie, if you have a general understanding of how a web application should be made, and how web frameworks generally work, would it be a big undertaking going from python to ruby?
<MatthewsFace> sorry that doesn't help answer you question
<MatthewsFace> lol
<renlo> ll
<renlo> sinatra?
<renlo> *lol
timonv_ has quit [Ping timeout: 244 seconds]
<MatthewsFace> if you understand web frameworks and web applications it might not be so ba
<MatthewsFace> bad*
<havenwood> renlo: ruby is nice, come try the water
<MatthewsFace> I was a command line guy, so ruby was awesome, but once I get to rails I didn't know what the hell I was doing.
Spami has quit [Quit: This computer has gone to sleep]
<havenwood> renlo: you might look at Padrino with Sinatra as well
hmsimha has joined #ruby
<renlo> would you recommend going from sinatra to rails or straight to rails
<renlo> i've worked with django, flask, sql alchemy, etc
<renlo> tornado, twisted
nobitanobi has quit [Remote host closed the connection]
maletor_ has quit [Quit: Computer has gone to sleep.]
chuck_ has joined #ruby
<chuck_> can someone tell me how I can assign values from an array to different variables?
tonini has joined #ruby
kyb3r_ has joined #ruby
rahult is now known as rahult_
mikeg has joined #ruby
<chuck_> Lets say I have an array [10, 20, 30] How can I assign first = 10 second = 20 third = 30
freezey_ has quit []
<renlo> first = arr[0]
<renlo> second = arr[1]
<renlo> though i dont know the rb syntax
<peterhu> first, second, third = array
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<renlo> damn thats cool
mikecmpbll has joined #ruby
<chuck_> peterhu, what if you don't know how many items you have in the array? is it possible to use .each do to assign value to different variables?
sarmiena_ has joined #ruby
nobitanobi has joined #ruby
<chuck_> anyone?
krz has quit [Ping timeout: 265 seconds]
tonini has quit [Ping timeout: 250 seconds]
<sevenseacat> and just create x number of random variables?
<sevenseacat> why?
<tmoore> I'm having deja vu
<tmoore> I swear there was a long conversation in here this morning about why that doesn't make any sense
<chuck_> sevenseacat so I get this array from a search I do. I do not know how many items in the array I want to take those values and assign it to different variables
<sevenseacat> why?
<tmoore> how would you refer to those variables if you don't know how many there are?
krz has joined #ruby
andrewjanssen has joined #ruby
krz has quit [Client Quit]
<chuck_> tmoore thats a good question
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
andrewjanssen has quit [Client Quit]
krz has joined #ruby
<tmoore> chuck_: are you the same person as mallu who was here a few hours ago?
jenrzzz has quit [Ping timeout: 250 seconds]
<sevenseacat> busted
arescorpio has quit [Excess Flood]
<chuck_> tmoore I am not sure what you talking about
<sevenseacat> have we worked out why they want to do this, yet
<tmoore> just a very strange coincidence?
<chuck_> interesting!
<sevenseacat> +1 to the 'bullshit abstraction'
byprdct has joined #ruby
<tmoore> anyway, chuck_ if you can tell us what you're trying to accomplish, maybe we can help :-)
mistermocha has quit [Remote host closed the connection]
<renlo> youd have to account for a) the variables array being shorter b) the values array being shorter c) both being the same length
<chuck_> tmoore you asked the correct question.. if i don't know how many variables i have then how do I use them...
<renlo> lol
maletor_ has joined #ruby
davedev24_ has joined #ruby
<havenwood> >> [10, 20, 30].each { |n| instance_variable_set "@" << Array.new(6) { [*'a'..'z'].sample }.join, n }; instance_variables
<eval-in__> havenwood => [:@edkanh, :@afdwlv, :@wythcq] (https://eval.in/209694)
skolman_ has joined #ruby
<havenwood> >.>
<tmoore> oh god
<sevenseacat> lol
emmesswhy has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<havenwood> i guess it should check that the instance variable isn't taken yet in case of collision, then SHIP IT!
<havenwood> work here is done
<sevenseacat> seriously, what is the point of assigning them all to different varialbes
<sevenseacat> please just answer me that
<havenwood> chuck_: they already have an index, use the index?
<havenwood> >> [10, 20, 30][1]
<eval-in__> havenwood => 20 (https://eval.in/209695)
mary5030 has quit [Remote host closed the connection]
skolman_ has quit [Ping timeout: 244 seconds]
<havenwood> chuck_: Or want a key for each value, consider a Hash. Betcha if you show the code folk will be better able to suggest sanity.
maletor__ has joined #ruby
kireevco has quit [Quit: Leaving.]
<sevenseacat> he seems to have clammed up
<chuck_> i admit what i was trying to do doesn't make sense
tkuchiki has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
tkuchiki has joined #ruby
tkuchiki_ has joined #ruby
<renlo> is rvm like virtualenv?
chuck_ has quit [Quit: Page closed]
sinequanon has joined #ruby
<sevenseacat> whats virtualenv?
sinequanon has quit [Remote host closed the connection]
<renlo> or bundler
<sevenseacat> i know its something python-related
<renlo> its a way to keep your python installs and packages separate
<renlo> virtualenv some_env
<renlo> makes a directory and a version of python in that directory
<renlo> then you can install packages specifically for that
<sevenseacat> thats not really necessary in ruby, and bundler handles dependencies for gem versions
patrick99e99 has quit [Ping timeout: 244 seconds]
tkuchiki_ has quit [Read error: Connection reset by peer]
RichardLitt has quit [Quit: RichardLitt]
tkuchiki_ has joined #ruby
<renlo> so to go from some repo on github to an installed application, one would use bundler?
tkuchiki has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
mikeg has quit [Remote host closed the connection]
arup_r has joined #ruby
tkuchiki_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
Lewix has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 244 seconds]
Lewix has joined #ruby
RichardLitt has joined #ruby
lektrik has joined #ruby
tkuchiki has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
Eiam has quit [Read error: Connection reset by peer]
aspiers has quit [Ping timeout: 265 seconds]
aspiers has joined #ruby
baordog has joined #ruby
chipotle has joined #ruby
maletor__ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
maletor_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tkuchiki has quit [Ping timeout: 256 seconds]
chipotle has quit [Client Quit]
bluOxigen has joined #ruby
chipotle has joined #ruby
ylluminarious has quit [Quit: Leaving...]
skolman_ has joined #ruby
jack_rabbit has joined #ruby
mistermocha has joined #ruby
jellosea has joined #ruby
<jellosea> hey, i’m having some difficulties understanding rack fcgi and my webserver lighttpd. can someone tell me what an example of the ‘bin-path’ handler should be?
djbkd has joined #ruby
maletor_ has joined #ruby
<renlo> best ruby on rails getting started guide?
<existensil> guides.rubyonrails.org
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
cmckee has quit [Quit: cmckee]
renderful has joined #ruby
webgen has joined #ruby
Morkel has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 258 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
omosoj has joined #ruby
godd2 has joined #ruby
<omosoj> hey guys, i want something that will help me do analytics on natural language texts.
shortCircuit__ has joined #ruby
nobitanobi has quit []
<omosoj> godd2, do you recommend that one? it's the first google result and i was wondering if there are others
<godd2> It's the only one I really saw when I was dabbling in language machine learning
<omosoj> what is nlp?
<godd2> natural language processing
<omosoj> yeah... what is it used for. i'm searing around and it seems like a big field but i can't fully grasp what it is/its significance
starkhalo has quit [Ping timeout: 255 seconds]
djbkd has quit [Quit: Leaving...]
<godd2> its used for several things
<godd2> one of which would be sentence parsing
Takle has joined #ruby
<godd2> that is, assigning parts of speech to words in sentences
<havenwood> if you want to go on a yak shave, try to write a method that separates sentences
<havenwood> it's harder than it seems
<godd2> another is audio parsing, like when you do a vocal google search and it knows what you say
<havenwood> Mr. Moto is here in Dec. and Feb. so periods can't be trusted to ends sentences.
linojon has quit [Quit: linojon]
<godd2> And when a Dr.wage is $23.92 per hr. it gets even
<godd2> even worse.
<godd2> not to mention typos
<godd2> But here's an awesome talk on machine learning with Ruby: https://www.youtube.com/watch?v=cO26TjhQWvA
Channel6 has quit [Quit: Leaving]
SolarSailor has joined #ruby
<jellosea> can anyone here help me with fastcgi
<omosoj> how would you guys solve that problem, besides just gathering up all the possibilities you can think of?
<jellosea> or point me to a place where someone can help me with fastcgi
chipotle has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
<godd2> omosoj solve what problem? The problem of whether or not a sentence has ended?
larissa has quit [Quit: Leaving]
<omosoj> yeah
chipotle has joined #ruby
mary5030 has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
SouL has quit [Remote host closed the connection]
<godd2> Machine learning is the go-to solution. It's when you feed a computer a ton of examples with the answer already given, and then let it build rules about when a new example is the end of a sentence or not
<godd2> Don't forget that even "hire a human" isn't a solution. Sometimes we make language parsing mistakes.
<godd2> A fun example of that are what are known as "garden path sentences".
<godd2> The horse raced past the barn fell.
<omosoj> wow, so it creates the rules itself. hm, how does it do that? interesting...
timonv_ has joined #ruby
NoNMaDDeN has joined #ruby
jack_rabbit has quit [Ping timeout: 258 seconds]
cmckee has joined #ruby
<godd2> omosoj well thats the thing about giving it a lot of examples with the solution already there for each one
emmesswhy has quit [Quit: This computer has gone to sleep]
<godd2> it starts to create rules like "whenver I see a dot by a number followed by a number, it's not the end of a sentence"
<omosoj> oh awesome. lol
Rollabunna has quit [Ping timeout: 244 seconds]
<godd2> watch that talk I linked. He gives a very good overview even for someone new to the space
<omosoj> not sure whether i want to jump in to treat or watch the video
<godd2> my suggestion is video first
davedev2_ has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
rahult_ is now known as rahult
sigurding has joined #ruby
ARCADIVS has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
ajk1 has quit [Remote host closed the connection]
armyriad has joined #ruby
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmxu has joined #ruby
Macaveli has joined #ruby
i_s has joined #ruby
Glyphnote has joined #ruby
Glyphnote has quit [Remote host closed the connection]
carraroj has joined #ruby
tagrudev has joined #ruby
gr33n7007h has quit [Ping timeout: 265 seconds]
mistermocha has quit [Remote host closed the connection]
neoxquick has quit [Read error: Connection reset by peer]
alem0lars has joined #ruby
maletor_ has quit [Quit: Computer has gone to sleep.]
ramfjord has quit [Ping timeout: 245 seconds]
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
tonini has joined #ruby
gr33n7007h has joined #ruby
diegoviola has quit [Remote host closed the connection]
maestrojed has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
tonini has quit [Ping timeout: 250 seconds]
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
hellangel7 has joined #ruby
oo_ has joined #ruby
i_s has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
ht__th has quit [Remote host closed the connection]
last_staff has joined #ruby
<omosoj> this is interesting stuff
sbar_ has joined #ruby
jenrzzz has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
arup_r has quit [Quit: Leaving.]
kamilc__ has joined #ruby
webgen has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
garbanotas has quit [Ping timeout: 255 seconds]
emmesswhy has joined #ruby
tkuchiki has joined #ruby
cmxu has quit [Quit: Textual IRC Client: www.textualapp.com]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
merqlove has joined #ruby
codecop has joined #ruby
webgen has joined #ruby
garbanotas has joined #ruby
sbar_ has quit [Ping timeout: 260 seconds]
oleo has quit [Quit: Verlassend]
tylersmith has quit [Remote host closed the connection]
ht__th has joined #ruby
tylersmith has joined #ruby
cndiv has joined #ruby
chipotle has quit [Quit: cya]
hanmac1 has joined #ruby
webgen has quit [Read error: Connection reset by peer]
tylersmith has quit [Ping timeout: 245 seconds]
webgen has joined #ruby
robbyoconnor has joined #ruby
patrick99e99 has joined #ruby
IcyDragon has quit [Quit: Space~~~]
tkuchiki has quit [Read error: Connection reset by peer]
drager_ has quit [Changing host]
drager_ has joined #ruby
drager_ is now known as drager
bal has joined #ruby
cndiv is now known as Guest58385
bluOxigen has quit [Ping timeout: 255 seconds]
kp666 has joined #ruby
patrick99e99 has quit [Ping timeout: 265 seconds]
garbanotas has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
Deejay has joined #ruby
mary5030 has joined #ruby
Deejay is now known as Guest69548
nfk has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
Guest69548 has quit [Client Quit]
tkuchiki has quit [Ping timeout: 250 seconds]
gr33n7007h has quit [Ping timeout: 256 seconds]
omosoj has quit [Quit: leaving]
gauke has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
tvw has joined #ruby
renlo has quit [Quit: renlo]
NoNMaDDeN has quit [Quit: Leaving...]
ec_ has joined #ruby
timonv_ has joined #ruby
Axy has quit [Read error: Connection reset by peer]
cibs has quit [*.net *.split]
eshy has quit [*.net *.split]
kp666 has quit [*.net *.split]
webgen has quit [*.net *.split]
skolman_ has quit [*.net *.split]
RichardLitt has quit [*.net *.split]
kyb3r_ has quit [*.net *.split]
havenwood has quit [*.net *.split]
eka has quit [*.net *.split]
ndrei has quit [*.net *.split]
Dude007 has quit [*.net *.split]
chrishough has quit [*.net *.split]
aclearman037 has quit [*.net *.split]
vlad_sta- has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
Tricon has quit [*.net *.split]
kingman has quit [*.net *.split]
skinny_much has quit [*.net *.split]
thoolihan has quit [*.net *.split]
Mattias has quit [*.net *.split]
Sgeo has quit [*.net *.split]
Ulrike_Rayne has quit [*.net *.split]
mchelen has quit [*.net *.split]
vpretzel has quit [*.net *.split]
hfp has quit [*.net *.split]
sivoais has quit [*.net *.split]
cephalostrum has quit [*.net *.split]
DivineEntity has quit [*.net *.split]
minecoins has quit [*.net *.split]
blackgoat has quit [*.net *.split]
vyrus001 has quit [*.net *.split]
ArchBeOS has quit [*.net *.split]
rismoney1 has quit [*.net *.split]
tzero has quit [*.net *.split]
_KaszpiR_ has quit [*.net *.split]
camt has quit [*.net *.split]
anekos_ has quit [*.net *.split]
Jamo has quit [*.net *.split]
blenny has quit [*.net *.split]
bakednotfried has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
Gate has quit [*.net *.split]
felixjet_ has quit [*.net *.split]
jriese has quit [*.net *.split]
ereslibre has quit [*.net *.split]
mahlon has quit [*.net *.split]
karunamon has quit [*.net *.split]
binw has quit [*.net *.split]
Platini has quit [*.net *.split]
v0n has quit [*.net *.split]
Heartbroken has quit [*.net *.split]
Igneous has quit [*.net *.split]
irk has quit [*.net *.split]
binaryhat has quit [*.net *.split]
Guest58385 has quit [*.net *.split]
last_staff has quit [*.net *.split]
duncannz has quit [*.net *.split]
existensil has quit [*.net *.split]
faulkner has quit [*.net *.split]
tercenya has quit [*.net *.split]
mclee has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
preller has quit [*.net *.split]
Vile` has quit [*.net *.split]
soahccc_ has quit [*.net *.split]
nevans has quit [*.net *.split]
samflores has quit [*.net *.split]
riceandbeans has quit [*.net *.split]
ghormoon has quit [*.net *.split]
ELLIOTTCABLE has quit [*.net *.split]
malcolmva has quit [*.net *.split]
Jon30 has quit [*.net *.split]
Baluse has quit [*.net *.split]
rikai has quit [*.net *.split]
sumark has quit [*.net *.split]
totimkopf has quit [*.net *.split]
programmerq has quit [*.net *.split]
Mohan has quit [*.net *.split]
DanKnox has quit [*.net *.split]
ged has quit [*.net *.split]
jzigmund has quit [*.net *.split]
Kamilion has quit [*.net *.split]
drakhu has quit [*.net *.split]
mjulian has quit [*.net *.split]
brandon_ has quit [*.net *.split]
inukshuk has quit [*.net *.split]
uxp has quit [*.net *.split]
Sp4rKy_ has quit [*.net *.split]
dandrade_ has quit [*.net *.split]
Todd has quit [*.net *.split]
jayne has quit [*.net *.split]
codecop has quit [*.net *.split]
Spami has quit [*.net *.split]
j_mcnally has quit [*.net *.split]
Guest57421 has quit [*.net *.split]
Nahra has quit [*.net *.split]
toretore has quit [*.net *.split]
theotherstupidgu has quit [*.net *.split]
asmodlol has quit [*.net *.split]
DefV_ has quit [*.net *.split]
teejar has quit [*.net *.split]
Numdox has quit [*.net *.split]
rotor has quit [*.net *.split]
Nilium has quit [*.net *.split]
Hanmac has quit [*.net *.split]
BombStrike has quit [*.net *.split]
a13x212 has quit [*.net *.split]
hfp_work has quit [*.net *.split]
nisstyre has quit [*.net *.split]
az7ar_away has quit [*.net *.split]
scruple has quit [*.net *.split]
certainty has quit [*.net *.split]
peeja has quit [*.net *.split]
bmn has quit [*.net *.split]
jamo_ has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
swilr has quit [*.net *.split]
rblackwe has quit [*.net *.split]
mackintosh has quit [*.net *.split]
raddazong has quit [*.net *.split]
jamooo_ has quit [*.net *.split]
hendricius has quit [*.net *.split]
kke has quit [*.net *.split]
lolmaus has joined #ruby
NoNMaDDeN has joined #ruby
olivier_bK has joined #ruby
garbanotas has joined #ruby
timonv_ has quit [Remote host closed the connection]
jheg has joined #ruby
i_s has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
acck has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
tadayoshi has joined #ruby
acck has quit [Client Quit]
rahult has quit [Quit: Back to the world of zombies]
acck has joined #ruby
byprdct has quit []
klaut has joined #ruby
tkuchiki has joined #ruby
gr33n7007h has joined #ruby
Mia has joined #ruby
codecop has joined #ruby
mclee has joined #ruby
Guest57421 has joined #ruby
Baluse has joined #ruby
theotherstupidgu has joined #ruby
preller has joined #ruby
toretore has joined #ruby
rotor has joined #ruby
Numdox has joined #ruby
DefV_ has joined #ruby
soahccc_ has joined #ruby
Nilium has joined #ruby
asmodlol has joined #ruby
Hanmac has joined #ruby
ghormoon has joined #ruby
riceandbeans has joined #ruby
tercenya has joined #ruby
last_staff has joined #ruby
samflores has joined #ruby
faulkner has joined #ruby
a13x212 has joined #ruby
Jon30 has joined #ruby
totimkopf has joined #ruby
j_mcnally has joined #ruby
existensil has joined #ruby
rikai has joined #ruby
Nahra has joined #ruby
nisstyre has joined #ruby
Spami has joined #ruby
kaichanvong has joined #ruby
nevans has joined #ruby
BombStrike has joined #ruby
Vile` has joined #ruby
hfp_work has joined #ruby
cibs has joined #ruby
az7ar_away has joined #ruby
teejar has joined #ruby
drakhu has joined #ruby
brandon_ has joined #ruby
jzigmund has joined #ruby
certainty has joined #ruby
sumark has joined #ruby
peeja has joined #ruby
swilr has joined #ruby
eshy has joined #ruby
raddazong has joined #ruby
jamo_ has joined #ruby
malcolmva has joined #ruby
mackintosh has joined #ruby
inukshuk has joined #ruby
ged has joined #ruby
scruple has joined #ruby
programmerq has joined #ruby
bmn has joined #ruby
Sp4rKy_ has joined #ruby
jamooo_ has joined #ruby
uxp has joined #ruby
Kamilion has joined #ruby
rblackwe has joined #ruby
mjulian has joined #ruby
michael_mbp has joined #ruby
hendricius has joined #ruby
DanKnox has joined #ruby
Mohan has joined #ruby
Todd has joined #ruby
kke has joined #ruby
jayne has joined #ruby
dandrade_ has joined #ruby
renlo has joined #ruby
cibs has quit [*.net *.split]
eshy has quit [*.net *.split]
ephemerian has joined #ruby
i_s has quit [Ping timeout: 258 seconds]
mengu has joined #ruby
tkuchiki_ has joined #ruby
SolarSailor has joined #ruby
havenwood has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
timonv_ has joined #ruby
niKeITA has joined #ruby
niKeITA is now known as niKeITA_away
Scotteh has joined #ruby
sigurding has quit [Quit: sigurding]
wpp has joined #ruby
kaspertidemann has joined #ruby
fabrice31 has joined #ruby
kp666 has joined #ruby
vpretzel has joined #ruby
cephalostrum has joined #ruby
ArchBeOS has joined #ruby
ndrei has joined #ruby
Dude007 has joined #ruby
skinny_much has joined #ruby
Igneous has joined #ruby
mahlon has joined #ruby
skolman_ has joined #ruby
aclearman037 has joined #ruby
webgen has joined #ruby
jriese has joined #ruby
karunamon has joined #ruby
sivoais has joined #ruby
justinmcp_ has joined #ruby
Gate has joined #ruby
Sgeo has joined #ruby
tzero has joined #ruby
bakednotfried has joined #ruby
rismoney1 has joined #ruby
thoolihan has joined #ruby
vlad_sta- has joined #ruby
chrishough has joined #ruby
binw has joined #ruby
Platini has joined #ruby
vyrus001 has joined #ruby
_KaszpiR_ has joined #ruby
felixjet_ has joined #ruby
irk has joined #ruby
ereslibre has joined #ruby
shaman42_ has joined #ruby
17SAAO6JH has joined #ruby
DivineEntity has joined #ruby
minecoins has joined #ruby
eka has joined #ruby
kingman has joined #ruby
binaryhat has joined #ruby
blenny has joined #ruby
Tricon has joined #ruby
kyb3r_ has joined #ruby
Mattias has joined #ruby
mchelen has joined #ruby
blackgoat has joined #ruby
v0n has joined #ruby
hfp has joined #ruby
anekos_ has joined #ruby
camt has joined #ruby
Ulrike_Rayne has joined #ruby
Heartbroken has joined #ruby
Jamo has joined #ruby
niKeITA_away is now known as niKeITA
niKeITA is now known as niKeITA_away
niKeITA_away is now known as niKeITA
niKeITA is now known as niKeITA_away
niKeITA_away is now known as niKeITA
Scotteh_ has quit [Ping timeout: 246 seconds]
niKeITA is now known as niKeITA_away
Xeago has joined #ruby
oo_ has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Cache_Money has quit [Quit: Cache_Money]
MatthewsFace has quit [Quit: This computer has gone to sleep]
cajone has left #ruby [#ruby]
tkuchiki has quit [Read error: Connection reset by peer]
17SAAO6JH has quit []
gr33n7007h has quit [Quit: Leaving]
cibs has joined #ruby
eshy has joined #ruby
terlar has joined #ruby
ta has joined #ruby
nisstyre has quit [Max SendQ exceeded]
rblackwe has quit [Max SendQ exceeded]
Nahra has quit [Max SendQ exceeded]
niKeITA_away is now known as niKeITA
rblackwe has joined #ruby
Nahra has joined #ruby
aganov has joined #ruby
Rollabunna has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Wolland has quit [Remote host closed the connection]
robbyoconnor has quit [Remote host closed the connection]
nisstyre has joined #ruby
alex88 has joined #ruby
sivoais_ has joined #ruby
tonybird has quit [Quit: Textual IRC Client: www.textualapp.com]
sarmiena_ has quit [Quit: sarmiena_]
Rollabunna has quit [Ping timeout: 246 seconds]
Lewix has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 272 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
tonini has joined #ruby
niKeITA is now known as niKeITA_away
niklasb has joined #ruby
jacobat has joined #ruby
lolmaus has joined #ruby
cibs has quit [*.net *.split]
eshy has quit [*.net *.split]
terlar has quit [*.net *.split]
wpp has quit [*.net *.split]
kaspertidemann has quit [*.net *.split]
fabrice31 has quit [*.net *.split]
kp666 has quit [*.net *.split]
webgen has quit [*.net *.split]
skolman_ has quit [*.net *.split]
kyb3r_ has quit [*.net *.split]
eka has quit [*.net *.split]
ndrei has quit [*.net *.split]
Dude007 has quit [*.net *.split]
chrishough has quit [*.net *.split]
aclearman037 has quit [*.net *.split]
vlad_sta- has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
Tricon has quit [*.net *.split]
kingman has quit [*.net *.split]
skinny_much has quit [*.net *.split]
thoolihan has quit [*.net *.split]
Mattias has quit [*.net *.split]
Sgeo has quit [*.net *.split]
Ulrike_Rayne has quit [*.net *.split]
mchelen has quit [*.net *.split]
vpretzel has quit [*.net *.split]
hfp has quit [*.net *.split]
sivoais has quit [*.net *.split]
cephalostrum has quit [*.net *.split]
DivineEntity has quit [*.net *.split]
minecoins has quit [*.net *.split]
blackgoat has quit [*.net *.split]
vyrus001 has quit [*.net *.split]
ArchBeOS has quit [*.net *.split]
rismoney1 has quit [*.net *.split]
tzero has quit [*.net *.split]
_KaszpiR_ has quit [*.net *.split]
camt has quit [*.net *.split]
anekos_ has quit [*.net *.split]
Jamo has quit [*.net *.split]
blenny has quit [*.net *.split]
bakednotfried has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
Gate has quit [*.net *.split]
felixjet_ has quit [*.net *.split]
jriese has quit [*.net *.split]
ereslibre has quit [*.net *.split]
mahlon has quit [*.net *.split]
karunamon has quit [*.net *.split]
binw has quit [*.net *.split]
Platini has quit [*.net *.split]
v0n has quit [*.net *.split]
Heartbroken has quit [*.net *.split]
Igneous has quit [*.net *.split]
irk has quit [*.net *.split]
binaryhat has quit [*.net *.split]
last_staff has quit [*.net *.split]
existensil has quit [*.net *.split]
faulkner has quit [*.net *.split]
tercenya has quit [*.net *.split]
mclee has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
preller has quit [*.net *.split]
Vile` has quit [*.net *.split]
soahccc_ has quit [*.net *.split]
nevans has quit [*.net *.split]
samflores has quit [*.net *.split]
riceandbeans has quit [*.net *.split]
ghormoon has quit [*.net *.split]
malcolmva has quit [*.net *.split]
Jon30 has quit [*.net *.split]
Baluse has quit [*.net *.split]
rikai has quit [*.net *.split]
sumark has quit [*.net *.split]
totimkopf has quit [*.net *.split]
programmerq has quit [*.net *.split]
Mohan has quit [*.net *.split]
DanKnox has quit [*.net *.split]
ged has quit [*.net *.split]
jzigmund has quit [*.net *.split]
Kamilion has quit [*.net *.split]
drakhu has quit [*.net *.split]
mjulian has quit [*.net *.split]
brandon_ has quit [*.net *.split]
inukshuk has quit [*.net *.split]
uxp has quit [*.net *.split]
Sp4rKy_ has quit [*.net *.split]
dandrade_ has quit [*.net *.split]
Todd has quit [*.net *.split]
jayne has quit [*.net *.split]
klaut has quit [*.net *.split]
Mia has quit [*.net *.split]
codecop has quit [*.net *.split]
Spami has quit [*.net *.split]
j_mcnally has quit [*.net *.split]
Guest57421 has quit [*.net *.split]
toretore has quit [*.net *.split]
theotherstupidgu has quit [*.net *.split]
asmodlol has quit [*.net *.split]
DefV_ has quit [*.net *.split]
teejar has quit [*.net *.split]
Numdox has quit [*.net *.split]
rotor has quit [*.net *.split]
Nilium has quit [*.net *.split]
Hanmac has quit [*.net *.split]
BombStrike has quit [*.net *.split]
a13x212 has quit [*.net *.split]
hfp_work has quit [*.net *.split]
az7ar_away has quit [*.net *.split]
scruple has quit [*.net *.split]
certainty has quit [*.net *.split]
peeja has quit [*.net *.split]
bmn has quit [*.net *.split]
jamo_ has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
swilr has quit [*.net *.split]
mackintosh has quit [*.net *.split]
raddazong has quit [*.net *.split]
jamooo_ has quit [*.net *.split]
hendricius has quit [*.net *.split]
kke has quit [*.net *.split]
Xeago has quit [Remote host closed the connection]
alem0lars has quit [Ping timeout: 244 seconds]
Scotteh_ has joined #ruby
echooo has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
shredding has joined #ruby
terlar has joined #ruby
kke has joined #ruby
hendricius has joined #ruby
jamooo_ has joined #ruby
raddazong has joined #ruby
mackintosh has joined #ruby
michael_mbp has joined #ruby
jamo_ has joined #ruby
bmn has joined #ruby
swilr has joined #ruby
peeja has joined #ruby
certainty has joined #ruby
scruple has joined #ruby
az7ar_away has joined #ruby
hfp_work has joined #ruby
BombStrike has joined #ruby
a13x212 has joined #ruby
Hanmac has joined #ruby
Nilium has joined #ruby
rotor has joined #ruby
Numdox has joined #ruby
teejar has joined #ruby
DefV_ has joined #ruby
asmodlol has joined #ruby
theotherstupidgu has joined #ruby
toretore has joined #ruby
Guest57421 has joined #ruby
j_mcnally has joined #ruby
Spami has joined #ruby
codecop has joined #ruby
Mia has joined #ruby
klaut has joined #ruby
wpp has joined #ruby
kaspertidemann has joined #ruby
fabrice31 has joined #ruby
kp666 has joined #ruby
webgen has joined #ruby
skolman_ has joined #ruby
kyb3r_ has joined #ruby
eka has joined #ruby
ndrei has joined #ruby
Dude007 has joined #ruby
chrishough has joined #ruby
Igneous has joined #ruby
aclearman037 has joined #ruby
vlad_sta- has joined #ruby
shaman42_ has joined #ruby
Tricon has joined #ruby
kingman has joined #ruby
skinny_much has joined #ruby
thoolihan has joined #ruby
Mattias has joined #ruby
Sgeo has joined #ruby
mchelen has joined #ruby
Ulrike_Rayne has joined #ruby
vpretzel has joined #ruby
hfp has joined #ruby
cephalostrum has joined #ruby
DivineEntity has joined #ruby
minecoins has joined #ruby
blackgoat has joined #ruby
vyrus001 has joined #ruby
ArchBeOS has joined #ruby
rismoney1 has joined #ruby
tzero has joined #ruby
_KaszpiR_ has joined #ruby
camt has joined #ruby
anekos_ has joined #ruby
jriese has joined #ruby
Jamo has joined #ruby
blenny has joined #ruby
bakednotfried has joined #ruby
justinmcp_ has joined #ruby
Gate has joined #ruby
felixjet_ has joined #ruby
karunamon has joined #ruby
ereslibre has joined #ruby
mahlon has joined #ruby
binw has joined #ruby
Platini has joined #ruby
v0n has joined #ruby
Heartbroken has joined #ruby
irk has joined #ruby
binaryhat has joined #ruby
Scotteh has quit [Ping timeout: 246 seconds]
agjacome has joined #ruby
parduse has quit [Ping timeout: 262 seconds]
shredding has quit [Client Quit]
echooo has quit [Ping timeout: 265 seconds]
mercwithamouth has joined #ruby
niKeITA_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dude007 has quit [Read error: Connection reset by peer]
klaut has quit [*.net *.split]
Mia has quit [*.net *.split]
codecop has quit [*.net *.split]
Spami has quit [*.net *.split]
j_mcnally has quit [*.net *.split]
Guest57421 has quit [*.net *.split]
toretore has quit [*.net *.split]
theotherstupidgu has quit [*.net *.split]
asmodlol has quit [*.net *.split]
DefV_ has quit [*.net *.split]
teejar has quit [*.net *.split]
Numdox has quit [*.net *.split]
rotor has quit [*.net *.split]
Nilium has quit [*.net *.split]
Hanmac has quit [*.net *.split]
BombStrike has quit [*.net *.split]
a13x212 has quit [*.net *.split]
hfp_work has quit [*.net *.split]
az7ar_away has quit [*.net *.split]
scruple has quit [*.net *.split]
certainty has quit [*.net *.split]
peeja has quit [*.net *.split]
bmn has quit [*.net *.split]
jamo_ has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
swilr has quit [*.net *.split]
mackintosh has quit [*.net *.split]
raddazong has quit [*.net *.split]
jamooo_ has quit [*.net *.split]
hendricius has quit [*.net *.split]
kke has quit [*.net *.split]
timonv_ has quit [Remote host closed the connection]
altes has joined #ruby
Dude007 has joined #ruby
LexRussia has joined #ruby
last_staff has joined #ruby
existensil has joined #ruby
faulkner has joined #ruby
mclee has joined #ruby
totimkopf has joined #ruby
DanKnox has joined #ruby
kaichanvong has joined #ruby
Baluse has joined #ruby
ged has joined #ruby
rikai has joined #ruby
drakhu has joined #ruby
Jon30 has joined #ruby
Kamilion has joined #ruby
jzigmund has joined #ruby
Mohan has joined #ruby
nevans has joined #ruby
malcolmva has joined #ruby
dandrade_ has joined #ruby
Todd has joined #ruby
inukshuk has joined #ruby
sumark has joined #ruby
brandon_ has joined #ruby
mjulian has joined #ruby
soahccc_ has joined #ruby
tercenya has joined #ruby
samflores has joined #ruby
Sp4rKy_ has joined #ruby
riceandbeans has joined #ruby
jayne has joined #ruby
ghormoon has joined #ruby
Vile` has joined #ruby
preller has joined #ruby
programmerq has joined #ruby
uxp has joined #ruby
lolmaus_ has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
echooo has joined #ruby
parduse has joined #ruby
rdark has joined #ruby
livathinos has joined #ruby
dumdedum has joined #ruby
timonv_ has joined #ruby
yfeldblum has joined #ruby
jenrzzz_ has joined #ruby
sigurding has joined #ruby
klaut has joined #ruby
Mia has joined #ruby
hfp_work has joined #ruby
BombStrike has joined #ruby
raddazong has joined #ruby
rotor has joined #ruby
kke has joined #ruby
peeja has joined #ruby
hendricius has joined #ruby
a13x212 has joined #ruby
jamo_ has joined #ruby
az7ar_away has joined #ruby
teejar has joined #ruby
jamooo_ has joined #ruby
toretore has joined #ruby
DefV_ has joined #ruby
Spami has joined #ruby
Guest57421 has joined #ruby
scruple has joined #ruby
j_mcnally has joined #ruby
Nilium has joined #ruby
swilr has joined #ruby
theotherstupidgu has joined #ruby
bmn has joined #ruby
michael_mbp has joined #ruby
certainty has joined #ruby
Hanmac has joined #ruby
mackintosh has joined #ruby
codecop has joined #ruby
Numdox has joined #ruby
asmodlol has joined #ruby
Guest57421 has quit [Max SendQ exceeded]
BombStrike has quit [Max SendQ exceeded]
timonv_ has quit [Remote host closed the connection]
digifiv5e has joined #ruby
Mia is now known as Guest24516
digifiv5e is now known as Guest56627
Dude007 has quit [Ping timeout: 250 seconds]
tonini has quit [Ping timeout: 250 seconds]
Olipro has quit [Max SendQ exceeded]
DLSteve has joined #ruby
BombStrike has joined #ruby
robbyoconnor has joined #ruby
amclain has quit [Quit: Leaving]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
godd2 has quit [Ping timeout: 245 seconds]
Olipro has joined #ruby
jheg has quit [Quit: jheg]
bMalum has joined #ruby
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
elaptics`away is now known as elaptics
tagrudev has quit [Read error: Connection reset by peer]
cibs has joined #ruby
eshy has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cibs has quit [Max SendQ exceeded]
cibs has joined #ruby
tagrudev has joined #ruby
renlo has quit [Quit: HUEHUEHUEHUEHUEHUEHUEHUEHUEHUEHEUHUEHUEHUEHUEHUEHEUHEUHUEHUEHUEHEUEUEUHUEEHU....hue]
tonini has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
eikood has joined #ruby
sk87 has joined #ruby
Juanchito has joined #ruby
changx has joined #ruby
roolo has joined #ruby
andrewlio has joined #ruby
yxhuvud has joined #ruby
bMalum has quit [Quit: bMalum]
Guest13011 has joined #ruby
otakbeku has joined #ruby
tadayoshi has quit []
tadayoshi has joined #ruby
thsig has joined #ruby
vyorkin has joined #ruby
tkuchiki_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
duncannz has joined #ruby
reinaldob has joined #ruby
webgen has quit [Read error: Connection reset by peer]
qba73 has joined #ruby
tadayoshi has quit [Client Quit]
charliesome has quit [Quit: zzz]
otakbeku has quit [Quit: leaving]
NoNMaDDeN has quit [Quit: Leaving...]
AFKGeek has joined #ruby
sigurding has quit [Quit: sigurding]
reinaldob has quit [Ping timeout: 245 seconds]
zarubin has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
eikood has quit [Remote host closed the connection]
charliesome has joined #ruby
havenwood has quit []
skolman_ has quit [Remote host closed the connection]
eikood has joined #ruby
klaut has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby
eikood has quit [Client Quit]
marr has joined #ruby
last_staff has quit [Quit: last_staff]
webgen has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yxhuvud has quit [Remote host closed the connection]
dANO_ has joined #ruby
einarj has joined #ruby
sk87 has joined #ruby
last_staff has joined #ruby
Alina-malina has quit [Ping timeout: 258 seconds]
Alina-malina has joined #ruby
klaut has joined #ruby
sigurding has joined #ruby
merqlove has quit [Quit: Connection closed for inactivity]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
kaspergrubbe has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
bMalum has joined #ruby
sk87 has joined #ruby
patrick99e99 has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
sk87 has quit [Client Quit]
Dude007 has joined #ruby
Takle has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
mercwithamouth has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
yfeldblum has joined #ruby
doev has joined #ruby
i_s has joined #ruby
bMalum has quit [Quit: bMalum]
WormDrink has quit [Ping timeout: 272 seconds]
<mosez> is it correct that i dont need to install gecode for the current dep_selector gem because it gets already compiled by dep-selector-libgecode?
<pontiki> and i have no idea what they are over here, either
robbyoconnor has quit [Remote host closed the connection]
<mosez> pontiki: directly after writing that on the rails channel i thought that it should be better over here.
olivier_bK has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<sevenseacat> lawl
i_s has quit [Ping timeout: 265 seconds]
mercwithamouth has joined #ruby
* hanmac1 remember that the gecode stuff is somehow fucked up and i dont know if i did solved it or not on my system
roolo has quit [Remote host closed the connection]
<mosez> ok, i think USE_SYSTEM_GECODE is the key for getting it packaged nice :)
roolo has joined #ruby
Scotteh_ has quit [Ping timeout: 246 seconds]
AFKGeek has quit [Quit: Leaving]
<hanmac1> good that rwx does not ship bundled wx inside ;P
roolo has quit [Ping timeout: 272 seconds]
bMalum has joined #ruby
AFKGeek has joined #ruby
acck has quit [Quit: Textual IRC Client: www.textualapp.com]
kaspertidemann has quit []
LexRussia has quit [Ping timeout: 255 seconds]
FooMunki has joined #ruby
bayed has joined #ruby
cherwin has joined #ruby
Aaaal has joined #ruby
Hytosys has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
WormDrink has joined #ruby
mercwithamouth has quit [Ping timeout: 244 seconds]
agjacome has quit [Ping timeout: 258 seconds]
Hytosys has joined #ruby
jheg_ has joined #ruby
peta_ has joined #ruby
ducklobster has quit [Ping timeout: 246 seconds]
cina has joined #ruby
Lucky__ has quit [Ping timeout: 246 seconds]
bMalum has quit [Quit: bMalum]
baordog has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Quit: Leaving.]
koderok has joined #ruby
koderok has quit [Client Quit]
FooMunki has quit [Quit: FooMunki]
Xeago_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe_ has joined #ruby
codeitagile has joined #ruby
yxhuvud has joined #ruby
michael_mbp has quit [Excess Flood]
postmodern has quit [Quit: Leaving]
oo_ has joined #ruby
postmodern has joined #ruby
postmodern has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
mercwithamouth has joined #ruby
Rollabunna has joined #ruby
MrSamuel has joined #ruby
jenrzzz has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
schaerli has joined #ruby
Rollabunna has quit [Ping timeout: 258 seconds]
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bauruine- has joined #ruby
jhass|off is now known as jhass
Xeago has joined #ruby
soasme has quit [Quit: Leaving...]
NoNMaDDe_ has joined #ruby
NoNMaDDeN has quit [Ping timeout: 255 seconds]
vyorkin has quit [Ping timeout: 258 seconds]
<mosez> damn dep_selector... got to see how i can fix the compiling :( https://build.opensuse.org/project/monitor/home:tboerger:branches:systemsmanagement:chef:10
Xeago_ has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
Takle_ has quit [Remote host closed the connection]
eikood has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
tokik has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
thsig has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 245 seconds]
jacobat has quit [Ping timeout: 240 seconds]
vyorkin has joined #ruby
unshadow has joined #ruby
jottr_ has joined #ruby
vyorkin has quit [Client Quit]
vyorkin has joined #ruby
Hytosys has quit [Ping timeout: 240 seconds]
rodfersou has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
ixti has joined #ruby
<unshadow> I have an Array of hashes, it looks like that [{:cookie=>"ba7", :auth=>"true"}, {:cookie=>"bfhfh", :auth=>"true"}], how can I find if :cookie "ba7" is true or false ? (print the :auth value)
jacobat has joined #ruby
timonv_ has joined #ruby
TPBallbag has joined #ruby
Guest24516 has quit [Read error: Connection reset by peer]
Guest24516 has joined #ruby
ayaz has joined #ruby
echooo1 has joined #ruby
tonini has joined #ruby
<apeiros> unshadow: you use Array#find to find the matching hash and then look up its :auth key
<apeiros> unshadow: alternatively you rethink how you structure your data. it might not be structured the right way for your use-case.
<yxhuvud> or make it a structure better suited for a task
<yxhuvud> ¤#"¤#!
echooo has quit [Ping timeout: 255 seconds]
cherwin has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
<unshadow> what do you guys suggest ? I want to keep a cokkie in an array, every cookie will be true or false depeding on client login, the I want to check later in the array if the cookie is true or false
sepp2k has joined #ruby
cschneid has joined #ruby
cherwin_ has joined #ruby
<apeiros> {"ba7" => true, "bfhfh" => false}
<apeiros> instant lookup
<yxhuvud> uh, if the cookie comes from a web context, doesn't it have a life time?
<apeiros> I go from what he shows us
<apeiros> s/he/they/
awarner_ has joined #ruby
<yxhuvud> yes, I took that step as well, and then asked myself 'cookie? is he trying to reinvent web login?'
<unshadow> the time life ... i'll think about it later, for now only this, aspeiros idea is nice
cherwin has quit [*.net *.split]
Dude007 has quit [*.net *.split]
sivoais_ has quit [*.net *.split]
aganov has quit [*.net *.split]
ht__th has quit [*.net *.split]
hellangel7 has quit [*.net *.split]
hanmac1 has quit [*.net *.split]
Photism has quit [*.net *.split]
nateberkopec has quit [*.net *.split]
yeticry has quit [*.net *.split]
pandaant has quit [*.net *.split]
theother1tupidgu has quit [*.net *.split]
Hobogrammer has quit [*.net *.split]
kedare has quit [*.net *.split]
bjornar has quit [*.net *.split]
lsmola has quit [*.net *.split]
bascht has quit [*.net *.split]
Roa has quit [*.net *.split]
machete has quit [*.net *.split]
riton has quit [*.net *.split]
akkad has quit [*.net *.split]
SirFunk has quit [*.net *.split]
Maxdamantus has quit [*.net *.split]
Rylee has quit [*.net *.split]
crazed has quit [*.net *.split]
genta has quit [*.net *.split]
sindork has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
<unshadow> (he*) ;)
cherwin has joined #ruby
Dude007 has joined #ruby
sivoais_ has joined #ruby
aganov has joined #ruby
hanmac1 has joined #ruby
ht__th has joined #ruby
Photism has joined #ruby
nateberkopec has joined #ruby
yeticry has joined #ruby
pandaant has joined #ruby
theother1tupidgu has joined #ruby
Hobogrammer has joined #ruby
kedare has joined #ruby
bjornar has joined #ruby
lsmola has joined #ruby
bascht has joined #ruby
Roa has joined #ruby
machete has joined #ruby
riton has joined #ruby
akkad has joined #ruby
Maxdamantus has joined #ruby
SirFunk has joined #ruby
genta has joined #ruby
sindork has joined #ruby
crazed has joined #ruby
MuffinPimp has joined #ruby
cherwin has quit [Ping timeout: 246 seconds]
awarner has quit [Ping timeout: 250 seconds]
hellangel7 has joined #ruby
Rylee has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
hellangel7 has quit [*.net *.split]
sepp2k has quit [*.net *.split]
schaerli has quit [*.net *.split]
Aaaal has quit [*.net *.split]
siwica has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
sigurding has quit [*.net *.split]
codecop has quit [*.net *.split]
toretore has quit [*.net *.split]
theotherstupidgu has quit [*.net *.split]
asmodlol has quit [*.net *.split]
DefV_ has quit [*.net *.split]
teejar has quit [*.net *.split]
Numdox has quit [*.net *.split]
rotor has quit [*.net *.split]
Nilium has quit [*.net *.split]
Hanmac has quit [*.net *.split]
a13x212 has quit [*.net *.split]
hfp_work has quit [*.net *.split]
az7ar_away has quit [*.net *.split]
scruple has quit [*.net *.split]
certainty has quit [*.net *.split]
peeja has quit [*.net *.split]
bmn has quit [*.net *.split]
jamo_ has quit [*.net *.split]
swilr has quit [*.net *.split]
mackintosh has quit [*.net *.split]
raddazong has quit [*.net *.split]
jamooo_ has quit [*.net *.split]
hendricius has quit [*.net *.split]
kke has quit [*.net *.split]
hellangel7 has joined #ruby
sepp2k has joined #ruby
schaerli has joined #ruby
Aaaal has joined #ruby
siwica has joined #ruby
tkuchiki has joined #ruby
sigurding has joined #ruby
codecop has joined #ruby
toretore has joined #ruby
theotherstupidgu has joined #ruby
asmodlol has joined #ruby
DefV_ has joined #ruby
teejar has joined #ruby
Numdox has joined #ruby
rotor has joined #ruby
Nilium has joined #ruby
Hanmac has joined #ruby
a13x212 has joined #ruby
hfp_work has joined #ruby
az7ar_away has joined #ruby
scruple has joined #ruby
certainty has joined #ruby
peeja has joined #ruby
swilr has joined #ruby
bmn has joined #ruby
kke has joined #ruby
mackintosh has joined #ruby
jamo_ has joined #ruby
raddazong has joined #ruby
hendricius has joined #ruby
jamooo_ has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
thsig has joined #ruby
_2easy has quit [Quit: Lost terminal]
hellangel7 has quit [Max SendQ exceeded]
vyorkin has quit [*.net *.split]
Xeago has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
changx has quit [*.net *.split]
rdark has quit [*.net *.split]
altes has quit [*.net *.split]
Nahra has quit [*.net *.split]
nfk has quit [*.net *.split]
rockdon_ has quit [*.net *.split]
ejnahc has quit [*.net *.split]
marcel has quit [*.net *.split]
Haiiro has quit [*.net *.split]
kotk has quit [*.net *.split]
deepy has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
linduxed has quit [*.net *.split]
ruisantos has quit [*.net *.split]
jxport has quit [*.net *.split]
aboudreault has quit [*.net *.split]
aep has quit [*.net *.split]
apeiros has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
joast has quit [*.net *.split]
vieq has quit [*.net *.split]
crome has quit [*.net *.split]
M-Technic has quit [*.net *.split]
Fado has quit [*.net *.split]
Kruppe has quit [*.net *.split]
icedp has quit [*.net *.split]
sarlalian has quit [*.net *.split]
jbw has quit [*.net *.split]
drjfreeze has quit [*.net *.split]
seanmarcia has quit [*.net *.split]
nopc0de has quit [*.net *.split]
gigetoo has quit [*.net *.split]
ctrlrsf has quit [*.net *.split]
dfedde has quit [*.net *.split]
napcae has quit [*.net *.split]
drago777 has quit [*.net *.split]
roqo has quit [*.net *.split]
bahar_ has quit [*.net *.split]
dyreshark has quit [*.net *.split]
IotaSpencer has quit [*.net *.split]
snzmn has quit [*.net *.split]
canton7 has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
cnj has quit [*.net *.split]
Xuerian has quit [*.net *.split]
three18ti has quit [*.net *.split]
tchebb has quit [*.net *.split]
devyn has quit [*.net *.split]
AlyssaDaemon has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
mgorbach has quit [*.net *.split]
Urocyon has quit [*.net *.split]
jblancett has quit [*.net *.split]
headius has quit [*.net *.split]
erichmenge has quit [*.net *.split]
psyprus has quit [*.net *.split]
chihhsin has quit [*.net *.split]
edwardly has quit [*.net *.split]
patronus has quit [*.net *.split]
flori_ has quit [*.net *.split]
audy has quit [*.net *.split]
linagee has quit [*.net *.split]
Miron has quit [*.net *.split]
Afforess has quit [*.net *.split]
Fraeon has quit [*.net *.split]
olekenneth has quit [*.net *.split]
nerdman has quit [*.net *.split]
adamholt has quit [*.net *.split]
siwica has quit [Ping timeout: 257 seconds]
hellangel7 has joined #ruby
niKeITA has joined #ruby
tadayoshi has joined #ruby
Nahra has joined #ruby
vyorkin has joined #ruby
Xeago has joined #ruby
michael_mbp has joined #ruby
changx has joined #ruby
rdark has joined #ruby
altes has joined #ruby
nfk has joined #ruby
rockdon_ has joined #ruby
ejnahc has joined #ruby
marcel has joined #ruby
Haiiro has joined #ruby
kotk has joined #ruby
M-Technic has joined #ruby
crome has joined #ruby
joast has joined #ruby
aboudreault has joined #ruby
nopc0de has joined #ruby
devyn has joined #ruby
dyreshark has joined #ruby
Fado has joined #ruby
alexherbo2 has joined #ruby
napcae has joined #ruby
edwardly has joined #ruby
bahar_ has joined #ruby
ruisantos has joined #ruby
flori_ has joined #ruby
dfedde has joined #ruby
chihhsin has joined #ruby
sarlalian has joined #ruby
ctrlrsf has joined #ruby
jblancett has joined #ruby
canton7 has joined #ruby
Miron has joined #ruby
erichmenge has joined #ruby
nerdman has joined #ruby
cnj has joined #ruby
deepy has joined #ruby
icedp has joined #ruby
AlyssaDaemon has joined #ruby
patronus has joined #ruby
apeiros has joined #ruby
jbw has joined #ruby
headius has joined #ruby
avelldiroll has joined #ruby
MissionCritical has joined #ruby
Kruppe has joined #ruby
queequeg1 has joined #ruby
Fraeon has joined #ruby
Urocyon has joined #ruby
adamholt has joined #ruby
drjfreeze has joined #ruby
olekenneth has joined #ruby
mgorbach has joined #ruby
roqo has joined #ruby
tchebb has joined #ruby
IotaSpencer has joined #ruby
audy has joined #ruby
jxport has joined #ruby
Xuerian has joined #ruby
linduxed has joined #ruby
psyprus has joined #ruby
linagee has joined #ruby
Sp4rKy has joined #ruby
Afforess has joined #ruby
aep has joined #ruby
vieq has joined #ruby
snzmn has joined #ruby
drago777 has joined #ruby
seanmarcia has joined #ruby
three18ti has joined #ruby
gigetoo has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
altes has quit [Max SendQ exceeded]
aboudreault has quit [Max SendQ exceeded]
sarlalian has quit [Max SendQ exceeded]
edwardly has quit [Max SendQ exceeded]
cnj has quit [Max SendQ exceeded]
kotk has quit [Max SendQ exceeded]
cnj has joined #ruby
edwardly has joined #ruby
<unshadow> yxhuvud: lol :) yeha I guess i'm kind of trying to re-invent weblogin hahah , its for a proxy i'm creating.
kotk has joined #ruby
ij has joined #ruby
sarlalian has joined #ruby
Alina-malina has joined #ruby
aboudreault has joined #ruby
tadayoshi has quit [Client Quit]
niKeITA is now known as niKeITA_away
peta_ has quit [Quit: peta_]
niKeITA_away is now known as niKeITA
tadayoshi has joined #ruby
mengu has quit [Remote host closed the connection]
tadayoshi has quit [Client Quit]
tadayoshi has joined #ruby
harax has joined #ruby
ndrst_ is now known as ndrst
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
changx has quit [Quit: This computer has gone to sleep]
poulet_a has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
niKeITA is now known as niKeITA_away
tkuchiki has joined #ruby
siwica has joined #ruby
oo_ has joined #ruby
MissionCritical has joined #ruby
fabrice31 has quit [Remote host closed the connection]
chipotle has joined #ruby
LexRussia has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
oo_ has quit [Read error: Connection reset by peer]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
niKeITA_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bauruine- has quit [Ping timeout: 260 seconds]
jacobat has quit [Ping timeout: 244 seconds]
DrCode has joined #ruby
niKeITA has joined #ruby
thsig_ has joined #ruby
end_guy has joined #ruby
<txdv> is there something like xpath for ruby arrays?
Dude007 has quit []
thsig has quit [Ping timeout: 244 seconds]
i_s has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
Spami has joined #ruby
sigurding has quit [Quit: sigurding]
fabrice31 has joined #ruby
chthon has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
Photism has quit [Quit: Leaving]
siwica1 has joined #ruby
amundj has quit [Read error: Connection reset by peer]
siwica has quit [Ping timeout: 265 seconds]
niKeITA is now known as niKeITA_away
timonv_ has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
Timgauthier has joined #ruby
amundj has joined #ruby
drawingthesun has joined #ruby
i_s has quit [Ping timeout: 258 seconds]
Timgauthier has quit [Client Quit]
Timgauthier has joined #ruby
niKeITA_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atmosx has joined #ruby
<hanmac1> txdv hm how should it look like ?
roolo has joined #ruby
<txdv> Like
<txdv> Array.delete([ { :name => 1 } ], Path[][:name]) would return []
<txdv> Something like that
niklasb has quit [Ping timeout: 240 seconds]
<txdv> i jsut thought it would be handy because i'm pissed of by manually sanitizing objects with hashes and arrays
carraroj has joined #ruby
User458764 has joined #ruby
davidhq has joined #ruby
jheg_ has quit [Quit: jheg_]
<shevy> hehe
<txdv> and im currently implementing it
sinkensabe has joined #ruby
<txdv> so i thought maybe someone might have seen something like that
cina has quit [Ping timeout: 265 seconds]
MrSamuel has joined #ruby
cina has joined #ruby
bluOxigen has joined #ruby
Hobogrammer has quit [Ping timeout: 246 seconds]
<hanmac1> shevy do you already know, my travis builds for rwx are now working ... so if i does change something i can see if it still builds ;P
timonv_ has joined #ruby
ldnunes has joined #ruby
alex88 has quit []
carraroj has quit [Quit: Konversation terminated!]
sigurding has joined #ruby
niklasb has joined #ruby
FooMunki has joined #ruby
ping-pong has quit [Ping timeout: 265 seconds]
decoponio has joined #ruby
apeiros has quit [Remote host closed the connection]
cina has quit [Quit: leaving]
carraroj has joined #ruby
<shevy> now if only the wxwidget guys would add a --disable-gstreamer switch
apeiros has joined #ruby
Vile` has quit [Ping timeout: 255 seconds]
<hanmac1> shevy what was your linux again? an arch linux?
Vile` has joined #ruby
carraroj has quit [Client Quit]
tonini has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
timonv_ has quit [Remote host closed the connection]
fsapo has joined #ruby
NoNMaDDe_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
ping-pong has joined #ruby
theotherstupidgu has quit [Ping timeout: 255 seconds]
timonv^ has joined #ruby
Brando753 has quit [Ping timeout: 265 seconds]
tonini has quit [Ping timeout: 250 seconds]
theotherstupidgu has joined #ruby
sk87 has joined #ruby
<shevy> hanmac1 all source
<hanmac1> i think thats the problem with your system ... a decent package management would have solved that
<Morrolan> Wha...
<Morrolan> shevy: Are you insane? oO
<shevy> Morrolan nope
timonv^ has quit [Remote host closed the connection]
<shevy> hanmac1 my system is fine, gstreamer works perfectly well in my gnome3 setup - it's wxwidget that is at fault
agjacome has joined #ruby
oo_ has joined #ruby
cocotton has joined #ruby
<hanmac1> shevy have you tried to build wx with a special gtk=3 flag ? i think it was "--with-gtk=3" ... maybe that does help ... if not ask again in #wxwidgets
armyriad has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
<shevy> I have not yet tried --with-gtk=3
armyriad has joined #ruby
jheg_ has joined #ruby
timonv_ has joined #ruby
<shevy> ./src/unix/mediactrl.cpp:24:40: fatal error: gst/interfaces/xoverlay.h: No such file or directory
govg has quit [Quit: leaving]
<shevy> I think that is old gstreamer 0.8x era
niKeITA has joined #ruby
<shevy> aha, it is 0.10 era -> /usr/include/gstreamer-0.10/gst/interfaces/xoverlay.h
<shevy> as I no longer have that, and there is no way to avoid the gstreamer dependency, I am stuck
FooMunki has quit [Quit: FooMunki]
<shevy> I just tried the --with-gtk=3 switch so as I suspected it does not make a difference in regards to gstreamer
hmsimha has quit [Ping timeout: 245 seconds]
User458764 has quit [Ping timeout: 258 seconds]
CaptainRant has joined #ruby
dumdedum has quit [Quit: foo]
niKeITA has quit [Client Quit]
<hanmac1> shevy make a gist for me with the whole output of configure with its parameters
niklasb has quit [Ping timeout: 244 seconds]
ping-pong has quit [Ping timeout: 260 seconds]
druznek has joined #ruby
User458764 has joined #ruby
<jhass> shevy: I thought you do the AppDir approach? why don't you just install gstreamer0.10 on the side?
<CaptainRant> Is it idiomatic to test for typos and types when doing TDD ?
MrSamuel has quit [Quit: MrSamuel]
carraroj has quit [Ping timeout: 245 seconds]
Rollabunna has joined #ruby
<shevy> jhass I don't always go the AppDir approach, some libs use hardcoded paths and I am currently not a gobolinux setup - thing is that I no longer have the old gstreamer and I am perfectly fine with that; there is no point to just use it specifically because wxwidget isn't able to deal with other gst versions
<hanmac1> shevy does --enable-mediactrl=no work ?
<jhass> shevy: there's still a lot of software that can't deal with gstreamer 1.x, arch still has 0.10 in the repos for that reason: https://www.archlinux.org/packages/extra/i686/gstreamer0.10/
thsig_ has quit [Remote host closed the connection]
<CaptainRant> Arent they supposed to allow parralell installation of 1.x and 0.10 ?
<tagrudev> certainty, ping
tokik has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
agjacome_ has joined #ruby
AlSquire has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
reinaldob has joined #ruby
timonv^ has joined #ruby
Squarepy has joined #ruby
dawkirst has joined #ruby
agjacome has quit [Ping timeout: 250 seconds]
druznek has quit [Quit: Leaving]
druznek has joined #ruby
FooMunki has joined #ruby
TPBallbag has quit [Remote host closed the connection]
ping-pong has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
dangerousdave has joined #ruby
User458764 has quit [Ping timeout: 260 seconds]
MrSamuel has joined #ruby
niklasb has joined #ruby
Deejay_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jacobat has joined #ruby
<txdv> got a little prototype going hanmac1: http://paste.ubuntu.com/8654524/
<txdv> i wonder if there is already something like that around
julieeharshaw has joined #ruby
lektrik has quit [Quit: Leaving]
sevenseacat has joined #ruby
Squarepy has quit [Quit: Leaving]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
TPBallbag has joined #ruby
Deejay_ has quit [Client Quit]
alem0lars has joined #ruby
cocotton has quit [Quit: Leaving...]
Takle has quit [Remote host closed the connection]
sk87 has joined #ruby
reisl has joined #ruby
Squarepy has joined #ruby
<txdv> Guys guys, there has to be something like that already around
apeiros has joined #ruby
dangerou_ has joined #ruby
dangerou_ has quit [Max SendQ exceeded]
NoNMaDDeN has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LexRussia has quit [Quit: WeeChat 1.1-dev]
AlexRussia has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
codecop has quit [Ping timeout: 255 seconds]
otherj has joined #ruby
yottanami has joined #ruby
<yottanami> What is different between 1..5 and 1...5
<txdv> one has more element
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
otherj has quit []
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros> yottanami: .. is inclusiding end, ... is excluding end
<apeiros> >> [(1..5).include?(5), (1...5).include?(5), (1...5).include?(4.99)]
<eval-in__> apeiros => [true, false, true] (https://eval.in/209818)
MrSamuel has joined #ruby
jheg_ has quit [Quit: jheg_]
<txdv> in other words, one has more element
mike32 has joined #ruby
mengu has joined #ruby
dandrade_ has quit [Ping timeout: 255 seconds]
ayaz has joined #ruby
Soda has joined #ruby
<apeiros> that's a wrong line of though
<apeiros> arrays have elements
<apeiros> ranges don't have elements. ranges have a start and an end.
ylluminarious has joined #ruby
koderok has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
yalue has joined #ruby
carraroj has joined #ruby
shazaum has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
ylluminarious has quit [Ping timeout: 255 seconds]
AlexRussia has quit [Quit: WeeChat 1.1-dev]
rodfersou has quit [Ping timeout: 250 seconds]
paulfm has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
AlexRussia has joined #ruby
i_s has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
MrSamuel has joined #ruby
shredding has joined #ruby
Timgauthier is now known as timgauthier_away
banister has joined #ruby
abuzze has joined #ruby
timgauthier_away is now known as Timgauthier
druznek has quit [Quit: Leaving]
zB0hs has joined #ruby
abuzze_ has quit [Ping timeout: 260 seconds]
alem0lars has quit [Quit: Sleeping..]
<txdv> apeiros: in math they have in R they have an unlimited amount of elements
i_s has quit [Ping timeout: 244 seconds]
<txdv> on computers they have a limited amount of values
rodfersou has joined #ruby
doodlehaus has joined #ruby
agjacome has joined #ruby
harax has quit [Ping timeout: 244 seconds]
<hanmac1> txdv nope, they can be unlimited too in ruby
<hanmac1> >> -Float::INFINITY..Float::INFINITY
<eval-in__> hanmac1 => -Infinity..Infinity (https://eval.in/209830)
<apeiros> fine and dandy. in ruby they have precisely two elements and the exclusivity information.
<apeiros> and the two elements are the boundaries
yfeldblum has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
cek has left #ruby [#ruby]
ij has left #ruby ["WeeChat 0.4.3"]
<apeiros> anyway, you can use whatever thought model you want. just don't blame ruby if your thought model gives you predictions which turn out to be incorrect.
webgen1 has joined #ruby
agjacome_ has quit [Ping timeout: 260 seconds]
Deejay_ has joined #ruby
Deejay_ has quit [Client Quit]
<txdv> [0,5] has one more element compared to [0,5)
<shevy> hanmac1 --enable-mediactrl=no works
danijoo has quit [Quit: Leaving...]
<hanmac1> shevy okay so you might be able to build wx and rwx if you didnt do it already
harax has joined #ruby
danijoo has joined #ruby
webgen has quit [Ping timeout: 244 seconds]
carraroj has quit [Ping timeout: 250 seconds]
Timgauthier is now known as timgauthier_away
Takle has joined #ruby
<shevy> what was the gem install command again?
<shevy> gem install rwx fails
<shevy> ERROR: Could not find a valid gem 'rwx' (>= 0) in any repository
tagrudev has quit [Read error: Connection reset by peer]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> ERROR: Possible alternatives: rwx
<shevy> oh wait
<shevy> I have to use some dev-thingy right?
<shevy> if only I could remember
abuzze has quit [Remote host closed the connection]
carraroj has joined #ruby
carraroj has quit [Client Quit]
<last_staff> how does system() work? Can I just call system('iexplore'), or do I need to include the whole effing path?
<last_staff> "whole effing" = absolute
<tobiasvl> it uses $PATH
<shevy> you won't need the path
<shevy> btw you can try the above right in irb
<tobiasvl> or whatever the equivalent is in windows or whatever OS it is that has a program called "iexplore" (sounds creepily like internet explorer)
<shevy> system('iexplore')
<shevy> it scares me that he uses windows
AlexRussia has quit [Ping timeout: 245 seconds]
<last_staff> i don't have ruby actively - it's embedded in the vagrant software
<shevy> on linux + firefox I do: system 'firefox -new-tab URL_HERE'
<last_staff> I'm pretty much fumbling about in the dark still
patrick99e99 has joined #ruby
<last_staff> tobiasvl: that's because it IS internet explorer. It was the first 'universally known' application I could think of besides cmd
benzrf|offline is now known as benzrf
<txdv> when should someone use strings in hashes?
sysx1000i has joined #ruby
abuzze has joined #ruby
<txdv> i'm a bit confused right now, I always use Symbols as keys in Hashes
<txdv> but is there a reasonable situation when someone would use strings instead?
tkuchiki has quit [Read error: Connection reset by peer]
<tobiasvl> txdv: speculation, but symbols are never garbage collected, unlike strings
abuzze has quit [Remote host closed the connection]
<tobiasvl> of course symbols are faster in every other way…
tkuchiki has joined #ruby
oleo has joined #ruby
<apeiros> txdv: you can use any object which supports #hash and #eql? as hash key
<apeiros> and Symbol vs. String: if your key is already available as a string, or when it's user input
<tobiasvl> txdv: that thing about symbols not being GC-ed is old btw
<tobiasvl> so depends on ruby version
<last_staff> txdv: what about readability? would that count as a 'reasonable' situation?
<apeiros> tobiasvl: it's still current
<tobiasvl> apeiros: oh. lol
<apeiros> tobiasvl: it will be old once 2.2 is released and that change is not reverted
<tobiasvl> was sure they'd fixed that
<banister> apeiros mario kart.
<apeiros> banister: at work and coming home late. tomorrow evening?
nfk has quit [Quit: yawn]
<banister> apeiros sure
<apeiros> I ping you when I'm ready :)
* apeiros tries location based reminders for this
yottanami1 has joined #ruby
jheg_ has joined #ruby
<txdv> last_staff: I usually use an extended hash which converts every missing method into an index
<hanmac1> banister: did you know that rwx does pass travis builds now and does rspec tests ;P
tkuchiki has quit [Read error: Connection reset by peer]
<txdv> so i can write hash.bla = "ASD" isntead of hash[:bla] = "ASD"
<banister> hanmac1 congrats man, you're an open source super-star! ;*
tkuchiki has joined #ruby
yottanami has quit [Ping timeout: 250 seconds]
AlexRussia has joined #ruby
<txdv> while hash[:bla] is probably nicer to write, I think its still tedious
patrick99e99 has quit [Ping timeout: 272 seconds]
<sysx1000i> Hasb.bla looks suspicious
<olivier_bK> some has already testing to upload file with mechanize ?
<last_staff> sysx1000i: hash.whee looks even more suspicious
<sysx1000i> Hash.whee looks weird
<txdv> there is nothing more suspicious looking than hash.pipe
<last_staff> what about hash.whee = "joint 'operation'"?
User458764 has joined #ruby
ferr has quit [Ping timeout: 272 seconds]
<banister> txdv lol
<last_staff> txdv: lol
shazaum has quit [Changing host]
shazaum has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
<last_staff> hash | grep -.-
<last_staff> no longer ruby, but still
carraroj has joined #ruby
sysx1000i has left #ruby [#ruby]
sivoais_ has quit [Quit: leaving]
sivoais has joined #ruby
pushpak has joined #ruby
hamakn has quit [Remote host closed the connection]
zarubin has quit [Quit: Leaving.]
mxrguspxrt has joined #ruby
<hanmac1> shevy does rwx build with your system?
FooMunki has quit [Quit: FooMunki]
Guest56627 has quit [Changing host]
Guest56627 has joined #ruby
jimbach has joined #ruby
Guest56627 is now known as guyz
nfk has joined #ruby
nfk has quit [Remote host closed the connection]
AFKGeek has quit [Quit: Leaving]
alem0lars has joined #ruby
nfk has joined #ruby
ferr has joined #ruby
Takle has quit [Remote host closed the connection]
<shevy> it is still building
<shevy> and I have to leave here soon
nfk has quit [Remote host closed the connection]
baordog has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
<txdv> so again, does anyone know of something like xpath in ruby (as a small ruby dsl) for ruby? something like this? http://paste.ubuntu.com/8655406/
CaptainRant has left #ruby ["WeeChat 0.4.3"]
jhamm has joined #ruby
nfk has joined #ruby
yottanami1 has left #ruby [#ruby]
<jhamm> Is this room just for ruby or rails too?
livingstn has joined #ruby
<jhamm> I am trying to find a method that is being used in a large codebase, but when I grep it just isnt there current_user_has_ownership?
<jhamm> I assume ruby/rails is creating the method for me
<toretore> jhamm: #rubyonrails is for rails
<jhamm> How do I find this ?
Lewix has joined #ruby
<toretore> that method probably comes from a plugin/gem
<jhamm> When I go into the console with pry, it just gives me a memory location like this
<jhamm> #<Module:0x007f9f84550200>#methods:
<jhamm> and has the method listed underneath
<jhamm> what is the next step to find where that method is at?
tkuchiki has quit [Read error: Connection reset by peer]
<toretore> look at the source for the gem providing the functionality
tkuchiki has joined #ruby
<jhamm> that is my question, I can't find the source. There are 100 or so gems used in this project
<toretore> lol
<toretore> it's in a authentication or authorization gem
mxrguspxrt has quit [Remote host closed the connection]
tier has joined #ruby
harax_ has joined #ruby
Takle has joined #ruby
pu22l3r has joined #ruby
<jhamm> that makes sense
<jhamm> look through all the gems and find the ones that relate around that
<jhamm> and dive into that code
<jhamm> thanks
Lewix has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
harax has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
renderful has joined #ruby
pu22l3r_ has quit [Ping timeout: 256 seconds]
willywos has joined #ruby
pu22l3r has quit [Ping timeout: 260 seconds]
willywos has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimbach has quit [Remote host closed the connection]
siwica1 has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 256 seconds]
siwica has joined #ruby
FooMunki has joined #ruby
agjacome_ has joined #ruby
yfeldblum has joined #ruby
Kricir has joined #ruby
agjacome has quit [Ping timeout: 265 seconds]
tagrudev has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
Alina-malina has joined #ruby
Takle has quit [Remote host closed the connection]
jacobat has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
Deejay_ has joined #ruby
tkuchiki has joined #ruby
reisl is now known as larissa
c0rn has joined #ruby
Deejay_ has quit [Client Quit]
tkuchiki has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamakn has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
Takle has joined #ruby
tkuchiki has joined #ruby
<hanmac1> shevy still building or finish?
oo_ has quit [Read error: Connection reset by peer]
Timgauthier has joined #ruby
doodlehaus has joined #ruby
Kricir has quit [Remote host closed the connection]
tkuchiki has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
allcentu1 has joined #ruby
tkuchiki has joined #ruby
beef-wellington has joined #ruby
sailias has joined #ruby
fmcgeough has joined #ruby
abuzze has quit [Remote host closed the connection]
banister has joined #ruby
wpp has quit [Ping timeout: 244 seconds]
abuzze has joined #ruby
mengu has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 258 seconds]
Rollabunna has joined #ruby
thsig has joined #ruby
benzrf is now known as benzrf|offline
jimbach has joined #ruby
benzrf|offline is now known as benzrf
<ddv> jhamm: maybe it's a database column, or a helper which can be dynamically generated
tagrudev has quit [Remote host closed the connection]
<jhamm> is there any easy way to track them down?
rbennacer has joined #ruby
abuzze_ has joined #ruby
abuzze has quit [Ping timeout: 255 seconds]
tagrudev has joined #ruby
<rbennacer> hey guys, is there a way to catch any exception thrown in a class
<rbennacer> do i have to do it for each method?
tagrudev has quit [Remote host closed the connection]
tesaf has joined #ruby
jottr_ is now known as jottr
Rollabunna has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
workmad3 has joined #ruby
c0rn has quit []
<TomyWork> i'm trying to dig into a project that is largely unknown to me (puppet). i'm operating mostly with puts-debugging. can i somehow uniquely identify an object?
<hanmac1> rbennacer: make a gist for what you try to achive, then we might help you
<rbennacer> each ruby object has a unique id
sambao21 has joined #ruby
<TomyWork> rbennacer how do i retrieve it?
jhamm has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<hanmac1> TomyWork: #object_id
<rbennacer> waht ruby version are you using
<rbennacer> ?
<TomyWork> foo.#object_id?
tagrudev has quit [Remote host closed the connection]
<rbennacer> that would work
<TomyWork> ok i'll try that
Timgauthier has quit [Remote host closed the connection]
<TomyWork> and i think it's 1.9.3, but i'm not quite sure
rockdon_ has quit [Quit: Textual IRC Client: www.textualapp.com]
tagrudev has joined #ruby
<TomyWork> yep, 1.9.3p484
Timgauthier has joined #ruby
abuzze_ has quit [Remote host closed the connection]
Darryl has quit [Quit: Connection closed for inactivity]
agjacome has joined #ruby
<TomyWork> oh so it's "foo#object_id", without the dot?
<rbennacer> no
<rbennacer> foo.object_id?
kp666 has quit [Quit: Konversation terminated!]
<ddv> TomyWork: I think you should learn some ruby basics first
<rbennacer> the # is just there to tell you that it is a method
<TomyWork> ah
<ddv> # is a convetion to denote instance methods
agjacome_ has quit [Ping timeout: 246 seconds]
<TomyWork> so it's not ruby, but a documentation convention?
<rbennacer> yes sir! :)
tkuchiki has quit [Read error: Connection reset by peer]
<ddv> TomyWork: # is ruby, for commenting
tkuchiki has joined #ruby
jimbach has quit [Remote host closed the connection]
mxrguspxrt has joined #ruby
wedgeV has quit [Ping timeout: 256 seconds]
<TomyWork> yeah, but my point is "learning basic ruby" has nothing to do with knowing that "#" stands for "this is a method" in documentation, since it's a documentation convention that isnt part of the language. correct?
TPBallbag has quit [Remote host closed the connection]
<rbennacer> not really, because using the doc is part of ruby basics
<rbennacer> but it is ok, i learn a new thing every day
<ddv> TomyWork: no
<txdv> documentation is for faggots
<rbennacer> LOL
<ddv> apeiros ^
<txdv> that was sarcasm
<sevenseacat> its still offensive
<ddv> it's a derogatory term, txdv
<ddv> nothing to do with sarcasm
<TomyWork> right, you said "ruby basics", not "basic ruby"
sk87 has joined #ruby
<TomyWork> nevertheless, i plan to pick up as much ruby as i need and not more
hanmac1 has quit [Quit: Leaving.]
<rbennacer> mmm that's the wrong attitude to learn a skill
<workmad3> 'as much ruby as I need' <-- how do you know you don't need some bit until you know it? :/
<TomyWork> rbennacer i dont plan to learn ruby
<rbennacer> ok
<rbennacer> good luck then
<txdv> ddv: ok, how is this: documentation is for pythonists
Mon_Ouie has joined #ruby
moritzs has joined #ruby
<workmad3> txdv: I think it was more polite the first time... :P
<theotherstupidgu> PING 1414158168 652916
<workmad3> ddv: also, I find documentation is very useful for my faggots... https://en.wikipedia.org/wiki/Faggot_(unit)
<ddv> I don't think txdv meant that :P
<workmad3> ddv: and documentation on cooking instructions is also useful for faggots... https://en.wikipedia.org/wiki/Faggot_(food)
abuzze has joined #ruby
<workmad3> ddv: ;)
mengu has joined #ruby
txdv was kicked from #ruby by apeiros [this language is not tolerated]
* workmad3 hides from super-apeiros
txdv has joined #ruby
unshadow has quit [Quit: leaving]
<txdv> yes, ddv pointed that already out
lkba has joined #ruby
GPH|work has joined #ruby
<txdv> thank you for keeping the language clean in this channel
<apeiros> yw :)
<workmad3> txdv: I think it was because of the p-word personally :P
<TomyWork> rbennacer it really is ok. i know several object-oriented and functional languages, i know the concepts behidn the languge. i dont have to know every aspect of ruby to make custom types for puppet in what appears to be a DSL anyway
oo_ has joined #ruby
<ddv> TomyWork: and yet you never heard of the dot operator
<rbennacer> LOL
oetjenj has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
<TomyWork> the dot operator? you mean method invocation?
tkuchiki has joined #ruby
ixti has joined #ruby
oetjenj has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<TomyWork> ddv you did see my first guess "foo.#object_id"
devdazed has joined #ruby
tyll_ has quit [Ping timeout: 256 seconds]
nfk has quit [Remote host closed the connection]
doev has quit [Ping timeout: 265 seconds]
PierreRambaud has quit [Remote host closed the connection]
tyll has joined #ruby
iamjarvo has joined #ruby
sinkensabe has quit [Remote host closed the connection]
workmad3 has quit [Quit: Reconnecting]
workmad3 has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
sinkensabe has joined #ruby
ferr has quit [Quit: Lost terminal]
amarraja has joined #ruby
nfk has joined #ruby
amarraja has quit [Max SendQ exceeded]
amarraja has joined #ruby
amarraja has quit [Max SendQ exceeded]
spyderman4g63 has joined #ruby
maasha has joined #ruby
abuzze has quit [Remote host closed the connection]
fsapo has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 245 seconds]
maasha has quit [Quit: Page closed]
alem0lars is now known as alem0lars_mortal
sambao21 has quit [Ping timeout: 258 seconds]
alem0lars_mortal is now known as alem0lars
TPBallbag has joined #ruby
rockdon_ has joined #ruby
last_staff has quit [Quit: l8r peeps]
abuzze has joined #ruby
sinkensabe has quit [Ping timeout: 256 seconds]
nfk has quit [Client Quit]
tier has quit [Remote host closed the connection]
tier has joined #ruby
TPBallbag has quit [Remote host closed the connection]
SirFunk has quit [Remote host closed the connection]
tonini has joined #ruby
msmith has joined #ruby
SirFunk has joined #ruby
kaspergrubbe has joined #ruby
kaspergrubbe_ has quit [Read error: Connection reset by peer]
tallgirltaadaa has joined #ruby
<tallgirltaadaa> anyone awake
<tallgirltaadaa> ?
davidsong has quit [Quit: Page closed]
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has joined #ruby
<tallgirltaadaa> hi Fire-Dragon-DoL
<benzrf> tallgirltaadaa: h
<Fire-Dragon-DoL> hi tallgirltaadaa
livathinos has quit [Remote host closed the connection]
<tallgirltaadaa> i have a question if someone wouldnt mind trying to take a stab
i_s has joined #ruby
<crome> is it a stab from behind?
Takle has quit [Remote host closed the connection]
<Fire-Dragon-DoL> tallgirltaadaa: sounds scary
<Fire-Dragon-DoL> lol
<tallgirltaadaa> i hope not :(
<Toba> crass
<Fire-Dragon-DoL> but yes I'm here, tell us what would you like to know tallgirltaadaa
wasamasa has quit [*.net *.split]
juni0r has quit [*.net *.split]
jhass has quit [*.net *.split]
jimeh has quit [*.net *.split]
nanashiRei has quit [*.net *.split]
tsunamie has quit [*.net *.split]
mateu has quit [*.net *.split]
mateu has joined #ruby
jimeh has joined #ruby
<tallgirltaadaa> well i have an admin where I prefill alot of information in for the client.rb.... so when they come to the site all they need to do in put in their code to access their prefilled info
jhass|off has joined #ruby
<tallgirltaadaa> BUT
nanashiRei has joined #ruby
<tallgirltaadaa> when i make the form for them to fill in the code
<tallgirltaadaa> <%= f.input :code , label: false %>
jhass|off is now known as jhass
wasamasa has joined #ruby
<rbennacer> this is a rails question
<tallgirltaadaa> bc the code is already is the db the input is already prefilled
<tallgirltaadaa> but really i wana query
<crome> there is a better channel for rails questions where people dont go yelling "this is a rails question" all the time someone asks a rails question
<tallgirltaadaa> i KNOW.. its a rails question.. but i have been trying to access #rubyonrails for days with no luck
anicet has joined #ruby
<tallgirltaadaa> even though i have registered my nick and everything
<crome> are you also identified?
obscured has joined #ruby
shredding has quit [Quit: shredding]
<tallgirltaadaa> yes
JohnBat26 has joined #ruby
<crome> what happens when you try to join?
<tallgirltaadaa> i was in here already yesterday and took every suggestion from those in the room and still no luck
<tallgirltaadaa> nothing... goes to the auth page.. but never lets me enter...
<tallgirltaadaa> but mostly if someone wants to try to answer the question i would like to spend time on that.. rather than. trying to worry about the other irc problem ive been having
crazydiamond has quit [Ping timeout: 244 seconds]
ylluminarious has joined #ruby
<rbennacer> can you create a stackoverflow question with the code and then share it here
jvv has joined #ruby
<rbennacer> ?
<TomyWork> i can join #rubyonrails fine. type "/ns identify <password>" and then "/join #rubyonrails"
tsunamie has joined #ruby
<TomyWork> if that's not your primary nick, type "/ns identify <primary nick> <password>" and then "/join #rubyonrails"
vyorkin has quit [Quit: WeeChat 1.0.1]
<TomyWork> (primary nick being the nick you registered as)
segmond has quit [Ping timeout: 265 seconds]
i_s has quit [Ping timeout: 255 seconds]
sigurding has quit [Quit: sigurding]
aspiers has quit [Ping timeout: 265 seconds]
mxrguspxrt has quit [Remote host closed the connection]
Takle has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
ylluminarious has quit [Ping timeout: 255 seconds]
thsig has quit [Remote host closed the connection]
Lewix has joined #ruby
shredding has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
<tallgirltaadaa> rbennacer
snath has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
iamjarvo has joined #ruby
jasooon has joined #ruby
cina has joined #ruby
davedev2_ has quit []
<TomyWork> what's this "class << self" i see all over? anonymous class deriving from the class enclosing it?
kobain has joined #ruby
<workmad3> TomyWork: opens the singleton class
tadayoshi has quit []
larissa has quit [Quit: Leaving]
kobain has quit [Max SendQ exceeded]
nfk has joined #ruby
kobain has joined #ruby
<rbennacer> tallgirltaadaa, i am sorry i just got a lot of work to do, i will look at it later
fabrice31 has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
wald0 has joined #ruby
<TomyWork> workmad3 not quite sure what that means. the enclosed class is a singleton or the enclosing class?
kobain has quit [Max SendQ exceeded]
nfk has quit [Client Quit]
timonv^ has quit [Remote host closed the connection]
<workmad3> TomyWork: you're gonna need to understand a fair bit about the ruby object model to grok it, I'm afraid
kobain has joined #ruby
<benzrf> TomyWork: "class << foo" opens the singleton class or "eigenclass" for foo
anicet is now known as juni0r
<workmad3> TomyWork: but it has essentially nothing to do with the Singleton pattern
<benzrf> TomyWork: and self is the current class in a class block
lmickh has joined #ruby
fabrice31 has joined #ruby
<TomyWork> eigenclass? ok i actually dont know that concept :)
<benzrf> TomyWork: it's pretty simple
kobain has quit [Max SendQ exceeded]
nfk has joined #ruby
roolo has quit [Remote host closed the connection]
kobain has joined #ruby
<benzrf> in ruby, every object (theoretically) has its own unique class that's a subclass of the class you normally think of it as
<benzrf> in practice most objects arent allocated an eigenclass until you try to look at it
<benzrf> for example:
<benzrf> >> "a string!!!".singleton_class
<eval-in__> benzrf => #<Class:#<String:0x40e7cff8>> (https://eval.in/209905)
<benzrf> >> "a string!!!".singleton_class.superclass
<eval-in__> benzrf => String (https://eval.in/209906)
nfk has quit [Client Quit]
AndChat| has joined #ruby
kamilc__ has quit [Quit: Leaving...]
treehug88 has joined #ruby
phutchins has joined #ruby
<benzrf> TomyWork: so you can define methods unique to a particular object by defining them on that object's singleton class
<benzrf> singleton class is the official term
kobain has quit [Max SendQ exceeded]
<benzrf> eigenclass is an older term that is still ocasionally used
djstorm has joined #ruby
mary5030 has joined #ruby
<workmad3> as is metaclass
kobain has joined #ruby
<benzrf> *occasionally
<TomyWork> it's easier to google though :)
AndChat- has joined #ruby
<benzrf> workmad3: well metaclass is bs
<benzrf> it is most certainly not a metaclass
<workmad3> benzrf: as is eigenclass and singleton_class, IMO ;)
<benzrf> well, it's the singleton class in that the class is a singleton for that particlar object
<benzrf> and eigenclass makes sense given the meaning of 'eigen'
<benzrf> but metaclass has an established meaning that is totally separate
<workmad3> benzrf: right... but all classes in ruby are already singletons :P
<benzrf> workmad3: yeah, singleton class is not too great
<TomyWork> singleton makes the most sense if i get the concept right. there's just one instance of it, so the object deriving from it technically is a singleton
<benzrf> but at least it is not as flat wrong as metaclass
lkba has quit [Ping timeout: 265 seconds]
<benzrf> TomyWork: hmm, never thought of it that way
<benzrf> colo
jasooon has quit [Ping timeout: 240 seconds]
<benzrf> *cool.
<benzrf> TomyWork: anyway,
<TomyWork> err the object instantiating it*
mengu has quit [Remote host closed the connection]
<benzrf> >> foo = "A STRING!!!"; class << foo; def lmao; 3; end; end; foo.lmao
<eval-in__> benzrf => 3 (https://eval.in/209907)
jshultz has joined #ruby
<workmad3> TomyWork: *the object it instatiates ;)
<workmad3> *instantiates
<workmad3> gah, friday
<TomyWork> the object that is an instance of it*
agjacome_ has joined #ruby
lolmaus_ has quit [Remote host closed the connection]
nfk has joined #ruby
<TomyWork> i see those singleton classes in other classes. is that so you can make some methods replacable?
AndChat| has quit [Ping timeout: 265 seconds]
<TomyWork> +e
lolmaus has joined #ruby
livathinos has joined #ruby
roolo has joined #ruby
hobodave has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
agjacome has quit [Ping timeout: 246 seconds]
nfk has quit [Remote host closed the connection]
ta__ has joined #ruby
patrick99e99 has joined #ruby
TPBallbag has joined #ruby
nfk has joined #ruby
codeitagile has quit [Quit: Leaving.]
AndChat- has quit [Ping timeout: 265 seconds]
codeitagile has joined #ruby
maasha has joined #ruby
ta has quit [Ping timeout: 240 seconds]
nfk has quit [Client Quit]
<maasha> How to plot a bunch of vectors with the gnuplot gem?
tagrudev has quit [Remote host closed the connection]
<TomyWork> i wouldnt know, but on behalf of the people who do know: What have you tried?
nfk has joined #ruby
abuzze has quit [Remote host closed the connection]
treehug88 has quit []
kireevco has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
jobewan has joined #ruby
x1337807x has joined #ruby
<cina> what method is called on the object when ruby wants to evaluate its truthiness? e.g. when I do this: 'puts "true" if obj'
kireevco has quit [Client Quit]
abuzze has joined #ruby
<cina> I'm looking for something maybe like #to_bool
<TomyWork> very colbertesque :)
<cina> ;)
tonini has joined #ruby
rippa has joined #ruby
tallgirltaadaa has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
abuzze has quit [Remote host closed the connection]
timonv_ has joined #ruby
IceDragon has joined #ruby
abuzze has joined #ruby
<maasha> TomyWork: I also tried with ds.with = "vectors"
<maasha> I get 3
x1337807_ has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
livathinos has quit [Remote host closed the connection]
abuzze has joined #ruby
<maasha> vertical lines and no vectors.
rylev has joined #ruby
renderful has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
renderfu_ has joined #ruby
abuzze has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 255 seconds]
schaerli has quit [Ping timeout: 255 seconds]
abuzze has joined #ruby
<benzrf> cina: it's just "is not false or nil"
<benzrf> nothing else is evaluated afaik
alem0lars has quit [Quit: Sleeping..]
abuzze has quit [Read error: Connection reset by peer]
abuzze_ has joined #ruby
ebru has quit [Quit: Lost terminal]
<TomyWork> so you do want an arrow
<TomyWork> right?
renderful has quit [Ping timeout: 255 seconds]
volty has joined #ruby
<maasha> TomyWork: in fact I just want a line, but that is the same as a vector with nohead
<maasha> TomyWork: conceptually, it is a vector. A line can be so many other things.
<waxjar> cina: if doesn't take a boolean but any value and determines if it's "truthy" or "falsey". the only falsey values are false and nil, the rest is truthy :)
<cina> maasha: hmm... I wanted to write "do_something if obj", so I guess I could maybe override #nil? and set it true to stop do_something from running.
mary5030 has quit [Remote host closed the connection]
rbennacer has left #ruby ["Leaving"]
<maasha> cina: overriding nil? sounds like a terrible idea.
bal has quit [Quit: bal]
<Mon_Ouie> And woudn't work, it explicitly checks if the object is the same as nil or false
<cina> so, how do I make an obj return false or nil when use like "do_something if obj" ?
<Mon_Ouie> You cannot change the semantics of conditionals and loops in Ruby
enebo has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<TomyWork> "it explicitly checks if the object is the same as nil or false" - oooh, sounds like lua :)
<Fire-Dragon-DoL> lol
abuzze_ has quit [Remote host closed the connection]
tonini has quit [Ping timeout: 250 seconds]
<Fire-Dragon-DoL> where can I discuss this behavior for protected? https://gist.github.com/Fire-Dragon-DoL/675a69a698105088c3e3 I would like to know if it's a bug (I don't think so), if are there any chance it will be changed in future, if it's considered ok as is
<cina> so, all objects are always 'true', hmm
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
<cina> because they are neither exactly false or nil
dangerousdave has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
<TomyWork> cina obj.truthiness
<cina> oh, objects of FalseClass are false too
<TomyWork> in your class, do "def truthiness"
<Mon_Ouie> False and nil are objects too
gsd has joined #ruby
linojon has joined #ruby
<Mon_Ouie> FalseClass, TrueClass, and NilClass each have exactly one instance (false, true and nil respectively)
<cina> I see
<TomyWork> or switch to c++ and define an operator void* :)
<Fire-Dragon-DoL> what happens if I type NilClass.new ? °°
<Fire-Dragon-DoL> private constructor?
<Mon_Ouie> >> NilClass.new
<eval-in__> Mon_Ouie => undefined method `new' for NilClass:Class (NoMethodError) ... (https://eval.in/209927)
<Mon_Ouie> That :)
<Fire-Dragon-DoL> nice
<Fire-Dragon-DoL> tmp = NilClass.send(:new)
<Fire-Dragon-DoL> >> NilClass.send(:new)
<eval-in__> Fire-Dragon-DoL => undefined method `new' for NilClass:Class (NoMethodError) ... (https://eval.in/209928)
abuzze has joined #ruby
<Mon_Ouie> It's not private, it's just defined. You can't even allocate and object of that class:
<Mon_Ouie> >> NilClass.allocatee
<eval-in__> Mon_Ouie => undefined method `allocatee' for NilClass:Class (NoMethodError) ... (https://eval.in/209929)
<Mon_Ouie> >> NilClass.allocate
<eval-in__> Mon_Ouie => allocator undefined for NilClass (TypeError) ... (https://eval.in/209930)
<cina> so, maybe I could convert my obj to nil or false... can I do "self = nil" ! :D
renderfu_ has quit [Remote host closed the connection]
ezra has quit [Ping timeout: 250 seconds]
renderful has joined #ruby
<banister> Mon_Ouie 'alutte
<Mon_Ouie> 'alut
FooMunki has quit [Quit: FooMunki]
<TomyWork> Alouette!
flagg0204 has quit [Ping timeout: 256 seconds]
Timgauthier is now known as timgauthier_away
FooMunki has joined #ruby
tokik has quit [Ping timeout: 244 seconds]
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ylluminarious has joined #ruby
renderful has quit [Remote host closed the connection]
renderfu_ has joined #ruby
alem0lars has joined #ruby
BlkDynmt has joined #ruby
ismell has joined #ruby
x1337807x has joined #ruby
<waxjar> Fire-Dragon-DoL: first of all, protected in Ruby is not like protected in other OOP languages
x1337807x has quit [Client Quit]
flagg0204 has joined #ruby
<waxjar> a protected method can only be called by an instance of the same class
<ismell> does Net:HTTP support SSL negotiation? If i disable sslv3 on my load balancer will it auto negotiate to tlsv1?
cmckee has quit [Quit: cmckee]
<benzrf> kk,
<waxjar> Fire-Dragon-DoL: here's what I meant yesterday with using a private method: https://gist.github.com/britishtea/6d4dcad6b79863182fc5
axl_ has joined #ruby
x1337807x has joined #ruby
<Fire-Dragon-DoL> waxjar: oh I was looking for you, let me read
renderfu_ has quit [Remote host closed the connection]
thsig has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
VanillaGoat_ has joined #ruby
<Fire-Dragon-DoL> waxjar: ah ok so basically I just need to add
<Fire-Dragon-DoL> another level
<Fire-Dragon-DoL> it's not fantastic but it's ok
charliesome has quit [Quit: zzz]
wedgeV has joined #ruby
Baluse has quit []
oo_ has joined #ruby
tonini has joined #ruby
<waxjar> value is now bound to A, which the two have in common, but when you redefined them, they were bound to B and C, so they can't call each other anymore
Juanchito has quit [Quit: Connection closed for inactivity]
sevenseacat has quit [Quit: Leaving.]
sanadora has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
carraroj has quit [Ping timeout: 256 seconds]
jacobat has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
agjacome_ has quit [Ping timeout: 245 seconds]
<Fire-Dragon-DoL> waxjar: thanks, appreciated the explaination
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<Fire-Dragon-DoL> I'm definitely applying it
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
VanillaGoat__ has quit [Ping timeout: 244 seconds]
<sanadora> Hi! I just finished the Ruby koans and rubymonk courses, is "Eloquent Ruby" a good book to go?
kireevco has joined #ruby
banister is now known as banisterfiend
Timgauthier has joined #ruby
ezra has joined #ruby
agjacome has joined #ruby
endash has joined #ruby
ezra is now known as Guest54952
sinkensabe has joined #ruby
jacobat has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
doodlehaus has quit []
yfeldblum has joined #ruby
tkuchiki_ has joined #ruby
jerius has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
harax_ has quit [Ping timeout: 246 seconds]
snath has joined #ruby
jfran has joined #ruby
rkalfane has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
tkuchiki_ has quit [Read error: Connection reset by peer]
banister has joined #ruby
Takle has joined #ruby
banister has quit [Max SendQ exceeded]
havenwood has joined #ruby
renderful has joined #ruby
rodfersou has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
pu22l3r has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
sanadora has quit [Quit: sanadora]
banister has joined #ruby
banisterfiend has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
roolo has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
roolo has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
harax_ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
jacobat has joined #ruby
claymore has joined #ruby
rw- has joined #ruby
sinkensabe has quit [Ping timeout: 255 seconds]
AlexRussia has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
<benzrf> shevy: have you tried writing some ruby
WormDrink has quit [Ping timeout: 240 seconds]
roolo has quit [Ping timeout: 244 seconds]
mg^gone is now known as mg^
Kricir has joined #ruby
jacobat has quit [Ping timeout: 244 seconds]
Aaaal has left #ruby [#ruby]
i_s has joined #ruby
amundj has quit [Ping timeout: 265 seconds]
v0n has quit [Quit: WeeChat 1.0.1]
AlexRussia has joined #ruby
v0n has joined #ruby
sambao21 has joined #ruby
Rollabunna has joined #ruby
jasooon has joined #ruby
jenrzzz has joined #ruby
<Fire-Dragon-DoL> waxjar: from your approach, it looks like that any ruby method (even private methods) are at least public, though
apeiros has quit [Ping timeout: 265 seconds]
<Fire-Dragon-DoL> ahem
<Fire-Dragon-DoL> sorry I mean protected
isomorphismes has quit [Remote host closed the connection]
<Fire-Dragon-DoL> oh, no, you won't be able to call it on the other instance I suppose, if I make it private (#value I mean)
zalmoxes has quit [Ping timeout: 245 seconds]
eikood has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 245 seconds]
banister is now known as banisterfiend
Rollabunna has quit [Ping timeout: 265 seconds]
j_mcnally has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 258 seconds]
agjacome_ has joined #ruby
mattmcclure has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
carraroj has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Wolland has joined #ruby
chrishough has joined #ruby
fsapo has joined #ruby
agjacome has quit [Ping timeout: 255 seconds]
rockdon_ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
treehug88 has joined #ruby
thsig has quit [Read error: Connection reset by peer]
thsig has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
akkad has quit [Ping timeout: 246 seconds]
benzrf is now known as benzrf|offline
jasooon has quit [Ping timeout: 265 seconds]
AlexRussia has joined #ruby
Kricir has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
Wolland has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
burritocat has quit [Ping timeout: 265 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
nateberkopec has quit [Ping timeout: 246 seconds]
lsmola has quit [Ping timeout: 246 seconds]
Hobogrammer has joined #ruby
pandaant has quit [Ping timeout: 246 seconds]
akkad has joined #ruby
lsmola has joined #ruby
pandaant has joined #ruby
rkalfane has joined #ruby
Snowstormer has joined #ruby
roolo has quit [Quit: AAAAaaaaAAAAAAA]
obscured has quit [Read error: Connection reset by peer]
Snowstormer is now known as burritocat
iamjarvo has joined #ruby
agjacome_ has quit [Quit: leaving]
Darryl has joined #ruby
dkphenom has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
jhwhite has joined #ruby
tonini has joined #ruby
maletor_ has joined #ruby
<TomyWork> ok the mysterious disappearance of things is because the things are instantiated in a different order now... odd things those things
obscured has joined #ruby
oo_ has joined #ruby
spastorino has joined #ruby
aganov has quit [Quit: Leaving]
<shevy> benzrf|offline I write a lot of ruby all the time! lately though I could barely write a lot ... too much non-computer related things to do in general
NoNMaDDeN has quit [Remote host closed the connection]
burritocat has quit [Ping timeout: 244 seconds]
<Hanmac> shevy i am home again ... that means more rspec stuff and more documentation ... have rwx been build finish for you?
<shevy> I just arrived at home as well
<shevy> I didn't yet check
ghostmoth has joined #ruby
<olivier_bK> olivier_bK, freeze shevy at home Ahh....
<Hanmac> "gem install" says "build will take a while ;P
cmckee has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kamilc__ has joined #ruby
terlar has quit [Ping timeout: 244 seconds]
tonini has quit [Ping timeout: 250 seconds]
tonini has joined #ruby
cina has quit [Ping timeout: 265 seconds]
alem0lars has quit [Quit: Quit !]
cina has joined #ruby
jottr has joined #ruby
NoNMaDDeN has joined #ruby
cndiv has joined #ruby
<mg^> speaking of gems, I created my first gem last week. While it installs OK, in code that makes use of it I have to specify in the Gemfile dependencies where I shouldn't need to. I am sure I am missing something obvious.
terlar has joined #ruby
<jhass> mg^: link to repo?
<havenwood> mg^: codE?
<mg^> can't, internal to my workplace at the moment
pothibo has joined #ruby
<jhass> gemspec at least?
kireevco has quit [Quit: Leaving.]
it0a has joined #ruby
<mg^> might could do that
<havenwood> mg^: change some names in the gemspec?
<jhass> + list of things you have to add to the Gemfile
<VanillaGoat_> In plain Ruby, is there a way to specify a timezone with the Time.at(epochtime) method?
<VanillaGoat_> I want to get Time.at(1414127408).timezone(GMT+10)
jottr has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
<havenwood> Hanmac: builds for me
<jhass> VanillaGoat_: epoch is always utc. Time.at will always return it as localtime
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<Hanmac> havenwood: it does for travis too ;P
<havenwood> Hanmac: \o/
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
<mg^> basically my company makes a communications tool and we have customer demand for an API for our chat system
kireevco has quit [Max SendQ exceeded]
<VanillaGoat_> Right, epoch is always UTC. But when I turn it into a Time object, is there a way to specify what timezone it will use, and override localtime?
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<epochwolf> VanillaGoat_: I'm in EDT.
tkuchiki has joined #ruby
<mg^> anyway, since chat bots such as hubot are the thing, we decided to create adapters for Lita and Hubot
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<jhass> mg^: and you still have to list the runtime deps?
bauruine_ has joined #ruby
kireevco has joined #ruby
<mg^> Of course, being the only Rubyist (if I qualify as that) at my company, I get tasked with the Lita one
GPH|work has quit [Read error: Connection reset by peer]
maletor_ has quit [Read error: Connection reset by peer]
mg^ has quit [Read error: Connection reset by peer]
shanlar has quit [Read error: Connection reset by peer]
renderful has quit [Read error: Connection reset by peer]
lemur has quit [Read error: Connection reset by peer]
tkuchiki has quit [Read error: Connection reset by peer]
corehook has joined #ruby
shanlar has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
renderful has joined #ruby
nateberkopec has joined #ruby
<epochwolf> VanillaGoat_: DateTime.strptime("239483 -0400", "%s %z")
<epochwolf> Might work.
<jhass> VanillaGoat_: nothing pretty. You could temporarily override ENV['TZ']
mary5030 has joined #ruby
mg^ has joined #ruby
lemur has joined #ruby
<jhass> epochwolf: nope, while it works with glibc strptime, with ruby it doesn't
<mg^> That was weird
zenspider has quit [Ping timeout: 245 seconds]
<jhass> there's a rather lengthy bug report about it
<jhass> but changing that behavior was rejected in the end
<epochwolf> jhass: well, that sucks.
<shevy> I once assigned to the TZ variable
axl_ has quit [Read error: Connection reset by peer]
psmolen has quit [Ping timeout: 240 seconds]
<epochwolf> Well, parse into time, then run through strptime in a different format?
<shevy> not knowing that it was related to time
maletor_ has joined #ruby
<havenwood> mg^: what's unexpected? needing a json dep? something with how you require them?
<mg^> anyway, I specify my dependencies in my Gemfile, and then build/install it, I still have to specify those same dependencies in the Lita gemfile or I get errors when my adapter loads... I don't believe that should be the case
maletor has quit [Ping timeout: 272 seconds]
<shevy> I got all kind of crazy behaviour as a result
flagg0204 has quit [Ping timeout: 265 seconds]
<shevy> since that day I know that behaviour based on setting environment variables is fundamentally flawed
dblessing has joined #ruby
chrishough has quit [Ping timeout: 272 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
<jhass> mg^: so the ones you need to specify are or are not in the gemspec?
enebo has quit [Read error: Connection reset by peer]
j_mcnally has quit [Ping timeout: 250 seconds]
<mg^> they are in my Gemspec
cherwin_ has quit [Ping timeout: 256 seconds]
xwq17 has quit [Ping timeout: 256 seconds]
__main__ has quit [Ping timeout: 250 seconds]
<mg^> for instance, I have spec.add_runtime_dependency "faye", ">= 1.0.3"
Anarch has quit [Ping timeout: 245 seconds]
speakingcode has quit [Ping timeout: 261 seconds]
IrishGringo has joined #ruby
nuck has quit [Ping timeout: 272 seconds]
kies has quit [Ping timeout: 272 seconds]
thoraxe has quit [Ping timeout: 272 seconds]
<mg^> but I have to also put Faye in the Lita gemspec or it fails when loading my adapter gem
martinzajac has joined #ruby
tuelz has quit [Ping timeout: 250 seconds]
<havenwood> mg^: add gem deps in gemspec, in your Gemfile just a: source 'https://rubygems.org'; gemspec
<mg^> I guess I put it in the lita Gemfile, not Gemspec
thoraxe has joined #ruby
<mg^> thanks, I'll try that
Kricir has joined #ruby
Takle has quit [Remote host closed the connection]
speakingcode has joined #ruby
zenspider has joined #ruby
xwq17 has joined #ruby
<jhass> can you create a Gemfile with just your lita-foo and post the resulting .lock?
wookiehangover has joined #ruby
nuck has joined #ruby
enebo has joined #ruby
Anarch has joined #ruby
chrishough has joined #ruby
<mg^> My Gemfile already looks like that, havenwood
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheRinger has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 265 seconds]
axl_ has joined #ruby
__main__ has joined #ruby
flagg0204 has joined #ruby
<havenwood> mg^: so by "I specify my dependencies in my Gemfile" you just meant you have the line?: gemspec
kies has joined #ruby
iamjarvo has joined #ruby
tuelz has joined #ruby
<jhass> havenwood: as I understood he pulls his gem into another projects Gemfile and still has to add its runtime deps for it to work
<mg^> havenwood: in my gem have Gemfile with source 'https://rubygems.org'; gemspec and I have a Gemspec that lists several dependencies
<mg^> jhass: exactly
terlar has quit [Ping timeout: 272 seconds]
<havenwood> jhass: ahhha
livathinos has joined #ruby
<mg^> I have looked at other adapters and they do not apparently need to do that, so I am making some newb mistake somewhere
mikecmpbll has quit [Ping timeout: 260 seconds]
benzrf|offline is now known as benzrf
psmolen has joined #ruby
<jhass> from what we can see nothing obvious
tonini has quit [Ping timeout: 250 seconds]
Snowstormer has joined #ruby
Takle has joined #ruby
jottr has joined #ruby
maletor_ has quit [Quit: Computer has gone to sleep.]
i_s has joined #ruby
<jhass> I don't expect anything special there but still the other projects resulting .lock would be interesting
<mg^> Gemfile.lock: http://pastebin.com/VCpS7Zav
<havenwood> mg^: do you actually use this on Ruby 1.8 at all?
<mg^> no, ruby 2.0.0
<havenwood> mg^: drop json dep
maestrojed has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
abuzze has quit [Remote host closed the connection]
<havenwood> mg^: it's in the stdlib
<mg^> I have been using a lot of ruby 1.8, though :)
<mg^> ok, can do
Snowstormer is now known as burritocat
abuzze has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<jhass> looks okay
<jhass> are you on latest bundler?
tonini has joined #ruby
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
Takle has joined #ruby
<mg^> jhass: I believe so
<havenwood> mg^: gem update --system && gem update bundler
<mg^> can't do --system, the gems have to be local to my user in this case
<havenwood> mg^: that updates RubyGems itself
<havenwood> mg^: but won't change where gems are installed
<jhass> I fear this is as much as we can debug remotely :/
<havenwood> mg^: just meant, maybe try updating RubyGems as well as Bundler, just to rule that out
yfeldblum has joined #ruby
<banisterfiend> anyone here decent with rails? how do i delete a resource using ajax in jquery?
<banisterfiend> the type 'DELETE" doesn't appear to be spported
carraroj has quit [Ping timeout: 240 seconds]
livathinos has quit [Remote host closed the connection]
<mg^> yeah policy forbids me from updating to anything but my OS vendor's supplied rubygems unless it installs local to my user
<havenwood> mg^: ah
<mg^> that way someone else doesn't get unexpected behavior
diegoviola has joined #ruby
<mg^> OK, well at least there's nothing obvious with what I've done
<mg^> thanks for looking over what I can give you
<havenwood> mg^: hopefully your admin is updating it for you then :)
<jhass> banisterfiend: pretty sure I saw that working. #RubyOnRails doesn't like you?
<mg^> I am the admin
martinzajac has quit [Remote host closed the connection]
<mg^> and I wrote the policy :)
<havenwood> mg^: RubyGems 2.4.2 ftw!
<jhass> banisterfiend: I've some vague memory of an parameter that could override the verb, as a workaround
oo_ has quit [Remote host closed the connection]
<mg^> however, that being said... we don't do system-wide installs of anything not packaged by our OS vendors
<banisterfiend> jhass no
abuzze has quit [Ping timeout: 244 seconds]
<banisterfiend> jhass rubyonrails is a ghetto
<mg^> so this is what I am stuck with at the moment for system-wide: ruby200-rubygems-2.0.14-23.el6.x86_64
<jhass> try setting _method=DELETE I think
troyready has joined #ruby
<jhass> but vague memory
<mg^> anyway, this Gem will be made public at some point
Wolland has joined #ruby
jimbach has joined #ruby
<mg^> I have a few things else to clean up and run it by our backend team first
yfeldblum has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
volty has left #ruby ["Konversation terminated!"]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NoNMaDDeN has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 244 seconds]
Lingo has joined #ruby
chipotle has quit [Quit: cya]
bricker`work has joined #ruby
Lingo has quit [Client Quit]
Jiye has joined #ruby
corehook has quit []
dANO_ has quit []
koderok has joined #ruby
koderok has quit [Client Quit]
thsig has quit [Remote host closed the connection]
JBreit has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
doev has joined #ruby
allcentu1 has quit [Ping timeout: 256 seconds]
gauke has quit [Quit: gauke]
kireevco has quit [Quit: Leaving.]
jasooon has joined #ruby
aclearma_ has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<paulfm> Anyone ever use the pg gem with Sinatra instead of using an ORM
Takle has joined #ruby
aclearman037 has quit [Ping timeout: 244 seconds]
<paulfm> I am running into odd issues at high load. I really think I am missing something.
Wolland has joined #ruby
<jhass> do you use a connection pool?
Eiam has joined #ruby
patrick99e99 has joined #ruby
moritzs has quit [Ping timeout: 244 seconds]
<paulfm> jhass: nope, that is probably what I am missing.
poulet_a has quit [Ping timeout: 256 seconds]
Kricir has quit [Remote host closed the connection]
<jhass> it can increase performance and avoid threading issues at least
mercwithamouth has joined #ruby
<jhass> the connection_pool gem provides a nice general one
<paulfm> jhass: I will look into it. Thanks. First time jumping out of activerecord or datamapper usage. Any other tips?
Kricir has joined #ruby
<jhass> not really, I use Sequel myself if it's not AR
rylev has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 245 seconds]
IceDragon has joined #ruby
rylev has joined #ruby
_ixti_ has joined #ruby
<rw-> hi rubyists, quick q: have a main thread and one subthread which can both modify a shared resource. i am not using a mutex, and have not seen any problems so far. have i just been lucky so far?
thsig has joined #ruby
timonv_ has quit [Remote host closed the connection]
doev has quit [Ping timeout: 260 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JBreit has left #ruby ["Leaving"]
<jhass> rw-: basically yes
<paulfm> jhass: Looking at Sequel doc. It looks like I can execute arbitrary sql without needing models? Is that the case or am I mistaken?
starkhalo has joined #ruby
<jhass> ruby's GVL likely increased your luck
thagomizer has joined #ruby
Guest54952 has quit [Ping timeout: 255 seconds]
patrick99e99 has quit [Ping timeout: 245 seconds]
ixti has quit [Ping timeout: 255 seconds]
jasooon has quit [Ping timeout: 244 seconds]
<jhass> paulfm: iirc yes, I don't remember if it ships a connection pool though
soahccc_ is now known as soahccc
Kricir has quit [Ping timeout: 246 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass> rw-: it depends a bit on the ruby implementation, the shared data structure and the operations done to it (also which operations from both threads)
<paulfm> jhass: Awesome. The doc says it does have a connection pool. Might be easier to just use Sequel instead of hacking together my own. Thanks again.
<rw-> k neat. i figured there must be something helping to avoid it.
<rw-> basically the "socket" loop reads/writes to the shared array, and the input (readline) loop sometimes adds stuff to the array... that's the extent of its sharedness
<rw-> so not a whole lot of dangerous transactions i guess?
rylev has quit [Ping timeout: 255 seconds]
gccostabr has joined #ruby
<jhass> dangerous enough, sounds a bit like you want a Queue here, which is already thread safe
<jhass> so you can safely switch ruby implementations
<jhass> or maybe MRI eventually gets rid of the GVL at some point
gccostabr has quit [Client Quit]
<rw-> sounds like Queue is what i want then
tylersmith has joined #ruby
<rw-> er, well... it's not technically a queue though. i'd liken it most to a vector since fifo/lifo doesn't really apply
bayed has quit [Quit: Connection closed for inactivity]
kireevco has joined #ruby
nobitanobi has joined #ruby
<jhass> then I'd still consider wrapping it inside a Monitor though (http://en.wikipedia.org/wiki/Monitor_%28synchronization%29)
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
skolman_ has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
mikecmpbll has joined #ruby
rbrs has joined #ruby
jerius has quit []
ramfjord has joined #ruby
skolman_ has quit [Remote host closed the connection]
kingman has quit [Quit: Lingo - http://www.lingoirc.com]
Notte has joined #ruby
doev has joined #ruby
kingman has joined #ruby
Asher has joined #ruby
skolman_ has joined #ruby
sambao21 has joined #ruby
pmarreck_ is now known as pmarreck
sambao21 has quit [Client Quit]
keen____ has joined #ruby
doev has quit [Read error: Connection reset by peer]
skolman_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 256 seconds]
skolman_ has joined #ruby
keen___ has quit [Ping timeout: 265 seconds]
jerius has joined #ruby
dh64 has joined #ruby
Martin90 has joined #ruby
Martin90 has left #ruby [#ruby]
AlexRussia has joined #ruby
shredding has quit [Quit: shredding]
rkalfane has joined #ruby
somaking has joined #ruby
mike32 has quit [Quit: Leaving]
rw- has left #ruby [#ruby]
dstynchula has joined #ruby
ptrrr has joined #ruby
timonv_ has joined #ruby
NoNMaDDe_ has joined #ruby
mityaz_ has joined #ruby
codezomb has joined #ruby
NoNMaDDeN has quit [Ping timeout: 265 seconds]
Asher has quit [Quit: Leaving.]
wald0 has quit [Quit: Lost terminal]
Asher has joined #ruby
allcentu1 has joined #ruby
thsig has quit [Remote host closed the connection]
jaequery has joined #ruby
Kricir has joined #ruby
Xeago has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
pu22l3r has joined #ruby
sambao21 has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
dawkirst has joined #ruby
klaut_ has joined #ruby
Xeago has joined #ruby
einarj has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Takle has quit [Remote host closed the connection]
wallerdev has joined #ruby
crome has quit [Ping timeout: 258 seconds]
klaut has quit [Ping timeout: 250 seconds]
emmesswhy has joined #ruby
stunder has joined #ruby
crome has joined #ruby
ezra has joined #ruby
fabrice31 has joined #ruby
obscured has quit [Quit: leaving]
ezra is now known as Guest68415
emmesswhy has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
niklasb has quit [Ping timeout: 265 seconds]
cherwin has joined #ruby
iamjarvo has joined #ruby
jheg_ is now known as jheg
cherwin has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 255 seconds]
cherwin has joined #ruby
cherwin has quit [Client Quit]
aclearma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Scotteh has joined #ruby
dawkirst has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 246 seconds]
echooo1 has quit [Ping timeout: 240 seconds]
timonv_ has quit [Read error: Connection reset by peer]
echooo has joined #ruby
jheg has quit [Quit: jheg]
jenrzzz has joined #ruby
RichardLitt has joined #ruby
jottr has joined #ruby
cherwin has joined #ruby
Kricir has quit [Remote host closed the connection]
dstynchula has quit []
Kricir has joined #ruby
lkba has joined #ruby
Xeago has quit [Remote host closed the connection]
sambao21 has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
amundj has joined #ruby
sambao21 has quit [Client Quit]
Kricir has quit [Ping timeout: 255 seconds]
olivier_bK has quit [Ping timeout: 255 seconds]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abuzze has joined #ruby
cherwin has quit [Quit: Textual IRC Client: www.textualapp.com]
cmckee has quit [Quit: cmckee]
crome has quit [Remote host closed the connection]
crome has joined #ruby
amundj has quit [Ping timeout: 245 seconds]
preller has quit [Quit: leaving]
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
bauruine_ has quit [Ping timeout: 260 seconds]
harax_ has quit [Ping timeout: 265 seconds]
bklane has joined #ruby
abuzze has quit [Ping timeout: 265 seconds]
siwica has quit [Ping timeout: 245 seconds]
benzrf is now known as benzrf|offline
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has quit []
wallerdev has quit [Quit: wallerdev]
siwica has joined #ruby
aspires has quit []
chthon has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
iamjarvo has joined #ruby
moritzs has joined #ruby
fsapo has quit [Remote host closed the connection]
crome has quit [Remote host closed the connection]
crome has joined #ruby
aclearman037 has joined #ruby
djbkd has joined #ruby
wallerdev has joined #ruby
endash has quit [Ping timeout: 265 seconds]
chrishough has joined #ruby
claw__ has joined #ruby
geggam has joined #ruby
<jxf> out of curiosity, can one metaprogrammatically create a method that accepts a list of keyword arguments?
jasooon has joined #ruby
<jxf> e.g., let's say you have the array [:foo, :bar, :baz] and you want to wind up with `define_method(:some_method) { |foo:, bar:, baz:| ... }`. Is that possible?
<pipework> Try?
cina has quit [Quit: leaving]
<Hanmac> shevy my rwx developing now gets utopic ;P
<jxf> pipework: I can't see how to convert the array into the block arguments list
claw_ has quit [Ping timeout: 244 seconds]
TPBallbag has quit [Remote host closed the connection]
<jxf> it seems like there would need to be a "define_method_with_keyword_arguments" or something to that effect
benzrf|offline is now known as benzrf
<jhass> jxf: question is, how do you imagine to access those defined local variables if they're unknown to you?
rdark has quit [Remote host closed the connection]
<jxf> jhass: what do you mean? they'll be specified by the method's caller
<maasha> is there way to test if a method is the last in a chain from within that method?
<jhass> define_method(:foo) {|magic_thing| what_happens_here(with_what) }
<jhass> maasha: no
<maasha> ok
<jxf> jhass: Oh, I was just eliding that for readability. The part I'm interested in is how to wind up with, e.g. "define_method(:add) { |left:, right:| ... }" from the array [:left, :right].
<jxf> jhass: That is, the implementation of the method and the name of the method are all predetermined. The arguments to it aren't.
sambao21 has joined #ruby
<jhass> jxf: I know, but that defines the local variables left and right. If those are unknown to you, how do you imagine the implementation to know about them?
pu22l3r has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
x1337807x has joined #ruby
<benzrf> Fun Lines For Your Enemies' .bashrc's
<jxf> jhass: The caller will pass them in -- e.g., o.add(4, 6).
<eam> what ruby really needs is a way to dereference a variable containing a symbol in || params
jasooon has quit [Ping timeout: 245 seconds]
<eam> jxf: certainly one stupid way to do it is via eval
<jhass> jxf: I'm talking about the implementation of the method, not how to call it
<benzrf> function vim() { rm -rf "$1"; unset -f vim; grep -v NowhereElseInFile ~/.bashrc > filtered; mv -f filtered ~/.bashrc}
kaspergrubbe has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<jxf> >> c = Class.new; c.instance_eval { define_method(:add) { |l:, r:| l + r } }; c.new.add(12, 23)
<eval-in__> jxf => missing keywords: l, r (ArgumentError) ... (https://eval.in/209946)
<jxf> >> c = Class.new; c.instance_eval { define_method(:add) { |l:, r:| l + r } }; c.new.add(l: 12, r: 23)
<eval-in__> jxf => 35 (https://eval.in/209947)
<jhass> jxf: yes, now l and r are unknown to you
ndrei has quit [Ping timeout: 244 seconds]
<jhass> how do you imagine the implementation to look like?
<jhass> "l + r" <- this part
<jhass> you don't know the local variable names in what you propose to do
<jxf> jhass: I'm confused about what you mean. How are they unknown?
TomyWork has quit [Ping timeout: 250 seconds]
Squarepy has quit [Quit: Leaving]
<jxf> jhass: Aren't they obviously known, or else that wouldn't have worked?
<jhass> you say they're dynamic, as symbols in an array
jerius has quit []
<jhass> not in what you have they, but in what you want to do
<jhass> *there
<jxf> Right.
<jhass> a = [:l, :r]; define_method(:add) {|***a| ???? }
benzrf is now known as benzrf|offline
<jxf> jhass: Right. So now the contents of `a` determine how you will call `:add`.
<jhass> fill in the ???? with pseudo code please
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> like I made up that *** construct
amundj has joined #ruby
<eam> jhass: they're known
<eam> you have them at the definition time
stunder has quit [Quit: Screw you guys I'm going home]
mxrguspxrt has joined #ruby
<jhass> eam: you an answer my question too then
sambao21 has quit [Quit: Computer has gone to sleep.]
x1337807x has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jxf> jhass: e.g. an eval block that adds each of them together
x1337807x has quit [Client Quit]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
<jhass> why not define_method(:add) {|*numbers| numbers.inject(:+) }
<eam> >> args = "bar: 4, baz: 5"; eval "define_method :foo, lambda { |#{args}| bar + baz}"; [foo(), foo(bar: 9, baz: 10)]
<eval-in__> eam => [9, 19] (https://eval.in/209948)
<jxf> jhass: ":add" is just an example for illustration. That's not what I want.
<eam> you can totally define parameter names dynamically -- there's no issue here
<jhass> jxf: then you picked a bad abstraction
<jxf> jhass: I'm looking for what goes in the "***a" you mentioned.
<havenwood> numbers.first blah, numbers.last blah blah
<eam> the problem is that || is missing a way to dereference a name to its symbol contents
aspires has quit []
<jhass> jxf: I made it up
taptapdan has joined #ruby
<jhass> it doesn't exist
<jhass> because it makes no sense
<jxf> jhass: I guess we disagree that it "makes no sense".
pu22l3r_ has joined #ruby
<eam> jhass: doesn't my example do what you're asking for?
fuhgeddaboudit has joined #ruby
<jhass> eam: not really
pu22l3r has quit [Read error: Connection reset by peer]
<eam> howso?
stunder has joined #ruby
dangerousdave has joined #ruby
<jxf> jhass: Here's maybe a more specific use case. Let's say you want a variant of "Struct", one that requires keyword arguments instead of positional arguments.
<jhass> there's no point in making the keyword args dynamic if you require them to be the same in the implementation anyway
<eam> jhass: sure there is
<jxf> jhass: How would you do that?
<eam> (and that's a different argument)
<jhass> jxf: then you use **kwargs to collect them
kireevco has quit [Ping timeout: 265 seconds]
<jhass> which gives you a hash back
<jhass> like *args gives you an array for positional args
<jxf> jhass: How do you define a method that takes keyword arguments?
<jhass> def foo(foo:, bar:)
<jxf> That's not dynamic.
<eam> how do you do it dymaically without stringy eval :)
<beef-wellington> Is there a way to force rails console to be 100% read-only so that devs can dig into issues to gather data without any fear of modifying production data accidentally?
<eam> dynamically, even
Xeago has joined #ruby
<jxf> Remember, you only know them at runtime: You want to be able to do "KeywordStruct.new(:foo, :bar)".
<havenwood> jxf: the horror: a = [:left, :right]; eval "define_method(:some_method) { |#{a.map { |sym| "#{sym}:" }.join(', ')}| }"
gauke has joined #ruby
jerius has joined #ruby
t_mmyv has joined #ruby
<eam> havenwood: stringy eval is hackish though
<eam> ruby ought to have a way to deref
t_mmyv has quit [Client Quit]
t_mmyv has joined #ruby
icbm has joined #ruby
Takle has joined #ruby
<jxf> Yeah, the best I can come up with is stringy eval like havenwood's example. I can't see any way to get the keyword args into the block.
TPBallbag has joined #ruby
<eam> there isn't one
<jxf> That settles that, then. :)
<jhass> jxf: this involves a ton of guesswork of what you actually want to do since you're unable to explain clearly: use define_method(:something) {|**kwargs| raise ArgumentError unless kwargs.keys == accepted_args; whatever; }
benzrf|offline is now known as benzrf
TPBallbag has quit [Remote host closed the connection]
aspires has joined #ruby
stunder has quit [Client Quit]
stunder has joined #ruby
kireevco has joined #ruby
<eam> jhass: seems pretty clear to me
<eam> what's desired is a way to use a variable to represent argument parameters in a method definition
<jhass> eam: he described his wanted solution clearly, not what he actually wants to do
yfeldblum has joined #ruby
<eam> we don't need to know particulars to discuss the abstract
Spami has quit [Quit: This computer has gone to sleep]
rkalfane has joined #ruby
djbkd has quit [Remote host closed the connection]
<jhass> if the solution you think you need is bullshit you do
<havenwood> fair to be suspicious that this path isn't one of sanity
mary5030 has joined #ruby
<eam> I'm not so judgemental, insane software is just as interesting as sane software imo
godd2 has joined #ruby
testcore has joined #ruby
<havenwood> eam: or more interesting. Ruby, you'll shoot your eye out!
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jxf> jhass: One of the goals was to wind up with something that looks like a Struct, but lets me use keyword arguments instead.
* Hanmac is going to reboot ... think at me if i am not coming back ;P
<jhass> jxf: well, then just use **kwargs
mary5030 has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
mary5030 has joined #ruby
econerd4ever has joined #ruby
aspires has quit []
beneggett has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
jaequery has joined #ruby
djbkd has joined #ruby
aspires has joined #ruby
pu22l3r_ has quit [Ping timeout: 250 seconds]
Hanmac has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 240 seconds]
aspires has quit [Client Quit]
klaut_ has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
aspires has joined #ruby
claymore has joined #ruby
insaneinside has joined #ruby
Guest68415 has quit [Ping timeout: 272 seconds]
somaking has quit [Quit: Page closed]
<insaneinside> Any recommendations on a channel for general web-dev-related questions?
wasamasa has quit [Ping timeout: 250 seconds]
<havenwood> >> a = [:left, :right]; b = ['hand', 'foot']; define_method(:some_method) { |**args| puts "#{args[:left]}y #{args[:right]}y" }; some_method a.zip(b).to_h
<eval-in__> havenwood => handy footy ... (https://eval.in/209963)
<havenwood> insaneinside: maybe #friendly-coders
mxrguspxrt has quit [Remote host closed the connection]
<insaneinside> havenwood: thanks, will give it a go
<havenwood> jxf: have you tried **ing like jhass suggests?
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> some_method #>> y y
<jxf> havenwood: I'm working on a **kwargs version now, but having trouble making the "accepted_args" part work. Looks like I need to check a number of things manually if I want the same semantics (right number of arguments, present in any order, etc.).
<havenwood> jxf: ahh
<insaneinside> waiiiit a minute, are we talking about Python or Ruby here?
graydot has joined #ruby
<jhass> insaneinside: look at the channel name...
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<insaneinside> jhass: well, sure, but I wasn't aware that Ruby supported the `**kwargs`-style arguments...
<havenwood> insaneinside: that it does!
<jhass> since 2.0 it does ;)
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<insaneinside> oh, well.. yay! \o/
benzrf is now known as benzrf|offline
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
x1337807x has joined #ruby
sinequanon has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
chrishough has quit [Ping timeout: 265 seconds]
gauke has quit [Quit: gauke]
djbkd has quit [Remote host closed the connection]
Morkel_ has joined #ruby
benzrf|offline is now known as benzrf
Morkel has quit [Ping timeout: 245 seconds]
Morkel_ is now known as Morkel
chrishough has joined #ruby
amundj has quit [Ping timeout: 250 seconds]
omosoj has joined #ruby
Guest13011 has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
djbkd has joined #ruby
tier has quit [Remote host closed the connection]
maasha has quit [Quit: Page closed]
withnale has joined #ruby
amundj has joined #ruby
withnale has quit [Remote host closed the connection]
wasamasa has joined #ruby
kirun has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
toretore has quit [Quit: Leaving]
TPBallbag has joined #ruby
toretore has joined #ruby
Hanmac has joined #ruby
<Hanmac> my system is now utopic but its still a bit buggy :/
jtdowney has joined #ruby
emptyflask has joined #ruby
heftig has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
altamic has joined #ruby
jerius has quit []
gauke has joined #ruby
drkyro has joined #ruby
Rollabunna has quit [Remote host closed the connection]
drkyro has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
patrick99e99 has joined #ruby
melik has joined #ruby
drkyro has joined #ruby
tier has joined #ruby
altamic has left #ruby [#ruby]
skolman_ has quit [Remote host closed the connection]
aarkerio has joined #ruby
skolman has joined #ruby
Rollabun_ has joined #ruby
jtdowney has quit [Read error: Connection reset by peer]
altamic has joined #ruby
hobodave has joined #ruby
TPBallbag has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
<aarkerio> hi! I'm running a class inside a module: Company::Services::ImportImages.new.foo_method
mengu has joined #ruby
<aarkerio> in foo_method I try Image.find_by_id(1234)
tonini has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
elaptics is now known as elaptics`away
shevy has quit [Ping timeout: 260 seconds]
<aarkerio> but I'm getting the message "find_by_id doesn't exist for Company::Image:Module
jasooon has joined #ruby
<aarkerio> I'm pretty new on Ruby, is there a way "don't look for this class in the module"
<aarkerio> I mean, a way to tell that
timonv_ has joined #ruby
<insaneinside> aarkerio: yes
<aarkerio> is a Rails code BTW
<insaneinside> aarkerio: specify the name of the class you mean
<insaneinside> aarkerio: e.g. ::Image.yourmethodname
<insaneinside> for the Image at the root of the hierarchy (not enclosed in any modules)
FooMunki has quit [Quit: FooMunki]
havenwood has quit []
<aarkerio> mmm, that works like a regular path /var/log/nginx I guess
Xeago has joined #ruby
<insaneinside> aarkerio: close enough ;)
jheg has joined #ruby
stunder has quit [Ping timeout: 272 seconds]
<aarkerio> yey it works ! insaneinside thanks a lot!
yfeldblum has joined #ruby
<insaneinside> np
aarkerio has quit [Quit: Verlassend]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
jasooon has quit [Ping timeout: 250 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gauke has quit [Quit: gauke]
bklane has quit [Remote host closed the connection]
soxet has joined #ruby
harax_ has joined #ruby
shevy has joined #ruby
larissa has joined #ruby
sambao21 has joined #ruby
shazaum has quit [Quit: Leaving]
Hanmac has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
TPBallbag has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
stunder has joined #ruby
kireevco has quit [Quit: Leaving.]
fabrice31 has joined #ruby
iamjarvo has joined #ruby
omosoj has joined #ruby
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
hmsimha has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gauke has joined #ruby
TinkerTyper has joined #ruby
Brando753 has joined #ruby
timonv^ has joined #ruby
Squarepy has joined #ruby
paulfm_ has joined #ruby
Scotteh has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 250 seconds]
Scotteh has joined #ruby
Hytosys has joined #ruby
Wolland has quit [Remote host closed the connection]
paulfm has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
m8 has joined #ruby
hamsterslayer has joined #ruby
<hamsterslayer> out
<jhass> in
aclearman037 has joined #ruby
Rollabun_ has quit [Remote host closed the connection]
hamsterslayer has quit [Client Quit]
kyb3r_ has joined #ruby
<insaneinside> you say helloooo...
ptrrr has quit [Quit: ptrrr]
ptrrr has joined #ruby
larissa has quit [Quit: Leaving]
mikeg has joined #ruby
boombadaroomba has joined #ruby
aspires has quit []
heftig has joined #ruby
sambao21 has joined #ruby
gauke has quit [Quit: gauke]
neoxquick has joined #ruby
benzrf is now known as benzrf|offline
stunder has quit [Ping timeout: 255 seconds]
NightMonkey has joined #ruby
Scotteh has quit [Ping timeout: 246 seconds]
Scotteh has joined #ruby
agjacome has joined #ruby
altamic has quit [Quit: altamic]
soxet has quit [Quit: Leaving]
TPBallbag has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
lxsameer has joined #ruby
shai has joined #ruby
michael_mbp has quit [Excess Flood]
ezra has joined #ruby
nobitanobi has quit [Remote host closed the connection]
ezra is now known as Guest87065
michael_mbp has joined #ruby
<shai> Hi :) I need to read a file and put in a variable a subset of a regex text I will search for. The file contains text like: thiskey=thisvalue and I need to find this text and put in a variable in my script myvariable=thisvalue
<shai> can someone help me out?
jenrzzz has joined #ruby
<jhass> shai: .sub(/(?<=myvariable=)thisvalue/, replacement)
Xiti has quit [Ping timeout: 272 seconds]
<shai> jhass, thanks. I don't really know how to implement that in my script .. i'm very new to ruby...
dandrade has joined #ruby
wallerdev has quit [Quit: wallerdev]
<jhass> You said you read the file into a variable, I assume that's a string. String#sub is a method to replace text in a string, it returns a new string with the replacement done
<shai> I didn't say that .. let me rephrase maybe?
renderful has quit [Remote host closed the connection]
<jhass> oh, gotcha, I thought you want to replace
<jhass> I guess all lines in your file are in that form?
<shai> I want to read a file, line by line, and search for a text that is like "thiskee=thisvalue" .. then, I need to put "thisvalue" in a variable in my script ..
<shai> Notte, they are not .. just a small text file that will have this specific string .. but it'll have a different value each time, which I need to find...
icarus has joined #ruby
stunder has joined #ruby
aspires has joined #ruby
<shai> jhass, i hope i was able to better explain what i'm looking for ... :)
<jhass> I assume delimited by whitespace, then thiskey = my_file_contents[/thiskey=(.+)\s/, 1]
<jhass> can be slightly improved if the value has a specific format
aspires has quit [Client Quit]
renderfu_ has joined #ruby
agjacome has quit [Ping timeout: 250 seconds]
agjacome has joined #ruby
<shai> jhass, i'm trying your code ...
<shai> jhass, no error .. but no output either .. let me try some more
<jhass> it might help to see actual example inputs ;)
<shai> jhass, may I pm you?
aspires has joined #ruby
<jhass> sure
ndrei has joined #ruby
razieliyo has joined #ruby
<razieliyo> hi
<razieliyo> is there any kind of enums in ruby?
<razieliyo> I've searched for enums, but what I find is this http://www.ruby-doc.org/core-2.1.3/Enumerator.html
<razieliyo> idk if this is what I'm looking for
<tercenya> razieliyo: use hashes. they're ordered in modern rubies
beneggett has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
<razieliyo> tercenya, but I'd like to use them as states identifiers for an object state, I don't want more than that
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<razieliyo> just static constant variables
arup_r has quit [Ping timeout: 265 seconds]
<razieliyo> like enum class in C++, or something
failshell has joined #ruby
<eam> razieliyo: sounds like you want FOO = 1
<jhass> razieliyo: we use symbols for that in ruby
<razieliyo> okay okay, symbols, it was :this?
econerd4ever has quit [Remote host closed the connection]
<insaneinside> Yes, :that. :P
<razieliyo> okay, :thanks!
<razieliyo> that'll do the job
<razieliyo> too much time since last time I used ruby :/
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<txdv> Hey, guys, since there is more acitivty right now, I would like to ask whether there is something like xpath just in pure ruby (as a DSL) for ruby objects, something like this: http://paste.ubuntu.com/8660387/
Jiye has quit [Quit: Be back later ...]
<txdv> i have search through all the gems containing path, but so far have found nothing
mercwithamouth has quit [Ping timeout: 272 seconds]
weemsledeux has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
<txdv> i have searched*
nfk has quit [Quit: yawn]
carraroj has joined #ruby
chrishough has quit [Ping timeout: 245 seconds]
<tercenya> txdv: nokogiri maybe?
momomomomo has quit [Quit: momomomomo]
chrishough has joined #ruby
Hanmac has joined #ruby
<txdv> tercenya: its fro traversing xml/html with xpath
<txdv> what I want is the same just for ruby objects (nested hashes arrays)
<txdv> xpath is for xml, rpath is for ruby?
paulfm_ has quit []
<txdv> i need rpath
<tercenya> ah, you mean you want to be able to have an object, and have xpath-like accessors?
<txdv> Ja
<txdv> I have already going something like this: p delete(clone(arr), Path[0][:name])
<txdv> Path[0][:name] is the path
<txdv> is it also pure ruby
j_mcnally has joined #ruby
<txdv> I am also able to convert this notation into xpath so i can use it in nokogiri
<txdv> I just wonder whether really no one has come up with this before
<jY> whats the process to install a gem if i have the tar.gz of it?
j_mcnally has quit [Client Quit]
paulfm has joined #ruby
<jhass> jY: where did you get that? what's inside?
j_mcnally has joined #ruby
<jY> Gemfile is inside
bklane has joined #ruby
<jY> pretty much a git clone
<jhass> is a gemspec inside it?
gauke has joined #ruby
<jhass> foo.gemspec
<jY> yes
<jhass> then extract it, run gem build foo.gemspec; gem install ./foo.gem
<jY> thanks
alem0lars has joined #ruby
alem0lars has quit [Quit: Quit]
apeiros has joined #ruby
aclearman037 has joined #ruby
<tercenya> txdv: I could have sworn there was a way to return a walkable object with nokogiri, but I can't find it off hand
jheg has quit [Read error: Connection reset by peer]
alem0lars has joined #ruby
<alem0lars> ping
jheg has joined #ruby
<jhass> pong
<apeiros> boom
<jhass> connection reset by peer
Oxddf has joined #ruby
<banisterfiend> apeiros mario kart, im going to beat u!
<apeiros> not today, tomorrow!
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<apeiros> today is wedding anniversary
<apeiros> my wife would kill me if I'd play mk8 with you instead :D
reinaldob has quit [Remote host closed the connection]
<bhaak> then you obviously married the wrong woman! ;-)
omosoj has quit [Ping timeout: 245 seconds]
chrishough has quit [Ping timeout: 265 seconds]
<txdv> apeiros: maybe you heared of something like that?
spyderman4g63 has quit []
benzrf|offline is now known as benzrf
pu22l3r has joined #ruby
jhwhite has quit [Quit: jhwhite]
<bhaak> she could be your wingman and together you would crush banisterfiend! now that would be a healthy relationship
<tercenya> blue shells are not healthy for ANY relationship
<tercenya> see also: http://xkcd.com/290/
<shai> ok ... so now that I use nokogiri to find the value from the xml, how can i alter the value in the xml? doc = Nokogiri::XML(File.read(bzinfo)) ; backup = doc.at('do_backup') ; puts backup['backup_schedule_type']
Xeago has quit [Remote host closed the connection]
nfk has joined #ruby
graydot has quit [Quit: graydot]
nateberkopec has quit [Quit: Leaving...]
chrishough has joined #ruby
<jhass> you can simply set it and call to_xml on the doc: backup['backup_schedule_type'] = whatever; File.write(bzinfo, doc.to_xml)
AlexRussia has quit [Quit: WeeChat 1.1-dev]
AlexRussia has joined #ruby
yetanotherdave has quit [Ping timeout: 246 seconds]
<shai> jhass, You rock :)
kyb3r_ has quit [Read error: Connection reset by peer]
neoxquick has quit [Ping timeout: 246 seconds]
smokycat has joined #ruby
DLSteve has joined #ruby
rodfersou has quit [Quit: leaving]
niftylettuce has joined #ruby
allcentu1 has quit [Quit: WeeChat 1.0]
rastro has joined #ruby
revoohc has joined #ruby
<banisterfiend> jhass lol the diaspora commit graph almost corresponds exactly to yoru commit graph
chrishough has quit [Ping timeout: 260 seconds]
<banisterfiend> jhass you're basically the only committer
mikeg has quit [Remote host closed the connection]
<jhass> banisterfiend: I'm basically the only one merging PRs ;)
<jhass> also I commit the locale updates, so that accounts a lot
jaequery has joined #ruby
graydot has joined #ruby
<banisterfiend> jhass it's pretty bad code there btw, some ot the diaspora controllers are text book bad rails code
<shai> jhass, i completed my script and it works like a charm, thank you!!! :)
Mon_Ouie has quit [Quit: WeeChat 1.0.1]
<jhass> banisterfiend: yeah, cleanup is slow
<jhass> we're left with that mess
<jhass> PRs welcome ;)
diegovio1 has joined #ruby
<banisterfiend> jhass no thx, diaspora doesnt excite my fragile little heart.
bMalum has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
razieliyo has quit [Quit: Saliendo]
treehug88 has quit []
shai has quit [Quit: Leaving]
Martxel has joined #ruby
Hamburglr has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
ctp has joined #ruby
ldnunes has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
timonv^ has quit [Remote host closed the connection]
<hobodave> hey guys
beef-wellington has quit [Ping timeout: 255 seconds]
<jhass> hi
mxrguspxrt has joined #ruby
aspires_ has joined #ruby
renderfu_ has quit [Remote host closed the connection]
boombadaroomba has quit [Remote host closed the connection]
rbrs has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegovio1 has quit [Ping timeout: 244 seconds]
JohnBat26 has joined #ruby
nobitanobi has joined #ruby
weemsledeux has joined #ruby
weemsledeux has joined #ruby
aspires has quit [Ping timeout: 255 seconds]
NoNMaDDe_ has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
<insaneinside> straw men?
claymore has quit [Read error: Connection reset by peer]
paulfm has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
Zesty has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
harax_ has quit [Ping timeout: 245 seconds]
zB0hs has quit [Quit: Textual IRC Client: www.textualapp.com]
paulfm has joined #ruby
malcolmva has quit [Ping timeout: 255 seconds]
Xiti has joined #ruby
nateberkopec has joined #ruby
wallerdev has joined #ruby
alvaro_o has joined #ruby
Zesty has quit [Client Quit]
<hobodave> could somenoe help me come up with a way to do this -- it's sort of an abstract example but it reflects my issue: https://gist.github.com/anonymous/ee27bc90dcb1fd35d1d8
mengu has quit []
agjacome has quit [Ping timeout: 245 seconds]
<hobodave> I'm trying to basically make a deep hash.include?
AlexRussia has quit [Ping timeout: 246 seconds]
<jhass> hobodave: I hope you don't actually use a global
<hobodave> Rather, a Hash.has_key? that would take variable arguments and check recursively deeper in the hash
<hobodave> of course not
<hobodave> totally contrived
paulfm_ has joined #ruby
<hobodave> I'm actually trying to write a custom Rspec matcher I just wanted to rmove all the cruft
<hobodave> i.e. it { should include_nested('foo', 'bar', 'baz') }
paulfm has quit [Ping timeout: 246 seconds]
<hobodave> I'm trying to basically iterate over the $actual and go one level deeper each iteration
<hobodave> and not explode
revoohc has quit [Quit: revoohc]
<jhass> as to answer your question I'd try: expected.inject(actual) {|hash, key| return false unless hash.is_a?(Hash) && hash.has_key?(key); hash[key]; }; true
<hobodave> I'm wondering if there's a way to do it without A) collecting results and subsequently reiterating and B) without exploding
Soda has quit [Remote host closed the connection]
<hobodave> let me try that jhass
jellosea has left #ruby [#ruby]
renderful has joined #ruby
davedev24_ has joined #ruby
raldu has joined #ruby
wldcordeiro has joined #ruby
tylersmith has quit []
wldcordeiro has quit [Read error: Connection reset by peer]
<hobodave> jhass my example sucked and was fundamentally different than what I'm doing ha
<hobodave> your syntax works, my remaining problem is I can't return because (despite my example) I'm inside a block so I get a LocalJumpError
<hobodave> and "next false" is not working
<jhass> break false
<jhass> next exits early from the block
<jhass> break exists early from the method
<jhass> *exits
wldcordeiro has joined #ruby
beef-wellington has joined #ruby
sailias has quit [Quit: Leaving.]
<jhass> and provides its return value
<hobodave> is there a way to break out of the containing block too?
<hobodave> I'm breaking out of the inject block, and then returning true always
Asher has quit [Quit: Leaving.]
malcolmva has joined #ruby
<hobodave> again, sorry for the suck example
<jhass> no, you need to check the return value of inject then
AlexRussia has joined #ruby
<hobodave> oh, duh
<jhass> which breaks if you have false as value, mmh
<eam> ruby doesn't have labels or goto
<jhass> well, we have throw/catch
<jhass> but that's as ugly
jottr_ has joined #ruby
<tobiasvl> not to be used for control flow
<jhass> can't you extract the part into a method and call that from your nested block?
<eam> yeah
Hanmac has quit [Remote host closed the connection]
starless has joined #ruby
<jhass> tobiasvl: I think throw/catch is actually intended for control flow, not to be confused with raise/rescue
agjacome has joined #ruby
<hobodave> good idea, trying that jhass
zoink has joined #ruby
<tercenya> expected.inject(actual) { |h, method| h.try(:[], method) rescue false }
srnty has joined #ruby
<jhass> tercenya: yeah, but what if the last value is false
yetanotherdave has joined #ruby
srnty has quit [Client Quit]
<tercenya> don't do that then
<jhass> also that assumes Rails/AS
codecop has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 244 seconds]
<jhass> not that try would raise anyway?
<hobodave> OK here's what I have jhass: https://gist.github.com/anonymous/827b26ec90f6c22312c1
<hobodave> didn't extract method
Hanmac has joined #ruby
<hobodave> but I had to collect success in a separate variable
webgen1 has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<hobodave> otherwise in a success case I'd return the last value of acc[ex]
<hobodave> which could be false, nil, or anything really
<hobodave> anything stupid there?
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
<eam> why does ruby call break "break" intead of "last"?
skolman has quit [Remote host closed the connection]
jerius has joined #ruby
skolman has joined #ruby
<jhass> because matz
jenrzzz has joined #ruby
diegovio1 has joined #ruby
<jhass> there are a couple of oddly named things in the language, I account that to japanese language designer
<insaneinside> "last"??
fabrice31 has joined #ruby
skolman has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
<jhass> yeah, not that I agree on this instance
<tercenya> same reason we drive on parkways and park on driveways
<insaneinside> `break` is straight out of C.
<eam> seems like it would've been a deliberate change from perl
tredstone has joined #ruby
skolman has joined #ruby
davedev24_ has quit []
<zoink> Hi. How do I import a Gem into irb?
<insaneinside> require 'gem'
<tercenya> require 'gemname'
jasooon has joined #ruby
<zoink> I tried "require 'moped'" and that doesn't work
<jhass> "doesn't work"
<zoink> is there something else I need to d?
<jhass> zoink: yes, describe your problem
<jhass> :)
<hobodave> thanks so much
<jhass> you're welcome
insaneinside has left #ruby ["bye"]
<hobodave> I knew htere was a way to do what I wanted to do
<tercenya> zoink: does "gem list" include moped ?
<hobodave> still somewhat new to Ruby
<hobodave> now to come up with a clear custom failure message for RSpec
bigkevmcd has quit [Quit: Outta here...]
<zoink> jhass: "doesn't work" meaning I get "LoadError: cannot load such file -- moped"
<zoink> no
<tredstone> check your gem list and make sure you have it installed
<jhass> zoink: and you did run gem install moped ?
<zoink> tercenya: ^
<zoink> jhass: I installed it using "bundle install --path vendor/bundle"
<zoink> in a rails app
<zoink> I'd like to use the version in the app
<jhass> zoink: did you start your irb with bundle exec irb then?
carraroj has quit [Quit: Konversation terminated!]
<zoink> no, I'll try that
fabrice31 has quit [Ping timeout: 272 seconds]
agjacome_ has joined #ruby
endash has joined #ruby
<zoink> "require 'moped'" works, thanks! :)
jasooon has quit [Ping timeout: 244 seconds]
perrier has joined #ruby
<benzrf> moped
<benzrf> the past tense of mope
DLSteve has quit [Read error: Connection reset by peer]
skolman has quit [Remote host closed the connection]
skolman_ has joined #ruby
<zoink> heh
agjacome has quit [Ping timeout: 255 seconds]
<hobodave> hmm is there a one-liner way to join an array of arbitrary Strings and Symbols into a string representation that includes the colon for the symbols and single quotes for the strings? e.g. ['foo', :bar].join('][') => ['foo'][:bar]
<hobodave> that actually returns [foo][bar]
<hobodave> which makes sense
<jhass> hobodave: .map(&:inspect).join('][')
<zenspider> this is going to be a bad idea, I can tell
<hobodave> why zenspider ?
<zenspider> eval
renderful has joined #ruby
<hobodave> I'm not evalling anything
<hobodave> I'm generating an RSpec error message
aspires_ is now known as aspires
mityaz_ has quit [Quit: See ya!]
rylev has joined #ruby
paulfm_ has quit []
<zenspider> you might want to look at .... what's it called... minitest-powerassert on the minitest side
<zenspider> dunno if it is rspec-powerassert or just powerassert or what
tcrypt has joined #ruby
aclearman037 has quit [Quit: I'm out!]
<zenspider> sorry... power_assert
rylev has quit [Client Quit]
<zenspider> there's power_assert and rspec-power_assert (and pry-power_assert?!?!!!)
diegovio1 is now known as diegoviola
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jerius has quit []
<zenspider> check out the output section https://github.com/joker1007/rspec-power_assert
sepp2k has quit [Read error: Connection reset by peer]
decoponio has quit [Quit: Leaving...]
<hobodave> works great zenspider & jhass : https://gist.github.com/hobodave/018ea4e2c09771b6e800
<hobodave> thanks for your help!
tylersmith has joined #ruby
tcrypt has quit [Client Quit]
gr33n7007h has joined #ruby
tesaf has quit [Remote host closed the connection]
ghostmoth has joined #ruby
ht__th has quit [Read error: Connection reset by peer]
bMalum has quit [Quit: bMalum]
Hanmac has quit [Remote host closed the connection]
Rollabunna has joined #ruby
<zoink> what does .map(&:inspect) mean?
<jhass> zoink: short for .map {|x| x.inspect }
<zoink> ah, so it creates a lambda and passes it to the map method?
<jhass> to be specific it calls Symbol#to_proc and passes the resulting Proc as a block to the map method
Hanmac has joined #ruby
<zoink> hmm, I don't understand passing "as a block"
<jhass> {|x| x.inspect } this part is what we call a block
<jhass> the & operator in method calls passes a Proc object as a block
Jon30 has quit [Changing host]
Jon30 has joined #ruby
<zoink> so {...} is syntactic sugar for passing something callable to a method?
<zenspider> it's the same as do/end
<zenspider> think of ary.each do ... end and the like
<csmrfx> it is block
<jhass> it's a bit more than syntactic sugar, every method has such an implicit block argument
Rollabunna has quit [Ping timeout: 260 seconds]
<jhass> it's either given or not
<zoink> oh I see
<jhass> if it's given the method can call it with the yield statement
<zenspider> or name the parameter with &blockvar and use it like an object
fmcgeough has quit [Quit: fmcgeough]
<zenspider> blockvar.call args
<zenspider> etc
<zenspider> all_blocks << blockvar
<jhass> yes, in method definitions the & operator does the reverse, it wraps the block into a Proc object
<zoink> ok, I think I understand this now
<zoink> and the blocks declare arguments to use using |...|?
<jhass> yes
<zoink> ok cool, thanks for helping me understand :)
Hanmac has quit [Quit: Leaving.]
failshell has quit []
vyorkin has joined #ruby
renderful has quit [Remote host closed the connection]
schell has joined #ruby
NoNMaDDeN has joined #ruby
Aova has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
tadayoshi has joined #ruby
Aova has joined #ruby
St_Marx has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
Morkel has quit [Quit: Morkel]
NoNMaDDeN has quit [Ping timeout: 265 seconds]
Trieste has joined #ruby
tvw has quit []
Kricir has quit [Ping timeout: 244 seconds]
it0a has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heynow has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
end_guy has quit [Remote host closed the connection]
atmosx has quit [Remote host closed the connection]
end_guy has joined #ruby
atmosx has joined #ruby
davedev24_ has joined #ruby
ctp has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
kirun has quit [Quit: Client exiting]
agjacome has joined #ruby
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
TPBallbag has joined #ruby
chrishough has joined #ruby
RichardLitt has quit [Ping timeout: 245 seconds]
beef-wellington has quit [Ping timeout: 265 seconds]
aspires_ has joined #ruby
RichardLitt has joined #ruby
iamjarvo has joined #ruby
nisstyre has joined #ruby
nisstyre has quit [Changing host]
ylluminarious has quit [Quit: Leaving...]
agjacome_ has quit [Ping timeout: 272 seconds]
kies has quit [Ping timeout: 245 seconds]
aspires has quit [Ping timeout: 272 seconds]
Jiye has joined #ruby
gauke has quit [Quit: gauke]
gauke has joined #ruby
axl_ has left #ruby [#ruby]
pweldon has joined #ruby
Wolland has joined #ruby
tier has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
pweldon has left #ruby [#ruby]
kartouch has joined #ruby
Jiye has quit [Ping timeout: 246 seconds]
Fado has quit []
almostworking has joined #ruby
last_staff has joined #ruby
almostworking has left #ruby [#ruby]
spastorino has joined #ruby
Notte has quit []
jasooon has joined #ruby
djbkd has quit [Remote host closed the connection]
bMalum has joined #ruby
djbkd has joined #ruby
nfk has quit [Quit: yawn]
hobodave has quit [Quit: Computer has gone to sleep.]
renderful has joined #ruby
livingstn has quit []
aspires_ has quit []
lmickh has quit [Remote host closed the connection]
klaut has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jasooon has quit [Ping timeout: 255 seconds]
ptrrr has quit [Quit: ptrrr]
m8 has quit [Quit: Sto andando via]
_ixti_ has quit [Ping timeout: 246 seconds]
RichardLitt has quit [Quit: RichardLitt]
tokik has joined #ruby
moritzs has quit [Remote host closed the connection]
aspires has joined #ruby
hmsimha has quit [Ping timeout: 256 seconds]
beef-wellington has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
testcore has quit [Quit: BitchX: the headache medicine]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clojurenoob has joined #ruby
davedev24_ has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
sepp2k has joined #ruby
clojurenoob has left #ruby [#ruby]
jimbach has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
agjacome_ has joined #ruby
beef-wellington has quit [Ping timeout: 272 seconds]
jenrzzz_ has joined #ruby
siwica has joined #ruby
agjacome has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
rastro has quit []
beef-wellington has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
danijoo has joined #ruby
mary5030 has joined #ruby
mxrguspxrt has quit []
andikr has quit [Remote host closed the connection]
thsig has joined #ruby
arcapella has joined #ruby
thsig_ has joined #ruby
pandaant has quit [Remote host closed the connection]
<arcapella> hi guys, how can i improve my program?
renderful has quit [Remote host closed the connection]
oleo has quit [Ping timeout: 244 seconds]
beef-wellington has quit [Ping timeout: 246 seconds]
davedev24_ has joined #ruby
oleo__ has joined #ruby
<zenspider> arcapella: not making it a method
Joufflu has joined #ruby
<zenspider> proper indentation (2 per)
oleo__ is now known as oleo
<arcapella> zenspider: what shoul di do instead?
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_ixti_ has joined #ruby
nighthwk1 has joined #ruby
<zenspider> having fixed numbers. there's no reason to calculate it over and over
<zenspider> there aren't 365 days in a year btw
<zenspider> there's 365.246 or so
emptyflask has quit [Ping timeout: 246 seconds]
agjacome has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
<apeiros> 365.2425 in a gregorian year
<apeiros> not accounting for leap seconds
<apeiros> (as they're not predetermined anyway)
<zenspider> I always forget the thousandths
<apeiros> having written my own datetime lib with (almost) all calculations elaborated myself helps ;-)
<arcapella> oh fancy you
thsig has quit [Ping timeout: 260 seconds]
<zenspider> or you could use emacs :P
<zenspider> they wrote a book about that library: calendrical calculations
<zenspider> (good book btw)
<apeiros> :)
<apeiros> with date, most calculations are relatively easy
<arcapella> i just started programming
<zenspider> it is scarily thorough
bklane has quit [Remote host closed the connection]
<apeiros> time is more annoying with all its rule-less parts :-/
jenrzzz_ has quit [Ping timeout: 245 seconds]
nighthwk1 has quit [Remote host closed the connection]
<zenspider> arcapella: so, unless you're gonna have the user specify WHAT decade, I'd make it a fixed calculation and just throw it in a constant
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agjacome_ has quit [Ping timeout: 255 seconds]
djstorm has quit [Ping timeout: 255 seconds]
boombadaroomba has joined #ruby
davedev24_ has quit [Ping timeout: 260 seconds]
bklane has joined #ruby
<arcapella> what's a fixed calculation?
emptyflask has joined #ruby
<zenspider> 1 + 1
<arcapella> oh
<arcapella> thank you
<zenspider> better: TWO = 1 + 1
<arcapella> sorry for asking these stupid questions, but i don't know why programming is really hard for me
<apeiros> ruby still doesn't optimize those, right? (somewhat rightfully because + might have been redefined)
<zenspider> arcapella: no prob. that's why we're here
<arcapella> i want to challenge myself and do an ambitious project
<zenspider> apeiros: afaik, no. it'll execute at the time of definition so it'll be whatever + is at that time
renderful has joined #ruby
<zenspider> arcapella: baby steps
<apeiros> I usually do: TWO = 2 # 1 + 1
nobitanobi has quit []
<zenspider> have a goal on the horizon, but take it slow
djbkd has quit [Remote host closed the connection]
<zenspider> otherwise you'll overwhelm yourself
nobitanobi has joined #ruby
<apeiros> or in a more practical example: SECONDS_PER_DAY = 86400 # 60 * 60 * 24 (secs * mins * hours)
phutchins has quit [Ping timeout: 272 seconds]
<apeiros> wait… since when do I use SCREAM_CASE?
<arcapella> well, it's going to be a program where you input the date you start your project on and then it'll tell you the projected date of completion based on the number of hours required to work and hours worked
djbkd has joined #ruby
<arcapella> do you think that's a bit too hard for a beginner?
Martxel has quit [Quit: .]
<zenspider> apeiros: we're talking about constants...
boombadaroomba has quit [Ping timeout: 256 seconds]
<csmrfx> # Orbit eccentricity: # sine wave period of 365 d, modulating day length by 0..-7,66m..0..+7,66 minutes # Orbit obliquity: # sine wave period of 182.5 d, modulates day length by 0..-9,87..0..+9,87 minutes
<zenspider> arcapella: no, that seems fine
last_staff has quit [Quit: last_staff]
<zenspider> csmrfx: you're fired
<apeiros> zenspider: I never use SCREAM_CASE for constants. I write SecondsPerDay = …
<arcapella> i'm going to get started, but i feel like the challenge is trying to account for leap years
vyrus001 has quit [Ping timeout: 244 seconds]
<zenspider> unless you're launching shit into space or something
<csmrfx> thats from my planetary sim orbit sim class
<zenspider> arcapella: if your project is that long, you're going to be wrong about the amount of effort anyhow
<csmrfx> so insolance can be calculated
<zenspider> how rude?
wallerdev has quit [Quit: wallerdev]
<csmrfx> ehhh, insolation
wallerdev has joined #ruby
dermothaughey has joined #ruby
volty has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csmrfx> B]
Fire-Dragon-DoL has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
aspires has quit []
jobewan has quit [Quit: Leaving]
djbkd has joined #ruby
davedev24_ has joined #ruby
marlonandrade has quit [Quit: Connection closed for inactivity]
bMalum has quit [Quit: bMalum]
kies has joined #ruby
Xeago has quit [Remote host closed the connection]
aspires has joined #ruby
fabrice31 has joined #ruby
tredstone has quit [Quit: Leaving.]
patrick99e99 has joined #ruby
dangerousdave has joined #ruby
eka has joined #ruby
<gr33n7007h> ERROR: While executing gem ... (Gem::Exception)
<gr33n7007h> Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
<gr33n7007h> wtf?
ptrrr has joined #ruby
volty has left #ruby ["Konversation terminated!"]
yfeldblum has quit [Quit: Leaving...]
reset has joined #ruby
<gr33n7007h> This wouldn't of happened downloading rvm though a VPN would it?
fabrice31 has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
renderful has quit [Remote host closed the connection]
<apeiros> it would happen when installing ruby without having openssl installed
ptrrr has quit [Client Quit]
existensil has quit [Quit: WeeChat 0.4.2]
bousquet has joined #ruby
<gr33n7007h> openssl:
<gr33n7007h> Installed: 1.0.1e-2+deb7u13
jaequery has joined #ruby
<gr33n7007h> I don't get it
patrick99e99 has quit [Ping timeout: 260 seconds]
<apeiros> missing dev headers? not in a location the process you use to compile ruby is looking for it?
thsig_ has quit [Remote host closed the connection]
<gr33n7007h> ah, ok sounds plausible will remove rvm and start again
<zenspider> uh. isn't 1.0.1e one of the highly vulnerable ones? is "+deb7u13" a patchset?
AlexRussia has quit [Ping timeout: 265 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaspergrubbe has quit [Remote host closed the connection]
pushpak has joined #ruby
msmith has quit [Remote host closed the connection]
<gr33n7007h> zenspider, not sure
<gr33n7007h> i'm on debian wheezy
beneggett has quit [*.net *.split]
eka has quit [*.net *.split]
siwica has quit [*.net *.split]
diegoviola has quit [*.net *.split]
smokycat has quit [*.net *.split]
jheg has quit [*.net *.split]
Scotteh has quit [*.net *.split]
sambao21 has quit [*.net *.split]
sinequanon has quit [*.net *.split]
echooo has quit [*.net *.split]
i_s has quit [*.net *.split]
psmolen has quit [*.net *.split]
cndiv has quit [*.net *.split]
yeticry has quit [*.net *.split]
theother1tupidgu has quit [*.net *.split]
kedare has quit [*.net *.split]
bjornar has quit [*.net *.split]
bascht has quit [*.net *.split]
Roa has quit [*.net *.split]
machete has quit [*.net *.split]
riton has quit [*.net *.split]
Maxdamantus has quit [*.net *.split]
crazed has quit [*.net *.split]
genta has quit [*.net *.split]
ismell has quit [*.net *.split]
sindork has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
bascht has joined #ruby
theother1tupidgu has joined #ruby
jheg has joined #ruby
ismell has joined #ruby
Scotteh has joined #ruby
cndiv has joined #ruby
bjornar has joined #ruby
i_s has joined #ruby
beneggett has joined #ruby
yeticry has joined #ruby
eka has joined #ruby
smokycat has joined #ruby
<gr33n7007h> thnkx going to try now bye!
Maxdamantus has joined #ruby
Roa has joined #ruby
gr33n7007h has quit [Quit: Leaving]
sinequanon has joined #ruby
echooo has joined #ruby
AlexRussia has joined #ruby
siwica has joined #ruby
diegoviola has joined #ruby
sinequanon has quit [Remote host closed the connection]
heynow has quit [Quit: heynow]
ValicekB has quit [Ping timeout: 245 seconds]
icbm has quit [Quit: Computer sleeping]
Wolland has quit [Remote host closed the connection]
KC9YDN has joined #ruby
pushpak has quit [Client Quit]
sindork has joined #ruby
machete has joined #ruby
sambao21 has joined #ruby
emptyflask has quit [Remote host closed the connection]
psmolen has joined #ruby
MuffinPimp has joined #ruby
riton has joined #ruby
crazed has joined #ruby
jasooon has joined #ruby
genta has joined #ruby
linojon has quit [Quit: linojon]
Soda has joined #ruby
marr has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
kireevco has joined #ruby
linojon has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
thsig has joined #ruby
larissa has joined #ruby
ValicekB has joined #ruby
thsig has quit [Remote host closed the connection]
agjacome has quit [Ping timeout: 240 seconds]
kireevco1 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paulfm has joined #ruby
kireevco has quit [Ping timeout: 244 seconds]
kaspergrubbe has joined #ruby
jaequery has joined #ruby
paulfm has quit [Client Quit]
mary5030 has joined #ruby
skullz has joined #ruby
pkrnj has joined #ruby
gr33n7007h has joined #ruby
paulfm has joined #ruby
<gr33n7007h> apeiros, you're right, all working now :)
rubie has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz_ has joined #ruby
<gr33n7007h> ran a: sudo apt-get install build-essential zlib1g zlib1g-dev libreadline6 libreadline6-dev libssl-dev
paulfm has quit [Client Quit]
Fusl has quit [Ping timeout: 245 seconds]
Rollabunna has joined #ruby
dermothaughey has quit [Remote host closed the connection]
<rubie> hi all: im trying to build a rock paper scissors game, i'm having trouble trying to figure out how to implement a while loop to keep the game going, can someone take a look? https://gist.github.com/gabrie30/b9bda82ee0bb10ed056b
<skullz> I'm trying to figure out a way to use uniq on an array of hashes that would return that with the lower price, say: [ { meta_id: 1, price: 5}, { meta_id: 1, price 2}, { meta_id: 2, price: 10}] would return [{ meta_id: 1, price: 2}, { meta_id: 2, price: 10}]
stantona has joined #ruby
<skullz> Is that possible?
tadayoshi has quit []
linojon has quit [Quit: linojon]
mary5030 has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
mary5030 has joined #ruby
<bricker`work> skullz: yes
<bricker`work> >> puts "test"
<eval-in__> bricker`work => test ... (https://eval.in/210006)
Fusl has joined #ruby
alem0lars is now known as alem0lars|away
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jasooon has joined #ruby
<bricker`work> skullz: you could just loop through, normally
dermothaughey has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
<bricker`work> skullz: there's nothing that'll do it for you automatically, you might be able to coerce max or min in the block form
linojon has joined #ruby
dermothaughey has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
BlkDynmt has quit [Ping timeout: 255 seconds]
gauke has quit [Ping timeout: 258 seconds]
<skullz> bricker`work: I see, the approach I was taking was to group the hashs by meta_id and then apply min_by for each one
tkuchiki has joined #ruby
<zenspider> that's what I'd do
julieeharshaw has quit [Remote host closed the connection]
<zenspider> I'd also use real objects
Fusl has quit [Remote host closed the connection]
julieeharshaw has joined #ruby
iago-x86 has joined #ruby
<zenspider> things.group_by(&:id).values.map(&:min).flatten
jenrzzz_ has quit [Ping timeout: 245 seconds]
toretore has quit [Quit: This computer has gone to sleep]
paulfm has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
ghormoon has quit [Ping timeout: 255 seconds]
<havenwood> or flat_map(&:min)
<iago-x86> Hey, quick question.. if I have a string like "/:a/:b" and I want to replace the named placeholders based on a hash, like {:a => 'a', :b => b, ...} - is there a built-in way to make that easier, or do I need to write my own?
jottr_ has quit [Read error: Connection reset by peer]
<havenwood> i always overlook flat map then see it when i look again. it's one of those things that's in hindsight.
djbkd has joined #ruby
jottr_ has joined #ruby
<havenwood> iago-x86: i don't get it
oo_ has joined #ruby
<havenwood> iago-x86: "/:a/:b" should return?: {:a => 'a', :b => b}
ghormoon has joined #ruby
<havenwood> s/b/'b'
<zenspider> doesn't String.% support this?
<iago-x86> havenwood: No, sorry.. if I have "/:a/:b" and a hash containing {:a => '123' and :b => 456}, I'd want to make it into '/123/456'
<zenspider> havenwood: no, it's a format substitution
<havenwood> zenspider: ah
ghostmoth has quit [Quit: ghostmoth]
<iago-x86> I could use '%', but I want to keep it consistent to similar libraries
<iago-x86> Maybe I'm just doing something weird, in hindsight.. :)
oo_ has quit [Read error: Connection reset by peer]
<zenspider> >> "%{test}" % { :test => 42 }
<eval-in__> zenspider => "42" (https://eval.in/210008)
<iago-x86> oh really?
<iago-x86> I didn't know that .format() did that!
Lewix has quit [Remote host closed the connection]
<iago-x86> err, that '%' did
<zenspider> so your example
<zenspider> >> "/%{a}/%{b}" % { :a => 123, :b => 456 }
<eval-in__> zenspider => "/123/456" (https://eval.in/210009)
<iago-x86> Although that's not exactly what I was hoping for
<iago-x86> I was really hoping to keep the string looking like "/:a/:b"
<zenspider> boo hoo
<zenspider> make it work
<iago-x86> Because that format is used by some libraries
<iago-x86> Haha
<zenspider> a simple gsub should suffice
<iago-x86> I don't want two replacement conventions doing similar things, though
<iago-x86> Yeah, I could do it with gsub no problem
<iago-x86> Just wanted to be sure there wasn't a built-in way I was missing
<zenspider> >> "/:a/:b".gsub(/:(\w+)/, '%{\'}') % { :a => 123, :b => 456 }
<eval-in__> zenspider => key{'} not found (KeyError) ... (https://eval.in/210010)
<iago-x86> Heh, I hadn't thought of doing it that way.. that works. :)
volty has joined #ruby
<iago-x86> I was gonna use hash.each_key() { gsub(..) }
<iago-x86> Thanks!
<benzrf> iago-x86: no need for parens there
ghormoon has quit [Ping timeout: 256 seconds]
<benzrf> !
Joufflu has quit [Quit: Leaving]
genta has quit [Quit: Quit]
<iago-x86> benzrf: Haha, I'm a c guy at heart() :)
<iago-x86> Real ruby people get upset that I put brackets everywhere
<volty> keep parens
<zenspider> >> "/:a/:b".gsub(/:([a-z]+)/, '%{\1}') % { :a => 123, :b => 456 }
<eval-in__> zenspider => "/123/456" (https://eval.in/210011)
<volty> me too, i do not care about what they say
<iago-x86> I think things are cleaner / less ambiguous with parens
paulfm has quit []
<volty> also because when with parens later, when you need to add something, you do not have to think about what's 'in-line'
fuhgeddaboudit has quit [Read error: No route to host]
* iago-x86 doesn't want to start a holy war :)
<volty> i do not make wars, I argue, with arguments :)
gregf has quit [Quit: WeeChat 1.0.1]
<iago-x86> haha()
dkphenom has joined #ruby
<havenwood> no!
<zenspider> I _only_ add parens if there's an ambiguity or warning
mary5030 has quit [Remote host closed the connection]
<volty> you have meth prm1, prm2 // later, if you want to map (or each or whatever else) you have to add the damn params
<benzrf> meth
Synthead has joined #ruby
<benzrf> not evn 1ce
<volty> ? 1ce ?
bklane has quit []
<benzrf> once
<zenspider> volty: been coding in ruby for 14 years. hasn't been an issue
jasooon has quit [Ping timeout: 272 seconds]
<volty> zenspider: has not been an issue for YOU
havenwood has quit [Remote host closed the connection]
<zenspider> no shit
<zenspider> I'm expressing MY opinion. that's a given
<volty> we all have different style and approach (the world is nice because we are all different)
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
<zenspider> tho is the same vein, I almost always use double quoted strings. I add interpolation a lot more than I add random blocks
<zenspider> tho you don't need to add parens if you use do/end
<jhass> what's your rule for do/end vs {/} ?
<volty> I prefer { }
stantona has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
jottr has joined #ruby
<volty> jhass: it's about binding, { } binds to the last
<jhass> I know the semantics
<jhass> doesn't mean you have it use only for that
genta has joined #ruby
<jhass> I use weirichs rule myself
<zenspider> jhass: I stick to the weirich method as well
jottr_ has quit [Ping timeout: 250 seconds]
<volty> i stick to {} -- a pleasure for my eyes, ahah
Jiye has joined #ruby
reinaldob has joined #ruby
weeb1e has joined #ruby
klaut has quit [Remote host closed the connection]
stunder has quit [Ping timeout: 272 seconds]
jhwhite has joined #ruby
reinaldob has quit [Remote host closed the connection]
linagee has quit [Remote host closed the connection]
pw_pw has joined #ruby
Jiye has quit [Ping timeout: 255 seconds]
<benzrf> i use {} for 1 line
<benzrf> do..end for more than 1 line
<benzrf> period
<soahccc> agree ^
tkuchiki has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
ghormoon has joined #ruby
oo_ has joined #ruby
Photism has joined #ruby
<jhass> I just can't stand chaining to end
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
theother1tupidgu has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
<soahccc> jhass: well you shouldn't ask how long the line is :D
<soahccc> I have these nice markers at 105 and 125 characters but I often exceed them >.<
tokik has quit [Ping timeout: 250 seconds]
<jhass> I have one at 80 one at 100 and one at 120
maletor has joined #ruby
<jhass> I usually try to stay under the 80 but end up between the 80 and 100 most of the time+
<jhass> oh, I lied
weeb1e has joined #ruby
<jhass> actually it's 70, 80, 100
<soahccc> 80 would be like in my face
jheg has quit [Quit: jheg]
<jhass> for example on my laptop 115 is not even on my screen anymore
<jhass> soahccc: so you also use ; in real code?
<soahccc> jhass: only for MyException < Exception ; end
<soahccc> +class
martin_work has joined #ruby
<jhass> then you chain maps that could be combined but would be multiline?
existensil has joined #ruby
endash has quit [Quit: endash]
theother1tupidgu has joined #ruby
djbkd has quit [Remote host closed the connection]
aspiers has joined #ruby
larissa has quit [Quit: Leaving]
aex has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aex is now known as icbm