apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
evaryont has left #ruby ["Cloed the application."]
hersha has quit [Quit: hersha]
<speakingcode-wor> monkey patching has good metaprogramming uses tho, like stubbing out stuff for testing frameworks, etc
newUser1234 has quit [Ping timeout: 272 seconds]
zeade has quit [Quit: Leaving.]
Galeforce has joined #ruby
Hanmac has joined #ruby
pskosinski has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
pragmatism has joined #ruby
mojjojo has quit [Quit: mojjojo]
<havenwood> freedom patching**
Ivo has joined #ruby
<xibalba> thanks for the info
<speakingcode-wor> havenwood: is that like freedom fries?
jlast has quit [Ping timeout: 264 seconds]
raphaelivan has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<nobitanobi> How would you return the element of an array if the array just has one element?
<speakingcode-wor> a[0]
Dan_ has joined #ruby
<speakingcode-wor> a.first
<nobitanobi> >> a = [1,2,3]; a.first
<eval-in> nobitanobi => 1 (https://eval.in/71263)
<nobitanobi> this array has 3 elements.
Dan_ is now known as Guest40120
<nobitanobi> I just want, if the array has 1 element
<speakingcode-wor> yeah um so there's this concept called generalization
<speakingcode-wor> so an array with 0 or more elements behaves just like any other array with 0 or more elements
<slash_nick> nobitanobi: i don't understand
Reach has quit [Remote host closed the connection]
<nobitanobi> speakingcode-wor, what are you talking about?
<nobitanobi> >> a = [1,2,3]; a.first if a.one?
<eval-in> nobitanobi => nil (https://eval.in/71264)
sepp2k has quit [Quit: Leaving.]
<speakingcode-wor> arrays are arrays. the # of elements doesn't matter, the first element is the first element and is at position 0
ephemerian has quit [Quit: Leaving.]
<nobitanobi> I will stick with that
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
javos has joined #ruby
kaspergrubbe has joined #ruby
<nobitanobi> speakingcode-wor, I am not saying if it matters or not. I was asking a specific question.
sheap has quit [Ping timeout: 264 seconds]
b00stfr3ak has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
<speakingcode-wor> and i'm saying the specificity of your inquiry has no bearing on the behavior of arrays
javos_ has quit [Read error: Operation timed out]
<nobitanobi> oh dear.
<speakingcode-wor> if it has 1 element, or 1 million, the first element is acessed either by a[0] or a.first
pragmatism has quit [Ping timeout: 272 seconds]
<nobitanobi> Ok speakingcode-wor . Thanks
<speakingcode-wor> are you implying another condition that we are overlooking?
pskosinski has joined #ruby
jhamon has quit [Quit: jhamon]
<speakingcode-wor> do you mean, only get the first element IF the array has only one element?
<nobitanobi> speakingcode-wor, I just wanted to know what would be a good way to get first element just if the array has one element. So, if the array has 3 element, not get anything. But I already found a way I like
jerius has quit [Quit: Computer has gone to sleep.]
<bnagy> nobitanobi: what you're doing is weird.. there's a related splat trick which is kind of the opposite though
<nobitanobi> bnagy, I'm just playing :P
<bnagy> var = *other - var will always be an array whether other is an array or a single elem
IceColdMax has quit [Quit: Textual IRC Client: www.textualapp.com]
Gonzih has joined #ruby
kaspergrubbe has quit [Ping timeout: 246 seconds]
<bnagy> comes in handy in a few places
<nobitanobi> oh nice
johnnyfuchs has joined #ruby
<nobitanobi> didn't know that one
<Kamuela> does a method used within a method have the scope of the variables in the parent method?
banister has joined #ruby
<speakingcode-wor> nobitanobi: in that care, the method you showed seems entirely appropriate, i.e. if a.one?
<bnagy> no
tharindu has joined #ruby
<speakingcode-wor> Kamuela: no
fgo has joined #ruby
<bnagy> closures take their bindings with them though
<speakingcode-wor> however, procs have closure
randomnick_ has quit [Quit: Leaving]
jerius has joined #ruby
<bnagy> :)
<Kamuela> def meth; @hello = "hi"; second_meth();end second_meth doesn't have access to @hello?
<speakingcode-wor> so if a method returns a proc, that is executed later, the proc will have scope to the method that created it, iirc
<bnagy> @hello is an ivar, the visibility is different
jhamon has joined #ruby
hogeo has joined #ruby
<Kamuela> i am asking specifically to help me undersatnd how rails works
sergicles has quit [Ping timeout: 245 seconds]
<Kamuela> the render method basically from within a controller
<Kamuela> does it have access to the ivars from its caller?
<bnagy> go ask that in #rubyonrails
<bnagy> I'm amazed enough that rails works at all
<slash_nick> >> a = [1,2,3]; !a[1] and a[0]
<eval-in> slash_nick => false (https://eval.in/71292)
<slash_nick> >> a = [1]; !a[1] and a[0]
<eval-in> slash_nick => 1 (https://eval.in/71294)
<nobitanobi> lol bnagy
<slash_nick> >> a = [1, false]; !a[1] and a[0] #booo fail
<eval-in> slash_nick => 1 (https://eval.in/71295)
sergicles has joined #ruby
hadees has quit [Quit: hadees]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<Kamuela> basically, i'm thinking rails has a LOT of default actions. and these default actions behind the scenes, e.g. from inherited superclasses and things are keeling me
hogeo has quit [Ping timeout: 245 seconds]
Moike has joined #ruby
<bnagy> you know where they know about that stuff?
<banister> bnagy sup nagg-dogg
<bnagy> nm, writing a lot of Go :/
<speakingcode-wor> Kamuela: the concept of that is called 'convention over configuration'
pel_daniel has joined #ruby
karl___ has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
<speakingcode-wor> things 'just work' a certain way, to make development faster/easier - but if you go 'off the rails' against convention, it can quickly get cumbersome and tedious
pel_daniel has left #ruby [#ruby]
<bnagy> just smashed a bowl trying to get good sound out of bluetooth speaker, that was fun
<speakingcode-wor> when you learn the conventions its less daunting, but rails certainly is a big blackbox
soba has joined #ruby
hogeo has joined #ruby
TaxmanBD has joined #ruby
hogeo has quit [Remote host closed the connection]
<Kamuela> speakingcode-wor, i believe that, and i think it makes sense in terms of productivity and stuff, but i still have to wrap my head around the convention the first time, lol
duggiefresh has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
stevenhaddox has joined #ruby
paul_k_ has joined #ruby
d45h has joined #ruby
arcke has quit [Quit: leaving]
jrhe_ has joined #ruby
jrhe has quit [Read error: Connection reset by peer]
jrhe_ is now known as jrhe
sambao21 has quit [Quit: Computer has gone to sleep.]
VTLob has quit [Quit: VTLob]
<speakingcode-wor> Kamuela: i'm the say way, and i actually got some flak at my job when i started my first rails project for not zipping away and wriitng functionality all the sudden
pr0ggie has quit [Read error: Connection reset by peer]
xorgnak has joined #ruby
paul_k has quit [Read error: Operation timed out]
capicue has quit [Quit: Leaving...]
maletor has joined #ruby
asteros has joined #ruby
falood has joined #ruby
paul_k_ has quit [Ping timeout: 246 seconds]
tsykoduk is now known as zz_tsykoduk
pushpak has quit [Quit: Linkinus - http://linkinus.com]
Kricir has joined #ruby
heidi has quit [Quit: Leaving.]
duggiefresh has joined #ruby
jkhwan_ has quit [Remote host closed the connection]
capicue has joined #ruby
jkhwan has joined #ruby
mjs2600 has quit [Remote host closed the connection]
hogeo has joined #ruby
lmickh has quit [Quit: lmickh]
Jetchisel has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
<Kamuela> speakingcode-wor, i keep trying to be able to just ignore the logic behind things and use them blindly... too difficult and against the way i'm designed
<shevy> hey Kamuela
jkhwan has quit [Read error: Connection reset by peer]
<shevy> looks as if you are a resident #ruby idler now
jkhwan has joined #ruby
<Kamuela> saying that is going to get me hurt
<shevy> haha
<Kamuela> i really wish you'd take it back, publicly
<shevy> now that you are no longer a newbie
<shevy> we are going to test your weekly new knowledge
<shevy> Kamuela, what did you learn new in the last 7 days in regards to the language ruby?
burlyscudd has quit [Quit: Leaving.]
<xorgnak> punctuation and grammar count.
<xorgnak> 500 words
stringoO has quit [Quit: stringoO]
raphaelivan has quit [Ping timeout: 246 seconds]
<Kamuela> that's a terrible question
hogeo has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
kitak_ has joined #ruby
macmartine has quit [Remote host closed the connection]
jrhe has quit [Read error: Connection reset by peer]
<shevy> ok
jrhe has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
ehaliewicz has quit [Ping timeout: 248 seconds]
lfox has joined #ruby
hadees has joined #ruby
<shevy> Kamuela, name one thing that you did write the last 7 days in regards to ruby code
predator117 has joined #ruby
<Kamuela> shevy, sample stuff, began an irc bot with galeforce, endlessly trying to understand rails
kitak has quit [Ping timeout: 246 seconds]
<shevy> IRC bot! Yay!
einarj has quit [Ping timeout: 246 seconds]
<shevy> that's how I started with ruby
<xorgnak> me too
amigo99 has joined #ruby
<Kamuela> Galeforce can invite you to the nitrious io and you can tandem code
blackmesa has quit [Ping timeout: 240 seconds]
predator217 has quit [Ping timeout: 264 seconds]
jerius has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
jerius has joined #ruby
hadees has quit [Quit: hadees]
sparrovv has quit [Quit: sparrovv]
<Galeforce> workin on the bot now..
johnjohnson has joined #ruby
Guest40120 has quit [Read error: Connection reset by peer]
pragmatism has joined #ruby
fgo has quit [Remote host closed the connection]
dukedave has quit [Ping timeout: 248 seconds]
robustus has quit [Ping timeout: 245 seconds]
Dan_ has joined #ruby
Dan_ is now known as Guest52278
codeFiend has joined #ruby
thekkid has quit [Ping timeout: 272 seconds]
jerius has quit [Ping timeout: 272 seconds]
nobitanobi has joined #ruby
paul_k has joined #ruby
robustus has joined #ruby
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
fgo has joined #ruby
neverwearcondoms has joined #ruby
<neverwearcondoms> What is the difference between declarations and directives in C++? For example: using namespace std; and using std::cout;
pragmatism has quit [Ping timeout: 248 seconds]
tharindu has quit [Ping timeout: 252 seconds]
Guest52278 has quit [Read error: Connection reset by peer]
pragmatism has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
myappleguy has joined #ruby
tylersmith has quit [Remote host closed the connection]
paul_k has quit [Ping timeout: 272 seconds]
TaxmanBD has quit [Read error: Operation timed out]
mansi has quit [Remote host closed the connection]
heidi has joined #ruby
baroquebobcat has joined #ruby
mansi has joined #ruby
<nobitanobi> neverwearcondoms, what about asking in #c++?
<neverwearcondoms> nobitanobi: i can't join c++ for some reason
Kricir_ has joined #ruby
kofno has joined #ruby
<nobitanobi> what does it say?
<neverwearcondoms> i'm the only person there
<nobitanobi> ??
Kricir has quit [Read error: Connection reset by peer]
<neverwearcondoms> join #c++ and see for yourself :P
<nobitanobi> Yes, I see ~480 users there?
<Kamuela> ##c++
<Kamuela> two pounds
<Kamuela> also, you may have to be a registered user
kevind has quit [Quit: kevind]
mansi has quit [Read error: Connection reset by peer]
<neverwearcondoms> oh, thanks
mansi has joined #ruby
bradhe_ has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
bradhe has joined #ruby
apeiros_ has joined #ruby
<shevy> hehe
Cork has quit [Ping timeout: 252 seconds]
sergicles has quit [Ping timeout: 246 seconds]
sergicles_ has joined #ruby
baroquebobcat has quit [Ping timeout: 245 seconds]
apeiros has quit [Read error: Connection reset by peer]
<Galeforce> this is stupid
<Galeforce> but i forgot how to add stuff into a hash
kofno has quit [Ping timeout: 245 seconds]
jerius has joined #ruby
amoli has quit [Ping timeout: 245 seconds]
capicue has quit [Read error: Connection reset by peer]
capicue has joined #ruby
hogeo has joined #ruby
benwoody has quit [Quit: benwoody]
tkuchiki has joined #ruby
<bnagy> ruby-doc.org
<bnagy> ri Hash
<bnagy> Hash.methods
<neverwearcondoms> thanks everyone!
<bnagy> uh Hash.instance_methods ;)
fgo has quit [Remote host closed the connection]
CaptainJet has quit []
spoonman has joined #ruby
Cork has joined #ruby
maletor has joined #ruby
<Kamuela> does IRC tend to represent active people in the Rails community
ssvo_ has quit [Ping timeout: 272 seconds]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
d45h has quit []
<bricker> Kamuela: Anybody using Rails is active in the Rails community, so I would say "yes"
<bricker> Kamuela: if you mean the Rails Core developers, generally not
<bricker> I mean
<Kamuela> bricker, i'm following that path btw thank you trying to see what i can gather
<xorgnak> Kamuela: IRC is certainly a good way to get help, if that's what you're looking for.
saarinen has quit [Quit: saarinen]
jhamon has quit [Quit: jhamon]
kofno has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
fgo has joined #ruby
kiba` has joined #ruby
kiba has quit [Remote host closed the connection]
lmickh has joined #ruby
jeffdb has joined #ruby
mikepack has joined #ruby
brian___ has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
xorgnak___ has quit [Remote host closed the connection]
xorgnak has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
bradhe has quit [Read error: Connection reset by peer]
<shevy> Galeforce just assign a new key. hash['cat'] = 'Tom', hash['mouse'] = 'Jerry'
kofno has joined #ruby
bradhe has joined #ruby
<shevy> Kamuela important people tend to not have time for IRC
<shevy> figure who is using IRC... ;-)
<Kamuela> lol, i might have to never come back then
<Galeforce> shevy how do i add a new key from user input?
<Galeforce> i cant figure it out
<shevy> Galeforce I do not understand the question
<shevy> what does not work here:
<shevy> hash[user_input] = new_value
<shevy> tell me
<Galeforce> umm
<shevy> you need two things: a key and a value
<Galeforce> i put
<shevy> typically user input is one key alone
<shevy> (one input)
axl_ has quit [Quit: axl_]
<Galeforce> links = Hash.new
<Galeforce> links[:nick] = m.user.nick
<Galeforce> links[:link] = :message
<shevy> ok so links is a hash
<Galeforce> yes
<shevy> and you set two keys, one called the symbol nick, the other key called the symbol link
pragmatism has quit [Quit: Leaving...]
<Galeforce> yes
<shevy> where is the user input?
<Galeforce> in :message
<Galeforce> I think
<shevy> no
<shevy> :message is a symbol
<Galeforce> on :message, ".com" do |links|
<shevy> what the heck is that :P
<Galeforce> thats the first line of the bot
<Galeforce> :message is what it uses to get the input from mirc
<shevy> aha
<shevy> no
<shevy> it must call a method called on()
<Galeforce> screenshot of the code im looking at
<shevy> and has two arguments, the first being :message, the second being ".com"
soba has quit [Read error: Connection reset by peer]
sevenseacat has joined #ruby
<shevy> I guess it returns to you a special object
<shevy> Like how m.nick.user (which is a method) contains the name of the user.
raphaelivan has joined #ruby
<Galeforce> ok so :message = object not a string
<shevy> ?
aep has quit [Read error: Operation timed out]
<Galeforce> idunno
moneydouble has quit [Ping timeout: 265 seconds]
<Galeforce> im trying to figure out whats going on lol
TwinkleHood has quit [Read error: Operation timed out]
<shevy> the problem is that you use a library here that you did not write
TwinkleHood has joined #ruby
<Galeforce> yea
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> plain user input can be obtained like this: user_input = gets.chomp
<Galeforce> yea
<shevy> then user_input holds what the user wrote
<shevy> btw
<shevy> in the code below, you use:
<shevy> m.user.nick
<shevy> but where from does m come ?
<Galeforce> and then links[:link] = user_input
<Galeforce> from ur code
<Galeforce> the M
<Galeforce> umm
<shevy> from my code???
<Galeforce> idunno
<shevy> I did not write anything there
<Galeforce> i mean the code u just wrote
<Galeforce> <shevy> plain user input can be obtained like this: user_input = gets.chomp
<Galeforce> to use that in the hash
<Galeforce> links[:link] = user_input
<shevy> nono I mean
<shevy> on the screenshot
<Galeforce> the m i got no clue where it comes from
<shevy> the highlighted part
<shevy> isn't this your code?!?!?!
<Galeforce> no
<shevy> ok
<Galeforce> its a gem
<shevy> my advice
<shevy> throw it away
svennidal has quit [Remote host closed the connection]
<Galeforce> ok
<shevy> start from scratch with your own code
aep has joined #ruby
<Galeforce> ok
<shevy> the thing there is that you used this here:
<shevy> do |links|
<shevy> and then later .... links[:nick] = m.user.nick
<shevy> but in the rest of the code
<shevy> you always use |m|
<shevy> so somehow there must be a logic problem
moneydouble has joined #ruby
jhamon has joined #ruby
Mars` has quit [Remote host closed the connection]
<shevy> besides that |links| is useless anyway
<shevy> as you redefine it the next line:
<shevy> links = Hash.new
<shevy> actually, I suppose if you change |links| to |m| the code might suddenly work :P
<Galeforce> really?
<Galeforce> lol lemme try
Gonzih has quit [Quit: IRC is just multiplayer vim.]
Mars` has joined #ruby
<shevy> but the problem is that you do not understand blocks yet
Voodoofish430 has left #ruby [#ruby]
<Galeforce> ooo
<Galeforce> it did work
<Galeforce> except
<Galeforce> it added :message as the value
<Galeforce> not the actual msg
dnyy has quit []
chomskiii has joined #ruby
<shevy> well, the library must give you some way to snatch the actual message
Kricir_ has quit [Ping timeout: 265 seconds]
bradhe has quit [Read error: Connection reset by peer]
<shevy> I guess on "bla" will do a regex check
<Galeforce> well
<Galeforce> im still gonna delete this bot
<Galeforce> and then read more on blocks
<shevy> hehehe
<shevy> :message is always a symbol
bradhe has joined #ruby
<shevy> I guess what instead would have to be used is m.(insert name of method here)
codeFiend has left #ruby [#ruby]
<shevy> m.reply is probably a way to write to a channel
<Galeforce> it doesnt seem like a smart move to learn all the code of the bot
<Galeforce> instead of makign my own
jhamon has quit [Client Quit]
jerius has quit [Quit: Computer has gone to sleep.]
<shevy> yeah
<Kamuela> shevy, i think it's m.message
<shevy> \o/
<Kamuela> because m seems to be the user object
<shevy> I have absolutely no idea, never used that library
Mars` has quit [Ping timeout: 264 seconds]
neverwearcondoms has quit [K-Lined]
<Kamuela> welp, out on my own i go
xorgnak___ has joined #ruby
xorgnak___ has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
Kamuela has quit [Quit: Leaving]
Mars` has joined #ruby
gstamp_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
DonRichie has quit [Ping timeout: 246 seconds]
xorgnak___ has joined #ruby
lmadrigal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
DonRichie has joined #ruby
xorgnak___ has quit [Remote host closed the connection]
gstamp has quit [Ping timeout: 256 seconds]
gstamp_ is now known as gstamp
Mars` has quit [Remote host closed the connection]
danielcharles has quit [Ping timeout: 248 seconds]
Mars` has joined #ruby
TaxmanBD has joined #ruby
jhamon has joined #ruby
xorgnak___ has joined #ruby
xorgnak___ has quit [Remote host closed the connection]
xorgnak___ has joined #ruby
magoo has quit [Ping timeout: 245 seconds]
i_s has quit [Remote host closed the connection]
rickruby has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
Mars` has quit [Ping timeout: 272 seconds]
xorgnak___ has quit [Remote host closed the connection]
marr has quit [Ping timeout: 248 seconds]
asteros has quit [Quit: asteros]
jlast has joined #ruby
5EXAAUJVM has joined #ruby
evenix has joined #ruby
Soliah has quit [Quit: Soliah]
92AAAET3F has joined #ruby
Mars` has joined #ruby
wenshan has joined #ruby
Soliah has joined #ruby
pragmatism has joined #ruby
paul_k has joined #ruby
johnjohnson has quit [Quit: Textual IRC Client: www.textualapp.com]
jlast has quit [Ping timeout: 272 seconds]
typicalbender has joined #ruby
92AAAET3F has quit [Quit: Escuchame todos los Lunes a las 22:30 en http://www.facebook.com/OxidoAire]
Akuma has quit [Ping timeout: 272 seconds]
nari_ has joined #ruby
kobain has quit [Ping timeout: 272 seconds]
jhamon has quit [Quit: jhamon]
CaptainJet has joined #ruby
dhruvasagar has joined #ruby
jeffdb has quit [Quit: jeffdb]
raphaelivan has quit [Quit: Leaving.]
dnyy has joined #ruby
brennanMKE has joined #ruby
paul_k has quit [Ping timeout: 272 seconds]
jerius has joined #ruby
lukec has quit [Quit: lukec]
jlast has joined #ruby
xorgnak has joined #ruby
kobain has joined #ruby
shevy has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
macmartine has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
xorgnak has quit [Remote host closed the connection]
momomomomo has joined #ruby
dhruvasagar has joined #ruby
thegwumpus_ has joined #ruby
thegwumpus_ has quit [Remote host closed the connection]
nobitanobi has joined #ruby
amigo99 has quit [Quit: Leaving]
capicue has quit [Quit: Leaving...]
yfeldblu_ has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
jeffdb has joined #ruby
jeffdb has quit [Client Quit]
Rennex has quit [Ping timeout: 264 seconds]
TaxmanBD has quit [Read error: Operation timed out]
Mars` has quit [Remote host closed the connection]
falood has quit []
Mars` has joined #ruby
aley has quit [Quit: aley]
moted has quit [Quit: moted]
eisenman has joined #ruby
jacobsmith has joined #ruby
thegwumpus_ has joined #ruby
thegwumpus_ has quit [Remote host closed the connection]
mikeric has joined #ruby
phinfonet has quit [Quit: exitiing]
katsrc has joined #ruby
Mars` has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
Rennex has joined #ruby
hogeo has quit [Quit: Leaving...]
jerius has quit [Quit: Computer has gone to sleep.]
capicue has joined #ruby
dagnachew has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
nobitanobi has quit [Ping timeout: 248 seconds]
Akuma has joined #ruby
nobitanobi has joined #ruby
katsrc has quit [Quit: Konversation terminated!]
moted has joined #ruby
tsykoduk is now known as zz_tsykoduk
jlast has quit [Remote host closed the connection]
gstamp has quit [Ping timeout: 256 seconds]
fmcgeough has quit [Quit: fmcgeough]
gstamp has joined #ruby
soba has joined #ruby
mansi has quit [Remote host closed the connection]
asteros has joined #ruby
soba_ has joined #ruby
maletor has joined #ruby
lukec has joined #ruby
soba_ has quit [Read error: Connection reset by peer]
jrhe has quit [Quit: jrhe]
digital-ghost has quit [Remote host closed the connection]
heidi has quit [Quit: Leaving.]
soba has quit [Ping timeout: 272 seconds]
Davey has quit [Ping timeout: 272 seconds]
spoonman has left #ruby ["WeeChat 0.4.0"]
whunt has quit [Quit: Computer has gone to sleep.]
evenix has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 246 seconds]
capicue has quit [Quit: Leaving...]
Davey has joined #ruby
ringaroses has quit [Quit: Leaving]
jkline has joined #ruby
psyl0n has quit [Remote host closed the connection]
mary5030 has joined #ruby
Mars` has joined #ruby
heftig has joined #ruby
bradhe has quit [Remote host closed the connection]
evenix has joined #ruby
bradhe has joined #ruby
danshultz has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
von_ has joined #ruby
5EXAAUJVM has quit [Read error: Connection reset by peer]
mikeric has quit []
s2013 has joined #ruby
MrPot4to has joined #ruby
kobain has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 272 seconds]
ewnd9 has joined #ruby
Hanmac1 has joined #ruby
nobitanobi has quit [Ping timeout: 245 seconds]
hogeo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
nobitanobi has joined #ruby
g0bl1n has quit [Ping timeout: 246 seconds]
Naoe-Kanno has joined #ruby
nazty has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
dagnachew has quit [Quit: Leaving]
nobitanobi has quit [Read error: Connection reset by peer]
SHyx0rmZ has quit [Ping timeout: 272 seconds]
Naoe-Kanno has quit [Ping timeout: 248 seconds]
zz_tsykoduk is now known as tsykoduk
shevy has joined #ruby
IceDragon has quit [Quit: Space~~~]
s2013 has quit [Remote host closed the connection]
bricker has quit [Remote host closed the connection]
Mars` has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Mars` has joined #ruby
Kricir has joined #ruby
paul_k has joined #ruby
nari_ has quit [Ping timeout: 246 seconds]
capicue has joined #ruby
endash_ has joined #ruby
Kabaka has quit [Remote host closed the connection]
Kricir_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
Mars` has quit [Read error: Connection reset by peer]
Kabaka has joined #ruby
Mars`_ has joined #ruby
Zeeo has quit [Ping timeout: 260 seconds]
RealMarc has quit [Ping timeout: 272 seconds]
paul_k has quit [Ping timeout: 272 seconds]
Apane has quit [Ping timeout: 245 seconds]
tonni_ has joined #ruby
pragmatism has quit [Remote host closed the connection]
Kabaka has quit [Remote host closed the connection]
endash_ has quit [Ping timeout: 245 seconds]
reset has quit [Quit: Leaving...]
Kabaka has joined #ruby
reset has joined #ruby
Apane has joined #ruby
asteros has quit [Quit: asteros]
tonni has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
VictorSK has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
kristofers has joined #ruby
VictorSK has quit [Client Quit]
reset has quit [Ping timeout: 246 seconds]
j-allen has joined #ruby
polaco is now known as polaco_zZz
s2013 has joined #ruby
dukz has joined #ruby
mlpinit has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
falood has joined #ruby
bradhe has joined #ruby
rickruby has quit []
mary5030_ has joined #ruby
danshultz has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
nfk has quit [Ping timeout: 248 seconds]
rickruby has joined #ruby
danshultz has joined #ruby
Lewix has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
capicue has quit [Quit: Leaving...]
wallerdev has quit [Quit: wallerdev]
boboism has joined #ruby
wallerdev has joined #ruby
thekkid has joined #ruby
rickruby has quit [Client Quit]
rickruby has joined #ruby
danshultz has quit [Read error: Operation timed out]
Mars`_ has quit [Remote host closed the connection]
<slash_nick> >> options = { :deep => :stuff }; options.merge!(:options => options)
<eval-in> slash_nick => {:deep=>:stuff, :options=>{...}} (https://eval.in/71674)
Mars` has joined #ruby
jlast has joined #ruby
sn0wb1rd has quit [Quit: See ya]
dukz has quit [Remote host closed the connection]
quizme has quit [Quit: Leaving]
btanaka has joined #ruby
smathieu has quit [Remote host closed the connection]
Moike has left #ruby [#ruby]
Mars` has quit [Ping timeout: 252 seconds]
<slash_nick> >> options = { :deep => :stuff }; options.merge!(:options => options.dup) # the value for the :options key is nested infinitely(?) deeply unless I call dup
<eval-in> slash_nick => {:deep=>:stuff, :options=>{:deep=>:stuff}} (https://eval.in/71675)
smathieu has joined #ruby
macmartine has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
<slash_nick> options = { :deep => :stuff }; options.merge!(:options => options.dup.reject({|k| k == :deep)); options # options is... not nil?
cantonic has joined #ruby
<slash_nick> >> options = { :deep => :stuff }; options.merge!(:options => options.dup.reject({|k| k == :deep)); options # options is... not nil?
<eval-in> slash_nick => /tmp/execpad-7f33970367d0/source-7f33970367d0:2: syntax error, unexpected '|', expecting '}' ... (https://eval.in/71676)
<slash_nick> sorry..
smathieu has quit [Ping timeout: 245 seconds]
shevy has quit [Ping timeout: 272 seconds]
<slash_nick> >> options = { :deep => :stuff }; options.merge!(:options => options.dup.reject({|k| k == :deep})); options # options is... not nil?
<eval-in> slash_nick => /tmp/execpad-22f64008b7a8/source-22f64008b7a8:2: syntax error, unexpected '|', expecting '}' ... (https://eval.in/71677)
thelorax123 has quit [Remote host closed the connection]
boboism has quit [Remote host closed the connection]
Vivekananda has joined #ruby
thelorax123 has joined #ruby
<s2013> got a question about lookup times for chaining... is there a difference between chaining and doing each method individually?
ehc has quit [Quit: ehc]
<sevenseacat> if there is it would likely be so small as to be completely irrelevant
<jrobeson> not enough to matter
<s2013> cool. just wondering. thanks
<jrobeson> focus on writing readable code
mercwithamouth has quit [Ping timeout: 248 seconds]
jlast has quit [Remote host closed the connection]
* jrobeson high fives sevenseacat
<s2013> yeah i was just wondering if there is actually any significant difference
mikeric has joined #ruby
macmartine has joined #ruby
Kricir_ has quit [Remote host closed the connection]
sammyo has joined #ruby
hogeo has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
CaptainJet has quit []
dukz has joined #ruby
danielcharles has joined #ruby
myappleguy has quit [Ping timeout: 245 seconds]
zensavona_ has joined #ruby
danman has joined #ruby
Reach has joined #ruby
lfox has joined #ruby
tsykoduk is now known as zz_tsykoduk
sn0wb1rd has joined #ruby
danielcharles has quit [Ping timeout: 246 seconds]
newUser1234 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
vpretzel has quit [Remote host closed the connection]
johnnyfuchs has joined #ruby
vpretzel has joined #ruby
moneydouble1 has joined #ruby
vpretzel has quit [Client Quit]
j-allen has quit [Quit: j-allen]
moneydouble has quit [Ping timeout: 264 seconds]
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
brian___ has quit [Quit: brian___]
Aryasam has joined #ruby
ewnd9 has quit [Ping timeout: 252 seconds]
mary5030 has quit [Ping timeout: 265 seconds]
varfoo has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
estebistec has joined #ruby
ehc has joined #ruby
paul_k has joined #ruby
zeade has joined #ruby
zeade1 has joined #ruby
capicue has joined #ruby
shevy has joined #ruby
dukz has quit [Remote host closed the connection]
yfeldblum has joined #ruby
krainboltgreene has joined #ruby
kaldrenon has joined #ruby
danman has quit [Ping timeout: 264 seconds]
zeade has quit [Ping timeout: 252 seconds]
fridim_ has joined #ruby
<shevy> test
<s2013> ERROR
funburn has joined #ruby
macmartine has quit [Remote host closed the connection]
zeade has joined #ruby
paul_k has quit [Ping timeout: 272 seconds]
macmartine has joined #ruby
zeade1 has quit [Ping timeout: 252 seconds]
danman has joined #ruby
h0rrorvacui has quit [Remote host closed the connection]
liamkeily has joined #ruby
soba has joined #ruby
kaldrenon has quit [Ping timeout: 246 seconds]
<shevy> :(
javos has quit [Quit: Leaving...]
liamkeily has quit [Client Quit]
liamkeily has joined #ruby
capicue has quit [Ping timeout: 248 seconds]
noyb has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
zz_tsykoduk is now known as tsykoduk
amritanshu_RnD has joined #ruby
endash_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Soliah has quit [Quit: Soliah]
yfeldblum has joined #ruby
kiba` is now known as kiba
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
duggiefresh has quit [Remote host closed the connection]
Soliah has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Client Quit]
duggiefresh has joined #ruby
moneydouble has joined #ruby
duggiefresh has quit [Remote host closed the connection]
endash_ has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
iliketurtles has joined #ruby
paul_k has joined #ruby
moneydouble1 has quit [Read error: Operation timed out]
kindjal has joined #ruby
hogeo has joined #ruby
iliketurtles has quit [Client Quit]
bradhe has quit [Ping timeout: 240 seconds]
kindjal has quit [Client Quit]
tsykoduk is now known as zz_tsykoduk
Soda has joined #ruby
nari_ has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
sam113101 has quit [Ping timeout: 252 seconds]
ravster has joined #ruby
noyb has quit [Ping timeout: 264 seconds]
gadgetoid has quit [Ping timeout: 260 seconds]
liamkeily has quit [Ping timeout: 246 seconds]
sam113101 has joined #ruby
mlpinit has joined #ruby
noyb has joined #ruby
endash has quit [Quit: endash]
psyl0n has joined #ruby
tkuchiki has quit [Ping timeout: 248 seconds]
jalcine- has joined #ruby
danshultz has joined #ruby
moneydouble has quit [Quit: Leaving.]
brianpWins has joined #ruby
nari_ has quit [Ping timeout: 272 seconds]
psyl0n has quit [Ping timeout: 245 seconds]
brianpWins has quit [Remote host closed the connection]
aspires has quit []
brianpWins has joined #ruby
moneydouble has joined #ruby
noyb has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
mlpinit has quit [Ping timeout: 265 seconds]
danshultz has quit [Ping timeout: 246 seconds]
Mars` has joined #ruby
myappleguy has joined #ruby
<shevy> is ruby better than smalltalk?
capicue has joined #ruby
kevind has joined #ruby
kevind has quit [Client Quit]
Mars` has quit [Ping timeout: 240 seconds]
dukz has joined #ruby
coolcode has joined #ruby
tkuchiki has joined #ruby
wenshan has quit [Ping timeout: 272 seconds]
<poutine> How do you feel Ruby compares to say, ISO-8859-1?
danman has quit [Quit: danman]
hogeo has quit [Ping timeout: 272 seconds]
tharindu has joined #ruby
gadgetoid has joined #ruby
dtateii has joined #ruby
lfox has quit [Quit: ZZZzzz…]
fijimunkii has joined #ruby
MrPot4to has quit [Remote host closed the connection]
hogeo has joined #ruby
Kricir has joined #ruby
rezzack has quit [Ping timeout: 246 seconds]
_maes_ has joined #ruby
coolcode has quit []
asteros has joined #ruby
macmarti_ has joined #ruby
dtateii has left #ruby [#ruby]
jalcine- is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
fijimunkii has quit [Remote host closed the connection]
macmartine has quit [Ping timeout: 272 seconds]
fijimunkii has joined #ruby
MrPot4to has joined #ruby
hogeo_ has joined #ruby
hogeo has quit [Ping timeout: 246 seconds]
Kricir has quit [Ping timeout: 272 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
HansonE has joined #ruby
sammyo has quit [Ping timeout: 260 seconds]
<slash_nick> I have to ask in here... Is no one else weired out by `options = { :deep => :stuff }; options.merge!(:options => options)` ?... frankly I wouldn't expect that to nest values for :options infinitely deeply
<slash_nick> weirded*
HansonE has quit [Quit: HansonE]
bluOxigen has joined #ruby
<shevy> poutine I love both Ruby and ISO-8859-1
atno has joined #ruby
iliketurtles has joined #ruby
paul_k_ has joined #ruby
fumduq has joined #ruby
dukz has quit [Remote host closed the connection]
ehc has quit [Quit: ehc]
<slash_nick> >> options = { :deep => :stuff }; options.merge!(:options => options); options[:options][:options][:options][:options][:options]
<eval-in> slash_nick => {:deep=>:stuff, :options=>{...}} (https://eval.in/71681)
mikeric has quit []
<slash_nick> i mean.. seriously.
dukz has joined #ruby
tonni has joined #ruby
noop has joined #ruby
tonni_ has quit [Read error: Connection reset by peer]
fijimunkii has quit [Ping timeout: 245 seconds]
paul_k_ has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby
myappleguy has quit [Ping timeout: 264 seconds]
sputnik13 has joined #ruby
nari_ has joined #ruby
jlast has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
d2dchat has quit [Remote host closed the connection]
nobitanobi has joined #ruby
mikeric has joined #ruby
<bnagy> why is that weird?
<bnagy> what's cool is that it doesn't stack overflow
<bnagy> used to :/
dhruvasagar has joined #ruby
macmarti_ has quit [Read error: Connection reset by peer]
Aryasam has quit [Ping timeout: 246 seconds]
IceColdMax has joined #ruby
macmartine has joined #ruby
phansch has joined #ruby
<nobitanobi> hello!
paul_k has quit [Ping timeout: 264 seconds]
<phansch> morning!
mauro has joined #ruby
Hanmac has joined #ruby
<nobitanobi> morning? dayum
macmartine has quit [Read error: Connection reset by peer]
chomskiii has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
estebistec has quit [Remote host closed the connection]
Paradigm__ has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
lukec has quit [Quit: lukec]
jlast has quit [Ping timeout: 265 seconds]
estebistec has joined #ruby
Paradigm_ has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
ravster has quit [Quit: Leaving.]
TaxmanBD has joined #ruby
aspires has joined #ruby
noyb has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
kristofers has quit [Remote host closed the connection]
mauro has quit [Remote host closed the connection]
Aryasam has joined #ruby
estebistec has quit [Remote host closed the connection]
macmartine has quit [Remote host closed the connection]
estebistec has joined #ruby
jonahR has joined #ruby
<slash_nick> bnagy: it's weird because i don't know what's going on :)... it used to overflow, huh? very cool that it doesn't
jhamon has joined #ruby
justsee has joined #ruby
justsee has left #ruby [#ruby]
estebistec has quit [Read error: Operation timed out]
<bnagy> slash_nick: it has detected a looped hash ref and figured it out for you - hence ...
smathieu has joined #ruby
TaxmanBD has quit [Ping timeout: 246 seconds]
<bnagy> but you're free to follow it as many times as you like
krainboltgreene has quit []
mlpinit has joined #ruby
<slash_nick> `options = { :deep => :stuff }; options.merge!(:options => options.dup)` <-- i expected something more like the result of this one
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
dzhulk has joined #ruby
s2013 has quit [Quit: Leaving]
johnnyfuchs has quit [Quit: Leaving.]
yacks has quit [Ping timeout: 246 seconds]
iajrz has quit [Quit: Page closed]
thekkid has quit [Read error: Operation timed out]
mlpinit has quit [Ping timeout: 252 seconds]
ananthakumaran1 has joined #ruby
salmonax has quit []
dzhulk has quit [Client Quit]
<slash_nick> bnagy: I guess the sort of info i'm looking for is what prevents the SO... i'm reading (http://rxr.whitequark.org/mri/source/hash.c#1999), maybe after looking at it for a few weeks i'll understand
bradhe has quit [Ping timeout: 272 seconds]
ananthakumaran has quit [Ping timeout: 264 seconds]
dzhulk has joined #ruby
smathieu has quit [Ping timeout: 272 seconds]
thumpba_ has joined #ruby
ananthakumaran1 has quit [Client Quit]
<nobitanobi> Where can I read about how to pass parameters in URLs?
<nobitanobi> ~
<nobitanobi> where are the standards of this?
pwh has quit [Ping timeout: 265 seconds]
<slash_nick> google "query string"
johnnyfuchs has joined #ruby
dzhulk has quit [Client Quit]
S0da has joined #ruby
johnnyfuchs has left #ruby [#ruby]
pwh has joined #ruby
Soda has quit [Ping timeout: 272 seconds]
macmartine has joined #ruby
thumpba_ has quit [Ping timeout: 246 seconds]
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
codeFiend has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
<shevy> google "big boobs"
<nobitanobi> I am working with an API and they just use 3 different ways of adding the parameters to the URL
<nobitanobi> I was just trying to figure out method names :P
<nobitanobi> build_custom_url // build_standard_url
stetho has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
machi has quit [Ping timeout: 245 seconds]
macmartine has joined #ruby
vlad_starkov has joined #ruby
krz has joined #ruby
bradhe has joined #ruby
MrPot4to has quit [Remote host closed the connection]
iliketurtles has joined #ruby
zeade has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
jhamon has quit [Quit: jhamon]
jkhwan has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
jkhwan has joined #ruby
mikepack has joined #ruby
asteros has quit [Quit: asteros]
pika_pika__ has joined #ruby
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
jhamon has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
pika_pika_ has quit [Ping timeout: 272 seconds]
Seventoes has quit [Quit: Leaving]
ananthakumaran has joined #ruby
mikepack has quit [Ping timeout: 248 seconds]
Seventoes has joined #ruby
zz_tsykoduk is now known as tsykoduk
thumpba_ has joined #ruby
Seventoes has left #ruby [#ruby]
vlad_starkov has joined #ruby
noyb has quit [Ping timeout: 252 seconds]
noop has quit [Read error: Connection reset by peer]
noop has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
i_s has joined #ruby
dukz_ has joined #ruby
<Galeforce> sevenseacat !
<sevenseacat> howdy.
<Galeforce> what you up 2?
psyl0n has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
psyl0n has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
jlast has joined #ruby
<sevenseacat> working
tkuchiki has quit [Ping timeout: 245 seconds]
<Galeforce> you work remote or @ office?
dzhulk has joined #ruby
dukz has quit [Ping timeout: 240 seconds]
i_s has quit [Ping timeout: 246 seconds]
osvico has joined #ruby
thumpba_ has quit [Remote host closed the connection]
<sevenseacat> at an office
myappleguy has joined #ruby
Apane has quit [Ping timeout: 272 seconds]
brianpWins has quit [Quit: brianpWins]
Jetchisel has quit [Ping timeout: 260 seconds]
zipper has joined #ruby
myappleguy has quit [Ping timeout: 272 seconds]
jlast has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
bradhe has quit [Remote host closed the connection]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
apeiros_ has quit [Read error: Connection reset by peer]
popl has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
btanaka has quit [Quit: leaving]
<zipper> Could someone help me with the following failing code? I tried asking yesterday but I was told that I have not clearly understood instance variables and methods. I read on them but I still cannot see what I did wrong. Here is the code: https://gist.github.com/urbanslug/7572219
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
Jetchisel has joined #ruby
TaxmanBD has joined #ruby
<sevenseacat> zipper: your code and test are littered with typos
<sevenseacat> i suggest fixing them first
<zipper> sevenseacat: in the constructor. Thanks.
<sevenseacat> also, writing a test that will pass tomorrow and fail tomorrow is a bit silly
<sevenseacat> *pass today
<zipper> I'm am bad with with american english which is what most languages use. I wonder why.
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
macmartine has quit [Remote host closed the connection]
pranny has joined #ruby
mlpinit has joined #ruby
<zipper> sevenseacat: Thanks the issue actually was a typo in initialize. I didn't expect that to be the issue.
newUser1234 has quit [Ping timeout: 264 seconds]
<zipper> sevenseacat: about the test though. How would you suggest I fix that? I am thinking a regex.
vlad_starkov has quit [Remote host closed the connection]
<sevenseacat> zipper: i would freeze the time with timecop for a time-dependent test
<existensil> zipper: BeautifulDates != BeautfulDates
hogeo_ has quit [Remote host closed the connection]
<sevenseacat> indeed
<sevenseacat> there is many typos
jbhewitt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<zipper> existensil: where did I make that one?
cuppsy has joined #ruby
mlpinit has quit [Ping timeout: 265 seconds]
hogeo has joined #ruby
thumpba_ has joined #ruby
<existensil> do you really want to subclass Time if you are going to be initializing your own @date_time? weird.
pika_pika__ has quit [Quit: Leaving]
evenix has quit [Remote host closed the connection]
TaxmanBD has quit [Ping timeout: 245 seconds]
<zipper> existensil: sorry I updated the gist last night that was an old link. https://gist.github.com/urbanslug/7572219
<zipper> existensil: I was asked that and I realised that I shouldn't have.
<zipper> sevenseacat: thanks
thumpba_ has quit [Remote host closed the connection]
fijimunkii has joined #ruby
<nobitanobi> night guys
machi has joined #ruby
nobitanobi has left #ruby ["Leaving"]
yfeldblum has quit [Remote host closed the connection]
IceColdMax has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<zipper> now singing: If our looooove is tragedy why are you my remedy?
tkuchiki has quit [Remote host closed the connection]
bricker`LA has joined #ruby
SHyx0rmZ has joined #ruby
noop has quit [Ping timeout: 272 seconds]
mojjojo has joined #ruby
tkuchiki has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
mojjojo has quit [Client Quit]
jacobsmith has quit [Ping timeout: 272 seconds]
asteros has joined #ruby
amacgregor has joined #ruby
tonni has quit [Remote host closed the connection]
javos has joined #ruby
javos has quit [Client Quit]
apeiros has quit [Ping timeout: 248 seconds]
tonni has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
sergicles_ has quit [Quit: sergicles_]
mfmfmfmfmfmf has joined #ruby
Aryasam has joined #ruby
jhamon has quit [Quit: jhamon]
zz_tsykoduk is now known as tsykoduk
brianpWins has joined #ruby
dukz_ has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
mikeric has quit []
rjhunter has quit [Remote host closed the connection]
jhamon has joined #ruby
estebistec has joined #ruby
kevinykchan has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
rjhunter has joined #ruby
amoli has joined #ruby
fijimunkii has quit [Ping timeout: 252 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
paul_k has joined #ruby
fijimunkii has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
estebistec has quit [Remote host closed the connection]
Xeago has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zipper has quit [Ping timeout: 264 seconds]
paul_k has quit [Ping timeout: 246 seconds]
osvico has joined #ruby
zipper has joined #ruby
fijimunkii has quit [Client Quit]
tsykoduk is now known as zz_tsykoduk
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
amoli has quit [Ping timeout: 265 seconds]
Aryasam has quit [Ping timeout: 245 seconds]
axilla has quit [Ping timeout: 240 seconds]
Elhu has joined #ruby
Aryasam has joined #ruby
<zipper> ped
cuppsy has quit [Quit: WeeChat 0.4.1]
sayan has joined #ruby
xcess_denied has joined #ruby
Reach has quit [Remote host closed the connection]
Reach has joined #ruby
jlast has joined #ruby
Reach has quit [Remote host closed the connection]
ewnd9 has joined #ruby
mfmfmfmfmfmf has joined #ruby
cuppsy has joined #ruby
eisenman has quit [Remote host closed the connection]
Reach has joined #ruby
ananthakumaran1 has joined #ruby
Aryasam has quit [Ping timeout: 265 seconds]
jhaals has joined #ruby
srnsky has joined #ruby
yfeldblum has joined #ruby
ananthakumaran has quit [Ping timeout: 272 seconds]
jlast has quit [Ping timeout: 272 seconds]
Mon_Ouie has quit [Ping timeout: 245 seconds]
burgess|vayo has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran1 has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
dhruvasagar has joined #ruby
graydot has joined #ruby
ananthakumaran has joined #ruby
Aryasam has joined #ruby
timonv has joined #ruby
smathieu has joined #ruby
mlpinit has quit [Ping timeout: 246 seconds]
osvico has quit [Ping timeout: 246 seconds]
Aryasam has quit [Ping timeout: 246 seconds]
Aryasam_ has joined #ruby
xybre has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
smathieu has quit [Read error: Operation timed out]
dawkirst has joined #ruby
dhruvasagar has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
tonni has joined #ruby
dagobah has joined #ruby
sandeepk has quit [Quit: Leaving...]
mfmfmfmfmfmf has quit [Remote host closed the connection]
xcess_denied has quit [Quit: Linkinus - http://linkinus.com]
cuppsy has quit [Quit: WeeChat 0.4.1]
_phansch has joined #ruby
<user258467> Which version is recommended 2.0.0 or 1.9.3?
mfmfmfmfmfmf has joined #ruby
akonny has joined #ruby
phansch has quit [Ping timeout: 246 seconds]
<sevenseacat> 2.0
blaxter_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<user258467> ok
echevemaster has quit [Quit: Leaving]
bradhe has joined #ruby
<Galeforce> 2.1.9.3
<Galeforce> i keed
fridim_ has quit [Ping timeout: 272 seconds]
aganov has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Read error: Connection reset by peer]
akonny has quit [Quit: akonny]
dhruvasagar has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
tonni has quit [Ping timeout: 272 seconds]
sheap has joined #ruby
ananthakumaran has joined #ruby
jprovazn has joined #ruby
_phansch has quit [Remote host closed the connection]
Astral_ has joined #ruby
linduxed has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
andikr has joined #ruby
Astralum has quit [Ping timeout: 272 seconds]
tziOm has quit [Read error: Connection reset by peer]
asteros has quit [Quit: asteros]
mfmfmfmfmfmf has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
tonni has joined #ruby
bigkevmcd has quit [Ping timeout: 252 seconds]
Aryasam_ has quit [Ping timeout: 246 seconds]
h_kon has joined #ruby
zoee has joined #ruby
io_syl has quit []
Es0teric has quit [Quit: Computer has gone to sleep.]
Aryasam has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
Weazy_ has quit [Remote host closed the connection]
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
mfmfmfmfmfmf has joined #ruby
Jabberish has quit [Ping timeout: 245 seconds]
capicue has quit [Read error: Connection reset by peer]
asteros has joined #ruby
ananthakumaran has joined #ruby
myappleguy has joined #ruby
yfeldblu_ has joined #ruby
brahman_work has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
drumusician has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
keen___ has joined #ruby
jkhwan has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
keen__ has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
hogeo has joined #ruby
bigkevmcd has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
tyfighter has joined #ruby
dhruvasagar has joined #ruby
linduxed has joined #ruby
myappleguy has quit [Ping timeout: 248 seconds]
wallerdev has quit [Quit: wallerdev]
tagrudev has joined #ruby
tonni has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Ping timeout: 272 seconds]
jkline has joined #ruby
wallerdev has joined #ruby
noname001__ has joined #ruby
srnsky has quit [Remote host closed the connection]
ditch has joined #ruby
relix has joined #ruby
ahawkins has joined #ruby
Aryasam has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
zipper has quit [Ping timeout: 265 seconds]
sayan has quit [Ping timeout: 272 seconds]
funburn has joined #ruby
ananthakumaran has joined #ruby
aspires has quit []
zipper has joined #ruby
lkeijser has joined #ruby
dangerousdave has joined #ruby
brtdv has joined #ruby
mikeric has joined #ruby
amacgregor_ has joined #ruby
d45h has joined #ruby
tonni has joined #ruby
Aryasam has quit [Ping timeout: 272 seconds]
iMe has joined #ruby
phansch has joined #ruby
himsin has joined #ruby
<lkeijser> hi, I'm completely new to ruby(gems) and just found a nice gem that I wanted to install: mctop. I have already installed it on CentOS but on Ubuntu (12.04) I get an error: http://dpaste.com/1476655/
amacgregor has quit [Ping timeout: 245 seconds]
bobbyz has joined #ruby
zipper has quit [Client Quit]
ditch has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bobbyz> If I have a method that takes a block, but I don't want to change 'self' from the caller, is block.call the right approach to use, or is there something different? It seems like instance_eval and instance_exec both change self
io_syl has joined #ruby
<sheap> lkdijser: maybe try installing the package "ruby-dev"?
<sheap> lkeijser: maybe try installing the package "ruby-dev"?
Aryasam has joined #ruby
<sheap> d'oh
amacgregor_ has quit [Ping timeout: 246 seconds]
asteros has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
estrela has joined #ruby
Aryasam has quit [Client Quit]
jhamon has quit [Quit: jhamon]
funburn has quit [Quit: funburn]
<lkeijser> sheap: already installed
asteros has joined #ruby
jhamon has joined #ruby
brtdv has quit []
<rjhunter> lkeijser: take a look through mkmf.log and see if there are any obvious-looking errors in there
marcgg has joined #ruby
<rjhunter> bobbyz: are you seeing a difference between `mymethod { foo }` and `mymethod do ; foo ; end` ?
alup has joined #ruby
vt102 has quit [Ping timeout: 246 seconds]
funburn has joined #ruby
marcgg_ has joined #ruby
liamkeily has joined #ruby
mlpinit has joined #ruby
marcgg has quit [Ping timeout: 252 seconds]
sparrovv has joined #ruby
lyanchih has joined #ruby
Lewix has quit [Remote host closed the connection]
<lkeijser> rjhunter: it complains about not being able to find pcap.h , but it it present (in /usr/include/pcap.h and /usr/include/pcap/pcap.h)
sandeepk has joined #ruby
jkline has quit [Quit: jkline]
<rjhunter> lkeijser: can you gist your mkmf.log ?
xcess_denied has joined #ruby
<rjhunter> it's likely that it's not just looking for the presence of the the file pcap.h but also trying to make sure it works (calling a function in pcap)
<lkeijser> rjhunter: http://dpaste.com/1476686/
phansch has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
<lkeijser> ah gist .. well, this works as well :)
mlpinit has quit [Ping timeout: 272 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
jkline has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
phansch has joined #ruby
<rjhunter> same same
<lkeijser> uh, it's looking at /usr/local/include ?
asteros has quit [Quit: asteros]
<sevenseacat> ruby 1.8 :(
cantonic has quit [Quit: cantonic]
ananthakumaran has joined #ruby
claymore has joined #ruby
<lkeijser> symlinking /usr/include/pcap to /usr/local/include/pcap didn't work :)
amacgregor has joined #ruby
<lkeijser> can't I just modify/supply the --with-pcap-includedir parameter somewhere?
amacgregor_ has joined #ruby
<sevenseacat> yeah. when you call `gem install pcap`
<sevenseacat> gem install pcap -- --with-pcap-whatever=foo
<sevenseacat> i think its -- anyway
jkhwan has quit [Remote host closed the connection]
<lkeijser> invalid option: --with-pcap....etcetc
dhruvasagar has joined #ruby
tyfighter has quit [Quit: tyfighter]
skaflem has joined #ruby
<sevenseacat> eh?
jhamon has quit [Quit: jhamon]
<lkeijser> sevenseacat: I tried "gem install pcap --with-pcap-includedir=/usr/include/pcap" and got that error
<sevenseacat> now add the -- like in the command i gave you
<sevenseacat> it wasnt a typo
bradhe has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
tonni has quit [Read error: Connection reset by peer]
<lkeijser> aaah sorry, missed that
<lkeijser> same error
<rjhunter> lkeijser: echo '#include <pcap.h>' | gcc -v -x c -E -c -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -I/usr/local/include
<rjhunter> it might give you a more helpful error to diagnose
dawkirst has quit [Ping timeout: 245 seconds]
liamkeily has quit [Read error: Operation timed out]
<rjhunter> oh and put a single - at the end as the last parameter
<rjhunter> oops
iliketurtles has quit [Quit: zzzzz…..]
einarj has joined #ruby
cantonic has joined #ruby
<lkeijser> it did gave me a good hint, since both gcc and make weren't installed yet :D
<lkeijser> after installing those, gem install pcap works fine
<rjhunter> there's your problem ;-)
<lkeijser> weird error, but ok
<lkeijser> thanks :)
xybre has joined #ruby
zz_tsykoduk is now known as tsykoduk
intuxicated has joined #ruby
cuppsy has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
xk_id has quit [Quit:
funburn has quit [Quit: funburn]
tewmten is now known as iamtew
obs has joined #ruby
choobie has quit [Ping timeout: 272 seconds]
cuppsy has quit [Quit: WeeChat 0.4.1]
Elhu has joined #ruby
camilasan has joined #ruby
jlast has joined #ruby
tonni has joined #ruby
troessner has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
olistik has joined #ruby
tsykoduk is now known as zz_tsykoduk
dhruvasagar has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
dhruvasagar has joined #ruby
zipper has joined #ruby
jhaals has joined #ruby
dawkirst has joined #ruby
xp_prg has joined #ruby
RealMarc has joined #ruby
<xp_prg> hi all, there appears to be so many ruby tools for building iphone apps with xcode, anyone know how to do that just curious?
<xp_prg> I am a mere mortal :(
nvrch has joined #ruby
Lewix has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
Lewix has joined #ruby
mikepack has joined #ruby
Lewix has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
jhaals has quit [Ping timeout: 272 seconds]
Mars` has joined #ruby
timonv has joined #ruby
choobie has joined #ruby
jhaals has joined #ruby
typicalbender1 has joined #ruby
Lewix has joined #ruby
RealMarc has quit [Quit: ZNC - http://znc.in]
RealMarc has joined #ruby
Deele has joined #ruby
paul_k has joined #ruby
Lewix has quit [Remote host closed the connection]
xk_id has joined #ruby
funburn has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
typicalbender has quit [Ping timeout: 245 seconds]
xk_id has quit [Client Quit]
psyl0n has joined #ruby
tesuji has joined #ruby
io_syl has quit []
paul_k has quit [Ping timeout: 246 seconds]
jonahR has quit [Quit: jonahR]
d45h has quit [Ping timeout: 272 seconds]
nari_ has quit [Ping timeout: 246 seconds]
jgrevich has quit [Quit: jgrevich]
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
sheap has quit [Quit: Lost terminal]
Astral_ has quit [Ping timeout: 265 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
tonni has joined #ruby
ghr has joined #ruby
crus has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Quit: Leaving.]
zoee has joined #ruby
crus has joined #ruby
psyl0n has quit [Remote host closed the connection]
mojjojo has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
marcgg has joined #ruby
psyl0n has joined #ruby
marr has joined #ruby
fgo has quit [Remote host closed the connection]
marcgg_ has quit [Ping timeout: 246 seconds]
mlpinit has joined #ruby
workmad3 has joined #ruby
mojjojo has quit [Quit: mojjojo]
akonny has joined #ruby
ephemerian has joined #ruby
joonty has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
rdark has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
mlpinit has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
dhruvasagar has joined #ruby
bradhe has joined #ruby
<Galeforce> holy sht guys
dhruvasagar has quit [Read error: Connection reset by peer]
<Galeforce> win amp is shutting down dec 20
<Galeforce> that was like my first music player
blackmesa has joined #ruby
<iamtew> damn, end of an era
<Galeforce> crazy
<Galeforce> i even made a skin for it back in the day
ananthakumaran has quit [Read error: Connection reset by peer]
<iamtew> I made several skins
<Galeforce> :*(
Davey has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
timonv has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
reset has joined #ruby
kitak_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
<workmad3> no more winamp? :'(
kitak has joined #ruby
jkline has quit [Quit: jkline]
<Galeforce> :(((((((((((((((
_phansch has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
<workmad3> not that I've used winamp for years...
sergicles has joined #ruby
<Galeforce> yea lol
<Galeforce> i thought it was already dead to be honest haha
<workmad3> well, I had it on my phone a few years back, before I started using spotify :)
<workmad3> it was better than the built-in one
<tobiasvl> it really whipped the llama's ass :'(
<Galeforce> YES!!
<Galeforce> hahahaha
ananthakumaran has quit [Read error: Connection reset by peer]
<Galeforce> before spotify i was pandora
<Galeforce> and idunno what before pandora, maybe youtube
<workmad3> tobiasvl: ok, you just made me ok with winamp shutting down
<Galeforce> and then before that i think i was winamp
<workmad3> tobiasvl: that poor llama's ass has surely been whipped enough now
lkeijser has left #ruby [#ruby]
<tobiasvl> workmad3: laughter is the best medicine
mfmfmfmfmfmf has joined #ruby
phansch has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
Hanmac has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
jkline has joined #ruby
dhruvasagar has joined #ruby
coderhs has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
zipper has quit [Read error: Connection reset by peer]
zipper has joined #ruby
myappleguy has joined #ruby
LiquidInsect has quit [Ping timeout: 246 seconds]
tharindu has joined #ruby
sandeepk has quit [Quit: Leaving...]
zipper has quit [Ping timeout: 248 seconds]
myappleguy has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Read error: Connection reset by peer]
zipper has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
jlast has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
mfmfmfmfmfmf has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
adambeynon has joined #ruby
hiall has quit [Quit: hiall]
fgo has joined #ruby
amacgregor has joined #ruby
dhruvasagar has joined #ruby
xk_id has joined #ruby
Ivo has quit [Quit: WeeChat 0.4.2]
<rdark> I heard PETA was behind the shutdown
gyre007 has joined #ruby
amacgregor__ has joined #ruby
ananthakumaran has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
<tobiasvl> lol
LiquidInsect has joined #ruby
paul_k has joined #ruby
kaldrenon has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 245 seconds]
amacgregor has quit [Ping timeout: 246 seconds]
jkline has quit [Quit: jkline]
mercwithamouth has quit [Ping timeout: 252 seconds]
sandeepk has joined #ruby
yjmsf20 has joined #ruby
stetho has joined #ruby
kaldrenon has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
paul_k has quit [Ping timeout: 272 seconds]
dev1x has quit [Quit: North Korea BEST KOREA]
dev1x has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
lyanchih has quit [Quit: lyanchih]
harrymoreno has joined #ruby
larssmit has joined #ruby
jibi has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
sbos99 has joined #ruby
ananthakumaran has joined #ruby
prahal has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 272 seconds]
moneydouble1 has joined #ruby
jkline has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
mikeric has quit []
jrhe has joined #ruby
mercwithamouth has joined #ruby
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
moneydouble has quit [Ping timeout: 272 seconds]
hogeo has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
aagdbl has joined #ruby
<krz> have a similar question to yesterday. if i have a class called Foo. and methos clicks_count and views_count. i also have a variable: activity = 'views'. how can i dynamically call the method of Foo based on the value of var activity?
<krz> can i still use send for this?
moneydouble1 has quit [Ping timeout: 272 seconds]
Mars` has quit [Remote host closed the connection]
<krz> want to do something like pseudo code: Foo."#{activty}_count"
Mars` has joined #ruby
jrhe has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
<hoelzro> you can use send
jrhe has joined #ruby
<krz> yeap just got it
<hoelzro> but if there aren't a lot of variants, consider just using if/else or case/when
<krz> thanks
mercwithamouth has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby
xcess_denied has quit [Quit: Leaving...]
konrads has joined #ruby
mengu_ has quit [Remote host closed the connection]
Mars` has quit [Ping timeout: 245 seconds]
<krz> i can do Foo.send("#{activity}_count")
dik_dak has joined #ruby
<krz> but lets say i want to do the equivalent of Foo.views_count = 10
<krz> how can i do that with send?
jibi has quit [Read error: Connection reset by peer]
<workmad3> krz: .send(:views_count=, 10)
<krz> oh
<workmad3> krz: 'Foo.views_count = 10' is just syntax sugar in ruby for 'Foo.views_count=(10)' ;)
dik_dak has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
bradhe has joined #ruby
Criztian has joined #ruby
mlpinit has joined #ruby
jibi has joined #ruby
<krz> workmad3: how would i do it with the context of: Foo.send("#{activity}_count")
camilasan has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
<workmad3> krz: exactly the same way
camilasan has joined #ruby
<krz> ah
camilasan has quit [Read error: Connection reset by peer]
<krz> got it
<workmad3> krz: just remember that the method is called whatever_count=
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<krz> thanks
<krz> yea also put a symbol before the string
<krz> : i mean
<workmad3> krz: you don't need to do that bit ;)
<workmad3> krz: .send can take either symbol or string as the method name
<krz> @foo.send(:"#{a}_count=", 12)
bradhe has quit [Ping timeout: 245 seconds]
Gonzih has joined #ruby
Gonzih has quit [Read error: Connection reset by peer]
<krz> you are right, thanks workmad3
Gonzih has joined #ruby
mlpinit has quit [Ping timeout: 246 seconds]
smathieu has joined #ruby
<Hanmac> krz: you dont need the : ... send works with strings too
<workmad3> Hanmac: it's like there's an echo in here :P
<workmad3> Hanmac: thunder thief :P
brennanMKE has joined #ruby
prahal has joined #ruby
jkline has quit [Quit: jkline]
camilasan has joined #ruby
<Hanmac> i am a failure as an echo, i speak before the original one does ;P
camilasan has quit [Read error: Connection reset by peer]
sandeepk has quit [Quit: Leaving...]
SnatchFrigate has quit []
camilasan has joined #ruby
guiocavalcanti has joined #ruby
Vivekananda has quit [Read error: No route to host]
xk_id has quit [Quit:
guiocavalcanti has quit [Remote host closed the connection]
stetho has joined #ruby
guiocavalcanti has joined #ruby
<workmad3> Hanmac: this time you were echoy ;)
smathieu has quit [Ping timeout: 272 seconds]
_phansch is now known as phansch
<Hanmac> one important thing is that send without symbol does not create one if the method does not exist
ldnunes has joined #ruby
h_kon has quit [Remote host closed the connection]
<workmad3> Hanmac: that's useful to know :)
<workmad3> Hanmac: err... wait a sec... doesn't method_missing end up with the method name as a symbol no matter what?
tsykoduk is now known as zz_tsykoduk
<workmad3> >> def method_missing(*args); p args.first; end; send("foooo")
<eval-in> workmad3 => :foooo ... (https://eval.in/71891)
<workmad3> Hanmac: ^^ explain? :P
akonny has joined #ruby
<Hanmac> workmad3:
<Hanmac> >> Object.new.send("bla") rescue nil; Symbol.all_symbols.grep(/bla/)
<eval-in> Hanmac => [] (https://eval.in/71892)
<Hanmac> >> Object.new.bla rescue nil; Symbol.all_symbols.grep(/bla/)
<eval-in> Hanmac => [:bla] (https://eval.in/71893)
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<workmad3> Hanmac: ok... so weird magic going on?
MrPot4to has joined #ruby
<Hanmac> yeah it seems its some kind of evil witchcraft what send can do ;P
<Hanmac> i think it was made to prevent the Symbol-Pool from poluting
mercwithamouth has joined #ruby
sepp2k has joined #ruby
<workmad3> Hanmac: ok, this is weird....
<workmad3> >> def method_missing(*args); p args.first; end; send("fooo"); Symbol.all_symbols.grep(/fooo/)
<eval-in> workmad3 => :fooo ... (https://eval.in/71894)
falood has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 246 seconds]
<workmad3> where did the :fooo symbol go!!!!
<Hanmac> >> o=Object.new; def o.method_missing(*);end;o.send("bla") rescue nil; Symbol.all_symbols.grep(/bla/)
<eval-in> Hanmac => [:bla] (https://eval.in/71895)
falood has joined #ruby
falood has quit [Remote host closed the connection]
<workmad3> Hanmac: ok... wtf?
<Hanmac> it seems it makes a difference if you define method_missing or not ;P (compare my 1st line with 3rd one)
tkuchiki has quit [Remote host closed the connection]
<workmad3> Hanmac: I am defining method_missing....
cantonic has quit [Quit: cantonic]
S0da has quit [Read error: Connection reset by peer]
olistik has quit [Ping timeout: 264 seconds]
<Hanmac> yeah, if you do not, send creates no symbol, if you do send/method_missing makes one
sparrovv has quit [Quit: sparrovv]
<workmad3> Hanmac: see my previous example
lyanchih has joined #ruby
<workmad3> Hanmac: where I define a method missing, it's visible inside there, but after the method, it's gone
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
<workmad3> >> def method_missing(*args); p args.first; end; send("fooo"); p "Symbol_matchs: #{Symbol.all_symbols.grep(/fooo/)}"
<eval-in> workmad3 => :fooo ... (https://eval.in/71896)
<workmad3> hmm... ok
<workmad3> that's different to the behaviour I get in IRB
dhruvasagar has joined #ruby
<Hanmac> in my irb i also get "Symbol_matchs: [:fooo]"
ananthakumaran has joined #ruby
<workmad3> Hanmac: in mine, I get nothing
<workmad3> ah, ok... I had somehow ended up on system ruby (1.8.7 still)
<workmad3> so 1.8.7 didn't do magic with the symbols there :)
<workmad3> *did do
<Hanmac> be happy that 1.8 already had symbols ,P
mengu_ has joined #ruby
<workmad3> :)
drumusician has quit [Ping timeout: 248 seconds]
harrymoreno has quit [Quit: harrymoreno]
akonny has quit [Quit: akonny]
psyl0n has quit [Remote host closed the connection]
mfmfmfmfmfmf has joined #ruby
shaunbaker has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
dhruvasagar has quit [Read error: Connection reset by peer]
himsin has quit [Quit: himsin]
ananthakumaran has quit [Read error: Connection reset by peer]
jlast has joined #ruby
OdNairy has joined #ruby
hiall has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
ananthakumaran has joined #ruby
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gonzih_ has joined #ruby
eka has joined #ruby
mfmfmfmfmfmf has joined #ruby
paul_k has joined #ruby
tkuchiki has joined #ruby
cantonic has joined #ruby
Gonzih_ has quit [Client Quit]
molawson has joined #ruby
Gonzih_ has joined #ruby
Gonzih has quit [Quit: IRC is just multiplayer vim.]
Gonzih_ has quit [Client Quit]
mfmfmfmfmfmf has quit [Remote host closed the connection]
Gonzih has joined #ruby
camilasan has quit [Remote host closed the connection]
paul_k has quit [Ping timeout: 272 seconds]
jlast has quit [Ping timeout: 265 seconds]
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
jrhe has quit [Quit: jrhe]
nowthatsamatt has quit [Quit: nowthatsamatt]
stetho has joined #ruby
reset has quit [Quit: Leaving...]
camilasan has joined #ruby
yacks has joined #ruby
fgo has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
andrewvos has left #ruby ["WeeChat 0.3.7"]
akonny has joined #ruby
molawson has left #ruby [#ruby]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
endash has joined #ruby
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
molawson has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
shredding has joined #ruby
cantonic has quit [Quit: cantonic]
endash has quit [Quit: endash]
lkba has joined #ruby
liamkeily has joined #ruby
csgui has joined #ruby
hogeo has quit [Remote host closed the connection]
bradhe has joined #ruby
shaunbaker has quit [Remote host closed the connection]
jrhe has joined #ruby
shaunbaker has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dukz has quit [Remote host closed the connection]
ananthakumaran has quit [Read error: Connection reset by peer]
<prahal> hi . I get the same hash for "discoverer".hash and "sub-setter".hash on arm a9 . I found reverting https://github.com/ruby/ruby/commit/525cb66467ff22a50f2e6bf307924459d38cd592#diff-41728f3441b348d39ebae01b3a5694a0 fixes the issue . Has anyone a arm board at hand to confirm that those two string gives the same hash for other setups ?
jrhe has quit [Client Quit]
dhruvasagar has joined #ruby
dukz has joined #ruby
ananthakumaran has joined #ruby
<prahal> with ruby 1.9.3 , the issue would be in siphash (I restored rb_memhash in string.c and removed it from random.c) . Mind that I suspected an entropy issue but I phasee this option out , a confirm would sort this out
OdNairy has quit []
mojjojo has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
tedstriker has joined #ruby
shaunbaker has quit [Ping timeout: 252 seconds]
OdNairy has joined #ruby
sandeepk has joined #ruby
olistik has joined #ruby
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
dukz has quit [Ping timeout: 245 seconds]
akonny has quit [Quit: akonny]
camilasan has quit [Read error: Connection reset by peer]
mlpinit has joined #ruby
molawson has quit []
Mars` has joined #ruby
molawson has joined #ruby
molawson has quit [Client Quit]
molawson has joined #ruby
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
brahman_work has left #ruby [#ruby]
shredding has quit [Ping timeout: 272 seconds]
camilasa_ has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
mlpinit has quit [Ping timeout: 245 seconds]
smathieu has joined #ruby
burgess|vayo has quit [Quit: ^zzz]
h_kon has joined #ruby
sammyo has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
axilla has joined #ruby
myappleguy has joined #ruby
camilasan has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
soba has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
shtirlic has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
ananthakumaran has joined #ruby
raphaelivan has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
molawson has quit []
sandeepk has quit [Quit: Leaving...]
shaunbaker has joined #ruby
myappleguy has quit [Ping timeout: 265 seconds]
xcess_denied has joined #ruby
sandeepk has joined #ruby
molawson has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
brennanMKE has joined #ruby
<Gonzih> tested on pi with ruby 2.0.0p247. confirmed.
danielcharles has joined #ruby
graydot has quit [Quit: graydot]
molawson has quit [Client Quit]
thelorax123 has quit [Remote host closed the connection]
xk_id has joined #ruby
jrhe has joined #ruby
pranny has quit [Quit: Leaving.]
molawson has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
thelorax123 has joined #ruby
Guedes has left #ruby [#ruby]
jrhe has quit [Client Quit]
zoee has joined #ruby
tvw has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
zeeraw has joined #ruby
aagdbl has quit [Read error: Connection reset by peer]
choobie has quit [Ping timeout: 272 seconds]
aagdbl has joined #ruby
<Gonzih> confirmed on ruby 1.9.3p0 on beaglebone (not black)
ananthakumaran has quit [Read error: Connection reset by peer]
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
froy has quit [Ping timeout: 246 seconds]
tvw has quit [Client Quit]
tvw has joined #ruby
shaunbak_ has joined #ruby
froy has joined #ruby
tharindu has joined #ruby
brennanMKE has quit [Ping timeout: 246 seconds]
shaunbaker has quit [Ping timeout: 240 seconds]
DouweM has joined #ruby
xcess_denied has quit [Quit: Leaving...]
<Hanmac> prahal if it happens for ruby trunk too i would recomend to report it to https://bugs.ruby-lang.org/projects/ruby-trunk/issues
falood has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
mfmfmfmfmfmf has joined #ruby
includex has joined #ruby
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ has joined #ruby
<Gonzih> prahal: will you report this bug?
Asher has quit [Quit: Leaving.]
paul_k has joined #ruby
choobie has joined #ruby
jlast has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
paul_k has quit [Ping timeout: 272 seconds]
noop has joined #ruby
konrads has quit [Read error: Connection reset by peer]
mojjojo has left #ruby [#ruby]
reset has joined #ruby
tk__ has joined #ruby
mojjojo has joined #ruby
froy has quit [Ping timeout: 246 seconds]
codenapper has joined #ruby
DoNcK has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
froy has joined #ruby
DoNcK has quit [Client Quit]
phansch has quit [Quit: Leaving]
danshultz has joined #ruby
pranny has joined #ruby
bradhe has joined #ruby
reset has quit [Read error: Connection reset by peer]
_reset has joined #ruby
zz_tsykoduk is now known as tsykoduk
froy has quit [Ping timeout: 246 seconds]
dzhulk has quit [Quit: Leaving.]
pranny has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 265 seconds]
jrhe has joined #ruby
ewnd9 has joined #ruby
pranny has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jprovazn has quit [Quit: Leaving]
_reset has quit [Ping timeout: 265 seconds]
zarubin has joined #ruby
RaCx has joined #ruby
Kneferilis has quit [Read error: Connection reset by peer]
amacgregor__ has quit [Ping timeout: 246 seconds]
dangerousdave has quit []
mklappstuhl has joined #ruby
funburn has quit [Quit: funburn]
dangerousdave has joined #ruby
Beoran__ has joined #ruby
Beoran_ has quit [Ping timeout: 248 seconds]
tharindu has quit [Quit: Leaving...]
tsykoduk is now known as zz_tsykoduk
mlpinit has joined #ruby
dzhulk has joined #ruby
lyanchih has quit [Ping timeout: 240 seconds]
falood has quit [Remote host closed the connection]
hogeo has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
danshultz has quit [Read error: Connection reset by peer]
falood has joined #ruby
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
Mon_Ouie has joined #ruby
Amnesia has joined #ruby
camilasan has joined #ruby
<Amnesia> question, "Dir.entries('.').each {|ent| if ent !~ /01.ppm/; File.rename(ent, "0#{ent[1].to_i + 1}.ppm"); end }" raises the EBUSY exception, how's that possible?
<Amnesia> Errno::EBUSY: Device or resource busy - (., 01.ppm)
<Amnesia> to be precise
mlpinit has quit [Ping timeout: 272 seconds]
smathieu has joined #ruby
RaCx_ has joined #ruby
pranny has quit [Quit: Leaving.]
hogeo has quit [Ping timeout: 272 seconds]
RaCx has quit [Ping timeout: 252 seconds]
mfmfmfmfmfmf has quit [Remote host closed the connection]
RaCx_ is now known as RaCx
smathieu has quit [Ping timeout: 245 seconds]
amrit_ has joined #ruby
jprovazn has joined #ruby
fgo has joined #ruby
Guest43837 has joined #ruby
danshult_ has joined #ruby
reset has joined #ruby
sammyo has quit [Ping timeout: 260 seconds]
<rjhunter> Amnesia: is this on windows?
Elhu has joined #ruby
EugenA has joined #ruby
decoponio has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
danshult_ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 272 seconds]
danshultz has joined #ruby
sandeepk has quit [Quit: Leaving...]
reset has quit [Ping timeout: 272 seconds]
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
<Amnesia> rjhunter: nope, tux
brian___ has joined #ruby
nari_ has joined #ruby
tk__ has quit [Quit: ばいばい]
danshultz has quit [Remote host closed the connection]
sambao21 has joined #ruby
PPH has quit [Ping timeout: 246 seconds]
danshultz has joined #ruby
Kneferilis has joined #ruby
d45h has joined #ruby
<Amnesia> ah wait, . and .. :)
jibi has quit [Ping timeout: 264 seconds]
<EugenA> i'm not familiar with ruby, just learning capistrano... can you tell me what means "after 'deploy:create_symlink', 'drupal:symlink'"?
mengu_ has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 246 seconds]
brennanMKE has joined #ruby
mfmfmfmfmfmf has joined #ruby
sevenseacat has joined #ruby
konrads has joined #ruby
Guest43837 has quit [Quit: Linkinus - http://linkinus.com]
apeiros has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
mfmfmfmfmfmf has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
liamkeily has quit [Ping timeout: 272 seconds]
brian___ has quit [Quit: brian___]
sandeepk has joined #ruby
sandeepk has quit [Client Quit]
brennanMKE has quit [Ping timeout: 272 seconds]
mikepack has joined #ruby
RaCx has joined #ruby
pedda has joined #ruby
RaCx has quit [Client Quit]
vt102 has joined #ruby
includex has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has quit [Remote host closed the connection]
nari_ has quit [Ping timeout: 245 seconds]
javos has joined #ruby
mjs2600 has joined #ruby
machi has quit [Remote host closed the connection]
paul_k has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
maasha has joined #ruby
csgui has quit [Ping timeout: 250 seconds]
kobain has joined #ruby
<rjhunter> EugenA: that's a "hook" (or was in Capistrano 2). In particular, it hooks the "create_symlink" step of the "deploy" recipe, and tells Capistrano to do something else ("drupal_symlink") after it's finished with the regular "create_symlink" step.
mlpinit has joined #ruby
RaCx has joined #ruby
robonerd has quit [Ping timeout: 246 seconds]
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d45h has quit [Ping timeout: 248 seconds]
robonerd has joined #ruby
Criztian has joined #ruby
zipper has quit [Quit: Lost terminal]
paul_k has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
jlast has joined #ruby
mostlybadfly has joined #ruby
mengu_ has joined #ruby
OdNairy has quit []
osvico has joined #ruby
d45h has joined #ruby
d45h has quit [Client Quit]
Amnesia has left #ruby [#ruby]
bradhe has quit [Ping timeout: 252 seconds]
tharindu has joined #ruby
Asher has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
amrit_ has quit [Quit: Leaving]
amritanshu_RnD has quit [Quit: Leaving]
gr33n7007h has joined #ruby
gr33n7007h has quit [Max SendQ exceeded]
it_tard has joined #ruby
RaCx has joined #ruby
zz_tsykoduk is now known as tsykoduk
shredding has quit [Quit: shredding]
noop has quit [Ping timeout: 245 seconds]
tharindu has quit [Ping timeout: 272 seconds]
sammyo has joined #ruby
mikecmpbll has joined #ruby
psyl0n has joined #ruby
AlSquire has joined #ruby
dhruvasagar has joined #ruby
zipper has joined #ruby
<zipper> I have this issue with chruby it does not set the $GEM_HOME and $GEM_PATH even after reinstalling chruby.
<zipper> Anyone know how I can fix this? I'm on archlinux
Macaveli has joined #ruby
osvico has quit [Ping timeout: 272 seconds]
<zipper> They show up in gem env but not in $GEM_HOME or $GEM_PATH
stevenhaddox has quit [Ping timeout: 246 seconds]
tsykoduk is now known as zz_tsykoduk
cantonic_ has quit [Ping timeout: 252 seconds]
cantonic has joined #ruby
Guedes has joined #ruby
blackmesa has joined #ruby
stringoO has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher1 has joined #ruby
<zipper> postmodern: hey uh can you help me with this chruby issue? chruby isn't picking up $GEM_HOME or $GEM_PATH
yacks has quit [Ping timeout: 245 seconds]
sayan has joined #ruby
it_tard has quit [Quit: yawn]
Harima_Kenji has joined #ruby
stevenhaddox has joined #ruby
Harima_Kenji has quit [Changing host]
Harima_Kenji has joined #ruby
MrPot4to has quit [Remote host closed the connection]
konrads has quit [Ping timeout: 248 seconds]
fgo has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
machi has joined #ruby
<rjhunter> zipper: do you see the paths when you run `chruby-exec myruby -- env` ?
mark_locklear has joined #ruby
jkamenik has joined #ruby
ffranz has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
kiri has quit [Ping timeout: 265 seconds]
Criztian has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
mjs2600 has quit [Remote host closed the connection]
yacks has joined #ruby
<zipper> rjhunter: I think it is fixed.
raphaelivan has quit [Quit: Leaving.]
<zipper> Thanks but one question though.
stetho has joined #ruby
machi_ has joined #ruby
<zipper> When I run `chruby system` then $GEM_HOME it doesn't show the $GEM_HOME
machi has quit [Ping timeout: 272 seconds]
<zipper> but when I run `chruby 1.9.3` it does. Is this what is meant to happen?
kiri has joined #ruby
reset has joined #ruby
<zipper> Also I get this but my gems are still running in irb. << WARNING: You don't have /home/urbanslug/.gem/ruby/2.0.0/bin in your PATH, gem executables will not run. >>
<zipper> Where should gem executables not run in such a case.
burlyscudd has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
|RicharD| has joined #ruby
mfmfmfmfmfmf has joined #ruby
<|RicharD|> hi to all
soulcake has quit [Read error: Connection reset by peer]
<|RicharD|> i'm trying to do a script parser
soulcake has joined #ruby
<|RicharD|> with nokogiri and i want save all data in db with active record
jlebrech has joined #ruby
<|RicharD|> but when i save it, give me an error because the data is already in db…so how i can do the validation that if the name is already on db, it skip the save ?
mklappstuhl has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
sailias has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
reset has quit [Ping timeout: 264 seconds]
akonny has joined #ruby
<Gonzih> |RicharD|: just catch error and carry on
<|RicharD|> and how i can do this ?
<|RicharD|> on the class or when i do save action ?
Davey has joined #ruby
thelorax123 has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 272 seconds]
<Gonzih> begin model.save!; rescue ExceptionClassHere; end
thelorax123 has joined #ruby
F1skr has joined #ruby
kcombs has joined #ruby
joshmyers has joined #ruby
rjhunter has quit [Remote host closed the connection]
kaldrenon has joined #ruby
danshultz has joined #ruby
spider-mario has joined #ruby
<Gonzih> |RicharD|: or you can use model.save which will return false instead of causing error
<joshmyers> hey guys, I have an array of a = [ 1,2,3 ], I want to be able to do a.join(','), but I need to add something to each element of the array ( [9300-9400] ), so it ends up like 1[9300-9400],2[9300-9400]
<joshmyers> whats the best way to do this?
<Gonzih> joshmyers: array.map { |i| "#{i}[9300-9400]" }.join(",")
<|RicharD|> Gonzih: now i'm doing so
<|RicharD|> first test @brand.valid?
gadgetoid has quit [Ping timeout: 260 seconds]
<|RicharD|> and then do the things
<Gonzih> |RicharD|:
<Gonzih> right
ravster has joined #ruby
brennanMKE has joined #ruby
noop has joined #ruby
<joshmyers> Gonzih: great thanks!
Guest15002 has joined #ruby
Guedes has left #ruby ["Saindo"]
blackmesa has quit [Remote host closed the connection]
xk_id has quit [Quit:
blackmesa has joined #ruby
gadgetoid has joined #ruby
brennanMKE has quit [Ping timeout: 246 seconds]
tonni has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
tonni has joined #ruby
d45h has joined #ruby
moneydouble has joined #ruby
Apane has joined #ruby
marcgg_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
jlast has joined #ruby
bradhe has joined #ruby
konrads has joined #ruby
TaxmanBD has joined #ruby
paul_k has joined #ruby
tonni has quit [Ping timeout: 272 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aagdbl has quit [Quit: Leaving.]
coderhs has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
javos has quit [Quit: Leaving...]
estrela has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 265 seconds]
aagdbl has joined #ruby
marcgg has joined #ruby
paul_k has quit [Ping timeout: 272 seconds]
d45h has quit [Ping timeout: 240 seconds]
falood has quit [Remote host closed the connection]
pixelgremlins has joined #ruby
javos has joined #ruby
tesuji has quit [Ping timeout: 272 seconds]
johnjohnson has joined #ruby
tharindu has joined #ruby
aagdbl has quit [Client Quit]
brennanMKE has joined #ruby
<juo> when did the new website go live
vpretzel has joined #ruby
claymore has quit [Quit: Leaving]
marcgg_ has quit [Ping timeout: 272 seconds]
zz_tsykoduk is now known as tsykoduk
<DouweM> ooh, looks nice
<joonty> it really does
mjs2600 has joined #ruby
nucatus has joined #ruby
nowthatsamatt has joined #ruby
javos has quit [Ping timeout: 245 seconds]
nwertman has quit [Ping timeout: 246 seconds]
ExCa|iBuR has joined #ruby
mojjojo has quit [Quit: mojjojo]
vlad_starkov has joined #ruby
<DouweM> some more examples on the frontpage would be nice. The Array#- one is neat, but I'd like it to showcase more than just operator overloading
<sevenseacat> whoa, it did
iamjarvo has joined #ruby
zipper has quit [Quit: Lost terminal]
tonni has joined #ruby
hersha has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
elux has joined #ruby
zeeraw has joined #ruby
blaxter_ has quit [Quit: foo]
Davey has quit [Quit: Computer has gone to sleep.]
elux has quit [Client Quit]
F1skr has quit [Quit: WeeChat 0.4.2]
amacgregor has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
tsykoduk is now known as zz_tsykoduk
h_kon has quit [Remote host closed the connection]
cburyta has quit [Remote host closed the connection]
jalcine is now known as this
this is now known as jalcine
h_kon has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
Lewix has joined #ruby
Davey has joined #ruby
<maasha> I have been playing with an idea for a pipeline approach to analyze data a bit like using the Unix command line. Sanity check? -> https://gist.github.com/maasha/37ece6b3ecb3e78acecf
lfox has joined #ruby
hamakn has quit [Remote host closed the connection]
marcgg_ has joined #ruby
h_kon has quit [Ping timeout: 252 seconds]
hamakn has joined #ruby
mmitchell has joined #ruby
<maasha> Implementing this OTOH is a tough one.
Harima_Kenji has quit [Ping timeout: 245 seconds]
<workmad3> maasha: I don't see how you can implement that...
<workmad3> maasha: l19 looks like you're gonna break various ruby semantics :P
<workmad3> maasha: or you're gonna have to special-case certain commands and change the return behaviour (which I doubt you'd want to do)
mgolisch has quit [Quit: No Ping reply in 180 seconds.]
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcgg has quit [Ping timeout: 246 seconds]
drumusician has joined #ruby
<maasha> workmad3: so sanity check fail?
ShinySides has joined #ruby
<workmad3> maasha: for that particular interface, yes
<maasha> workmad3: I would think for a user in irb this would be very powerful
hamakn has quit [Ping timeout: 264 seconds]
fuhgeddaboudit has joined #ruby
<maasha> workmad3: considering that it is meant for tools for bio science analysis and not just cut, grep, sort etc.
<workmad3> maasha: it looks like a kinda clunky interface anyway, tbh :)
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
nomenkun has joined #ruby
<workmad3> maasha: I'd be tempted with an interface like 'pipeline = cmd(:cat, input: "foo.txt") | cmd(:wc, output: $stdout)'
<maasha> workmad3: clunky? I was thinking that it was very smooth :o) - but if you have better ideas, please!
<workmad3> maasha: no chaining
mlpinit_ has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
<workmad3> maasha: and because your .add command mutates the pipeline, it means you can't easily 'split' the pipeline with say 'p = cmd(:cat) | cmd(:awk
<workmad3> bah, try again
zoee has joined #ruby
mgolisch has joined #ruby
<workmad3> p = cmd(:cat) | cmd(:awk); p1 = p | cmd(:grep); p2 = cmd(:sed)
mlpinit has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
<maasha> workmad3: I am pretty interested in being able to split a pipe into multiple parts at pivotal steps like grep.
lukec has joined #ruby
<maasha> *multiple pipes - or subpipes
<maasha> workmad3: so whey you write | its a custom method?
<maasha> workmad3: ala unix pipe
sandeepk has joined #ruby
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
zoee has quit [Client Quit]
ananthakumaran has joined #ruby
<maasha> workmad3: also, I really need to be able to read in data from multiple sources (each in its own format) before continued processing.
<waxjar> | is a method
smathieu has quit [Ping timeout: 272 seconds]
mikecmpb_ has joined #ruby
failshell has joined #ruby
reset has joined #ruby
akonny has quit [Quit: akonny]
mikecmpbll has quit [Ping timeout: 245 seconds]
mikecmpb_ is now known as mikecmpbll
stetho has joined #ruby
parduse is now known as Guest95756
parduse has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 272 seconds]
deanrock0_ has quit [Read error: Connection reset by peer]
chavezgu has joined #ruby
Guest95756 has quit [Ping timeout: 272 seconds]
deanrock0_ has joined #ruby
reset has quit [Ping timeout: 260 seconds]
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
guiocavalcanti has quit [Ping timeout: 272 seconds]
chavezgu has quit [Quit: WeeChat 0.4.2]
_maes_ has joined #ruby
zoee has joined #ruby
kindkid7 has joined #ruby
konrads has quit [Ping timeout: 245 seconds]
mlpinit_ has quit [Remote host closed the connection]
mlpinit has joined #ruby
<kindkid7> module Fn1; def foo; puts "foo"; end; module_function :foo; end
<maasha> workmad3: I like your idea. Can you whip up some proof of concept code?
duggiefresh has joined #ruby
<workmad3> maasha: just did ;)
<bahar> hey. i just installed rvm and some rubies, and when i do gem check, i see "bigdecimal-1.2.1.gem has 12 problems" "eventmachine-1.0.3.gem has 22 problems," etc, and all the problems are "extra file" any ideas?
Lewix has quit [Remote host closed the connection]
<SirFunk> Is there a way (like map) to take a hash and grab X property on each value and return a hash that is original_key => new_property ?
<workmad3> maasha: https://gist.github.com/HedtekGa/7582839 (it's on our work account, I forgot I was signed in there)
mary5030 has joined #ruby
deception has joined #ruby
deception has quit [Changing host]
deception has joined #ruby
PPH has joined #ruby
zipper has joined #ruby
<workmad3> maasha: p = cmd(:cat, input: "foo.txt") | cmd(:wc); p1 = p | cmd(:sed); p2 = p | cmd(:awk); p1.call; p2.call
duggiefresh has quit [Read error: Connection reset by peer]
duggiefr_ has joined #ruby
thesheff17 has joined #ruby
maz-dev has joined #ruby
orionstein_away is now known as orionstein
<maasha> workmad3: so no need for lazy evaluation since it is one step. very interesting.
nfisher has joined #ruby
mikepack has joined #ruby
akonny has joined #ruby
<workmad3> maasha: well, it's separated out building and executing
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tharindu_ has joined #ruby
<workmad3> maasha: so first you build, then you call :) and it passes the output from call to the input of the next command
<maasha> workmad3: lemmy see if I can get it to work
akonny has quit [Client Quit]
falood has joined #ruby
<havenwood> SirFunk: Hash[{aim: true}.map { |k, v| [k.to_s, v] }] #=> {"aim"=>true}; #OR; require 'hashy'; {aim: true}.map_key &:to_s #=> {"aim"=>true}
mikepack has quit [Remote host closed the connection]
<workmad3> maasha: just updated it to make the string output I did as the 'call' impl a bit neater :)
<havenwood> SirFunk: Hashy is just a tiny gem that implements proposed #map_key, #map_value, and #map_pair methods.
<SirFunk> havenwood: thanks the first solution works great
tharindu has quit [Ping timeout: 245 seconds]
zipper has quit [Quit: Lost terminal]
jlast has joined #ruby
<olivier_bK> some time my params have " and sometimes '
bradhe has joined #ruby
mark06 has joined #ruby
jhaals has joined #ruby
taion809 is now known as zz_taion809
<olivier_bK> i try to grep File.open("configuration_#{@url_instance}.php", "r").grep(/config\["uid"\'uid'\]/)
<olivier_bK> i try to grep ' and "
<olivier_bK> do you know how i can do that
lmickh has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
relix has quit [Read error: Connection reset by peer]
relix has joined #ruby
sandeepk has quit [Ping timeout: 272 seconds]
<tobiasvl> should work fine like that?
<tobiasvl> olivier_bK: what's the problem?
bklane has joined #ruby
cody-- has joined #ruby
<tobiasvl> (i see you've escaped one ' but not the other)
vlad_starkov has joined #ruby
blaxter_ has joined #ruby
<tobiasvl> >> ["foo'bar", 'foo"bar', 'foobar'].grep(/"|'/)
<eval-in> tobiasvl => ["foo'bar", "foo\"bar"] (https://eval.in/71950)
bluOxigen has quit [Ping timeout: 240 seconds]
lmickh has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
<olivier_bK> tobiasvl, the probleme is sometimes my params have "
<olivier_bK> tobiasvl, and sometimes he have this '
bdnelson has joined #ruby
johnjohnson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guiocavalcanti has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhaals has joined #ruby
<tobiasvl> oh, i understand. you're trying to match either config['uid'] or config["uid"]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kindkid7> Is it possible to make a module-scoped function that starts with an upper-case character? ie - MyModule::MyFunction(blah) https://gist.github.com/kindkid/3f8788cd9133cf72f2ab
xk_id has joined #ruby
paul_k has joined #ruby
<olivier_bK> tobiasvl, yes
<tobiasvl> olivier_bK: your regex matches config["uid"'uid'] :) that's not what you want. you want this: grep(/config\[['"]uid['"]\]/)
jhaals has quit [Client Quit]
<workmad3> maasha: how's it going? following the code ok?
akonny has joined #ruby
allsystemsarego has quit [Quit: Leaving]
sbos99 has quit [Quit: Leaving]
<olivier_bK> tobiasvl, thanks men
<maasha> workmad3: I am breaking it down to see what is going on.
zz_tsykoduk is now known as tsykoduk
tonni has quit [Read error: Connection reset by peer]
<kindkid7> n/m. I just can't use the bare function name to call. I need to add params.
bean has joined #ruby
jhaals has joined #ruby
paul_k has quit [Ping timeout: 248 seconds]
kindjal has joined #ruby
<maasha> workmad3: it looks usable - and fun.
<maasha> workmad3: I need to setup some small tests and through all my requirements at it :o)
thekkid has joined #ruby
<maasha> *throw
<workmad3> maasha: cool :)
<tobiasvl> kindkid7: you need to call it with parentheses because otherwise it will look for the constant
camilasa_ has joined #ruby
camilasan has quit [Read error: No route to host]
johnnyfuchs has joined #ruby
<maasha> workmad3: thanks a lot for this! <schwatzenegger>I'll be back</schwatzenegger>
<olistik> am I the only one that finds the Singleton module a bit uncomfortable?
ehc has joined #ruby
deception has quit [Read error: Connection reset by peer]
benwoody has joined #ruby
axilla has quit [Ping timeout: 246 seconds]
<workmad3> maasha: and you could easily have that as a Pipeline::Cmd base class, and then have 'def cmd(c, *opts); Pipeline::Commands.const_get(c.to_s.capitalize).new(*opts); end' to provide a way to implement various different commands as separate classes rather than a single PipelineCmd class :)
rippa has joined #ruby
<workmad3> olistik: you mean in the way it turns a class into a nice fake-global-var?
<olistik> @workmad3 I'm more concerned about the fact that you can't easily reset it (especially for tests)
deception has joined #ruby
<workmad3> olistik: welcome to the 'joy' of singletons
jragon has joined #ruby
<olistik> ^_^
<workmad3> olistik: btw, I don't think I've *ever* seen a ruby code base that used it :)
theRoUS has joined #ruby
momomomomo has joined #ruby
kindkid7 has quit [Quit: Page closed]
akonny has quit [Quit: akonny]
<olistik> workmad3: I've implemented a module that *tries* to reduce the pain
konrads has joined #ruby
<olistik> I'd like to receive brutal feedback about it
hiyosi has joined #ruby
mojjojo has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
g0bl1n has joined #ruby
<olivier_bK> some one has already use gem colorize ?
nucatus has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nucatus has joined #ruby
evenix has joined #ruby
tsykoduk is now known as zz_tsykoduk
jhaals has joined #ruby
tharindu_ has quit [Quit: Leaving...]
<finnomenon> olivier_bK: I have, but it's quite some time ago
<finnomenon> it's been a while*
lukec has quit [Quit: lukec]
ndngvr` has joined #ruby
guiocavalcanti has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
rrichardsr3 has joined #ruby
rrichardsr3 has quit [Max SendQ exceeded]
ndngvr has quit [Ping timeout: 264 seconds]
<maasha> workmad3: I didn't quite get that last part ...
dhruvasagar has joined #ruby
larssmit has quit [Quit: Leaving.]
<olivier_bK> finnomenon, do you know how can colorize only variable like that
<olivier_bK> hello blue welcome to
<olivier_bK> i would want only blue in blue
<olivier_bK> that's possible ?
kiri has quit [Ping timeout: 245 seconds]
freezey has joined #ruby
<finnomenon> hello #{blue.to_s.blue} ??
banister has joined #ruby
<finnomenon> I have no idea, I'm not an experienced ruby coder at all
CaptainJet has joined #ruby
dzhulk has quit [Quit: Leaving.]
<olivier_bK> euhh okai i say nothing lol...
xcess_denied has joined #ruby
<finnomenon> haha
khushildep has joined #ruby
<finnomenon> just + the strings and .blue the part you want blue
<workmad3> maasha: updated
<shevy> finnomenon when you use #{} like that, they must always be inside "" so like "#{blue}", then .to_s is not needed anymore
<finnomenon> ah
<workmad3> maasha: basically a bit of metaprogramming to build in a way to add new commands :)
deception has quit [Read error: Connection reset by peer]
<maasha> ok
<workmad3> maasha: which lets you pass command-specific options, customise what gets output for different commands, etc
A124 has joined #ruby
<workmad3> maasha: without having a massive, long case statement in Pipeline::Cmd :)
mikesplain has joined #ruby
codeFiend has quit [Quit: codeFiend]
dhruvasagar has quit [Read error: Operation timed out]
<maasha> workmad3: I did have a feeling for a while that Ruby could do this. But its not beginners material :o)
<maasha> well, I am not totally green, but in Ruby there is always more to learn
axl_ has joined #ruby
dhruvasagar has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mojjojo has quit [Quit: mojjojo]
<workmad3> maasha: I'm gonna leave it to you to figure out how to add in nice output redirects ;)
ahawkins_ has joined #ruby
<maasha> workmad3: right. thanks a lot
mojjojo has joined #ruby
sparrovv has joined #ruby
cburyta has joined #ruby
myappleguy has joined #ruby
ahawkins has quit [Ping timeout: 245 seconds]
mikesplain has quit [Ping timeout: 272 seconds]
enebo has joined #ruby
wald0 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wald0> lol, i just readed something fun that i wanted to share here :)
<wald0> there's a package in debian called "unhide", for security, and another one called "unhide.rb", which seems to be a ruby version of the first one
<wald0> description says:
<wald0> > It currently does the does the same checks as "unhide proc" and "unhide sys", while being about 10x faster than the original C code.
<sevenseacat> that would have to be some real shit C code for that to be the case
fuhgeddaboudit has joined #ruby
cantonic has quit [Quit: cantonic]
dominikh has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Remote host closed the connection]
<wald0> or maybe its just that ruby uses its own "optimized functions" on his best way and just writing it in a "high level" it ends in a cleaner procedure
anderson has quit [Read error: Connection reset by peer]
* wald0 sounds philosophic
hamakn has joined #ruby
iamjarvo has quit [Remote host closed the connection]
theRoUS has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
moneydouble1 has joined #ruby
anderson has joined #ruby
iamjarvo has joined #ruby
tannerburson has joined #ruby
moneydouble has quit [Read error: Operation timed out]
sevenseacat has quit [Remote host closed the connection]
mr_red has quit [Max SendQ exceeded]
mr_red has joined #ruby
<havenwood> 10x less code and 14x faster sounds good
mikepack has quit [Remote host closed the connection]
<wald0> only good ? :) that can be the next FAQ answer when somebody asks about speed of ruby vs other languages lol
bklane has quit [Quit: Leaving...]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
<joonty> plus, you get lines like `unless suspicious_pids.empty?`
hamakn has quit [Ping timeout: 252 seconds]
tharindu has joined #ruby
<joonty> reading it through, it's not exactly idiomatic ruby, but oh well
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
reset has joined #ruby
<havenwood> joonty: prolly written for 1.8 as well
iamjarvo has quit [Ping timeout: 246 seconds]
Guest15002 has quit [Ping timeout: 245 seconds]
<havenwood> but yeah, `== nil` etc
kidoz has joined #ruby
<havenwood> `nil?` yo!
<joonty> havenwood: very true
MoneyMaker has joined #ruby
markalanevans has joined #ruby
<havenwood> and the globals...
mikesplain has joined #ruby
<markalanevans> Whats the best way to turn #'s like this: 2499 into 24.99 or 129342 in 1293.42 ?
deception has joined #ruby
<markalanevans> what ruby formatting options do i have?
<markalanevans> pure ruby no rails
buscon has joined #ruby
MoneyMaker has quit [Killed (idoru (Spam is off topic on freenode.))]
mojjojo has quit [Quit: mojjojo]
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
mojjojo has joined #ruby
maxmanders has quit [Quit: IRCRelay - http://ircrelay.com]
TaxmanBD has quit [Ping timeout: 245 seconds]
dominikh has joined #ruby
ananthakumaran has joined #ruby
b00stfr3ak has joined #ruby
ewnd9 has quit [Remote host closed the connection]
maxmanders has joined #ruby
levin has joined #ruby
reset has quit [Ping timeout: 245 seconds]
bahaki386 has joined #ruby
levin is now known as Guest21732
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
ewnd9 has joined #ruby
kindjal has joined #ruby
ahawkins_ has quit [Read error: Connection reset by peer]
ce_afk is now known as cescalante
momomomomo has joined #ruby
<joonty> markalanevans: how about sprintf("%.2f", 2499.to_f/100)
shredding has joined #ruby
Asher1 has quit [Quit: Leaving.]
intuxicated has quit [Read error: No route to host]
Asher has joined #ruby
cantonic has joined #ruby
bradhe has joined #ruby
freezey has quit [Remote host closed the connection]
theRoUS has quit [Remote host closed the connection]
theRoUS has joined #ruby
<markalanevans> joonty: i just figured it out. apparently dividing with a decimal helps.
<markalanevans> example 123456 / 100.0 = 1234.56
theRoUS has quit [Client Quit]
<joonty> markalanevans: yes, but you lose dp if it's a round number
<markalanevans> but 123456/100 - 1234
R33C3 has joined #ruby
<joonty> e.g. 2400.0/100 = 24.0
<joonty> it doesn't always give you 2dp, so you need to format it
<markalanevans> hmmmm
<markalanevans> good point
<havenwood> >> '%.2f' % 2400.0.fdiv(10)
<eval-in> havenwood => "240.00" (https://eval.in/71965)
workmad3 has quit [Ping timeout: 245 seconds]
<markalanevans> i like it
<joonty> havenwood: nice, didn't know about fdiv
Davey has quit [Quit: Computer has gone to sleep.]
<apeiros> markalanevans: beware, 100.0 is not a decimal. it's a float. the difference is quite important.
<markalanevans> Well i'm dealing w/ cash
<apeiros> then floats are precisely the utterly wrong tool :)
<joonty> havenwood: surely you don't need the 2400.0 if using fdiv?
<havenwood> :O
<apeiros> do NEVER use floats when dealing with money.
theRoUS has joined #ruby
<havenwood> joonty: no, just showing it can be flexible with inputs
<shevy> not even bitcoin floats?
<joonty> nice save
<havenwood> joonty: i prolly wasn't following convo closely enough, that wasn't the point
maasha has quit [Ping timeout: 250 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 265 seconds]
bahaki386 has quit [Quit: Leaving...]
theRoUS has quit [Client Quit]
interactionjaxsn has joined #ruby
<joonty> maybe the UK train services are using floats
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<joonty> that would explain a lot
<markalanevans> havenwood: reading
ffranz has quit [Quit: Leaving]
<havenwood> >> 5555.to_s.insert(-3, '.').to_f
<eval-in> havenwood => 55.55 (https://eval.in/71966)
claymore has joined #ruby
mojjojo has quit [Ping timeout: 248 seconds]
<havenwood> ^ of course the double digit would not be preserved, but if you wanted to convert to a real float and it wasn't monies
theRoUS has joined #ruby
RaCx has joined #ruby
ffranz has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
theRoUS has quit [Client Quit]
moneydouble has joined #ruby
ExCa|iBuR has quit [Ping timeout: 245 seconds]
<markalanevans> right. i'm just being given dollar amounts in an api
<markalanevans> as 234252
<havenwood> markalanevans: always the same currency?
codeFiend has joined #ruby
<markalanevans> and i basically need to shift it and add a decimal before the last 2
<markalanevans> yea
theRoUS has joined #ruby
<markalanevans> but i do want the .00
<markalanevans> in the case its even
nwertman has joined #ruby
<markalanevans> storing it in mysql as a decimal
<havenwood> markalanevans: and solely for display, you aren't doing calculations?
<markalanevans> yea, i will do calcs on it
mojjojo has joined #ruby
theRoUS has quit [Client Quit]
graydot has joined #ruby
jacobsmith has joined #ruby
moneydouble1 has quit [Ping timeout: 248 seconds]
Macaveli has joined #ruby
Hanmac1 has joined #ruby
mengu_ has quit []
konrads has quit [Quit: Leaving.]
<TorpedoSkyline> hey guys, how can I parse multipart/form-data and use it in a ruby hash?
io_syl has joined #ruby
graydot has quit [Client Quit]
Hanmac has quit [Ping timeout: 246 seconds]
<TorpedoSkyline> any gems to help with this?
likemike has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
jlast has quit [Remote host closed the connection]
buscon has quit [Remote host closed the connection]
saltnvinegar has joined #ruby
sayan has joined #ruby
kaspergrubbe has quit [Ping timeout: 246 seconds]
theRoUS has joined #ruby
theRoUS has quit [Client Quit]
cantonic has quit [Quit: cantonic]
paul_k has joined #ruby
<havenwood> >> require 'bigdecimal'; require 'bigdecimal/util'; result = 234252.to_d + 234252.to_d; sprintf '%0.2f', result.fdiv(100)
<eval-in> havenwood => (https://eval.in/71970)
camilasa_ has quit [Remote host closed the connection]
zerowaitstate has joined #ruby
jbpros has quit [Quit: jbpros]
<havenwood> markalanevans: ^ but you might want to use a gem like money: https://github.com/RubyMoney/money#readme
kidoz has quit [Quit: Ухожу я от вас]
preview has joined #ruby
kevind has joined #ruby
<havenwood> markalanevans: 'bigdecimal/util' gives you #to_d
camilasan has joined #ruby
arietis has joined #ruby
<markalanevans> havenwood: so how much different is that then this. sprintf("%.2f", 2499.to_f/100)
<markalanevans> in regards to expectations
theRoUS has joined #ruby
<havenwood> markalanevans: yours is using floats, which is a cardinal sin with money as it can be lost and gained :O
<havenwood> markalanevans: mine uses bigdecimal, which keeps your monies from leaking
drumusician has joined #ruby
theRoUS has quit [Client Quit]
camilasan has quit [Remote host closed the connection]
<markalanevans> if i had 12300 or 12399 or 129 each of those would confer to 123.00 123.99 and 1.29
camilasan has joined #ruby
RaCx_ has joined #ruby
<markalanevans> So ill listen do you and do what your saying, but just wondering
<markalanevans> in my particular case
<wald0> just checking rbot, seems like a good bot for use in IRC :)
<markalanevans> i have to parts.
theRoUS has joined #ruby
<markalanevans> one where i take data from a feed convert it to a decimal and store it in mysql
elux has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
theRoUS has quit [Client Quit]
RaCx_ is now known as RaCx
<markalanevans> then down the road, i think using big decimal when i read the data out and do math on it, it makes sense
<havenwood> markalanevans: Floats cant accurately represent base 10 numbers:
<havenwood> >> 1.03 - 0.42
<eval-in> havenwood => 0.6100000000000001 (https://eval.in/71971)
<havenwood> markalanevans: ^ just lost a penny
paul_k has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
likemike has joined #ruby
jlast has joined #ruby
EugenA has quit [Quit: Konversation terminated!]
<markalanevans> hmmm.
<havenwood> >> require 'bigdecimal'; require 'bigdecimal/util'; (1.03.to_d - 0.42.to_d).to_f
<eval-in> havenwood => (https://eval.in/71972)
sammyo has quit [Ping timeout: 260 seconds]
<havenwood> gained a penny rather**
<havenwood> or lost
<havenwood> whatever
<havenwood> penny problems
<markalanevans> you mean because of the .000000001
<havenwood> yes
zastern has quit []
<markalanevans> suppose thats a fraction of a penny
theRoUS has joined #ruby
iamjarvo has joined #ruby
<markalanevans> but yea i see what your saying
<markalanevans> ok. So i think in my case though your right.
Deele has quit [Quit: User excited]
<markalanevans> For my data feed import i can keep it light w/ sprintf("%.2f", 2499.to_f/100)
<havenwood> markalanevans: a fraction of a penny that isn't supposed to be there, now apply your function to my account a few billion times and I'M RICH \o/
<markalanevans> as its simply conveying the # and storing it
<markalanevans> but the moment i do math
<joonty> brewster's millions
<markalanevans> then i should use BigDecima
<markalanevans> haha
lessless has joined #ruby
<markalanevans> ok. Thanks for the clarification havenwood
<markalanevans> I really appreciate it
<lessless> (1.9455470712774937e-05 * 1).round(2) => 0.0
<lessless> wtf?
digital-ghost has joined #ruby
<havenwood> >> 1.9455470712774937e-05.round
<eval-in> havenwood => 0 (https://eval.in/71973)
mikesplain has quit [Quit: WeeChat 0.4.2]
Hanmac has joined #ruby
mikesplain has joined #ruby
kindkid7 has joined #ruby
<havenwood> lessless: what is surprising about that?
<joonty> the rounding will round it down
<havenwood> lessless: Looky:
<havenwood> >> 1.9455470712774937e-01
<eval-in> havenwood => 0.19455470712774936 (https://eval.in/71974)
<joonty> >> (1.9455470712774937e-05 * 1).round(5)
<eval-in> joonty => 2.0e-05 (https://eval.in/71975)
<kindkid7> I remember seeing something from Avdi Grimm once about subclassing the Module class, but my google-fu is failing me. I think it might have been a video. Anyone have any leads?
<lessless> yeah, round up to the two digits after the point
<joonty> kindkid7: ruby tapas?
<lessless> I expected 1.95
<havenwood> lessless: #ceil is for rounding up
Hanmac1 has quit [Ping timeout: 245 seconds]
mark_locklear has quit [Quit: Leaving]
sammyo has joined #ruby
einarj has quit [Remote host closed the connection]
mojjojo has quit [Ping timeout: 245 seconds]
<havenwood> lessless: just checking, but you realize the number you pasted is a tiny fraction, right?
<TorpedoSkyline> anyone know how to parse multipart/form data? =P
<joonty> lessless: it's the same as 0.0000194.round
mikesplain1 has joined #ruby
saltnvinegar has quit [Quit: saltnvinegar]
mercwithamouth has joined #ruby
<lessless> oh man
camilasan has quit [Read error: Connection reset by peer]
<lessless> no, I did not
jerius has joined #ruby
camilasan has joined #ruby
aganov has quit [Remote host closed the connection]
<havenwood> >> [10e+1, 10e-1]
<eval-in> havenwood => [100.0, 1.0] (https://eval.in/71989)
saltnvinegar has joined #ruby
cescalante is now known as ce_afk
mikesplain has quit [Ping timeout: 245 seconds]
kraljev2 has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
noname001__ has quit [Ping timeout: 245 seconds]
kraljev2 has left #ruby [#ruby]
Lewix has quit [Remote host closed the connection]
i_s has joined #ruby
acrussell has joined #ruby
p8952 has quit [Read error: Operation timed out]
i_s has quit [Remote host closed the connection]
jhamon has joined #ruby
<_br_> Odd question. How do Yellow page services get their data?
nisstyre has quit [Ping timeout: 246 seconds]
jerius has quit [Ping timeout: 272 seconds]
osvico has joined #ruby
brennanMKE has quit []
banister has joined #ruby
mojjojo has joined #ruby
<havenwood> _br_: dunno, but they use Ruby - met a few YellowPages devs at last years RubyConf
konrads has joined #ruby
konrads has left #ruby [#ruby]
Macaveli has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
Lewix has joined #ruby
<joonty> _br_: do you mean, where do they get their catalogue of businesses?
Lewix has quit [Remote host closed the connection]
<havenwood> _br_: I think they convince businesses to list themselves: http://www.yellowadvertising.com.au/free-listing.html?Contact-Us/Free-Listing
osvico has quit [Ping timeout: 246 seconds]
<havenwood> partly at least
<_br_> havenwood: Yeah, I thought so too. Interesting the ruby bit.
<_br_> joonty: exactly
<joonty> yeh they do, you have to register with them
<joonty> and pay a sum for the pleasure
<_br_> havenwood: Probably they are connected somehow also to phone providers and postal in order to have the data?
drumusician has quit [Ping timeout: 272 seconds]
<_br_> joonty: Yeah, pretty expensive.
shaunbak_ has quit [Remote host closed the connection]
movedx has joined #ruby
stetho has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<_br_> I just found it an interesting problem to think about.
shaunbaker has joined #ruby
<havenwood> _br_: That is what I assumed, that they buy something bulk, then augment. Like the listings WestLaw and Lexis have, I don't know who the bulk reseller is but they probably harvest from public records, bought or just manually processed.
<havenwood> Voting records, postal records.
<_br_> That makes a lot of sense yeah.
<movedx> I've got a challenging problem. Hopefully there is a library for this, but if not it could prove difficult. If I have a subnet, let's say 192.168.1.0/24, and in this subnet a random, non-linear set of IPs are in use, how can I easily extrapolate the unused IPs from the subnet?
snuffeluffegus has joined #ruby
<movedx> For further background, I am pulling this information from an MSSQL DB which in turn is the DB for an IPAM.
<movedx> But sadly ther IPAM provides no API, let alone anything that can do this for me.
ngurumo has joined #ruby
aryaching has joined #ruby
ixti has joined #ruby
<_br_> havenwood: joonty: Thanks for the input, appreciate the thoughts.
sammyo has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
csgui has joined #ruby
postmodern has quit [Quit: Leaving]
tharindu_ has joined #ruby
mlpinit_ has joined #ruby
<_br_> movedx: Silly idea. Send out arp requests to see which nic's answer?
shaunbaker has quit [Ping timeout: 272 seconds]
mikepack has joined #ruby
danshultz has quit [Remote host closed the connection]
<havenwood> movedx: Looks like ipaddress gem is an option: http://rubydoc.info/gems/ipaddress/0.8.0/IPAddress/IPv4:subnet
<havenwood> heh, they misspelled the method in the docs
danshultz has joined #ruby
evenix has quit [Ping timeout: 272 seconds]
tharindu has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
tharindu_ has quit [Read error: Connection reset by peer]
tharindu has joined #ruby
smathieu has joined #ruby
jhamon has quit [Quit: jhamon]
<movedx> havenwood: I already use IPAddr. Not sure it can do this, but I have another look.
p8952 has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
freezey has joined #ruby
mlpinit has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
<movedx> _br_: Not an option really.
<kindkid7> Is there a better way to do this: eval("module #{module_name}; end")
tylersmith has joined #ruby
Kensei has joined #ruby
<kindkid7> where module_name is determined at run time
macmartine has joined #ruby
Kensei has quit [Changing host]
Kensei has joined #ruby
<movedx> Sounds like a massive security hole to me, kindkid7 :O
<kindkid7> obviously
<kindkid7> Is there a way to do it without eval?
<havenwood> pull request submitted for `#subnets` typo
platzhirsch has joined #ruby
<waxjar> Module.new
theRoUS has quit [Disconnected by services]
Kensei is now known as theRoUS
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
theRoUS` has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
<waxjar> * ModuleName = Module.new, rather
bradhe has joined #ruby
newUser1234 has joined #ruby
smathieu has quit [Ping timeout: 252 seconds]
RaCx has quit [Read error: Connection reset by peer]
RaCx_ has joined #ruby
evenix has joined #ruby
stetho has joined #ruby
maletor has joined #ruby
ngurumo has left #ruby [#ruby]
<waxjar> or something like const_set module_name.capitalize.to_sym, Module.new if you wanna do it "dynamic"
<kindkid7> perfect! thanks waxjar :)
<havenwood> Object.const_set(module_name, Module.new)
<havenwood> kindkid7: ^
<havenwood> kindkid7: what waxjar said
reset has joined #ruby
marcgg has joined #ruby
dukz has joined #ruby
<havenwood> kindkid7: (where module_name is a symbol in :CamelCase
<havenwood> )
<havenwood> grr, hate not closing parens
R33C3 has quit [Remote host closed the connection]
lukec has joined #ruby
Speed has joined #ruby
timonv has quit [Remote host closed the connection]
<havenwood> >> Object.const_set(:Test, Module.new { class << self; define_method(:test) { puts 'hi' }; end }); Test.test
<eval-in> havenwood => hi ... (https://eval.in/71997)
<havenwood> kindkid7: eg ^
Lewix has joined #ruby
carraroj has joined #ruby
<havenwood> The not-so-pretty way create a simple class method on a module. >.>
marcgg_ has quit [Ping timeout: 272 seconds]
tagrudev has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
Macaveli has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
reset has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
blaxter_ has quit [Quit: foo]
mojjojo has quit [Quit: mojjojo]
timonv has joined #ruby
alup has quit [Quit: Leaving]
zz_tsykoduk is now known as tsykoduk
arietis has quit [Quit: Computer has gone to sleep.]
JRizzle has joined #ruby
mojjojo has joined #ruby
Macaveli has quit [Client Quit]
Macaveli has joined #ruby
bradhe has quit [Remote host closed the connection]
<waxjar> havenwood: is there a reason you don't simply use def self.test ?
bradhe has joined #ruby
<havenwood> waxjar: Not enough coffee. >.>
<havenwood> >> Object.const_set(:Test, Module.new { def self.test; 'hi' end }); Test.test
<eval-in> havenwood => "hi" (https://eval.in/71998)
RichardBaker has joined #ruby
<waxjar> ah ok :P
<havenwood> waxjar: got carried away :P
ghr has quit [Quit: Computer has gone to sleep.]
<havenwood> ^ much nicer no doubt
mojjojo has quit [Client Quit]
dagobah has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
Solnse has joined #ruby
theRoUS has quit [Quit: Leaving]
user258467 has quit [Quit: Quitte]
io_syl has quit []
zoee has joined #ruby
psyl0n has quit [Remote host closed the connection]
falood has quit [Remote host closed the connection]
arietis has joined #ruby
falood has joined #ruby
falood has quit [Remote host closed the connection]
theRoUS` has quit [Changing host]
theRoUS` has joined #ruby
voidbottle has joined #ruby
theRoUS` is now known as theRoUS
<voidbottle> hi guys
bradhe has quit [Ping timeout: 246 seconds]
<voidbottle> could you help me please with this funciton ? http://pastie.org/8498743
jgrevich has joined #ruby
ananthakumaran has quit [Ping timeout: 272 seconds]
<voidbottle> how to break and return true? if requested_user.manager_id == current_user.id
shredding has quit [Quit: shredding]
mikepack_ has joined #ruby
kevind_ has joined #ruby
momomomomo has joined #ruby
existensil has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 245 seconds]
Guest21732 has quit [Ping timeout: 246 seconds]
mrsolo has joined #ruby
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
mikepack has quit [Ping timeout: 252 seconds]
sparrovv has quit [Quit: sparrovv]
jkhwan has joined #ruby
klip has quit [Remote host closed the connection]
apeiros has joined #ruby
MrPot4to has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<hersha> @void you need to return the value of the have-permissions? call instead and move the return false to the end of the method to catch the nil case. right now if you hit the else block false will always get returned.
troessner has quit [Quit: Leaving]
truent has joined #ruby
akonny has joined #ruby
truent has left #ruby [#ruby]
mojjojo has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
jerius has joined #ruby
freakazoid0223 has joined #ruby
jhamon has joined #ruby
mfmfmfmfmfmf has joined #ruby
DonRichie has quit [Read error: Connection reset by peer]
DonRichie has joined #ruby
paul_k has joined #ruby
mojjojo has quit [Client Quit]
matheuscaceres has joined #ruby
ukd1 has joined #ruby
momomomomo has quit [Quit: momomomomo]
<hersha> @voidbottle i think this is what you are looking for. http://pastie.org/8498775
carraroj has quit [Ping timeout: 272 seconds]
DonRichie has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
DonRichie has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
Lewix has joined #ruby
ignoch has joined #ruby
nobitanobi has joined #ruby
maletor has joined #ruby
Kricir has joined #ruby
paul_k has quit [Ping timeout: 272 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
ssvo has joined #ruby
Czupa has joined #ruby
RaCx_ has quit [Ping timeout: 272 seconds]
jhamon has quit [Quit: jhamon]
iamjarvo has quit [Remote host closed the connection]
ignoch has left #ruby [#ruby]
sayan has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
timonv has quit [Remote host closed the connection]
RaCx has joined #ruby
markalanevans has quit [Ping timeout: 245 seconds]
jerius has quit [Quit: Computer has gone to sleep.]
dzhulk has joined #ruby
tvw has quit [Read error: Connection reset by peer]
<TorpedoSkyline> ok, am I right in saying we use the CGI library to parse multipart/form?
<TorpedoSkyline> otherwise, I'm stuck
burgess|vayo has joined #ruby
m8 has joined #ruby
<TorpedoSkyline> there seems to be very little documentation on something like this, but what weird is I can find out with pretty much every other language
iamjarvo has quit [Ping timeout: 248 seconds]
<xibalba> anyone know if there is an ubuntu pkg for the Ruby src?
bradhe has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
mlpinit has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
sergicles has quit [Quit: sergicles]
sayan has joined #ruby
aspires has joined #ruby
wallerdev has joined #ruby
jbpros has joined #ruby
liamkeily has joined #ruby
pel_daniel has joined #ruby
<hersha> @xibalba there is but its usually very outdated
nvrch has quit [Quit: nvrch]
danshultz has joined #ruby
<xibalba> whats the pkg name? can't find it.
maz-dev has quit []
<xibalba> i dont mind the age of it currently
<hersha> @xibalba ruby1.9.1
kaspergrubbe has joined #ruby
<xibalba> hmm i've got 1.9.3 installed but it didn't come w/the src
voidbottle has quit [Quit: Ухожу я от вас]
mojjojo has joined #ruby
<hersha> oh I'm sry didn't notice you wanted the src :/ i don't know about that
jbpros has quit [Client Quit]
<xibalba> n/p, i can prolly check it out via git
<xibalba> wanted to examine some of the src as i stepped through http://rhg.rubyforge.org/chapter02.html
<hersha> yea probably the easiest way
yjmsf20 has quit [Quit: Lost terminal]
tharindu has quit [Quit: Leaving...]
Elhu has quit [Quit: Computer has gone to sleep.]
<TorpedoSkyline> can anyone help me out here?
jbpros has joined #ruby
kristofers has joined #ruby
einarj has joined #ruby
lukec has quit [Quit: lukec]
ekarlso has quit [Ping timeout: 246 seconds]
duggiefr_ has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
ExCa|iBuR has joined #ruby
drumusician has joined #ruby
dukz has quit [Remote host closed the connection]
jacobsmith has quit [Ping timeout: 245 seconds]
Monie has joined #ruby
xcess_denied has quit [Quit: Leaving...]
nomenkun has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Ping timeout: 264 seconds]
dukz has joined #ruby
coca_rails has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
jbpros has quit [Quit: jbpros]
mark_locklear has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
ekarlso has joined #ruby
parduse is now known as Guest4804
parduse has joined #ruby
Guest4804 has quit [Ping timeout: 272 seconds]
nfisher has quit [Quit: Good-bye all!]
bigkevmcd has quit [Quit: Ex-Chat]
maletor has quit [Quit: Computer has gone to sleep.]
thelorax123 has quit [Remote host closed the connection]
bobbyz has quit [Quit: Leaving]
dukz has quit [Ping timeout: 265 seconds]
blossom_ has joined #ruby
evenix has quit [Read error: Connection reset by peer]
polaco_zZz is now known as polaco
evenix has joined #ruby
camilasan has quit []
thelorax123 has joined #ruby
smathieu has joined #ruby
freezey has quit [Remote host closed the connection]
dunnzilla has joined #ruby
guiocavalcanti has joined #ruby
paul_k has joined #ruby
Tuxist has joined #ruby
petey has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
bradhe_ has joined #ruby
smathieu has quit [Read error: Operation timed out]
ewnd9 has quit [Ping timeout: 246 seconds]
petey_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
petey has quit [Read error: Connection reset by peer]
andikr has quit [Remote host closed the connection]
Elhu has joined #ruby
s2013 has joined #ruby
maletor has joined #ruby
reset has joined #ruby
tyfighter has joined #ruby
mfmfmfmfmfmf has joined #ruby
Czupa has quit [Remote host closed the connection]
timonv has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
jerius has joined #ruby
<blossom_> Hello, I'm **newish** to ruby, and I'm trying to wrap my head around something
wallerdev has quit [Quit: wallerdev]
<blossom_> I'd like to pass function logic to an item for use later
jerius has quit [Client Quit]
thelorax123 has quit [Read error: Connection reset by peer]
<blossom_> Policy.add_rule is what I'm foggy about; can I just def a method and pass it to the policy?
sparrovv has joined #ruby
scarfacedeb has quit [Quit: Leaving]
bigoldrock has joined #ruby
sepp2k has joined #ruby
molawson has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
reset has quit [Ping timeout: 240 seconds]
thelorax123 has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
timonv has quit [Read error: Connection reset by peer]
R33C3 has joined #ruby
<tobiasvl> blossom_: yes you can
timonv has joined #ruby
<tobiasvl> however
freezey has joined #ruby
tyfighter has quit [Quit: tyfighter]
<tobiasvl> you need to prefix the argument with &
brianpWins has joined #ruby
kristofers has quit [Remote host closed the connection]
<blossom_> Policy.add_rule(&some_method) ?
<blossom_> or in the def of add_rule?
axl_ has joined #ruby
<blossom_> would you happen to know of a good resource I could read up on regarding this concept?
Elhu has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has quit [Remote host closed the connection]
moneydouble has quit [Ping timeout: 248 seconds]
zodiak has quit [Ping timeout: 248 seconds]
RaCx has joined #ruby
mikepack_ has quit [Remote host closed the connection]
<tobiasvl> or just search for Proc in the ruby documentation
iliketurtles has joined #ruby
mikepack has joined #ruby
<tobiasvl> or you can just pass the name of the method as a symbol
codeFiend has quit [Quit: codeFiend]
<tobiasvl> Policy.add_rule(:some_method)
duggiefresh has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
<tobiasvl> and then call send with the symbol as an argument inside
timonv has quit [Remote host closed the connection]
kofno has quit [Quit: leaving]
<Morrolan> Might make for a nice API to have Policy.add_rule capture the block which it's passed.
<blossom_> i think this skorks link is clearing it up for me, thank you!
timonv has joined #ruby
whunt has joined #ruby
pwh has quit []
hiall has quit [Quit: hiall]
<blossom_> Morrolan: that's what I'm planning on doing, I think: I want to be able to dynamically define policies, so each instance of policy will have a unique rule list
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
kofno has joined #ruby
tharindu has joined #ruby
MrZYX|off is now known as MrZYX
qhartman has joined #ruby
jerius has joined #ruby
myappleguy has quit [Ping timeout: 264 seconds]
jlast has quit [Remote host closed the connection]
asteros has joined #ruby
jlast has joined #ruby
jerius has quit [Client Quit]
jlast has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 240 seconds]
io_syl has joined #ruby
froy has joined #ruby
zodiak has joined #ruby
bradhe_ has quit [Remote host closed the connection]
mark06 has left #ruby [#ruby]
lukec has joined #ruby
pwh has joined #ruby
bradhe has joined #ruby
IceDragon has joined #ruby
smathieu has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
coca_rails has quit [Remote host closed the connection]
coderhs has joined #ruby
Advocation has joined #ruby
coca_rails has joined #ruby
Astralum has joined #ruby
Xeago_ has joined #ruby
<mjc_> awesome, love resolving version conflicts... super fun when I can't figure out what could possibly be requiring an old version of another gem
<_br_> mjc_: Run it with debugger?
<mjc_> _br_: bundler?
<_br_> Bundle install throws weird things at you?
Xeago has quit [Read error: Operation timed out]
zigomir has joined #ruby
<mjc_> yeah it says one gem depends on excon ~> but the gem doesn't specify that as a dependency 0.9.4
<_br_> Did you try to delete gemfile.lock and retry?
<mjc_> yeah, doesn't help
<_br_> hm
psyl0n has joined #ruby
<_br_> well, depending on the dependency hell you are in that might be tricky.
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<mjc_> I think something autoscaler depends on, depends on this particular excon version
<mjc_> but it doesn't tell me what
Es0teric has joined #ruby
<_br_> maybe you can remove it and see if bundle executes correctly?
<mjc_> it does
<mjc_> but I need autoscaler :P
i_s has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
psyl0n has quit [Read error: Connection reset by peer]
psyl0n_ has joined #ruby
maletor has joined #ruby
<_br_> Not sure they :/
<_br_> s/y/n/
Es0teric has quit [Max SendQ exceeded]
Xeago_ has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
wallerdev has joined #ruby
jacobsmith has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
obs has quit [Quit: Saliendo]
<mojjojo> what is shorter way to write http://pastie.org/8498935 but that it is still readable?
gyre007 has quit [Ping timeout: 248 seconds]
heidi has joined #ruby
Czupa has joined #ruby
<shevy> mojjojo first off, no need for parens ()
<shevy> second, you could do this:
<mjc_> _br_: weird, so I added autoscaler to a blank gemfile and I don't see the ~> 0.9.4 requirement
<shevy> y = 2
<shevy> y = 1 if x
<shevy> third, you could use ternary operator ?
hiyosi has quit [Ping timeout: 272 seconds]
bookies has joined #ruby
Kricir has quit [Remote host closed the connection]
kindjal has joined #ruby
myappleguy has joined #ruby
newUser1234 has quit [Remote host closed the connection]
bluOxigen has joined #ruby
iamjarvo has joined #ruby
newUser1234 has joined #ruby
lfox has quit [Quit: ZZZzzz…]
magoo has joined #ruby
Macaveli has joined #ruby
nobitanobi has quit [Ping timeout: 245 seconds]
Macaveli has quit [Remote host closed the connection]
nobitanobi has joined #ruby
stetho has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
ericwood has quit [Remote host closed the connection]
ericwood has joined #ruby
Macaveli has quit [Remote host closed the connection]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
newUser1234 has quit [Ping timeout: 248 seconds]
krz has quit [Quit: krz]
timonv has quit [Remote host closed the connection]
<_br_> mjc_: Maybe dragged in from some other gem then?
varfoo has quit [Quit: WeeChat 0.4.0]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<mjc_> yeah it looks like it but I don't see any way to figure out which
ce_afk is now known as cescalante
xk_id has quit [Quit:
<rismoney> say i have an array arr=['foo','bar','bat','baz'] Can i easily mod each element of the array, to have a prefix say: ['p_foo','p_bar','p_bat','p_baz']
terrellt has joined #ruby
Es0teric has joined #ruby
IceDragon has joined #ruby
nobitanobi has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
qhartman has quit [Quit: Ex-Chat]
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
<rismoney> think i got it
<rismoney> arr.map { |i| i = 'p_' + i}
olistik has quit [Remote host closed the connection]
<TheMoonMaster> rismoney: arr.map {|x| "p_#{x}"}
<TheMoonMaster> Ah, you got it
jerius has joined #ruby
mlpinit_ has joined #ruby
<rismoney> havent slept
<TheMoonMaster> lol I know that feeling.
zeade has joined #ruby
<Hanmac> or that ,P arr.map(&"p_%d".method(:%))
<TheMoonMaster> wat
R33C3 has quit [Read error: Connection reset by peer]
tvw has joined #ruby
atno has quit [Remote host closed the connection]
<TheMoonMaster> I hope nobody would actually use that.
momomomomo has quit [Quit: momomomomo]
R33C3 has joined #ruby
<Hanmac> hm yeah but you can ;P
<TheMoonMaster> You can, but you really shouldn't.
<Hanmac> it makes sense if you get the format string from an option or constant
benwoody has quit [Quit: benwoody]
coca_rails has joined #ruby
mlpinit has quit [Ping timeout: 272 seconds]
lfox has joined #ruby
spider-mario has quit [Ping timeout: 272 seconds]
benwoody has joined #ruby
Tearan has joined #ruby
btanaka has joined #ruby
reset has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
dzhulk has quit [Quit: Leaving.]
sambao21 has quit [Ping timeout: 246 seconds]
spider-mario has joined #ruby
jkhwan has quit [Remote host closed the connection]
Elhu has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkhwan has joined #ruby
tvw has quit []
g0bl1n has quit [Ping timeout: 264 seconds]
jrhe has quit [Quit: jrhe]
sambao21 has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
mojjojo has quit [Quit: mojjojo]
hiyosi has joined #ruby
rfy692 has joined #ruby
mojjojo has joined #ruby
sparrovv has quit [Quit: sparrovv]
Ripp__ has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
bookies has quit []
DanBoy has quit [Remote host closed the connection]
dzhulk has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
moneydouble has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
mklappstuhl has joined #ruby
sepp2k1 has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
Solnse has quit [Quit: Leaving.]
|RicharD| has quit [Ping timeout: 246 seconds]
jhn has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Ping timeout: 272 seconds]
jonahR has joined #ruby
matheuscaceres has quit [Remote host closed the connection]
parduse has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
parduse has joined #ruby
saarinen has joined #ruby
moneydouble has quit [Ping timeout: 245 seconds]
bradhe has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
rdark has quit [Quit: leaving]
kirun has joined #ruby
guiocavalcanti has quit []
tharindu has joined #ruby
cantonic has quit [Quit: cantonic]
guiocavalcanti has joined #ruby
drumusician has joined #ruby
krz has quit [Ping timeout: 246 seconds]
bricker has joined #ruby
bradhe_ has joined #ruby
jerius has joined #ruby
crus` has joined #ruby
Kricir has joined #ruby
csgui has quit [Ping timeout: 250 seconds]
freezey has quit [Remote host closed the connection]
crus has quit [Ping timeout: 272 seconds]
freezey has joined #ruby
jhaals has joined #ruby
kaspergrubbe has joined #ruby
tharindu has quit [Ping timeout: 245 seconds]
coderhs has quit [Quit: Leaving]
magoo has quit [Quit: WeeChat 0.4.2]
nanoyak has joined #ruby
jkhwan has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
cantonic has joined #ruby
machi_ has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
ace_striker has joined #ruby
iamjarvo has quit [Remote host closed the connection]
Monie has joined #ruby
momomomomo has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
momomomomo has quit [Client Quit]
iamjarvo has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
olistik has joined #ruby
DonRichie has quit [Ping timeout: 272 seconds]
mlpinit has joined #ruby
DrShoggoth has joined #ruby
banghouse2 has joined #ruby
decoponio has quit [Quit: Leaving...]
arietis has joined #ruby
iamjarvo_ has joined #ruby
coca_rails has quit [Remote host closed the connection]
myappleguy has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
banghouse2 is now known as banghouse
arietis has quit [Client Quit]
krz has joined #ruby
dallasm_ has joined #ruby
Advocation has quit [Quit: Advocation]
CreativeEmbassy has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
iamjarvo has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
mlpinit has quit [Ping timeout: 264 seconds]
cgore has joined #ruby
jkhwan has quit [Remote host closed the connection]
mordocai has joined #ruby
jkhwan has joined #ruby
iamjarvo_ has quit [Ping timeout: 246 seconds]
trolling has quit [Ping timeout: 264 seconds]
Drewch has joined #ruby
mordocai has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
jlast has quit [Ping timeout: 252 seconds]
olistik has quit [Ping timeout: 245 seconds]
jhn has quit [Ping timeout: 272 seconds]
<platzhirsch> meh, how do you name a method that performs JSON.load only on Strings which contain a hash or array and else return the original value? *-*
coca_rails has joined #ruby
trolling has joined #ruby
Y_Ichiro_ has quit [Ping timeout: 240 seconds]
nwertman has quit [Ping timeout: 252 seconds]
rfy692_ has joined #ruby
magoo has joined #ruby
Czupa has quit [Quit: Wychodzi]
interactionjaxsn has quit [Remote host closed the connection]
jkhwan has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
mojjojo has quit [Quit: mojjojo]
maletor has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sparrovv has joined #ruby
sheepman has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
cescalante is now known as ce_afk
aspires has quit []
moneydouble has joined #ruby
interact_ has joined #ruby
sheepman has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
ace_striker_ has joined #ruby
rfy692_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ace_striker has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Remote host closed the connection]
tannerburson has quit [Quit: tannerburson]
<_br_> platzhirsch: get_associative_containers
mlpinit has joined #ruby
<platzhirsch> _br_: nice, very descriptive
tannerburson has joined #ruby
<_br_> something like that :)
<platzhirsch> although I cannot remember when I have used the word get the last time in a method name. In Java always, in Ruby I tended to move a bit away from the verb method names
moneydouble has quit [Ping timeout: 248 seconds]
pwh has quit []
<_br_> well its a matter of taste I guess. there is no real right or wrong if you keep if simple and clear.
<apeiros> platzhirsch: broken_abstraction is how I'd name it :-p
<_br_> hehe
<platzhirsch> yeah, someone has to clean up the mess
<apeiros> sounds like some kind of normalization, so I'd probably call it normalize_whatever
<platzhirsch> that's nice
DrShoggoth has quit [Quit: Leaving]
<_br_> good point
newUser1234 has joined #ruby
myappleguy has joined #ruby
capicue has joined #ruby
<platzhirsch> on a completely different note. Any idea why this bus unicode symbol cannot be displayed yet properly?
<apeiros> platzhirsch: works fine here?
<platzhirsch> oh ok :|
<apeiros> get a decent OS/Browser? :)
mjs2600 has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
<platzhirsch> Chrome OS on Ubuntu 13.10, mh
maletor has quit [Quit: Computer has gone to sleep.]
<platzhirsch> - OS
echevemaster has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
rfy692_ has joined #ruby
nwertman has joined #ruby
ExCa|iBuR has quit [Quit: fere libenter homines id quod volunt credunt]
p0wn3d has joined #ruby
SteveBenner9 has joined #ruby
Drewch has quit [Quit: Computer has gone to sleep.]
<_br_> The symbol is broken for me here on firefox 25 and chrome 32
Solnse has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
MrPot4to has quit [Read error: Connection reset by peer]
burlyscudd has quit [Ping timeout: 264 seconds]
mjs2600 has joined #ruby
JRizzle has quit [Quit: Leaving]
khushildep has quit [Ping timeout: 246 seconds]
spider-mario has quit [Ping timeout: 252 seconds]
iliketurtles has quit [Quit: zzzzz…..]
MrPot4to has joined #ruby
machi has joined #ruby
RaCx has quit [Ping timeout: 246 seconds]
mjs2600 has quit [Remote host closed the connection]
rfy692_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
metallisto has joined #ruby
maletor has joined #ruby
machi has quit [Read error: Connection reset by peer]
cburyta has quit [Remote host closed the connection]
machi has joined #ruby
iamjarvo has quit [Ping timeout: 264 seconds]
<apeiros> osx 10.9, safari 7 - no problem.
<_br_> odd
<_br_> gentoo here, maybe I'm missing something
<apeiros> funny enough, the picture to show it is a broken link :)
spider-mario has joined #ruby
<_br_> hehe
randomnick_ has joined #ruby
<apeiros> chrome on osx fails to display it properly
<apeiros> firefox works fine
RaCx has joined #ruby
RaCx has quit [Client Quit]
RaCx has joined #ruby
<_br_> this one e.g. works for me http://codepoints.net/U+1F68C
<apeiros> same. but different font.
<apeiros> I'd say chrome doesn't have proper font fallback handling
<_br_> maybe its unstable here (32)
mark_locklear has quit [Ping timeout: 246 seconds]
R33C3 has quit [Remote host closed the connection]
<apeiros> your link works because it specifies the font and the specified font is embedded in the page
<apeiros> (Symbola)
<_br_> interesting
machi has quit [Ping timeout: 245 seconds]
jerius has quit [Quit: Computer has gone to sleep.]
mojjojo has quit [Quit: mojjojo]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
<_br_> on the road ... have a good evening guys
SHyx0rmZ has joined #ruby
jerius has joined #ruby
timonv has joined #ruby
magoo has quit [Quit: WeeChat 0.4.2]
jkhwan has quit [Remote host closed the connection]
<platzhirsch> _br_: indeeed
Voodoofish4301 has joined #ruby
jkhwan has joined #ruby
tvw has joined #ruby
funburn has joined #ruby
jrhe has joined #ruby
jkhwan has quit [Read error: Connection reset by peer]
RaCx has quit [Read error: Connection reset by peer]
jkhwan_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
coca_rails has quit [Remote host closed the connection]
mnemon has quit [Remote host closed the connection]
mjs2600 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
mnemon has joined #ruby
mjs2600 has joined #ruby
bret has left #ruby [#ruby]
<platzhirsch> font-family: Symbola,... well :D
timonv has quit [Read error: No route to host]
pwh has joined #ruby
metallisto has quit [Quit: ZNC - http://znc.in]
iliketurtles has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Mars` has joined #ruby
mojjojo has joined #ruby
metallisto has joined #ruby
RaCx has joined #ruby
tharindu has joined #ruby
jkhwan_ has quit [Remote host closed the connection]
mjs2600 has quit [Ping timeout: 245 seconds]
mary5030 has quit [Ping timeout: 245 seconds]
noop has quit [Ping timeout: 272 seconds]
mikesplain1 has quit [Ping timeout: 246 seconds]
tsykoduk is now known as zz_tsykoduk
jkhwan has joined #ruby
maletor has joined #ruby
coca_rails has joined #ruby
VTLob has joined #ruby
jkhwan has quit [Read error: Connection reset by peer]
tharindu has quit [Read error: Connection reset by peer]
sparrovv has quit [Quit: sparrovv]
Akuma has quit [Quit: So long sukkas!]
tharindu has joined #ruby
jkhwan has joined #ruby
mikesplain1 has joined #ruby
mary5030 has joined #ruby
Advocation has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
shadoi has quit [Remote host closed the connection]
shadoi has joined #ruby
jbpros has joined #ruby
shadoi has quit [Remote host closed the connection]
shadoi has joined #ruby
jkhwan has quit [Remote host closed the connection]
mjs2600 has joined #ruby
shadoi has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
tharindu has quit [Ping timeout: 245 seconds]
jkhwan has joined #ruby
shadoi has joined #ruby
Ripp__ has quit [Ping timeout: 245 seconds]
Tuxist has quit [Remote host closed the connection]
jkhwan has quit [Read error: Connection reset by peer]
shadoi has quit [Client Quit]
jkhwan has joined #ruby
petey_ has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
DarthGandalf has quit [Ping timeout: 245 seconds]
ldnunes has quit [Quit: Leaving]
tannerburson has quit [Quit: tannerburson]
whunt has quit [Read error: Operation timed out]
coca_rails has quit [Remote host closed the connection]
_5kg has quit [Ping timeout: 241 seconds]
magoo has joined #ruby
paul_k has quit [Remote host closed the connection]
_5kg has joined #ruby
Elhu has joined #ruby
zoee has joined #ruby
mjs2600 has joined #ruby
tannerburson has joined #ruby
Jetchisel has joined #ruby
psyl0n_ has quit []
whunt has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
shadoi has joined #ruby
mjs2600 has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
timonv has joined #ruby
<krz> when one has Foo::Bar. does this imply that Foo is a module?
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> krz: no
<apeiros> >> class Foo; Bar = 1; end; Foo::Bar
<eval-in> apeiros => 1 (https://eval.in/72040)
<withnale> I have an array of hashes and I'm in an each block. What's the best method for editing the hash?
nanoyak has quit [Quit: Computer has gone to sleep.]
bryansray has joined #ruby
<apeiros> withnale: all
mjs2600 has joined #ruby
bryansray is now known as proxie
DarthGandalf has joined #ruby
<apeiros> withnale: seriously, depends completely on what you actually want to do and is utterly unrelated to the hash being in an array and you being in an each block.
olistik has joined #ruby
vlad_starkov has joined #ruby
<Hanmac> apeiros: do you know the magic with #send + String != new symbol? ;P
mojjojo has quit [Quit: mojjojo]
<apeiros> Hanmac: uh, no?
<apeiros> send uses rb_intern, no?
<withnale> [ { :a => 1, :b => 2 }, { :a => 3, :b => 4 } ].each {|x| x[:c] = 0 }
<withnale> ^ simple example
rezzack has joined #ruby
<Hanmac> apeiros: i and workmad3 found that
<Hanmac> >> Object.new.send("bla") rescue nil; Symbol.all_symbols.grep(/bla/)
<eval-in> Hanmac => [] (https://eval.in/72041)
Elhu has quit [Quit: Computer has gone to sleep.]
<Hanmac> >> o=Object.new; def o.method_missing(*);end;o.send("bla") rescue nil; Symbol.all_symbols.grep(/bla/)
<eval-in> Hanmac => [:bla] (https://eval.in/72042)
<Hanmac> >> Object.new.bla rescue nil; Symbol.all_symbols.grep(/bla/)
<eval-in> Hanmac => [:bla] (https://eval.in/72043)
<apeiros> Hanmac: odd
shadoi1 has joined #ruby
kristofers has joined #ruby
<apeiros> iirc last time I checked Object#send it rb_intern'ed all input and as such should actually create symbols… maybe they changed that?
<Hanmac> specialy when comparing 1st and 2nd ... where defining method_missing makes a difference
dzhulk has quit [Ping timeout: 272 seconds]
jacobsmith has quit [Ping timeout: 245 seconds]
mjs2600 has quit [Remote host closed the connection]
petey has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
cburyta has joined #ruby
DonRichie has joined #ruby
jrhe has quit [Ping timeout: 245 seconds]
freezey has quit [Remote host closed the connection]
moneydouble has joined #ruby
tannerburson has quit [Quit: tannerburson]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ce_afk is now known as cescalante
tannerburson has joined #ruby
<s2013> elsif sa.include? "master" && sa.include? "access"
<s2013> whats wrong with that
<s2013> >> "foo bar".include? "foo" && "foo bar".include? "bar"
<eval-in> s2013 => /tmp/execpad-69743bf0fa85/source-69743bf0fa85:2: syntax error, unexpected tSTRING_BEG, expecting keyword_end ... (https://eval.in/72044)
mjs2600 has joined #ruby
burlyscudd has joined #ruby
<s2013> how would i fix it?
<apeiros> parens
<s2013> >> ("foo bar".include? "foo") && ("foo bar".include? "bar")
<eval-in> s2013 => true (https://eval.in/72045)
<s2013> o
<apeiros> ew
sparrovv has joined #ruby
ehaliewicz has joined #ruby
<apeiros> parens with the method calls
<s2013> thanks
<apeiros> "foo bar".include? "foo" && "foo bar".include? "bar --> ("foo bar".include? "foo" && "foo bar".include?) "bar
<s2013> o
<apeiros> that's how it's interpreted by ruby
<apeiros> and that's why it has a syntax error
<s2013> gotcha
<s2013> thanks
ValicekB has quit []
burlyscudd1 has joined #ruby
moneydouble has quit [Ping timeout: 264 seconds]
<Hanmac> s2013: i would prefer this:
<Hanmac> >>["foo","bar"].all?{|s| "foo bar".include?(s)}
<eval-in> Hanmac => true (https://eval.in/72046)
vlad_starkov has joined #ruby
Ripp__ has joined #ruby
asteros has quit [Quit: asteros]
mjs2600 has quit [Remote host closed the connection]
parduse has left #ruby [#ruby]
burlyscudd has quit [Read error: Operation timed out]
shadoi1 has quit [Quit: Leaving.]
<Hanmac> apeiros: hm there is Regexp.union but it uses | ... i wonder if its possible to make an Regexp that needs both (&) ;P
aspires has joined #ruby
<apeiros> doable with lookahead
parduse has joined #ruby
heidi has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
<platzhirsch> I really wonder if a does not leak memory unit test makes sense..
mrj has joined #ruby
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
freezey has joined #ruby
SHyx0rmZ has quit [Ping timeout: 272 seconds]
mary5030_ has joined #ruby
<apeiros> platzhirsch: what?
<platzhirsch> apeiros: check if a method might leak memory
mjs2600 has joined #ruby
cescalante is now known as ce_afk
mjs2600 has quit [Remote host closed the connection]
dallasm_ has quit [Remote host closed the connection]
ambushsabre has joined #ruby
mikepack has joined #ruby
Xeago has joined #ruby
<ambushsabre> brandonblack, do you happen to be the dude associated with this: https://github.com/mongodb/mongo-ruby-driver/ ?
hello has joined #ruby
dallasm_ has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
<hello> Hello
hello has left #ruby [#ruby]
jrhe has joined #ruby
blossom_ has quit [Quit: Page closed]
<s2013> thanks Hanmac
mr_red has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<Hanmac> platzhirsch: how its possible to check if a method leaks memory or not? like testing with a bicycle? but it under water and look if bubbles came out? ;P
jdguzman has joined #ruby
proxie has quit [Quit: Leaving...]
myappleguy has quit [Ping timeout: 265 seconds]
vlad_starkov has quit [Remote host closed the connection]
JesseH has quit [Quit: Leaving]
<platzhirsch> Hanmac: with GC.start and ObjectSpace.count_objects ^^
colonolGron has joined #ruby
<platzhirsch> ambushsabre: he/she surely is. Idling in #mongodb as well
jerius has quit [Quit: Computer has gone to sleep.]
hello has joined #ruby
ValicekB has joined #ruby
mjs2600 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
hello has left #ruby [#ruby]
lkba has joined #ruby
pothibo has joined #ruby
<ambushsabre> platzhirsch: thanks, I made a slight change to the tutorial (answered a question several people had), so I was wondering if he wanted to look it over and maybe add it. You can't do PR's for the wiki pages on github for some reason
SHyx0rmZ has joined #ruby
Mars` has quit [Remote host closed the connection]
zoee has quit [Quit: This computer has gone to sleep]
Mars` has joined #ruby
mr_red has joined #ruby
akonny has quit [Quit: akonny]
CreativeEmbassy has joined #ruby
vlad_starkov has joined #ruby
Drewch has joined #ruby
paul_k has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
mjs2600 has joined #ruby
Voodoofish4301 has quit [Ping timeout: 245 seconds]
<bnagy> platzhirsch: that is almost certainly not going to work
<platzhirsch> bnagy: that's how I found some memory leaks
bret has joined #ruby
whunt has joined #ruby
<bnagy> you'll possibly find >0
paul_k has quit [Ping timeout: 246 seconds]
<platzhirsch> yeah, you cannot expect to find 0
<bnagy> but nothing like even all the ruby leaks, let alone native leaks ( which is a much more common problem )
machi has joined #ruby
Virtualize|work has joined #ruby
BrixSat has joined #ruby
<BrixSat> Hello
<BrixSat> im having a problem with myql 2.9.1
workmad3 has joined #ruby
<BrixSat> i install mysql via gem install mysql and then my script complains about mysql
pkrnj has joined #ruby
<BrixSat> not existing
zz_tsykoduk is now known as tsykoduk
<BrixSat> Could not find mysql-2.9.1 in any of the sources (Bundler::GemNotFound)
heidi has joined #ruby
dangerousdave has joined #ruby
burlyscudd1 has quit [Quit: Leaving.]
nanoyak has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
machi has quit [Ping timeout: 240 seconds]
<BrixSat> ill google :)
BrixSat has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
Asitha has joined #ruby
<Asitha> Hi there - I was wondering if someone could help me figure out why I can't seem to store these post variables
whunt has quit [Quit: Computer has gone to sleep.]
<Asitha> Every time I click save, it runs through the script and acts as if it stored those values
<Asitha> But it doesn't
jonahoffline has joined #ruby
jonahR has quit [Ping timeout: 245 seconds]
jonahoffline is now known as jonahR
bradhe_ has quit [Remote host closed the connection]
<Asitha> This is what the console outputs
myappleguy has joined #ruby
jkamenik has quit [Quit: Leaving.]
paul_k has joined #ruby
Virtualize|work has quit [Quit: Leaving...]
dzhulk has joined #ruby
Scient has quit [Ping timeout: 264 seconds]
dunnzilla has left #ruby [#ruby]
mjs2600 has quit [Remote host closed the connection]
zeusmns_ has quit [Ping timeout: 264 seconds]
Mars` has joined #ruby
<bnagy> Asitha: #rubyonrails
<Asitha> thanks
zeusmns has joined #ruby
nomenkun has joined #ruby
Scient has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
nobitanobi has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nobitanobi has joined #ruby
mfmfmfmfmfmf has joined #ruby
tsykoduk is now known as zz_tsykoduk
Voodoofish430 has joined #ruby
Mars` has quit [Ping timeout: 245 seconds]
dallasm_ has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
Virtualize|work has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jkhwan has quit [Remote host closed the connection]
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
jkhwan has joined #ruby
tharindu has joined #ruby
dallasm_ has joined #ruby
carraroj has joined #ruby
carraroj has quit [Client Quit]
bigoldrock has quit [Read error: Operation timed out]
madhatter has quit [Ping timeout: 248 seconds]
bigoldrock1 has joined #ruby
madhatter has joined #ruby
dallasm_ has quit [Remote host closed the connection]
typicalbender has joined #ruby
zz_tsykoduk is now known as tsykoduk
preview has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 264 seconds]
jkhwan has quit [Ping timeout: 272 seconds]
jrhe has quit [Quit: jrhe]
akonny has joined #ruby
derebos has joined #ruby
mjs2600 has joined #ruby
tonni has joined #ruby
mengu has joined #ruby
Underbyte has quit [Ping timeout: 245 seconds]
RichardBaker has joined #ruby
asteros has joined #ruby
jkhwan has joined #ruby
jkhwan has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
iliketurtles has joined #ruby
ambushsabre has quit [Read error: Connection reset by peer]
cody-- has quit [Quit: derp]
reset has quit [Quit: Leaving...]
sambao21 has quit [Quit: Computer has gone to sleep.]
iliketurtles has quit [Client Quit]
sambao21 has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
Drewch has quit [Quit: Computer has gone to sleep.]
mary5030_ has quit [Ping timeout: 272 seconds]
cody-- has joined #ruby
zerowaitstate has quit [Quit: Ex-Chat]
jrhe has joined #ruby
Voodoofish4301 has joined #ruby
yfeldblum has joined #ruby
ce_afk is now known as cescalante
maletor has joined #ruby
shadoi1 has joined #ruby
Lewix has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
jrhe has quit [Client Quit]
jerius has joined #ruby
whunt has joined #ruby
mjs2600 has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
Virtualize|work has quit [Read error: Connection reset by peer]
mjs2600 has joined #ruby
proxie has joined #ruby
guiocavalcanti has quit [Read error: Connection reset by peer]
guiocava_ has joined #ruby
Voodoofish430 has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
jerius has quit [Client Quit]
iliketurtles has joined #ruby
spider-mario has quit [Remote host closed the connection]
zigomir has quit [Ping timeout: 246 seconds]
Mars` has joined #ruby
dallasm_ has joined #ruby
vaneda has joined #ruby
MrPot4to has quit [Read error: Connection reset by peer]
_solomon has joined #ruby
tvw has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
bigoldrock1 has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
vaneda has quit [Client Quit]
dallasm_ has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
jkhwan has quit [Remote host closed the connection]
dallasm_ has joined #ruby
dallasm_ has quit [Remote host closed the connection]
pskosinski has joined #ruby
proxie has quit [Quit: Leaving...]
evenix has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
Advocation has joined #ruby
dzhulk has quit [Quit: Leaving.]
ffranz has quit [Quit: Leaving]
iamjarvo has quit [Ping timeout: 245 seconds]
xk_id has joined #ruby
Underbyte has joined #ruby
dallasm_ has joined #ruby
Mars` has quit [Ping timeout: 272 seconds]
Advocation has quit [Client Quit]
hiall has joined #ruby
amoli has joined #ruby
jibi has joined #ruby
newUser1234 has quit [Read error: No route to host]
newUser1234 has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dayepa has quit [Quit: dayepa]
bigoldrock has joined #ruby
Liquid-- has joined #ruby
jibi has quit [Read error: Connection reset by peer]
dayepa has joined #ruby
skaflem has quit [Quit: Leaving]
psyl0n has joined #ruby
ambushsa_ has joined #ruby
apeiros has quit [Remote host closed the connection]
beardedninja has quit [Read error: Connection reset by peer]
jrhe has joined #ruby
reset has joined #ruby
apeiros has joined #ruby
Kricir has joined #ruby
postmodern has joined #ruby
bigoldrock1 has joined #ruby
bigoldrock has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
Asitha has quit []
Virtualize|work has joined #ruby
jragon has quit [Ping timeout: 272 seconds]
krz has quit [Ping timeout: 265 seconds]
machi has joined #ruby
jibi has joined #ruby
jbpros has quit [Quit: jbpros]
mfmfmfmfmfmf has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
matematikaadit has joined #ruby
machi has quit [Ping timeout: 272 seconds]
pragmatism has joined #ruby
ace_striker_ has quit [Ping timeout: 250 seconds]
deception has quit [Quit: Goodbye]
mojjojo has joined #ruby
Virtualize|work has quit [Quit: Leaving...]
p0wn3d has quit [Quit: ChatZilla 0.9.90.1 [Firefox 17.0.8/20130811004308]]
Virtualize|work has joined #ruby
IceColdMax has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
paul_k has quit [Remote host closed the connection]
resno has joined #ruby
nobitanobi has quit [Disconnected by services]
testest has joined #ruby
mikesplain1 has quit [Ping timeout: 272 seconds]
Liquid-- has quit [Quit: Computer has gone to sleep.]
Nogbit has joined #ruby
Liquid-- has joined #ruby
forced_request has quit [Remote host closed the connection]
proxie has joined #ruby
Virtualize|work has quit [Read error: Connection reset by peer]
krz has joined #ruby
tannerburson has quit [Quit: tannerburson]
nobitanobi has joined #ruby
<nobitanobi> morning folkz
kaspergrubbe has joined #ruby
testest has quit [Ping timeout: 272 seconds]
mikesplain2 has joined #ruby
sammyo has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<havenwood> g'morn
newUser1234 has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
tharindu has joined #ruby
dyeske has joined #ruby
<dyeske> anyone know how to work with dtd's with nokogiri?
sambao21 has quit [Quit: Computer has gone to sleep.]
<dyeske> like this
<dyeske> <!ATTLIST document id ID #IMPLIED>
yfeldblu_ has joined #ruby
newUser1234 has joined #ruby
nanoyak has joined #ruby
proxie has quit [Read error: Connection reset by peer]
Virtualize|work has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
dallasm_ has quit [Remote host closed the connection]
jbpros has joined #ruby
soxet has joined #ruby
phinfonet has joined #ruby
jonahR has quit [Quit: jonahR]
nobitanobi has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
soxet has quit [Client Quit]
tharindu has quit [Ping timeout: 272 seconds]
soxet has joined #ruby
hiall has quit [Quit: hiall]
pixelgremlins has quit [Ping timeout: 245 seconds]
soxet has quit [Client Quit]
RaCx has quit [Quit: Computer has gone to sleep.]
soxet has joined #ruby
guiocava_ has quit [Remote host closed the connection]
thelorax123 has quit [Remote host closed the connection]
Mars` has joined #ruby
<Hanmac> dyeske: do you want to add DTD to the xml file? look at create_internal_subset
mlpinit has quit [Remote host closed the connection]
kaldrenon has quit [Remote host closed the connection]
harrymoreno has joined #ruby
mlpinit has joined #ruby
thelorax123 has joined #ruby
duggiefresh has quit [Remote host closed the connection]
kaldrenon has joined #ruby
kindkid7 has quit [Quit: Page closed]
vlad_starkov has joined #ruby
Lewix has joined #ruby
sambao21 has quit [Read error: Connection timed out]
platzhirsch has quit [Read error: Operation timed out]
sambao21 has joined #ruby
dallasm_ has joined #ruby
saarinen has quit [Quit: saarinen]
smathieu_ has joined #ruby
volty has joined #ruby
paul_k has joined #ruby
linguini has joined #ruby
ignoch has joined #ruby
tvw has joined #ruby
kaldrenon has quit [Ping timeout: 248 seconds]
rfy692 has quit [Quit: Leaving]
mrsolo has joined #ruby
sambao21 has quit [Client Quit]
axilla has joined #ruby
smathieu has quit [Ping timeout: 264 seconds]
justinwe1ss has quit [Quit: leaving]
duggiefresh has joined #ruby
<krz> if i create a module for the sole purpose of namespacing. is that a valid reason for a module to exist?
banister has joined #ruby
thekkid has quit [Remote host closed the connection]
<linguini> "Fork documenting-ruby's fork of Ruby on github."
<linguini> Ah, ruby documentation.
sambao21 has joined #ruby
<volty> krz: a sufficient reason
smathieu_ has quit [Remote host closed the connection]
kaldrenon has joined #ruby
smathieu has joined #ruby
hiyosi has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
mercwithamouth has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
mjs2600 has joined #ruby
iliketurtles has joined #ruby
drumusician has quit [Ping timeout: 240 seconds]
nomenkun has quit [Remote host closed the connection]
ringaroses has joined #ruby
nomenkun has joined #ruby
IceColdMax has quit [Quit: Textual IRC Client: www.textualapp.com]
kaldrenon has quit [Ping timeout: 246 seconds]
ephemerian has joined #ruby
smathieu has quit [Ping timeout: 252 seconds]
kaspergrubbe has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
IceColdMax has joined #ruby
Voodoofish430 has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
krz has quit [Quit: krz]
iliketur_ has joined #ruby
iliketurtles has quit [Ping timeout: 272 seconds]
magoo_ has joined #ruby
magoo has quit [Ping timeout: 272 seconds]
mengu has quit [Read error: Connection reset by peer]
ignoch has quit [Ping timeout: 264 seconds]
Voodoofish4301 has quit [Ping timeout: 245 seconds]
Bira has joined #ruby
gadgetoid has quit [Ping timeout: 260 seconds]
nomenkun has quit [Ping timeout: 248 seconds]
Voodoofish4301 has joined #ruby
jbpros has quit [Quit: jbpros]
Voodoofish430 has quit [Ping timeout: 252 seconds]
aryaching has quit [Ping timeout: 272 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
gadgetoid has joined #ruby
myappleguy has quit [Ping timeout: 240 seconds]
simoz has joined #ruby
TigerWolf has joined #ruby
Ripp__ has quit []
mikesplain2 has quit [Ping timeout: 248 seconds]
smathieu has joined #ruby
typicalbender has quit [Quit: Leaving.]
nisstyre has joined #ruby
Solnse has quit [Ping timeout: 252 seconds]
jmazzi has joined #ruby
kristofers has quit [Remote host closed the connection]
failshel_ has joined #ruby
kcombs has quit [Remote host closed the connection]
bradleyprice has joined #ruby
cescalante is now known as ce_afk
s2013 has quit [Ping timeout: 240 seconds]
soxet has quit [Ping timeout: 264 seconds]
evocore has joined #ruby
Virtualize|work has quit [Quit: Leaving...]
cantonic has quit [Quit: cantonic]
vpretzel has quit [Quit: Adios!]
jmazzi has quit [Client Quit]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noname001__ has joined #ruby
<evocore> hello I just started using ruby with vagrant and having trouble figuring something out http://paste.laravel.com/19m9
<evocore> basically just trying to convert assigning a variable to dynamicly doing it
failshell has quit [Ping timeout: 272 seconds]
failshel_ has quit [Ping timeout: 246 seconds]
<evocore> I thought config.vagrant.item.to_s = value would do it, but I assume item.to_s is conflicting with config.vagrant
Tearan has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
matematikaadit_ has joined #ruby
<Hanmac> evocore: why are you use "config.vagrant.item.to_s = value" wouldt "config.vagrant.item = value.to_s" makes more sense?
tsykoduk is now known as zz_tsykoduk
falood has joined #ruby
matematikaadit has quit [Ping timeout: 240 seconds]
<havenwood> evocore: `if value` instead of `if !value.nil?`
guiocavalcanti has joined #ruby
elektronaut has quit [Quit: ZNC - http://znc.in]
<evocore> completely new to this
heftig has quit [Quit: Quitting]
<havenwood> evocore: are you trying to call the method "item" or are you trying to dynamically send a method
<havenwood> ?
<evocore> Hanmac: its supposed to use item from settings[vagrant_vm]['vagrant'].each do |item, value|
<Hanmac> evocore: i think you want this: config.vagrant.send("#{item}=", value)
<evocore> havenwood: im not really sure how ruby works yet, but essentially the first command used to be config.vagrant.key = value
<havenwood> evocore: I think you were looking for more like: config.vagrant.send item, value
<havenwood> evocore: what Hanmac said
<evocore> let me give that a shot
machi has joined #ruby
heftig has joined #ruby
<Hanmac> havenwood: if i get one pence each time someone said "what Hanmac said" i would be rich ;P
shadoi1 has quit [Quit: Leaving.]
interact_ has quit [Remote host closed the connection]
<evocore> environment.rb:502:in `host': undefined method `new' for :":detect"
asobrasil has left #ruby [#ruby]
<evocore> its pulling from yaml, host: ':detect'
Bira has quit [Remote host closed the connection]
<evocore> so item = host, value = ':detect'
interactionjaxsn has joined #ruby
machi_ has joined #ruby
machi has quit [Read error: Connection reset by peer]
<evocore> config.vagrant.send("#{item}=", value)
Liquid-- has quit [Quit: Textual IRC Client: www.textualapp.com]
dallasm_ has quit [Remote host closed the connection]
bdnelson has quit [Ping timeout: 252 seconds]
acrussell has quit [Quit: Leaving.]
shadoi1 has joined #ruby
<havenwood> evocore: That doesn't make sense. For example, to do your `config.vagrant.host = 'test'` you'd have `item, value = :host, 'test'`
<evocore> well teh default line that works is config.vagrant.host = :detect
<havenwood> That is, item would be :host and value woudl be 'test'
emocakes has joined #ruby
interactionjaxsn has quit [Ping timeout: 252 seconds]
<evocore> thats one of the lines I am trying to convert ot be dynamic
<havenwood> evocore: then `item = :host` and `value = :detect`
randomnick_ has quit [Quit: Leaving]
<havenwood> evocore: they are both symbols
machi_ has quit [Ping timeout: 252 seconds]
<evocore> so I need to confirm item to a symbol before sending it?
<evocore> convert*
<Hanmac> no
Xeago has quit [Remote host closed the connection]
<evocore> in the yaml which I cant change it has host: ':detect'
shanlar has quit [Quit: Be back later]
<Hanmac> that should not be the problem
<evocore> so if its needs to be converted from string to symbol I would have to to_sym right?
<evocore> oh hmm
Xeago has joined #ruby
rektide has left #ruby [#ruby]
<Hanmac> but where does this "new" in your error message come from? did you add it to your code?
<evocore> no, no idea where its getting new
<evocore> its a vagrantfile so im not sure where its getting it at
jprovazn has quit [Quit: Odcházím]
<evocore> this is what I have right now http://paste.laravel.com/19mo
saarinen has joined #ruby
parus_ is now known as parus
<evocore> hmm actually the ssh ones work, its just the string of :detect that isnt working
<Hanmac> evocore: hm you can try config.vagrant.send("#{item}=", value.to_s) maybe that works better?
banister has joined #ruby
<evocore> `host': undefined method `new' for ":detect":String
Davey has joined #ruby
<evocore> when I comment it out, the rest all works so its just that one `host: ':detect'` yaml line
shanlar has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Tearan has joined #ruby
elux has quit [Quit: Bye!]
nisstyre has quit [Quit: Leaving]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fuhgeddaboudit has joined #ruby
lfox has quit [Quit: ZZZzzz…]
Xeago has quit [Ping timeout: 264 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
bradleyprice has quit [Remote host closed the connection]
dgfdgf has quit [Ping timeout: 246 seconds]
sergicles has joined #ruby
bradleyprice has joined #ruby
`MArceLL` has joined #ruby
axl_ has quit [Quit: axl_]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
nucatus has quit [Ping timeout: 245 seconds]
funburn has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<Hanmac> evocore: it seems that the yaml file does not fit ... try this line "config.vagrant.send("#{item}=", value)" with this in the config: "host: :detect" (so without '' and "")
volty has left #ruby ["Konversation terminated!"]
tharindu has joined #ruby
nanoyak has joined #ruby
danshult_ has joined #ruby
orionstein is now known as orionstein_away
hashpuppy has joined #ruby
<evocore> I think that worked
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
Speed has joined #ruby
<evocore> I also tried this with the original yaml document and it doesnt error out either http://paste.laravel.com/19mp
<evocore> not sure if I am just making stuff up or if that could really do it
<hashpuppy> if `a` is a Hash, is this the best way to divide each value of the hash by 5.0? Hash[a.map{|k, v| [k, v / 5.0]}]
AlSquire has joined #ruby
* Hanmac giggles because he sees that the syntax-highligher on http://paste.laravel.com is broken ;D
robbyoconnor has joined #ruby
tharindu has quit [Ping timeout: 246 seconds]
<evocore> I probably shouldnt use a php pastebin lol
Bira has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
<evocore> Hanmac: is that valid ruby to do something like that? to detect if :, strip it and then convert to sym?
<Hanmac> hm it is valid ruby code, but i would prefer to fix the config files itself than write around of it
claymore has quit [Quit: Leaving]
<evocore> I can try, but its an upstream repo
<evocore> so little bit more difficult
ni772591 has joined #ruby
matematikaadit_ is now known as matematikaadit
ni772591 has left #ruby [#ruby]
ni772591 has joined #ruby
ni772591 has left #ruby [#ruby]
<evocore> thanks for your input though, I really appreciate it, my first ruby code ahha
mfmfmfmfmfmf has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
mklappstuhl has joined #ruby
jkhwan has joined #ruby
<Hanmac> evocore: you can short your code like that: config.vagrant.send("#{item}=", value.start_with?(':') ? value[1..-1].to_sym : value)
cantonic has joined #ruby
<evocore> oh nice
jkline has joined #ruby
<evocore> is if !value.nil? the same as if value ?
<evocore> both check for nil
enebo has quit [Quit: enebo]
<Hanmac> evocore: yes and no ... "if value" is a bit faster than "if !value.nil?" because both "nil?" and "!" are method calls
TaxmanBD has joined #ruby
<evocore> interesting
jerius has joined #ruby
stringoO has quit [Quit: stringoO]
<Hanmac> but that means also: if something overwrites this methods, "if value" does not care about (but that would be very evil code)
sergicles has quit [Quit: sergicles]
<Hanmac> PS: your line even more shorted using regex config.vagrant.send("#{item}=", /:(.+)/ =~ value ? $1.to_sym : value)
olistik has quit [Remote host closed the connection]
<evocore> I was mainly looking to stop the code from running when the yaml had value: null
<evocore> ugh regex lol
<evocore> looks awesome though
jerius has quit [Client Quit]
<evocore> wow that worked, thats great
zarubin has quit [Ping timeout: 264 seconds]
b00stfr3ak has quit [Ping timeout: 272 seconds]
duggiefresh has quit [Ping timeout: 272 seconds]
fuhgeddaboudit has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
kirun has quit [Quit: Client exiting]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SHyx0rmZ has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has quit [Remote host closed the connection]
sparrovv has quit [Quit: sparrovv]
Lietuvis has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
TaxmanBD has quit [Ping timeout: 272 seconds]
<MrZYX> one should also mention if false != if false.nil?
<mojjojo> when doing revenue = Revenue.where(primary_key_hash).first i am getting weird error PG::Error: ERROR: column revenues.ad_network does not exist
<evocore> nil is just null value?
<evocore> and false is boolean?
<MrZYX> yes
<evocore> good to know, thank you
machi has joined #ruby
<evocore> is there a method that checks them all?
<evocore> blank, false, nil
petey has quit [Remote host closed the connection]
<MrZYX> ruby itself has no concept of "blank"
<evocore> you just do if val == '' ?
<MrZYX> many objects have an #empty? method
<MrZYX> but nil and false don't
duggiefresh has joined #ruby
freezey has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
mlpinit has quit [Read error: Connection reset by peer]
johnnyfuchs has quit [Quit: Leaving.]
mfmfmfmfmfmf has quit [Remote host closed the connection]
<mojjojo> is there any alternative to .first?
<mojjojo> as it is messing up my code when doing revenue = Revenue.where(primary_key_hash).first
kevind has quit [Quit: kevind]
nanoyak has joined #ruby
volty has joined #ruby
freezey has joined #ruby
rezzack has quit [Quit: Leaving.]
mojjojo has quit [Quit: mojjojo]
mrsolo has joined #ruby
rezzack has joined #ruby
<ambushsa_> brandonblack: did you get my message from earlier by any chance?
rezzack has quit [Client Quit]
rjhunter has joined #ruby
Lietuvis has quit []
aryaching has joined #ruby
sepp2k1 has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
<linguini> ri seems to paste words together periodically. E.g. ri String.[] | grep asubstring . Is there some way to fix my local documentation?
rezzack has joined #ruby
mary5030 has quit [Remote host closed the connection]
falood has quit []
mercwithamouth has joined #ruby
d45h has joined #ruby
<linguini> I'm using ri 4.0.1; ri 3.12.3 on another machine does not paste "a substring" together (as in the above).
kaspergrubbe has quit [Read error: Operation timed out]
TaxmanBD has joined #ruby
n4dir has joined #ruby
evocore has quit [Quit: evocore]
nanoyak has quit [Quit: Computer has gone to sleep.]
amoli has quit [Ping timeout: 245 seconds]
TaxmanBD has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dachi has joined #ruby
aspires has quit []
<n4dir> Can someone point me to a docu about https://paste.debian.net/67097/ ("let" and "around"). I need to understand rspec.
amacgregor_ has joined #ruby
bradhe has quit [Remote host closed the connection]
sn0wb1rd has quit [Ping timeout: 246 seconds]
valesk has joined #ruby
bradhe has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
zz_taion809 is now known as taion809
jibi has quit [Quit: .]
Evixion has quit []
sn0wb1rd has joined #ruby
tvw has quit []
cantonic has quit [Ping timeout: 252 seconds]
benwoody has quit [Quit: benwoody]
kevinykchan has joined #ruby
cantonic has joined #ruby
Monie has joined #ruby
zz_tsykoduk is now known as tsykoduk
burlyscudd has joined #ruby
reset has quit [Quit: Leaving...]
jkline has quit [Quit: jkline]
momomomomo has joined #ruby
zarubin has joined #ruby
mojjojo has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
MrZYX is now known as MrZYX|off
aryaching has quit [Ping timeout: 252 seconds]
benwoody has joined #ruby