apeiros changed the topic of #ruby-lang to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste code on https://gist.github.com
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
julweber has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
caseydriscoll has quit [Remote host closed the connection]
AlexAltea has quit [Ping timeout: 244 seconds]
RobertBirnie has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby-lang
pabloh has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
charliesome has joined #ruby-lang
baweaver has quit [Ping timeout: 265 seconds]
Forgetful_Lion has joined #ruby-lang
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby-lang
roamingd_ has joined #ruby-lang
roamingdog has quit [Read error: Connection reset by peer]
roamingd_ has quit [Remote host closed the connection]
lytol has joined #ruby-lang
lytol has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby-lang
fujimura has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ledestin has joined #ruby-lang
wallerdev has joined #ruby-lang
fujimura has quit [Ping timeout: 252 seconds]
wallerdev has quit [Client Quit]
dorei has quit []
rcvalle has quit [Quit: rcvalle]
jwaldrip has quit [Quit: Be back later ...]
rgb-one has joined #ruby-lang
jgpawletko has quit [Read error: Connection reset by peer]
jgpawletko has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
nofxx has quit [Ping timeout: 250 seconds]
gregf_ has quit [Ping timeout: 250 seconds]
badeball has quit [Ping timeout: 250 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
badeball has joined #ruby-lang
gregf_ has joined #ruby-lang
micmus has joined #ruby-lang
caseydriscoll has joined #ruby-lang
wprice has quit [Quit: wprice]
djellemah_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
djellemah__ has quit [Ping timeout: 245 seconds]
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
bruno- has joined #ruby-lang
amclain has joined #ruby-lang
roamingdog has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
tkuchiki has joined #ruby-lang
bruno- has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby-lang
D3m0n has joined #ruby-lang
<D3m0n> Alguem ae ?
D3m0n is now known as Guest92184
<jhass> D3m0n: nope, English only ;)
<Guest92184> :( hi speak inglish & português
Guest92184 has quit [Ping timeout: 246 seconds]
Sirupsen has joined #ruby-lang
stardiviner has joined #ruby-lang
jgpawletko has joined #ruby-lang
mcclurmc_ has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 252 seconds]
Newbie0086 has joined #ruby-lang
lytol has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
caseydriscoll has quit [Remote host closed the connection]
jwaldrip has joined #ruby-lang
micmus has quit [Ping timeout: 264 seconds]
fujimura has joined #ruby-lang
cornerma1 has joined #ruby-lang
Newbie0086 has quit [Ping timeout: 264 seconds]
minimart has joined #ruby-lang
cornerman has quit [Ping timeout: 248 seconds]
cornerma1 is now known as cornerman
bruno- has joined #ruby-lang
znz_jp has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 245 seconds]
Newbie0086 has joined #ruby-lang
znz_jp has joined #ruby-lang
zekriad has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
Newbie0086 has quit [Ping timeout: 256 seconds]
Newbie0086 has joined #ruby-lang
mistym has quit [Ping timeout: 256 seconds]
hagabaka has quit [Ping timeout: 250 seconds]
mistym has joined #ruby-lang
lytol has quit [Remote host closed the connection]
amystephen has quit [Quit: amystephen]
jgpawletko has quit [Quit: jgpawletko]
bantic has joined #ruby-lang
davispuh has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 245 seconds]
riotjones has joined #ruby-lang
Cocoabean has joined #ruby-lang
gix has joined #ruby-lang
riotjones has quit [Ping timeout: 255 seconds]
bantic has quit [Quit: bantic]
Volsus has joined #ruby-lang
Pretorian has joined #ruby-lang
<Pretorian> Ãîñïîäà, ìîæåòå ïîìî÷ü ñ odbc, ïèøåò /dbi-0.4.5/lib/dbi.rb:300:in `block in load_driver': Unable to load driver 'ODBC'
<Pretorian> ïîñòàâèë gem dbi è dbd-odbc
Miphix has joined #ruby-lang
<Pretorian> ñäåëàë require 'dbi', à îíî ðóãàåòñÿ ÷òî íåò äðàéâåðà odbc, êóäà êîïàòü?
Newbie0086 has quit [Ping timeout: 245 seconds]
<Pretorian> âåðíåå ðóãàåòñÿ íà DBI.connect
ledestin has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
mark06 has left #ruby-lang ["http://pidgin.renatosilva.me - Pidgin++"]
jwaldrip has quit [Quit: Be back later ...]
Newbie0086 has joined #ruby-lang
ascarter has joined #ruby-lang
wprice has joined #ruby-lang
lytol has joined #ruby-lang
_djbkd has joined #ruby-lang
LMity has joined #ruby-lang
wprice has quit [Client Quit]
jwaldrip has joined #ruby-lang
lytol has quit [Ping timeout: 250 seconds]
rbowlby has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 1.1.1]
araujo has quit [Ping timeout: 264 seconds]
LMity has quit [Ping timeout: 264 seconds]
rbowlby has quit [Remote host closed the connection]
minimart has quit [Ping timeout: 246 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby-lang
hahuang65 has joined #ruby-lang
allolex____ has quit [Read error: Connection reset by peer]
Guest85414______ has quit [Ping timeout: 252 seconds]
nomadicoder has quit [Ping timeout: 272 seconds]
SkramX_ has quit [Ping timeout: 272 seconds]
dlackty__ has quit [Ping timeout: 252 seconds]
ggherdov has quit [Ping timeout: 252 seconds]
pskosinski has quit [Ping timeout: 252 seconds]
rflot has quit [Ping timeout: 272 seconds]
Shoffner_____ has quit [Ping timeout: 272 seconds]
ramblinpeck_ has quit [Ping timeout: 272 seconds]
zzak has quit [Ping timeout: 272 seconds]
moogumbo has quit [Ping timeout: 252 seconds]
spastorino has quit [Ping timeout: 252 seconds]
allolex____ has joined #ruby-lang
moogumbo has joined #ruby-lang
zzak has joined #ruby-lang
rflot has joined #ruby-lang
spastorino has joined #ruby-lang
nomadicoder has joined #ruby-lang
pskosinski has joined #ruby-lang
SkramX_ has joined #ruby-lang
ramblinpeck_ has joined #ruby-lang
dlackty__ has joined #ruby-lang
ggherdov has joined #ruby-lang
Guest85414______ has joined #ruby-lang
Shoffner_____ has joined #ruby-lang
iliketurtles has joined #ruby-lang
jwaldrip has quit [Quit: Be back later ...]
caseydriscoll has joined #ruby-lang
_whitelogger has joined #ruby-lang
djbkd has quit [Ping timeout: 264 seconds]
lytol has quit [Ping timeout: 244 seconds]
tsujp has quit [Quit: tsujp is snoozing]
<rob_> hi, i want to check to see if an int is either 1 or 2, this seems dirty, is there a better way to do it? foo = 1; foo.to_s =~ /[12]/
<rob_> obviously: foo == 1 or foo == 2
<rob_> was wondering if there was a more concise way
tsujp has joined #ruby-lang
<apeiros> [1,2].include?(foo)
<apeiros> but for 2 values, I'd go with the `or`
<apeiros> you regex solution is wrong btw., classic error of not anchoring your regex
<apeiros> >> foo = 1234; foo.to_s =~ /[12]/
<eval-in_> apeiros => 0 (https://eval.in/308208)
<rob_> apeiros: true, but the only 3 values it could be are 0, 1 or 2
jas02 has joined #ruby-lang
<rob_> anyways thanks for the tips
<apeiros> then foo != 0
<rob_> actually i tell a lie, it can be greater than 2 also
<rob_> foo > 0 would work though
<apeiros> unless you also have negative numbers, that's actually the same as != 0 ;-)
rbowlby has quit [Remote host closed the connection]
<rob_> youre right of course
<rob_> i think i need to wake up :)
<apeiros> always a good plan
skade has joined #ruby-lang
hahuang65 has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby-lang
bruno- has quit [Ping timeout: 244 seconds]
marr has joined #ruby-lang
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
Cocoabean has quit []
<Pretorian> dbc, /dbi-0.4.5/lib/dbi.rb:300:in `block in load_driver': Unable to load driver 'ODBC'??
havenwood has quit []
caseydriscoll has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
hagabaka has joined #ruby-lang
symm- has quit [Ping timeout: 264 seconds]
symm- has joined #ruby-lang
piotrj has joined #ruby-lang
SylarRuby has joined #ruby-lang
tsujp has quit [Quit: tsujp is snoozing]
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
stef204 has joined #ruby-lang
ledestin has joined #ruby-lang
roamingdog has joined #ruby-lang
lytol has joined #ruby-lang
roamingdog has quit [Ping timeout: 250 seconds]
lytol has quit [Ping timeout: 265 seconds]
leat has joined #ruby-lang
nofxx has quit [Ping timeout: 264 seconds]
realDAB has joined #ruby-lang
intinig has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
realDAB has quit [Client Quit]
iamninja has joined #ruby-lang
intinig has quit [Client Quit]
intinig has joined #ruby-lang
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
symm- has quit [Ping timeout: 255 seconds]
RobertBirnie has joined #ruby-lang
hahuang65 has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby-lang
arBmind has joined #ruby-lang
mva has joined #ruby-lang
<mva> hi there! can you advice me, if it is ruby bugzilla somewhere?
riotjones has quit [Ping timeout: 255 seconds]
<mva> I've some issues on building ruby-2.2.1 on hardened system due to introducing of alloca usage in that commit http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/tags/v2_2_1/thread_pthread.c?r1=48992&r2=49578&diff_format=h
hahuang65 has quit [Quit: WeeChat 1.1.1]
hahuang65 has joined #ruby-lang
<mva> thanks
<balo> oh sry
<balo> too late
lytol has joined #ruby-lang
sandelius has joined #ruby-lang
<yorickpeterse> morning
_1_Dre2 has joined #ruby-lang
lytol has quit [Ping timeout: 255 seconds]
Pretorian has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
wicope has joined #ruby-lang
_1_Dre2 has quit [Quit: WhatsChat IRC Android APP]
arBmind has quit [Ping timeout: 256 seconds]
jas02 has quit [Quit: jas02]
Missphoenix has joined #ruby-lang
Miphix has quit [Ping timeout: 264 seconds]
dhjondoh has quit [Quit: dhjondoh]
skade has joined #ruby-lang
leat has quit [Ping timeout: 256 seconds]
fujimura has quit []
fujimura has joined #ruby-lang
dhjondoh has joined #ruby-lang
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki_ has joined #ruby-lang
roamingdog has joined #ruby-lang
tkuchik__ has joined #ruby-lang
tkuchiki has quit [Ping timeout: 250 seconds]
tkuchiki_ has quit [Read error: Connection reset by peer]
dhjondoh has quit [Client Quit]
leat has joined #ruby-lang
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
roamingdog has quit [Ping timeout: 248 seconds]
yfeldbl__ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
sandelius has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 244 seconds]
leat has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
skyrocker1 has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
skyrocker has joined #ruby-lang
lytol has joined #ruby-lang
lytol has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
LMity has joined #ruby-lang
leat has joined #ruby-lang
bruno- has joined #ruby-lang
red_horned_rihno has joined #ruby-lang
bruno- has quit [Ping timeout: 250 seconds]
LMity has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby-lang
stamina has joined #ruby-lang
leat has quit [Ping timeout: 250 seconds]
tkuchik__ has quit [Ping timeout: 248 seconds]
yxhuvud has quit [Remote host closed the connection]
yxhuvud has joined #ruby-lang
yxhuvvd has joined #ruby-lang
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvvd has quit [Read error: Connection reset by peer]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
leat has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
jas02 has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
cpt_yossarian has joined #ruby-lang
hahuang65 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 256 seconds]
fujimura has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
jgpawletko has joined #ruby-lang
lytol has joined #ruby-lang
roamingdog has joined #ruby-lang
dellavg_ has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lytol has quit [Ping timeout: 246 seconds]
roamingdog has quit [Ping timeout: 264 seconds]
dagda1 has quit [Remote host closed the connection]
dagda1 has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.1.1]
roamingdog has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
sarkyniin has joined #ruby-lang
red_horned_rihno has quit [Ping timeout: 252 seconds]
symm- has joined #ruby-lang
arBmind has joined #ruby-lang
charliesome has joined #ruby-lang
Voker57 has quit [Ping timeout: 256 seconds]
sgambino has joined #ruby-lang
red_horned_rihno has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
stevechiagozie has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
ledestin has joined #ruby-lang
symm- has quit [Ping timeout: 264 seconds]
symm- has joined #ruby-lang
sgambino has quit [Remote host closed the connection]
djellemah_ has quit [Quit: Leaving]
djellemah_ has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michael_mbp has quit [Ping timeout: 252 seconds]
yfeldbl__ has quit [Ping timeout: 265 seconds]
dagda1 has quit [Ping timeout: 248 seconds]
michael_mbp has joined #ruby-lang
ruby-lang492 has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 245 seconds]
dagda1 has joined #ruby-lang
b_hoffman has joined #ruby-lang
ledestin has joined #ruby-lang
ledestin has quit [Client Quit]
fujimura_ has joined #ruby-lang
lytol has joined #ruby-lang
charliesome has quit [Quit: zzz]
amystephen has joined #ruby-lang
sankaber has joined #ruby-lang
fujimura_ has quit [Ping timeout: 252 seconds]
lytol has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby-lang
arBmind has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby-lang
arBmind has joined #ruby-lang
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sarkyniin has quit [Remote host closed the connection]
sgambino has joined #ruby-lang
chouhoulis has quit []
fabien has joined #ruby-lang
fabien has left #ruby-lang [#ruby-lang]
riotjones has joined #ruby-lang
ruby-lang492 has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby-lang
riotjones has quit [Ping timeout: 252 seconds]
tsujp has joined #ruby-lang
stef204 has joined #ruby-lang
jwaldrip has quit [Ping timeout: 265 seconds]
caseydriscoll has joined #ruby-lang
jas02 has left #ruby-lang [#ruby-lang]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
piotrj has quit [Ping timeout: 252 seconds]
tharindu has joined #ruby-lang
malconis has joined #ruby-lang
malconis has quit [Remote host closed the connection]
marr has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
malconis has joined #ruby-lang
jas02_ has joined #ruby-lang
enebo has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
lytol has joined #ruby-lang
SylarRuby has quit [Remote host closed the connection]
SylarRuby has joined #ruby-lang
yxhuvud has joined #ruby-lang
makepkgnotwar has joined #ruby-lang
lytol has quit [Ping timeout: 265 seconds]
cartothemax has joined #ruby-lang
caseydriscoll has joined #ruby-lang
makepkgnotwar has quit [Quit: Textual IRC Client: www.textualapp.com]
piotrj has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
jwaldrip has joined #ruby-lang
wet88 has joined #ruby-lang
Voker57 has joined #ruby-lang
banister has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
banister is now known as banisterfiend
ascarter has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
b_hoffman has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
lian__ has joined #ruby-lang
whippythellama has joined #ruby-lang
lian__ is now known as lianj
dmitrykorotkov has joined #ruby-lang
lianj has quit [Changing host]
lianj has joined #ruby-lang
lianj has quit [Client Quit]
chinmay_dd has joined #ruby-lang
lian__ has joined #ruby-lang
lian__ is now known as lianj
lianj has quit [Changing host]
lianj has joined #ruby-lang
Voker57 has quit [Read error: Connection reset by peer]
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
symm- has quit [Ping timeout: 252 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leat has quit [Ping timeout: 250 seconds]
mcclurmc has joined #ruby-lang
lytol has joined #ruby-lang
<yorickpeterse> so quiet here today
<yorickpeterse> slackers
<jhass> all the buzz is in #ruby
<jhass> as always :P
leat has joined #ruby-lang
lytol has quit [Ping timeout: 256 seconds]
<apeiros> jhass: I'll translate that "so quiet" from yorick to english for you: "I have nothing to rant about"
tkuchiki has joined #ruby-lang
<jhass> oh, right, forgive me
<yorickpeterse> apeiros: not far from the truth
<yorickpeterse> I'm cleaning up tests, which is quite peaceful
<yorickpeterse> Since I wrote them myself they're flawless too
<apeiros> of course :)
Voker57 has joined #ruby-lang
jas02 has joined #ruby-lang
jas02_ has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby-lang
tharindu has quit [Remote host closed the connection]
<jhass> that must be the reason there need cleanup, too :P
symm- has joined #ruby-lang
<jhass> *they
stevechiagozie has quit [Quit: Computer has gone to sleep.]
tharindu has joined #ruby-lang
riotjones has quit [Ping timeout: 256 seconds]
stevechiagozie has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
dhjondoh has joined #ruby-lang
tkuchiki has joined #ruby-lang
dhjondoh has quit [Remote host closed the connection]
djellemah_ has quit [Quit: Leaving]
djellemah_ has joined #ruby-lang
tcopeland has joined #ruby-lang
djellemah_ is now known as djellemah
QuintinAdam has joined #ruby-lang
roamingdog has joined #ruby-lang
momomomomo has joined #ruby-lang
|jemc| has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
jas02 has quit [Quit: jas02]
b_hoffman has quit [Quit: b_hoffman]
piotrj has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
piotrj has joined #ruby-lang
gwendall has quit [Ping timeout: 246 seconds]
skade has joined #ruby-lang
piotrj_ has joined #ruby-lang
cornerma1 has joined #ruby-lang
piotrj has quit [Ping timeout: 248 seconds]
cornerman has quit [Ping timeout: 256 seconds]
cornerma1 is now known as cornerman
piotrj_ has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby-lang
<jhass> watcha expect
charliesome has quit [Quit: zzz]
leat has quit [Ping timeout: 255 seconds]
dmitrykorotkov has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
roobnoob has joined #ruby-lang
lytol has joined #ruby-lang
<roobnoob> Any ruby wizards that have a moment to help a noob in need?
<jhass> roobnoob: don't ask to ask, just ask
<roobnoob> I have pulled 2 columns from a text file into a hash. Duplicate keys create multiple values, as desired.
<roobnoob> One key-value pair looks like this: D => ["F", "G", "J"]
<roobnoob> I'm trying to iterate over all values for an individual match, not a total match. E.G. return true if "G" is in the values, not just if "F", "G", "J"
lytol has quit [Ping timeout: 252 seconds]
<jhass> hash["D"] == ["G"]
b_hoffman has joined #ruby-lang
rippa has joined #ruby-lang
stef204 has quit [Ping timeout: 246 seconds]
rcvalle has joined #ruby-lang
<jhass> roobnoob: did I interpret that right? :)
<roobnoob> I'm poking around now, trying to see if I understood
<workmad3> jhass: looks more like hash["D"].include?("D") would fit to me
<roobnoob> hash.each{|a,b| puts a if hash[b] == ["G"]}
<jhass> workmad3: mh, I understood it's exactly what they not want
<workmad3> jhass: hmm... 'return true if G is in the values, not needing a total match of "F", "G" and "J"'...
<jhass> roobnoob: if b == ["G"]
<jhass> roobnoob: helps to describe your data: table.each do |column, field| :)
<jhass> workmad3: yeah, dunno, could be both I guess
<roobnoob> so i'll tell you my assignment, and maybe that'll help
<workmad3> roobnoob: ok... here's a question to clarify... the hash {"D" => ["F", "G", "J"]}... do you want to return true because "G" is in the array pointed to by "D", or return false because the array isn't exactly ["G"]?
<roobnoob> I have a text file with 2 columns, I have to turn it into a dependency tree
<workmad3> roobnoob: wait... assignment? as in homework?
<roobnoob> So I want to scan my entire hash, and return "D" because its hash contained "G"
<roobnoob> yessah
<jhass> what's the question you have to that dependency tree exactly? That is what should be the output of your program be?
ascarter has joined #ruby-lang
<roobnoob> i'll cook up some copypasta, sec
ascarter has quit [Max SendQ exceeded]
<roobnoob> here's a portion of the data in my text file A->B
<roobnoob> A->J
<roobnoob> B->C
<roobnoob> B->D
<roobnoob> C->E
<roobnoob> D->F
<roobnoob> D->G
<roobnoob> D->J
ttilley has quit [Quit: Linkinus - http://linkinus.com]
<roobnoob> And here's the assignment
<roobnoob> INSTRUCTIONS:
<roobnoob> Problem: Given a dependency graph, print a hierarchical view of the dependencies.
<roobnoob> Data: The graph is in the attached graph.txt file. The data is provided in the form "X->Y", stating
<roobnoob> that X depends on Y.
<roobnoob> Assignment: Walk the dependency graph, starting at A, printing out each dependency. Repeat
ascarter has joined #ruby-lang
<roobnoob> for each dependency visited, indenting along the way. E.g. If A depends on B and C, and B
<roobnoob> depends on C and D the output should look like this:
<roobnoob> A
<roobnoob> |_ B
<roobnoob> | |_ C
<roobnoob> | |_ D
<roobnoob> |_ C
<jhass> Uh, please see /topic
symm- has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
<roobnoob> I wasn't asking for someone to do my homework for me, just looking for help matching a single value out of a multiple-value hash
<roobnoob> =)
sandelius has joined #ruby-lang
<workmad3> roobnoob: well, it helps if you use the correct terminology... you don't have a multiple-value hash, you have a hash of arrays (by what you said)
<jhass> thing is, I think you could just walk it now, no?
seank_ has quit [Remote host closed the connection]
<jhass> using a recursive method
momomomomo has joined #ruby-lang
<jhass> def print_node(dependencies, indentation_level)
symm- has joined #ruby-lang
sarahdashdashp has joined #ruby-lang
<jhass> dependencies.empty? as exit condition
tsujp has quit [Quit: tsujp is snoozing]
nmalacarne has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nmalacarne has quit [Client Quit]
nmalacarne has joined #ruby-lang
shinnya has joined #ruby-lang
zekriad has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
mcclurmc has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uros has joined #ruby-lang
uros has quit [Client Quit]
chinmay_dd has quit [Quit: Leaving]
chinmay_dd has joined #ruby-lang
havenwood has joined #ruby-lang
ascarter has joined #ruby-lang
tcopeland has quit [Quit: Leaving.]
QuintinAdam has quit []
workmad3 has quit [Ping timeout: 256 seconds]
QuintinAdam has joined #ruby-lang
lytol has joined #ruby-lang
mattyohe has joined #ruby-lang
lytol has quit [Ping timeout: 246 seconds]
mcclurmc has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
cartothemax has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has quit [Ping timeout: 246 seconds]
LMity has joined #ruby-lang
tcopeland has joined #ruby-lang
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbowlby has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
djbkd has joined #ruby-lang
shinnya has quit [Ping timeout: 264 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
cartothemax has joined #ruby-lang
RobertBirnie has joined #ruby-lang
cartothemax has quit [Read error: No route to host]
RobertBirnie has quit [Max SendQ exceeded]
skade has quit [Quit: Computer has gone to sleep.]
chinmay_dd has quit [Quit: Leaving]
seank__ has joined #ruby-lang
intinig has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
djbkd has quit [Ping timeout: 256 seconds]
sarahdashdashp has quit [Quit: sarahdashdashp]
intinig has joined #ruby-lang
nmalacarne has quit [Ping timeout: 264 seconds]
ascarter has joined #ruby-lang
ascarter_ has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter_ has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
ascarter_ has joined #ruby-lang
piotrj has joined #ruby-lang
intinig has quit [Ping timeout: 265 seconds]
michaeldeol has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 250 seconds]
seank___ has joined #ruby-lang
seank__ has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
LMity has quit [Ping timeout: 252 seconds]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
RobertBirnie has joined #ruby-lang
stef204 has joined #ruby-lang
sarahdashdashp has joined #ruby-lang
RobertBirnie has quit [Max SendQ exceeded]
charliesome has joined #ruby-lang
nmalacarne has joined #ruby-lang
iliketurtles has joined #ruby-lang
djbkd has joined #ruby-lang
cartothemax has joined #ruby-lang
RobertBirnie has joined #ruby-lang
djbkd has quit [Ping timeout: 252 seconds]
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
micmus has joined #ruby-lang
djbkd has joined #ruby-lang
cartothemax has quit [Ping timeout: 252 seconds]
sarahdashdashp has quit [Quit: sarahdashdashp]
RobertBirnie has quit [Max SendQ exceeded]
thelastinuit has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
intinig has joined #ruby-lang
sarahdashdashp has joined #ruby-lang
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
ascarter_ has joined #ruby-lang
ascarter_ has quit [Client Quit]
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby-lang
intinig has quit [Ping timeout: 248 seconds]
mcclurmc has joined #ruby-lang
RobertBirnie has joined #ruby-lang
sarkyniin has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
godzillaenlacasa has joined #ruby-lang
RobertBi_ has joined #ruby-lang
piotrj has joined #ruby-lang
Iskarlar has joined #ruby-lang
charliesome has quit [Quit: zzz]
intinig has joined #ruby-lang
lytol has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 248 seconds]
cartothemax has joined #ruby-lang
sarahdashdashp has quit [Quit: sarahdashdashp]
b_hoffman has joined #ruby-lang
sp4rrow has joined #ruby-lang
intinig has quit [Remote host closed the connection]
Missphoenix has quit [Quit: Leaving]
cartothemax has quit [Ping timeout: 244 seconds]
intinig has joined #ruby-lang
tharindu_ has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
red_horned_rihno has quit [Ping timeout: 255 seconds]
cartothemax has joined #ruby-lang
tharindu has quit [Ping timeout: 264 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sarahdashdashp has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
araujo has quit [Quit: Leaving]
lytol has quit [Remote host closed the connection]
intinig has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
intinig has joined #ruby-lang
matp has quit [Ping timeout: 265 seconds]
matp has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
sarahdashdashp has quit [Quit: sarahdashdashp]
red_horned_rihno has joined #ruby-lang
sarahdashdashp has joined #ruby-lang
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
araujo has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
apeiros is now known as apeiros|not
intinig has quit [Remote host closed the connection]
apeiros|not is now known as apeiros
roamingdog has quit [Ping timeout: 264 seconds]
stamina has joined #ruby-lang
roamingdog has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
b_hoffman has joined #ruby-lang
b_hoffman has quit [Client Quit]
stamina has quit [Ping timeout: 265 seconds]
intinig has joined #ruby-lang
intinig has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has joined #ruby-lang
nofxx has joined #ruby-lang
stevechiagozie has joined #ruby-lang
dzejrou has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
roamingdog has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
malconis has joined #ruby-lang
b_hoffman has joined #ruby-lang
alxndr has joined #ruby-lang
hahuang65 has joined #ruby-lang
skade has joined #ruby-lang
banister has joined #ruby-lang
micmus has quit [Ping timeout: 255 seconds]
b_hoffman has quit [Quit: b_hoffman]
momomomomo has quit [Quit: momomomomo]
b_hoffman has joined #ruby-lang
jwaldrip has quit [Quit: Be back later ...]
RobertBi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ayonkhan has joined #ruby-lang
godzillaenlacasa has quit [Quit: ZZZZZ....]
iliketurtles has quit [Quit: zzzzz…..]
wallerdev has joined #ruby-lang
ayonkhan has quit [Client Quit]
ayonkhan has joined #ruby-lang
micmus has joined #ruby-lang
QuintinAdam has quit []
QuintinAdam has joined #ruby-lang
roamingdog has joined #ruby-lang
godzillaenlacasa has joined #ruby-lang
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
ayonkhan has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
nmalacarne has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has joined #ruby-lang
davispuh has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
shinnya has joined #ruby-lang
chinmay_dd has joined #ruby-lang
michaeldeol has joined #ruby-lang
enebo has joined #ruby-lang
stamina has joined #ruby-lang
QuintinAdam has quit []
workmad3 has joined #ruby-lang
sgambino has quit [Remote host closed the connection]
aadam21 has joined #ruby-lang
sp4rrow has joined #ruby-lang
yfeldblum has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
tharindu_ has quit [Ping timeout: 252 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
symm- has quit [Ping timeout: 255 seconds]
<darix> yorickpeterse: package updated
symm- has joined #ruby-lang
davispuh has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
davispuh has joined #ruby-lang
jwaldrip has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
jwaldrip has quit [Ping timeout: 252 seconds]
RobertBirnie has joined #ruby-lang
wallerdev has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
b_hoffman has quit [Quit: b_hoffman]
sarahdashdashp has quit [Quit: sarahdashdashp]
wallerdev has quit [Client Quit]
SylarRuby has quit [Remote host closed the connection]
bruno-_ has joined #ruby-lang
pothibo has joined #ruby-lang
godzillaenlacasa has quit [Quit: Peace Out Peeps!]
sp4rrow has joined #ruby-lang
bruno- has quit [Ping timeout: 256 seconds]
iliketurtles has joined #ruby-lang
pothibo has quit [Client Quit]
RobertBirnie has quit [Ping timeout: 255 seconds]
SylarRuby has joined #ruby-lang
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iliketurtles has quit [Quit: zzzzz…..]
sp4rrow has joined #ruby-lang
sgambino has joined #ruby-lang
chinmay_dd has quit [Quit: Leaving]
Cloudzy has quit [Ping timeout: 244 seconds]
Cloudhand has quit [Ping timeout: 244 seconds]
GBrawl has joined #ruby-lang
Cloudhand has joined #ruby-lang
Cloudzy has joined #ruby-lang
wallerdev has joined #ruby-lang
RobertBirnie has joined #ruby-lang
RobertBirnie has quit [Client Quit]
symm- has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby-lang
jwaldrip has joined #ruby-lang
wet88 has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cloudzy has quit [Quit: Leaving]
Cloudhand has quit [Quit: Leaving]
Xzyx987X has quit [Quit: Leaving]
Xzyx987X has joined #ruby-lang
GBrawl has quit [Ping timeout: 252 seconds]
relix has quit [Ping timeout: 248 seconds]
relix has joined #ruby-lang
stevechiagozie has joined #ruby-lang
mark06 has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby-lang
charliesome has joined #ruby-lang
mark06 has left #ruby-lang ["http://pidgin.renatosilva.me - Pidgin++"]
hahuang65 has quit [Ping timeout: 265 seconds]
whippythellama has quit [Quit: whippythellama]
jgpawletko has joined #ruby-lang
jwaldrip has quit [Quit: Lingo: www.lingoirc.com]
red_menace has joined #ruby-lang
enebo has quit [Quit: enebo]
stamina has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wicope has quit [Read error: Connection reset by peer]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby-lang
malconis has quit [Client Quit]
banister has joined #ruby-lang
stevechiagozie has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has joined #ruby-lang
fusillicode1 has joined #ruby-lang
czarny has joined #ruby-lang
fusillicode has quit [Ping timeout: 244 seconds]
<czarny> hi
fusillicode has joined #ruby-lang
ruby-lang837 has joined #ruby-lang
ur5us has joined #ruby-lang
ruby-lang837 has left #ruby-lang [#ruby-lang]
fusillicode has quit [Read error: Connection reset by peer]
fusillicode has joined #ruby-lang
fusillicode1 has quit [Ping timeout: 244 seconds]
<jhass> hi
fusillicode1 has joined #ruby-lang
fusillicode has quit [Ping timeout: 264 seconds]
piotrj has joined #ruby-lang
car has joined #ruby-lang
czarny has left #ruby-lang [#ruby-lang]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
piotrj has quit [Read error: No route to host]
piotrj has joined #ruby-lang
riotjones has joined #ruby-lang
marr has joined #ruby-lang
riotjones has quit [Ping timeout: 250 seconds]
sarkyniin has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
neyhart_ has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
neyhart_ has quit [Remote host closed the connection]
neyhart has joined #ruby-lang
mcclurmc has joined #ruby-lang
neyhart has quit [Client Quit]
SylarRuby has quit [Ping timeout: 245 seconds]
car has quit [Ping timeout: 252 seconds]
sarahdashdashp has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
aadam21 has quit []
gwendall has quit [Remote host closed the connection]
QuintinAdam has joined #ruby-lang
[H]unt3r has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
Swappticon has joined #ruby-lang
enebo has joined #ruby-lang
Phrogz2 has joined #ruby-lang
Phrogz2 is now known as Phrogz
Phrogz has joined #ruby-lang
Phrogz has quit [Changing host]
car has joined #ruby-lang
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
solars has quit [Ping timeout: 250 seconds]
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iliketurtles has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
sp4rrow has joined #ruby-lang
enebo has quit [Quit: enebo]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
sgambino has quit [Remote host closed the connection]
Phrogz has quit [Ping timeout: 256 seconds]
__butch__ has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
LMity has joined #ruby-lang
hahuang65 has quit [Ping timeout: 272 seconds]
funnel has quit [Ping timeout: 250 seconds]
funnel has joined #ruby-lang
the_real_intinig has joined #ruby-lang
cartothemax has quit [Quit: Leaving...]
iliketur_ has joined #ruby-lang
iliketurtles has quit [Ping timeout: 265 seconds]
LMity has quit [Ping timeout: 256 seconds]
hahuang65 has joined #ruby-lang
the_real_intinig has quit [Remote host closed the connection]
caseydriscoll has quit [Remote host closed the connection]
jefus__ has joined #ruby-lang
caseydriscoll has joined #ruby-lang
Phrogz has joined #ruby-lang
jefus_ has quit [Ping timeout: 250 seconds]
caseydri_ has joined #ruby-lang
caseydriscoll has quit [Ping timeout: 244 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gwendall has joined #ruby-lang
caseydri_ has quit [Ping timeout: 244 seconds]
dzejrou has quit [Quit: Leaving]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
gwendall has quit [Ping timeout: 272 seconds]
the_real_intinig has joined #ruby-lang
Phrogz has quit [Ping timeout: 245 seconds]
the_real_intinig has quit [Remote host closed the connection]
red_horned_rihno has quit [Ping timeout: 256 seconds]
terminalbreaker has joined #ruby-lang
bruno-_ has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby-lang
ItSAN____ has quit [Ping timeout: 246 seconds]
sarahdashdashp has quit [Quit: sarahdashdashp]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
7JTAAC2CC has joined #ruby-lang
ur5us has quit [Ping timeout: 256 seconds]
terminalbreaker has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
red_horned_rihno has joined #ruby-lang
makepkgnotwar has joined #ruby-lang
micmus has quit [Ping timeout: 264 seconds]
makepkgnotwar has quit [Client Quit]
nwhirschfeld has quit [Ping timeout: 250 seconds]
nwhirschfeld has joined #ruby-lang
charliesome has quit [Quit: zzz]