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
jds has quit [Ping timeout: 248 seconds]
arya_ has quit [Ping timeout: 248 seconds]
bklane has quit [Ping timeout: 248 seconds]
cburyta has quit [Remote host closed the connection]
bigoldrock has quit [Ping timeout: 264 seconds]
realDAB has quit [Quit: realDAB]
pipework has joined #ruby
RichardBaker has joined #ruby
cburyta has joined #ruby
LennyLinux has quit [Remote host closed the connection]
arya_ has joined #ruby
havenwood has quit [Remote host closed the connection]
reset has joined #ruby
marr has quit [Ping timeout: 246 seconds]
<rsahae> Hey everyone, I'm having a weird issue with rake
subbyyy has joined #ruby
<rsahae> I'm using rookie, but I would also like to define some of my own tasks
<rsahae> for example
atno has quit [Read error: Operation timed out]
<rsahae> require 'rookie'
<rsahae> task :test do
wsterling has quit [Remote host closed the connection]
<rsahae> dir = File.expand_path(__FILE__)
<rsahae> rspec_command = "rspec --no-color --format documentation --out"
<rsahae> outpath = "#{dir}/test-results.#{Time.now.strftime("%Y.%m.%d")}.txt"
<rsahae> filepath = "spec/test/*"
<rsahae> command = [rspec_command, outpath, filepath]*' '
<rsahae> system( command )
<rsahae> end
<rsahae> Rookie::Tasks.new('test.gemspec').define_tasks!
<rsahae> thats my rakefile
<rsahae> but when I do a rake -T
<Spooner> PLease don't paste in here. Use gist.github.com or similar!
<rsahae> only the rookie tasks show
<rsahae> agh yes sorry about that
<rsahae> let me put it into gist and past a link
cj3kim has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
cj3kim has joined #ruby
<rsahae> so as I said, when I do a "rake -T"
<rsahae> I only see the rookie tasks
<rsahae> not my task
DanKnox is now known as DanKnox_away
saigas83 has quit [Ping timeout: 256 seconds]
<rsahae> and if I remove the rookie lines altogether
<rsahae> rake -T shows me nothing
<rsahae> so the problem must be with my task declaration?
rupee has quit [Ping timeout: 256 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Read error: Connection reset by peer]
jkline has quit [Quit: jkline]
havenwood has joined #ruby
devoldmx has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
ravster has quit [Quit: Leaving.]
<Spooner> You need to use desc "blah blah" before #task, so it knows it is a public task
alvaro_o has joined #ruby
saarinen has quit [Quit: saarinen]
<rsahae> ok, I thought that might be it
Spooner has quit [Quit: Leaving]
<rsahae> yep, that did the trick, thanks.
wsterling has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
licorn54 has joined #ruby
ntus1017 has quit [Remote host closed the connection]
arya_ has joined #ruby
nixter1029 has joined #ruby
jonahR has joined #ruby
chriskk has quit [Remote host closed the connection]
<alainus> i'm getting `rescue in <main>': undefined local variable or method `get_mail' for main:Object (NameError)
<alainus> any ideas?
hogeo has joined #ruby
<alainus> Oh, it's a typo
nari has quit [Ping timeout: 268 seconds]
brianpWins has quit [Quit: brianpWins]
mklappstuhl has joined #ruby
jonkri has quit [Quit: jonkri]
freerobby has joined #ruby
nfk has quit [Quit: yawn]
v0yager has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
julweber_ has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
chriskk has joined #ruby
Davey has joined #ruby
julweber has quit [Ping timeout: 256 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
sambao21 has joined #ruby
zeade has quit [Quit: Leaving.]
tkuchiki has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
wmoxam has joined #ruby
DonRichie has quit [Ping timeout: 260 seconds]
julweber_ has quit [Remote host closed the connection]
freerobby has joined #ruby
DonRichie has joined #ruby
pierre1 has quit [Remote host closed the connection]
dayepa has quit [Quit: dayepa]
vlad_starkov has quit [Ping timeout: 264 seconds]
freerobby has quit [Client Quit]
NsOmNiAc has quit [Ping timeout: 276 seconds]
wsterling has quit [Remote host closed the connection]
NsOmNiAc has joined #ruby
poga has quit [Remote host closed the connection]
v0n has joined #ruby
kofno has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
kofno has quit [Remote host closed the connection]
kofno has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
AlSquire has quit [Quit: This computer has gone to sleep]
buzzybron has joined #ruby
sambao21 has joined #ruby
pitzips has quit [Ping timeout: 256 seconds]
bklane has joined #ruby
marcdel has joined #ruby
adeponte has quit [Ping timeout: 276 seconds]
foscon has joined #ruby
<foscon> NIGGER
ntus1017 has joined #ruby
bklane has quit [Remote host closed the connection]
rsahae has quit [Quit: rsahae]
mansi has quit [Remote host closed the connection]
<foscon> BITCH
foscon has quit [Killed (idoru (Spam is off topic on freenode.))]
mansi has joined #ruby
keanehsiao has quit [Quit: Leaving...]
cburyta has quit [Remote host closed the connection]
bzitzow has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
cburyta has joined #ruby
Nisstyre has joined #ruby
<havenwood> apeiros: ^
eka has quit [Quit: Computer has gone to sleep.]
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 248 seconds]
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
postmodern has joined #ruby
mmitchell has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
RichardBaker has joined #ruby
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
emmanuelux has quit [Quit: emmanuelux]
viszu has joined #ruby
mocfive has quit [Remote host closed the connection]
arya_ has joined #ruby
nari has joined #ruby
RichardBaker has quit [Client Quit]
mansi has quit [Ping timeout: 240 seconds]
Yakko has joined #ruby
RichardBaker has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
sevenseacat has joined #ruby
<alainus> how can i get the data type of a variable ?
Voodoofish430 has quit [Quit: Leaving.]
takezawa has joined #ruby
cj3kim has quit [Remote host closed the connection]
julweber has joined #ruby
nowthatsamatt has joined #ruby
cj3kim has joined #ruby
adeponte has joined #ruby
GeissT has joined #ruby
fomatin has joined #ruby
mklappstuhl has joined #ruby
Jefus has joined #ruby
matematikaadit has joined #ruby
fenicks has quit [Remote host closed the connection]
sepp2k1 has quit [Quit: Leaving.]
Kruppe has joined #ruby
tommyvyo has quit [Quit:]
ssvo has quit [Ping timeout: 246 seconds]
Michael__ has joined #ruby
julweber has quit [Ping timeout: 240 seconds]
blandflakes has joined #ruby
kofno has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Ping timeout: 256 seconds]
wmoxam has quit [Ping timeout: 256 seconds]
rhys has joined #ruby
mmitchel_ has joined #ruby
mmitchell has quit [Read error: No route to host]
RichardBaker has quit [Quit: RichardBaker]
wmoxam has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
mklappstuhl has quit [Remote host closed the connection]
xargoon has quit [Ping timeout: 264 seconds]
xargoon has joined #ruby
Guest43908 has joined #ruby
Guest43908 has quit [Changing host]
Guest43908 has quit [Changing host]
Guest43908 has joined #ruby
Guest43908 is now known as Boohbah
katherinem13 has quit [Quit: leaving]
katherinem13 has joined #ruby
hamakn has joined #ruby
mmitchel_ has quit [Ping timeout: 268 seconds]
mmitchell has joined #ruby
katherinem13 has quit [Client Quit]
katherinem13 has joined #ruby
milardovich has joined #ruby
kofno has joined #ruby
ner0x has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
pskosinski has quit [Quit: Til rivido Idisti!]
cj3kim has quit [Remote host closed the connection]
Michael__ has quit [Remote host closed the connection]
Ripp__ has joined #ruby
kofno has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Xeago has quit [Remote host closed the connection]
cj3kim has joined #ruby
tjbiddle has joined #ruby
<bnagy> var.class
Targen has quit [Ping timeout: 246 seconds]
ffio has joined #ruby
_ffio_ has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
adeponte has joined #ruby
matematikaadit has quit [Quit: Leaving]
Domon has joined #ruby
Ripp__ has quit [Ping timeout: 240 seconds]
adeponte has quit [Remote host closed the connection]
Solnse has quit [Remote host closed the connection]
ntus1017 has quit [Remote host closed the connection]
dayepa has joined #ruby
bhaak has quit [Ping timeout: 264 seconds]
keanehsiao has joined #ruby
jonahR has quit [Quit: jonahR]
marcdel has joined #ruby
danslo has joined #ruby
pitzips has joined #ruby
optobear has quit [Quit: Leaving.]
agjacome has quit [Quit: leaving]
arya_ has quit [Ping timeout: 248 seconds]
keanehsiao has quit [Client Quit]
sambao21 has joined #ruby
bhaak has joined #ruby
mmitchell has quit [Read error: Connection reset by peer]
mmitchell has joined #ruby
ttt_ has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
cantonic has joined #ruby
fomatin has quit [Quit: Textual IRC Client: www.textualapp.com]
mansi has joined #ruby
TheNotary has joined #ruby
baroquebobcat has joined #ruby
whackatre has joined #ruby
whackatre has quit [Remote host closed the connection]
whackatre has joined #ruby
zastern has joined #ruby
blitz has quit [Quit: This computer has gone to sleep]
tacos1de has joined #ruby
jalcine has quit [Excess Flood]
whackatre has quit [Remote host closed the connection]
jalcine has joined #ruby
classix has quit [Ping timeout: 245 seconds]
jalcine has quit [Excess Flood]
diegoviola has joined #ruby
cburyta has quit [Remote host closed the connection]
Jefus has quit [Ping timeout: 240 seconds]
bzitzow has joined #ruby
adeponte has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
carlyle has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
freeayu has joined #ruby
druonysus has quit [Quit: Konversation terminated!]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
rickmasta has joined #ruby
twoism has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 248 seconds]
classix has joined #ruby
robustus has joined #ruby
<alainus> is there a way to delete an item from an array (as with .delete), but that returns an array without the item, instead of actually changing the variabel
<alainus> *variable
zeade has joined #ruby
<fryguy> alainus: try using select instead (and inverting logic)
<r0bgleeson> or reject
<fryguy> yah was just going to say
druonysus has quit [Quit: Konversation terminated!]
codesoda has joined #ruby
reset has quit [Ping timeout: 248 seconds]
<alainus> [1,2,3,4] - [3] also works
viszu has quit [Quit: Leaving.]
jalcine has joined #ruby
<r0bgleeson> even better
classix has quit [Ping timeout: 248 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
c0rn has joined #ruby
Hobogrammer has joined #ruby
zeade has quit [Ping timeout: 240 seconds]
nezumi has joined #ruby
nezumi has quit [Remote host closed the connection]
<alainus> in a .map statement, can I invoke the next item for a mathematical operation? (example: [40, 20, 10, 5, 1].map{ |v| v/v+1 } = [2, 2, 2, 5]
nezumi has joined #ruby
arya_ has joined #ruby
<alainus> where v+1 is the next value, not the value plus 1
sambao21_ has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
zeade has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
<bnagy> it would be ugly.
pcboy__ has quit [Read error: Operation timed out]
<bnagy> >> new=[];[40,20,10,5,1].each_cons(2) {|a,b| new << a/b}; p new
<eval-in> bnagy => [2, 2, 2, 5] ... (https://eval.in/36979)
kpshek has joined #ruby
vlad_starkov has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<alainus> wow great.
<alainus> huh each_cons is not on the Array Class in ruby-docs
bigkm has quit [Ping timeout: 240 seconds]
<bnagy> Enumerable
i_s has joined #ruby
<alainus> new=[];[40,15,10,3,2].each_cons(2) {|a,b| new << a/b}; p new
sambao21_ has quit [Ping timeout: 264 seconds]
<alainus> >> new=[];[40,15,10,3,2].each_cons(2) {|a,b| new << a/b}; p new
<eval-in> alainus => [2, 1, 3, 1] ... (https://eval.in/36980)
<alainus> no way to set those to floating point ?
<bnagy> call .to_f on either a or b
fgo has quit [Remote host closed the connection]
<alainus> thank you!
carlyle has quit [Remote host closed the connection]
radic__ has quit [Ping timeout: 246 seconds]
katherin1m13 has joined #ruby
cofin has joined #ruby
arya_ has quit []
vlad_starkov has quit [Ping timeout: 264 seconds]
darknyan has quit [Read error: Connection reset by peer]
jmimi1 has quit [Ping timeout: 264 seconds]
devoldmx3 has quit [Remote host closed the connection]
tundrax has joined #ruby
AwayLex is now known as Quadlex
CaptainJet_ has joined #ruby
CaptainJet has quit [Disconnected by services]
rhys has quit [Quit: Leaving]
saarinen has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has quit [Quit: Leaving]
Vivekananda has joined #ruby
stuartrexking has joined #ruby
stuartrexking has quit [Client Quit]
gsvolt has joined #ruby
radic__ has joined #ruby
splittingred has joined #ruby
zastern has quit [Remote host closed the connection]
<sevenseacat> thats one dumb law.
codesoda has quit [Remote host closed the connection]
machuga is now known as machuga|away
Davey has quit [Quit: Computer has gone to sleep.]
machuga|away is now known as machuga
ssvo has joined #ruby
machuga is now known as machuga|away
blitz has joined #ruby
Guga_ has quit [Quit: ~]
danslo has quit [Quit: danslo]
cofin has quit [Quit: cofin]
mmitchell has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
Opettaja has joined #ruby
codesoda has joined #ruby
haxrbyte has joined #ruby
classix has joined #ruby
saarinen has quit [Quit: saarinen]
lys has quit [Quit: lys]
kobain has quit [Quit: El motor por excelencia http://www.europio.org/]
alvaro_o has quit [Quit: Ex-Chat]
haxrbyte_ has joined #ruby
codesoda has quit [Remote host closed the connection]
chimkan has joined #ruby
haxrbyte has quit [Ping timeout: 268 seconds]
krainboltgreene has quit [Ping timeout: 264 seconds]
tjbiddle has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
zarubin has joined #ruby
sambao21 has joined #ruby
malcolmva has quit [Ping timeout: 240 seconds]
thepumpk_ has joined #ruby
malcolmva has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
thepumpkin has quit [Ping timeout: 264 seconds]
maxmanders has joined #ruby
maxmanders has quit [Client Quit]
tundrax has quit [Remote host closed the connection]
saarinen has joined #ruby
<TheNotary> As I understand it, an "Internet Cafe" is a physical place that exists where human beings can go perform digital acts and meet other human beings doing the same.
<TheNotary> Sure, why not ban them, and while we're at it, let's ban English too, we'll all talk in New Speak to each other, that'll show 'em
havenwood has quit [Remote host closed the connection]
tundrax has joined #ruby
yekta has joined #ruby
<bnagy> oh no, HN has found me :< HIDE!
cha1tanya_ has joined #ruby
<alainus> I'm getting a huge infinite loop on my code and I'm not able to fix it for the life of me. Can anyone help me with a small revie
<alainus> w
cha1tanya_ has quit [Client Quit]
cha1tanya_ has joined #ruby
anay has joined #ruby
cha1tanya_ is now known as cha1tanya
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<sam113101> paste code
<alainus> on it
<sam113101> show your code and someone will help
tommyvyo has joined #ruby
jbueza has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 246 seconds]
<alainus> I think I might have seen the problem by trying to explain it in the comments, though. I'm using @differentials where I should be using @order in the if conditional
vlad_starkov has joined #ruby
devoldmx3 has joined #ruby
anay has quit [Remote host closed the connection]
zodiak has joined #ruby
banghouse2 has joined #ruby
baroquebobcat has joined #ruby
maxmanders has joined #ruby
io_syl has quit [Ping timeout: 264 seconds]
<alainus> I *kind of* fixed it
banghouse2 is now known as banghouse
<alainus> but this .sort! thing is making @order appear backwards at the end
tylersmith has joined #ruby
<bnagy> uh.. wat
<bnagy> what are you trying to do?
<TheNotary> ^
<TheNotary> the method would look prettier to me (and be easier/possible to test) if it had two parameter inputs (order, additions), and it returned what ever it is you're trying to return
ranmocy has joined #ruby
syamajala has joined #ruby
syamajala has quit [Client Quit]
<TheNotary> and might be clearer too, it's kind of hard to get to the bottom of in this state
syamajala has joined #ruby
<bnagy> the recursive call with no clear bailout makes me queasy
vlad_starkov has quit [Ping timeout: 264 seconds]
<bnagy> basically, whatever you're trying to do, I'm pretty sure that's Wrong
johnnyfuchs has joined #ruby
<alainus> The purpose is to grab a variable @order, say: [50, 20, 4, 2, 1]
ebobby has quit [Ping timeout: 256 seconds]
<alainus> and make sure that none of the elements is 1.5 times greater than the following, by adding elements in between
<bnagy> what elements?
<bnagy> like.. any?
<alainus> resulting in this case in [50, 30, 20, 4, 3, 2, 1.5, 1] (or something like that)
<alainus> the elements of @order
<TheNotary> oh, I see now
ssvo has quit [Ping timeout: 256 seconds]
<bnagy> where did 30 come from?
maxmanders has quit [Ping timeout: 256 seconds]
<alainus> no, it's an approximation :)
<TheNotary> it can't go from 50 -> 20, it needs 30 in between them
<bnagy> why 30?
<bnagy> why not 31?
<alainus> let me explain it more precisely
<TheNotary> assuming his 1.5 times rule applies
<bnagy> so 20 * 1.5?
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
<alainus> if @order = [20, 10], 20 is > 1.5*10, so the function must add a number in between: 20/1.5 = 13.4, resulting in [20, 13.4, 10]
<alainus> and now none of the items is 1.5 times greater than the following
<bnagy> what goes in between 20 and 4?
<bnagy> basically provide an input and an output
<alainus> there should be one too. Forget my previous example it wasn't precise
<alainus> the last one is
<alainus> also, I need to have an @additions variable that has all the numbers that were added (in this case, @additions = [13.4]
<bnagy> that's trivial
Meatant has joined #ruby
<bnagy> so you're saying the array is guaranteed to be solveable by at most in insert between pairs?
<bnagy> because random sorted numbers would not be
<alainus> No, the @order variable is sorted in descending order from the start
<alainus> I'm using @order << add there
<bnagy> yeah but unless it is specifically crafted so that one insert will satisfy your condition then you need to do different stuff
<alainus> and then sort it again because add will get in the last position
<bnagy> otherwise it's easy
<bnagy> like the example you gave - 20 then 4
<bnagy> unsat
<alainus> Then it would add more than 1 number
<alainus> see ?
<bnagy> that's what I asked before
<alainus> func([20,4]) = [20, 13.4, 8.9, 5.9, 4]
eldariof has joined #ruby
<alainus> <bnagy> so you're saying the array is guaranteed to be solveable by at most in insert between pairs?
<alainus> oh, that
<alainus> no, it adds more numbers if it's not
<bnagy> ok
<bnagy> basically just use shift and then insert fillers until you can shift again
pitzips has quit [Quit: Leaving]
queston has joined #ruby
<bnagy> then additions is new - old
* alainus taking notes
Es0teric has quit [Quit: Computer has gone to sleep.]
<alainus> ok that sounds solid
headius has quit [Quit: headius]
tundrax has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
havenwood has joined #ruby
maxmanders has joined #ruby
<bnagy> until old.empty? then something like while new.last > old.first * 1.5 # insert filler; new.push old.shift
<bnagy> give or take, that's just otoh
<bnagy> off the top of head.. acronym. fail. bad. me. no.engrish. good.
__researcher has joined #ruby
<sevenseacat> otoh = on the other hand
<bnagy> sevenseacat: yes. hence 'acronym fail'
<sevenseacat> ;)
<alainus> a = array.shift; if a > array[0] then array.unshift[a/1.5] --- repeat
<alainus> how about that
<bnagy> that looks completely different
<alainus> i'm adding this stuff to the file comments though , I'm done for today
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> you need a new array - oh and yu'll probably also want a copy of the old one
<bnagy> so you can get your additions at the end
maxmanders has quit [Ping timeout: 256 seconds]
fgo has joined #ruby
banjara has joined #ruby
<alainus> ok guys thanks for the input
banjara has quit [Read error: Connection reset by peer]
badquanta has quit [Quit: Leaving]
nanoxd has quit [Quit: Textual IRC Client: www.textualapp.com]
banjara has joined #ruby
<bnagy> new.push(new.last/1.5) until old.first * 1.5 < old.last
queston has quit [Ping timeout: 256 seconds]
<bnagy> last bit is new.last not old.last
baroquebobcat has quit [Quit: baroquebobcat]
<bnagy> basically push fillers until the next item is big enough, then push the next item
<bnagy> should be like 6 lines of code
banjara1 has quit [Ping timeout: 276 seconds]
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
anay has joined #ruby
RichardBaker has joined #ruby
Yakko has quit [Read error: Connection reset by peer]
xargoon has quit [Ping timeout: 248 seconds]
banjara1 has joined #ruby
thesheff17 has quit [Read error: Connection reset by peer]
xargoon has joined #ruby
banjara has quit [Ping timeout: 248 seconds]
Mars` has quit [Ping timeout: 240 seconds]
io_syl has joined #ruby
tundrax has joined #ruby
mmitchell has joined #ruby
pierre1 has joined #ruby
rickmasta has quit [Quit: Leaving...]
__researcher has left #ruby [#ruby]
blitz has quit [Quit: This computer has gone to sleep]
thepumpk_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
Bosox20051 has joined #ruby
mmitchell has quit [Ping timeout: 264 seconds]
jonahR has joined #ruby
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
pierre1 has quit [Remote host closed the connection]
Mars` has joined #ruby
kpshek has quit []
queston has joined #ruby
endomorphism has joined #ruby
gstamp has joined #ruby
<endomorphism> Hello. Does anybody know if it's possible to test shoes4 GUI with rspec and cucumber? For example, I want to make sure that the button contains specified text or that it does the right thing.
blitz has joined #ruby
ranmocy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tommyvyo has quit [Quit:]
ranmocy has joined #ruby
havenwood has quit [Remote host closed the connection]
sambao21 has joined #ruby
arya_ has joined #ruby
buzzybron1 has joined #ruby
tylersmith has quit [Remote host closed the connection]
buzzybron has quit [Ping timeout: 264 seconds]
ckrailo has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
Asher has quit [Remote host closed the connection]
gstamp has quit [Remote host closed the connection]
Asher has joined #ruby
kofno has joined #ruby
gstamp has joined #ruby
syamajala has quit [Quit: leaving]
vlad_starkov has joined #ruby
julweber has joined #ruby
gstamp has quit [Remote host closed the connection]
gstamp has joined #ruby
ebobby has joined #ruby
bzitzow has quit [Ping timeout: 240 seconds]
Inside has quit [Ping timeout: 256 seconds]
Kabaka has joined #ruby
julweber has quit [Ping timeout: 256 seconds]
tundrax has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 248 seconds]
mupkoo has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
nazty has quit [Read error: Connection reset by peer]
ebobby has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
nazty has joined #ruby
Opettaja has quit [Remote host closed the connection]
sambao21 has joined #ruby
Kruppe has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
will_grr has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jkline has joined #ruby
Vivekananda has quit [Ping timeout: 264 seconds]
queston has quit [Remote host closed the connection]
queston has joined #ruby
yekta has quit [Quit: yekta]
queston has quit [Read error: Connection reset by peer]
darth_chatri has joined #ruby
mary5030 has joined #ruby
adeponte has quit [Remote host closed the connection]
_Andres has joined #ruby
ssvo has joined #ruby
dhruvasagar has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Shirakawasuna has joined #ruby
banghouse has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 252 seconds]
dodosan has joined #ruby
tomzx_mac has quit [Ping timeout: 256 seconds]
cantonic has quit [Quit: cantonic]
splittingred has quit [Quit: splittingred]
mary5030 has quit [Remote host closed the connection]
Vivekananda has joined #ruby
mary5030 has joined #ruby
fredjean has joined #ruby
banjara1 has quit [Quit: Leaving.]
Mars^ has joined #ruby
mary5030 has quit [Ping timeout: 248 seconds]
atno has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
thebastl has joined #ruby
thebastl has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 246 seconds]
adeponte has joined #ruby
MrZYX|off is now known as MrZYX
renderful has quit [Remote host closed the connection]
Mars^ has quit [Ping timeout: 256 seconds]
pootler has quit [Ping timeout: 256 seconds]
voglster has quit [Read error: Operation timed out]
Mars^ has joined #ruby
fridim_ has quit [Ping timeout: 246 seconds]
nazty has quit [Read error: Connection reset by peer]
smiller has joined #ruby
nazty has joined #ruby
apeiros has quit [Remote host closed the connection]
<smiller> Which versions of ruby support splat operators in the middle of function definitions, e.g. "def f(a, *args, b)"?
apeiros has joined #ruby
staafl has joined #ruby
gildo_ has quit [Ping timeout: 264 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
<smiller> Seems to work in 1.9.
smiller has left #ruby [#ruby]
i_s has quit [Quit: i_s]
codecop has joined #ruby
i_s has joined #ruby
jmimi has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
_seanc_ has joined #ruby
eldariof has quit [Ping timeout: 268 seconds]
i_s has quit [Client Quit]
endomorphism has quit [Quit: Leaving]
tagrudev has joined #ruby
workmad3 has joined #ruby
ner0x has quit [Quit: Leaving]
banjara has joined #ruby
jeffreylevesque has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
headius has joined #ruby
tylersmith has joined #ruby
renderful has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
rezzack has quit [Quit: Leaving.]
tylersmith has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
havenwood has quit [Remote host closed the connection]
thebastl has joined #ruby
<bnagy> it's oold, I don't know exactly, but definitely 1.8
<bnagy> uh... waait maybe not in the middle sorry misread
<bnagy> 18>> def foo(a,*b,c);p b;end; foo(1,2,3,4,5,6)
<eval-in> bnagy => /tmp/execpad-7417868f757c/source-7417868f757c:2: syntax error, unexpected tIDENTIFIER, expecting tAMPER or '&' ... (https://eval.in/36981)
_seanc_ has quit [Quit: _seanc_]
<bnagy> 19>> def foo(a,*b,c);p b;end; foo(1,2,3,4,5,6)
<eval-in> bnagy => [2, 3, 4, 5] ... (https://eval.in/36982)
<bnagy> there's your answer :)
chimkan has quit [Quit: chimkan]
tonini has joined #ruby
darrik has quit [Quit: *poof*]
_seanc_ has joined #ruby
dash_ has joined #ruby
marcdel has joined #ruby
axeman- has joined #ruby
<zendeavor> bnagy: your filters are too strong
<zendeavor> he was only in channel for about 20 seconds.
v0n has joined #ruby
will_grr has left #ruby [#ruby]
brennanMKE has quit [Remote host closed the connection]
<bnagy> oh. I ignore parts and crap :)
chimkan has joined #ruby
jkline has quit [Quit: jkline]
<zendeavor> well, less than 5 minutes. i use weechat with its neato smart_filter
noop has joined #ruby
<zendeavor> only shows join/parts from users who speak within 5 minutes of either event
brianpWins has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
jbueza has joined #ruby
jblack has quit [Ping timeout: 246 seconds]
jblack has joined #ruby
haxrbyte_ has quit [Ping timeout: 248 seconds]
haxrbyte has joined #ruby
pootler has joined #ruby
subbyyy has quit [Ping timeout: 248 seconds]
ranmocy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
apeiros has quit [Ping timeout: 264 seconds]
yaboo has joined #ruby
jhowarth_ has quit [Quit: Connection closed for inactivity]
wookiehangover has quit [Quit: i'm out]
diegoviola has quit [Quit: WeeChat 0.4.1]
wookiehangover has joined #ruby
fgo has quit [Remote host closed the connection]
chimkan has quit [Ping timeout: 256 seconds]
rupee has joined #ruby
pranny has joined #ruby
banjara has quit [Quit: Leaving.]
pranny1 has joined #ruby
jblack has quit [Ping timeout: 268 seconds]
adeponte has quit [Remote host closed the connection]
banjara1 has joined #ruby
nomenkun has joined #ruby
marvelous has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
wesside has quit [Ping timeout: 246 seconds]
pranny has quit [Ping timeout: 256 seconds]
renderful has quit [Remote host closed the connection]
jkline has joined #ruby
marvelous has left #ruby [#ruby]
vlad_starkov has joined #ruby
poseid has joined #ruby
yaboo has quit [Remote host closed the connection]
io_syl has quit [Quit: io_syl]
tjbiddle has joined #ruby
ayaz has joined #ruby
banjara1 has quit [Quit: Leaving.]
yaboo has joined #ruby
chriskk has quit [Quit: chriskk]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
rupee has quit [Ping timeout: 264 seconds]
poseid has quit [Quit: poseid]
osvico has quit [Ping timeout: 264 seconds]
mahmoudimus has joined #ruby
hadees has quit [Quit: hadees]
mrfoo has joined #ruby
apeiros has joined #ruby
julweber has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
_seanc_ has quit [Quit: _seanc_]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blaxter has joined #ruby
yaboo has quit [Remote host closed the connection]
yaboo has joined #ruby
yaboo has quit [Client Quit]
yaboo has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
hadees has joined #ruby
madb055 has quit [Read error: No route to host]
madb055 has joined #ruby
ayaz has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Quit: tjbiddle]
optimusprimem has quit [Ping timeout: 245 seconds]
b0oh has joined #ruby
cj3kim has quit [Remote host closed the connection]
madb055 has quit [Ping timeout: 240 seconds]
ayaz has joined #ruby
bluehavana has quit [Quit: Connection closed for inactivity]
sdogruyol has joined #ruby
statarb3 has quit [Quit: Leaving]
Mars^ has quit [Ping timeout: 240 seconds]
rosario has joined #ruby
timonv has joined #ruby
codeplay has joined #ruby
<rosario> Hello
zigomir has joined #ruby
jds has joined #ruby
<rosario> Not to start a debate over which language is better, but could you say if there is an advantage of using Ruby vs using Perl or Python?
darth_chatri1 has joined #ruby
ninegrid has joined #ruby
<sevenseacat> lol
<sevenseacat> try them all, see which you prefer.
darth_chatri has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
jprovazn has joined #ruby
eightbitraptor has joined #ruby
_Andres has joined #ruby
b0oh has quit [Quit: Leaving.]
colonolGron has joined #ruby
<codeplay> Ruby's large gemset is one quick advantage.
b0oh has joined #ruby
wisewizard has joined #ruby
fgo has joined #ruby
eightbitraptor has quit [Client Quit]
<popl> Perl has CPAN.
<bnagy> yeah and python has about a billion libs
eightbitraptor has joined #ruby
<bnagy> in fact I'd probably put ruby last on 'availability of other people's code'
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Excess Flood]
<bnagy> quality of same is a different matter
bondar has joined #ruby
bondar has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
statarb3 has joined #ruby
ssvo has quit [Ping timeout: 256 seconds]
andikr has joined #ruby
<bnagy> starting perl as a new language now is probably bad, because all the perl users are very old and will die soon
<bnagy> so hard to get advice
Mars^ has joined #ruby
bondar has joined #ruby
bondar has quit [Excess Flood]
<zendeavor> not really difficult to get advice though
wisewizard is now known as wizard_
wizard_ is now known as wisewizard
<popl> heh
buibex has joined #ruby
brennanMKE has quit [Ping timeout: 256 seconds]
<bnagy> all ruby's idiotci global vars are from our aged perl forefathers ( @$ @! @: @< ...)
<zendeavor> but learning perl's core language sucks
relix has joined #ruby
pen has quit [Remote host closed the connection]
<zendeavor> "there's a cpan module for that"
jkline has quit [Quit: jkline]
<bnagy> the way I see it, python has waaay more mindshare, so if you want to use other people's code and don't mind a slightly headfucked approach to OO python is good
<zendeavor> but i wanna learn how to implement it myself
<zendeavor> "read the cpan module source"
<zendeavor> "that's already the best way"
<zendeavor> i wanna learn my own way
<zendeavor> same as C really
blaxter has quit [Quit: foo]
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
<sevenseacat> i couldnt wrap my brain around python. that was some years ago though, before i learnt ruby
goodgame has joined #ruby
bondar has quit [Excess Flood]
<bnagy> if you want to do web crap ruby is definitely the way to go
<zendeavor> popl: perl's still kewl tho.
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Client Quit]
ayaz has quit [Read error: Operation timed out]
clocKwize has joined #ruby
<bnagy> yeah fortran has its moments too
mickeyd has joined #ruby
bondar has joined #ruby
bondar has quit [Client Quit]
<bnagy> I hear F90 or whatever is really slick
blaxter_ has joined #ruby
<zendeavor> i don't mind using other people's code, but i had so much trouble getting into python with the thought hanging over my head "the stdlib probably already does this in some obscure way"
yaboo has quit [Remote host closed the connection]
fwaokda has quit [Ping timeout: 260 seconds]
<goodgame> MrZYX: I'm sorry if it double posts (I'm encountering network pb) but what is the -I mode you've talked about yesterday?
pootler has quit [Ping timeout: 264 seconds]
<bnagy> rosario: what areas of programming interest you?
v0n has quit [Ping timeout: 256 seconds]
clocKwize has quit [Client Quit]
romockee has joined #ruby
ayaz has joined #ruby
<rosario> It struggle with it, but mostly want to use it in sysadmin roles for automation purposes.
eightbitraptor has quit [Quit: eightbitraptor]
_seanc_ has joined #ruby
nomenkun has quit [Remote host closed the connection]
<bnagy> python, then learn ansible
<bnagy> hands down
blaxter_ has quit [Ping timeout: 256 seconds]
<rosario> Perl looks archaic and complex. Python seems readable but it was a little difficult to learn. I don't know much about ruby.
persand has joined #ruby
<zendeavor> administration leans toward perl because "it's already everywhere"
yaboo has joined #ruby
<bnagy> hm. I'm seeig a lot less perl and a lot more python for general *nix utility scripting
<bnagy> and I expect that trend to continue imho
<zendeavor> these days, for sure
<bnagy> plus ansible is pretty sweet
<rosario> I guess what sparks my interest is, puppet's inherit scripting lang is ruby. Puppet is a big deal now for admins
<zendeavor> but if you're working with legacy systems, which is absurdly common, generally "perl's already there"
<zendeavor> rosario: puppet is just one of many
<bnagy> puppet is wank
sayan has joined #ruby
<bnagy> it's what web designers prodice when you ask them for a devops tool
b0oh has quit [Quit: Leaving.]
staafl has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
havenwood has joined #ruby
<zendeavor> if you're setting up new systems that you are the initial administartor for, choose your favourite tool for the job. you aren't constrained by maintaining legacy compatibility with existing automation
darth_chatri1 is now known as darth_chatri
optimusprimem has joined #ruby
_seanc_ has quit [Quit: _seanc_]
jds has quit [Remote host closed the connection]
ephemerian has joined #ruby
blaxter_ has joined #ruby
ericmathison has quit [Quit: leaving]
adeponte has joined #ruby
philipe1 has joined #ruby
threesome has joined #ruby
renderful has joined #ruby
sdogruyol has quit [Quit: sdogruyol]
adeponte has quit [Ping timeout: 256 seconds]
blitz has quit [Quit: This computer has gone to sleep]
mroth has quit [Quit: Connection closed for inactivity]
colonolG1on has joined #ruby
fphilipe has joined #ruby
lapsa has joined #ruby
havenwood has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 248 seconds]
nowthatsamatt has joined #ruby
colonolGron has quit [Ping timeout: 240 seconds]
wisewizard has quit [Remote host closed the connection]
yaboo has quit [Remote host closed the connection]
gstamp has quit [Quit: Computer has gone to sleep.]
Mars^ has quit [Ping timeout: 256 seconds]
tonini has quit [Remote host closed the connection]
tonini has joined #ruby
rdark has joined #ruby
marvelous1 has joined #ruby
maxmanders has joined #ruby
jonahR has quit [Quit: jonahR]
danslo has joined #ruby
danslo has quit [Client Quit]
tatsuya_o has joined #ruby
danslo has joined #ruby
binaryplease has joined #ruby
J2000_ca has joined #ruby
pootler has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
marvelous1 has quit [Quit: Leaving.]
sdogruyol has joined #ruby
denver has joined #ruby
J2000_ca has quit [Quit: Page closed]
Vivekananda has quit [Ping timeout: 248 seconds]
arya__ has joined #ruby
dotemacs has quit [Quit: Connection closed for inactivity]
havenwood has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
__wizard has joined #ruby
jbpros has joined #ruby
julweber has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<rosario> Thanks for all the feedback, all.
niceguyjames has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
camilasan has joined #ruby
fgo has quit [Remote host closed the connection]
jds has joined #ruby
troessner has joined #ruby
danslo has quit [Quit: danslo]
<__wizard> whois
__wizard has left #ruby ["Leaving"]
lkba has quit [Ping timeout: 248 seconds]
__wizard has joined #ruby
Vivekananda has joined #ruby
corehook has joined #ruby
jbueza has quit [Quit: Leaving.]
marr has joined #ruby
jbueza has joined #ruby
headius has quit [Quit: headius]
CaptainJet_ has quit []
vigintas has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.1]
danslo has joined #ruby
jds has quit [Ping timeout: 256 seconds]
DaniG2k has joined #ruby
hogeo has quit [Remote host closed the connection]
Shipow has joined #ruby
Shipow has quit [Client Quit]
fphilipe has quit [Ping timeout: 246 seconds]
zets has quit [Ping timeout: 276 seconds]
philipe1 has quit [Ping timeout: 264 seconds]
<sdogruyol> anyone here tried laravel ?
b0oh has joined #ruby
zets has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
Rix has quit [Ping timeout: 248 seconds]
<joonty> sdogruyol: the PHP framework?
<sdogruyol> joonty : yes that one
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
b0oh has quit [Ping timeout: 246 seconds]
<joonty> I'm losing faith in PHP, after 5 years :(
DestinyAwaits has joined #ruby
<sdogruyol> joonty : well i thought so but laravel gonna be the saviour of php soon imho
<sevenseacat> i just installed laravel today actually
<sdogruyol> sevenseacat : really ?
<sevenseacat> yep
<joonty> PHP will always be unattractive as a language, and imo the closures make it look worse
<sevenseacat> it looks like a nice framework, but then again i havent got much past hello world :p
<sdogruyol> joonty: also not a fan of Php but have to admit that it's kinda everywhere
<sdogruyol> sevenseacat: yeah it's pretty nice one combining the best of a lot of good frameworks
<sdogruyol> sevenseacat: currently messing up with laravel via a vagrant box
<joonty> sdogruyol: true. A lot of that had to do with the fact that it was the language with the smallest learning curve during a time when the other web language options were asp and java
<joonty> don't get me wrong, I think PHP is fine. It's just not ruby.
Rix has joined #ruby
<sdogruyol> joonty: yeah and you know in most parts of the world it's really easy to find some php guy
<sdogruyol> joonty: ah don't worry i got you :) off it's not ruby wish it was :)
blackmesa has joined #ruby
<joonty> sdogruyol: yeh, it's sad when employers have to pick a language due to abundance of developers rather than the best choice for the job
<joonty> here, .NET and PHP reign, closely followed by Java
<sdogruyol> yeah sad but true
<DaniG2k> i need to learn groovy -_- fml
<DaniG2k> cause they want to use it at my company
<sdogruyol> joonty: actually the same here . where you from ?
<DaniG2k> worst piece of crap ever
shaunbaker has joined #ruby
<joonty> sdogruyol: UK - Birmingham
<sdogruyol> joonty : ah Turkey - Istanbul here
<joonty> sdogruyol: hah, some things are the same everywhere then!
<sdogruyol> joonty: though working in a UK based company lol
<joonty> sdogruyol: good stuff
<joonty> DaniG2k: I feel your pain
<sdogruyol> DaniG2k: groovy on rails at least the name resembles :D
Zai00 has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<joonty> "It's almost the same thing!"
<sdogruyol> joonty: how's the work ratio in UK for ruby and for stuff
elaptics`away is now known as elaptics
<joonty> sdogruyol: growing, but slowly. Generally you're better off as a ruby dev than a company looking for ruby devs, due to shortage
TIJ has joined #ruby
robbyoconnor has joined #ruby
senayar has joined #ruby
<joonty> Also, lots more going on in London, but not everyone lives there :P
krz has joined #ruby
<sdogruyol> joonty: well quite the same here lol you know people get jobs from saying things like .net is more secure etc
noname001 has joined #ruby
vlad_starkov has joined #ruby
<joonty> I love how people talk about security
ybart has joined #ruby
dodosan has quit [Remote host closed the connection]
<joonty> the most secure program is one that accepts no user input and is running on a machine disconnected from the internet
<sdogruyol> joonty: ROFL so true :)
dodosan has joined #ruby
<zendeavor> i don't
<zendeavor> they need to stfu.
goshakkk has joined #ruby
<joonty> zendeavor: sarcasm :D (unless you double-sarcasm'd me)
leonid__ has joined #ruby
devoldmx has joined #ruby
jbueza has quit [Quit: Leaving.]
<zendeavor> no i super srs'd you
devoldmx3 has quit [Ping timeout: 256 seconds]
julweber has joined #ruby
dodosan has quit [Ping timeout: 256 seconds]
<joonty> hehe
devoldmx3 has joined #ruby
hogeo has joined #ruby
ebobby has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
buzzybron1 has left #ruby [#ruby]
fwaokda has joined #ruby
mickeyd has quit [Ping timeout: 264 seconds]
persand has quit [Quit: persand]
ZadYree has quit [Ping timeout: 240 seconds]
ebobby has quit [Ping timeout: 256 seconds]
mickeyd has joined #ruby
eightbitraptor has joined #ruby
saarinen has quit [Quit: saarinen]
fwaokda has quit [Ping timeout: 264 seconds]
codezombie has quit [Read error: Connection reset by peer]
b0oh has joined #ruby
mikecmpbll has joined #ruby
davout has joined #ruby
khushildep has joined #ruby
jkline has joined #ruby
<davout> hello all
<davout> can someone point me to a robust and maintained DSL-creation gem ?
persand has joined #ruby
nomenkun has joined #ruby
Villadelfia has quit [Ping timeout: 268 seconds]
SeySayux has quit [Ping timeout: 264 seconds]
LennyLinux has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Villadelfia has joined #ruby
ged has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fivethreeo has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
WhereIsMySpoon_ has joined #ruby
atmosx has quit [Ping timeout: 240 seconds]
atmosx_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
jds has joined #ruby
blackmes1 has joined #ruby
vlad_starkov has joined #ruby
eightbitraptor has quit [Ping timeout: 248 seconds]
foohey_ has joined #ruby
alo1_ has joined #ruby
Muz_ has joined #ruby
arya_ has joined #ruby
lump has joined #ruby
arya__ has quit [Ping timeout: 248 seconds]
eka has joined #ruby
colonolG1on has quit [Quit: Lost terminal]
jds has quit [Ping timeout: 248 seconds]
spacemud_ has joined #ruby
Meatant has quit [Quit: wibble]
Azure|dc has joined #ruby
Azure|dc has quit [Changing host]
Azure|dc has joined #ruby
nomadic_ has joined #ruby
eightbitraptor has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
optimusprimem has quit [*.net *.split]
Azure has quit [*.net *.split]
willb1 has quit [*.net *.split]
foohey has quit [*.net *.split]
Tarential has quit [*.net *.split]
nomadic has quit [*.net *.split]
rotor has quit [*.net *.split]
Muz has quit [*.net *.split]
nuba has quit [*.net *.split]
elektronaut has quit [*.net *.split]
Zelest has quit [*.net *.split]
aedorn has quit [*.net *.split]
froy has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
alo1 has quit [*.net *.split]
fivethre1o has quit [*.net *.split]
TMM has quit [*.net *.split]
Guest92337 has quit [*.net *.split]
wuest has quit [*.net *.split]
Guest82294 has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
phreax_ has quit [*.net *.split]
rpgsimmaster_ has quit [*.net *.split]
jayne has quit [*.net *.split]
pdtpatrick has quit [*.net *.split]
daaaan has quit [*.net *.split]
lancepantz has quit [*.net *.split]
spacemud has quit [*.net *.split]
eregon has quit [*.net *.split]
mljsimone|away has quit [*.net *.split]
WhereIsMySpoon has quit [*.net *.split]
Boohbah has quit [*.net *.split]
Guest60009 has quit [*.net *.split]
BeanDip_ has quit [*.net *.split]
marcellu1 has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
goshakkk has quit [*.net *.split]
Zai00 has quit [*.net *.split]
DestinyAwaits has quit [*.net *.split]
corehook has quit [*.net *.split]
vigintas has quit [*.net *.split]
rdark has quit [*.net *.split]
lapsa has quit [*.net *.split]
threesome has quit [*.net *.split]
statarb3 has quit [*.net *.split]
jprovazn has quit [*.net *.split]
jmimi has quit [*.net *.split]
radic__ has quit [*.net *.split]
bhaak has quit [*.net *.split]
GeissT has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
ryanhirsch has quit [*.net *.split]
cads has quit [*.net *.split]
autumn has quit [*.net *.split]
[0x1a] has quit [*.net *.split]
JoeTheGuest has quit [*.net *.split]
sarcilav has quit [*.net *.split]
keyvan has quit [*.net *.split]
JMcAfreak has quit [*.net *.split]
r0bgleeson has quit [*.net *.split]
[Neurotic] has quit [*.net *.split]
yeban has quit [*.net *.split]
echevemaster has quit [*.net *.split]
ziyadb has quit [*.net *.split]
chxane has quit [*.net *.split]
devdazed has quit [*.net *.split]
filipe has quit [*.net *.split]
joonty has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
jericon has quit [*.net *.split]
ttt_ has quit [*.net *.split]
closer has quit [*.net *.split]
rismoney has quit [*.net *.split]
nomenkun has quit [*.net *.split]
cibs has quit [*.net *.split]
ybart has quit [*.net *.split]
hogeo has quit [*.net *.split]
jkline has quit [*.net *.split]
__wizard has quit [*.net *.split]
tatsuya_o has quit [*.net *.split]
sayan has quit [*.net *.split]
romockee has quit [*.net *.split]
ayaz has quit [*.net *.split]
rosario has quit [*.net *.split]
tagrudev has quit [*.net *.split]
Shirakawasuna has quit [*.net *.split]
nazty has quit [*.net *.split]
malcolmva has quit [*.net *.split]
nezumi has quit [*.net *.split]
Domon has quit [*.net *.split]
dayepa has quit [*.net *.split]
NsOmNiAc has quit [*.net *.split]
takezawa has quit [*.net *.split]
sevenseacat has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
AlbireoX has quit [*.net *.split]
andredieb has quit [*.net *.split]
sumark has quit [*.net *.split]
bnagy has quit [*.net *.split]
mnms has quit [*.net *.split]
digifiv5e has quit [*.net *.split]
freakazoid0223 has quit [*.net *.split]
rblackwe has quit [*.net *.split]
undert has quit [*.net *.split]
caveat- has quit [*.net *.split]
ThePicard has quit [*.net *.split]
blz37 has quit [*.net *.split]
blast_hardcheese has quit [*.net *.split]
hexbit has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
naquad has quit [*.net *.split]
yellow5 has quit [*.net *.split]
Schmidt has quit [*.net *.split]
Kudos has quit [*.net *.split]
Guest66930 has quit [*.net *.split]
Cork has quit [*.net *.split]
bakedb_ has quit [*.net *.split]
iaj has quit [*.net *.split]
jacobw has quit [*.net *.split]
effbiai has quit [*.net *.split]
erichmenge has quit [*.net *.split]
billiam has quit [*.net *.split]
zets has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
Mo0O has quit [*.net *.split]
zavier has quit [*.net *.split]
choobie has quit [*.net *.split]
is_null has quit [*.net *.split]
DandyPandy_ has quit [*.net *.split]
Freeaqingme has quit [*.net *.split]
KRF has quit [*.net *.split]
adrian1 has quit [*.net *.split]
robert_ has quit [*.net *.split]
wykydtron has quit [*.net *.split]
heftig has quit [*.net *.split]
Guest73681 has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
tommyblue has quit [*.net *.split]
tethra has quit [*.net *.split]
sweet_kid has quit [*.net *.split]
e-dard has quit [*.net *.split]
swistak35 has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
kzrl_ has quit [*.net *.split]
seich has quit [*.net *.split]
ShapeShifter499 has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
oz has quit [*.net *.split]
shtirlic has quit [*.net *.split]
chee has quit [*.net *.split]
drizz has quit [*.net *.split]
aboudreault has quit [*.net *.split]
drfreeze has quit [*.net *.split]
Catie has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
fearoffish has quit [*.net *.split]
scrogson has quit [*.net *.split]
spacebug has quit [*.net *.split]
pontiki has quit [*.net *.split]
toddWork__ has quit [*.net *.split]
codex has quit [*.net *.split]
ec_ has quit [*.net *.split]
yasu has quit [*.net *.split]
Veejay has quit [*.net *.split]
rgoodwin has quit [*.net *.split]
zaargy has quit [*.net *.split]
zphobic has quit [*.net *.split]
flurick has quit [*.net *.split]
jalcine has quit [*.net *.split]
randym_ has quit [*.net *.split]
kapowaz has quit [*.net *.split]
xerxas has quit [*.net *.split]
davidboy has quit [*.net *.split]
ILoveYou[ has quit [*.net *.split]
brasten has quit [*.net *.split]
s0ber has quit [*.net *.split]
bubblehead has quit [*.net *.split]
Anarch has quit [*.net *.split]
airtonix has quit [*.net *.split]
jeremy_c has quit [*.net *.split]
Desert_eagle has quit [*.net *.split]
wchun has quit [*.net *.split]
yugui_zzz has quit [*.net *.split]
deallocate has quit [*.net *.split]
joelteon has quit [*.net *.split]
ainame has quit [*.net *.split]
s00pcan_ has quit [*.net *.split]
Guest46529 has quit [*.net *.split]
epochwolf has quit [*.net *.split]
ismlages has quit [*.net *.split]
hakunin has quit [*.net *.split]
bier has quit [*.net *.split]
Columcille has quit [*.net *.split]
gf3 has quit [*.net *.split]
coaster has quit [*.net *.split]
Coolhand has quit [*.net *.split]
idoru has quit [*.net *.split]
Azure|dc is now known as Azure
spacemud_ is now known as spacemud
darth_chatri has quit [Quit: Leaving.]
Cork has joined #ruby
nyuszika7h has joined #ruby
s0ber has joined #ruby
Mo0O has joined #ruby
KRF has joined #ruby
DandyPandy_ has joined #ruby
adrian1 has joined #ruby
is_null has joined #ruby
choobie has joined #ruby
aboudreault has joined #ruby
wykydtron has joined #ruby
Guest73681 has joined #ruby
oz has joined #ruby
sweet_kid has joined #ruby
DarkFoxDK has joined #ruby
zaargy has joined #ruby
zavier has joined #ruby
GeekOnCoffee has joined #ruby
robert_ has joined #ruby
Catie has joined #ruby
tobiasvl has joined #ruby
seich has joined #ruby
kzrl_ has joined #ruby
Freeaqingme has joined #ruby
tommyblue has joined #ruby
heftig has joined #ruby
swistak35 has joined #ruby
tethra has joined #ruby
scrogson has joined #ruby
rgoodwin has joined #ruby
e-dard has joined #ruby
fearoffish has joined #ruby
ShapeShifter499 has joined #ruby
codex has joined #ruby
pontiki has joined #ruby
drfreeze has joined #ruby
zphobic has joined #ruby
flurick has joined #ruby
shtirlic has joined #ruby
chee has joined #ruby
ec_ has joined #ruby
toddWork__ has joined #ruby
spacebug has joined #ruby
drizz has joined #ruby
yasu has joined #ruby
Veejay has joined #ruby
SegFaultAX has joined #ruby
AliRezaTaleghani has joined #ruby
<AliRezaTaleghani> I have an array of values which I need to loop on it's row multiple times....
dayepa1 has joined #ruby
Zelest has joined #ruby
SeySayux has joined #ruby
elektronaut has joined #ruby
rpgsimmaster has joined #ruby
jayne_ has joined #ruby
lapsa has joined #ruby
ybart has joined #ruby
wuest has joined #ruby
romockee has joined #ruby
__wizard has joined #ruby
jprovazn has joined #ruby
Sp4rKy has joined #ruby
sayan has joined #ruby
corehook has joined #ruby
mikecmpbll has joined #ruby
goshakkk has joined #ruby
threesome has joined #ruby
jkline has joined #ruby
zets has joined #ruby
rosario has joined #ruby
nazty has joined #ruby
tatsuya_o has joined #ruby
tagrudev has joined #ruby
rdark has joined #ruby
ttt has joined #ruby
radic__ has joined #ruby
vigintas has joined #ruby
jmimi has joined #ruby
Shirakawasuna has joined #ruby
daaaan has joined #ruby
NsOmNiAc has joined #ruby
malcolmva has joined #ruby
GeissT has joined #ruby
nomenkun has joined #ruby
statarb3 has joined #ruby
BeanDip__ has joined #ruby
cads has joined #ruby
takezawa has joined #ruby
bhaak has joined #ruby
jonathanwallace has joined #ruby
dayepa has joined #ruby
nezumi has joined #ruby
autumn has joined #ruby
hogeo has joined #ruby
[0x1a] has joined #ruby
JoeTheGuest has joined #ruby
jalcine has joined #ruby
tkuchiki has joined #ruby
xerxas has joined #ruby
ayaz has joined #ruby
JMcAfreak has joined #ruby
Domon has joined #ruby
keyvan has joined #ruby
r0bgleeson has joined #ruby
yeban has joined #ruby
[Neurotic] has joined #ruby
davidboy has joined #ruby
sarcilav has joined #ruby
randym_ has joined #ruby
ryanhirsch has joined #ruby
echevemaster has joined #ruby
Zai00 has joined #ruby
45PAA0Q19 has joined #ruby
kapowaz has joined #ruby
brasten has joined #ruby
AlbireoX has joined #ruby
devdazed has joined #ruby
chxane has joined #ruby
ILoveYou[ has joined #ruby
ziyadb has joined #ruby
filipe has joined #ruby
andredieb has joined #ruby
sumark has joined #ruby
joonty has joined #ruby
Anarch has joined #ruby
airtonix has joined #ruby
bubblehead has joined #ruby
tommylommykins has joined #ruby
jericon has joined #ruby
Desert_eagle has joined #ruby
jeremy_c has joined #ruby
wchun has joined #ruby
yugui_zzz has joined #ruby
deallocate has joined #ruby
ainame has joined #ruby
joelteon has joined #ruby
s00pcan_ has joined #ruby
Guest46529 has joined #ruby
epochwolf has joined #ruby
ismlages has joined #ruby
bnagy has joined #ruby
freakazoid0223 has joined #ruby
mnms has joined #ruby
bier has joined #ruby
hakunin has joined #ruby
digifiv5e has joined #ruby
rblackwe has joined #ruby
caveat- has joined #ruby
gf3 has joined #ruby
ThePicard has joined #ruby
coaster has joined #ruby
undert has joined #ruby
Coolhand has joined #ruby
Columcille has joined #ruby
hexbit has joined #ruby
blz37 has joined #ruby
idoru has joined #ruby
willb1 has joined #ruby
cibs has joined #ruby
blast_hardcheese has joined #ruby
yellow5 has joined #ruby
rismoney has joined #ruby
Kudos has joined #ruby
rotor has joined #ruby
Tarential has joined #ruby
naquad has joined #ruby
closer has joined #ruby
Schmidt has joined #ruby
nuba has joined #ruby
Guest66930 has joined #ruby
iaj has joined #ruby
bakedb_ has joined #ruby
jacobw has joined #ruby
aedorn has joined #ruby
effbiai has joined #ruby
erichmenge has joined #ruby
TMM has joined #ruby
phreax_ has joined #ruby
yeltzooo has joined #ruby
pdtpatrick has joined #ruby
billiam has joined #ruby
AntelopeSalad has joined #ruby
eregon has joined #ruby
marcellu1 has joined #ruby
mljsimone|away has joined #ruby
lancepantz has joined #ruby
Guest82294 has joined #ruby
Guest60009 has joined #ruby
Boohbah has joined #ruby
ILoveYou has joined #ruby
blast_hardcheese has quit [Ping timeout: 268 seconds]
obs has joined #ruby
AlbireoX has quit [Max SendQ exceeded]
caveat- has quit [Max SendQ exceeded]
dayepa has quit [Remote host closed the connection]
AlbireoX has joined #ruby
45PAA0Q19 has quit [Max SendQ exceeded]
SeySayux has quit [Max SendQ exceeded]
threesome has quit [Max SendQ exceeded]
vigintas has quit [Max SendQ exceeded]
[0x1a] has quit [Max SendQ exceeded]
cads has quit [Max SendQ exceeded]
vigintas has joined #ruby
cads has joined #ruby
SeySayux has joined #ruby
ILoveYou[ has quit [Ping timeout: 248 seconds]
[0x1a] has joined #ruby
DestinyAwaits has joined #ruby
optimusprimem has joined #ruby
Bry8Star{T2 has joined #ruby
caveat- has joined #ruby
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
samuel02 has joined #ruby
nari has quit [Ping timeout: 245 seconds]
adambeynon has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
pdtpatrick has quit [Remote host closed the connection]
blast_hardcheese has joined #ruby
pdtpatrick has joined #ruby
dhruvasagar has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
BizarreCake has joined #ruby
saarinen has joined #ruby
choobie has quit [Read error: Operation timed out]
saarinen has quit [Client Quit]
gyre007 has joined #ruby
saarinen has joined #ruby
threesome has joined #ruby
obs has quit [Remote host closed the connection]
tonini has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
<YaNakilon> WUT?
sdogruyol has quit [Quit: sdogruyol]
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
ffio_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
ffio has quit [Ping timeout: 264 seconds]
<davout> anyone using the docile gem for custom DSLs ?
tvw has joined #ruby
<davout> looks nice, however there isn't much in the documentation concerning nested DSLs
vlad_starkov has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
sdogruyol has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
Astral_ has joined #ruby
dhruvasagar has joined #ruby
wsterling has joined #ruby
DrCode has quit [Remote host closed the connection]
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
joshu has quit [Quit: Bye.]
DrCode has joined #ruby
AlSquire has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
lessless has joined #ruby
<lessless> is it possible to decompose array to literals with splat operator?
Vivekananda has quit [Quit: Ex-Chat]
sdogruyol has quit [Quit: sdogruyol]
jonkri has quit [Quit: jonkri]
DaniG2k has quit [Ping timeout: 256 seconds]
DaniG2k1 has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
nari has joined #ruby
DaniG2k1 has quit [Client Quit]
DestinyAwaits1 has joined #ruby
DaniG2k has joined #ruby
DestinyAwaits is now known as Guest54515
DestinyAwaits1 is now known as DestinyAwaits
DestinyAwaits has quit [Changing host]
DestinyAwaits has joined #ruby
Guest54515 has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
pyrac has joined #ruby
<Olipro> lessless: you mean basically dump it into variables?
<Olipro> you can do this:
<Olipro> one, two, three = *[1,2,3]
Spooner has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Read error: Operation timed out]
razi has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
poseid has joined #ruby
<poseid> anyone here not satisfied with status quo of Sprockets?
sleetdrop has joined #ruby
GeissT_ has joined #ruby
GeissT_ has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
persand has quit [Quit: persand]
nfk has quit [Quit: yawn]
GeissT has quit [Ping timeout: 246 seconds]
marr has quit []
elentras has joined #ruby
jbpros has quit [Quit: jbpros]
obs has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
queston has joined #ruby
dotemacs_ has joined #ruby
anay has quit [Remote host closed the connection]
adac has joined #ruby
dotemacs_ is now known as dotemacs1
dotemacs1 is now known as dotemacs_
_Andres has joined #ruby
<adac> If I have a "protected" or "private" is the code that follow normally indented?
__wizard has quit [Ping timeout: 268 seconds]
sdogruyol has joined #ruby
ttt has quit [Remote host closed the connection]
freerobby has joined #ruby
Neomex has joined #ruby
<dotemacs_> Hello, I'm "speaking" an API which is returning one of the attributes as '#<Date: 1986-01-02 ((2446433j,0s,0n),+0s,2299161j)>'. What's the best way to deal with it ?
<dotemacs_> correction: speaking with an API
andikr has quit [Remote host closed the connection]
poikon_zombie has joined #ruby
persand has joined #ruby
ttt has joined #ruby
darth_chatri has joined #ruby
poikon_zombie has quit [Client Quit]
jkline has quit [Quit: jkline]
poikon has joined #ruby
<elentras> dotemacs_ : the simplest is to play with a regexp. then you will get a string than you can convert to_date
includex has joined #ruby
zets has quit [Ping timeout: 252 seconds]
<dotemacs_> elentras: thanks
freeayu has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
SeySayux has quit [Read error: Operation timed out]
Villadelfia has quit [Read error: Operation timed out]
Neomex has quit [Quit: Neomex]
jds has joined #ruby
pedda has joined #ruby
pyrac has quit [Quit: pyrac]
sdogruyol has quit [Quit: sdogruyol]
<Mon_Ouie> adac: No (because visibility modifiers are just method calls)
SeySayux has joined #ruby
Villadelfia has joined #ruby
<adac> Mon_Ouie, thanks! I
jds has quit [Ping timeout: 248 seconds]
joshu has joined #ruby
<apeiros> dotemacs_: are you sure it returns that as a *string*?
<apeiros> because that is the inspect of a Date
<joonty> adac: some people unindent the "protected" or "private" to make it inline with the "class" declaration
<apeiros> if it *really* returns that as a String, I'd report a bug, because that's certainly wrong.
<apeiros> adac, joonty: I do that, same for module_function
<dotemacs_> yea, but i found a way to deal with, thanks @apeiros
<joonty> dotemacs_: is it an HTTP API
<dotemacs_> joonty: yea
<joonty> dotemacs_, apeiros: then surely, it has to be a string?
<apeiros> joonty, dotemacs_: depends on the client he uses
sdogruyol has joined #ruby
<joonty> as long as the raw data is what you printed dotemacs_
<dotemacs_> joonty: it is a string, so you can't use it as an object
<apeiros> if he's accessing it raw via e.g. net/http, then yes. and then it's clearly a bug IMO.
<adac> joonty, apeiros that would make sense then with the explanation Mon_Ouie gave.
hogeo has quit [Remote host closed the connection]
<joonty> yup, we're all on the same page
<apeiros> adac, joonty: to clarify, I only deintent argument-less
<apeiros> I keep `private :foo` on the same indent level as e.g. `def` or `attr_*`
optimusprimem has joined #ruby
<adac> Ok I see apeiros thanks
<joonty> apeiros: yes, same here, though I rarely use private/protected with args
<apeiros> I'd prefer if it was `private do … end`, though
<apeiros> then I'd not deindent
<apeiros> I don't really get why they didn't implement it that way anyway. the current implementation is… shady.
<joonty> yes, it is a bit strange
<joonty> like `alias` as well
hogeo has joined #ruby
<apeiros> well, alias has the non-quirky alias_method counterpart
<joonty> true, just learnt about that recently!
<apeiros> unlike private, protected etc., alias is not a method but syntax.
machuga|away is now known as machuga
<apeiros> alias_method can't alias globals, though (and now: discuss why we'd want global aliasing…)
<joonty> i didn't realise that private and protected were methods tbh
<joonty> because their behaviour is so different
<apeiros> well, the method-less variant couldn't written in plain ruby. so that's somewhat understandable.
<apeiros> (ok, it could - but only with trace_func trickery)
<joonty> so, global aliasing
<joonty> is that something like `alias :$- :stdin`?
gustavn has joined #ruby
eightbitraptor has quit [Quit: eightbitraptor]
Xeago has joined #ruby
LiquidInsect has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
<Mon_Ouie> For example $PROGRAM_NAME is an alias for $0
<Mon_Ouie> if you do $0 = "test", then $PROGRAM_NAME.equal? $0 will still be true
<joonty> or indeed the 'english' library
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<joonty> there's a reason where global aliasing works
jibi has joined #ruby
<Mon_Ouie> Sure, but do we want to keep the weird symbolic globals (except for backwards compatibility)?
fwaokda has joined #ruby
<joonty> are you saying, why keep the original globals?
<Mon_Ouie> Yes
<joonty> fun or profit?
mickeyd has quit [Ping timeout: 256 seconds]
mickeyd has joined #ruby
thebastl has quit [Ping timeout: 264 seconds]
matthieua has joined #ruby
fwaokda has quit [Ping timeout: 264 seconds]
ntus1017 has joined #ruby
kpshek has joined #ruby
<apeiros> job security device
<apeiros> I only use 2-letter-1-digit variable names ever
pyrac has joined #ruby
<apeiros> shorter if possible
jefflyne has joined #ruby
<apeiros> but since another job security device is to introduce random useless variables…
camilasan has joined #ruby
forced_request has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
camilasan has quit [Remote host closed the connection]
zigomir has quit [Quit: zigomir]
kpshek has quit []
Domon has quit [Remote host closed the connection]
nari has quit [Quit: Ex-Chat]
Domon has joined #ruby
jds has joined #ruby
b0oh has quit [Quit: Leaving.]
wmoxam has joined #ruby
camilasan has joined #ruby
blob has quit [Ping timeout: 264 seconds]
blob has joined #ruby
Schuy13r has quit [Ping timeout: 264 seconds]
ichilton has quit [Ping timeout: 264 seconds]
ichilton has joined #ruby
Xeago has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
cburyta has joined #ruby
thebastl has joined #ruby
rdark has quit [Ping timeout: 246 seconds]
LiquidInsect has joined #ruby
rdark has joined #ruby
thebastl has quit [Remote host closed the connection]
<joonty> apeiros: :D
jds has quit [Remote host closed the connection]
<joonty> surely 1 letter is enough? You probably don't need 26 variables in a single scope
wsterling has quit [Remote host closed the connection]
jkline has joined #ruby
ryanhirsch has quit [Quit: Computer has gone to sleep.]
cabotto has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
smlgs has quit [Read error: Connection reset by peer]
browndawg has quit [Ping timeout: 268 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
browndawg has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
Maoko has joined #ruby
ldnunes has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Maoko has quit [Client Quit]
mklappstuhl has quit [Remote host closed the connection]
zigomir has joined #ruby
osvico has joined #ruby
browndawg has quit [Quit: Leaving.]
MindSpark has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
kil0byte has joined #ruby
realDAB has joined #ruby
yojimbo_ has joined #ruby
[[thufir]] has joined #ruby
jds has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
sleetdrop has quit [Ping timeout: 264 seconds]
[[thufir]] has quit [Client Quit]
Neomex has joined #ruby
Neomex has quit [Client Quit]
whowantstolivefo has quit [Ping timeout: 240 seconds]
Neomex has joined #ruby
ravster has joined #ruby
kofno has joined #ruby
persand has quit [Quit: persand]
dysth has joined #ruby
kil0byte_ has joined #ruby
Xeago has joined #ruby
niceguyjames has joined #ruby
LennyLinux is now known as Notte
Spaceghost|cloud has quit [Remote host closed the connection]
heidar has quit [Remote host closed the connection]
Guest85414__ has quit [Remote host closed the connection]
guilleiguaran_ has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
xerxas has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
subbyyy has joined #ruby
jbpros has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
kil0byte has quit [Ping timeout: 246 seconds]
rdark has quit [Ping timeout: 246 seconds]
chimkan has joined #ruby
Guest85414__ has joined #ruby
chimkan has quit [Client Quit]
Mo0O has quit [Quit: WeeChat 0.4.0]
rdark has joined #ruby
AliRezaTaleghani has quit [Quit: AliRezaTaleghani]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jds has quit [Remote host closed the connection]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
jastix has joined #ruby
Trynemjoel has joined #ruby
Neomex has quit [Quit: Neomex]
heidar has joined #ruby
jarin has quit [Read error: Connection reset by peer]
osvico has quit [Ping timeout: 240 seconds]
wsterling has joined #ruby
mljsimone|away is now known as mljsimone
lys has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 245 seconds]
<Mon_Ouie> You do if you're introducing random useless variables
darth_chatri has quit [Quit: Leaving.]
<Mon_Ouie> Thankfully you can use Greek letters too
<matti> Mon_Ouie: ;]
<Mon_Ouie> Preferably you'll use both A and Α in the same scope
b0oh has joined #ruby
<Mon_Ouie> matti: 'alut
guilleiguaran_ has joined #ruby
mmitchell has joined #ruby
dmyers has quit [Read error: Connection reset by peer]
LanaDelRey has joined #ruby
davidboy has joined #ruby
xerxas has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
mklappstuhl has joined #ruby
rlb3 has joined #ruby
Spaceghost|cloud has joined #ruby
mmitchell has quit [Remote host closed the connection]
nixter1029 has left #ruby ["Textual IRC Client: www.textualapp.com"]
mmitchell has joined #ruby
LanaDelRey is now known as Catbuntu
Trynemjoel has joined #ruby
devoldmx has joined #ruby
keyvan has joined #ruby
mark_locklear has joined #ruby
_Andres has joined #ruby
poikon has quit [Ping timeout: 248 seconds]
forced_request has joined #ruby
pranny1 has quit [Quit: Leaving.]
wsterling has quit [Ping timeout: 268 seconds]
mklappstuhl has quit [Read error: No route to host]
persand has joined #ruby
mmitchell has quit [Ping timeout: 256 seconds]
devoldmx3 has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
vlad_starkov has joined #ruby
statarb3 has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
lele has quit [Ping timeout: 245 seconds]
tonini has joined #ruby
fixl has joined #ruby
wsterling has joined #ruby
kindjal has joined #ruby
Spooner has quit [Remote host closed the connection]
b0oh has quit [Quit: Leaving.]
swordsmanz has quit [Read error: Operation timed out]
sdogruyol has quit [Quit: sdogruyol]
raddy___ has joined #ruby
monkegjinni has joined #ruby
kofno_ has joined #ruby
monkegji_ has joined #ruby
jonjo has joined #ruby
<jonjo> http://pastebin.com/GEix08vt am unable to find some gems?
thesheff17 has joined #ruby
colonolGron has joined #ruby
anonymuse has joined #ruby
kpshek has joined #ruby
troker has joined #ruby
dysth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
krawchyk_ has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
kofno has quit [Ping timeout: 256 seconds]
krz has quit [Quit: krz]
monkegjinni has quit [Ping timeout: 264 seconds]
cabotto has left #ruby [#ruby]
tacos1de has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
krawchyk has joined #ruby
lele has joined #ruby
Xeago has quit [Remote host closed the connection]
monkegji_ has quit [Read error: Connection reset by peer]
subbyyy has quit [Ping timeout: 256 seconds]
<joonty> jonjo: can you paste your Gemfile too?
subbyyy_ has joined #ruby
thepumpkin has joined #ruby
lele has quit [Read error: Operation timed out]
breakingthings has joined #ruby
kindjal has quit [Ping timeout: 268 seconds]
monkegjinni has joined #ruby
wesside has joined #ruby
kindjal has joined #ruby
Rix has quit [Ping timeout: 240 seconds]
mmitchell has joined #ruby
andikr has joined #ruby
poikon has joined #ruby
thebastl has joined #ruby
<raddy___> Hello Everybody
fixl has quit [Remote host closed the connection]
sambao21 has joined #ruby
<raddy___> I couldn't compile system_timers in ruby
<raddy___> Can anyone assist me?
raddy___ is now known as raddy
mmitchell has quit [Remote host closed the connection]
thebastl has quit [Remote host closed the connection]
mmitchell has joined #ruby
thebastl has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
dmyers has joined #ruby
codesoda has joined #ruby
<raddy> Are anybody there?
gustavn has quit [Read error: Connection reset by peer]
nowthatsamatt has joined #ruby
Astral_ has quit [Quit: Leaving]
codesoda has quit [Remote host closed the connection]
devoldmx has joined #ruby
obs has quit [Ping timeout: 264 seconds]
Hanmac has joined #ruby
kindjal has quit [Ping timeout: 256 seconds]
b0oh has joined #ruby
ebobby has joined #ruby
lele has joined #ruby
momomomomo has joined #ruby
Neomex has joined #ruby
raddy has quit [Read error: Connection reset by peer]
jerius has joined #ruby
Spooner has joined #ruby
TheNotary has quit [Ping timeout: 248 seconds]
raddy_ has joined #ruby
wsterling has quit [Remote host closed the connection]
ebobby has quit [Ping timeout: 268 seconds]
lele has quit [Ping timeout: 264 seconds]
subbyyy_ has quit [Ping timeout: 264 seconds]
mmitchell has quit [Remote host closed the connection]
<jonjo> error installing pg http://pastebin.com/mfMqYygC ?
raddy_ has left #ruby [#ruby]
gildo_ has joined #ruby
kil0byte has joined #ruby
tonini has quit [Remote host closed the connection]
DaniG2k has quit [Quit: Leaving.]
brbcoding has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
<matti> jonjo: sudo apt-get install -y libpq-dev ; sudo yum install postgresql-devel
kil0byte_ has quit [Ping timeout: 256 seconds]
Neomex has quit [Quit: Neomex]
<matti> yum obviously on RH-based.
<jonjo> dev-libs/libpqxx ?
<jonjo> I use gentoo
<matti> Oh.
yojimbo_ has quit [Quit: Leaving]
<matti> jonjo: Yes.
<Hanmac> jonjo your ruby version is outdated, hit your distribution manager
<matti> jonjo: You are missing headers.
himsin has joined #ruby
<matti> Hanmac: Outdated or not, he is missing header files. He would be even for 2.0.x
<matti> ;d
<jonjo> dont even want postgres :/
<matti> ?!
chriskk has joined #ruby
<jonjo> chiliproject is pulling it in
lele has joined #ruby
yekta has joined #ruby
pipework has quit [Quit: going to work]
sergicles has joined #ruby
tk_ has joined #ruby
brennanMKE has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Guga_ has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<jonjo> new error matti http://pastebin.com/r7HmKPeR
TheNotary has joined #ruby
* Hanmac point and lough about ruby1.8
poikon has quit [Read error: Connection reset by peer]
blackmes1 has joined #ruby
<jonjo> just needed a fresh bundle install
<lessless> folks, is there a new syntax for array definition from string in ruby 2.0?
kil0byte_ has joined #ruby
<matti> jonjo: Old rdoc.
<matti> jonjo: In this case Hanmac is right. Get 1.9.x at lest.
kasper has joined #ruby
<jonjo> You have already activated rake 10.1.0, but your Gemfile requires rake 10.0.4. Using bundle exec may solve this.
<matti> jonjo: Its going to be a river of pain for you with 1.8
<jonjo> it is now telling me to downgrade something ^^
codecop has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 268 seconds]
<jonjo> Successfully switched to profile: ruby19
kil0byte has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
monban_ is now known as monban
<jonjo> that makes no difference
angusiguess has joined #ruby
tkuchiki has joined #ruby
psyomn has joined #ruby
freeayu has quit [Remote host closed the connection]
<jonjo> so after switching to ruby19 i did a gem update and got this error http://pastebin.com/89skNAXT
Xeago has joined #ruby
ttt has quit [Remote host closed the connection]
Gugster has joined #ruby
Guga_ has quit [Disconnected by services]
JZTech101 has joined #ruby
axeman- has quit [Ping timeout: 264 seconds]
jibi has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 268 seconds]
jbpros_ has joined #ruby
axeman- has joined #ruby
chxane has quit [Quit: Leaving]
binaryplease has joined #ruby
kil0byte has joined #ruby
cburyta has quit [Remote host closed the connection]
dEPy has joined #ruby
Gugster has quit [Remote host closed the connection]
banghouse has joined #ruby
jbpros has quit [Ping timeout: 264 seconds]
jbpros_ is now known as jbpros
Guga_ has joined #ruby
wmoxam has joined #ruby
Schuy13r has joined #ruby
bondar has joined #ruby
bondar has quit [Excess Flood]
kil0byte_ has quit [Ping timeout: 256 seconds]
bondar has joined #ruby
bondar has quit [Excess Flood]
wesside has quit [Quit: Computer has gone to sleep.]
bondar has joined #ruby
bondar has quit [Excess Flood]
<Spooner> jonjo, Dont' worry, it is just an error in the documentation.
danslo has quit [Read error: Connection reset by peer]
bondar has joined #ruby
bondar has quit [Excess Flood]
danslo has joined #ruby
Rix has joined #ruby
bondar has joined #ruby
bondar has quit [Excess Flood]
danshultz has joined #ruby
Spami has quit [Quit: Leaving]
DestinyAwaits1 has joined #ruby
poikon has joined #ruby
bmn has quit [Ping timeout: 246 seconds]
Mr_Pepper has quit []
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Excess Flood]
<Spooner> jonjo, Just use: gem update --system --no-ri --no-rdoc (to avoid making docs you'll probably never look at).
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
raddy__ has joined #ruby
<raddy__> Hello Everybody
<raddy__> I have configured a different version of passenger and its module in httpd
<_br_> Does anyone here successfully run rack::livereload and guard-livereload with Sinatra and Slim templates?
bmn has joined #ruby
<raddy__> But it is still using the older version.
DestinyAwaits has quit [Ping timeout: 248 seconds]
enebo has joined #ruby
cabottoo has joined #ruby
browndawg has joined #ruby
lkba has joined #ruby
<dEPy> I have a JSON string which I parse, and I get Hash, Array, and stuff nested one into each other. Is there any way to traverse all of that and rename all the hash keys even if the hash is nested somewhere deep?
<matti> Spooner: He could install newer rdoc ;p
cabottoo has left #ruby [#ruby]
<raddy__> So, people here would only ask questions, is it ?
DestinyAwaits1 has quit [Ping timeout: 264 seconds]
<Xeago> raddy__: I don't use passenger
<raddy__> okk
julweber has quit [Read error: Connection reset by peer]
poikon has quit [Remote host closed the connection]
kindjal has joined #ruby
<Xeago> my issues with apache and mod_* were resolved with recompiling
<Xeago> you might have luck in #passenger
julweber has joined #ruby
<Xeago> or what the channel is
<raddy__> Xeago : ohh, i didn't know that
raddy__ has left #ruby [#ruby]
monkegjinni has joined #ruby
momomomomo has quit [Quit: momomomomo]
thoolihan has joined #ruby
v0n has joined #ruby
kevinykchan has joined #ruby
fredjean has quit [Ping timeout: 264 seconds]
Coolhand has quit [Remote host closed the connection]
rickruby has quit [Read error: Connection reset by peer]
Davey has joined #ruby
johnmilton has joined #ruby
monkegjinni has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
chxane has joined #ruby
camilasan has quit [Remote host closed the connection]
kofno has joined #ruby
<jonjo> I am Using rake (10.0.4) but get the error You have already activated rake 10.1.0, but your Gemfile requires rake 10.0.4. Using bundle exec may solve this.
<kasper> bundle exec rake yourcommand
<kasper> prepend your command with bundle exec
burlyscudd has joined #ruby
pwnfactory has joined #ruby
viszu has joined #ruby
kofno_ has quit [Ping timeout: 256 seconds]
rickruby has joined #ruby
voglster has joined #ruby
codeplay has quit [Quit: Page closed]
phracker has joined #ruby
rickruby has quit [Remote host closed the connection]
headius has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
jprovazn has quit [Quit: Leaving]
relix has joined #ruby
jprovazn has joined #ruby
nbouscal has joined #ruby
Coolhand has joined #ruby
axl_ has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
<maloik> Has anyone used the SLOP gem for option parsing? I just don't get how to display the help... I can set it to true when calling the block but then it stops doing anything else
lapsa has quit [Quit: leaving]
tonini has joined #ruby
sayan has quit [Read error: Connection reset by peer]
marr has joined #ruby
thebastl_ has joined #ruby
jprovazn has quit [Quit: Leaving]
huoxito has joined #ruby
phutchins has joined #ruby
fridim_ has joined #ruby
thebastl has quit [Ping timeout: 240 seconds]
_seanc_ has joined #ruby
carloslopes has joined #ruby
niceguyjames has quit [Remote host closed the connection]
niceguyjames has joined #ruby
jerius_ has joined #ruby
sleetdrop has joined #ruby
jprovazn has joined #ruby
cool has quit [Quit: Connection closed for inactivity]
elux has joined #ruby
jerius has quit [Ping timeout: 240 seconds]
akashj87 has joined #ruby
kofno has quit [Remote host closed the connection]
queston has quit [Ping timeout: 240 seconds]
corehook has quit [Ping timeout: 246 seconds]
jbpros has quit [Quit: jbpros]
alem0lars has joined #ruby
mikecmpbll has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jprovazn has quit [Client Quit]
colonolGron has quit [Quit: Lost terminal]
interactionjaxsn has joined #ruby
akashj87 has quit [Ping timeout: 256 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
jefflyne has joined #ruby
sailias has joined #ruby
crankycoder has joined #ruby
LarsSmit has joined #ruby
mmitchell has joined #ruby
kasper has quit [Remote host closed the connection]
TIJ has quit [Ping timeout: 248 seconds]
syamajala has joined #ruby
phracker has quit [Ping timeout: 256 seconds]
thebastl_ has quit [Remote host closed the connection]
thebastl has joined #ruby
_JamieD_ has joined #ruby
v0n has joined #ruby
rhys has joined #ruby
jeffreylevesque_ has joined #ruby
LarsSmit has quit [Quit: Leaving.]
acrussell has joined #ruby
andrewh_ has quit [Quit: leaving]
closer has quit [Ping timeout: 256 seconds]
cibs has quit [Ping timeout: 256 seconds]
rismoney has quit [Ping timeout: 256 seconds]
rismoney has joined #ruby
k3rn3lit1 has joined #ruby
closer has joined #ruby
k3rn3lito has quit [Ping timeout: 260 seconds]
<ericwood> hey, how would I do a string match for variations of the word "inbox"
<ericwood> as in "in" and "inb" etc. would match?
kloeri has quit [Remote host closed the connection]
<ericwood> can't think of a good way to do the partial matching with regex :\
asteve has joined #ruby
ttt has joined #ruby
talntid has quit [Ping timeout: 260 seconds]
kloeri has joined #ruby
talntid2 has joined #ruby
doritostains has joined #ruby
<_br_> Variations of the word inbox means stemming?
<ericwood> well
<ericwood> just partial completions of the whole word
soukihei has quit [Ping timeout: 260 seconds]
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
<ericwood> so "i" "in" "inb", etc. match
jlast has joined #ruby
havenwood has joined #ruby
<_br_> hm
ah9 has joined #ruby
diego_k has quit [Ping timeout: 260 seconds]
<ericwood> it's for an autocomplete-esque thing
BillCriswell has joined #ruby
noop has quit [Ping timeout: 240 seconds]
<ericwood> this is just a special case for it :\
devoldmx has quit [Ping timeout: 268 seconds]
_seanc_ has quit [Quit: _seanc_]
diegok has joined #ruby
tonini has quit [Remote host closed the connection]
<ah9> does anyone know of a yaml document that YAML.load_file would fail on for 1.8.7 and 1.9.3?
<ericwood> I could programatically generate permutations on "inbox"
asteve has quit [Client Quit]
<ericwood> >> YAML.load('ಠ_ಠ')
<eval-in> ericwood => uninitialized constant YAML (NameError) ... (https://eval.in/37013)
cibs has joined #ruby
<ericwood> >> require 'yaml'; YAML.load('ಠ_ಠ')
<eval-in> ericwood => (https://eval.in/37014)
<ericwood> heh
cburyta has joined #ruby
devoldmx has joined #ruby
ffranz has joined #ruby
camilasan has joined #ruby
<ericwood> _br_: there doesn't seem to be an elegant way to do what I want :P
cburyta has quit [Remote host closed the connection]
<_br_> ericwood: I think the only possible way is by opening up Regex class and fiddle around in there. Otherwise I wouldn't know how to do it "properly" without some hack e.g. creating permutations.
asteve has joined #ruby
<ericwood> that's true
<_br_> its more a data structure issue though in my opinion.
ttt has quit [Ping timeout: 256 seconds]
dwirc_ has quit [Ping timeout: 264 seconds]
<ericwood> kind of
<ericwood> the other stuff I autocomplete uses ILIKE in postgres
danbeck has joined #ruby
pipework has joined #ruby
rosario has quit [Ping timeout: 268 seconds]
queston has joined #ruby
[Nies] has joined #ruby
queston has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<_br_> Well if you want something like the "like" operator you can use "?" in regular expressions e.g. /inb?/ matches inbox in inb inbox etc.
TheBatMan has joined #ruby
brennanMKE has joined #ruby
mary5030 has joined #ruby
dillwithers has joined #ruby
<ericwood> ooooh!
Nies has quit [Ping timeout: 240 seconds]
<ericwood> ewll
<ericwood> kind of
syamajala has quit [Ping timeout: 256 seconds]
<_br_> but again, depending on the search space I think this is a data structure issue
mary5030_ has joined #ruby
tonini has joined #ruby
TheBatMan has left #ruby [#ruby]
<ah9> ericwood: that seems to pass on 1.8.7 :)
[Nies] is now known as Nies
tk_ has quit [Quit: ばいばい]
<ericwood> ah9: D:
alem0lars has quit [Quit: Leaving]
TheBatMan has joined #ruby
<_br_> ah9: Why do we care about MRI anyway? I thought that is retired?
<TheBatMan> Well..Rubinius 2.0 now has full thread support and a concurrent gc.
LaPetiteFromage has joined #ruby
<TheBatMan> We should just screw mri
kernelpanik has joined #ruby
<TheBatMan> and move to rubinius
viszu has quit [Ping timeout: 268 seconds]
<kernelpanik> hi guys!
<kernelpanik> how can I write a file using EOF?
<TheBatMan> just sayin.
<kernelpanik> like in bash
binaryplease has quit [Ping timeout: 264 seconds]
<_br_> TheBatMan: is there any "good" benchmarks for the different rubies flying around anywhere?
<ah9> _br_: indeed, but supporting 1.8.7 is still important for a lot of shops :)
chriskk has quit [Quit: chriskk]
tagrudev has quit [Remote host closed the connection]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
alex__c2022 has joined #ruby
<_br_> ah9: Sorry to say that, not moving to 1.9 or 2.0 will actually cost you more money in the long run.
<TheBatMan> _br_: True threading > single thread performance. Jruby/Rubinius > MRI
browndawg has quit [Ping timeout: 268 seconds]
<ericwood> GIL 4 lyfe
<TheBatMan> ah9: 1.8.7 is EOF
<_br_> TheBatMan: Well they still all deal with the GIL issue no?
<ericwood> *gang sign*
<TheBatMan> end of life.
<TheBatMan> no more support.
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
persand has quit [Quit: persand]
<TheBatMan> _br_: GIL not in Rubinius or Jruby
mary5030 has quit [Ping timeout: 268 seconds]
<ericwood> the GIL won't be removed from IRB ever
<TheBatMan> ericwood: Why not?
<apeiros> TheBatMan: GIL still in production rubinius afaik
<TheBatMan> apeiros: Try the new 2.0 branch. But yes, 1.2.4 still has the gil
<apeiros> from rubini.us: "The current version Rubinius is 1.2.4" - and 1.2.4 has a GIL
<apeiros> TheBatMan: I know. but advertising non-production versions is bad form :-p
<ericwood> TheBatMan: idk, not my decision to make
<_br_> Yeah that was kind of surprising...
<apeiros> but rbx2 is sure taking its time…
<apeiros> kernelpanik: what do you mean?
__wizard has joined #ruby
<TheBatMan> apeiros: :P
codecop has joined #ruby
<TheBatMan> Yeah, soon.
<TheBatMan> I have an idea
wallerdev has joined #ruby
<kernelpanik> cat > test << EOF
<TheBatMan> why don't we take all MRI core committers, and move them to rubinius. Win.
<kernelpanik> FOOO
<kernelpanik> like that in bash
<apeiros> kernelpanik: close the file for write
senayar_ has joined #ruby
<apeiros> oh, you mean you want to read from stdin?
* apeiros still confused as to what kernelpanik wants…
<apeiros> IO#read will read until EOF
<apeiros> File::write will write a file and close it after writing
dash_ has quit [Quit: Time to beer :)]
<kernelpanik> ah ok! sorry my question was confused :)
<apeiros> and if you want to read continuously then you can use IO#gets
enroxorz has joined #ruby
<apeiros> (i.e. line for line)
hogeo has quit [Remote host closed the connection]
<_br_> I'm totally guessing here but do you mean something like this kernelpanik ? File.open( "/tmp/blubb", "w" ) << "hello"
senayar_ has quit [Remote host closed the connection]
<kernelpanik> yes!
enroxorz is now known as ArchBeOS
senayar has quit [Ping timeout: 264 seconds]
zeade has quit [Quit: Leaving.]
senayar has joined #ruby
<kernelpanik> in order to not write for each line foo.write("hello") and foo.write("\n")
sayan has joined #ruby
tvw has quit []
<apeiros> well, File.write(path, content) # writes a complete file in 1 go
acrussell has left #ruby [#ruby]
<kernelpanik> y
<kernelpanik> so.. File.open( "/tmp/blubb", "w" ) << "hello" and for close I can just put EOF ?
tonini has quit [Remote host closed the connection]
zmike123 has joined #ruby
<kernelpanik> I was looking for something related to it in my ruby guide, but I did not find anything
tommyvyo has joined #ruby
<ah9> _br_: TheBatMan: thanks for replying, naturally I know 1.8.7's status, but I need to make sure my tests pass for it - period. I've created a separate test fixture for 1.8.7.
viszu has joined #ruby
<TheBatMan> ah9: I wasn't here for the question
ebobby has joined #ruby
<TheBatMan> The initial question
akashj87 has joined #ruby
<_br_> kernelpanik: Use apeiros version.
altivec has joined #ruby
ananthakumaran has joined #ruby
<_br_> Btw. did you guys see this benchmark? (I know benchmarks, and then this webstuff) Still quite interesting in terms of ruby vs jruby though. http://www.techempower.com/blog/
obs has joined #ruby
thoolihan has quit [Quit: thoolihan]
Skelz0r has joined #ruby
ebobby has quit [Ping timeout: 256 seconds]
Mattix has joined #ruby
mrfoo has quit [Ping timeout: 250 seconds]
adac has quit [Quit: Leaving]
altivec has quit [Client Quit]
ArchBeOS is now known as WarChief
burlyscudd has quit [Quit: Leaving.]
Skelz0r has quit [Client Quit]
Skelz0r has joined #ruby
bondar has joined #ruby
bondar has joined #ruby
bondar has quit [Excess Flood]
__wisewizard has joined #ruby
ananthakumaran has quit [Ping timeout: 264 seconds]
__wizard has quit [Quit: Leaving]
madb055 has joined #ruby
__wisewizard has quit [Read error: Connection reset by peer]
Mattix has left #ruby [#ruby]
_seanc_ has joined #ruby
dwirc has joined #ruby
takezawa has quit [Remote host closed the connection]
himsin has quit [Quit: himsin]
nnww has joined #ruby
supergiantrobot has joined #ruby
apeiros has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 256 seconds]
enebo has quit [Quit: enebo]
<havenwood> _br_: Topaz and MagLev are other neat Ruby implementations to look at for speed. Now if they'd just run Sinatra already! :P
kevinykchan has quit [Read error: Connection reset by peer]
terrellt has joined #ruby
<_br_> yeah, exactly ! :)
jcoglan has joined #ruby
<jcoglan> anyone seen 'undefined method 'formatter' for #<Logging::Logger>' when booting Rails 4?
<havenwood> jcoglan: Haven't, but might try in #RubyOnRails.
davout has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
allaire has joined #ruby
tommyvyo has joined #ruby
cantonic has joined #ruby
zastern has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
RichardBaker has quit [Quit: RichardBaker]
Ry0_ has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
fredjean has joined #ruby
geggam has joined #ruby
corehook has joined #ruby
ananthakumaran has joined #ruby
thoolihan has joined #ruby
kasper has joined #ruby
<ericwood> _br_: I ended up using this regex as a shim for my earlier problem: \Ai(?:n(?:b(?:o(?:x)?)?)?)?
<ericwood> :D
thoolihan has quit [Client Quit]
<ericwood> now excuse me while I go shower in attempt to wash off the same
<ericwood> *shame
kindjal has quit [Ping timeout: 268 seconds]
<_br_> ericwood: Urk. Looks not very maintainable to me :/
Xeago_ has joined #ruby
Xeago has quit [Killed (orwell.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<ericwood> it's a shim for this release :P
<_br_> havenwood: I love the idea of topaz, just wish they would try it on the erlang vm instead...
<ericwood> it's the only "special" case, I'll be using a real model once there are more
<_br_> ericwood: ah I see
jerius_ has quit [Ping timeout: 246 seconds]
brasten has quit [Quit: brasten]
mansi has joined #ruby
<havenwood> _br_: There's Elixir for that niche, really nice and created by a Rubyist.
thepumpkin has quit [Remote host closed the connection]
AlbireoX has quit [Remote host closed the connection]
kindjal has joined #ruby
Xeago_ has joined #ruby
<havenwood> _br_: Or you mean implement Erlang VM in RPython? :O
arya_ has joined #ruby
<_br_> reimplent erlvm in rpython ? nono :)
arya__ has joined #ruby
<ericwood> erlvm in javascript
<ericwood> plz
<ericwood> Atwood's law must be upheld!
<_br_> maybe via emscriptem and llvm?
thoolihan has joined #ruby
<_br_> hehe
<ericwood> oh shit google autocompleted that when I was searching
<ericwood> do I even want to know :|
carloslopes has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
<_br_> o.O
jerius has joined #ruby
Ry0_ has quit [Remote host closed the connection]
<_br_> btw. can someone remember the term of compiling e.g a program from ruby to python to haskell to perl to ruby again ?
<ericwood> "Some motivation can be find in STATUS"
thebastl has quit [Remote host closed the connection]
* ericwood sees no justification for this atrocity in STATUS
<ericwood> _br_: there's a JS implementation in ruby, and a ruby implementation in JS
<ericwood> I want to run Ruby with JS middleware :D
arya_ has quit [Ping timeout: 248 seconds]
<_br_> *facepalm*
<ericwood> it has to be done
resure has joined #ruby
<resure> Can anybody post a link to any rubyforge mirror?
<_br_> this is getting out of hand... whats next ?
<ericwood> _br_: don't ask questions you don't want to know the answer to
<ericwood> you can't handle the truth
razi has quit [Read error: Connection reset by peer]
<_br_> lol
<_br_> bring... it ... on ....
razi has joined #ruby
<ericwood> oh wow is the rubyg3ms site down
<ericwood> my build failed
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<havenwood> yet status says UP: http://status.rubygems.org
<ericwood> hmmm
<ericwood> I got a broken pipe
<ericwood> build box is probably being stupid
<resure> Can't access both from my server and pc
<_br_> isn't http://gemcutter.org a mirror?
mikecmpbll has joined #ruby
<resure> _br_, i want to download devkit for ruby 2.0
<havenwood> resure: you're having RubyGems site problems too?
kernelpanik has quit [Quit: Leaving]
tbrock has joined #ruby
<resure> havenwood, I can't access rubyforge, not rubygems
camilasan has quit [Remote host closed the connection]
<resure> Can you open this link?
dysth has joined #ruby
<havenwood> no
camilasan has joined #ruby
<resure> sad
pitzips has joined #ruby
cortexman has joined #ruby
danslo has quit [Quit: danslo]
arya_ has joined #ruby
<_br_> ah found the term. Its called polyglot computing. http://en.wikipedia.org/wiki/Polyglot_%28computing%29
danslo has joined #ruby
jblack has joined #ruby
freerobby has joined #ruby
Jefus has joined #ruby
arya__ has quit [Ping timeout: 248 seconds]
jjbohn has joined #ruby
tommyvyo has quit [Quit:]
alex__c2022 has joined #ruby
tommyvyo has joined #ruby
persand has joined #ruby
persand has quit [Client Quit]
<havenwood> _br_: That is just speaking more than two languages.
wagster has joined #ruby
axl__ has joined #ruby
<havenwood> resure: Guess you could do the railsinstaller to get the bundled DevKit: http://railsinstaller.org
BrianJ has quit [Quit: Computer has gone to sleep.]
<havenwood> resure: Till site back up, i dunno of a mirror.
enebo has joined #ruby
<resure> havenwood, thanks, I'll try railsinstaller
<havenwood> resure: oh... lol, hosted on RubyForge... >.>
<resure> :D
enebo has quit [Remote host closed the connection]
<_br_> havenwood: Huh? In computing, a polyglot is a computer program or script written in a valid form of multiple programming languages, which performs the same operations or output independent of the programming language used to compile or interpret it.
danslo has quit [Ping timeout: 248 seconds]
<resure> And list of rubyforge mirrors is only on rubyforge too
angusiguess has quit [Ping timeout: 264 seconds]
<havenwood> resure: They might know then, #railsinstaller
enebo has joined #ruby
axl_ has quit [Ping timeout: 256 seconds]
axl__ is now known as axl_
poseid has quit [Quit: Leaving.]
freerobby has quit [Ping timeout: 276 seconds]
tkuchiki has joined #ruby
<_br_> resure: Thats a nice catch-22
<havenwood> _br_: Ah, anthropomorphizing. The script itself is a polyglot. Scripts get angry when you anthropomorphize them, as it hurts their feelings.
cha1tanya_ has joined #ruby
<_br_> havenwood: Ah!! That was the term I was looking for, thanks.
cha1tanya has quit [Read error: Connection reset by peer]
BrianJ has joined #ruby
ckrailo has joined #ruby
cha1tanya_ is now known as cha1tanya
goshakkk has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
drfreeze has quit [Read error: Operation timed out]
drfreeze has joined #ruby
<havenwood> resure: DevKit download from Github ^
kasper has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
tommyvyo has quit [Quit:]
carloslopes has joined #ruby
thoolihan has quit [Quit: thoolihan]
axl_ has quit [Quit: axl_]
cortexman has quit [Quit: Leaving.]
bigoldrock has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
poseid has joined #ruby
geekbri has joined #ruby
Sep1 has joined #ruby
_seanc_ has quit [Quit: _seanc_]
v0n has quit [Quit: WeeChat 0.4.1]
jarin has joined #ruby
v0n has joined #ruby
axl_ has joined #ruby
cortexman has joined #ruby
apeiros has joined #ruby
MrZYX is now known as MrZYX|off
thebastl has joined #ruby
marcdel has joined #ruby
leonid__ has quit [Ping timeout: 256 seconds]
splittingred has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
ssvo has joined #ruby
thebastl has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
sayan has joined #ruby
monkegjinni has joined #ruby
nbouscal has joined #ruby
browndawg has joined #ruby
bondar has joined #ruby
troker has left #ruby [#ruby]
dougireton has joined #ruby
rosario has joined #ruby
burlyscudd has joined #ruby
tommyvyo has joined #ruby
bondar has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Like it? Visit #hydrairc on EFNet]
Catbuntu has quit [Quit: Leaving]
chichou has joined #ruby
pyrac has quit [Ping timeout: 248 seconds]
thepumpkin has joined #ruby
<ah9> TheBatMan: no worries :)
tommyvyo has quit [Client Quit]
cj3kim has joined #ruby
sambao21 has joined #ruby
dysth has quit [Ping timeout: 256 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
Ripp__ has joined #ruby
Sep1 has quit [Quit: Leaving.]
philipe1 has joined #ruby
jefflyne has joined #ruby
poseid has quit [Quit: Leaving.]
cih has joined #ruby
mickeyd has quit []
darth_chatri has joined #ruby
mickeyd has joined #ruby
ForSpareParts has quit [Remote host closed the connection]
mickeyd is now known as fwaokda
<cih> Hi Guys, I have a question I was hoping someone could help me with. I have built a ruby cli that interacts with an api through a gem. I wan't this to be used system wide without having the gems installed globally. Is having all of the gems code within mine a good option?
fphilipe has joined #ruby
kil0byte has quit [Remote host closed the connection]
cih has left #ruby [#ruby]
cih has joined #ruby
KarlHung1s is now known as KarlHungus
nomenkun has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 264 seconds]
fphilipe has quit [Ping timeout: 240 seconds]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
druonysus has quit [Ping timeout: 246 seconds]
wagster has quit [Quit: Textual IRC Client: www.textualapp.com]
MrZYX|off is now known as MrZYX
wagster has joined #ruby
thebastl has joined #ruby
ybart has quit [Quit: ybart]
philipe1 has quit [Ping timeout: 264 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
_JamieD__ has joined #ruby
obs has quit [Ping timeout: 264 seconds]
<_br_> cih: You want to include gem dependencies locally directly in your own gem? Well you can package it together I suppose, its pretty unclean though.
havenwood has quit [Remote host closed the connection]
ciziar has joined #ruby
<cih> _br_: Yeah that's what I thought, I don't like that approach, is there a better way I can do it?
b0oh has quit [Quit: Leaving.]
Davey has joined #ruby
_JamieD_ has quit [Ping timeout: 264 seconds]
_JamieD__ is now known as _JamieD_
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<_br_> cih: whats wrong with it being installed via normal rubygems etc. ?
thebastl_ has joined #ruby
lessless has quit [Remote host closed the connection]
razi has quit [Read error: Operation timed out]
ebobby has joined #ruby
grillermo has joined #ruby
Kruppe has joined #ruby
blaxter_ has quit [Ping timeout: 240 seconds]
MindSpark has quit [Quit: MindSpark]
<cih> _br_: Well I it is a script I want to be able to be called system wide and it has a couple of dependencies. As I understand this would mean that the the gems would need to be installed globally which may not be ideal?
<MrZYX> it may not be ideal because....?
sarkis has joined #ruby
thoolihan has joined #ruby
darth_chatri has quit [Quit: Leaving.]
<cih> MrZYX: Someone who wished to use it could have a different version of a gem for something else
thebastl has quit [Ping timeout: 264 seconds]
tjbiddle has joined #ruby
<_br_> cih: Isn't a local user better off relying on rbenv/rvm for things like that ?
sarkis has quit [Client Quit]
<_br_> If this is integrated as callable system wide I feel you should rely on the package manager of the system for this kind of issue.
sarkis has joined #ruby
ebobby has quit [Ping timeout: 240 seconds]
<cih> _br_: So using a specific gemset defined within my gem somewhere? This is how I use it but did not know wether that would be the best approach for others
Pip has joined #ruby
<_br_> cih: is your gem installed via the gem command of your $distro ?
kil0byte has joined #ruby
redgirl has joined #ruby
thebastl_ has quit [Remote host closed the connection]
durango has joined #ruby
<durango> Does anyone know of a utility that lets me create a private tunnel from my locla machine to the world? I know there was a ruby gem out there.. was wondering if anyone knew of anything / for nodejs in particular
<MrZYX> tunnel from where to where?
maxmanders has quit [Quit: Computer has gone to sleep.]
fredjean has quit [Quit: Computer has gone to sleep.]
senayar has quit [Remote host closed the connection]
robscomputer_ has joined #ruby
<_br_> durango: ruby gem for that? Not ssh?
<durango> nah
<durango> something like showoff.io
<durango> but not that
<durango> something free >.>
<cih> _br_: That is the plan, initially expecting that it would just be cloned, run bundle and away you go but want it to be as simple to use as possible
<MrZYX> hm, pagekite?
londerson has joined #ruby
<_br_> cih: via clone? Whats wrong with creating a simple gemspec and publishing it properly ?
<durango> MrZYX: thanks, does this last forever / as long as I want or is it limited free edition?
<MrZYX> dunno
<MrZYX> never used it
b0oh has joined #ruby
<MrZYX> I'm able to configure my router :P
<durango> :p
<MrZYX> site says pay what you want for personal use
adeponte has joined #ruby
<durango> i cant :(
<durango> thanks :D
fredjean has joined #ruby
<cih> _br_: Nothing wrong with that approach, I will do that but it still does not solve the problem.. So you would package as a gem and have a config option for a gemset to use, something like that?
<_br_> Pagekit? Eh, I see dyndns + ssh -R didn't know this is a problem these days.
<_br_> cih: What distro?
freerobby has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<MrZYX> _br_: durango something like tunnelbroker.net slowly starts to get a solution to that problem too
elentras has quit [Quit: Leaving...]
<durango> right hmm
angusiguess has joined #ruby
<durango> yeah i think pagekite limits u vasely
<durango> massively* meh
Astralum has joined #ruby
<cih> _br_: rubygems
mahmoudimus has quit [Quit: Computer has gone to sleep.]
razi has joined #ruby
<_br_> cih: Just create a proper gemspec and be done with it. Local users should overwrite it with their own rbenv/rvm if needed.
cofin has joined #ruby
goodgame has quit [Ping timeout: 256 seconds]
<cih> _br_: Ok, cool thanks for your help
<_br_> np
brianpWins has quit [Quit: brianpWins]
havenwood has joined #ruby
xardas has joined #ruby
bzitzow has joined #ruby
lkba has joined #ruby
cads has quit [Ping timeout: 268 seconds]
Vivekananda has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
kevinykchan has joined #ruby
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
elux has quit [Quit: Bye!]
thoolihan has quit [Quit: thoolihan]
moos3 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
noname001 has quit [Ping timeout: 240 seconds]
julweber has quit [Remote host closed the connection]
renderful has joined #ruby
Davey has joined #ruby
viszu has quit [Quit: Leaving.]
Ry0_ has joined #ruby
kil0byte has quit [Remote host closed the connection]
darth_chatri has joined #ruby
Ry0_ has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
Ry0_ has joined #ruby
ntus1017 has quit [Remote host closed the connection]
adeponte has quit [Read error: Connection reset by peer]
_adeponte has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
moos3 has joined #ruby
Ry0_ has quit [Remote host closed the connection]
Shirakawasuna has quit [Quit: Leaving]
_adeponte has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
durango has left #ruby [#ruby]
adeponte has quit [Read error: Connection reset by peer]
Ry0_ has joined #ruby
ebobby has joined #ruby
adeponte has joined #ruby
terracatta has joined #ruby
axeman- has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
Ry0_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
zeade has joined #ruby
jbueza has joined #ruby
pwnfactory has quit [Quit: Leaving]
adeponte has quit [Ping timeout: 264 seconds]
jjbohn has joined #ruby
razi has quit [Quit: Leaving.]
elaptics is now known as elaptics`away
<dEPy> can anyone check this https://gist.github.com/carmivore/5959047 and tell me what I'm doing wrong? I'm trying to traverse parsed json (nested hashes and arrays) and "camelize" every hash key for every hash even nested ones
Mars^ has joined #ruby
<dEPy> my solution works for but if I nest hash -> array -> hash it doesn't works
mljsimone is now known as mljsimone|away
monkegjinni has quit [Remote host closed the connection]
_seanc_ has joined #ruby
katherinem13 has quit [Ping timeout: 248 seconds]
blitz has joined #ruby
ssvo has quit [Quit: Lost terminal]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
BSaboia has joined #ruby
<havenwood> dEPy: Just an aside, but i'd be more idiomatic to "Camelizing #{k}" and `.is_a? Class` instead of `.class == Class`.
mark_locklear has quit [Quit: Leaving]
jjbohn has quit [Ping timeout: 248 seconds]
<MrZYX> dEPy: if you want a fast answer add sample input and expected output ;)
mahmoudimus has joined #ruby
Pip has quit [Ping timeout: 276 seconds]
jblack has quit [Quit: Lost terminal]
mklappstuhl has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ssvo has joined #ruby
includex has quit [Quit: Leaving...]
mansi has quit [Ping timeout: 241 seconds]
noop has joined #ruby
ciziar has quit [Quit: Computer has gone to sleep.]
katherin1m13 is now known as katherinem13
skane has quit [Ping timeout: 256 seconds]
adeponte has joined #ruby
gyre007 has quit [Remote host closed the connection]
sarcilav has quit [Quit: Connection closed for inactivity]
drejohnson has joined #ruby
pootler has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
DanKnox_away is now known as DanKnox
_JamieD_ has quit [Quit: _JamieD_]
YaNakilon has quit [Ping timeout: 240 seconds]
rupee has joined #ruby
DrCode has quit [Remote host closed the connection]
julweber has joined #ruby
DrCode has joined #ruby
noop has quit [Ping timeout: 264 seconds]
rsahae has joined #ruby
robbyoconnor has joined #ruby
darth_chatri has quit [Quit: Leaving.]
drejohnson has quit [Quit: drejohnson]
drejohnson has joined #ruby
Spooner has quit [Remote host closed the connection]
axeman- has joined #ruby
deception has joined #ruby
Spooner has joined #ruby
anay has joined #ruby
_adeponte has joined #ruby
<MrZYX> dEPy: make the each in line 13 a map
brianpWins has joined #ruby
c0rn has joined #ruby
adeponte has quit [Ping timeout: 248 seconds]
<dEPy> MrZYX: nice catch :) I was looking at it for too long I guess. Tnx :)
shaunbaker has quit [Remote host closed the connection]
bondar has joined #ruby
c0rn has quit [Client Quit]
bondar has quit [Remote host closed the connection]
<dEPy> Updated, now another things, it should preserver normal array: https://gist.github.com/carmivore/5959047
enebo has quit [Quit: enebo]
devoldmx has quit [Ping timeout: 256 seconds]
<dEPy> sample i/o added bellow first one
tylersmith has joined #ruby
_adeponte has quit [Read error: Connection reset by peer]
alex__c2022 has quit [Quit: alex__c2022]
dillwithers has quit [Remote host closed the connection]
adeponte has joined #ruby
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<dEPy> nevermind, found it :)
c0rn has joined #ruby
hakunin_ has joined #ruby
khushildep has quit [Ping timeout: 256 seconds]
hakunin has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
jwest has quit [Quit: WeeChat 0.4.0]
jwest has joined #ruby
jwest has quit [Client Quit]
marcdel has joined #ruby
vigintas has quit [Read error: Connection reset by peer]
Voodoofish430 has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
darth_chatri has joined #ruby
msuszczy has joined #ruby
jarray52 has joined #ruby
Appineer has joined #ruby
thebastl has joined #ruby
dougireton has quit [Quit: Leaving.]
troessner has quit [Quit: Leaving]
deception is now known as deception-idle
jmimi has quit [Ping timeout: 246 seconds]
cofin has quit [Quit: cofin]
jeffreylevesque_ has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
Appineer has left #ruby [#ruby]
headius has quit [Quit: headius]
adeponte has joined #ruby
monkegjinni has joined #ruby
dodosan has joined #ruby
camilasan has quit [Remote host closed the connection]
kpshek has quit []
tjbiddle_ has joined #ruby
saarinen has joined #ruby
breakingthings has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
tjbiddle_ has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
mocfive has joined #ruby
goodgame has joined #ruby
cj3kim has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
dougireton has joined #ruby
tkuchiki has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 240 seconds]
trepidaciousMBR has joined #ruby
adeponte has quit [Remote host closed the connection]
<trepidaciousMBR> If I have a string of bytes, which are just bytes and NOT text, unicode or otherwise, how do I get the number of bytes in that string?
kpshek has joined #ruby
<MrZYX> #bytesize
sambao21 has joined #ruby
zmike123 has quit [Read error: Connection reset by peer]
twoism has joined #ruby
<apeiros> trepidaciousMBR: all strings are just bytes :-p
dougireton has quit [Ping timeout: 248 seconds]
<apeiros> text is just bytes, unicode too. it's a decision to interpret those bytes in a specific way.
<trepidaciousMBR> Yes, but in this case I'm being sort of forced to use a String as a substitute for a byte array...
monkegjinni has quit [Remote host closed the connection]
<trepidaciousMBR> If it was a byte array, I imagine it would have a length, size or similar
<trepidaciousMBR> That's what I'm after
<apeiros> ruby doesn't have a byte array. strings are rubys byte arrays.
<trepidaciousMBR> Yes, so given that this String is a byte array, what is its length?
<apeiros> (and MrZYX gave the answer)
<trepidaciousMBR> in bytes, not characters
<trepidaciousMBR> ah cool, thanks
<Morrolan> apeiros: So a string is a sequence of bytes, and not a sequence of unicode codepoints?
<trepidaciousMBR> I managed to miss that ;)
<apeiros> Morrolan: can be both
<apeiros> bytes can be interpreted as unicode codepoints
LaPetiteFromage has joined #ruby
ToApolytoXaos has joined #ruby
<trepidaciousMBR> In this case that interpretation is juts wrong though :)
<Hanmac> hy OSX users i am looking for something like ldd for osx
<apeiros> for certain byte sequences it'd also be invalid
burlyscudd has quit [Quit: Leaving.]
end_guy has joined #ruby
Astral_ has joined #ruby
jjbohn has joined #ruby
jcoglan has quit [Ping timeout: 264 seconds]
rdark has quit [Quit: leaving]
m_3 has quit [Remote host closed the connection]
cih has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
danslo has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
Zai00 has quit [Quit: Zai00]
haxrbyte has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
cantonic_ has joined #ruby
goshakkk has joined #ruby
pootler has joined #ruby
elux has joined #ruby
cantonic has quit [Ping timeout: 264 seconds]
cantonic_ is now known as cantonic
havenwood has joined #ruby
<dEPy> guys
anay has quit [Remote host closed the connection]
<dEPy> if I do obj.send(my_method) how do I specify params?
andikr has quit [Read error: Connection reset by peer]
_ffio_ has joined #ruby
rosario has quit [Ping timeout: 246 seconds]
Asher1 has joined #ruby
kirun has joined #ruby
jkline has quit [Quit: jkline]
sambao21 has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
ffio_ has quit [Ping timeout: 268 seconds]
allaire has quit [Quit: allaire]
matthieua has quit [Quit: Textual IRC Client: www.textualapp.com]
<MrZYX> just do it
ebobby has quit [Ping timeout: 256 seconds]
<MrZYX> obj.send(:foo, param1, param2)
sleetdrop has quit [Quit: Computer has gone to sleep.]
interactionjaxsn has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby
<pontiki> what is ldd?
Targen has joined #ruby
freerobby has joined #ruby
resure has left #ruby ["Leaving"]
Asher1 has quit [Ping timeout: 240 seconds]
Asher has quit [Ping timeout: 264 seconds]
zets has joined #ruby
zmike123 has joined #ruby
adeponte has joined #ruby
doritostains has quit [Quit: Linkinus - http://linkinus.com]
niklasb has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
headius has joined #ruby
julweber has quit [Remote host closed the connection]
wagster has quit [Quit: Computer has gone to sleep.]
cofin has joined #ruby
freerobby has quit [Quit: Leaving.]
robscomputer_ has quit [Remote host closed the connection]
freerobby has joined #ruby
robscomputer_ has joined #ruby
burlyscudd has joined #ruby
<epitron> alainus: what're you doing that for? faking scientific data?
headius has quit [Client Quit]
mocfive has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
adeponte has quit [Read error: Connection reset by peer]
akashj87 has quit [Quit: Leaving]
spider-mario has joined #ruby
<epitron> (kidding!)
cj3kim has joined #ruby
<epitron> seriously though, it helps to know why you're doing that crazy thing
c0rn has joined #ruby
Catbuntu has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
alvaro_o has joined #ruby
Catbuntu is now known as Guest56834
mduvall has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
BSaboia has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
Guest56834 has quit [Client Quit]
HelenCrowley has joined #ruby
HelenCrowley is now known as Catbuntu
rgreen_ has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
<rgreen_> hello
<rgreen_> I have a question about strings, can anyone help?
m_3 has joined #ruby
<havenwood> rgreen_: Just go ahead and ask. :)
jlast has quit [Ping timeout: 268 seconds]
<apeiros> we can't help with unspoken questions.
mocfive has joined #ruby
breakingthings has joined #ruby
fenicks has joined #ruby
mocfive has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 240 seconds]
_adeponte has joined #ruby
cha1tanya has quit [Quit: Leaving]
jlast has joined #ruby
adeponte has quit [Read error: No route to host]
mansi has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
Vivekananda has joined #ruby
wallerdev has quit [Quit: wallerdev]
inimit has joined #ruby
adeponte has joined #ruby
<rgreen_> i have a string like "sadhkjfths=2345<p>aslkdfhsk;hs=3245,sfsdfdsfs" I want to search the string for the numbers (2345 and 3245) which always come after the string "hs="
<rgreen_> and have jsut the numbers returned
nanoxd has joined #ruby
CaptainJet has joined #ruby
ebobby has joined #ruby
<apeiros> >> "sadhkjfths=2345<p>aslkdfhsk;hs=3245,sfsdfdsfs".scan(/(?<=hs=)\d+)/)
<eval-in> apeiros => /tmp/execpad-1d3af1c0f5f7/source-1d3af1c0f5f7:2: unmatched close parenthesis: /(?<=hs=)\d+)/ (https://eval.in/37052)
<apeiros> bah
<apeiros> >> "sadhkjfths=2345<p>aslkdfhsk;hs=3245,sfsdfdsfs".scan(/(?<=hs=)\d+/)
<eval-in> apeiros => ["2345", "3245"] (https://eval.in/37053)
workmad3 has joined #ruby
Rubas__ has joined #ruby
b0oh has quit [Quit: Leaving.]
rosario has joined #ruby
_adeponte has quit [Ping timeout: 246 seconds]
mansi has quit [Ping timeout: 264 seconds]
<rgreen_> thank you very much
Rubas has joined #ruby
lkba has joined #ruby
<rgreen_> could you guys explain what is actually happening
LaPetiteFromage has quit [Quit: LaPetiteFromage]
TheBatMan is now known as TheBlackMan
TheBlackMan is now known as UltimateBlackMan
Es0teric has joined #ruby
banister`gym has joined #ruby
zigomir has quit [Quit: zigomir]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
yashshah has joined #ruby
mansi has joined #ruby
<Hanmac> pontiki ldd shows on linux wich library files an program require (mostly recusiv) you can use it to look if the program can find the library you need
xargoon has quit [Ping timeout: 240 seconds]
mark_locklear has joined #ruby
axeman- has quit [Remote host closed the connection]
<apeiros> rgreen_: if you tell me what you understand, and what you don't understand
Catbuntu has quit [Quit: Tschüß french people]
poga has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<banister`gym> apeiros: check it, haskell magic for ruby: http://showterm.io/7fab0cd8e50a0e2866620#fast
<apeiros> banister`gym: omg, no! no crazy for me now! :)
browndawg has left #ruby [#ruby]
sambao21 has joined #ruby
<apeiros> banister`gym: how do you do those long statements?
xargoon has joined #ruby
<banister`gym> apeiros: what long statement?
<rgreen_> sure, scan(/(?<=hs=)\d+/) I know that scan is searching through the string for the arguments its is given. I know that the \d+/ is searching for integers and the + sign allows the integers to be grouped together. I dont understand the "?<=" part however
poseid has joined #ruby
<apeiros> banister`gym: the class definition e.g.
<banister`gym> apeiros: what do u mean? that's just pry multi-line support
<apeiros> banister`gym: ok. how do you do multiline in pry? :)
<Hanmac> banister`gym: i like that crazy shit ;D
<banister`gym> apeiros: it's automatically multi-line, same as irb
rosario has quit [Disconnected by services]
<apeiros> rgreen_: \d+, the + is actually "1 or more", not grouping.
<rgreen_> ah ok
<banister`gym> apeiros: you really can't enter multi line expressions in pry?
gnerol_ has joined #ruby
<apeiros> rgreen_: the (?<=…) group is a look-behind
eldariof has joined #ruby
<apeiros> it does not consume and not capture, but must be matched in front of the next expression
timonv has quit [Remote host closed the connection]
<apeiros> i.e., it's quite literally "1 or more digits with 'hs=' in front of it"
druonysuse has quit [Ping timeout: 240 seconds]
<banister`gym> apeiros: i just have a differnet prompt :)
v0n has quit [Read error: Connection reset by peer]
v0n has joined #ruby
<rgreen_> got it, what would it mean to have (?=hs=)\d+/ ?
<apeiros> banister`gym: ah, hm
<apeiros> banister`gym: I mean afaik you somehow tell pry that something is one statement
druonysuse has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
<apeiros> so that when you go back in the history, the multiple lines appear as a single statement again
<apeiros> no?
ericmathison has joined #ruby
<banister`gym> apeiros: pry just looks for 'complete expressions'
<apeiros> rgreen_: either include both delimiters of the regex or none, only including the ending delimiter is confusing :-p
<banister`gym> if the expression is incomplete, pry will keep requesting input
<banister`gym> otherwise it executes it
devoldmx has joined #ruby
<apeiros> banister`gym: sure, but if I define a 3-line class and hit arrow-up after that, I get "end" only (the last line)
wallerdev has joined #ruby
<banister`gym> apeiros: oh, yeah, you can't get multiline stuff in history
<apeiros> how would I be able to get the whole thing as one? afair pry can do that
<waxjar> how did you get the prompt to be whitespace with a pipe instead of [x] pry(main)* ?
<rgreen_> got it, what would it mean to have (?>=hs=)\d+/ ?
<banister`gym> you can't
<apeiros> rgreen_: aaaaaah!
<rgreen_> lol what?
<apeiros> /(?>=hs=)\d+/, that starting / is part of the regex. srsly :)
nanoxd has left #ruby ["Textual IRC Client: www.textualapp.com"]
<rgreen_> sorry i guess i dont even know what a regex is
<apeiros> and (?>=) is invalid I'd say
<apeiros> well, /…/ is a regex. /foo/.class # => Regexp
<rgreen_> ok, and also what part of the regex are the delimiters?
baordog has joined #ruby
<apeiros> the /
<apeiros> same as it's " for strings
ner0x has joined #ruby
<rgreen_> ahhhhh ok haha i understand what is the difference between doing /(?<=hs=)\d+/ aand /(?<=hs=)[0-9]+/
<apeiros> none
<rgreen_> hmm ok thanks
<apeiros> [0-9] is equivalent to \d
Astral_ has quit [Ping timeout: 245 seconds]
rezzack has joined #ruby
<alainus> epitron, sorry I wasn't here... hahaha, no, it's for a small game we're building. It's going to be used to determine the position of some things on the screen
fwaokda has quit [Ping timeout: 264 seconds]
mocfive has joined #ruby
kennym has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
druonysuse has quit [Quit: Konversation terminated!]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
<rgreen_> ok last question, if i had lets say string1="sadhkjfths=2345<p>aslkdfhsk;hs=3245,sfsdfdsfs" string2="sadhkjfths=1234<p>aslkdfhsk;hs=3455,sfsdfdsfs" and I want to create an array of arrays with each subarray containing the results from the scan method we were talking about. I have tried something like string.each do |i| b=string.scan(/(?<=hs=)\d+/) where b should the array of arrays
cantonic has quit [Quit: cantonic]
devoldmx has quit [Ping timeout: 276 seconds]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
<rgreen_> or rather b=i.scan...
denver has quit [Remote host closed the connection]
devoldmx has joined #ruby
robscomputer_ has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
Astralum has joined #ruby
<MrZYX> [string1, string2].map {|string| sting.scan(...) }
cantonic has joined #ruby
robscomputer_ has quit [Read error: Connection reset by peer]
robscomputer_ has joined #ruby
druonysuse has quit [Read error: Connection reset by peer]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
banister`gym has quit [Remote host closed the connection]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
jastix has quit [Quit: Leaving]
devoldmx has quit [Ping timeout: 240 seconds]
poseid has quit [Quit: poseid]
<rgreen_> it tells me that i cannot map a string
mickeyd has joined #ruby
<MrZYX> sure
<MrZYX> I didn't write string1.map
tatsuya_o has joined #ruby
gustavn has joined #ruby
<epitron> alainus: so it's a level generator?
johnmilton has quit [Ping timeout: 276 seconds]
tatsuya_o has quit [Remote host closed the connection]
mickeyd is now known as fwaokda
robscomputer_ has quit [Ping timeout: 248 seconds]
<rgreen_> ok well I guess I havnt explained this correctly. I have an array of strings to begin with. I want to go through each one and find the numbers in it and in a new array create a subarray for each of the strings that contains the numbres that were found in it
cpruitt has joined #ruby
thepumpkin has quit [Remote host closed the connection]
johnmilton has joined #ruby
zeropx has joined #ruby
<MrZYX> new_array = strings.each_with_object(Array.new) { |string, array| array << string.scan(...) }
freerobby has quit [Quit: Leaving.]
cantonic has quit [Quit: cantonic]
<MrZYX> well, actually the map would still work
<MrZYX> new_array = strings.map {|string| string.scan(...) }
adeponte has quit [Read error: Connection reset by peer]
rh1n0 has joined #ruby
yashshah has quit [Ping timeout: 264 seconds]
adeponte has joined #ruby
awesomepossum has joined #ruby
tommyvyo has joined #ruby
deception-idle has quit [Quit: Goodbye]
zastern has quit [Remote host closed the connection]
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
<rgreen_> MrZYx : that worked awesome thanks!
xardas has quit [Quit: ChatZilla 0.9.90 [Firefox 22.0/20130618035212]]
_adeponte has joined #ruby
randym_ has quit [Quit: Connection closed for inactivity]
corehook has quit [Read error: Operation timed out]
robscomputer_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Vivekananda has quit [Ping timeout: 264 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Ping timeout: 276 seconds]
druonysuse has quit [Ping timeout: 260 seconds]
tommyvyo has quit [Quit:]
bondar has joined #ruby
Ry0_ has joined #ruby
zastern has joined #ruby
banister`gym has joined #ruby
goshakkk has joined #ruby
<banister`gym> apeiros: ah, you might have meant the 'play' command, which can be used to play back previous expressions in their entirety
<banister`gym> ditto for the 'edit' command which enables you to re-edit them in an editor
kenneth has joined #ruby
<kenneth> hey
viszu has joined #ruby
enherit has joined #ruby
<rgreen_> say i had a string like""mynameishello;fsf=3253"this is more writing" and i want to split the string around hello;fsf=3253
_Andres has joined #ruby
tommyvyo has joined #ruby
vlad_starkov has joined #ruby
<rgreen_> how would i do that?
<MrZYX> .split /hello;fsf=\d+/
interactionjaxsn has joined #ruby
haxrbyte has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
<rgreen_> what is the difference between that and /(?<=hello;fsf...?
Ripp__ has quit [Quit: This computer has gone to sleep]
<MrZYX> you asked for splitting around hello;fsf=3253 ?
<rgreen_> yes
<MrZYX> get irb and try it out
danslo has quit [Quit: danslo]
<rgreen_> your first answer is what im looking for, i am trying irb and i see whats happening but I was just wondering if you could give an english explanation for it
_adeponte has quit [Read error: No route to host]
adeponte has joined #ruby
<MrZYX> I can't because I don't fully get your question ;)
<rgreen_> lol ok nvm, thanks for your help
adeponte has quit [Remote host closed the connection]
inimit has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 260 seconds]
ffranz has quit [Quit: Leaving]
v0yager has joined #ruby
marr has joined #ruby
WarChief is now known as ArchBeOS
Vivekananda has joined #ruby
flaritycat has joined #ruby
Ripp__ has joined #ruby
sepp2k has joined #ruby
rsahae has quit [Quit: rsahae]
vlad_starkov has joined #ruby
adeponte has joined #ruby
seitensei has quit [Ping timeout: 248 seconds]
rgreen_ has quit [Ping timeout: 250 seconds]
carloslopes has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
banister`gym has quit [Read error: Connection reset by peer]
chriskk has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
Ry0_ has quit [Remote host closed the connection]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
devoldmx has joined #ruby
burlyscudd has quit [Quit: Leaving.]
musl_ has joined #ruby
musl has quit [Ping timeout: 245 seconds]
statarb3 has quit [Read error: Connection timed out]
statarb3 has joined #ruby
gsvolt_ has joined #ruby
Vivekananda has quit [Ping timeout: 264 seconds]
haxrbyte_ has joined #ruby
gsvolt has quit [Quit: No Ping reply in 180 seconds.]
mark_locklear has quit [Quit: Leaving]
<eliasp_> what's the "official" name for a statement like '$foo = $bar ? { /something/ => "blah", /anything/ => "blub", default => nil }'? the first part is ternary-like to me, but the evaluation block is something I can't find the "offical name" for to read about it…
haxrbyte has quit [Ping timeout: 260 seconds]
<kenneth> is .to_json deterministic?
grillermo has quit [Quit: bandtastic.me]
<kenneth> i.e., will it always output the same json for the same hash?
<kenneth> how does it sort keys etc?
<pontiki> it better
fmcgeough has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
druonysuse has quit [Read error: Connection reset by peer]
happydude has joined #ruby
johchri has joined #ruby
<pontiki> hash keys are in insertion order
<apeiros> eliasp_: it's a Hash
<apeiros> {a => b}
<eliasp_> apeiros: hmm, but what about the regex matching? that's no regular KV hash to me…
<apeiros> eliasp_: you confuse objects and methods
<apeiros> /foo/ is a regexp *object*, it does not do anything on its own.
Ripp__ has quit [Quit: This computer has gone to sleep]
<apeiros> and regexp objects (like most objects) are fine hash keys.
<eliasp_> apeiros: well, you're right ;)
johchri has quit [Client Quit]
<eliasp_> apeiros: I need to make myself think more everything-is-an-object like…
<pontiki> eliasp_: can you show a real example of what you're talking about there?
v0yager has quit [Remote host closed the connection]
<pontiki> i can't say i've seen ? as a standalong operator
<apeiros> kenneth: as of ruby 1.9, it should during the same run, doesn't have to over multiple runs.
<pontiki> standalone*
<apeiros> but it also depends on how you construct your hashes.
<asteve> 18.to_f/1000.0 = 0.018; hashish['special_key'] = 18.to_f/1000.0 = 0.0
<eliasp_> pontiki: that's just a ternary without an else case… e.g: https://github.com/example42/puppet-puppet/blob/master/manifests/params.pp#L230
<asteve> what do I need to do to preserve the decimal places?
jonathanwallace has quit [Quit: WeeChat 0.4.0]
romockee has quit [Quit: romockee]
angusiguess has quit [Ping timeout: 246 seconds]
<apeiros> asteve: what?
<apeiros> the code you show is invalid…
Liothen has quit [Read error: Operation timed out]
<pontiki> eliasp_: omitted the else part sets $foo to nil then?
<asteve> sorry, x = 18; replace 18 with x
rsahae has joined #ruby
<eliasp_> pontiki: I think so
<pontiki> lemme check
<apeiros> asteve: it's still not valid. you can't assign to an expression.
Trynemjoel has joined #ruby
yacks has quit [Ping timeout: 256 seconds]
jjbohn has quit [Quit: Leaving...]
thepumpkin has joined #ruby
<pontiki> nope, SyntaxError, it requires the :
yacks has joined #ruby
Ry0_ has joined #ruby
yashshah has joined #ruby
jonahR has quit [Quit: jonahR]
jonathanwallace has joined #ruby
endzyme has joined #ruby
_seanc_ has quit [Quit: _seanc_]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
Pinas has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
popl has joined #ruby
<eliasp_> pontiki: well, this code (it's not mine) works and this statement is quite often used in Puppet modules… this might be something Puppet DSL specific then…
daidoji has joined #ruby
<pontiki> probably
<Pinas> hello, one question. Is there kind of an environment variable that tells ruby where to look for additional libraries. I currently have the problem, that ruby searches for libs on a file share - thats works finde, but now i tried to mirror this fileshare (i simpley copied the files in share A to a new fileshare) and ruby won't find these libs.
<pontiki> might be a method called #operatingsystem? in fact
LaPetiteFromage has joined #ruby
zastern has quit [Remote host closed the connection]
angusiguess has joined #ruby
RichardBaker has joined #ruby
Vivekananda has joined #ruby
Nies has quit [Quit: Saliendo]
cr3 has joined #ruby
druonysus has quit [Quit: Konversation terminated!]
c0rn has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
alvaro_o has joined #ruby
yashshah has quit [Ping timeout: 256 seconds]
tatsuya_o has joined #ruby
jjbohn has joined #ruby
sepp2k has quit [Read error: Operation timed out]
dillwithers has joined #ruby
havenwood has quit [Remote host closed the connection]
adeponte has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
havenwood has joined #ruby
zmike123 has quit [Quit: ~]
<apeiros> Pinas: not an environment variable. $LOAD_PATH in ruby itself.
headius has joined #ruby
cads has joined #ruby
horofox_ has joined #ruby
rh1n0 has quit [Quit: -- I'm out --]
Vivekananda has quit [Ping timeout: 246 seconds]
zastern has joined #ruby
enherit has quit [Ping timeout: 264 seconds]
syamajala has joined #ruby
jmimi has joined #ruby
axl_ has quit [Quit: axl_]
bondar has quit []
tatsuya_o has quit [Remote host closed the connection]
enherit has joined #ruby
burlyscudd has joined #ruby
theRoUS has quit [Ping timeout: 246 seconds]
happydude has quit [Quit: Leaving]
thebastl has quit [Remote host closed the connection]
sambao21 has joined #ruby
nbouscal has joined #ruby
axl_ has joined #ruby
sepp2k has joined #ruby
robscomp_ has joined #ruby
Ortuna_ has joined #ruby
pootler has quit [Ping timeout: 248 seconds]
daidoji70 has joined #ruby
maxmanders has joined #ruby
zastern has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
spider-mario_ has joined #ruby
prophile_ has joined #ruby
davidcel- has joined #ruby
Guedes0 has joined #ruby
jonathanwallace1 has joined #ruby
ananthakumaran has joined #ruby
robscomputer_ has quit [Read error: Connection reset by peer]
lusory_ has joined #ruby
spider-mario has quit [Disconnected by services]
spider-mario_ is now known as spider-mario
spacebug_ has joined #ruby
enhance_ has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
wildcard1 has joined #ruby
jbpros has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
Pinas has quit [Quit: Page closed]
_seanc_ has joined #ruby
stkowski_ has joined #ruby
billy_ran_away_ has joined #ruby
tvw has quit []
monkegjinni has joined #ruby
TheNumb_ has joined #ruby
workmad3_ has joined #ruby
SecretAg1nt has joined #ruby
felipe has quit [Ping timeout: 260 seconds]
arubin has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
JZTech101 has joined #ruby
endzyme_ has joined #ruby
maxmanders has quit [Ping timeout: 246 seconds]
conceal_rs_____0 has joined #ruby
philipe1 has joined #ruby
jlast has quit [Remote host closed the connection]
kindjal has joined #ruby
brjannc has joined #ruby
ananthakumaran has quit [Client Quit]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
8OWAAIGLJ has joined #ruby
ehaliewicz has joined #ruby
Ortuna has quit [Ping timeout: 260 seconds]
mansi has quit [Read error: Connection reset by peer]
Brando753 has joined #ruby
matematikaadit has joined #ruby
headius has quit [*.net *.split]
syamajala has quit [*.net *.split]
daidoji has quit [*.net *.split]
druonysus has quit [*.net *.split]
devoldmx has quit [*.net *.split]
endzyme has quit [*.net *.split]
fmcgeough has quit [*.net *.split]
workmad3 has quit [*.net *.split]
Rubas__ has quit [*.net *.split]
terracatta has quit [*.net *.split]
moos3 has quit [*.net *.split]
sarkis has quit [*.net *.split]
apeiros has quit [*.net *.split]
keyvan has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
LBRapid has quit [*.net *.split]
prophile has quit [*.net *.split]
lusory has quit [*.net *.split]
stkowski has quit [*.net *.split]
didlix has quit [*.net *.split]
Guedes has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
Olipro has quit [*.net *.split]
wildcard0 has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
Drakevr has quit [*.net *.split]
ElderFain has quit [*.net *.split]
nitrodex has quit [*.net *.split]
Guest60400 has quit [*.net *.split]
spacebug1 has quit [*.net *.split]
marsLantern has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
Norrin has quit [*.net *.split]
davidcelis has quit [*.net *.split]
babinho has quit [*.net *.split]
Jelco___ has quit [*.net *.split]
maddog_ has quit [*.net *.split]
conceal_rs______ has quit [*.net *.split]
Scient has quit [*.net *.split]
brjannc| has quit [*.net *.split]
wyrd1 has quit [*.net *.split]
enhance has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
Guest75672 has quit [*.net *.split]
TheNumb has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
zendeavor has quit [*.net *.split]
stkowski_ is now known as stkowski
davidcel- is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
Scient has joined #ruby
mansi has joined #ruby
_ffio_ has quit [Quit: WeeChat 0.4.1]
pskosinski has joined #ruby
fphilipe has joined #ruby
druonysuse has quit [Ping timeout: 248 seconds]
jztech101_ has joined #ruby
didlix_ has joined #ruby
poseid has joined #ruby
bubblehe_ has joined #ruby
tylersmith has joined #ruby
Kelet_ has joined #ruby
Olipro has joined #ruby
jbpros has quit [Ping timeout: 256 seconds]
Meatant has joined #ruby
Hanmac has quit [Read error: Operation timed out]
xargoon has quit [Read error: Operation timed out]
thebastl has joined #ruby
bubblehead has quit [Ping timeout: 276 seconds]
ArchBeOS has left #ruby [#ruby]
vlad_starkov has joined #ruby
JZTech101 has quit [Ping timeout: 276 seconds]
nitrodex has joined #ruby
terracatta has joined #ruby
wang has joined #ruby
Norrin has joined #ruby
zendeavor has joined #ruby
keyvan has joined #ruby
gianlucadv has joined #ruby
DarthGandalf has joined #ruby
apeiros has joined #ruby
ElderFain has joined #ruby
Rubas__ has joined #ruby
elaptics`away has joined #ruby
Drakevr has joined #ruby
wyrd1 has joined #ruby
Spaceghost|cloud has joined #ruby
moos3 has joined #ruby
babinho has joined #ruby
maddog_ has joined #ruby
Guest60400 has joined #ruby
LBRapid has joined #ruby
Y_Ichiro has joined #ruby
Jelco___ has joined #ruby
ElderFain has quit [Remote host closed the connection]
nitrodex has quit [Max SendQ exceeded]
Y_Ichiro has quit [Max SendQ exceeded]
nitrodex has joined #ruby
vdandre has joined #ruby
fenicks has quit [Excess Flood]
ElderFain has joined #ruby
wang is now known as Guest5415
nitrodex is now known as Guest94606
<Kelet_> Hi, sorry if this is kind of off topic, but does anyone have a suggestion for a good editor for Ruby? I'm probably going to knock out most options, but here goes: No large learning curve (no emacs/vim), open source and free as in beer, doesn't require files to be in a project, is able to use ruby interpreter to find syntax errors, has support for erb syntax, and preferably has some way of accessing ruby docs.
Y_Ichiro has joined #ruby
johnmilton has quit [Ping timeout: 276 seconds]
<Kelet_> Komodo Edit comes extremely close to the point where I may use it, but it has a few issues that make it inconvenient for me.
Kelet_ is now known as Kelet
jalcine has quit [Excess Flood]
Kar-_ has joined #ruby
arubin has quit [Ping timeout: 240 seconds]
prophile_ is now known as prophile
prophile has quit [Changing host]
prophile has joined #ruby
fenicks has joined #ruby
<Kelet> Redcar also seems interesting but I'm having trouble getting it to work with Ruby 2.0 on Windows 7.
tatsuya_o has joined #ruby
clocKwize has joined #ruby
krainboltgreene has joined #ruby
<londerson> Hello guys, i need an advice for a projects made with Rack. Can anyone point me to one?
eldariof has quit [Ping timeout: 264 seconds]
<havenwood> londerson: http://rubyonrails.org
jztech101_ has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
vlad_starkov has quit [Ping timeout: 240 seconds]
<havenwood> Kelet: Switch to OS X, use TM2. :P
<havenwood> londerson: Oh, a pure Rack app?
<waxjar> Sublime Text with a linter plugin?
<havenwood> violates the free as in beer
<londerson> @havenwood: Yep, Rails and Sinatra i know!
freerobby has quit [Quit: Leaving.]
<apeiros> sublime text
<apeiros> @Kelet_
<Kelet> I mean, I'm open to suggestions that aren't totally in line with what I said, but yeah - I tried Sublime and honestly Komodo Edit seemed better and free in 'all ways'
elaptics`away is now known as elaptics
<apeiros> checking syntax with ruby is not part of it, but you can add it. (either through ruby -c, or some other tool)
graft has quit [Ping timeout: 248 seconds]
xargoon has joined #ruby
johnmilton has joined #ruby
ElderFain has quit [Ping timeout: 260 seconds]
mikeg has joined #ruby
headius has joined #ruby
FF7terra has joined #ruby
Guest26975 has joined #ruby
milardovich has joined #ruby
Guest26975 has quit [Client Quit]
gyre007 has joined #ruby
milardovich has quit [Max SendQ exceeded]
<Kelet> Anyways, while I'm here, I had another question that may be kind of newbie and/or slightly off topic. I'm working on a Sinatra app, and in addition to serving the webpages I want it to scrape some data and update my database every couple of minutes. It seems like just sticking it in a thread 'works' but is this bad? I'm just using the 'default' Ruby not JRuby or anything.
Astralum has quit [Ping timeout: 276 seconds]
milardovich has joined #ruby
flaritycat has quit [Remote host closed the connection]
flaritycat has joined #ruby
jefflyne has joined #ruby
elaptics` has joined #ruby
jbpros has joined #ruby
milardovich has quit [Max SendQ exceeded]
_adeponte has joined #ruby
milardovich has joined #ruby
brbcoding has quit []
thebastl has quit [Remote host closed the connection]
wildcard1 is now known as wildcard0
S0da has joined #ruby
zastern has joined #ruby
babinho_ has joined #ruby
thebastl has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
freerobby has joined #ruby
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby
thebastl has quit [Remote host closed the connection]
<pontiki> that sounds like it could be a completely separate thing
<pontiki> Kelet: just make it a rake task and schedule it with cron
<pontiki> there's really no part of that the sinatra app needs to know about
<Kelet> Hmm yeah I was thinking something like that may be a better approach
nomenkun_ has joined #ruby
<pontiki> (unless you want to add a route that will set the task off, or something like that)
<pontiki> just make sure if you do that you've set it in the background so you don't obstruct your sinatra app
Y_Ichiro has quit [*.net *.split]
Guest94606 has quit [*.net *.split]
Guest5415 has quit [*.net *.split]
wyrd1 has quit [*.net *.split]
Rubas__ has quit [*.net *.split]
moos3 has quit [*.net *.split]
terracatta has quit [*.net *.split]
apeiros has quit [*.net *.split]
keyvan has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
LBRapid has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
Drakevr has quit [*.net *.split]
Guest60400 has quit [*.net *.split]
Norrin has quit [*.net *.split]
babinho has quit [*.net *.split]
maddog_ has quit [*.net *.split]
Jelco___ has quit [*.net *.split]
elaptics has quit [*.net *.split]
zendeavor has quit [*.net *.split]
elaptics` is now known as elaptics
<Morrolan> If, for one reason or another, you want it to be part of your Sinatra application, then there's gems to execute code in certain intervals. rufus-scheduler is said to be quite nice.
<pontiki> but really, rake task run with cron sounds safest
goodgame has quit [Ping timeout: 264 seconds]
mupkoo has quit [Remote host closed the connection]
zigomir has joined #ruby
Y_Ichiro has joined #ruby
ElderFain has joined #ruby
Guest60400 has joined #ruby
Guest5415 has joined #ruby
LBRapid has joined #ruby
maddog_ has joined #ruby
DarthGandalf has joined #ruby
Drakevr has joined #ruby
Spaceghost|cloud has joined #ruby
apeiros has joined #ruby
wyrd1 has joined #ruby
Nitrodex- has joined #ruby
zendeavor has joined #ruby
Rubas__ has joined #ruby
moos3 has joined #ruby
keyvan has joined #ruby
gianlucadv has joined #ruby
Jelco___ has joined #ruby
Norrin has joined #ruby
bubblehead has joined #ruby
Y_Ichiro has quit [Max SendQ exceeded]
S0da has quit [Ping timeout: 264 seconds]
anonymus_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
8OWAAIGLJ has quit [Quit: This computer has gone to sleep]
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
<pontiki> Kelet: would there be any time you sinatra app would be updating the same tables the scraper might?
anonymuse has quit [Ping timeout: 264 seconds]
<pontiki> or will the sinatra app just be reading?
<Kelet> No the sinatra app is only reading the database.
<pontiki> then i think it's best to just separate them
monkegjinni has quit [Remote host closed the connection]
Guest6063 has joined #ruby
clocKwize has quit [Quit: clocKwize]
<pontiki> it doesn't specifically need to be a rake task; it could just be another script
headius has quit [Quit: headius]
jkline has joined #ruby
bubblehe_ has quit [Ping timeout: 276 seconds]
prsimp has joined #ruby
S0da has joined #ruby
mansi has quit [Read error: Connection reset by peer]
prsimp has left #ruby ["Textual IRC Client: www.textualapp.com"]
mansi has joined #ruby
zastern has quit [Remote host closed the connection]
<Kelet> pontiki, Morrolan, Thanks for the suggestions, I'll play around with the ideas.
<Kelet> My Sinatra app is turning out to be more front-end code (JS, JQuery, HTML, CSS) than back-end code anyway ._.
pyx has joined #ruby
Vivekananda has joined #ruby
<Kelet> Thought I was looking into CoffeeScript, seems nice.
<Kelet> though*
corehook has joined #ruby
Y_Ichiro has quit [Ping timeout: 260 seconds]
pyx has quit [Changing host]
pyx has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ElderFain has quit [Ping timeout: 260 seconds]
wyrd1 has quit [Ping timeout: 260 seconds]
wyrd1 has joined #ruby
colonolGron has joined #ruby
Y_Ichiro has joined #ruby
ElderFain has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Asher has joined #ruby
mansi has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit:]
darth_chatri has quit [Quit: Leaving.]
S0da has quit [Remote host closed the connection]
s0ber has joined #ruby
ffranz has joined #ruby
F1skr has joined #ruby
ElderFain has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
Nitrodex- has quit [*.net *.split]
Guest5415 has quit [*.net *.split]
Rubas__ has quit [*.net *.split]
moos3 has quit [*.net *.split]
apeiros has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
keyvan has quit [*.net *.split]
LBRapid has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
Guest60400 has quit [*.net *.split]
Drakevr has quit [*.net *.split]
Norrin has quit [*.net *.split]
Jelco___ has quit [*.net *.split]
maddog_ has quit [*.net *.split]
zendeavor has quit [*.net *.split]
Liothen has joined #ruby
monkegjinni has joined #ruby
jbpros has quit [Quit: jbpros]
devoldmx has joined #ruby
awc737 has quit [Ping timeout: 246 seconds]
Nitrodex- has joined #ruby
Y_Ichiro has joined #ruby
Rubas__ has joined #ruby
keyvan has joined #ruby
DarthGandalf has joined #ruby
Jelco___ has joined #ruby
Spaceghost|cloud has joined #ruby
LBRapid has joined #ruby
Norrin has joined #ruby
moos3 has joined #ruby
gianlucadv has joined #ruby
Guest5415 has joined #ruby
zendeavor has joined #ruby
maddog_ has joined #ruby
Guest60400 has joined #ruby
ElderFain has joined #ruby
Drakevr has joined #ruby
zastern has joined #ruby
Y_Ichiro has quit [Max SendQ exceeded]
soulcake has joined #ruby
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
tommyvyo has joined #ruby
aramus_ has joined #ruby
<aramus_> Hello, is there a way to convert output from a bash command to a string?
mansi has joined #ruby
<aramus_> For example, in the case hostname = `'hostname`, hostname.class says it is not a string.
maxmanders has joined #ruby
<cr3> hi folks, I'm trying to create a local gem repository so I did gem fetch into a gems/ directory, then ran gem generate_index to create the specs.4.8.gz file, then ran gem source -a file:///path/to/gems, and finally tried to gem install but it complains when looking under gems/gems :(
<Kelet> aramus_, It does for me
cofin has quit [Quit: cofin]
<aramus_> Kelet: it says command not found for me.
<Kelet> What happens when you type hostname in bash?
<aramus_> It works
jlast has joined #ruby
<Kelet> type in 'where hostname' and ensure it's in your PATH variable?
<aramus_> I can do a system( "echo #{hostname} " fine but hostname.class does not exist
cburyta has joined #ruby
zastern has quit [Remote host closed the connection]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
LaPetiteFromage has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
BlakeRG has joined #ruby
gasbakid has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Spami__ has joined #ruby
statarb3 has quit [Quit: Leaving]
maxmanders has quit [Ping timeout: 240 seconds]
<aramus_> The output of hostname = `hostname` system( "echo #{hostname}: #{hostname.class} is example.com: command not found
brennanMKE has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
mroth has joined #ruby
yekta has quit [Quit: yekta]
lushious has joined #ruby
enherit has quit [Ping timeout: 240 seconds]
zastern has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
zastern has quit [Remote host closed the connection]
geekbri has quit [Remote host closed the connection]
rsahae has quit [Quit: rsahae]
kindjal has quit [Quit: Computer has gone to sleep.]
<BlakeRG> what's generally the "best" Facebook graph API gem?
philipe1 has quit [Read error: Operation timed out]
danslo has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
blackmes1 has quit [Quit: WeeChat 0.4.1]
kindjal has joined #ruby
hadees has quit [Quit: hadees]
sambao21 has joined #ruby
<Kelet> aramus_, I don't get it
<Kelet> aramus_, Why not just do hostname = `hostname` and then do puts hostname.class
ffranz has quit [Quit: Leaving]
<Kelet> I think your system command is messed up
awc737 has joined #ruby
cofin has joined #ruby
codecop has quit [Read error: Operation timed out]
F1skr has quit [Quit: WeeChat 0.4.1]
codecop has joined #ruby
kkh has joined #ruby
zastern has joined #ruby
afd___ has quit [Read error: Operation timed out]
gasbakid has quit [Read error: Connection reset by peer]
afd__ has joined #ruby
rsahae has joined #ruby
krawchyk has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
<cr3> if anyone is interested, the problem I mentionned earlier is that I need a trailing slash when running gem source -a file:///parent/path/to/gems/
<cr3> the only problem now is that gem install doesn't actually respect the source I've given it
ffranz has joined #ruby
pootler has joined #ruby
burlyscudd has quit [Quit: Leaving.]
ner0x has quit [Quit: Leaving]
workmad3_ has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
Kar-_ has quit [Remote host closed the connection]
milardovich has quit [Read error: Connection reset by peer]
spider-mario has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 276 seconds]
poseid has quit [Quit: poseid]
Pip has joined #ruby
dash_ has joined #ruby
postmodern has joined #ruby
trepidaciousMBR has joined #ruby
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
druonysuse has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
hadees has joined #ruby
poga has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
rupee has quit [Quit: Leaving]
jrendell has joined #ruby
jrendell has quit [Client Quit]
jrendell has joined #ruby
_seanc_ has quit [Quit: _seanc_]
danslo has quit [Quit: danslo]
angusiguess has joined #ruby
ldnunes has quit [Quit: Leaving]
leonid__ has joined #ruby
c0rn has joined #ruby
mansi has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
pyx has quit [Quit: WeeChat 0.4.1]
Kruppe has quit [Read error: Operation timed out]
zastern has quit [Remote host closed the connection]
jjbohn has joined #ruby
zeade has quit [Quit: Leaving.]
jayne_ is now known as jayne
zastern has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
psyomn has quit [Quit: Lost terminal]
sayan has quit [Quit: Leaving]
tatsuya_o has quit [Ping timeout: 264 seconds]
obs has joined #ruby
jjbohn has quit [Ping timeout: 240 seconds]
aramus_ has left #ruby [#ruby]
johnmilton has quit [Remote host closed the connection]
jonahR has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
cburyta has quit [Remote host closed the connection]
kasper has joined #ruby
dash_ has quit [Quit: Time to beer :)]
FF7terra has quit [Read error: Operation timed out]
breakingthings has quit [Quit: breakingthings]
germanstudent has quit [Quit: Server does not respond.]
tatsuya_o has joined #ruby
drejohnson_ has joined #ruby
vdandre has quit [Quit: leaving]
drejohnson has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
_seanc_ has joined #ruby
mduvall has quit [Ping timeout: 248 seconds]
Astralum has joined #ruby
redgirl has quit [Quit: This computer has gone to sleep]
Pip has quit [Ping timeout: 264 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
codecop has quit [Remote host closed the connection]
Max_ has joined #ruby
tommyvyo has quit [Ping timeout: 240 seconds]
Spami__ has left #ruby ["Leaving"]
jerius has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
horofox_ has quit [Read error: Connection reset by peer]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
horofox_ has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
jmimi1 has joined #ruby
zeade has joined #ruby
jmimi1 has left #ruby [#ruby]
brennanMKE has joined #ruby
jmimi1 has joined #ruby
brennanMKE has quit [Remote host closed the connection]
dvarrui has joined #ruby
brennanMKE has joined #ruby
jmimi1 has left #ruby [#ruby]
jjbohn has joined #ruby
jmimi has quit [Ping timeout: 240 seconds]
Pip has joined #ruby
workmad3 has joined #ruby
leonid__ has quit [Ping timeout: 248 seconds]
cantonic has joined #ruby
wmoxam has quit [Ping timeout: 240 seconds]
BillCriswell has quit [Remote host closed the connection]
reset has joined #ruby
thepumpkin has joined #ruby
burlyscudd has quit [Quit: Leaving.]
pootler has quit [Ping timeout: 246 seconds]
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmimi has joined #ruby
dvarrui has quit [Remote host closed the connection]
germanstudent has joined #ruby
Pip has left #ruby ["Leaving"]
pootler has joined #ruby
enherit has joined #ruby
freerobby has quit [Quit: Leaving.]
Davey has joined #ruby
v1n has joined #ruby
cantonic has quit [Quit: cantonic]
dodosan has joined #ruby
flaritycat has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 246 seconds]
zeade has quit [Quit: Leaving.]
Zai00 has joined #ruby
elux has quit [Quit: Leaving...]
graft has joined #ruby
graft has joined #ruby
monkegjinni has joined #ruby
marcdel has quit [Quit: Textual IRC Client: www.textualapp.com]
gtc has joined #ruby
S0da has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
dvarrui has joined #ruby
kzrl_ has quit [Read error: Operation timed out]
finges has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
cburyta has joined #ruby
cburyta has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
samuel02 has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
zastern has quit [Remote host closed the connection]
<alainus> When I remove an item from Hash.keys, does that element get removed from the hash as well ?
zeade has joined #ruby
nomenkun has joined #ruby
Vivekananda has quit [Ping timeout: 246 seconds]
cantonic has joined #ruby
S0da has quit [Read error: Operation timed out]
<fryguy> alainus: try it and see
cofin has joined #ruby
interactionjaxsn has quit [Ping timeout: 264 seconds]
obs has quit [Quit: Konversation terminated!]
nomenkun has quit [Ping timeout: 246 seconds]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
kzrl has joined #ruby
gustavn has quit [Read error: Connection reset by peer]
arya__ has joined #ruby
thepumpkin has quit [Remote host closed the connection]
colonolGron has quit [Quit: Lost terminal]
arya_ has quit [Ping timeout: 248 seconds]
endzyme_ has quit [Remote host closed the connection]
cr3 has quit [Quit: leaving]
_adeponte has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
julweber has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Speed has joined #ruby
baordog has quit [Remote host closed the connection]
RichardBaker has quit [Ping timeout: 256 seconds]
kirun has quit [Quit: Client exiting]
pipework has quit [Remote host closed the connection]
adeponte has joined #ruby
horofox_ has quit [Quit: horofox_]
finges has quit [Quit: WeeChat 0.4.1]
enherit has quit [Ping timeout: 240 seconds]
Vivekananda has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
cburyta has joined #ruby
Max_ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 264 seconds]
finges has joined #ruby
samuel02 has joined #ruby
zigomir has quit [Quit: Leaving]
samuel02 has quit [Remote host closed the connection]
Synthead has joined #ruby
felipe has joined #ruby
osvico has joined #ruby
v1n has quit [Ping timeout: 248 seconds]
gyre007 has quit [Remote host closed the connection]
dillwithers has quit [Remote host closed the connection]
atno has quit [Read error: Connection reset by peer]
BlakeRG has quit [Quit: BlakeRG]
thepumpkin has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
cofin has quit [Quit: cofin]
londerson has quit [Quit: londerson]
Ry0_ has quit [Remote host closed the connection]
arya_ has joined #ruby
enebo has quit [Quit: enebo]
Zai00 has quit [Quit: Zai00]
threesome has quit [Ping timeout: 256 seconds]
jjbohn has quit [Quit: Leaving...]
arya__ has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
arya_ has quit [Ping timeout: 248 seconds]
smlgs has joined #ruby
MrThePlague has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
<dvarrui> Anyone knows how to do dns questions using any library or class?
rupee has joined #ruby
zets has quit [Ping timeout: 276 seconds]
julweber_ has joined #ruby
julweber has quit [Ping timeout: 264 seconds]
bionoid has joined #ruby
redgirl has joined #ruby
<pontiki> queries?
workmad3 has quit [Ping timeout: 256 seconds]
franks2_ has joined #ruby
<franks2_> Hi, is there any offical PPA for the latest stable of ruby?
JZTech101 has joined #ruby
<pontiki> there's net-dns gem
monkegjinni has quit [Remote host closed the connection]
mary5030_ has quit [Ping timeout: 268 seconds]
<franks2_> pontiki: was that for me?
<pontiki> that was to dvarrui
<pontiki> sorry
<pontiki> just came in on another question
AlbireoX has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<alainus> is there a way I can do: if !A then .... do this; and this; and this; DO THIS ALWAYS independently of whether A or not A; and this; end
<pontiki> of course
<terrellt> alainus: ...Put it after the condition?
<alainus> there's a specific order to the commands... I'll have to split the condition in two
<pontiki> unless A ; this0; this1; this2; this3 ; end; this4; this5
baroquebobcat has quit [Quit: baroquebobcat]
finges has quit [Quit: WeeChat 0.4.1]
<terrellt> alainus: Ah. Then yes, you will.
brianpWins has joined #ruby
<alainus> thanks
arya_ has joined #ruby
Hobogrammer_ has joined #ruby
conner has joined #ruby
<conner> is there a way to include regex snipets into a regex via the use of variables?
Hobogrammer has quit [Ping timeout: 256 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
danslo has joined #ruby
<pontiki> yes, interpolation works there as well
jrendell has quit [Ping timeout: 248 seconds]
<onewheelskyward> /#{yes}/
<pontiki> :)
<conner> doh
<conner> I knew it had to be something simple
redgirl has quit [Quit: This computer has gone to sleep]
<pontiki> onewheelskyward++
<conner> onewheelskyward++ :)
<conner> is that just for strings or does it work with other regex objects?
jrendell has joined #ruby
syamajala has joined #ruby
<heftig> >> /a(#{%w(foo bar baz).join "|"})b#{Regexp.union /f??/, /b??/}c/
<eval-in> heftig => /a(foo|bar|baz)b(?-mix:(?-mix:f??)|(?-mix:b??))c/ (https://eval.in/37115)
<conner> ya, I just irb'd it :)
<conner> thank you, thank you :)
mansi has quit [Remote host closed the connection]
<pontiki> how to make ruby look like perl :)
<onewheelskyward> Rerl, or Peruby?
Kruppe has joined #ruby
<pontiki> Shtaaapp
dvarrui has quit [Quit: Ex-Chat]
tatsuya_o has quit [Remote host closed the connection]
redgirl has joined #ruby
jrendell has quit [Quit: jrendell]
<conner> onewheelskyward, perl6 :)
jrendell has joined #ruby
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kpshek has quit []
zets has joined #ruby
gstamp has joined #ruby
jbueza has quit [Quit: Leaving.]
cantonic has quit [Quit: cantonic]
bigoldrock has quit [Ping timeout: 264 seconds]
anonymus_ has quit [Remote host closed the connection]
Vivekananda has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
anonymuse has joined #ruby
jcoglan has joined #ruby
<zeade> Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. —Jamie Zawinski, 1997
TheNotary has quit [Ping timeout: 268 seconds]
dodosan has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jjbohn has joined #ruby
bionoid has quit [Remote host closed the connection]
ColKurtz has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
robert_ has quit [Quit: Connection reset by traffic clause.]
asobrasil has joined #ruby
anonymuse has quit [Ping timeout: 248 seconds]
matled- has joined #ruby
musl_ has quit [Quit: WeeChat 0.4.1]
dodosan has joined #ruby
franks2_ is now known as franks2
franks2 has quit [Changing host]
franks2 has joined #ruby
matled has quit [Ping timeout: 246 seconds]
matled- is now known as matled
hotrine has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
ephemerian has left #ruby [#ruby]
<popl> zeade: I wonder where I've seen that before…
vlad_starkov has quit [Ping timeout: 256 seconds]
Patteh has quit [Ping timeout: 264 seconds]
Patteh has joined #ruby
Bry8Star{T2 has joined #ruby
cih has joined #ruby
cburyta has quit [Remote host closed the connection]
tacos1de has quit [Ping timeout: 240 seconds]
axl_ has quit [Quit: axl_]
tacos1de has joined #ruby
rgreen_ has joined #ruby
cantonic has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
<rgreen_> hey guys i have a question: if i have an array of strings called
Vivekananda has joined #ruby
<rgreen_> "strings"
<rgreen_> and then in each string i need to replace a certain substring with another, depending on the content of the substring
geggam has quit [Remote host closed the connection]
[[thufir]] has joined #ruby
hadees has quit [Quit: hadees]
<rgreen_> i am doing something like strings.each.gsub(/substring that i want to replace, id=1234'/, matching replacement to id=1234 in another array)
[[thufir]] has quit [Client Quit]
<alainus> how do I set a timer at the beginning of a script and then output the time it took to complete?
<rgreen_> i think you use benchmark
<Kelet> alainus, Set a variable to Time.now before and after the operation
<Kelet> then subtract them
TheNotary has joined #ruby
<alainus> Kelet, great, thanks
<rgreen_> Kelet did you catch my quesstion?
<Kelet> alainus, Time.now.to_f will give you greater accuracy
<rgreen_> if i have an array of strings called "strings" and then in each string i need to replace a certain substring with another, depending on the content of the substring i am doing something like strings.each.gsub(/substring that i want to replace, id=1234'/, matching replacement to id=1234 in another array)
<heftig> strings.map! { |s| s.sub(/id=(\d+)/) { replacements[Integer($1)] }
<alainus> Kelet, the substraction will always be in seconds right?
<rgreen_> what does the ! add?
<heftig> do it in-place
<heftig> oh, and I forgot a }
<Kelet> alainus, Without to_f, it will be in seconds. With to_f, it will not be truncated to seconds and thus will be more accurate (depends on your system, but at least milliseconds)
bradhe has quit [Remote host closed the connection]
<rgreen_> ok and also what does Integer($1) come from? how does that get the value of id?
<heftig> $1 is the first group in the regexp, (\d+)
redgirl has quit [Quit: This computer has gone to sleep]
bradhe has joined #ruby
mikeg has quit [Remote host closed the connection]
<heftig> Integer converts the string to an integer
<Kelet> alainus, Alternatively look into absolute_time or benchmark gems
<heftig> (and causes an exception if it's not a valid representation of an integer)
<terrellt> Benchmark's standard.
axl_ has joined #ruby
predator217 has joined #ruby
marcdel has joined #ruby
<rgreen_> hmm ok thanks a lot! im gonna go try it out
<r0bgleeson> and Integer() raises if the argument can't be coerced into an integer
BSaboia has joined #ruby
<r0bgleeson> i.e: nil.to_i / Integer(nil)
<alainus> >> a = Time.now.to_f; sleep(3); b = Time.now.to_f; p b-a
<eval-in> alainus => (https://eval.in/37116)
<alainus> oops
syamajala has quit [Ping timeout: 276 seconds]
<alainus> it looks like seconds on irb though
arya__ has joined #ruby
<Kelet> alainus, That gives me 3.0001721382141113
pootler has quit [Ping timeout: 264 seconds]
bionoid has joined #ruby
<alainus> yep same here
<rgreen_> whats the difference between gsub and sub?
chriskk has quit [Read error: Connection reset by peer]
<Kelet> gsub is global sub, meaning substitute all occurances IIRC
predator117 has quit [Ping timeout: 264 seconds]
bradhe has quit [Ping timeout: 240 seconds]
<Kelet> sub is the first occurance
arya_ has quit [Ping timeout: 248 seconds]
<Kelet> s/occurance/occurence
<zeade> ([1-9]\d*) would match a valid int (no leading 0)
hotrine has quit [Ping timeout: 246 seconds]
<Kelet> and gsub!/sub! are the in-place versions (that's generally what ! means)
fuhgeddaboudit has joined #ruby
pootler has joined #ruby
cj3kim has quit [Remote host closed the connection]
strax has quit [Quit: Connection closed for inactivity]
Synthead has quit [Quit: p33 ba115]
fuhgeddaboudit_ has joined #ruby
fuhgeddaboudit_ has quit [Read error: Connection reset by peer]
Xeago_ has quit [Remote host closed the connection]
matematikaadit has quit [Ping timeout: 240 seconds]
<zeade> er (0|[1-9]\d*)
<zeade> stupid regexes
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Es0teric has joined #ruby
chriskk has joined #ruby
bradhe has joined #ruby
fuhgeddaboudit has quit [Read error: Operation timed out]
cih has quit [Remote host closed the connection]
arubin has joined #ruby
redgirl has joined #ruby
musl has joined #ruby
statarb3 has quit [Remote host closed the connection]
jcoglan has quit [Ping timeout: 246 seconds]
v1n has joined #ruby
bigkevmcd has quit [Read error: Operation timed out]
havenwood has quit [Remote host closed the connection]
alexspeller has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
bigkevmcd has joined #ruby
supki has quit [Ping timeout: 240 seconds]
supki has joined #ruby
saarinen has quit [Quit: saarinen]
alexspeller has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
verto has joined #ruby
KRF has quit [Read error: Operation timed out]
drizz has quit [Read error: Operation timed out]
redgirl has quit [Quit: This computer has gone to sleep]
adrian1 has quit [Read error: Operation timed out]
drizz has joined #ruby
KRF has joined #ruby
cjsarette has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
ayonix has joined #ruby
jonjo has quit [Ping timeout: 276 seconds]
axl_ has quit [Quit: axl_]
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
jonjo has joined #ruby
<rgreen_> i have been trying to do strings.map! { |s| s.sub(/id=(\d+)/) { replacement_url.id.index[Integer($1)]}} but it keeps throwing an exception undefined method `[]' for #<Enumerator:0x0000000146fa68> (NoMethodError)
gstamp has joined #ruby
<alainus> is there a way to make: case a; when "1"; when "2"; always ; else ; end
alvaro_o has quit [Quit: Ex-Chat]
<alainus> (an "always" statement in the case select)
danbeck has quit [Quit: danbeck]
syamajala has joined #ruby
<onewheelskyward> else
end_guy has quit [Remote host closed the connection]
alvaro_o has joined #ruby
<alainus> but that won't evaluate if one of the selected options is true
<onewheelskyward> If you want it to always run, put it after your case block.
jrendell has quit [Quit: jrendell]
<onewheelskyward> Or before.
<onewheelskyward> Or really anywhere else. :)
alexspeller has quit [Ping timeout: 240 seconds]
<rgreen_> i have been trying to do strings.map! { |s| s.sub(/id=(\d+)/) { replacement_url.id.index[Integer($1)]}} but it keeps throwing an exception undefined method `[]' for #<Enumerator:0x0000000146fa68> (NoMethodError)
cjsarette has quit [Ping timeout: 264 seconds]
<rgreen_> oh nvm sorry
canton7 has quit [Ping timeout: 240 seconds]
nopper has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
Inside has joined #ruby
Inside has quit [Changing host]
Inside has joined #ruby
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
alexspeller has joined #ruby
end_guy has joined #ruby
dayepa1 has quit [Quit: dayepa1]
nopper has joined #ruby
dayepa has joined #ruby
tylersmith has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]