ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
bousquet has quit [Remote host closed the connection]
<perry> I'm working on a new sinatra app on a VPS... should I install rubinius or REE?
kjr has quit [Quit: kjr]
<lianj> perry: 1.9
<manveru> ruby :)
<darix> why not just plain ruby?
<darix> aka mri
<perry> I don't really know the differences :) saw some other options in rvm
bousquet has joined #ruby-lang
<manveru> rvm install ruby
mistym has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
alexkira has quit [Remote host closed the connection]
chendo_ has quit [Quit: Leaving...]
krohrbaugh1 has quit [Quit: Leaving.]
florentg2 has quit [Quit: florentg2]
hagebake has joined #ruby-lang
stardiviner has joined #ruby-lang
blazes816 has quit [Quit: blazes816]
dmwuw has quit [Remote host closed the connection]
malev has quit [Remote host closed the connection]
mistym has joined #ruby-lang
adam12 has joined #ruby-lang
adam12 has quit [Remote host closed the connection]
adam12_ has joined #ruby-lang
schroedinbug has quit [Ping timeout: 246 seconds]
oddmunds has quit [Ping timeout: 246 seconds]
phaedrix has quit [Ping timeout: 246 seconds]
schroedinbug has joined #ruby-lang
A124 has quit [Quit: Leaving.]
darix- has joined #ruby-lang
darix- has quit [Changing host]
darix- has joined #ruby-lang
khaase has joined #ruby-lang
dagobah_ has joined #ruby-lang
dmwuw has joined #ruby-lang
gsav has joined #ruby-lang
ryanlecompte has quit [Read error: Connection reset by peer]
ryanlecompte has joined #ruby-lang
adam12_ has quit [*.net *.split]
anannie has quit [*.net *.split]
tenderlove has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
codewrangler has quit [*.net *.split]
darix has quit [*.net *.split]
khaase_ has quit [*.net *.split]
MouseTheLuckyDog has quit [*.net *.split]
dagobah has quit [*.net *.split]
darix- is now known as darix
enebo has quit [Quit: enebo]
oddmunds has joined #ruby-lang
lsegal has joined #ruby-lang
anannie has joined #ruby-lang
phaedrix has joined #ruby-lang
toretore has quit [Read error: Connection reset by peer]
Assurbanipal_ has joined #ruby-lang
toretore has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
codewrangler has joined #ruby-lang
MouseTheLuckyDog has joined #ruby-lang
adam12 has joined #ruby-lang
tenderlove has joined #ruby-lang
cirenyc has quit [Quit: Linkinus - http://linkinus.com]
Assurbanipal has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
nertzy has joined #ruby-lang
LineByLine has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
weeb1e has quit [Ping timeout: 244 seconds]
datanoise has quit [Ping timeout: 252 seconds]
Assurbanipal_ has quit [Quit: Konversation terminated!]
toertore has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
florentg2 has joined #ruby-lang
jamjam has joined #ruby-lang
toretore has quit [Ping timeout: 246 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
LineByLine has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
hagabaka is now known as Guest46505
hagebake is now known as hagabaka
slyphon has joined #ruby-lang
toertore has quit [Quit: This computer has gone to sleep]
sn0wb1rd has quit [Quit: sn0wb1rd]
florentg2 has quit [Quit: florentg2]
<zzak> erikh: you would have to document the program generated by racc
bfreeman has quit [Quit: bfreeman]
justinseiter has joined #ruby-lang
schroedinbug has quit [Ping timeout: 244 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
<perry> can someone take a quick look at this? I am having issues installing gems that must be compiled
<perry> such as thin
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
irleif has joined #ruby-lang
jamjam has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<crankharder> is there any way to make irb never output more than X amount of text?
kgrz has quit [Quit: Computer has gone to sleep.]
<crankharder> like... say I did "a" * (10**100) -- that'd just scroll forever and ever. can i make irb cut that off automatically and give me my prompt back?
sn0wb1rd has joined #ruby-lang
<crankharder> also, i'd rather not kill the console as i may have variables in it that i'm currently working with
ryanf has quit [Ping timeout: 256 seconds]
<crankharder> also, i'm currently waiting for a terminal to stop scrolling right now, so i'll just keep trolling here
<crankharder> :)
irleif has quit [Quit: Computer has gone to sleep.]
<heftig> you could redefine ::IRB::Irb#output_value with whatever you want
mistym has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
datanoise has joined #ruby-lang
irleif has joined #ruby-lang
<crankharder> heftig: how does one do that?
Mon_Ouie has joined #ruby-lang
<heftig> class ::IRB::Irb; alias :_old_output_value :output_value; def output_value; if @context.inspect?; ...output @context.last_value here...; else; _old_output_value; end; end; end
justinmcp has quit [Remote host closed the connection]
bousquet has quit [Read error: Connection reset by peer]
qpingu has quit [Quit: Leaving.]
bousquet has joined #ruby-lang
florentg2 has joined #ruby-lang
<erikh> zzak: makes sense.
datanoise has quit [Ping timeout: 272 seconds]
ddd has quit [Quit: Leaving.]
<crankharder> heftig: where's class IRB? can't find it in any docs at http://www.ruby-doc.org/
<zzak> erikh: theres a bunch of stuff in lib that could be documented tho, lexer, parser and extras i believe
<heftig> crankharder: it's a module used to namespace irb's stuff
<crankharder> heftig: nvm, i got it, thanks :)
<zzak> erikh: racc stuff is hard tho, most of that stuff is internal api
<erikh> zzak: aye
<erikh> it makes enough sense. it was just a curiosity more than anything.
<erikh> anyhow wife time + pizza time = no irc
<erikh> later.
<zzak> laters
<zzak> i am taking your advice tho, found some time tonight for open-uri docs
roadt has joined #ruby-lang
Serial_Killer_C has joined #ruby-lang
ryanlecompte has joined #ruby-lang
ryanlecompte has quit [Ping timeout: 256 seconds]
hagabaka has quit [Read error: Connection reset by peer]
Guest46505 is now known as hagabaka
hagabaka is now known as Guest73678
Guest73678 is now known as hagabaka
<roadt> is it any way to interact with ruby1.9 builtin debugger?
<roadt> i tried the ruby-debug{,1.9,1.93}, it is unstable. hard to use.
swarley has joined #ruby-lang
<roadt> the only good one for me is the builtin -rdebug debugger, but i can't use without a editor or ide.
yats has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
sn0wb1rd has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 245 seconds]
<postmodern> roadt, just do `require 'debug'`
krohrbaugh has joined #ruby-lang
<postmodern> roadt, also i think the ruby-debug gem is unmaintained
<postmodern> roadt, there's the "debugger" gem which fixed some of the bugs, but the built-in debugger will always work
<roadt> postmodern, look so. i didn't try pry-debug yet. cause stick to builtin debugger seems better idea.
<postmodern> roadt, it works good enough (tm) :)
<roadt> postmodern, i found builtin debugger print some banner "emacs supported is enabled" and i know how matz love emacs .
<roadt> postmodern, but i don't see any article about integration of the builtin debugger and emacs .
<postmodern> roadt, https://github.com/ruby/ruby/blob/trunk/lib/debug.rb#L390-391 appears it just does that
<roadt> postmodern, hmm..
arooni-mobile has joined #ruby-lang
* roadt is trying..
arooni-mobile has quit [Ping timeout: 245 seconds]
deryldoucette has joined #ruby-lang
deryldoucette has quit [Client Quit]
ddd has joined #ruby-lang
<roadt> postmodern, seems real integration support in emacs is not implemented yet. at least they are other emacs mode suupport i didn't find yet.
<roadt> postmodern, will figure it out.
<postmodern> roadt, blaze the trail :)
<roadt> postmodern, starting from checking every matz's public code repo. ;)
lcdhoffman has quit [Quit: lcdhoffman]
<zzak> theres a bunch of stuff: https://github.com/ruby/ruby/tree/trunk/misc
<zzak> ruby-mode, etc
<zzak> zenspider: uses emacs too i believe, maybe he has some pointers
bfreeman has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
schroedinbug has joined #ruby-lang
weeb1e has joined #ruby-lang
ryanf has joined #ruby-lang
tonni_ has joined #ruby-lang
tonni has quit [Ping timeout: 240 seconds]
kain has left #ruby-lang ["exit"]
lcdhoffman has joined #ruby-lang
swarley has quit [Ping timeout: 260 seconds]
ryanf_ has joined #ruby-lang
ryanf has quit [Ping timeout: 255 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
BMF has joined #ruby-lang
florentg2 has quit [Quit: florentg2]
wyhaines has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
gmci has quit [Quit: Computer has gone to sleep.]
yats has quit [Ping timeout: 265 seconds]
artOfWar has joined #ruby-lang
coryf has joined #ruby-lang
justinseiter has quit [Remote host closed the connection]
<postmodern> is there a way of creating a Digest object, with a precalculated hash?
BMF has quit [Remote host closed the connection]
yellow5 has quit [Ping timeout: 272 seconds]
spectra has quit [Ping timeout: 246 seconds]
freedrull has quit [Ping timeout: 246 seconds]
blowmage has quit [Ping timeout: 256 seconds]
snk has quit [Ping timeout: 256 seconds]
steez has quit [Ping timeout: 276 seconds]
adgar has quit [Ping timeout: 260 seconds]
levicole has quit [Ping timeout: 256 seconds]
hackeron_ has quit [Ping timeout: 240 seconds]
hackeron has joined #ruby-lang
prathamesh_ has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
datanoise has joined #ruby-lang
blowmage has joined #ruby-lang
GarethAdams has joined #ruby-lang
levicole has joined #ruby-lang
yellow5 has joined #ruby-lang
adgar has joined #ruby-lang
spectra has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
steez has joined #ruby-lang
freedrull has joined #ruby-lang
steez is now known as Guest86278
snk has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
wyhaines has joined #ruby-lang
toretore has joined #ruby-lang
havenn has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 240 seconds]
kgrz has quit [Quit: Computer has gone to sleep.]
swarley has joined #ruby-lang
<GarethAdams> I have an open-uri `open` call that takes about 10 seconds because a DNS lookup takes a while (live-timing.formula1.com)
<GarethAdams> if I know (or can make an assumption) about the resolved IP address, can I short-circuit the DNS lookup and skip the delay?
<swarley> I suppose you could
<GarethAdams> how would I do that?
prathamesh_ has quit [Read error: Connection reset by peer]
prathamesh_ has joined #ruby-lang
ryanlecompte has joined #ruby-lang
justinmcp has joined #ruby-lang
prathamesh_ has quit [Read error: Connection reset by peer]
prathamesh_ has joined #ruby-lang
yats has joined #ruby-lang
ryanf_ is now known as ryanf
swarley has quit [Ping timeout: 255 seconds]
ryanf_ has joined #ruby-lang
ryanf has quit [Ping timeout: 260 seconds]
ryanf_ is now known as ryanf
justinmcp has quit [Remote host closed the connection]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
irleif has quit [Ping timeout: 240 seconds]
schroedinbug has quit [Ping timeout: 248 seconds]
coryf has quit [Remote host closed the connection]
irleif has joined #ruby-lang
faces has quit [Ping timeout: 252 seconds]
faces has joined #ruby-lang
roadt has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
arooni-mobile has joined #ruby-lang
yxhuvud has joined #ruby-lang
arooni-mobile has quit [Max SendQ exceeded]
artOfWar has quit [Remote host closed the connection]
ttilley has quit [Ping timeout: 240 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
arooni-mobile has joined #ruby-lang
anannie has quit [Ping timeout: 265 seconds]
arooni-mobile has quit [Max SendQ exceeded]
arooni-mobile has joined #ruby-lang
arooni-mobile has quit [Max SendQ exceeded]
arooni-mobile has joined #ruby-lang
havenn has quit [Remote host closed the connection]
arooni-mobile has quit [Max SendQ exceeded]
stardiviner has joined #ruby-lang
anannie has joined #ruby-lang
irleif has joined #ruby-lang
charliesome has joined #ruby-lang
swarley has joined #ruby-lang
MouseTheLuckyDog has quit [Quit: Leaving]
<zzak> GarethAdams: i would say look in net/http, since open-uri is just a wrapper for that
irleif has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby-lang
chendo_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ryanf has quit [Quit: broken pipes |||]
<rking> GarethAdams: Well, can you just use the IP, or is it going to VirtualHost you in the face?
datanoise has joined #ruby-lang
<TTilus> GarethAdams: use net/http, open connection to ip and send host header in case site is virtualhosted
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
ryanf has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<TTilus> andrewvos: omg O.o hope you get paid well, that kinda stuff begs for long rubber gloves
swarley has quit [Ping timeout: 246 seconds]
kristofferrr has joined #ruby-lang
snorkdude has joined #ruby-lang
kristofferrr has quit [Client Quit]
solars has joined #ruby-lang
<erikh> zenspider: any chance you're around?
artOfWar has joined #ruby-lang
<erikh> well, if you catch this later, you probably already know this, but I figured I should mention it anyhow
<erikh> the "new style" associative arguments, e.g. foo: true ruby_parser doesn't seem to handle
anannie has quit [Remote host closed the connection]
artOfWar has quit [Ping timeout: 240 seconds]
<rking> erikh: To be honest that sounds uncredible.
<erikh> eh?
thone_ has joined #ruby-lang
<rking> Wow, I guess it is true.
thone has quit [Ping timeout: 240 seconds]
<rking> I don't get the "why not look at the commits and comments" part
<rking> s/comments/releases
<erikh> maybe it's not in the latest release
<rking> That stuff is months old.
<rking> There must be a secret juju API to get it.
<erikh> ok, well, if you don't mind, instead of speculating I'd rather just talk to ryan
<erikh> I'm definitely getting it to blow up here, and if he needs code to prove it, he can see that and fix it as appropriate.
RomyRomy has joined #ruby-lang
<erikh> for now I'll have to solve my problem with ripper, though.
RomyRomy has quit [Client Quit]
<rking> Ok I'll stop looking into it for you.
<rking> =P
havenn has quit [Remote host closed the connection]
<rking> It's right there in the code. So much so that his answer to #39 was sarcastic dismission, so don't expect better.
qpingu has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
cardoni has joined #ruby-lang
havenn has joined #ruby-lang
piyush has joined #ruby-lang
schroedinbug has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<erikh> well, it's not pretty, but here's a basic tool to figure out if running your migrations in production are going to break the running app
rippa has joined #ruby-lang
stiang has joined #ruby-lang
havenn has quit [Remote host closed the connection]
<cardoni> nice
ridders24 has joined #ruby-lang
<cardoni> erikh: do you mostly do sys admin type of work? (You have a crap ton of interesting chef-related repos on gh)
<ridders24> hey guys, using the twitter gem and testing in irb, however when I try to request the first message from the timeline i get an error of Bad Authentication data. Why?
<erikh> cardoni: these days, yeah.
ryanf has quit [Quit: leaving]
<cardoni> nice. our sysadmin guy swears by chef. bastard keeps his recipes close to his chest, though
<cardoni> hah
<erikh> he doesn't really get devops, then.
snorkdude has quit [Remote host closed the connection]
<erikh> the current place I'm at is pretty formative when it comes to infra still, but a big priority for me is getting to the point where our team is secure enough in giving the keys to the devs for the less complicated matters.
<erikh> adding new packages, tweaking deployment, etc.
<cardoni> hah. he's mostly joking, except for whatever scripts related to business he feels have more sensitive data and whatnot in 'em. The second request to check out his stuff is all it usually takes I've found.
<erikh> ah, yeah. that's obviously a little more critical, but can be managed in other ways
<erikh> e.g., you could have your chef tooling in one spot, and your sensitive bits in another, and make the non-sensitive bits available to the team
<cardoni> Yeah, not sure why he doesn't just keep sensitive stuff in one yaml or something
<erikh> but yeah, as long as he's not being all basement dweller sysadmin about it
<erikh> store run, bbiab.
<cardoni> later
flebel has quit [Read error: Connection reset by peer]
ridders24 has quit [Quit: Leaving]
flebel has joined #ruby-lang
twintail has joined #ruby-lang
sepp2k has joined #ruby-lang
roadt has quit [Ping timeout: 255 seconds]
roadt has joined #ruby-lang
dous has joined #ruby-lang
roadt has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby-lang
flebel has quit [Read error: Operation timed out]
flebel has joined #ruby-lang
icooba has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
wallerdev has quit [Quit: wallerdev]
Fullmoon has quit [Quit: Fullmoon]
Hakon has joined #ruby-lang
dous has quit [Remote host closed the connection]
<rking> erikh: Ruby19Parser.new.parse() works perfectly fine.
<erikh> interesting. good to know, thanks.
<rking> erikh: If you're going to bug zenspider about it, I definitely advise doing so from the angle of, "Can you make the docs a bit clearer?" rather than "I found a bug: it doesn't support 1.9 style hashes"
<erikh> yeah, I made a comment about the clarity of the docs earlier today, he wasn't in the mood for it
<rking> I've had a similar experience for RubyInline. =)
<rking> I bet he could get 10x the adoption if the docs were 2x better.
<erikh> eh, I really doubt that.
<erikh> there aren't many competing projects that do the same things and honestly, most of them have worse docs by comparison
justinmcp has quit [Remote host closed the connection]
<rking> I wonder what takes the output of RubyParser/ParseTree and formats it back as text.
<erikh> melbourne's docs don't even fill a single page of my browser window
<erikh> dunno; he could definitely clarify that RubyParser isn't expected to work with 1.9, and that you should use Ruby19Parser though.
<erikh> I'll ask him to.
icooba has quit [Quit: Computer has gone to sleep.]
<rking> But even that isn't very clear.
<rking> You have to gem install ruby_parser --pre
<rking> 2.3.1 doesn't give one hoot about 1.9, it seems.
<erikh> oh, well, that may be why he hasn't changed the docs yet.
<rking> The README.md for the project does say Ruby19Parser.new
kgrz has joined #ruby-lang
<erikh> yeah, dunno. we're quickly heading back into that realm of pointless speculation, though.
<rking> Speculation about what?
<rking> http://rubygems.org/gems/ruby_parser has no docs link, only a "Homepage" link that points you here: https://github.com/seattlerb/ruby_parser
<rking> And that page says:
<rking> == SYNOPSIS:
<rking> Ruby19Parser.new.parse "1+1"
<erikh> yeah, not sure. considering the README.md on github probably reflects the prerelease (or an even newer tree) gem, intentions aren't very clear.
<rking> Yes. The gem you get if you clone that repo then "rake gem" is the one that has Ruby19Parser, which is also the "gem install ruby_parser --pre" one.
<erikh> diff them. also note that hoe has git tagging features on release.
Hakon has quit [Ping timeout: 245 seconds]
stiang has quit [Quit: stiang]
roadt has joined #ruby-lang
burgestrand has joined #ruby-lang
piyush has quit [Ping timeout: 252 seconds]
mytrile has joined #ruby-lang
anannie has joined #ruby-lang
facest has joined #ruby-lang
faces has quit [Ping timeout: 245 seconds]
kgrz has quit [Quit: Computer has gone to sleep.]
piyush has joined #ruby-lang
tbuehlmann has joined #ruby-lang
outoftime has joined #ruby-lang
ddv has quit [Changing host]
ddv has joined #ruby-lang
x0F__ has joined #ruby-lang
Assurbanipal has joined #ruby-lang
x0F__ is now known as x0F
x0F_ has quit [Ping timeout: 248 seconds]
justinmcp has joined #ruby-lang
jstemmer has quit [Quit: leaving]
sush24 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
twintail has quit [Quit: Leaving.]
wyhaines has joined #ruby-lang
banisterfiend has joined #ruby-lang
<banisterfiend> sup
toretore has quit [Quit: Leaving]
cardoni has quit [Quit: cardoni]
stiang has joined #ruby-lang
outoftime has quit [Quit: Leaving]
stiang has quit [Client Quit]
wyhaines has quit [Remote host closed the connection]
benanne has joined #ruby-lang
stiang has joined #ruby-lang
jstemmer has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
justinmcp has quit [Remote host closed the connection]
ananna has joined #ruby-lang
ananna has quit [Client Quit]
anannie has joined #ruby-lang
yats has quit [Ping timeout: 255 seconds]
jxie_ has joined #ruby-lang
<banisterfiend> anannie: sup
tbuehlmann has quit [Remote host closed the connection]
<anannie> hey banisterfiend
<anannie> how are you doing today banisterfiend?
<banisterfiend> anannie: not bad, u?
<anannie> banisterfiend: Getting better all the time
jxie has quit [Ping timeout: 252 seconds]
kgrz has joined #ruby-lang
piyush has quit [Ping timeout: 245 seconds]
<rue> What’s the state of the art in managing github from the CLI (main use case is pull requests both sending and receiving)? I’ve used git-pulls, but…?
<rue> Semi-ot, but you’ll know
A124 has joined #ruby-lang
florentg2 has joined #ruby-lang
florentg2 has quit [Client Quit]
jxie_ has quit [Quit: leaving]
banisterfiend has quit [Read error: Connection reset by peer]
mytrile has quit [Quit: Leaving.]
roadt has quit [Ping timeout: 245 seconds]
kgrz has quit [Ping timeout: 246 seconds]
Axsuul has quit [Ping timeout: 276 seconds]
postmodern has quit [Quit: Leaving]
piyush has joined #ruby-lang
A124 has quit [Quit: Leaving.]
A124 has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
roadt has joined #ruby-lang
sush24 has joined #ruby-lang
krz has joined #ruby-lang
prathamesh_ has quit [Ping timeout: 260 seconds]
tbuehlmann has joined #ruby-lang
robbin_ has joined #ruby-lang
robbin_ has quit [Remote host closed the connection]
robbin_ has joined #ruby-lang
gmci has joined #ruby-lang
banisterfiend has joined #ruby-lang
<banisterfiend> anyone here got ruby 1.8 ?
<matti> I do.
<matti> banisterfiend: ;] ;] ;] ;] ;] ;]
<banisterfiend> matti: does Object#singleton_methods exist?
<matti> One moment.
<banisterfiend> thx
<matti> krzysztof@samsung:~$ ruby -e 'p Object.respond_to?(:singleton_methods)'
<matti> true
<matti> ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
<banisterfiend> matti: awesome thx
<matti> ;]
<banisterfiend> saves me some time
<banisterfiend> matti: in 1.8 i guess it returns strings?
<matti> One moment.
<matti> (main):002:0> Object.singleton_methods[0].class
<matti> => String
<matti> Yep.
<banisterfiend> 1.8 is such a silly-head
<matti> LOL
twintail has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
vectorshelve has joined #ruby-lang
<vectorshelve> hoq can write a method to check if the input is 10 digit or not using regex https://gist.github.com/3884581
<matti> vectorshelve: Nice try!
twintail has quit [Ping timeout: 246 seconds]
seoaqua has joined #ruby-lang
<vectorshelve> matti: :D
vectorshelve has left #ruby-lang [#ruby-lang]
Assurbanipal has quit [Quit: Konversation terminated!]
runeb has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
runeb has quit [Ping timeout: 245 seconds]
mytrile has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
malev has joined #ruby-lang
sailias has joined #ruby-lang
kain has joined #ruby-lang
gmci has quit [Read error: No route to host]
robbin_ has quit [Remote host closed the connection]
saLOUt_ has joined #ruby-lang
gmci has joined #ruby-lang
bbita has joined #ruby-lang
bbita has left #ruby-lang [#ruby-lang]
brunocoelho has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
irleif has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
mytrile has quit [Read error: Connection reset by peer]
seoaqua has quit [Ping timeout: 240 seconds]
Pradeep has joined #ruby-lang
shevy has joined #ruby-lang
enebo has joined #ruby-lang
shevy has left #ruby-lang [#ruby-lang]
sailias has quit [Quit: Leaving.]
_tca has joined #ruby-lang
jamjam has joined #ruby-lang
mtparet has joined #ruby-lang
piyush has quit [Ping timeout: 252 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
Pradeep has quit [Quit: Leaving]
piyush has joined #ruby-lang
nertzy has joined #ruby-lang
piyush has quit [Ping timeout: 245 seconds]
_tca_ has joined #ruby-lang
Kingy has joined #ruby-lang
_tca has quit [Quit: leaving]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
roadt has quit [Ping timeout: 255 seconds]
justinseiter has joined #ruby-lang
gmci has quit [Read error: No route to host]
gmci has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
mtparet has quit [Remote host closed the connection]
snorkdude has joined #ruby-lang
irleif has joined #ruby-lang
gsav has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
stiang has quit [Quit: stiang]
coryf has joined #ruby-lang
datanoise has joined #ruby-lang
krz has quit [Quit: krz]
CaptainJet has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
prathamesh_ has joined #ruby-lang
sailias has joined #ruby-lang
irleif has joined #ruby-lang
saLOUt_ has quit [Quit: Konversation terminated!]
achiu has quit [Quit: WeeChat 0.3.7]
kgrz has joined #ruby-lang
sailias has quit [Quit: Leaving.]
justinseiter has quit [Read error: Operation timed out]
ddd has quit [Quit: Leaving.]
havenn has joined #ruby-lang
twintail has joined #ruby-lang
burgestrand1 has joined #ruby-lang
justinseiter has joined #ruby-lang
burgestrand has quit [Ping timeout: 246 seconds]
twintail has quit [Ping timeout: 276 seconds]
burgestrand1 is now known as burgestrand
kjr has joined #ruby-lang
icooba has joined #ruby-lang
Taranis has quit [Read error: Connection reset by peer]
Taranis has joined #ruby-lang
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
erichmenge has joined #ruby-lang
yats has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
tonni_ has quit [Remote host closed the connection]
Serial_Killer_C has joined #ruby-lang
cantonic_ has joined #ruby-lang
kjr has quit [Ping timeout: 246 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
Serial_Killer_C has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
JohnBat26 has joined #ruby-lang
<JohnBat26> Hi
<JohnBat26> I try install ruby-1.9.3-p286 via rvm and get next error: https://gist.github.com/3885330
<burgestrand> JohnBat26: try asking in #rvm
anannie has quit [Remote host closed the connection]
<JohnBat26> burgestrand: ok
ruby has joined #ruby-lang
kentos_ has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
nertzy has quit [Quit: This computer has gone to sleep]
kentos_ is now known as kentos
<kentos> hi all
stiang has joined #ruby-lang
stiang has quit [Client Quit]
ruby has quit [Ping timeout: 276 seconds]
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
JohnBat26 has joined #ruby-lang
JohnBat26 has quit [Client Quit]
wallerdev has joined #ruby-lang
justinseiter has quit [Ping timeout: 246 seconds]
anannie has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
JohnBat26 has joined #ruby-lang
justinseiter has joined #ruby-lang
elux has joined #ruby-lang
<elux> hey guys
<elux> is there a way to require a file into the current scope?
irleif has joined #ruby-lang
<elux> without having to do eval(IO.read("file.rb"))
irleif has quit [Client Quit]
<burgestrand> elux: elaborate "into current scope"
sepp2k has quit [Read error: Connection reset by peer]
nertzy has joined #ruby-lang
sepp2k has joined #ruby-lang
sailias has joined #ruby-lang
sailias has quit [Client Quit]
marc3000 has joined #ruby-lang
creede has joined #ruby-lang
chessguy has joined #ruby-lang
<matti> elux: load?
irleif has joined #ruby-lang
pbjorklund has quit [Ping timeout: 248 seconds]
icooba has quit [Quit: Computer has gone to sleep.]
arooni-mobile has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
tonni has joined #ruby-lang
Serial_Killer_C has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
lsegal has joined #ruby-lang
thmzlt has joined #ruby-lang
thmzlt has left #ruby-lang [#ruby-lang]
benanne has quit [Ping timeout: 260 seconds]
Madis has joined #ruby-lang
Carnage\ has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ryanf has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 245 seconds]
twintail has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
bubonicpestilenc has joined #ruby-lang
Kingy has quit [Quit: Leaving]
benanne has joined #ruby-lang
twintail has quit [Ping timeout: 246 seconds]
<whitequark> is it just me, or the phrase "Given improvements are inspired by [another project]." is woefully incorrect?
arooni-mobile has joined #ruby-lang
<tdy> as in syntax or semantics?
imajes has quit [Excess Flood]
<whitequark> tdy: grammar, therefore syntax.
<whitequark> and I'm not sure if semantics is clear without the context
imajes has joined #ruby-lang
<tdy> are you referring to the "given" part?
<whitequark> yes
<tdy> it might be more natural to say "The given improvements are inspired by X."
bubonicpestilenc has quit [Quit: My blog @ http://bubonicpestilence.ru/]
<whitequark> yes.
RegEchse has joined #ruby-lang
<tdy> i can't call myself a grammar expert, so i can't say if it's strictly incorrect or just unnatural :)
<whitequark> I know that the phrase was written by a russian programmer, and in Russian, the "given [noun]" is a correct, albeit slightly bureaucratic, word combination
datanoise has joined #ruby-lang
<whitequark> the correct word-for-word translation would probably be "present [noun]"
elico has joined #ruby-lang
<whitequark> it's not that I am, and I try not to bitch on people even when I'm 100% sure I'm correct, but looking at this phrase each time I open the project I work on is just too much
vlad_starkov has quit [Remote host closed the connection]
<tdy> heh
achiu has joined #ruby-lang
<whitequark> it awakens my inner grammar nazi, and he wants to spread fire and destruction.
<Spaceghostc2c> whitequark: Wrong channel, try ##english
<whitequark> Spaceghostc2c: oh, thanks.
havenn has quit [Remote host closed the connection]
jxie has joined #ruby-lang
datanoise has quit [Ping timeout: 265 seconds]
erichmenge has joined #ruby-lang
LineByLine has joined #ruby-lang
ddd has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
yxhuvud2 has joined #ruby-lang
yxhuvud has quit [Ping timeout: 256 seconds]
arooni-mobile has quit [Ping timeout: 246 seconds]
marc3000 has left #ruby-lang [#ruby-lang]
JohnBat26 has joined #ruby-lang
yxhuvud2 has quit [Client Quit]
yxhuvud has joined #ruby-lang
icooba has joined #ruby-lang
ruby has joined #ruby-lang
piyush has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
slyphon has quit [Ping timeout: 245 seconds]
datanoise has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
gsav has joined #ruby-lang
LineByLine has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
arooni-mobile has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
JohnBat26 has joined #ruby-lang
benanne has quit [Quit: kbai]
Serial_Killer_C has quit [Remote host closed the connection]
havenn has joined #ruby-lang
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
datanoise has quit [Ping timeout: 260 seconds]
ridders24 has joined #ruby-lang
<ridders24> mistym: i looked into using the twitter API, however it appears that to even read somthing off a page, it requires me to be a authenticated user
hramrach has joined #ruby-lang
<mistym> ridders24: Nope!
<mistym> require 'open-uri'; require 'json'; JSON.parse(open('http://api.twitter.com/1/statuses/user_timeline.json?screen_name=dogsdoingthings';).read).first['user']['description']
<mistym> That one-liner returns a Twitter user bio. (Not actually the best way to do it, that just happened to be the API url I had handy.)
arooni-mobile has quit [Ping timeout: 245 seconds]
<certainty> https://gist.github.com/3885785 so much boilerplate out there
nazty has joined #ruby-lang
<mistym> ridders24: Oh, right. Authentication in the 1.1 API. Which is fairly dumb, and they don't even allow you to do it from a non-user context yet. But you can still use the old GET stuff from the v1 API for now without authenticating.
elico has quit [Quit: Elico]
<ridders24> mistym: ahh ok maybe thats where i was going wrong then, cheers I'll look into that. Was frustrating keep getting the error about authentication
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
twintail has joined #ruby-lang
swarley has joined #ruby-lang
kentos has quit [Quit: Leaving]
yats has quit [Ping timeout: 245 seconds]
twintail has quit [Ping timeout: 265 seconds]
yats has joined #ruby-lang
cyri__ has joined #ruby-lang
icooba has quit [Ping timeout: 260 seconds]
prathamesh_ has quit [Excess Flood]
prathamesh_ has joined #ruby-lang
icooba has joined #ruby-lang
irleif has joined #ruby-lang
cyri_ has quit [Ping timeout: 272 seconds]
cyri__ is now known as cyri_
enebo has joined #ruby-lang
ryanlecompte has joined #ruby-lang
piyush has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby-lang
imajes has quit [Excess Flood]
vlad_sta_ has joined #ruby-lang
countdigi has quit [Ping timeout: 245 seconds]
imajes has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
countdigi has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
Madis has quit [Ping timeout: 256 seconds]
Madis has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
mroth has joined #ruby-lang
mroth has quit [Changing host]
mroth has joined #ruby-lang
mroth has joined #ruby-lang
mistym has quit [Remote host closed the connection]
havenn has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
kgrz has quit [Quit: Computer has gone to sleep.]
enebo has quit [Quit: enebo]
cardoni has joined #ruby-lang
twintail has joined #ruby-lang
yxhuvud2 has joined #ruby-lang
yxhuvud has quit [Ping timeout: 255 seconds]
twintail has quit [Ping timeout: 248 seconds]
Xzyx987X has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 276 seconds]
mtparet has joined #ruby-lang
s0ber_ has joined #ruby-lang
mtparet has quit [Client Quit]
s0ber has quit [Read error: Connection reset by peer]
s0ber_ is now known as s0ber
ryanlecompte has quit [Remote host closed the connection]
yxhuvud2 has quit [Quit: Nettalk6 - www.ntalk.de]
yxhuvud has joined #ruby-lang
Xzyx987X has joined #ruby-lang
irleif has joined #ruby-lang
Kingy has joined #ruby-lang
dous has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
elico has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
yaroslav has joined #ruby-lang
malev has quit [Remote host closed the connection]
slaytanic has joined #ruby-lang
vlad_starkov has joined #ruby-lang
BMF has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
justinmcp has joined #ruby-lang
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
Carnage\ has quit [Ping timeout: 244 seconds]
twintail has joined #ruby-lang
_tca_ has quit [Quit: Lost terminal]
ryanlecompte has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
twintail has quit [Ping timeout: 260 seconds]
icooba has quit [Quit: Computer has gone to sleep.]
ryanlecompte has quit [Remote host closed the connection]
Axsuul has joined #ruby-lang
mytrile has joined #ruby-lang
elux has quit [Quit: Bye!]
snorkdude has joined #ruby-lang
gmci has joined #ruby-lang
havenn has quit [Remote host closed the connection]
justinseiter has quit [Read error: Operation timed out]
dinamicex1 has joined #ruby-lang
<dinamicex1> Hi. Can someone explain me why when I declare a function( like attr_accessor) in the class Class then I can run that function inside an instance of the class Class (which is a class itself). Here is an example http://ideone.com/tE7LN
kentos has joined #ruby-lang
<steveklabnik> dinamicex1: so
<steveklabnik> there's a lot to this question
<steveklabnik> the answer is 'because that's valid ruby'
<steveklabnik> what part are you confused about, exactly?
voker57_ has quit [Ping timeout: 245 seconds]
<dinamicex1> The fact that the function attr_accessor_with_history is defined in the class Class
<steveklabnik> sure
<steveklabnik> classes are classes in ruby
justinseiter has joined #ruby-lang
<steveklabnik> ;)
<steveklabnik> 1.9.3-p194 :001 > String.class => Class
voker57_ has joined #ruby-lang
<dinamicex1> Yes.
<steveklabnik> so, just like any other inheritance, if you defin something in Class, it will be available to all classes
<dinamicex1> Wait? Is this inheritance?
<steveklabnik> well
<steveklabnik> i guess that's tricky, heh.
<dinamicex1> I though a bit about it and it doesn't seem like it is. When I create a class like Foo I actually create an instance of the class Class
<steveklabnik> sooo Class, Kernel, and Object are strange in ruby
<steveklabnik> they have a werid relationship
<dinamicex1> Not another class that inherits from Class.
workmad3 has joined #ruby-lang
<steveklabnik> that would be Foo's singleton class. the 'instance of a class class'
<steveklabnik> Foo itself would be a class that inherits from Class
<steveklabnik> 1.9.3-p194 :006 > class String
<steveklabnik> 1.9.3-p194 :007?> puts self.class
<steveklabnik> 1.9.3-p194 :008?> end
<steveklabnik> Class => nil
<dinamicex1> But if I will declare the attr_accessor_with_history in the Foo class, then why it wouldn't work to run attr_accessor_with_history :bar ?
<steveklabnik> because of method lookup
<steveklabnik> well
<steveklabnik> if you define it inside Foo, it should work inside foos. I think. ugh, ruby hurts my brain sometimes. ;)
<steveklabnik> if you declare it as
<steveklabnik> class Foo
slyphon has joined #ruby-lang
<steveklabnik> def self.method_whatever_blah
[GRI]Red_Sackles has joined #ruby-lang
<steveklabnik> then it will work
<steveklabnik> 1.9.3-p194 :009 > class Foo
<steveklabnik> 1.9.3-p194 :010?> def self.woo
<steveklabnik> 1.9.3-p194 :011?> puts 'hey'
<steveklabnik> 1.9.3-p194 :013?> woo
<steveklabnik> 1.9.3-p194 :012?> end
<steveklabnik> 1.9.3-p194 :014?> end
<steveklabnik> hey => nil
<dinamicex1> aham.. So it has to be an class method to work
<steveklabnik> right.
yats has quit [Ping timeout: 255 seconds]
<dinamicex1> Thanks for the links. I'll read them tomorrow( it's too late now).
yats has joined #ruby-lang
vlad_starkov has joined #ruby-lang
yats has quit [Read error: Connection reset by peer]
<steveklabnik> no problem :)
yats_ has joined #ruby-lang
<steveklabnik> check out Metaprogramming Ruby too
<steveklabnik> it's excellent
vlad_sta_ has joined #ruby-lang
<dinamicex1> The book or what?
<steveklabnik> yes
foca has quit [Ping timeout: 256 seconds]
<Spaceghostc2c> Great book for sure.
<dinamicex1> Uh, I read about it a few days ago on a blog. The guy who wrote about it and other ruby book considered it and "Advanced book"
slyphon has quit [Ping timeout: 245 seconds]
<dinamicex1> Advanced material for Ruby programmers
justinmcp has quit [Remote host closed the connection]
whitequark has quit [Ping timeout: 256 seconds]
<steveklabnik> right
<steveklabnik> you're asking advanced questions
<steveklabnik> i would call it 'intermediate'
<steveklabnik> personally
_tca has joined #ruby-lang
whitequark has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 255 seconds]
foca has joined #ruby-lang
dinamicex1 has quit [Remote host closed the connection]
anannie has quit [Read error: Connection reset by peer]
anannie has joined #ruby-lang
urbanmonk has joined #ruby-lang
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
[GRI]Red_Sackles has left #ruby-lang [#ruby-lang]
brunocoelho has joined #ruby-lang
anannie has quit [Ping timeout: 244 seconds]
mistym has quit [Remote host closed the connection]
hoofman has joined #ruby-lang
BMF has quit [Remote host closed the connection]
RedSackles has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
twintail has joined #ruby-lang
RedSackles has quit [Quit: Page closed]
brunocoelho has joined #ruby-lang
chessguy has joined #ruby-lang
twintail has quit [Ping timeout: 240 seconds]
vlad_sta_ has quit [Remote host closed the connection]
brunocoelho has quit [Remote host closed the connection]
pbjorklund has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby-lang
CaptainJet has quit []
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
ridders24 has quit [Quit: Leaving]
marc3000 has joined #ruby-lang
ryanf_ has joined #ruby-lang
ryanf has quit [Quit: leaving]
ryanf_ is now known as ryanf
yats_ has quit [Ping timeout: 246 seconds]
sailias has joined #ruby-lang
vesan has quit [Ping timeout: 260 seconds]
sailias has quit [Read error: Operation timed out]
roadt has joined #ruby-lang
postmodern has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
chessguy has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
t0d0r has joined #ruby-lang
<t0d0r> hello, how i can report bug
<t0d0r> for whatever reason \s doesn't match \u00a0
<nertzy> t0d0r: more specifically, http://bugs.ruby-lang.org/projects/ruby/wiki/HowtoReport (if it's actually a bug in the Ruby language, that is)
<t0d0r> this is for 1.9.3
<t0d0r> also I have problem with open-ari when escape utf-8 strings in bulgaria language
twintail has joined #ruby-lang
<t0d0r> nertzy: thank you
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
solars has quit [Ping timeout: 244 seconds]
twintail has quit [Ping timeout: 255 seconds]
<zzak> t0d0r: you know i saw something in open-uri the other day when i was working on docs
<zzak> it actually defaults to us-ascii-8-bit
<zzak> one sec
<zzak> you have to pass encoding option
<zzak> i think just :charset actually
<zzak> isn't that annoying?
<zzak> maybe good to open a ticket, since 2.0 is supposed to be all utf8 or something
<zzak> steveklabnik: speak for yourself :)
arooni-mobile has joined #ruby-lang
dous has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<steveklabnik> zzak: ?
vlad_starkov has quit [Ping timeout: 260 seconds]
kentos has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
ezkl has joined #ruby-lang
<zzak> steveklabnik: trying to be ironic <3
justinmcp has joined #ruby-lang
Assurbanipal has joined #ruby-lang
urbanmonk has quit [Ping timeout: 244 seconds]
ryanf_ has joined #ruby-lang
Tearan has joined #ruby-lang