ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
_whitelogger has joined #ruby-lang
_whitelogger has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.7]
banisterfiend` has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
krz has joined #ruby-lang
s0ra_h is now known as sora_h
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
yhyubub has joined #ruby-lang
woollyams has joined #ruby-lang
kawaguchi has joined #ruby-lang
banisterfiend` has quit [Remote host closed the connection]
tooky has joined #ruby-lang
yhyubub has left #ruby-lang [#ruby-lang]
sora_h is now known as s0ra_h
tooky has quit [Ping timeout: 260 seconds]
qpingu has quit [Quit: Leaving.]
bryancp has quit [Remote host closed the connection]
kawaguchi has quit [Ping timeout: 252 seconds]
deryl has quit [Quit: deryl]
igotnolegs has joined #ruby-lang
whitequark has joined #ruby-lang
kawaguchi has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
kawaguchi has quit [Ping timeout: 276 seconds]
MouseTheLuckyDog has quit [Ping timeout: 245 seconds]
brianpWins has quit [Quit: brianpWins]
erichmenge has quit [Quit: Be back later]
kawaguchi has joined #ruby-lang
banisterfiend has joined #ruby-lang
TorpedoSkyline has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tjadc has quit [Ping timeout: 252 seconds]
MouseTheLuckyDog has joined #ruby-lang
s0ra_h is now known as sora_h
kawaguchi has quit [Ping timeout: 272 seconds]
deryl has joined #ruby-lang
mistym has quit [Remote host closed the connection]
snorkdude has joined #ruby-lang
savage- has joined #ruby-lang
deryl has quit [Quit: deryl]
lcdhoffman has joined #ruby-lang
fgomez has joined #ruby-lang
tooky has joined #ruby-lang
lcdhoffman has quit [Client Quit]
sora_h is now known as s0ra_h
tooky has quit [Ping timeout: 260 seconds]
ruby-lang116 has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
replore has quit [Remote host closed the connection]
jangerhofer has joined #ruby-lang
neocoin has joined #ruby-lang
<jangerhofer> Hello all, I'm having trouble building source code to a Mac .app file. Would anyone be willing to do that for me and upload the resulting .app?
ruby-lang116 has quit [Ping timeout: 245 seconds]
jangerhofer has quit [Client Quit]
Jotade11 has joined #ruby-lang
<bnagy> I lol'ed
banisterfiend has quit [Ping timeout: 265 seconds]
replore_ has joined #ruby-lang
andrew___ has joined #ruby-lang
jtoy has joined #ruby-lang
andrew___ is now known as andrewhl
gregmoreno has quit [Ping timeout: 246 seconds]
Fullmoon has joined #ruby-lang
ryanf has joined #ruby-lang
gregmoreno has joined #ruby-lang
scientes has quit [Ping timeout: 256 seconds]
jtoy has quit [Quit: jtoy]
banisterfiend has joined #ruby-lang
s0ra_h is now known as sora_h
diegoviola has quit [Ping timeout: 272 seconds]
burgestrand has joined #ruby-lang
indeterminate has quit [Quit: It's too late. You've awakened the gazebo. It catches and eats you.]
snorkdude has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
sora_h is now known as s0ra_h
cosah has joined #ruby-lang
Jotade11 has quit [Quit: Linkinus - http://linkinus.com]
chimkan has quit [Quit: chimkan]
Jotade11 has joined #ruby-lang
cha1tanya has joined #ruby-lang
yxhuvud has joined #ruby-lang
towski has joined #ruby-lang
<cosah> test
<cosah> awes
savage- has quit [Remote host closed the connection]
<cosah> Hi everyone, I'm brand new to Ruby and trying to learn the details of syntax from a few websites, and it's really not helping. Would anyone be willing to look at about 10 short lines of code for a really simple problem and tell me what i'm doing wrong? the logic is fine, i'm just getting an error running it.
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<bnagy> what's the error?
<bnagy> and gist / pastie / whatever the code
<bnagy> :)
ChadStudmuffin has quit [Ping timeout: 268 seconds]
<cosah> syntaxerror: <irb>:8: syntax error, unexpected $undefined, expecting tSTRING_ etc, all kinds of tSTRING_s
dhruvasagar has quit [Ping timeout: 248 seconds]
Z33K|Lux has quit []
<burgestrand> cosah: it doesn’t say much, syntax errors are usually "Oh?" followed by looking very carefully at the code
brianpWins has joined #ruby-lang
<burgestrand> cosah: if you could paste the code online for us to look at that’d be far easier
<cosah> counter = 1;
<cosah> foo = 0;
<cosah> while counter <= 1000 do
<cosah> if counter % 3 = 0 and counter % 5 != 0
<cosah> foo += counter;
<cosah> elseif counter % 5 = 0
<cosah> foo += counter;
<cosah> end
<cosah> counter +=1;
<cosah> end
<burgestrand> cosah: not here
<cosah> sry
<Mon_Ouie> elseif is wrong
<cosah> sent it to bnagy already, thanks
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
<Mon_Ouie> The Ruby keyword is elsif
<cosah> -_- thanks :)
<Mon_Ouie> Also you don't need those semicolons
<burgestrand> cosah: use http://pastie.org/, or https://gist.github.com/ like it says in the topic, and paste the link to us in the future
<cosah> appreciated. i'm not exactly in patient reading mode right now. syntax implodes my skull
<bnagy> also, I (and many others) won't respond to anything in /query
<burgestrand> cosah: also your condition: counter % 5 = 0 should probably have two ==
d3vic3 has quit [Ping timeout: 276 seconds]
<Mon_Ouie> It has to actually
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<burgestrand> yeah I just don’t like telling people what to do
<burgestrand> he can have syntax errors if he wants I’m okay with it
<burgestrand> (:
<cosah> hahah, thanks
d3vic3 has joined #ruby-lang
<burgestrand> cosah: is ruby your first language?
<bnagy> isn't that logic just foo+=1 if counter % 3 == 0 || counter % 5 == 0?
ryanf has quit [Ping timeout: 244 seconds]
<bnagy> sry +=counter but whatever
<cosah> nope. i learned a little c++ a long time ago, used to be proficient in Java. ruby changes a few things
<cosah> but yeah bnagy, you're right.
<cosah> getting back into coding
<bnagy> I would (1..1000).select {|i| i%3==0 || i%5==0}.inject :+
<bnagy> but that's kind of idiomatic
<bnagy> I hate while loops :/
<burgestrand> bnagy: is it really? either it’s divisible by 3, or divisible by 5, but never both
<burgestrand> I mean, right now it’s the same thing on both
neocoin has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 276 seconds]
<Mon_Ouie> It would be i % 15 == 0 || i % 5 == 0
<Mon_Ouie> The first condition is to be dividable by 3 *and* 5, the second one to be dividable by 5
<Mon_Ouie> So actually just i % 5 == 0…
<bnagy> yeah
<cosah> i dont seem to have a full character set. i'm getting stuff like this: …
<cosah> messaged you private btw, bnagy
<Mon_Ouie> The funny thing is, if you paste it, we can see it
<cosah> lol
<Mon_Ouie> That's just UTF-8
<bnagy> wait, no I think I was right in the first place.
<bnagy> 15 would increment cause it hits %5==0
<Mon_Ouie> (i % 3 == 0 and i % 5 == 0) or i % 5 == 0 is equivalent to i % 5 == 0
<bnagy> basically 3 || !5 or 5 == 3 || 5
<Mon_Ouie> Oh, nvm, I misread the !=
<bnagy> Mon_Ouie: you missed a not
woollyams has quit [Quit: Computer has gone to sleep.]
<bnagy> cosah: (1..1000).select {|i| i%3==0 || i%5==0}.inject(:+) => 234168
woollyams has joined #ruby-lang
<bnagy> is that the answer you're looking for?
woollyams has quit [Client Quit]
<cosah> probably
<cosah> i'm still getting the same error
<Mon_Ouie> With what code now?
<Mon_Ouie> And do use a pastie this time
ryanf has joined #ruby-lang
towski has quit [Remote host closed the connection]
<burgestrand> cosah: what error?
<burgestrand> that code runs fine for me
s0ra_h is now known as sora_h
<cosah> i'm running this in irb
<burgestrand> I just did too, runs fine there as well
<cosah> unexpected $undefined, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
<cosah> i used the ruby installer on windows 7
<cosah> 1.9.3
<cosah> i'd be running linux but i need windows for a work application
<bnagy> 32 bit win7?
<bnagy> ew
<cosah> 64
<cosah> ew is right
<bnagy> oh well 64 bit just won't work, afaik
<cosah> wtf
<cosah> alright
<bnagy> not with mri
<bnagy> try jruby instead
<bnagy> that works
<bnagy> I mean it should run in WOW32 I guess
<bnagy> but it won't be 64 bit and I dunno about building stuff
<cosah> trying rubymine
<bnagy> ?
<bnagy> isn't that just an ide? Why would you do that?
<bnagy> I think, basically, does any code run? Cause that code is fine
<cosah> downloading jruby at present as well
<cosah> i'm just trying stuff
<cosah> i'm racing my roommate for a 6 pack
<cosah> would i want the 32bit version of jruby+jre? i'm not really sure.
<bnagy> 64 bit imho
<bnagy> cause, like, why not
<bnagy> may as well give the 32 bits to a kid who'll use 'em
tooky has joined #ruby-lang
kawaguchi has joined #ruby-lang
d3vic3 has quit [Read error: No route to host]
<cosah> have JRuby up and running now. new error now. again some unexpected thing. will pastie
<bnagy> I don't suppose you're running slovakian windows or something stupid?
snorkdude has joined #ruby-lang
<cosah> nope
sora_h is now known as s0ra_h
<cosah> its legit and reg'd
<cosah> win 7 pro 64
<cosah> updated, etc
<bnagy> ok well yeah you can't do that in irb
tooky has quit [Ping timeout: 276 seconds]
<bnagy> do ruby c:\blah\blah.rb from the cmd prompt
<bnagy> actually jruby I think
<cosah> ok
<bnagy> they don't set up a ruby.bat for you afair
<cosah> just rain irb(main):002:0> ruby c:\users\owner\desktop\doopdoop.rb in jruby
<cosah> same error
naquad has quit [Ping timeout: 240 seconds]
<bnagy> 14:26 < bnagy> ok well yeah you can't do that in irb
<bnagy> 14:26 < bnagy> do ruby c:\blah\blah.rb from the cmd prompt
<bnagy> the windows command prompt, not inside irb
d3vic3 has joined #ruby-lang
fromhet has joined #ruby-lang
<cosah> nothing ahppened
<bnagy> that's good
ryanf has quit [Quit: leaving]
<bnagy> cause your code doesn't produce any output :)
<bnagy> but it didn't give you an error
<bnagy> just change the last line to 'puts foo'
ryanf has joined #ruby-lang
<cosah> :DDDDDDDDDD
mytrile has joined #ruby-lang
kitallis has joined #ruby-lang
apeiros_ has joined #ruby-lang
kawaguchi has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby-lang
kawaguchi has joined #ruby-lang
naquad has joined #ruby-lang
charliesome has joined #ruby-lang
neocoin has joined #ruby-lang
kawaguchi has quit [Ping timeout: 268 seconds]
chendo_ is now known as chendo
s0ra_h is now known as sora_h
ryanf has quit [Quit: leaving]
ryanf has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
cosah has quit [Quit: Want to be different? Try HydraIRC -> http://www.hydrairc.com <-]
dhruvasagar has joined #ruby-lang
alvaro_o has quit [Ping timeout: 246 seconds]
replore_ has quit [Remote host closed the connection]
tooky has joined #ruby-lang
kawaguchi has joined #ruby-lang
mssola has joined #ruby-lang
alvaro_o has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
igotnolegs has quit [Quit: Computer has gone to sleep.]
burgestrand has quit [Quit: Leaving.]
burgestrand has joined #ruby-lang
IPGlider has joined #ruby-lang
thone has joined #ruby-lang
^sandbags^ has joined #ruby-lang
dc5ala has joined #ruby-lang
virunga has joined #ruby-lang
kawaguchi has quit [Ping timeout: 245 seconds]
sandbags has quit [Ping timeout: 246 seconds]
thone_ has quit [Ping timeout: 252 seconds]
JoshWines has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
publicvoid has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 265 seconds]
kitallis has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby-lang
<yorickpeterse> HELLO, GOOD MORNING/AFTERNOON/EVENING/NIGHT DEPENDING ON YOUR TIMEZONE
tjadc has joined #ruby-lang
<apeiros_> yorickpeterse: good whateveryourtimezone too!
<apeiros_> want some color?
Leeky_afk is now known as Leeky
kawaguchi has joined #ruby-lang
kawaguchi has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
<yorickpeterse> YES
ryanf has quit [Quit: leaving]
dhruvasagar has joined #ruby-lang
zmack has joined #ruby-lang
<bnagy> so I have "quebrar�amos"
<bnagy> and it breaks stuff
workmad3 has quit [Ping timeout: 252 seconds]
<bnagy> it appears to be valud utf-8, though, based on all the tricks I know
<ddfreyne> define “breaks stuff”
<apeiros_> it appears not as valid utf-8 here…
<apeiros_> I get that nice little <?> symbol for invalid sequences
<bnagy> it seems to make capybara / phantomJS error
<bnagy> apeiros_: I get that too
<apeiros_> do you have the raw byte sequence, e.g. via unpack("C*")?
<bnagy> but things like trying to reencode it with invalid :replace undefined: replace etc don't strip it
<burgestrand> bnagy: re-encoding a string requires you to encode to another encoding and back
<bnagy> => [113, 117, 101, 98, 114, 97, 114, 239, 191, 189, 97, 109, 111, 115]
<bnagy> burgestrand: yeah I used utf-16be
<bnagy> doing it via ascii works, but I suspect it will strip a lot of stuff I want as well
<bnagy> s/suspect/know
<burgestrand> Huh, weird, those three bytes that make up your character ruby considers as individual characters
<bnagy> oh I just used str.bytes.to_a
cid404 has quit [Ping timeout: 252 seconds]
<bnagy> not codepoints, I thought that was what apeiros_ wanted
<apeiros_> funny, yeah, ruby thinks it's valid…
zetesha has joined #ruby-lang
<bnagy> maybe cause the 'this is invalid' char is valid?
<apeiros_> but that character there has a funny codepoint: 65533
zetesha has quit [Client Quit]
<apeiros_> and the codepoint table lists it under `U+FFF0 to U+FFFF: Specials`
<burgestrand> Hah.
<burgestrand> Replacement character.
<apeiros_> so you've got a real <?> there
<apeiros_> so my question now is: how do you retrieve the raw byte sequence?
<bnagy> I suspect I can't
<apeiros_> because it seems that you get it from an already processed source…
Criztian has joined #ruby-lang
<burgestrand> I wonder if that’s what ruby uses when you have invalid stuff.
<bnagy> this is from what appears to be a broken brazilian dict in ubuntu
<apeiros_> (which already has the offending character/sequence replaced)
<burgestrand> It is!
<burgestrand> "\xFF".encode("UTF-16BE", :undef => :replace, :invalid => :replace).encode("UTF-8") # => same character
<apeiros_> btw.
<burgestrand> it’s the default replacement character, bnagy are you sure this is the string before you fix it’s encoding?
<bnagy> well I used '?' as my replacement char
<apeiros_> "used to replace an incoming character whose value is unknown or unrepresentable in Unicode" so yes, it is the standard replacement char
<bnagy> like literal question mark, when I rountripped it through utf16be
<apeiros_> bnagy: which is why I think your source has already been processed by something at that point
<bnagy> I think so too
<bnagy> I think the dict file is b0rked
<burgestrand> either way that should be valid, did this string cause you issues?
<bnagy> yeah it blows up this capybara / wenkit thing
<bnagy> I have put reams of wacky languages through it just fine, but these strings explode it
<burgestrand> bnagy: you don’t happen to have a minimal test case or something that I could experiment on? :p
<burgestrand> or just explain what process it goes through so I could replicate it
<bnagy> nothing about capybara / oltergeist is minimal :(
<bnagy> I hate it, but I don't have a better option
<burgestrand> bnagy: does it blow up no matter which driver you use?
<bnagy> well I need a webkit driver
<bnagy> I guess I could switch back to the Qt one
<bnagy> but it seems easier to just catch this :>
<burgestrand> :o
<burgestrand> bnagy: could you paste the exception somewhere so I could perhaps figure out from the backtrace what is going on instead then?
<bnagy> sure
<burgestrand> \o/
<burgestrand> bnagy: thanks :)
<bnagy> I can give you my scrapy code, but I'm not sure how much it will help
<bnagy> but I can't give you a minimal case cause there's a ton of support code to do the distributed fu
heftig_ has joined #ruby-lang
heftig has quit [Quit: Reconnecting]
heftig_ is now known as heftig
runeb has joined #ruby-lang
<burgestrand> bnagy: I take it you are doing a search with a query that contains this replacement character?
<bnagy> yep
<burgestrand> bnagy: awesome, that *should* keep me busy for a while, thank you very much :)
<bnagy> you're a strange man, burgestrand
<bnagy> I say 'halp I have no idea what I am doing, bug' and you thank me
<burgestrand> :p
<bnagy> I really wish I could find a better option for this stuff, as an aside
<bnagy> I had to go back to MRI and use Parallel cause this code absolutely assplodes in threads
<bnagy> like hilariously
<burgestrand> I’d suppose the drivers don’t really support threading
<burgestrand> perhaps they could if you created more than one instance of them
<bnagy> very not, apparently :)
<bnagy> I did, afaik
<bnagy> those are just the raw searchy classes
workmad3 has joined #ruby-lang
<burgestrand> I faintly remember how jnicklas mentioned something about how capybara runs the drivers in a thread in the background or something like that but I can’t remember exactly what he said
<burgestrand> never bothered to dig into capybara more than necessary to access the raw drivers from time to time :p
<bnagy> http://pastie.org/4448617 if you're interested
<workmad3> burgestrand: that would make sense considering the behaviour of capybara :)
<bnagy> if I change in_processes to in_threads hilarity ensues
cdt has joined #ruby-lang
dtribble has quit [Ping timeout: 240 seconds]
kitallis has joined #ruby-lang
gnufied has joined #ruby-lang
krz has quit [Quit: krz]
runeb- has joined #ruby-lang
runeb has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
runeb- is now known as runeb
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby-lang
<burgestrand> bnagy: yeah, turns out it doesn’t work well if you use different app hosts first of all
<burgestrand> Hm, no, that’s not your issue you use absolute hosts.
toretore has joined #ruby-lang
Jotade11 has quit [Quit: Leaving...]
Jotade11 has joined #ruby-lang
Jotade11 has quit [Client Quit]
Jotade11 has joined #ruby-lang
Jotade11 has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby-lang
qwerxy has joined #ruby-lang
<Silex> is array.each the simplest way to return an enumerator?
<Silex> I have this method that is currently yield'ing values, but I think it'd be superior if it simply returned an enumerator
<Silex> allowing people to chose how to iterate over it instead of forcing them to pass a block etc
<heftig> def mymeth; if block_given?; ... yield ...; else enum_for(__method__); end; end
<Silex> heftig: ha smart, the best of both worlds
<Silex> thanks
kartouch has quit [Quit: ZNC - http://znc.sourceforge.net]
kartouch has joined #ruby-lang
<burgestrand> bnagy: I believe, to do it threaded, you’ll need to make sure 1) all your urls you visit are absolute, 2) overload current_session because it’s not thread-safe in Capybara::DSL, so create your own session for each thread
<burgestrand> I’m fairly certain I have something working here with celluloid but I’m not sure what to try it on…
<Silex> heftig: what if I have to pass arguments to the method
<Silex> __method__ tries to call it without the args
justinseiter has joined #ruby-lang
<Silex> oh wait, it takes args
<Silex> nvm
dhruvasagar has quit [Ping timeout: 244 seconds]
Leeky is now known as Leeky_afk
dhruvasagar has joined #ruby-lang
S1kx has joined #ruby-lang
saLOUt has joined #ruby-lang
<burgestrand> bnagy: https://gist.github.com/3312972
grin_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby-lang
<bnagy> burgestrand: which bit is the magic? @current_session = Capybara::Session.new(:poltergeist)
<bnagy> ?
<bnagy> and I need to visit an actual url, not '/' in initialize?
dhruvasagar has quit [Ping timeout: 245 seconds]
s1n4 has joined #ruby-lang
s1n4 has quit [Client Quit]
burgestrand has quit [Quit: Leaving.]
Silex has quit [Quit: WeeChat 0.3.8]
Silex has joined #ruby-lang
saLOUt has quit [Quit: Konversation terminated!]
dhruvasagar has joined #ruby-lang
virunga has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
burgestrand has joined #ruby-lang
guns has joined #ruby-lang
<burgestrand> bnagy: yeah, current_session is what capybara uses and it defaults to auto-creating it when necessary but here we do it eagerly
<burgestrand> bnagy: the visit is just to start the session and visit the base URL, you can just give the host if you want to, or a full path
<bnagy> just trying to remodel my Search on yours
<burgestrand> bnagy: so the Google searcher will go to google’s /
<bnagy> was working, now bugs... sec
<burgestrand> bnagy: but another part of the magic is the visit() override, it needs to have the urls start with http
<burgestrand> otherwise Capybara goes to 127.0.0.1 or app_host, you want neither because each searcher should have it’s own base
<burgestrand> anyhow, lunch now, will be back in an hour :)
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
<bnagy> dammit still fails the same way as before
<bnagy> work in processes
<bnagy> have good lunch. If you still have time later I'll try and get some stacktraces
cid404 has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
dhruvasagar has quit [Read error: Connection reset by peer]
burgestrand has quit [Quit: Leaving.]
dhruvasagar has joined #ruby-lang
gokul has joined #ruby-lang
gnufied has joined #ruby-lang
IPGlider has quit []
RegEchse has joined #ruby-lang
burgestrand has joined #ruby-lang
sepp2k has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
telemachus has left #ruby-lang [#ruby-lang]
dhruvasagar has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby-lang
elemarjr has joined #ruby-lang
judofyr has joined #ruby-lang
virunga has joined #ruby-lang
guns has quit [Quit: guns]
Hakon has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
s1n4 has joined #ruby-lang
chimkan_ has joined #ruby-lang
bytephilia has joined #ruby-lang
<kke> anyone using barkeep?
<kke> wondering how to control who can get access
fromhet has quit [Quit: fromhet]
s1n4 has quit [Quit: leaving]
d3vic3 has quit [Quit: leaving]
jxie has quit [Quit: leaving]
nibbo has quit [Ping timeout: 252 seconds]
stayarrr has joined #ruby-lang
workmad3 is now known as wm3|lunch
d3vic3 has joined #ruby-lang
kvirani has joined #ruby-lang
nibbo has joined #ruby-lang
tooky has quit [Remote host closed the connection]
gregmoreno has quit [Ping timeout: 248 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
andrewhl has joined #ruby-lang
sailias has joined #ruby-lang
tooky has joined #ruby-lang
mistym has quit [Remote host closed the connection]
bryancp has joined #ruby-lang
carloslopes has joined #ruby-lang
gregmoreno has joined #ruby-lang
s1n4 has joined #ruby-lang
tommyvyo has joined #ruby-lang
virunga has quit [Quit: Sto andando via]
andrewhl has quit [Remote host closed the connection]
ChadStudmuffin has joined #ruby-lang
andrewhl has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
poga has joined #ruby-lang
grin_ has quit [Read error: Connection reset by peer]
grin_ has joined #ruby-lang
gnufied has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
runeb- has joined #ruby-lang
runeb is now known as Guest23145
Guest23145 has quit [Read error: Connection reset by peer]
runeb- is now known as runeb
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
slyphon has joined #ruby-lang
deryl has joined #ruby-lang
sailias has quit [Ping timeout: 276 seconds]
stayarrr has quit [Quit: Leaving...]
deryl has quit [Client Quit]
dhruvasagar has joined #ruby-lang
hynkle has joined #ruby-lang
deryl has joined #ruby-lang
hramrach has quit [Ping timeout: 276 seconds]
zz_chrismcg is now known as chrismcg
fgomez has quit [Ping timeout: 276 seconds]
kvirani has quit [Remote host closed the connection]
bryancp has quit [Remote host closed the connection]
dc5ala has quit [Quit: Ex-Chat]
itsmeduncan has joined #ruby-lang
rue_XIV has joined #ruby-lang
retro|cz has quit [Remote host closed the connection]
hramrach has joined #ruby-lang
rue has quit [Ping timeout: 250 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
outoftime has joined #ruby-lang
deryl has quit [Quit: deryl]
rue has joined #ruby-lang
sockmonk has joined #ruby-lang
cha1tanya has quit [Ping timeout: 276 seconds]
rue_ has joined #ruby-lang
gokul has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
rue_XIV has quit [Ping timeout: 272 seconds]
deryl has joined #ruby-lang
therealnoop has quit [Remote host closed the connection]
rue has quit [Ping timeout: 276 seconds]
Defusal has quit [Quit: ...]
tekin has joined #ruby-lang
justinseiter has quit [Quit: Leaving]
deryl has quit [Quit: deryl]
sailias has joined #ruby-lang
rue has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
wm3|lunch is now known as workmad3
rue_ has quit [Ping timeout: 276 seconds]
andrewhl has quit [Remote host closed the connection]
deryl has joined #ruby-lang
andrewhl has joined #ruby-lang
havenn has joined #ruby-lang
outoftime has quit [Quit: Leaving]
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
savage- has joined #ruby-lang
erichmenge has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
burgestrand has joined #ruby-lang
itsmeduncan has quit [Read error: Connection reset by peer]
itsmeduncan has joined #ruby-lang
kvirani has joined #ruby-lang
akira989 has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
andrewhl has quit [Remote host closed the connection]
chimkan_ has joined #ruby-lang
andrewhl has joined #ruby-lang
bryancp has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
wmoxam_ has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
hdzhdgn has quit [Ping timeout: 248 seconds]
hynkle has quit []
erpuds has joined #ruby-lang
elux has joined #ruby-lang
agile has joined #ruby-lang
bytephilia has quit [Remote host closed the connection]
VGoff is now known as VGoff_afk
elux has quit [Quit: Bye!]
agile has quit [Ping timeout: 246 seconds]
hdzhdgn has joined #ruby-lang
erpuds has quit [Quit: erpuds]
savage- has quit [Read error: Connection reset by peer]
savage- has joined #ruby-lang
d3vic3 has quit [Quit: leaving]
agile has joined #ruby-lang
d3vic3 has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
d3vic3 has quit [Client Quit]
sailias has quit [Quit: Leaving.]
erpuds has joined #ruby-lang
sailias has joined #ruby-lang
deryl-android has joined #ruby-lang
steveklabnik has quit [Disconnected by services]
outoftime has joined #ruby-lang
totallymike has joined #ruby-lang
|Vargas| has quit [Quit: ...]
savage- has quit [Remote host closed the connection]
jxie has joined #ruby-lang
runeb has quit [Remote host closed the connection]
coryf has joined #ruby-lang
kain has quit [Ping timeout: 244 seconds]
melter has quit [Read error: Connection reset by peer]
melter has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
runeb has joined #ruby-lang
tekin has quit [Quit: Computer has gone to sleep.]
runeb has quit [Remote host closed the connection]
nibbo has quit [Ping timeout: 248 seconds]
nibbo has joined #ruby-lang
itsmeduncan has quit [Quit: itsmeduncan]
itsmeduncan has joined #ruby-lang
havenn has joined #ruby-lang
kain has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
pbjorklund has joined #ruby-lang
erpuds has quit [Quit: erpuds]
<tubbo> are there any tools for converting XLSX spreadsheets into JSON?
tekin_ has joined #ruby-lang
tekin_ has quit [Client Quit]
havenn has quit [Ping timeout: 276 seconds]
jperry2 has joined #ruby-lang
<apeiros_> tubbo: yes
savage- has joined #ruby-lang
<apeiros_> there's roo, spreadsheet and various json libs
gnufied has quit [Quit: Leaving.]
<erikh> there is no alternative to rue
carloslopes has quit [Quit: Leaving.]
dous has quit [Remote host closed the connection]
<tubbo> apeiros_: rue?
<judofyr> tubbo: I've used http://poi.apache.org/overview.html + JRuby
<rue> I told you, I’m out of the business
<judofyr> tubbo: it's quite Java, but not bad to work with
* apeiros_ can't help people who can't read.
<rue> judofyr: 404
<rue> O wait, maybe the link chopped off the l…wth
<judofyr> same here
<judofyr> limechat?
<judofyr> wtf?
<rue> That’s weird
<apeiros_> limechat too, no 404 here
<tubbo> oh roo
<apeiros_> maybe should update once in a while? :)
<deryl-android> hehehe
chimkan_ has quit [Quit: chimkan_]
zmack has quit [Remote host closed the connection]
<rue> Software’s not meant to be updated
<deryl-android> so thats why people charge so much. now its all so clear :)
gnufied1 has joined #ruby-lang
coryf has quit [Read error: Connection reset by peer]
Jotade11 has joined #ruby-lang
coryf has joined #ruby-lang
havenn has joined #ruby-lang
jtoy has joined #ruby-lang
<mistym> What's the best way to deal with C-style hex unsigned ints in Ruby? I have a C library I'm wrapping that's full of 0x00000800UL-style consts.
<apeiros_> what do you mean, "deal with"?
<apeiros_> 0x00000800 is valid in ruby
<apeiros_> (i.e., just drop the UL)
<mistym> Oh, why so it is. Derp.
snorkdude has joined #ruby-lang
<erikh> it's always unsigned though
<apeiros_> other than that - all the ordinary macros provided to convert to FIXNUM or integer
<Mon_Ouie> Though that doesn't help if you're using FFI
savage- has quit [Remote host closed the connection]
headius has joined #ruby-lang
<erikh> I used to have a htoi I wrote that was reasonably fast
<erikh> but you could probably just exploit unpack somehow
savage- has joined #ruby-lang
canton7 has joined #ruby-lang
<mistym> Mon_Ouie: Using FFI, yeah.
TorpedoSkyline has joined #ruby-lang
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
akira989_ has joined #ruby-lang
Jotade11 has quit [Quit: Linkinus - http://linkinus.com]
akira989 has quit [Ping timeout: 248 seconds]
wallerdev has joined #ruby-lang
chimkan_ has joined #ruby-lang
chimkan_ has quit [Read error: Connection reset by peer]
chimkan__ has joined #ruby-lang
virunga has joined #ruby-lang
fromhet has joined #ruby-lang
gregmoreno has quit [Ping timeout: 248 seconds]
chimkan_ has joined #ruby-lang
gregmoreno has joined #ruby-lang
lsegal has joined #ruby-lang
rippa has joined #ruby-lang
chrismcg is now known as zz_chrismcg
apeiros_ has quit [Remote host closed the connection]
zzak has quit [Quit: leaving]
chimkan__ has quit [Ping timeout: 276 seconds]
macmartine has joined #ruby-lang
gnufied1 has quit [Quit: Leaving.]
snorkdude has quit [Remote host closed the connection]
zzak has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
erpuds has joined #ruby-lang
butchanton has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
fromhet has quit [Quit: fromhet]
ndxgosu has joined #ruby-lang
snorkdude has joined #ruby-lang
scientes has joined #ruby-lang
towski has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
fromhet has joined #ruby-lang
<tubbo> ugh
carloslopes has joined #ruby-lang
S1kx has quit [Quit: Leaving]
carloslopes has quit [Client Quit]
burgestrand has joined #ruby-lang
<tubbo> erikh: have you used Roo with XLSX spreadsheets? i keep running into stupid encoding errors and shit
snorkdude has quit [Remote host closed the connection]
<erikh> no
<erikh> I was making a joke about someone with a similar name that's in the channel
<tubbo> hah
<tubbo> alright then
mrsolo has joined #ruby-lang
sora_h is now known as s0ra_h
deryl-android has quit [Quit: will be on and offline most of day. later]
s0ra_h is now known as sora_h
brianpWins has quit [Quit: brianpWins]
towski has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
erpuds has quit [Quit: erpuds]
saLOUt_ has joined #ruby-lang
snorkdude has joined #ruby-lang
workmad3 is now known as wm3|away
burgestrand has quit [Quit: Leaving.]
brdude has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
yaroslav has joined #ruby-lang
brdude has quit [Read error: Connection reset by peer]
snorkdude has quit [Remote host closed the connection]
dtribble has joined #ruby-lang
sora_h is now known as s0ra_h
neocoin has quit [Remote host closed the connection]
brdude has joined #ruby-lang
chimkan_ has joined #ruby-lang
benanne has joined #ruby-lang
tooky has quit [Remote host closed the connection]
saLOUt_ has quit [Remote host closed the connection]
saLOUt_ has joined #ruby-lang
saLOUt_ has quit [Ping timeout: 260 seconds]
jstemmer has quit [Quit: leaving]
jstemmer has joined #ruby-lang
agile has quit [Ping timeout: 260 seconds]
havenn has joined #ruby-lang
chimkan__ has joined #ruby-lang
andrewhl has joined #ruby-lang
krz has joined #ruby-lang
d3vic3 has joined #ruby-lang
chimkan_ has quit [Ping timeout: 252 seconds]
fromhet has quit [Remote host closed the connection]
ndxgosu has quit []
qwerxy has quit [Ping timeout: 244 seconds]
bfreeman has joined #ruby-lang
burgestrand has joined #ruby-lang
havenn has quit [Remote host closed the connection]
Hakon is now known as CaptnObvious
CaptnObvious is now known as Hakon
jbwiv has joined #ruby-lang
S1kx has joined #ruby-lang
pbjorklu1d has joined #ruby-lang
towski has joined #ruby-lang
pbjorklund has quit [Ping timeout: 265 seconds]
havenn has joined #ruby-lang
yaroslav has quit [Quit: yaroslav]
agile has joined #ruby-lang
snorkdude has joined #ruby-lang
qpingu has joined #ruby-lang
yhyubub has joined #ruby-lang
s0ra_h is now known as sora_h
vbatts has joined #ruby-lang
achiu has quit [Quit: WeeChat 0.3.7]
zzak has quit [Quit: leaving]
achiu has joined #ruby-lang
zzak has joined #ruby-lang
s1n4 has quit [Quit: leaving]
ChadStudmuffin has quit [Ping timeout: 244 seconds]
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
steveklabnik has joined #ruby-lang
havenn has quit [Remote host closed the connection]
jackhammer2022 has joined #ruby-lang
lcdhoffman has joined #ruby-lang
chimkan__ has quit [Quit: chimkan__]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sora_h is now known as s0ra_h
havenn has joined #ruby-lang
cantonic_ has joined #ruby-lang
elux has joined #ruby-lang
<elux> hey guys
dejongge has joined #ruby-lang
elux has quit [Client Quit]
enroxorz has joined #ruby-lang
enroxorz is now known as Guest24624
cantonic has quit [Ping timeout: 240 seconds]
cantonic_ is now known as cantonic
chimkan_ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
JustinCampbell has joined #ruby-lang
<rue> HI THERE
chimkan_ has quit [Quit: chimkan_]
ChadStudmuffin has joined #ruby-lang
chimkan has joined #ruby-lang
stayarrr has joined #ruby-lang
enebo has joined #ruby-lang
iamjarvo has joined #ruby-lang
ChadStudmuffin has quit [Ping timeout: 276 seconds]
pbjorklund has joined #ruby-lang
ChadStudmuffin has joined #ruby-lang
<msch> hi, what's a good http request lib for scraping? e.g. i have lots of requests queued, i need retries if they fail, etc etc
pbjorklu1d has quit [Ping timeout: 244 seconds]
imajes has quit [Excess Flood]
Guest24624 has left #ruby-lang [#ruby-lang]
<drbrain> msch: mechanize
enroxorz has joined #ruby-lang
<msch> drbrain: thanks. i tried that some years ago and didn't really like it, do you know of any other?
ChadStudmuffin has quit [Ping timeout: 240 seconds]
imajes has joined #ruby-lang
<drbrain> what didn't you like about it?
<rue> It’s supposedly a bit better now
<rue> Do you need to actually *scrape*/mechanize, though? You’re not just looking for httparty or whatever and don’t know it?
ChadStud1uffin has joined #ruby-lang
toretore has quit [Read error: Connection reset by peer]
tbuehlmann has joined #ruby-lang
TorpedoSkyline has quit [Quit: Computer has gone to sleep.]
toretore has joined #ruby-lang
Harzilein has joined #ruby-lang
<Harzilein> hi
<Harzilein> i have never seen this kind of syntax: class << (@latex_escaper=RedCloth.new(''))
<Harzilein> where is it described?
<Harzilein> shouldn't the expression be required to return a class/module?
bryancp has joined #ruby-lang
agile has quit [Ping timeout: 265 seconds]
<Harzilein> (and not an instance)
<rue> Harzilein: class << anyobject opens the singleton class of the object on the right
havenn has joined #ruby-lang
ChadStud1uffin has quit [Ping timeout: 248 seconds]
s0ra_h is now known as sora_h
havenn has quit [Ping timeout: 248 seconds]
gsav has quit [Read error: Connection reset by peer]
gsav has joined #ruby-lang
chimkan has quit [Quit: chimkan]
Hakon has quit [Quit: Leaving...]
chimkan has joined #ruby-lang
tooky has joined #ruby-lang
agile has joined #ruby-lang
ChadStudmuffin has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
Nisstyre has quit [Quit: Leaving]
saLOUt_ has joined #ruby-lang
sora_h is now known as s0ra_h
tooky has quit [Ping timeout: 276 seconds]
ChadStudmuffin has quit [Ping timeout: 276 seconds]
dejongge has quit [Read error: Connection timed out]
havenn has joined #ruby-lang
ChadStud1uffin has joined #ruby-lang
iamjarvo has quit [Quit: Computer has gone to sleep.]
Hakon has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
erpuds has joined #ruby-lang
heftig has joined #ruby-lang
erpuds has quit [Client Quit]
ChadStud1uffin has quit [Ping timeout: 245 seconds]
ryland has quit [Ping timeout: 248 seconds]
chimkan__ has joined #ruby-lang
Hakon has quit [Ping timeout: 276 seconds]
JustinCampbell has quit [Ping timeout: 240 seconds]
chimkan has quit [Ping timeout: 245 seconds]
chimkan__ is now known as chimkan
JustinCampbell has joined #ruby-lang
diegoviola has quit [Ping timeout: 240 seconds]
agile has quit [Ping timeout: 276 seconds]
tooky has joined #ruby-lang
chimkan has quit [Read error: Connection reset by peer]
chimkan_ has joined #ruby-lang
Hakon has joined #ruby-lang
deryl has quit [Quit: deryl]
diegoviola has joined #ruby-lang
enroxorz has quit [Quit: Leaving]
chimkan_ has quit [Ping timeout: 252 seconds]
towski has quit [Remote host closed the connection]
poga has quit [Remote host closed the connection]
erpuds has joined #ruby-lang
agile has joined #ruby-lang
havenn has quit [Remote host closed the connection]
s0ra_h is now known as sora_h
ChadStudmuffin has joined #ruby-lang
ChadStudmuffin has quit [Ping timeout: 252 seconds]
sailias has quit [Quit: Leaving.]
chimkan_ has joined #ruby-lang
gregmore_ has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
ChadStudmuffin has joined #ruby-lang
gregmoreno has quit [Ping timeout: 244 seconds]
chimkan_ has quit [Read error: Connection reset by peer]
sora_h is now known as s0ra_h
grin_ has quit [Quit: Leaving.]
tooky has quit [Remote host closed the connection]
brdude has quit [Quit: brdude]
ChadStudmuffin has quit [Ping timeout: 252 seconds]
kennyvb has left #ruby-lang [#ruby-lang]
ChadStudmuffin has joined #ruby-lang
chimkan_ has joined #ruby-lang
lun_ has joined #ruby-lang
Criztian has joined #ruby-lang
ChadStudmuffin has quit [Ping timeout: 244 seconds]
burgestrand has quit [Quit: Leaving.]
JustinCampbell has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
gregmore_ has quit [Ping timeout: 240 seconds]
erichmenge has joined #ruby-lang
<theoros> alright this is driving me nuts
<theoros> rdoc.main = "README.md"
<theoros> it does nothing, what's the deal
<theoros> i have rdoc.rdoc_files.include("README.md", "lib")
<theoros> index.html comes out blank with just the sidebar on the left
Jake232 has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
ChadStud1uffin has joined #ruby-lang
<drbrain> theoros: for one, markdown support only exists in RDoc trunk
<drbrain> … but it still should find your paragraphs and whatnot
<theoros> i get no output. i'm finding the whole thing frustrating
<drbrain> theoros: URL?
<chris2> anyone want to help golf down the characters used by http://sprunge.us/dcCg ? :)
<theoros> drbrain: for what?
Nisstyre has joined #ruby-lang
<drbrain> for the source that gives you rdoc frustrations
rippa has quit [Ping timeout: 246 seconds]
<theoros> drbrain: i'll push the repo and pm you it, that okay?
<drbrain> theoros: sure
<theoros> rdoc -o docs --main docs/Foo.html lib # nothing :(
sailias has joined #ruby-lang
<drbrain> that should probably be `rdoc -o docs --main Foo lib`
<drbrain> --main references a page, class or module
erichmenge has quit [Quit: Be back later]
<theoros> drbrain: still no output, sadly
<theoros> (other than the sidebar)
<theoros> drbrain: also the documentation suggests --main should be a filename
<theoros> drbrain: not saying you're wrong, just pointing out the mismatch :)
<drbrain> theoros: ok, I can fix that
<drbrain> typically it's a file like README.txt, but a class name will also work
<drbrain> it shouldn't reference a generated file, though
ChadStud1uffin has quit [Ping timeout: 240 seconds]
ChadStudmuffin has joined #ruby-lang
<theoros> drbrain: PM'd you
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
postmodern has joined #ruby-lang
Stereokitsune has quit [Quit: leaving]
elemarjr has quit [Quit: elemarjr]
ChadStudmuffin has quit [Ping timeout: 272 seconds]
burgestrand has joined #ruby-lang
<cout> how can I format my time like: 2011-12-16T21:01:20Z
fayimora has joined #ruby-lang
<cout> it's the 'Z' part that's getting me
<drbrain> cout: doesn't #iso8601 do that?
brdude has joined #ruby-lang
<cout> drbrain: where's that method defined?
<drbrain> time.rb
<drbrain> IIRC
<cout> iso8601 looks like it's slightly different
<drbrain> ruby -rtime -e 'p Time.now.utc.iso8601'
<cout> oh I was using DateTime.now
s0ra_h is now known as sora_h
ChadStudmuffin has joined #ruby-lang
<drbrain> cout: if you're on 1.9 there's no advantage to using DateTime
<drbrain> … range-wise, anyhow
^sandbags^ has quit [Remote host closed the connection]
agile has quit [Ping timeout: 272 seconds]
fayimora has quit [Ping timeout: 240 seconds]
<cout> hopefully this will work, thanks
ChadStudmuffin has quit [Ping timeout: 248 seconds]
snorkdude has joined #ruby-lang
coryf has quit [Remote host closed the connection]
fayimora has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
ilyam has joined #ruby-lang
jackhammer2022 has quit [Read error: Connection reset by peer]
gregfu has joined #ruby-lang
JustinCampbell has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
brdude has quit [Quit: brdude]
Stereokitsune has joined #ruby-lang
gregfu has quit [Quit: gregfu]
<rue> drbrain: Except if you’re dealing with a DB…then it might.
carloslopes has quit [Quit: Leaving.]
<rue> Or something similar
sora_h is now known as s0ra_h
<drbrain> yeah
Stereokitsune has quit [Client Quit]
Stereokitsune has joined #ruby-lang
bryancp has joined #ruby-lang
sockmonk has quit [Ping timeout: 248 seconds]
wm3|away has quit [Quit: Reconnecting]
wm3|away has joined #ruby-lang
JustinCampbell has quit [Remote host closed the connection]
wm3|away is now known as workmad3
deryl has joined #ruby-lang
fayimora has quit [Ping timeout: 245 seconds]
qwerxy has joined #ruby-lang
chimkan_ has quit [Read error: Connection reset by peer]
poga has joined #ruby-lang
poga has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
elemarjr has joined #ruby-lang
fayimora has joined #ruby-lang
iamjarvo has joined #ruby-lang
diegoviola has quit [Quit: leaving]
tbuehlmann has quit []
diegoviola has joined #ruby-lang
brdude has joined #ruby-lang
deryl has quit [Quit: deryl]
erpuds has quit [Quit: erpuds]
sailias has quit [Ping timeout: 276 seconds]
havenn has joined #ruby-lang
chimkan_ has joined #ruby-lang
erpuds has joined #ruby-lang
fayimora has quit [Quit: Be back in a gifii]
havenn has quit [Ping timeout: 244 seconds]
qwerxy has quit [Quit: offski]
akira989_ has quit [Remote host closed the connection]
chimkan_ has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby-lang
sush24 has joined #ruby-lang
chimkan has joined #ruby-lang
<sush24> hi .. I'm bit new to ruby..
<sush24> I want to rescue if it's a Timeout::Error else raise it. Any ideas how to implement it?
ryland has joined #ruby-lang
<drbrain> rescue Timeout::Error will be sufficient
<sush24> drbrain, hmm..
<sush24> i actually did that.. I guess it might be another problem
<drbrain> sush24: if you show what you have so far we can be of more help
chimkan has quit [Ping timeout: 240 seconds]
<sush24> It's few thousand lines… trying to debug it.. I'll see if I can try it myself
<sush24> thanks btw
<drbrain> sush24: you should be able to write a test for the few lines you care about
kvirani has quit [Remote host closed the connection]
<sush24> fixed it.. a place where it just logged didn't raise
hdzhdgn has quit [Ping timeout: 240 seconds]
itsmeduncan has quit [Quit: itsmeduncan]
d3vic3 has quit [Remote host closed the connection]
saLOUt_ has quit [Quit: Konversation terminated!]
sailias has joined #ruby-lang
wmoxam_ has quit [Ping timeout: 276 seconds]
qwerxy has quit [Quit: offski]
s0ra_h is now known as sora_h
chimkan has joined #ruby-lang
fgomez has joined #ruby-lang
sailias has quit [Client Quit]
outoftime has quit [Quit: Leaving]
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
chimkan has quit [Ping timeout: 245 seconds]
hdzhdgn has joined #ruby-lang
elemarjr has quit [Quit: elemarjr]
lcdhoffman has quit [Quit: lcdhoffman]
chimkan has joined #ruby-lang
chimkan has quit [Read error: Connection reset by peer]
chimkan has joined #ruby-lang
erpuds has quit [Quit: erpuds]
towski has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
sora_h is now known as s0ra_h
chimkan has quit [Read error: Connection reset by peer]
chimkan has joined #ruby-lang
enebo has quit [Quit: enebo]
mssola has quit [Quit: Konversation terminated!]
ilyam_ has joined #ruby-lang
banisterfiend has quit [Ping timeout: 248 seconds]
ilyam has quit [Ping timeout: 245 seconds]
ilyam_ is now known as ilyam
itsmeduncan has joined #ruby-lang
chimkan has quit [Ping timeout: 265 seconds]
workmad3 has quit [Read error: Operation timed out]
havenn has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
bytephilia has joined #ruby-lang
havenn has quit [Ping timeout: 244 seconds]
chopmo has quit [Quit: chopmo]
banisterfiend has joined #ruby-lang
yxhuvud has quit [Ping timeout: 260 seconds]
bryancp has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
s0ra_h is now known as sora_h
chimkan has joined #ruby-lang
bytephilia has quit [Remote host closed the connection]
virunga has quit [Quit: Sto andando via]
neocoin has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Jake232 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
qwerxy has quit [Quit: offski]
sora_h is now known as s0ra_h
mistym_ has joined #ruby-lang
Erlkoenig has joined #ruby-lang
<Erlkoenig> hello, is there a way to specify the order in which OptionParser calls the blocks passed to the "on" method? for my program it's important that a block correspondig to option A ist called before a block for option B, even if they occur in a different order on the command line.
<banisterfiend> Erlkoenig: they're called in order they're givein on the command line
<banisterfiend> Erlkoenig: so perhaps you dont want to use the block form
fgomez has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
<drbrain> or you want to pre-process
<Erlkoenig> ah, how to do it without the blocks?
<drbrain> or you give an exception
<Erlkoenig> well i wanted to avoid messing directly with the options :)
<Erlkoenig> er, option strings
* drbrain nods
itsmeduncan has quit [Quit: itsmeduncan]
<banisterfiend> Erlkoenig: also consider using Slop if u dont mind having an extra dep
<whitequark> trollop is also quite good
<Erlkoenig> hmm i'll take a look...
iamjarvo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
butchanton has quit [Quit: Leaving.]
rodj has joined #ruby-lang
Asher has quit [Quit: Leaving.]
havenn has joined #ruby-lang
Asher has joined #ruby-lang
fgomez has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: Leaving]
havenn has quit [Ping timeout: 244 seconds]
Axsuul has quit [Ping timeout: 246 seconds]
Axsuul has joined #ruby-lang
chimkan has quit [Quit: chimkan]
ilyam has quit [Remote host closed the connection]
ilyam has joined #ruby-lang
Z33K|Lux has joined #ruby-lang