whitelogger joined #ruby-lang
Topic for #ruby-langis now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
<banister`sleep> whitequark: ping ping
<whitequark> banister`sleep: i'm here, just a little bit busy
<banister`sleep> whitequark: ah ok, well email me with what you found ok? ill msg you my email address
yorickpeterse joined #ruby-lang
<whitequark> banister`sleep: just a few minutes
<banister`sleep> yorickpeterse: hey yozz
<yorickpeterse> Oh shut up already kiwi :P
<banister`sleep> yorickpeterse: yozza malozza! what's up in holland
<yorickpeterse> shit's cold
<yorickpeterse> Winter is early this year
<banister`sleep> yorickpeterse: didn't you have an indian summer until recently
<banister`sleep> my brother in utrecht seems to imply anyway
<banister`sleep> said it was ridiculously hot
<yorickpeterse> Yeah, it was
amerine_ joined #ruby-lang
roadkith joined #ruby-lang
Asher joined #ruby-lang
mkovacs joined #ruby-lang
hebz0rl joined #ruby-lang
judofyr joined #ruby-lang
thrcka joined #ruby-lang
<judofyr> anyone knows what's the class pointer of a singleton class is?
<judofyr> it seems to be itself
<judofyr> but I don't understand how that could work
<banister`sleep> judofyr: it depends
<judofyr> `def Foo.yay;end; Foo.singleton_class.yay` definitely doesn't work…
<judofyr> banister`sleep: okay?
<banister`sleep> judofyr: in 1.9 IIRC the class pointer of the singleton of a class points to the singleton class of Class iirc
<judofyr> this seems to be relevant
<banister`sleep> judofyr: do u mean the class pointer of a singleton of an object or the singleton of a Class?
<banister`sleep> iirc they're different but ill check now
<judofyr> banister`sleep: singleton of a Class
<banister`sleep> oh ok one sec
<banister`sleep> judofyr: i think yugui did a whole bunch of diagrams on it too
<judofyr> banister`sleep: there's this: http://rhg.rubyforge.org/chapter04.html
<judofyr> Ctrl-F "Class of a class of a class"
<judofyr> I can't make sense of that diagram
<judofyr> if a class of a singleton class is the singleton class itself
<banister`sleep> judofyr:
<judofyr> doesn't that mean you can call methods on the singleton class on the singleton class :S
<banister`sleep> judofyr: Yeah, that's how it worked in 1.8
<banister`sleep> i wrot ea blog about it
<banister`sleep> but 1.9 changed all that
<judofyr> banister`sleep: then why doesn't this work: "class Foo; def self.yay;end;end; class << Foo; yay end"
<banister`sleep> judofyr: ill find yugui's post for u, one sec
<banister`sleep> judofyr: in 1.8 it's like the 2nd level singleton that has that property iirc, not a regular old singleton
<banister`sleep> i think i talk about that in that blog post ^
<banister`sleep> but in 1.9 it's quite different
<banister`sleep> judofyr: not sure if this is it, but u can probably find it around this in her flickr http://www.flickr.com/photos/yugui/3572051631/in/photostream/lightbox/
<judofyr> banister`sleep: that's lovely
saLOUt joined #ruby-lang
<banister`sleep> judofyr:
<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
<judofyr> according to http://www.flickr.com/photos/yugui/3572051631/in/photostream/, it seems to be the metaclass of Class
<judofyr> yeah
<judofyr> this works:
<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
<banister`sleep> oh yeah
<judofyr> banister`sleep: A.actual_class.actual_class # => #<Class:Class>
<judofyr> so a metaclass does never actually point to itself (unless it's the metaclass to Class)
<banister`sleep> yeah
<judofyr> A.actual_class.actual_class.actual_class.actual_class.actual_class.actual_class
<banister`sleep> they fixed that from 1.8, which was just weird, where meta^2 poitned to itself
<judofyr> #<Class:#<Class:#<Class:Class>>> points to itself
<judofyr> until the moment I try to access the singleton class :)
<judofyr> banister`sleep: and the class pointer to a eigenclass (singleton class of an object) points to the class of the object
<jacky123> has anyone used selenium with ruby ?
<banister`sleep> yea
srbartlett joined #ruby-lang
adambeynon joined #ruby-lang
<manveru> aye
StevenRingo joined #ruby-lang
rsi joined #ruby-lang
srbartlett joined #ruby-lang
<solars> hey, can anyone explain this exception to me? https://gist.github.com/d8298538e341b389f4bb
<solars> not sure whats wrong and how to fix that :(
banister`sleep joined #ruby-lang
<Tasser> solars, strange. Got the code to reproduce?
<solars> the ruby stack trace is this: https://gist.github.com/f73f116f2b64ccd9d061
<solars> let me show you the file
<solars> hm, its basically from require 'active_ldap', nothing specific
<solars> guardian file line number 2
<Tasser> solars, it's easier if you provide a script to reproduce the error
AndChat| joined #ruby-lang
<solars> let me try
matti joined #ruby-lang
<solars> hm it seems this is enough: require 'active_ldap'
<solars> with the gemset:
<solars> rvmrc is at the bottom
<manveru> solars: it means you try to use a c ext compiled for 1.8 with a 1.9 ruby
<solars> the gist was the wrong one
<solars> hm
<solars> manveru, do you know how I could fix this then? I assume its json
<manveru> well, you don't need the json gem on 1.9 anyway
<manveru> i guess something still has it dependency
<manveru> so you could try to uninstall it
benanne joined #ruby-lang
thrcka joined #ruby-lang
<solars> alright I'll try that, sec
workmad3 joined #ruby-lang
empity joined #ruby-lang
hebz0rl joined #ruby-lang
Manhose joined #ruby-lang
<Tasser> manveru, what's type 22?
<manveru> no idea
<Tasser> Tdata = 0X0c
<Tasser> hm.
<yorickpeterse> solars: Are you using RVM?
toretore joined #ruby-lang
RomD joined #ruby-lang
<banister`sleep> yorickpeterse: yozzy, do u hvae a tablet computer? i.e ipad or android tab?
jensn joined #ruby-lang
<judofyr> banister`sleep: but I guess we can safely say that the class pointer of a meta^n-class is just some random garbage
<judofyr> it doesn't really matter what it is
dr0id joined #ruby-lang
<yorickpeterse> banister`sleep: nope
woollyams joined #ruby-lang
<banister`sleep> judofyr: yeah, ive only needed to go to the meta^2 class in my code (pry uses the meta^2 class :P)
<banister`sleep> meta^3 would be useless to me though i think
<solars> yorickpeterse, yes rvm
<solars> why?
<yorickpeterse> solars: What version of Ruby are you using?
<yorickpeterse> Try running the following: puts RUBY_VERSION
<solars> 1.9.
<solars> 2
<yorickpeterse> If that spits out "1.8" when you're using 1.9 you need to fix your .bashrc file
<solars> ah
<solars> okay, sec
<yorickpeterse> Make sure the RVM line as at the absolute bottom, reload RVM and try again
<yorickpeterse> I had a similar problem a while ago
srbartlett joined #ruby-lang
<solars> hm no its 1.9.2 in the script
<solars> I think its the above problem with json
<solars> so I'll try that, didn't have time before
<yorickpeterse> That issue usually results in RVM trying to use 1.8 extensions for 1.9, thus giving the errors
heftig joined #ruby-lang
kitallis joined #ruby-lang
pablo_ joined #ruby-lang
<solars> hm seems as if it worked
<solars> but now I have a different problems, also with stacktrace:
<solars> any idea? manveru?
<solars> I had require 'enumerator' for each_slice in it for 1.8
<solars> but I don't think that the method missing thing should generate an exception on that level?
<solars> hmm now its json again
<yorickpeterse> Re-install the gems, seems it's still trying to load 1.8 stuff
kleech joined #ruby-lang
publicvoid joined #ruby-lang
looopy joined #ruby-lang
neoesque joined #ruby-lang
rhinux joined #ruby-lang
dnjaramba joined #ruby-lang
gianlucadv joined #ruby-lang
sirfilip joined #ruby-lang
dhruvasagar joined #ruby-lang
<sirfilip> morning
<banister`sleep> burgestrand: you here?
lonny joined #ruby-lang
woollyams joined #ruby-lang
lenilson_dias joined #ruby-lang
<burgestrand> banister`sleep: yeah
<burgestrand> shit low batter
<banister`sleep> burgestrand: if i send u some scrill would u add a sponsorshp logo to teh site?
<banister`sleep> burgestrand: can i email it to u?
<burgestrand> banister`sleep: I can’t this week; if you still don’t have it up by next tuesday ask me then?
<burgestrand> 22th, that is :)
<banister`sleep> ah jeez the dude will probably be angry by then ;)
<banister`sleep> ah well i'll try for someone else thanks anyway
saLOUt joined #ruby-lang
molgrew joined #ruby-lang
jmeeuwen joined #ruby-lang
ammar01 joined #ruby-lang
5EXAABY6K joined #ruby-lang
michael_imac joined #ruby-lang
michael_mbp joined #ruby-lang
maja joined #ruby-lang
timbleck joined #ruby-lang
scottschecter joined #ruby-lang
mephux joined #ruby-lang
alip joined #ruby-lang
jasiek joined #ruby-lang
KillerFox joined #ruby-lang
sepp2k joined #ruby-lang
michael_mbp joined #ruby-lang
Spooner joined #ruby-lang
hebz0rl joined #ruby-lang
Defusal joined #ruby-lang
Defusal joined #ruby-lang
malev joined #ruby-lang
tomzx joined #ruby-lang
<roadkith> i'm reading php code and they seriously do stuff like <?php } ?>
<roadkith> that hurts
<roadkith> when you're out of luck the opening brace is in a different file
<roadkith> i mean yeah you could probably do that with any language, but to php ppl this seems to be normal?
<heftig> sure, due to its embedded nature
<heftig> you can do the same stuff in embedded ruby
<roadkith> yeah but this looks so wrong
<judofyr> roadkith: it's the same as <% end %> :)
<roadkith> yes and i'd consider that bad style too
<Defusal> HAML FTW :)
<yorickpeterse> gh, HAML
<yorickpeterse> * ugh
<judofyr> Slim!
<judofyr> roadkith: how does your perfect template language look like?
<roadkith> well... in my case its an opensource project written in php i've no control over
SuperTaz joined #ruby-lang
<roadkith> judofyr: i tell the designer in my native language what i want it to look like
<judofyr> roadkith: ehm… how do generate the HTML you want to serve?
<roadkith> thats not my problem anymore then :D
<judofyr> roadkith: so… what are you actually doing? :S telling your designer to create static HTML?
<roadkith> i'm actually reading this mess and trying to figure out what it could mean...
<judofyr> roadkith: well, how would you want it to look like?
<roadkith> basically i want code and html to be separated
<molgrew> he'd know when he saw it
<judofyr> so how do you put the content into the HTML?
<roadkith> i dont know
<roadkith> perhaps just put placehoders somewhere
<roadkith> and then write code which fills placeholders
<judofyr> roadkith: the problem is often that you need more power. e.g. loop over stuff
<roadkith> i understand that
<judofyr> template languages are hard
<judofyr> everyone wants them as small as possible
geekfactor joined #ruby-lang
<roadkith> but <?php } ?>
<roadkith> cmon
<roadkith> there must be different way to do it
<roadkith> also i'm not a dev at all but i would think having a very simple 2nd language might not be bad (for templates)
mark_locklear joined #ruby-lang
<judofyr> roadkith: yup, that's called a template language :)
<roadkith> yes
<judofyr> roadkith: Mustache is pretty nice: http://mustache.github.com/mustache.5.html
<roadkith> but most system seem to use a "full featured" language
<roadkith> like ruby, php, python whatnot
<roadkith> which is probably overkill and tempts programmers to put more logic into templates than would be absolutely necessary
<Defusal> judofyr, thanks!
<Defusal> didnt know about slim, it looks even more awesome than haml :)
<judofyr> roadkith: not really. I don't think any Python-framework defaults to a full featured language
<Defusal> no more haml for me
<roadkith> Defusal: why not? :D
<Defusal> roadkith, cause slim is more awesome?
<roadkith> judofyr: know a forums software which uses one of these then? :D
<judofyr> roadkith: hehehe. in PHP world you're pretty fucked though.
<Defusal> lighter weight, some good features and quite a lot faster
<roadkith> judofyr: exactly :D
<judofyr> Defusal: and I've contributed to it!
<Defusal> judofyr, congrats :D
shevy joined #ruby-lang
BenMatthew joined #ruby-lang
tommyvyo joined #ruby-lang
jaimef joined #ruby-lang
adambeynon joined #ruby-lang
twittard joined #ruby-lang
Weems joined #ruby-lang
jjore joined #ruby-lang
Oloryn_lt1 joined #ruby-lang
fvollero joined #ruby-lang
Cope joined #ruby-lang
ezkl joined #ruby-lang
dbussink joined #ruby-lang
znz_jp joined #ruby-lang
hachiya joined #ruby-lang
tobiasvl joined #ruby-lang
troubleman joined #ruby-lang
jaska joined #ruby-lang
yfeldblum joined #ruby-lang
dv310p3r joined #ruby-lang
marcostoledo joined #ruby-lang
publicvoid joined #ruby-lang
MistyM_ joined #ruby-lang
robbrit joined #ruby-lang
adambeynon_ joined #ruby-lang
troublem1n joined #ruby-lang
twittard_ joined #ruby-lang
jjore_ joined #ruby-lang
jaska___ joined #ruby-lang
imajes joined #ruby-lang
hachiya_ joined #ruby-lang
Cope_ joined #ruby-lang
fvollero_ joined #ruby-lang
dbussink` joined #ruby-lang
znz_jp0 joined #ruby-lang
tobiasvl joined #ruby-lang
mnoble joined #ruby-lang
LBRapid joined #ruby-lang
dave_miles joined #ruby-lang
<joe_> anyone ever experience problems with timeout in timeout.rb?
<banister`sleep> joe_: no u
Oloryn_lt1 joined #ruby-lang
<molgrew> yes
<joe_> i'm setting a conn_timeout value and checking inside the timeout method that the "sec" var is correct, it is
<joe_> however the timeout method execution time is > than the sec value
<joe_> sec = 2, method run time = 10+
jwill joined #ruby-lang
BenMatthew joined #ruby-lang
<rue> Blocking call?
<joe_> (using with nethttp)
Weems joined #ruby-lang
echoprinter joined #ruby-lang
bshelton joined #ruby-lang
MistyM joined #ruby-lang
jaimef joined #ruby-lang
rayners joined #ruby-lang
whitelogger joined #ruby-lang
Topic for #ruby-langis now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
<whitequark> ok, there's no official IRC logs for this channel
<whitequark> this sucks
<sirfilip> why
<sirfilip> you can say anything
<whitequark> so I went and wrote one: http://irclog.whitequark.org/ruby-lang
<sirfilip> damn
<tobiasvl> Not Found
dr0id joined #ruby-lang
<whitequark> ah
<whitequark> slash.
<tobiasvl> did you write the log script?
<sirfilip> pretty neet
<tobiasvl> pretty neat
<tobiasvl> yeah
<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
<lianj> http://b.az"'<
<rue> That looks legit
outoftime joined #ruby-lang
<tobiasvl> banister`sleep: ok i guess everyone here logs everything you say
Swimming_Bird joined #ruby-lang
<banister`sleep> tobiasvl: private logs are differnt to logs that are publicly available and searchable via google
<banister`sleep> it's the public logs that are the pain imo
LBRapid left #ruby-lang
thrcka joined #ruby-lang
RomyEatsDrupal joined #ruby-lang
bryanl joined #ruby-lang
<whitequark> teh codez are onlinez: https://github.com/whitequark/irclogger
<tobiasvl> thanks whitequark
looopy joined #ruby-lang
<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
rhinux joined #ruby-lang
divins joined #ruby-lang
beawesomeinstead joined #ruby-lang
cesario joined #ruby-lang
echoprinter left #ruby-lang
dfr|mac joined #ruby-lang
tty234 joined #ruby-lang
<whitequark> okay banister`sleep, at the moment I've placed robots.txt: http://irclog.whitequark.org/robots.txt
echoprinter joined #ruby-lang
<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
simon_weber joined #ruby-lang
nofxx joined #ruby-lang
<banister`sleep> kalleth: hey fucko, freenode guidelines; http://pastie.org/2872710
<banister`sleep> whitequark: you're not a fucko ;) but read above ^
<whitequark> aha, they require a [off] feature
<whitequark> not very hard
<kalleth> what samuelkadolph said
<kalleth> or
<kalleth> you know
<kalleth> try and be a bit less racist?
<banister`sleep> kalleth: 1. read the guidlines 2. stfu
<kalleth> i'm just guessing here, because i can't really think of what you could possibly be pulled up on for talking in a 'ruby lang' channel
<kalleth> banister`sleep: 1) stop being a dick
<samuelkadolph> Because a pastie is freenode's policy, gotcha
<kalleth> banister`sleep: 2) stop being paranoid
<kalleth> banister`sleep: 3) chill out and smoke some bifty
<whitequark> I guess this conversation is _the_ exact reason people sometimes do not tolerate rubyists.
<samuelkadolph> I find it interesting you found this policy when freenode.net is down.
<MistyM> bshelton: Not crashing on Snow Lep, if that helps anything. If it's crashing, I'd say it's worth a bug report.
<banister`sleep> samuelkadolph: google cache
<banister`sleep> samuelkadolph: pretty easy really
cldwalker joined #ruby-lang
steph021 joined #ruby-lang
steph021 joined #ruby-lang
<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
<MistyM> bshelton: Curious.
<bshelton> samuelkadolph: got it in there https://gist.github.com/1370269
<bshelton> MistyM: Yeah, just trying to see if it's just me, very possible :)
<samuelkadolph> 1.9.3dev?
<bshelton> samuelkadolph: I've tried p0 as well
<samuelkadolph> How did you install it?
<bshelton> samuelkadolph: Manually compiled, and this morning I verified it breaks with rvm's compilation of 1.9.3-p0
echoprinter left #ruby-lang
macmartine joined #ruby-lang
echoprinter joined #ruby-lang
<samuelkadolph> Looks like a problem with openssl
<samuelkadolph> Did you install Xcode?
<bshelton> samuelkadolph: Yep, I have xcode installed. I agree, it's definitely something with OSX's ssl.
ammar_ joined #ruby-lang
lonny joined #ruby-lang
heftig joined #ruby-lang
rhinux joined #ruby-lang
<samuelkadolph> Hmm, someone else has the same problem. http://redmine.ruby-lang.org/issues/5611
<lianj> whitequark: does coldruby run already? :)
<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.
bryno joined #ruby-lang
<samuelkadolph> bshelton: --with-openssl=/some/dir
RickHull joined #ruby-lang
<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
wlbentley joined #ruby-lang
KU0N joined #ruby-lang
whitelogger joined #ruby-lang
Topic for #ruby-lang is now Ruby 1.9.3p0: http://ruby-lang.org | Paste >3 Lines of Text on http://pastie.org
<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.
<manveru> >> cut = [5..10, 20..50]; last_keep, end_of_movie = 0, 150; cut.map{|r| x = last_keep..r.begin; last_keep = r.end; x } + [last_keep..end_of_movie]
<manveru> => [0..5, 10..20, 50..150]
<MistyM> lianj, manveru: Thanks!
kmeehl joined #ruby-lang
beiter joined #ruby-lang
<manveru> >> cut = [[5,10],[20,50]]; [0,cut,150].flatten(2).each_slice(2).to_a
<manveru> => [[0, 5], [10, 20], [50, 150]]
<manveru> that's more like it
enikar joined #ruby-lang
<Mon_Ouie> kleech: You can't without hacking with ObjectSpace
wlbentley joined #ruby-lang
<Mon_Ouie> ObjectSpace.each_object(Module) { |mod| mod < your_class }
<samuelkadolph> Or use the inherited hook
<manveru> make sure you merge intersecting time ranges after that step
<kleech> Mon_Ouie: Okay, thanks. I wanted to know if a particular exception was a StandardError.
<manveru> YourException.ancestors
<Mon_Ouie> Why would you need to know the subclasses of StandardError to do that?
<Mon_Ouie> There's what manveru said and exception.is_a? StandardError
ablemike joined #ruby-lang
norm joined #ruby-lang
RickHull joined #ruby-lang
mkovacs joined #ruby-lang
<samuelkadolph> [5..10, 20..50].each_with_object([0..-1]) { |range, array| l = array.pop; array << (l.begin..range.begin) << (range.end..l.end) } # => [0..5, 10..20, 50..-1]
vikoren joined #ruby-lang
dv310p3r joined #ruby-lang
infid joined #ruby-lang
<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?
<judofyr> my most useful irbrc-snippet: http://timelessrepo.com/copy-paste
<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
<bshelton> MistyM: I'm going to do some more testing and update this ticket http://redmine.ruby-lang.org/issues/5611
<bougyman> infid: that's an old syntax.
<infid> ah
<manveru> `if x; y; end` or `y if x` are the two options
<bougyman> puts "it is 4" if x == 4
<infid> the book is from 2008
<infid> thanks
<MistyM> Colon worked in 1.8, doesn't in 1.9.
<manveru> ruby 1.8 allowed colons in place of semicolons sometimes
<infid> you can use 'then' still though: if x == 2 then puts 'it is 4' end
RickHull joined #ruby-lang
<burgestrand> I thought that was for case statements only D:
<bougyman> when on_fire: panic_appropriately
<shevy> whoa
<infid> i guess it's because it's an alias of 'then'
<shevy> ruby 1.8 allowed colons? only for case/when or?
<MistyM> What's an appropriate panic? Or, I suppose, it's that panic is appropriate when_on_fire.
solars joined #ruby-lang
<burgestrand> shevy: for “when”, yes, no idea about any other use case
<burgestrand> infid: what book is this?
<shevy> ok
<manveru> hmm
RickHull joined #ruby-lang
<manveru> using : was equivalent to using ;
<infid> burgestrand: O'Reilly Ruby Pocket Reference
Jake232 joined #ruby-lang
<infid> the book says that ':' is a synonym of 'then'
alfakini joined #ruby-lang
<shevy> books don't lie
<MistyM> infid: Ah, yeah. It was in 1.8, but 1.9 was very new in 2008.
<manveru> you can use 'then' instead of ';' too :)
<manveru> not everywhere though
<burgestrand> Feels pythony
<infid> hips don't break
<infid> very pythony, don't like it
<manveru> i use 'then' in bash and forth, because there's no other way
<infid> interesting that you can still use 'then' with if statements though
<shevy> forth! omg
<shevy> apeiros is using "if foo then" a lot in his code :)
<infid> i plead the fifth
<infid> then feels more englishy
<infid> if foo go home sounds like 'if foo goes home' but 'if foo then go home' sounds more like what we're really aiming for
<shevy> well
<shevy> english is too verbose
<shevy> elsif!
<shevy> alias e puts
<shevy> :)
<vikoren> forth?!?!
<manveru> what do people have against forth :P
<infid> even the most english speaking programming language sounds like an uneducated middle easter who just moved to the deep south
<shevy> gosh, never again in my life will I let single .rb files pull in all of my other .rb files...
<vikoren> I <3 forth…i just thought it had passed away :P
<infid> *eastern
<manveru> hehe
alfakini joined #ruby-lang
<shevy> require 'MMEDIA/new_multimedia.rb'
<shevy> Psych::SyntaxError: (programs_aliases.yml): couldn't parse YAML at line 0 column 0
<manveru> vikoren: i used amforth for arduino a few days ago
<vikoren> manveru: sweet
<manveru> otherwise i think falcon is still alive and kicking
<sirfilip> night
sirfilip left #ruby-lang
flexd joined #ruby-lang
FylGood joined #ruby-lang
<shevy> falcon PUNCH
<manveru> hm
Rich_Morin joined #ruby-lang
<shevy> infid being terse is beautiful
<manveru> weird, i thought falcon was a forth
<vikoren> manveru: I wish I had an excuse to program a microcontroller…
<infid> shevy: True. One of my friends is super wordy. For about every 60 words he speaks only one or two of them are worth hearing
<infid> I hate having to tell him that life's just too short to listen to you
RomyEatsDrupal joined #ruby-lang
ablemike left #ruby-lang
<infid> which is how I feel when i write C-style syntax. Life's too short to write all these braces
Heimidal joined #ruby-lang
<manveru> ah, it was factor!
<infid> end until wallOfText == 3
<Rich_Morin> I'm looking for some Ruby magic to clean up http://pastie.org/2873139
<manveru> uhm
<manveru> Rich_Morin: what do you wanna do?
<manveru> list all local variables?
<Rich_Morin> no, just list the items listed in 'l'
<Rich_Morin> These items could be any sort of variables or even method call results.
<manveru> hm
<MistyM> http://www.usajobs.gov/GetJob/ViewDetails/302967000 - "frequent travel may be required"
srbaker joined #ruby-lang
<Rich_Morin> manveru: update http://pastie.org/2873139 for a slightly ridiculous example
<shevy> MistyM world jetters!
<manveru> yeah, problem is abstracting that without setting a variable in the parent scope
apeiros_ joined #ruby-lang
<shevy> ewww eval
nuclearsandwich joined #ruby-lang
<Rich_Morin> shevy: eval is slow and can be a security hole, but neither is a problem in this context.
<shevy> hehe
flip_digits joined #ruby-lang
<manveru> well, got it
<Rich_Morin> Side question - macros are on the wish list for Ruby 2. Are these simply cpp-stle macros or more lispish ones?
<manveru> still gotta pass the binding unless you use rubinius
<lucas> what tool do you use to reformat ruby code? vim doesn't know about 'do_something if condition' constructs, for example
<manveru> lucas: ?
<manveru> what does it do?
<shevy> lucas use a better editor!
<lucas> it indents code after the "do_sthing if condition" line
<lucas> shevy: like?
<manveru> what do you use? the ruby config from tpope ?
<lucas> manveru: the default one, probably
<lucas> thanks
<manveru> they are in vim since 7.2 i think
<manveru> maybe you got an older version
<robbrit> lucas: try set filetype=ruby
<lucas> robbrit: I have that
ecin joined #ruby-lang
<shevy> lucas notepad
<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_ joined #ruby-lang
mrsolo joined #ruby-lang
<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
rayners joined #ruby-lang
<Defusal> cool
echoprinter left #ruby-lang
looopy joined #ruby-lang
zomgbie joined #ruby-lang
rushed joined #ruby-lang
benanne joined #ruby-lang
RomD joined #ruby-lang
Heimidal joined #ruby-lang
twittard joined #ruby-lang
ecin joined #ruby-lang
Swimming_Bird joined #ruby-lang
<muzone> wow
Carnage\ joined #ruby-lang
Austin__ joined #ruby-lang
Austin__ left #ruby-lang
bradland joined #ruby-lang
<rue> cschneid: Is mocha even maintained anymore? RSpec's got its own mocks, so does minitest
<rue> I recall a #without_arguments
Carnage` joined #ruby-lang
<yorickpeterse> What mocha does can be achieved using basic structs/ostructs for the most part :)
senj joined #ruby-lang
skim1776 joined #ruby-lang
<skim1776> hey, is it possible to check whether the string is in array in case statement?
<yxhuvud> the string?
<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> (i assumed you meant ruby-env)
<whitequark> nope
<jondot> yes.
* whitequark shrugs
<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
felipe joined #ruby-lang
<whitequark> okay then
Snipy joined #ruby-lang
<jondot> ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
zomgbie_ joined #ruby-lang
Snipy left #ruby-lang
workmad3 joined #ruby-lang
jensn joined #ruby-lang
Manhose joined #ruby-lang
woollyams joined #ruby-lang
hashbangchris joined #ruby-lang
malev joined #ruby-lang
rhinux1 joined #ruby-lang
RickHull1 joined #ruby-lang
tbuehlmann joined #ruby-lang
chessguy joined #ruby-lang
pablo_ joined #ruby-lang
infid joined #ruby-lang
burgestrand joined #ruby-lang
srbartlett joined #ruby-lang
srbaker joined #ruby-lang
srbartlett joined #ruby-lang
StevenRingo joined #ruby-lang
KINGSABRI joined #ruby-lang
havenn joined #ruby-lang
butchanton joined #ruby-lang
Radar joined #ruby-lang
Heimidal_ joined #ruby-lang
gearaholic joined #ruby-lang
Jake232 joined #ruby-lang
<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.
<manveru> hehe
hashbangchris joined #ruby-lang
<yorickpeterse> That follows redirects and returns the URL
huug joined #ruby-lang
outoftime joined #ruby-lang
<samuelkadolph> Unfortunately that example fails for relative Location values
Indian joined #ruby-lang
<yorickpeterse> Hm, could be
<manveru> anw, i would probably try rest-client
<Jake232> I'm suprised that Net::HTTP doesn't have this functionality
<samuelkadolph> You shouldn't be
<manveru> it's stdlib :)
<samuelkadolph> It's a simple http library
<Jake232> I'd say that redirects are a pretty fundamental part of http requests though, they're used pretty widely
<samuelkadolph> Sure they are
<samuelkadolph> Following redirects isn't fundamental
<Jake232> I'll go with typhoeus, I'm allready using it for the parralel function anyway
postmodern joined #ruby-lang
looopy joined #ruby-lang
infid joined #ruby-lang
mkovacs joined #ruby-lang
dfr|mac joined #ruby-lang
srbartlett joined #ruby-lang
virunga joined #ruby-lang
rushed joined #ruby-lang
SuperTaz joined #ruby-lang
dreinull joined #ruby-lang
SuperTaz_ joined #ruby-lang
looopy joined #ruby-lang
Heimidal_ joined #ruby-lang
wyhaines joined #ruby-lang
hashbangchris joined #ruby-lang
fayimora joined #ruby-lang
<crankharder> can someone explain why '>' is executed before the += (which errors) here: i=0 ; i += 1 > 20
<apeiros_> crankharder: it's called precedence
<rue> Also, += is = +
<workmad3> crankharder: i += 1 > 20 == i += (1 > 20)
resetexistence joined #ruby-lang
fayimora_ joined #ruby-lang
echoprinter joined #ruby-lang
woollyams joined #ruby-lang
hagabaka joined #ruby-lang
hagabaka joined #ruby-lang
tallship joined #ruby-lang
<Kovax> ^ ruby operator precedence chart
hashbangchris left #ruby-lang
wyhaines joined #ruby-lang
Axsuul joined #ruby-lang
monkey13_ left #ruby-lang
gix joined #ruby-lang
tomzx joined #ruby-lang
looopy joined #ruby-lang
zmack joined #ruby-lang
Heimidal joined #ruby-lang
ezkl joined #ruby-lang
gearaholic joined #ruby-lang
krz joined #ruby-lang
saLOUt joined #ruby-lang
spuk joined #ruby-lang
SilverMonkey joined #ruby-lang
Banistergalaxy joined #ruby-lang
fayimora joined #ruby-lang
empity joined #ruby-lang
MistyM joined #ruby-lang
scottschecter joined #ruby-lang
mkovacs joined #ruby-lang
lapinferoce joined #ruby-lang
macmartine joined #ruby-lang
setmeaway2 joined #ruby-lang
malev joined #ruby-lang
RickHull joined #ruby-lang
Spooner joined #ruby-lang
tallship joined #ruby-lang
livinded joined #ruby-lang
dv310p3r joined #ruby-lang