apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
arya_ has quit [Ping timeout: 246 seconds]
TheDick has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
JaTochNietDan has quit [Ping timeout: 246 seconds]
JaTochNietDan_ has joined #ruby
RORgasm has quit [Ping timeout: 240 seconds]
JaTochNietDan_ is now known as JaTochNietDan
GeissT has joined #ruby
Bry8Star{T2 has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Davey has joined #ruby
jenrzzz has joined #ruby
intuxicated has quit [Remote host closed the connection]
fierycatnet has joined #ruby
arya_ has joined #ruby
TheDick has quit [Quit: TheDick]
locriani has joined #ruby
ntus1017 has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
arya_ has quit [Ping timeout: 276 seconds]
kofno has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
zooz has quit [Ping timeout: 276 seconds]
arya_ has joined #ruby
dominikh has joined #ruby
felixjet has quit [Read error: Connection reset by peer]
Mendon has joined #ruby
noop has quit [Ping timeout: 264 seconds]
Notte has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 256 seconds]
chrisramon has quit [Quit: chrisramon]
marcgg_ has quit [Ping timeout: 240 seconds]
Tuxero has quit [Remote host closed the connection]
Nisstyre has joined #ruby
noop has joined #ruby
marcgg has joined #ruby
<stormbytes> i know i read about this but it eludes me
Davey has quit [Quit: Computer has gone to sleep.]
<stormbytes> whats the syntax to generate a string that repeats a charater x number of times
<stormbytes> like for instance a series of spaces
<stormbytes> " ".times(5)
<stormbytes> or 5.times("x")
<stormbytes> something liek that..
mary5030 has joined #ruby
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<waxjar> stormbytes: "x" * 5
<stormbytes> hmm
motto has quit [Quit: Sto andando via]
<stormbytes> will use that, though there was a built-in method that did that
<waxjar> it is just a method :)
schickung has quit [Quit: schickung]
<stormbytes> right
arya_ has joined #ruby
<stormbytes> i'm just saying i thought there was a built-in method in the string class
DonRichie has quit [Read error: Operation timed out]
vlad_starkov has quit [Remote host closed the connection]
bradhe has joined #ruby
DonRichie has joined #ruby
scrollback has quit [Remote host closed the connection]
<waxjar> it is: http://rubydoc.org/stdlib/core/String#%2A-instance_method
scrollback has joined #ruby
pupperwares has quit [Quit: Leaving.]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
<r0bglees0n> stormbytes: String#*
pupperwares has joined #ruby
marcgg has quit [Read error: No route to host]
felixjet has joined #ruby
cj3kim has joined #ruby
scrollback has quit [Remote host closed the connection]
<stormbytes> doesn't work
scrollback has joined #ruby
marcgg has joined #ruby
<stormbytes> insert_point = ((width-70)/2)
<stormbytes> so.. that's 54 (fixnum)
<stormbytes> when i then:
<stormbytes> insert_point * " t"
<stormbytes> i get: prompt.rb:7:in `*': String can't be coerced into Fixnum (TypeError)
<waxjar> it'd be " t" * insert_point
bradhe has quit [Ping timeout: 240 seconds]
<stormbytes> dang
YaNakilon has quit [Ping timeout: 256 seconds]
<stormbytes> thank ;)
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
atno has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
Cooler_ has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
smathieu has joined #ruby
zodiak has quit [Ping timeout: 264 seconds]
sepp2k1 has quit [Quit: Leaving.]
vdandre_ has joined #ruby
dlitz has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
nanoxd has quit [Ping timeout: 260 seconds]
jalcine has quit [Excess Flood]
stormbytes has quit [Quit: Leaving...]
vdandre has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
jefflyne has joined #ruby
<jamesaanderson> If I have an array that looks like [["title", "foo"], ["href", "http://dsfds"], ["title", "bar"] …] do you know how I can squash that to get a response of ["foo", "bar"]?
jefflyne has quit [Max SendQ exceeded]
jefflyne has joined #ruby
banister has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<r0bglees0n> jamesaanderson: just arr[0][1], arr[2][1]
<r0bglees0n> [arr[0][1],arr[2][1]]
<jamesaanderson> That was an example. It's not that small. It's a response from an api so it extends
<r0bglees0n> well, you need to establish a pattern first
<r0bglees0n> otherwise there's no algorithm to write
<r0bglees0n> and i dont see the pattern from that small example
<jamesaanderson> inside the array there is an array for every result with a title attribute
<r0bglees0n> oh i see
<r0bglees0n> ok sure
<r0bglees0n> >> [["title", "foo"], ["title", "bar"], ["xyz", "ddd"]].map { |x| x[0] == "title" && x[1] }.compact
<eval-in> r0bglees0n => ["foo", "bar", false] (https://eval.in/37406)
<r0bglees0n> oh hang on
stormbytes has joined #ruby
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<r0bglees0n> >> [["title", "foo"], ["title", "bar"], ["xyz", "ddd"]].map { |x| x[0] == "title" || nil) && x[1] }.compact
<eval-in> r0bglees0n => /tmp/execpad-2820b0f0a472/source-2820b0f0a472:2: syntax error, unexpected ')', expecting '}' ... (https://eval.in/37407)
<r0bglees0n> >> [["title", "foo"], ["title", "bar"], ["xyz", "ddd"]].map { |x| (x[0] == "title" || nil) && x[1] }.compact
<eval-in> r0bglees0n => ["foo", "bar"] (https://eval.in/37408)
<r0bglees0n> best i can do
<r0bglees0n> kind of ugly
inimit has joined #ruby
locriani has joined #ruby
<r0bglees0n> >> [["title", "foo"], ["title", "bar"], ["xyz", "ddd"]].select { |(name, value)| name == "title" }
<eval-in> r0bglees0n => [["title", "foo"], ["title", "bar"]] (https://eval.in/37409)
blarghmatey_ has joined #ruby
osvico has joined #ruby
Yakko_ has joined #ruby
dlitz has quit [Quit: Leaving]
<r0bglees0n> >> [["title", "foo"], ["title", "bar"], ["xyz", "ddd"]].select { |(name, value)| name == "title" }.map { |x| x[1] }
<eval-in> r0bglees0n => ["foo", "bar"] (https://eval.in/37410)
<r0bglees0n> less ugly
jamesaanderson has joined #ruby
Yakko has quit [Ping timeout: 264 seconds]
<r0bglees0n> >> [["title", "foo"], ["title", "bar"], ["xyz", "ddd"]].select { |(name, _)| name == "title" }.map { |(_, value)| value }
<eval-in> r0bglees0n => ["foo", "bar"] (https://eval.in/37411)
<r0bglees0n> ok
<r0bglees0n> now it reads nice
<jamesaanderson> thanks
Pandee has quit [Ping timeout: 240 seconds]
rubynooby has joined #ruby
<r0bglees0n> youre welcome
<rubynooby> 'ello. I have a silly question and google has failed me, I was wondering if someone could assist.
sinusss has joined #ruby
<rubynooby> do tables include an id column by default or do i have to specify them
<stormbytes> whats wrong with this: (width-70)/2).round * " "
<stormbytes> or rather insert_buffer = ((width-70)/2).round * " "
codemannew has quit [Ping timeout: 276 seconds]
<zets> rubynooby: if you're talking rails, an id column will be created by default unless you specify not to
<rubynooby> indeed i am, thank you
cofin has joined #ruby
arya_ has quit []
bonobo has quit [Quit: WeeChat 0.4.1]
Pandee has joined #ruby
dmiller_ has quit [Remote host closed the connection]
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
RobW_ has quit [Quit: RobW_]
brjannc| has quit [Ping timeout: 245 seconds]
lebek has joined #ruby
vlad_starkov has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
Spooner has quit [Remote host closed the connection]
viszu has quit [Quit: Leaving.]
stonevil_ has quit [Remote host closed the connection]
thepumpkin has quit [Remote host closed the connection]
brennanMKE has joined #ruby
yashshah_ has joined #ruby
gildo has joined #ruby
yashshah has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
DanKnox_away is now known as DanKnox
vlad_starkov has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
horofox_ has quit [Quit: horofox_]
jarin has joined #ruby
mary5030 has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
stormbytes has quit [Quit: Leaving...]
codepython777 has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
Cyrus has quit [Quit: Cyrus.close()]
codepython777 has left #ruby [#ruby]
horofox_ has joined #ruby
codemannew has joined #ruby
Roa has quit [Ping timeout: 240 seconds]
stormbytes has joined #ruby
k3rn3lit1 has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Quit: stuff]
NeilCarvalho has joined #ruby
Yakko_ is now known as Yakko
Yakko_ has joined #ruby
Bry8Star{T2 has joined #ruby
platzhirsch has left #ruby [#ruby]
RORgasm has joined #ruby
<waxjar> stormbytes: same as before, " " * sum instead of sum * " ". * isn't an operator in Ruby, it's just a method with the name *. 1 * 1 is equivalent to 1.*(1)
poga has joined #ruby
<stormbytes> yes trial and error :)
<stormbytes> gotta keep that in mind
niklasb has quit [Ping timeout: 240 seconds]
<waxjar> your example failed because the * method on an Integer expects another Integer, the * method on a String however behaves differently :)
Yakko has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
pipework has quit [Read error: Connection reset by peer]
cj3kim has quit [Remote host closed the connection]
pipework has joined #ruby
fierycatnet has quit [Ping timeout: 241 seconds]
RORgasm has quit [Ping timeout: 276 seconds]
wallerdev has joined #ruby
mansi has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
Kruppe has quit [Ping timeout: 240 seconds]
DanKnox is now known as DanKnox_away
Yakko has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
fierycatnet has joined #ruby
Yakko_ has quit [Ping timeout: 246 seconds]
Guga_ has quit [Quit: ~]
robustus has quit [Ping timeout: 248 seconds]
robustus has joined #ruby
lys1 is now known as lys
lys has quit [Quit: lys]
emergion has joined #ruby
Guga_ has joined #ruby
Yakko has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
yashshah_ has quit [Ping timeout: 240 seconds]
Yakko has joined #ruby
n1x has quit [Ping timeout: 256 seconds]
Yakko has quit [Ping timeout: 246 seconds]
Dekade has quit []
kasper has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Pandee has quit [Ping timeout: 245 seconds]
Pandee has joined #ruby
Mars` has joined #ruby
n1x has joined #ruby
nanoxd has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Pandee has quit [Ping timeout: 276 seconds]
dominikh has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
asteve has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dallasm has joined #ruby
DonRichie has quit [Quit: Verlassend]
<prsn> Is there a way to negate the check in a case/when? I'd to say something like 'case x when not 2, 3 then puts "x is not 2 or 3!" end'
cj3kim has quit [Remote host closed the connection]
radic_ has joined #ruby
rshetty has joined #ruby
<heftig> nope
<waxjar> kinda defeats the purpose of a case statement
radic has quit [Ping timeout: 240 seconds]
<heftig> case cav have an "else" branch
<heftig> *can have*
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emergion has joined #ruby
marcdel has joined #ruby
<epitron> >> trial && error
<eval-in> epitron => undefined local variable or method `trial' for main:Object (NameError) ... (https://eval.in/37412)
<epitron> doesn't seem like a good method
diabel232 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nitish has joined #ruby
cads is now known as maxsu
Mars` has quit [Ping timeout: 240 seconds]
thecommongeek has joined #ruby
NeilCarvalho has quit [Quit: NeilCarvalho]
maxsu is now known as cads
lebek has quit [Ping timeout: 260 seconds]
zodiak has joined #ruby
blarghmatey_ has quit [Ping timeout: 276 seconds]
allaire has joined #ruby
guns has joined #ruby
brjannc has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
hogeo has joined #ruby
Guga_ has quit [Remote host closed the connection]
Guga_ has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
shb_ has joined #ruby
threesome has quit [Ping timeout: 260 seconds]
hogeo_ has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
cjsarette has quit [Ping timeout: 245 seconds]
emergion has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thepumpkin has joined #ruby
lennox has joined #ruby
guns has quit [Quit: guns]
rshetty has quit [Quit: Sleeping]
ckrailo has quit [Quit: Computer has gone to sleep.]
nbouscal has joined #ruby
jamesaanderson has quit [Quit: Textual IRC Client: www.textualapp.com]
thepumpkin has quit [Ping timeout: 256 seconds]
icecandy has quit [Read error: Connection reset by peer]
icecandy has joined #ruby
shb_ has left #ruby ["Leaving"]
pr0ggie has joined #ruby
staafl has quit [Ping timeout: 246 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stormbytes has quit [Quit: Leaving...]
stormbytes has joined #ruby
rubynooby has quit [Ping timeout: 250 seconds]
thams has joined #ruby
bbunny has joined #ruby
ntus1017 has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
ThePicard has quit [Ping timeout: 240 seconds]
dominikh has joined #ruby
Artheist has joined #ruby
schickung has joined #ruby
finges has joined #ruby
atno has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
decoponio has joined #ruby
kasper has joined #ruby
pupperwares has quit [Quit: Leaving.]
pr0ggie has quit [Ping timeout: 245 seconds]
fierycatnet has quit [Ping timeout: 246 seconds]
bbunny has quit [Quit: leaving]
smathieu has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
kasper has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 276 seconds]
smathieu has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
mansi has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
marcgg has quit [Ping timeout: 264 seconds]
RORgasm has joined #ruby
atno has joined #ruby
marcgg has joined #ruby
ntus1017 has joined #ruby
airlok has joined #ruby
RORgasm has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
hogeo_ has quit [Ping timeout: 245 seconds]
cj3kim has quit [Remote host closed the connection]
splittingred has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
knightblader has joined #ruby
voltagex has joined #ruby
pupperwares has joined #ruby
pupperwares has quit [Client Quit]
pupperwares has joined #ruby
Guga_ has quit [Remote host closed the connection]
pupperwares has quit [Client Quit]
Guga_ has joined #ruby
serp` has joined #ruby
brunoro has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
atno__ has joined #ruby
poga has quit [Remote host closed the connection]
atno has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 240 seconds]
airlok has quit [Remote host closed the connection]
brunoro has quit [Ping timeout: 260 seconds]
wmoxam has quit [Ping timeout: 240 seconds]
stormbytes has quit [Quit: Leaving...]
sgkim126l has joined #ruby
d3 has joined #ruby
bbunny has joined #ruby
sinusss has quit [Ping timeout: 264 seconds]
_maes_ has joined #ruby
Notte has joined #ruby
sinusss has joined #ruby
hogeo has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: nettoweb]
ntus1017 has quit [Remote host closed the connection]
<musl> RSpec: Is there a way to hide a gem so that I can test how a class falls back to other code?
Es0teric has joined #ruby
yacks has quit [Quit: Leaving]
sambao21 has joined #ruby
vlad_starkov has joined #ruby
ananthakumaran has joined #ruby
smathieu has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
schickung has quit [Quit: schickung]
ssvo has joined #ruby
thecommongeek has quit [Quit: Leaving]
iliketurtles has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
saintcajetan has quit [Remote host closed the connection]
<r0bglees0n> musl: mock require
<musl> r0bglees0n: Thanks!
burz has joined #ruby
akashj87 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sayan has joined #ruby
splittingred has quit [Quit: splittingred]
saintcajetan has joined #ruby
dallasm has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
lscott3 has joined #ruby
allaire has quit [Quit: allaire]
robscomputer has joined #ruby
wargasm1 has quit [Read error: Connection reset by peer]
Es0teric has quit [Quit: Computer has gone to sleep.]
jarin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jalcine has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
jonahR has joined #ruby
bradhe has joined #ruby
rshetty has joined #ruby
mahmoudimus has joined #ruby
mansi has quit [Remote host closed the connection]
burz has quit [Ping timeout: 264 seconds]
nitish has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 256 seconds]
stormbytes has joined #ruby
Guga_ has quit [Quit: ~]
<RubyPanther> make 2>&1 >/dev/null | grep 'error' | wc -l
<RubyPanther> 20 # extension hell
icecandy has quit [Remote host closed the connection]
stormbytes has quit [Ping timeout: 240 seconds]
passion_for_web has joined #ruby
Mars` has joined #ruby
<passion_for_web> Hi , everyone , I am new to the ruby language , and willing to learn...is there any peer to peer mentoring website for ruby apprentices like phpmentoring.org
Fire-Dragon-DoL has left #ruby [#ruby]
<passion_for_web> I am who looking for someone who can give me exercises , close to the real world , to help me practice the ruby language and also who could do code reviews and teach me various topics
<passion_for_web> I have been programming for 3 yrs in various languages....now I wanna dive into ruby
Alina-malina has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
ThePicard has joined #ruby
n1x has quit [Ping timeout: 261 seconds]
Iszak has joined #ruby
iliketurtles has joined #ruby
horofox_ has quit [Quit: horofox_]
stkowski has quit [Quit: stkowski]
wallerdev has quit [Quit: wallerdev]
iliketurtles has quit [Client Quit]
smathieu has joined #ruby
<epitron> so you want a personal ruby tutor?
n1x has joined #ruby
codesoda has joined #ruby
DestinyAwaits has joined #ruby
<passion_for_web> yup
gildo has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby
<passion_for_web> more appropriately looking for unpaid apprenticeship
vdandre_ has quit [Quit: leaving]
<passion_for_web> so someone teaches me , and I do their work for free if they are willing to give me a chance to work on real time projects
Artheist has quit [Read error: Connection reset by peer]
<passion_for_web> I have been working for the past 1.5 years in php, object oriented php , javascript, jquery, html , css , mysql , mvc , frameworks
RORgasm has joined #ruby
<passion_for_web> have been studying ruby for 3 months
robscomputer has quit [Remote host closed the connection]
<passion_for_web> before that I have done some .Net and mostly C / C++ and C#
iliketurtles has quit [Client Quit]
robscomputer has joined #ruby
CrozzCyborg has quit [Quit: ...]
_ffio_ has joined #ruby
robscomputer_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
ffio_ has quit [Ping timeout: 245 seconds]
[narcan] has joined #ruby
<RubyPanther> Ruby is more book-oriented.
RORgasm has quit [Ping timeout: 276 seconds]
cofin has quit [Quit: cofin]
<RubyPanther> listen to that and learn ruby
<zets> passion_for_web: sounds like a cool idea, though I don't know of anything like that for ruby
<passion_for_web> Thankyou Ruby Panther
muji has left #ruby [#ruby]
braincrash has joined #ruby
<passion_for_web> but I think programming can be learnt by doing only ....but I will surely see the video
ponyprincess has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
<ponyprincess> Hey guys, I'm going through the ruby on rails.org tutorial
<ponyprincess> and I keep getting this error about halfway through
<ponyprincess> "Showing /home/action/workspace/blog/app/views/posts/show.html.erb where line #3 raised: undefined method `title' for nil:NilClass"
braincra- has quit [Ping timeout: 245 seconds]
<ponyprincess> i'm pretty sure "title" isn't supposed to be a method it's just an attribute
<ponyprincess> idk what could be wrong, been stumped for about an hour
<passion_for_web> lol Ruby Panther!
<passion_for_web> i just listened to ur mp3
<passion_for_web> :D
<RubyPanther> its not mine, I only linked to it
<ponyprincess> can anyone hear me?
<RubyPanther> hello ponyprincess
<ponyprincess> hi
<RubyPanther> your object is nil. You have no foo. That is your problem.
<ponyprincess> right, I'm just learning so having a hard time figuring out where to look.
<RubyPanther> an "attribute" in ruby is just a method
<ponyprincess> hmm
<ponyprincess> ok so maybe it's the database
<RubyPanther> so foo = something() # is returning nil
<RubyPanther> always check your return values :)
<ponyprincess> <%= @post.title %>
thepumpkin has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
jimg has joined #ruby
<ponyprincess> this is my application
<ponyprincess> i feel like it something super obvious but I just started learning today so I can't tell yet.
Spami has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
<r0bglees0n> ponyprincess: @post is nil
<r0bglees0n> ponyprincess: did you assign it in controller
bradhe has joined #ruby
<ponyprincess> I think so
<ponyprincess> @post = Post.new(post_params)
rshetty has quit [Quit: Sleeping]
<r0bglees0n> show me your controller
<r0bglees0n> paste it
<ponyprincess> k sec, im in #rails guy is telling me it might be my database too
<r0bglees0n> it comes down to @post being nil, if you are doing Post.find_by_id then yeah it could be the DB
<r0bglees0n> @post = Post.new(post_params) wont return nil
lennox has quit [Remote host closed the connection]
<ponyprincess> hmm ok ty
bradhe has quit [Ping timeout: 240 seconds]
stormbytes has joined #ruby
sinusss has quit []
d4rkstalk3r has joined #ruby
stormbytes has quit [Ping timeout: 246 seconds]
<ponyprincess> is the contoller
mansi has joined #ruby
<r0bglees0n> show shouldnt be private
<r0bglees0n> do you use @post in new.html.erb?
jimg has quit [Remote host closed the connection]
<ponyprincess> i dont think show is private
<ponyprincess> that is new.html.erb
<ponyprincess> OH
<ponyprincess> I just put show at the top
<ponyprincess> and it worked
<ponyprincess> so i guess since it was underneath the private one it became private?
renderfu_ has joined #ruby
dmiller has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
<r0bglees0n> yeah
<ponyprincess> so private methods at the bottom
<r0bglees0n> yeah
<ponyprincess> OHH
<ponyprincess> i see
<ponyprincess> because
<ponyprincess> right above def post_params
<ponyprincess> is private
<r0bglees0n> routeable actions need to be public in rails
<ponyprincess> and EVERYTHING after that is private
<r0bglees0n> coorect
<ponyprincess> so cool so excited
<ponyprincess> i don't think i ever would've found that haha
noop has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 240 seconds]
r4do has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx3 has quit [Remote host closed the connection]
codemannew has quit [Ping timeout: 240 seconds]
serp` has quit [Quit: serp`]
dmiller has quit [Ping timeout: 240 seconds]
atno__ has quit [Remote host closed the connection]
cj3kim has joined #ruby
cj3kim has quit [Remote host closed the connection]
EPIK has quit [Ping timeout: 245 seconds]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
ehaliewicz has joined #ruby
ponyprincess has quit [Quit: Page closed]
smathieu has joined #ruby
nitish has joined #ruby
lscott3 has quit [Quit: Sleep]
JohnBat26 has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
stormbytes has joined #ruby
felixjet_ has joined #ruby
felixjet has quit [Ping timeout: 264 seconds]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
dhruvasagar has quit [Ping timeout: 260 seconds]
r4do has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
braincra- has joined #ruby
tomzx_mac has quit [Ping timeout: 246 seconds]
marcgg has quit [Ping timeout: 264 seconds]
braincrash has quit [Ping timeout: 245 seconds]
marcgg has joined #ruby
iliketurtles has joined #ruby
cha1tanya has joined #ruby
Notte has quit [Remote host closed the connection]
Evixion has quit [Read error: Connection reset by peer]
subbyyy has quit [Ping timeout: 260 seconds]
Evixion has joined #ruby
Deele has joined #ruby
renderfu_ has quit [Remote host closed the connection]
CrozzCyborg has joined #ruby
Jedi_SCT1 has quit [Quit: See ya]
bradhe has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
Jedi_SCT1 has joined #ruby
wesside has joined #ruby
Jedi_SCT1 has quit [Client Quit]
diabel232 has joined #ruby
stormbytes has quit [Quit: Linkinus - http://linkinus.com]
bradhe has quit [Ping timeout: 245 seconds]
Jedi_SCT1 has joined #ruby
<pyoor> Hi all. Can anyone tell me why I'm getting the following uninitialized constant error when I have what seem to be the appropriate gems installed? - https://gist.github.com/anonymous/5993502
C0deMaver1ck has quit [K-Lined]
JaTochNietDan has quit [K-Lined]
yashshah_ has joined #ruby
JaTochNietDan has joined #ruby
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest7205
rshetty has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mansi has joined #ruby
zmike123 has joined #ruby
nomenkun has joined #ruby
Meatant has joined #ruby
<passion_for_web> just thought I should share codeschool is offering 2 free days of membership if you use this pass to sign up to codeschool http://go.codeschool.com/-st9vw
mansi has quit [Ping timeout: 245 seconds]
hamed_r has joined #ruby
leonid__ has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
bbunny has quit [Ping timeout: 240 seconds]
ssvo has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
rshetty has quit [Ping timeout: 246 seconds]
<epitron> excellent
<epitron> that should be enough time to learn enough ruby to write a scraper, and then scrape the site \o/
<passion_for_web> lol
braincra- has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
bbunny has joined #ruby
jarray52 has left #ruby [#ruby]
clocKwize has joined #ruby
clocKwize has quit [Client Quit]
DanKnox_away is now known as DanKnox
RORgasm has joined #ruby
Xeago has joined #ruby
DanKnox is now known as DanKnox_away
marr has joined #ruby
ffio has joined #ruby
RORgasm has quit [Ping timeout: 260 seconds]
_ffio_ has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
bbunny has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
blitz has joined #ruby
ffio has quit [Excess Flood]
ehaliewicz has quit [Remote host closed the connection]
brennanMKE has joined #ruby
ffio has joined #ruby
hammond has joined #ruby
agjacome has joined #ruby
<hammond> so I was thinking what scripting language to learn, php ruby or python
<hammond> like which has more support is simpler and is more useful(is being used everywhere)
workmad3 has joined #ruby
<hammond> oh perl too.
<hammond> anyone?
<waxjar> and you're asking #ruby? :P
mengu has joined #ruby
<hammond> yes
<hammond> maybe someone has used them.
<hammond> the others.
<hammond> lol
<passion_for_web> well to tell you the truth , I know both ruby and php
<passion_for_web> php is more conventional and closer to other languages in syntax....but i just love ruby
<r0bglees0n> hammond: dont learn php
ddv has quit [Ping timeout: 246 seconds]
<passion_for_web> precisely because it's so different
<r0bglees0n> ruby or python is fine
<r0bglees0n> but php is a bad choice if you want to be a good programmer
<passion_for_web> once you learn ruby , you will never look back
brennanMKE has quit [Ping timeout: 256 seconds]
<waxjar> haha. you're gonna regret learning php, but there's a lot of work for php programmers. ruby and python are very much alike i read (obviously i prefer ruby). perl i dont know too much about
<hammond> well im inclined to learn php as most servers use it as a language.
_veer has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
<r0bglees0n> sure but its shitty
<r0bglees0n> idk
<r0bglees0n> your call =p
<r0bglees0n> thats my 2c
<hammond> ok
mengu has quit [Ping timeout: 276 seconds]
n1x has quit [Ping timeout: 245 seconds]
<apeiros> I think the one thing python and ruby coders agree is that php is a horrible hack of a language
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<hammond> lol
ddv has joined #ruby
dash_ has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
<apeiros> out of perl, php, python and ruby I'd recommend either python or ruby.
Spooner has joined #ruby
<apeiros> my personal preference is clearly ruby. but there are valid reasons for python.
<ChristianS> perl is ok too. but php stinks.
<apeiros> I did ~6y of perl, and while perl is powerful and has a huge library, I'd not recommend it.
<hammond> hehe why is php so bad? it doesn't have sophisticated libraries or functions like the others?
<waxjar> it never was intended as a language, really
renderful has joined #ruby
<ChristianS> hammond: it's not the libraries, it's just that the core language is a mess
<waxjar> it evolved from a couple of tools to the.. thing it is now
<apeiros> above link portrays part of the horror excellently.
atno has joined #ruby
<hammond> lol
<hammond> ok
k610 has joined #ruby
monkegjinni has joined #ruby
JohnBat26 has joined #ruby
tonini has joined #ruby
renderful has quit [Ping timeout: 245 seconds]
tonini has quit [Remote host closed the connection]
voltagex has left #ruby ["WeeChat 0.3.8"]
tonini has joined #ruby
DanKnox_away has quit [Ping timeout: 240 seconds]
DanKnox_away has joined #ruby
mansi has joined #ruby
DanKnox_away is now known as DanKnox
ericmathison has quit [Ping timeout: 276 seconds]
atno has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 245 seconds]
atno has joined #ruby
yashshah_ has quit [Ping timeout: 276 seconds]
mansi has quit [Ping timeout: 240 seconds]
GeissT has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
GeissT has joined #ruby
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
atno has quit [Remote host closed the connection]
thams_ has joined #ruby
tvw has joined #ruby
atno has joined #ruby
n1x has joined #ruby
Speed has joined #ruby
blitz has quit [Quit: This computer has gone to sleep]
thams has quit [Ping timeout: 240 seconds]
thams_ is now known as thams
nomenkun has joined #ruby
jonahR has quit [Quit: jonahR]
r4do has joined #ruby
BizarreCake has joined #ruby
Macklemore has joined #ruby
Macklemore has quit [Client Quit]
tonini has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 276 seconds]
ybart has joined #ruby
n1x has quit [Ping timeout: 260 seconds]
smathieu has joined #ruby
tonini has joined #ruby
nomenkun has quit [Ping timeout: 276 seconds]
tonini has quit [Remote host closed the connection]
arietis has joined #ruby
tonini has joined #ruby
io_syl has quit [Quit: io_syl]
smathieu has quit [Ping timeout: 276 seconds]
mary5030 has quit [Remote host closed the connection]
passion_for_web has quit [Quit: Page closed]
decoponio has quit [Quit: Leaving...]
mary5030 has joined #ruby
braincrash has joined #ruby
ybart has quit [Quit: ybart]
locriani has quit [Remote host closed the connection]
rubybee has joined #ruby
locriani has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
<rubybee> Hi. I am writing data into a socket which is read by my server. the data I am sending is being sent like this: http://pastie.org/private/a0idclro3wmxwdnyo1ga
klaut has joined #ruby
<rubybee> How can I read this data from the server side ?
<rubybee> when I do not know the length of the incoming data ?
k610 has quit [Quit: Leaving]
rubybee has quit [Client Quit]
n1x has joined #ruby
threesome has joined #ruby
vlad_starkov has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
zavier has quit [Quit: WeeChat 0.4.0]
rubybee has joined #ruby
denver has joined #ruby
jbpros has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<iliketurtles> anyone know a way to generate all ascii characters as an array?
monkegjinni has joined #ruby
huttan has joined #ruby
zavier has joined #ruby
<apeiros> iliketurtles: Array.new(128) { |i| i.chr }
<apeiros> or Array.new(128, &:chr)
jbpros has quit [Client Quit]
<iliketurtles> apeiros: is there a way to do it as hex values there instead?
emergion has joined #ruby
<apeiros> why didn't you ask that instead then?
<apeiros> sure. Integer#to_s can give you about any base
<iliketurtles> apeiros: sorry lol :P
spider-mario has joined #ruby
<iliketurtles> wrote too fast for my own good
locriani has joined #ruby
thepumpk_ has joined #ruby
<iliketurtles> just i.to_s instead of i.chr?
<apeiros> and if you want it aligned, String#% may be your best choice
<rubybee> Hi. In this solution to a simple pub sub system, http://pastie.org/private/0j5acrxfn5r0bdy6pmfa how can i run the line #86: work independently ? and not in loop ?
<apeiros> iliketurtles: yes
<rubybee> something like in a thread ?
<apeiros> rubybee: will you leave 2min after asking this question too?
<apeiros> oh, 1min actually
<rubybee> apeiros, hehe.. no. apologies. ive got a flaky internet connection
gasbakid has joined #ruby
<r0bglees0n> apeiros: ohhhhhh nice
locriani has quit [Remote host closed the connection]
ntus1017 has joined #ruby
monkegjinni has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
vdandre has joined #ruby
bradhe has joined #ruby
thepumpkin has quit [Ping timeout: 240 seconds]
<iliketurtles> apeiros: thanks; I see i.to_s just gives me 0-127, but I thought hex would be 1a 1b 1c etc
<iliketurtles> a bit new to this sorry ^_^
<apeiros> iliketurtles: check Integer#to_s' docs :-p
<apeiros> of course it defaults to decimal
<r0bglees0n> >> Array.new(5, &:to_s)
<eval-in> r0bglees0n => ["0", "1", "2", "3", "4"] (https://eval.in/37416)
<r0bglees0n> well that is beautiful
<apeiros> well, the first 5 you can have easier (in decimal): [*"1".."4"]
yashshah_ has joined #ruby
<r0bglees0n> >> &:to_s.call(1)
<eval-in> r0bglees0n => /tmp/execpad-ec7bde6106ee/source-ec7bde6106ee:2: syntax error, unexpected & ... (https://eval.in/37417)
tonini has quit [Remote host closed the connection]
<r0bglees0n> is there a good way to demonstrate that
Astral_ has joined #ruby
<iliketurtles> seems like you can do: Array.new(128) { |i| i.to_s 16 }
<r0bglees0n> oh
<apeiros> iliketurtles: correct :)
<iliketurtles> 16 for base16 i suppose
<r0bglees0n> >> :to_s.to_proc.call(1)
<eval-in> r0bglees0n => "1" (https://eval.in/37418)
<r0bglees0n> there we go
<iliketurtles> didnt know this eval irc thing existed, sweet
bradhe has quit [Ping timeout: 240 seconds]
<r0bglees0n> it supports multiple versions
<r0bglees0n> 18>> RUBY_VERSION
<eval-in> r0bglees0n => "1.8.7" (https://eval.in/37419)
<r0bglees0n> 10>> RUBY_VERSION
<eval-in> r0bglees0n => /tmp/execpad-fd1800faaad5/source-fd1800faaad5:3: syntax error ... (https://eval.in/37420)
<r0bglees0n> well
julweber has joined #ruby
<r0bglees0n> ruby 1.0 is there too
Astralum has quit [Ping timeout: 252 seconds]
<iliketurtles> haha
<iliketurtles> 20>> RUBY_VERSION
<eval-in> iliketurtles => "2.0.0" (https://eval.in/37421)
<iliketurtles> nice
ddv has quit [Changing host]
ddv has joined #ruby
blackmesa has joined #ruby
mansi has joined #ruby
yashshah_ has quit [Ping timeout: 260 seconds]
<apeiros> for a single string, this one is shorter: "%03d\n"*128 % [*0...128]
* apeiros wonders whether it could be done shorter
goshakkk has joined #ruby
julweber has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 240 seconds]
razi has joined #ruby
nomenkun has joined #ruby
fenicks has joined #ruby
CaptainJet has quit []
Meatant has quit [Quit: free hat!]
n1x has quit [Read error: Connection reset by peer]
relix has joined #ruby
jamesaxl has joined #ruby
monkegjinni has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
seriously_random has joined #ruby
<seriously_random> why does `"123"[1]` give me `50`?
<apeiros> because you're using an ancient ruby and because you should read docs.
zz_pinage404 is now known as pinage404
yashshah has joined #ruby
<seriously_random> apeiros, I am ruby noob and I want to convert 123 to string and split it into array [1, 2, 3]
<apeiros> seriously_random: being a noob is not really an excuse for not reading docs, though.
<seriously_random> docs are torture for noobs
<apeiros> if you installed ruby with docs, you can use `ri`, e.g. `ri String#[]`
<apeiros> lazy noobs are torture for irc
<apeiros> if you didn't install the docs along ruby, there's ruby-doc.org and rdoc.info
m8 has joined #ruby
<apeiros> re "split a string": see String#split
<iliketurtles> seriously_random: might i suggest dash.app for OS X
<iliketurtles> ^_^
smathieu has joined #ruby
hamed_r has quit [Quit: Leaving]
<seriously_random> apeiros, I use ruby-doc.org, there is an example `a[2, 3]`
<apeiros> seriously_random: if you don't use ri, make sure you read the documentation version matching your ruby version
<apeiros> also, a[2,3] works differently than a[2] in 1.8
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
<seriously_random> can't I get a simple answer how to puts a single element of string at position i?
<apeiros> seriously_random: if you'd ask that, you could
marcgg_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
<apeiros> str[i,1]
<seriously_random> oooh, lol
KevinSjoberg has joined #ruby
<apeiros> but just to have it said: you obviously use ruby 1.8. ruby 1.8 is EOL and is no longer supported. it is *ANCIENT*.
<apeiros> use ruby 2.0, or at least 1.9.3
<seriously_random> apeiros, I use "http://repl.it/languages/Ruby"
timonv has joined #ruby
<apeiros> which is ruby 1.8, and says so too.
emergion has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby
RORgasm has joined #ruby
marr has quit [Ping timeout: 260 seconds]
inimit has quit [Quit: inimit]
cha1tanya has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 240 seconds]
huttan has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
RORgasm has quit [Ping timeout: 246 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n1x has joined #ruby
Astralum has joined #ruby
staafl has joined #ruby
osvico has joined #ruby
blackmesa has joined #ruby
Astral_ has quit [Ping timeout: 260 seconds]
DestinyAwaits has quit [Read error: Connection reset by peer]
DrShoggoth has quit [Read error: Operation timed out]
DestinyAwaits has joined #ruby
DrShoggoth has joined #ruby
klaut has quit [Remote host closed the connection]
emergion has joined #ruby
Kabaka has joined #ruby
zigomir has joined #ruby
tkdchen has joined #ruby
nomenkun has joined #ruby
tkdchen has left #ruby [#ruby]
maxmanders has joined #ruby
Iszak has joined #ruby
zooz has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
<seriously_random> how would you write a method that returns all permutations in a single array, separated by comma? http://pastie.org/8139557
bradhe has joined #ruby
codesoda has quit [Remote host closed the connection]
<apeiros> which one now? array or separated by comma? (the latter would be a string, not an array)
byprdct has joined #ruby
<seriously_random> apeiros, an array like this: `[123, 132, 213, 231, 312, 321]`
yashshah has quit [Ping timeout: 264 seconds]
<apeiros> >> 123.to_s.split.permutation.map { |e| e.join.to_i }
<eval-in> apeiros => [123] (https://eval.in/37424)
<apeiros> hu?
<apeiros> >> 123.to_s.split(//).permutation.map { |e| e.join.to_i }
<eval-in> apeiros => [123, 132, 213, 231, 312, 321] (https://eval.in/37425)
<apeiros> better
denver has quit [Remote host closed the connection]
arya_ has joined #ruby
<seriously_random> nice
jefflyne has joined #ruby
workmad3 has quit [Read error: Operation timed out]
jefflyne has quit [Max SendQ exceeded]
jefflyne has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
smathieu has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
fenicks has quit [Read error: No route to host]
mansi has joined #ruby
artofraw has joined #ruby
arya_ has quit []
smathieu has quit [Ping timeout: 240 seconds]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
fenicks has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 246 seconds]
cime has joined #ruby
<cime> hi! I'm trying to install bson_ext on a debian (testing) system and I get the following (not very usefull) error https://gist.github.com/cime/f6bdc5b21db3cf72e40f anybody know how can I fix that?
lkba has joined #ruby
<apeiros> >> Results logged to /var/lib/gems/1.9.1/gems/bson_ext-1.9.1/ext/cbson/gem_make.out
<eval-in> apeiros => /tmp/execpad-8b703e2486f6/source-8b703e2486f6:2: unknown regexp options - lb ... (https://eval.in/37426)
<apeiros> shut up, eval-in
codesoda has joined #ruby
workmad3 has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
jamesaxl has quit [Read error: Connection reset by peer]
marcgg_ has quit [Read error: No route to host]
marcgg has joined #ruby
<cime> apeiros: that file is empty :)
jamesaxl has joined #ruby
pen has quit [Read error: Connection reset by peer]
TheFuzzball has joined #ruby
pen has joined #ruby
sepp2k has joined #ruby
monkegjinni has joined #ruby
icco has quit [Ping timeout: 240 seconds]
viszu has joined #ruby
marcgg has quit [Read error: No route to host]
icco has joined #ruby
marcgg has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
KevinSjoberg has joined #ruby
smathieu has joined #ruby
viszu has quit [Ping timeout: 260 seconds]
romockee has joined #ruby
codecop has joined #ruby
nettoweb has joined #ruby
marr has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
nicoulaj has joined #ruby
<seriously_random> `(eval):866: syntax error, unexpected $end, expecting kEND
<seriously_random> mecca.cost({:rice => 1, :noodles => 1}, {:rice => 2, :noodles => 2})` -- why? -- http://pastie.org/8139637
GeekOnCoffee has quit [Read error: Operation timed out]
icco has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
<apeiros> *orders.each # <- invalid
romockee has quit [Read error: Connection reset by peer]
braincra- has joined #ruby
<apeiros> and why don't you install ruby on your own machine, so you can have somewhat more meaningful exceptions?
<apeiros> (and use a non-ancient version of ruby in the process…)
icco has joined #ruby
<seriously_random> I don't know, I am used to in-browser interpreters
pinage404 is now known as zz_pinage404
<seriously_random> apeiros, I prefer ipython notebook over python idle
brjannc has quit [Ping timeout: 276 seconds]
<apeiros> *shrug*, you choose your own pains I guess.
<seriously_random> apeiros, it's nice to change the code on the fly, correct it with mouse cursor (from noob's perspective)
tvw has quit []
braincrash has quit [Ping timeout: 276 seconds]
<apeiros> seriously_random: and you think browser interpreters are the only way to get that?
nettoweb has quit [Quit: nettoweb]
brjannc has joined #ruby
<seriously_random> apeiros, you know something for ruby?
<apeiros> I use sublime text and bbedit (latter is OSX only)
monkegjinni has joined #ruby
<seriously_random> I do use sublime text, once I have got the code running
relix has joined #ruby
zz_pinage404 is now known as pinage404
kil0byte has quit [Remote host closed the connection]
Spooner has quit [Remote host closed the connection]
razi has quit [Quit: Leaving.]
pinage404 is now known as zz_pinage404
choobie has quit [Ping timeout: 240 seconds]
choobie has joined #ruby
brjannc has quit [Ping timeout: 276 seconds]
akashj87_ has joined #ruby
brjannc has joined #ruby
icecandy has joined #ruby
mercwithamouth has joined #ruby
icco has quit [Read error: Operation timed out]
akashj87 has quit [Ping timeout: 246 seconds]
icco has joined #ruby
bradhe has joined #ruby
thepumpk_ has quit [Remote host closed the connection]
<seriously_random> how to put `q.keys.each { |key| puts key }` into method with splat arguments? http://pastie.org/8139669
Peej has quit [Ping timeout: 240 seconds]
Peej has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 245 seconds]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mercwithamouth has quit [Read error: Operation timed out]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
lebek has joined #ruby
TonyMergue has joined #ruby
akashj87__ has joined #ruby
Daemoen has quit [Ping timeout: 248 seconds]
<seriously_random> convert string `rice` to key `:rice`?
akashj87_ has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
tvw has quit [Client Quit]
<yxhuvud> to_sym. I hope you are not doing that on user submitted input
akashj87 has joined #ruby
<seriously_random> yxhuvud, learning ruby @http://rubymonk.com/
viszu has joined #ruby
<yxhuvud> (or anything else that are not bounded to reasonably small set)
<seriously_random> yxhuvud, I get `undefined method `to_sym'`
mansi has joined #ruby
<yxhuvud> >> 'rice'.to_sym
<eval-in> yxhuvud => :rice (https://eval.in/37427)
akashj87__ has quit [Ping timeout: 246 seconds]
Afhbl has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
<seriously_random> yxhuvud, http://pastie.org/8139686
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
Afhbl has quit [Remote host closed the connection]
<waxjar> btw, :these are Symbols, not keys. They tend to be used as keys in Hashes a lot, but you can use (almost) any object as a Hash key :)
cha1tanya has quit [Quit: cha1tanya]
marcgg has quit [Read error: No route to host]
akashj87_ has joined #ruby
tkuchiki has joined #ruby
marcgg has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
<seriously_random> waxjar, do you mind explaining why I can't even `puts @menu[i.to_s.to_sym]`? Why it's nil? http://pastie.org/8139693
relix has joined #ruby
Peej has quit [Ping timeout: 260 seconds]
tkuchiki_ has joined #ruby
Peej has joined #ruby
akashj87__ has joined #ruby
<apeiros> waxjar: in ruby 2.0 they are actually keys. but there comes seriously_random using ancient rubies, so it doesn't really matter :)
tkuchiki_ has quit [Read error: Connection reset by peer]
akashj87 has quit [Ping timeout: 246 seconds]
tkuchiki_ has joined #ruby
<apeiros> ah, actually he uses {}, so still no keys iirc
workmad3 has quit [Read error: Operation timed out]
monkegjinni has quit [Remote host closed the connection]
<waxjar> seriously_random: for loops aren't really used in Ruby. tbh i'm not even familiar with the semantics of them in Ruby
akashj87_ has quit [Ping timeout: 246 seconds]
gildo has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
akashj87 has joined #ruby
<artofraw> people developing on OS X with Vi
<artofraw> do you use tmux?
Splourian has joined #ruby
<seriously_random> waxjar, found the mistake `for i in l` outputs key+key, e.g. `ricenoodles`
<waxjar> apeiros: hmm, what do you mean?
Afhbl has joined #ruby
<apeiros> waxjar: ruby 2 has keyword args
gadgetoid_ has joined #ruby
akashj87__ has quit [Ping timeout: 246 seconds]
timonv has quit [Remote host closed the connection]
arya_ has joined #ruby
<waxjar> aah, i see. i specifically meant to point out the difference between a key and a Symbol
iko1 has joined #ruby
tkuchiki_ has quit [Ping timeout: 276 seconds]
Splourian has quit [Quit: Leaving]
wildcard0 has quit [Ping timeout: 260 seconds]
diabel232 has quit [Read error: Connection reset by peer]
diabel232 has joined #ruby
akashj87_ has joined #ruby
<waxjar> *hash key
DrShoggoth has joined #ruby
akashj87 has quit [Ping timeout: 246 seconds]
Peej has quit [Ping timeout: 260 seconds]
Peej has joined #ruby
tkuchiki has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
Peej has quit [Ping timeout: 240 seconds]
arya_ has quit [Ping timeout: 248 seconds]
tkuchiki_ has quit [Ping timeout: 256 seconds]
RORgasm has joined #ruby
akashj87__ has joined #ruby
arya_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
schickung has joined #ruby
akashj87_ has quit [Ping timeout: 246 seconds]
jbpros has joined #ruby
RORgasm has quit [Ping timeout: 276 seconds]
Iszak has joined #ruby
ZadYree has joined #ruby
felipebalbi has joined #ruby
gildo has quit [Quit: Leaving]
<felipebalbi> I want to use ruby to run compile tests on the linux-kernel, is there any gem which would help running the shell commands, or should I just use backtics|popen|popen3|popen4 ?
akashj87 has joined #ruby
akashj87__ has quit [Ping timeout: 246 seconds]
radic_ has quit [Ping timeout: 240 seconds]
kofno has quit [Remote host closed the connection]
akashj87_ has joined #ruby
prezJFK has quit [Remote host closed the connection]
yashshah has joined #ruby
<felipebalbi> hmm, looks like shell-executer is what I want, good
akashj87 has quit [Ping timeout: 246 seconds]
atmosx has quit [Ping timeout: 240 seconds]
end_guy has quit [Ping timeout: 240 seconds]
akashj87 has joined #ruby
felipebalbi has left #ruby [#ruby]
emergion has quit [Quit: Computer has gone to sleep.]
end_guy has joined #ruby
bradhe has joined #ruby
akashj87_ has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elaptics`away is now known as elaptics
kofno has joined #ruby
ntus1017 has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 240 seconds]
radic_ has joined #ruby
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has quit [Quit: leaving]
akashj87 has quit [Ping timeout: 246 seconds]
atmosx has joined #ruby
mansi has joined #ruby
marcgg has quit [Read error: No route to host]
klaut has joined #ruby
marcgg has joined #ruby
rickruby has quit [Remote host closed the connection]
ToApolytoXaos has joined #ruby
bbunny has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
DestinyAwaits1 has joined #ruby
jaybe has left #ruby ["."]
niklasb has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
DestinyAwaits has quit [Ping timeout: 240 seconds]
nitish has quit [Remote host closed the connection]
arya_ has joined #ruby
ju65rf has joined #ruby
emergion has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<ju65rf> Jesus there's alot of people in here.
jamesaxl has quit [Ping timeout: 246 seconds]
arya_ has quit [Ping timeout: 248 seconds]
ju65rf has left #ruby [#ruby]
DestinyAwaits2 has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg_ has joined #ruby
DestinyAwaits1 has quit [Ping timeout: 256 seconds]
arya_ has joined #ruby
krnflake_ is now known as krnflake
ntus1017 has joined #ruby
bbunny has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
michael_mbp is now known as zz_michael_mbp
horofox_ has joined #ruby
smathieu has joined #ruby
Notte has joined #ruby
arya_ has joined #ruby
klaut has quit [Remote host closed the connection]
Notte has quit [Ping timeout: 264 seconds]
enebo has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Quit: Leaving.]
sailias has joined #ruby
sailias has quit [Client Quit]
arya_ has quit [Ping timeout: 248 seconds]
Kibs has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
Notte has joined #ruby
maxmanders has joined #ruby
yashshah has quit [Ping timeout: 245 seconds]
zigomir_ has joined #ruby
zigomir has quit [Read error: Operation timed out]
arya_ has joined #ruby
maxmanders has quit [Client Quit]
rshetty has joined #ruby
enebo has quit [Quit: enebo]
dmiller has joined #ruby
jamesaxl has joined #ruby
kofno has quit [Remote host closed the connection]
wallerdev has joined #ruby
bradhe has joined #ruby
klaut has joined #ruby
timonv has quit [Remote host closed the connection]
wallerdev has quit [Client Quit]
bbunny has joined #ruby
Daemoen has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
rubybee has quit [Ping timeout: 246 seconds]
jefflyne has joined #ruby
schickung has quit [Quit: schickung]
schickung has joined #ruby
schickung has quit [Client Quit]
pskosinski has joined #ruby
n1x has quit [Ping timeout: 260 seconds]
eka has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
KevinSjoberg has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
freerobby has joined #ruby
subbyyy has joined #ruby
timonv has joined #ruby
timonv has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
codesoda has quit [Remote host closed the connection]
bbunny has quit [Ping timeout: 241 seconds]
eldariof has joined #ruby
Morrolan has quit [Ping timeout: 264 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
ravster has joined #ruby
wallerdev has quit [Quit: wallerdev]
bbunny has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
Morrolan has joined #ruby
klaut has joined #ruby
zmike123 has quit [Quit: ~]
Dekade has joined #ruby
allaire has joined #ruby
axeman- has joined #ruby
chrisramon has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
ananthakumaran has joined #ruby
axeman- has quit [Ping timeout: 240 seconds]
viszu has quit [Quit: Leaving.]
DestinyAwaits2 is now known as DestinyAwaits
io_syl has joined #ruby
DestinyAwaits has quit [Changing host]
DestinyAwaits has joined #ruby
KevinSjoberg has joined #ruby
bbunny has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
bklane has joined #ruby
Shirakawasuna has quit [Ping timeout: 260 seconds]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
eregon has quit [Remote host closed the connection]
mansi has joined #ruby
maxmanders has joined #ruby
n1x has joined #ruby
jbpros has quit [Quit: jbpros]
hogeo has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
hogeo has quit [Read error: Connection reset by peer]
arkiver has joined #ruby
hogeo has joined #ruby
axeman- has joined #ruby
thepumpkin has joined #ruby
maxmanders has quit [Ping timeout: 276 seconds]
alexwh has joined #ruby
lebek has joined #ruby
sayan has joined #ruby
wallerdev has joined #ruby
mansi has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
mansi has quit [Remote host closed the connection]
pgluciano has joined #ruby
goshakkk has joined #ruby
mansi has joined #ruby
EPIK has joined #ruby
bradhe has joined #ruby
sayan has quit [Read error: Connection reset by peer]
cofin has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
DonRichie has joined #ruby
denver has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 240 seconds]
thams has quit [Quit: thams]
heidar has quit [Quit: Connection closed for inactivity]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kasper has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexwh has left #ruby [#ruby]
axeman- has quit [Read error: Connection reset by peer]
axeman- has joined #ruby
yashshah has joined #ruby
sayan has joined #ruby
rshetty has quit [Quit: Sleeping]
axeman- has quit [Ping timeout: 240 seconds]
platzhirsch1 has joined #ruby
arietis has joined #ruby
<platzhirsch1> So if you use unless, then the not is also invisibly added to all the concatenated conditions (concatenated conditions I mean through the use of and, or, ..)
pupperwares has joined #ruby
workmad3 has joined #ruby
tvw has joined #ruby
marcgg has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
arkiver has quit [Ping timeout: 245 seconds]
ntus1017 has quit [Remote host closed the connection]
<platzhirsch1> nevermind, that's not the case
pupperwares has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
allaire has quit [Quit: allaire]
dhruvasagar has joined #ruby
codesoda has joined #ruby
<apeiros> platzhirsch1: `unless condition` is like `if !(condition)`
<apeiros> the condition as a whole is negated
mansi has joined #ruby
Guga_ has joined #ruby
codesoda has quit [Ping timeout: 240 seconds]
shouya has quit [Remote host closed the connection]
arkiver has joined #ruby
shouya has joined #ruby
dmiller has quit [Remote host closed the connection]
goshakkk has joined #ruby
roadt_ has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby
anonymuse has joined #ruby
sambao21 has joined #ruby
roadt_ has joined #ruby
xyz_ has joined #ruby
lys has joined #ruby
lys has quit [Client Quit]
smathieu has joined #ruby
Fire-Dragon-DoL has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
arkiver has quit [Quit: Leaving]
rubybee has joined #ruby
timonv has joined #ruby
enebo has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
hogeo has quit [Ping timeout: 276 seconds]
r4do has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
axeman- has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
<rubybee> Can somebody please do a code review for this piece of code: http://pastie.org/private/fngspxwlwnshcrfbqnhg
<platzhirsch1> apeiros: but unless c1 and c2 == if !c1 and c2
kofno has joined #ruby
iko1 has quit [Ping timeout: 245 seconds]
seriously_random has quit [Quit: Leaving]
camx has joined #ruby
JZTech101 has joined #ruby
cime has quit [Ping timeout: 245 seconds]
<heftig> platzhirsch1: no, if !(c1 and c2)
<platzhirsch1> ohhh
yashshah has quit [Ping timeout: 246 seconds]
<platzhirsch1> heftig: thanks... that's different
<platzhirsch1> now I can make some sense of my broken code
<platzhirsch1> probably by starting to use if instead
axeman- has quit [Ping timeout: 240 seconds]
rubybee has quit [Ping timeout: 246 seconds]
kofno has quit [Ping timeout: 245 seconds]
robscomputer_ has quit [Remote host closed the connection]
axeman- has joined #ruby
<apeiros> platzhirsch1: I didn't put those () for fun ;-p
timonv has quit [Remote host closed the connection]
robscomputer has joined #ruby
<platzhirsch1> apeiros: now that you say that and I revisited your statement that makes sense :)
emergion has quit [Quit: Computer has gone to sleep.]
yashshah has joined #ruby
axeman- has quit [Read error: Connection reset by peer]
axeman- has joined #ruby
DrCode has quit [Remote host closed the connection]
yashshah has quit [Client Quit]
bradhe has joined #ruby
DrCode has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 240 seconds]
pgluciano has quit [Remote host closed the connection]
nitish has joined #ruby
nitish has joined #ruby
nitish has quit [Changing host]
tomzx_mac has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
shouya1 has joined #ruby
sambao21 has joined #ruby
jonkri has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
ILoveYou has joined #ruby
shouya has quit [Ping timeout: 245 seconds]
Guest1988 has quit [Quit: Leaving.]
ericmathison has joined #ruby
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
enebo has quit [Quit: enebo]
freerobby has quit [Quit: Leaving.]
sambao21_ has joined #ruby
Guest7205 has quit [Changing host]
Guest7205 has joined #ruby
Guest7205 is now known as C0deMaver1ck
anonymuse has quit [Ping timeout: 256 seconds]
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
sambao21_ has quit [Ping timeout: 246 seconds]
wargasm has joined #ruby
trepidaciousMBR has joined #ruby
jefflyne has joined #ruby
ninegrid has quit [Read error: Operation timed out]
kasper has quit [Remote host closed the connection]
kasper has joined #ruby
arietis has quit [Ping timeout: 245 seconds]
Afhbl has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
RORgasm has joined #ruby
joast has joined #ruby
kasper has quit [Ping timeout: 264 seconds]
knightblader has quit [Ping timeout: 246 seconds]
chrisramon has quit [Quit: chrisramon]
marcdel has joined #ruby
smathieu has joined #ruby
ssvo has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
ffio_ has joined #ruby
ffio has quit [Ping timeout: 245 seconds]
cofin has quit [Quit: cofin]
axeman- has quit [Ping timeout: 245 seconds]
RORgasm has quit [Ping timeout: 248 seconds]
smathieu has quit [Ping timeout: 245 seconds]
leonid__ has quit [Ping timeout: 240 seconds]
dmiller has quit [Ping timeout: 264 seconds]
Afhbl has joined #ruby
thams has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
6JTAAW00D has quit [Ping timeout: 256 seconds]
DestinyAwaits1 has joined #ruby
kasper has joined #ruby
splittingred has joined #ruby
DestinyAwaits has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
pupperwares has joined #ruby
stranbird has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Asher has joined #ruby
sambao21 has joined #ruby
phite has joined #ruby
phite has quit [Changing host]
phite has joined #ruby
mansi has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
mansi has joined #ruby
<joshu_> hi guys I'm using rake-test to write tests for my api project. I;ve got one test that POSTs like this: post "/users/user/calls", "from=1234, to=4567". Just want some feedback on whether I'm doing it correctly ;)
vlad_starkov has quit [Remote host closed the connection]
<stranbird> Hi, all! I am a university student and have been using Ruby for development for several years. I love Ruby so much that I want to learning more about this language itself. Could you please give me some suggestions on how to dive in? Thanks~!
mansi has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
renderful has joined #ruby
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 248 seconds]
RichardBaker has joined #ruby
dEPy has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
bradhe has joined #ruby
RichardBaker has quit [Client Quit]
Zeeraw has quit [Quit: Computer has gone to sleep.]
arietis has quit [Read error: Connection reset by peer]
ssvo has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 240 seconds]
viszu has joined #ruby
<pyoor> Hi all. Would someone mind taking a look at this? I'm not very familiar with ruby and I'm trying to run someone elses code but I keep getting an error regarding an uninitialized constant. I believe I have all the correct gems installed but it doesn't appear to work --https://gist.github.com/anonymous/5993502
subbyyy has joined #ruby
Zeeraw has joined #ruby
<canton7> pyoor, looking at https://github.com/djberg96/win32-process, you don't need the 'include Windows::Process' line at all
<pyoor> canton7: does that apply to the rest of the includes as well?
nettoweb has joined #ruby
<canton7> pyoor, no idea
<pyoor> hrmm
<pyoor> because if I comment out Windows::Process, then the error of course continues on to the remaining includes
akashj87 has joined #ruby
<pyoor> I was able to work past it yesterday by changing the require to 'windows/process', 'windows/error', etc but then an error was triggered in the code calling it
mlue has quit [Ping timeout: 240 seconds]
<pyoor> and as I'm not very familiar with ruby or its libraries I'm kind of at a loss (I mostly code in python)
blaxter_ has joined #ruby
<canton7> pyoor, ooh, there's a difference between the win32/process and windows/process libraries?
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
scrollback has quit [Remote host closed the connection]
<pyoor> heh, don't ask me -- that's why I'm here ;)
scrollback has joined #ruby
timonv has joined #ruby
YaNakilon has joined #ruby
chrisramon has joined #ruby
mikewintermute has joined #ruby
<pyoor> looking at this code (unrelated) I'm seeing that the requires are in fact windows/error, windows/time, etc
<canton7> yeah, that's what I saw
<pyoor> however when I did change all of the requires to reflect that I triggered another error due to the use of those functions
matthalliday has joined #ruby
<pyoor> this is the code I'm trying to use -- https://github.com/grugq/RunTracer/tree/master/ruby
mikewintermute has quit [Client Quit]
eldariof has quit [Read error: Operation timed out]
<pyoor> oddly enough, I had used this same code about 9-12 months ago
akashj87 has quit [Ping timeout: 246 seconds]
<pyoor> unfortunately I no longer have the VM that I originally ran it on. So I'm not sure if it's an issue with the gems or the versions of these gems, etc
matthalliday has quit [Client Quit]
<pyoor> and this is the particular rb that is triggering an error - https://github.com/grugq/RunTracer/blob/master/ruby/cpumon.rb
robscomputer has quit [Remote host closed the connection]
lscott3 has joined #ruby
lscott3 has quit [Client Quit]
robscomputer has joined #ruby
Iszak has joined #ruby
freerobby has joined #ruby
Nies has joined #ruby
blaxter_ is now known as blaxter
vlad_starkov has joined #ruby
<pyoor> any idea why the Constants page here is blank? - http://rubydoc.info/gems/win32-process/0.7.2/frames
klaut has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 240 seconds]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
stranbird has left #ruby [#ruby]
colonolGron has joined #ruby
klaut has joined #ruby
kasper has quit [Remote host closed the connection]
<pyoor> hrmm, and trying just: require 'win32/process' ; include 'Windows::Process' in irb results in the same
<pyoor> same uninitialized constant error that is
kasper has joined #ruby
thepumpkin has quit [Remote host closed the connection]
thepumpkin has joined #ruby
workmad3 has joined #ruby
kasper_ has joined #ruby
kasper has quit [Read error: Connection reset by peer]
cime has joined #ruby
camx has quit [Remote host closed the connection]
Afhbl has quit [Remote host closed the connection]
kasper_ has quit [Remote host closed the connection]
kasper has joined #ruby
gadgetoid_ has quit [Ping timeout: 245 seconds]
TIJ has joined #ruby
romdi` has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
<romdi`> is it possible to add an additional condition to a when statement? case foo; when 'bar' && someting_else; end
tkuchiki has joined #ruby
<romdi`> I want the 'bar' to match against the foo, but require another separate condition for it to really match
Fire-Dragon-DoL has quit [Quit: Leaving.]
kasper has quit [Ping timeout: 240 seconds]
<apeiros> romdi`: no
<apeiros> if you want multiple conditions, use if/elsif
<romdi`> yeah thought so, thanks
smathieu has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
<pyoor> canton7: figured it out. Looks like it was a problem using the latest win32-api. Installing version 0.6.5 solved it.
<canton7> pyoor, aha good catch
thepumpk_ has joined #ruby
smathieu has quit [Ping timeout: 248 seconds]
<pyoor> canton7: I was lucky -- thanks for the help
zz_pinage404 is now known as pinage404
kasper has joined #ruby
pinage404 is now known as zz_pinage404
vdandre has quit [Quit: leaving]
arietis has joined #ruby
thepumpkin has quit [Ping timeout: 245 seconds]
mlue has joined #ruby
axeman- has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
klaut has quit [Remote host closed the connection]
nitish has quit [Remote host closed the connection]
axeman- has quit [Read error: Connection reset by peer]
n1x has quit [Ping timeout: 246 seconds]
axeman- has joined #ruby
karthikeyan has joined #ruby
<karthikeyan> so my first time entry into ruby irc
<karthikeyan> hello folks
Spami has quit [Quit: This computer has gone to sleep]
<apeiros> hi karthikeyan
pyoor has left #ruby [#ruby]
<karthikeyan> ppl check out my ruby book http://is.gd/ilr2013
<karthikeyan> its 100% free as in freedom
timonv has quit [Remote host closed the connection]
mansi has joined #ruby
zooz has left #ruby ["Leaving"]
<karthikeyan> so quiet wooh!
<apeiros> "Beauty is just skin deep. Only fools will get seduced by it. If you are using Mac, break free from itand try out GNU/Linux which is rock solid and DRM5 (Digital Rights Management) free."
<apeiros> seriously?
<karthikeyan> ya
<karthikeyan> agree 100%
<karthikeyan> but people want to be stupids
<spike|spiegel> lalalalalala
<apeiros> besides that it is factually wrong, it also doesn't exactly reflect well on you to put such a statement into a book.
cortexman has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
<spike|spiegel> And a ruby one at tht
cortexman has quit [Max SendQ exceeded]
lebek has joined #ruby
<apeiros> way to insult a rather large portion of ruby devs.
cortexman has joined #ruby
<karthikeyan> I did not write the book to gain good character look
<karthikeyan> I want to be honbest
<karthikeyan> honest I mean
<apeiros> there's honest and polite
<spike|spiegel> GNU/Linux sounds like RMS licking
<apeiros> seems you don't get the second part of that
<karthikeyan> I see it as call for liberation than an insult
klaut has joined #ruby
Sunshine_ has joined #ruby
<karthikeyan> RMS hates some of Linux distros
<apeiros> assertions "people want to be stupid" tell me you're weaseling out now.
<apeiros> +like
<spike|spiegel> 'fools' is not a word you can just throw anywhere you like
<karthikeyan> u can use that if you don't want to lick him
<apeiros> anyway, the impression you left with me is that of a dogmatic zealot. which pretty much means you've lost me as an audience.
vlad_starkov has joined #ruby
<karthikeyan> no problem
<Sunshine_> hihi. anybody intimately familiar with installing ruby & rails on arch?
<karthikeyan> if u don't want it throw away
<karthikeyan> or get the source and modify it!
DestinyAwaits1 has quit [Quit: Leaving]
<canton7> " In technical talk we call this concatenation (joining together). Why there
<canton7> are so many difficult words to learn when you want to be programmer? Who knows? Possibly
<canton7> speaking some non-understandable blah blah might make you look intelligent, possibly fetch higher
<canton7> pay" yeah you lost me as well
<canton7> oops, bad linebreaking my bad
locriani has joined #ruby
<spike|spiegel> Sunshine_: what specifically? arch packages latest ruby version.. and there usually no real notion of 'installing rails'
DrCode has quit [Remote host closed the connection]
<karthikeyan> why not try rvm sunshine?
Afhbl has joined #ruby
<Sunshine_> spike|spiegel: well! i *had* working installs of ruby and rails, and rails suddenly broke. i tried some tinkering, everything got worse
redgirl has quit [Ping timeout: 246 seconds]
<Sunshine_> so i tried uninstalling everything and doing it all clean
DrCode has joined #ruby
<karthikeyan> try rvm
<Sunshine_> and now there's no .gem/ruby/2.0.0 folder thing, i can't gem install shit
<karthikeyan> try rvm
thepumpk_ has quit [Remote host closed the connection]
<Sunshine_> i tried rvm once. it made things worse too.
<karthikeyan> oops
<karthikeyan> no idea!
thepumpkin has joined #ruby
yashshah has joined #ruby
<Sunshine_> like you'd think if you removed *everything* and did it clean, things would be good, yeah?
<karthikeyan> arch is no way based on debian right?
<Sunshine_> nope
<spike|spiegel> Sunshine_: just install ruby through pacman, and if you already got rid of rvm, just gem install rails after that should do
<Sunshine_> i tried.
<Sunshine_> ruby installed through pacman okay.
<Sunshine_> gem install hangs. or at least it looks like it does
axeman- has quit [Ping timeout: 248 seconds]
<spike|spiegel> get a better network
<Sunshine_> gem install -V outputs a bunch of lines, but nothing actually happens and it goes on indefinitely til i kill it
<Sunshine_> it's not a network problem. it's a i-fucked-something-up problem.
Zeeraw has quit [Quit: Computer has gone to sleep.]
<Sunshine_> but i can't even find where this magical fuck-up is.
<Sunshine_> (as if getting a better network was a viable thing anyway.)
<spike|spiegel> Sunshine_: work your brain a little harder, try installing a small gem without deps first... does it work?
<Sunshine_> bundler seems to install. takes a minute to get goin' but it's goin'.
<karthikeyan> gem install takes time
airlok has joined #ruby
<Sunshine_> (also, getting the "NOT IN YOUR PATH" error, but...of course it isn't, it doesn't even *exist*)
nettoweb has quit [Quit: nettoweb]
<Sunshine_> actually, shit, while i'm asking stupid questions: how do i add things to my path. i've done it successfully, kinda, i've done it largely unsuccessfully more often.
<apeiros> karthikeyan: !< and !> don't exist as methods/operators in ruby.
<karthikeyan> ok
<karthikeyan> got it
<karthikeyan> will change thanks
<Sunshine_> well, i'll try doing rails again anyway. if bundler installs, rails should. then i just hafta figure out the path...thing.
n1x has joined #ruby
<d3> хм
inimit has joined #ruby
Mars` has quit [Ping timeout: 245 seconds]
intuxicated has joined #ruby
airlok has quit [Remote host closed the connection]
<apeiros> your description of break/next is incomplete/inaccurate
Es0teric has joined #ruby
<apeiros> your important math discovery… you do 0/0, which is undefined. you probably should talk to a mathematician, he can explain what you do wrong.
<apeiros> (page 190)
<karthikeyan> thats a prank 0/0 ;)
arietis has quit [Read error: Connection reset by peer]
<karthikeyan> whats the problem with break and next?
<karthikeyan> how can I improve
<apeiros> tell how they relate to a method you write yourself, within which you yield
<apeiros> there's more than just iterators which make use of blocks
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
<spike|spiegel> does he cover flip-flops? callcc?
apeiros_ has joined #ruby
horofox_ has quit [Ping timeout: 260 seconds]
wildcard0 has joined #ruby
redgirl has joined #ruby
<spike|spiegel> ^-^
horofox_ has joined #ruby
arietis has joined #ruby
KevinSjoberg has quit [Ping timeout: 240 seconds]
yashshah has quit [Ping timeout: 276 seconds]
kasper has quit [Remote host closed the connection]
<apeiros_> Regexp.new is not very idiomatic to create a regex. Using the literal is better. e.g. /.*/ instead of Regexp.new('.*')
kasper has joined #ruby
jozefg has joined #ruby
tvw has quit []
<jozefg> Hello
<karthikeyan> hi jozefg
<jozefg> What's new and exciting over here?
NimeshNeema has quit [Quit: Connection closed for inactivity]
KevinSjoberg has joined #ruby
<spike|spiegel> hype
apeiros has quit [Ping timeout: 260 seconds]
<spike|spiegel> we sell hype by the pound
<Sunshine_> huh, lookit that. karthikeyan, you were right. rails is just taking forever and a day to install.
intuxicated has quit [Remote host closed the connection]
nbouscal has joined #ruby
iko1 has joined #ruby
<karthikeyan> ok
atno has quit [Remote host closed the connection]
<karthikeyan> try my ruby book
<jozefg> I just switched from Racket to Ruby for web stuff, it's nice
<karthikeyan> http://is.gd/ilr2013
freerobby has joined #ruby
kleinerdrache has joined #ruby
<apeiros_> your description of a constant is wrong
<apeiros_> constants don't have a constant value
<apeiros_> >> X = [1,2,3]; X << 4; X
<eval-in> apeiros_ => [1, 2, 3, 4] (https://eval.in/37447)
Kar- has joined #ruby
kasper has quit [Ping timeout: 246 seconds]
<apeiros_> constants have (or rather: are supposed to) a constant reference. i.e. they should always reference to the same object. but that object doesn't need to be "constant" (immutable)
<karthikeyan> ya
ssvo has joined #ruby
ravster has quit [Remote host closed the connection]
<karthikeyan> will cchange it
<spike|spiegel> nor are they really constant referencs
<spike|spiegel> get away with a warning
<karthikeyan> ya spike thats true
<karthikeyan> there are no real constants in ruby
<spike|spiegel> there are
<karthikeyan> but whats a constant that can be changed?
<karthikeyan> if you can change it its not a constant
<spike|spiegel> 'special exceptions'
<karthikeyan> example?
havenwood has joined #ruby
redgirl has quit [Ping timeout: 276 seconds]
freerobby has quit [Ping timeout: 260 seconds]
colonolGron has quit [Quit: Lost terminal]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
colonolGron has joined #ruby
<spike|spiegel> >> class C; end; Array = C; Array(0)
<eval-in> spike|spiegel => /tmp/execpad-1f834d8a406a/source-1f834d8a406a:2: warning: already initialized constant Array ... (https://eval.in/37452)
<spike|spiegel> magic
<karthikeyan> ahhhh!
n1x has quit [Read error: Connection reset by peer]
<spike|spiegel> and I cheated
<karthikeyan> it just shows a warning
brennanMKE has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
iceman^ has joined #ruby
RORgasm has joined #ruby
redgirl has joined #ruby
marcdel has joined #ruby
marcdel has quit [Client Quit]
brennanMKE has quit [Ping timeout: 264 seconds]
karthikeyan has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
marcdel has joined #ruby
Shirakawasuna has joined #ruby
RORgasm has quit [Ping timeout: 248 seconds]
robscomputer has quit [Ping timeout: 260 seconds]
DanKnox is now known as DanKnox_away
Fire-Dragon-DoL has joined #ruby
blaxter has quit [Quit: foo]
DanKnox_away is now known as DanKnox
bradhe has quit [Ping timeout: 256 seconds]
ssvo has quit [Ping timeout: 264 seconds]
inimit has quit [Quit: inimit]
maxmanders has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
krz has quit [Quit: krz]
marcdel has joined #ruby
krz has joined #ruby
Afhbl has quit [Remote host closed the connection]
Mars` has joined #ruby
workmad3 has joined #ruby
Afhbl has joined #ruby
iceman^ has quit [Remote host closed the connection]
kasper has joined #ruby
iceman^ has joined #ruby
freerobby has joined #ruby
endomorphism has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
n1x has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
freerobby has quit [Ping timeout: 260 seconds]
eldariof has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
kasper has quit [Ping timeout: 245 seconds]
endomorphism has quit [Client Quit]
syamajala has joined #ruby
lkba has joined #ruby
dkeefe75 has joined #ruby
kleinerdrache has quit [Quit: Ex-Chat]
xyz_ has quit [Remote host closed the connection]
iceman^ has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
pedestrian has joined #ruby
brennanMKE has joined #ruby
DonRichie has quit [Read error: Connection reset by peer]
iceman^ has joined #ruby
DanKnox is now known as DanKnox_away
DonRichie has joined #ruby
DanKnox_away is now known as DanKnox
arya_ has quit [Ping timeout: 248 seconds]
syamajala has quit [Quit: leaving]
syamajala has joined #ruby
krz has quit [Quit: krz]
va_guy has joined #ruby
devoldmx has joined #ruby
va_guy has quit [Client Quit]
Sunshine_ has quit [Quit: Lost terminal]
arietis has quit [Quit: Computer has gone to sleep.]
Ry0_ has joined #ruby
arietis has joined #ruby
blackmesa has joined #ruby
mlue_ has joined #ruby
<apeiros_> spike|spiegel: Array() is not the constant ::Array, though. It's the method Kernel#Array.
Mars` has quit [Ping timeout: 245 seconds]
iko1 has quit [Ping timeout: 245 seconds]
ChristianS has quit [Excess Flood]
ChristianS has joined #ruby
prezJFK has joined #ruby
cortexman has quit [Quit: Leaving.]
prezJFK_ has joined #ruby
viszu has quit [Quit: Leaving.]
prezJFK has quit [Ping timeout: 248 seconds]
Afhbl has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
viszu has joined #ruby
bradhe has joined #ruby
viszu has quit [Client Quit]
TheFuzzball has quit [Ping timeout: 245 seconds]
Ry0_ has quit [Remote host closed the connection]
codemannew has joined #ruby
wesside has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
sheiss has joined #ruby
TheFuzzball has joined #ruby
smathieu has joined #ruby
kirun has joined #ruby
bnagy has quit [Ping timeout: 246 seconds]
bnagy has joined #ruby
BizarreCake has quit [Read error: Operation timed out]
smathieu has quit [Ping timeout: 245 seconds]
mansi has quit [Remote host closed the connection]
Krajsnick has joined #ruby
mansi has joined #ruby
robbyoconnor has joined #ruby
intuxicated has joined #ruby
wildcard0 has quit [Ping timeout: 276 seconds]
iceman^ has quit [Remote host closed the connection]
darkstar| has joined #ruby
allsystemsarego has quit [Quit: Leaving]
darkstar| has left #ruby [#ruby]
darkstar| has joined #ruby
<darkstar|> would somebody be able to help me out with a rails question, not getting a response in the rails channel?
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
S0da has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
<havenwood> darkstar|: Rails channel is #RubyOnRails not #Rails btw.
cortexman has joined #ruby
<havenwood> darkstar|: Or you already tried #RubyOnRails?
mercwithamouth has quit [Ping timeout: 256 seconds]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
darkstar| has left #ruby [#ruby]
freerobby has joined #ruby
iliketurtles has joined #ruby
mercwithamouth has joined #ruby
iliketurtles has quit [Max SendQ exceeded]
bnagy has quit [Ping timeout: 246 seconds]
iliketurtles has joined #ruby
Speed has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
sheiss has quit [Quit: sheiss]
freerobby has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
lindenle has joined #ruby
cortexman has quit [Quit: Leaving.]
wildcard0 has joined #ruby
binw has quit [Read error: Connection reset by peer]
sambao21 has quit [Ping timeout: 246 seconds]
iliketurtles has quit [Ping timeout: 248 seconds]
lebek has joined #ruby
badquanta has quit [Remote host closed the connection]
badquanta has joined #ruby
chrisramon has quit [Quit: chrisramon]
CaptainJet has joined #ruby
binw has joined #ruby
Ry0_ has joined #ruby
Meatant has joined #ruby
sambao21 has joined #ruby
ehaliewicz has joined #ruby
brennanM_ has joined #ruby
iliketurtles has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
TheFuzzball has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
Alina-malina has joined #ruby
brennanMKE has quit [Ping timeout: 264 seconds]
brennanM_ has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
TIJ has quit [Read error: Connection reset by peer]
TIJ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
sambao21 has quit [Ping timeout: 262 seconds]
roadt__ has joined #ruby
sayan has quit [Ping timeout: 264 seconds]
bklane has quit [Remote host closed the connection]
prezJFK has joined #ruby
denver has quit [Remote host closed the connection]
roadt_ has quit [Ping timeout: 276 seconds]
Es0teric has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
prezJFK_ has quit [Read error: Connection reset by peer]
thepumpk_ has joined #ruby
dmiller has joined #ruby
lscott3 has joined #ruby
sayd has left #ruby ["Textual IRC Client: www.textualapp.com"]
Es0teric has quit [Client Quit]
thepumpkin has quit [Ping timeout: 245 seconds]
<apeiros_> havenwood: don't you love those polite and nice people who say thank you and then leave?
relix has joined #ruby
<havenwood> or ask once an hour, and get replies each time, only to re-ask :P
paissad_ has quit [Ping timeout: 246 seconds]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
Ry0_ has quit [Remote host closed the connection]
huoxito has joined #ruby
tatsuya_o has joined #ruby
cortexman has joined #ruby
cortexman has quit [Max SendQ exceeded]
kasper has joined #ruby
kasper has quit [Read error: Connection reset by peer]
pr0ggie has joined #ruby
kasper has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
moos3 has quit [Ping timeout: 240 seconds]
paissad_ has joined #ruby
Ry0_ has joined #ruby
jbpros has joined #ruby
paissad_ has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 240 seconds]
<apeiros_> havenwood: hehe, indeed
paissad has joined #ruby
timonv has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
smathieu has joined #ruby
<colonolGron> i would like to use ruby to draw some geometric figures for maths class, are there any good libraries for that? of graphics in general?
tatsuya_o has quit [Remote host closed the connection]
Ry0_ has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 276 seconds]
gr33n7007h has joined #ruby
cortexman has joined #ruby
vlad_starkov has joined #ruby
cortexman has quit [Max SendQ exceeded]
<Kelet> colonolGron, Install image_magick and try quick_magick out, maybe.
<Kelet> colonolGron, If you just need lines, chunky_png is native and can draw lines and circles, but is not nearly as full featured as image_magick with the quick_magick or similar gem.
cortexman has joined #ruby
<Kelet> (there is also mini_magick, rmagick, etc - they are all gems that interface with image_magick which is image creation/modification software separate to ruby)
roadt__ has quit [Ping timeout: 276 seconds]
syamajala has quit [Quit: leaving]
d4rkstalk3r has quit [Read error: Operation timed out]
<colonolGron> Kelet: thank you, i will check it out!
vlad_starkov has quit [Ping timeout: 264 seconds]
bradhe has quit [Write error: Broken pipe]
bradhe has joined #ruby
leonid__ has joined #ruby
freerobby has quit [Quit: Leaving.]
Gugster has joined #ruby
Guga_ has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
lscott3 has quit [Quit: Sleep]
Gugster is now known as Guga_
kasper has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
Guest17548 has quit [Ping timeout: 246 seconds]
Cyrus has joined #ruby
radic_ has quit [Ping timeout: 246 seconds]
c0rn has joined #ruby
maxmanders has joined #ruby
momomomomo has joined #ruby
tatsuya_o has joined #ruby
maxmanders has quit [Max SendQ exceeded]
DanKnox is now known as DanKnox_away
digifiv5e has joined #ruby
maxmanders has joined #ruby
digifiv5e is now known as Guest14705
iko1 has joined #ruby
<colonolGron> so whats the difference between rmagick and quickmagic? (it seems i already have rmagic installed)
beneggett-alt has quit [Quit: beneggett-alt]
michaeldeol has quit [Ping timeout: 245 seconds]
<Kelet> colonolGron, rmagick basically interfaces with the image_magick API, whereas quickmagick just invokes the image_magick command-line utilities
<Kelet> colonolGron, rmagick will use more memory, whereas quickmagick may have trouble processing more complex images due to command-length restrictions on your OS
<Kelet> colonolGron, I would say use rmagick if you got it. It's just difficult to install on Windows, but you're probably not using Windows then.
<colonolGron> Kelet: i'm not. thanks
arya_ has joined #ruby
Mars` has joined #ruby
RobW_ has joined #ruby
TheRealPygo is now known as pygospa
eldariof has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
<gr33n7007h> Whats the difference between each and collect on an array?
<gr33n7007h> And how the hell fo you install tk?
<Kelet> gr33n7007h, On what operating system?
radic_ has joined #ruby
<gr33n7007h> Kelet, Debian
<Kelet> gr33n7007h, Run [1, 2, 3, 4, 5].collect { |x| x + 1 } in irb
<Kelet> and then run the same thing with each
<gr33n7007h> ok let me check
icecandy has quit [Remote host closed the connection]
<Kelet> gr33n7007h, Try installing libtcltk-ruby via apt-get
<gr33n7007h> Kelet, will try the now
obanta has joined #ruby
<Kelet> gr33n7007h, And the different between collect and each is that each returns the original array, and collect returns a modified array with the operation performed on each element.
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Kelet> The result in irb should be pretty telling.
<gr33n7007h> Ah, thanks so it does
<Kelet> So you use .collect when you want to modify the elements, and .each if you only want to use them or read them, for the most part
<Kelet> It's also worth noting .collect and .map are the same thing.
<gr33n7007h> Kelet, got it :)
<Kelet> It just so happens most languages call it map
<Kelet> and Ruby is nice to people from other languages
<gr33n7007h> Like it python
icecandy has joined #ruby
<Kelet> yep
<gr33n7007h> Yes tk works brilliant thank Kelet
<Kelet> Also worth noting that collect, inject and friends are provided by the Enumerable mixin. Many collections support it, and you can add it to your own class easily.
icecandy has quit [Remote host closed the connection]
<Kelet> Array is just one thing in particular that has it mixed in.
c0rn has quit [Ping timeout: 256 seconds]
<Kelet> (core-2.0.0 if you're on ruby 2 but I think Debian is still on 1.9.3)
<gr33n7007h> will have a look now cheers
<gr33n7007h> yes it is
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bnagy has joined #ruby
<iliketurtles> I'm trying to XOR two strings as byte arrays in ruby, ie "\x1A" ^ "\x1C" -- is this possible?
<iliketurtles> i know there isn't an XOR operator for strings
sambao21 has joined #ruby
<apeiros_> iliketurtles: no, there is not
<apeiros_> you can implement it using e.g. unpack("C*") and then map with ^ and pack the result
<Kelet> iliketurtles, Can't you just pad the byte arrays to the same size and xor the elements individually?
<apeiros_> if you want to improve performance, you can unpack("N*"), xor that, pack with "N*" again. but then you have to take care of the remaining bytes
<Kelet> I would probabably just do the unpack thing though.. :)
optimusprimem has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
optimusprimem has joined #ruby
c0rn has joined #ruby
<apeiros_> hrmpf, I really have to clean up my mess… I have it implemented. just no idea in which image of my old computers it is hiding…
<iliketurtles> apeiros_ thanks
optimusprimem has quit [Remote host closed the connection]
bradhe has joined #ruby
divi has joined #ruby
ewnd9 has joined #ruby
divi has left #ruby [#ruby]
optimusprimem has joined #ruby
radic_ has quit [Quit: Verlassend]
radic has joined #ruby
mahmoudimus has joined #ruby
bnagy has quit [Ping timeout: 240 seconds]
hamakn has quit [Ping timeout: 264 seconds]
dkeefe75 has quit [Quit: Lost terminal]
cads2 has joined #ruby
<iliketurtles> apeiros_ when you say map with ^ and pack the result, do you mean literally string.unpack("C*").map { }
Artheist has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
camx has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
hadees has joined #ruby
Bry8Star{T2 has joined #ruby
colonolGron has quit [Ping timeout: 245 seconds]
ewnd9 has quit [Remote host closed the connection]
cime has quit [Ping timeout: 248 seconds]
pierre1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jonkri has quit [Quit: jonkri]
colonolGron has joined #ruby
iko1 has quit [Ping timeout: 245 seconds]
codecop has quit [Remote host closed the connection]
ToApolytoXaos has quit [Quit: Leaving]
jbpros_ has joined #ruby
bklane has joined #ruby
momomomomo has quit [Quit: momomomomo]
bnagy has joined #ruby
dash_ has quit [Quit: Time to beer :)]
jbpros_ has quit [Client Quit]
maxmanders has quit [Quit: Computer has gone to sleep.]
jbpros has quit [Ping timeout: 256 seconds]
<apeiros_> iliketurtles: if you say "literally", then it's only "almost" ;-)
<iliketurtles> hahaha
<iliketurtles> well I went at it like so: self.unpack('C*').zip(other.unpack('C*')).map{ |a,b| a ^ b }.pack('C*')
<iliketurtles> but i'm not getting exactly the desired output; guess ill keep hacking
<apeiros_> that looks good
<apeiros_> misses length checks, though
smathieu has joined #ruby
<apeiros_> i.e., what do you do when a.bytesize != b.bytesize?
[Fudge] has quit [Changing host]
[Fudge] has joined #ruby
mlue has quit [Quit: leaving]
mlue_ has quit [Quit: leaving]
<iliketurtles> hmm good point
<apeiros_> if you just want to repeat the pattern, you can swap a/b so that a is always the shorter
<apeiros_> then use a.unpack("C*").cycle.zip
mlue has joined #ruby
mlue has quit [Changing host]
mlue has joined #ruby
<apeiros_> oh, actually that's a bad idea
<apeiros_> longer.zip(shorter.cycle)
<apeiros_> that way round
nettoweb has joined #ruby
mahmoudi_ has joined #ruby
<iliketurtles> apeiros_: a bit confused
mahmoudimus has quit [Ping timeout: 246 seconds]
<apeiros_> shorter,longer = *(self.bytesize > other.bytesize ? [other, self] : [self, other])
<apeiros_> longer.unpack("C*").zip(longer.unpack("C*").cycle).map { …
<apeiros_> gah
<apeiros_> longer.unpack("C*").zip(shorter.unpack("C*").cycle).map { …
mahmoudi_ has quit [Read error: Connection reset by peer]
<apeiros_> this will repeat the shorter pattern
smathieu has quit [Ping timeout: 245 seconds]
mahmoudimus has joined #ruby
<apeiros_> >> [1,2,3].cycle.first(5)
<eval-in> apeiros_ => [1, 2, 3, 1, 2] (https://eval.in/37465)
eregon has joined #ruby
realDAB has quit [Quit: realDAB]
<iliketurtles> ah nice
<Kelet> >> [1,2,3,4,5].map { |x| x % 2 == 0 }
<eval-in> Kelet => [false, true, false, true, false] (https://eval.in/37466)
<Kelet> oh cool
tatsuya_o has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
tatsuya_o has joined #ruby
TIJ has quit [Ping timeout: 256 seconds]
<iliketurtles> apeiros_ so it doesnt matter if theyre different length, this repeats to make them match?
<iliketurtles> testing now
eka has quit [Quit: Computer has gone to sleep.]
cortexman1 has joined #ruby
cortexman has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 264 seconds]
TIJ has joined #ruby
swordsmanz has quit [Ping timeout: 264 seconds]
Krajsnic_ has joined #ruby
effbiai has quit [Read error: Operation timed out]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
effbiai has joined #ruby
michaeldeol has joined #ruby
Davey has joined #ruby
mansi has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
Krajsnick has quit [Ping timeout: 256 seconds]
arya_ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
mansi has quit [Ping timeout: 256 seconds]
lindenle has quit [Quit: This computer has gone to sleep]
viszu has joined #ruby
iko1 has joined #ruby
ckrailo has joined #ruby
mary5030 has joined #ruby
nettoweb has quit [Quit: nettoweb]
mansi has joined #ruby
michaeldeol has quit [Ping timeout: 276 seconds]
pedestrian has quit [Quit: pedestrian]
workmad3 has quit [Ping timeout: 276 seconds]
tomzx_mac_ has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
nicoulaj has quit [Read error: Connection reset by peer]
lutfidemirci has joined #ruby
blackmesa has joined #ruby
artofraw has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
alyi has joined #ruby
mary5030 has joined #ruby
lindenle has joined #ruby
DanKnox_away is now known as DanKnox
alyi has quit [Remote host closed the connection]
alyi has joined #ruby
Bish_ is now known as Bish
tomzx_mac_ has quit [Ping timeout: 276 seconds]
jmimi has quit [Ping timeout: 276 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mary5030 has quit [Ping timeout: 276 seconds]
bradhe has joined #ruby
prezJFK has quit [Remote host closed the connection]
lindenle has quit [Ping timeout: 245 seconds]
kirun has quit [Quit: Client exiting]
Krajsnic_ has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 240 seconds]
Desert_eagle has quit [Ping timeout: 256 seconds]
Astral_ has joined #ruby
Meatant has quit [Quit: bbl]
Astralum has quit [Ping timeout: 264 seconds]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
Jedi_SCT1 has quit [Quit: See ya]
leonid__ has quit [Ping timeout: 248 seconds]
Pengoo has joined #ruby
Pengoo has quit [Excess Flood]
Spooner has joined #ruby
Jedi_SCT1 has joined #ruby
Desert_eagle has joined #ruby
RORgasm has joined #ruby
alyi has quit [Remote host closed the connection]
Pengoo has joined #ruby
vlad_starkov has joined #ruby
spider-mario has quit [Remote host closed the connection]
momomomomo has joined #ruby
RORgasm has quit [Ping timeout: 276 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lutfidem_ has joined #ruby
colonolGron has quit [Quit: Lost terminal]
ybart has joined #ruby
lutfidemirci has quit [Ping timeout: 260 seconds]
sambao21 has joined #ruby
horofox_ has quit [Quit: horofox_]
arya_ has quit [Ping timeout: 256 seconds]
Squarepy has joined #ruby
lutfidem_ has quit [Remote host closed the connection]
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
subbyyy has quit [Ping timeout: 260 seconds]
lutfidemirci has joined #ruby
subbyyy has joined #ruby
arya_ has joined #ruby
zigomir__ has joined #ruby
m8 has quit [Quit: Sto andando via]
camx has quit [Ping timeout: 240 seconds]
romdi`` has joined #ruby
cortexman1 has quit [Quit: Leaving.]
lutfidemirci has quit [Ping timeout: 248 seconds]
zigomir_ has quit [Ping timeout: 276 seconds]
daidoji has joined #ruby
romdi` has quit [Ping timeout: 246 seconds]
yashshah has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
n1x has quit [Ping timeout: 260 seconds]
arya_ has quit [Ping timeout: 248 seconds]
klaut has quit [Remote host closed the connection]
sepp2k has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
smlgs has joined #ruby
tommyvyo has joined #ruby
iko1 has quit [Ping timeout: 245 seconds]
arya_ has joined #ruby
saarinen has joined #ruby
codesoda has joined #ruby
yashshah has quit [Ping timeout: 264 seconds]
jefflyne has joined #ruby
elaptics is now known as elaptics`away
subbyyy has quit [Ping timeout: 246 seconds]
saarinen has quit [Ping timeout: 246 seconds]
subbyyy has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
arya_ has quit [Ping timeout: 246 seconds]
jozefg has quit [Quit: jozefg]
yacks has joined #ruby
michaeldeol has joined #ruby
Astralum has joined #ruby
mahmoudimus has joined #ruby
ybart has quit [Quit: ybart]
crazymykl has quit [Remote host closed the connection]
n1x has joined #ruby
Tamae has joined #ruby
idiocrash has joined #ruby
bradhe has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
sambao21 has quit [Quit: Computer has gone to sleep.]
<Kelet> >> puts RUBY_VERSION
<eval-in> Kelet => 2.0.0 ... (https://eval.in/37475)
<Kelet> How does it avoid programs that don't halt, or programs that consume extremely high amounts of resources? I'm guessing it has an external script that kills processes if they exist too long or use too many resources?
bradhe has quit [Ping timeout: 246 seconds]
rickruby has joined #ruby
<Kelet> Cool website though.
<Kelet> (And bot)
thepumpk_ has quit [Remote host closed the connection]
thepumpkin has joined #ruby
nopolitica has joined #ruby
lebek has joined #ruby
Artheist has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 245 seconds]
BrianJ has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
nopolitica has quit [Client Quit]
tatsuya_o has joined #ruby
arya_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fierycatnet has joined #ruby
fierycatnet has quit [Max SendQ exceeded]
jimg has joined #ruby
tatsuya_o has quit [Ping timeout: 245 seconds]
fierycatnet has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
sailias has joined #ruby
fierycatnet has quit [Client Quit]
thepumpk_ has joined #ruby
<platzhirsch1> Whoever recommended me Typhoeus back then, thanks. This library is totally rat
Es0teric has joined #ruby
jimg has quit [Read error: Connection reset by peer]
io_syl_ has joined #ruby
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
Es0teric has quit [Client Quit]
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
thepumpkin has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
jimg has quit [Read error: Connection reset by peer]
<heftig> >> sleep
<eval-in> heftig => (https://eval.in/37476)
jimg has joined #ruby
<heftig> >> loop { }
<eval-in> heftig => (https://eval.in/37477)
jimg has quit [Read error: Connection reset by peer]
zeade has joined #ruby
jimg has joined #ruby
zeade has quit [Client Quit]
jimg has quit [Remote host closed the connection]
pierre1 has quit [Ping timeout: 245 seconds]
predator217 has joined #ruby
Astral__ has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
S0da has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 264 seconds]
gstamp has joined #ruby
Astralum has quit [Ping timeout: 252 seconds]
ninegrid has joined #ruby
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
c0rn has quit [Quit: Computer has gone to sleep.]
threesome has quit [Read error: Operation timed out]
jimg has joined #ruby
nbouscal has quit [Ping timeout: 260 seconds]
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit:]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
osvico has quit [Ping timeout: 240 seconds]
YaNakilon has quit [Ping timeout: 260 seconds]
jimg has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
dmiller has quit [Remote host closed the connection]
elektronaut has quit [Ping timeout: 245 seconds]
franks2_ has quit [Ping timeout: 240 seconds]
elektronaut has joined #ruby
osvico has joined #ruby
fenicks has quit [Remote host closed the connection]
franks2 has joined #ruby
bradhe has joined #ruby
fabionl has joined #ruby
fabionl has quit [Client Quit]
ILoveYou has quit [Read error: Connection reset by peer]
Kar- has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Remote host closed the connection]
tvw has joined #ruby
stkowski has joined #ruby
nazty has quit [Read error: Connection reset by peer]
jefflyne has quit [Ping timeout: 248 seconds]
r0bgl33s0n has joined #ruby
lutfidemirci has joined #ruby
JoeTheGuest has quit [Quit: Connection closed for inactivity]
cjsarette has joined #ruby
r0bglees0n has quit [Ping timeout: 260 seconds]
blarghmatey has joined #ruby
elektronaut has quit [Ping timeout: 245 seconds]
RobW_ has quit [Quit: RobW_]
lutfidemirci has quit [Remote host closed the connection]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has quit [Ping timeout: 240 seconds]
elektronaut has joined #ruby