ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
bluepojo has quit [Quit: Leaving.]
bluepojo has joined #ruby-lang
bluepojo has quit [Client Quit]
bluepojo has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
spuk has joined #ruby-lang
kke has quit [Ping timeout: 265 seconds]
kke has joined #ruby-lang
robotmay has quit [Ping timeout: 246 seconds]
nertzy has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
emptyfla_ has joined #ruby-lang
emptyflask has quit [Ping timeout: 244 seconds]
emptyfla_ has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
dasil003 has quit [Quit: dasil003]
thone has joined #ruby-lang
dankest has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
gregmore_ has joined #ruby-lang
saxy has joined #ruby-lang
thone has quit [Read error: Operation timed out]
thone has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
stonerfish has joined #ruby-lang
spuk has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby-lang
spuk has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
wyhaines has joined #ruby-lang
raphaelpizzi has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
raphaelpizzi has quit [Client Quit]
KA_ has quit [Quit: KA_]
havenn_ has quit [Remote host closed the connection]
rsl has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby-lang
josephholsten has joined #ruby-lang
KA_ has joined #ruby-lang
havenn has quit [Ping timeout: 276 seconds]
nazty has quit [Ping timeout: 245 seconds]
nazty has joined #ruby-lang
pkrnj has joined #ruby-lang
KA_ has quit [Quit: KA_]
lsegal has joined #ruby-lang
yalue has quit [Read error: Connection reset by peer]
KA_ has joined #ruby-lang
nazty has quit [Ping timeout: 245 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
apeiros_ has joined #ruby-lang
diegoviola has joined #ruby-lang
nazty has joined #ruby-lang
havenn has joined #ruby-lang
KA_ has quit [Quit: KA_]
nazty has quit [Read error: Connection reset by peer]
slyphon has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
apeiros_ has quit [Ping timeout: 260 seconds]
esad has quit [Quit: Computer has gone to sleep.]
nazty has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
KA_ has joined #ruby-lang
gregmore_ has quit [Ping timeout: 252 seconds]
brianpWins has joined #ruby-lang
esad has joined #ruby-lang
davpoind has joined #ruby-lang
stardiviner has joined #ruby-lang
davpoind has quit [Client Quit]
KA_ has quit [Quit: KA_]
blazes816 has quit [Quit: blazes816]
ramonmaruko has quit [Remote host closed the connection]
swarley has quit [Ping timeout: 264 seconds]
nazty has quit [Read error: Connection reset by peer]
sush24 has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
ramonmaruko has joined #ruby-lang
swarley has joined #ruby-lang
spuk has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
KA_ has joined #ruby-lang
JetAway has joined #ruby-lang
CaptainJet has quit [Disconnected by services]
JetAway has left #ruby-lang [#ruby-lang]
KA_ has quit [Client Quit]
havenn has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
KA_ has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
KA_ has quit [Client Quit]
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
saxy has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
KA_ has joined #ruby-lang
KA_ has quit [Client Quit]
krohrbaugh has quit [Quit: Leaving.]
swarley has quit [Quit: Leaving]
swarley has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
diegoviola has quit [Quit: Reconnecting]
diegoviola has joined #ruby-lang
chimkan has quit [Quit: chimkan]
sn0wb1rd has joined #ruby-lang
dankest has quit [Quit: Linkinus - http://linkinus.com]
slyphon has quit [Quit: WeeChat 0.3.8]
gregmoreno has joined #ruby-lang
joni has joined #ruby-lang
joni has left #ruby-lang [#ruby-lang]
kurko_ has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
toretore has quit [Quit: This computer has gone to sleep]
stonerfish has joined #ruby-lang
dorei has quit []
brianpWins has quit [Quit: brianpWins]
krohrbaugh has joined #ruby-lang
ryanf has joined #ruby-lang
davidbalber|away is now known as davidbalbert
<zzak> drbrain: someone reported File::NULL being undocumented, but rdoc -C doesn't think so
<zzak> line#5523: file.c: rb_file_const("NULL", rb_obj_freeze(rb_usascii_str_new2(null_device)));
<zzak> i tried adding: Document-const: File::NULL but it wasn't parsed by rdoc
<drbrain> zzak: rb_file_const won't be picked up until RDoc 4 is imported to trunk
<drbrain> a Document-const: will be necessary, though
<zzak> got it
<zzak> was that the ticket from kosaki-san?
<drbrain> yes
<zzak> too many tickets
<drbrain> yeah
<zzak> i will add a patch anyways
<zzak> i couldnt figure out where IO::NULL was defined
gregmoreno has quit [Remote host closed the connection]
<drbrain> it ends up in File::Constants which gets included in IO
<zzak> but i read somewhere in the changelog it was moved to file.c
<zzak> yeah
<zzak> i thought so, thank you for confirming :)
gregmoreno has joined #ruby-lang
<zzak> drbrain: rdoc should be fine with File::NULL, right? will that cover the IO::NULL alias if i just document it in one place?
<drbrain> just NULL will do it
<drbrain> I have this test: http://paste.segment7.net/abe.html
gregmoreno has quit [Remote host closed the connection]
<zzak> much appreciated!
robbyoconnor has joined #ruby-lang
ryanf has quit [Quit: leaving]
kurko_ has quit [Quit: Computer has gone to sleep.]
kurko_ has joined #ruby-lang
<zzak> drbrain: how do you feel about formatting patches? i know a couple of my first patches were format heavy
<drbrain> just keep them separate from content and it's fine
<drbrain> for the 1.9.3 release I reformatted some stuff
spuk has quit [Changing host]
spuk has joined #ruby-lang
<zzak> regarding #7326, i suggested they separate content changes as well
kurko_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<zzak> it is hard to review
areil has joined #ruby-lang
dc5ala has joined #ruby-lang
vlad_starkov has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
<matti> zzak: ;] drbrain ;]
ghanima has quit [Quit: Leaving.]
andrewhl has quit [Remote host closed the connection]
spike|spiegel has quit [Read error: Connection reset by peer]
rohit has joined #ruby-lang
ryanf has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<drbrain> zzak: mostly, #7326 is long
<drbrain> I think it's ok, other than what I noted
spike|spiegel has joined #ruby-lang
<zzak> just read your comment, thanks for the review, you really didnt have to :D
<drbrain> mostly, I want to be sure we're moving to + for wrapping arguments
<zzak> i sent him a link to the documenterhowto wiki page
<zzak> which explains that
ruskie has quit [Excess Flood]
bluepojo has quit [Ping timeout: 245 seconds]
BigO has joined #ruby-lang
<drbrain> I don't yet have a good plan on how to fix the email address munging bug in RDoc
<drbrain> I know why it's happening now, at least
pkrnj has joined #ruby-lang
ruskie has joined #ruby-lang
lordnaz has quit [Ping timeout: 256 seconds]
BigO_ has joined #ruby-lang
BigO has quit [Ping timeout: 265 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
krz has joined #ruby-lang
swarley has quit [Read error: Connection reset by peer]
rekky has joined #ruby-lang
cantonic has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
<zenspider> yorickpeterse: josh susser is "far too eager to grab [his] pitchfork and find somebody to shame in the name of whatever movement they support" ?!?! wtf is wrong with you?
facest has joined #ruby-lang
faces has quit [Ping timeout: 245 seconds]
swarley has joined #ruby-lang
<zzak> drbrain: did this get merged? https://github.com/zzak/rdoc/commit/79b8f1c
areil_ has joined #ruby-lang
<drbrain> zzak: no, but it's the wrong test
areil has quit [Ping timeout: 245 seconds]
<zzak> go figure
<drbrain> I thought that would be the right spot too, but, surprise! it was in crossref
<drbrain> … maybe I can make it match as an email instead
rekky has quit [Quit: rekky]
hakunin has quit [Remote host closed the connection]
chimkan has joined #ruby-lang
rohit has quit [Ping timeout: 245 seconds]
rohit has joined #ruby-lang
<zzak> crossref is scary
josephholsten has left #ruby-lang [#ruby-lang]
<drbrain> I know!
cantonic has joined #ruby-lang
areil_ has quit []
<zzak> kosaki-san.. o_o
<zzak> he couldn't wait until caturday
<drbrain> I guess not, it's OK
<drbrain> since he's grouping them all together anyhow, it's a good change
rekky has joined #ruby-lang
<zzak> is rdoc 4.0 going to be backported at all?
<drbrain> no, it'll be provided as a gem
<zzak> then his change is good, because it can be backported to document those constants in 1.9.3
<zzak> if necessary
<drbrain> yes
swarley has quit [Read error: Connection reset by peer]
statim has joined #ruby-lang
<zzak> it will be a pity for someone to backport all these documentation changes to 1.9.3 ;)
havenn has quit [Remote host closed the connection]
thatdutchguy has quit [Remote host closed the connection]
statim has quit [Client Quit]
statim has joined #ruby-lang
macmartine has joined #ruby-lang
brianpWins has joined #ruby-lang
statim has quit []
statim has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
KA_ has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ryanlecompte has joined #ruby-lang
jstemmer has quit [Ping timeout: 260 seconds]
thatdutchguy has joined #ruby-lang
statim has quit []
statim has joined #ruby-lang
jstemmer has joined #ruby-lang
havenn has joined #ruby-lang
KA_ has quit [Quit: KA_]
KA_ has joined #ruby-lang
ttilley has quit [Quit: ttilley]
ttilley has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
thatdutchguy has joined #ruby-lang
imperator has joined #ruby-lang
thatdutchguy has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
ryanlecompte has quit [Read error: Connection reset by peer]
anannie has quit [Ping timeout: 246 seconds]
ryanlecompte has joined #ruby-lang
mistym has joined #ruby-lang
<zzak> i wrote a patch in C :fearful:
mattruzicka has joined #ruby-lang
dankest has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 244 seconds]
mistym has quit [Remote host closed the connection]
mattruzicka has left #ruby-lang [#ruby-lang]
mattruzicka has joined #ruby-lang
<drbrain> zzak: looks fine to me
dabradley has quit [Ping timeout: 245 seconds]
<zzak> i marked it as 90% and assigned to kosaki lol
mksm has quit [Read error: Operation timed out]
mksm has joined #ruby-lang
dabradley has joined #ruby-lang
<imperator> zzak, what did you patch?
rohit has quit [Quit: Leaving]
<zzak> file.c rb_file_const for NULL
<zzak> rdoc wasn't parsing rb_file_const's
<imperator> oic
<zzak> kosaki did the heavy lifting, just missed one because i made a mistake
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Weems has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
mattruzicka has quit [Quit: Leaving.]
vlad_starkov has joined #ruby-lang
burgestrand has joined #ruby-lang
areil has joined #ruby-lang
<zzak> well it passed test-all
<drbrain> oh wow, I just found a for loop in rdoc!
<erikh> call zed
<imperator> zed's dead baby
chimkan has quit [Quit: chimkan]
* imperator waves to erikh
<erikh> hi
<erikh> watching a show about beards
<erikh> there is a man on here that treats growing his beard as a sport
<erikh> takes supplements to grow his beard
<erikh> flies halfway across the world for beard competitions in the alps
BigO_ has quit [Remote host closed the connection]
<imperator> uh....ok
<erikh> the whole show is about male grooming in general
<erikh> talking about this now: http://freshballs.com/
<imperator> i think i'd just tell people i was watching porn...easier to explain
<erikh> it is what you think it is.
<imperator> seems like a risky click
<erikh> it's tame
<erikh> but it's totally what you think it is
davidbalbert is now known as davidbalber|away
<erikh> the guy that owns the company totally has a straight face saying it too
<erikh> I guess that's salesmanship
<imperator> lol
areil_ has joined #ruby-lang
areil has quit [Ping timeout: 240 seconds]
cardoni has joined #ruby-lang
davidbalber|away is now known as davidbalbert
rekky has quit [Quit: rekky]
rekky has joined #ruby-lang
rekky has quit [Client Quit]
cosah has joined #ruby-lang
davidbalbert is now known as davidbalber|away
mattruzicka has joined #ruby-lang
chimkan_ has joined #ruby-lang
cardoni has quit [Quit: cardoni]
KA_ has quit [Quit: KA_]
ryanf has quit [Ping timeout: 245 seconds]
KA_ has joined #ruby-lang
JohnBat26 has joined #ruby-lang
solars has joined #ruby-lang
BigO has joined #ruby-lang
gnufied has joined #ruby-lang
rohit has joined #ruby-lang
thatdutchguy has joined #ruby-lang
datanoise has joined #ruby-lang
BigO has quit [Remote host closed the connection]
KA_ has quit [Read error: Connection reset by peer]
KA_ has joined #ruby-lang
rippa has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
KA_ has quit [Quit: KA_]
charliesome has joined #ruby-lang
dhruvasagar has joined #ruby-lang
rohit has quit [Quit: Leaving]
workmad3 has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
mattruzicka has quit [Quit: Leaving.]
qwerxy has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
ryanlecompte has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
imperator has quit [Quit: Leaving]
ryanf has joined #ruby-lang
rue|w has joined #ruby-lang
facest has quit [Ping timeout: 255 seconds]
fsvehla has joined #ruby-lang
Kuukunen has quit [Ping timeout: 260 seconds]
Kuukunen has joined #ruby-lang
kitallis has joined #ruby-lang
faces has joined #ruby-lang
ryanf has quit [Ping timeout: 260 seconds]
jxie has quit [Quit: leaving]
thatdutchguy has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
<TTilus> con you make an "falsy" object other than nil or false?
rippa has quit [Disconnected by services]
spinagon has joined #ruby-lang
<Mon_Ouie> No, althoughh you can change the #! (logical negation) method to make it partially behave like one
fsvehla has quit [Quit: fsvehla]
beawesomeinstead has quit [Max SendQ exceeded]
svyatov has joined #ruby-lang
mroth has quit [Read error: Operation timed out]
mroth has joined #ruby-lang
mroth has quit [Changing host]
mroth has joined #ruby-lang
mroth has joined #ruby-lang
<yorickpeterse> Morning
<yorickpeterse> zenspider: care to clarify why you think it's ok to use a non existing quote? Since that's not what I wrote
<yorickpeterse> Though it doesn't surprise me, too many people read what they (don't) want to read instead of reading what it actually says
<TTilus> Mon_Ouie: backing up a little and i see i was doing totally wrong thing ... and imo its actually good thing you cant do that
<yorickpeterse> zenspider: so instead I'll ask you the same question: what's your problem?
<TTilus> looks like avdi has gone thru the same path long ago =D http://devblog.avdi.org/2011/05/30/null-objects-and-falsiness/
beawesomeinstead has joined #ruby-lang
fsvehla has joined #ruby-lang
zomgbie has joined #ruby-lang
spike|spiegel has quit [Ping timeout: 255 seconds]
spinagon has quit [Ping timeout: 276 seconds]
ottbot has joined #ruby-lang
wiiw has joined #ruby-lang
<wiiw> b = 'a'.gsub!(/c/,' ') ; why b == nil ?
<yorickpeterse> because you're using gsub! and not gsub
<yorickpeterse> gsub! modifies the string in place and doesn't return anything
<yorickpeterse> Hm wait, it does
<yorickpeterse> Ah
<yorickpeterse> It will return the replaced data when it actually finds something
<yorickpeterse> b = 'a'.gsub!('a',' ') # => " "
<yorickpeterse> b = 'b'.gsub!('a',' ') # => nil
<wiiw> yorickpeterse: why not return nil when it actually finds something
<Paradox> ʕ •ᴥ•ʔ
<yorickpeterse> You'd have to ask matz for that :)
<wiiw> yorickpeterse: oh.
<Paradox> ʕ •ᴥ•ʔ hello
wiiw has left #ruby-lang ["ok"]
<Mon_Ouie> inplace methods like gsub! often return nil when no change has been made to the receiver (same with reject! and select! for example)
ryanlecompte has joined #ruby-lang
<Paradox> Mon_Ouie, looks like he missed it
<Mon_Ouie> Oh, didn't notice that. I ignore joins and quits.
<Paradox> drop bears hide in joins and quits
<Paradox> probably a good idea
cosah has quit [Ping timeout: 246 seconds]
cosah has joined #ruby-lang
xeviox|awy is now known as xeviox
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
cyri_ has joined #ruby-lang
mytrile has joined #ruby-lang
qwerxy has quit [Quit: offski]
blacktulip has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
rohit has joined #ruby-lang
<drbrain> Paradox: I keep vegemite on the back of my neck to keep the drop bears away
<Paradox> drbrain, nah, you gotta use shitty beer
<Paradox> Fosters
<Paradox> or some crap like that
<Paradox> 'least according to what i've heard
<Paradox> never good beer
<Paradox> they are attracted to that
Averna has quit [Quit: Leaving.]
bastilian has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
madish has joined #ruby-lang
dankest has quit [Quit: Leaving...]
postmodern has quit [Quit: Leaving]
cosah has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby-lang
lele has quit [Ping timeout: 246 seconds]
zomgbie has quit [Ping timeout: 268 seconds]
drbrain has quit [Ping timeout: 246 seconds]
lele has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
dasil003 has joined #ruby-lang
Paradox has quit [Read error: Operation timed out]
spike|spiegel has joined #ruby-lang
Paradox has joined #ruby-lang
workmad3 has joined #ruby-lang
fsvehla has quit [Ping timeout: 255 seconds]
robotmay has joined #ruby-lang
dasil003 has quit [Quit: dasil003]
brianpWins has quit [Quit: brianpWins]
asaaki has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby-lang
dr_bob has joined #ruby-lang
spike|spiegel has quit [Quit: leaving]
fsvehla has joined #ruby-lang
toretore has joined #ruby-lang
drbrain has joined #ruby-lang
fsvehla has quit [Client Quit]
srji has joined #ruby-lang
zomgbie has joined #ruby-lang
qwerxy has joined #ruby-lang
asaaki has quit [Remote host closed the connection]
agarcia has joined #ruby-lang
asaaki has joined #ruby-lang
catepill1r has joined #ruby-lang
icooba has quit [Quit: Textual IRC Client: www.textualapp.com]
dasil003 has joined #ruby-lang
catepill1r has quit [Ping timeout: 244 seconds]
catepillar has quit [Ping timeout: 264 seconds]
charliesome has quit [Read error: Operation timed out]
mytrile has quit [Remote host closed the connection]
catepillar has joined #ruby-lang
judofyr has joined #ruby-lang
GarethAdams has joined #ruby-lang
fsvehla has joined #ruby-lang
judofyr_ has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
rohit has quit [Ping timeout: 245 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ryanlecompte has joined #ruby-lang
gjaldon has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
JohnBat26 has joined #ruby-lang
ryanlecompte has quit [Ping timeout: 245 seconds]
tonni has joined #ruby-lang
srji has quit [Ping timeout: 244 seconds]
judofyr has joined #ruby-lang
judofyr_ has quit [Read error: Connection reset by peer]
florianb has joined #ruby-lang
srji has joined #ruby-lang
zmack has joined #ruby-lang
florianb has quit [Client Quit]
mars777 has quit [Quit: mars777]
vlad_starkov has quit [Remote host closed the connection]
rohit has joined #ruby-lang
sush24 has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
GarethAdams has quit [Ping timeout: 244 seconds]
GarethAdams has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
judofyr_ has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
<gjaldon> anyone here know how to generate docs for Rails that can be viewed in Ri?
gmci_ has quit [Quit: Computer has gone to sleep.]
judofyr_ has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
<Mon_Ouie> gem install does it automatically
Xzyx987X_ has quit [Quit: Leaving]
fsvehla has quit [Ping timeout: 265 seconds]
Hakon has joined #ruby-lang
icooba has joined #ruby-lang
<rohit> I'm guessing gem --help will have some way of generating/regenerating the docs if you didn't do so while installing rails gem
Xzyx987X has joined #ruby-lang
adambeynon has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
<gjaldon> Mon_Ouie, didn't install docs when i initially installed Rails
Hakon has quit [Quit: Leaving...]
GarethAdams has quit [Remote host closed the connection]
GarethAdams|Work has joined #ruby-lang
zomgbie has quit [Ping timeout: 260 seconds]
<yorickpeterse> gjaldon: gem install --ri --rdoc GEM (if I remember correctly)
<yorickpeterse> Might be disabled by default
<gjaldon> thanks guys looks like its installing now
<gjaldon> did: gem rdoc rails --all --overwrite
<gjaldon> rohit, checked gem -h as you suggested lol
<gjaldon> :D
cantonic has quit [Quit: cantonic]
aetcore has joined #ruby-lang
GarethAdams|Work has quit [Remote host closed the connection]
<kalleth> anyone got any ideas on how i can refactor this method to appear cleaner?
steveklabnik has joined #ruby-lang
GarethAdams has joined #ruby-lang
steveklabnik has left #ruby-lang [#ruby-lang]
<andrewvos> kalleth: No
<kalleth> seems off having to return false/false/false three times in a row
<kalleth> :(
<andrewvos> kalleth: Maybe chnge the nam
<kalleth> i feel like i should be able to wrap the logic up better
<andrewvos> kalleth: Well you're doing two different things there. The method name should expose this
<andrewvos> kalleth: You're setting the error message, and you're validating something
<andrewvos> kalleth: But it's not that bad
<kalleth> hmm, ok
<yorickpeterse> kalleth: yes
<yorickpeterse> hold on
<kalleth> ooh
<kalleth> :D
Hakon has joined #ruby-lang
GarethAdams has quit [Remote host closed the connection]
Hakon has quit [Client Quit]
<yorickpeterse> http://pastebin.com/raw.php?i=7Z7dXW4x You'll need to somehow specify the individual error messages for the different cases though
<yorickpeterse> But the end idea is to keep validation in the specific objects themselves
<xeviox> are there any ruby bindings for qt that doesn't depend on kde?
<ddd> qt shouldn't depend on kde. kde depends on qt
<xeviox> I know
<ddd> oh gotta be a distrib thing
<xeviox> but the qt bindings for ruby are both made from kde
<xeviox> yep
<xeviox> on arch there is a dependency on kdebase-runtime (through other dependencies)
<kalleth> yorickpeterse: sec, reading
<kalleth> ah, okay :)
<kalleth> that's a good approach -- so wrap up the individual objects and then they can handle their validity/invalidity with potential error messages attached too
<kalleth> rails-like :)
<kalleth> thanks
r0bby has joined #ruby-lang
<xeviox> or what's preferred to write a guy with ruby?
<xeviox> gtk?
<judofyr> kalleth: maybe like this: https://gist.github.com/4117343#gistcomment-603605
<judofyr> xeviox: haven't seen a lot of GUI in Ruby unfortunately
<andrewvos> judofyr: But doesn't that make the error disappear?
robbyoconnor has quit [Ping timeout: 244 seconds]
gnufied has quit [Quit: Leaving.]
kain has quit [Quit: exit]
<andrewvos> judofyr: I thought flash[:error] would drop the error from the stack
wallerdev has quit [Quit: wallerdev]
<judofyr> andrewvos: I'm pretty sure it's dropped after the request, not when you access it
gnufied has joined #ruby-lang
<xeviox> :( some time ago Qt was a good option imho
<andrewvos> judofyr: Oh ok cool. Nice refactoring!
<xeviox> but now ...
<ddd> how does a distribution chopping up and adding needless dependencies make it no longer an option?
<kalleth> judofyr: hmm, nice, i will give that a play :)
<ddd> uninstall their package of it and grab the source and use it instead. make install —prefix=/usr/local then use as normal
sush24 has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
srji has quit [Ping timeout: 244 seconds]
<judofyr> TracePoint looks nice
charliesome has joined #ruby-lang
<judofyr> hey charliesome
r0bby has quit [Ping timeout: 246 seconds]
<charliesome> judofyr: howdy
<judofyr> charliesome: how's slash?
<charliesome> it's putting along, i've been pretty busy just recently so i haven't had a whole lot of time to work on it
krz has quit [Quit: krz]
|Vargas| has quit [Quit: ...]
kain has joined #ruby-lang
echoprinter has joined #ruby-lang
echoprinter has left #ruby-lang [#ruby-lang]
apeiros_ has joined #ruby-lang
srji has joined #ruby-lang
<yorickpeterse> kalleth: http://confreaks.com/videos/1233-aloharuby2012-refactoring-from-good-to-great this is a good talk on the subject
<kalleth> i'll bookmark it and watch later :)
<gjaldon> hi again guys
<gjaldon> i'm trying to update RubyGems but get an error
<gjaldon> i run: gem update --system 1.6.2
<zenspider> yorickpeterse: your exact comment http://www.reddit.com/r/ruby/comments/13ekhd/british_ruby_conference_cancelled/c739e0w "Looking at the Tweets mentioned on the Hackernews thread ([1] https://twitter.com/joshsusser/status/269844125363339264) it seems people were all too eager to grab their pitchforks and find somebody to shame in the name of whatever movement they support."
<gjaldon> the error I get: git://gist.github.com/4117558.git
<zenspider> http pls
<yorickpeterse> zenspider: except you misquoted it completely initially. Good job on trying to spread lies
<zenspider> n/m
<yorickpeterse> I have no problem with people not agreeing with me. I do have a problem with people who say I've written things I have not
<gjaldon> oops sorry about that: https://gist.github.com/4117558
<yorickpeterse> zenspider: also I suggest you re-read what I've been trying to explain because it seems you're missing the point
<zenspider> gjaldon: what version are you coming from?
<yorickpeterse> Which just proves my statement: people are all too eager to grab their pitchforks
<gjaldon> RUBYGEMS VERSION: 1.8.22
dhruvasagar has quit [Read error: Operation timed out]
<zenspider> gjaldon: and you're trying to downgrade to 1.6.2?
<gjaldon> just trying to downgrade cos I get the: Error loading RubyGems plugin
<gjaldon> when I try to generate ri data for some gems
<zenspider> would you rather fix that?
<gjaldon> just want to fix that Error loading RubyGems plugin
<gjaldon> I think that's the reason why I can't update RubyGems or generate ri data for my gems
<gjaldon> I try running: gem rdoc activerecord --ri and I get the same error and when I check ri activerecord, I get back a blank doc
<zenspider> for starters, can you manually remove rubygems-update?
<zenspider> something like (PLEASE CHECK FIRST) rm -rf /home/gjaldon/.rvm/gems/ruby-1.9.3-p125/*/rubygems-update*
<gjaldon> i'll try look for rubygems-update
judofyr has quit [Read error: Connection reset by peer]
judofyr_ has joined #ruby-lang
<zenspider> change "rm -rf" to "ls -ld" in my command
zmack has quit [Remote host closed the connection]
<gjaldon> i can't seem to find rubygems-update
<gjaldon> ~/.rvm/gems/ruby-1.9.3-p125/
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<zenspider> not in /home/gjaldon/.rvm/gems/ruby-1.9.3-p125/gems/rubygems-update-1.6.2 ?
<zenspider> that's from your backtrace
<gjaldon> none
<zenspider> huh
<gjaldon> i'm in gems dir
<gjaldon> oops wait
<gjaldon> ok done
<gjaldon> sorry about that
<zenspider> heh
<gjaldon> :D
<zenspider> ok. so. where are you with your old error?
<gjaldon> when i try generate ri data?
<zenspider> or whatever
<zenspider> my guess is this happens on any gem cmd
<zenspider> but go with your original usecase
<gjaldon> i get this error
<gjaldon> that's my orig usecase and tried to update gem as a way to try and resolve it
<gjaldon> but got the same error. you're right that it seems to happen on any gem cmd
srji has quit [Quit: Lost terminal]
<zenspider> hrm... do you have the rdoc gem installed?
<zenspider> fuck that. that's just noise
<zenspider> nuke that gem... it seems at fault. google seems to agree
<zenspider> ls -ld /home/gjaldon/.rvm/gems/ruby-1.9.3-p125@global/*/rubygems-bundler*
<zenspider> if that output looks correct
<zenspider> ^ls -ld^rm -rf
leopard_me has joined #ruby-lang
<zenspider> AFTER that... you prolly want to install the rdoc gem to get newer codes
Nisstyre has quit [Ping timeout: 265 seconds]
<zenspider> gjaldon: looks like newer versions of the rubygems-bundler gem are fine. but you'll still have to manually remove it first
kain has quit [Quit: exit]
kain has joined #ruby-lang
<gjaldon> done
<gjaldon> removed rubygems-bundler manually
<zenspider> so now `gem i rubygems-bundler` should get it back and working... should... I don't actually use that gem
<gjaldon> so should I go ahead and remove rdoc too?
<zenspider> no
<zenspider> ruby ships with rdoc
<zenspider> just install a newer gem and it'll win
<zenspider> gem cleanup rdoc just in case
faces has quit [Read error: Connection reset by peer]
<apeiros_> hi zenspider
<apeiros_> you played with gosu?
faces has joined #ruby-lang
<gjaldon> still not working
<gjaldon> i just checked again and the error I got was for rubygems-bundler in another dir
<zenspider> apeiros_: yeah. some.
<zenspider> nothing terribly advanced
<apeiros_> you like it?
<zenspider> gjaldon: well then ... fuck rubygems-bundler.
<zenspider> sorry... but anything with "bundler" and "rubygems" in its name is already suspect as buggy
<zenspider> apeiros_: very much
<zenspider> but... I'm biased towards simplicity
<gjaldon> zenspider, turns out I have: ~/.rvm/gems/ruby-1.9.3-p125/gems/rubygems-bundler and ~/.rvm/gems/ruby-1.9.3-p125@global/gems/rubygems-bundler
<zenspider> but... I had to write a circle primative in C to get fast circles so... yeah.
<zenspider> gjaldon: hah
<apeiros_> zenspider: yeah, that's from where I know that you used gosu :)
<zenspider> yet another reason to not like rvm's complexity
<apeiros_> you prefer it over rubygame?
<zenspider> I never used rubygame
<zenspider> I don't think...
<zenspider> I did something in SDL before... but I think it was raw sdl
mytrile has joined #ruby-lang
<zenspider> gosu was MUCH easier... esp since it was a plain gem install and you were up and running
<zenspider> and the update/draw API is brilliant
<zenspider> just wish there were a bit more with it
<zenspider> you know... circles :P
<zenspider> all I wanted to do was visualize my collision detection fields :)
Hakon has joined #ruby-lang
<zenspider> ok. it's pushing into 5am here... bed...
Nisstyre has joined #ruby-lang
<zenspider> good luck gjaldon
<apeiros_> :)
judofyr_ has left #ruby-lang [#ruby-lang]
<apeiros_> gn8
judofyr has joined #ruby-lang
<judofyr> can someone un-ban judofyr_ from here?
<judofyr> Error(435): judofyr #ruby-lang Cannot change nickname while banned on channel
<gjaldon> thanks a lot for your help zenspider
<judofyr> kinda annoying to have to leave this channel before I change nick…
<ddd> judofyr: means you're probably not authenticated to nickserv
Hakon has quit [Client Quit]
<ddd> usually happens when nickserv forgets your authentication in a channel that requires registered nicks to enter, and you try to change a nick, it will block you
<judofyr> ddd: yeah, I'm trying to *change* my nick so I can authenticate
<ddd> you don't need to. /msg nickserv identify blah pass
<judofyr> but I don't have an account for "judofyr_"
<ddd> blah being whatever your registered nick is
<ddd> i know. you identify and then you can change
<judofyr> still broken crap
<ddd> welcome to irc
<ddd> :shrug:
<apeiros_> judofyr: you sure you're banned here? doesn't look like…
<judofyr> apeiros_: then I guess ddd is correct
<apeiros_> probably
<apeiros_> oh, sorry, judofry
<judofyr> judofyr_ is just unuathenticated, which are "banned" here
<judofyr> ah, it's okey apieros
<apeiros_> atta boy
<apeiros_> meh, gosu's Window#scale considered broken, moving on…
<ddd> man the human brain is funny. I was watching Josh Susser's Thinking In Objects talk at RubyConf2012. He made one little innocuous statement that atoms can't be chopped up, and my mind dwelled on the untruth of that so much so that i lost the entire train of thought he was trying to actually pass on. lol
<ddd> he was covering uniques, things that can't be made smaller (like nil, true, false, symbols) when he said it, but man did my mind lock onto that comment and hard
<judofyr> ddd: I always thought "Atom" was a weird name for a RSS format. I mean, each Atom feed *consists* of blog posts.
<ddd> judofyr: hehe *exactly!*
kurko_ has joined #ruby-lang
<ddd> i got to thinking about all the outdated knowledge in society at large. can't write shit for content for my own website but i could fill a book with what i came up with about outdated knowledge. go figure :)
<gjaldon> can anyone here help with rvm
<ddd> and i'm quite sure he knows about quarks, it was just funny
<ddd> gjaldon: #rvm
<judofyr> ddd: have you been hanging around here a long time?
<gjaldon> i want to clean it up and reinstall ruby
<judofyr> gjaldon: yeah, I heard #rvm is a pretty good channel for help with RVM :)
<ddd> in here? hmm, little over a year maybe
<gjaldon> lol thanks guys
<judofyr> gjaldon: but no, really. they do take their IRC channel very seriously :)
<ddd> yep
<judofyr> ddd: are you famous?
<judofyr> :)
<ddd> doubtful. My only claim to fame is having been one of the RVM developers for awhile, and doing technical review of a book or two. Beyond that, I'm just some guy in Timbucktoo out on the intarwebz
esad has quit [Quit: Computer has gone to sleep.]
<ddd> i'm definitely no susser, klabnick, dhh, or matz :)
esad has joined #ruby-lang
<judofyr> hey, it's klabnik without c :)
bastilian has quit [Quit: Linkinus - http://linkinus.com]
<ddd> true true. mental typo that made it to the fingers :)
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
<judofyr> ddd: doing anything fun these days?
rohit has quit [Quit: Leaving]
<apeiros_> who's matz?
<ddd> i think so. other than contract work, I'm trying my hand at making a testing framework aimed at being able to use ruby to test anything using ruby as the wrapper, with database collection of various bits about the SUT for use in reusable suites (or batteries).
<ddd> fun stuff, even if no one else uses it
<judofyr> nice
<judofyr> apieros: nice
* apeiros_ got his success of the day - link (from NES Zelda) walking - now back to work…
mytrile has quit [Remote host closed the connection]
<ddd> basically an umbrella gem with multiple additional plugin gems
<ddd> apeiros_: hehe nice
<apeiros_> ddd: you can code C?
<ddd> apeiros_: yes
<apeiros_> what do I have to do to lure you into the team? :)
<ddd> haven't in quite some time, but i can
<ddd> hehe, find me a way to get more available time :)
<apeiros_> carefull… I'might call your employer 0:-)
<apeiros_> careful?
<apeiros_> meh, engris
<ddd> lol. i run my own business from home.
<judofyr> ah, I remember the day I learned the difference between an union and a struct in C. spent hours in gdb wondering why the hell the fields of that thing (union) changed all time!
chah_ayu has joined #ruby-lang
nXqd has joined #ruby-lang
<apeiros_> oh, that makes it easier to call your boss
<whitequark> apeiros_: you need someone C-proficient?
<ddd> but being at home means little time as someone has to care for the place, and the kids, and the wife, and the… :)
<apeiros_> whitequark: probably. ruby will most likely cause one or two bottlenecks
nXqd has quit [Client Quit]
<apeiros_> also if gosu is troublesome (though gosu is C++)
<judofyr> whitequark: what's up?
<apeiros_> my C is on entry level at max…
<apeiros_> whitequark: why? can I persuade you? :)
<ddd> my C is intermediate at max. I can do a lot, but pointers frustrate me, and they're like *core* to C
<apeiros_> ddd: haha, yeah, pointers… it sounds like the easiest thing in theory… I mean… really… but then in code… I leak them like a swiss cheese… :-S
<ddd> yep
<whitequark> apeiros_: well, depends on the meaning of "team". if it's core ruby or something related I might be interested
<apeiros_> so frustrating. I feel like an idiot when I run valgrind on my code.
<apeiros_> whitequark: no, RPG game
<apeiros_> I'm not a core dev
<whitequark> oh ok
chah_ayu has quit []
<ddd> yeah i wouldn't put myself out there yet to work on ruby-core. self doubt would kill me on such a high profile code base, nevermind that most members of that team would run circles around me
<judofyr> ddd: whitequark is implementing his own Ruby implementation :)
<whitequark> ddd: high profile lol
Mon_Ouie has quit [Ping timeout: 240 seconds]
apeiros_ has quit [Remote host closed the connection]
<judofyr> whitequark: or, are you still working on it?
<whitequark> judofyr: doing that right now
<judofyr> nice
<whitequark> heh, that's a journey for years :)
<ddd> whitequark: compared to *my* code base, its like night and day. i'm some guy out in podunk, usa. most of the core work on this stuff day in and day out. i'd be like a mouse in a den of lions :) give me another year or so, then maybe
<judofyr> whitequark: I'm kinda working on a language, but I'm stuck at the syntax and semantics. y'know, to OOP or not.
<whitequark> judofyr: make a prototype-based OO system
<whitequark> y'know, like that fancy self thing
<ddd> lol
<chris2> oop is so 1990 :P
<judofyr> nah, not a fan
<ddd> whitequark: hah, you hav esuch a way with words
<judofyr> chris2: then hit me with 2010 :)
<judofyr> whitequark: oh, and concurrency. that's trickky.
<chris2> the go thing looks good right now, but perhaps a bit too unsophisticated
<ddd> ok, methinks its time to put on some Deadmau5 and do some actual work
<whitequark> chris2: there's nothing interesting in go. it's stagnation. no actual useful features at all.
<whitequark> chris2: check Rust if you want to see a new and good language
<chris2> i like it :P
<chris2> yeah, i looked at rust
voker57 has quit [Ping timeout: 260 seconds]
<ddd> whitequark: what do you think of scratch :)
<chris2> in 3 years perhaps
rsl has joined #ruby-lang
<chris2> its in a superfluid state of flux
<whitequark> chris2: I mean, if Rust would be ready right now, Ruby dominance would be seriously threatened for some tasks I do
<whitequark> ddd: never heard of
apeiros_ has joined #ruby-lang
<ddd> oh. sec
<apeiros_> gah, forgot to caffeinate my macbook
<whitequark> ddd: this?! http://scratch.mit.edu/
<judofyr> whitequark: I kinda want to steer away from static typing though
<ddd> ah yeah
<whitequark> the same I think of people who try to abolish algebraical notation
<whitequark> or promote touchscreen use
xeviox has left #ruby-lang ["Leaving"]
<ddd> rut roh, what you dissin my touchscreen for? ;)
<whitequark> yes, it does make it easier for beginners, and also makes it significantly harder to stop being a beginner
<ddd> hehe
<ddd> roasted
<whitequark> judofyr: mhmm, static typing is so 1970
<judofyr> have you seen "Coding at the Speed of Touch"? http://f.cl.ly/items/091Q1W0s0t3o2X2h130d/touch11redo.pdf
<yorickpeterse> herp derp static typing solves all problems
<judofyr> whitequark: well, it's tricky doing funky concurrency pointers without static typing :/
<ddd> AIDE makes it so you can code android apps directly on the tablet
<ddd> so that pdf is a bit.. off
<whitequark> judofyr: yeah, you can also build houses with wooden children cubes. doesn't mean it is a good idea.
<judofyr> whitequark: replying to Touch or typing now?
<andrewvos> "Wooden children cubes"
<whitequark> judofyr: Speed of Touch
<judofyr> ah
<judofyr> just a silly research paper :)
apeiros_ has quit [Remote host closed the connection]
<ddd> ahh should have scanned the pdf a bit more. its not saying that you can't or shouldn't
<whitequark> each programming environment which couldn't be programmed in itself doesn't have a right to exist
<andrewvos> whitequark: What about regular expressions?
<whitequark> andrewvos: lolwhat
<whitequark> not turing complete
<whitequark> => not a programming language
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
<whitequark> in fact the same kind of applies to C++ templates, which, as you all know, were accidentally defined as turing-complete
<whitequark> still, they do not have a right to exist as a _programming environment_ indeed
x0F_ is now known as x0F
<whitequark> or brainfuck
<whitequark> or whatever
<andrewvos> whitequark: Make?
<whitequark> andrewvos: yeah you can add features and make them turing-complete. see the part about C++ templates above.
<andrewvos> Sorry I'm not trolling you, I'm just trying to think of languages that couldn't be made in themseles
<ddd> judofyr: i wouldn't program directly on a tablet either visually or in text unless the tablet had a dockable keyboard. the tablet by itself (if my 9" Transformer Tablet was any proof) is too cumbersome, the touchscreen for typing out code isn't responsive enough nor sensitive enough to non-dead-on typing touches which increases the number of mistakes dramatically.
judofyr has quit [Read error: Connection reset by peer]
<andrewvos> themselves*
judofyr has joined #ruby-lang
<ddd> the only reason i did any coding on my tablet was *because* i had a keyboard dock. otherwise i wouldn't have even thought of attempting it
dr_bob has quit [Quit: Leaving.]
<judofyr> ANYWAY
<whitequark> ddd: I've seen some solutions which people coding on their tablets employ
<ddd> like?
<whitequark> basically they are turning these tablets in something not entirely unlike dumb terminals of past century
<whitequark> VT-52 and so on
<ddd> ahh ssh out to a remote or something?
<whitequark> either that's tmux, or something more sophisticated and browser-based
<whitequark> which is basically the exact same thing but with more javascript
<whitequark> I don't get how is that "coding on tablet"
<whitequark> your input and display device don't matter
<whitequark> you're not programming on your keyboard or your monitor.
<whitequark> even more, the fact that you are turning tablet into something very closely representing a laptop only confirms the fact that traditional tools are suited better for the task
aetcore has quit [Remote host closed the connection]
<whitequark> in other words, fucking hipsters.
nXqd has joined #ruby-lang
nXqd has quit [Client Quit]
<ddd> think thats the point i was trying to make. i had to turn my tablet back into basically a netbook to get anything really done.
nXqd has joined #ruby-lang
<ddd> my biggest problem was the touchscreen when entering text, if you hit say the edge of a letter it would either not type the letter or do the one next to it, the spell checker would constantly kick in and screw me up etc.
<whitequark> ddd: try the new android 4.2 input method aka swype
<ddd> things not a concern with my keyboard or on my MBP.
<whitequark> it's plain awesome
<ddd> 4.2 is jellybean correct?
<whitequark> I can input text with maybe just 1/2 or 1/3 of the speed I can do that on my keyboard
<whitequark> as opposed to 1/10 or less
<whitequark> ddd: 4.1.x-4.2 are all jellybean
tbuehlmann has joined #ruby-lang
<whitequark> but the new IM is only in 4.2. I bet someone has already extracted it and put into market.
<whitequark> *on market probably
<judofyr> whitequark: I can't find it in the App Store
<ddd> oh cool
<whitequark> judofyr: wrong device manufacturer? you're expected to have something manufactured by a G-company, not an A-company :)
<whitequark> hmm
<ddd> whitequark: you played with the NExus 7 at all by chance?
esad has quit [Quit: Computer has gone to sleep.]
<whitequark> ddd: I have it
<ddd> friend of mine has been raving about it (fellow coder) but i;ve not got to so much as glimpse one yet
<ddd> nevermind handle it and see how it is
<ddd> oh, how do you like it?
lcdhoffman has joined #ruby-lang
<whitequark> ddd: cool device. I mean, it's really good, nice hardware and case, polished software
<whitequark> but unfortunately it's as useless as any other tablet
<ddd> hehe
<whitequark> three things: 1. read pdfs 2. browse web 3. play games
<judofyr> you're too much a hacker
esad has joined #ruby-lang
<ddd> yeah my tablet other than messing with AIDE was almost all email, web, pdfs, and angry birds :)
<whitequark> I mean, I'm ready to give $250 for doing those three things
<ddd> oh no doubt
dr_bob has joined #ruby-lang
<judofyr> so, OOP or not? how to do concurrency?
<whitequark> and I'm absolutely enjoying reading some blog entries while going to the office in underground
<whitequark> judofyr: try trait-based OOP
<whitequark> and exclusively actor-based concurrency without shared mutable data
BlaXpirit has joined #ruby-lang
<ddd> i figure 250-300 for just those capabilities is worth it. I have to admit wanting an iPad3 possibly, but that has to do with because I'm getting into writing some apps targeting Apple's platform.
<judofyr> whitequark: how to deal with the sharing issue?
<judofyr> copy everywhere?
<whitequark> ddd: honestly, starting with android >=4 I don't really get how anyone not already locked in to Apple's ecosystem would want to buy an iDevice
<whitequark> but that's a little offtopic
<ddd> my brother wants me to code a couple apps for him and his studio, quite a few of the people I know IRL have iphones and ipads, far more than android devices, so its become a target thing
<whitequark> judofyr: not necessary
<whitequark> you can also force data immutability
judofyr has quit [Read error: Connection reset by peer]
<whitequark> i.e. you can only pass constant data to other actors
judofyr has joined #ruby-lang
<whitequark> as in "let" opposed to "let mut", "const x", "final int x"...
<whitequark> you got the idea
dc5ala has quit [Quit: Ex-Chat]
<whitequark> ddd: that's what I meant by "locked in". it's indirect in your case
<judofyr> whitequark: I didn't get anything before 14:33 whitequark: as in "let" opposed to "let mut", "const x", "final int x"...
<ddd> whitequark: agreed. what I might do is get an android tablet and the ipad (kids can do their homework on it if nothing else and leave my MBP to me for once) and target both at once.
esad has quit [Quit: Computer has gone to sleep.]
<whitequark> ddd: how can kids do homework on a tablet?..
apeiros_ has joined #ruby-lang
<ddd> on the ipad? they can do their research, there's various apps for writing docs, can push to the wireless printer, etc.
<ddd> they did it all the time on my android tablet too. they used to have ipads until they got broken (damned kids and their no clue of the cost of things)
<whitequark> ^ why you don't give ipads to kids
<ddd> heheh
<whitequark> android tablets are kinda becoming disposable
<ddd> agreed
<whitequark> I wonder if someone already offers them for free
<whitequark> for some marketing reasons
zmack has joined #ruby-lang
<ddd> i know a few of the cellphone companies are
<ddd> get the family plan, get 2 or more phones and get a nexus or galaxy whatever they are, free
<ddd> galaxy S i think it is.. trying to recall the commercial in my head
retro|cz has joined #ruby-lang
chris2 has quit [Read error: Operation timed out]
<ddd> no thats the phone
<ddd> in any case. if you got the family plan and a cuple phones they gave you a low grade tablet free in the deal.
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mwjcomputing has joined #ruby-lang
wyhaines has joined #ruby-lang
<ddd> whitequark: you familiar with locations in canada at all? i was living in port elgin, ontario for awhile and the local phone company (bruce telecom) was offering something similar.
gmci has joined #ruby-lang
chris2 has joined #ruby-lang
gmci is now known as Guest28589
<whitequark> ddd: canada?!
<whitequark> on which side of globe it is?
<ddd> hah
<ddd> arse ;
<ddd> )
<whitequark> hehe, just kidding
<whitequark> I live in Russia
<ddd> gotcha
* judofyr lives in Norway
<judofyr> in case anyone wondered
<ddd> always wanted to visit there. then again, in truly american fashion it was because I grew up with it as this mysterious place filled with KGB agents and vodka drinking gangsters :)
<whitequark> ddd: not entirely untrue (our president was/is a KGB agent after all), but much less fancier than you think.
<ddd> hehehe
<ddd> I also want to visit australia, but again in truly american fashion its because i have this thing for the aussie accent, dingos, and the movie Kangaroo Jack :)
<ddd> now augmented by the fact my friend Ryan Biggs lives there :)
Uranio has joined #ruby-lang
<whitequark> ddd: I want to live in Australia
<ddd> and Rebecca Skinner, (sevenseacat)
<whitequark> nice place. warm. far, far away from anything remotely resembling conflict. nice.
<ddd> whitequark: when i go there, I want to go places *not* on the tourist map.
<whitequark> ddd: tourist maps? what's that
mytrile_ has joined #ruby-lang
mytrile_ has quit [Client Quit]
mytrile has joined #ruby-lang
<ddd> everyone including the US shows their flashy side when you hit the tourist spots. I'd rather go and see how other people actually live. We're all (in North American at least) so isolated in our own cultures, beliefs, etc. I liked traveling because you got to see real people living real lives based on the things that happen where they live. Not some tourism guide's idea of granduer.
<ddd> travel, in most cases, for me is about educating yourself about how others live life. different than your own, because well, they grew up differently. social impacts, governments, environments, etc. i guess i like getting an appreciation for the realities of others, not just my own. but i admit, i'm totally weird like that
jxie has joined #ruby-lang
<whitequark> ddd: exactly what I've tried to say. I don't get "tourism". who the hell needs yet another fridge-attached photo of [well known place of interest name here]?
<ddd> yea exactly
<ddd> i mean sure, i'd like to see Sydney, but the rest.. put me outside my comfort zone. just don't get me killed :)
<whitequark> ddd: gotta watch for things with more than two legs
<ddd> i'd like to see moscow too, but again, put me outside my comfort zone, and don't get me killed :)
<ddd> yeah. they got some of the most if not THE most deadliest animals on the planet.
<ddd> they got most of the deadliest snakes and spiders
<whitequark> ddd: not exactly. scariest yes
<whitequark> but most of the living creatures don't really want to do any business with you
imperator has joined #ruby-lang
<whitequark> whereas in more tropical areas there are tons of those who do, and most of them want it internally.
<whitequark> and that doesn't often end nicely for you.
<ddd> hehehe
<ddd> great white anyone?
<whitequark> huh?
<ddd> well take a trip to africa, most of the food chain sees you as pretty low on it
<ddd> oh was referencing the Great White Shark
<whitequark> ah. I think more about critters like hookworms, and some of protea species
<whitequark> it's not that hard to avoid a shark.
<whitequark> much harder to dodge an encouter with something micrometer-sized
<ddd> ohh! yeah. whats that one fish we guys have to look out for? trying to remember where in the world its from. swims up your piss hole and has barbs so coming out aint easy :)
<whitequark> south america
<ddd> candiru
<ddd> thats the other problem i have with big cities and tourist areas. everyone is so insulated from the realities of life.
<ddd> but they think they're not. totally forget (and rightfully they should thats the whole daned point) that the host country is going out its way to make it super pleasant, as few 'shockers' as possible, just an all out bath in heaven's waters. i mean it behooves the host to make you forget that if you want repeat business hehe
<ddd> dont' get me wrong. i love a good weekend at the beach as much as anyone, i just want to learn something along the way. OTHER than keep your wallet next to your balls :)
mytrile has quit [Quit: Linkinus - http://linkinus.com]
<ddd> anyways, i've harped the point enough :)
lcdhoffman has quit [Quit: lcdhoffman]
mytrile has joined #ruby-lang
<charliesome> deadmau5 is a person
<ddd> ehh ok. never reseached them/him/her. someone put me on to them via grooveshark and i'm hooked. :)
<ddd> ok, you can quit snickering over there
<charliesome> hehe
<ddd> :)
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
mytrile has quit [Read error: Connection reset by peer]
swarley has joined #ruby-lang
outoftime has joined #ruby-lang
Hakon has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<imperator> http://www.snakebite.net/ - we could use that
<ddd> imperator: definitely
<imperator> wonder if they would host other languages
<imperator> the mission statement would seem to indicate yes
<ddd> probably wouldn't hurt to ask, though they'd probably want a but of funding as alluded to lower in the page
<imperator> kickstarter might be good here
andrewhl has joined #ruby-lang
<ddd> agreed. would be a good addition to the community at large
sailias has joined #ruby-lang
<Silex> I must be stupid, but... '\\'.gsub('\\', '\\\\')
<Silex> why does that return '\\' instead of '\\\\' ?
<imperator> are you doing this in irb? remember, you're looking at inspected output
<wnd> I think your input is a single backslash
asaaki has quit [Remote host closed the connection]
<ddd> you would need 8 of them. iirc its because it considers 2 together to be the first escaping the 2nd
vlad_starkov has quit [Ping timeout: 245 seconds]
<ddd> thus \\ is interpreted as meaning a single \
<judofyr> Silex: because .gsub already uses \ for referring to capture groups
asaaki has joined #ruby-lang
<ddd> judofyr: oh so not an 'escape'
<judofyr> Silex: "132".gsub(/(.)3/, 'Foo \1')
<Silex> hum. So what is the best way to replace every \ by \\ ?
gjaldon has quit [Quit: Leaving]
<Silex> use 8 \ ?
<judofyr> six should do
Hakon has quit [Quit: Leaving...]
<Silex> yeah well, 6 or 8 is equivalently "ugly"
<Silex> :)
<Silex> I'll use 8 and put a comment explaining why it looks so weird
<Silex> thanks
<imperator> .tr
<judofyr> you can also use a block: .gsub('\\') { '\\\\' }
<Silex> that looks better
<Silex> thanks!
<judofyr> imperator: .tr is for single characters only, no?
<imperator> oh, true
imperator2 has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
<apeiros_> 6? 8? 4 are sufficient, no?
judofyr has joined #ruby-lang
<apeiros_> ah…
vlad_starkov has joined #ruby-lang
* apeiros_ did "\\"*4, which of course is equivalent to 8
<imperator2> hm, client crashed
dr_bob has quit [Quit: Leaving.]
benjamin-patch has joined #ruby-lang
GarethAdams has joined #ruby-lang
stonerfish has joined #ruby-lang
imperator has quit [Disconnected by services]
imperator has joined #ruby-lang
imperator3 has joined #ruby-lang
<imperator> strange
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
dr_bob has joined #ruby-lang
chimkan_ has joined #ruby-lang
chimkan_ has quit [Client Quit]
mistym has quit [Remote host closed the connection]
robbin_ has joined #ruby-lang
<apeiros_> there are imperator impersonators
esad has joined #ruby-lang
<imperator> client was crapping out, i think it wants ruby 1.8.7 because it was giving me missing dll file warnings
robbin_ has quit [Remote host closed the connection]
<imperator> i installed it, seems to be fine now
<imperator> must be some plugin i forgot about
tbuehlmann has quit [Remote host closed the connection]
mars777 has joined #ruby-lang
hakunin has joined #ruby-lang
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rekky has joined #ruby-lang
<yorickpeterse> injekt: andrewvos wants you to join #pry
benjamin-patch has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sush24 has quit [Quit: This computer has gone to sleep]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mytrile has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
ttilley has quit [Quit: ttilley]
ttilley has joined #ruby-lang
kennyvb has quit [Ping timeout: 244 seconds]
kennyvb has joined #ruby-lang
areil_ has quit []
davidbalber|away is now known as davidbalbert
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
ttilley has quit [Quit: ttilley]
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
sush24 has joined #ruby-lang
gnufied has joined #ruby-lang
dhruvasagar has joined #ruby-lang
gsav has joined #ruby-lang
benjamin-patch has joined #ruby-lang
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
chimkan_ has joined #ruby-lang
rekky has quit [Quit: rekky]
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
rue|w has quit [Ping timeout: 248 seconds]
junctionjason has joined #ruby-lang
judofyr_ has joined #ruby-lang
judofyr has quit [Read error: Connection reset by peer]
<andrewvos> def hello; yield; ensure meh; end <--- will meh always be called, even if the code executed when I yield raises?
sush24 has quit [Quit: This computer has gone to sleep]
judofyr_ has quit [Read error: Connection reset by peer]
gsav_ has joined #ruby-lang
judofyr has joined #ruby-lang
<judofyr> andrewvos: yes.
<andrewvos> There should be a ; after the yield
<judofyr> andrewvos: yes.
<judofyr> andrewvos: unless the block does an "exit"
<andrewvos> Okay
davidbalbert is now known as davidbalber|away
<andrewvos> Thanks judofyr
<heftig> def hello() yield ensure puts 1 end; hello { raise "argh" }
<judofyr> andrewvos: actually, it will be called on "exit" too :)
<judofyr> not exit! though
<andrewvos> Ahh okay
<judofyr> (because `exit` is really just `raise SystemExit`)
<andrewvos> Cause this isn't working https://gist.github.com/4118717
JohnBat26 has quit [Ping timeout: 260 seconds]
<andrewvos> @within stays at the value it gets set to
<andrewvos> And isn't nil again
<whitequark> andrewvos: that's why ensure exists.
<whitequark> to be always called.
<judofyr> andrewvos: are you sure it actually leaves the block?
<andrewvos> judofyr: OMAG
<andrewvos> judofyr: Ahhhhh thanks dude
<andrewvos> judofyr: I'm going to go kill myself now
<andrewvos> Facepalm
judofyr has quit [Read error: Connection reset by peer]
<andrewvos> Oh wait
<andrewvos> No no
R_Macy has joined #ruby-lang
<andrewvos> No it does leave the block
<andrewvos> phew
gsav has quit [Quit: Lost terminal]
judofyr has joined #ruby-lang
R_Macy has quit [Client Quit]
<whitequark> andrewvos: careful with suicide there, dude
<whitequark> we need more ruby developers not less
<andrewvos> whitequark: I'm not sure about that 0_0
<andrewvos> Anyway, I'm using that method like so: within_frame ("EPGiframe") { node.element(:id, "channel_1881").click }
hidekin has joined #ruby-lang
<andrewvos> OMG I found out what it was
<imperator> whitequark, he's a white dude, apparently we have a surplus
<andrewvos> And I can't even explain it because it's so silly
<andrewvos> It wasn't my code at all
<imperator> IT'S A JOKE PEOPLE
<andrewvos> Thanks everyone though
<andrewvos> I'm not touching that one imperator. *backs away*
judofyr has quit [Read error: Connection reset by peer]
imperator has quit [Disconnected by services]
imperator has joined #ruby-lang
judofyr has joined #ruby-lang
tonni has quit [Remote host closed the connection]
<imperator> frickity frack, this dang thing
<judofyr> at least your connection is stable
<judofyr> oh, actually not
<imperator> i've unloaded the ruby plugin
<imperator> maybe someone was crashing it for me :|
davidbalber|away is now known as davidbalbert
lcdhoffman has joined #ruby-lang
davidbalbert is now known as davidbalber|away
apeiros_ has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
r0bby has joined #ruby-lang
kurttt has joined #ruby-lang
rippa has joined #ruby-lang
corsican has quit [Quit: leaving]
sush24 has quit [Ping timeout: 255 seconds]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
davidbalber|away is now known as davidbalbert
krohrbaugh has quit [Quit: Leaving.]
R_Macy has joined #ruby-lang
svyatov has quit [Quit: svyatov]
esad has joined #ruby-lang
sush24 has joined #ruby-lang
kurttt has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
mytrile has quit [Quit: Linkinus - http://linkinus.com]
emptyflask has joined #ruby-lang
benjamin-patch has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has quit [Remote host closed the connection]
judofyr has quit [Remote host closed the connection]
thatdutchguy has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
CaptainJet has joined #ruby-lang
imajes has quit [Excess Flood]
dc5ala has joined #ruby-lang
imajes has joined #ruby-lang
mksm has quit [Read error: Operation timed out]
apeiros_ has joined #ruby-lang
TheMoonMaster has quit [Ping timeout: 264 seconds]
mksm has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
banisterfiend has joined #ruby-lang
cyri_ has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
hidekin has quit [Quit: Leaving]
gnufied has quit [Quit: Leaving.]
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
sailias has quit [Ping timeout: 245 seconds]
sent-hil has joined #ruby-lang
<sent-hil> does Gem::DependencyInstaller in Rubygems use/obey gemrc?
MaddinXx has joined #ruby-lang
dhruvasagar has quit [Read error: Operation timed out]
ryanf has joined #ruby-lang
ryanf has quit [Client Quit]
jtoy has joined #ruby-lang
nXqd has quit [Ping timeout: 276 seconds]
cardoni has joined #ruby-lang
sush24 has quit [Ping timeout: 260 seconds]
sailias has joined #ruby-lang
methods has joined #ruby-lang
gnufied has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
llaskin1 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sush24 has joined #ruby-lang
dankest has joined #ruby-lang
dous has quit [Remote host closed the connection]
cardoni has quit [Quit: cardoni]
vlad_sta_ has joined #ruby-lang
llaskin1 has quit [Changing host]
llaskin1 has joined #ruby-lang
<llaskin1> can a method with one variable "def foo(bar)" be called as "foo" thus making "bar" an optional variable?
gaveen has quit [Ping timeout: 248 seconds]
<mistym> llaskin1: def foo(bar=default_value)
<llaskin1> what if the default value = nil ?
<llaskin1> oh i got it
vlad_starkov has quit [Ping timeout: 252 seconds]
cardoni has joined #ruby-lang
alvaro_o has joined #ruby-lang
ryanlecompte has joined #ruby-lang
blazes816 has joined #ruby-lang
BigO has joined #ruby-lang
krohrbaugh has joined #ruby-lang
r0bby is now known as robbyoconnor
knu has quit [Read error: Connection reset by peer]
esad has quit [Quit: Computer has gone to sleep.]
llaskin1 is now known as llaskin
sush24 has quit [Quit: This computer has gone to sleep]
GarethAdams has quit [Ping timeout: 244 seconds]
wyhaines has quit [Remote host closed the connection]
dankest is now known as dankest|away
gaveen has joined #ruby-lang
aetcore has joined #ruby-lang
wallerdev has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
__butch__ has joined #ruby-lang
wyhaines has joined #ruby-lang
dankest|away is now known as dankest
Smol has joined #ruby-lang
__butch__ has quit [Remote host closed the connection]
dr_bob has quit [Quit: Leaving.]
gregmoreno has joined #ruby-lang
__butch__ has joined #ruby-lang
esad has joined #ruby-lang
swarley has quit [Ping timeout: 265 seconds]
brianpWins has joined #ruby-lang
R_Macy has quit []
<yorickpeterse> Maybe a bit offtopic but could anyone explain to me why I'd want to use zsh instead of Bash? Every article I read talks about it's auto completion system but that's most likely the one thing I'll use the least.
<yorickpeterse> * its
<chris2> yorickpeterse: sure?
<yorickpeterse> "sure?"?
<chris2> yorickpeterse: imagine you could do scp foo.org:src/fo<TAB>
<chris2> and it would work
<yorickpeterse> wat
<yorickpeterse> Well, does that require any plugins? I tried some of the auto completion stuff for `kill` but it wasn't very impressive (at least not as much as what I saw)
<chris2> or do man bas<TAB>
<chris2> yeah, kill kinda sucks
<chris2> because it doesnt take names
<chris2> killall completes better
<yorickpeterse> hm
<chris2> and you need to enable completion first
<yorickpeterse> I know, I did follow the "installer"
<chris2> then its activated
<yorickpeterse> Or do you still need to install command specific completions a la bash?
<chris2> most are included
esad has quit [Quit: Computer has gone to sleep.]
<lianj> i also like that sc<up> only shows history entries starting with sc
<chris2> because you configured it that way :P
<chris2> but bash can do that too
<yorickpeterse> hmm
<yorickpeterse> So besides the completion, what other cool things can it do?
<chris2> see the first two links too
<yorickpeterse> hm
asaaki has quit [Quit: »So foul and fair a day I have not seen.«]
<yorickpeterse> I also read some things about "It's just better!" but I'm not 100% convinced about that
MaddinXx has quit [Remote host closed the connection]
<chris2> yorickpeterse: its a matter of taste
muckerr has joined #ruby-lang
ttilley has joined #ruby-lang
<zzak> bash, because im an old stick in the mud
<yorickpeterse> Suppose I should give it a spin
banisterfiend has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
davidbalbert is now known as davidbalber|away
MaddinXx_ has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
llaskin has quit [Read error: Connection reset by peer]
<imperator> my god, netflix is down...panic!
cyri_ has quit [Quit: cyri_]
<darix> *panics*
<mitchty> just grab your towel
llaskin has joined #ruby-lang
sepp2k has quit [Ping timeout: 264 seconds]
jtoy has quit [Quit: jtoy]
dasil003 has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby-lang
mwjcomputing3 has joined #ruby-lang
<zzak> just goto blockbu.... oh wait
zz_chrismcg is now known as chrismcg
<Smol> hello folks. it seems like the fix http://bugs.ruby-lang.org/issues/4246 here was never backported to ruby 1.8. should I write a patch against the ruby_1_8 or ruby_1_8_7 branch (or perhaps both)? haven't contributed to ruby before so not sure what the standard procedure is.
mwjcomputing has quit [Disconnected by services]
mwjcomputing3 has left #ruby-lang [#ruby-lang]
solars has quit [Ping timeout: 276 seconds]
cultureulterior_ has quit [Quit: cultureulterior_]
<zzak> Smol: 1.8 is no longer supported, you could try opening a ticket first http://bugs.ruby-lang.org/projects/ruby-18
<zzak> it will probably be rejected, and might take a while before anyone sees it
gnufied has quit [Quit: Leaving.]
jtoy has joined #ruby-lang
<Smol> I see. guess I shouldn't bother then
justinram has joined #ruby-lang
__butch__ has joined #ruby-lang
jtoy_ has joined #ruby-lang
dalekurt has joined #ruby-lang
jtoy has quit [Ping timeout: 246 seconds]
jtoy_ is now known as jtoy
<imperator> zzak, actually went there not too long ago, netflix didn't have a couple movies I wanted to see on streaming - $1 each :)
workmad3 has quit [Read error: Operation timed out]
<zzak> we have video world here, down the street, $3 for a rental
<zzak> netflix instance watch doesn't have all the newest flicks
jtoy has quit [Quit: jtoy]
emptyflask has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby-lang
eydaimon has joined #ruby-lang
macclearich_ has joined #ruby-lang
<eydaimon> Is there anyway to get minitest to output to stdout for debugging?
KA_ has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
<macclearich_> ok, here we go:
retro|cz has quit [Ping timeout: 244 seconds]
<macclearich_> given a class, how can I pick off calls to (for example) foo.thing.whatever and treat "thing.whatever" as a string (e.g. for hash key)
banisterfiend has quit [Read error: Connection reset by peer]
<imperator> macclearich_, i feel like i should ask what your overall goal is
<eydaimon> nm. it's "turn" that's eating the stdout up
<macclearich_> the goal here is to provide accessors for keys whose format I can't guarantee
<imperator> zzak, yeah, there's one of those dvd dispensers at the grocery store, i noticed they had avengers, might have to get that
<macclearich_> because we get these keys from various sources and some of our existing data is keyed as "foo.bar"
<macclearich_> or "L1.RegenRate"
llaskin has left #ruby-lang [#ruby-lang]
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rekky has joined #ruby-lang
<macclearich_> I'm investigating doing something with adding method_missing to NilClass but i fear me that'll have global implications… not so awesome
qwerxy has quit [Quit: offski]
<macclearich_> and what's stumping me is getting the fully qualified call chain back at the end of all those method_missings
<zzak> imperator: avengers is awesome
davidbalber|away is now known as davidbalbert
JohnBat26 has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
vlad_starkov has joined #ruby-lang
jtoy has joined #ruby-lang
Eol has joined #ruby-lang
Axsuul has joined #ruby-lang
sent-hil has joined #ruby-lang
<sent-hil> why is there multiple gempaths in gemrc file?
<sent-hil> i mean aside from installing it in multiple locations, but i don't see the point of that
chrismcg is now known as zz_chrismcg
wyhaines_ has joined #ruby-lang
wyhaines has quit [Ping timeout: 248 seconds]
judofyr has joined #ruby-lang
<macclearich_> so, has anyone got any idea how to intercept a call to foo.bar.something, when foo has no method or variable called bar? I want to be able to make it return foo.fields['bar.something']
<macclearich_> method_missing only exposes the "bar" part
muckerr has left #ruby-lang [#ruby-lang]
MaddinXx_ has quit [Remote host closed the connection]
cardoni has quit [Quit: cardoni]
<sent-hil> macclearich_: bar returns nil, so you're calling something on nil
<macclearich_> right
<sent-hil> instead having bar return self, so it is calling something on foo again
<sent-hil> *have
<sent-hil> and keep track of it internally
<macclearich_> hmmm
<macclearich_> so something like self.class.send(:define_method, :bar, proc { return self })
vlad_starkov has quit [Remote host closed the connection]
cardoni has joined #ruby-lang
retro|cz has joined #ruby-lang
<manveru> kinda :)
<whitequark> macclearich_: no no no
<whitequark> not quite
<whitequark> let me explain
<whitequark> btw, does anyone know a nice online ruby interpreter? like jsfiddle
<manveru> ideone
<manveru> not that nice, but at least an interpreter :)
<drbrain> whitequark: tryruby.org?
<whitequark> drbrain: does not allow to save a snippet and then show it
<whitequark> repl.it has 1.8.7 *gasp*
<drbrain> I'm not sure
<whitequark> ah right, emscripten. and no pthreads there. sigh...
<manveru> >> class X < BasicObject; def initialize; @s = []; end; def inspect; @s.join(' '); end; def method_missing(*a); @s.concat a; self; end; end; X.new.hi.there.how.are.you
<manveru> => hi there how are you
<whitequark> macclearich_: you actually have a problem there: how to distinguish a method call on the delegator itself from a method call on an object contained in the fields hash
<whitequark> i.e. suppose there are both foo.fields['bar.to_i'] and foo.fields['bar'] = 0
<whitequark> now, what should foo.bar.to_i return?
<whitequark> of course you could check for the presence of the item, but then the behavior would be radically different depending on whether you actually have a particularly named field
<whitequark> I'd say that is a very bad design
<whitequark> you could kind of get away by encapsulating Hash and redefining method_missing to return an element with the same name
<whitequark> and just nest these objects one into another
<whitequark> this pattern has been explored countless times, and, well, I believe there is a kind of consensus that resulting name clashes just make it not worth it.
xaph has joined #ruby-lang
<whitequark> I'd go as far as to say that method_missing should be static, that is, its result should only depend on a runtime type of the object
emptyflask has joined #ruby-lang
<whitequark> not its contents
<whitequark> (by "result" I mean the sequence of actions invoked, not the return value)
<whitequark> otherwise it gets unwieldy quite fast.
retro|cz has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
<macclearich_> whitequark: I *think* I get what you're saying; but does that present problems when calling these unknown methods on an instance of class Foo?
yxhuvud2 has quit [Quit: Nettalk6 - www.ntalk.de]
banisterfiend has quit [Ping timeout: 252 seconds]
esad has joined #ruby-lang
yxhuvud has joined #ruby-lang
Guest28589 has quit [Quit: Computer has gone to sleep.]
jtoy has quit [Quit: jtoy]
kennyvb has quit [Quit: ZNC - http://znc.in]
imajes has quit [Excess Flood]
kennyvb has joined #ruby-lang
emptyflask has quit [Remote host closed the connection]
imajes has joined #ruby-lang
<whitequark> macclearich_: well, you're going to eventually return something not is_a?(Foo), right?
<macclearich_> what I'm trying to do is define a set of accessors.
<macclearich_> and I really wish I didn't have to.
<macclearich_> but I don't get to choose my data here.
knu has joined #ruby-lang
<macclearich_> urgh, how to even explain this :)
<macclearich_> I can safely store any key/value pair in @fields
<macclearich_> that's fine
<macclearich_> but when I get a key that has a "." in the name, I need to be able to set that up as a setter/getter pair
towski has joined #ruby-lang
<macclearich_> OR have a global method that will allow me to catch that and treat it as if it were one
<macclearich_> global is wrong word
<macclearich_> instance method is better
dasil003 has joined #ruby-lang
<macclearich_> so that foo.Something works correctly
<macclearich_> i.e. returns foo.fields['Something']
<macclearich_> but foo.Some.Bad.Field equally returns foo.fields['Some.Bad.Field']
<macclearich_> or foo.Some.Bad.Field='blah'
<macclearich_> then foo.fields['Some.Bad.Field'] = 'blah'
Eol has quit [Ping timeout: 272 seconds]
<reactormonk> macclearich_, go with some method_missing magic on that
towski has quit [Remote host closed the connection]
<macclearich_> reactormonk: that's what I'm working on
<macclearich_> it's just figuring out how ;)
<reactormonk> return a proxy object that accumulates the method calls
<reactormonk> and at []/[]=, do a string concat
<reactormonk> or do the string concat while accumulating
<macclearich_> doing the concat while accumulating would be best, so I can return that, ok
<macclearich_> this is just sorta new ground for me
<reactormonk> beware of predefined methods, though
<macclearich_> yeah
<reactormonk> BasicObject
<reactormonk> apeiros_, did you make a case for stuff on Object to be able to bind to BasicObject?
<apeiros_> no
<apeiros_> if, I'd make a case for an Inspector module
<apeiros_> which has unredefinable methods
<apeiros_> and an unremovable constant
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<apeiros_> i.e., the source of *truth*
<reactormonk> fancy experience with redefining of #class? >:)
qwerxy has joined #ruby-lang
<apeiros_> just rails
esad has quit [Quit: Computer has gone to sleep.]
esad has joined #ruby-lang
rindolf has joined #ruby-lang
<rindolf> Hi all.
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
banisterfiend has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
shtirlic has joined #ruby-lang
rippa has quit [Ping timeout: 265 seconds]
imajes has quit [Excess Flood]
judofyr has quit [Read error: Connection reset by peer]
imajes has joined #ruby-lang
judofyr has joined #ruby-lang
imperator has quit [Quit: Leaving]
imperator has joined #ruby-lang
rekky has quit [Quit: rekky]
gaveen has quit [Remote host closed the connection]
<macclearich_> ok, so this almost looks workable, except my proxy method strips off the first piece of the chain
<macclearich_> so foo.Some.Stupid.Method returns "Stupid.Method"
burgestrand has joined #ruby-lang
<lianj> macclearich_: http://ideone.com/i2craY , but dont slap me
<macclearich_> I'd be too busy scratching my head to slap you
<macclearich_> let's see...
<whitequark> apeiros_: Object.instance_method(:foo).bind(evil).call
junctionjason has quit [Quit: Page closed]
<apeiros_> whitequark: try that with a BasicObject
<apeiros_> Object.instance_method(:class).bind(BasicObject.new).call
<whitequark> crap
chimkan_ has quit [Quit: chimkan_]
<apeiros_> yupp
<apeiros_> and now extrapolate to instance_variable_*
<apeiros_> basic objects are essentially unintrospectable
<whitequark> well I know how that could be fixed
<apeiros_> and it's ok if they don't provide any means to
Mon_Ouie has joined #ruby-lang
<apeiros_> but there should be a module which can introspect objects, BasicObjects included
<whitequark> hm wait
<macclearich_> lianj: you are clearly some sort of evil genius, sir
judofyr has quit [Remote host closed the connection]
<lianj> nono
<macclearich_> the only thing that I can't use is how you're building this from an array of discrete keys in self
<lianj> yea, its kinda broken anyway. wanted to get h['a'] and h[:a] in the same hash to work/match but ofc that doesnt
<macclearich_> heh
<mitchty> ewww thats way too railsish
KA_ has quit [Quit: KA_]
<macclearich_> the problem is getting these successive calls to nil objects back as a concatenated string
emptyflask has joined #ruby-lang
<macclearich_> I tried the proxy thing
banisterfiend has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 264 seconds]
<macclearich_> but like I said, when calling foo.Some.Stupid.Method, I only got back Stupid.Method
<macclearich_> which is CLOSE!
<macclearich_> and it wasn't working with foo.Some.Stupid.Method= :/
mistym is now known as mistym_meeting
<macclearich_> there's gotta be a way to do this… I can't be the first guy with this problem
<whitequark> macclearich_: is the schema for your data fixed
<whitequark> ?
<macclearich_> regrettably not
<macclearich_> it's a mostly formless api
<macclearich_> coming from an Amazon dynamo collection. ad-hoc fields allowed.
<macclearich_> there's a good reason for that, but it's beating me senseless right now
<whitequark> why do you dislike the usual ['foo.bar'] so much?
<whitequark> basically you are creating more problems for yourself now. I'd just use [].
KA_ has joined #ruby-lang
KA_ has quit [Client Quit]
<macclearich_> when you say the usual, I'm not sure what you mean - the goal here is an api wrapper that manages these objects and their fields
<macclearich_> so we have some api endpoint called /gameThing
<macclearich_> i've got instance methods to handle the lifecycle of that object. no problem.
<rindolf> Hi all. Does anyone know if http://rubygems.org/gems/libxml-ruby is supposed to work with ruby-1.9.x? I get a build failure here.
<macclearich_> but when we gall gameThing.new(guid), I get back a hash of fields
<macclearich_> now
<lianj> rindolf: use nokogiri
<macclearich_> I can set those into @attributes _just_fine_
<rindolf> lianj: OK, thanks.
<whitequark> macclearich_: hm
<macclearich_> but if I want to say gameThing.new.Some.Field, that's where I run into problems
bluepojo has joined #ruby-lang
<macclearich_> does that make more sense?
<whitequark> macclearich_: is the problem that the fields can have dots in names?
<macclearich_> exactly
<macclearich_> previously, I was doing self.class.send(:define_method, k, proc{self.instance_variable_get("@#{k}")})
<macclearich_> for example
<macclearich_> insta-getter
<whitequark> yup I see
<macclearich_> similar for setter
<macclearich_> and that worked until I realized that our devs had used dots in their field names
<macclearich_> this is my crash-course in metaprogramming
<whitequark> well, again, I personally would translate the dots to underscores
<lianj> what format does the call return? json or xml?
<whitequark> just for the clarity
<lianj> whitequark: yea
<macclearich_> that is my last-ditch fallback, whitequark
<macclearich_> but it makes things a ton more complicated for my eventual customers
<lianj> sounds that the api sucks already :P
<whitequark> sigh. I hate substandard solutions, but OK I'll write one
<rindolf> lianj: thanks.
<macclearich_> it doesn't suck, it's just designed to support multiple products
<macclearich_> if I had any hair man, it'd be in clumps on my desk :)
<whitequark> codepad.org: p RUBY_VERSION # => 1.8.6
<whitequark> sigh
<whitequark> oh wow, ideone has a recent one. cool.
KA_ has joined #ruby-lang
<lianj> whitequark: yep, would be nice to select "run on x,y versions and show output" aswell
<whitequark> lianj: it would be nice _at least_ to have something more recent than five years old
<whitequark> idgaf about multiple versions actually.
<whitequark> all 1.9.x are mostly compatible except 1.9.1 which we should pretend never has happened
<lianj> hehe true
BigFatFatty has joined #ruby-lang
KA_ has quit [Quit: KA_]
cyri_ has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
KA_ has joined #ruby-lang
<drbrain> and 1.9.0 which wasn't a production-candidate release
havenn has quit [Remote host closed the connection]
<whitequark> macclearich_: http://ideone.com/hXpxaG
havenn has joined #ruby-lang
KA_ has quit [Client Quit]
sent-hil has joined #ruby-lang
<sent-hil> where is rubygems installed? i can't seem to find it
Uranio has quit [Quit: WeeChat 0.3.8]
<drbrain> sent-hil: gem which rubygems
<lianj> sent-hil: gem env
ghanima has joined #ruby-lang
<sent-hil> thx
<ghanima> hello all... question when the scan method on a String object and one do a regex search for things between a string
havenn has quit [Read error: Operation timed out]
<macclearich_> whitequark: looking...
<ghanima> sorry I am let me restate... I am trying to run the scan method against a String object looking for substring in between a set of characters. Is that possible?
<whitequark> macclearich_: with setters: http://ideone.com/5wzZSS
ioga_wrk has quit [Ping timeout: 265 seconds]
ioga_wrk has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby-lang
solars has joined #ruby-lang
<sent-hil> drbrain: could you give me through how '-user-install' flag in .gemrc is being parsed/used by rubygems?
<drbrain> sent-hil: not right now, I'm busy with work
<drbrain> sent-hil: look at Gem::ConfigFile though
<drbrain> and Gem::CommandManager, IIRC
<sent-hil> drbrain: oh ok
<drbrain> … and Gem::Command
esad has quit [Quit: Computer has gone to sleep.]
gregmoreno has quit [Ping timeout: 255 seconds]
<sent-hil> drbrain: i understand the ConfigFile, will look at the other two, thx
havenn has joined #ruby-lang
KA_ has joined #ruby-lang
esad has joined #ruby-lang
Hakon has joined #ruby-lang
<macclearich_> whitequark: that seriously works, man
<macclearich_> … almost
<whitequark> macclearich_: it's not in my practice to post broken examples...
<whitequark> crap.
<macclearich_> still trouble with the setter
<macclearich_> :)
<macclearich_> but I'm working on that too
<whitequark> well it's tested
<macclearich_> yeah
<whitequark> so it works to the spec :)
<macclearich_> trying to figure that part out right now
cyri_ has quit [Quit: cyri_]
<macclearich_> ohhh
<macclearich_> lol
<macclearich_> assert_raises NoMethodError do; api.quick = true ; end
dankest is now known as dankest|away
<whitequark> yup, I don't allow to create fields
<macclearich_> so I can alter fields that exist, but not set them.
<macclearich_> or… bah, you know what I meant. hopefully.
<whitequark> ya
<whitequark> the fix is left an exercise to the patient reader
<whitequark> *as an
<macclearich_> my gratitude, sir
ddd has quit [Quit: Leaving.]
<whitequark> it's funny how you assume things about my gender, even through they're correct
<whitequark> especially in the recent context
KA_ has quit [Quit: KA_]
<macclearich_> I call everyone either sir or boss anyway?
KA_ has joined #ruby-lang
<whitequark> imo it's fine either way :)
<whitequark> but there are some people who snap into a murderous rage
<havenn> whitequark: Nice when honorifics are gender neutral, like Esq.
<havenn> Though actually there *is* a female Esquire, it just historically has been Goodwife, and lady lawyers prolly wouldn't appreciate that. >.>
workmad3 has joined #ruby-lang
<whitequark> havenn: I find it exceptionally pleasant that 1) English has gender-neutral verbs and 2) English has one distinctive form of second-person pronoun
KA_ has quit [Client Quit]
ddd has joined #ruby-lang
<whitequark> because in Russian verbs aren't, and there are three different ways of saying "you" depending on how formal the context is; and like 99% of people don't get an important distinction between two of those.
<whitequark> hint: chances that a person writing "You" in mid-sentence is Russian.
<whitequark> annoys me to no extent.
SoAwesomeMan has joined #ruby-lang
statim has quit []
guns has joined #ruby-lang
vlad_starkov has joined #ruby-lang
KA_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
gregmoreno has joined #ruby-lang
<zzak> ...remove rdoc from stdlib? troll level: > 9000!!
<erikh> wat
<naquad> is there any way to make Nokogiri ignore namespaces in xpath queries, but don't actually remove them?
mistym_meeting is now known as mistym
KA_ has quit [Quit: KA_]
<zzak> remove rdoc, and rubygems from stdlib.. so slop can be added and replace optparse
<zzak> makes sense
dankest|away is now known as dankest
wallerdev has quit [Quit: wallerdev]
<erikh> I doubt injekt would have suggested that
<erikh> just doesn't seem like him.
<zzak> he didnt
kurko_ has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> Ah yes, logic right there
<eam> I really wish everyone would just use getopt long
<yorickpeterse> Remove OptionParser so people don't end up re-inventing teh wheel, then suggest for them to re-invent the wheel by parsing ARGV manually
<yorickpeterse> * the
<eam> weird option parsing libraries just make it hard to move between languages
<yorickpeterse> though I have to admit that OptionParser is pretty wack
<bougyman> i've never had a problem with optionparser
<erikh> eam: it's a side effect of getopt being a total pile of ass
<erikh> most modern C programs don't even use it
<rindolf> eam: ah, you're here too. :-)
<eam> I'm not going to defend it too much, I just wish there was some consistency. I'm a lot less happy with OptionParser
<eam> rindolf: :)
<rindolf> eam: I'm usually not here.
cyri_ has joined #ruby-lang
R_Macy has joined #ruby-lang
* manveru <3 OptionParser :)
sandbags2 has joined #ruby-lang
<havenn> I like Slop more than OptionParser for its more concise DSL. But as Injekt mentions "there's already two option parsing libraries in stdlib and ... adding another is just bloat".
<havenn> And RDoc and RubyGems having legacy OptionParser support plus Slop for Ruby 2.0 sounds... bad.
workmad3 has joined #ruby-lang
<drbrain> also, OptionParser is used in hundreds of gems
<whitequark> drbrain: are you aware of some automated gem parser for such cases?
<drbrain> adding `default: 'whatevs'` and #to_hash would bring OptionParser to a similar level of conciseness as Slop has
banisterfiend has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
kith has quit [Read error: Connection reset by peer]
kith has joined #ruby-lang
<manveru> yeah
<manveru> well, i've done lots of stuff with OP, and it just never gets old, imho :)
<manveru> then again, i've never tried slop much, and i hate getopt
havenn has quit [Ping timeout: 252 seconds]
<whitequark> trollop is kind of nice
<manveru> i just don't like having dependencies outside stdlib, and these days there's really not much need to have more than a handful of deps
havenn has joined #ruby-lang
<whitequark> I like it most out of all parsers
cyri_ has quit [Quit: cyri_]
dankest has quit [Quit: Linkinus - http://linkinus.com]
cyri_ has joined #ruby-lang
chimkan has joined #ruby-lang
robotmay has quit [Ping timeout: 240 seconds]
dankest has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
sailias has quit [Quit: Leaving.]
swarley has joined #ruby-lang
dhruvasagar has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
shtirlic has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
workmad3 has quit [Ping timeout: 248 seconds]
<esad> how do I split an array into two based on some proc (criteria)?
<esad> like [a.select { criteria }, a-a.select{ criteria}]
<banisterfiend> esad: Array#partition
<banisterfiend> esad: a.partition { |v| v.even? }
<esad> that's it. thanks!
<esad> know your core :)
WillMarshall has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
<apeiros_> know your fiends!
xaph has quit [Remote host closed the connection]
Carnage\ has joined #ruby-lang
alvaro_o_ has joined #ruby-lang
statim has joined #ruby-lang
KA_ has joined #ruby-lang
afgeneralist has joined #ruby-lang
alvaro_o has quit [Ping timeout: 252 seconds]
sandbags2 has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 240 seconds]
gsav_ has quit [*.net *.split]
outoftime has quit [*.net *.split]
catepillar has quit [*.net *.split]
x0F has quit [*.net *.split]
toretore has quit [*.net *.split]
musl has quit [*.net *.split]
Harzilein has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
davidboy has quit [*.net *.split]
chendo_ is now known as chendo
Harzilein has joined #ruby-lang
gsav has joined #ruby-lang
Harzilein has quit [Max SendQ exceeded]
catepillar has joined #ruby-lang
Harzilein has joined #ruby-lang
toretore has joined #ruby-lang
outoftime has joined #ruby-lang
davidbalbert is now known as davidbalber|away
valeri_ufo has joined #ruby-lang
atodd has joined #ruby-lang
atodd has quit [Client Quit]
dmwuw_ has joined #ruby-lang
x0F has joined #ruby-lang
havenn_ has joined #ruby-lang
SoAwesomeMan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sandbags2 has joined #ruby-lang
rebelcan_ has joined #ruby-lang
kaliya_ has joined #ruby-lang
fushi has joined #ruby-lang
tonni has joined #ruby-lang
dRbiG has quit [Ping timeout: 240 seconds]
musl has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
havenn has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
imperator2 has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
ramonmaruko has quit [*.net *.split]
kaliya has quit [*.net *.split]
rebelcan has quit [*.net *.split]
t_ has quit [*.net *.split]
dmwuw has quit [*.net *.split]
KA_ has quit [Quit: KA_]
imperator2 has joined #ruby-lang
nXqd has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
KA_ has joined #ruby-lang
davidboy has joined #ruby-lang
joenobody has joined #ruby-lang
KA_ has quit [Client Quit]
joenobody has quit [Client Quit]
joenobody has joined #ruby-lang
t_ has joined #ruby-lang
fushi has quit [Quit: fushi]
ramonmaruko has joined #ruby-lang
gmci has joined #ruby-lang
gmci is now known as Guest47056
sepp2k has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
tdy has joined #ruby-lang
cirenyc has joined #ruby-lang
nazty has joined #ruby-lang
<sent-hil> can i create a temp dir in ruby with nonwritable permissions?
joenobody has quit [Quit: This computer has gone to sleep]
CaptainJet has quit [Ping timeout: 268 seconds]
<drbrain> sent-hil: Dir.mktmpdir 'my_temp_dir' do |dir| begin; File.chmod 0, dir; …; ensure; File.chmod 700, dir; end; end
qwerxy has quit [Quit: offski]
dalekurt has quit [Quit: Zzz...]
joenobody has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
nazty has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
<eam> I spy a race condition
<sent-hil> drbrain: thx!
cirenyc has quit [Quit: Leaving...]
zmack has quit [Remote host closed the connection]
<eam> Dir.mktmpdir should take a mode
KA_ has quit [Client Quit]
anjen has joined #ruby-lang
<eam> drbrain: why the double chmod?
<drbrain> eam: Dir.mktmpdir removes the directory at the end of the block
<drbrain> if you don't use the block you can remove those parts
<eam> you can unlink a file without having access to it
<drbrain> maybe it's an Dir.mktmpdir bug then
<eam> I bet it tries to stat() or access() it
dmwuw_ has quit [Remote host closed the connection]
<eam> yup, it sure does
<drbrain> eam: can you file a bug on bugs.ruby-lang.org?
<eam> will do
wallerdev has joined #ruby-lang
musl has quit [Quit: WeeChat 0.3.9]
<ddd> poor mame trying to get hold of me for the kgio no-compile issue, I finally get some time to answer him and can no longer reproduce the problem. now that sucks
BigO has quit [Remote host closed the connection]
musl has joined #ruby-lang
<freedrull> or only the first time the block is executed?
<drbrain> freedrull: only the first time
<drbrain> inject without an argument uses the first item in the collection
<drbrain> so it's a sentinel
<freedrull> ah ok. pretty sure i understand this chunk of code then..... >:3
TylerGillies has joined #ruby-lang
<TylerGillies> i just monkey patched Proc with the y-combinator
<TylerGillies> p ->(add_one){ ->(list){ list.empty? ? list : add_one.(list[1..-1]).insert(0,list[0] + 1) } }.to_y.([1,2,3,4]) #=> [2,3,4,5]
dalekurt has joined #ruby-lang
plusk has joined #ruby-lang
davidbalber|away is now known as davidbalbert
workmad3 has quit [Ping timeout: 240 seconds]
chimkan has quit [Quit: chimkan]
mistym has joined #ruby-lang
R_Macy has quit []
cirenyc has joined #ruby-lang
cirenyc has quit [Client Quit]
sandbags2 has quit [Remote host closed the connection]
nazty has joined #ruby-lang
gsav_ has joined #ruby-lang
havenn_ has quit [Remote host closed the connection]
gsav_ has quit [Ping timeout: 246 seconds]
gsav has quit [Ping timeout: 252 seconds]
benanne has joined #ruby-lang
agile has quit [Remote host closed the connection]
chimkan_ has joined #ruby-lang
stonerfish has quit [Ping timeout: 276 seconds]
outoftime has quit [Quit: Leaving]
wyhaines_ has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
apeiros_ has quit [Remote host closed the connection]
joenobody has quit [Quit: This computer has gone to sleep]
sent-hil has quit [Remote host closed the connection]
stonerfish has joined #ruby-lang