Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
ben [ben!~v@dslb-088-066-000-219.pools.arcor-ip.net] has quit [#ruby-lang]
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
<sendnoflowers> lantins: you are very welcome, sir
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
<shevy> sendnoflowers can I send you flowers
<drbrain> jaimef: in the future, match may raise an exception if you compare string to string
<drbrain> jaimef: =~ already does
<sendnoflowers> shevy: only after i lose my virginity
<sendnoflowers> i mean to congratulate me :-) bad joke. sorry
<sendnoflowers> seems like a nice tool http://pivotalbooster.com/
<sendnoflowers> you can't create stories tho
replore_ [replore_!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
dejongge1 [dejongge1!~jonke@pD9E0D7EF.dip0.t-ipconnect.de] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
dejongge2 [dejongge2!~jonke@pD9E0D7E6.dip0.t-ipconnect.de] has joined #ruby-lang
<muzone> manveru: qumu?
takaokouji [takaokouji!~takaokouj@2001:268:306:1:225:bcff:fedc:e1fe] has joined #ruby-lang
aspofdestiny [aspofdestiny!~andy@cpe-24-90-207-231.nyc.res.rr.com] has joined #ruby-lang
aspofdestiny [aspofdestiny!~andy@cpe-24-90-207-231.nyc.res.rr.com] has quit [#ruby-lang]
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
<andrewvos> Fuck everything about pivotal
<oddmunds> hehe
dv310p3r [dv310p3r!~dv310p3r@adsl-65-3-161-18.mia.bellsouth.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@adsl-65-3-161-18.mia.bellsouth.net] has joined #ruby-lang
plusk [plusk!~plusk@201-34-211-49.gnace703.dsl.brasiltelecom.net.br] has joined #ruby-lang
pabloh [pabloh!~pablo@186.22.82.39] has joined #ruby-lang
<pabloh> is there some gem or lib to inspect ruby's C structures form IRB?
zmack [zmack!~zmack@188.26.128.139] has joined #ruby-lang
<oddmunds> show-method in pry will do that if i understand you correctly
<drbrain> no
<drbrain> oddmunds: I'm assuming C structures means struct RArray
<drbrain> and so-on
<pabloh> drbrain: yesp
<drbrain> your C debugger will do it
<oddmunds> ah. then i don't know. :)
<pabloh> drbrain: you mean i shoul compile some C extension, and debug that?
<drbrain> pabloh: you don't need to
<drbrain> you can use plain ruby and add a breakpoint
<drbrain> pabloh: what do you want to learn?
<pabloh> drbrain: to the interpreters code?
<drbrain> … you can use the neversaydie gem to cause a segv
<pabloh> drbrain: i just was tring to see when ruby creates a shares string
<pabloh> shared*
<drbrain> it'd be easier to read string.c than use the debugger, then
<pabloh> k
<drbrain> look for SHARED
<pabloh> thx
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
jensn_ [jensn_!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
darkswoop [darkswoop!~darkswoop@31-19-44-89-dynip.superkabel.de] has joined #ruby-lang
<jaimef> ahh Rexgexp.escape is just 1.9
sj26 [sj26!sj26@sj26.com] has joined #ruby-lang
Weems [Weems!Weems@68-117-153-32.dhcp.unas.al.charter.com] has joined #ruby-lang
Weems [Weems!Weems@unaffiliated/weems] has joined #ruby-lang
<epitron> jaimef: really??
<drbrain> jaimef: nope
<epitron> i thought i remembered using that way long ago :)
<jaimef> NoMethodError: undefined method `escape' for /Ubuntu (lala)/:Regexp
<jaimef> Clearly it's smarter than I am
<jaimef> instance method?
<jaimef> duh got it
<jaimef> "every method must be an instance method"
<epitron> ^- this is what you were thinking?
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
Marco [Marco!~marco@Marco-2.Kiewit.dartmouth.edu] has joined #ruby-lang
mikeric [mikeric!~mike@96.49.104.175] has joined #ruby-lang
Eising [Eising!~allan@0x52b41d06.static.bcbnet.dk] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.45] has joined #ruby-lang
<josh9> just wanted to share.
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.46] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
r0bby [r0bby!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.45] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
Carmivore [Carmivore!~carmivmor@ec2-184-73-109-201.compute-1.amazonaws.com] has joined #ruby-lang
slaytanic [slaytanic!~slaytanic@host226.190-31-167.telecom.net.ar] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.43] has joined #ruby-lang
jessemc [jessemc!~jessemc@S01060018396a08f6.ed.shawcable.net] has joined #ruby-lang
amerine [amerine!~mturner@67.204.184.82] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
Pip_ [Pip_!~Pip@unaffiliated/pip] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.43] has joined #ruby-lang
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
livinded [livinded!~lolwut@pool-108-23-242-132.lsanca.fios.verizon.net] has joined #ruby-lang
twittard [twittard!~twittard@cpe-76-169-74-39.socal.res.rr.com] has joined #ruby-lang
<zenspider> rake-remote_task 2.0.6 released
<zenspider> josh9: read the rails source.
<zenspider> not. cool.
mikeric [mikeric!~mike@96.49.104.11] has joined #ruby-lang
<josh9> zenspider: what's not cool?
<zenspider> read the source and get back to me on that
<josh9> zenspider: i am not the writer of the arcicle, btw. and what source are u talking about? rails?
<zenspider> sexp_processor 3.0.10 released
dr0id [dr0id!~andy@unaffiliated/dr0id] has joined #ruby-lang
<zenspider> josh9: n/m
dfr|mac [dfr|mac!~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #ruby-lang
dfr|mac_ [dfr|mac_!dfr|work@nat/google/x-ysbvciwgfmhohihw] has joined #ruby-lang
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby-lang
<imperator> anyone up for helping me a bit with ffi and getmntinfo() ?
<imperator> basically, i'm not sure how to deal with struct statfs **mntbufp
<drbrain> what do you have so far?
slaytanic [slaytanic!~slaytanic@200-55-75-170.dsl.prima.net.ar] has joined #ruby-lang
nicknovitski [nicknovitski!~nicknovit@38.99.52.59] has joined #ruby-lang
<imperator> one sec
<nicknovitski> Is there a way to unit-test thor tasks?
<nicknovitski> Or rather, to invoke them without actually calling them from the command-line?
<drbrain> switch them to rake tasks?
cschneid [cschneid!~cschneid@c-76-120-122-74.hsd1.co.comcast.net] has joined #ruby-lang
crudson [crudson!~doug@c-67-171-219-209.hsd1.or.comcast.net] has joined #ruby-lang
<nicknovitski> hah :(
<drbrain> imperator: from reading my docs, looks like you take the return value and unpack that many struct statfs items from **mntbufp
<drbrain> imperator: you probably got that far already, though
replore_ [replore_!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
<imperator> oops, forgot one thing...ok added it
<drbrain> imperator: line 35 seems wrong to me, since you've got **mntbuf
<imperator> 35?
<drbrain> 36
<drbrain> mntbuf = FFI::MemoryPointer.new(Statfs)
<imperator> so, :pointer instead
<drbrain> mntbuf gets filled in with an array of struct statfs
<imperator> ok, so how do i unravel them in Statfs.size chunks?
<drbrain> yeah
Jay_Levitt [Jay_Levitt!~Jay_Levit@home.jay.fm] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
<imperator> i guess i'm not getting it
nicknovitski [nicknovitski!~nicknovit@38.99.52.59] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
<imperator> slyphon, yo
<slyphon> oh hai dere
<slyphon> how goes?
<imperator> it goes
<slyphon> :)
<drbrain> how about that?
<slyphon> can i just say how happy i am to be in fucking Utah
<slyphon> UTAHHHH!!!
<drbrain> there's read_array_of_pointer but it cares about how many objects you've allocated
<drbrain> so you'd need to call it twice and check the length and other bullshit
<drbrain> slyphon: I have a doubt
<slyphon> :)
<slyphon> naw man, it's like incredible here, i mean, there's the awesome view of the rockies, and...
<imperator> slyphon, it's a bit "dry" there if you know what i mean
<slyphon> yyyeah
<slyphon> restaurants close around 8-9pm
<slyphon> no bar in the hotel
<slyphon> we went to a really nice place tonight for dinner, no fucking wine list!
<imperator> slyphon, btw, you win the quote of the year as far as i'm concerned
<slyphon> hahahahaha
<slyphon> for which one?
<imperator> regarding return_bang
<slyphon> HA!
<slyphon> :D
<slyphon> it is truly a piece of code
<drbrain> I suppose you could shorten the loop up to num.times { |n| mnt = Statfs.new(ptr + mntbuf.size * n); p mnt[:f_otype] }
<drbrain> err, no
<slyphon> it's funny, i'd been messing w/ em-synchrony, which uses fibers, and was having a hell of a time figuring that shit out (why did my rescue block get skipped?)
<slyphon> this looked even more evil
<imperator> drbrain, thanks!
<slyphon> i saw “This is so evil that 6 def test_… have turned into: 16 tests, 65 assertions, 18 failures, 7 errors”
<slyphon> and thought "Oh boy, drbrain is gonna take this as an encouraging sign"
<drbrain> imperator: there might be a way to convince FFI that your pointer is now an array of num items
<drbrain> but I don't know what that is
<drbrain> slyphon: it was a highly successful troll
<slyphon> hahahahaha
<drbrain> many people do not realize it is a joke
<imperator> drbrain, yeah, i'm having a hard time with the docs, relying mostly on examples
<drbrain> so much so that I should release a new version with ensure!
<slyphon> omfg
<slyphon> dude
<slyphon> yes, you should
tjgillies [tjgillies!~tyler@204-232-205-180.static.cloud-ips.com] has joined #ruby-lang
<slyphon> or an INTERCAL please!
<imperator> slyphon, just hop over the colorado border and get some wine :)
<slyphon> it's funny, i was trying to create a non-local return to show a friend and i couldn't really remember how to cause it to happen
<slyphon> imperator: hah
<slyphon> we're in Lehi, so it's not a dry county, it's more that there's just nothing to fucking do here
igotnolegs [igotnolegs!~igotnoleg@75-162-83-166.slkc.qwest.net] has joined #ruby-lang
* imperator wonders if he declared Statfs properly
<slyphon> the office clears out at 5:30, everyone just "goes home"
<imperator> lamers
<slyphon> i couldn't really understand why those guys were partying so hard when they went to san francisco, now i understand
<drbrain> imperator: maybe? I seem to get bogus values for f_bavail compared to df -P
<imperator> drbrain, yeah, i need to check the size; also, it has two possible declarations on osx
<drbrain> … or my workaround is bogus
<imperator> based on _DARWIN_FEATURE_64_BIT_INODE or something
<slyphon> i gotta say reading about OAuth (1 and 2) it makes me wonder if people shouldn't just be using kerberos
<imperator> hey, i know something about kerberos
<slyphon> oh yeah? i deployed MIT kerberos w/ an openldap backend at my job, and everyone went "meh"
<slyphon> kind of sucks now that osx's kerberos support is shitty
<slyphon> !!!
<imperator> on osx i basically declared that the default install is crap, install from source
<slyphon> yeah
<slyphon> it's really a shame, in 10.4 the ticket manager was really fucking nice
<slyphon> integrated well, etc.
<imperator> yeah, had that little gui too
<imperator> actually, i think it might still be there, dunno
<slyphon> it's not :/
<slyphon> man
<imperator> needed it for work, don't work there any more
<slyphon> this would have been useful back in the day
* slyphon nods
<imperator> although, kerberos itself was annoying from a dev perspective
<imperator> saw a couple major api changes
<slyphon> yeah, it's weird and quirky
<slyphon> yeah?
<imperator> without an easy way to differentiate
<slyphon> bleh
<imperator> like, what fucking version of kerberos am i using?
<slyphon> hahahah
<zenspider> confuz0red... if I start using my null object as a possible dependency, rake says "Don't know how to build task ''"... I tried wiring the null object in via 'task null' to shut it up, but that doesn't work.
<slyphon> i never really used it that much, b/c by the time we tried to make a push to do it, the startup i was working at went under
<imperator> instead they had API_VERSION_1, or some such thing
<slyphon> :P
<imperator> slyphon, that's a shame
<slyphon> yeah
<slyphon> it really solves a difficult problem pretty well
<imperator> one of my colleagues and i came up with rack-auth-kerberos, too
<slyphon> hah!
<imperator> for rails; worked pretty well
<slyphon> see, that would have been great for internal stuff
<slyphon> we always were paranoid about someone logging into our "admin" console and fucking around
<slyphon> and setting up client-certificates on our customer-support people's laptops would have been...well, "work"
<imperator> it was interesting to learn and implement the wrapper
<slyphon> so you were linking with libkrb5 or w/e
<slyphon> ?
<imperator> yeah
<imperator> we used it for single signon, and a way to avoid storing passwords in oracle
<slyphon> you think overall it was a good choice for that?
<slyphon> for authenticating an app server with a database, it seems like it'd be win
<imperator> i think it was a good idea for that, though it added a layer of maintenance, too
* slyphon nods
<slyphon> did you use a keytab for the app servers?
<imperator> although, i decided that i wasn't really sold on the idea of single signon in general
<slyphon> oh?
<imperator> at least, not for that shop
<slyphon> ah
<imperator> the roi just wasn't there
* slyphon nods
* imperator tries to remember the implementation
<slyphon> on a slightly different note, anyone know if there's an Oauth2 lib that supports 2-legged auth?
<imperator> i think so; i think we cached the users credentials, and when the bopped over to a different app, we compared the credentials; or something :-P
<imperator> when the ^user^
<slyphon> ahhh
<slyphon> yeah, the whole forwarding thing
gnufied [gnufied!~gnufied@122.172.246.117] has joined #ruby-lang
<slyphon> i nearly gave up at the "ticket-granting-ticket" concept
* imperator nods
<imperator> it's already fading fast from memory, i should probably turn that lib over to someone
twittard [twittard!~twittard@cpe-76-169-74-39.socal.res.rr.com] has joined #ruby-lang
<imperator> drbrain, check_sizeof('struct statfs', 'sys/mount.h') says 2168; don't think my struct is that big
<zenspider> damn you rake... task '' should not be the answer
<zenspider> imperator: I think it is
<zenspider> it's at least 512 + 1024 just at a glance
<zenspider> sorry... that's apparently dependent on what size inode I'm using
<imperator> which i'm not sure how to determine
<zenspider> yeah :/
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
<imperator> well, it looks like :f_mntonname and :f_mntfromname should be 1024 instead of 16
<imperator> whoopsie
<imperator> but that puts me over by 38; goofed up somewhere else
tomzx [tomzx!~tomzx@dsl-216-221-39-59.aei.ca] has joined #ruby-lang
<imperator> oh, some members changed, too
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
nekid [nekid!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
* imperator thinks he has it, but will come back to this tomorrow
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby-lang
Guest68249 [Guest68249!Guest68249@200-185-227-52.user.ajato.com.br] has joined #ruby-lang
mksm [mksm!Guest68249@pdpc/supporter/professional/mksm] has joined #ruby-lang
JoelMcCracken [JoelMcCracken!~user@pool-71-182-249-106.pitbpa.east.verizon.net] has joined #ruby-lang
Asher [Asher!~asher@98.158.127.150] has joined #ruby-lang
Asher [Asher!~asher@98.158.127.150] has quit [#ruby-lang]
Asher [Asher!~asher@98.158.127.150] has joined #ruby-lang
slyphon_ [slyphon_!~weechat@unaffiliated/slyphon] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
slyphon__ [slyphon__!~weechat@unaffiliated/slyphon] has joined #ruby-lang
Carmivore [Carmivore!~carmivmor@ec2-75-101-234-93.compute-1.amazonaws.com] has joined #ruby-lang
slyphon_wtf [slyphon_wtf!~weechat@9.sub-75-196-205.myvzw.com] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
sandelius [sandelius!~textual@90-231-202-62-no214.tbcn.telia.com] has joined #ruby-lang
jxie [jxie!~jxie@115.197.84.209] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
Weems [Weems!Weems@68-117-153-32.dhcp.unas.al.charter.com] has joined #ruby-lang
Weems [Weems!Weems@unaffiliated/weems] has joined #ruby-lang
queequeg1 [queequeg1!~queequeg@c-71-202-152-67.hsd1.ca.comcast.net] has joined #ruby-lang
jxie [jxie!~jxie@115.197.84.209] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-17-181.a149.priv.bahnhof.se] has joined #ruby-lang
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
slyphon_wtf [slyphon_wtf!~weechat@pool-96-224-232-158.nycmny.fios.verizon.net] has joined #ruby-lang
Jay_Levitt [Jay_Levitt!~Jay_Levit@home.jay.fm] has joined #ruby-lang
dfr|mac__ [dfr|mac__!dfr|work@nat/google/x-yimochamgrlyqols] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
solars [solars!~solars@mk089144206117.a1.net] has joined #ruby-lang
thone [thone!~thone@g226048128.adsl.alicedsl.de] has joined #ruby-lang
Xzyx987X [Xzyx987X!~Xzyx987X@c-75-72-121-187.hsd1.mn.comcast.net] has joined #ruby-lang
toretore [toretore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
Marco [Marco!~marco@Marco-2.Kiewit.dartmouth.edu] has joined #ruby-lang
roadkith [roadkith!~kith@unaffiliated/kith] has joined #ruby-lang
babinho [babinho!~babinho@babinho.net] has joined #ruby-lang
segy [segy!~segfault@ool-4b7f91cb.static.optonline.net] has joined #ruby-lang
segy [segy!~segfault@pdpc/supporter/active/segy] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
bjensen [bjensen!~brianj@3007ds3-ar.0.fullrate.dk] has joined #ruby-lang
zmack [zmack!~zmack@109.99.235.103] has joined #ruby-lang
shevy [shevy!~shevy@93-82-138-164.adsl.highway.telekom.at] has joined #ruby-lang
mksm [mksm!mksm@200-185-227-52.user.ajato.com.br] has joined #ruby-lang
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-200-61.dyn.iinet.net.au] has joined #ruby-lang
mksm_ [mksm_!~mksm@200-185-227-52.user.ajato.com.br] has joined #ruby-lang
Marco [Marco!~marco@Marco-2.Kiewit.dartmouth.edu] has joined #ruby-lang
<yorickpeterse> Morning folks
kyrylo [kyrylo!~kyrylo@46.118.235.122] has joined #ruby-lang
kinabalu [kinabalu!~kinabalu@unaffiliated/kinabalu] has joined #ruby-lang
davidw [davidw!~davidw@host228-251-static.95-94-b.business.telecomitalia.it] has joined #ruby-lang
thrcka [thrcka!thrcka@nat/redhat/x-awwjdhrdhmyxqxxt] has joined #ruby-lang
Xzyx987X_ [Xzyx987X_!~Xzyx987X@c-75-72-121-187.hsd1.mn.comcast.net] has joined #ruby-lang
Asher [Asher!~asher@98.158.127.150] has joined #ruby-lang
Guest67529 [Guest67529!Guest67529@200-185-227-52.user.ajato.com.br] has joined #ruby-lang
raggi [raggi!~raggi@109.200.1.250] has joined #ruby-lang
bjensen [bjensen!~brianj@2.109.72.123] has joined #ruby-lang
dfr|mac [dfr|mac!dfr|work@nat/google/x-bddvebjjytxbritx] has joined #ruby-lang
Kichael [Kichael!~Kichael@70-36-49-167.dyn.novuscom.net] has joined #ruby-lang
yakkof [yakkof!~yakkof@c-98-234-84-37.hsd1.ca.comcast.net] has joined #ruby-lang
whatasunnyday [whatasunnyday!~sunny@c-24-130-81-47.hsd1.ca.comcast.net] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-200-61.dyn.iinet.net.au] has joined #ruby-lang
crudson [crudson!~doug@c-67-171-219-209.hsd1.or.comcast.net] has quit [#ruby-lang]
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
<erikh> yes hello
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<rue> HE LL O
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
|Vargas| [|Vargas|!~luke@host17-129-dynamic.54-79-r.retail.telecomitalia.it] has joined #ruby-lang
|Vargas| [|Vargas|!~luke@pdpc/supporter/profesional/vargas] has joined #ruby-lang
Defusal [Defusal!DeFi@dsl-240-236-177.telkomadsl.co.za] has joined #ruby-lang
Defusal [Defusal!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
<andrewvos> HI
<andrewvos> Jumping on the hello bandwagon
<kalleth> o7
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby-lang
<erikh> I wore my minaswan shirt to work the other day
<erikh> nobody noticed :(
<rue> You should quit
<erikh> curse them
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@77.245.32.179] has joined #ruby-lang
darkswoop [darkswoop!~darkswoop@31-19-44-89-dynip.superkabel.de] has joined #ruby-lang
<lantins> erikh: ah but did you hand out cookies and rainbows to everyone while wearing it? if so deff quit! ;-)
<erikh> heh
corsican [corsican!corsican@c-67-161-78-60.hsd1.ca.comcast.net] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
sandelius [sandelius!~textual@90-231-202-62-no214.tbcn.telia.com] has quit ["Textual IRC Client: http://www.textualapp.com/"]
mytrile [mytrile!~mytrile@94.26.28.135] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@dslb-188-097-009-235.pools.arcor-ip.net] has joined #ruby-lang
drbrain [drbrain!~drbrain@drbrain-1-pt.tunnel.tserv14.sea1.ipv6.he.net] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
RomD [RomD!~Roman@nrbg-4dbe2cb5.pool.mediaWays.net] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-82-194.ssp.dialog.net.pl] has joined #ruby-lang
tychobrailleur [tychobrailleur!~sebastien@176.61.72.130] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-200-61.dyn.iinet.net.au] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
Locke23rus [Locke23rus!~quassel@128-70-119-37.broadband.corbina.ru] has joined #ruby-lang
dous [dous!~dous@unaffiliated/dous] has joined #ruby-lang
sendnoflowers [sendnoflowers!~sendnoflo@213.160.145.74] has joined #ruby-lang
Carmivore [Carmivore!~carmivmor@ec2-204-236-244-228.compute-1.amazonaws.com] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-200-61.dyn.iinet.net.au] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
ramonmaruko1 [ramonmaruko1!~marco@122.52.126.66] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@194.209.75.58] has joined #ruby-lang
empity [empity!~user@mail2.xype.com] has joined #ruby-lang
tychobrailleur_ [tychobrailleur_!~sebastien@176.61.72.130] has joined #ruby-lang
uncle_billy [uncle_billy!~Adium@static-224.service.govdelivery.com] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@77.245.32.179] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.40] has joined #ruby-lang
Natch| [Natch|!~natch@178.73.217.101] has joined #ruby-lang
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby-lang
jkprg [jkprg!~jarda@ip-62-245-93-150.net.upcbroadband.cz] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
tommyvyo_ [tommyvyo_!~tommyvyo@38.123.129.115] has joined #ruby-lang
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby-lang
sepp2k [sepp2k!~sexy@e179239201.adsl.alicedsl.de] has joined #ruby-lang
jxie_ [jxie_!~jxie@115.197.95.136] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
<andrewvos> zenspider: Remember when you said there's only three lines of code that should be in bin/myapp? What were they?
<shevy> three magical lines
<andrewvos> Oh... It was drbrain
<shevy> was that about $: ? or something... he said to not modify it when writing a gem? (I did not quite understand it.)
tomzx [tomzx!~tomzx@dsl-216-221-39-59.aei.ca] has joined #ruby-lang
cantbecool [cantbecool!~cantbecoo@173-15-164-136-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
vmatiyko [vmatiyko!~vmatiyko@178.121.196.169] has joined #ruby-lang
vmatiyko [vmatiyko!~vmatiyko@178.121.196.169] has quit [#ruby-lang]
<andrewvos> shevy: He said rubygems would sort out adding ./lib I think
<shevy> hmm
<shevy> aha
<andrewvos> drbrain: Could you confirm?
<injekt> shevy: you dont need to modify the load path for your gem
<injekt> ever
<injekt> rubygems adds lib
<injekt> and for testing, ruby has the -I command
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
<injekt> ie: ruby -Ilib bin/something
<andrewvos> injekt: So you never need to add lib to yout load path?
<injekt> andrewvos: nope, rubygems does so
<andrewvos> fuck
<injekt> modifying it is a bad idea, but people usually do it (even knowingly) out of laziness
<andrewvos> Holy shit
<andrewvos> injekt: So you're saying when running tests you neeed to do something different?
<injekt> andrewvos: I modify $: for my tests, that's a little different because you need to make sure you're using the local latest version instead of the possibly installed one
JosephRuby [JosephRuby!~joseph@46.33.34.133] has joined #ruby-lang
<injekt> and for running individual tests, I simply: ruby -Itest test/some_test.rb
<andrewvos> injekt: So your helper just adds to the loadpath
<injekt> andrewvos: yeah
<andrewvos> injekt: And in the rakefile the act of requiring code files causes the tests to execute?
<andrewvos> requiring test files Imean
<injekt> andrewvos: precisely, I use minitest/autorun (you can see the require in my helper)
<andrewvos> injekt: Interesting. Thanks
<injekt> :P
<injekt> well, now you know and can fix it \o/
<injekt> ;)
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
<injekt> :)
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
codewrangler [codewrangler!~codewrang@pool-108-28-240-83.washdc.fios.verizon.net] has joined #ruby-lang
<andrewvos> injekt: Thanks your teachings have been added to my daily "things I've learned"
zukunftsalick [zukunftsalick!~tworker@glo3.manheim.com] has joined #ruby-lang
<zukunftsalick> Hi, I'm getting uninitialized constant Gem::SyckDefaultKey when running rake. Google didn't help me that much. Any clue?
<andrewvos> zukunftsalick: Looks like you're not requiring your library
<andrewvos> zukunftsalick: Or your class
cjs226 [cjs226!~cjs226@rrcs-71-40-79-154.sw.biz.rr.com] has joined #ruby-lang
<andrewvos> zukunftsalick: Oh wait. SyckDefaultKey isn't yours?
<zukunftsalick> nope
Sailias [Sailias!~jonathan@bas8-toronto01-1279270254.dsl.bell.ca] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
<injekt> zukunftsalick: what version of ruby and rubygems?
<zukunftsalick> ruby 1.9.3, rubygems 1.8.12
<zukunftsalick> rails 2.3.14
<injekt> odd
<zukunftsalick> http://pastie.org/3131387 stack trace
sendnoflowers [sendnoflowers!~sendnoflo@213.160.145.74] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
<injekt> zukunftsalick: ah, I try and avoid rake 0.9.* as I've had nothing but issues, so I'm sticking to 0.8.7. I'm not saying that's the issue, but it's possible
scampbell [scampbell!~scampbell@c-98-224-240-62.hsd1.mi.comcast.net] has joined #ruby-lang
<injekt> I'm not sure exactly what the issue is, you could post it on the rubygems issue tracker, though
<zukunftsalick> i get the same issue using rake 0.8.3
<injekt> ow
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby-lang
virunga [virunga!~virunga@151.64.31.162] has joined #ruby-lang
<zukunftsalick> I see there's a fix in place for something involving SyckDefaultKey with rubygems (http://pastie.org/3131445). Maybe the fix is causing another problem.. we don't know
<zzak> you have to downgrade gems
<zzak> to 1.3.7 or something
niklasb [niklasb!~codeslay0@p5B310A81.dip0.t-ipconnect.de] has joined #ruby-lang
rindolf [rindolf!~shlomif@bzq-79-177-23-252.red.bezeqint.net] has joined #ruby-lang
tychobrailleur [tychobrailleur!~sebastien@176.61.72.130] has joined #ruby-lang
beiter [beiter!~beiter@manz-590ee17e.pool.mediaWays.net] has joined #ruby-lang
dfr|mac_ [dfr|mac_!dfr|work@nat/google/x-bmyroebnicevmiui] has joined #ruby-lang
leonL [leonL!~leonl@CPE0024a5b652a3-CM000f21205d86.cpe.net.cable.rogers.com] has joined #ruby-lang
jbwiv [jbwiv!~wellsj@world.timcogso.com] has joined #ruby-lang
crankharder [crankharder!~crankhard@ip68-100-194-214.dc.dc.cox.net] has joined #ruby-lang
spectra [spectra!~spectra@debian/developer/spectra] has joined #ruby-lang
blowmage [blowmage!~blowmage@humanecode.new.xen.prgmr.com] has joined #ruby-lang
yellow5 [yellow5!~yellow5@levicole.xen.prgmr.com] has joined #ruby-lang
freedrull [freedrull!~freedrull@freedrull.xen.prgmr.com] has joined #ruby-lang
enebo [enebo!~enebo@97-127-70-138.mpls.qwest.net] has joined #ruby-lang
RickHull [RickHull!~rhull@209.119.14.25] has joined #ruby-lang
shevy [shevy!~shevy@93-82-138-164.adsl.highway.telekom.at] has joined #ruby-lang
robotmay [robotmay!~robotmay@31.99.37.219] has joined #ruby-lang
Swimming_Bird [Swimming_Bird!~textual@64.70.114.89] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-78-102-116-237.net.upcbroadband.cz] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
mytrile [mytrile!~mytrile@94.26.28.135] has joined #ruby-lang
stamina [stamina!~stamina@ip5452a9bc.speed.planet.nl] has joined #ruby-lang
cschneid [cschneid!~cschneid@72.1.92.57] has joined #ruby-lang
Manhose [Manhose!~Manhose@bl6-38-193.dsl.telepac.pt] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
sodani [sodani!~cmiso@user-387hpcb.cable.mindspring.com] has joined #ruby-lang
yingfan [yingfan!~nisse@xdsl-213-196-211-188.netcologne.de] has joined #ruby-lang
brahmana [brahmana!7ab2d08f@gateway/web/freenode/ip.122.178.208.143] has joined #ruby-lang
<brahmana> Hi all
<brahmana> I was reading this ruby style guide - https://github.com/bbatsov/ruby-style-guide
<brahmana> And was wondering why it tells not to put () for if conditions?
<brahmana> Is that a common practice in the ruby world? If so what is the rationale? Wouldn't putting parentheis make things clearer?
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
Mchl [Mchl!~Mchl@h1881165560.rev.rootvps.pl] has joined #ruby-lang
<manveru> brahmana: how does that make things clearer?
davehimself [davehimself!~davehimse@c-98-200-201-146.hsd1.tx.comcast.net] has joined #ruby-lang
<brahmana> By grouping the conditions being checked for together as a single unit
<manveru> they are grouped, by being after the if
<brahmana> visually that is..
<shevy> brahmana the banana!
<brahmana> ?!
Marco [Marco!~marco@Marco-2.Kiewit.dartmouth.edu] has joined #ruby-lang
<shevy> brahmana, not all those conventions are really widely used
<brahmana> shevy: yeah.. ultimately it boils down to personal taste I guess
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
<shevy> where is that () part?
<shevy> that readme is long
<brahmana> :)
<brahmana> Search for this string on the page - Don't use parentheses around the condition of an
<shevy> ah
<shevy> well, the thing mostly is
<shevy> hmmmm
<shevy> if (foo > 5)
<shevy> the () isn't that useful to you as programmer
<shevy> consider
<shevy> puts "hi" if 5 > 4
<shevy> and
<shevy> puts "hi" if (5 > 4)
<shevy> dunno if the second part is clearer to you
<brahmana> Well, personally I would prefer the latter, although admittedly () aren't offering anything in terms of the language syntax there
<shevy> to me the first part is terser and almost always I prefer to be as terse as possible
<brahmana> ok
<shevy> I think if you type this 10000 times, your perception may change
<lianj> () doesn't harm though
<brahmana> :)
<shevy> something cool though which I saw on that page
<shevy> class Foo; class << self; attr_accessor :bar
<shevy> Foo.bar = 1
<shevy> didnt see it in this form before actually :)
<brahmana> I guess, the transition from C/C++ will take some time..
<shevy> I didn't do much in C++ but I always loved cout << "foo" << endl, the << is cool and used in ruby too
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
<brahmana> Yeah, << is indeed cool, although I never used that with cout
<shevy> :)
<shevy> ruby is your first "scripting" language? no perl or python?
<brahmana> Javascript
<shevy> ah
<brahmana> I used to work with Mozilla.. so done quite a bit of JS (non-web js)
<shevy> nice
<shevy> "Use class instance variables instead of global variables."
<shevy> hmmm
<shevy> ^^^ is that a good statement lianj ?
<lianj> depends. why not?
<shevy> no, I don't know
<shevy> I really have no opinion as of yet at all :)
<shevy> I think I never used Foo.bla = 'something' yet though, instead of global variables ... but I am using global variables only rarely anyway
<shevy> "Write for Ruby 1.9. Don't use legacy Ruby 1.8 constructs." <-- :(
<shevy> oh
<lianj> didn't you change to 1.9 the last weeks?
<shevy> "Use the new JavaScript literal hash syntax." that one was stolen from javascript?
<shevy> not completely yet!
<shevy> I fixed my yaml issues more or less
<shevy> but I need to fix some wrongful circular requires too
<lianj> bad bad shevy
<manveru> brahmana: you know coffeescript then :)
<brahmana> manveru: Yeah, I have been reading about it..
<brahmana> although haven't used it in any real application
<shevy> if erlang would just have a nicer syntax :(
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
<brahmana> shevy++ on the erlang syntax
<shevy> really??
Weems [Weems!Weems@unaffiliated/weems] has joined #ruby-lang
<RickHull> oops, abandoned. https://github.com/josevalim/elixir
<brahmana> shevy: Yeah, I too wish erlang had a nicer syntax..
<shevy> -export([ping/0, pong/0]).
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
<shevy> receive {Ping, ping} ->
<shevy> hmm
<shevy> I should not complain too much now that ruby also has ->
<shevy> and I think Haskell has too
<shevy> end.
<shevy> ^^^^ oh
<shevy> erlang even has "end" with a "." it seems
<shevy> :)
Austin__ [Austin__!~austin@96.45.197.22] has joined #ruby-lang
<shevy> well, I love the idea of this distributed processing and error handling of Erlang. Even if I may not have understood it, but a resilient system sounds much better than a fragile one to me. Reminds me of biology too
jarrod__ [jarrod__!~jarrod@rrcs-24-153-217-133.sw.biz.rr.com] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-15-43.cable.teksavvy.com] has joined #ruby-lang
frangiz_ [frangiz_!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
erics [erics!~Skif@72.1.92.57] has joined #ruby-lang
kain_ [kain_!~kain@151.64.233.209] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
jmeeuwen [jmeeuwen!~kanarip@white.kolabsys.com] has joined #ruby-lang
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
cylence [cylence!~cylence@64-71-24-18.static.wiline.com] has joined #ruby-lang
mztriz [mztriz!~gailliota@nkugateway.nku.edu] has joined #ruby-lang
robotmay_ [robotmay_!~robotmay@94.30.13.228] has joined #ruby-lang
mark_locklear [mark_locklear!~jlocklear@ab-tech-lan-to-ab-tech-gw.ncren.net] has joined #ruby-lang
uncle_billy [uncle_billy!~Adium@static-224.service.govdelivery.com] has joined #ruby-lang
jmeeuwen [jmeeuwen!~kanarip@white.kolabsys.com] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
<rue> It's inspired by prolog.
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
<shevy> hmm
<shevy> isn't prolog very limited? in that you basically just have some well-defined logic parts? I didn't get into it ... but it always seemed to be a somewhat constrained way to think or solve something
lwhalen [lwhalen!~law@63.116.56.194] has joined #ruby-lang
sendnoflowers [sendnoflowers!~sendnoflo@213.160.145.74] has joined #ruby-lang
<workmad3> shevy: it's declarative rather than procedural... I believe it's still turing complete, but it is a different way of thinking about problems
<jensn> It is turing complete.
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
Manhose [Manhose!~Manhose@bl6-38-193.dsl.telepac.pt] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby-lang
mkscrg [mkscrg!~mkscrg@76-218-100-21.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
butchanton [butchanton!~butchanto@206.169.179.202] has joined #ruby-lang
sepp2k [sepp2k!~sexy@e179239201.adsl.alicedsl.de] has joined #ruby-lang
zmack [zmack!~zmack@86.35.154.158] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
Jake232 [Jake232!~textual@5e0e9888.bb.sky.com] has joined #ruby-lang
mikeric [mikeric!~mike@64.180.47.85] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
Marco [Marco!~marco@Marco-2.Kiewit.dartmouth.edu] has joined #ruby-lang
vmatiyko [vmatiyko!~vmatiyko@178.121.196.169] has joined #ruby-lang
amerine [amerine!~mturner@67.204.184.82] has joined #ruby-lang
<andrewvos> Your moms face is turing complete.
<andrewvos> Wait, sorry I don't even know you.
<shevy> hmm
<shevy> is the brain turing complete?
<andrewvos> I like to get to know someone before I bring out jokes about their moms face.
<shevy> my brain fails to process my question right now
<workmad3> shevy: I'm not sure turing completeness applies to wetware
<shevy> hmm
<workmad3> shevy: and I believe it's an unanswered question as to whether our thinking processes are turing complete or something more
<shevy> ok, I am going to fetch the definition of turing completeness
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
<workmad3> shevy: it's essentially a definition for computability
<shevy> waah
<shevy> [...] "a system of rules is said to be Turing complete if and only if it can be used to simulate any single-taped Turing machine"
<workmad3> if something is computable, it can be expressed in a turing complete language
<shevy> what does that even mean :D
<shevy> hmmmmm
<workmad3> shevy: turing machines are symbolic processors :)
<shevy> I think in theory, everything the brain does should be computable
<shevy> well
<shevy> I dont know what "symbolic processor" means either right now
<workmad3> shevy: that's the unanswered question ;)
<workmad3> shevy: symbolic processor - it manipulates symbols
<shevy> hmmm
<shevy> that's quite trivial!
<workmad3> shevy: specifically, it can move along a tape, read and write symbols to the tape according to the rules
<workmad3> shevy: basically, it's a simple computer
<shevy> yeah
<shevy> hmm
<workmad3> it's one of the great things about computers... the simplest ones are really no more 'powerful' than the really complex ones... just less efficient
<shevy> yeah simple
<shevy> or dumb
<shevy> :)
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
<shevy> I want to see self-aware computers
<workmad3> shevy: define awareness ;)
<shevy> hmmmm
<workmad3> shevy: and on top of that... define self ;)
<shevy> well, I think defining self is easier
<shevy> because that is just a contained element
<workmad3> shevy: you'd think so... but I bet you it's much more complex than you've ever considered ;)
<shevy> you'd basically just need a "self vs. everything else" awareness
<RickHull> def self.awareness; 'hello world'; end
<workmad3> RickHull: heh
<shevy> awareness is harder to define
<shevy> perhaps ... that, given a multitude of different input, definite ... uhm... intelligent output can be percieved
<shevy> somehow this is incomplete :/
<workmad3> shevy: the concept of 'self' is something that has been argued by philosophers for the last few thousand years
<brahmana> now that's "shevy incomplete" language.. !!
<shevy> hmmm
<workmad3> shevy: I actually suspect that awareness is easier to quantify and codify than 'self'
<shevy> brahmana, I really don't know how to define awareness
<workmad3> shevy: after all, we already have things that can be said to be 'aware'... motion sensors, facial recognition, etc..
<shevy> are those soccer-kicking robots "aware"?
<workmad3> shevy: depends on how you define it ;)
<workmad3> shevy: in some sense, you could argue that they are
<shevy> hmm yeah
<shevy> in a very limited system probably
<shevy> like "find the ball, then kick it"
<workmad3> yeah... but it's still a form of awareness
<shevy> yeah
<workmad3> shevy: I'd highly recommend the book 'Godel, Escher, Bach' btw... that's a fantastic discussion and exploration on the whole concept of machine (and actual) consciousness, and all sorts of other things :)
<workmad3> I've g2g now though
<shevy> hmm
<workmad3> no power, and I need to get dinner sorted
<shevy> I always shied away from it, I thought it was very math centric
<shevy> and math scares me
<shevy> :(
<workmad3> shevy: it's quite math concept heavy, but not math heavy
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
<workmad3> if that makes sense... no equations, no formulae that you need to understand really... but it goes into the concepts
<shevy> ok
<lianj> shevy: its more philosophic
<shevy> I will read it then
<workmad3> oh, and formal systems... but formal systems aren't scary... programs are formal systems :)
<workmad3> shevy: the book is well within the grasp of anyone who has learned to program, IMO
<workmad3> at least, the mathy side of it :)
<workmad3> anyway, I'm off for now, later all :)
uncle_billy [uncle_billy!~Adium@static-223.service.govdelivery.com] has joined #ruby-lang
nekid [nekid!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
empity [empity!~user@cpc1-aztw16-0-0-cust938.aztw.cable.virginmedia.com] has joined #ruby-lang
<Defusal> i just thought of a rather cool idea
<Defusal> im gonna make my models auto update dirty attributes on the next eventmachine reactor tick, so i can set any number of attributes and they'll all update at once soon after
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
butchanton [butchanton!~butchanto@64.134.238.129] has joined #ruby-lang
plusk [plusk!~plusk@201-34-211-49.gnace703.dsl.brasiltelecom.net.br] has joined #ruby-lang
elux_ [elux_!~peter@96.45.198.150] has joined #ruby-lang
elux [elux!~peter@96.45.198.150] has joined #ruby-lang
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
<shevy> what is a dirty attribute
robotmay_ [robotmay_!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
Marco [Marco!~marco@Marco-2.Kiewit.dartmouth.edu] has joined #ruby-lang
corsican [corsican!corsican@c-67-161-78-60.hsd1.ca.comcast.net] has joined #ruby-lang
kookwekker [kookwekker!~bla@e145062.upc-e.chello.nl] has joined #ruby-lang
<rue> Weird speak for modified state
havenn [havenn!~skipper@pool-71-189-126-188.lsanca.fios.verizon.net] has joined #ruby-lang
<freedrull> does running a single shoulda test with minitest work? tried doing -n /blahblah/, doesn't work, runs all the tests.
jmeeuwen [jmeeuwen!~kanarip@white.kolabsys.com] has joined #ruby-lang
boxmo [boxmo!~box@186-210-022-004.xd-dynamic.ctbcnetsuper.com.br] has joined #ruby-lang
<rue> õ_o
sodani [sodani!~cmiso@user-387hpcb.cable.mindspring.com] has quit [#ruby-lang]
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
virunga [virunga!~virunga@151.64.31.162] has joined #ruby-lang
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0DF3E.dip0.t-ipconnect.de] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
<freedrull> 0_o
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
Marco [Marco!~marco@pat32.dartmouth-secure.border1-cfw.Dartmouth.EDU] has joined #ruby-lang
artOfWar_ [artOfWar_!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
Marco [Marco!~marco@129.170.237.186] has joined #ruby-lang
butchanton [butchanton!~butchanto@64.134.238.129] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.230.152] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-51-14.washdc.btas.verizon.net] has joined #ruby-lang
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby-lang
havenn [havenn!~skipper@pool-71-189-126-188.lsanca.fios.verizon.net] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
vmatiyko [vmatiyko!~vmatiyko@178.121.196.169] has quit [#ruby-lang]
<crankharder> is there a better way to select certain key/vals from a hash than this
<crankharder> e.attributes.select{|k,v| ["foo", "bar"].include?(k)}
<Harzilein> hmm. i noticed dragonfly has a funny frontend to creating instances, as in Dragonfly::App[:instancename]
<Harzilein> are there other apis that do that? is there a rationale to it?
<lianj> crankharder: maybe .values_at('foo','var')
<troubleman> Hey!
<troubleman> can ruby scripts have like a text-based GUI
<troubleman> im not sure of the name
<burgestrand> CLI interface?
mikeric [mikeric!~mike@96.49.104.11] has joined #ruby-lang
<burgestrand> Oh, no.
<troubleman> so that you can input stuff into say
<burgestrand> I think I know what you mean.
<troubleman> Name: <input>
<troubleman> etc.
<troubleman> and then press the down key to select either [Save] [Next]
mytrile [mytrile!~mitko@77.70.29.148] has joined #ruby-lang
<RickHull> troubleman: are you familiar with curses/ncurses?
<troubleman> RickHull: not really
<burgestrand> There’s ncurses-ruby but I haven’t used it myself.
<RickHull> troubleman: do you mean something like ncurses?
<troubleman> thanks a lot man :-)
<troubleman> yes i think that's it!
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
desireco [desireco!~textual@12.34.4.33] has joined #ruby-lang
<crankharder> lianj: that just returns the values
mytrile [mytrile!~mitko@77.70.29.148] has joined #ruby-lang
casey [casey!~casey@cpe-67-242-219-113.rochester.res.rr.com] has joined #ruby-lang
<lianj> crankharder: yea, not what you want?
<burgestrand> I think he wants the keys as well.
<crankharder> {:a => 1, :b => 2}.asdf(:a, :c) => {:a => 1}
<crankharder> {:a => 1, :b => 2}.asdf([:a, :c]) => {:a => 1}
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
havenn [havenn!~skipper@pool-71-189-126-188.lsanca.fios.verizon.net] has joined #ruby-lang
<burgestrand> crankharder: none in the stdlib that I know of, activesupport has two methods for it though where you can grab inspiration: http://goo.gl/HmzfZ
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
<crankharder> fun, ty
<samuelkadolph> There is Hash#values_at
butchanton [butchanton!~butchanto@vpn-sanfran.exacttarget.com] has joined #ruby-lang
<samuelkadolph> Which returns an array of the values and not the keys
<burgestrand> samuelkadolph: already been suggested, not what it wants :)
<crankharder> slice is what i want
<crankharder> thanx :)
<lianj> i would go for the select and include then :D
<burgestrand> select/include iterates over all the unwanted keys as well, a bit unnecessary :)
erics [erics!~Skif@72.1.92.57] has joined #ruby-lang
<lianj> burgestrand: true, big whoop in most cases
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
corsican [corsican!~corsican@50-79-33-41-static.hfc.comcastbusiness.net] has joined #ruby-lang
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby-lang
<workmad3> shevy: ordered GEB yet? :)
Manhose [Manhose!~Manhose@bl6-38-193.dsl.telepac.pt] has joined #ruby-lang
corsican [corsican!~corsican@50-79-33-46-static.hfc.comcastbusiness.net] has joined #ruby-lang
casey [casey!~casey@cpe-67-242-219-113.rochester.res.rr.com] has quit [#ruby-lang]
<muzone> What y'all think of this idea? https://gist.github.com/1566053 - To make batch editing of ID3 tags in large music collections a breeze.
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
<Mon_Ouie> As a user, I don't care about messages like "Status: converting to ID3v2..." (though they can be useful for debugging)
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
SpitfireWP [SpitfireWP!~spitfire@wikipedia/spitfire] has joined #ruby-lang
<rue> Mon_Ouie: Cool, that's almost in Cucumber format
<muzone> Mon_Ouie: if the tracks only have id3v1 tags, i think the script oughta let the user know that its converting them to id3v2 and deleting the existing id3v1
<rue> “As a user, I could give a flying fuck…”
<lianj> ^^
<workmad3> muzone: make it a verbose option
<workmad3> muzone: and follow unix principles... the only output from your script in non-verbose mode should be important, not just possibly interesting
<muzone> great
<muzone> thanks yall
stamina [stamina!~stamina@ip5452a9bc.speed.planet.nl] has joined #ruby-lang
corsican [corsican!~corsican@50-79-33-41-static.hfc.comcastbusiness.net] has joined #ruby-lang
leonL [leonL!~leonl@CPE0024a5b652a3-CM000f21205d86.cpe.net.cable.rogers.com] has joined #ruby-lang
<workmad3> muzone: additionally, I'd probably go for 'Warning: maximum value for $name exceeded. Value was probably truncated', but that's just me being annoying about language :)
indeterminate [indeterminate!~sei@user-3c2h3m6.cable.mindspring.com] has joined #ruby-lang
<workmad3> *maximum length for $name exceeded
<muzone> :D
y3llow_ [y3llow_!~y3llow@114-36-226-184.dynamic.hinet.net] has joined #ruby-lang
s0ber_ [s0ber_!~s0ber@114-36-226-184.dynamic.hinet.net] has joined #ruby-lang
<workmad3> muzone: as an additional feature... it would probably be really useful if you could generate a skeleton for the file as a starting point... one that contains all the filenames and empty fields for all the existing files ;)
benanne [benanne!~rijdier@ip-83-134-146-140.dsl.scarlet.be] has joined #ruby-lang
<muzone> workmad3: if i understood you correctly, i think that's what the folder tags are meant to do
<muzone> like batch edit all the tags the album has in common first, then dealing with the individual ones after that
y3llow [y3llow!~y3llow@114-36-226-184.dynamic.hinet.net] has joined #ruby-lang
<workmad3> muzone: your concept is that you have a file with folder tags and file tags... I'm suggesting that your tool should also be able to create that file from a set of MP3 files as a starting point for a new user
arthurlockhart [arthurlockhart!~cinch@60-242-128-8.static.tpgi.com.au] has joined #ruby-lang
<workmad3> muzone: in addition to being able to take that file and apply it to the MP3 files ;)
havenn [havenn!~skipper@pool-71-189-126-188.lsanca.fios.verizon.net] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-226-184.dynamic.hinet.net] has joined #ruby-lang
<muzone> wait uhm.. i havent been getting much sleep lately. my concept is to go into a folder and start editing the mp3 files right?
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
<muzone> it should take the relevant tags from the first file and apply it (once you select Save) to all the rest
<muzone> where its assumed each folder in your CWD is an album
<muzone> im not sure what you mean by it being able to create a file from a set of mp3 files?
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
<workmad3> muzone: ah... I figured you were meaning you were creating a tool that would take an input file of your described format and apply it to the MP3 files in a directory containing lots of MP3s
y3llow [y3llow!~y3llow@114-36-226-184.dynamic.hinet.net] has joined #ruby-lang
<workmad3> muzone: not one that would just present you with a pre-populated editor on an album by album basis :)
<workmad3> muzone: at which point, I was thinking that something to get the initial file would be good
<muzone> ah, yeah now i get you :)
<muzone> nah thats not really the case
<muzone> pretty much just wanna clean up the id3 tags in http://home.no/mritz/jazz_soul_funk.txt really
<workmad3> muzone: it isn't really batch editing then IMO ;)
<workmad3> muzone: just sequential editing... very similar to what you can get through a GUI in something like iTunes
<muzone> hmmm
RomD [RomD!~Roman@nrbg-4dbe2cb5.pool.mediaWays.net] has joined #ruby-lang
<muzone> cool
<muzone> isn't it batch editing when you can set a common set of album tags and apply them to all the files in a folder?
<workmad3> muzone: hmm... maybe... but again, you can do that in the GUI apps I've seen
<workmad3> muzone: just select all the mp3s that you want to have a common set of tags and edit the tags... applies it to all of them (or at least it did last time I tried that in iTunes)
<muzone> true
<muzone> not a big fan of GUIs though to be honest!
<workmad3> muzone: neither am I... but you're just creating a text GUI for this process rather than a CLI app ;)
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
<muzone> was hoping that would be more convenient though
<workmad3> muzone: and if I was batch editing like that, I'd prefer to be able to do my editing in something like vim and simply apply that file to my mp3s
<workmad3> muzone: if you'd find it more convenient, go for it, just pointing out how I interpreted your idea initially and why I'd prefer something that was more 'chainable' rather than GUI (even text GUI) driven
<muzone> but then you'd have to navigate through "Artist: " to get to the point where you actually write the artist name, and the same for all the other fields, which would be more work than necessary
<muzone> with ncurses it'd be just arrow down, write the input, arrow down etc.
<workmad3> muzone: I can grep through a file in vim... if I had a massive directory structure with your GUI-esque tool, I'd need to arrow down, type, arrow down a thousand times, type...
<workmad3> muzone: and that's not even getting into potentially writing a script that generates the file for me based off a load of smaller files, or programmatically from the file name itself (or hell, throwing the file at something like shazam to identify the track, pulling some data out the response and applying it to the file)
<rue> By the power of software!
havenn [havenn!~skipper@pool-108-0-200-241.lsanca.fios.verizon.net] has joined #ruby-lang
<workmad3> muzone: all of which can be added much more easily to a tool that takes a text input with the entire batch to process, than it can to something that sequentially presents some interface and expects a user to type ;)
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
<workmad3> muzone: not that it matters... I wouldn't use an id3 tag editor... I don't care enough about the tags on my mp3s, and I get most of my music through spotify nowadays :)
Manhose [Manhose!~Manhose@bl6-38-193.dsl.telepac.pt] has joined #ruby-lang
<muzone> thanks for your input man :D
irk3z [irk3z!~irek@78.47.187.53] has joined #ruby-lang
<muzone> surely great to get other perspective on things!
<workmad3> muzone: no probs :)
<muzone> but i still dont see how using vim would be any easier than just using the arrow keys?
<workmad3> muzone: because you can pattern search down to the line you want using a few keystrokes, then start editing at the end of that line with a single key-press
<muzone> you'd still have to navigate horizontally to the area where you're suppose to input, then vertically to the next field for its input - rather than just navigating vertically (as ncurses would know whats an input field and what's a descriptor)
<workmad3> muzone: all without having to move your fingers off the home row for touch typing
postmodern [postmodern!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
<rue> workmad3: Not if you program Vim bindings to the UI!
<workmad3> rue: true... but then you cut out the emacs crowd :P
<muzone> cool
<muzone> anyway though this is not intended for a directory with thousands of different mp3s
<muzone> the idea of using shazam is really interesting
<muzone> although, in my case, we're talking about rare obscure albums from countries most people didn't even know existed
cconstantine [cconstantine!~Adium@173.247.200.5] has joined #ruby-lang
<rue> workmad3: Sure, but they have to move fingers all over the place anyway
<muzone> plus it would require the user has extensive vim knowledge
<muzone> i always try to make my ideas fit even my grandma (R.I.P.)
<workmad3> muzone: your grandma knew what ID3 tags were and why she'd want to edit them?
<muzone> making things as simple as possible is also a great strategy, should i get hit by a car and suffer amnesia
<workmad3> muzone: and would consider a console app for them?
<muzone> hehe
<muzone> you know.. rhetorically speaking
<workmad3> muzone: yeah... I prefer to aim at my target audience ;)
<workmad3> muzone: if I'm considering a unix or linux console app, that means make it fit in there... which generally means make it something you can pipe to
<muzone> good point
<muzone> all the more power to the people i guess
<muzone> i just chose console to avoid having to spend days if not weeks designing a proper GUI
<workmad3> muzone: another reason to have a file-based tool... then someone else could design a GUI that spits out an appropriate file and runs your tool ;)
havenn [havenn!~skipper@pool-108-0-200-241.lsanca.fios.verizon.net] has joined #ruby-lang
<cconstantine> I'm trying to write a method that is called from erb with a block, and I want to either wrap or supress the value from the block that gets put in the rendered string
crankharder [crankharder!~crankhard@ip68-100-194-214.dc.dc.cox.net] has joined #ruby-lang
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
<rue> cconstantine: Maybe you should have a different method altogether?
autogatto [autogatto!~autogatto@host95-51-dynamic.11-87-r.retail.telecomitalia.it] has joined #ruby-lang
<cconstantine> I'm making a different method
autogatto [autogatto!~autogatto@host95-51-dynamic.11-87-r.retail.telecomitalia.it] has quit [#ruby-lang]
<cconstantine> rue: if there is ' <% method_1 do %> somebody <% end %> ' in the template string I want to either completely supress 'somebody' from being in the rendered string or wrap it in some way. method_1 is getting called, and the return value from yield is 'somebody' but I can't seem to modify what is put in the rendered string
zmack [zmack!~zmack@188.26.128.139] has joined #ruby-lang
<cconstantine> does that make sense?
<rue> Isn't it %= to insert text?
<drbrain> rue: it's raw text
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
<cconstantine> if I do <%= method_1 …. %> asdf <% end %> I get a syntax error
<drbrain> cconstantine: don't yield in method_1
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
<cconstantine> if I don't yield, the body doesn't go in the rendered string, but nothing does
<cconstantine> and I do want that string, I just don't necessarily want it in the rendered string
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@cblmdm24-53-178-92.buckeyecom.net] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
<cconstantine> thanks all, why is it that I need to ask the question in irc before I can meaningly google something?
<cconstantine> s/meaningly/meaningfully
<RickHull> rubber ducking?
Marco [Marco!~marco@129.170.237.186] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
<rue> Oh, I see how that works
<rue> Ew
<cconstantine> RickHull: yeah
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
Austin__ [Austin__!~austin@96.45.197.22] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-stvmojfilwzfrxql] has joined #ruby-lang
<RickHull> Rubber duckie, why won't it run? Can you help answer my question? Rubber duckie, an infinite source of clues...
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
outoftime [outoftime!~mat@50.57.10.189] has joined #ruby-lang
Austin__1 [Austin__1!~austin@96.45.197.22] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@cblmdm24-53-178-92.buckeyecom.net] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@202.146.7.239] has joined #ruby-lang
Guest68485 [Guest68485!~davidw@adsl-ull-188-127.51-151.net24.it] has joined #ruby-lang
<RickHull> corundum: rubber ducking?
<corundum> rubber ducking is http://c2.com/cgi/wiki?RubberDucking
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
RickHull [RickHull!~rhull@pdpc/supporter/active/rickhull] has joined #ruby-lang
ttilley [ttilley!~ttilley@unaffiliated/lv] has joined #ruby-lang
<imperator> rubber duck typing?
<RickHull> yep, ask the duck
<rue> Rubber duck punching
<imperator> punch duck love
<RickHull> dip duck dodge dive and duck
savage- [savage-!~savage-@209.118.197.220] has joined #ruby-lang
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
davidw [davidw!~davidw@apache/committer/davidw] has joined #ruby-lang
<zenspider> headius: sanity check? https://github.com/rubygems/rubygems/pull/247
<headius> yeah, that seemed like the least-invasive fix, and it works
cconstantine1 [cconstantine1!~Adium@173.247.200.5] has joined #ruby-lang
<zenspider> headius: thanks
<headius> zenspider: I didn't make a pull request, but this might also warrant fixing on the 1.8 line: https://github.com/jruby/rubygems/commit/4d6fa099075d4fdc466849002f319c5dcd78d9a3
duckinator [duckinator!nick@botters/staff/duckinator] has quit ["Leaving"]
<headius> that method hits YAML stuff but doesn't call load_yaml
<headius> so various things break
<zenspider> kk
<zenspider> headius: done and pushed. I love the hub wrapper
<zenspider> kinda sorta makes git kinda sorta usable
<headius> excellent, thanks...two fewer patches to maintain in our fork
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
drbrain_ [drbrain_!~drbrain@drbrain-1-pt.tunnel.tserv14.sea1.ipv6.he.net] has joined #ruby-lang
dkannan [dkannan!u480@gateway/web/irccloud.com/x-qqiikmymomwcyqzt] has joined #ruby-lang
Skif [Skif!~Skif@72.1.92.57] has joined #ruby-lang
leonL [leonL!~leonl@CPE0024a5b652a3-CM000f21205d86.cpe.net.cable.rogers.com] has joined #ruby-lang
Newbs [Newbs!~textual@host-78-147-55-166.as13285.net] has joined #ruby-lang
<shevy> hmm hub wrapper?
cconstantine [cconstantine!~Adium@173.247.200.5] has joined #ruby-lang
plusk [plusk!~plusk@201-34-211-49.gnace703.dsl.brasiltelecom.net.br] has joined #ruby-lang
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-ieadhrsvpjowlffp] has joined #ruby-lang
mikeric [mikeric!~mike@96.53.33.22] has joined #ruby-lang
solars [solars!~solars@194.208.132.118] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@ppp121-44-64-47.lns20.syd6.internode.on.net] has joined #ruby-lang
jaeckel [jaeckel!~jaeckel@unaffiliated/jaeckel] has joined #ruby-lang
<jaeckel> lo
cored [cored!~homer@201.229.129.192] has joined #ruby-lang
cored [cored!~homer@unaffiliated/cored] has joined #ruby-lang
<jaeckel> are there any known defects to String.to_i? I want to convert a string into an integer and the doc says that if it's a string it's converted to 0, but here it converts to 1 :-)
<yxhuvud> then there is an integer in the string
<jaeckel> thought also, but no
<drbrain> jaeckel: I haven't seen any bugs reported on it
<shevy> jaeckel what is your string
<shevy> "dirty".to_i # => 0
Guest24963 [Guest24963!~Grant@c-24-18-72-83.hsd1.wa.comcast.net] has joined #ruby-lang
<drbrain> jaeckel: how did you create _v1 and _v2 ?
<drbrain> I'm betting _v1.equal? _v2 returns true
<jaeckel> _v1 = _v2 = []
<drbrain> yup
<drbrain> they're the same array
<jaeckel> oh
<jaeckel> ok
<drbrain> _v1, _v2 = [], []
br1an [br1an!u440@gateway/web/irccloud.com/x-ffraxwjpfbhlgpcc] has joined #ruby-lang
cesario [cesario!u2444@gateway/web/irccloud.com/x-jysiudycgfpnusrh] has joined #ruby-lang
<drbrain> or place them on separate lines
<jaeckel> awesome
<drbrain> but… give them better names than _v1 and _v2
<shevy> drbrain has remote ESP debugging powers
<jaeckel> thanks alot
<drbrain> you'll never remember what that's for when you look at this again next week
<jaeckel> they're only there for debugging
<jaeckel> aren't used afterwards
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-wvuylvpoempuwmwu] has joined #ruby-lang
timbleck [timbleck!u3835@gateway/web/irccloud.com/x-urcnzszbuhhehssl] has joined #ruby-lang
<jaeckel> and as v1 and v2 are version strings that get compared you could even remember :D
<shevy> _ is my favourite variable
dkannan [dkannan!u480@gateway/web/irccloud.com/x-ovsctmqvqhbcbhsn] has joined #ruby-lang
charper [charper!u1691@gateway/web/irccloud.com/x-ugdwphsqcnyrbgxf] has joined #ruby-lang
simon_weber [simon_weber!u4119@gateway/web/irccloud.com/x-iipgzuftmcdoawdy] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-216-221-39-59.aei.ca] has joined #ruby-lang
agib [agib!u781@gateway/web/irccloud.com/x-dsiwnmnavwvpmfbi] has joined #ruby-lang
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-cithicobwexsdeot] has joined #ruby-lang
jaeckel [jaeckel!~jaeckel@unaffiliated/jaeckel] has quit [#ruby-lang]
slyphon_ [slyphon_!~weechat@unaffiliated/slyphon] has joined #ruby-lang
mccraig [mccraig!u574@gateway/web/irccloud.com/x-zhjauhduuyhvsltt] has joined #ruby-lang
twittard [twittard!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-fldooxwskamnqyzr] has joined #ruby-lang
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-ckhghfjvdcexfpgw] has joined #ruby-lang
<twittard> Hi, I know that using Enumerable is the ruby way... But I'm curious, is there a short-form syntax for a for loops? IE, "puts foo for foo in baz"?
<twittard> I don't intend to use it in actual code. I was simply futzing around and am curious about it.
kitallis-cloud [kitallis-cloud!u358@gateway/web/irccloud.com/x-iejiiuzussnntvbg] has joined #ruby-lang
pvh [pvh!u717@gateway/web/irccloud.com/x-fqxxodsrlkrerpyb] has joined #ruby-lang
br1an [br1an!u440@gateway/web/irccloud.com/x-esnfxleepoajjypo] has joined #ruby-lang
<drbrain> twittard: yeah, there's for x in collection do … end
<drbrain> I think the do is optional
<twittard> drbrain: Well, yeah -- I was looking for a 1-liner version though.
<zenspider> twittard p baz
<twittard> WHich doesn't seem to exist. My attention span for this topic is now exhausted.
<drbrain> collection.each do { |item| … }
RomD` [RomD`!~Roman@nrbg-4d070620.pool.mediaWays.net] has joined #ruby-lang
<twittard> Yeah, my ruby skills are quite solid :). I just haven't written a for loop in years, in Ruby, and was curious about what forms it exists in.
<twittard> Seems like it's just your basic "for x in y ... end"
<zenspider> yup
<zenspider> if you're looking for list comprehensions, you'll need to go to python or something else. they won't be added to ruby anytime soon
<zenspider> (which is a good thing imhfo)
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
spuk [spuk!~spuk@187.65.176.82] has joined #ruby-lang
Jake232 [Jake232!~textual@5e0eba40.bb.sky.com] has joined #ruby-lang
tylergillies [tylergillies!u3033@gateway/web/irccloud.com/x-eiobmrvbztcqcrpe] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
mrchrisadams [mrchrisadams!u1367@gateway/web/irccloud.com/x-erktgmmmcxrramzm] has joined #ruby-lang
Swimming_Bird [Swimming_Bird!~textual@64.70.114.88] has joined #ruby-lang
akahn [akahn!u2243@gateway/web/irccloud.com/x-qjtyueyrbilqppee] has joined #ruby-lang
bryanl [bryanl!u1690@gateway/web/irccloud.com/x-unfmscghicotpblm] has joined #ruby-lang
cldwalker [cldwalker!u2984@gateway/web/irccloud.com/x-gbrgiumrjixelivv] has joined #ruby-lang
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-thjnuvxgiixwywzl] has joined #ruby-lang
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-ppzxlakpnycechzv] has joined #ruby-lang
whoops [whoops!u549@gateway/web/irccloud.com/x-xotcelflruaurvyi] has joined #ruby-lang
dkannan [dkannan!u480@gateway/web/irccloud.com/x-yupacyeomnheugvo] has joined #ruby-lang
abuiles [abuiles!u1641@gateway/web/irccloud.com/x-gbmumqocerqjhwfy] has joined #ruby-lang