Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
<nofxx> is there some clever way to add a separator to the beginning of the join? scenario: EXTRA_LIBS.join(" -I") on a Rakefile, if it's empty I can't have a '-I' lying around...
<nofxx> nah... gonna rewrite it better
<wallerdev> it won't add it if the array is empty
<wallerdev> oh
<wallerdev> i see what yours saying
<nofxx> wallerdev, I know but I need one prefixed
<nofxx> heh
<wallerdev> i would just use map { add to the beginning }.join
wimplash [wimplash!~Adium@63.131.95.235] has joined #ruby-lang
<drbrain> compact.join
<wallerdev> i don't think he's talking about nil entries
<drbrain> better: "-I #{EXTRA_LIBS.compact.join File::PATH_SEPARATOR}"
<nofxx> wallerdev, yea, did that a line before, better to read too
<nofxx> thanks
wimplash [wimplash!~Adium@63.131.95.235] has quit [#ruby-lang]
<drbrain> nofxx: if you're building an extension, you know about rake-compiler… right?
ilyam [ilyam!~ilyam@eng.nat.mtv.ooyala.com] has joined #ruby-lang
<wallerdev> drbrain: is there a platform the path separator doesn't work as / ?
<nofxx> drbrain, yup! no.. it's a makefile substitute for AVR/arduino coding
<drbrain> I don't know of a system where the path separator is /
<raggi> wallerdev: PATH_SEPARATOR is not / it's : or ; (that's $PATH separator, not directory separator)
<nofxx> or substitutes... I'm working on now https://github.com/nofxx/avr_scaffold
<drbrain> on unity it's : and on windows it's ;
<wallerdev> ohh my bad
<drbrain> unity => unixy
<wallerdev> was thinking directories not $PATH haha
<drbrain> although, if you're using the GCC toolchain it may always be ':'
<nofxx> drbrain, you just clone and use... never need the damn arduino IDE ... or arduino for that matter...
Gekz [Gekz!~gekz@159.253.5.25] has joined #ruby-lang
Gekz [Gekz!~gekz@unaffiliated/gekz] has joined #ruby-lang
<nofxx> $3 atmega328 + $.20 xtal + $.02 2 caps = arduino
dreinull [dreinull!~dreieins@217.18.70.225] has joined #ruby-lang
<drbrain> nofxx: nice
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has joined #ruby-lang
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has quit [#ruby-lang]
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby-lang
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has joined #ruby-lang
livinded [livinded!~lolwut@pool-108-23-242-132.lsanca.fios.verizon.net] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby-lang
cyri__ [cyri__!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby-lang
Oloryn_lt1 [Oloryn_lt1!~Oloryn@strider-laptop.broker.freenet6.net] has joined #ruby-lang
dreinull [dreinull!~dreieins@217.18.70.225] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@2001:268:306:1:225:bcff:fedc:e1fe] has joined #ruby-lang
zenspider [zenspider!~user@envy.zenspider.com] has joined #ruby-lang
<zenspider> graph 2.4.0 released
queequeg1 [queequeg1!~chatzilla@c-71-202-152-67.hsd1.ca.comcast.net] has joined #ruby-lang
ixxvil [ixxvil!cube@gateway/shell/blinkenshell.org/x-aakwttojyetvmrjl] has joined #ruby-lang
ltd [ltd!~z@zx.io] has joined #ruby-lang
ixxvil [ixxvil!cube@gateway/shell/blinkenshell.org/x-aakwttojyetvmrjl] has quit [#ruby-lang]
jredville [jredville!~james.dev@c-66-235-23-17.sea.wa.customer.broadstripe.net] has joined #ruby-lang
KindOne [KindOne!~KindOne@colchester-lug/silly-fool/donut] has joined #ruby-lang
KindOne [KindOne!~KindOne@colchester-lug/silly-fool/donut] has quit [#ruby-lang]
<wallerdev> zenspider: cool, good job :)
mkscrg [mkscrg!~mkscrg@ool-18e4f9d6.dyn.optonline.net] has joined #ruby-lang
ahs3- [ahs3-!~ahs3-@adsl-065-005-193-158.sip.rdu.bellsouth.net] has joined #ruby-lang
Sailias [Sailias!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
jmcphers [jmcphers!jmcphers@nat/nokia/x-profbtkqowdfqfxb] has joined #ruby-lang
draft13 [draft13!~draft13@rrcs-71-43-152-50.se.biz.rr.com] has joined #ruby-lang
mkscrg [mkscrg!~mkscrg@ool-18e4f9d6.dyn.optonline.net] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
savage- [savage-!~savage-@c-67-180-11-89.hsd1.ca.comcast.net] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-83-116.ssp.dialog.net.pl] has joined #ruby-lang
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby-lang
ricardovaleriano [ricardovaleriano!~ricardova@186.220.217.229] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@c-98-203-41-91.hsd1.fl.comcast.net] has joined #ruby-lang
sora_h [sora_h!~sora_h@mayfield.privs.net] has joined #ruby-lang
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby-lang
context [context!context@november.xen.prgmr.com] has quit [#ruby-lang]
bglusman [bglusman!~bglusman@c-71-224-192-35.hsd1.pa.comcast.net] has joined #ruby-lang
artOfWar [artOfWar!~artofwar@108-205-201-30.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
slyphon [slyphon!~weechat@pool-96-224-232-158.nycmny.fios.verizon.net] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
acts_as [acts_as!~acts_as@cpe-76-169-74-39.socal.res.rr.com] has joined #ruby-lang
<acts_as> Is anyone here using Ruby 1.9.3 with OS X Lion?
<acts_as> Can you go into irb and do this: require "digest/sha1"
<acts_as> and let me know if it works for you?
<erikh> yeah sec
<erikh> works here
<cola_zero> it works here, too.
agib [agib!u781@gateway/web/irccloud.com/x-xriijvbgdvvsvuya] has joined #ruby-lang
cesario [cesario!u2444@gateway/web/irccloud.com/x-ukzpboshemyfkimc] has joined #ruby-lang
dfr|mac_ [dfr|mac_!dfr|work@nat/google/x-afitecznyrjzzghl] has joined #ruby-lang
simon_weber [simon_weber!u4119@gateway/web/irccloud.com/x-yjjvthgnfmvmlell] has joined #ruby-lang
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-pdwibkanslaqqhhj] has joined #ruby-lang
charper [charper!u1691@gateway/web/irccloud.com/x-jwwsntczbthgvutg] has joined #ruby-lang
mrchrisadams [mrchrisadams!u1367@gateway/web/irccloud.com/x-rantuzwfthninben] has joined #ruby-lang
ricardovaleriano [ricardovaleriano!~ricardova@186.220.217.229] has joined #ruby-lang
cesario [cesario!u2444@gateway/web/irccloud.com/x-hthinmlzgctruagc] has joined #ruby-lang
jbsan_ [jbsan_!~jbsan@host86-147-222-73.range86-147.btcentralplus.com] has joined #ruby-lang
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-eahwscoddcdsvcpz] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
abuiles [abuiles!u1641@gateway/web/irccloud.com/x-unrgelhzskrphnwe] has joined #ruby-lang
dkannan [dkannan!u480@gateway/web/irccloud.com/x-idhaxclrfdcfwhfe] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-22-115.us-west-2.compute.amazonaws.com] has joined #ruby-lang
akahn [akahn!u2243@gateway/web/irccloud.com/x-axjwpzkqnncztymy] has joined #ruby-lang
mccraig [mccraig!u574@gateway/web/irccloud.com/x-xeigtjqgrkqcymty] has joined #ruby-lang
cldwalker [cldwalker!u2984@gateway/web/irccloud.com/x-cnglhyvvkpdmbmwv] has joined #ruby-lang
whoops [whoops!u549@gateway/web/irccloud.com/x-sfjmqmtkpuvsqbjr] has joined #ruby-lang
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-htzfsidmwndkwidm] has joined #ruby-lang
x0F_ [x0F_!~x0F@unaffiliated/x0f] has joined #ruby-lang
rippa [rippa!~splitta@85.158.54.234] has joined #ruby-lang
jxie [jxie!~jxie@li258-230.members.linode.com] has joined #ruby-lang
JosephRuby [JosephRuby!~joseph@46.33.39.172] has joined #ruby-lang
publicvoid [publicvoid!~publicvoi@p5DC15284.dip.t-dialin.net] has joined #ruby-lang
rpowell [rpowell!~rpowell@CPE-124-183-154-59.lns16.ken.bigpond.net.au] has joined #ruby-lang
_inc [_inc!~inc@unaffiliated/-inc/x-0498339] has joined #ruby-lang
<erikh> working on an API for a service manager. perhaps this is a little early, but is it obvious what this does? https://gist.github.com/c2e18fa254e80a45ce1b
<acts_as> erikh / cola_zero: Sorry for the delay. Do you guys have XCode 4 installed?
<erikh> 4.1, yes
<acts_as> I get this: https://gist.github.com/1425048
<acts_as> On both of my computers
<acts_as> I've installed (and uninstalled) OpenSSL
<acts_as> Doesn't seem to matter. Something is righteously fucked up. It's upsetting.
<acts_as> And weird that both of my computers are in this state.
<erikh> are you on 4.1 or 4.2?
<erikh> xcode-wise
<acts_as> It was 4.2, I believe. But I think I ran into this issue on 4.1 too.
<acts_as> I only recently upgraded to 4.2 to do some MacRuby stuff. But I've since uninstalled it entirely.
<acts_as> Doesn't seem to matter -- I still have issues.
<acts_as> Also, after I do that require... When I 'exit' from ruby 1.9.3, I get a seg fault.
<acts_as> It's mind-blowingly stupid.
<acts_as> I use homebrew etc
<erikh> ah
<erikh> I'm using rvm here
<erikh> might have something to do with it as well
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.40] has joined #ruby-lang
<acts_as> rvm here, too.
<acts_as> sigh
<acts_as> oh well
<acts_as> i meant I'm using homebrew so that might be douching stuff up for me
<acts_as> no use for 1.9.3 atm.
<acts_as> so, oh well
AlecTaylor [AlecTaylor!alectaylor@unaffiliated/alectaylor] has joined #ruby-lang
<AlecTaylor> I hear Ruby 1.9.* is catching up to Python...
<bnagy> great, an ad spammer AND a troll
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@117.195.112.174] has joined #ruby-lang
xsdg [xsdg!~xsdg@SIPB-VM-99.MIT.EDU] has joined #ruby-lang
<erikh> acts_as: oh, no, I am using homebrew here too
<bnagy> I found brew to be a bit useless, went back to ports :S
<acts_as> brew is a curated piece of shit
<erikh> yes it is shit with sprinkles
<erikh> but I don't care anymore
<acts_as> if they don't have a need, personally, for your pull request... they'll just sit on it and not give a fuck
<acts_as> and they have a not well explained policy about when a formula is accepted and when it is not.
<acts_as> yeah I fucking hate them
<acts_as> about to go back to ports too
<acts_as> probably will fix my issue, too.
Pip [Pip!~Pip@host-88-156-66-217.spbmts.ru] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
N [N!cb6004d5@gateway/web/freenode/ip.203.96.4.213] has joined #ruby-lang
Pip [Pip!~Pip@host-88-156-66-217.spbmts.ru] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<erikh> there's nothing but this to look at, just trying to work out the initial idea
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
<acts_as> This a Monit / God replacement idea?
<acts_as> It'd be amazing if you come up with something that doesn't blow
Pip [Pip!~Pip@host-88-156-66-217.spbmts.ru] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
<Guest84119> Is there anyone here who would be able to help me with installing ruby with rbenv and ruby-build using ubuntu 11.04?
<nofxx> Writing a script to realtime read/write from serial: Create a thread that infinite loops reading from the port, sleeps 1/100 sec. Main thread waits for input -> while line = STDIN.gets.strip . Is this the correct way? Am I missing something ?
<cola_zero> acts_as: sorry for the delay. I think main problem is llvm. You should check this. https://github.com/kennethreitz/osx-gcc-installer
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
<acts_as> cola_zero: Yeah, llvm is a piece of shit. I uninstalled XCode and installed that, but it's still all kinds of f'd up.
<AlecTaylor> RubyEventMachine hates me
<acts_as> cola_zero: I suspect that because some formula in Homebrew were fubar, and the maintainers are shitheads, I compiled with plain old gcc. Now this cesspool needs to be drained.
<bnagy> nofxx: not sure, you can't use select?
<nofxx> bnagy, select ?
<bnagy> I haven't done serial, but I have done some pipey stuff and sleep(x) seems ugly
<nofxx> bnagy, yea... serial is the example, was thinking of any kind of OP like this... chat app for instance
<nofxx> I mean, architectural question...
<bnagy> architecturally, it sounds like an event loop
jxie [jxie!~jxie@115.197.80.212] has joined #ruby-lang
<erikh> acts_as: that's hte idea
<bnagy> sleep / poll seems ugly and wasteful to me imho
<erikh> obviously it'll be yet to be seen whether or not it blows
<erikh> I'm just working on a non-cumbersome API at this point, we'll see where it goes from there.
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby-lang
<cola_zero> acts_as: ok, I agree with some fomula is not maintain well. but I can't beleve Homebrew is main problem.
yumike [yumike!~yumike@213.154.168.130] has joined #ruby-lang
Guest84119 [Guest84119!cb6004d5@gateway/web/freenode/ip.203.96.4.213] has quit [#ruby-lang]
slyphon_ [slyphon_!~weechat@unaffiliated/slyphon] has joined #ruby-lang
flowerpot [flowerpot!~flower@ec2-50-112-22-115.us-west-2.compute.amazonaws.com] has joined #ruby-lang
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby-lang
spuk [spuk!~spuk@189.6.30.65] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
priteshjain [priteshjain!~priteshja@115.248.175.50] has joined #ruby-lang
Defusal_ [Defusal_!~DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby-lang
Defusal [Defusal!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
Defusal_ [Defusal_!DeFi@dsl-241-21-29.telkomadsl.co.za] has joined #ruby-lang
Defusal_ [Defusal_!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
spuk [spuk!~spuk@189.6.30.65] has joined #ruby-lang
eipipuz [eipipuz!~eipipuz@99-7-168-14.lightspeed.sntcca.sbcglobal.net] has joined #ruby-lang
mark_azevedo [mark_azevedo!~mark_azev@c-67-180-48-38.hsd1.ca.comcast.net] has joined #ruby-lang
fayimora [fayimora!~fayimora@95.175.159.37] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby-lang
amerine [amerine!~mturner@206.205.72.226] has joined #ruby-lang
Jerald [Jerald!~jlabadie@cpe-66-108-113-78.nyc.res.rr.com] has joined #ruby-lang
Jerald [Jerald!~jlabadie@cpe-66-108-113-78.nyc.res.rr.com] has quit [#ruby-lang]
jacky123 [jacky123!~jacky123@95.211.62.203] has joined #ruby-lang
<jacky123> any one knows japanese?
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby-lang
Locke23rus [Locke23rus!~quassel@128-70-1-227.broadband.corbina.ru] has joined #ruby-lang
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-85-82.a212.priv.bahnhof.se] has joined #ruby-lang
yango [yango!~yango@85.48.193.157] has joined #ruby-lang
dnjaramba_ [dnjaramba_!~dnjaramba@41.72.193.86] has joined #ruby-lang
arooni-mobile [arooni-mobile!~arooni-mo@190.197.20.98] has joined #ruby-lang
amerine_ [amerine_!~mturner@206.205.72.226] has joined #ruby-lang
eipipuz [eipipuz!~eipipuz@99-7-168-14.lightspeed.sntcca.sbcglobal.net] has quit [#ruby-lang]
Defusal [Defusal!DeFi@dsl-241-6-211.telkomadsl.co.za] has joined #ruby-lang
Defusal [Defusal!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
Filuren [Filuren!~Filuren@x1-6-e0-46-9a-1f-97-a2.k617.webspeed.dk] has joined #ruby-lang
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby-lang
jredville [jredville!~james.dev@c-66-235-23-17.sea.wa.customer.broadstripe.net] has joined #ruby-lang
publicvoid_ [publicvoid_!~publicvoi@p5DC152A6.dip.t-dialin.net] has joined #ruby-lang
|Vargas| [|Vargas|!~luke@pdpc/supporter/profesional/vargas] has joined #ruby-lang
perryh [perryh!~perryh@unaffiliated/perry753] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
_inc [_inc!~inc@unaffiliated/-inc/x-0498339] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-47-23.washdc.btas.verizon.net] has joined #ruby-lang
jordan` [jordan`!~gromit@2001:660:3302:2826:225:90ff:fe20:d9a8] has joined #ruby-lang
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
thone [thone!~thone@g226034114.adsl.alicedsl.de] has joined #ruby-lang
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has joined #ruby-lang
rpowell [rpowell!~rpowell@CPE-124-184-80-244.lns13.cht.bigpond.net.au] has joined #ruby-lang
jacky123 [jacky123!~jacky123@95.211.62.203] has quit [#ruby-lang]
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.224.153] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby-lang
publicvoid_ [publicvoid_!~publicvoi@p5DC152A6.dip.t-dialin.net] has joined #ruby-lang
fritzek [fritzek!~fritzek@p5DDB7C76.dip.t-dialin.net] has joined #ruby-lang
fritzek [fritzek!~fritzek@p5DDB7C76.dip.t-dialin.net] has joined #ruby-lang
tobiasvl [tobiasvl!~tvl@arrakis.uio.no] has joined #ruby-lang
longtheta [longtheta!u4275@gateway/web/irccloud.com/x-lqemlzizpzbccxbg] has joined #ruby-lang
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby-lang
queequeg1_ [queequeg1_!~chatzilla@c-71-202-152-67.hsd1.ca.comcast.net] has joined #ruby-lang
melter [melter!~Melter@2001:4930:116:0:21c:c0ff:feef:eaf5] has joined #ruby-lang
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
pvh [pvh!u717@gateway/web/irccloud.com/x-xlsseyliqkwjxyxz] has joined #ruby-lang
zmack [zmack!~zmack@78.97.143.6] has joined #ruby-lang
charper [charper!u1691@gateway/web/irccloud.com/x-wvzaxtzueswahnot] has joined #ruby-lang
longtheta [longtheta!u4275@gateway/web/irccloud.com/x-bfftyfgokbzweies] has joined #ruby-lang
simon_weber [simon_weber!u4119@gateway/web/irccloud.com/x-iifrsgaodewojorw] has joined #ruby-lang
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby-lang
ksinkar_ [ksinkar_!~ksinkar@219.64.193.21] has joined #ruby-lang
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-qhpxzwwowaboyfbf] has joined #ruby-lang
rpowell [rpowell!~rpowell@CPE-121-217-139-191.lnse2.cht.bigpond.net.au] has joined #ruby-lang
charper [charper!u1691@gateway/web/irccloud.com/x-qyclprqreaxjeabf] has joined #ruby-lang
akahn [akahn!u2243@gateway/web/irccloud.com/x-vzktngjivjlvkvrr] has joined #ruby-lang
abuiles [abuiles!u1641@gateway/web/irccloud.com/x-sobfwnqrwbpiyizq] has joined #ruby-lang
whoops [whoops!u549@gateway/web/irccloud.com/x-dxvkgbtwayparack] has joined #ruby-lang
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-tdnnbcictvcubtzh] has joined #ruby-lang
mccraig [mccraig!u574@gateway/web/irccloud.com/x-drrycigmjpucnyyk] has joined #ruby-lang
simon_weber [simon_weber!u4119@gateway/web/irccloud.com/x-qfyidyrglpenmebm] has joined #ruby-lang
cesario [cesario!u2444@gateway/web/irccloud.com/x-oeqwzfhrjjjgqbbe] has joined #ruby-lang
pvh [pvh!u717@gateway/web/irccloud.com/x-vaurowimsuxsmogb] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
longtheta [longtheta!u4275@gateway/web/irccloud.com/x-pkkuqkxirlhkozxz] has joined #ruby-lang
ksinkar__ [ksinkar__!~ksinkar@123.201.117.198] has joined #ruby-lang
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-wokazkpwigunygff] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-217-142.dyn.iinet.net.au] has joined #ruby-lang
dkannan [dkannan!u480@gateway/web/irccloud.com/x-bcayifkgqfwlzsuj] has joined #ruby-lang
slaytanic [slaytanic!~slaytanic@200-55-73-253.dsl.prima.net.ar] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
agib [agib!u781@gateway/web/irccloud.com/x-geaxbgwvnipzvrwc] has joined #ruby-lang
cldwalker [cldwalker!u2984@gateway/web/irccloud.com/x-ewpytjouarqkpmjk] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby-lang
havenn [havenn!~skipper@ip-69-33-241-138.lax.megapath.net] has joined #ruby-lang
rpowell [rpowell!~rpowell@CPE-121-217-139-191.lnse2.cht.bigpond.net.au] has joined #ruby-lang
shevy [shevy!~shevy@178-191-62-216.adsl.highway.telekom.at] has joined #ruby-lang
fayimora [fayimora!~fayimora@lt38-201.eecs.qmul.ac.uk] has joined #ruby-lang
mrchrisadams [mrchrisadams!u1367@gateway/web/irccloud.com/x-apmvxfiicbtvhlvc] has joined #ruby-lang
[zaf]-Coral [[zaf]-Coral!~quassel@41-133-59-28.dsl.mweb.co.za] has joined #ruby-lang
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
Oloryn_lt1 [Oloryn_lt1!~Oloryn@strider-laptop.broker.freenet6.net] has joined #ruby-lang
tvl [tvl!~tvl@arrakis.uio.no] has joined #ruby-lang
vish [vish!~suckerpun@93-97-12-107.zone5.bethere.co.uk] has joined #ruby-lang
jensn [jensn!~Jens@ip233-65.wireless.lu.se] has joined #ruby-lang
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby-lang
<andrewvos> I have an app I want to run on heroku, but I need to spawn the fucker with some command line arguments... how do?
<manveru> sweet, i've always wanted to call a method deentropize
Guest9981 [Guest9981!~davidw@host228-251-static.95-94-b.business.telecomitalia.it] has joined #ruby-lang
<bnagy> :<
sinuc [sinuc!~sinuc@unaffiliated/sinuc] has joined #ruby-lang
<bnagy> that is...ugh
<andrewvos> manveru: I've always wanted to be able to fly
<manveru> if you jump from high enough, you might learn it in time
<manveru> wouldn't bet on it though :(
postmodern [postmodern!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
volter [volter!~volker@85-127-135-38.dynamic.xdsl-line.inode.at] has quit ["Konversation terminated!"]
<bnagy> more likely than 'deentropize' being a real word though :D
<manveru> hehe
<manveru> well, then, how shall i call it?
<bnagy> what are you reducing entropy in, btw?
<bnagy> I've looked at some stuff like that for data hiding / antiforensics, it's kind of interesting
<manveru> i have property a and b, if a is nil or '*', use b, if b is nil or '*', use a, if a == b, use a, if neither matches use nil
<manveru> nah, nothing fancy like that :(
<manveru> meh, better show you the code as soon as i've written it
<bnagy> oh, you like weird bugs sometimes, right? This one took up a bit of my time yesterday..
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.45] has joined #ruby-lang
<manveru> hehe
<manveru> jruby bug only?
<bnagy> magic 129 - the 80s called and want their bugs back
<matti> Hi manveru
<bnagy> yeah, works fine on mri
<manveru> just tried it there, yeah
<manveru> gonna take an hour to get jruby-head on this connection
<bnagy> it ends up as a Bignum when you roundtrip it through pack, so obj.eql? fails
<andrewvos> manveru: :)
<manveru> 129 as Bignum??
<bnagy> inorite?
<matti> Hm.
<manveru> wtf is that, a 8bit system?
<matti> Meh. ;/
<bnagy> lol, x64 linux
<manveru> even 8 bit should handle it fine :P
<bnagy> I imagine it's a weirdism in pack wih wides
<manveru> yeah, haven't used w before
<manveru> anyway, you filed the bug?
<bnagy> it's a bunch of approaches I was looking at to packing sets of integers
<bnagy> I did not, no.
<manveru> not sure if rbx uses MRI pack/unpack code
<manveru> jruby doesn't, afaicr
<manveru> speaking of packing
<manveru> you head about JSONH before?
<bnagy> no
<manveru> it compresses homogenous collections in json
<bnagy> I was touched by JSON as a child, now it freaks me out
<manveru> lol
<manveru> well, it compresses arrays of hashes
<manveru> if that sounds better
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
<manveru> [{a: :x}, {a: :y}, {a: :z}] becomes [1, :a, :x, :y, :z]
<bnagy> oic
<manveru> kinda nice, but the ruby code sucked ass, so i rewrote it
<manveru> maybe you can find a faster way
<bnagy> what's it good for?
<manveru> well, i want to synchronize models with the browser
<manveru> so if i send 100 of them, compressing them with JSONH is very beneficial
<bnagy> oic, right, if you have a gajillion forms or something that have the same keys and different values etc
<manveru> right
<manveru> anyway, not gonna help you much with the int packing stuff
<bnagy> I was about to say that I don't have any data that looks like that but actually I think I do
<bnagy> no not for the int stuff
<manveru> rbx does the set thing fine
<manveru> it also unpacks as Fixnum
sora_h [sora_h!~sora_h@mayfield.privs.net] has joined #ruby-lang
<bnagy> http://codepad.org/EmAQB8Xn that's where I got to, but I have faster code that is good as long as thre set maxvals aren't too big
<bnagy> it's crazy memory hungry though
<bnagy> jruby gives me like 20x+ speedup on some of this stuff, I was boggled
<manveru> heh, at that point i'd probably just write it in go
<manveru> then again, i don't even know what a sparse bitmap is useful for
<bnagy> say you want to store a set of a million 32-bit ints
<bnagy> like, serialize it
AlecTaylor [AlecTaylor!~alectaylo@CPE-58-164-16-161.lnse5.ken.bigpond.net.au] has joined #ruby-lang
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-217-142.dyn.iinet.net.au] has joined #ruby-lang
<manveru> hm, BER looks nice
<manveru> but i thought it was more like an encoding than a compression
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
<bnagy> it's a bit of both
<manveru> then again, the two aren't mutually exclusive
<manveru> but that would mean it's possible to go beyond BER, since you only have one type
zmack_ [zmack_!~zmack@78.97.143.6] has joined #ruby-lang
<rue> What about BERT?
<bnagy> I could improve my bitmap encoder / compressor quite a bit, which is the current champ for maxvals that are small enough to build a bitstring of in memory
<bnagy> I couldn't find a current bitvector gem :/
<bnagy> but the sparse matrix thingy performs well overall, and wins egregiously once the maxvals get big
<bnagy> only cause my bitstring is totally naive though
<bnagy> anyway, boring. Gotta go play pool and drink
<manveru> i've written a BERT loader/dumper... it's not suitable for that problem i fear
<manveru> i mean, it's kinda like BER, but if you only need to handle 32bit ints, then why waste the type information bits?
<bnagy> HA I could use flip flop! Like...legitimately!
toretore [toretore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
<bnagy> if I store [sequential_1s,sequential_0s,sequential_1s.....] and pack it
<bnagy> I am so coding that tomorrow
<manveru> :)
<manveru> have fun
<manveru> i still gotta make two gems today :(
Dreamer3 [Dreamer3!~Dreamer3@74-134-34-116.dhcp.insightbb.com] has joined #ruby-lang
<shevy> manveru, what gems?
<manveru> jsonh and pgpass
pieterm [pieterm!~pieterm@cable-212.76.229.116.static.coditel.net] has joined #ruby-lang
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby-lang
ConstantineXVI [ConstantineXVI!~constanti@216-24-48-34.ip.win.net] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
aGiantPanda [aGiantPanda!~xuwen@70-36-146-89.dsl.dynamic.sonic.net] has joined #ruby-lang
aGiantPanda [aGiantPanda!~xuwen@70-36-146-89.dsl.dynamic.sonic.net] has quit [#ruby-lang]
Fractality [Fractality!~bjoern@g225036023.adsl.alicedsl.de] has joined #ruby-lang
davidw [davidw!~davidw@apache/committer/davidw] has joined #ruby-lang
rolfb [rolfb!~rolfb@77.94.232.40] has joined #ruby-lang
gix [gix!~gix@e180023198.adsl.alicedsl.de] has joined #ruby-lang
S3kx [S3kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.42] has joined #ruby-lang
mksm [mksm!~ramorim@li168-21.members.linode.com] has joined #ruby-lang
pabs [pabs!~pabs@ip68-98-175-235.dc.dc.cox.net] has joined #ruby-lang
cyndis [cyndis!cyndis@lakka.kapsi.fi] has joined #ruby-lang
imajes [imajes!~imajes@is.imaj.es] has joined #ruby-lang
gentz [gentz!ilab@ancient.webfoundation.net] has joined #ruby-lang
robgough [robgough!~robgough@li184-32.members.linode.com] has joined #ruby-lang
DefV [DefV!~Jan@node-hahmcop4no4a1ruk1w.ipv6.as30961.net] has joined #ruby-lang
sinuc [sinuc!~sinuc@irssi.sinuc.boxnet.eu] has joined #ruby-lang
sinuc [sinuc!~sinuc@unaffiliated/sinuc] has joined #ruby-lang
alexeyKolosov [alexeyKolosov!~quassel@ns1.zbku.ru] has joined #ruby-lang
slaytanic [slaytanic!~slaytanic@200-55-73-253.dsl.prima.net.ar] has joined #ruby-lang
QaDeS [QaDeS!~mklaus@frbg-4d029576.pool.mediaWays.net] has joined #ruby-lang
tris [tris!tristan@2001:1868:a00a::4] has joined #ruby-lang
Wardrop [Wardrop!~tomwardro@86.46.96.58.static.exetel.com.au] has joined #ruby-lang
SpitfireWP [SpitfireWP!spitfire@wikipedia/spitfire] has joined #ruby-lang
<Wardrop> Does anyone know of a way to print from code using ERB. The <%= %> syntax is all well and good, but sometimes, especially when using a ternary operator, having an inline print method would be very convenient. E.g. <% (self.isValid) ? put 'good' : put 'bad' %> - replace #put with any other short method name.
<Wardrop> Backbone.js copies ERB with it's templating, but it supports a print method in addition to the <%= %> syntax, so you can do exactly as I demonstrated above.
Ttech [Ttech!ttech@botters/staff/ttech] has joined #ruby-lang
<rippa> <%= (self.isValid) ? 'good' : 'bad' %>
furbage [furbage!~james@213.246.135.171] has joined #ruby-lang
<Wardrop> Yeah, that was a bad example. It's better actually in more complex expression, or where multiple conditions are needed, where inserting one or many <%= %> blocks is awkward and breaks the readability of the code. The problem is breaking out of a normal <% %> code block to just to output a small amount of text, when it would have been much easier and more readable to just do something like: put colour, instead of %><%= colour %><%.
<Wardrop> rippa: That was for you
priteshjain [priteshjain!~priteshja@115.248.175.50] has joined #ruby-lang
<rippa> I don't think there's anything like that
furbage [furbage!~james@213.246.135.171] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@dhcp-188018.eduroam.chalmers.se] has joined #ruby-lang
dbussink [dbussink!~dbussink@elle.fallingsnow.net] has joined #ruby-lang
g0bl1n_ [g0bl1n_!~g0blin@a213-22-27-14.cpe.netcabo.pt] has joined #ruby-lang
g0bl1n_ [g0bl1n_!~g0blin@unaffiliated/g0bl1n] has joined #ruby-lang
<manveru> Wardrop: usually you don't put such code into a template...
<manveru> also backbone doesn't have templating itself, you mean underscore?
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@dhcp-187042.eduroam.chalmers.se] has joined #ruby-lang
<shevy> the problem with templates is that they are so ugly
runeb [runeb!~runeb@77.40.155.28] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@dhcp-187042.eduroam.chalmers.se] has joined #ruby-lang
runeb [runeb!~runeb@77.40.155.28] has joined #ruby-lang
Pip [Pip!~Pip@host-191-146-66-217.spbmts.ru] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
mztriz [mztriz!~mztriz@74-136-75-114.dhcp.insightbb.com] has joined #ruby-lang
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
bryanl [bryanl!~bryanl@li362-49.members.linode.com] has joined #ruby-lang
stephenp [stephenp!~stephenp@gatepost.hos.net] has joined #ruby-lang
yadav [yadav!~quassel@dsl-173-248-230-235.acanac.net] has joined #ruby-lang
rolfb [rolfb!~rolfb@77.94.232.40] has joined #ruby-lang
dous_ [dous_!~dous@cm171.sigma67.maxonline.com.sg] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@dhcp-191046.eduroam.chalmers.se] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
Locke23rus_ [Locke23rus_!~quassel@128-70-13-32.broadband.corbina.ru] has joined #ruby-lang
voker57 [voker57!~voker57@128-70-25-242.broadband.corbina.ru] has joined #ruby-lang
voker57 [voker57!~voker57@kvirc/developer/Voker57] has joined #ruby-lang
szarubin [szarubin!stas@188.163.26.61] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
tekin [tekin!~tekin@host-78-151-24-9.as13285.net] has joined #ruby-lang
diddy [diddy!diddy@41.92.156.231] has joined #ruby-lang
Defusal [Defusal!~DeFi@41-133-238-54.dsl.mweb.co.za] has joined #ruby-lang
Defusal [Defusal!~DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
Defusal_ [Defusal_!DeFi@unaffiliated/ecnerifed] has joined #ruby-lang
mark_locklear [mark_locklear!~jlocklear@ab-tech-lan-to-ab-tech-gw.ncren.net] has joined #ruby-lang
amerine [amerine!~mturner@206.205.72.226] has joined #ruby-lang
diddy [diddy!diddy@41.92.156.231] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
wmoxam [wmoxam!~wmoxam@pdpc/supporter/active/wmoxam] has joined #ruby-lang
zkl [zkl!zkl@morpheus.net] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.224.153] has joined #ruby-lang
rshackleford [rshackleford!~mike@host154.181-14-121.telecom.net.ar] has joined #ruby-lang
rippa [rippa!~rippa@93-181-232-63.adsl.yaroslavl.ru] has joined #ruby-lang
Sailias [Sailias!~jonathan@s72-38-77-178.static.comm.cgocable.net] has joined #ruby-lang
elux_ [elux_!~peter@96.45.198.150] has joined #ruby-lang
sora_h [sora_h!~sora_h@mayfield.privs.net] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@st-dellaved.statistica.unimib.it] has joined #ruby-lang
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby-lang
leonL [leonL!~leonl@74-115-197-34.eng.wind.ca] has joined #ruby-lang
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby-lang
AlecTaylor [AlecTaylor!~alectaylo@unaffiliated/alectaylor] has joined #ruby-lang
queequeg1 [queequeg1!~chatzilla@c-71-202-152-67.hsd1.ca.comcast.net] has joined #ruby-lang
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
elux [elux!~peter@96.45.198.150] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
imajes [imajes!~imajes@is.imaj.es] has joined #ruby-lang
chris2 [chris2!~chris@vuxu.org] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
jbwiv [jbwiv!~wellsj@world.timcogso.com] has joined #ruby-lang
ap3mantus [ap3mantus!~ap3mantus@c-98-217-187-172.hsd1.ma.comcast.net] has joined #ruby-lang
vbatts [vbatts!~vbatts@hashbangbash.com] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
Taylor [Taylor!~alectaylo@CPE-58-164-16-161.lnse5.ken.bigpond.net.au] has joined #ruby-lang
michael_mbp [michael_mbp!~Marin@31.203.10.218] has joined #ruby-lang
perryh_ [perryh_!~root@unaffiliated/perry753] has joined #ruby-lang
robbrit [robbrit!~rob@38.108.76.250] has joined #ruby-lang
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby-lang
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@host.62.65.124.23.bitcom.se] has joined #ruby-lang
ttilley [ttilley!~ttilley@unaffiliated/lv] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-69-203-115-155.nyc.res.rr.com] has joined #ruby-lang
tbuehlmann [tbuehlmann!~Tobias@unaffiliated/tovias] has joined #ruby-lang
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
Austin__ [Austin__!~austin@96.45.197.22] has joined #ruby-lang
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
suckerpunch [suckerpunch!~suckerpun@host81-148-10-179.in-addr.btopenworld.com] has joined #ruby-lang
noize_hioki [noize_hioki!~noize_hio@ai126194000253.1.tss.access-internet.ne.jp] has joined #ruby-lang
dejongge [dejongge!~jonke@pD9E0E0AE.dip0.t-ipconnect.de] has joined #ruby-lang
mfournier [mfournier!~marc@2001:4b98:dc0:51:216:3eff:feac:7652] has joined #ruby-lang
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby-lang
nofxx [nofxx!~nofxx@unaffiliated/nofxx] has joined #ruby-lang
tekin_ [tekin_!~tekin@82.132.238.116] has joined #ruby-lang
leonL [leonL!~leonl@199-7-156-43.eng.wind.ca] has joined #ruby-lang
runeb [runeb!~runeb@77.40.155.28] has joined #ruby-lang
runeb [runeb!~runeb@77.40.155.28] has joined #ruby-lang
runeb [runeb!~runeb@77.40.155.28] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby-lang
<slyphon> injekt: ping?
<slyphon> dammit
* slyphon slaps slop
tekin [tekin!~tekin@82.132.239.127] has joined #ruby-lang
tekin [tekin!~tekin@82.132.237.194] has joined #ruby-lang
rippa [rippa!~rippa@93-181-232-63.adsl.yaroslavl.ru] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
niklasb [niklasb!~codeslay0@p5B31098D.dip0.t-ipconnect.de] 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
SuperTaz_work [SuperTaz_work!~supertaz_@38.99.52.59] has joined #ruby-lang
mztriz [mztriz!~mztriz@nkugateway.nku.edu] has joined #ruby-lang
Indian_ [Indian_!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@109.53.188.130] has joined #ruby-lang
scampbell [scampbell!~scampbell@c-98-224-240-62.hsd1.mi.comcast.net] has joined #ruby-lang
<rue> PEEENG
<rue> slyphon: Are you trying to use software for the wrong things again?
<slyphon> nah
<slyphon> i was "doing it wrong"
<slyphon> it's on :a, :apple, 'this is an apple', true, :optional => true
<slyphon> the 'true' is the salient bit
<slyphon> i mean OF COURSE
mark_azevedo [mark_azevedo!~mark_azev@adsl-76-228-82-246.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
<rue> See?
<slyphon> :)
runeb [runeb!~runeb@cm-84.215.181.150.getinternet.no] has joined #ruby-lang
solars [solars!~solars@mk089144206075.a1.net] has joined #ruby-lang
<andrewvos> What's the difference between rubygems.org and http://production.cf.rubygems.org/ ?
<shevy> the first is popular and known to many, the second is unknown to most!!!
publicvoid_ [publicvoid_!~publicvoi@p4FCAF27A.dip.t-dialin.net] has joined #ruby-lang
<yorickpeterse> The first one goes down on January 1st, the second one doesn't
<andrewvos> yorickpeterse: lolwhut?
<yorickpeterse> Rubygems.org was down for a few hours January 1st
<yorickpeterse> Postgresql was having some trouble apparently
<wmoxam> andrewvos: one is a web app, the other is an S3 bucket?
<andrewvos> Well, our build farm is having issues connecting to rubygems.org sometimes. Was wondering what I could do
<slyphon> gah, the fucking '-h' isn't working
* zzak farmin' gems, mhmmm
<slyphon> oh, gah
<slyphon> o/` gonna be a mental toss flycoon o/`
mrsolo [mrsolo!~mrsolo@64.125.181.73] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@77-58-113-31.dclient.hispeed.ch] has joined #ruby-lang
<yorickpeterse> andrewvos: probably best to run a local mirror
<yorickpeterse> which is a pain with Rubygems so your best bet is Geminabox
Asher [Asher!~asher@98.158.127.150] has joined #ruby-lang
<andrewvos> yorickpeterse: Hmm sounds like a lot of work, and definitiely not something I could work on
<andrewvos> .
<yorickpeterse> Geminabox is quite easy actually
<yorickpeterse> It could also save you a lot of bandwith
<andrewvos> yorickpeterse: If you understood the infrastructure I'm dealing with then you wouldn't say that :)
<yorickpeterse> probably
<andrewvos> yorickpeterse: Another option is to perhaps download all the .gem files and do a local install :(
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby-lang
<zzak> im curious to see how big rubygems is now
<zzak> found a thread where someone mentioned it being around 3 gigs in 2008
<yorickpeterse> andrewvos: what exactly are you trying to achieve?
virunga [virunga!~virunga@151.64.7.45] has joined #ruby-lang
<andrewvos> yorickpeterse: A more stable build
<andrewvos> yorickpeterse: Having to rebuild a project will quickly piss of developers
<andrewvos> yorickpeterse: And sometimes we have trouble connecting to rubygems
<yorickpeterse> ah
<yorickpeterse> Well, the connection issues is probably best to solve with a mirror but that might be a bit cumbersome
zkl [zkl!zkl@morpheus.net] has joined #ruby-lang
<andrewvos> yorickpeterse: Yeah
SkramX [SkramX!~SkramX@pool-173-73-134-143.washdc.east.verizon.net] has joined #ruby-lang
perryh_ [perryh_!~root@unaffiliated/perry753] has joined #ruby-lang
szarubin [szarubin!stas@188.163.29.0] has joined #ruby-lang
<erikh> zzak: it's about 90G
<erikh> at least it was about 4 months ago
amerine [amerine!~mturner@66.153.72.177] has joined #ruby-lang
<yorickpeterse> jezus
<yorickpeterse> There goes my idea of running a mirror on my 30GB HDD
<erikh> bzip
<zzak> jumpin jehoshaphat
<zzak> thats a lot o' gems
<erikh> yes
<andrewvos> rippa: Looks like something I would do :)
<apeiros_> more is better?
<erikh> yes
cyri_ [cyri_!~cyri_@jem75-1-87-88-118-80.dsl.sta.abo.bbox.fr] has joined #ruby-lang
<erikh> sorry
<erikh> fuck yes
<rippa> though in perl swearwords may be valid commands
<rippa> any alphanumeric combination has 50% chance of being perl directive
Roujo [Roujo!~Roujo@modemcable186.146-70-69.static.videotron.ca] has joined #ruby-lang
<erikh> ugh
pxjorge [pxjorge!~pxjorge@a79-169-113-23.cpe.netcabo.pt] has joined #ruby-lang
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
robotmay [robotmay!~robotmay@5ad8f1da.bb.sky.com] has joined #ruby-lang
RomD [RomD!~Roman@nrbg-4d0760c5.pool.mediaWays.net] has joined #ruby-lang
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby-lang
fayimora [fayimora!~fayimora@109.175.187.219] has joined #ruby-lang
amerine [amerine!~mturner@66.153.72.177] 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
savage-_ [savage-_!~savage-@209.118.197.220] has joined #ruby-lang
dnjaramba [dnjaramba!~dnjaramba@41.72.193.86] has joined #ruby-lang
QaDeS [QaDeS!~mklaus@frbg-4d029576.pool.mediaWays.net] has joined #ruby-lang
pigdude [pigdude!~tallen@li61-243.members.linode.com] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
michael_mbp [michael_mbp!~Marin@31.203.43.196] has joined #ruby-lang
imperator [imperator!~djberg96@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
queequeg1 [queequeg1!~chatzilla@c-71-202-152-67.hsd1.ca.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
context [context!context@november.xen.prgmr.com] has joined #ruby-lang
qpingu [qpingu!~Adium@67.218.117.238] has joined #ruby-lang
gregmoreno [gregmoreno!~gregmoren@S01067444012f4469.vc.shawcable.net] has joined #ruby-lang
runeb__ [runeb__!~runeb@46.67.149.44.tmi.telenormobil.no] has joined #ruby-lang
slyphon [slyphon!~weechat@unaffiliated/slyphon] has joined #ruby-lang
Yu\2 [Yu\2!~Yu@ubi-1-50-54.zif.uni-bielefeld.de] has joined #ruby-lang
krz [krz!~foobar@unaffiliated/krz] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
davidw [davidw!~davidw@adsl-ull-122-110.51-151.net24.it] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
mark_azevedo [mark_azevedo!~mark_azev@adsl-76-228-82-246.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
<imperator> who wants to help me make a ruby mktemp method? :)
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
jaisoares [jaisoares!~jsoares@bl13-197-21.dsl.telepac.pt] has joined #ruby-lang
hackeron [hackeron!~hackeron@gentoo/user/hackeron] has joined #ruby-lang
<apeiros_> doesn't Tempfile already have that?
<imperator> does it?
* imperator looks
<apeiros_> at least I thought it does something while creating a temporary file…
mark_azevedo [mark_azevedo!~mark_azev@adsl-76-228-82-246.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
retro|cz [retro|cz!~retro@ip-86-49-73-114.net.upcbroadband.cz] has joined #ruby-lang
<imperator> there's no public method, but it does do some random file generation
<imperator> but i'm trying to model the C method
<manveru> you mean mkstemp?
<apeiros_> imperator: only part of it, but Dir::Tmpname.make_tmpname is public
uniqanomaly [uniqanomaly!~ua@dynamic-78-8-81-20.ssp.dialog.net.pl] has joined #ruby-lang
cjs226 [cjs226!~cjs226@rrcs-71-40-79-154.sw.biz.rr.com] has joined #ruby-lang
_inc [_inc!~inc@unaffiliated/-inc/x-0498339] has joined #ruby-lang
darkf_ [darkf_!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-47-167.washdc.btas.verizon.net] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@host32-80-dynamic.44-79-r.retail.telecomitalia.it] has joined #ruby-lang
achamian [achamian!~achamian@122.167.96.61] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@subtle/user/kyrylo] has joined #ruby-lang
<imperator> oops, no, i goofed it already
<imperator> has to be 5 numbers, that rand doesn't guarantee that
livinded [livinded!~lolwut@s042n230.csun.edu] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
<imperator> alright, updated
<rue> Hooray for updates
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby-lang
<ReinH> imperator: eh?
<imperator> WHAT? JUST TELL ME! I CAN TAKE IT!
<ReinH> just wondering what you are talking about
S2kx [S2kx!~S1kx@ip-95-223-80-198.unitymediagroup.de] has joined #ruby-lang
<imperator> ReinH, a pure ruby mktemp method
<ReinH> ah
<ReinH> does it have to be POSIX?
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
<rue> Well, he mentioned Windows so I assume no :)
<imperator> i'm trying to follow the template rules is all
<ReinH> rue: POSIX specifies behavior as well as implementation
<imperator> my updated code seems to work; dunno if it's the fastest thing
<ReinH> a unique string at least 6 chars long, f.e.
<apeiros_> imperator: rand(9) is 0-8
<apeiros_> you probably wanted rand(10)
<imperator> oh, thanks
<apeiros_> presumably the same for rand(25)
<ReinH> you would want mktemp to modify the string it is passed, etc
<ReinH> just wondering if you want POSIX standard behavior
<imperator> yeah, it's not pass by reference atm
<ReinH> or just "something that returns a unique tempfile name"
<imperator> sure, let's try to implement a posixy version
<ReinH> you would pass mktemp(template)
<apeiros_> ReinH: what what what?
<ReinH> and if the last 6 chars of template are not "XXXXXX" you would raise EINVAL
<apeiros_> argument mutation is *yuck*
<rue> ReinH: I'm sure they screwed up both
<ReinH> apeiros_: yes, but it's POSIX standard
<ReinH> *that's why I'm asking*
<imperator> he is correct, it modifies its argument
<rue> rand(1..10) is great
<apeiros_> ReinH: for a C function…
<ReinH> you would then return the modified string with XXXXXX replaced with a unique identifier
<ReinH> if you can't create a unique name, you return ""
<ReinH> I'm just saying
<ReinH> that's the POSIX standard behavior of mktemp
<ReinH> you can do something else, and in Ruby I would probably do something else
<ReinH> like not modify the receier
<ReinH> receiver
<ReinH> return nil instead of ""
<ReinH> etc
<apeiros_> argument
<rue> mktemp(3)
<ReinH> argument, sorry
<ReinH> this is why I asked if he wants POSIX standard behavior or not
<ReinH> (I was hoping the answer would be "not")
rippa [rippa!~rippa@93-181-232-63.adsl.yaroslavl.ru] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
<apeiros_> ReinH: if a posix standard stated something had to return void, how'd you do that in ruby?
<ReinH> and if not, why not just use the Ruby public interface for tempfile names?
<apeiros_> it makes no sense trying to apply C specific parts of a standard to a non-C language.
<ReinH> apeiros_: I was trying to bring him around to that using the socratic method :p
<imperator> alright, nm, forget posix
<ReinH> thanks for "helping"
<ReinH> :pp
<apeiros_> welcome, as always…
<imperator> was just sorta futzing around folks :)
<imperator> didn't mean to start an argument
<apeiros_> yes, but why did you stop it?
<apeiros_> now I'm bored again…
jredville [jredville!~james.dev@c-66-235-23-17.sea.wa.customer.broadstripe.net] has joined #ruby-lang
<rue> Why do you want to implement it anyway?
<apeiros_> he's probably bored too…
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
<rue> imperator: Try to implement OS X tempfile instead!
<imperator> apeiros_, well, mktemp appears to be busted on winders
<rue> /var/folders/6s/xxcscmz95hq9q9lkfn4zjbfr0000gn/T/yay20120117-23655-swwqe2 (for argument "yay")
<imperator> always returns the same value
<imperator> that's what inspired all this
sepp2k [sepp2k!~sexy@g230249099.adsl.alicedsl.de] has joined #ruby-lang
jMCg [jMCg!~hiro@apache/committer/igalic] has joined #ruby-lang
jeremy_ross [jeremy_ross!~jeremy_ro@cpe-76-186-157-98.tx.res.rr.com] has joined #ruby-lang
<rue> The system call, not mktemp.exe or whatever?
<imperator> the C function, _mktemp
corsican [corsican!corsican@50-79-33-41-static.hfc.comcastbusiness.net] has joined #ruby-lang
<imperator> _mktemp_s is no better
<imperator> hm, how do you explicitly raise EINVAL?
* imperator is spacing
mark_azevedo [mark_azevedo!~mark_azev@adsl-76-228-82-246.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
<rue> Errno::EINVAL?
<imperator> can't seem to do raise Errno::EINVAL, though, unless irb is goofing me up
<apeiros_> ruby-1.9.2:013:0>> raise Errno::EINVAL
<apeiros_> Errno::EINVAL: Invalid argument
<apeiros_> works here
<apeiros_> platform specific?
<erikh> yes
<imperator> oh, i guess i misinterpreted that
<imperator> i thought ruby was telling me that Errno::EINVAL itself was an invalid argument, duh
<erikh> oh ha
<apeiros_> g
ro_70s [ro_70s!~rob@pool-96-255-9-205.washdc.fios.verizon.net] has joined #ruby-lang
ro_70s [ro_70s!~rob@pool-96-255-9-205.washdc.fios.verizon.net] has quit [#ruby-lang]
<imperator> there's always SystemCallError.new(22), too ;)
<erikh> you hacker
<apeiros_> that's a compliment, right?
<apeiros_> like nerd & geek…
csherin [csherin!~csherin@61.17.32.83] has joined #ruby-lang
<erikh> yes it was a compliment.
<ReinH> so apparently that whole think about using the socratic method to convince him to forgo POSIX compliance and just use the Ruby public API for making a new tempfile name didn't have the hoped for result
<ReinH> s/think/thing
<ReinH> wah wah
<rue> More like Suckrates, amirite
<erikh> so crates
<erikh> wyld stallyns rules
<imperator> bill & ted
<erikh> the only movie keanu reeves was good in
<imperator> ReinH, it might have something to do with the fact that it's for a gem that competes with Ruby's tempfile lib :)
jredville [jredville!~james.dev@c-66-235-23-17.sea.wa.customer.broadstripe.net] has joined #ruby-lang
ricardovaleriano [ricardovaleriano!~ricardova@189-69-29-244.dsl.telesp.net.br] has joined #ruby-lang
robbrit [robbrit!~rob@38.108.76.250] has quit [#ruby-lang]
ap3mantus [ap3mantus!~ap3mantus@c-98-217-187-172.hsd1.ma.comcast.net] has joined #ruby-lang
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
<slyphon> drbrain: got a sec?
<drbrain> hello
<slyphon> i'm confused by this
<slyphon> i just want it to work
<drbrain> slyphon: odd, rake is twice?
<slyphon> apparently
<slyphon> gem version 1.8.15
<drbrain> slyphon: ls gems/rake* says what?
<slyphon> oh i'm not falling for that one again
<slyphon> i'm gonna say 'what' and you're gonna laugh and call me a sphincter
jondot2 [jondot2!~jondot@bzq-82-81-0-121.red.bezeqint.net] has joined #ruby-lang
<drbrain> … I don't understand what you're asking me … but I'm sick today, so it's my fault …
<drbrain> oh, ok
<drbrain> you have a full mirror in gems/ ?
<slyphon> no
<slyphon> partial
<drbrain> or a partial mirror? or a partial mirror with extra shit?
<slyphon> it's for our internal code
<slyphon> partial mirror with extra shit
<slyphon> "any dependencies"
<drbrain> would one of these extra gems be a rake-0.8.7?
<drbrain> like, somebody repackaged but didn't set the metadata correctly?
<slyphon> oh
<slyphon> i kinda doubt it
<slyphon> drbrain: i could blow it away and freshly download
<drbrain> line 14 and 15 come from the spec extracted from the loaded gemspec
<drbrain> not the name of the .gem
<drbrain> how many gems is it?
<drbrain> before you blow it all away
<slyphon> oh, not *all* away
<slyphon> just rake
<slyphon> 1164
<drbrain> before any of that
<drbrain> ok, give me a minute to whip up a shell command
<slyphon> when i do a full rebuild of everything, it *seems* to complete
<slyphon> i.e. gem generate_index -d .
<slyphon> w/o the --update
<drbrain> for f in gems/*.gem; do echo -n $f ' '; gem spec $f name; done
* slyphon does that
<slyphon> drbrain: thanks, btw
* drbrain nods
<drbrain> sure
<andrewvos> hellooow
<drbrain> I'm thinking that it should be impossible for rake-0.8.7 to show up twice for one file
<slyphon> ahhh
<drbrain> but that line I pasted show tell me if there's a bug in the indexer or not
<drbrain> show -> should
* slyphon nods
<slyphon> drbrain: i'm looking for barfage?
<slyphon> or just a name that doesn't match
<drbrain> I guess, grep rake
<drbrain> | grep rake
* slyphon chuckles
* slyphon is glad his scrollback buffer is large
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
<slyphon> drbrain: still running
<slyphon> we've got some beastly gems
leonL [leonL!~leonl@199-7-156-43.eng.wind.ca] has joined #ruby-lang
<drbrain> slyphon: also, RubyGems is stupid about reading gems
<drbrain> the metadata comes after the contents
<drbrain> and it doesn't seek past the contents ☹
<slyphon> hah
<slyphon> "well, there's your problem"
<slyphon> wow
<slyphon> really
<slyphon> a utf8 smiley in IRC
<drbrain> we're UTF-8 here
<drbrain> why not take advantage? ☺
* slyphon is glad he's switched to Terminal.app for irc
<drbrain> I think it's OK to read the data, though
<drbrain> that way the data.tar.gz checksum is verified and you know the gem is OK
<drbrain> or, OK enough
<wilkie> aw maaaaaan, it's just a square for me. and that's just gotta be the saddest smiley ever.
* slyphon nods
<drbrain> that is super interesting
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<slyphon> orly?
* slyphon bangs on the side of his sarcasm-detector
<drbrain> now I'm looking at how the files get chosen to see why rake-0.8.7 would show up twice
<slyphon> kk
ryanf [ryanf!~rfitz@ec2-50-18-158-149.us-west-1.compute.amazonaws.com] has joined #ruby-lang
SkramX [SkramX!~SkramX@128.164.114.248] has joined #ruby-lang
csherin [csherin!~csherin@61.17.32.83] has joined #ruby-lang
<drbrain> the mtime filtering code only looks at each gem once
<slyphon> u/u
<drbrain> and the gem list comes from: Dir[File.join(@dest_directory, "gems", '*.gem')]
<slyphon> thlksadjflakjsdflskjflaj
<slyphon> sorry
<drbrain> … but you only have one rake
<drbrain> … rake-0.8.7
<drbrain> There's no way Dir[] is broken
<slyphon> yeah, doublt it
<drbrain> is it always rake-0.8.7 that's dup'd, or is it random stuff?
<slyphon> lemme try again
<slyphon> hmm
<slyphon> that's odd
<slyphon> i ran it a second time and i get "No new gems"
<apeiros_> damit, I want my real keyword args. now. >:(
<drbrain> yeah, that's to be expected
<slyphon> ah
uniqanomaly_ [uniqanomaly_!~ua@dynamic-87-105-21-16.ssp.dialog.net.pl] has joined #ruby-lang
<slyphon> drbrain: should i touch a bunch of stuff?
SkramX [SkramX!~SkramX@128.164.155.166] has joined #ruby-lang
* slyphon does the "I'm not touching you" thing to drbrain
<drbrain> it updates the index file first then copies in the .gemspec
<drbrain> slyphon: sure, touch a bunch of .gem files
<slyphon> drbrain: oh, weird, that might explain why we sometimes get errors where the index seems to see a gem but then when you try to install it it fails
<drbrain> slyphon: can you file an issue with your first gist against rubygems like "rubygems should continue when a gemspec is missing" or something
<drbrain> at least I can make it continue when a file is missing :/
<slyphon> drbrain: sure, where's the bugtracker?
<slyphon> ah, naturally
<drbrain> I don't have the brainpower to dig through the indexer to figure out how rake got duped
* slyphon nods
<drbrain> … beyond the obvious places it could happen
<slyphon> ok, just happened again
<slyphon> lemme make sure it's a legit rake gem
<drbrain> also put the rake-sez-what.txt up there
<slyphon> hah
<slyphon> ok
tla [tla!~tla@toelboell-lund.dk] has joined #ruby-lang
<drbrain> slyphon: you could also edit rubygems/indexer.rb and poke around in #update_index if you can reproduce it
* slyphon nods
<slyphon> i might do that
<drbrain> like adding p gem => spec.original_name to map_gems_to_specs
mark_azevedo [mark_azevedo!~mark_azev@c-67-180-48-38.hsd1.ca.comcast.net] has joined #ruby-lang
<drbrain> I don't think there have been many edits to the indexer since 1.3
<drbrain> that's around the rubygems.org switch
hzlocky [hzlocky!~me@dynamic-vpdn-93-125-116-140.telecom.by] has joined #ruby-lang
* slyphon nods
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
robyurkowski [robyurkowski!~robyurkow@64.254.250.82] has joined #ruby-lang
robyurkowski [robyurkowski!~robyurkow@64.254.250.82] has quit [#ruby-lang]
s0ber_ [s0ber_!~s0ber@114-36-239-67.dynamic.hinet.net] has joined #ruby-lang
y3llow_ [y3llow_!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby-lang
<slyphon> drbrain: well, putting that print in the map_gems_to_specs doesn't show anything interesting (no duplicates)
curtism [curtism!~curtis@bas11-montreal02-1128531121.dsl.bell.ca] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-87-105-21-16.ssp.dialog.net.pl] has joined #ruby-lang
<erikh> slyphon: what are you using to serve private gems?
<slyphon> erikh: apache
<erikh> heh
<erikh> fair enough
<slyphon> :)
<erikh> I have some chef tooling to build gems from git repositories
<erikh> not very clean though.
<slyphon> ah
davidw [davidw!~davidw@apache/committer/davidw] has joined #ruby-lang
<slyphon> i have this whole stupid script that syncs a filesystem with an Openstack object store
<erikh> hopefully we can open-source this shit anyhow
<slyphon> i have to go in and hit that code with a hammer, it's way to complicated
<erikh> fun
<slyphon> it's technical debt
<slyphon> me getting *way* too into an API
y3llow [y3llow!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby-lang
<erikh> yeah, I have a few like that with chef (different code, but I live in chef these days)
* slyphon nods
<erikh> things that should-really-be-knife-plugins-but-we're-still-on-chef-9
<slyphon> ahhh
<slyphon> yeah
<slyphon> i've got the whole chef 0.10 upgrade on my backlog
<slyphon> like, for months already
<erikh> yeah, we do too, heh
<erikh> yep
<slyphon> because "yeesh"
<erikh> yeaaaaah.
<erikh> I'd like to get our chef running on 1.9 as well, but that's going to take a little arm-twisting
<slyphon> our plan now is to basically build a chef 10 server and just redeploy everything
<erikh> oof
<slyphon> yeah, same here
<slyphon> erikh: it's not so bad, we're planning on totally reworking our deployment anyway
<slyphon> thankfully we're in a big VMware 5 shop
<erikh> do I work with you?
<erikh> haha
<slyphon> hahha
<erikh> I mean you're like, dictating our backlog tit-for-tat
<slyphon> :)
<slyphon> i think it's pretty common for people working w/ chef
<erikh> yeah, probably.
y3llow [y3llow!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby-lang
<slyphon> because it's just such a core piece of systemy stuff
<erikh> yeah, hard to rock the boat
<slyphon> and good systems programmers know "don't fucking touch that"
<erikh> yep
<slyphon> like, "Let's upgrade the database!"
<slyphon> no no no
<erikh> I bring that fight to the table often
looopy [looopy!~looopy@pool-141-156-47-167.washdc.btas.verizon.net] has joined #ruby-lang
<slyphon> you have to hit the puppies with a rolled-up newspaper
<slyphon> fucking devs always want to make changes to production
<erikh> oh, that's one of the things we're open sourcing
looopy_ [looopy_!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
<erikh> the " no non on on noon, you're not doing that " patch
<slyphon> hahahaha
jbwiv [jbwiv!~wellsj@world.timcogso.com] has joined #ruby-lang
<erikh> well, hopefully.
petercooper [petercooper!~petercoop@82.144.254.2] has joined #ruby-lang
y3llow [y3llow!~y3llow@114-36-239-67.dynamic.hinet.net] has joined #ruby-lang
gasbakid [gasbakid!~gasbakid@41.96.83.185] has joined #ruby-lang
<slyphon> drbrain: where does Gem::Specification.each come from?
<slyphon> that has the duplicated entry
<drbrain> oooh, that's from the loaded gems you've installed
<drbrain> that would definitely do it
<slyphon> uhhh
<drbrain> yeah, it's lame
<slyphon> "loaded gems" as in "what's installed"
<slyphon> there's the repo i'm indexing, and the shit installed for the system
<slyphon> so, if there's overlap, i could wind up with duplicates?
<slyphon> seems like a set here would solve things
<drbrain> yes, I guess when it got converted away from Gem::SourceIndex (which had separate lists) it didn't get cleaned up properly
<slyphon> i'd make a change in here, i'm not sure *where* to make the change
<slyphon> i could do it in build_marshal_gemspecs, but it seems that's the wrong place
<slyphon> i mean, it'd work for now
<drbrain> I think Gem::Specification.dir= or dirs= needs to be set to a bogus directory
<drbrain> that will clear the installed entries
<slyphon> where though?
Jay_Levitt [Jay_Levitt!~Jay_Levit@c-24-63-250-125.hsd1.ma.comcast.net] has joined #ruby-lang
Wardrop [Wardrop!~tomwardro@86.46.96.58.static.exetel.com.au] has joined #ruby-lang
<slyphon> "WARNING! GLOBAL STATE! WARNING WILL ROBINSON!"
* slyphon flops around waving his arms
<slyphon> hmm
<drbrain> yeah, zenspider didn't fully listen to me ☹
<slyphon> hah
<slyphon> Gem::Specification.dirs = []
<slyphon> line 128
<drbrain> so we need one in update_index too
* drbrain nods
<zenspider> don't blame me
<drbrain> but update_index doesn't go through that path
retro|cz [retro|cz!~retro@ip-86-49-73-114.net.upcbroadband.cz] has joined #ruby-lang
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
<slyphon> i added `p marshal_name => spec_file_name` @ line 177
<apeiros_> btw., zenspider - solved that euler with the division?
<zenspider> apeiros_: um... which one?
<apeiros_> I think it was the one where you had to find the division with the longest repeating pattern or somesuch
<slyphon> holy crap the internet sucks in this place
<slyphon> note to "coworking facility managers", make the internet not suck
<apeiros_> problem 26, I think
<apeiros_> "Find the value of d 1000 for which 1/d contains the longest recurring cycle in its decimal fraction part"
<slyphon> hmm
<slyphon> drbrain: well, from my inexpert analysis, that shouldn't be called
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby-lang
<zenspider> apeiros_: yeah. I finally broke down and did that one by teaching it long division... but it turns out there is a much easier way in mathematica
<apeiros_> heh, mathematica…
<slyphon> `gem generate_index --update -V -d .`
<zenspider> hrm. I must have given up and done it in ruby...
srbartlett [srbartlett!~srbartlet@202.146.7.239] has joined #ruby-lang
<slyphon> drbrain: oh oh, no it does
<drbrain> slyphon: build_marshal_specs ?
<slyphon> yeah, called in update_index
<slyphon> drbrain: oh, so it *looks* like you'd need ot do that Gem::Specification.dirs in update_index...oh right, you already said that
<zenspider> 1/7 // RealDigits // First # => {{1, 4, 2, 8, 5, 7}}
<drbrain> heh
<zenspider> take this to #rubygems
<slyphon> kk
hagabaka [hagabaka!~hagabaka@cblmdm24-53-178-92.buckeyecom.net] has joined #ruby-lang
<zenspider> apeiros_: I think in ruby I just taught it long division and kept looking for a repeate of the remainder
<zenspider> repeat
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
<zenspider> stupid fingers
<apeiros_> zenspider: yeah, that's about what I did too
<apeiros_> then keep the longest (normal max)
postmodern [postmodern!~postmoder@c-71-237-178-98.hsd1.or.comcast.net] has joined #ruby-lang
<zenspider> there... just did it in mathematica: Max[Table[Length[First[First[RealDigits[1/n]]]], {n, 1000}]] // Timing # => {0.044532, 982}
wallerdev [wallerdev!~wallerdev@72.44.102.30] has joined #ruby-lang
rpowell [rpowell!~rpowell@CPE-121-217-139-191.lnse2.cht.bigpond.net.au] has joined #ruby-lang
<apeiros_> one-liner! yay!
leonL [leonL!~leonl@199.119.232.2] has joined #ruby-lang
corsican [corsican!corsican@50-79-33-41-static.hfc.comcastbusiness.net] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
robbyoconnor [robbyoconnor!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
<zenspider> _fast_ one liner
<erikh> mathematica: the unruby
<zenspider> so fun to code in tho... very very powerful
<erikh> Never tried...
benanne [benanne!~rijdier@ip-83-134-149-227.dsl.scarlet.be] has joined #ruby-lang
rpowell [rpowell!~rpowell@CPE-121-217-139-191.lnse2.cht.bigpond.net.au] has joined #ruby-lang
hagabaka [hagabaka!~hagabaka@unaffiliated/hagabaka] has joined #ruby-lang
<andrewvos> zenspider: Should I make a sinatra-inspired web framework in it??
<zenspider> uhhh... it has _no_ OO at all... that'd be a challenge
<andrewvos> even better
<andrewvos> I am of course just telling bad jokes again though.
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
<rpowell> hey how would I batch rename a bunch of files called [something].css.sass to [something].sass in the terminal?
<drbrain> hint: for f in *.css.sass; do …; done
Swimming_Bird [Swimming_Bird!~textual@64.70.114.89] has joined #ruby-lang
<zenspider> rpowell: I have a perl script for that ;)
<rpowell> yeah
<rpowell> I should learn Perl one of these days
<zenspider> it could just as easily be redone in ruby tho
spyvsspy [spyvsspy!~nonenone@209.145.177.162] has joined #ruby-lang
headius [headius!~headius@71-210-154-45.mpls.qwest.net] has joined #ruby-lang
uniqanomaly [uniqanomaly!~ua@dynamic-87-105-21-16.ssp.dialog.net.pl] has joined #ruby-lang
imperator2 [imperator2!~djberg96@184-96-109-96.hlrn.qwest.net] has joined #ruby-lang
My_Hearing [My_Hearing!~Mon_Ouie@subtle/user/MonOuie] has joined #ruby-lang
nuclearsandwich [nuclearsandwich!~nuclearsa@74-93-3-244-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
Carnage\ [Carnage\!~carnage@84-75-163-211.dclient.hispeed.ch] has joined #ruby-lang
suckerpunch [suckerpunch!~suckerpun@93-97-12-107.zone5.bethere.co.uk] has joined #ruby-lang
<wwalker> rpowell: in ruby? if not, what distro? most distros have a rename command that does what you want, but the redhat/fedora one and the debian ubuntu one have different syntax
nuclears1ndwich [nuclears1ndwich!~nuclearsa@74-93-3-244-SFBA.hfc.comcastbusiness.net] has joined #ruby-lang
<rpowell> I'm on OS X
<wwalker> run the one from debian (as it's perl based)
<wwalker> you could write your own rather simply, but there are all kinds of corner cases that the distro's rename commands have already coded around.
<rpowell> yeah
<erikh> are you talking about 'mv' or some hipster rename command?
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
<wwalker> erikh: rename, been in most distros for years
* erikh blinks
<zenspider> yeah. no clue
havenn [havenn!~skipper@pool-71-189-127-140.lsanca.fios.verizon.net] has joined #ruby-lang
<wwalker> rename.c - aeb 2000-01-01 from the linux-util package.
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
matled- [matled-!~matled@85.131.246.184] has joined #ruby-lang
<erikh> but.. mv is pretty portable
<erikh> anyhow
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
<heftig> module Mymodule; def Mymodule.baz; foo; end; class << self; def qux; foo; end; private; def foo; :bar; end; end; end
<zenspider> gotta love linux zealots... "I'm on OSX"... "run the one from debian"
<heftig> err
<heftig> wrong channel, sorry
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
<erikh> even if I was on linux I wouldn't use that
<zenspider> heftig: what's wrong with a, b, c, d, etc?
Axsuul [Axsuul!~Axsuul@75-140-75-52.dhcp.mtpk.ca.charter.com] has joined #ruby-lang
<erikh> it's .... not portable
<heftig> nothing
<wwalker> erikh: true, but a=$1; b=$2; shift; shift; for i in @*; do j=`echo $i| sed -e "s/$a/$b/"`; mv $i $j; done
<erikh> you know what basename does, right?
<erikh> anyhow... this is a silly conversation
<wwalker> is a little longer than rename .foo.bar .bar *.foo.bar
<erikh> way to miss the point
<wwalker> erikh: what if there are special chars in the filenames, nultiple .'s
<erikh> basename file.tar.gz .tar.gz
<erikh> try it.
<wwalker> mv always works, but not reasonable if you have 1000s of files created from id3 tag names :)
<wwalker> erikh: and if you want to change something other than the suffix?
<erikh> ok
<erikh> you win
<erikh> argument over
<zenspider> yes pls...
<wwalker> didn't think it was an argument, thought it was a discussion, sorry
bglusman [bglusman!~bglusman@c-71-224-192-35.hsd1.pa.comcast.net] has joined #ruby-lang
suckerpunch [suckerpunch!~suckerpun@93-97-12-107.zone5.bethere.co.uk] has joined #ruby-lang
ap3mantus [ap3mantus!~ap3mantus@c-98-217-179-108.hsd1.ma.comcast.net] has joined #ruby-lang
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
charper [charper!u1691@gateway/web/irccloud.com/x-ujlnquskoxymkxkb] has joined #ruby-lang
Gekz [Gekz!~gekz@159.253.5.25] has joined #ruby-lang
Gekz [Gekz!~gekz@unaffiliated/gekz] has joined #ruby-lang
wwalker [wwalker!~wwalker@208.92.232.27] has quit [#ruby-lang]
cldwalker [cldwalker!u2984@gateway/web/irccloud.com/x-dpvrlsycjrjkgyjr] has joined #ruby-lang
<andrewvos> Tried to find the rename command. Found renice. WTF
<zenspider> hah
mccraig [mccraig!u574@gateway/web/irccloud.com/x-butcipycmrgwyxxj] has joined #ruby-lang
dnyy [dnyy!u2106@gateway/web/irccloud.com/x-frrdtanyuiaygmnn] has joined #ruby-lang
cesario [cesario!u2444@gateway/web/irccloud.com/x-pjjbtdajwcjgvuzf] has joined #ruby-lang
queequeg1 [queequeg1!~chatzilla@c-71-202-152-67.hsd1.ca.comcast.net] has joined #ruby-lang
dragonkh [dragonkh!~kings@dr4g0nn.gotadsl.co.uk] has joined #ruby-lang
<dragonkh> evening
tenderlove [tenderlove!~tenderlov@pdpc/supporter/active/tenderlove] has joined #ruby-lang
twittard [twittard!~twittard@wc.lax.truecarcorp.com] has joined #ruby-lang
akahn [akahn!u2243@gateway/web/irccloud.com/x-ncxbfiibnpcmgwnp] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@c-98-218-48-253.hsd1.md.comcast.net] has joined #ruby-lang
simon_weber [simon_weber!u4119@gateway/web/irccloud.com/x-lupfqiicqeuklvlo] has joined #ruby-lang
necromancer [necromancer!u4538@gateway/web/irccloud.com/x-shaivfyqxidmblpq] has joined #ruby-lang