apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
<erikh> yeah, I saw it
<erikh> I wonder why it's not there -- maybe it's not standard?
<erikh> I thought it was.
<darix> so wiki page needs updating
<erikh> yeah that list is ... heh
<erikh> incomplete.
hakunin has joined #ruby-lang
<darix> so 39 now at least :)
<erikh> actually it's superceded by another
mrsolo has quit [Quit: Leaving]
<erikh> which probably has more scope.
wesside_ has quit [Quit: Ice cream truck!]
<darix> i know of one rfc that let's the server tell the client about common folders like trash,sentmail,postponed...
<erikh> IMAP is absurdly complicated.
<erikh> yeah
<drbrain> it's also absurdly powerful
<darix> i actually like imap:)
<erikh> drbrain: oh, no disagreement
<erikh> I still weep for those implementing conformant servers though
idkazuma has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
<chris2> imap is absurdly batshit insane
totallymike has joined #ruby-lang
<darix> erikh: i stopped looking since i found dovecot. :)
<drbrain> or clients
<erikh> darix: yeah, most people have
<erikh> see also: postfix
<drbrain> The U in UID does not stand for "unique" or "universal" or any of those things
<drbrain> it changes depending on the actions of other clients on the mailbox
<chris2> it means "unique" but not forever ;)
<erikh> for the lifetime of the request, right?
<erikh> I see to recall that
<drbrain> no
wmoxam has joined #ruby-lang
<chris2> no, until uidvalidity is sent
<erikh> oh my
* erikh runs screaming
<chris2> which can happen at any time!
wesside_ has joined #ruby-lang
krohrbaugh has joined #ruby-lang
wesside_ has quit [Client Quit]
<erikh> I tried once
<drbrain> if you get back UIDs 1, 2, 3 and another client deletes message 2 you get an update saying "2 is gone" and you're expected to adjust
<erikh> I really tried really hard
<drbrain> s/expected/required
<erikh> heh
<erikh> that was the thing -- so much SHOULD and not enough MUST
<chris2> also, its fun if you press delete right now on msg two and that event comes in
<erikh> I gave up once I hit a search bug in exchange that would cause my client implmeentation to infinitely recurse, but not on cyrus, courier, and dovecot
<drbrain> because if you don't and you also delete message 2 you will delete the wrong item
<erikh> that was years ago though. my first real rails app, must have been 2003 or 2004, something like that.
<erikh> jesus
<erikh> that's an appropriate word for that page
<chris2> idle support is a mess too :D
<erikh> I love how uw doesn't even support everything
<erikh> the original "reference implementation"
<chris2> at least they support a mh backend
<zenspider> holy shit. there isn't a single full stripe of green in either direction
<chris2> so you can ssh in and use a proper mail client :D
<zenspider> nuke lavabit (huh? never heard of it) and you do tho
tdy_ has quit [Quit: WeeChat 0.4.0]
<erikh> for IDLE. lol!
<darix> chris2: actually my mutt goes through dovecot too nowadays. mutt header cache sucks compared to dovecot's
<chris2> even more hilarious is that noone implements utf8 :D
<chris2> darix: my gnus does too
<erikh> probably encoding agnostic -- and really, that's usually handled with qp and friends
<erikh> well, for the parts that matter
<darix> chris2: tunnel="/usr/lib/dovecot/imap" :D
<erikh> ha
<chris2> http://lavabit.com/secure.html if they really do that, it's pretty cool
tdy has joined #ruby-lang
tdy has quit [Client Quit]
tdy has joined #ruby-lang
<darix> chris2: just poking timo if dovecot could do it via lda plugin
tylersmith has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
<darix> http://www.imapwiki.org/ImapTest/ServerStatus - i mean luckily domino is not important ^^
<eam> where's the rfc describing ruby
<rickhull> chris2: posted it earlier
GeissT has joined #ruby-lang
levicole_ has joined #ruby-lang
benwoody_ has joined #ruby-lang
<rickhull> that's all you need to start a new impl
yellow5 has quit [Quit: time to go!]
levicole has quit [Quit: ZNC - http://znc.sourceforge.net]
ruskie has quit [Ping timeout: 264 seconds]
Guest85414 has quit [Ping timeout: 264 seconds]
franckverrot has quit [Ping timeout: 264 seconds]
benwoody has quit [Ping timeout: 264 seconds]
franckverrot_ has joined #ruby-lang
yellow5_ has joined #ruby-lang
kirin` has quit [Ping timeout: 264 seconds]
lupine has quit [Ping timeout: 264 seconds]
DefV has quit [Ping timeout: 264 seconds]
benwoody_ has left #ruby-lang [#ruby-lang]
ruskie has joined #ruby-lang
DefV has joined #ruby-lang
yellow5_ is now known as yellow5
lupine has joined #ruby-lang
kirin` has joined #ruby-lang
vlad_starkov has joined #ruby-lang
znz_jp has quit [Quit: kill -QUIT $$]
vlad_starkov has quit [Ping timeout: 245 seconds]
sepp2k1 has quit [Remote host closed the connection]
znz_jp has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
ozzloy has joined #ruby-lang
ozzloy has quit [Changing host]
ozzloy has joined #ruby-lang
synthetix has quit [Ping timeout: 248 seconds]
<yoshie902a> I am using "require './mycode'" in IRB, but I keep changing it and needing to re-require it, but it fails the second time. I tried "load './mycode'" but that gives me a load error:cannot load such file. how to I re-require my file?
<darix> yoshie902a: put your test code into a file
<darix> add require 'pry' (After installing it)
<darix> and at the position you want to debug
<darix> add
<darix> binding.pry
<darix> hth
sduckett has joined #ruby-lang
<yoshie902a> darix: I do that sometimes, but in this case, it's faster to run the irb
<brownies> 'evening
<brownies> i have a silly question...
<brownies> i have an array and i would like to search for the first element that matches a condition. if the elemnet is found, return that element; if no match is found, return nil.
<brownies> i thought there was a built-in method for this? but i just read all of http://www.ruby-doc.org/core-1.9.3/Array.html and i can't find it =/
fosky has quit [Remote host closed the connection]
nathanstitt has quit [Quit: I growing sleepy]
<rickhull> check Enumerable
<rickhull> which is mixed in
<brownies> aha
<brownies> derp. thanks.
<rickhull> Enumerable#find cheers
slippyd has joined #ruby-lang
nettsundere has joined #ruby-lang
aspro has joined #ruby-lang
aspro has quit [Client Quit]
aspro has joined #ruby-lang
yoshie902a has left #ruby-lang [#ruby-lang]
asunderland has joined #ruby-lang
nettsundere has left #ruby-lang [#ruby-lang]
nettsundere has joined #ruby-lang
dingus_khan has joined #ruby-lang
nettsundere has quit [Client Quit]
nettsundere has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
Rubennn has quit [Ping timeout: 256 seconds]
rue_XIV has joined #ruby-lang
Rubennn has joined #ruby-lang
rue has quit [Ping timeout: 252 seconds]
wmoxam has quit [Ping timeout: 256 seconds]
nettsundere has quit [Ping timeout: 255 seconds]
ikrima has joined #ruby-lang
ozzloy has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby-lang
<dingus_khan> hi, I'm pretty new to IRC, so can someone tell me how to stop "corrundum" from reminding me about "karma" every minute? Thanks judofyr, very funny, but it's annoying now
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Remote host closed the connection]
io_syl has quit [Ping timeout: 268 seconds]
mwjcomputing has joined #ruby-lang
sailias has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mwjcomputing has quit [Client Quit]
wmoxam has joined #ruby-lang
<dingus_khan> corrundum
<erikh> corundum:
<erikh> is the bot
<dingus_khan> wtf is that
<dingus_khan> god dammit, lol
<erikh> it's a metal IIRC
<dingus_khan> well I need to kill it permanently
<erikh> ?
<rickhull> at what point did corundum focus his karma laser on you?
<dingus_khan> every minute it flashes a reminder about karma
<erikh> drbrain: ^
<rickhull> corundum: karma?
<dingus_khan> when someone names judofyr apparently told it to
<erikh> hm
<erikh> hehe
<erikh> I've not ... seen this feature before
<dingus_khan> corrundum: shut the fuck up
<dingus_khan> that didn't work
vlad_starkov has quit [Ping timeout: 260 seconds]
<erikh> dingus_khan: type /ignore corundum
<erikh> that should help for now
<erikh> I pinged the author of the bot, he can help later
<rickhull> when did this start? and what did it say about judofyr?
levifig has quit [Excess Flood]
<erikh> he's probably out, it's quitting/dinner time where he lives
<dingus_khan> so I don't think the ignore worked, and it started yesterday
<erikh> hmm
<erikh> what irc client?
<dingus_khan> Xchat
<dingus_khan> judofyr typed this: " corundum: remind dingus_khan about karma every minut"
<rickhull> try clicking on corundum in the user list
<rickhull> haha
<erikh> oh
<erikh> wow
<dingus_khan> judofyr typed this: " corundum: remind dingus_khan about karma every minute"*
<erikh> daaaaamn
headius has quit [Quit: headius]
<erikh> corundum: stop reminding dingus_khan
<dingus_khan> motherfucker! lol
<erikh> that asshat.
<erikh> corundum: remind judofyr not to abuse the bot every minute
levifig has joined #ruby-lang
<dingus_khan> I tried telling it to stop in the window of the bot, lol
<rickhull> last time i played with corundum he would respond in chan
<erikh> yeah
<dingus_khan> yeesh
<erikh> dingus_khan: I think I fixed it. working?
<erikh> well, are you still getting messages?
<dingus_khan> have no idea if it stopped or if I've broken something in xchat to the point where it doesn't blink anymore, lol
<erikh> ok, I got it
<dingus_khan> i just closed the corundum window for the last time, I think it stopped
<erikh> I left a little gift for magnus too
<dingus_khan> lol thanks guys, appreciate the help! :D
krohrbaugh has joined #ruby-lang
<erikh> yeah, that's infuriating
dankest has quit [Quit: Leaving...]
fosky has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 248 seconds]
<dingus_khan> yeah, I came on to ask about this maddening regex, and I went slightly more nuts
nathanstitt has joined #ruby-lang
<dingus_khan> I've spent most of today on this, and two article, Eloquent Ruby, the study material I've been given, or RubyMonk has brought me any clarity on why this isn't working... http://pastebin.com/i2m8LwMG
<dingus_khan> articles*
Domon has joined #ruby-lang
krohrbaugh has joined #ruby-lang
sailias has quit [Ping timeout: 248 seconds]
<dingus_khan> holy shit, nevermind, I'm an idiot
Nisstyre-laptop has quit [Quit: Leaving]
lguardiola has quit [Quit: Leaving]
Wardrop has joined #ruby-lang
<Wardrop> Does anyone know how to stop bundler from hijacking my attempts to run scripts and binaries installed by gems not included in the Gemfile?
dingus_khan has quit [Ping timeout: 246 seconds]
<Wardrop> I'm in the root of my application directory, attempting to invoke a gem not part of my application, but get the annoying error: "Could not find <x> amongst: […, …]"
<Wardrop> If I `cd` out of the directory containing the Gemfile, it works
<Wardrop> In my case, I'm trying to launch my app with phusion passenger, but because passenger isn't a listed dependancy (and rightfully so; any rack web server is fine), it won't run.
krohrbaugh has quit [Quit: Leaving.]
sailias has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
arubin has joined #ruby-lang
<erikh> Wardrop: are you using rvm or something?
<erikh> or are you just trying to do rails with bundler?
<Wardrop> I am using RVM. I didn't think this was an RVM issue though.
headius has joined #ruby-lang
symm- has quit [Ping timeout: 260 seconds]
ikrima has quit [Quit: Computer has gone to sleep.]
bzalasky has joined #ruby-lang
<erikh> Wardrop: rvm installs a thing called rubygems-bundler which means bundle exec always runs if there's a gemfile in the directory
<erikh> which is working properly if it's denying something outside of your gemfile.
<erikh> the short is: don't use rvm or rubygems-bundler. I'm not sure how you do the latter.
jkyle has quit [Quit: leaving]
<erikh> but if you need bundle exec, and need to start passenger with a rails app, you're gonna have a bad day regardless
<erikh> I'd suggest using a Gemfile group to add passenger (e.g., 'webtest' or 'production' or what-have-you)
<erikh> that way it's easy to turn on and off.
corundum has quit [Quit: okay bye]
corundum has joined #ruby-lang
Nautes has quit [Quit: Leaving]
wmoxam has quit [Ping timeout: 245 seconds]
alessio_rocco has quit [Remote host closed the connection]
<Wardrop> erikh: Thanks erik.
krohrbaugh has joined #ruby-lang
ozzloy has joined #ruby-lang
ozzloy has quit [Changing host]
ozzloy has joined #ruby-lang
krohrbaugh has quit [Client Quit]
Nisstyre-laptop has quit [Quit: Leaving]
totallymike has quit [Ping timeout: 276 seconds]
GarethAdams has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
jovy88 has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby-lang
chmullig has joined #ruby-lang
Guest85414 has joined #ruby-lang
retro|cz has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
robbyoconnor has joined #ruby-lang
vlad_starkov has joined #ruby-lang
krz has joined #ruby-lang
pskosinski has quit [Quit: pskosinski]
vlad_starkov has quit [Ping timeout: 255 seconds]
ikrima has joined #ruby-lang
wmoxam has joined #ruby-lang
intellitech has joined #ruby-lang
io_syl has joined #ruby-lang
io_syl has quit [Client Quit]
bzalasky has joined #ruby-lang
cordax has joined #ruby-lang
cordax has quit [Client Quit]
krohrbaugh has joined #ruby-lang
stardiviner has joined #ruby-lang
aspro has quit [Quit: Bye!]
dankest has joined #ruby-lang
chrishunt has quit [Quit: ZzZzZz...]
chrishunt has joined #ruby-lang
krohrbaugh has quit [Read error: Operation timed out]
Asher1 has quit [Quit: Leaving.]
kgrz has joined #ruby-lang
asunderland has quit [Ping timeout: 256 seconds]
chrishunt has quit [Quit: ZzZzZz...]
dingus_khan has joined #ruby-lang
baba has joined #ruby-lang
asunderland has joined #ruby-lang
pkrnj has quit [Ping timeout: 255 seconds]
megha has quit [Ping timeout: 255 seconds]
chrishunt has joined #ruby-lang
pkrnj has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
Asdasd has quit [Ping timeout: 252 seconds]
asunderland has quit [Ping timeout: 268 seconds]
<crankharder> is there a quick method to get every super class of a given object up to Object?
<Wardrop> #ancestors
<Wardrop> It's not quite the same
<crankharder> BasicOBject... wtf is BasicObject
nathanstitt has quit [Quit: I growing sleepy]
<crankharder> i gotta go sit down
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Nisstyre-laptop has joined #ruby-lang
ozzloy has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby-lang
asunderland has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
fosky has quit [Ping timeout: 268 seconds]
sailias has quit [Quit: Leaving.]
headius has quit [Quit: headius]
<drbrain> BasicObject lets you make proxies or design your own class hierarchy free of ruby encumberance
jovy88 has quit [Read error: Connection reset by peer]
headius has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
jovy88 has joined #ruby-lang
itcharlie has joined #ruby-lang
krohrbaugh has joined #ruby-lang
chrishunt has quit [Quit: ZzZzZz...]
krohrbaugh has quit [Ping timeout: 252 seconds]
seoaqua has joined #ruby-lang
fosky has joined #ruby-lang
nettsundere has joined #ruby-lang
bzalasky has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
bzalasky has quit [Remote host closed the connection]
chmullig has left #ruby-lang [#ruby-lang]
rwk1 has quit [Remote host closed the connection]
itcharlie has left #ruby-lang [#ruby-lang]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
mbj has joined #ruby-lang
henrikhodne has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
wmoxam has joined #ruby-lang
sush24 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
henrikhodne has joined #ruby-lang
fosky has quit [Read error: Connection reset by peer]
fosky has joined #ruby-lang
rwk1 has joined #ruby-lang
fosky has quit [Remote host closed the connection]
fosky has joined #ruby-lang
cordax has joined #ruby-lang
henrikho_ has joined #ruby-lang
henrikhodne has quit [Ping timeout: 276 seconds]
henrikho_ is now known as henrikhodne
pieux has joined #ruby-lang
mistym has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
mezamashiman has joined #ruby-lang
dingus_khan has quit [Ping timeout: 252 seconds]
mbj has quit [Ping timeout: 252 seconds]
zalora has joined #ruby-lang
mezamashiman has quit [Client Quit]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
headius has quit [Quit: headius]
mistym has quit [Remote host closed the connection]
asunderland has quit [Ping timeout: 255 seconds]
stardiviner has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
Domon has quit [Remote host closed the connection]
rwk1 has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 246 seconds]
krohrbaugh has quit [Read error: Operation timed out]
stardiviner has joined #ruby-lang
imperator has joined #ruby-lang
intellitech has quit [Quit: intellitech]
egypt has quit [Read error: Operation timed out]
egypt has joined #ruby-lang
La0fer has quit [Ping timeout: 268 seconds]
sduckett has quit [Ping timeout: 246 seconds]
zalora has left #ruby-lang [#ruby-lang]
theEXA has joined #ruby-lang
theEXA has quit [Excess Flood]
sush24 has quit [Ping timeout: 256 seconds]
sush24 has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
rwk1 has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
sush24 has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
tylersmith has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
mezamashiman has joined #ruby-lang
holgerno has joined #ruby-lang
holgerno has quit [Changing host]
holgerno has joined #ruby-lang
holgerno has quit [Client Quit]
tomzx_mac has quit [Read error: Operation timed out]
henrikhodne has quit [Quit: Goodbye.]
pieux has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
JohnBat26 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
sush24 has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby-lang
sduckett has joined #ruby-lang
sduckett has quit [Ping timeout: 246 seconds]
Domon has joined #ruby-lang
headius has joined #ruby-lang
cordax has quit [Quit: Computer has gone to sleep.]
tylersmith has quit [Ping timeout: 276 seconds]
Bosox20051 has joined #ruby-lang
nXqd has joined #ruby-lang
workmad3 has joined #ruby-lang
ikrima has joined #ruby-lang
priodev has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
priodev has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 255 seconds]
stardiviner has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
fsvehla has joined #ruby-lang
tylersmith has joined #ruby-lang
apeiros has joined #ruby-lang
sush24 has quit [Ping timeout: 248 seconds]
fosky has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
tylersmith has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
cordax has joined #ruby-lang
brianpWins has joined #ruby-lang
<dingus_khan> is there a better way to split an array other than .split? Just curious, method names are a confusing thicket at this point to me...
<injekt> dingus_khan: arrays dont have a split method
<dingus_khan> shit, I meant to say string
<dingus_khan> tired
<dingus_khan> benadryl coma impending
<injekt> well sure, but you should use split because it makes the most sense
<dingus_khan> anyway yeah, string
<injekt> split this string into segments
<dingus_khan> oh, I was just wondering if there was another method that might allow grouping, but I think I know how to do that anyway
<injekt> but in answer to your question, no there is not a better way
<dingus_khan> ok*
<dingus_khan> ok cool, thank you!
<injekt> dingus_khan: you dont group a string, you split it into an array and then group :)
<injekt> >> "foo bar bazz".split.group_by(&:size)
<eval-in> injekt => {3=>["foo", "bar"], 4=>["bazz"]} (http://eval.in/23437)
<dingus_khan> right right, makes sense--just wondering if there was sneaky or compact other way to do it, lol. thanks!
<dingus_khan> a sneaky*
<apeiros> dingus_khan: it depends on your specific task
<injekt> ^
<injekt> was just typing this
<apeiros> if all of your description is just "I want to split" then the answer is "String#split"
jovy88 has quit [Read error: Connection reset by peer]
<apeiros> for hopefully obvious reasons
<dingus_khan> right, so without pandering for solutions, I'm trying to split up arithmetic operations symbols from integers in a string, I think I get it though
jovy88 has joined #ruby-lang
<injekt> ah maybe you want scan ;)
<dingus_khan> need to read on group_by, that's a new one to me
<dingus_khan> ahhhh scan! completely forgot about that guy
<dingus_khan> lots to remember, lol
<injekt> the devil is in the details, we need the details
<dingus_khan> I wish the ruby-docs were a little more in-depth, sigh...
dr_bob has joined #ruby-lang
<dingus_khan> ok, so it's a "reverse polish notation" calculator implementation, just writing instance method(s) to separate out the operators from the integers in the funky order they come in and apply the operations to the integers, following RPN rules
dhruvasagar has quit [Ping timeout: 276 seconds]
<dingus_khan> I feel like it seems straightforward enough, and my personal instinct is to use a regexp pattern to strip out the series of operations that are going to need to be divied up and ordered according to the order of operations
<dingus_khan> seem like a good approach?
<injekt> I would probably tokenize it
<dingus_khan> I have no idea what that means. lol
<dingus_khan> newb here, sorry
benlovell has joined #ruby-lang
<injekt> well technically string.split is tokenizing but you probably want to write a parser, using regexp for this is going to get nasty pretty quickly
<dingus_khan> I'm only vaguely familiar with the concept of parsing--by context I assume you mean a mechanism with which to check the components of a collection for a pattern, right?
krohrbaugh has joined #ruby-lang
<dingus_khan> and thanks for that insight on tokenizing, I feel like I could use a good article recommendation on that subject if anyone's got one!
<injekt> dingus_khan: right, google 'ruby polish notation' you'll find quite a few write ups, and code that already does this
<dingus_khan> oooh damn, I have no idea what lambdas are yet, haven't quite reached that part yet, but thanks for the suggestion! I really need to be able to come up with this entirely on my own from an almost intuitive place, which is a tall order for someone like me at this point
<dingus_khan> but I will look for writeups discussing the approaches!
krohrbaugh has quit [Ping timeout: 260 seconds]
mucker has joined #ruby-lang
<Paradox> did you know that hotels use white linens because bleach is cheaper than detergent?
mucker has quit [Ping timeout: 245 seconds]
<whitequark> inkjet: huh?
<whitequark> lexers are essentially regexps, or at least all lexer generators I know are implementing them
<whitequark> Paradox: won't that degrade the fabric quickly
<Paradox> whitequark, guests degrade it even faster
<whitequark> haha
<whitequark> also, how is this related to ruby
dhruvasagar has joined #ruby-lang
<Paradox> its not
<Paradox> think of it as…standup
<whitequark> schtandup
dankest has quit [Read error: Connection reset by peer]
<injekt> whitequark: right but they dont have to be
<injekt> whitequark: and im not saying dont use regexp, im saying dont split by regexp, you can split the tokens and then run regexp matches on them
<injekt> which makes more sense
judofyr has joined #ruby-lang
mucker has joined #ruby-lang
injekt is now known as inkjet
<inkjet> apparently this is more fitting
<Paradox> those are ancient sloths
vlad_starkov has joined #ruby-lang
headius has quit [Quit: headius]
vlad_starkov has quit [Ping timeout: 256 seconds]
<whitequark> inkjet: require 'strscan'
brianpWins has quit [Quit: brianpWins]
tylersmith has joined #ruby-lang
DomKM has quit [Quit: Leaving.]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
tylersmith has quit [Ping timeout: 245 seconds]
blacktulip has joined #ruby-lang
<yorickpeterse> morning
pandy has joined #ruby-lang
<yorickpeterse> blegh, Euruko proposal did not make it through
lele has quit [Quit: Coyote finally caught me]
dingus_khan has quit [Remote host closed the connection]
<ddfreyne> yorickpeterse: what was your proposal?
dhruvasagar has quit [Read error: Connection reset by peer]
krohrbaugh has joined #ruby-lang
<erikh> inkjet: thanks for peeking!
cofin has quit [Quit: cofin]
<yorickpeterse> ddfreyne: http://cfp.euruko2013.org/proposals/17
dhruvasagar has joined #ruby-lang
lele has joined #ruby-lang
<ddfreyne> yorickpeterse: Hmm that looks like a nice proposal though
krohrbaugh has quit [Ping timeout: 245 seconds]
<yorickpeterse> tbh I'm a bit confused by the selection, some of the talks really look like standard "How to do Rails" talks
<yorickpeterse> which can be fun, don't get me wrong, but I'd say those would be more suited for meetups
solars has joined #ruby-lang
brianpWins has joined #ruby-lang
gnufied has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
charliesome has joined #ruby-lang
<whitequark> yorickpeterse: dat sucks :/
<whitequark> well, doesn't surprise me
<whitequark> big conferences are all meh
jsullivandigs has quit [Ping timeout: 268 seconds]
<yorickpeterse> well actually the process was pretty fair
<yorickpeterse> so I suppose people are genuinely not that interested
kevinfagan has quit [Excess Flood]
<erikh> yorickpeterse: you need to talk at rubyconf
<yorickpeterse> when's that again, september right?
<erikh> or kaigi
<erikh> yeah, i think so.
<erikh> those are the people who want to hear what you have to say.
<yorickpeterse> well, I'm still going to Euruko so kaigi isn't working out I believe
<yorickpeterse> * going to
<yorickpeterse> also I can't afford to fly to Japan atm
kevinfagan has joined #ruby-lang
<erikh> sure, I get it
<erikh> that's cash money from the states, can't imagine how bad it is from europe
<yorickpeterse> Ah, rubyconf is in november
<yorickpeterse> hmmm
<yorickpeterse> well I was planning on going to the US sometime next year, might as well do it in November
<erikh> I don't think their selection process is as democratic
<erikh> so you might need to buddy up a bit
<erikh> but I think your talk will probably float on its own merits.
<yorickpeterse> yeah man, we euros are much more democratic
<erikh> haha
<yorickpeterse> EUROPE! EUROPE! EUROPE!
<yorickpeterse> I'll show myself out
<erikh> the final countdown
<erikh> DUN DUN DUN DUN, DUN DUN DUN DUN DUN
<erikh> also yeah, what whitequark about big conferences
<gnufied> yorickpeterse: or you can talk now, I want to hear what you gotta to say!
<erikh> the small ones tend to be more interested in this stuff
<erikh> that too!
<erikh> write a mcblog
<yorickpeterse> mcblog?
<erikh> a blog post
<yorickpeterse> I only write blags
<erikh> a blag
<yorickpeterse> like, once a year
<yorickpeterse> haha
<erikh> yeah, I'm almost as bad.
<erikh> I think I wrote ... two or three last year
postmodern has quit [Quit: Leaving]
<gnufied> we have a rubyconf here in India in june
<gnufied> cfp unfortunately is closed
<gnufied> but we love europians, free taj tour if you speak about something exciting. :D
<yorickpeterse> weather too hot :<
woollyams has quit [Ping timeout: 276 seconds]
<gnufied> not in pune/Bangalore
<gnufied> the usual locations, weather is mild enough, imo
vlad_starkov has joined #ruby-lang
<gnufied> but ymmv
<gnufied> and come on, get a grip for few days, it shouldn't matter. the important thing is, we need to hear what you have to say!
<yorickpeterse> haha
<yorickpeterse> well, Rubyconf might be an idea
<yorickpeterse> but I do feel I have to tweak my talk first
joshH13 has quit [Quit: Nettalk6 - www.ntalk.de]
rickhull has quit [Read error: Network is unreachable]
<gnufied> erikh: where you at in US of A btw?
<erikh> bay area
<gnufied> gah, I may be going there in July/August I think.
<erikh> cool! it's nice here that time of year.
<erikh> well, to be frank, one of the things I like about this place is that it's almost always nice anytime of the year
vlad_starkov has quit [Ping timeout: 268 seconds]
<gnufied> so we heard. :-) but I am going to Marylang
<erikh> it's just like this straight 60-70 degree weather year round
<gnufied> Maryland*
<erikh> ah!
rickhull has joined #ruby-lang
<erikh> Maryland is very humid in the summer.
<gnufied> and very cold in winter
<erikh> indeed
<erikh> I lived in philly which is just slightly north for a few years
<erikh> the humidity is ... it's something alright
priodev has quit [Ping timeout: 252 seconds]
elia has joined #ruby-lang
<gnufied> But we Indians got tough skin, we will weather it out
<erikh> haha indeed
<erikh> I'm sure weather over there is also pretty hot/humid
priodev has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
<gnufied> I used live in Chennai (now Bangalore). it was hot and humid,
<gnufied> But then you get used to it. Look at Singapore for example.
<erikh> right
<erikh> I mean, yeah, you do, it's just a bit of a shock if you aren't used to it.
<erikh> US west coast is very dry by comparison, and is where I've spent most of my life
<yorickpeterse> Dutch weather is amazing
<yorickpeterse> every year it has a new surprise for us
<erikh> heh
<gnufied> winter all 12 months?
<yorickpeterse> Rain during winter? Or maybe snow? NOPE, NOTHING
<yorickpeterse> Oh it's February? SNOW
<erikh> that's still technically winter :)
<yorickpeterse> You want sun for a few weeks? Best I can do is two weeks somewhere in October
<gnufied> if someone will chance upon this channel, they will mistake us for bunch of brits.
<erikh> hah
<yorickpeterse> it's so unpredictable
<gnufied> (with all the talk of weather)
<yorickpeterse> though at least it's getting nicer in the past few days
tylersmith has joined #ruby-lang
joshH13 has joined #ruby-lang
joshH13 has quit [Read error: Connection reset by peer]
<erikh> man, go is so awesome
<erikh> sorry, just gonna rave about it for like, another week or so
joshH13 has joined #ruby-lang
joshH13 has quit [Read error: Connection reset by peer]
<gnufied> go on
<gnufied> :-)
<erikh> here, sec
joshH13 has joined #ruby-lang
<erikh> I can tune this to hit my machine hard enough to saturate localhost
<yorickpeterse> gnufied: I see what you did there
tylersmith has quit [Ping timeout: 256 seconds]
joshH13 has quit [Read error: Connection reset by peer]
<erikh> it only hits the actual "server" every 10 seconds.
joshH13 has joined #ruby-lang
<erikh> which means it can sponge a LOT of api requests
joshH14 has joined #ruby-lang
joshH15 has joined #ruby-lang
joshH15 has quit [Read error: Connection reset by peer]
Criztian has joined #ruby-lang
joshH15 has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
joshH13 has quit [Ping timeout: 256 seconds]
Criztian has joined #ruby-lang
joshH16 has joined #ruby-lang
joshH14 has quit [Ping timeout: 256 seconds]
joshH15 has quit [Read error: Operation timed out]
joshH17 has joined #ruby-lang
joshH18 has joined #ruby-lang
joshH18 has quit [Read error: Connection reset by peer]
joshH18 has joined #ruby-lang
joshH18 has quit [Read error: Connection reset by peer]
joshH18 has joined #ruby-lang
joshH16 has quit [Ping timeout: 252 seconds]
<erikh> really?
<erikh> is someone trying to clone flood on freenode?
joshH19 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
joshH17 has quit [Ping timeout: 256 seconds]
<yorickpeterse> I think he/she just has a shitty connection
<yorickpeterse> hm, then again those are a lot of joins/parts
<yorickpeterse> MODS!
joshH110 has joined #ruby-lang
<yorickpeterse> ARM THYSELF
<inkjet> erikh: no problem
joshH110 has quit [Read error: Connection reset by peer]
<ddfreyne> My last day as a professional smalltalk developer is TODAY
<ddfreyne> :O
joshH110 has joined #ruby-lang
<yorickpeterse> congrats
<yorickpeterse> welcome to the present :)
* yorickpeterse runs
<inkjet> ddfreyne: you're going to spotify or something like that right? soundcloud?
<yorickpeterse> both
joshH111 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
joshH18 has quit [Ping timeout: 256 seconds]
<ddfreyne> inkjet: SoundCloud
<apeiros> invasion averted
<inkjet> ddfreyne: enjoy!
<ddfreyne> thanks \o/
joshH19 has quit [Ping timeout: 252 seconds]
<apeiros> foiled?
joshH112 has joined #ruby-lang
<apeiros> wah?
<apeiros> d'oh, stupid ~
stardiviner has joined #ruby-lang
joshH112 has quit [Read error: Connection reset by peer]
<yorickpeterse> good guy apeiros
joshH110 has quit [Read error: Operation timed out]
<apeiros> king banhammer, please
<charliesome> judofyr: you know how you posted that norwegian vodka ice skating video ages ago
<judofyr> charliesome: yes?
<judofyr> repst?
<charliesome> judofyr: i've found my own video for when people ask where i'm from: http://www.youtube.com/watch?v=ZNY3i6MybpU&feature=youtu.be
joshH111 has quit [Read error: Operation timed out]
krohrbaugh has quit [Ping timeout: 248 seconds]
<judofyr> charliesome: wat
<yorickpeterse> "Lailey Boy" hahaha
<yorickpeterse> dat accent
<erikh> judofyr: you are naughty
<yorickpeterse> charliesome: wait
<yorickpeterse> this is actually a thing?
<erikh> and made drbrain get rid of the remind plugin
<charliesome> yorickpeterse: yeah!
<judofyr> erikh: huh?
<yorickpeterse> charliesome: oh jesus
<erikh> that guy you reminded every minute about karma
<erikh> for corundum
<judofyr> oh
<erikh> came in here today, furious
<judofyr> I thought it didn't work
<erikh> it.. did
<judofyr> oh, it was PRIVMSG?
<erikh> yes
<judofyr> aaaaaaah
<erikh> hehe
<erikh> every minute
<inkjet> haha
<judofyr> then maybe I should have turned it off
<inkjet> good old rbot
<erikh> i set one up for you too
<erikh> but he disabled it before then
<judofyr> oops
cordax has quit [Quit: Computer has gone to sleep.]
inkjet has quit [Quit: Changing server]
dbussink_ has joined #ruby-lang
<yorickpeterse> that hostname sounds like some bad Tellsell product
injekt has joined #ruby-lang
<charliesome> btw y'all should throw your support behind this: http://bugs.ruby-lang.org/issues/8377
<charliesome> deprecating :: for method calls
<yorickpeterse> oh shit that's right, I was meaning to write an upvote for it
<yorickpeterse> herp::derp::haha()
<charliesome> "hello world"::upcase
adambeynon has joined #ruby-lang
r0bgleeson has quit [Quit: WeeChat 0.3.8]
r0bgleeson has joined #ruby-lang
GarethAdams has joined #ruby-lang
nibbo_ has joined #ruby-lang
dominikh1 has joined #ruby-lang
matthewd_ has joined #ruby-lang
<yorickpeterse> >> class String; def >>(haha); self << haha; end; end; "dat"::>>"syntax"
<eval-in> yorickpeterse => "datsyntax" (http://eval.in/23517)
jaymes has joined #ruby-lang
sleepdork has joined #ruby-lang
<charliesome> haha
dominikh has quit [Disconnected by services]
dominikh1 is now known as dominikh
<yorickpeterse> shame you can only use a limited amount of special characters
bryanl_ has joined #ruby-lang
weeb1e has joined #ruby-lang
<yorickpeterse> def -->(this, would, be, classic); end
Cope_ has joined #ruby-lang
machuga|away has joined #ruby-lang
dvorak_ has joined #ruby-lang
dbussink_ has quit [Quit: bye]
dbussink_ has joined #ruby-lang
imajes_ has joined #ruby-lang
Kuukunen- has joined #ruby-lang
<injekt> /rmreconns
<injekt> ...
<injekt> how the shit did that happen
_if_ has joined #ruby-lang
<yorickpeterse> lol
rtl_ has joined #ruby-lang
randalla1ordon has joined #ruby-lang
imajes has quit [Ping timeout: 256 seconds]
randallagordon has quit [Ping timeout: 256 seconds]
rtl has quit [Ping timeout: 256 seconds]
imajes_ is now known as imajes
dbussink_ has quit [Client Quit]
shtirlic_ has joined #ruby-lang
ritek has quit [*.net *.split]
jtmitch has quit [*.net *.split]
fbernier has quit [*.net *.split]
fbernier_ has joined #ruby-lang
nibbo has quit [*.net *.split]
brixen has quit [*.net *.split]
shtirlic has quit [*.net *.split]
sindork has quit [*.net *.split]
jaymes_ has quit [*.net *.split]
dRbiG has quit [*.net *.split]
matthewd has quit [*.net *.split]
dbussink has quit [*.net *.split]
brixen_ has joined #ruby-lang
dbussink has joined #ruby-lang
dRbiG has joined #ruby-lang
<charliesome> yorickpeterse: yeah my idea is to remove it in 2.2
<charliesome> and warn in 2.1
ritek has joined #ruby-lang
machuga has quit [*.net *.split]
bryanl has quit [*.net *.split]
mitchty has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
dvorak has quit [*.net *.split]
Cope has quit [*.net *.split]
_if has quit [*.net *.split]
weeb1e_ has quit [*.net *.split]
<erikh> that's a good approach
<erikh> did they ever get rid of Kernel.test?
<erikh> *nope*
dhruvasagar has joined #ruby-lang
<erikh> I wish they'd just move what's missing into File/FileTest and call it a day
jtmitch has joined #ruby-lang
tbuehlmann has joined #ruby-lang
jovy88 has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby-lang
<charliesome> test is awesome
<erikh> sure only if you won't use like 800 better test systems in other languages
<erikh> eh, anyhow
<erikh> sorry, caffeinatd
<injekt> lets just cut to the chase and do what perl does
<charliesome> erikh: test is awesome not because I use it, but because it's a reminder of ruby's roots
<erikh> injekt: you can't do what perl does in ruby without breaking a lot of ruby
<injekt> erikh: nope
<erikh> not a bad thing imo
<erikh> perl has a lot of inconsistency and any attempts to fix it are routinely met with backwards compat arguments
<erikh> like, vehement arguments
Mon_Ouie has joined #ruby-lang
<erikh> kind of a big deal, mst keeps wanting to fork perl 5.
<erikh> so they can fix some of this stuff.
<injekt> heh
<ddfreyne> I didn't know about Kernel.test. Ew :)
xcombelle has joined #ruby-lang
tylersmith has joined #ruby-lang
<injekt> heh I didn't know iterator? was an alias for block_given?
<whitequark> erikh: you're a perl dev?
<charliesome> injekt: blocks used to be called iterators!
<whitequark> injekt: other way 'round
dhruvasagar has quit [Read error: Operation timed out]
<injekt> I'm a perl dev, gotta come from somewhere, and I still love it
<injekt> charliesome: heh yeah
<charliesome> injekt: hey, perl was my first language
<whitequark> erikh: in the sense, are you developing perl itself?
<charliesome> i still love it too
<injekt> charliesome: vb6 was mine, then went to perl and other stuff, fell in love with perl
<whitequark> C++ Builder!
tylersmith has quit [Ping timeout: 264 seconds]
<whitequark> have i told you it's a shameless, and tasteless, va smalltalk ripof
<whitequark> *ripoff
stardiviner has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
stardiviner has joined #ruby-lang
<charliesome> whitequark: is it?
<charliesome> i've used it and it seems like every IDE with an integrated form designer out there
roadt has joined #ruby-lang
skade has joined #ruby-lang
Squarepy has joined #ruby-lang
<erikh> whitequark: no, I haven't done perl for a while now
<erikh> I love perl, I just don't have much use for it anymore I Guess.
<erikh> a lot of things I like to do these days are concurrent, and I love the consistency of ruby
<erikh> and other lispy langauges
<erikh> although go is teasing that hard
krohrbaugh has joined #ruby-lang
Bosox20051 has quit [Ping timeout: 255 seconds]
<r0bgleeson> erikh: that 'mst' guy is weird, he has a serious dislike for ruby for some reason.
<erikh> he doesn't hate ruby
<erikh> he just prefers perl
<erikh> and mst has changed a lot, especially in the last two years
kgrz has quit [Quit: Computer has gone to sleep.]
<erikh> and he's always been brilliant -- ignoring him is not a wise decision whether or not you agree with him
<r0bgleeson> I don't have much time for him, I've seen him humor & presentation style in a few videos.
<r0bgleeson> if he doesn't like ruby he certainly puts the effort into "pointing it" out.
<erikh> eh, your loss
krohrbaugh has quit [Ping timeout: 260 seconds]
<r0bgleeson> i dont think so
<r0bgleeson> he's a loud mouth
<r0bgleeson> i dont have time for those
<erikh> hmm. can I not care?
<r0bgleeson> of course :D
<erikh> just being frank here
<r0bgleeson> i dont care if you dont care tbh :P
<erikh> haha
<r0bgleeson> and im not speaking to you specifically.
<r0bgleeson> just in general.
pandy has quit [Remote host closed the connection]
pandy has joined #ruby-lang
mbj has joined #ruby-lang
cofin has joined #ruby-lang
jds has joined #ruby-lang
<jds> Hi there
<jds> I have a rails app, with gems managed by bundler. Some of those gems (all the ones from a git repo rather than from rubygems.org?) have had their gemspec modified
<ironcamel> damn, everyone knows mst it seems like
<ironcamel> i think infamous is the right term
<jds> That is, the file on disk has been magically rewritten, with, for example, 's.version = Foo::VERSION' getting replaced by 's.version = "2.3.3"'
<jds> Is this a rubygems 2 feature or what?
<injekt> jds: bundler is managing those gems, not rubygems
<r0bgleeson> jds: have you checked the git repositories to see if they have changed?
<jds> r0bgleeson: yeah, the diff shows working copy changes of the gemspec
kgrz has joined #ruby-lang
<r0bgleeson> jds: I don't know but I wouldn't think it is either rubygems or bundler. neither rewrite your gemspec. a hard-coded version is normally from generating the gemspec or maintaining the version manually in the gemspec itself.
<injekt> r0bgleeson: I think they do actually
<injekt> just checked and something I use from a git repo has rewritten my gemspec
<injekt> yup
<injekt> bundler 1.3 rewrites gemspecs
<r0bgleeson> not really. it *caches*.
<r0bgleeson> that's not rewriting.
<injekt> eh
<r0bgleeson> the original gemspec wouldn't be touched.
<injekt> it rewrites it rather than copying it
<r0bgleeson> where does it say that?
<injekt> "Yup. 1.3 rewrites the gemspecs, and 1.2 will just read them."
<r0bgleeson> yeah, but writes to a cache.
<r0bgleeson> its not rewriting the original gemspc.
<r0bgleeson> gemspec*
<jds> r0bgleeson: yes, it is
<r0bgleeson> what version of bundler are you using, jds ?
<injekt> there is no 'original' gemspec, it clones the repo and rewrites the gemspec
<yorickpeterse> blegh, I may have to venture into #rails today
<injekt> yorickpeterse: #rubyonrails #rails is different
<jds> r0bgleeson: 1.3.5
<jds> I think the relevant change is "generate gemspecs when installing git repos, removing shellouts"
dhruvasagar has joined #ruby-lang
<yorickpeterse> injekt: wat
<injekt> yorickpeterse: fo'srs
<r0bgleeson> evaluating the spec and writing to a cache is causing you problems why/how?
<yorickpeterse> injekt: I suppose both are just as bad
<r0bgleeson> its bundlers copy of the gemspec
<injekt> yorickpeterse: yeah one will help you quicker though so you can spend less time in there
<r0bgleeson> jds: can I know why it is causing you issues?
<r0bgleeson> injekt: that doesn't count as "re-writing" it for me. it evaluates it, stores it in a cache, not really "re-writing" it but "evaluating" & storing a copy in disk.
<r0bgleeson> rewrite implies the original is lost, which it is not.
mitchty has joined #ruby-lang
<jds> r0bgleeson: by 'original' you mean the version on github?
<jds> It's replacing the only copy of the gemspec I have on disk
<injekt> r0bgleeson: no but it's rewritten, if they didn't have that the gemspec would look exactly the same as when it was downloaded, but they download it then rewrite it
<injekt> yeah
<injekt> it replaces it, so it rewrites it
<injekt> :D
<r0bgleeson> alright, I stand corrected, then
<jds> r0bgleeson: It was causing us issues due to a flaw in our app. We were referencing module Foo before the foo gem got required, but it's worked up until now because foo.gemspec had "require 'foo/version'", thus creating Foo::VERSION
<jds> Which is a fault on our part, but took quite a while to figure out
dhruvasagar has quit [Ping timeout: 246 seconds]
<r0bgleeson> jds: gotcha.
<injekt> this is the part where I'd say it's a retarded thing to do, but I think bundler actually got that right
<r0bgleeson> i dont see an issue w/ bundler doing that.
<jds> (and was slightly crazy-making due to it breaking on some machines but working fine on others that hadn't yet run 'bundle update')
<r0bgleeson> its their copy.
<r0bgleeson> get your own if you want one.
<r0bgleeson> its git after all :p
<r0bgleeson> jds: yeah, I've had head-banging moments like that before.
dhruvasagar has joined #ruby-lang
tylersmith has joined #ruby-lang
symm- has joined #ruby-lang
Domon has quit [Remote host closed the connection]
Fisix_AIX has joined #ruby-lang
tylersmith has quit [Ping timeout: 252 seconds]
sush24 has joined #ruby-lang
r0bgleeson has quit [Quit: WeeChat 0.3.8]
r0bgleeson has joined #ruby-lang
Asher has joined #ruby-lang
<whitequark> erikh: ruby and OTHER lispy languages?
Domon has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
krohrbaugh has joined #ruby-lang
<tarruda> in C extension, if I bind a block to its calling scope for later use using rb_block_proc(), how can I free the block/scope when I no longer need it?
dr_bob has quit [Quit: Leaving.]
fsvehla has quit [Quit: fsvehla]
megha has joined #ruby-lang
<charliesome> tarruda: it just happens
ikrima has quit [Quit: Computer has gone to sleep.]
baba has quit [Ping timeout: 276 seconds]
<charliesome> make sure you keep the proc somewhere the GC can see it while you still need it though
krohrbaugh has quit [Ping timeout: 252 seconds]
dr_bob has joined #ruby-lang
dr_bob has quit [Read error: Connection reset by peer]
<tarruda> charliesome: whats the best way to do that? assign it to a ruby variable?
fsvehla has joined #ruby-lang
<charliesome> tarruda: you can't assign to ruby variables from c extensions
<tarruda> charliesome: what can I do then?
<charliesome> tarruda: look into Data_Make_Struct and Data_Wrap_Struct and friends
<charliesome> otherwise if you're storing the proc in a stable memory location
<charliesome> you can call rb_gc_register_address
<charliesome> but make sure to unregister it when you're done
<tarruda> charliesome: ok, thanks
<tarruda> charliesome: where can I read more about rb_gc_register_address ? README.EXT doesn't seem to mention it
<yorickpeterse> injekt: which one, #rubyonrails?
<yorickpeterse> Hm, I suppose this also applies to common Ruby
<tarruda> charliesome: nvm already found it
<r0bgleeson> tarruda: I don't know much about C API but I think rb_gc_register_address is same as rb_global_variable if that helps.
vlad_starkov has joined #ruby-lang
<injekt> yorickpeterse: yeah
mezamashiman has quit [Quit: leaving]
krz has quit [Quit: krz]
Domon has quit [Remote host closed the connection]
pipework has joined #ruby-lang
hramrach_ has joined #ruby-lang
<yorickpeterse> https://gist.github.com/YorickPeterse/b2af4244b29201ef1478 wall of text, tips appreciated
<yorickpeterse> oh, I should update it regarding monkey patching
<yorickpeterse> done
<injekt> yorickpeterse: concerns concerns basecamp omakase
<yorickpeterse> get out
rsl has joined #ruby-lang
nertzy has joined #ruby-lang
<r0bgleeson> yorickpeterse: STI may be another solution to that problem, where Problem defines #type, and that is set to ProjectB::Problem.
<yorickpeterse> well, the thing is that that does not tie into AR
<yorickpeterse> I tried looking into where AR stores the class but it seems to be somewhere deep down where I don't want to write hacks
nertzy3 has quit [Ping timeout: 245 seconds]
<tarruda> r0bgleeson: yes, rb_global_variable definition in gc.c shows that all it does is delegate the call to rb_gc_register_address.
<r0bgleeson> in what sense? #type/STI is supported by AR.
<yorickpeterse> oh?
<r0bgleeson> oh wait, it still wouldn't work, because instances of GemA::Project would have a different type to begin with, but you may be able to "coerce" them with a hack.
<injekt> yeah sti is supported by ar, it sucks ballbags
<yorickpeterse> not sure if I'm entirely following you, do you have a basic example of it?
<r0bgleeson> yorickpeterse: sure, give me a minute.
benlovell has quit [Ping timeout: 276 seconds]
fsvehla has quit [Ping timeout: 252 seconds]
fsvehla_ has joined #ruby-lang
<yorickpeterse> thnx
tylersmith has joined #ruby-lang
<yorickpeterse> hm, that doesn't work for existing data does it?
<yorickpeterse> creating isn't the biggest issue, it's really the darn relations for now
<r0bgleeson> yorickpeterse: yeah exactly, not without a hack.
<yorickpeterse> hmpf
jovy88 has quit [Read error: Connection reset by peer]
<tarruda> in the 'sig_trap' function (signal.c) there's a call to 'rb_secure'. What is rb_secure purpose?
nertzy has quit [Ping timeout: 252 seconds]
jovy88 has joined #ruby-lang
nertzy has joined #ruby-lang
s1n4 has joined #ruby-lang
s1n4 has quit [Changing host]
s1n4 has joined #ruby-lang
tylersmith has quit [Ping timeout: 248 seconds]
s1n4 has left #ruby-lang [#ruby-lang]
<injekt> >> $SAFE=4; a="foo"
<eval-in> injekt => /tmp/execpad-03c5d84af33c/source-03c5d84af33c:1:in `p': Insecure: can't modify array (SecurityError) ... (http://eval.in/23600)
<injekt> >> RUBY_VERSION
<eval-in> injekt => "2.0.0" (http://eval.in/23601)
<yorickpeterse> dat error
<injekt> odd
<yorickpeterse> 1.9>> $SAFE=4; eval('a="foo"')
<yorickpeterse> ...
<yorickpeterse> dumbass bot
<injekt> 19
<yorickpeterse> 19>> $SAFE=4; eval('a="foo"')
<eval-in> yorickpeterse => /tmp/execpad-5072b6782a8b/source-5072b6782a8b:3:in `p': Insecure operation `p' at level 4 (SecurityError) ... (http://eval.in/23602)
<injekt> :D
<yorickpeterse> wat
<yorickpeterse> GOOD GUY MATZ WRITES RUBY
<yorickpeterse> FORGETS GOOD ERROR MESSAGES
brianpWins has quit [Ping timeout: 245 seconds]
<injekt> eval.in uses p
<yorickpeterse> oh, hmpf
<yorickpeterse> GOOD GUY CHARLIESOME WRITES EVAL.IN
<yorickpeterse> FORGETS GOOD ERROR MESSAGES
<r0bgleeson> 19>> $SAFE=4; p "Hi"
<eval-in> r0bgleeson => /tmp/execpad-6169afc06253/source-6169afc06253:2:in `p': Insecure operation `p' at level 4 (SecurityError) ... (http://eval.in/23603)
<yorickpeterse> there
<tarruda> injekt: can you explain better? I don't understand this error
<tarruda> injekt: what is a secure operation?
<charliesome> yorickpeterse: hehe eval.in does nothing special with your code
<injekt> tarruda: it depends on $SAFE and where checks to rb_secure are used
<injekt> tarruda: for example, you could add a check to rb_secure(3) inside of a module include
<tarruda> ok so rb_secure(2) is the same as $SAFE = 2
<injekt> no
<injekt> rb_secure(2) is if 2 <= $SAFE
<injekt> it doesn't set the safe level, it checks against it
<tarruda> and it $SAFE < 2 it raises an error?
<injekt> no the other way around lol
Mon_Ouie has quit [Ping timeout: 255 seconds]
<injekt> $SAFE by default is 0 iirc, so doing rb_secure(2) would not raise, however set SAFE to 3, it'll raise
<tarruda> ok, so why is this checked in sig_trap?
fsvehla_ has quit [Read error: Connection reset by peer]
<injekt> tarruda: because sig_trap expects the safe level to be less than 2
fsvehla has joined #ruby-lang
<tarruda> injekt: ok I got that, from http://www.ruby-doc.org/docs/ProgrammingRuby/html/taint.html I can see that with SAFE >= 2 ruby cannot load the program from writable locations
<tarruda> injekt: but why it needs that?
<injekt> tarruda: that's just the decision that's been made based on the safe level. I have to head out now someone else might be able to explain it better
<tarruda> injekt: ok thanks, I will investigate it further
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
rsl has joined #ruby-lang
pskosinski has joined #ruby-lang
krohrbaugh has joined #ruby-lang
fsvehla has quit [Ping timeout: 246 seconds]
marr has joined #ruby-lang
fsvehla has joined #ruby-lang
sduckett has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 268 seconds]
symm- has quit [Read error: Operation timed out]
benlovell has joined #ruby-lang
yalue has joined #ruby-lang
gnufied has quit [Ping timeout: 252 seconds]
fsvehla has quit [Ping timeout: 256 seconds]
roadt has quit [Ping timeout: 260 seconds]
tomzx_mac has joined #ruby-lang
gnufied has joined #ruby-lang
jxie has quit [Quit: leaving]
nertzy2 has joined #ruby-lang
cofin has quit [Quit: cofin]
nertzy has quit [Ping timeout: 255 seconds]
sduckett has quit [Ping timeout: 276 seconds]
hackeron_ has quit [Ping timeout: 276 seconds]
adambeynon has quit [Quit: Computer has gone to sleep.]
hackeron has joined #ruby-lang
hrvoje has joined #ruby-lang
kirin` has quit [Ping timeout: 252 seconds]
carloslopes has joined #ruby-lang
kirin` has joined #ruby-lang
hrvoje has quit [Quit: Leaving]
PhilG has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
shime has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<shime> is Logger.new(nil) desired way of creating null logger that is supported with every version of ruby?
Squarepy has quit [Quit: Leaving]
machuga|away has left #ruby-lang [#ruby-lang]
machuga has joined #ruby-lang
dr_bob has joined #ruby-lang
roadt has joined #ruby-lang
sailias has joined #ruby-lang
philgg has joined #ruby-lang
nertzy2 has quit [Ping timeout: 246 seconds]
PhilG has quit [Remote host closed the connection]
skade has quit [Ping timeout: 252 seconds]
PhilG has joined #ruby-lang
philgg has quit [Remote host closed the connection]
skade has joined #ruby-lang
nertzy has joined #ruby-lang
brianpWins has joined #ruby-lang
skade has quit [Read error: Operation timed out]
skade has joined #ruby-lang
<PhilG> hi
tylersmith has joined #ruby-lang
<r0bgleeson> shime: not sure
<r0bgleeson> 19>> Logger.new(nil);
<eval-in> r0bgleeson => /tmp/execpad-cdeeb84811f0/source-cdeeb84811f0:2:in `<main>': uninitialized constant Logger (NameError) (http://eval.in/23634)
<r0bgleeson> 19>> require 'logger'; Logger.new(nil);
<eval-in> r0bgleeson => #<Logger:0x924fec4 @progname=nil, @level=0, @default_formatter=#<Logger::Formatter:0x924feb0 @datetime_format=nil>, @formatter=nil, @logdev=nil> (http://eval.in/23635)
<r0bgleeson> 19>> require 'logger'; x = Logger.new(nil); x.info "Hay"
<eval-in> r0bgleeson => true (http://eval.in/23636)
<r0bgleeson> 18>> require 'logger'; x = Logger.new(nil); x.info "Hay"
<eval-in> r0bgleeson => true (http://eval.in/23637)
<r0bgleeson> 10>> require 'logger'; x = Logger.new(nil); x.info "Hay"
<eval-in> r0bgleeson => (http://eval.in/23638)
<shime> so it works?
<judofyr> "Forbidden access to file `./logger.rb'"
<r0bgleeson> not on 1.0
<judofyr> damn
<r0bgleeson> but after that, it seems to :D
<shime> that's too old
<judofyr> deal-breaker
<shime> :D
<r0bgleeson> haha
<shime> I want to get rid of this ugly platform check: https://github.com/airbrake/airbrake/blob/master/lib/airbrake.rb#L79
<shime> I guess it's safe to use Logger.new(nil) instead
<shime> thanks!
tylersmith has quit [Ping timeout: 255 seconds]
GeissT has quit [Quit: MillBroChat AdIRC User]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
<PhilG> I am (again) getting really excited about ruby and I have been programming a bit before. But I need a project or problem to work on! In future I would love to contribute to OSS but for now I would just like to start on a tiny reallife problem
<PhilG> What could be a good thing to start with?
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
vlad_starkov has quit [Ping timeout: 248 seconds]
<lianj> PhilG: choose your reallife probelm
<PhilG> That's the advice which I have gotten on StackOverflow (plus a few downvotes) but I have been out of doing anything code related for a few months
<PhilG> lianj Hence the search for suggestions
<lianj> how should we know what you like?
<PhilG> You can't and you don't have to. I am just looking for a small library or a problem people might have
<lianj> for a beginner, choose something you want to improve or automate something in your daily life.
krohrbaugh has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<PhilG> yeah well, that is what I am searching for right now...
<apeiros> ~10y ago everybody and his stepchild wrote an irc bot
krohrbaugh has quit [Ping timeout: 252 seconds]
<erikh> ~10y ago?
<erikh> more like 15 minutes ago, and for the last 20 years
<lianj> internet year. last month
<erikh> apeiros: that was just when you were doing it :)
<erikh> mr. silverplatter
shime has quit [Ping timeout: 264 seconds]
jvrmaia has joined #ruby-lang
breakingthings has joined #ruby-lang
<PhilG> if starters wrote irc bots, it can't be that hard. Maybe I can start a bit of research about it
scampbell has joined #ruby-lang
<GarethAdams> I'm using HighLine, what do I need for left/right cursor keys to work properly during input and not just dump ^[[C and ^[[D into the terminal?
adambeynon has joined #ruby-lang
<gnufied> Highline doesn't do that
<erikh> PhilG: cinch is a good library
<gnufied> GarethAdams: you want readline
mistym has joined #ruby-lang
<PhilG> gnufied: Thanks, I will also try and connect to the IRC without using any gems
<GarethAdams> gnufied: that's all I needed, now I see that prompt.ask("Question? ") { |q| q.readline = true } does the job :)
<apeiros> erikh: exactly :)
tomzx_mac has quit [Ping timeout: 248 seconds]
<apeiros> I'm just not sure whether I'm everybody or the stepchild
cofin has joined #ruby-lang
jvrmaia_ has joined #ruby-lang
jvrmaia has quit [Ping timeout: 256 seconds]
rwk1 has quit [Read error: Connection reset by peer]
rwk1 has joined #ruby-lang
<erikh> apeiros: nah, you're everybody
<erikh> I did a thing ages ago called dbot
<erikh> it's on my github still I think
<erikh> and now I have another bot up there, but it's cinch-based.
imperator has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
erikh has quit [Quit: ZNC - http://znc.sourceforge.net]
jvrmaia_ has quit [Ping timeout: 260 seconds]
jvrmaia has joined #ruby-lang
dr_bob has joined #ruby-lang
chrishunt has joined #ruby-lang
chrishunt has quit [Client Quit]
wmoxam has joined #ruby-lang
Tremitos has joined #ruby-lang
Tremitos has quit [Read error: Connection reset by peer]
intellitech has joined #ruby-lang
intellitech has quit [Changing host]
intellitech has joined #ruby-lang
jvrmaia_ has joined #ruby-lang
jvrmaia has quit [Ping timeout: 248 seconds]
tylersmith has joined #ruby-lang
bottington has joined #ruby-lang
jovy88 has quit [Read error: Operation timed out]
sduckett has joined #ruby-lang
<PhilG> wow, I actually managed to make bottington join
erikh has joined #ruby-lang
erikh has quit [Client Quit]
<judofyr> PhilG: who's bottington?
<PhilG> judofyr: The sourcecode I wrote to connect to IRC
<judofyr> PhilG: nice. although I have to mention: Cinch is a pretty nice IRC framework (if you don't want to write it yourself)
vlad_sta_ has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 248 seconds]
jvrmaia_ has quit [Ping timeout: 252 seconds]
El_loco has joined #ruby-lang
bottington has quit [Ping timeout: 268 seconds]
lguardiola has joined #ruby-lang
<PhilG> judofyr: sure! But I have never really been into protocol stuff, not even with HTTP. I dont know, maybe the "low level" scares me
stardiviner has quit [Remote host closed the connection]
<judofyr> PhilG: oh, please continue hacking :) I'm all for implementing stuff for playing with it
kevinfagan has quit [Excess Flood]
kevinfagan has joined #ruby-lang
<PhilG> judofyr: Hopefully I will :) But I will probably make another channel for testing
<judofyr> PhilG: that might be a good idea. let me know if you need someone (else) to talk with it or something
chrishunt has joined #ruby-lang
<crankharder> how does one add a gem source to a gemspec?
El_loco has quit [Remote host closed the connection]
jvrmaia has joined #ruby-lang
seoaqua has quit [Ping timeout: 245 seconds]
<gnufied> you don't
krohrbaugh has joined #ruby-lang
<gnufied> why would you want to specify gem source (I imagine like bundler) in gemspec file?
krz has joined #ruby-lang
erikh has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<yorickpeterse> crankharder: you can't
<yorickpeterse> at least not as far as I know
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> You can add them to ~/.gemrc and such (or specify them on the CLI)
jsullivandigs has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 252 seconds]
jvrmaia has quit [Ping timeout: 248 seconds]
voker57 has quit [Read error: Connection reset by peer]
sduckett has quit [Quit: leaving]
<crankharder> when did bundler get stupid: https://gist.github.com/crankharder/af43d52469d1d1cfd357
robbin_ has joined #ruby-lang
fsvehla has joined #ruby-lang
ryez has quit [Ping timeout: 245 seconds]
brettchalupa has joined #ruby-lang
jvrmaia has joined #ruby-lang
vbatts|work has joined #ruby-lang
<judofyr> crankharder: since ever
thatJasonSmith has quit [Read error: Operation timed out]
jamilbk has joined #ruby-lang
dustint has joined #ruby-lang
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
nathanstitt has joined #ruby-lang
jvrmaia has quit [Ping timeout: 264 seconds]
alessio_rocco has joined #ruby-lang
jvrmaia has joined #ruby-lang
jvrmaia has quit [Remote host closed the connection]
rsl has joined #ruby-lang
pasties has joined #ruby-lang
<PhilG> Who is or was active on SO?
<judofyr> never been active, but I'm following some tags on email and answering
czman has joined #ruby-lang
jamilbk has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
czman has quit [Client Quit]
erpuds has joined #ruby-lang
seoaqua has joined #ruby-lang
heftig has quit [Quit: Quitting]
dr_bob has quit [Quit: Leaving.]
heftig has joined #ruby-lang
seoaqua has quit [Ping timeout: 264 seconds]
dr_bob has joined #ruby-lang
sush24 has quit [Ping timeout: 252 seconds]
sush24 has joined #ruby-lang
dezasseis has quit [Quit: Leaving.]
runeb has joined #ruby-lang
Bosox20051 has joined #ruby-lang
tylersmith has joined #ruby-lang
priodev has quit [Read error: Operation timed out]
sush24 has quit [Quit: This computer has gone to sleep]
ryez has joined #ruby-lang
chrishunt has quit [Quit: ZzZzZz...]
jxie has joined #ruby-lang
tylersmith has quit [Ping timeout: 264 seconds]
priodev has joined #ruby-lang
<crankharder> why would bundler install rails 0.9.5 when i have '< 4' specified
sush24 has joined #ruby-lang
<apeiros> 0.9.5 is < 4, isn't it? :)
totallymike has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
<totallymike> I just learned about RVM wrapper. That's pretty rad.
<totallymike> I started talking here a minute ago, but it turns out I wasn't connected. D'oh.
<injekt> rails 0.9.5 oO
<totallymike> Either way, rvm wrapper is pretty handy for scriptably getting an RVM environment set up. It works to great effect in FreeBSD init scripts which have a highly isolated environment on their own.
runeb has quit [Remote host closed the connection]
imperator has quit [Quit: Leaving]
<totallymike> Basically, "rvm wrapper <ruby string> <binary that SHOULD work>" and it generates a shell script that inits your rvm environment and then runs said binary for you.
<totallymike> However, this is in reference to a conversation twelve hours old that I disconnect halfway through, so it may not be of relevance to anyone.
krohrbaugh has joined #ruby-lang
<injekt> you could also use chruby and not have to do any of that
<totallymike> The only modification I had to make in order to get it working in FreeBSD init scripts was insert something in it that modified $PATH because FreeBSD maintains an empty $PATH variable in the init scripts.
<totallymike> injekt: You may be right. I don't know much about chruby, and I use RVM a lot. This was the easiest, fastest way to get a single-user ruby environment running on init for me.
<injekt> totallymike: Sure, I'm glad it's worked well for you
dezasseis has joined #ruby-lang
<totallymike> chruby does look nice though. I'll investigate it some day. Thanks for pointing it out.
megha has quit [Ping timeout: 245 seconds]
krohrbaugh has quit [Ping timeout: 256 seconds]
gnufied has joined #ruby-lang
<cout> oh this is lovely
<cout> I used cirwin's references patch to figure out what's holding on to my activerecord objects
<cout> apparently it's a thread object
<cout> hmm.
megha has joined #ruby-lang
asunderland has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
<injekt> r0bgleeson: neat book
<r0bgleeson> injekt: so it is you I share that folder with
<injekt> r0bgleeson: yup its my folder
<r0bgleeson> :)
ykk` has joined #ruby-lang
<injekt> I share it with like 8 people including yourself
<r0bgleeson> injekt: dont delete any books :D
<ykk`> hey anyone have some experience with writing a packet sniffer for ruby?
<injekt> r0bgleeson: :P
<andrewvos> I have experience sniffing packets I find on the street
<injekt> andrewvos: you live on the wrong kind of streets to be doing that
tsan has joined #ruby-lang
kgrz has quit [Ping timeout: 260 seconds]
machuga has left #ruby-lang [#ruby-lang]
tsan has quit []
apeiros has quit [Remote host closed the connection]
<ykk`> or maybe he lives on the right kind of streets to be doing that?
* andrewvos slowly winks
<ykk`> lol
wallerdev has joined #ruby-lang
PhilG1 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
PhilG2 has joined #ruby-lang
PhilG1 has quit [Remote host closed the connection]
PhilG has quit [Remote host closed the connection]
nettsundere has quit [Quit: nettsundere]
PhilG2 has quit [Remote host closed the connection]
PhilG has joined #ruby-lang
tylersmith has joined #ruby-lang
vbatts|work has quit [Ping timeout: 264 seconds]
<yorickpeterse> nerds: can you specify a base class for another class during runtime?
<yorickpeterse> as in, after the child class has been declared
<yorickpeterse> so `class Foo; end; Foo.inherits(Bar)`
wallerdev has quit [Client Quit]
<PhilG> I don't think so
<injekt> yorickpeterse: you can't change the superclass of a class like that no, but charliesome wrote something to do so
solars has quit [Read error: Operation timed out]
skade has quit [Quit: Computer has gone to sleep.]
nXqd has quit [Ping timeout: 260 seconds]
tylersmith has quit [Ping timeout: 248 seconds]
<cout> yorickpeterse: it's pretty easy to change the base class from C
<cout> yorickpeterse: from ruby, you can add a new immediate ancestor using #extend
<injekt> ...
brixen_ has left #ruby-lang [#ruby-lang]
<MouseTheLuckyDog> IS there a way to "flush" the stdin?
benlovell has quit [Ping timeout: 264 seconds]
<injekt> cout: that doesn't do what you think it does
brixen has joined #ruby-lang
<injekt> MouseTheLuckyDog: $stdin.flush
anonymuse has joined #ruby-lang
<cout> injekt: what doesn't?
elia has quit [Ping timeout: 245 seconds]
<injekt> cout: extend does not change any base class
<cout> injekt: I didn't say that it does
<injekt> "yorickpeterse: it's pretty easy to change the base class from C; from ruby, you can add a new immediate ancestor using #extend"
<injekt> maybe I misread that
headius has joined #ruby-lang
<r0bgleeson> yorickpeterse: you can't change the superclass of Foo(< Object), at least not on MRI with pure ruby. I think Rubinius lets you swap ancestors in & out in pure ruby.
<r0bgleeson> last time I tried that the VM crashed a lot
<r0bgleeson> so the answer is probably: no :p
<injekt> r0bgleeson: doesn't that article do exactly that?
<r0bgleeson> which article?
<r0bgleeson> oh sorry
<r0bgleeson> missed it
<r0bgleeson> injekt: that's C, so not really.
<injekt> r0bgleeson: scroll down to the ruby? lol
<injekt> the c code is taken from core, not an extension
brianpWins has quit [Quit: brianpWins]
<r0bgleeson> injekt: that's snazy
<r0bgleeson> i dont have time to read it all
carloslopes has joined #ruby-lang
sush24 has quit [Ping timeout: 268 seconds]
<yorickpeterse> hmmm
<r0bgleeson> rubinius can do it without any code at all fwiw
<injekt> yorickpeterse: tl;dr dont do it
<yorickpeterse> well, we did solve our problem otherwise using *drumroll*
<yorickpeterse> CONCERNS!
<r0bgleeson> just: Foo.superclass = Blah
bzalasky has joined #ruby-lang
yfeldblum has joined #ruby-lang
vbatts|work has joined #ruby-lang
barttenbrinke has joined #ruby-lang
<injekt> r0bgleeson: interesting
<injekt> haven't really touched rbx
<r0bgleeson> i use rbx everyday these days
nXqd has joined #ruby-lang
* brixen ^5's r0bgleeson
<yorickpeterse> Control 5?
engel has joined #ruby-lang
<r0bgleeson> yorickpeterse: you hopeless nerd :D
<brixen> yorickpeterse: yes
sush24 has joined #ruby-lang
<MouseTheLuckyDog> injekt, sorry, afk but will $stdin.flush empty the input buffers. I'm using system and when the command hits the first input it exits the program like if I chooise a quit option at that point.
<cout> injekt: that ruby code is making use of a bug that only exists on a small subset of ruby versions
<injekt> cout: so?
<cout> injekt: no need to be rude...
<injekt> oO
wallerdev has joined #ruby-lang
<injekt> cout: I wasn't being rude..
cofin has quit [Quit: cofin]
cofin has joined #ruby-lang
carloslopes has quit [Ping timeout: 252 seconds]
barttenbrinke has quit [Ping timeout: 276 seconds]
t_ has joined #ruby-lang
<yorickpeterse> yeah man, don't be an ass
<yorickpeterse> so yeah, concerns
<yorickpeterse> basecamp
<injekt> omakase
judofyr has quit [Remote host closed the connection]
mucker has quit [Quit: leaving]
<yorickpeterse> well the syntax of concerns *does* take away some of the cruft when dealing with self.included
<injekt> yup
<injekt> and handles module dependencies
krz has quit [Quit: krz]
mucker has joined #ruby-lang
tsan has joined #ruby-lang
<PhilG> Anybody got an Idea how to test a cinch bot?
<injekt> PhilG: ping dominikh he's the author and he loves helping out people
cofin has quit [Quit: cofin]
<injekt> PhilG: I should also note that you should just forget about testing your cinch bot
<lianj> injekt: author yes. but he loves nothing ;)
<injekt> lianj: :D
<PhilG> That is what I have been expecting, unfortunately
DomKM has joined #ruby-lang
<cout> PhilG: yes
<cout> injekt: dominikh doesn't believe in unit testing :(
apeiros has joined #ruby-lang
<yorickpeterse> german engineering doesn't need testing
robbin_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<injekt> yeah his code is never wrong
<yorickpeterse> yeah it uses type checking so there are no bugs
krohrbaugh has joined #ruby-lang
<MouseTheLuckyDog> The question is
<injekt> duck checking too
<injekt> type ducking?
<injekt> all of them
<yorickpeterse> it also checks for racist conditions
<dominikh> :D that one actually made me chuckle
<lianj> no, just smart crowd testing
<injekt> yeah, and if there's none, it makes sure some are inserted
<MouseTheLuckyDog> The question is not whether the code is ever wrong, but whether testing can make it less wrong.
tsan has left #ruby-lang [#ruby-lang]
<PhilG> Thanks for the examples by cout
<injekt> MouseTheLuckyDog: that's the philosophy behind worthwhile testing
bzalasky has quit [Remote host closed the connection]
krohrbaugh has quit [Client Quit]
<injekt> me and dominikh discussed writing tests for cinch back when I wrote the original implementation (disclaimer: it was entirely rewritten anyway) and testing it was not helpful
krohrbaugh has joined #ruby-lang
<injekt> dominikh and I*
<PhilG> But wait, instead of actually testing the outout of a cinch bot, I could test what actually does the work (plugins)
<injekt> dominikh: asshole
Fisix_AIX has quit [Quit: Leaving]
<dominikh> injekt: love you too.
<injekt> PhilG: right
<MouseTheLuckyDog> Oh god the google doodle today is really sophisticated.
<PhilG> Wow, there is two other "big" IRC Bot libs, last commits from 2 years ago
<injekt> you should use butler and bug apeiros
* injekt runs
ryez has quit [Ping timeout: 245 seconds]
carloslopes has joined #ruby-lang
<apeiros> :D
<MouseTheLuckyDog> injekt, Is that like some amethodology? "worthwile testing"?
<apeiros> he can't mean butler. that's 4y old iirc
<dominikh> PhilG: they weren't good 2 years ago, either :)
<injekt> apeiros: :D
<injekt> apeiros: silverplatter? :D
nXqd has quit [Remote host closed the connection]
<apeiros> that might be at 2y atm
<PhilG> dominikh: Probably :)
<apeiros> priorities… *sob* :)
<injekt> heh
<PhilG> How long has butler been dead? :D
<gnufied> since forver!
<dominikh> :D
<apeiros> as said, 4y I think
<apeiros> might be 5 by now
<gnufied> I heard about butler when I was ruby noobie
<gnufied> now I confuse it with bundler
<apeiros> I stopped working on it when I started to work for the current company
<gnufied> :-)
<apeiros> back then it kicked every other irc bot's ass
<cout> I wrote an irc bot framework in 2002 but accidentally rm -f'd it :(
<apeiros> it still has good code in it
<gnufied> I wrote some tests for butler if apeiros remembers.
<apeiros> I barely remember anything from 5y ago :)
<apeiros> wild days ;-)
<cout> apeiros: I barely remember anything from yesterday
<apeiros> cout: you're more successful at drinking alcohol than I then, I guess :-p
<cout> apeiros: I don't drink at all
<cout> I'm just getting old
<gnufied> :/
<gnufied> none of us are getting younger, if that makes it easier
brettchalupa has quit [Quit: brettchalupa]
<apeiros> cout: that's sad then…
<cout> gnufied: it does :)
<dominikh> I stopped using butler (and started working on Cinch) when it randomly used 100% CPU :P
<gnufied> that was supposed to be easter egg
<gnufied> use 100% cpu randomly
brettchalupa has joined #ruby-lang
<cout> morse code implemented as CPU spikes?
<dominikh> must've been a hell of a message
brettchalupa has quit [Client Quit]
<apeiros> dominikh: never understood why it did that for you
<apeiros> never used more than 1% for me
<dominikh> apeiros: hehe. it ran fine for months, and one day bam, 100% CPU
<apeiros> did you use windows back then?
<dominikh> never investigated it, I just shut down the bot :P
<injekt> then used the awesome cinch bot i wrote
<dominikh> injekt: I never used your cinch
<injekt> oh wait no you wrote your own because you didn't like cinch then we merged
<injekt> LOL
<dominikh> apeiros: actually, no idea where the bot ran at the time :/ might've been Windows
<dominikh> injekt: "merged"
<injekt> dominikh: bro.
<dominikh> injekt: as in git merge -s theirs
<injekt> :D
<apeiros> I remember windows had an IO issue which was ruby related
tylersmith has joined #ruby-lang
<PhilG> dominikh: do all cinch bot have an underscore attached to their name?
<dominikh> PhilG: cinch adds underscores to the nick if the nick is taken.
GarethAdams has quit [Quit: Leaving...]
<PhilG> dominikh: Ah okay
<apeiros> dominikh: not numbering up? :)
<MouseTheLuckyDog> In ruby is there something similar to #ifdef debug?
<dominikh> apeiros: nope, doing ______ until it fails :P
<apeiros> binding.pry if $debug
<apeiros> dominikh: good luck with that on servers with short nick limits :D
* apeiros has seen server with 8 char limits, teh horror
<dominikh> apeiros: if you need that many underscores you should consider using a more original nickname :D
<apeiros> well, CIA (not the US agency) has quite a lot of bots e.g. :)
<dominikh> had.
<apeiros> had?
<dominikh> CIA has been gone for a while now
<apeiros> oh
MaddinXx has joined #ruby-lang
<dominikh> you know, after the whole "our data is gone and we had no backups of anything" incident
<PhilG> dominikh: Ways to change realname etc of the bots?
<MouseTheLuckyDog> dominikh, How about _ for a nickname. That solves the too many underscores problem.
<apeiros> ouch
<dominikh> MouseTheLuckyDog: heh
vbatts|work has quit [Ping timeout: 268 seconds]
krohrbaugh1 has joined #ruby-lang
krohrbaugh has quit [Read error: Operation timed out]
ykk` has quit [Quit: ykk`]
krohrbaugh has joined #ruby-lang
krohrbaugh1 has quit [Read error: Connection reset by peer]
<apeiros> dominikh: iirc I even proc-ified nickname changing
<dominikh> apeiros: hm?
<apeiros> you could supply a proc to determine the next nickname in case of collisions
dr_bob has left #ruby-lang [#ruby-lang]
<dominikh> heh
<dominikh> yagni
ykk` has joined #ruby-lang
<dominikh> apeiros: in Cinch you can specify a list of nicks to try. and when that fails you really should ask yourself why ;)
chrishunt has joined #ruby-lang
<apeiros> IMO that's fine for clients with a real user who can interfere in case of repeated failure. for an automated system I prefer watertight solutions ;-)
<dominikh> could always react on the nick in use error and do your own business
<apeiros> that's basically what that proc did
adambeynon has quit [Ping timeout: 260 seconds]
<apeiros> does
<apeiros> whatever
<dominikh> did :P
<apeiros> watching sc2 now :-p
<dominikh> accept reality
kgrz has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
vbatts|work has joined #ruby-lang
cofin has joined #ruby-lang
<gnufied> watching dota2
<gnufied> :D
lguardiola has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
mytrile has joined #ruby-lang
gjaldon has joined #ruby-lang
io_syl has joined #ruby-lang
voker57_ has joined #ruby-lang
lguardiola has joined #ruby-lang
adambeynon has joined #ruby-lang
ddfreyne has quit [Excess Flood]
ddfreyne has joined #ruby-lang
vbatts|work has quit [Quit: MeSoChatty 0.3.8]
vbatts|work has joined #ruby-lang
vlad_starkov has joined #ruby-lang
__butch__ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
duckinator has quit [Quit: Nickname collision due to Services enforced nickname change, your nick was overruled]
__butch__ has quit [Ping timeout: 252 seconds]
kgrz has quit [Ping timeout: 245 seconds]
__butch__ has joined #ruby-lang
enebo has joined #ruby-lang
tdy has quit [Ping timeout: 251 seconds]
asunderland has quit [Quit: leaving]
kgrz has joined #ruby-lang
PhilG has quit [Remote host closed the connection]
duckinator has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
jperry2 has quit [Quit: jperry2]
jperry2 has joined #ruby-lang
voker57_ has quit [Ping timeout: 276 seconds]
voker57_ has joined #ruby-lang
Nautes has joined #ruby-lang
pkrnj has joined #ruby-lang
stu314 has joined #ruby-lang
ykk` has quit [Quit: ykk`]
symm- has joined #ruby-lang
Nautes has quit [Quit: Leaving]
<stu314> Hi, I have a question regarding a recent change in 1_9_3 branch: the code in include/ruby/missing.h changed and now it reads: if !defined(HAVE_STRUCT_TIMEVAL) || !defined(HAVE_STRUCT_TIMESPEC) ; then [ if defined(HAVE_TIME_H) {include <time.h>}; if defined(HAVE_SYS_TIME_H) {include <sys/time.h>} ]. I think the exclamation marks (negation) are wrong.
<stu314> Because later in that file are the structs defined if !defined(HAVE_STRUCT_TIMEVAL), ...
sepp2k has joined #ruby-lang
<stu314> And the code in configure defines HAVE_STRUCT_TIMEVAL and HAVE_STRUCT_TIMESPEC if it found them in time.h or sys/time.h.
brettchalupa has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
Mon_Ouie has quit [Ping timeout: 252 seconds]
erpuds has quit [Quit: erpuds]
<manveru> gnufied: you play?
bcardarella has joined #ruby-lang
<gnufied> manveru: a bit.
<bcardarella> #method_a calls #method_b. Is there a way from #method_b to get the name of the calling method? So in my simple example I would expect something like calling_method => :method_a
krohrbaugh has joined #ruby-lang
<gnufied> bcardarella: caller
<manveru> bcardarella: yeah
<manveru> ruby -e 'def method_a; method_b; end; def method_b; caller; end; p method_a'
<bcardarella> yeah,so I have to parse it?
<manveru> well, parse is said a bit much :)
<injekt> caller_locations(1, 1).first.label
<bcardarella> caller.first
<injekt> if you're on ruby 2.0
<bcardarella> ok
<bcardarella> ty
<injekt> otherwise caller.first and parse the string
mrsolo has joined #ruby-lang
<gnufied> injekt: wow, didn't know that.
<injekt> gnufied: :)
<bcardarella> that works, awesome :)
chessguy has joined #ruby-lang
<manveru> sweet
<manveru> i had no idea either :)
vbatts|work has quit [Quit: MeSoChatty 0.3.8]
<manveru> tho the only place i used that was __DIR__, which is obsolete now as well
tdy has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh1 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
krohrbaugh1 has quit [Read error: Connection reset by peer]
Nautes has joined #ruby-lang
PhilG has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh1 has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
vbatts|work has joined #ruby-lang
krohrbaugh1 has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 276 seconds]
headius has quit [Quit: headius]
krohrbaugh has joined #ruby-lang
cofin has quit [Quit: cofin]
t_ has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving.]
mucker has quit [Quit: leaving]
adambeynon has quit [Quit: Computer has gone to sleep.]
headius has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
Nautes has quit [Quit: Leaving]
anonymuse has quit [Read error: Operation timed out]
pkrnj has joined #ruby-lang
kgrz has quit [Ping timeout: 276 seconds]
marr has quit [Ping timeout: 252 seconds]
palvoo has joined #ruby-lang
adambeynon has joined #ruby-lang
<palvoo> Hey, what does this structure mean?: VjdeTemplateManager.[](name,path1+'/vjde/tlds/')
<palvoo> I mean the [] after the . ?
<palvoo> well, actually the whole thing. what's it doing?
pandy has quit [Read error: Connection reset by peer]
pandy has joined #ruby-lang
<drbrain> palvoo: it's the same as VjdeTemplateManager[name, path1 + '/vjde/tlds/']
<drbrain> palvoo: [] is a method name, so .[](…) is like .index(…) but much uglier
<palvoo> what does the comma do in your example?
<drbrain> same as it would in any method argument list
TheNotary has joined #ruby-lang
<palvoo> is [] a standard function, or is it something I would have to look in the VjdeTemplateManager class to find?
vlad_starkov has joined #ruby-lang
<drbrain> palvoo: there is no Object#[]
dhruvasagar has quit [Read error: Operation timed out]
<drbrain> but there is Array#[] and Hash#[] and String#[]
<palvoo> ah. ok... I'll look those up. Thank you
ndrst has quit [Ping timeout: 245 seconds]
<drbrain> … you can probably find it defined (as def [](…)) on VjdeTemplateManager
swav has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
ndrst has joined #ruby-lang
brianpWins has joined #ruby-lang
solars has joined #ruby-lang
stu314 has left #ruby-lang [#ruby-lang]
brettchalupa has quit [Quit: brettchalupa]
elia has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
mistym is now known as mistym_lunch
GarethAdams has joined #ruby-lang
intellitech has quit [Quit: intellitech]
lethan has joined #ruby-lang
nXqd has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
brettchalupa has joined #ruby-lang
sailias has quit [Ping timeout: 248 seconds]
<zzak> brettchalupa: omg
<injekt> zzak: dude that biscuit looks amazeballs
<zzak> ham and cheezum
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
cofin has joined #ruby-lang
<injekt> ham and AWEZUM
lethan has left #ruby-lang [#ruby-lang]
<brettchalupa> wut
<zzak> hah
palvoo has quit [Ping timeout: 245 seconds]
pasties has quit [Quit: Gone]
erpuds has joined #ruby-lang
roadt has quit [Ping timeout: 248 seconds]
mbj has quit [Read error: Operation timed out]
wesside_ has joined #ruby-lang
ikrima has joined #ruby-lang
PhilG has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
plusk has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
rwk1 has quit [Ping timeout: 245 seconds]
dustint_ has joined #ruby-lang
pandy has quit [Read error: Connection reset by peer]
pandy has joined #ruby-lang
<andrewvos> Has anyone heard of an app that allows me to run a script, take the text from that script, and then display it in the OS X menu bar?
<andrewvos> (The script is a ruby script ;))
pandy has quit [Read error: Connection reset by peer]
pandy has joined #ruby-lang
dustint_ has quit [Quit: Leaving]
dustint_ has joined #ruby-lang
<zzak> rubycocoa?
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
xcombelle has quit [Remote host closed the connection]
sailias has joined #ruby-lang
<andrewvos> zzak: I kind of just want an app that already does it for me
owen1 has joined #ruby-lang
<owen1> i am trying to run thin with forever. forever start -c thin start doesn't seems to work. can someone correct me?
dezasseis has quit [Quit: Leaving.]
mbj has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
<injekt> owen1: what happens?
GarethAdams has quit [Read error: Connection reset by peer]
dustint_ has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
<owen1> forever start -c thin start =>
<owen1> script /usr/local/nextgen/Category-Based-Attributes/source/start does not exist.
<injekt> oh you dont mean foreverb?
PhilG has joined #ruby-lang
symm- has quit [Ping timeout: 264 seconds]
<owen1> npm install forever -g
<yorickpeterse> is that going to take forever?
<MouseTheLuckyDog> Can I get as a string the name of a variable? If so how?
Nisstyre has joined #ruby-lang
<yorickpeterse> >> number = 10; local_variables
<canton7> MouseTheLuckyDog, more context?
<eval-in> yorickpeterse => [:number] (http://eval.in/23870)
<yorickpeterse> You can't do something like `foo = 10; foo.get_variable_name` though
<MouseTheLuckyDog> I have wriotten a function which tests variables to see if they match crietia. If they don't I want to print "variable failed test" where variable is the variable name.
<yorickpeterse> you can't resolve variable names based on values
<yorickpeterse> you'd have to explicitly pass a string/symbol to those methods
<yorickpeterse> (for the variable names)
<MouseTheLuckyDog> instead of passing the variable name could I pass a string with the variable name, create a local variable to store the value of the variable, then print the string and the variable.
malev has joined #ruby-lang
<yorickpeterse> def test_something(data, name); p "#{name} is invalid" unless data; end # Most basic form
<MouseTheLuckyDog> Something like: def print variable(foo_str); puts "#{foo_str} =#{value of the variable whose name is foo_str}"
jperry2 has left #ruby-lang [#ruby-lang]
<MouseTheLuckyDog> sorry
<MouseTheLuckyDog> Something like: def print_variable(foo_str); puts "#{foo_str} =#{value of the variable whose name is foo_str}"
<MouseTheLuckyDog> print_variable("mydata") : Output is "mydata = value".
hahuang65 has joined #ruby-lang
plusk has quit [Quit: plusk]
jperry_ has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
mistym_lunch is now known as mistym
intellitech has joined #ruby-lang
intellitech has quit [Changing host]
intellitech has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
<injekt> MouseTheLuckyDog: yorickpeterse> you can't resolve variable names based on values
wallclockbuilder has joined #ruby-lang
<injekt> local variables anyway
adambeynon has joined #ruby-lang
malev has quit [Ping timeout: 245 seconds]
rwk1 has joined #ruby-lang
<MouseTheLuckyDog> injekt, How about the other given a string with a variable name get the value?
<injekt> MouseTheLuckyDog: huh?
<MouseTheLuckyDog> Look at my example.
<injekt> MouseTheLuckyDog: you mean `foo = "bar"; do_something("foo") #=> "bar"` ?
<MouseTheLuckyDog> Something like: def print_variable(foo_str); puts "#{foo_str} =#{value of the variable whose name is foo_str}"
<MouseTheLuckyDog> print_variable("mydata") : Output is "mydata = value".
<injekt> no
<injekt> you can't fetch local variables by their labels like that
<yorickpeterse> You can see local variables as a human readable ID where only you actually know the human readable form
hahuang65 has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> (that's not entirely correct but close enough)
totallymike has quit [Ping timeout: 252 seconds]
rwk1 has quit [Ping timeout: 245 seconds]
<injekt> yorickpeterse: yeah but it wouldn't work in the way MouseTheLuckyDog wants it too because scope would have changed. Unless I'm missing what you're saying
apeiros has quit [Remote host closed the connection]
<yorickpeterse> what I'm saying is that as far as I know MRI is not capable of retrieving values by variable names (as passed during runtime), or the other way around
<yorickpeterse> unless you use eval()
apeiros has joined #ruby-lang
<yorickpeterse> >> var_name = 'number'; number = 10; eval("#{var_name}")
<eval-in> yorickpeterse => 10 (http://eval.in/23883)
<injekt> yorickpeterse: yeah I'm saying that wouldn't work because scope would have changed (with eval, that is)
<yorickpeterse> >> module Kernel; alias evil eval; end; evil("huehuehue")
<eval-in> yorickpeterse => /tmp/execpad-02c42f5b9140/source-02c42f5b9140:2:in `eval': undefined local variable or method `huehuehue' for main:Object (NameError) ... (http://eval.in/23884)
chrishunt has quit [Quit: ZzZzZz...]
<yorickpeterse> injekt: eval() doesn't introduce a new scope
<yorickpeterse> class_eval and instance_eval do however
<PhilG> How would I capture multiple words in a regular expression?
<yorickpeterse> well, as in they evaluate in a different one
<injekt> yorickpeterse: lol im saying using print_variable and eval wouldn't work because the local variable would be evaluated within the context of the method, not the original scope
breakingthings has quit [Quit: breakingthings]
<injekt> yorickpeterse: not that eval introduces a new scope silly face
judofyr has joined #ruby-lang
MaddinXx has joined #ruby-lang
<yorickpeterse> aah
<yorickpeterse> also, today I discovered void pointers in C
<yorickpeterse> and proceeded to abuse them
<yorickpeterse> (as we speak)
<yorickpeterse> TYPE WARNINGS EVERYWHERE!
vlad_starkov has joined #ruby-lang
<judofyr> >> def foo(name, &blk); eval(name.to_s, blk.binding); end; a = 1; foo(:a){}
<eval-in> judofyr => 1 (http://eval.in/23885)
<judofyr> you can get the binding through a block
<injekt> judofyr: yup I was going to mention something similar (not exactly that) but didn't want to promote doing so
<judofyr> it's a bit hacky
<PhilG> judofyr: are you good with regexpressions?
<injekt> PhilG: (word1|word2)
<judofyr> PhilG: I know them all. /a/, /b/, /c/, /d/
<injekt> judofyr: not to mention the prolific /e/
<PhilG> injekt: okay, basically I want to check a sentence, and then group any amount of words after a certain part of it
<injekt> PhilG: I don't really follow, wanna show some code?
<PhilG> There is not code, I am still playing with cinch
sush24 has quit [Quit: This computer has gone to sleep]
<injekt> eh
<judofyr> >> "grab AFTER this little thing here"[/AFTER ([\w ]+)/, 1]
<eval-in> judofyr => "this little thing here" (http://eval.in/23886)
<judofyr> or just:
<judofyr> >> "grab AFTER this little thing here"[/AFTER (.+)/, 1]
<eval-in> judofyr => "this little thing here" (http://eval.in/23887)
<judofyr> depending on your definition of "words"
<lianj> prolly the last
GarethAdams has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
<PhilG> I was missing these [] in the \w part
<PhilG> What makes the difference between (\w+) and [(\w+)]?
<judofyr> PhilG: () captures stuff
<injekt> [] is for character classes
<injekt> [\w ] matches a word or a space
<judofyr> [abcd] matches "a" or "b" or "c" or "d"
<PhilG> I know the round braces capture
malev has joined #ruby-lang
<PhilG> That was what I was trying to achieve :D
<judofyr> [(\w+)] matches "(" or "\w" or "+" or ")"
<judofyr> "(" or a word*
<PhilG> wait what?
<judofyr> PhilG: you can't have captures inside character classes
<injekt> captures go outside char classes
<judofyr> PhilG: it doesn't make sense
<PhilG> yeah I am a bit confused right now
<PhilG> ([\w ]+) What does this do? Or what do these []?
<injekt> injekt> [\w ] matches a word or a space
<judofyr> [\w ] matches a word or a space
<injekt> BRO
<judofyr> [\w ]+ matches multiple words/spaces
krohrbaugh has joined #ruby-lang
<judofyr> (err, also note that \w doesn't actually match a whole word, it matches a character that is in a word)
<PhilG> okay, I was missing the space to capture multiple words. That is why the [] are ther
<PhilG> *there
mbj has quit [Ping timeout: 264 seconds]
<judofyr> PhilG: yes, you could also written ((\w| )+)
<judofyr> but that creates another (unnecessary) capture group
<injekt> (?:(?:\w|\s)+)
<injekt> trololo
<PhilG> No wonder the second word was not in the capture group
<judofyr> PhilG: I think \w is just a shortcut for [a-zA-Z0-9_]
<judofyr> I don't quite get why we call it a "word", because it only matches one char…
<canton7> as opposed to non-word characters?
<injekt> sure but it's a word char
<injekt> the official type for \w is 'word character'
<judofyr> ah
s0ber_ has joined #ruby-lang
<judofyr> that makes more sense
pskosinski has quit [Ping timeout: 252 seconds]
s0ber has quit [Ping timeout: 260 seconds]
s0ber_ is now known as s0ber
krohrbaugh has quit [Read error: Operation timed out]
<judofyr> k. night folks!
judofyr has quit [Remote host closed the connection]
pskosinski has joined #ruby-lang
mbj has joined #ruby-lang
wallclockbuilder has quit [Ping timeout: 245 seconds]
swav has joined #ruby-lang
pipework has quit [Remote host closed the connection]
erpuds has quit [Quit: erpuds]
richcollins has joined #ruby-lang
pandy_ has joined #ruby-lang
wallclockbuilder has joined #ruby-lang
pandy has quit [Ping timeout: 264 seconds]
<cout> is it possible to get a list of all thread-local variables?
erpuds has joined #ruby-lang
<cout> oh #keys, nm
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
benanne has joined #ruby-lang
wallcloc_ has joined #ruby-lang
wallclockbuilder has quit [Ping timeout: 245 seconds]
mytrile has quit [Remote host closed the connection]
wallcloc_ has quit [Remote host closed the connection]
mawueli has joined #ruby-lang
nettsundere has joined #ruby-lang
Marco__ has joined #ruby-lang
Marco__ has left #ruby-lang [#ruby-lang]
krohrbaugh has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mawueli_ has joined #ruby-lang
rwk1 has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 252 seconds]
benanne has quit [Read error: Connection reset by peer]
mawueli has quit [Ping timeout: 255 seconds]
PhilG has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
swav has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 245 seconds]
mawueli_ has quit [Ping timeout: 245 seconds]
chrishunt has joined #ruby-lang
mawueli has joined #ruby-lang
marr has joined #ruby-lang
yalue has quit [Read error: Connection reset by peer]
mawueli has quit [Ping timeout: 268 seconds]
ndrst has quit [Ping timeout: 256 seconds]
sailias has quit [Quit: Leaving.]
ndrst has joined #ruby-lang
vbatts|work has quit [Ping timeout: 264 seconds]
ozzloy has joined #ruby-lang
totallymike has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
tbuehlmann has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
vbatts|work has joined #ruby-lang
apeiros has joined #ruby-lang
scampbell has quit [Quit: Leaving]
wmoxam has quit [Ping timeout: 252 seconds]
MartynKeigher has quit [Quit: http://www.martynkeigher.com]
blacktulip has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
QKRTHNU has joined #ruby-lang
MartynKeigher has joined #ruby-lang
ozzloy has quit [Ping timeout: 256 seconds]
MaddinXx has quit [Remote host closed the connection]
brettchalupa has quit [Quit: brettchalupa]
dustint has quit [Ping timeout: 245 seconds]
__butch__ has quit [Quit: Leaving.]
__butch__ has joined #ruby-lang
krohrbaugh has joined #ruby-lang
alessio_rocco has quit [Remote host closed the connection]
tsan has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
jovy88 has joined #ruby-lang
rwk1 has joined #ruby-lang
voker57_ has quit [Remote host closed the connection]
krohrbaugh has quit [Ping timeout: 268 seconds]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
rwk1 has quit [Ping timeout: 252 seconds]
mbj has quit [Ping timeout: 264 seconds]
machuga|away has joined #ruby-lang
greenarrow has joined #ruby-lang
vlad_starkov has joined #ruby-lang
thone has joined #ruby-lang
idkazuma has joined #ruby-lang
thone_ has quit [Ping timeout: 264 seconds]
mistym has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 276 seconds]
tsan has quit [Quit: Leaving.]
symm- has joined #ruby-lang
headius has quit [Quit: headius]
sailias has joined #ruby-lang
snafoo has joined #ruby-lang
levicole_ is now known as levicole
snafoo has quit [Client Quit]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
erpuds has quit [Quit: erpuds]
snafoo has joined #ruby-lang
snafoo has joined #ruby-lang
snafoo has quit [Changing host]
enebo has quit [Quit: enebo]
zenspider has quit [Quit: Terminated with extreme prejudice - dircproxy 1.1.0]
snafoo has quit [Client Quit]
QKRTHNU has quit [Quit: has digitaly disappeared.]
nathanstitt has quit [Quit: I growing sleepy]
snafoo has joined #ruby-lang
sailias has quit [Quit: Leaving.]
snafoo has quit [Client Quit]
jovy88 has quit [Ping timeout: 245 seconds]
snafoo has joined #ruby-lang
chessguy has joined #ruby-lang
snafoo has quit [Client Quit]
snafoo has joined #ruby-lang
snafoo has quit [Client Quit]
dezasseis has joined #ruby-lang
palvoo has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 264 seconds]
TheNotary has quit [Quit: Leaving]
jovy88 has joined #ruby-lang
DomKM has quit [Ping timeout: 255 seconds]
snafoo has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
<andrewvos> oh hai
<drbrain> hi
voker57 has quit [Remote host closed the connection]
malev has quit [Remote host closed the connection]
skade has joined #ruby-lang
swav has joined #ruby-lang
sleepdork is now known as sindork
pandy_ has quit [Ping timeout: 259 seconds]
<erikh> hello
rwk1 has joined #ruby-lang
nXqd has quit [Read error: Operation timed out]
azulinho1 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
azulinho1 has quit [Quit: Leaving.]
azulinho1 has joined #ruby-lang
mrfelix has joined #ruby-lang
azulinho1 has quit [Client Quit]
rwk1 has quit [Ping timeout: 276 seconds]
sailias has joined #ruby-lang
mistym has joined #ruby-lang
totallymike has quit [Ping timeout: 256 seconds]
mistym has quit [Remote host closed the connection]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
pandy has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
sailias has quit [Quit: Leaving.]
ryez has joined #ruby-lang
<andrewvos> goodnight
<MouseTheLuckyDog> http://pastie.org/7820218
<MouseTheLuckyDog> Any idea why the second system fails to take it's input from the tty?
solars has quit [Ping timeout: 264 seconds]
megha has quit [Ping timeout: 245 seconds]
baba has joined #ruby-lang
machuga|away has left #ruby-lang [#ruby-lang]
<eam> MouseTheLuckyDog: what platform?
<MouseTheLuckyDog> Linux
skade has quit [Quit: Computer has gone to sleep.]
ikrima has quit [Quit: Computer has gone to sleep.]
<eam> should work fine
<eam> what do you mean "fails to take its input?"
<MouseTheLuckyDog> If your running on linux try it.
<eam> yeah I did, it looks fine to me, what specific problem do you have?
<drbrain> MouseTheLuckyDog: why don't you require 'io/console; $stdin.raw; $stdin.noecho
<drbrain> ?
<MouseTheLuckyDog> The first time system is called irb acts like it was started from a the commandline. The second time it justs terminates like it got bad input.
idkazuma has quit [Remote host closed the connection]
setmeaway has quit [Ping timeout: 255 seconds]
<MouseTheLuckyDog> Sorry I foget to mentionm. The problem only shows up if you press an escape sequence.
<eam> which sequence?
<MouseTheLuckyDog> Like a cursor key.
<eam> those are multiple character sequences
<MouseTheLuckyDog> Yeah.
<eam> you're reading part of it, and the rest sits in the io buffer and the second irb reads it
voker57 has quit [Read error: Connection reset by peer]
<eam> to protect against that, dump characters until the buffer is empty before going onto the second system()
<MouseTheLuckyDog> drbrain. I never tried the noecho, did try raw or rather raw!
<drbrain> MouseTheLuckyDog: they're cross-platform versions of system "stty ..."
<eam> you need to read more than just one getc()
<eam> io/console is a good idea but that's not the problem
<drbrain> when I run the io/console version it appears to work fine for me
<eam> drbrain: the key is "Sorry I foget to mentionm. The problem only shows up if you press an escape sequence."
<drbrain> I pressed the up-arrow and it read "\e[A" and went to irb again
<drbrain> ↑ is an escape sequence, right?
<MouseTheLuckyDog> drbrain, what is the opposite of $stdin.noecho?
<MouseTheLuckyDog> Yes.
<drbrain> here's what I ran: https://gist.github.com/drbrain/5544411
<eam> drbrain: works for me with both versions -- they're functionally identical
<eam> I don't know which sequence he's running
<drbrain> I typed ^D, up-arrow, ^D
<eam> yeah that works for me as well
<drbrain> is there something else I should try typing?
<drbrain> BTW, I'm on OS X
rwk1 has joined #ruby-lang
woollyams has joined #ruby-lang
ikrima has joined #ruby-lang
<MouseTheLuckyDog> drbrain, try a regular cursor key.
<drbrain> MouseTheLuckyDog: like the up-arrow?
<MouseTheLuckyDog> drbrain,. try typing into the irb sessions.
<MouseTheLuckyDog> Yeah
<MouseTheLuckyDog> I still get the problem on my machine.
<drbrain> MouseTheLuckyDog: I typed into irb: up-arrow, enter, "exit"
<drbrain> then up-arrow in the in-between times
<MouseTheLuckyDog> BTW someone point slap eam with a fish and point to the read_nonblocks.
<drbrain> then in the second irb: up-arrow, up-arrow, exit, enter
<MouseTheLuckyDog> and it all worked?
<drbrain> MouseTheLuckyDog: I have ARGV.concat %w[--readline] in my ~/.irbrc
<drbrain> yes
<drbrain> all worked
<eam> MouseTheLuckyDog: make them unconditional
<drbrain> MouseTheLuckyDog: I'm not sure if having readline enabled helps any
<eam> MouseTheLuckyDog: replace the second irb with strace -o/tmp/somefile irb
<eam> see what it's reading
<eam> I'm pretty certain it's a leftover character from whatever you input -- the details from there could vary by implementation
palvoo has quit [Quit: Page closed]
<MouseTheLuckyDog> drbrain, actually I compile this and run that program, not irb. I figure irb was easier fir you guys :)
<MouseTheLuckyDog> http://pastie.org/7820304
<drbrain> MouseTheLuckyDog: looks like cat
mrsolo has quit [Quit: Leaving]
headius has joined #ruby-lang
<eam> MouseTheLuckyDog: strace it, give us what read() sees
enebo has joined #ruby-lang
Guest83841 has joined #ruby-lang
richcollins has quit [Quit: richcollins]
pandy has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
mrfelix has quit [Quit: Computer has gone to sleep.]
<MouseTheLuckyDog> eam: I put strace in both the first and the second and compared the reads. The last read is the only one that is different.
<MouseTheLuckyDog> The first time: read(0, "1\n", 1024) = 2 and the the second time: ead(0, 0x7ff805a53000, 1024) = -1 EAGAIN (Resource temporarily unavailable)
<MouseTheLuckyDog> s/ead/read/
<MouseTheLuckyDog> drbrain: It's the C++ just reads input from stdin. I added stuff to record where in the code it is, and what the input it is getting is.
idkazuma has joined #ruby-lang
vlad_starkov has joined #ruby-lang
enebo has quit [Quit: enebo]
chessguy has joined #ruby-lang