arooni-mobile [arooni-mobile!~arooni-mo@189.149.99.182] has joined #ruby-lang
miker [miker!~qwester@72-165-229-187.dia.static.qwest.net] has joined #ruby-lang
sunredsky [sunredsky!sunredsky@76.206.24.126] has joined #ruby-lang
replore_ [replore_!~replore@203.152.213.161.static.zoot.jp] has joined #ruby-lang
Sailias_ [Sailias_!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
Sailias__ [Sailias__!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
Sailias__ [Sailias__!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
<shevy>
what was the name of that "ruby grep" again?
Sailias__ [Sailias__!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
Sailias_ [Sailias_!~jonathan@CPE0018f85e576d-CM001bd7aaaf96.cpe.net.cable.rogers.com] has joined #ruby-lang
looopy [looopy!~looopy@static-71-166-231-146.washdc.east.verizon.net] has joined #ruby-lang
<andrewvos>
shevy: What does it do?
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
<shevy>
it greps through source files
<shevy>
I know I downloaded it some weeks ago from github, but I forgot the name :(
<andrewvos>
shevy: ack
<shevy>
isn't that written in perl?
skiz [skiz!~skiz@c-69-181-211-4.hsd1.ca.comcast.net] has joined #ruby-lang
<shevy>
ah well
<shevy>
I can't remember the name anyway
<shevy>
going to write my own
S1kx [S1kx!~S1kx@pdpc/supporter/monthlybyte/s1kx] has joined #ruby-lang
<andrewvos>
shevy: What do you want to d?
<andrewvos>
shevy: Try use the komainu gem if you want
<andrewvos>
shevy: For searching text
srbaker [srbaker!~srbaker@70.28.245.60] has joined #ruby-lang
<andrewvos>
Hey has anyone done a site that stores lists of what gems use other gems? So for example you can see that one gem is used in n other projects?
saLOUt [saLOUt!~rriemann@91-65-223-29-dynip.superkabel.de] has joined #ruby-lang
xjiujiu [xjiujiu!~quassel@218.77.14.195] has joined #ruby-lang
<drbrain>
slyphon: what do you have against callcc?
<slyphon>
drbrain: holy cross protocols, batman!
<slyphon>
drbrain: it makes me feel dumb
<drbrain>
slyphon: it's also total overkill which makes it EXTRA AWESOME
<slyphon>
drbrain: EM::Synchrony is a good use of it, but mehhhh
<slyphon>
actually, i take that back
<slyphon>
that's Fibers
<slyphon>
yeah
<slyphon>
drbrain: why not use a fiber?
<drbrain>
Fiburs?
<erikh>
heh
<slyphon>
:)
<slyphon>
drbrain: too new skool for ya?
<drbrain>
yeah
<slyphon>
ah, ok :)
<drbrain>
and it's not quite the right way to troll people
* slyphon
laughs
<drbrain>
there was a guy on ruby-core asking why he couldn't do non-local returns
* slyphon
blinks several times
<slyphon>
because you'll wind up with your cock in /dev/null somehow
<drbrain>
LOL
<slyphon>
:D
<any-key>
whaat
<drbrain>
yeah, pretty much
<slyphon>
it took me a while to understand when that would happen
<slyphon>
i think it was trickier semantically w/ 1.8.x
<slyphon>
what with Proc, proc, and lambda
<drbrain>
return_bang's use of callcc is pretty tame
<slyphon>
all being annoyingly different in subtle ways
<drbrain>
yeah
<slyphon>
honestly, though, i can't tell if i just incorporated that into "good style" that I don't notice, or if it actually got easier to not fuck that up
<slyphon>
drbrain: i guess if you want to scar the poor boy for life, then sure
<slyphon>
"hey son, here's a .45 magnum, show it to your sister!!"
<drbrain>
slyphon: now you're getting the hang of it!
<slyphon>
hahahah
<drbrain>
slyphon: I also wrote a gem to reduce $SAFE...
* slyphon
boggles
<slyphon>
uh
<slyphon>
1) what?!@ how?! and 2) who the fuck actually *uses* that?
<drbrain>
in 1.8 the C symbol for $SAFE was not static
<drbrain>
so you could wrap it in a C extension and change the value
<slyphon>
ok, ok, yeah, when running as a setuid, it's probably good to be extra paranoid *sometimes* except Linux doesn't run interpreted scripts as setuid, so that's not generally that helpful (to me), and writing 'untaint' over an over makes me giggle too much
<drbrain>
I don't think the extension works anymore in 1.9
<slyphon>
drbrain: oh wow
<slyphon>
"uh, guys..."
<drbrain>
now safe_level is stored on the thread
* slyphon
nods
<slyphon>
man, it's crazy to me, the NaCl project
<slyphon>
"Sure, we'll implement a sandbox for C code"
<drbrain>
I should see if I can get the extension to work on 1.9
<slyphon>
i mean, what huge swinging balls
<drbrain>
there's also tenderlove's neversaydie
<drbrain>
yeah
<any-key>
isn't an OS a sandbox for C code? ;)
<drbrain>
it's a libsigsegv wrapper :D
<slyphon>
HA!
<drbrain>
any-key: not a very good one
<any-key>
haha
<any-key>
it's a sandbox filled with cat poop
<slyphon>
yeah, Solaris ain't bad in that regard
<slyphon>
linux...
<slyphon>
ehhhhhhhh
<any-key>
solaris has zones and whatnot
<any-key>
how fucking badass is that
<drbrain>
a FreeBSD jail, too
<any-key>
and the internet is hooked together by tubes in solaris
<any-key>
;)
<slyphon>
i miss zones
<slyphon>
and solaris
<slyphon>
shame it's DEAD TO ME NOW
* slyphon
mails *another* flaming bag of poop to larry ellison's Lear Jet
<any-key>
there's alwasy openindiana
<rue>
The discerning billionaire flies a brown Lear
<slyphon>
also: Oracle sucks
* slyphon
shouts into the void
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
woollyams [woollyams!~woollyams@203-206-165-21.perm.iinet.net.au] has joined #ruby-lang
<any-key>
have they killed virtualbox yet?
<slyphon>
SHHHH
<slyphon>
jeez!
<any-key>
I may punch someone if that happens
<any-key>
I HAVE A THEORY
<any-key>
Oracle is being the bad guy to UNITE open source developers and push the open source movement farther
<any-key>
so we can all hate them, and use that as a driving force to move forward
<any-key>
so they're being nice
<slyphon>
ok twitter, your suggestion engine blows. you're *actually* suggesting that i follow *Counting* *fucking* *Crows*
<slyphon>
the Black Crows, maybe
<slyphon>
Crowes
<slyphon>
any-key: yyyyyyyyeah
<slyphon>
any-key: "and monkeys might fly out of my butt"
<any-key>
stranger thing have happened
<slyphon>
hell "The Monkees" might fly out of my butt
<any-key>
that'd be awesome
<slyphon>
their movie was fucking awesome
<slyphon>
and i say that in all seriousness
diegoviola [diegoviola!~viola@host-1-211.b15.cvc.com.py] has joined #ruby-lang
<slyphon>
Frank Zappa had a walk-on, produced by Jack Nicholson
towski [towski!~towski@173-13-170-161-sfba.hfc.comcastbusiness.net] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
drewolson [drewolson!~drewolson@adsl-69-210-244-239.dsl.chcgil.sbcglobal.net] has joined #ruby-lang
benteaa [benteaa!3726@safir.ifi.uio.no] has joined #ruby-lang
<drbrain>
hrm, how do I not pass a block in Ruby/C
<drbrain>
ha! just found rb_enumeratorize()
<rue>
rb_whatnow?
<rue>
Same as #to_enum?
ivanoats [ivanoats!~ivanoats@pdpc/supporter/active/ivanoats] has joined #ruby-lang
<drbrain>
yeah
kith [kith!~kith@unaffiliated/kith] has joined #ruby-lang
yxhuvud [yxhuvud!mongo@h-49-243.a212.priv.bahnhof.se] has joined #ruby-lang
<erikh>
renoise is fun
AndChat- [AndChat-!~AndChat@222.153.223.45] has joined #ruby-lang
<rippa>
ATTENTION: Please note that this keyboard has black labeling on dark gray plastic keycaps. In low lit environments, this keyboard will appear to be blank!
werwolf [werwolf!~llakey@174-127-47-94.static-ip.telepacific.net] has joined #ruby-lang
amerine [amerine!~mturner@bc171197.bendcable.com] has joined #ruby-lang
r0bby_ [r0bby_!~wakawaka@guifications/user/r0bby] has joined #ruby-lang
headius [headius!~headius@71-210-151-185.mpls.qwest.net] has joined #ruby-lang
crankharder [crankharder!~crankhard@ip68-100-194-214.dc.dc.cox.net] has joined #ruby-lang
jaafar [jaafar!~jet@adsl-76-200-166-49.dsl.pltn13.sbcglobal.net] has joined #ruby-lang
Banistertab [Banistertab!~Banistert@122.63.143.153] has joined #ruby-lang
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
burgestrand [burgestrand!~burgestra@h-163-174.a155.priv.bahnhof.se] has joined #ruby-lang
werwolf [werwolf!~llakey@174-127-47-2.static-ip.telepacific.net] has joined #ruby-lang
jmontross [jmontross!~Adium@c-76-102-197-68.hsd1.ca.comcast.net] has joined #ruby-lang
ryanf [ryanf!~revfitz@adsl-69-111-194-237.dsl.snfc21.sbcglobal.net] has joined #ruby-lang
Banistergalaxy [Banistergalaxy!~AndChat@222.153.223.47] has joined #ruby-lang
werwolf [werwolf!~llakey@174-127-47-94.static-ip.telepacific.net] has joined #ruby-lang
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
jaimef [jaimef!~jaimef@dns.mauthesis.com] has joined #ruby-lang
perryh [perryh!~perry@unaffiliated/perry753] has joined #ruby-lang
RomyEatsDrupal_ [RomyEatsDrupal_!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
banisterfiend [banisterfiend!~baniseter@115.189.196.244] has joined #ruby-lang
spuk [spuk!~spuk@187.65.178.172] has joined #ruby-lang
igotnolegs [igotnolegs!~igotnoleg@174-27-218-195.slkc.qwest.net] has joined #ruby-lang
comboy [comboy!~quassel@static.7.66.9.176.clients.your-server.de] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
werwolf [werwolf!~llakey@174-127-47-94.static-ip.telepacific.net] has joined #ruby-lang
Briareos1 [Briareos1!~quassel@202.58.198.84] has joined #ruby-lang
spuk [spuk!~spuk@187.65.178.172] has joined #ruby-lang
<matled>
I have the following problem with optparse: if argv contains a string with an invalid encoding it raises an exception because a regexp is matched against the string
<matled>
the string is marked as UTF-8 even though it is iso-8859-1 because the filename just has a filename in that encoding
<erikh>
any-key: so basically Oracle is the new Microsoft, but what is the new slashdot? HN? Reddit?
<erikh>
I mean it could be either of those
<matled>
the workaround I came up with so far is ARGV.map! { |s| s.dup.force_encoding "ASCII-8BIT" }
<rue>
If it's rare, perhaps you'd just rescue it?
<rue>
Assuming you can't fix the name
<matled>
well, it seems I have to make each item in ARGV have a valid encoding to work with optparse
<shevy>
hmm
<rue>
Ah, I missed the crucial word there
<shevy>
one language to rule them
<shevy>
one encoding to bind them
Briareos1 [Briareos1!~quassel@202.58.198.84] has joined #ruby-lang
dc5ala [dc5ala!~dc5ala@stgt-4d03ab9e.pool.mediaWays.net] has joined #ruby-lang
aroop [aroop!~Aroop@50.46.157.247] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
rippa [rippa!~splitta@85.158.54.234] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
yorickpeterse [yorickpeterse!~yorickpet@pdpc/supporter/professional/yorickpeterse] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.221.38] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@117.195.109.45] has joined #ruby-lang
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
<rue>
ksinkar: Builder doesn't work for you/
<ksinkar>
rue: is there no way around this?
<ksinkar>
<MK-IP>foo</MK-IP>
<ksinkar>
rue: ??
woollyams [woollyams!~woollyams@124-170-54-189.dyn.iinet.net.au] has joined #ruby-lang
<rue>
I fail at reading today. I thought you were writing code to implement an XML markup builder
<rue>
ksinkar: You can use #tag!
gnufied [gnufied!~gnufied@122.167.254.70] has joined #ruby-lang
JohnBat26|2 [JohnBat26|2!~Eugene@89.175.77.90] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-83-178.dyn.iinet.net.au] has joined #ruby-lang
gentz [gentz!ilab@ancient.webfoundation.net] has joined #ruby-lang
thrcka [thrcka!thrcka@nat/redhat/x-gejyabyaavbvvifw] has joined #ruby-lang
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
<ksinkar>
rue: what do you mean my #tag! ? Can you please elaborate a bit?
<rue>
ksinkar: The method #tag!, it lets you give a string such as "MK-IP". Check the doc for details
<ksinkar>
rue: thanx
Fullmoon [Fullmoon!~Fullmoon@dsl-stat-43-17.mmc.at] has joined #ruby-lang
chrismcg [chrismcg!~chrismcg@pdpc/supporter/active/chrismcg] has joined #ruby-lang
towski [towski!~towski@173-13-170-161-sfba.hfc.comcastbusiness.net] has joined #ruby-lang
lorenzo [lorenzo!~quassel@217.33.106.3] has joined #ruby-lang
dave_miles [dave_miles!~davemiles@gatek.thls.bbc.co.uk] has joined #ruby-lang
workmad3 [workmad3!~workmad3@vpn100.its.manchester.ac.uk] has joined #ruby-lang
toretore [toretore!~toretore@ti0006a380-0599.bb.online.no] has joined #ruby-lang
NinoScript [NinoScript!~Adium@pc-55-124-83-200.cm.vtr.net] has joined #ruby-lang
xsdg [xsdg!~xsdg@SIPB-VM-99.MIT.EDU] has joined #ruby-lang
jd [jd!~useless@unaffiliated/jade] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-83-178.dyn.iinet.net.au] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@naqasl.physik.hu-berlin.de] has joined #ruby-lang
sora_h [sora_h!~sora_h@tubusu.net] has joined #ruby-lang
Fullmoon [Fullmoon!~Fullmoon@TK212017097035.teleweb.at] has joined #ruby-lang
X99 [X99!~quassel@218.77.14.195] has joined #ruby-lang
leafac [leafac!~lfacchine@mail.daitanlabs.com] has joined #ruby-lang
Kanolesic [Kanolesic!~Kanolesic@c-24-218-140-224.hsd1.ma.comcast.net] has joined #ruby-lang
<babinho>
\o
wyhaines [wyhaines!~wyhaines@65.39.118.15] has joined #ruby-lang
stamina [stamina!~stamina@ip5452a9bc.speed.planet.nl] has joined #ruby-lang
<dr0id>
o/
dave_miles [dave_miles!~davemiles@gatek.thls.bbc.co.uk] has joined #ruby-lang
woollyams [woollyams!~woollyams@124-170-54-189.dyn.iinet.net.au] has joined #ruby-lang
woollyams [woollyams!~woollyams@124-170-54-189.dyn.iinet.net.au] has joined #ruby-lang
woollyams [woollyams!~woollyams@124-170-54-189.dyn.iinet.net.au] has joined #ruby-lang
bjensen [bjensen!~brianj@2.110.166.0] has joined #ruby-lang
lenilson_dias [lenilson_dias!~lenilson_@c934d329.virtua.com.br] has joined #ruby-lang
<andrewvos>
Hey is there another way of doing the #{} syntax in ruby strings?
<tobiasvl>
do you mean ${} ?
<tobiasvl>
interpolation
<rippa>
${}?
<rippa>
what?
<tobiasvl>
:o :D
<tobiasvl>
wait ...
<manveru>
andrewvos: using sprintf?
stamina [stamina!~stamina@ip5452a9bc.speed.planet.nl] has joined #ruby-lang
bjensen [bjensen!~brianj@2.104.27.138] has joined #ruby-lang