<banister`sleep>
^ example of an instance method on meta^2 class of a Class being invoked as a class method
<banister`sleep>
in 1.8
<banister`sleep>
so yeah its class pointer points to itself
<echoprinter>
I am trying to understand nested loops by getting this program to work. I'd like to use the each do way of looping, if possible. Right now the loop executes all of the 1st loop, then 2nd...etc...I'd like to do, execute 1st loop 1 time, then fall down to 2nd loop one time...etc. http://www.pastie.org/2871260
<banister`sleep>
echoprinter: i dont believe u
<judofyr>
banister`sleep: hm…
<judofyr>
banister`sleep: but why does it only work after meta^2?
<banister`sleep>
judofyr: cos ruby 1.8 is spooky
<banister`sleep>
;)
<banister`sleep>
i show the diagram here
molgrew joined #ruby-lang
<judofyr>
banister`sleep: okay, but I mostly care about 1.9…
<judofyr>
what's the class pointer of a metaclass in 1.9?
<banister`sleep>
judofyr: yeah that's not true of 1.9
<banister`sleep>
judofyr: ok, if we have: class A; end; then A.singleton_class.actual_class points to the meta-meta class of A
zmack joined #ruby-lang
<judofyr>
def Class.foo; p 1; end; Class.new.singleton_class.foo
<judofyr>
banister`sleep: that doesn't make sense. where does the meta-ness stop?
<judofyr>
it can't always be the meta-class of itself
<banister`sleep>
judofyr: it stops there at the meta-meta-class of A
<banister`sleep>
judofyr: cos the class pointer of meta-meta-class of A points to the meta-meta class of A
<banister`sleep>
fuck
<banister`sleep>
i mean the meta-meta class of Class
<judofyr>
so, A.singleton_class.singleton_class will create the meta^3-class too?
<banister`sleep>
judofyr: Yeah
<banister`sleep>
in fact it does something weirder than that, iirc, it creates like two levels of new metaclasses at a time
<banister`sleep>
i remember finding how weird that was, so if you explicitly call singleton_class on the meta^2 class of A, then it creates meta^3 and meta^4 at the same time
<judofyr>
banister`sleep: and the superclass of a metaclass always points to the metaclass to the superclass
jacky123 joined #ruby-lang
<banister`sleep>
if you gem install 'mult' though, then you can look at the class pointers without creating new metaclasses
<judofyr>
banister`sleep: and when you call it on the meta^4-class?
<banister`sleep>
judofyr: Yeah exactly so it actually creates a whole new geneartion of metaclasses for all the superclasses too
<banister`sleep>
judofyr: it'll create meta^5 and meta^6 iirc
<judofyr>
banister`sleep: ERROR: Failed to build gem native extension
<judofyr>
banister`sleep: doesn't it work in 1.9.3?
<banister`sleep>
judofyr: only works on 1.9.2
<banister`sleep>
nah 1.9.2 sorry
<judofyr>
bad banister`sleep!
<banister`sleep>
1.9.3 closed off some of the evil private api i was using ;)
<judofyr>
bad 1.9.3!
<banister`sleep>
hehe
<banister`sleep>
yeah, so if you get it installed, just call actual_class to view the content of the actual RBASIC(obj)->klass pointer
<banister`sleep>
it wont create new shit like rb_singleton_class does
<judofyr>
banister`sleep: doesn't work well with included modules
<judofyr>
ICLASSes?
<judofyr>
is that what they are called?
<banister`sleep>
yeah
<banister`sleep>
so you're calling actual_class on an included module?
<banister`sleep>
i woud have thought that would just return the actual module
<judofyr>
banister`sleep: class A; include Enumrable; end; A.actual_super
<whitequark>
tobiasvl: nope, it's some bit of perl madness
<tobiasvl>
hehe
<whitequark>
I wrote just the frontend
<tobiasvl>
perl to log ruby
<tobiasvl>
is the frontend code anywhere?
<whitequark>
tobiasvl: will be in a second
<tobiasvl>
cool
<whitequark>
just need to set up a repo
<sirfilip>
throw in the perl as well
<whitequark>
yeah
<tobiasvl>
yes please
<sirfilip>
cool it will be in my bookmarks
<banister`sleep>
whitequark: that log isant accessible from google though is it?
leopard_me joined #ruby-lang
<banister`sleep>
whitequark: a lot of people (me included) do not like to be logged and have their messages searchable later on in google
<whitequark>
banister`sleep: I can put a robots.txt there
<whitequark>
no problem
<whitequark>
just put that URL somewhere for it to be of any use
<judofyr>
whitequark: inspired by irclogger.com?
<whitequark>
judofyr: yep. I took the design, but the code was _awful_
<banister`sleep>
cool, i think it's also against freenode policy to log a channel without indicating in the channel topic, but maybe tha tonly applies to logs that are searchable via google
<whitequark>
this started as a fork
<whitequark>
but I eventually rewrote almost each line of code
<whitequark>
or maybe really each
<banister`sleep>
sometimes it's nice to be able to talk shit in a channel
<banister`sleep>
without having every rubbish comment you make searchable later on by potential employers ;)
mnoble left #ruby-lang
<banister`sleep>
whitequark: ^
<whitequark>
banister`sleep: I'm not against forbidding google. I just want the tool I did for this very channel to be useful for its participants
<rue>
Fuck all that :P
<whitequark>
*I wrote
<rue>
It's the internet. Unless expressly designated private, it's not. And probably not then either
<tobiasvl>
yeah who cares really
<tobiasvl>
make an XMPP conference room on an encrypted server
<rue>
No, use NODE.JS
<rue>
FOR EVERYTHING
<lianj>
huh
<whitequark>
rue: :D
<rue>
banister`sleep: I've got 7-9 years worth of logs… MUHAHAHA
<banister`sleep>
tobiasvl: i care, ive had ex-girlfriends google me and confront me with some of my off-hand irc comments, i dont mind being logged but i like to be told im being logged in the channel topic so i know to moderate myself :)
<banister`sleep>
tobiasvl: that's also freenode policy IIRC
whoops joined #ruby-lang
<rue>
banister`sleep: That's a social problem, not a technical one :D
<tobiasvl>
banister`sleep: sure, but anyone here can upload their logs anywhere
<bshelton>
Hi, I'm experiencing a strange issue in Ruby 1.9.3 on OSX Lion and wondering if I should submit a bug report? I've tried this on a couple machines now, with my own build, and with rvm, and this crashes https://gist.github.com/1370269
<whitequark>
but I actually want to hear from channel op or whoever decides that
<kalleth>
seriously, anyone who has an issue with that kind of thing is a paranoid nutter
yfeldblum joined #ruby-lang
<kalleth>
ps, whitequark, cool app
<whitequark>
thanks :)
<echoprinter>
If you're using numbers in you programs, when printing to the screen, don't you need to use print num2.to_s. ? ..just making sure I understand this.
<banister`sleep>
kalleth: yeah you're wrong
<kalleth>
banister`sleep: yeah you're wrong
dfr|mac joined #ruby-lang
<kalleth>
see how this works?
mccraig joined #ruby-lang
<banister`sleep>
kalleth: i'm not paranoid when i've experienced actual negative effects from being logged and the logs published publicly without my knowledge
timbleck joined #ruby-lang
<samuelkadolph>
Sounds like you need less stalker girlfriends
<kalleth>
in ~13years on the interwebs and freenode, i have never once cared if i've been logged, or cared if anyone googles me and finds anything
darkf joined #ruby-lang
<kalleth>
i've had far more problems from drunk facebook photos
<samuelkadolph>
lol
<samuelkadolph>
That's from their Philosophy pages not actual policy
<kalleth>
whitequark: i think it more likely this conversation on both sides is the reason people sometimes don't tolerate "internet people"
<samuelkadolph>
It's a guide not rules
<kalleth>
(i include myself in that definition)
<samuelkadolph>
Taken out of context much?
<whitequark>
kalleth: that too, yes.
<bshelton>
MistyM: Thanks for checking. Seems to be Lion only, I think it has something to do with the SSL libraries. If webrick is loaded last, as in https://gist.github.com/1370276, it works. Very strange.
<whitequark>
ok, I did a small UI update. hopefully it won't break something like Opera.
<samuelkadolph>
Fuck Opera
rippa joined #ruby-lang
<samuelkadolph>
bshelton: add to your gist the error
<bshelton>
samuelkadolph: Thanks. I'll jump in on that thread as well. At least it's not just me :)
<whitequark>
lianj: yep, pretty stable
abuiles joined #ruby-lang
ammar joined #ruby-lang
<whitequark>
lianj: full Array/Enumerable (through no fibers) and a good slice of other stdlib methods. all core language features work, too
akahn joined #ruby-lang
<lianj>
some test suites?
<whitequark>
lianj: last time I ran it over MRI test suite it was close to 70%
<whitequark>
I don't have IO and friends, for obvious reasons
<whitequark>
that's why
<whitequark>
there are still some deep-lurking bugs which prevent me from running rubyspec
<samuelkadolph>
bshelton: Add the output of otool -L /usr/local/ruby193/lib/ruby/1.9.1/x86_64-darwin10.8.0/openssl.bundle to the gist (wrap it in ``` so it shows up in a pre tag)
<whitequark>
it also uses not-very-trivial to implement in JS apis in some places
<whitequark>
e.g. I have a shim for JS regexen, but integrating Oniguruma even into node is a real pain
<whitequark>
JS ones are way too simplified
dkannan joined #ruby-lang
saLOUt joined #ruby-lang
<whitequark>
lianj, do you have some interesting use cases?
<lianj>
no just curious
tenderlove joined #ruby-lang
<bshelton>
samuelkadolph: Got it
<samuelkadolph>
bshelton: -L not -l
<bshelton>
samuelkadolph: Sorry, updated the same comment
<samuelkadolph>
There's your problem
<samuelkadolph>
You installed an openssl library
<bshelton>
samuelkadolph: Ah, ports?
mrchrisadams_ joined #ruby-lang
<samuelkadolph>
/opt/local/lib/libssl.1.0.0.dylib is from something else
<samuelkadolph>
Should be /usr/lib/libssl.0.9.8.dylib
znz_jp joined #ruby-lang
<bshelton>
samuelkadolph: Thanks so much for helping me with this. That's from mac ports. Do you happen to know how to put /usr/lib ahead in the lib path during compile?
<MistyM>
Oh yeah, my test of your script was using the system libssl. That should have occurred to me.
<samuelkadolph>
Not sure where you have to point it for darwin/xcode
<bshelton>
MistyM: I'm going to try to compile against the system libs. Should have occured to me too.
<samuelkadolph>
Maybe just ./configure --with-openssl=/usr
<bshelton>
samuelkadolph: Thanks, I'll play around with it for a while and use otool -L to check that I linked to the right one. I think it probably is —with-openssl=/usr
<MistyM>
whitequark: This on a per-message basis, out of curiosity?
<whitequark>
MistyM: yep. I've seen this implemented somewhere, I believe on #rbx or #jruby
<MistyM>
I need a little advice on approaching something.
<MistyM>
whitequark: Ah, OK.
<MistyM>
I want to automate making cuts in videos using ffmpeg. The script is taking in cut times (where to start omitting footage, and where to stop). ffmpeg on the other hand takes times of what you want to *keep*. I feel like it should be really simple to calculate the times to keep (for later joining), but for some reason I'm pulling a blank.
wlbentley joined #ruby-lang
scottschecter joined #ruby-lang
<lianj>
ruby -e 'a = *(0..60); a[2..10] = nil; a[30..45] = nil; a; chunks=[[]]; a.each{|i| i ? chunks.last << i : chunks << [] }; p chunks'
<shevy>
MistyM just implement a class that reverses the time format? like if you keep 20-40, you instead keep 0-19 and 41 up to end-of-file
<kleech>
How do I list the decendents of a class?
<MistyM>
shevy: That works great for a single cut, but I could have an arbitrary number that need to be subtracted from 0..end.
<shevy>
hmm anyone happens to know, when you have defined a prompt for IRB like ... IRB.conf[:PROMPT][:MY_PROMPT] how can you use that prompt in a running IRB?
Mothore joined #ruby-lang
<shevy>
from commandline it would be "irb --prompt my-prompt"
RomyEatsDrupal joined #ruby-lang
<manveru>
in the irbrc?
burgestrand joined #ruby-lang
enikar left #ruby-lang
<Mothore>
Anybody remember the website that allowed users to modify other's code to make it smaller and smaller?
<manveru>
IRB.conf[:PROMPT_MODE] = :SIMPLE
<shevy>
I am trying a very slow, manual transition to 1.9.3 right now :)
<MistyM>
shevy: Awesome! :D
wlbentley joined #ruby-lang
<shevy>
also cleaning up my irbrc while I am doing it
<shevy>
it's amazing what kind of things are in it over the years...
<shevy>
def x; @x ||= ''
<samuelkadolph>
Yeah x!
<judofyr>
fuck yeah x!
<MistyM>
samuelkadolph: Ooh. I hadn't seen each_with_object before - looks handy.
<bshelton>
MistyM, samuelkadolph: Thank you both so much for your help. Compiling against the system ssl libs did the trick.
<MistyM>
bshelton: Awesome, glad that's working for you.
<MistyM>
bshelton: So in that case, maybe it would still be a problem on 10.6 with a Macports SSL?
<infid>
my book says you can use a colon on a one-liner if statement but this is giving me a syntax error: if x == 4: puts 'it is 4' end
<bshelton>
MistyM: That would be my guess. I think a lot of folks use rvm and also need/use mac ports. I use mac ports for shibboleth (much easier to install it that way)
<manveru>
infid: you mean semicolon
<infid>
manveru: my book says colon, must be an error
<robbrit>
lucas: then try manveru's suggestions. i'm fairly certain vim has ruby stuff built-in, i've never had to do anything special to get it to indent properly
<shevy>
vim takes some decades to master
<Rich_Morin>
manveru: Thanks! Unfortunately, my target environment is 1.8.6, and this code fails there...
<manveru>
oh
<shevy>
geany, notepad++, bluefish. The only one I can't stand is gedit ... :)
<shevy>
and emacs but I don't think an OS should be used as an editor anyway
<manveru>
just write your own
<shevy>
hmm
<shevy>
you did that :)
<manveru>
Rich_Morin: no idea about 1.8, haven't done any meta-stuff there for years
<Rich_Morin>
Sadly, this is running under Google SkertchUp.
<manveru>
oh, my
<manveru>
they just went 1.8.6 this year or so
<Rich_Morin>
yep, and they still don't have a full standard library, etc.
<shevy>
sounds like debian
<Rich_Morin>
manveru: FWIW, your hack works on 1.8.7
<shevy>
yay!
<manveru>
missing Binding#eval on 1.8.6 i bet
<Rich_Morin>
The nastygram I get in 1.8.6 is: private method `eval' called for #<Binding:0x29004> (NoMethodError)
<shevy>
manveru is fast
<shevy>
he even anticipates errors on 1.8.6
<manveru>
lol
<Tasser>
wtf... pry uses like 125MB on jruby
<robbrit>
Tasser: i think any script will use 100MB+ in jruby
<Tasser>
my poor memory
<samuelkadolph>
pry is using 20MB for me
butchanton joined #ruby-lang
<Tasser>
lucene (java) + jruby or clucene (C++) + ruby?
<samuelkadolph>
On jruby
<RickHull>
i would guess the former
<Tasser>
samuelkadolph, jre or openjdk?
<samuelkadolph>
The OS X JDK
<Tasser>
jre then
<samuelkadolph>
pry from the command line is using 27MB and jruby by itself uses 7MB
<Tasser>
hmmm
<lucas>
robbrit, manveru: my indenting problem is with http://blop.info/pub/t.rb . I expect the 'end' to be at the start of the line. does it work for you?
rsi joined #ruby-lang
<manveru>
remove the backslash
erics joined #ruby-lang
<manveru>
hm
<robbrit>
lucas: ah yeah, i get the same issue (even without the backslash)
<manveru>
yeah, no idea what's wrong there
<robbrit>
although mine indents the inner part of the block correctly...
<manveru>
it works if you put both strings on their own lines
<joe_>
anyone know what could cause timeout to take longer than expected on a net http request in ruby 1.9.2?
<manveru>
wrong expectations?
<joe_>
manveru, conn_timeout is 2 seconds, i dumped the sec var in the actual timeout method in timeout.rb - but it takes 5-10 seconds for the timeout method in timeout.rb to complete
looopy joined #ruby-lang
livinded joined #ruby-lang
Austin__ joined #ruby-lang
Austin__ left #ruby-lang
Austin__ joined #ruby-lang
Squarepy joined #ruby-lang
Squarepy joined #ruby-lang
wlbentley joined #ruby-lang
Heimidal_ joined #ruby-lang
monkey13_ joined #ruby-lang
nofxx joined #ruby-lang
Carnage\ joined #ruby-lang
looopy joined #ruby-lang
Jake232 joined #ruby-lang
cschneid joined #ruby-lang
<cschneid>
anybody use Mocha? I have a method def: foo(x=1), and want to assert that somebody calls it with no args
echoprinter joined #ruby-lang
<cschneid>
FooClass.any_instance.expects(:foo).with(<.... no args ... > )
<cschneid>
anybody know how to do that?
kitallis joined #ruby-lang
gianlucadv joined #ruby-lang
lonny joined #ruby-lang
amerine joined #ruby-lang
<Defusal>
cschneid, check if the arg is the default value? either the value given as default in the method definition, or if there isnt one given, nil
<cschneid>
Defusal: yeah, problem is that it'ds actually Time.zone.now, I can just stub it out I suppose
Skif joined #ruby-lang
stamina joined #ruby-lang
<cschneid>
eh, stub out Time.zone.expects(:now).... and that shoudl work
<cschneid>
thanks
<Defusal>
ah, well i dont know mocha, but it should act like any other method definition, so you'd probably have to stub it
<samuelkadolph>
skim1776: You shouldn't leave irc after asking questions
<skim1776>
I didn't
robotmay joined #ruby-lang
dragonkh joined #ruby-lang
<apeiros_>
skim1776: um, yes, you did. 3 minutes after asking your question actually.
<apeiros_>
19:30 skim1776: for example, "case str when in array ... end"
<apeiros_>
19:33 skim1776 has left ()
Austin__ joined #ruby-lang
<apeiros_>
also, you shouldn't cross-post. it's rude.
sepp2k joined #ruby-lang
lsegal joined #ruby-lang
jensn joined #ruby-lang
fayimora joined #ruby-lang
senj joined #ruby-lang
steph021 joined #ruby-lang
Skif joined #ruby-lang
MrPunkin joined #ruby-lang
huug joined #ruby-lang
rhinux joined #ruby-lang
skim1776 left #ruby-lang
cirwin joined #ruby-lang
dimebar joined #ruby-lang
curtism joined #ruby-lang
<injekt>
so, ssd <3
<deryl>
afternoon
<injekt>
o/
<deryl>
hey injekt how goes it?
<injekt>
all good man, just got new mbp 2 days early so happy :)
<deryl>
nice! i have the 2011 MBP myself. quadcore i7 2.3GHz + 8GB RAM. Didn't get the SSD though prices were insane
<deryl>
love this thing though
<deryl>
i got the 15" with the hi-res and stuff. what you get?
<whitequark>
deryl: insane huh? what kind of ssd do you want?
<deryl>
whitequark, 500GB
<deryl>
no sense lowering the amount of storage i already have. i only have 40GB free hehe
<whitequark>
ah.
<whitequark>
well, you already have mbp. I doubt that any price may seem insane for you :D
<deryl>
the military paid me a retroactive check for my disability. only way i could afford it
kedare joined #ruby-lang
<whitequark>
oh. sorry
<deryl>
i figured with a quad core and the 8GB RAM I probbly wouldn't have to upgrade for awhile. then i found out the thing can take 16GB of RAM. seriously loving that
srbaker_ joined #ruby-lang
robbrit left #ruby-lang
<deryl>
waiting for the prices to drop below 700 which they are at now. down to around 400
<injekt>
deryl: hi-res antiglare and 128 ssd
<deryl>
i'd pay up to 500 but no more. i'll have to scrimp and save just to reach that
<deryl>
injekt, nice
<injekt>
I dont need a large hd, I have externals and iMac for storage
* whitequark
has a 40gb ssd in his netbook and it's half empty...
<deryl>
man, the VA is killin me! I just want to talk to the damned direct deposit people. sheesh
<deryl>
injekt, my only external i use with TM. 500GB Transcend StoreJet 500GB
<injekt>
deryl: ah, I have 1tb in my iMac, 500 personal drive and a 7tb drive we share at work
<deryl>
actually i lie. I have another 500GB but thats for long term of bulk files
<fayimora>
hey guys, i have this => https://gist.github.com/1371109 . did rake db:migrate and it worked, however when i tried to do rake db:migrate VERSION=0, i got that error,…. Error in the last thing on the file
<deryl>
i have 7 AMD64 DX2350s and 2 DX2250s that I use for the RVM test cluster. (5 nodes, and 2 support infrastructure machines)
<deryl>
they're not used for anything but
<deryl>
the storage machine has 160GB but thats all used by the nodes
yfeldblum joined #ruby-lang
empity joined #ruby-lang
<deryl>
injekt, i actually can't wait til they release 1TB SSD drives with TRIM support that the MBP can handle. from what I'm told by several friends that work at Apple, the Intel SSD drives are the only ones on the market right now that are rated to work within the heat range the MBP puts out, reliably.
<rue>
fayimora: #ror
<deryl>
so sort of limited to that until someone else is rated in the same heat index
Transformer joined #ruby-lang
<injekt>
deryl: aye, im not too bothered about having a large ssd tbh, which is why I opted for the smallest one, I'm the kinda person who likes to boast about a large HD (har har), but who rarely uses 1/4 of it
<injekt>
so I went a little more sensible this time
<injekt>
the SSD is blinding though, I just opened every application on the machine in less than 10 seconds.. which, including imovie, garageband and co, is pretty insane
<deryl>
ahh. yeah i truly do use all of the space. my iTunes lib alone is 125GB and thats not all of my stuff :)
<deryl>
yeah i would love the speed increase
<fayimora>
rue: it is invite only :(, can you invite me?
jensn joined #ruby-lang
<injekt>
my music is all I care about, my movies are spread across 14 tb worth of drives at my fathers house
<rue>
Emh
<rue>
fayimora: Try #rubyonrails then. #ror should be a direct forward
hashbangchris joined #ruby-lang
<deryl>
brb got the va
pabloh joined #ruby-lang
s0ber joined #ruby-lang
curtism joined #ruby-lang
jondot joined #ruby-lang
<jondot>
hi guys. maybe someone experience this. i'm trying to build ruby from source on a blank EC2 instance. ive done the same thing over and again, and now its the first time im getting: "executable host ruby is required. use --with-baseruby option."
<rue>
1.9 needs an existing Ruby to build
<jondot>
quick google says i need to have a ruby existing on the machine, however i don't remember having one when i worked on other machines
Manhose joined #ruby-lang
erics joined #ruby-lang
<whitequark>
rue: how it comes I can just "rvm install 1.9.3" on a fresh debian install without any rubies?
singpolyma joined #ruby-lang
<whitequark>
iirc it builds miniruby first or something like that
<jondot>
wow. ok i have no clue how that fact slipped by me.. i've done over 5 machines now.
<rue>
Possibly by magic
<jondot>
whitequark, yes thats what i thought
nofxx joined #ruby-lang
<whitequark>
jondot: try rvm
<whitequark>
it works for me
<jondot>
no, i'm done installing rvm on production machine
<jondot>
no use for that
<whitequark>
ruby-build then?
scampbell joined #ruby-lang
<jondot>
neither. i do that on dev, but not on production. on prod i install exactly the ruby i need
<jondot>
never mind, i was trigger happy on rbenv and rvm on production.. too much pain :)
<whitequark>
I never encountered any problems with rvm@production
<whitequark>
maybe just luck
<jondot>
mostly is because you dont share a good chunk of the ops with anyone that is not a programmer
<jondot>
in other words, you're an all arounder in what you do, and so would be your team mates
<whitequark>
probably
Jake232 joined #ruby-lang
thone joined #ruby-lang
<whitequark>
jondot, what version are you trying to install?
<whitequark>
and from what source
<jondot>
192, but ok i just installed a base ruby
<whitequark>
basically if you compile a SVN tree or something similar, you need a ruby
<whitequark>
and when you have a release tarball, you don't
<whitequark>
have you downloaded a zip/tarball from github?
<jondot>
from ftp actually.
<whitequark>
url?
<jondot>
i've already installed it, so everything is fine. i'm just disaapointed with myself that i didn't remember that i need a base ruby for that =\. thats what automated provisioning did to my memory i guess
<Jake232>
Is the url of the page stored in the NET:HTTP response object. I need the url, because it could have followed a redirect
Radar left #ruby-lang
looopy joined #ruby-lang
WillMarshall joined #ruby-lang
nofxx joined #ruby-lang
Heimidal joined #ruby-lang
gentz joined #ruby-lang
<manveru>
Jake232: it won't automatically follow redirects
<Jake232>
manveru: But I can set that option, and I want it set. It's just when I reach the final page, I want to know what the final url actualy is
<yorickpeterse>
Net::HTTP doesn't follow redirects itself, you have to manually do that
<yorickpeterse>
(correct me if I'm wrong here)
<samuelkadolph>
It doesn't
<yorickpeterse>
Yeah, thought so
zomgbie joined #ruby-lang
<samuelkadolph>
A redirect isn't valid without a Location header, so start with that
<Jake232>
Ahh, well that's a pain. I'm using typhouses for the parralel web_grab anyway, I'll just use that for the single one also. I can tell that to follow redirects
dfr|mac joined #ruby-lang
<Jake232>
And I figure that Typhouses will have a method of retrieving the final url, I hope so.