apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
sepp2k has quit [Remote host closed the connection]
dustint has quit [Ping timeout: 246 seconds]
Smol has quit [Ping timeout: 256 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
mlpinit has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
Smol has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
tbuehlmann has quit [Remote host closed the connection]
maxmanders has joined #ruby-lang
emmdeeess has joined #ruby-lang
mlpinit has quit [Quit: mlpinit]
maxmanders has quit [Client Quit]
<charliesome> whitequark: lol http://eval.in/13827
dustint has joined #ruby-lang
MehLaptop has quit [Remote host closed the connection]
gregmoreno has quit [Ping timeout: 264 seconds]
giggsy has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
jperry2 has quit [Quit: jperry2]
Polish has joined #ruby-lang
torrieri has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
mineiro has quit [Read error: Connection reset by peer]
mineiro has joined #ruby-lang
Gaelan has joined #ruby-lang
giggsy has quit [Quit: Leaving]
lolzie has joined #ruby-lang
mistym_away has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
<emmdeeess> i'm looking for a way to take an array of hashes and format it as strings
<emmdeeess> the hash i have looks like this:
<emmdeeess> => [{:status=>"Completed", :qnt=>1}, {:status=>"In Progress", :qnt=>1}, {:status=>"Waiting on Client", :qnt=>1}]
<emmdeeess> can someone point me in the right direction?
dustint has quit [Ping timeout: 264 seconds]
kain has quit [Quit: exit]
MehLaptop has joined #ruby-lang
rking has joined #ruby-lang
<emmdeeess> never mind, i think i got it - does this look acceptable?
<emmdeeess> status_array = techsvcsticketsbystatus.map(&:values).flatten
<emmdeeess> tickets_formatted = status_array.each_slice(2).map{|s| s.join(' - ') }.join('<br/>')
<ykk> i'm just about done with my web scraping script but i'm just a bit confused about the paramters for .save(filename) where do I put the path?
<ykk> is it just .save(filename, "#{path_var}")
glebm has quit [Ping timeout: 264 seconds]
<ykk> omg i'm so dumb
fraggle has quit [Quit: Computer has gone to sleep.]
hahuang65 has quit [Quit: Computer has gone to sleep.]
glebm has joined #ruby-lang
jfelchner1 has joined #ruby-lang
jfelchner has quit [Ping timeout: 252 seconds]
chessguy has quit [Remote host closed the connection]
maxmanders has joined #ruby-lang
maxmande_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
tcopp has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby-lang
maxmanders has quit [Ping timeout: 248 seconds]
bzalasky has joined #ruby-lang
Drew has joined #ruby-lang
Drew is now known as Guest23184
gregmoreno has joined #ruby-lang
havenwood has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
idkazuma has joined #ruby-lang
Gues_____ has joined #ruby-lang
gregmoreno has quit [Ping timeout: 252 seconds]
maxmande_ has quit [Ping timeout: 248 seconds]
Domon has joined #ruby-lang
mitchty has joined #ruby-lang
mitchty is now known as Guest99943
chessguy has joined #ruby-lang
Guest99943 is now known as mitchty_
Guest23184 has left #ruby-lang [#ruby-lang]
lolzie has quit [Quit: Page closed]
kurko_ has quit [Quit: Computer has gone to sleep.]
soknee has joined #ruby-lang
symm- has quit [Quit: Leaving...]
symm- has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
mitchty_ has quit [Quit: znc broke]
Guest13330 has quit [Quit: Leaving.]
joast has joined #ruby-lang
postmodern has quit [Quit: Leaving]
bzalasky has quit [Remote host closed the connection]
halorgium has joined #ruby-lang
jaimef is now known as fsbot
<halorgium> anyone here know of any change between 1.9.3-p392 and 2.0.0-p0 which would change the behaviour of Fibers when shutting down the VM?
<halorgium> for example a Fiber which is "sleeping" or "waiting for IO"
fsbot is now known as jaimef
rwk1 has quit [Read error: Connection timed out]
torrieri has quit [Quit: Linkinus - http://linkinus.com]
ryanf_ is now known as ryanf
wmoxam has quit [Ping timeout: 264 seconds]
theduffman1 has left #ruby-lang [#ruby-lang]
rwk1 has joined #ruby-lang
Polish has quit [Remote host closed the connection]
<ykk> finally finished this program! my first whole web scrapper did on my own
Polish has joined #ruby-lang
mitchty has joined #ruby-lang
<zzak> zenspider: i got to try out MiniTest::Spec::DSL
mitchty has quit [Client Quit]
<zzak> zenspider: used it with RDoc::TestCase
<zzak> its awesome
mitchty has joined #ruby-lang
io_syl has quit [Ping timeout: 248 seconds]
hramrach has quit [Ping timeout: 276 seconds]
mitchty has quit [Client Quit]
mitchty has joined #ruby-lang
havenwood has joined #ruby-lang
chrismar035 has joined #ruby-lang
chrismar035 has quit [Client Quit]
hramrach has joined #ruby-lang
Polish has quit [Remote host closed the connection]
rwk1 has quit [Read error: Connection timed out]
MehLaptop has quit [Remote host closed the connection]
xxaM has joined #ruby-lang
rwk1 has joined #ruby-lang
mitchty has quit [Quit: znc broke]
datalus has joined #ruby-lang
mitchty has joined #ruby-lang
datalus has left #ruby-lang [#ruby-lang]
<zenspider> zzak: awesome!
ruby-lang442 has joined #ruby-lang
ruby-lang442 has quit [Client Quit]
tylersmith has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
brianpWins has joined #ruby-lang
davidbalber|away is now known as davidbalbert
kurko_ has joined #ruby-lang
rwk1 has quit [Read error: Connection timed out]
45PAAAP98 has joined #ruby-lang
45PAAAP98 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
idkazuma has joined #ruby-lang
idkazuma has quit [Read error: Connection reset by peer]
tcopp has quit [Ping timeout: 245 seconds]
idkazuma has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Averna has joined #ruby-lang
havenwood has joined #ruby-lang
sush24 has joined #ruby-lang
symm- has quit [Quit: Leaving...]
srbaker has quit [Quit: Computer has gone to sleep.]
macmartine has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Ping timeout: 245 seconds]
Gues_____ has quit [Quit: Textual IRC Client: www.textualapp.com]
mineiro has quit [Read error: Connection reset by peer]
mineiro has joined #ruby-lang
glebm has quit [Ping timeout: 264 seconds]
Polish has joined #ruby-lang
Gaelan has quit [Remote host closed the connection]
Gaelan has joined #ruby-lang
baba has joined #ruby-lang
fire has quit [Ping timeout: 245 seconds]
chendo_ has joined #ruby-lang
glebm has joined #ruby-lang
tcopp has joined #ruby-lang
Polish has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
Gaelan has quit [Ping timeout: 264 seconds]
DEac- has quit [Read error: No route to host]
DEac- has joined #ruby-lang
feliperosa has joined #ruby-lang
macmartine has joined #ruby-lang
feliperosa has quit [Quit: Leaving]
Polish has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
Paradox has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
kurko_ has quit [Quit: Computer has gone to sleep.]
kurko_ has joined #ruby-lang
punchfac_ has quit [Remote host closed the connection]
chris2 has quit [Ping timeout: 240 seconds]
Gaelan has joined #ruby-lang
nXqd has joined #ruby-lang
chris2 has joined #ruby-lang
baba has quit [Quit: WeeChat 0.4.0]
nXqd has quit [Ping timeout: 252 seconds]
brianpWins has quit [Quit: brianpWins]
pygmael has joined #ruby-lang
mihar_ has left #ruby-lang [#ruby-lang]
bzalasky has joined #ruby-lang
ryanf has quit [Quit: leaving]
gregmoreno has joined #ruby-lang
fire has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
sush24 has joined #ruby-lang
gregmoreno has quit [Ping timeout: 264 seconds]
Domon has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 256 seconds]
woollyams has joined #ruby-lang
io_syl has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
kurko_ has quit [Quit: Computer has gone to sleep.]
chessguy has quit [Remote host closed the connection]
Gaelan has quit [Remote host closed the connection]
chessguy has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
breakingthings has quit []
ryanf has joined #ruby-lang
Bwild has quit [Ping timeout: 260 seconds]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
davidbalbert is now known as davidbalber|away
mistym has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
chessguy has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
swav has quit [Remote host closed the connection]
ruby-lang242 has joined #ruby-lang
spacesuit has joined #ruby-lang
swav has joined #ruby-lang
spacesuit has quit [Client Quit]
swav has quit [Ping timeout: 252 seconds]
ruby-lang242 has quit [Quit: Page closed]
Johnny has joined #ruby-lang
Johnny is now known as Guest51644
Guest51644 has left #ruby-lang [#ruby-lang]
JohnnyRockets has joined #ruby-lang
face has quit [Read error: Connection reset by peer]
nXqd has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Domon has joined #ruby-lang
brianpWins has joined #ruby-lang
robbyoconnor has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby-lang
JohnnyRockets has quit [Quit: Page closed]
face has joined #ruby-lang
Asher2 has joined #ruby-lang
Asher has quit [Read error: Connection reset by peer]
Asher2 has quit [Client Quit]
dhruvasagar has joined #ruby-lang
lsegal has joined #ruby-lang
Asher has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
Asher has quit [Client Quit]
rue_XIV has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 245 seconds]
r0bby has joined #ruby-lang
rue has joined #ruby-lang
Asher has joined #ruby-lang
dhruvasagar has joined #ruby-lang
maxmanders has joined #ruby-lang
maxmanders has quit [Ping timeout: 246 seconds]
maxmanders has joined #ruby-lang
r0bby has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Gaelan has joined #ruby-lang
kgrz has joined #ruby-lang
maxmande_ has joined #ruby-lang
maxmanders has quit [Ping timeout: 245 seconds]
Gaelan has quit [Ping timeout: 248 seconds]
maxmanders has joined #ruby-lang
kgrz has quit [Ping timeout: 264 seconds]
maxmande_ has quit [Ping timeout: 245 seconds]
kgrz has joined #ruby-lang
Gaelan has joined #ruby-lang
maxmanders has quit [Ping timeout: 248 seconds]
Gaelan has quit [Ping timeout: 240 seconds]
mjio has quit []
brianpWins has quit [Quit: brianpWins]
Nuru has joined #ruby-lang
<Nuru> I'm trying to understand how RSpec works. (It's a little scary)
<Nuru> In the RSpec book it says when Ruby evaluates "equals(5)" it returns a new instance of the Equal class initialized with the value 5.
Polish has quit [Remote host closed the connection]
ruby-lang844 has joined #ruby-lang
soknee has quit [Quit: Leaving.]
<Nuru> How does RSpec get "equals(5)" to be the same as Equal.new(5)?
<Nuru> Does it modify Kernel or main or something?
<Mon_Ouie> def equals(x); Equal.new(x); end
<Mon_Ouie> And then it just evaluates your blocks using instance_eval on some magic object that has those methods
<Nuru> I've been doing Java for too long. :-) It didn't occur to me you could write functions in the global scope.
<Nuru> Doh!
<Nuru> Ok, so next question, how does RSpec get the clauses converted to Strings to log failures?
<Nuru> If I write
dhruvasagar has quit [Ping timeout: 248 seconds]
<Nuru> expect { foo } . to change { bar }.by 1
fire has quit [Ping timeout: 245 seconds]
<Nuru> and that fails, I get that whole line in the report
<Nuru> How is it doing that?
ykk has quit [Remote host closed the connection]
ruby-lang844 has left #ruby-lang [#ruby-lang]
dhruvasagar has joined #ruby-lang
<Mon_Ouie> It's building an object that builds the message
<Nuru> But how does the object get the contents of a block converted into a string?
<Mon_Ouie> It does mention foo in the error message?
<Mon_Ouie> If so, I'm guessing some magic using the backtrace, opening your source file, and trying to parse the line that contains this call
<Nuru> Yep. For example:
<Nuru> Failure/Error: expect { click('.tear .tearit-button .submit'); sleep 1; }.to case
<Nuru> It's got semicolons and everything.
<Nuru> All I can think is it throws an exception, gets a file name and line number out of it, reads that file and prints that line.
<Mon_Ouie> Yes, it can also get the line-number from the block object directly
<Mon_Ouie> proc.source_location
woollyams has quit [Quit: Computer has gone to sleep.]
<Nuru> Is proc standard Ruby?
<Mon_Ouie> proc in this context is just a name I gave to the Proc object
<Mon_Ouie> As for the Proc class and the proc methods, they are part of Ruby (and a very important one at that, at least for the former)
tcopp has quit [Ping timeout: 256 seconds]
<Nuru> Wow, I have a lot to learn....
fire has joined #ruby-lang
<Nuru> Is it considered bad from for the 'expect' clause of an RSpec to be a multi-line block?
nXqd has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 256 seconds]
ritek has quit [Quit: Bye]
ryez has joined #ruby-lang
ryez has quit [Client Quit]
ryanf has quit [Quit: leaving]
ryez has joined #ruby-lang
nXqd has joined #ruby-lang
Weems2 is now known as Weems
Weems has quit [Changing host]
Weems has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 264 seconds]
kgrz has quit [Quit: Computer has gone to sleep.]
Nuru has quit [Quit: Bye bye]
mineiro has quit [Read error: Connection reset by peer]
mineiro has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
kgrz has joined #ruby-lang
tonni has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
Bwild has joined #ruby-lang
dhruvasagar has joined #ruby-lang
skade has joined #ruby-lang
punchfacechamp has joined #ruby-lang
punchfacechamp has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
charliesome_ has joined #ruby-lang
jfelchner1 has quit [Ping timeout: 264 seconds]
agarie has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
solars has joined #ruby-lang
benlovell has joined #ruby-lang
gregmoreno has joined #ruby-lang
gregmoreno has quit [Ping timeout: 252 seconds]
amerine has quit [Quit: Computer has gone to sleep.]
tbuehlmann has joined #ruby-lang
<whitequark> charliesome_: YES
charliesome has quit [Disconnected by services]
charliesome_ is now known as charliesome
<charliesome> whitequark: howdy
<charliesome> what's yes
francisfish has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
dr_bob has joined #ruby-lang
gnufied has joined #ruby-lang
<charliesome> whitequark: btw do you know much about networking?
swav has joined #ruby-lang
<gnufied> morning
sush24 has quit [Quit: This computer has gone to sleep]
<whitequark> charliesome: this yes: http://pastie.org/7134322
<whitequark> (networking) kinda
<charliesome> yeah lol
<charliesome> basically i moved my (arch) server from initscripts to systemd
<charliesome> and networking borked
<whitequark> >systemd
<whitequark> not going to help you.
<charliesome> its the future of arch linux
<charliesome> it annoys me
<whitequark> use debian
<charliesome> but whatever gotta keep with the times
<charliesome> fuck debian
jfelchner1 has joined #ruby-lang
<whitequark> well, fuck systemd. I won't be able to help you *even if I wanted to*.
<charliesome> ok fair enough
<whitequark> but you're indirectly supporting systemd, so no.
<charliesome> i'd use debian if i enjoyed compiling everything myself ;)
* whitequark shrugs
* whitequark uses a wheezy+sid setup
<whitequark> and a custom-built kernel because xen but that's unrelated
sush24 has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
alessio_rocco has joined #ruby-lang
<whitequark> >Systemd 199 Has Its Own D-Bus Client Library
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Wardrop has joined #ruby-lang
skade has joined #ruby-lang
Axsuul has quit [Ping timeout: 245 seconds]
rwk1 has quit [Read error: Connection timed out]
rwk1 has joined #ruby-lang
face has quit [Ping timeout: 245 seconds]
Averna has quit [Quit: Leaving.]
face has joined #ruby-lang
kain has joined #ruby-lang
kain has quit [Remote host closed the connection]
CoverSlide has quit [Ping timeout: 264 seconds]
bzalasky has quit [Remote host closed the connection]
CoverSlide has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
sush24 has quit [Quit: This computer has gone to sleep]
rwk1 has quit [Read error: Connection timed out]
rwk1 has joined #ruby-lang
maxmanders has joined #ruby-lang
maxmande_ has joined #ruby-lang
ruby-lang783 has joined #ruby-lang
maxmanders has quit [Ping timeout: 264 seconds]
adambeynon has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
ruby-lang783 has quit [Ping timeout: 245 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby-lang
reactormonk has quit [Ping timeout: 272 seconds]
idkazuma has joined #ruby-lang
runeb has joined #ruby-lang
glebm has quit [Ping timeout: 264 seconds]
glebm has joined #ruby-lang
mixandgo has joined #ruby-lang
swav has quit [Remote host closed the connection]
reactormonk has joined #ruby-lang
<yorickpeterse> morning
<yorickpeterse> zenspider: because one can also define return values and in the future possibly other bits of information. I also fail to see how tossing it all into arguments would be any better
glebm has quit [Ping timeout: 246 seconds]
GarethAdams has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
mixandgo has quit [Ping timeout: 245 seconds]
runeb has quit [Remote host closed the connection]
jasiek has quit [Ping timeout: 256 seconds]
rolfb has joined #ruby-lang
apeiros_ has joined #ruby-lang
burgestrand has joined #ruby-lang
burgestrand has quit [Client Quit]
burgestrand has joined #ruby-lang
mixandgo has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
glebm has joined #ruby-lang
dhruvasagar has joined #ruby-lang
runeb has joined #ruby-lang
jgoss has quit [Remote host closed the connection]
<yorickpeterse> wooo, rbx patch got merged
skade has joined #ruby-lang
swav has joined #ruby-lang
xxaM has quit [Quit: ZzZz]
swav_ has joined #ruby-lang
swav has quit [Ping timeout: 248 seconds]
ryez has quit [Ping timeout: 245 seconds]
chendo_ has joined #ruby-lang
Domon has quit [Remote host closed the connection]
rwk1 has quit [Remote host closed the connection]
Domon has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
mineiro has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
swav_ has quit [Ping timeout: 252 seconds]
swav has joined #ruby-lang
tonni_ has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby-lang
rwk1 has joined #ruby-lang
Domon has quit [Remote host closed the connection]
Gruu_ has joined #ruby-lang
woollyams has joined #ruby-lang
<andrewvos> Why are gem installs from rubygems.org so slow?
<andrewvos> I mean, right now.
Domon has joined #ruby-lang
<andrewvos> Not in general.
rwk1 has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 240 seconds]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
woollyams has joined #ruby-lang
<kith> can we have .lrstrip please? :)
<GarethAdams> kith: what would that do?
<kith> .lstrip.rstrip
<GarethAdams> what's wrong with .strip ?
<kith> damn
<kith> overlooked it in the docs
Bwild has quit [Ping timeout: 240 seconds]
francisfish has quit [Read error: Connection timed out]
Domon has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
<apeiros_> lawl
<andrewvos> haha
shirokuro11 has joined #ruby-lang
maxmande_ has quit [Ping timeout: 245 seconds]
maxmande_ has joined #ruby-lang
chendo_ has joined #ruby-lang
Gruu_ has quit [Quit: Gruu_]
ruby-lang592 has joined #ruby-lang
ruby-lang592 has quit [Client Quit]
rwk1 has joined #ruby-lang
soknee has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
voker57 has joined #ruby-lang
saLOUt has joined #ruby-lang
thone has joined #ruby-lang
rwk1 has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
wmoxam has joined #ruby-lang
thone_ has quit [Ping timeout: 240 seconds]
rwk1 has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
baba has joined #ruby-lang
fire has quit [Ping timeout: 245 seconds]
ritek has joined #ruby-lang
refd has joined #ruby-lang
refd has quit [Max SendQ exceeded]
dustint has joined #ruby-lang
jtperreault has quit [Quit: WeeChat 0.3.7]
<injekt> :D
mineiro has joined #ruby-lang
jtperreault has joined #ruby-lang
<tbuehlmann> hehe
jxpx777 has quit [Quit: Leaving...]
tonni_ has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
ykk has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_st__ has joined #ruby-lang
vlad_st__ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 246 seconds]
<cored> morning
<cored> apeiros_: tried a lot of different regex's could not find any
<bougyman> cored: what's your input string, and what is your expected result?
<bougyman> i never did figure that out yesterday before I had to get on a plane
vlad_sta_ has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
maxmande_ has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Read error: Connection reset by peer]
srbaker has joined #ruby-lang
ykk has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
maxmanders has joined #ruby-lang
carloslopes has joined #ruby-lang
saLOUt has quit [Quit: Konversation terminated!]
<cored> bougyman: wait
<cored> ["Love [i][s] good", "Chocolate [i][s] sweet", "Snow [i][s] cold", "Good [i][s] not evil", "[I] love dog[s]"]
<cored> that's the output
<cored> ["Love is good", "Chocolate is sweet", "Snow is cold", "Good is not evil", "I love dogs"]
<cored> that's the input and I'm sending "is" to match it out
sush24 has joined #ruby-lang
<cored> so as you can see if I match "is" together in any part of the string and mark it "that's the sustitution" but not only S and not only I as you can see in Snow is cold
<cored> the first S is not marked
<manveru> .map{|s| s.gsub(/[#{Regexp.escape('is')}]/i, '[\&]') }
<manveru> hm
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<cored> manveru: nop
<manveru> yeah, i made that before your last sentence
<cored> that will catch also a lonely S without an "I" before it
<cored> I have that regex currently
toretore has joined #ruby-lang
<andrewvos> That is insane
<manveru> cored: so i has to come first?
snafoo has joined #ruby-lang
snafoo has joined #ruby-lang
snafoo has quit [Changing host]
<cored> yes, I was trying to learn about strings and regex and decided to implement some sort of fuzzy search
<cored> but it's seems that problem can't be solve with regex and gsub because of the match part
<manveru> well, you can match /i.*s/i
<GarethAdams> cored: when you say "I pass 'is'" is this a method that you're passing a two-character start/end string to?
<cored> if I match the entire thing the replacement will also change 'S' alone and 'I' alone, I want to match I if the next character is an 'S' even when there are characters in between
<cored> GarethAdams: yeap
<cored> manveru: in my method I will have to do something like pattern.spli(//).join(".*")
<cored> and use that as the pattern
<manveru> yeah
<cored> manveru: but that also doesn't work because of the same effect as before
<cored> it will match 'S' alone without an 'I' in front
<cored> I tried it already
<manveru> it can't
<cored> hm
<manveru> /i.*s/i always has n i before the s
<GarethAdams> manveru++
<cored> manveru: you are right
<cored> but here the sustitution it made
<cored> [I][ ][l][o][v][e][ ][d][o][g][s]
<cored> so the problem is the block of the gsub
rolfb has quit [Quit: Leaving...]
<cored> word.gsub(/#{pattern.split(//).join(".*")}/i) { |word| word.gsub(/./, &block) }¬
<cored> /./ will catch anything
Wardrop has quit [Quit: Wardrop]
<cored> and is matching the entire string because the match starts in I and finish in s
<GarethAdams> that's a bit ugly
<bougyman> gsub(/(i)(.*)(s)/i, '[\1]\2[\3]') ?
<manveru> that gets a bit crazy for more chars
<bougyman> sure, but it's a crazy feature
<manveru> can you have higher than \9 ?
<GarethAdams> sounds like it's always two chars?
wmoxam has quit [Ping timeout: 245 seconds]
<cored> bougyman: there's a block that specified the output format in which characters I will sorund the match
<bougyman> manveru: sure, name capture
<cored> GarethAdams: yes, but I'm making it green first, later the refactor
<bougyman> then it gets really crazy
<manveru> lol
<cored> GarethAdams: nop, is not
<GarethAdams> sounds like now you have two problems
<cored> GarethAdams: I mean not just two chars
<cored> maybe you guys can follow if you see the spec
<cored> ;-)
<cored> wait
benlovell has quit [Quit: Computer has gone to sleep.]
runeb has quit [Read error: Connection reset by peer]
<manveru> [27] pry(main)> r = Regexp.escape('is'); a.map{|s| s.gsub(/(.*)(i)(.*)(s)(.*)/i){|s| p $~.captures.each_with_index.map{|c,i| i % 2 == 0 ? c : "[#{c}]" }.join}}
<manveru> there you go
<manveru> no need for the p, but anyway
<cored> let me try to understand that
kgrz has quit [Ping timeout: 264 seconds]
<manveru> now just join with '(.*)' and prefix/suffix with '(.*)'
<manveru> i.even? works too
emmdeeess has quit [Ping timeout: 276 seconds]
<cored> code for transforming the "(.*)#{pattern, pattern.split(//).each { |w| w.gsub(//, "(#{w})" }.join(".*")(.*)"
tonni_ has joined #ruby-lang
<cored> manveru: remember I have to transform the pattern first
tonni has quit [Read error: Connection reset by peer]
<cored> manveru: you mean a lonely char?
<cored> wait see my implementation
jxpx777 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
Wardrop has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
<manveru> ?
phoyce has joined #ruby-lang
benlovell has joined #ruby-lang
<cored> the gist
<cored> is the implementation I have right now
<cored> I thought you asked me if the 'i' alone passed
<cored> what is the $~ for ?
<manveru> [7] pry(main)> pattern = 'is'; r = pattern.each_char.map{|c| "(#{Regexp.escape(c)})" }.join('(.*)'); p r; a.map{|s| s.gsub(/(.*)#{r}(.*)/i){|s| $~.captures.map.with_index{|c,i| i.even? ? c : "[#{c}]" }.join}}
<matti> Hey manveru
<manveru> hoi matti
<manveru> sorry cored, hope that works for you since i gotta head out
<cored> manveru: testing it, thanks :-)
rwk1 has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 240 seconds]
phoyce has quit [Quit: Page closed]
yeltzooo6 has quit [K-Lined]
sush24 has joined #ruby-lang
emmdeeess has joined #ruby-lang
_carloslopes has joined #ruby-lang
yeltzooo has joined #ruby-lang
carloslopes has quit [Ping timeout: 248 seconds]
hramrach has quit [Remote host closed the connection]
chrismar035 has joined #ruby-lang
runeb has joined #ruby-lang
tcopp has joined #ruby-lang
breakingthings has joined #ruby-lang
rwk1 has joined #ruby-lang
baba has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
wmoxam has joined #ruby-lang
mineiro has quit [Read error: Connection reset by peer]
mineiro has joined #ruby-lang
hramrach has joined #ruby-lang
baba has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
ykk has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
sailias has joined #ruby-lang
bluepojo has quit [Remote host closed the connection]
bluepojo has joined #ruby-lang
jasiek has joined #ruby-lang
emmdeeess has quit []
ykk has quit [Remote host closed the connection]
ykk has joined #ruby-lang
bluepojo has quit [Ping timeout: 272 seconds]
soknee has quit [Quit: Leaving.]
tcopp has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby-lang
stevechiagozie has joined #ruby-lang
mistym has quit [Remote host closed the connection]
bluepojo has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
mistym has joined #ruby-lang
Gaelan has joined #ruby-lang
forrest has joined #ruby-lang
outoftime has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
maxmanders has quit [Quit: Textual IRC Client: www.textualapp.com]
scampbell has joined #ruby-lang
kristofferrr has joined #ruby-lang
maxmanders has joined #ruby-lang
soknee has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
maxmanders has quit [Quit: Computer has gone to sleep.]
glebm has joined #ruby-lang
jarib_ has left #ruby-lang [#ruby-lang]
jarib_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
gregmoreno has joined #ruby-lang
jarib_ has left #ruby-lang [#ruby-lang]
forrest has quit [Quit: Leaving]
soknee has quit [Quit: Leaving.]
mistym has quit [Remote host closed the connection]
gregmoreno has quit [Ping timeout: 245 seconds]
shirokuro11 has quit [Remote host closed the connection]
Gaelan has quit [Remote host closed the connection]
voker57 has quit [Remote host closed the connection]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
gnufied has quit [Quit: Leaving.]
wmoxam has joined #ruby-lang
davidbalber|away is now known as davidbalbert
sush24 has quit [Quit: This computer has gone to sleep]
Gaelan has joined #ruby-lang
stef_204 has joined #ruby-lang
soknee has joined #ruby-lang
soknee has quit [Client Quit]
bantic has joined #ruby-lang
Beans has joined #ruby-lang
Gaelan has quit [Ping timeout: 245 seconds]
Beans has quit [Client Quit]
toretore has quit [Quit: Leaving]
gnufied has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
maxmanders has joined #ruby-lang
maxmanders has quit [Client Quit]
maxmanders has joined #ruby-lang
maxmanders has quit [Client Quit]
maxmanders has joined #ruby-lang
sush24 has joined #ruby-lang
soknee has joined #ruby-lang
MartynKeigher has quit [Excess Flood]
MartynKeigher has joined #ruby-lang
runeb has quit [Read error: Connection reset by peer]
_carloslopes has quit [Remote host closed the connection]
runeb has joined #ruby-lang
kgrz has joined #ruby-lang
bzalasky has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
io_syl has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
io_syl has quit [Quit: Textual IRC Client: www.textualapp.com]
spuk_ has quit [Quit: Human beings were created by water to transport it uphill.]
face has quit [Ping timeout: 240 seconds]
io_syl has joined #ruby-lang
tonni_ has quit [Read error: Connection reset by peer]
quazimodo is now known as fire_butt
tonni has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
runeb has joined #ruby-lang
pygmael has quit [Quit: pygmael]
<injekt> knu: awesome job!
dr_bob has quit [Quit: Leaving.]
maxmanders has quit [Quit: Computer has gone to sleep.]
soypirate has joined #ruby-lang
carloslopes has joined #ruby-lang
dr_bob has joined #ruby-lang
gregmoreno has joined #ruby-lang
carloslopes has quit [Ping timeout: 240 seconds]
amerine has joined #ruby-lang
dr_bob has quit [Read error: Connection reset by peer]
burgestrand has quit [Quit: Leaving.]
jonahR has joined #ruby-lang
<rking> What's the state of the art of Ruby code coverage tools?
<andrewvos> rking: Test Driven Development
<rking> We're about to dive into this mondo idea at work; basically integrating code coverage into other tools, like having vim show the # of times a line is run, plus having git auto-stage whenever there's a passing test and also the new diff is covered.
nXqd has quit [Ping timeout: 240 seconds]
<andrewvos> Wow
<andrewvos> Sounds cool
<rking> andrewvos: Right, but that's only great when you're greenfielding. With legacy code you have to get dirtier.
flujan has joined #ruby-lang
<andrewvos> True :(
<injekt> durdy
<flujan> hello guys. I need to write a TCP Socket server that receive a connection on port 27000, send data to the connection, wait for a answer, send more data, read result and close connection. Do you recommend a gem or I must create it in plain ruby?
gnufied has quit [Quit: Leaving.]
<injekt> it's pretty easy to write something like that without the requirement of an external library
carloslopes has joined #ruby-lang
Gaelan has joined #ruby-lang
stardiviner has joined #ruby-lang
gnufied has joined #ruby-lang
sepp2k has quit [Ping timeout: 240 seconds]
<rking> andrewvos: We're already auto-staging on green bars. It's freaking correct.
stardiviner has left #ruby-lang [#ruby-lang]
<rking> Just basically: run_tests && git add . && git diff --cached
benlovell has quit [Quit: Computer has gone to sleep.]
<rking> 97/100 times it's exactly what we've wanted (staging is nice, because you can roll back to the staged version if the next refactoring doesn't go well, or you can commit it if you decide to do a new refactoring that would lead to a glommed-together commit)
Gaelan has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby-lang
<rking> It's just a nicety we're seeking to also require that that staged content have coverage.
nXqd has joined #ruby-lang
Uranio has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 272 seconds]
threeday1onk has left #ruby-lang [#ruby-lang]
threedaymonk has joined #ruby-lang
<andrewvos> flujan: Use eventmachine or something that uses eventmachine
<andrewvos> rking: That's cool
maxmanders has quit [Client Quit]
<rking> Mark Bates's cover_me looks promising (basically, it says "RCov was cool but this works for 1.9")
<rking> I'm not sure if there's another coverage gem that does other things in addition to working on >1.8, but that's a good start. =)
maxmanders has joined #ruby-lang
brianpWins has joined #ruby-lang
sepp2k has joined #ruby-lang
jxpx777 has quit [Quit: Leaving...]
jonahR has quit [Quit: jonahR]
srbaker has quit [Quit: Computer has gone to sleep.]
spuk has joined #ruby-lang
srbaker has joined #ruby-lang
bluepojo has quit [Remote host closed the connection]
stef_204 has quit [Quit: quitting]
bluepojo has joined #ruby-lang
<flujan> andrewvos: Yeap, I am trying to use event machine but AFAIK event machine receive_data, I send_data when the client sends more data EM calls receive_data again
nXqd_ has joined #ruby-lang
nXqd has quit [Ping timeout: 246 seconds]
dr_bob has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
solars has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
ruby-lang882 has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
bawigga has joined #ruby-lang
wmoxam has quit [Ping timeout: 252 seconds]
MaddinXx has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
alec_eiffel has joined #ruby-lang
tylersmith has joined #ruby-lang
jonahR has joined #ruby-lang
stef_204 has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
wmoxam has joined #ruby-lang
ruby-lang882 has quit [Ping timeout: 245 seconds]
XxBlakeFailxX has quit [Ping timeout: 245 seconds]
nkr has joined #ruby-lang
bawigga has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
ykk has quit [Remote host closed the connection]
mrsolo has joined #ruby-lang
_carloslopes has joined #ruby-lang
anonymuse has joined #ruby-lang
carloslopes has quit [Read error: Connection reset by peer]
<injekt> drbrain: ping
maxmanders has quit [Quit: Computer has gone to sleep.]
davidbalbert is now known as davidbalber|away
xcombelle has joined #ruby-lang
rolfb has joined #ruby-lang
maxmanders has joined #ruby-lang
breakingthings has quit []
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
snarfmason has joined #ruby-lang
retro|cz has joined #ruby-lang
snarfmason has quit [Client Quit]
snarfmason has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
snarfmason has quit [Client Quit]
snarfmason has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
musl has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
jfelchner1 has quit [Ping timeout: 240 seconds]
musl has quit [Remote host closed the connection]
musl has joined #ruby-lang
kain has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
ykk has joined #ruby-lang
snarfmason has quit [Client Quit]
snarfmason has joined #ruby-lang
maxmanders has joined #ruby-lang
ruby-lang513 has joined #ruby-lang
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
stef_204 has joined #ruby-lang
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
runeb has quit [Remote host closed the connection]
flujan has left #ruby-lang [#ruby-lang]
mineiro has quit [Read error: Connection reset by peer]
mineiro has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
snarfmason has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
stevechiagozie has joined #ruby-lang
dc5ala has joined #ruby-lang
swav has quit [Remote host closed the connection]
swav has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
Nisstyre-laptop has joined #ruby-lang
<drbrain> injekt: pong
ruby-lang109 has joined #ruby-lang
swav has quit [Remote host closed the connection]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<injekt> drbrain: just pinged you in a mech issue, trying to reproduce #296
<drbrain> ok
jvrmaia has joined #ruby-lang
soknee has quit [Quit: Leaving.]
dr_bob has left #ruby-lang [#ruby-lang]
dhruvasagar has joined #ruby-lang
<whitequark> what the hell, why would you ever want to write "a[] += b"
Gate_ has left #ruby-lang [#ruby-lang]
<whitequark> without any index, yes
<whitequark> >> class A; def method_missing(*args); p args; 0; end; end; A.new[] += 1
<lianj> bot was only here a week and is already missed
<whitequark> why is it missing
<whitequark> ?
<lianj> no idea
<lianj> maybe his dayjob is in #python
apeiros_ has joined #ruby-lang
lsegal has joined #ruby-lang
<injekt> drbrain: weird i had something similar, i'll check it out later thanks!
nignaztic has joined #ruby-lang
nignaztic has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
ruby-lang109 has quit [Ping timeout: 245 seconds]
sepp2k has quit [Quit: Leaving.]
alec_eiffel has quit [Ping timeout: 245 seconds]
davidbalber|away is now known as davidbalbert
Nisstyre-laptop has quit [Ping timeout: 272 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
jfelchner1 has joined #ruby-lang
havenwood has joined #ruby-lang
breakingthings has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
JohnBat26 has joined #ruby-lang
scampbell has quit [Quit: Leaving]
skade has quit [Ping timeout: 264 seconds]
bluepojo has quit [Ping timeout: 240 seconds]
soknee has joined #ruby-lang
Gaelan has joined #ruby-lang
r0bby has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 264 seconds]
crudson has joined #ruby-lang
dustint has quit [Remote host closed the connection]
ryanf has joined #ruby-lang
dustint has joined #ruby-lang
Uranio has quit [Quit: while you reading this, a kitty dies]
dhruvasagar has quit [Ping timeout: 252 seconds]
Gaelan has quit [Remote host closed the connection]
maxmanders has joined #ruby-lang
fragmachine has joined #ruby-lang
<fragmachine> I liked programming, then they hit me with VB
sepp2k has joined #ruby-lang
mistym_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
ruby-lang452 has joined #ruby-lang
_carloslopes has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
pygmael has joined #ruby-lang
TheNotary has joined #ruby-lang
rolfb has joined #ruby-lang
<yorickpeterse> did you drop the stack?
<yorickpeterse> *badum tsh(
maxmanders has quit [Quit: Computer has gone to sleep.]
MehLaptop has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
jfelchner1 has quit [Ping timeout: 240 seconds]
* whitequark didn't get that
swav has joined #ruby-lang
jvrmaia has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<fragmachine> I didn't either
<fragmachine> just sayin
Nisstyre-laptop has quit [Quit: Leaving]
<yorickpeterse> whatever
<yorickpeterse> it was funny in my head
benanne has joined #ruby-lang
<fragmachine> yorickpeterse, like stack pointers...
<fragmachine> are we in C?
<whitequark> fragmachine: yes because we don't have stack pointers in ruby</sarcasm>
r0bby_ has joined #ruby-lang
<fragmachine> I'm a novice, I never see them
ykk_ has joined #ruby-lang
chrismar035_ has joined #ruby-lang
<whitequark> meh, I was just referring to the fact that as long as your code executes on something relatively modern (1970+), you have a stack pointer, and use it, whether you want it or not.
chrismar035 has quit [Ping timeout: 246 seconds]
chrismar035_ is now known as chrismar035
davidbalbert is now known as davidbalber|away
<fragmachine> ok fun quiz: a stack pointer follows function calls?
ykk has quit [Ping timeout: 246 seconds]
r0bby has quit [Ping timeout: 246 seconds]
dustint has quit [Ping timeout: 246 seconds]
outoftime has quit [Ping timeout: 246 seconds]
<fragmachine> ok wrong forum
kurko_ has joined #ruby-lang
kurko_ has quit [Max SendQ exceeded]
mineiro has quit [Read error: Connection reset by peer]
mineiro has joined #ruby-lang
kurko_ has joined #ruby-lang
kurko_ has quit [Max SendQ exceeded]
mistym_ has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
kurko_ has quit [Max SendQ exceeded]
<yorickpeterse> fragmachine: No, it was a lame reference to "Dropping the bass"
outoftime has joined #ruby-lang
kurko_ has joined #ruby-lang
<fragmachine> Oh man, I didn't get that reference
mmaatthhe has joined #ruby-lang
ruby-lang452 has quit [Ping timeout: 245 seconds]
gregmoreno has quit [Read error: Connection reset by peer]
techlife has quit [Ping timeout: 245 seconds]
gregmore_ has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
megha has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
baba has quit [Ping timeout: 272 seconds]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
Nisstyre-laptop has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
JohnBat26 has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
kgrz has quit [Quit: Computer has gone to sleep.]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
dustint has joined #ruby-lang
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby-lang
retro|cz has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
<cored> hello
<cored> I'm trying to create a generic output for a hash using printf
<fragmachine> you don't need printf
<cored> I did something like str_output = Array.new(hash.values.size) { "%s" }
<cored> and then printf(str_output, hash.values.join(",")
<cored> but it's always saying that there are few arguments
<fragmachine> what do you want to print?
<cored> each value of the hash
<fragmachine> There are man ways to do this, but you can do hash.each {|key, value| puts value}
<cored> ok
<cored> I think I found the problm
<cored> I'm only passing an argument as the error message says
<cored> and it's expecting 5
<fragmachine> post your code at pastie or something
<fragmachine> It's hard to tell what's wrong without the code...
kurko_ has quit [Quit: Computer has gone to sleep.]
<cored> the code is just that two lines
<cored> the one above
dc5ala has quit [Quit: Ex-Chat]
<cored> puts hash.values.join(", ")
<cored> that solve the issue
<fragmachine> yea you don't need printf in ruby much
<fragmachine> you're thinking in C
alessio_rocco has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
crudson has quit [Ping timeout: 240 seconds]
banaan has joined #ruby-lang
mineiro has quit [Remote host closed the connection]
rtl_ has left #ruby-lang [#ruby-lang]
rtl has joined #ruby-lang
io_syl has quit [Quit: Textual IRC Client: www.textualapp.com]
retro|cz has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
benanne has quit [Ping timeout: 245 seconds]
nkr has quit [Quit: Linkinus - http://linkinus.com]
Gaelan has joined #ruby-lang
r0bby_ is now known as robbyoconnor
io_syl has joined #ruby-lang
xcombelle has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 245 seconds]
Gaelan has quit [Ping timeout: 246 seconds]
musl has quit [Quit: WeeChat 0.3.9.2]
musl has joined #ruby-lang
pygmael has quit [Quit: pygmael]
alessio_rocco has joined #ruby-lang
dreinull_ has quit [Ping timeout: 245 seconds]
akahn has quit [Ping timeout: 256 seconds]
anildigital_work has quit [Ping timeout: 264 seconds]
randym has quit [Ping timeout: 264 seconds]
wycats__ has quit [Ping timeout: 248 seconds]
chessguy has joined #ruby-lang
pkondzior___ has quit [Ping timeout: 256 seconds]
Guest85414 has quit [Ping timeout: 256 seconds]
norplr has quit [Ping timeout: 272 seconds]
kgrz has joined #ruby-lang
XxBlakeFailxX has joined #ruby-lang
postmodern has joined #ruby-lang
kristofferrr has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
kurko_ has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jfelchner1 has joined #ruby-lang
davidbalbert is now known as davidbalber|away
apeiros_ has quit [Ping timeout: 252 seconds]
davidbalber|away is now known as davidbalbert
MehLaptop has quit [Remote host closed the connection]
jfelchner1 has quit [Ping timeout: 246 seconds]
rolfb has quit [Quit: Linkinus - http://linkinus.com]
forrest has joined #ruby-lang
nXqd_ has quit [Remote host closed the connection]
mistym is now known as mistym_away
soknee has quit [Quit: Leaving.]
tdy_ has quit [Ping timeout: 256 seconds]
jxpx777 has joined #ruby-lang
<Paradox> anyone played with messagepack? thoughts?
XxBlakeFailxX has quit [Ping timeout: 258 seconds]
rippa has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
jperry2 has joined #ruby-lang
pygmael has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
banaan has quit [Quit: kbai]
maxmanders has joined #ruby-lang
apeiros_ has joined #ruby-lang
soknee has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
agarie has joined #ruby-lang
maxmanders has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
ruby-lang841 has joined #ruby-lang
dustint has quit [Quit: Leaving]
<postmodern> Paradox, i have, very compact format, hard to visually inspect though
rippa has quit [Ping timeout: 240 seconds]
rodion has joined #ruby-lang
mmaatthhe has left #ruby-lang [#ruby-lang]
Spaceghost|cloud has quit [Remote host closed the connection]
herpless___ has quit [Remote host closed the connection]
thejspr_ has quit [Remote host closed the connection]
UziMonkey__ has quit [Remote host closed the connection]
grandy has quit [Remote host closed the connection]
bpot__ has quit [Remote host closed the connection]
L0rdShrek____ has quit [Remote host closed the connection]
beawesomeinstead has quit [Remote host closed the connection]
<drbrain> can't be any worse to look at than Marshal
tdy_ has joined #ruby-lang
ruby-lang841 has quit [Ping timeout: 245 seconds]
rodion has quit [Ping timeout: 272 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
maxmanders has quit [Client Quit]
maxmanders has joined #ruby-lang
mistym_away is now known as mistym
rwk1 has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
srbaker has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
wycats__ has joined #ruby-lang
rwk1 has quit [Ping timeout: 256 seconds]
burgestrand has joined #ruby-lang
<Paradox> postmodern, well, one could say the same about minified json
burgestrand has quit [Client Quit]
<postmodern> Paradox, by compact i mean _really_ compact
<Paradox> yeah, but usually if i want to inspect json
<Paradox> i pull it out and stuff it into pry
<postmodern> Paradox, "\xA5hello"
UziMonkey__ has joined #ruby-lang
<Paradox> yeah
<Paradox> well
<postmodern> Paradox, "\x93\x01\x02\x03"
<Paradox> its easy enough to add different mimetypes to rails formats
anildigital_work has joined #ruby-lang
<Paradox> just do a json format and a msgpk format
<postmodern> Paradox, they choose the smallest width for length fields, then store the type flag in the high bits
Guest85414 has joined #ruby-lang
bpot__ has joined #ruby-lang
wmoxam has quit [Ping timeout: 240 seconds]
herpless___ has joined #ruby-lang
pkondzior___ has joined #ruby-lang
thejspr_ has joined #ruby-lang
akahn has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
dreinull_ has joined #ruby-lang
franckverrot has joined #ruby-lang
L0rdShrek____ has joined #ruby-lang
agarie_ has joined #ruby-lang
maxmanders has joined #ruby-lang
agarie has quit [Ping timeout: 240 seconds]
maxmanders has quit [Ping timeout: 245 seconds]
maerch has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
gix has joined #ruby-lang
randym has joined #ruby-lang
maxmanders has joined #ruby-lang
bantic has quit [Quit: bantic]
pygmael has quit [Quit: pygmael]
grandy has joined #ruby-lang
bantic has joined #ruby-lang
ykk_ has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
carloslopes has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
outoftime has quit [Quit: Leaving]
woollyams has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
tylersmith has joined #ruby-lang
jacktrick has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
norplr has joined #ruby-lang
matti has quit [Quit: Oh dear...]
forrest has quit [Quit: Leaving]
Gaelan has joined #ruby-lang
idkazuma has joined #ruby-lang
Gaelan_ has joined #ruby-lang
Gaelan has quit [Read error: Connection reset by peer]
breakingthings has quit []
retro|cz has quit [Ping timeout: 272 seconds]
tbuehlmann has quit [Remote host closed the connection]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Wardrop has quit [Quit: Wardrop]
fragmachine has quit [Quit: Leaving]
apeiros_ has quit [Remote host closed the connection]
soknee has quit [Quit: Leaving.]
pygmael has joined #ruby-lang
rwk1 has joined #ruby-lang
alessio_rocco has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
glebm has quit [Ping timeout: 246 seconds]
rwk1 has quit [Ping timeout: 252 seconds]
maerch has quit [Ping timeout: 246 seconds]
idkazuma has quit [Remote host closed the connection]
glebm has joined #ruby-lang
chrismar035 has quit [Quit: chrismar035]
mixandgo has quit [Quit: mixandgo]
bluepojo has joined #ruby-lang
soknee has joined #ruby-lang
ruby-lang513 has quit [Ping timeout: 245 seconds]
<zenspider> RAWR. just added subset detection to flay
maxmanders has quit [Ping timeout: 258 seconds]
<zenspider> ok... this is awesome... but SLOW
<zenspider> damn... I must be doing something wrong... this is too slow
Nuru has joined #ruby-lang
tonni_ has joined #ruby-lang
<injekt> write it in node
<zenspider> no need. flay is multi language
<injekt> via plugins?
maerch has joined #ruby-lang
tonni has quit [Ping timeout: 256 seconds]
<injekt> man .txt readmes in rdoc format are so hard to read on github
<injekt> and by on github i mean in general
<zenspider> yeah. already has erb, shipping with it. I've done haml and c as well
<injekt> neat
<zenspider> I thought I did JS at one point too, using rkelly or something
<zenspider> if you can't read plain text, maybe you shouldn't be a developer
<injekt> that's an unfortunately library name
<zenspider> rkelly? not as bad as half of tenderlove's other projects
<injekt> hey man you have rdoc formatting inside a .txt file, you cant talk
<injekt> hah true
<zenspider> johnson
<zenspider> I don't bitch about the formatting, do I? because I can read text
mjio has joined #ruby-lang
<zenspider> that's like, 2/3rds of my job... reading text
<injekt> I can read text, I didn't say I couldn't read it, did i?
<injekt> unless I missed typing that
<zenspider> "so hard"
soknee has quit [Quit: Leaving.]
<injekt> hard
<injekt> not can't
<injekt> ;)
<injekt> because with proper formatting, it's much nicer and easier to read
<injekt> you disagree?
<zenspider> I don't really give a shit. reading unformatted rdoc or markdown works just fine
<zenspider> better even, since I then have superior text tools than my stupid web browser provides
<injekt> alright, just thought I'd point it out as someone trying to learn more about flay
<zenspider> I try to avoid style over substance arguments... since that is all you're really arguing... but this one gets on my nerves.
<injekt> I'm not arguing, your readme looks like shit but it doesn't have to. Yes that is style over substance, I'm not saying you've done a bad job so you don't need to get so defensive, if you don't 'give a shit' then that's fine, I just wanted to point it out, forgive me for that
<zenspider> holy crap... the code is slow because the code is slow.... I don't think there is anything I can do about this complexity
soknee has joined #ruby-lang
maerch has quit [Ping timeout: 272 seconds]
agarie_ has quit [Remote host closed the connection]
soknee has quit [Client Quit]
<zenspider> ugh... a module with 51 methods (or... things) in it is just eating up cpu.
<injekt> drbrain: I updated that mech issue, I think maybe something can be done inside net-http-persistent though
<injekt> drbrain: I'll let you decide, I'm more than happy to do it in mech, though
<drbrain> injekt: I saw, I'll look at it in a bit
<zenspider> 122... *sobs*
pygmael has quit [Quit: pygmael]
anonymuse has quit [Quit: Linkinus - http://linkinus.com]
<zenspider> gah. normal flay = 2s against minitest. --c 1 == 10s, --c 2 248s
<zenspider> :(
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<zenspider> "yay" for geometric growth
davidbalbert is now known as davidbalber|away
stevechiagozie has joined #ruby-lang
stevechiagozie has quit [Client Quit]
setmeaway2 has joined #ruby-lang
hakunin_ has joined #ruby-lang
<rue> “Yay”
mbr has quit [Ping timeout: 256 seconds]
naquad has quit [Ping timeout: 256 seconds]
steez has quit [Ping timeout: 256 seconds]
t0h_ has quit [Ping timeout: 256 seconds]
setmeaway has quit [Ping timeout: 256 seconds]
eam has quit [Ping timeout: 256 seconds]
erichmenge has quit [Ping timeout: 256 seconds]
hakunin has quit [Ping timeout: 256 seconds]
kgrz has quit [Quit: Computer has gone to sleep.]
t0h has joined #ruby-lang
steez has joined #ruby-lang
mbr has joined #ruby-lang
eam has joined #ruby-lang
<zenspider> "yay" indeed
agarie has joined #ruby-lang
naquad has joined #ruby-lang
maxmanders has joined #ruby-lang
erichmenge has joined #ruby-lang
<zenspider> it is pretty rad tho...
maxmanders has quit [Client Quit]
<zenspider> it can detect the difference between
<zenspider> class X; a; b; c; end versus: class Y; a; b; end
bantic has quit [Quit: bantic]
mrfoo has joined #ruby-lang
Nuru has quit [Quit: Bye bye]
maxmanders has joined #ruby-lang
maxmande_ has joined #ruby-lang
maxmande_ has quit [Client Quit]
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby-lang
maxmanders has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby-lang
fire_butt is now known as quazimodo
<rue> Very nice
XxBlakeFailxX has joined #ruby-lang
<rue> Of course I’ve been eyeballs-deep in FRP recently :) Poor Ruby, so neglected…
maxmanders has quit [Ping timeout: 257 seconds]
idkazuma has joined #ruby-lang
maxmanders has joined #ruby-lang
kure has joined #ruby-lang
kure has quit [Client Quit]
kure has joined #ruby-lang
maxmanders has quit [Ping timeout: 258 seconds]
kure has quit [Client Quit]
gregmoreno has quit [Remote host closed the connection]
<zenspider> rue: FRP?
maerch has joined #ruby-lang
jfelchner1 has joined #ruby-lang
stevechiagozie has joined #ruby-lang
voker57 has joined #ruby-lang
maerch has quit [Ping timeout: 252 seconds]