jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
Xeago has quit [Remote host closed the connection]
htmldrum has joined #ruby
ur5us has joined #ruby
ramfjord_ has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
diegoviola has quit [Quit: WeeChat 1.4]
ramfjord has quit [Ping timeout: 248 seconds]
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jobewan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
spuk has quit [Ping timeout: 240 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
diegoviola has joined #ruby
pdoherty has joined #ruby
baweaver has joined #ruby
Guest23107 is now known as James
James is now known as Guest22411
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
babblebre has quit [Quit: Connection closed for inactivity]
pietr0 has quit [Quit: pietr0]
jen_ has joined #ruby
sudoubuntu has joined #ruby
<jen_> Trying to get my head around Spree Commerce - anyone here familiar with this system?
baweaver has quit [Remote host closed the connection]
<jen_> or should I ask in Ruby On Rails channel?
mdw has quit [Ping timeout: 268 seconds]
RegulationD has quit [Remote host closed the connection]
idefine has joined #ruby
sp4rrow has joined #ruby
shanemcd has quit [Remote host closed the connection]
rattatmatt has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
mdw has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
jen_ has left #ruby [#ruby]
mdw has quit [Max SendQ exceeded]
failshell has joined #ruby
blackmesa has joined #ruby
sp4rrow has quit [Ping timeout: 244 seconds]
elifoster has quit [Ping timeout: 268 seconds]
sepp2k has quit [Quit: Leaving.]
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
jeanlinux has joined #ruby
cyclonis has joined #ruby
solocshaw has quit [Ping timeout: 248 seconds]
mdw has joined #ruby
DenysLins has joined #ruby
mondok has quit [Ping timeout: 248 seconds]
mattwildig has quit [Remote host closed the connection]
DenysLins has left #ruby [#ruby]
htmldrum has quit [Ping timeout: 252 seconds]
hxegon has quit [Quit: BRB]
gizmore has joined #ruby
sp4rrow has joined #ruby
hxegon has joined #ruby
stannard has joined #ruby
deuxclique has joined #ruby
gizless has joined #ruby
gizmore|2 has joined #ruby
Rodya_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
eurialo has quit [Ping timeout: 240 seconds]
gizmore has quit [Ping timeout: 252 seconds]
htmldrum has joined #ruby
gizmore has joined #ruby
Gasher has quit [Quit: Leaving]
gizless has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Quit: WeeChat 1.4]
dc1 has joined #ruby
deuxcliq_ has joined #ruby
rattatmatt has joined #ruby
whippythellama has quit [Quit: WeeChat 1.4]
mdw has quit [Ping timeout: 276 seconds]
Es0teric has joined #ruby
gizmore|2 has quit [Ping timeout: 244 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
snockerton1 has joined #ruby
gizless has joined #ruby
deuxclique has quit [Ping timeout: 248 seconds]
mdw has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snockerton has quit [Ping timeout: 252 seconds]
htmldrum has quit [Ping timeout: 264 seconds]
cdg has quit [Remote host closed the connection]
dc1 has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
ur5us has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 244 seconds]
gizmore has joined #ruby
mostlybadfly has joined #ruby
gizmore|2 has joined #ruby
deuxcliq_ has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
solocshaw has joined #ruby
gizless has quit [Ping timeout: 244 seconds]
mdw has quit [Ping timeout: 268 seconds]
<shevy> long live ruby!
<cyclonis> is learning ruby book a good resource
<cyclonis> im a python guy looking to learn anything language
cdg has quit [Ping timeout: 244 seconds]
diegoviola has quit [Read error: Connection reset by peer]
<shevy> it depends
<cyclonis> well im a penetration tester
Jardayn has quit [Ping timeout: 244 seconds]
<shevy> if you are good in python, most books will contain some information that you won't need
<cyclonis> oh ok
last_staff has quit [Quit: last_staff]
gizless has joined #ruby
Xeago has joined #ruby
<shevy> for me, the old pickaxe helped a lot in 2004; the version after that, in ... 2008 or so, did not help me as much so it was not really worth the cost. the first one was fine though
gizmore has quit [Ping timeout: 264 seconds]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<cyclonis> ok
gizmore|2 has quit [Ping timeout: 248 seconds]
gizmore has joined #ruby
rmulligan has joined #ruby
kirun has quit [Quit: Client exiting]
nerium has joined #ruby
gizmore|2 has joined #ruby
ramfjord_ has quit [Ping timeout: 268 seconds]
gizmore|3 has joined #ruby
<shevy> you could give Eloquent Ruby a try
spuk has joined #ruby
eregi has quit [Ping timeout: 260 seconds]
gizless has quit [Ping timeout: 276 seconds]
gizmore has quit [Ping timeout: 268 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
Vingador has joined #ruby
toretore has joined #ruby
gizmore|2 has quit [Ping timeout: 276 seconds]
RickHull has left #ruby [#ruby]
gizmore|3 has quit [Ping timeout: 248 seconds]
IrishGringo has joined #ruby
maikowblue has quit [Quit: .]
intrigueD has quit [Remote host closed the connection]
jenrzzz has joined #ruby
harryh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
jobewan has joined #ruby
benlieb has quit [Quit: benlieb]
sneakerhax has quit [Quit: back later]
terlar has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
Guest22411 is now known as James
Snowy has quit [Remote host closed the connection]
Cohedrin has quit [Read error: Connection reset by peer]
James is now known as Guest10161
jeanlinux has quit [Remote host closed the connection]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
jeanlinux has joined #ruby
Cohedrin has joined #ruby
vdamewood has quit [Quit: Life beckons.]
mdw has joined #ruby
shanemcd has joined #ruby
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
idefine has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
diegoviola has joined #ruby
justbleed has joined #ruby
marr has quit [Ping timeout: 244 seconds]
ivanskie_ has joined #ruby
shanemcd has quit [Ping timeout: 250 seconds]
renews has joined #ruby
amincd has joined #ruby
jenrzzz has joined #ruby
<amincd> Hi, can someone ELI5 how the arr.sort block code works to reverse the sort order?
ivanskie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<amincd> where do the arguments in the block code come from? e.g. arr.sort {|a, b| b <=> a }
<amincd> where is the block getting 'a' and 'b' from
<shevy> you define it there
<shevy> a good example would be key, value pair in a hash
ivanskie_ has joined #ruby
ivanskie_ has quit [Client Quit]
<amincd> but what do 'a' and 'b' represent?
pawnbox has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
failshell has quit [Remote host closed the connection]
<shevy> that was your example
<shevy> here is a better one: [2, 1, 3].sort_by{ |i| -i } will return [3, 2, 1]
despai has joined #ruby
<amincd> ok I should have read the article you linked
uglybandersnatch has joined #ruby
<amincd> it goes into the details of the background mechanics
mdw has quit [Ping timeout: 248 seconds]
<shevy> the example with "def <=>(other_item)" gives a nice overview
<toretore> a and b are each pair that is compared to sort the list
<shevy> 3 states ... return 0, return -1, and return 1
pawnbox has quit [Ping timeout: 276 seconds]
idefine has quit [Remote host closed the connection]
<amincd> toretore: but where do 'a' and 'b' come from?
<amincd> what value gets assigned to them?
<toretore> that depends on the sorting algorithm
uglybandersnatch has quit [Ping timeout: 240 seconds]
sp4rrow has joined #ruby
<amincd> toretore: I'm a little confused. In the code block after arr.sort, aren't 'a' and 'b' always assigned the same way?
<toretore> the block runs x number of times and (a,b) change for each iteration
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
<amincd> toretore: yes I know that..
idefine has joined #ruby
<toretore> what are you asking?
<amincd> for the first iteration, which value will be assigned to 'a', and which value assigned to 'b'?
<toretore> that is what depends on the sorting algorithm used
<amincd> say in Array.[]("a", d", e", "b") {|a, b| b <=> a}
<toretore> this is internal to #sort, you'd have to read the source to find out
<toretore> >> [3, 1, 2].sort{|a,b| p [a, b]; 0 }
<ruby[bot]> toretore: # => [1, 2] ...check link for more (https://eval.in/530801)
<amincd> err.. in Array.[]("a", d", e", "b").sort {|a, b| b <=> a}
<amincd> toretore: do you know where I can find the source?
<havenwood> amincd: Use the Array literal: ["a", d", e", "b"]
<havenwood> amincd: Or a little sugar: %w[a d e b]
<havenwood> amincd: But avoid Array.new, String.new, Hash.new, Symbol.new, etc in favor of the literals.
<toretore> especially Array.[], i didn't even know that existed
<amincd> havenwood: ok. Any particular reason?
eregi has joined #ruby
<havenwood> amincd: The literals exist for the simplest, most common case. They're quickly recognizable and are the simplest case.
<amincd> havenwood: ok
vishwa has joined #ruby
<havenwood> amincd: It's the most common stuff that has literals. They're the idiomatic form.
M-Technic has joined #ruby
<havenwood> amincd: Then when you see a non-literal you know there's a reason. Something outside the norm.
<vishwa> Dudes, I have an array of numbers. How do I use inject to get a new array that contains the different of successive elements?
jobewan has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
<vishwa> *difference
<havenwood> amincd: Like: Hash.new { |h, k| h[k] = [] }
tjohnson has quit [Quit: Connection closed for inactivity]
<havenwood> amincd: Or: Array.new(3) { rand }
<havenwood> etc
<amincd> havenwood: I see
renews has quit [Quit: Take my advice. I don't use it anyway]
<amincd> thanks
<havenwood> you're welcome!
<havenwood> vishwa: map
<havenwood> vishwa: next
<havenwood> vishwa: oh, i might have misunderstood your query
<havenwood> vishwa: I was thinking you wanted: map &:next
baweaver has joined #ruby
cyclonis has quit [Ping timeout: 248 seconds]
<havenwood> vishwa: What's the "different of successive elements"?
<vishwa> difference
<Ox0dea> >> [3,5,6,2].each_cons(2).map { |a, b| a - b } # vishwa
<ruby[bot]> Ox0dea: # => [-2, -1, 4] (https://eval.in/530803)
rmulligan has joined #ruby
<vishwa> perfect mate Ox0dea thanks
<Ox0dea> Sure thing.
karapetyan has quit [Ping timeout: 244 seconds]
<vishwa> Ox0dea: how do you know it only considers adjacent elements? is that how map works?
<Ox0dea> vishwa: That's how #each_cons works.
<vishwa> what would you do for 'all pairs' difference?
Rodya_ has joined #ruby
<Ox0dea> vishwa: In explicit groups of two, you mean?
<havenwood> vishwa: combinations or permutations?
<Ox0dea> Ah, yeah, combination.
<havenwood> repeated combination*
<havenwood> vishwa: compare `combination(2).to_a` and `repeated_combination(2).to_a`
<vishwa> permutations, actually
<vishwa> ah, alright thanks
<Ox0dea> >> Array.instance_methods.grep /ation/
<ruby[bot]> Ox0dea: # => [:permutation, :combination, :repeated_combination, :repeated_permutation] (https://eval.in/530804)
<havenwood> vishwa: permutation(2).to_a
jenrzzz has quit [Ping timeout: 240 seconds]
vishwa has left #ruby [#ruby]
<havenwood> vishwa: repeated_permutation(2).to_a
baweaver has quit [Ping timeout: 240 seconds]
supplication has quit [Quit: Leaving]
rmulligan has quit [Ping timeout: 252 seconds]
vishwa has joined #ruby
rattatmatt has quit []
<vishwa> How do you subtract two utc datetimes? I want the output in minutes
<havenwood> vishwa: what have you tried?
FooMunki has quit [Quit: FooMunki]
<vishwa> i have no idea where to start. I was looking into converting to datetime objects
<vishwa> and then figuring it out from there
eregi_ has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
<Radar> vishwa: ^
<toretore> that's some quick typing
slackbotgz has joined #ruby
<shevy> fingers of speed
moeabdol has quit [Ping timeout: 250 seconds]
<havenwood> vishwa: seconds to minutes conversion is mathy
<vishwa> holy shit that was fast hah thanks
<Radar> toretore: ain't nobody got time for (slow typists)
eregi has quit [Ping timeout: 244 seconds]
<shevy> havenwood lol
shinnya has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
diegoviola has quit [Quit: WeeChat 1.4]
mattwildig has joined #ruby
hxegon has quit [Quit: BRB]
IrishGringo has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
tvon has joined #ruby
<tvon> Is there a way to set “global” flags to for specific gems when they are built? E.g., what you can do with ‘bundle config’ but don’t want it specific to bundler.
LoneHermit has quit [Ping timeout: 252 seconds]
ivanskie_ has joined #ruby
stannard has quit [Remote host closed the connection]
arescorpio has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
Khoyo has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
x77686d has joined #ruby
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
workmad3 has joined #ruby
jeanlinux has quit [Remote host closed the connection]
Guest10161 is now known as James
James is now known as Guest93829
cyclonis has joined #ruby
eregi_ has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
RegulationD has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
jayc0b0 has joined #ruby
infernix has quit [Ping timeout: 260 seconds]
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
RegulationD has quit [Ping timeout: 248 seconds]
pawnbox has quit [Ping timeout: 264 seconds]
nogic has joined #ruby
postmodern has joined #ruby
htmldrum has joined #ruby
nogic has quit [Ping timeout: 250 seconds]
hgl has quit [Quit: Quit]
statelesscode has quit [Quit: statelesscode]
slackbotgz has quit [Remote host closed the connection]
eregi has joined #ruby
htmldrum has quit [Ping timeout: 248 seconds]
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has joined #ruby
mjc_ has joined #ruby
<cyclonis> anyone aroiund/
cyclonis has quit [Quit: leaving]
siaw has quit [Quit: siaw]
<havenwood> cyphactor: always
<havenwood> cyclo, and poof
<havenwood> cyphactor: sry, mt
infernix has joined #ruby
<Ox0dea> >> {a: 17}.merge(a: 25) { |_, o, n| o + n }
<ruby[bot]> Ox0dea: # => {:a=>42} (https://eval.in/530807)
<Ox0dea> Just as a curiosity, how to do that without opening a block or defining some Proc elsewhere?
neanderslob has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
UtkarshRay has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
Sucks has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
UtkarshRay has joined #ruby
pwnd_nsfw has joined #ruby
rmulligan has joined #ruby
Es0teric has joined #ruby
karapetyan has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
Rodya_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
norc_ has joined #ruby
amincd has quit [Quit: Page closed]
htmldrum has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
vim_shim has quit [Ping timeout: 276 seconds]
norc has quit [Ping timeout: 244 seconds]
pdoherty has quit [Ping timeout: 276 seconds]
CaGlint has joined #ruby
neanderslob has quit [Ping timeout: 244 seconds]
neanderslob has joined #ruby
krz has joined #ruby
nerium has quit [Quit: nerium]
symm- has quit [Ping timeout: 248 seconds]
vim_shim has joined #ruby
darkf has joined #ruby
Rodya_ has quit [Remote host closed the connection]
phatypus has quit [Quit: .>]
blackmesa has joined #ruby
Rodya_ has joined #ruby
<Radar> h[:a] += 25
<Radar> ;)
<shevy> :D
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
Xeago has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 250 seconds]
UtkarshRay has quit [Remote host closed the connection]
duckpuppy has joined #ruby
crowell has quit [Ping timeout: 246 seconds]
UtkarshRay has joined #ruby
phatypus has joined #ruby
<Radar> Ox0dea: what do I win?
crowell has joined #ruby
crowell has joined #ruby
crowell has quit [Changing host]
idefine has quit [Remote host closed the connection]
Khoyo has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
duckpuppy has quit [Ping timeout: 252 seconds]
Guest93829 is now known as James
James is now known as Guest80577
Rodya_ has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
ixti has joined #ruby
vim_shim has quit [Ping timeout: 260 seconds]
arescorpio has quit [Excess Flood]
Rodya_ has quit [Remote host closed the connection]
kirillzh has joined #ruby
DmitryBochkarev has joined #ruby
Rodya_ has joined #ruby
Sucks has quit [Ping timeout: 264 seconds]
<Ox0dea> Radar: A newborn dropbear.
<Ox0dea> For giggles: https://eval.in/530817
Azure has quit [Remote host closed the connection]
<Ox0dea> That could be generalized, but how many methods yield more than 3 arguments?
ixti has quit [Ping timeout: 250 seconds]
jayc0b0 has quit [Remote host closed the connection]
y2mq37 has joined #ruby
minimalism has joined #ruby
mattwildig has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
jayc0b0 has joined #ruby
vim_shim has joined #ruby
rmulligan has joined #ruby
<shevy> all the naughty ones
rmulligan has quit [Ping timeout: 252 seconds]
phatypus has quit [Quit: .>]
despai has quit [Quit: This computer has gone to sleep]
<Ox0dea> {a: 1}.each_with_index.with_object([]) { |((k, v), i), o| ... }
<Ox0dea> Something like that comes to mind, but that's not really four arguments.
jeanlinux has joined #ruby
harryh has joined #ruby
baweaver has joined #ruby
jeanlinux has quit [Ping timeout: 240 seconds]
Es0teric has quit [Ping timeout: 248 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
DJ_Spies has quit [Ping timeout: 244 seconds]
wildlander has quit [Quit: Saliendo]
harryh has quit [Quit: Textual IRC Client: www.textualapp.com]
fostertheweb has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
sesquipedalian has quit [Ping timeout: 276 seconds]
y2mq37 has quit [Ping timeout: 250 seconds]
djbkd has quit [Quit: My people need me...]
Vingador has quit [Quit: Leaving]
Vingador has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
deuxclique has joined #ruby
P4Titan has joined #ruby
<P4Titan> Hello all. How can I print the reference id of an object's instance within a function of the object?
<Radar> P4Titan: puts id
<Radar> P4Titan: Maybe explain what you're trying to accomplish in code?
Rodya_ has joined #ruby
jottr has joined #ruby
snockerton1 has quit [Quit: Leaving.]
UtkarshRay has quit [Remote host closed the connection]
<P4Titan> I'll give you a pastie
Limix has joined #ruby
freerobby has joined #ruby
<P4Titan> bear in mind, its kinda scetchy code ...
<Radar> I used to do code reviews. You have not seen sketchy code.
<Radar> oh I recognise this code.
<P4Titan> yes ..., I recognised your irc-name
<Radar> As I told you before, line 2 is setting an instance variable on the class. It won't be available on Line 6.
<P4Titan> anyway
jottr_ has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 260 seconds]
<Radar> I was hoping for an explanation of what it is you're trying to accomplish.
<P4Titan> well, I want there to be a print id in the index function
<P4Titan> to see if everytime RoR call this object upon request, if its the same object or a different one each time
Rodya_ has quit [Remote host closed the connection]
<Radar> P4Titan: It initializes a new instance of the class each time: https://github.com/rails/rails/blob/v4.2.5.1/actionpack/lib/action_controller/metal.rb#L237
<Radar> P4Titan: the "klass" there is the controller.
<P4Titan> Ok then
braincrash has quit [Quit: bye bye]
blackmesa has joined #ruby
<P4Titan> how would you recomend keeping a persistent variable that increments everytime index is called?
<Radar> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<Radar> to the max
<P4Titan> hmm
<Radar> Advise you to read the link before asking more questions.
Es0teric has joined #ruby
statelesscode has joined #ruby
gix has quit [Ping timeout: 276 seconds]
zast has joined #ruby
<P4Titan> ok, but my goal is to have this persistent variable for practice in RoR. Since I am a novice, I would simply like some experise in how I should go about this in a correct and effective manner.
DmitryBochkarev has joined #ruby
<P4Titan> And also, Im just genuinly curious
chouhoul_ has quit [Remote host closed the connection]
eregi has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
Vingador has quit [Quit: Leaving]
adgtl has joined #ruby
<Radar> For a single user or for all users?
gix has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
<Radar> Should it increment on a per-user basis or whenever that action is requested?
<P4Titan> oh boy, I don't even know how to discern users in RoR
<P4Titan> for now, I guess for all users
<Radar> P4Titan: So irregardless of user, you want that variable to increment?
dc1 has joined #ruby
<Radar> Store it in a database somewhere and increment it that way would be my advice.
<P4Titan> yes sir
<P4Titan> I thought of that
<Radar> Great.
<P4Titan> but for a quick, temporary hack, would you say class variables?
<Radar> no.
<Radar> Never.
braincras has joined #ruby
<P4Titan> why?
<Radar> Stop trying to make class variables happen. It's not going to happen.
<Radar> Because when your server restarts the variables will be reset.
<P4Titan> I am aware
<P4Titan> this is just for sport, to get used to RoR
<P4Titan> for the sake of learning
<Radar> "I want to abuse RoR" <- literally all I'm hearing now
Rodya_ has joined #ruby
<P4Titan> Well, would you not admit that during the process of getting good at programming, one write a ton of crap code
<P4Titan> consider this part for my crap :P
<Radar> If you want to use class variables then go ahead. What you're doing now is using instance variables and expecting it to work. It's not going to work that way.
<P4Titan> but class variables should work the way I wish, correct?
<Radar> ?try P4Titan
<ruby[bot]> P4Titan: Why don't you try it and see for yourself?
<P4Titan> tru
<Radar> best way to learn is to try
<Radar> You won't absorb the answer if I tell you.
<P4Titan> yep, I agree
Guest80577 is now known as James
<P4Titan> one last thing
<Radar> There is never a last thing :P
James is now known as Guest25457
<Radar> I've been helping out on IRC for 10+ years and whenever someone says "one last thing", it is 99.999999% of the time NEVER the last thing.
<P4Titan> wow
<P4Titan> ok
<P4Titan> so
Limix has quit [Quit: Limix]
<P4Titan> I have test_function linked up to a POST button found in index. Within test_function, it renders index. The webbrowser proably sees that nothing has changed and doesn't reload or anything. Is this bad practice?
<P4Titan> to change a single small value and then call render on the entire page
adgtl has quit [Remote host closed the connection]
<shevy> will this really be the last thing P4Titan
<P4Titan> yep
<P4Titan> well, for now at least
<P4Titan> as in, for this current day
Khoyo has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
rmulligan has joined #ruby
eurialo has joined #ruby
chouhoul_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
akkad has quit [Ping timeout: 276 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
thevaliantx has joined #ruby
jenrzzz has joined #ruby
humblespoon has quit [Quit: Page closed]
humblespoon has joined #ruby
<humblespoon> I'm confused about some code I'm writing. Why does it see my methods as undefined? e.g. Code.hello https://eval.in/530851
<thevaliantx> got my The Well Grounded Rubyist book that I had to re-order from Amazon. Turns out that the first book has been at the local post office for 3-4 weeks. They said that my mailing address was not on the package, but just the city, state and zip code. Weird.
<thevaliantx> I do wish the Ruby book had exercises in it, to reinforce learning.
sneakerhax has joined #ruby
treaki_ has joined #ruby
c0ncealed has quit [Read error: Connection reset by peer]
<humblespoon> o I think I figured it out. Calling instance method on a class
c0ncealed has joined #ruby
Rodya_ has quit [Remote host closed the connection]
treaki has quit [Ping timeout: 268 seconds]
jeanlinux has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
<slash_nick> thevaliantx: it's a little out of season, but here's some exercises: http://adventofcode.com/
akkad has joined #ruby
<thevaliantx> Jolly Ol' slash_nick right away it appears to be the sort of puzzle that Path To Enlightenment throws at the user. Please tell me it's not like that.
<thevaliantx> and I love Christmas, so no worries, and thank you :D
<shevy> enlightenment huh
<thevaliantx> my son was playing "Ode To Joy" today while practicing his recorder, and I immediately was reminded of Pentatonix, so I showed him a youtube video of them singing that.
jeanlinux has quit [Ping timeout: 248 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
<shevy> so it's you who is spoiling your son with cheap youtube videos!
aupadhye has joined #ruby
ebbflowgo has joined #ruby
<shevy> btw some of matz talks are good - https://www.youtube.com/watch?v=LE0g2TUsJ4U
<shevy> this also explains the name of the lonely operator
eregi has joined #ruby
zenspider has joined #ruby
shanemcd has joined #ruby
P4Titan has quit [Ping timeout: 240 seconds]
justbleed has quit [Ping timeout: 252 seconds]
shanemcd has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
tristanp_ has joined #ruby
eurialo has quit [Ping timeout: 264 seconds]
tristanp has quit [Ping timeout: 250 seconds]
solocshaw has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
Rodya_ has quit [Remote host closed the connection]
safe has joined #ruby
dc1 has quit [Ping timeout: 246 seconds]
nando293921 has joined #ruby
blackmesa has joined #ruby
jottr_ has joined #ruby
Channel6 has quit [Read error: Connection reset by peer]
bryancp has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 268 seconds]
ngharo has joined #ruby
deuxclique has quit [Remote host closed the connection]
ngharo has left #ruby [#ruby]
duckpuppy has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
eregi has quit [Ping timeout: 244 seconds]
x77686d has quit [Quit: x77686d]
eurialo has joined #ruby
vishwa has quit [Ping timeout: 244 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
Guest25457 is now known as James
James is now known as Guest44425
rmulligan has joined #ruby
ivanskie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BaroMeter has joined #ruby
sp4rrow has joined #ruby
freerobby has quit [Quit: Leaving.]
rmulligan has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
zapata has quit [Quit: WeeChat 1.4]
mattwildig has joined #ruby
uglybandersnatch has joined #ruby
BaroMeter has quit [Quit: Leaving]
zapata has joined #ruby
LoneHerm_ has joined #ruby
rippa has joined #ruby
adgtl has joined #ruby
uglybandersnatch has quit [Ping timeout: 246 seconds]
eregi has joined #ruby
mattwildig has quit [Ping timeout: 276 seconds]
thevaliantx has quit [Quit: Leaving]
pawnbox has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
adgtl has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
sp4rrow has quit [Quit: Textual]
adgtl has quit [Remote host closed the connection]
poguez_ has quit [Quit: Connection closed for inactivity]
Es0teric has quit [Quit: Computer has gone to sleep.]
eljimador has quit [Quit: Leaving]
phatypus has joined #ruby
youch has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 240 seconds]
_3by8 has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 264 seconds]
CaGlint has quit [Ping timeout: 240 seconds]
phatypus has quit [Quit: .>]
<_3by8> I've got a hash whose values contain another hash. Each key/value pair has a hash in its value whose size may differ from the hashes in other values. What I'm trying to do is just add an element to one of those nested hashes so that hash[:key] = { foo: "bar" } becomes hash[:key] = { foo: "bar", foo2: "bar2" } Do I use replace or is there something I'm missing?
mondok has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
Rodya_ has joined #ruby
dc1 has joined #ruby
mjc_ has quit [Quit: Connection closed for inactivity]
polyidus has joined #ruby
ivanskie_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
Rodya_ has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
trosborn has joined #ruby
blackmesa has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
bluOxigen_ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
vishwa has joined #ruby
dionysus69 has joined #ruby
d0nn1e has joined #ruby
fostertheweb has joined #ruby
chouhoul_ has quit [Ping timeout: 268 seconds]
howdoi has joined #ruby
dc1 has quit [Ping timeout: 250 seconds]
charliesome has quit [Client Quit]
charliesome has joined #ruby
rmulligan has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
adgtl has joined #ruby
Guest44425 is now known as James
RegulationD has joined #ruby
James is now known as Guest62650
baweaver has quit [Remote host closed the connection]
jenrzzz has joined #ruby
fostertheweb has quit [Quit: Textual IRC Client: www.textualapp.com]
karapetyan has joined #ruby
trosborn has quit [Quit: trosborn]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trosborn has joined #ruby
czq has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
intrigueD has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
ruby-lang308 has joined #ruby
nando293921 has quit [Ping timeout: 252 seconds]
karapetyan has quit [Ping timeout: 246 seconds]
<shevy> _3by8 have you tried .merge!() or .update() yet?
shanemcd has joined #ruby
<_3by8> shevy: yeah, I just used merge, works fine.
<_3by8> I'll look at update though, thank you
<_3by8> shevy: is update just an alias for merge?
arup_r has joined #ruby
<ruby-lang308> I'm creating a command line application that will ask for user input and call a an action based on input and I was thinking on creating a class for each action and calling dynamically based on user input but wouldn't that be a mistake creating objects all over the place?
sauvin has joined #ruby
adgtl has quit [Remote host closed the connection]
shanemcd has quit [Ping timeout: 244 seconds]
hk238 has joined #ruby
adgtl has joined #ruby
ivanskie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> _3by8 I think for .merge!() not for .merge()
<_3by8> shevy: thanks for thei nput
<shevy> usually the official documentat shows the source http://ruby-doc.org/core-2.2.0/Hash.html#method-i-merge if you click on "click to toggle source"
<shevy> *documentation
<shevy> return rb_hash_update(rb_obj_dup(hash1), hash2);
<shevy> hmm
<shevy> yeah
<shevy> rb_hash_update(VALUE hash1, VALUE hash2)
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<shevy> so it's an alias on the C source level
<shevy> bit harder to notice :)
isxek has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
<arup_r> shevy: o/
<shevy> yo arup_r
<arup_r> hw r u ?
<shevy> dunno... semi ok. wondering what to write next without getting bored
<arup_r> have you converted all PhP to Ruby ?
<shevy> yeah probably 99,9%. I retain some of my old .php files for legacy purpose/reasons, if I have a host that can host only php but not ruby
<arup_r> good
<arup_r> i am learning http://www.edufind.com/english-grammar/english-grammar-guide/, someone told me it helps while coding.. :D so i am giving it some time..
djbkd has joined #ruby
cyclonis has joined #ruby
adgtl has quit [Remote host closed the connection]
jeanlinux has joined #ruby
Guest34101 has quit [Ping timeout: 276 seconds]
aupadhye has joined #ruby
system64 has quit [Quit: Connection closed for inactivity]
jeanlinux has quit [Ping timeout: 276 seconds]
shanemcd has joined #ruby
flughafen_ has joined #ruby
Rodya_ has joined #ruby
shanemcd has quit [Ping timeout: 250 seconds]
ruby-lang308 has quit [Ping timeout: 252 seconds]
LoneHerm_ has joined #ruby
intrigueD has quit [Remote host closed the connection]
Mio-chan has quit [Quit: ZNC - http://znc.in]
pawnbox has joined #ruby
crowell is now known as crowell_zzz
Rodya_ has quit [Ping timeout: 248 seconds]
flughafen_ has quit [Ping timeout: 268 seconds]
phatypus has joined #ruby
rmulligan has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 268 seconds]
duckpuppy has joined #ruby
blackmesa has joined #ruby
mercwithamouth has joined #ruby
czq has left #ruby [#ruby]
adgtl has joined #ruby
<mercwithamouth> is there a real difference between foo.each do and foo.each { |bar| ... } ?
rmulligan has quit [Ping timeout: 252 seconds]
duckpuppy has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
houhoulis has joined #ruby
Guest62650 is now known as James
blackmesa has quit [Ping timeout: 240 seconds]
James is now known as Guest61842
baweaver has joined #ruby
adgtl has quit [Remote host closed the connection]
Billias has quit [Read error: Connection reset by peer]
jayc0b0 has quit [Remote host closed the connection]
A5101 has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
Billias has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
trosborn has quit [Quit: trosborn]
trosborn has joined #ruby
adgtl has joined #ruby
adgtl has quit [Remote host closed the connection]
<shevy> what is with those 1 second askers
graffix has quit [Read error: Connection reset by peer]
amclain has quit [Quit: Leaving]
graffix has joined #ruby
Limix has joined #ruby
zeroDivisible has joined #ruby
phatypus has quit [Quit: .>]
tvw has joined #ruby
_3by8 has quit [Quit: Page closed]
_ht has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
djbkd has joined #ruby
polyidus has quit [Quit: Later]
p0p0pr37 has quit [Ping timeout: 244 seconds]
adgtl has joined #ruby
codecop has joined #ruby
adgtl has quit [Ping timeout: 248 seconds]
polyidus has joined #ruby
pawnbox has joined #ruby
spuk has quit [Ping timeout: 246 seconds]
Limix has quit [Quit: Limix]
trosborn has quit [Quit: trosborn]
_ht has quit [Ping timeout: 264 seconds]
trosborn has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
Don_John has quit [Read error: Connection reset by peer]
devbug_ has quit [Ping timeout: 248 seconds]
pawnbox has joined #ruby
polyidus has quit [Quit: Later]
Rodya_ has joined #ruby
_ht has joined #ruby
rmulligan has joined #ruby
adgtl has joined #ruby
Macaveli has joined #ruby
safe has quit [Quit: Leaving]
nocontrol has joined #ruby
eregi has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 248 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
tvw has quit []
arup_r has left #ruby [#ruby]
kam270 has quit [Ping timeout: 260 seconds]
Asher has quit [Read error: Connection reset by peer]
adgtl has quit [Remote host closed the connection]
lxsameer has joined #ruby
krz has joined #ruby
danjam has joined #ruby
Asher has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
Mon_Ouie has joined #ruby
pawnbox has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
codecop has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
pawnbox has joined #ruby
blackmesa has joined #ruby
p0p0pr37 has joined #ruby
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
benlieb has joined #ruby
moeabdol has joined #ruby
Snowy has joined #ruby
czerasz has joined #ruby
siaw has joined #ruby
phatypus has joined #ruby
Guest61842 is now known as James
James is now known as Guest34893
baweaver has joined #ruby
adgtl has quit [Ping timeout: 248 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Moosashi has joined #ruby
neanderslob has quit [Remote host closed the connection]
zenspider has quit [Quit: bye]
neanderslob has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
baweaver has quit [Ping timeout: 246 seconds]
jmdade has joined #ruby
neanderslob has quit [Remote host closed the connection]
neanderslob has joined #ruby
lessless has joined #ruby
armyriad has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
ledestin has joined #ruby
LoneHermit has joined #ruby
neanderslob has quit [Remote host closed the connection]
nocontrol has quit []
Snowy has quit [Quit: ragequit]
A5101 has quit [Ping timeout: 260 seconds]
antgel has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
dc1 has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
sandstrom has joined #ruby
shanemcd has joined #ruby
last_staff has joined #ruby
vim_shim has quit [Ping timeout: 260 seconds]
neanderslob has joined #ruby
shanemcd has quit [Ping timeout: 260 seconds]
firstdayonthejob has joined #ruby
rmulligan has joined #ruby
trosborn has quit [Quit: trosborn]
phatypus has quit [Quit: .>]
dgncn has joined #ruby
youch has quit [Quit: Konversation terminated!]
system64 has joined #ruby
youch has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
eregi has joined #ruby
phatypus has joined #ruby
Rodya_ has joined #ruby
kirillzh has quit [Quit: Textual IRC Client: www.textualapp.com]
danjam has quit [Quit: Leaving.]
eregi has quit [Ping timeout: 268 seconds]
Rodya_ has quit [Ping timeout: 244 seconds]
<shevy> is there a simple way to find out how many gems exist? e. g. a number like 153010 or so
maner has joined #ruby
duckpuppy has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
rdark has joined #ruby
iooner has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
kam270 has joined #ruby
Moosashi has quit [Quit: Moosashi]
Guest34893 is now known as James
James is now known as Guest44613
CaGlint has joined #ruby
rikkipitt has joined #ruby
zzxx has joined #ruby
pawnbox has quit [Remote host closed the connection]
statelesscode has quit [Quit: statelesscode]
sameerynho has joined #ruby
<apeiros> shevy: probably by querying rubygems.org
sameerynho is now known as Guest72534
mattwildig has joined #ruby
GBrawl has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
spider-mario has joined #ruby
pawnbox has joined #ruby
<shevy> ah yes
<shevy> weird... I remember that page now... but not before haha
zzxx has quit [Read error: Connection reset by peer]
<apeiros> oh hai jhass! long time no see :D
atom3_ has joined #ruby
<apeiros> been hiding under a crystal?
sandstrom has quit [Quit: My computer has gone to sleep.]
mattwildig has quit [Ping timeout: 264 seconds]
jeanlinux has joined #ruby
<jhass> more under a flower I guess :P hi!
<apeiros> hmmm, too early in the morning for me to get that one :-|
<jhass> you actually can't get it ;)
edwinvdgraaf has joined #ruby
z3uS has quit [Ping timeout: 246 seconds]
nerium has joined #ruby
sandstrom has joined #ruby
tekacs has quit [Ping timeout: 246 seconds]
atom3 has quit [Ping timeout: 246 seconds]
sandstrom has quit [Client Quit]
tekacs has joined #ruby
z3uS has joined #ruby
jeanlinux has quit [Ping timeout: 250 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Moosashi has joined #ruby
trosborn has joined #ruby
Guest21405 is now known as ndrst
colegatron has quit [Ping timeout: 276 seconds]
colegatron has joined #ruby
Dimik has quit [Ping timeout: 276 seconds]
FernandoBasso has joined #ruby
zenspider has joined #ruby
Aviio has joined #ruby
rmulligan has joined #ruby
zenspider has quit [Client Quit]
mdw has joined #ruby
karapetyan has joined #ruby
Guest72534 is now known as lxsameer
howdoi has quit [Quit: Connection closed for inactivity]
symm- has joined #ruby
iooner has joined #ruby
danjam has joined #ruby
intrigueD has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
karapetyan has quit [Ping timeout: 244 seconds]
toretore has joined #ruby
czerasz has quit [Quit: Leaving]
shtirlic has quit [Quit: ZNC - http://znc.in]
eregi has joined #ruby
TomyLobo has joined #ruby
Rodya_ has joined #ruby
youch has quit [Ping timeout: 244 seconds]
eregi has quit [Ping timeout: 252 seconds]
mdw has quit [Ping timeout: 260 seconds]
trosborn has quit [Quit: trosborn]
Rodya_ has quit [Ping timeout: 276 seconds]
mondok has quit [Ping timeout: 244 seconds]
FooMunki has joined #ruby
marr has joined #ruby
_ht has quit [Remote host closed the connection]
_ht has joined #ruby
iooner has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
karapetyan has joined #ruby
mdw has joined #ruby
iooner has joined #ruby
Guest44613 is now known as James
James is now known as Guest78626
RegulationD has quit [Ping timeout: 268 seconds]
dc1 has quit [Ping timeout: 250 seconds]
iwmrby has joined #ruby
rikkipitt has quit [Remote host closed the connection]
phatypus has quit [Quit: .>]
isxek has quit [Quit: Leaving]
codecop has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 260 seconds]
CaGlint has quit [Ping timeout: 240 seconds]
Aviio has quit []
iooner has quit [Ping timeout: 268 seconds]
shanemcd has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
lxsameer has joined #ruby
Es0teric has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
toretore has quit [Ping timeout: 260 seconds]
trosborn has joined #ruby
terlar has joined #ruby
shanemcd has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
karapetyan has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
GBrawl has quit [Quit: (null)]
dionysus69 has quit [Ping timeout: 248 seconds]
rmulligan has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
danjam has quit [Quit: Leaving.]
jenrzzz has joined #ruby
nerium has quit [Quit: nerium]
rmulligan has quit [Ping timeout: 252 seconds]
BtcBen has quit [Ping timeout: 252 seconds]
intrigueD has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 260 seconds]
aspiers has joined #ruby
dionysus69 has joined #ruby
Tempesta has quit [Quit: See ya!]
rikkipitt has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
dc1 has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
flughafen_ has joined #ruby
krz has joined #ruby
Sembei has joined #ruby
eregi has joined #ruby
Khoyo has joined #ruby
Tempesta has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
godzillaenlacasa has joined #ruby
Rodya_ has joined #ruby
krz has quit [Ping timeout: 248 seconds]
benlieb has quit [Quit: benlieb]
Guest34101 has joined #ruby
trosborn has quit [Quit: trosborn]
karapetyan has joined #ruby
eregi has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
duckpuppy has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
duckpuppy has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gasher has joined #ruby
Guest78626 is now known as James
James is now known as Guest22743
agit0 has quit [Quit: zzzZZZ….]
codecop has quit [Remote host closed the connection]
Khoyo has quit [Ping timeout: 260 seconds]
hackeron_ has joined #ruby
hackeron has quit [Ping timeout: 252 seconds]
kam270 has quit [Ping timeout: 276 seconds]
nerium has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
mattwildig has joined #ruby
nerium has quit [Read error: Connection reset by peer]
uglybandersnatch has joined #ruby
nerium has joined #ruby
LoneHermit has joined #ruby
mattwildig has quit [Ping timeout: 244 seconds]
uglybandersnatch has quit [Ping timeout: 244 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
jeanlinux has joined #ruby
dgncn has quit [Ping timeout: 244 seconds]
shanemcd has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
obrientimothya has joined #ruby
rmulligan has joined #ruby
infernix has quit [Ping timeout: 246 seconds]
kam270 has joined #ruby
jeanlinux has quit [Ping timeout: 264 seconds]
dgncn has joined #ruby
roshanavand has joined #ruby
dgncn_ has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
dgncn_ has quit [Client Quit]
dgncn has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
<flughafen_> i added comparable to a class, and made a <=> function, and the sort works, but I want to be able to sort it by a different attribute also,
<apeiros> that's what we have .sort_by for
_ht has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
<apeiros> and/or sort with a block
edwinvdgraaf has joined #ruby
_ht has joined #ruby
godzillaenlacasa has quit [Quit: ZZZZZ....]
<flughafen_> ok. thanks apeiros
vdamewood has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
shanemcd has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
dionysus69 has joined #ruby
shanemcd has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
krz has joined #ruby
minimalism has quit [Quit: minimalism]
djbkd has quit [Quit: Leaving...]
shanemcd has quit [Read error: Connection reset by peer]
shanemcd_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
eregi has joined #ruby
Rodya_ has joined #ruby
krz has quit [Ping timeout: 240 seconds]
jpoole has joined #ruby
<jpoole> question, how do I do power of? ie, i want to do something like: population in year n = current population * (1 + growth rate)n
<apeiros> >> 2**8
<ruby[bot]> apeiros: # => 256 (https://eval.in/530997)
karapetyan has joined #ruby
<jpoole> apeiros was that for me?
<apeiros> yes
<jpoole> ok so it's **?
<apeiros> yes
<jpoole> thansk
<apeiros> yw
eregi has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
Khoyo has joined #ruby
Khoyo has quit [Read error: Connection reset by peer]
despai has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
siaw has quit [Quit: siaw]
siaw has joined #ruby
sgambino has joined #ruby
infernix has joined #ruby
siaw has quit [Client Quit]
edwinvdgraaf has quit [Remote host closed the connection]
jmignault has joined #ruby
minimalism has joined #ruby
sgambino has quit [Client Quit]
baweaver has joined #ruby
Guest22743 is now known as James
James is now known as Guest10358
Azure has joined #ruby
sepp2k has joined #ruby
davedev24 has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
baweaver has quit [Ping timeout: 248 seconds]
platzhirsch has joined #ruby
platzhirsch has left #ruby [#ruby]
trifling-jest has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
Dragooon has joined #ruby
skade has joined #ruby
rmulligan has joined #ruby
shanemcd has joined #ruby
shanemcd_ has quit [Read error: Connection reset by peer]
zarubin has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
shanemcd has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
blackmesa has joined #ruby
jeanlinux has joined #ruby
mattwildig has joined #ruby
shanemcd_ has joined #ruby
shanemcd has quit [Read error: Connection reset by peer]
zarubin has joined #ruby
karapetyan has quit [Remote host closed the connection]
Moosashi has quit [Quit: Moosashi]
stannard has joined #ruby
mdw has joined #ruby
davedev24 has quit []
mattwildig has quit [Remote host closed the connection]
jeanlinux has quit [Remote host closed the connection]
<Papierkorb> Does someone know how to use ActiveSupport::Dependencies outside of rails?
tk___ has joined #ruby
synthroid has joined #ruby
shanemcd_ has quit [Remote host closed the connection]
shanemcd has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
jeanlinux has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shanemcd has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
Macaveli has joined #ruby
agit0 has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
mattwildig has joined #ruby
hangelo has joined #ruby
eregi has joined #ruby
karapetyan has quit [Remote host closed the connection]
moeabdol has joined #ruby
Rodya_ has joined #ruby
jmignault has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
DmitryBochkarev has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PlasmaStar has quit [Remote host closed the connection]
Canar has quit [Ping timeout: 276 seconds]
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eregi has quit [Ping timeout: 244 seconds]
duckpuppy has joined #ruby
jmdade has joined #ruby
mdw has quit [Ping timeout: 260 seconds]
<Papierkorb> Found it
sameerynho has joined #ruby
sameerynho is now known as Guest2908
Rodya_ has quit [Ping timeout: 264 seconds]
mdw has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
trinaldi has joined #ruby
dc1 has quit [Ping timeout: 244 seconds]
duckpuppy has quit [Ping timeout: 268 seconds]
graphettion has joined #ruby
solocshaw has joined #ruby
djellemah has quit [Ping timeout: 240 seconds]
gregf1 has quit [Quit: WeeChat 1.4]
agit0 has quit [Read error: No route to host]
LoneHerm_ has joined #ruby
gregf1 has joined #ruby
Guest10358 is now known as James
James is now known as Guest14574
stannard has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 252 seconds]
jeanlinux has quit [Remote host closed the connection]
sdothum has joined #ruby
krz has joined #ruby
rmulligan has joined #ruby
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 248 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
scripore has joined #ruby
Guest2908 has quit [Ping timeout: 248 seconds]
rikkipitt has quit [Quit: Leaving...]
iooner has joined #ruby
last_staff has quit [Ping timeout: 252 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rdark has quit [Ping timeout: 240 seconds]
Guest2908 has joined #ruby
sdothum has joined #ruby
karapetyan has joined #ruby
mondok has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
nerium has quit [Read error: Connection reset by peer]
nerium has joined #ruby
blackmesa has joined #ruby
vdamewood has quit [Quit: Life beckons.]
antgel has quit [Ping timeout: 248 seconds]
IrishGringo has joined #ruby
antgel has joined #ruby
senor_jalapeno has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
idletask has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
vdamewood has joined #ruby
TomyLobo has quit [Ping timeout: 250 seconds]
eregi has joined #ruby
vdamewood has quit [Max SendQ exceeded]
vdamewood has joined #ruby
Rodya_ has joined #ruby
rdark has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
daemonwrangler has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
hangelo has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
duckpuppy has joined #ruby
shanemcd has joined #ruby
houhoulis has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
djellemah has joined #ruby
idletask has joined #ruby
Guest2908 has quit [Ping timeout: 260 seconds]
<jpoole> how would I write an expression to test if one number is double another number?
freerobby has quit [Client Quit]
djellemah_ has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
<apeiros> jpoole: give it a try and show us?
jmdade has joined #ruby
<jpoole> if num % 2 == 1
<jpoole> if num / 2 == 1
<apeiros> the first one tests whether the number is odd
<apeiros> the second one tests whether the number is 3 or 2
RegulationD has joined #ruby
<jpoole> hrmm
<apeiros> how do you test whether a number is equal to another number?
<jpoole> is it `eq` or ==
<apeiros> ==
<apeiros> eq is perl
<jpoole> ok
<havenwood> camels and butterflies!
<apeiros> bamels and cutterflies!
<jpoole> so 'if (num * 2) == num2'
<apeiros> that looks sensible :)
<jpoole> or 'if (num * 2) >= num2'
djellemah has quit [Ping timeout: 240 seconds]
<ytti> that does not :)
<apeiros> that tests something else
<apeiros> it tests whether num2 is less or equal the double of n um
<jpoole> ahh
<jpoole> ok
<jpoole> thanks, confused on operators
<apeiros> a wild space appeared
* apeiros tries delete
<apeiros> it's not very successful
rmulligan has joined #ruby
baweaver has joined #ruby
kirun has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
sudoubuntu has joined #ruby
Guest14574 is now known as James
James is now known as Guest95006
postmodern has quit [Quit: Leaving]
Rodya_ has joined #ruby
gagrio_ has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
baweaver has quit [Ping timeout: 240 seconds]
jeanlinux has joined #ruby
eurialo has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
eurialo has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
Rodya_ has quit [Ping timeout: 240 seconds]
shanemcd_ has joined #ruby
shanemcd has quit [Read error: Connection reset by peer]
system64 has quit [Quit: Connection closed for inactivity]
jeanlinux has quit [Ping timeout: 248 seconds]
shanemcd has joined #ruby
shanemcd_ has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
eljimmy has joined #ruby
statelesscode has joined #ruby
crowell_zzz is now known as crowell
blackmesa has quit [Ping timeout: 248 seconds]
sgambino has joined #ruby
shanemcd has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
system64 has joined #ruby
iooner has quit [Ping timeout: 240 seconds]
gagrio_ has quit [Quit: Leaving...]
IrishGringo has quit [Ping timeout: 268 seconds]
DexterLB has quit [Ping timeout: 276 seconds]
Guest2908 has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
humblespoon has quit [Ping timeout: 252 seconds]
DexterLB has joined #ruby
tungd has joined #ruby
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spuk has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<shevy> where where
<shevy> I can't see the wild space
The_Phoenix has joined #ruby
<apeiros> "double of n um"
<shevy> ah
alexherbo2 has quit [Quit: WeeChat 1.4]
Azure has quit [Remote host closed the connection]
jmdade has joined #ruby
Guest2908 has quit [Ping timeout: 250 seconds]
stannard has joined #ruby
roshanavand has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
stannard has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
x77686d has joined #ruby
eregi has joined #ruby
cyclonis has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Connection reset by peer]
s00pcan has quit [Ping timeout: 268 seconds]
crowell has quit [Ping timeout: 248 seconds]
brandthdl has joined #ruby
eregi has quit [Ping timeout: 276 seconds]
duckpuppy has joined #ruby
_ht has quit [Ping timeout: 248 seconds]
<brandthdl> Any rails developers available on per hour basis? Please pm me
_ht has joined #ruby
crowell has joined #ruby
rmulligan has joined #ruby
stardiviner has quit [Ping timeout: 244 seconds]
tk___ has quit [Ping timeout: 250 seconds]
duckpuppy has quit [Ping timeout: 248 seconds]
rdark has joined #ruby
iooner has joined #ruby
iooner has quit [Excess Flood]
aryaching has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
iooner has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
symm- has quit [Ping timeout: 268 seconds]
stardiviner has joined #ruby
Guest95006 is now known as James
vikas027 has joined #ruby
vikas027 has left #ruby [#ruby]
James is now known as Guest83551
scripore has quit [Quit: This computer has gone to sleep]
trifling-jest has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
pawnbox has joined #ruby
karapetyan has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
blackmesa has joined #ruby
marr has quit [Ping timeout: 268 seconds]
karapetyan has joined #ruby
uglybandersnatch has joined #ruby
flughafen_ has quit [Ping timeout: 268 seconds]
aryaching has joined #ruby
karapetyan has quit [Remote host closed the connection]
Limix has joined #ruby
Guest2908 has joined #ruby
Limix has quit [Client Quit]
karapetyan has joined #ruby
sandstrom has joined #ruby
mattwildig has quit [Remote host closed the connection]
wtrocki has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
uglybandersnatch has quit [Ping timeout: 264 seconds]
djellemah_ is now known as djellemah
safe has joined #ruby
UtkarshRay has joined #ruby
karapetyan has quit [Remote host closed the connection]
graphettion has quit [Ping timeout: 244 seconds]
duderonomy has quit [Ping timeout: 252 seconds]
text1 has joined #ruby
flughafen_ has joined #ruby
safe has quit [Ping timeout: 252 seconds]
adgtl has quit [Remote host closed the connection]
s00pcan has joined #ruby
j0bk has quit [Changing host]
j0bk has joined #ruby
duderono_ has joined #ruby
graphettion has joined #ruby
mdw has joined #ruby
ljames has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
tungd has quit [Quit: Dreaming...]
nfk has joined #ruby
Macaveli has joined #ruby
Canar has joined #ruby
adgtl has quit [Remote host closed the connection]
howdoi has joined #ruby
adgtl has joined #ruby
mattwildig has joined #ruby
adgtl has quit [Remote host closed the connection]
cyclonis has joined #ruby
araujo_ has joined #ruby
_kfpratt has joined #ruby
infernix has joined #ruby
eregi has joined #ruby
kfpratt has quit [Ping timeout: 248 seconds]
rmulligan has joined #ruby
araujo has quit [Ping timeout: 276 seconds]
Azure has joined #ruby
gaxar77 has joined #ruby
Gasher has quit [Quit: Leaving]
<gaxar77> Is there a good ebook for free on the lastest version of Ruby?
cyclonis has quit [Ping timeout: 268 seconds]
Rodya_ has joined #ruby
scripore has joined #ruby
scripore has quit [Remote host closed the connection]
eregi has quit [Ping timeout: 240 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
FernandoBasso has quit [Quit: Leaving]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
B1n4r10 has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
zacstewart has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
adgtl has joined #ruby
mattwildig has quit [Remote host closed the connection]
Guest34101 has quit [Ping timeout: 248 seconds]
mattwildig has joined #ruby
skade has joined #ruby
baweaver has joined #ruby
Channel6 has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
Guest83551 is now known as James
James is now known as Guest4060
mattwildig has quit [Ping timeout: 276 seconds]
aryaching_ has joined #ruby
baweaver has quit [Ping timeout: 268 seconds]
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
jeanlinux has joined #ruby
houhoulis has joined #ruby
roshanavand has joined #ruby
sesquipedalian has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has quit [Quit: Connection closed for inactivity]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeanlinux has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
nando293921 has joined #ruby
mattwildig has joined #ruby
Guest2908 has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
y2mq37 has joined #ruby
sepp2k has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
adgtl has quit [Remote host closed the connection]
sudoubuntu has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
sudoubuntu has quit [Client Quit]
nando293921 has quit [Quit: Lost terminal]
nando293921 has joined #ruby
arup_r has joined #ruby
sudoubuntu has joined #ruby
Guest34101 has joined #ruby
senor_jalapeno has quit [Remote host closed the connection]
sudoubuntu has quit [Client Quit]
<flughafen_> nothing like [1,2,3,4].delete_at that returns the deleted element?
The_Phoenix has quit [Quit: Leaving.]
nando293921 has quit [Ping timeout: 248 seconds]
<chris2> .slice!
cyclonis has joined #ruby
scripore has joined #ruby
nando293921 has joined #ruby
arup_r has quit [Remote host closed the connection]
aryaching has joined #ruby
Macaveli has joined #ruby
gaxar77 has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
CaGlint has joined #ruby
aryaching_ has quit [Ping timeout: 276 seconds]
dgncn has joined #ruby
elifoster has joined #ruby
dravine has quit [Ping timeout: 252 seconds]
vdamewood has quit [Quit: Life beckons.]
tlaxkit has joined #ruby
dravine has joined #ruby
hanmac has quit [Ping timeout: 240 seconds]
fedexo has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
B1n4r10 has quit [Ping timeout: 260 seconds]
adgtl has joined #ruby
adgtl has joined #ruby
the_drow has joined #ruby
rmulligan has joined #ruby
dgncn has quit [Client Quit]
sudoubuntu has joined #ruby
mondok has quit [Ping timeout: 260 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
intrigueD has joined #ruby
eregi has joined #ruby
The_Phoenix has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
Rodya_ has quit [Remote host closed the connection]
eregi has quit [Ping timeout: 244 seconds]
Jackneill has joined #ruby
stannard has joined #ruby
gaxar77 has joined #ruby
hanmac has joined #ruby
FernandoBasso has joined #ruby
ramfjord has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
KensoDev has joined #ruby
Rodya_ has joined #ruby
SCHAAP137 has joined #ruby
<Papierkorb> Is there something like Array#unzip ? Like the reverse operation of Array#zip: [ [1,2], [3,4] ].unzip #=> [ [1,3], [2,4] ]
JohnBat26 has joined #ruby
Sucks has joined #ruby
<adaedra> Papierkorb: transpose?
<Papierkorb> adaedra: neat, thanks
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
siaw has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
skade has quit [Quit: Computer has gone to sleep.]
adac has joined #ruby
Guest4060 is now known as James
James is now known as Guest28165
gaxar77 has quit [Ping timeout: 260 seconds]
T7rees has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
aryaching has quit [Ping timeout: 268 seconds]
intrigueD has quit [Remote host closed the connection]
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j`ey has joined #ruby
wtrocki has quit [Quit: Sleeping.]
SenpaiSilver has quit [Read error: Connection reset by peer]
Coldblackice has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
diegoviola has joined #ruby
KnownSyntax has quit [Ping timeout: 246 seconds]
j`ey has left #ruby [#ruby]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
despai has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
zast has quit [Remote host closed the connection]
benlieb has joined #ruby
colegatron has quit [Ping timeout: 260 seconds]
nando293921 has joined #ruby
rdark has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Client Quit]
colegatron has joined #ruby
brandthdl has quit [Quit: leaving]
cdg has joined #ruby
KnownSyntax has quit [Ping timeout: 264 seconds]
pwned has left #ruby [#ruby]
dionysus69 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
rmulligan has joined #ruby
darkf has quit [Quit: Leaving]
<shevy> adaedra knows more than `derpy
adac has quit [Ping timeout: 260 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
stannard has quit [Remote host closed the connection]
A5101 has joined #ruby
adac has joined #ruby
Macaveli has joined #ruby
marr has joined #ruby
eregi has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
adgtl has quit [Remote host closed the connection]
adgtl has joined #ruby
adgtl has joined #ruby
f00dMonsta has joined #ruby
adgtl has quit [Read error: No route to host]
disconnected has joined #ruby
<disconnected> hey, question about sinatra framework
<disconnected> having "get '/:url' do url=params[:url]"
<disconnected> what does :url mean in params[...] ?
<disconnected> is this the same as 'url' ?
JohnBat26 has quit [Ping timeout: 252 seconds]
moeabdol1 has joined #ruby
shanemcd has joined #ruby
<apeiros> >> :url.class
<ruby[bot]> apeiros: # => Symbol (https://eval.in/531106)
<apeiros> it's a Symbol literal. like "url" is a String literal, or 12 is an Integer literal
symm- has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has quit [Read error: Connection reset by peer]
moeabdol has quit [Ping timeout: 260 seconds]
nando293921 has quit [Ping timeout: 240 seconds]
shanemcd_ has joined #ruby
shanemcd_ has quit [Client Quit]
shanemcd has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
joonty has quit [Client Quit]
Guest28165 is now known as James
mattwildig has quit [Remote host closed the connection]
James is now known as Guest79911
ziyadb has joined #ruby
duckpuppy has joined #ruby
dgncn has joined #ruby
Ishido has joined #ruby
jeanlinux has joined #ruby
iwmrby has quit [Quit: WeeChat 1.4]
Guest2908 has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
mattwildig has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
jeanlinux has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
Sucks has quit [Quit: No Ping reply in 180 seconds.]
Sucks has joined #ruby
CaGlint has quit [Read error: Connection reset by peer]
spider-mario has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 268 seconds]
Guest2908 has quit [Ping timeout: 260 seconds]
wtrocki has joined #ruby
rmulligan has joined #ruby
codecop has joined #ruby
araujo_ has quit [Ping timeout: 276 seconds]
eregi has quit [Ping timeout: 276 seconds]
junior2 has quit [Ping timeout: 276 seconds]
araujo_ has joined #ruby
nogic has joined #ruby
nogic has quit [Max SendQ exceeded]
araujo_ has quit [Max SendQ exceeded]
Outlastsheep has quit [Remote host closed the connection]
nogic has joined #ruby
araujo_ has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
araujo_ has quit [Max SendQ exceeded]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
araujo_ has joined #ruby
blackmesa has joined #ruby
vdamewood has joined #ruby
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 244 seconds]
gaxar77 has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
polyidus has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
mdw has joined #ruby
graphettion has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
junior2 has joined #ruby
nogic has quit [Ping timeout: 276 seconds]
nogic has joined #ruby
gaxar77 has quit [Ping timeout: 244 seconds]
maner has quit [Remote host closed the connection]
Guest79911 is now known as James
James is now known as Guest66867
baweaver has joined #ruby
siaw has quit [Quit: siaw]
mattwildig has quit [Remote host closed the connection]
jeanlinux has joined #ruby
symm- has joined #ruby
benlieb has quit [Quit: benlieb]
Outlastsheep has joined #ruby
uglybandersnatch has joined #ruby
blackgoat has joined #ruby
alexherbo2 has joined #ruby
jeanlinux has quit [Ping timeout: 276 seconds]
benlieb has joined #ruby
uglybandersnatch has quit [Ping timeout: 246 seconds]
moeabdol1 has quit [Ping timeout: 248 seconds]
benlieb has quit [Client Quit]
mdw has quit [Quit: Sleeping Zzzzz]
mwlang has joined #ruby
siaw has joined #ruby
UserInNeed has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
Sucks has quit [Ping timeout: 246 seconds]
UserInNeed has joined #ruby
rmulligan has joined #ruby
Sucks has joined #ruby
wildlander has joined #ruby
wildlander has quit [Max SendQ exceeded]
wildlander has joined #ruby
wildlander has quit [Max SendQ exceeded]
eregi has joined #ruby
cdg_ has joined #ruby
wildlander has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
Sucks has quit [Ping timeout: 260 seconds]
Don_John has joined #ruby
cdg has quit [Ping timeout: 244 seconds]
cdg_ has quit [Ping timeout: 268 seconds]
wtrocki has quit [Quit: Sleeping.]
eregi has quit [Ping timeout: 248 seconds]
fullofcaffeine has joined #ruby
nogic has quit [Read error: Connection reset by peer]
kldskp has joined #ruby
malcolmva has quit [Ping timeout: 252 seconds]
nogic has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
eregi has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
nennes has joined #ruby
roshanavand has joined #ruby
fullofcaffeine has joined #ruby
malcolmva has joined #ruby
<idletask> Making progress on the plugin!
djbkd has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
<shevy> what plugin
<idletask> shevy: I'm developing a SonarQube plugin for Ruby
spuk has quit [Ping timeout: 276 seconds]
Cohedrin has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
terlar has quit [Ping timeout: 244 seconds]
mdw has joined #ruby
mattwildig has joined #ruby
wennefer has joined #ruby
RegulationD has joined #ruby
polyidus has quit [Quit: Later]
roshanavand has joined #ruby
chipotle has joined #ruby
kcp has joined #ruby
wennefer has quit [Client Quit]
RegulationD has quit [Ping timeout: 244 seconds]
eregi has quit [Ping timeout: 248 seconds]
Rodya_ has quit [Remote host closed the connection]
garethrees has joined #ruby
mdw has quit [Ping timeout: 240 seconds]
Guest66867 is now known as James
duckpuppy has joined #ruby
James is now known as Guest27960
ghr has quit [Ping timeout: 276 seconds]
garethrees is now known as ghr
ericn81 has joined #ruby
mdw has joined #ruby
tristanp has quit [Remote host closed the connection]
mdw has quit [Max SendQ exceeded]
mdw has joined #ruby
wtrocki has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
<kspencer> from what i see, rspec is only for I/O, what would you use to rake test a gui based application o_O
diegoviola has quit [Quit: WeeChat 1.4]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
moeabdol1 has joined #ruby
rmulligan has joined #ruby
y2mq37 has quit [Ping timeout: 268 seconds]
ivanskie_ has joined #ruby
krz has quit [Quit: WeeChat 1.2]
vim_shim has joined #ruby
BtcBen has joined #ruby
ur5us has joined #ruby
devbug has joined #ruby
hogetaro_ has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
camilasan has quit [Remote host closed the connection]
hogetaro has quit [Ping timeout: 248 seconds]
<shevy> omg
Seich has quit [Ping timeout: 268 seconds]
shadeslayer has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
Seich has joined #ruby
<jhass> I don't see why it wouldn't work for a GUI application
mdw has quit [Quit: Sleeping Zzzzz]
<yxhuvvd> What kind of GUI application? There is stuff like capybara for web GUIs. It shouldn't be impossible to build something similar for desktop GUIs, though I don't know if anyone has done it.
ramfjord has joined #ruby
<kspencer> yxhuvvd: a ircd configuration file generator
synthroid has quit []
gaxar77 has joined #ruby
<kspencer> gonna try and use this
skade has joined #ruby
ivanskie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
genpaku has quit [Ping timeout: 276 seconds]
genpaku has joined #ruby
ready has quit [Ping timeout: 246 seconds]
nando293921 has joined #ruby
<hanmac> i tryed to write some specs for my GUI binding too, but i did only for the non-GUI parts
cdg has joined #ruby
kldskp has quit [Quit: (null)]
<kspencer> well technically the only non-gui parts that I can think of would be the templating use, and the command line arguments
Mor_ has joined #ruby
<Mor_> Hello, If I have 2 blocks, how does yield know which one to call?
Coldblackice has joined #ruby
mdw has joined #ruby
<kspencer> Mor_: I usually would use yield(:w/e) to load a specific one
<kspencer> if you're talking using ruby for web
<Ox0dea> Mor_: You can't have two blocks.
<Mor_> kspencer: what is (:w/e)?
<kspencer> with what I was talking about, it was a template
<Mor_> Ox0dea: 1 block per program?
<Ox0dea> Mor_: No, but certainly one block per method.
skade has quit [Quit: Computer has gone to sleep.]
<Ox0dea> You can have any number of Procs, of course, but then there's no ambiguity.
Moosashi has joined #ruby
kcp has quit [Quit: WeeChat 1.3]
<Mor_> Ox0dea: is the block name must share the same name with the method he called by?
Moosashi has quit [Client Quit]
<Ox0dea> Mor_: Blocks don't have names.
RegulationD has joined #ruby
wtrocki has quit [Quit: Sleeping.]
<Ox0dea> >> def foo &block; block.class; end; foo { bar }
<ruby[bot]> Ox0dea: # => Proc (https://eval.in/531164)
scripore has quit [Quit: This computer has gone to sleep]
djbkd has quit [Quit: Leaving...]
nando293921 has quit [Ping timeout: 240 seconds]
ready has joined #ruby
Jardayn has joined #ruby
LoneHerm_ has quit [Read error: Connection reset by peer]
vF3hNGxc47h8 has joined #ruby
RegulationD has quit [Ping timeout: 248 seconds]
Gasher has joined #ruby
ur5us has quit [Remote host closed the connection]
scripore has joined #ruby
gaxar77 has quit [Ping timeout: 244 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
soLucien has joined #ruby
jmdade has joined #ruby
justbleed has joined #ruby
Guest27960 is now known as James
James is now known as Guest42070
LoneHerm_ has joined #ruby
poguez_ has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.4]
ur5us has joined #ruby
rmulligan has joined #ruby
<soLucien> i'm trying to use String interpolation in the following scenario : http://pastebin.com/ny8Gc3Ba How should i do it , it seems quite tricky
<ruby[bot]> soLucien: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/43748cfc0a8642295d32
<ruby[bot]> soLucien: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
kam270 has quit [Ping timeout: 248 seconds]
jeanlinux has joined #ruby
<soLucien> no i've tried ' , " and \' as well as \" for the #{ENV['HYPERV_NETWORK_MODULE']}
<soLucien> nothing seemed to work
Mor_ has quit [Ping timeout: 252 seconds]
<soLucien> of course, i can just get back to what i had before, string repetition allover the place
<soLucien> but i am sure there is a way to do it
baweaver has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 244 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
<soLucien> :(
arlek has joined #ruby
nogic has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eregi has joined #ruby
tftp has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
polyidus has joined #ruby
hahuang65 has joined #ruby
eregi has quit [Ping timeout: 240 seconds]
tftp has quit [Ping timeout: 246 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
codecop has quit [Remote host closed the connection]
sdothum has joined #ruby
Es0teric has joined #ruby
vdamewood has quit [Quit: Life beckons.]
ur5us has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
sluukkonen has quit [Ping timeout: 250 seconds]
Es0teric has quit [Client Quit]
fullofcaffeine has quit [Remote host closed the connection]
DmitryBochkarev has quit [Client Quit]
sp4rrow has joined #ruby
tristanp has joined #ruby
dionysus69 has joined #ruby
_ht has quit [Quit: Konversation terminated!]
nogic has joined #ruby
sluukkonen has joined #ruby
platzhirsch has joined #ruby
duderono_ is now known as duderonomy
platzhirsch has left #ruby [#ruby]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
fullofcaffeine has joined #ruby
jeanlinux has joined #ruby
nogic has quit [Ping timeout: 260 seconds]
spuk has joined #ruby
intrigueD has joined #ruby
SCHAAP137 has quit [Ping timeout: 240 seconds]
Jackneill has quit [Ping timeout: 240 seconds]
tristanp has quit [Remote host closed the connection]
thevaliantx has joined #ruby
hangelo has joined #ruby
nogic has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
<thevaliantx> Anyone got suggestions as to what I can do with the older (black colored) The Well Grounded Rubyist book? The post office just delivered it to me today, about a month late. I had already received the red book that I ordered about a week ago.
<thevaliantx> Would the black book still be of good use since it covers 1.9?
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
thevaliantx has quit [Client Quit]
hahuang65 has quit [Quit: WeeChat 1.4]
toretore has joined #ruby
jeanlinux has quit [Ping timeout: 246 seconds]
Dragooon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hangelo has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
bradland has quit [Ping timeout: 240 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
AustinMatherne has quit [Ping timeout: 264 seconds]
demophoon has quit [Ping timeout: 264 seconds]
angelixd has quit [Ping timeout: 260 seconds]
rmulligan has joined #ruby
Apocalypse has quit [Ping timeout: 240 seconds]
cschneid has quit [Ping timeout: 250 seconds]
rideh has quit [Ping timeout: 268 seconds]
Dimik has joined #ruby
<jhass> >> ['#{1+1}', "#{1+1}", %q(#{1+1}), %Q(#{1+1})] # soLucien
<ruby[bot]> jhass: # => ["\#{1+1}", "2", "\#{1+1}", "2"] (https://eval.in/531171)
epochwolf has quit [Ping timeout: 250 seconds]
GGMethos has quit [Ping timeout: 250 seconds]
arlek has quit [Read error: Connection reset by peer]
swills has joined #ruby
cout has quit [Ping timeout: 246 seconds]
<soLucien> jhass i solved it by assigning the strings to variabels first
<soLucien> variables
DarkBushido has quit [Ping timeout: 268 seconds]
hostess has quit [Ping timeout: 250 seconds]
<soLucien> command = "something here #{env stuff}" ; run command ; `command`
duckpuppy has joined #ruby
<jhass> doubt that was the significant change
Kamilion has quit [Ping timeout: 268 seconds]
<jhass> yep, you changed the quotes in the process
<soLucien> well i was not having 3 layers of quotes anymore
cout has joined #ruby
<jhass> you never had
<soLucien> i was managing 3 only , which worked
intrigueD has quit [Remote host closed the connection]
Guest42070 is now known as James
DarkBushido has joined #ruby
James is now known as Guest93351
Apocalypse has joined #ruby
<soLucien> i did `powershell.exe "powershell command #{array['key']} "`
antgel has quit [Ping timeout: 250 seconds]
<soLucien> the 'key' was always being written instead of replaced
rmulligan has quit [Ping timeout: 252 seconds]
Gasher has quit [Quit: Leaving]
<jhass> unlikely, I doubt you're showing what you really had there
last_staff has quit [Quit: last_staff]
spider-mario has joined #ruby
<soLucien> but yes, i guess using the %(#{sadas}) would do the trick
AustinMatherne has joined #ruby
<soLucien> but i already committed that part, i'm on something else now :D
alexherbo2 has quit [Quit: WeeChat 1.4]
arlek has joined #ruby
bradland has joined #ruby
epochwolf has joined #ruby
<soLucien> thanks for the advice, jhass
angelixd has joined #ruby
<jhass> yw
cschneid has joined #ruby
sneakerhax has quit [Ping timeout: 244 seconds]
rideh has joined #ruby
demophoon has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
vF3hNGxc47h8 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
hostess has joined #ruby
Kamilion has joined #ruby
zenlot6 has quit [Ping timeout: 264 seconds]
zenlot has joined #ruby
sneakerhax has joined #ruby
kristianpaul has joined #ruby
<kristianpaul> Hi
<kristianpaul> :)
crowell has quit [Ping timeout: 240 seconds]
GGMethos has joined #ruby
baweaver has joined #ruby
<jhass> hi
Dimik has quit [Ping timeout: 260 seconds]
crowell has joined #ruby
crowell has quit [Changing host]
crowell has joined #ruby
<kristianpaul> is there a way to append a string to a hash index?
<kristianpaul> like a prefix
<kristianpaul> the thing is that i-m using a hash index as index inside another hash
<ytti> strings are mutable, so yes
<kristianpaul> but i-m using symbols
<Ox0dea> >> {'foo' => 42}.keys[0].frozen? # ytti
ivanskie_ has joined #ruby
<ruby[bot]> Ox0dea: # => true (https://eval.in/531175)
<ytti> then not
<ytti> symbols are not mutable
<kristianpaul> arghh
<jhass> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<ytti> Ox0dea, can you unfreeze it?
<Ox0dea> ytti: Well, sure, but that's ill-advised.
<kristianpaul> i just dint wanted to copy symbol as string concat and try again
<jhass> I don't follow
baweaver has quit [Ping timeout: 240 seconds]
<ytti> Ox0dea, sure, whole notion of changing hash keys is ill-advised :)
<Ox0dea> ytti: It is, but #rehash does exist for such occasions.
dionysus69 has quit [Ping timeout: 252 seconds]
mwlang has quit [Quit: mwlang]
ereslibre has joined #ruby
chipotle has quit [Ping timeout: 252 seconds]
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dc1 has joined #ruby
ereslibre_laptop has quit [Ping timeout: 268 seconds]
blackgoat has quit [Quit: WeeChat 1.4]
gaxar77 has joined #ruby
Gasher has joined #ruby
sneakerhax has quit [Ping timeout: 276 seconds]
jottr_ has joined #ruby
jenrzzz has joined #ruby
qubit_ has joined #ruby
chipotle has joined #ruby
moeabdol1 has quit [Ping timeout: 252 seconds]
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kristianpaul has left #ruby [#ruby]
T7rees has quit [Quit: Connection closed for inactivity]
jottr_ has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
diegoviola has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
skade has joined #ruby
Gasher^ has joined #ruby
Gasher has quit [Ping timeout: 244 seconds]
herminiotorres has joined #ruby
herminiotorres has quit [Client Quit]
Rutix has quit []
deuxclique has joined #ruby
youch has joined #ruby
jeanlinux has joined #ruby
shadoi has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
ereslibre has joined #ruby
rmulligan has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
eregi has joined #ruby
shadoi has quit [Client Quit]
cjbottaro has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
rmulligan has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
RegulationD has joined #ruby
eregi has quit [Ping timeout: 246 seconds]
skade has joined #ruby
deuxclique has quit [Remote host closed the connection]
deuxclique has joined #ruby
adac has quit [Ping timeout: 268 seconds]
fedexo has quit [Ping timeout: 268 seconds]
diegoviola has joined #ruby
dc1 has quit [Ping timeout: 260 seconds]
ivanskie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest93351 is now known as James
mattwildig has quit [Remote host closed the connection]
James is now known as Guest14707
LoneHerm_ has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
jeanlinux has quit [Ping timeout: 246 seconds]
arlek has quit [Ping timeout: 248 seconds]
system64 has quit [Quit: Connection closed for inactivity]
uglybandersnatch has quit [Ping timeout: 250 seconds]
kam270 has joined #ruby
aspiers has quit [Ping timeout: 248 seconds]
lubekpl has joined #ruby
lubekpl has quit [Client Quit]
karapetyan has joined #ruby
inennes has joined #ruby
Sid05 has joined #ruby
firstdayonthejob has quit [Ping timeout: 268 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
jenrzzz has joined #ruby
OReilly has joined #ruby
bond___ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<bond___> nice book
bond___ has quit [K-Lined]
nennes has quit [Ping timeout: 240 seconds]
OReilly has quit [Excess Flood]
OReilly has joined #ruby
solocshaw has joined #ruby
FernandoBasso has quit [Quit: Leaving]