<bnagy>
read the whole quickref, again and again. It's good for you, like prunes.
<whatasunnyday>
yummy
neoesque [neoesque!~neoesque@210.59.147.232] has joined #ruby-lang
kitallis [kitallis!~kitallis@122.172.248.47] has joined #ruby-lang
frangiz [frangiz!~frangiz@user26.77-105-206.netatonce.net] has joined #ruby-lang
Locke23rus [Locke23rus!~quassel@188.162.162.83] has joined #ruby-lang
neology [neology!~neology@115.119.250.230] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@123.201.117.198] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
thone [thone!~thone@g225087026.adsl.alicedsl.de] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
dc5ala [dc5ala!~dc5ala@stgt-4d038ae3.pool.mediaWays.net] has joined #ruby-lang
brushbox [brushbox!~brushbox@174.24.233.220.static.exetel.com.au] has joined #ruby-lang
whatasunnyday [whatasunnyday!~sunny@209.10.211.114] has joined #ruby-lang
apeiros_ [apeiros_!~apeiros@194.209.75.58] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
kaiwren [kaiwren!~KaiWren@122.172.248.47] has joined #ruby-lang
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
gnufied [gnufied!~gnufied@122.172.224.153] has joined #ruby-lang
mytrile [mytrile!~mytrile@94.26.28.135] has joined #ruby-lang
<heftig>
ri Encoding.default_external says: File data written to disk will be transcoded to the default external encoding when written.
<heftig>
that doesn't actually seem to be the case? Files have no external encoding by default
cyri_ [cyri_!~cyri_@236.200.72.86.rev.sfr.net] has joined #ruby-lang
roadkith [roadkith!~kith@unaffiliated/kith] has joined #ruby-lang
neology [neology!~neology@115.119.250.230] has joined #ruby-lang
Indian [Indian!~Indian@unaffiliated/londonmet050] has joined #ruby-lang
Weems [Weems!~the@nat.resnet.mc.edu] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
WillMarshall [WillMarshall!~willmarsh@ppp121-44-40-197.lns20.syd6.internode.on.net] has joined #ruby-lang
retro|cz [retro|cz!~retro@106.142.broadband6.iol.cz] has joined #ruby-lang
JohnBat26 [JohnBat26!~Eugene@89.175.77.79] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
JoL1hAHN [JoL1hAHN!~nrk@unaffiliated/jol1hahn] has joined #ruby-lang
srbartlett [srbartlett!~srbartlet@124-168-218-42.dyn.iinet.net.au] has joined #ruby-lang
gokulnath [gokulnath!~gokulnath@115.111.177.122] has joined #ruby-lang
molgrew [molgrew!~bozo20@85.182.139.18] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
Pip [Pip!~Pip@176.214.13.82] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
judofyr [judofyr!~judofyr@195.159.219.65] has joined #ruby-lang
<judofyr>
hey folks
<erikh>
ohio
shevy [shevy!~shevy@93-82-139-90.adsl.highway.telekom.at] has joined #ruby-lang
predator117 [predator117!~markus@p508050B3.dip.t-dialin.net] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
predator117 [predator117!~markus@p508050B3.dip.t-dialin.net] has quit [#ruby-lang]
<rippa>
wow
<rippa>
Enumerator#feed
<rippa>
I didn't even know
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
Guest17613 [Guest17613!~davidw@host228-251-static.95-94-b.business.telecomitalia.it] has joined #ruby-lang
<rue>
Hm
<rue>
I wonder which use case prompted that
<rue>
WTF, where is m buffer playback?
<rue>
Fucking znc
TheRealmccoy [TheRealmccoy!~ABHISHEK@114.143.28.60] has joined #ruby-lang
isale-eko [isale-eko!~chatzilla@cpc1-benw3-0-0-cust717.gate.cable.virginmedia.com] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@77.245.32.179] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@p5B03DADF.dip.t-dialin.net] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
enikar [enikar!~gil@cl-140.mrs-01.fr.sixxs.net] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
zmack [zmack!~zmack@78.97.129.175] has joined #ruby-lang
ramonmaruko [ramonmaruko!~marco@122.52.126.66] has joined #ruby-lang
jondot_ [jondot_!~jondot@217.65.39.4] has joined #ruby-lang
<jondot_>
hi all. looking for differences in using open-uri and Net::HTTP.. anyone wondered about that ?
<andrewvos>
jondot_: What?
whatasunnyday [whatasunnyday!~sunny@209.10.211.114] has quit ["Leaving"]
<jondot_>
andrewvos, i want to make a simple get. shoud i use open-uri or Net::HTTP ? (not sure about the tradeoffs)
<andrewvos>
jondot_: You should use HTTParty.
<jondot_>
andrewvos, sorry, i'd also need no external deps
<andrewvos>
jondot_: Why?
<jondot_>
im creating a new rack middleware, and i'd like it if people wouldn't be bothered with having many external deps other than rack itself.
<andrewvos>
jondot_: Meh
<andrewvos>
jondot_: Well I don't know if open-uri is better than Net::HTTP. I do know the latter is completely fucking irritating to use.
empity [empity!~user@mail2.xype.com] has joined #ruby-lang
TheRealmccoy [TheRealmccoy!~ABHISHEK@114.143.28.60] has quit [#ruby-lang]
solars [solars!~solars@clnet-kmu02-090.ikbnet.co.at] has joined #ruby-lang
hbs [hbs!~hbs@port-239.pppoe.wtnet.de] has joined #ruby-lang
<rue>
jondot_: open-uri uses Net::HTTP? It's just a convenience
<jondot_>
yep, thats what i was trying to validate
<rue>
If you can't do what you need to using open-uri, you need to drop down to Net::HTTP (or another abstraction like HTTParty or Faraday)
beiter [beiter!~beiter@manz-590f00ad.pool.mediaWays.net] has joined #ruby-lang
<robgleeson>
I like Net::HTTP, but it has too many APIs to do one thing.
<robgleeson>
I stick to Net::HTTP.start(…)
hbs [hbs!~hbs@port-239.pppoe.wtnet.de] has quit [#ruby-lang]
kryl99 [kryl99!~kryl99@124-148-185-228.dyn.iinet.net.au] has joined #ruby-lang
davidw [davidw!~davidw@apache/committer/davidw] has joined #ruby-lang
rippa [rippa!~splitta@85.158.54.234] has joined #ruby-lang
<erikh>
rue: you gotta set it up
<erikh>
/msg *admin set user keepbuffer 1000
<erikh>
or something like that.
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
hrnt [hrnt!hrnt@wintermute.hrnt.net] has joined #ruby-lang
kryl99 [kryl99!~kryl99@124-148-185-228.dyn.iinet.net.au] has joined #ruby-lang
kryl99 [kryl99!~kryl99@124-148-185-228.dyn.iinet.net.au] has joined #ruby-lang
dave_miles [dave_miles!~davemiles@gatej.thls.bbc.co.uk] has joined #ruby-lang
kryl99 [kryl99!~kryl99@124-148-185-228.dyn.iinet.net.au] has joined #ruby-lang
tekin [tekin!~tekin@cpc8-with5-2-0-cust208.1-4.cable.virginmedia.com] has joined #ruby-lang
snuxoll [snuxoll!~stefan@63.227.129.124] has quit [#ruby-lang]
kryl99 [kryl99!~kryl99@124-148-185-228.dyn.iinet.net.au] has joined #ruby-lang
gianlucadv [gianlucadv!~gianlucad@host61-81-dynamic.245-95-r.retail.telecomitalia.it] has joined #ruby-lang
<jondot_>
is there an easy way to mount rack middleware at a certain path from a config.ru (Rack builder)?
<jondot_>
ack. n/m
gix [gix!~gix@e180023178.adsl.alicedsl.de] has joined #ruby-lang
jondot_ [jondot_!~jondot@217.65.39.4] has joined #ruby-lang
zmack [zmack!~zmack@89.120.101.51] has joined #ruby-lang
<jondot_>
running on Thin, i'm wondering - can my app code make an HTTP request to another endpoint (the same app) ?
<jondot_>
i'm assuming that locks the process
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
joseph_ [joseph_!~joseph@46.33.34.36] has joined #ruby-lang
[1]Kichael [[1]Kichael!~Kichael@70-36-49-167.dyn.novuscom.net] has joined #ruby-lang
abentspoon [abentspoon!~micah@173.247.201.130] has joined #ruby-lang
a3li [a3li!~alex@gentoo/developer/a3li] has joined #ruby-lang
kain [kain!~kain@151.64.233.209] has joined #ruby-lang
mortice [mortice!~Tom@li300-55.members.linode.com] has joined #ruby-lang
troubleman [troubleman!~torbjorn@84-16-208.227.3p.ntebredband.no] has joined #ruby-lang
Keltia [Keltia!roberto@aran.keltia.net] has joined #ruby-lang
schroedinbug [schroedinbug!~schroedin@71-212-191-172.hlrn.qwest.net] has joined #ruby-lang
jalljo [jalljo!jalljo@unaffiliated/jalljo] has joined #ruby-lang
Mchl [Mchl!~Mchl@h1881165560.rev.rootvps.pl] has joined #ruby-lang
spectra [spectra!~spectra@debian/developer/spectra] has joined #ruby-lang
mitchty [mitchty!~mitchty@ec2-50-19-41-37.compute-1.amazonaws.com] has joined #ruby-lang
heftig [heftig!~Jan@archlinux/developer/heftig] has joined #ruby-lang
replore_ [replore_!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
igaiga [igaiga!~igaiga@softbank126126155190.bbtec.net] has joined #ruby-lang
Pip [Pip!~Pip@176.214.13.82] has joined #ruby-lang
Pip [Pip!~Pip@unaffiliated/pip] has joined #ruby-lang
dous_ [dous_!~dous@cm171.sigma67.maxonline.com.sg] has joined #ruby-lang
ConstantineXVI [ConstantineXVI!~constanti@74-138-221-74.dhcp.insightbb.com] has joined #ruby-lang
jensn [jensn!~Jens@167-244-96-87.cust.blixtvik.se] has joined #ruby-lang
replore_ [replore_!~replore@ntkngw298122.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #ruby-lang
kyrylo [kyrylo!~kyrylo@46.118.222.184] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
adambeynon [adambeynon!~adambeyno@82-69-1-211.dsl.in-addr.zen.co.uk] has joined #ruby-lang
kaiwren [kaiwren!~KaiWren@122.172.248.47] has joined #ruby-lang
jordan` [jordan`!~gromit@2001:660:3302:2826:225:90ff:fe20:d9a8] has joined #ruby-lang
esufan [esufan!~nekid@c-24-6-170-1.hsd1.ca.comcast.net] has joined #ruby-lang
mark_locklear [mark_locklear!~jlocklear@ab-tech-lan-to-ab-tech-gw.ncren.net] has joined #ruby-lang
<darix>
jondot_: why not just call that ruby code instead of going through http locally?
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
<jondot_>
darix, i do that too
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
<shevy>
hmm
boodle [boodle!~boodle@174.46.129.34] has joined #ruby-lang
<shevy>
is it possible to learn C via Ruby-C
_rane [_rane!rane@theorycraft.org] has joined #ruby-lang
<erikh>
probably not a good idea
denysonique_ [denysonique_!u484@gateway/web/irccloud.com/x-lmjiznelifmdxajf] has joined #ruby-lang
<esufan>
which linux environment of ubuntu shuold i install
<erikh>
what version of ubuntu?
<robgleeson>
what's Ruby-C, shevy?
<esufan>
ubuntu, xubuntu, kubuntu, or mythbuntu; 11.10
<erikh>
robgleeson: oh, I presumed he meant the MRI source
<esufan>
windows installer
<robgleeson>
oh ok
<erikh>
esufan: whatever you want; this is a ruby channel, not an ubuntu one
<erikh>
I think #ubuntu exists thoug
Weems [Weems!~the@nat.resnet.mc.edu] has joined #ruby-lang
Weems [Weems!~the@unaffiliated/weems] has joined #ruby-lang
<darix>
esufan: opensuse
jondot_ [jondot_!~jondot@217.65.39.4] has joined #ruby-lang
hexo [hexo!hexo@hackerspace.base48.tk] has joined #ruby-lang
<erikh>
bias
<esufan>
if i want to use a one of those buntu's for ruby
<esufan>
which should I? because I still want to use a windows installer
<erikh>
esufan: this is not a linux channel
huugsy [huugsy!~huug@ip-83-134-136-197.dsl.scarlet.be] has joined #ruby-lang
<robgleeson>
silverlight seems to use way less CPU
<erikh>
on mac?
<robgleeson>
ya
<erikh>
that's .... pretty much fail by adobe
<erikh>
flash has always been bad on mac
<robgleeson>
yeah, drains battery like a mofo
<robgleeson>
netflix are using it to stream video
<erikh>
yeah.
<erikh>
man, netflix's ops team is amazing
<erikh>
I'd give a testicle to work with them for a few months
<robgleeson>
haha yeah I bet
jasox_ [jasox_!~jasox@178.239.26.139] has joined #ruby-lang
<robgleeson>
It launched in Ireland a few days ago
<robgleeson>
loving it so far
<erikh>
they have this service called the chaos monkey that just randomly terminates hosts
<erikh>
the idea being that they need to add more resilience if it trips any monitors
<erikh>
I mean, being at that level with ops is pretty f'n amazing
<robgleeson>
for sure
<robgleeson>
i think building stress tools would be a awesome thing to do
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
<erikh>
oh yeah, I get to write a lot of tooling for work, but nothing at that level
<shevy>
robgleeson yeah MRI things... I am reading through ancient things again like http://onlamp.com/pub/a/onlamp/2004/11/18/extending_ruby.html and wonder whether I shouldn't learn C properly the hard way, but then again I also am not super-motivated either :( Ruby-C alone seems like more fun
tommyvyo [tommyvyo!~tommyvyo@38.123.129.115] has joined #ruby-lang
<erikh>
maybe just write a small C program?
hallucinations [hallucinations!~hallucina@59.144.55.130] has joined #ruby-lang
<shevy>
hmm yeah
<shevy>
one that I can perhaps extend over a longer time
<erikh>
if you're going to extend a scripting language, lua has a much, much simpler C api
<erikh>
lua's C api is downright sexy
<erikh>
like in the girl next door way
<erikh>
you know, the kind where you know what the game is but you certainly aren't gonna risk digging underneath the hood to find out
tomzx [tomzx!~tomzx@dsl-156-68.aei.ca] has joined #ruby-lang
<rue>
…Sounds like you had some weird people next door.
<erikh>
yeah
<erikh>
sleep has been at a premium the last month or so
<erikh>
starting to wear on me
tekin [tekin!~tekin@88-96-65-166.dsl.zen.co.uk] has joined #ruby-lang
niklasb [niklasb!~codeslay0@p5B310CDC.dip0.t-ipconnect.de] has joined #ruby-lang
<rue>
You should remedy the situation
<erikh>
it's getting better
<molgrew>
wear eyeball glasses
<erikh>
heh
uncle_billy [uncle_billy!~Adium@static-224.service.govdelivery.com] has joined #ruby-lang
toretore [toretore!~toretore@crr06-3-82-231-12-81.fbx.proxad.net] has joined #ruby-lang
MistyM [MistyM!~MistyM@50.72.70.192] has joined #ruby-lang
indstry [indstry!~apple@c-71-238-98-243.hsd1.mi.comcast.net] has joined #ruby-lang
yfeldblum [yfeldblum!~Jay@pool-71-246-76-76.bltmmd.east.verizon.net] has joined #ruby-lang
thrcka [thrcka!~thrcka@ip-89-102-34-33.net.upcbroadband.cz] has joined #ruby-lang
robgleeson [robgleeson!~rob@subtle/contributor/robgleeson] has joined #ruby-lang
crankharder [crankharder!~crankhard@ip68-100-194-214.dc.dc.cox.net] has joined #ruby-lang
andrewhl [andrewhl!~andrew@24-246-14-26.cable.teksavvy.com] has joined #ruby-lang
bglusman [bglusman!~bglusman@c-68-80-200-61.hsd1.pa.comcast.net] has joined #ruby-lang
rushed [rushed!~rushed@99-73-225-9.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
dv310p3r [dv310p3r!~dv310p3r@host-208-68-238-122.biznesshosting.net] has joined #ruby-lang
cek [cek!~cek@crius.pantheon.fused.net] has joined #ruby-lang
<cek>
module Mod; def meth; end; end; Mod.method(:meth) doesn't work
<cek>
how do I get ref to meth so I can pass it as proc?
<andrewvos>
def meth; "not even once"; end
<andrewvos>
cek: If you just want to call the method you can store the object and the method name.
<andrewvos>
cek: Then object.send("meth".to_sym)
Heimidal [Heimidal!~heimidal@c-67-165-197-126.hsd1.co.comcast.net] has joined #ruby-lang
<cek>
well, yeah, but i want to be concise
<andrewvos>
Hmm
<andrewvos>
I can't remember the syntax
<andrewvos>
meth = Proc.new { object.meth }
<andrewvos>
cek: Then meth.call
<cek>
too long, and doesn't account for args
<andrewvos>
cek: It sounds like you know the anser?
<cek>
and should actually be lambda instead of proc
<andrewvos>
answer*
<cek>
yea, i just can't get a ref to the module class method
jbsan [jbsan!~jbsan@c80-216-213-130.bredband.comhem.se] has joined #ruby-lang
malev [malev!~malev@190.210.138.237] has joined #ruby-lang
enebo [enebo!~enebo@75-168-50-253.mpls.qwest.net] has joined #ruby-lang
takaokouji [takaokouji!~takaokouj@nat35.mable.ne.jp] has joined #ruby-lang
<rue>
Aaargh HTML
<rue>
Can't even get a pre block to actually format right :>
<andrewvos>
rue: What?
<andrewvos>
rue: Use HAML
<rue>
This HTML page is like 100 bytes
<andrewvos>
rue: HTML is for people that still try to justify Javascript vs Coffeescript
<andrewvos>
rue: But on a more serious note, I liked that article you commented on on Twitter about Facebook privacy etc.
<rue>
Oh, the Moglen rant?
spleeze [spleeze!~Spleeze@173-15-131-114-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #ruby-lang
<andrewvos>
rue: Yes
<andrewvos>
rue: I agree with a lot of it.
<andrewvos>
rue: We just let our governments cross the line more and more and it starts to seem normal what they do.
<apeiros_>
andrewvos: so for everybody who's right? :)
<andrewvos>
apeiros_: Not sure what part you mean?
<andrewvos>
The privacy rant or Coffeescript?
havenn [havenn!~skipper@pool-72-67-31-69.lsanca.fios.verizon.net] has joined #ruby-lang
<pigdude>
coffeescript lol
<Tasser>
javascript lulz
<apeiros_>
andrewvos: html & js of course :)
robotmay [robotmay!~robotmay@94.30.13.228] has joined #ruby-lang
<Tasser>
apeiros_, no coffee?
<apeiros_>
real man don't need no coffee…
<apeiros_>
*men
<Tasser>
I'd take coffeescript over coffee any time ;-)
<pigdude>
i like my shit without additional layers of shit thank you very much
Spooner [Spooner!~Miranda@host-78-144-139-130.as13285.net] has joined #ruby-lang
<Tasser>
pigdude, ah well, it's still shit, it just collects how shit is usually done and puts that in a bucket...
<Tasser>
s/shit/javascript/
dejongge [dejongge!~jonke@pD9E0C04D.dip0.t-ipconnect.de] has joined #ruby-lang
<rue>
andrewvos: HAML doesn't work so great for trying to get preformatted text out :/
<rue>
But, really, I just don't understand where plain old regular HTML is getting this extra whitespace
<Spooner>
rue: It is fine if you run it in ugly mode.
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has joined #ruby-lang
dazoakley [dazoakley!~dazoakley@hocuspokus.vm.bytemark.co.uk] has quit [#ruby-lang]
<rue>
Is it?
nougad [nougad!~feitel@z750d.pia.fu-berlin.de] has joined #ruby-lang
<nougad>
Hi, does anyone know if UDPSocket#send is threadsafe? (1.8.7 & 1.9.3)
rippa [rippa!~rippa@109-161-72-133.pppoe.yaroslavl.ru] has joined #ruby-lang
mhi^ [mhi^!~mhi@home.zedat.fu-berlin.de] has joined #ruby-lang
<Spooner>
rue: I have found it so (for code blocks). It removes all haml indentation in the output and so any indentation you have past where you in haml is preserved. If that makes any sense :D
<andrewvos>
rue: Yeah it can be irritating. I like using markdown for content type stuff. Like blogging for example. Markdown is perfect for that.
Okasu [Okasu!~okasu@s094127069016.m.truevds.ru] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
roha [roha!~phelot@84-75-49-50.dclient.hispeed.ch] has joined #ruby-lang
workmad3 [workmad3!~workmad3@cpc1-bagu10-2-0-cust81.1-3.cable.virginmedia.com] has joined #ruby-lang
tcurdt [tcurdt!~tcurdt@p5B03DD21.dip.t-dialin.net] has joined #ruby-lang
Cool_Fire [Cool_Fire!~coolfire@145.116.233.201] has joined #ruby-lang
<Cool_Fire>
Morning
<Cool_Fire>
I need to implement a hashing algorithm that requires the use of an unsigned int. Any ideas how I can do this?
<judofyr>
Cool_Fire: what? in Ruby?
<Cool_Fire>
Yes
<Tasser>
I can't remember ruby having unsigned ints
<Cool_Fire>
Normally it's dynamically typed
<judofyr>
Cool_Fire: you don't need anything special to deal with "unsigned ints"
<judofyr>
Ruby handles all types of ints dynamically
<Cool_Fire>
But how does it know I want unsigned rather than signed?
<Cool_Fire>
Because if it uses a signed int, the hash won't be correct
<judofyr>
you can't decide that
<judofyr>
ehm
<judofyr>
then you can't implement it in Ruby
<judofyr>
Ruby doesn't have integer overflow
<Cool_Fire>
Well that's a bit of a kick in the balls :\
<Tasser>
Cool_Fire, there's a C api
<judofyr>
you can usually fake it with modulo: %
<Cool_Fire>
Tasser: can't use it. It needs to run on sketchup's ruby console
<Cool_Fire>
The hashing algorithm is part of a plugin I need to write a specific file format
<Tasser>
Cool_Fire, you compile and require c api stuff
RomyEatsDrupal [RomyEatsDrupal!~stickycak@cpe-74-64-122-182.nyc.res.rr.com] has joined #ruby-lang
RomD` [RomD`!~Roman@nrbg-4d076eac.pool.mediaWays.net] has joined #ruby-lang
<codatory>
Yep; I don't see a way to do it without at least writing a C plugin to give you an unsigned_int data type
<Cool_Fire>
Tasser: at that point I then might as well write it in C and just execute it as a subroutine
looopy [looopy!~looopy@c-68-34-92-100.hsd1.md.comcast.net] has joined #ruby-lang
uncle_billy [uncle_billy!~Adium@static-224.service.govdelivery.com] has quit [#ruby-lang]
MistyM [MistyM!~mistym@50.museumforhumanrights.com] has joined #ruby-lang
ksinkar [ksinkar!~ksinkar@115.242.94.74] has joined #ruby-lang
<codatory>
There's a method at least in Ruby Trunk for a experimental API to get unsigned integers
ltd [ltd!~z@zx.io] has joined #ruby-lang
<pigdude>
do you think collect or map, select or filter, are more idiomatic? i usually see collect, select
<pigdude>
actually i'm silly there is no filter
<pigdude>
but collect <=> map?
<codatory>
collect is an alias to map
<pigdude>
yes i am aware
cynosure [cynosure!~cynosure@centrumnet.hu] has joined #ruby-lang
<codatory>
I use Collect when I'm collecting a single data type, and Map when re-mapping data to fit a new structure for whatever needs I might have (like a dropdown menu)
JEG2 [JEG2!~JEG2@ip72-198-103-217.ok.ok.cox.net] has joined #ruby-lang
<codatory>
bars = foos.collect(&:bar)
<codatory>
bars = foos.map{|f| [f.bin, f.baz]}
<pigdude>
that makes sense
<pigdude>
what is &:bar? does that invoke bar of each in foo?
<codatory>
Symbol to proc, it expands to {|i| i.bar}
<pigdude>
ok
<pigdude>
thanks codatory
<codatory>
n/p
<pigdude>
my goal is to find a use for Array::combination :^)
<pigdude>
* #combination
<codatory>
I can't think of anything except chunking operations...
Caius [Caius!~Caius@about/apple/macbookpro/Caius] has joined #ruby-lang
<pigdude>
i start ruby job next week and refreshing myself w/ api doc, esp for 1.9 as i've only used 1.8.7 professionally before :^)
zmack [zmack!~zmack@89.120.101.51] has joined #ruby-lang
<pigdude>
after two years of wandering in the php/python wilderness :^)
<codatory>
apeiros_: In theory, though I never have luck passing things in
<pigdude>
codatory, haha "FOR SPEED"
<Cool_Fire>
<codatory> There's a method at least in Ruby Trunk for a experimental API to get unsigned integers <- I need it in the sketchup Ruby console :(
<codatory>
I guess that's basically the opposite of find_each
confounds [confounds!~confounds@CPE78cd8e667600-CM78cd8e6675fd.cpe.net.cable.rogers.com] has joined #ruby-lang
imperator [imperator!~Daniel@63-225-247-192.hlrn.qwest.net] has joined #ruby-lang
Marco [Marco!~marco@Marco-2.Kiewit.Dartmouth.EDU] has joined #ruby-lang
saLOUt [saLOUt!~rriemann@naqasl.physik.hu-berlin.de] has joined #ruby-lang
<Spooner>
codatory: you should use #each_slice(5) (#combination will actually run through the same elements many times)
mksm [mksm!~mksm@200-185-227-52.user.ajato.com.br] has joined #ruby-lang
dreinull [dreinull!~dreinull@ip-78-94-220-161.unitymediagroup.de] has joined #ruby-lang
<codatory>
Spooner: Dang, so I still didn't come up with something I could actually use combinations for ;-)
<codatory>
Of course honestly I'd probably use a Queue for that so I could use it across threads
<Spooner>
codatory: anagrams, but then they'd be better with #permutation. *shrugs*
saLOUt [saLOUt!~rriemann@naqasl.physik.hu-berlin.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
<Spooner>
Cool_Fire: Problem with DIY is that if I want a hash value for something, I just use #hash in Ruby. Presumably you are doing something for fun or is it to be compatible with a hashing system that is on a remote server or something?
<Guest37669>
its amazing how pre-1.9.3 Date performance sucks compared to 1.9.3
mksm [mksm!Guest37669@pdpc/supporter/professional/mksm] has joined #ruby-lang
beiter [beiter!~beiter@manz-590f00ad.pool.mediaWays.net] has joined #ruby-lang
looopy [looopy!~looopy@pool-141-156-60-133.washdc.btas.verizon.net] has joined #ruby-lang
TheDracle [TheDracle!~jthomas@206.71.84.68] has joined #ruby-lang
brianpWins [brianpWins!~brianpWin@S01060014bf8930ea.vc.shawcable.net] has joined #ruby-lang
<Cool_Fire>
Spooner: jenkins on at a time hash for writing a specific file 3D model format
<TheDracle>
I'm using gems to install the 'watir' gem on linux, but for some reason it's trying to install the win32-api gem.
<TheDracle>
Any suggestions?
<Spooner>
TheDracle: "Watir is a Ruby library that works with Internet Explorer on Windows." implies it isn't supposed to work on Linux.
<TheDracle>
Spooner, Strangely they have this 'Cross Platform' logo on their site.
<TheDracle>
Lol.
<TheDracle>
Maybe they only support windows though.
srbaker [srbaker!~srbaker@184.66.82.213] has joined #ruby-lang
<Spooner>
Well, do the win32-gems break when you install them? Probably just doesn't use them except on Windows, but they didn't want to release platform-specific gems?
<Spooner>
Ah, " Whilst Watir supports only Internet Explorer on Windows, Watir-WebDriver supports Chrome, Firefox, Internet Explorer, Opera and also running in headless mode (HTMLUnit)." - try that version instead? (Watir-WebDriver)
ConstantineXVI [ConstantineXVI!~constanti@216-24-48-34.ip.win.net] has joined #ruby-lang
lsegal [lsegal!jinx@modemcable249.109-177-173.mc.videotron.ca] has joined #ruby-lang
<Cool_Fire>
href: Excellent suggestion. Completely forgot that
<href>
thanks. but wasn't me.
<Spooner>
IRC auto-complete on names hates us all.
<kyrylo>
No offense, but it sounds like "rubbish" to me :p
<pigdude>
kyrylo, that's OK
<pigdude>
kyrylo, it's a fun project. the idea of a shell you can customize with ruby sounds nice to me (i know bash very well and don't particularly like it)
<pigdude>
kyrylo, and i couldn't locate a similar project
<mksm>
there was rash
<mksm>
or ruby-bash
<kyrylo>
pigdude, what I meant to say is that it's not the best name for a project. And yes, "Ruby Shell" is really sensible name, but definitely not the best (in your case).
<shevy>
pigdude only valid ruby syntax is accepted for it?
<pigdude>
shevy, i'm still thinking about that. i'll probably parse as ruby except for input/output redirection, pipe, etc that people are used to
<pigdude>
rippa, maybe. but i think i can make it simple enough
<rippa>
not a pure ruby, not a bash
<rippa>
some kind of twisted monstrosity
<rippa>
jk
<shevy>
hmm no
<pigdude>
rippa, well, for instance, `cd` should be `cd` unless you have def cd
<shevy>
if it would have bash-like syntax then it would be convenient
<pigdude>
rippa, just like bash really
<shevy>
well, you can use plenty aliases of course
<pigdude>
yea
<shevy>
but how to put something into background?
<shevy>
in bash you append &
<pigdude>
i see no reason to not replicate that
<shevy>
ahhh :D
<pigdude>
basically bash with ruby as scripting language :^)
<pigdude>
it's a big undertaking, i'm sure i'll fail ^^
burgestrand [burgestrand!~burgestra@h-45-63.a155.priv.bahnhof.se] has joined #ruby-lang
<shevy>
well
<shevy>
you'll succeed when it works on windows
<shevy>
because even a crappy shell would beat cmd.exe
<mksm>
cmd is awesome ... you can "cd" and "dir" ... it has it all
<mksm>
:D
<shevy>
what the heck is "dir" :P
<shevy>
pigdude, a replacement for microsoft powershell in ruby would be nice
<rippa>
dir is kinda like ls
<mksm>
dir /w was the best thing in DOS
<shevy>
what's the /w doing? red flash warnings?
<shevy>
hmm I liked DOS back then... I could start games... ultima.exe !!!
<rippa>
wide list format
<rippa>
loadhigh mouse.com
<shevy>
hehe
<rippa>
device=c:\dos\emm386.exe ram
<rippa>
dos=high,umb
<shevy>
POWERFUL DOS MAGIC
<rippa>
dos-fu
<rippa>
aikidos
<mksm>
qemm.exe!
<erikh>
desqview
<erikh>
ran a bbs on that and os/2
<rippa>
stop stimulating my nostalgia glands
<erikh>
they tingle
* imperator
remembers qemm, had to have it for gaming
<pigdude>
hehe cmd.exe
<pigdude>
it's been years since i was stuck on Windows, but I recall Console2 was not too shabby, esp. when coupled w/ cygwin
<pigdude>
i know nothing about PowerShell though
<shevy>
it's a cool idea!
<pigdude>
:^)
<mksm>
imperator, you sure did but i have no idea what it did
<shevy>
but you'd probably need an object oriented pipe in your shell
<pigdude>
i'm going to make all builtins objects
<erikh>
put your objects in the pipe and smoke it
<pigdude>
hehe
Marco [Marco!~marco@Marco-2.Kiewit.Dartmouth.EDU] has joined #ruby-lang
codatory [codatory!~codatory@IP-216-37-19-2.nframe.net] has quit ["Bye!"]
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
<imperator>
mksm, used it to tweak memory settings mainly
ryanf [ryanf!~ryanf@5.sub-174-253-241.myvzw.com] has joined #ruby-lang
Jake232 [Jake232!~textual@5e0e5331.bb.sky.com] has joined #ruby-lang
troublem1n [troublem1n!~torbjorn@84-16-208.227.3p.ntebredband.no] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
jensn [jensn!~Jens@c-83-233-145-148.cust.bredband2.com] has joined #ruby-lang
dkingofpa1 [dkingofpa1!~Adium@chihiro.xforty.com] has joined #ruby-lang
<dkingofpa1>
How do I keep rdoc from automatically linking a url in a README.rdoc file?
darkf [darkf!~darkf_dix@unaffiliated/darkf] has joined #ruby-lang
jasox [jasox!~jasox@178.239.26.139] has joined #ruby-lang
benanne [benanne!~rijdier@ip-213-49-87-109.dsl.scarlet.be] has joined #ruby-lang
outoftime [outoftime!~mat@ip-160-79-101-2.autorev.intellispace.net] has joined #ruby-lang
<dreinull>
how do I let a method fail on respond_to? but still execute it?
<Cool_Fire>
If it fails on respond_to, that's usually an indication that you can't
<Cool_Fire>
You should still be able to try and call it normally, but you'll end up with a NoMethodError
<dreinull>
in that case I still want it
<Cool_Fire>
Why can't you just call it normally then?
<Cool_Fire>
I mean, what's stopping you from just doing object.method()
<mksm>
I'm using rspec. I have for method foo and i want to run the same tests for method bar
<dreinull>
ah, respond_to_missing should do
<mksm>
*have tests for
<mksm>
is it possible to "call" a set of tests from within a test?
Clordio [Clordio!~textual@c-174-52-72-79.hsd1.ut.comcast.net] has joined #ruby-lang
cjs226 [cjs226!~cjs226@99-61-65-242.lightspeed.austtx.sbcglobal.net] has joined #ruby-lang
<dkingofpa1>
Does anybody use rdoc for README documentation? Or should I be using something else?
<shevy>
dkingofpa1 dunno, I kinda keep my READMEs as "README" without any special extra formatting inside and less than 80 chars per line
<shevy>
quite some use... I think README.md
<dkingofpa1>
shevy: Do people use rdoc for anything?
naz [naz!~n@70.44.2.190.res-cmts.bus.ptd.net] has joined #ruby-lang
<shevy>
dkingofpa1 guess so ... in other people's ruby code I often see things like
<shevy>
# :nodoc:
<shevy>
or like that
<shevy>
:)
<dkingofpa1>
shevy: So it's common to use rdoc for code, but markdown for README files? Just trying to figure out what I should be using…ruby newbie.
<burgestrand>
I use YARD for documenting my code, markdown for writing articles, readmes and similar.
<burgestrand>
dkingofpa1: ^
<shevy>
dkingofpa1 dunno, I like markdown. I dont really use rdoc for anything though... for some reason I grew fond of writing documentation in a tutorial style
<dkingofpa1>
shevy, burgestrand: thanks guys, that info helps
<Foxmaster>
hi all I have a problem changing the content of a xml file, what I would like to do is set variables in the xml and use puts and write a new file where the variables is replaced with the right valus
<manveru>
Foxmaster: nokogiri
skryking [skryking!~skryking@76-245-244-209.lightspeed.cicril.sbcglobal.net] has joined #ruby-lang
<Foxmaster>
yeah I look at it but I simply don't understand how to do it